/**
 * audit-review.css — /library/audit-review/ cluster-walk UI.
 *
 * Rendered inside the DevHub shell — the shell owns sidebar + Morgan rail
 * chrome; this stylesheet is only for the content pane. Kept scoped under
 * .tf-ar so nothing leaks out.
 *
 * Colour palette mirrors DevHub's own tokens (--dh-*) declared on :root
 * in camcom-v2/css/devhub.css so this page reads as a first-class DevHub
 * surface. Fallback hexes match the token values 1:1 in case devhub.css
 * hasn't loaded yet.
 *
 * @package theme-factory
 */

.tf-ar {
	display: flex;
	flex-direction: column;
	gap: 24px;
	padding: 24px 32px 48px;
	color: var(--dh-text, #e0e0e0);
}

.tf-ar__title-row {
	display: flex;
	align-items: baseline;
	gap: 12px;
	flex-wrap: wrap;
}

.tf-ar__title {
	font-size: 20px;
	margin: 0;
	color: var(--dh-text, #e0e0e0);
}

.tf-ar__brand-chip {
	display: inline-block;
	padding: 2px 10px;
	border-radius: var(--dh-radius-pill, 100px);
	background: var(--dh-surface-hover, #22262b);
	color: var(--dh-text, #e0e0e0);
	font-size: 12px;
	letter-spacing: 0.02em;
	text-transform: lowercase;
}

.tf-ar__meta {
	margin: 4px 0 0;
	font-size: 13px;
	color: var(--dh-text-muted, #888);
}

/* Collapsible explainer at the top of the page — closed by default, one
   click reveals the "what am I looking at" context. Meant to be readable
   once, then hidden until the operator needs a refresher. */
.tf-ar__explainer {
	background: var(--dh-surface-hover, #22262b);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	padding: 0;
	overflow: hidden;
}

.tf-ar__explainer summary {
	padding: 8px 14px;
	cursor: pointer;
	font-size: 12px;
	font-weight: 500;
	color: var(--dh-accent, #68de7c);
	list-style: none;
}

.tf-ar__explainer summary::-webkit-details-marker { display: none; }

.tf-ar__explainer summary::before {
	content: '▸ ';
	display: inline-block;
	margin-right: 4px;
	transition: transform 120ms;
}

.tf-ar__explainer[open] summary::before {
	transform: rotate(90deg);
}

.tf-ar__explainer-body {
	padding: 4px 18px 14px;
	color: var(--dh-text, #e0e0e0);
	font-size: 13px;
	line-height: 1.5;
}

.tf-ar__explainer-body p {
	margin: 8px 0;
}

.tf-ar__explainer-body ul {
	margin: 4px 0 8px 20px;
	padding: 0;
}

.tf-ar__explainer-body li {
	margin: 4px 0;
}

.tf-ar__progress {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.tf-ar__progress-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dh-text-muted, #888);
	min-width: 84px;
}

.tf-ar__stat {
	display: inline-flex;
	align-items: center;
	padding: 4px 10px;
	border-radius: var(--dh-radius-pill, 100px);
	font-size: 12px;
	font-weight: 500;
	background: var(--dh-surface, #1a1d21);
	color: var(--dh-text, #e0e0e0);
	border: 1px solid var(--dh-border, #2a2d31);
}

.tf-ar__stat--mapped  { color: var(--dh-accent, #68de7c); border-color: var(--dh-green, #266038); }
.tf-ar__stat--partial { color: #e6a972;                    border-color: #4a3d1c; }
.tf-ar__stat--skipped { color: var(--dh-text-muted, #888); border-color: var(--dh-border, #2a2d31); }
.tf-ar__stat--pending { color: var(--dh-text, #e0e0e0);    border-color: var(--dh-border, #2a2d31); }
.tf-ar__stat--total   { color: var(--dh-text-muted, #888); border-color: var(--dh-border, #2a2d31); }

.tf-ar__actions {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

/* WP admin's .button classes only style inside wp-admin. Give the audit-
   review's action row explicit frontend styling so Save & Seed / Save
   draft / Export map JSON render as real buttons on the DevHub surface. */
.tf-ar__actions .button {
	appearance: none;
	background: var(--dh-surface, #1a1d21);
	color: var(--dh-text, #e0e0e0);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	padding: 6px 14px;
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
	transition: background 120ms, border-color 120ms;
}

.tf-ar__actions .button:hover {
	background: var(--dh-surface-hover, #22262b);
	border-color: var(--dh-border-light, #333);
}

.tf-ar__actions .button-primary {
	background: var(--dh-accent, #68de7c);
	color: var(--dh-bg, #0f1114);
	border-color: var(--dh-accent, #68de7c);
}

.tf-ar__actions .button-primary:hover {
	background: #7be890;
	border-color: #7be890;
}

.tf-ar__save-status {
	font-size: 12px;
	color: var(--dh-text-muted, #888);
	font-style: italic;
}

.tf-ar__header {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding-bottom: 20px;
	border-bottom: 1px solid var(--dh-border, #2a2d31);
}

/* ── Section headers (applied to the Clusters section; Variance +
   Singletons carry equivalent hints inside their <summary> tags). ─── */

.tf-ar__section-head {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 4px 2px 8px;
}

.tf-ar__section-title {
	font-size: 14px;
	font-weight: 600;
	color: var(--dh-text, #e0e0e0);
	margin: 0;
}

.tf-ar__section-hint {
	font-size: 12px;
	color: var(--dh-text-muted, #888);
	line-height: 1.4;
	margin: 0;
}

/* ── Cluster list ─────────────────────────────────────────────────── */

.tf-ar__clusters {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tf-ar__cluster {
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	background: var(--dh-surface, #1a1d21);
	overflow: hidden;
}

.tf-ar__cluster--mapped  { border-left: 4px solid var(--dh-accent, #68de7c); }
.tf-ar__cluster--partial { border-left: 4px solid #e6a972; }
.tf-ar__cluster--skipped { border-left: 4px solid var(--dh-text-muted, #888); opacity: 0.6; }
.tf-ar__cluster--pending { border-left: 4px solid var(--dh-border-light, #333); }

.tf-ar__cluster-head {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 12px 16px;
	background: var(--dh-surface-hover, #22262b);
	font-size: 12px;
	color: var(--dh-text-muted, #888);
	border-bottom: 1px solid var(--dh-border, #2a2d31);
	flex-wrap: wrap;
}

.tf-ar__cluster-names {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	align-items: center;
	flex: 1 1 400px;
	min-width: 0;
}

.tf-ar__cluster-name {
	display: inline-block;
	padding: 2px 8px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: 4px;
	color: var(--dh-text, #e0e0e0);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 12px;
	font-weight: 500;
}

/* Clickable chips (buttons) surface as green-accent on hover so the
   operator knows they can be opened. Disabled chips (no mockup recorded)
   render as inert code tags — same style, non-interactive cursor. */
button.tf-ar__cluster-name {
	appearance: none;
	cursor: pointer;
	transition: background 120ms, border-color 120ms, color 120ms;
}

button.tf-ar__cluster-name:hover {
	background: var(--dh-accent-bg, rgba(104, 222, 124, 0.06));
	border-color: var(--dh-accent, #68de7c);
	color: var(--dh-accent, #68de7c);
}

.tf-ar__cluster-name.is-disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

.tf-ar__cluster-sep {
	color: var(--dh-text-faint, #555);
	font-size: 11px;
}

.tf-ar__cluster-stats {
	color: var(--dh-text-muted, #888);
	font-size: 11px;
	white-space: nowrap;
}

.tf-ar__cluster-occ {
	font-weight: 600;
	color: var(--dh-text, #e0e0e0);
}

.tf-ar__cluster-state {
	margin-left: auto;
	padding: 2px 10px;
	border-radius: var(--dh-radius-pill, 100px);
	background: rgba(255, 255, 255, 0.04);
	font-weight: 500;
}

.tf-ar__cluster--mapped  .tf-ar__cluster-state { color: var(--dh-accent, #68de7c); background: var(--dh-accent-bg, rgba(104, 222, 124, 0.06)); }
.tf-ar__cluster--partial .tf-ar__cluster-state { color: #e6a972;                    background: rgba(230, 169, 114, 0.12); }
.tf-ar__cluster--skipped .tf-ar__cluster-state { color: var(--dh-text-muted, #888); background: rgba(255, 255, 255, 0.04); }
.tf-ar__cluster--pending .tf-ar__cluster-state { color: var(--dh-text, #e0e0e0);    background: rgba(255, 255, 255, 0.04); }

.tf-ar__cluster-body {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	padding: 16px;
}

.tf-ar__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
	grid-column: 1 / -1;
}

.tf-ar__field-label {
	font-size: 11px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--dh-text-muted, #888);
}

.tf-ar__canonical {
	max-width: 320px;
	background: var(--dh-bg, #0f1114);
	color: var(--dh-text, #e0e0e0);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	padding: 6px 8px;
	font-size: 13px;
}

.tf-ar__canonical-freetext {
	max-width: 320px;
	background: var(--dh-bg, #0f1114);
	color: var(--dh-text, #e0e0e0);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	padding: 6px 8px;
	margin-top: 4px;
	font-size: 13px;
}

.tf-ar__aliases {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	border: 0;
	padding: 0;
	margin: 0;
	grid-column: 1;
}

.tf-ar__aliases legend {
	display: block;
	margin-bottom: 6px;
	width: 100%;
}

.tf-ar__alias {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 4px 10px;
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: 6px;
	font-size: 12px;
	background: var(--dh-surface-hover, #22262b);
	cursor: pointer;
}

.tf-ar__alias input {
	margin: 0;
}

.tf-ar__alias.is-canonical {
	border-color: var(--dh-accent, #68de7c);
	background: var(--dh-accent-bg, rgba(104, 222, 124, 0.06));
	cursor: default;
}

.tf-ar__alias-tag {
	padding: 1px 6px;
	border-radius: 6px;
	background: rgba(104, 222, 124, 0.2);
	color: var(--dh-accent, #68de7c);
	font-size: 10px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.tf-ar__scope {
	display: flex;
	flex-direction: column;
	gap: 6px;
	border: 0;
	padding: 0;
	margin: 0;
	font-size: 12px;
	grid-column: 2;
}

.tf-ar__scope label {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	cursor: pointer;
}

.tf-ar__cluster-actions {
	grid-column: 1 / -1;
	display: flex;
	justify-content: flex-end;
	padding-top: 8px;
	border-top: 1px dashed var(--dh-border, #2a2d31);
	font-size: 12px;
}

.tf-ar__skip-toggle {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: var(--dh-text-muted, #888);
	cursor: pointer;
}

/* ── Empty state (no run_id) ────────────────────────────────────── */

.tf-ar--empty {
	padding: 48px 32px;
}

.tf-ar__recent {
	list-style: none;
	padding: 0;
	margin: 12px 0 0;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.tf-ar__recent a {
	color: var(--dh-accent, #68de7c);
	text-decoration: none;
	font-size: 13px;
}

.tf-ar__recent a:hover {
	text-decoration: underline;
}

.tf-ar__hint {
	color: var(--dh-text-muted, #888);
	font-size: 13px;
}

@media (max-width: 900px) {
	.tf-ar__cluster-body {
		grid-template-columns: 1fr;
	}
	.tf-ar__aliases,
	.tf-ar__scope {
		grid-column: 1;
	}
}

/* ── Variance panel ──────────────────────────────────────────────── */

.tf-ar__variance {
	background: var(--dh-surface, #1a1d21);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	overflow: hidden;
}

.tf-ar__variance-summary {
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: 12px;
	background: var(--dh-surface-hover, #22262b);
	border-bottom: 1px solid transparent;
}

.tf-ar__variance[open] .tf-ar__variance-summary {
	border-bottom-color: var(--dh-border, #2a2d31);
}

.tf-ar__variance-summary::-webkit-details-marker { display: none; }

.tf-ar__variance-summary::before {
	content: '▸';
	color: var(--dh-text-muted, #888);
	transition: transform 120ms;
}

.tf-ar__variance[open] .tf-ar__variance-summary::before {
	transform: rotate(90deg);
}

.tf-ar__variance-title {
	font-weight: 600;
	color: var(--dh-text, #e0e0e0);
	font-size: 14px;
}

.tf-ar__variance-hint {
	color: var(--dh-text-muted, #888);
	font-size: 12px;
	line-height: 1.4;
}

.tf-ar__variance-body {
	max-height: 60vh;
	overflow-y: auto;
	padding: 4px 0;
}

.tf-ar__variance-row {
	display: grid;
	grid-template-columns: minmax(160px, 220px) minmax(180px, 260px) 1fr;
	gap: 12px;
	align-items: center;
	padding: 8px 16px;
	font-size: 12px;
	border-bottom: 1px solid var(--dh-border, #2a2d31);
}

.tf-ar__variance-row:last-child {
	border-bottom: 0;
}

.tf-ar__variance-stats {
	color: var(--dh-text-muted, #888);
	white-space: nowrap;
}

.tf-ar__variance-breakdown {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
}

.tf-ar__variance-chip {
	display: inline-block;
	padding: 2px 6px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: 4px;
	color: var(--dh-text-muted, #888);
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 11px;
}

@media (max-width: 900px) {
	.tf-ar__variance-row {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

/* Modal variant switcher — a tab strip inside the modal header when the
   modal is opened with a variants payload. Each chip switches the
   iframe to that variant's first-observed mockup. */
.tf-ar-modal__variants {
	display: flex;
	gap: 4px;
	flex-wrap: wrap;
	padding: 8px 20px;
	background: var(--dh-bg, #0f1114);
	border-bottom: 1px solid var(--dh-border, #2a2d31);
}

.tf-ar-modal__variant {
	appearance: none;
	background: var(--dh-surface, #1a1d21);
	color: var(--dh-text-muted, #888);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: 4px;
	padding: 3px 10px;
	font-size: 11px;
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	cursor: pointer;
	transition: background 120ms, color 120ms, border-color 120ms;
}

.tf-ar-modal__variant:hover {
	color: var(--dh-text, #e0e0e0);
	border-color: var(--dh-border-light, #333);
}

.tf-ar-modal__variant.is-active {
	background: var(--dh-accent, #68de7c);
	color: var(--dh-bg, #0f1114);
	border-color: var(--dh-accent, #68de7c);
	font-weight: 600;
}

/* ── Similar-shape panel ─────────────────────────────────────────── */

.tf-ar__shape-similar {
	background: var(--dh-surface, #1a1d21);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	overflow: hidden;
}

.tf-ar__shape-similar-summary {
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: 12px;
	background: var(--dh-surface-hover, #22262b);
	border-bottom: 1px solid transparent;
}

.tf-ar__shape-similar[open] .tf-ar__shape-similar-summary {
	border-bottom-color: var(--dh-border, #2a2d31);
}

.tf-ar__shape-similar-summary::-webkit-details-marker { display: none; }

.tf-ar__shape-similar-summary::before {
	content: '▸';
	color: var(--dh-text-muted, #888);
	transition: transform 120ms;
}

.tf-ar__shape-similar[open] .tf-ar__shape-similar-summary::before {
	transform: rotate(90deg);
}

.tf-ar__shape-similar-title {
	font-weight: 600;
	color: var(--dh-text, #e0e0e0);
	font-size: 14px;
}

.tf-ar__shape-similar-hint {
	color: var(--dh-text-muted, #888);
	font-size: 12px;
	line-height: 1.4;
}

.tf-ar__shape-similar-body {
	max-height: 60vh;
	overflow-y: auto;
	padding: 4px 0;
}

.tf-ar__shape-group {
	display: grid;
	grid-template-columns: minmax(140px, 200px) 1fr;
	gap: 12px;
	align-items: start;
	padding: 10px 16px;
	font-size: 12px;
	border-bottom: 1px solid var(--dh-border, #2a2d31);
}

.tf-ar__shape-group:last-child {
	border-bottom: 0;
}

.tf-ar__shape-group-meta {
	color: var(--dh-text-muted, #888);
	white-space: nowrap;
}

.tf-ar__shape-group-members {
	display: flex;
	flex-wrap: wrap;
	gap: 4px 6px;
	align-items: center;
}

.tf-ar__shape-group-occ {
	display: inline-block;
	margin-left: 4px;
	padding: 0 5px;
	background: rgba(255, 255, 255, 0.08);
	border-radius: 3px;
	font-size: 10px;
	color: var(--dh-text-muted, #888);
}

button.tf-ar__cluster-name:hover .tf-ar__shape-group-occ {
	background: rgba(255, 255, 255, 0.15);
	color: var(--dh-accent, #68de7c);
}

@media (max-width: 900px) {
	.tf-ar__shape-group {
		grid-template-columns: 1fr;
	}
}

/* ── Singletons panel ────────────────────────────────────────────── */

.tf-ar__singletons {
	background: var(--dh-surface, #1a1d21);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	overflow: hidden;
}

.tf-ar__singletons-summary {
	padding: 12px 16px;
	cursor: pointer;
	list-style: none;
	display: flex;
	align-items: baseline;
	gap: 12px;
	background: var(--dh-surface-hover, #22262b);
	border-bottom: 1px solid transparent;
}

.tf-ar__singletons[open] .tf-ar__singletons-summary {
	border-bottom-color: var(--dh-border, #2a2d31);
}

.tf-ar__singletons-summary::-webkit-details-marker { display: none; }

.tf-ar__singletons-summary::before {
	content: '▸';
	color: var(--dh-text-muted, #888);
	transition: transform 120ms;
}

.tf-ar__singletons[open] .tf-ar__singletons-summary::before {
	transform: rotate(90deg);
}

.tf-ar__singletons-title {
	font-weight: 600;
	color: var(--dh-text, #e0e0e0);
	font-size: 14px;
}

.tf-ar__singletons-hint {
	color: var(--dh-text-muted, #888);
	font-size: 12px;
	line-height: 1.4;
}

.tf-ar__singletons-body {
	max-height: 60vh;
	overflow-y: auto;
	padding: 4px 0;
}

.tf-ar__singleton {
	display: grid;
	grid-template-columns: minmax(160px, 220px) minmax(180px, 260px) auto auto;
	gap: 12px;
	align-items: center;
	padding: 8px 16px;
	font-size: 12px;
	border-bottom: 1px solid var(--dh-border, #2a2d31);
}

.tf-ar__singleton:last-child {
	border-bottom: 0;
}

.tf-ar__singleton--registered {
	background: var(--dh-accent-bg, rgba(104, 222, 124, 0.06));
}

.tf-ar__singleton--skipped {
	opacity: 0.55;
}

.tf-ar__singleton-stats {
	color: var(--dh-text-muted, #888);
	white-space: nowrap;
}

.tf-ar__singleton-scope {
	display: flex;
	gap: 10px;
	color: var(--dh-text-muted, #888);
}

.tf-ar__singleton-scope label {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	cursor: pointer;
}

.tf-ar__singleton-actions {
	display: flex;
	gap: 6px;
}

.tf-ar__singleton-btn {
	appearance: none;
	background: var(--dh-surface, #1a1d21);
	color: var(--dh-text, #e0e0e0);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius-sm, 8px);
	padding: 3px 10px;
	font-size: 12px;
	cursor: pointer;
	transition: background 120ms, border-color 120ms, color 120ms;
}

.tf-ar__singleton-btn:hover {
	background: var(--dh-surface-hover, #22262b);
	border-color: var(--dh-border-light, #333);
}

.tf-ar__singleton--registered .tf-ar__singleton-btn--register {
	background: var(--dh-accent, #68de7c);
	color: var(--dh-bg, #0f1114);
	border-color: var(--dh-accent, #68de7c);
}

.tf-ar__singleton--skipped .tf-ar__singleton-btn--skip {
	background: var(--dh-text-muted, #888);
	color: var(--dh-bg, #0f1114);
	border-color: var(--dh-text-muted, #888);
}

@media (max-width: 900px) {
	.tf-ar__singleton {
		grid-template-columns: 1fr;
		gap: 6px;
	}
}

/* ── Class preview modal ─────────────────────────────────────────── */

.tf-ar-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 4vh 4vw;
}

.tf-ar-modal[hidden] {
	display: none;
}

body.tf-ar-modal-open {
	overflow: hidden;
}

.tf-ar-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 17, 20, 0.85);
	backdrop-filter: blur(2px);
}

.tf-ar-modal__dialog {
	position: relative;
	max-width: 1200px;
	width: 100%;
	max-height: 90vh;
	background: var(--dh-surface, #1a1d21);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: var(--dh-radius, 14px);
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6);
	display: flex;
	flex-direction: column;
	overflow: hidden;
}

.tf-ar-modal__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 14px 20px;
	background: var(--dh-surface-hover, #22262b);
	border-bottom: 1px solid var(--dh-border, #2a2d31);
	flex-wrap: wrap;
}

.tf-ar-modal__title-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	min-width: 0;
	flex: 1 1 300px;
}

.tf-ar-modal__class {
	font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
	font-size: 14px;
	font-weight: 600;
	color: var(--dh-text, #e0e0e0);
	padding: 4px 10px;
	background: rgba(255, 255, 255, 0.04);
	border: 1px solid var(--dh-border, #2a2d31);
	border-radius: 4px;
}

.tf-ar-modal__ref {
	font-size: 12px;
	color: var(--dh-text-muted, #888);
}

.tf-ar-modal__actions {
	display: flex;
	gap: 10px;
	align-items: center;
}

.tf-ar-modal__mockup-link {
	color: var(--dh-accent, #68de7c);
	font-size: 13px;
	text-decoration: none;
	padding: 4px 10px;
	border: 1px solid transparent;
	border-radius: var(--dh-radius-sm, 8px);
	transition: background 120ms, border-color 120ms;
}

.tf-ar-modal__mockup-link:hover {
	background: var(--dh-accent-bg, rgba(104, 222, 124, 0.06));
	border-color: rgba(104, 222, 124, 0.3);
}

.tf-ar-modal__close {
	appearance: none;
	background: transparent;
	border: 0;
	color: var(--dh-text-muted, #888);
	font-size: 28px;
	line-height: 1;
	cursor: pointer;
	padding: 0 8px;
	transition: color 120ms;
}

.tf-ar-modal__close:hover {
	color: var(--dh-text, #e0e0e0);
}

.tf-ar-modal__body {
	overflow: auto;
	background: var(--dh-bg, #0f1114);
	flex: 1 1 auto;
}

.tf-ar-modal__iframe {
	width: 100%;
	border: 0;
	display: block;
	min-height: 200px;
	background: transparent;
}
