.tdm-ar { margin: 14px 0 22px; }
.tdm-ar-open {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 12px 20px; border: 1.5px solid currentColor; border-radius: 999px;
	background: transparent; color: inherit; font: inherit; font-weight: 600; cursor: pointer;
	line-height: 1.2;
}
.tdm-ar-open:hover { background: rgba(0, 0, 0, .05); }
.tdm-ar-open:focus-visible, .tdm-ar-close:focus-visible, .tdm-ar-go:focus-visible, .tdm-ar-size select:focus-visible {
	outline: 2px solid #1f5f8b; outline-offset: 2px;
}
.tdm-ar-note { margin: 6px 0 0 4px; font-size: .85em; opacity: .7; }

html.tdm-ar-lock, html.tdm-ar-lock body { overflow: hidden; }
.tdm-ar-modal {
	position: fixed; inset: 0; z-index: 999999;
	display: flex; align-items: center; justify-content: center;
	background: rgba(20, 16, 12, .6); padding: 16px;
}
.tdm-ar-modal[hidden] { display: none; }
.tdm-ar-box {
	background: #fff; color: #222; width: 100%; max-width: 560px; max-height: 100%;
	border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 12px; overflow: auto;
}
.tdm-ar-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tdm-ar-title { margin: 0; font-weight: 700; font-size: 1.05em; }
.tdm-ar-close {
	width: 40px; height: 40px; flex: none; border: 0; border-radius: 50%;
	background: #f1efec; color: #222; font-size: 24px; line-height: 1; cursor: pointer; padding: 0;
}
.tdm-ar-size { display: flex; align-items: center; gap: 10px; margin: 0; }
.tdm-ar-size select { flex: 1; min-height: 40px; }
.tdm-ar-stage { position: relative; }
.tdm-ar-stage model-viewer {
	width: 100%; height: min(58vh, 420px); background: #f6f4f1; border-radius: 10px; display: block;
}
.tdm-ar-go {
	position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
	padding: 12px 20px; border: 0; border-radius: 999px; background: #222; color: #fff;
	font: inherit; font-weight: 600; white-space: nowrap; cursor: pointer;
}
.tdm-ar-msg { margin: 0; font-size: .92em; line-height: 1.5; color: #555; }
