/* AMIQ Marketing Hub — site styles. Mobile-first, light/dark via tokens. */

:root {
  --bg: #ffffff;
  --bg-2: #f5f7fb;
  --surface: #ffffff;
  --border: #e4e8f0;
  --text: #0b1220;
  --text-2: #4b5567;
  --muted: #7a8396;
  --brand: #2f6bff;
  --brand-2: #12c2b5;
  --brand-ink: #1a4fd6;
  --ring: rgba(47, 107, 255, .35);
  --radius: 14px;
  --shadow: 0 1px 2px rgba(11, 18, 32, .05), 0 8px 24px rgba(11, 18, 32, .06);
  --font-head: "Outfit", "Gilmer", "Aptos", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", "Aptos", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --bg-2: #0f172a; --surface: #111a2e; --border: #1f2a44;
    --text: #e8ecf5; --text-2: #b3bccd; --muted: #8290a8; --brand: #5b8cff; --brand-2: #2fd5c7; --brand-ink: #8fb0ff;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --bg-2: #0f172a; --surface: #111a2e; --border: #1f2a44;
  --text: #e8ecf5; --text-2: #b3bccd; --muted: #8290a8; --brand: #5b8cff; --brand-2: #2fd5c7; --brand-ink: #8fb0ff;
  --shadow: 0 1px 2px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35); color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; }
img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 .5em; font-weight: 700; }
h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(160%) blur(10px); border-bottom: 1px solid var(--border); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--text); font-family: var(--font-head); font-size: 1.08rem; letter-spacing: -.005em; }
.brand:hover { text-decoration: none; }
.brand strong { font-weight: 650; }
.brand img { width: 32px; height: 32px; }
.brand-text { white-space: nowrap; }
.site-nav { display: none; }
.site-nav > a, .site-nav .nav-top { white-space: nowrap; color: var(--text-2); font-weight: 450; font-size: .92rem; letter-spacing: .005em; padding: 6px 12px 6px 7px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid transparent; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.site-nav .nav-ic { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand-ink); flex: none; transition: background .18s ease, color .18s ease; }
.site-nav .nav-ic svg { width: 13px; height: 13px; stroke-width: 1.8; }
.site-nav > a:hover, .site-nav .nav-top:hover, .nav-item:hover > .nav-top, .nav-item:focus-within > .nav-top { color: var(--bg); background: var(--text); text-decoration: none; }
.site-nav > a:hover .nav-ic, .nav-item:hover > .nav-top .nav-ic, .nav-item:focus-within > .nav-top .nav-ic { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.site-nav .nav-top[aria-current="page"], .site-nav > a[aria-current="page"] { color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 8%, transparent); font-weight: 550; }
.site-nav .nav-top[aria-current="page"] .nav-ic, .site-nav > a[aria-current="page"] .nav-ic { background: var(--brand); color: #fff; }
.nav-item.current:hover > .nav-top { color: var(--bg); background: var(--text); }
.nav-item.current:hover > .nav-top .nav-ic { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); }
.theme-toggle { width: 34px; height: 34px; }
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.theme-toggle { background: none; border: 1px solid var(--border); color: var(--text-2); border-radius: 999px; width: 38px; height: 38px; display: inline-grid; place-items: center; cursor: pointer; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: none; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: block; }
}
.nav-toggle { background: none; border: 1px solid var(--border); border-radius: 10px; width: 42px; height: 40px; display: grid; gap: 4px; place-content: center; cursor: pointer; }
.nav-toggle span { width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.site-nav.open { display: flex; flex-direction: column; align-items: stretch; position: absolute; left: 0; right: 0; top: 64px; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 16px 16px; gap: 4px; box-shadow: var(--shadow); }
@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav { display: flex; align-items: center; gap: 4px; }
}

/* Hero */
.hero { padding: clamp(40px, 8vw, 96px) 0 clamp(28px, 5vw, 56px); text-align: center; background: radial-gradient(900px 400px at 50% -10%, color-mix(in srgb, var(--brand) 14%, transparent), transparent 70%); }
.hero h1 { max-width: 20ch; margin-inline: auto; }
.hero p.lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--text-2); max-width: 56ch; margin: 0 auto 1.5em; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 10%, transparent); border-radius: 999px; padding: 6px 12px; margin-bottom: 18px; }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand-2); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 600; padding: 12px 20px; border-radius: 12px; border: 1px solid transparent; cursor: pointer; font-family: var(--font-body); font-size: 1rem; }
.btn:hover { text-decoration: none; }
.btn-primary { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; box-shadow: 0 6px 18px color-mix(in srgb, var(--brand) 35%, transparent); }
.btn-primary:hover { filter: brightness(1.05); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.trust { display: flex; gap: 18px 28px; justify-content: center; flex-wrap: wrap; margin-top: 28px; color: var(--text-2); font-size: .92rem; }
.trust span { display: inline-flex; align-items: center; gap: 8px; }
.trust svg { color: var(--brand-2); }

/* Sections and cards */
.section { padding: clamp(32px, 5vw, 64px) 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.section-head p { margin: 0; color: var(--text-2); }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; color: var(--text); position: relative; transition: transform .15s ease, border-color .15s ease; }
a.card:hover { text-decoration: none; transform: translateY(-2px); border-color: color-mix(in srgb, var(--brand) 45%, var(--border)); }
.card h3 { margin: 0; }
.card p { margin: 0; color: var(--text-2); font-size: .95rem; }
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); margin-bottom: 6px; }
.pill { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); vertical-align: middle; }
.pill.live { background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: #0a7a71; border-color: transparent; }
.pill.building { background: color-mix(in srgb, var(--brand) 14%, transparent); color: var(--brand-ink); border-color: transparent; }
.card .pill { align-self: flex-start; margin-bottom: 2px; }

/* Prose pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: .3em 0; }
.page-head { padding: clamp(32px, 6vw, 64px) 0 8px; }
.page-head p { color: var(--text-2); font-size: 1.1rem; max-width: 60ch; }
.breadcrumb { font-size: .875rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--muted); }

/* Tool workspace shell */
.tool { padding: 24px 0 48px; }
.tool-panel { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); padding: 20px; }
.dropzone { border: 2px dashed color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: 14px; padding: clamp(28px, 6vw, 56px) 20px; text-align: center; background: color-mix(in srgb, var(--brand) 4%, var(--bg-2)); color: var(--text-2); cursor: pointer; transition: background .15s ease; }
.dropzone:hover, .dropzone.drag { background: color-mix(in srgb, var(--brand) 9%, var(--bg-2)); }
.dropzone strong { color: var(--text); font-family: var(--font-head); font-size: 1.1rem; display: block; margin-bottom: 4px; }
.note { border-left: 3px solid var(--brand-2); background: var(--bg-2); padding: 12px 16px; border-radius: 0 10px 10px 0; color: var(--text-2); font-size: .95rem; }
.steps { counter-reset: s; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); padding: 0; list-style: none; }
.steps li { counter-increment: s; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 16px 16px 16px 52px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: .9rem; }
.faq details { border-bottom: 1px solid var(--border); padding: 12px 0; }
.faq summary { cursor: pointer; font-weight: 600; font-family: var(--font-head); font-size: 1.05rem; }
.faq p { margin: 8px 0 0; color: var(--text-2); }
.ad-slot { display: none; min-height: 90px; place-items: center; color: var(--muted); font-size: .8rem; border: 1px dashed var(--border); border-radius: 10px; margin: 24px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 40px 0 24px; margin-top: 40px; font-size: .95rem; }
.footer-grid { display: grid; gap: 28px; grid-template-columns: 1fr; }
.footer-grid h3 { font-size: .95rem; margin-bottom: 10px; }
.footer-grid h3 a { color: var(--text); }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.footer-grid li a { color: var(--text-2); }
.footer-brand p { color: var(--text-2); max-width: 32ch; margin-top: 12px; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: .85rem; color: var(--text-2); }
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid { grid-template-columns: 1.3fr repeat(7, 1fr); gap: 22px; } }
@media (min-width: 720px) and (max-width: 999px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* Forms */
input, textarea, select { font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; width: 100%; }
label { font-weight: 500; display: block; margin-bottom: 6px; }
.field { margin-bottom: 14px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

/* ---- Floor plan tool (v3: AI render + free Studio) ---- */
.fp-progress { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 12px 14px; font-size: .92rem; color: var(--text-2); background: var(--bg-2); border: 1px solid var(--border); border-radius: 12px; }
.fp-progress-body { flex: 1; }
.fp-progress-track { height: 10px; background: var(--surface); border-radius: 999px; overflow: hidden; border: 1px solid var(--border); }
.fp-progress-bar { height: 100%; width: 4%; background: repeating-linear-gradient(45deg, var(--brand) 0 10px, var(--brand-2) 10px 20px); background-size: 28px 28px; animation: fp-stripes 1s linear infinite; transition: width .4s ease; }
.fp-progress-meta { display: flex; justify-content: space-between; margin-top: 6px; font-weight: 500; }
.fp-spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid var(--border); border-top-color: var(--brand); animation: fp-spin .8s linear infinite; flex: none; }
@keyframes fp-spin { to { transform: rotate(360deg); } }
@keyframes fp-stripes { to { background-position: 28px 0; } }
.fp-status { margin: 10px 0 0; font-size: .92rem; color: var(--text-2); min-height: 1.2em; }
.fp-status.err { color: #c0392b; } .fp-status.ok { color: #0a7a71; }
.fp-btn { font: inherit; font-size: .88rem; font-weight: 600; padding: 7px 12px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; white-space: nowrap; }
.fp-btn:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.fp-btn:disabled { opacity: .45; cursor: default; }
.fp-btn.active, .fp-btn[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.fp-inline { display: inline-flex; align-items: center; gap: 6px; font-size: .88rem; font-weight: 500; margin: 0; white-space: nowrap; }
.fp-inline select, .fp-inline input[type=range] { width: auto; padding: 5px 8px; font-size: .88rem; }
.fp-inline input[type=checkbox] { width: 16px; height: 16px; margin: 0; }
.fp-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 8px; }
.fp-link { font: inherit; font-size: .85rem; background: none; border: 0; color: var(--brand); cursor: pointer; padding: 0; text-decoration: underline; }
.fp-file-input { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; pointer-events: none; }
.dropzone { position: relative; }
.dropzone.done { padding: 14px 20px; }
.dropzone.done strong { font-size: 1rem; }
.fp-filecard { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin-top: 14px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.fp-filecard img { width: 72px; height: 54px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); background: #fff; }
.fp-filecard-body { flex: 1 1 160px; display: grid; gap: 2px; min-width: 0; }
.fp-filecard-body span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-filecard-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fp-guide { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-top: 12px; }
@media (min-width: 720px) { .fp-guide { grid-template-columns: repeat(4, 1fr); } }
.fp-guide-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); font-size: .82rem; color: var(--text-2); }
.fp-guide-item svg { width: 34px; height: 34px; flex: none; color: #0a7a71; }
.fp-guide-item.no svg { color: #c0392b; }
.fp-guide-item strong { display: block; color: var(--text); font-size: .86rem; }
.dropzone.done + .fp-guide { display: none; }
.fp-recent { margin-top: 12px; }
.fp-recent-head { display: flex; justify-content: space-between; align-items: center; font-size: .88rem; margin-bottom: 6px; }
.fp-recent-list { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.fp-recent-item { flex: none; width: 112px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 6px; cursor: pointer; text-align: left; font: inherit; color: var(--text-2); }
.fp-recent-item:hover { border-color: var(--brand); }
.fp-recent-item img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; background: #fff; display: block; }
.fp-recent-item span { display: block; font-size: .72rem; margin-top: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* horizontal tool bars: one line, scroll sideways on phones */
.fp-bar { display: flex; align-items: center; gap: 8px; padding: 8px 2px; overflow-x: auto; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; scrollbar-width: thin; border-bottom: 1px solid var(--border); }
.fp-bar::-webkit-scrollbar { height: 6px; } .fp-bar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.fp-bar > * { flex: none; }
.fp-bar-wrap { flex-wrap: wrap; overflow: visible; }
.fp-bar-wrap > .fp-text { flex: 1 1 260px; }
.fp-bar-label { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); margin-right: 2px; display: inline-flex; align-items: center; gap: 6px; line-height: 1.1; }
.fp-bar-label small { display: inline-block; margin-left: -2px; }
.fp-bar-label small { font-size: .6rem; color: #0a7a71; letter-spacing: .04em; }
.fp-spacer { flex: 1 1 auto !important; min-width: 8px; }
.fp-options { margin-top: 14px; }
.fp-engines { gap: 10px; }
.fp-engine { display: flex; align-items: center; gap: 10px; font: inherit; text-align: left; padding: 8px 12px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.fp-engine strong { display: block; font-family: var(--font-head); font-size: .98rem; }
.fp-engine em { display: block; font-style: normal; font-size: .74rem; color: var(--text-2); }
.fp-engine b { margin-left: 6px; font-size: .8rem; padding: 3px 8px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); }
.fp-engine.active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.fp-engine.active b { background: var(--brand); color: #fff; }
.fp-engine-dot { width: 12px; height: 12px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex: none; }
.fp-engine-dot.atlas { background: linear-gradient(135deg, #7c3aed, #f59e0b); }
.fp-quality { margin-left: 4px; }
.fp-chip { font: inherit; font-size: .84rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.fp-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.fp-swatches { display: inline-flex; gap: 6px; align-items: center; margin-right: 10px; }
.fp-sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); background: var(--c, #ccc); cursor: pointer; padding: 0; flex: none; }
.fp-sw.none { background: linear-gradient(135deg, transparent 45%, #c0392b 45% 55%, transparent 55%), var(--surface); }
.fp-sw.active { box-shadow: 0 0 0 2px var(--brand); }
.fp-text { width: auto; min-width: 220px; padding: 8px 12px; font-size: .9rem; }
.fp-go { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 0 4px; }
.fp-go-btn { padding: 12px 22px; font-size: 1.02rem; }
.fp-go-note { font-size: .9rem; color: var(--text-2); }
.fp-result { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--border); }
.fp-styles { display: inline-flex; gap: 8px; }
.fp-tile { font: inherit; font-size: .76rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 8px 5px; min-width: 78px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; }
.fp-tile:hover { border-color: color-mix(in srgb, var(--brand) 60%, var(--border)); }
.fp-tile.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.fp-swatch { width: 54px; height: 24px; border-radius: 6px; display: grid; grid-template-columns: 1.2fr 1fr 1fr 1fr; overflow: hidden; border: 1px solid rgba(0,0,0,.12); }
.fp-swatch i { display: block; }
.fp-stage-wrap { position: relative; }
.fp-ai-compare { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); background: #e9e9ec; }
.fp-out { display: block; width: 100%; height: auto; }
.fp-ai-compare .fp-ai-plan { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; background: #fff; clip-path: inset(0 62% 0 0); pointer-events: none; }
.fp-ai-compare.nocompare .fp-ai-plan, .fp-ai-compare.nocompare .fp-compare-handle, .fp-ai-compare.nocompare .fp-compare-tag { display: none; }
.fp-ai-compare input[type=range] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.fp-ai-compare.nocompare input[type=range] { cursor: default; pointer-events: none; }
.fp-ai-compare.picking input[type=range] { cursor: crosshair; pointer-events: auto; }
.fp-ai-compare.picking .fp-ai-plan, .fp-ai-compare.picking .fp-compare-handle { display: none; }
.fp-compare-handle { position: absolute; top: 0; bottom: 0; width: 3px; background: var(--brand); left: 38%; pointer-events: none; box-shadow: 0 0 0 1px rgba(255,255,255,.6); z-index: 2; }
.fp-compare-handle::after { content: '⇄'; position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 16px; font-weight: 700; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.fp-compare-tag { position: absolute; top: 10px; z-index: 2; pointer-events: none; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: rgba(0,0,0,.55); color: #fff; }
.fp-compare-tag.left { left: 10px; } .fp-compare-tag.right { right: 10px; background: var(--brand); }
.fp-pick-hint { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); z-index: 3; pointer-events: none; font-size: .82rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,.65); color: #fff; white-space: nowrap; }
.fp-popover { position: absolute; z-index: 6; width: 290px; max-width: calc(100% - 16px); background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow); padding: 12px; display: grid; gap: 8px; }
.fp-pop-head { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.fp-pop-from { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); display: inline-block; }
.fp-popover input[type=color] { width: 44px; height: 30px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; }
.fp-pop-sw { display: flex; flex-wrap: wrap; gap: 6px; }
.fp-versions { display: flex; gap: 8px; overflow-x: auto; padding: 10px 0 2px; }
.fp-versions:empty { display: none; }
.fp-ai-version { flex: none; width: 84px; border: 2px solid var(--border); border-radius: 8px; padding: 2px; background: none; cursor: pointer; font: inherit; color: var(--text-2); }
.fp-ai-version img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; display: block; }
.fp-ai-version span { display: block; font-size: .66rem; text-align: center; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fp-ai-version.active { border-color: var(--brand); }
.fp-refine { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; background: var(--surface); display: grid; gap: 10px; }
.fp-refine-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.fp-ai-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.fp-ai-chips .fp-btn { font-size: .8rem; padding: 5px 10px; flex: none; }
.fp-ai-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: end; }
.fp-ai-form textarea { width: 100%; margin: 0; }
.fp-refine-actions { margin: 0; }
.fp-atlas-up { border-color: #7c3aed; color: #7c3aed; }
.fp-ai-thread { display: grid; gap: 6px; max-height: 200px; overflow: auto; }
.fp-ai-thread:empty { display: none; }
.fp-ai-msg { font-size: .88rem; padding: 8px 11px; border-radius: 10px; max-width: 92%; }
.fp-ai-msg.you { background: color-mix(in srgb, var(--brand) 10%, var(--surface)); justify-self: end; }
.fp-ai-msg.bot { background: var(--bg-2); justify-self: start; color: var(--text-2); }
.fp-engines-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .fp-engines-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) {
  .tool-panel { padding: 14px; border-radius: 14px; }
  .fp-go { position: sticky; bottom: 0; z-index: 5; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); margin: 0 -14px; padding: 10px 14px; border-top: 1px solid var(--border); }
  .fp-go-btn { flex: 1 1 100%; }
  .fp-ai-form { grid-template-columns: 1fr; }
  .fp-engine em { display: none; }
  .fp-text { min-width: 0; width: 100%; }
}
[hidden] { display: none !important; }

/* icon set (exclusive, uniform 2px stroke): <i class="fp-ic" data-i="name"></i> */
.fp-ic { display: inline-block; width: 16px; height: 16px; flex: none; vertical-align: -3px; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.fp-bar-label .fp-ic, .fp-inline > .fp-ic { width: 15px; height: 15px; opacity: .85; }
.fp-ic[data-i="engine"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M13 2L4 14h7l-1 8 9-12h-7z%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="quality"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l9 9-9 9-9-9z%22/%3E%3Cpath d=%22M8 12h8%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="look"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l1.8 5.2L19 10l-5.2 1.8L12 17l-1.8-5.2L5 10l5.2-1.8z%22/%3E%3Cpath d=%22M19 17l.7 2 2 .7-2 .7-.7 2-.7-2-2-.7 2-.7z%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="accent"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11z%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="background"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M3 15l5-5 4 4 3-3 6 6%22/%3E%3Ccircle cx=%2216%22 cy=%228%22 r=%221.4%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="floors"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%223%22 width=%2218%22 height=%2218%22 rx=%222%22/%3E%3Cpath d=%22M3 9h18M3 15h18M9 3v6M15 9v6M9 15v6%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="bedrooms"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 18v-8M21 18v-4H3M21 14v-3a2 2 0 0 0-2-2h-8v5%22/%3E%3Cpath d=%22M3 10h4a2 2 0 0 1 2 2v2%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="balconies"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 20h18M4 20v-8M8 20v-8M12 20v-8M16 20v-8M20 20v-8M3 12h18M6 12V8h12v4%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="walls"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%225%22 width=%2218%22 height=%2214%22/%3E%3Cpath d=%22M3 10h18M3 14.5h18M8 5v5M16 5v5M12 10v4.5M8 14.5V19M16 14.5V19%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="shadows"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%224%22 y=%224%22 width=%2211%22 height=%2211%22 rx=%222%22/%3E%3Cpath d=%22M9 19.5h8.5a2 2 0 0 0 2-2V9%22 stroke-dasharray=%223 2%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="labels"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12V5a2 2 0 0 1 2-2h7l9 9-9 9z%22/%3E%3Ccircle cx=%227.5%22 cy=%227.5%22 r=%221.2%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="people"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Ccircle cx=%2212%22 cy=%228%22 r=%223.5%22/%3E%3Cpath d=%22M5 20a7 7 0 0 1 14 0%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="reference"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%224%22 width=%2218%22 height=%2216%22 rx=%223%22/%3E%3Cpath d=%22M7 16l3-3 3 3 2-2 2 2%22/%3E%3Ccircle cx=%229%22 cy=%229%22 r=%221.4%22/%3E%3Cpath d=%22M17 7h3M18.5 5.5v3%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="title"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M5 6h14M12 6v12M9 18h6%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="prompt"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M4 5h16v10H9l-5 4z%22/%3E%3Cpath d=%22M8 9h8M8 12h5%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="recolour"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3s6 6.5 6 11a6 6 0 0 1-12 0c0-4.5 6-11 6-11z%22/%3E%3Cpath d=%22M9 14a3 3 0 0 0 3 3%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="compare"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v18M4 7h4M4 12h4M4 17h4M16 7h4M16 12h4M16 17h4%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="undo"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M9 14L4 9l5-5%22/%3E%3Cpath d=%22M4 9h10a5 5 0 0 1 0 10h-3%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="reset"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12a9 9 0 1 0 3-6.7%22/%3E%3Cpath d=%22M3 4v5h5%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="download"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3v12M7 10l5 5 5-5M4 20h16%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="fullsize"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M15 3h6v6M9 21H3v-6M21 3l-7 7M3 21l7-7%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="save"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2.8 5.7 6.2.9-4.5 4.4 1 6.2L12 17.3 6.5 20.2l1-6.2L3 9.6l6.2-.9z%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="plus"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 5v14M5 12h14%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="badge"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%227%22 width=%2218%22 height=%2210%22 rx=%222%22/%3E%3Cpath d=%22M7 12h10%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="picker"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 21l3-1 10-10-2-2L4 18z%22/%3E%3Cpath d=%22M14 4l3-1 4 4-1 3-6-6z%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="eyedrop"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 22c-3 0-5-2-5-5 0-3 5-9 5-9s5 6 5 9c0 3-2 5-5 5z%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="reuse"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M3 12a9 9 0 0 1 15.5-6.3L21 8%22/%3E%3Cpath d=%22M21 3v5h-5%22/%3E%3Cpath d=%22M21 12a9 9 0 0 1-15.5 6.3L3 16%22/%3E%3Cpath d=%22M3 21v-5h5%22/%3E%3C/svg%3E"); }
.fp-ic[data-i="ai"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Cpath d=%22M12 3l2 5 5 2-5 2-2 5-2-5-5-2 5-2z%22/%3E%3C/svg%3E"); }

/* ---- floor plan tool v4: theme-reversed hovers, bold active states, side-panel Studio, tooltips ---- */
.fp-btn, .fp-chip, .fp-engine, .fp-tile, .fp-sw, .fp-inline select, .fp-ai-version, .fp-recent-item, .fp-seg button { transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.fp-btn:not(:disabled):hover, .fp-chip:hover, .fp-inline select:hover, .fp-seg button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.fp-btn.active:hover, .fp-btn[aria-pressed="true"]:hover, .fp-chip.active:hover { background: var(--brand-ink); border-color: var(--brand-ink); color: #fff; }
.fp-chip.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 12px color-mix(in srgb, var(--brand) 35%, transparent); }
.fp-chip.active::before, .fp-btn.active::before, .fp-btn[aria-pressed="true"]::before { content: '✓ '; font-weight: 800; }
.fp-engine:hover { border-color: var(--text); background: color-mix(in srgb, var(--text) 6%, var(--surface)); }
.fp-engine.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); position: relative; }
.fp-engine.active::after { content: 'Selected'; position: absolute; top: -9px; right: 10px; font-size: .6rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 999px; background: var(--brand); color: #fff; }
.fp-engine b { white-space: nowrap; }
.fp-sw { position: relative; }
.fp-sw:hover { transform: scale(1.14); box-shadow: 0 0 0 2px var(--text); }
.fp-sw.active { transform: scale(1.14); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand); }
.fp-sw.active::after { content: '✓'; position: absolute; inset: 0; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #fff; text-shadow: 0 0 2px rgba(0,0,0,.9), 0 0 4px rgba(0,0,0,.6); }
.fp-sw.none.active::after { color: var(--text); text-shadow: none; }
.fp-inline select { cursor: pointer; }
.fp-inline select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--ring); }
.fp-check { padding: 5px 9px; border: 1px solid var(--border); border-radius: 9px; cursor: pointer; }
.fp-check:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.fp-check:has(input:checked) { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, var(--surface)); }
.fp-check input { accent-color: var(--brand); }
.fp-tile.active { border-color: var(--brand); background: var(--brand); color: #fff; box-shadow: 0 4px 14px color-mix(in srgb, var(--brand) 35%, transparent); }
.fp-tile:hover:not(.active) { border-color: var(--text); background: var(--text); color: var(--bg); }
.fp-ai-version:hover { border-color: var(--text); }
.fp-ai-version.active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.fp-ai-version.active span { color: var(--brand-ink); font-weight: 700; }
.fp-btn-dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.fp-btn-dark:not(:disabled):hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.fp-mini { font-size: .78rem; padding: 4px 9px; }
/* ? tooltips */
.fp-info { width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); font: 700 .72rem/1 var(--font-body); cursor: help; padding: 0; display: inline-grid; place-items: center; flex: none; margin-left: -4px; }
.fp-info:hover, .fp-info:focus-visible { background: var(--text); color: var(--bg); border-color: var(--text); }
.fp-tipbox { position: fixed; z-index: 400; font-size: .76rem; line-height: 1.45; padding: 9px 11px; border-radius: 10px; background: var(--text); color: var(--bg); box-shadow: 0 10px 30px rgba(0,0,0,.25); pointer-events: none; }
.fp-tipbox::before { content: ''; position: absolute; left: var(--ax, 50%); top: -5px; width: 10px; height: 10px; background: var(--text); transform: translateX(-50%) rotate(45deg); }
.fp-tipbox.up::before { top: auto; bottom: -5px; }
/* reuse / saved styles */
.fp-reuse { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 14px; margin-bottom: 8px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); font-size: .9rem; }
.fp-reuse-ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1rem; font-weight: 700; flex: none; }
.fp-reuse-text { flex: 1 1 260px; }
.fp-recipes-list { display: inline-flex; gap: 6px; }
.fp-recipe { display: inline-flex; align-items: center; }
.fp-recipe .fp-chip { border-radius: 999px 0 0 999px; }
.fp-recipe-x { font: inherit; font-size: .8rem; padding: 7px 8px; border: 1px solid var(--border); border-left: 0; border-radius: 0 999px 999px 0; background: var(--surface); color: var(--muted); cursor: pointer; }
.fp-recipe-x:hover { background: #c0392b; color: #fff; border-color: #c0392b; }
/* reference images */
.fp-ref-add { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 8px; border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); cursor: pointer; font-size: .84rem; margin: 0; font-weight: 500; }
.fp-ref-add:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.fp-ref-add:hover .fp-ref-plus { background: var(--bg); color: var(--text); }
.fp-ref-add strong { display: block; font-size: .88rem; } .fp-ref-add em { display: block; font-style: normal; font-size: .72rem; opacity: .8; }
.fp-ref-plus { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 1.1rem; font-weight: 700; flex: none; }
.fp-ref-add.has { border-style: solid; }
.fp-ref-thumbs { display: inline-flex; gap: 6px; }
.fp-ref-thumb { position: relative; width: 48px; height: 44px; }
.fp-ref-thumb img { width: 48px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border); }
.fp-ref-thumb button { position: absolute; top: -6px; right: -6px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: var(--text); color: var(--bg); font-size: 12px; line-height: 1; cursor: pointer; padding: 0; }
.fp-ref-thumb button:hover { background: #c0392b; color: #fff; }
/* result: head, two-column grid, fitted stage, side panel */
.fp-result-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; margin-bottom: 10px; }
.fp-result-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.fp-result-title strong { font-family: var(--font-head); font-size: 1.15rem; }
.fp-pill-free, .fp-free { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, #0a7a71 16%, transparent); color: #0a7a71; vertical-align: middle; }
.fp-pill-paid { display: inline-block; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; vertical-align: middle; margin-left: 6px; }
.fp-result-grid { display: grid; gap: 14px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .fp-result-grid { grid-template-columns: minmax(0, 1fr) 312px; } .fp-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; } }
.fp-stage { display: flex; justify-content: center; padding: 8px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 14px; }
.fp-ai-compare { display: block; width: fit-content; max-width: 100%; margin: 0 auto; border-radius: 10px; }
.fp-out { display: block; max-width: 100%; max-height: min(78vh, 920px); width: auto; height: auto; }
.fp-compare-tag { opacity: 0; transition: opacity .15s ease; top: auto; bottom: 10px; }
.fp-ai-compare:hover .fp-compare-tag, .fp-ai-compare:active .fp-compare-tag { opacity: 1; }
.fp-side { display: grid; gap: 10px; }
.fp-side-sec { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; background: var(--surface); }
.fp-side-sec h4 { margin: 0 0 8px; font-size: .8rem; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.fp-side-sec h4 .fp-info { margin-left: auto; }
.fp-side-btns { display: grid; gap: 6px; }
.fp-side-btns .fp-btn { text-align: left; }
.fp-side-btns.row { grid-template-columns: repeat(3, 1fr); } .fp-side-btns.row .fp-btn { text-align: center; padding-inline: 6px; }
.fp-side .fp-styles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fp-side .fp-tile { min-width: 0; width: 100%; padding: 6px 4px 5px; }
.fp-side .fp-swatch { width: 100%; max-width: 64px; }
.fp-slider { display: flex; align-items: center; gap: 8px; font-size: .74rem; color: var(--text-2); }
.fp-slider input { flex: 1; padding: 0; border: 0; background: none; accent-color: var(--brand); }
.fp-badge-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.fp-side-label { font-size: .74rem; color: var(--text-2); width: 44px; flex: none; }
.fp-seg { display: inline-flex; border: 1px solid var(--border); border-radius: 9px; overflow: hidden; }
.fp-seg button { font: inherit; font-size: .82rem; font-weight: 600; padding: 5px 9px; border: 0; border-right: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; min-width: 32px; }
.fp-seg button:last-child { border-right: 0; }
.fp-seg button.active { background: var(--brand); color: #fff; }
.fp-seg-sw button { width: 30px; height: 28px; padding: 0; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); position: relative; }
.fp-seg-sw button[data-theme="plain"] { background: repeating-linear-gradient(45deg, #ddd 0 4px, #fff 4px 8px); }
.fp-seg-sw button.active::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 3px var(--brand); }
.fp-seg-sw button:hover { filter: brightness(.85); }
@media (max-width: 979px) { .fp-out { max-height: 70vh; } }

/* ---- account: header pill, sign-in modal, toast ---- */
#cdh-account { display: inline-flex; align-items: center; }
.acct-btn { font: inherit; font-size: .9rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.acct-btn:hover { border-color: var(--brand); }
.acct-pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 5px 3px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-size: .82rem; font-weight: 500; }
.acct-pill:hover { text-decoration: none; border-color: var(--brand); }
.acct-credits { color: var(--brand-ink); font-family: var(--font-head); font-size: .95rem; font-weight: 600; }
.acct-label { color: var(--muted); font-weight: 500; }
.acct-pill img, .acct-avatar { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; font-size: .75rem; }
.acct-wrap { margin-left: auto; margin-right: 10px; display: inline-flex; }
@media (min-width: 900px) { .acct-wrap { margin-left: 0; order: 2; } .site-nav { order: 1; margin-left: auto; } }
.acct-modal { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: 16px; }
.acct-backdrop { position: absolute; inset: 0; background: rgba(5, 10, 25, .55); backdrop-filter: blur(3px); }
.acct-card { position: relative; width: min(440px, 100%); background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,.35); padding: 24px; }
.acct-card h2 { font-size: 1.3rem; margin: 0 0 6px; padding-right: 32px; }
.acct-x { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 20px; cursor: pointer; }
.acct-provider { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font-weight: 600; margin-top: 12px; }
.acct-provider:hover { text-decoration: none; border-color: var(--brand); }
.acct-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .8rem; margin: 14px 0 8px; }
.acct-or::before, .acct-or::after { content: ''; flex: 1; height: 1px; background: var(--border); }
.acct-form { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.acct-form .btn { padding: 10px 16px; }
.acct-fine { margin: 12px 0 0; }
.acct-msg { min-height: 1.2em; margin: 10px 0 0; font-size: .9rem; color: var(--text-2); }
.acct-msg.err { color: #c0392b; }
body.acct-open { overflow: hidden; }
.acct-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 300; max-width: min(520px, calc(100% - 32px)); background: #0b1220; color: #fff; padding: 12px 18px; border-radius: 12px; font-size: .92rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
.acct-toast.on { opacity: 1; transform: translate(-50%, 0); }

/* ---- account page ---- */
.acct-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .acct-grid { grid-template-columns: 1.1fr 1fr; } }
.acct-balance { font-family: var(--font-head); font-size: 3rem; font-weight: 700; line-height: 1; color: var(--brand-ink); }
.packs { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); margin-top: 10px; }
@media (min-width: 560px) { .packs { grid-template-columns: repeat(4, 1fr); } }
.pack { font: inherit; text-align: left; border: 1.5px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); color: var(--text); cursor: pointer; display: grid; gap: 2px; position: relative; }
.pack:hover { border-color: var(--brand); }
.pack strong { font-family: var(--font-head); font-size: 1.25rem; }
.pack span { font-size: .8rem; color: var(--text-2); }
.pack.best { border-color: var(--brand); }
.pack.best::after { content: 'Best value'; position: absolute; top: -9px; right: 10px; font-size: .64rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--brand); color: #fff; }
.ledger { width: 100%; border-collapse: collapse; font-size: .88rem; }
.ledger th, .ledger td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.ledger td.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ledger .plus { color: #0a7a71; font-weight: 600; } .ledger .minus { color: var(--text-2); }

.acct-invoices { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: .9rem; }

/* recolour popover: swatches + any-colour picker + hex + eyedropper */
.fp-pop-head { flex-wrap: wrap; }
.fp-pop-to { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); display: inline-block; }
.fp-pop-custom { position: relative; display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; padding: 4px 10px 4px 4px; border: 1px solid var(--border); border-radius: 999px; cursor: pointer; margin: 0; }
.fp-pop-custom:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.fp-pop-custom .fp-pop-wheel { width: 22px; height: 22px; border-radius: 50%; background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--border); }
.fp-pop-custom input[type=color] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; padding: 0; border: 0; }
.fp-pop-hex { width: 84px; padding: 5px 8px; font-size: .8rem; font-family: ui-monospace, Menlo, Consolas, monospace; text-transform: lowercase; }
.fp-pop-eye { font-size: .8rem; padding: 5px 10px; }
.fp-pop-sw .fp-sw { width: 24px; height: 24px; }
/* wallet strip, segmented toggles, field icons, wrap bars on desktop */
.fp-wallet { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--bg-2); font-size: .84rem; color: var(--text-2); }
.fp-wallet:empty { display: none; }
.fp-wallet b { color: var(--text); font-family: var(--font-head); font-size: .98rem; }
.fp-wallet-bal { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-ink); font-weight: 600; }
.fp-wallet-sep { color: var(--muted); }
.fp-wallet-low, .fp-wallet-low b { color: #c0392b; }
.fp-wallet .fp-btn { margin-left: 4px; }
.fp-refine-head .fp-wallet { flex-basis: 100%; }
.fp-toggle .fp-seg button { font-size: .8rem; padding: 5px 10px; }
.fp-field { display: inline-flex; align-items: center; gap: 8px; margin: 0; flex: 1 1 260px; font-weight: 500; color: var(--text-2); }
.fp-field .fp-text { flex: 1; min-width: 0; }
.fp-engine .fp-ic, .fp-btn .fp-ic { width: 15px; height: 15px; }
.fp-side-sec h4 .fp-ic { width: 15px; height: 15px; }
.fp-ref-plus .fp-ic { width: 16px; height: 16px; background: #fff; }
.fp-reuse-ic .fp-ic { background: #fff; }
@media (min-width: 760px) { .fp-bar { flex-wrap: wrap; overflow: visible; } .fp-bar::-webkit-scrollbar { display: none; } }
.fp-inline input[type=radio] { width: 16px; height: 16px; margin: 0; accent-color: var(--brand); }
.fp-popover .fp-inline { justify-content: flex-start; }

/* floor plan redraw: style chips carry a three-tone swatch */
.fp-chip-style { display: inline-flex; align-items: center; gap: 7px; padding-left: 7px; }
.fp-stylesw { width: 22px; height: 16px; border-radius: 4px; border: 1px solid rgba(0,0,0,.15); background: linear-gradient(90deg, var(--a) 0 30%, var(--b) 30% 65%, var(--c) 65%); flex: none; }
.fp-chip.active .fp-stylesw { border-color: rgba(255,255,255,.7); }

/* live progress inside the refine box + dimmed stage while the AI works */
.fp-ai-msg.working { display: inline-flex; align-items: center; gap: 10px; border: 1px dashed color-mix(in srgb, var(--brand) 50%, var(--border)); background: color-mix(in srgb, var(--brand) 6%, var(--surface)); color: var(--text); }
.fp-ai-msg.working .fp-spinner { width: 16px; height: 16px; border-width: 2px; }
.fp-ai-msg.working .s { font-variant-numeric: tabular-nums; }
.fp-stage { position: relative; }
.fp-stage.busy::after { content: 'Rendering… the new version appears here'; position: absolute; inset: 8px; border-radius: 10px; background: rgba(11, 18, 32, .45); color: #fff; display: grid; place-items: center; font-weight: 600; font-size: .95rem; backdrop-filter: blur(1.5px); z-index: 4; pointer-events: none; }
.btn.working { opacity: .7; pointer-events: none; }
.btn.working::before { content: ''; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(255,255,255,.45); border-top-color: #fff; animation: fp-spin .8s linear infinite; }

/* ---- image tools (batch: compressor, converter, resizer, bulk) ---- */
.it-results { margin-top: 18px; padding-top: 14px; border-top: 2px solid var(--border); }
.it-summary { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px 16px; margin-bottom: 10px; }
.it-summary-stats { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: .95rem; color: var(--text-2); }
.it-summary-stats b { color: var(--text); font-family: var(--font-head); font-size: 1.05rem; }
.it-saved { font-weight: 800; color: #0a7a71; background: color-mix(in srgb, #0a7a71 14%, transparent); padding: 2px 10px; border-radius: 999px; }
.it-list { display: grid; gap: 8px; }
.it-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.it-thumb { width: 64px; height: 52px; object-fit: cover; border-radius: 8px; background: repeating-conic-gradient(#d8dbe2 0 25%, #fff 0 50%) 0 0 / 12px 12px; border: 1px solid var(--border); }
.it-meta { min-width: 0; display: grid; gap: 2px; }
.it-meta strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.it-meta span b { color: var(--text); }
.it-badge { font-size: .76rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; background: var(--bg-2); color: var(--text-2); white-space: nowrap; }
.it-badge.good { background: color-mix(in srgb, #0a7a71 14%, transparent); color: #0a7a71; }
.it-badge.warn { background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; }
.it-actions { display: inline-flex; gap: 6px; }
.it-compare { margin-top: 14px; border: 1px solid var(--border); border-radius: 12px; padding: 12px; background: var(--surface); }
.it-compare-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-bottom: 10px; }
.it-compare-head strong { flex: 1 1 auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.it-compare .fp-out { max-height: min(70vh, 820px); background: repeating-conic-gradient(#d8dbe2 0 25%, #fff 0 50%) 0 0 / 16px 16px; }
.it-compare .fp-ai-plan { background: repeating-conic-gradient(#d8dbe2 0 25%, #fff 0 50%) 0 0 / 16px 16px; object-fit: fill; }
.it-sw-custom { position: relative; overflow: hidden; background: conic-gradient(#f00, #ff0, #0f0, #0ff, #00f, #f0f, #f00); cursor: pointer; margin: 0; }
.it-sw-custom input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; padding: 0; border: 0; }
.it-sw-custom.active { background: var(--c, #2f6bff); }
.fp-inline input[type=number] { width: auto; padding: 5px 8px; font-size: .88rem; }
.fp-inline input[type=range] { width: 130px; accent-color: var(--brand); }
@media (max-width: 640px) { .it-row { grid-template-columns: 52px minmax(0, 1fr); } .it-thumb { width: 52px; height: 44px; } .it-badge { grid-column: 2; justify-self: start; } .it-actions { grid-column: 1 / -1; justify-content: flex-end; } }

/* ---- photo editor ---- */
.ed-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 12px; margin: 14px 0 10px; }
.ed-stagebox { touch-action: none; }
.ed-canvas { max-height: min(78vh, 920px); cursor: crosshair; }
.ed-tabs { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.ed-tabs button { font: inherit; font-size: .66rem; font-weight: 600; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); color: var(--text-2); cursor: pointer; }
.ed-tabs button .fp-ic { width: 15px; height: 15px; }
.ed-tabs button:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.ed-tabs button.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.ed-slider { margin-top: 4px; } .ed-slider span { width: 74px; flex: none; } .ed-slider b { width: 30px; text-align: right; font-size: .74rem; }
.fp-slider b { font-size: .74rem; }
.ed-filters { grid-template-columns: repeat(3, 1fr) !important; }
.ed-ftile canvas { width: 100%; height: auto; border-radius: 6px; display: block; }
.ed-layer { display: flex; align-items: center; gap: 6px; padding: 5px 6px; border: 1px solid var(--border); border-radius: 8px; margin-bottom: 4px; font-size: .82rem; cursor: pointer; background: var(--surface); }
.ed-layer.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 9%, var(--surface)); }
.ed-layer-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ed-layer button { font: inherit; font-size: .8rem; width: 24px; height: 24px; border-radius: 6px; border: 1px solid transparent; background: none; color: var(--text-2); cursor: pointer; padding: 0; }
.ed-layer button:hover { background: var(--text); color: var(--bg); }
.ed-side .fp-swatches { flex-wrap: wrap; }
.ed-side .fp-sw { width: 22px; height: 22px; }
.ed-side textarea { font-size: .9rem; }
[data-aspect].active { background: var(--brand); color: #fff; border-color: var(--brand); }
@media (max-width: 979px) { .ed-tabs { grid-template-columns: repeat(4, 1fr); } }
/* remove background */
.ed-canvas.checker { background: repeating-conic-gradient(#d8dbe2 0 25%, #fff 0 50%) 0 0 / 20px 20px; }
.ed-canvas.painting { cursor: cell; }
.rb-stage.busy::after { content: 'Finding the subject…'; }
.fp-progress-bar { transition: width .3s ease; }

/* ---- pdf tools ---- */
.pt-files { display: grid; gap: 8px; margin-top: 12px; }
.pt-file { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 8px 10px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); }
.pt-file[draggable=true] { cursor: grab; } .pt-file.dragging { opacity: .5; } .pt-file.over { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.pt-thumb { width: 56px; height: 72px; object-fit: cover; object-position: top; border-radius: 6px; border: 1px solid var(--border); background: #fff; }
.pt-file-body { min-width: 0; display: grid; gap: 2px; } .pt-file-body strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .92rem; }
.pt-file-actions { display: inline-flex; gap: 6px; }
.pt-add { font: inherit; font-weight: 600; padding: 12px; border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); color: var(--text); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.pt-add:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.pt-out { display: grid; gap: 8px; }
.pt-out.grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.pt-tile { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); padding: 8px; display: grid; gap: 6px; position: relative; }
.pt-tile img { width: 100%; aspect-ratio: 1 / 1.3; object-fit: contain; background: #fff; border-radius: 6px; border: 1px solid var(--border); }
.pt-tile-meta { display: grid; font-size: .74rem; } .pt-tile-meta span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.pt-tile .fp-btn { position: absolute; top: 14px; right: 14px; }
.pt-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); }
.pt-icon .fp-ic { width: 20px; height: 20px; }
@media (max-width: 640px) { .pt-file { grid-template-columns: 48px minmax(0, 1fr); } .pt-file-actions { grid-column: 1 / -1; justify-content: flex-end; } }

/* ---- header dropdowns: hover/focus on desktop, nested accordion on phones ---- */
.nav-item { position: relative; display: inline-flex; align-items: center; }
.nav-caret { display: none; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 300px; padding: 8px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,.22); opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s; z-index: 60; display: grid; gap: 2px; }
.nav-menu::before { content: ''; position: absolute; left: 0; right: 0; top: -10px; height: 10px; }   /* hover bridge so the menu does not close on the way down */
.nav-item:hover > .nav-menu, .nav-item:focus-within > .nav-menu { opacity: 1; visibility: visible; transform: translateY(0); transition-delay: 0s; }
.nav-menu-item { display: grid; grid-template-columns: auto 1fr auto; column-gap: 10px; padding: 8px 10px; border-radius: 9px; color: var(--text); text-decoration: none; font-size: .9rem; line-height: 1.25; align-items: start; }
.nav-menu-item span { font-weight: 600; grid-column: 2; } .nav-menu-item em { grid-column: 2; font-style: normal; font-size: .76rem; color: var(--muted); }
.nav-tool-ic { grid-row: 1 / span 2; grid-column: 1; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); margin-top: 1px; }
.nav-tool-ic svg { width: 18px; height: 18px; }
.nav-menu-item:hover .nav-tool-ic { background: color-mix(in srgb, var(--bg) 18%, transparent); color: var(--bg); }
.nav-menu-item[aria-current="page"] .nav-tool-ic { background: var(--brand); color: #fff; }
.nav-menu-item.soon .nav-tool-ic { background: var(--bg-2); color: var(--muted); }
.nav-menu-item b { grid-row: 1 / span 2; grid-column: 3; align-self: center; font-size: .62rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; background: var(--bg-2); color: var(--muted); border: 1px solid var(--border); }
.nav-menu-item:hover { background: var(--text); color: var(--bg); text-decoration: none; } .nav-menu-item:hover em { color: color-mix(in srgb, var(--bg) 70%, transparent); } .nav-menu-item:hover b { background: color-mix(in srgb, var(--bg) 20%, transparent); color: var(--bg); border-color: transparent; }
.nav-menu-item[aria-current="page"] { background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); }
.nav-menu-item.soon { color: var(--muted); cursor: default; } .nav-menu-item.soon:hover { background: var(--bg-2); color: var(--muted); } .nav-menu-item.soon:hover em { color: var(--muted); }
.nav-menu-all { display: block; margin-top: 4px; padding: 8px 10px; border-top: 1px solid var(--border); font-size: .82rem; font-weight: 600; color: var(--brand-ink); }
.nav-menu-all:hover { text-decoration: none; background: var(--text); color: var(--bg); border-radius: 0 0 9px 9px; }
@media (max-width: 899px) {
  .site-nav.open { gap: 2px; }
  .nav-item { display: grid; grid-template-columns: 1fr auto; align-items: center; width: 100%; }
  .nav-item > .nav-top { width: 100%; border-radius: 10px; }
  .nav-caret { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; margin-left: 6px; transition: transform .18s ease; }
  .nav-caret[aria-expanded="true"] { transform: rotate(180deg); background: var(--brand); color: #fff; border-color: var(--brand); }
  .nav-menu { position: static; grid-column: 1 / -1; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 2px solid var(--border); border-radius: 0; margin: 2px 0 6px 18px; padding: 2px 0 2px 10px; min-width: 0; display: none; }
  .nav-item.open > .nav-menu, .nav-item.current.auto-open > .nav-menu { display: grid; }
  .nav-item:hover > .nav-top { color: var(--text-2); background: transparent; } .nav-item:hover > .nav-top .nav-ic { background: color-mix(in srgb, var(--brand) 9%, transparent); color: var(--brand-ink); }
  .nav-item.current > .nav-top, .nav-item.current:hover > .nav-top { color: var(--brand-ink); background: color-mix(in srgb, var(--brand) 8%, transparent); }
  .nav-item.current:hover > .nav-top .nav-ic { background: var(--brand); color: #fff; }
  .site-nav .theme-toggle { margin-top: 6px; }
}

/* ---- video tools ---- */
.vt-info { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; margin: 14px 0 10px; font-size: .88rem; color: var(--text-2); }
.vt-info strong { color: var(--text); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vt-stage { position: relative; background: #000; }
.vt-video { display: block; width: 100%; max-height: min(70vh, 820px); background: #000; border-radius: 10px; }
.vt-overlay { position: absolute; inset: 8px; pointer-events: none; }
.vt-timeline { margin-top: 10px; overflow: hidden; }   /* keeps the selection's dimming shadow on the filmstrip, not over the whole page */
.vt-strip { display: grid; grid-template-columns: repeat(12, 1fr); height: 54px; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); background: var(--bg-2); }
.vt-strip img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vt-range { position: relative; height: 26px; margin-top: -54px; }
.vt-sel { position: absolute; top: 0; height: 54px; border: 3px solid var(--brand); border-radius: 8px; box-shadow: 0 0 0 9999px rgba(0,0,0,.45); clip-path: inset(0 -100vw); pointer-events: none; z-index: 1; }
.vt-range input[type=range] { position: absolute; left: 0; right: 0; top: 54px; width: 100%; margin: 0; height: 26px; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; z-index: 2; }
.vt-range input[type=range]::-webkit-slider-thumb { pointer-events: auto; -webkit-appearance: none; width: 18px; height: 26px; border-radius: 6px; background: var(--brand); border: 2px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); cursor: ew-resize; }
.vt-range input[type=range]::-moz-range-thumb { pointer-events: auto; width: 18px; height: 26px; border-radius: 6px; background: var(--brand); border: 2px solid #fff; cursor: ew-resize; }
.vt-times { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 58px; font-size: .84rem; }
.vt-times label { display: inline-flex; align-items: center; gap: 6px; margin: 0; font-weight: 500; }
.vt-t { width: 84px; min-width: 0; padding: 5px 8px; font-size: .84rem; font-variant-numeric: tabular-nums; text-align: center; }
.vt-out { display: block; width: 100%; max-height: 50vh; border-radius: 8px; background: #000; margin-top: 6px; }
img.vt-out { background: var(--bg-2); object-fit: contain; }
.vt-grid .fp-side { position: static; max-height: none; }
@media (min-width: 980px) { .vt-grid .fp-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow: auto; } }

.fp-ref-builtin { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px 4px 4px; border: 1.5px solid color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); font-size: .78rem; font-weight: 600; line-height: 1.15; }
.fp-ref-builtin img { width: 56px; height: 44px; object-fit: cover; border-radius: 8px; }
.fp-ref-builtin em { font-style: normal; font-weight: 500; color: var(--muted); }

/* Developer Version: locked house style marker on the Look chip */
.fp-chip .fp-lock{font-size:.7em;margin-left:4px;opacity:.75;font-style:normal}

/* Title badge fields before Generate: headline + sub-headline */
.fp-field-title { flex: 1 1 300px; }
.fp-field-title .fp-side-label { white-space: nowrap; flex: 0 0 auto; width: auto; font-size: .8rem; }

/* quick-insert chips (centre dot, squared) beside badge text fields */
.fp-ins-wrap { display: flex; align-items: center; gap: 4px; width: 100%; }
.fp-ins-wrap .fp-text { flex: 1; min-width: 0; }
.fp-ins { display: inline-flex; gap: 3px; flex: none; }
.fp-ins button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line); background: var(--bg-2, transparent); color: var(--text-2); font-size: .95rem; line-height: 1; cursor: pointer; padding: 0; }
.fp-ins button:hover { color: var(--text); border-color: var(--accent, #4f7cff); }

/* breadcrumbs + related tools (SEO internal links) */
.crumbs { padding: 14px 20px 0; font-size: .84rem; color: var(--text-2); }
.crumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs li + li::before { content: "›"; margin-right: 6px; opacity: .55; }
.crumbs a { color: var(--text-2); text-decoration: none; } .crumbs a:hover { color: var(--text); text-decoration: underline; }
.more-tools { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.more-tools h2 { font-size: 1.15rem; margin: 0 0 14px; }
.more-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.more-grid a { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--text); background: var(--bg-2, transparent); transition: border-color .15s, transform .15s; }
.more-grid a:hover { border-color: var(--accent, #4f7cff); transform: translateY(-1px); }
.more-grid strong { font-size: .95rem; font-weight: 600; } .more-grid span { font-size: .8rem; color: var(--text-2); line-height: 1.35; }

/* guides */
.guide-answer { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--accent, #4f7cff); border-radius: 12px; background: var(--bg-2, transparent); margin: 6px 0 10px; }
.guide-answer p:first-child { margin-top: 0; font-size: 1.05rem; line-height: 1.6; }
.guide-answer p:last-child { margin-bottom: 0; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.guide-related { padding-left: 1.2em; } .guide-related li { margin: .35em 0; }
.guide-index span { -webkit-line-clamp: 3; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }

/* image → PDF */
.ip-preview { width: 100%; height: min(70vh, 720px); border: 1px solid var(--border); border-radius: 12px; background: #fff; }
.pt-file.over { outline: 2px dashed var(--accent, #4f7cff); }
.pt-file.dragging { opacity: .5; }

.wp-ico { display:inline-flex; align-items:center; justify-content:center; font-weight:700; font-size:1.3rem; color:#fff; background:#2b579a; }

/* Home hero: before/after pair + fidelity strip */
.hero-fp h1 { max-width: 22ch; }
.hero-pair { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; max-width: 980px; margin: 36px auto 0; }
.hero-pair-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow); }
.hero-pair-item img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; border-radius: calc(var(--radius) - 6px); background: #fff; }
.hero-pair-item figcaption { font-size: .85rem; color: var(--text-2); margin-top: 8px; }
.hero-pair-arrow { color: var(--brand-ink); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 14%, transparent); }
@media (max-width: 640px) { .hero-pair { grid-template-columns: 1fr; gap: 8px; } .hero-pair-arrow { transform: rotate(90deg); margin: 0 auto; width: 36px; height: 36px; } }
.fidelity-strip { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; padding: 0; margin: 22px auto 0; max-width: 820px; }
.fidelity-strip li { font-size: .82rem; color: var(--text-2); padding: 5px 11px 5px 26px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface); position: relative; }
.fidelity-strip li::before { content: ""; position: absolute; left: 10px; top: 50%; width: 10px; height: 6px; border-left: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: translateY(-65%) rotate(-45deg); }
/* Plan fidelity block (tool page + floor-plan landing pages) */
.fidelity { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.fidelity h2 { margin: 0 0 6px; }
.fidelity .fidelity-tag { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--brand-ink); margin-bottom: 8px; }
.fidelity p { color: var(--text-2); margin: 0 0 8px; }
.fidelity-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; }
.fidelity-list li { padding-left: 24px; position: relative; font-size: .95rem; }
.fidelity-list li::before { content: ""; position: absolute; left: 4px; top: .55em; width: 10px; height: 6px; border-left: 2px solid var(--brand-ink); border-bottom: 2px solid var(--brand-ink); transform: rotate(-45deg); }
.fidelity-quote { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-top: 10px !important; }
@media (max-width: 720px) { .fidelity { grid-template-columns: 1fr; } }
/* Floor-plan landing pages */
.fpl-cta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 22px; align-items: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.fpl-cta .hero-pair { margin: 0; gap: 10px; }
.fpl-cta .hero-pair-item { padding: 6px; box-shadow: none; }
.fpl-cta .hero-pair-item figcaption { font-size: .78rem; }
.fpl-cta h2 { margin: 0 0 8px; }
.fpl-cta p { color: var(--text-2); }
.fpl-cta .small { margin-top: 8px; }
@media (max-width: 760px) { .fpl-cta { grid-template-columns: 1fr; } }
.fpl-steps { counter-reset: s; }

/* feedback bar inside result panels */
.cdh-fb { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); border: 1px dashed var(--border); font-size: .88rem; color: var(--text-2); }
.cdh-fb button { font-size: 1.05rem; line-height: 1; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; }
.cdh-fb button:hover { border-color: var(--brand); transform: translateY(-1px); }

/* ---- admin dashboard ---- */
.adm-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.adm-controls { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.adm-kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin-bottom: 16px; }
@media (max-width: 640px) { .adm-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .adm-kpi { padding: 12px; gap: 8px; } .adm-kpi-ic { width: 30px; height: 30px; } .adm-kpi strong { font-size: 1.3rem; } }
.adm-kpi { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; cursor: default; }
.adm-kpi:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: 0 14px 34px rgba(20, 40, 90, .18); }
.adm-kpi:hover .adm-kpi-ic { background: var(--brand); color: #fff; }
.adm-kpi.good:hover .adm-kpi-ic { background: #19b48c; } .adm-kpi.warm:hover .adm-kpi-ic { background: #e9a93b; } .adm-kpi.bad:hover .adm-kpi-ic { background: #f0647e; }
.adm-kpi-ic { width: 38px; height: 38px; flex: none; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 12%, transparent); color: var(--brand-ink); transition: background .18s ease, color .18s ease; }
.adm-kpi-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.adm-kpi.good .adm-kpi-ic { background: color-mix(in srgb, #19b48c 16%, transparent); color: #0f8f6e; }
.adm-kpi.warm .adm-kpi-ic { background: color-mix(in srgb, #e9a93b 18%, transparent); color: #b7791f; }
.adm-kpi.bad .adm-kpi-ic { background: color-mix(in srgb, #f0647e 16%, transparent); color: #d0455f; }
.adm-kpi-label { display: block; font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.adm-kpi strong { display: block; font-family: var(--font-head); font-size: 1.55rem; line-height: 1.15; margin: 2px 0; }
.adm-kpi em { font-style: normal; font-size: .8rem; color: var(--text-2); }
.adm-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .adm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-span2, .adm-span3 { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .adm-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .adm-span2 { grid-column: span 2; } .adm-span3 { grid-column: 1 / -1; } }
.adm-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; box-shadow: var(--shadow); min-width: 0; transition: border-color .18s ease, box-shadow .18s ease; }
.adm-card:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: 0 12px 30px rgba(20, 40, 90, .14); }
.adm-hbar:hover .adm-hbar-track i { filter: brightness(1.12); } .adm-hbar { border-radius: 8px; padding: 2px 4px; margin: 0 -4px; transition: background .15s ease; } .adm-hbar:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.adm-table tbody tr { transition: background .15s ease; } .adm-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 7%, transparent); }
.adm-svg circle:hover { r: 5; }
.adm-legend span { cursor: default; }
.adm-card-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.adm-card-head h2 { font-size: 1.02rem; margin: 0; }
.adm-chart { min-height: 120px; }
.adm-svg text { fill: var(--text-2); font-family: var(--font-body, inherit); }
.adm-axis { font-size: 10.5px; }
.adm-grid-line { stroke: var(--border); stroke-dasharray: 2 4; }
.adm-donut-num { font-family: var(--font-head); font-size: 17px; font-weight: 700; fill: var(--text) !important; }
.adm-donut-wrap { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.adm-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: .8rem; color: var(--text-2); margin-bottom: 6px; }
.adm-legend-col { flex-direction: column; gap: 6px; }
.adm-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.adm-legend b { color: var(--text); margin-left: 4px; }
.adm-legend em { font-style: normal; color: var(--muted); margin-left: 4px; }
.adm-hbars { display: grid; gap: 7px; }
.adm-hbar { display: grid; grid-template-columns: minmax(80px, 38%) 1fr auto; align-items: center; gap: 10px; font-size: .86rem; }
.adm-hbar-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.adm-hbar-track { height: 10px; border-radius: 999px; background: color-mix(in srgb, var(--text) 7%, transparent); overflow: hidden; display: flex; }
.adm-hbar-track i { display: block; height: 100%; border-radius: 999px; min-width: 2px; }
.adm-hbar-split i { border-radius: 0; min-width: 0; }
.adm-hbar b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-hbar b em { font-style: normal; font-weight: 400; color: var(--muted); margin-left: 6px; font-size: .78rem; }
.adm-table-wrap { overflow: auto; max-height: 460px; }
.adm-table { width: 100%; border-collapse: collapse; font-size: .85rem; }
.adm-table th, .adm-table td { padding: 7px 8px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: top; }
.adm-table th { position: sticky; top: 0; background: var(--surface); font-size: .72rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); z-index: 1; }
.adm-table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adm-table td em { font-style: normal; font-size: .76rem; }
.adm-user strong { display: block; }
.adm-user span { font-size: .76rem; color: var(--muted); }
.adm-ok { color: #0f8f6e; font-weight: 600; }
.adm-bad { color: #d0455f; font-weight: 600; }
.adm-search { width: 100%; max-width: 360px; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font: inherit; }

/* tool icons on cards and related lists */
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.card .icon { width: 40px; height: 40px; border-radius: 11px; margin-bottom: 0; }
.card .icon svg { width: 21px; height: 21px; }
.card-top .pill { margin: 0; }
.more-grid a { position: relative; padding-left: 56px; }
.more-ic { position: absolute; left: 12px; top: 12px; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); }
.more-ic svg { width: 18px; height: 18px; }
.more-ic:empty { display: none; }
/* desktop: drawer chrome hidden; theme toggle label hidden */
.nav-drawer-head, .nav-backdrop { display: none; }
.theme-label { display: none; }
.site-nav .nav-plain-link { display: none; }
.site-nav .nav-plain-link.nav-blog { display: inline-flex; }   /* Blog stays in the desktop bar; Guides lives in the drawer and footer */
/* ---- phones and small tablets: slide-in drawer ---- */
@media (max-width: 899px) {
  .site-nav { display: flex; flex-direction: column; align-items: stretch; position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 90vw); background: var(--bg); border-left: 1px solid var(--border); box-shadow: -20px 0 60px rgba(0,0,0,.25); padding: 0 14px 24px; gap: 2px; overflow-y: auto; overscroll-behavior: contain; transform: translateX(104%); visibility: hidden; transition: transform .24s ease, visibility 0s linear .24s; z-index: 120; }
  .site-nav.open { display: flex; transform: none; visibility: visible; transition-delay: 0s; position: fixed; top: 0; left: auto; border-bottom: 0; }
  .nav-backdrop { display: block; position: fixed; inset: 0; background: rgba(5, 10, 25, .45); backdrop-filter: blur(2px); z-index: 110; opacity: 0; pointer-events: none; transition: opacity .2s ease; }
  .nav-backdrop.on { opacity: 1; pointer-events: auto; }
  body.nav-open { overflow: hidden; }
  body.nav-open .site-header { backdrop-filter: none; -webkit-backdrop-filter: none; }   /* a filtered ancestor would trap the fixed drawer inside the 64px header */
  .nav-drawer-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: 0; background: var(--bg); padding: 14px 2px 10px; margin-bottom: 6px; border-bottom: 1px solid var(--border); z-index: 1; }
  .nav-drawer-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; }
  .nav-close { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); display: grid; place-items: center; cursor: pointer; }
  .site-nav > a, .site-nav .nav-top { font-size: 1rem; padding: 11px 12px 11px 9px; border-radius: 12px; }
  .site-nav .nav-ic { width: 28px; height: 28px; border-radius: 8px; } .site-nav .nav-ic svg { width: 15px; height: 15px; }
  .site-nav .nav-plain-link { display: inline-flex; }
  .nav-menu-item { padding: 9px 8px; }
  .theme-toggle { width: auto; height: auto; border-radius: 12px; padding: 10px 12px; justify-content: flex-start; gap: 10px; display: inline-flex; align-items: center; margin-top: 10px; color: var(--text-2); font: inherit; font-size: .95rem; }
  .theme-label { display: inline; }
  .theme-toggle svg { width: 18px; height: 18px; }
  /* header: compact account pill so the avatar is never clipped */
  .header-inner { gap: 8px; }
  .brand-text { font-size: 1.02rem; }
  .acct-wrap { margin-right: 4px; }
  .acct-pill { padding: 3px 4px 3px 9px; gap: 5px; max-width: none; flex: none; }
  .acct-label { display: none; }
  .acct-pill img, .acct-avatar { flex: none; }
  .acct-credits::after { content: " cr"; font-family: var(--font-body, inherit); font-weight: 500; font-size: .74rem; color: var(--muted); }
}
@media (max-width: 380px) { .brand-text strong + span, .brand-text { font-size: .95rem; } .acct-btn { padding: 7px 10px; font-size: .84rem; } }

/* account menu under the credits pill */
.acct-wrap-menu { position: relative; display: inline-flex; }
.acct-pill { cursor: pointer; font: inherit; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 250px; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 18px 50px rgba(0,0,0,.22); z-index: 130; display: grid; gap: 2px; }
.acct-menu-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
.acct-menu-head strong { display: block; font-size: .95rem; } .acct-menu-head span { font-size: .78rem; color: var(--muted); word-break: break-all; }
.acct-menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border-radius: 9px; border: 0; background: none; color: var(--text); font: inherit; font-size: .9rem; font-weight: 500; text-align: left; cursor: pointer; text-decoration: none; }
.acct-menu-item svg { width: 18px; height: 18px; color: var(--brand-ink); flex: none; }
.acct-menu-item:hover { background: var(--text); color: var(--bg); text-decoration: none; } .acct-menu-item:hover svg { color: var(--bg); }
.acct-menu-item[data-admin] { font-weight: 600; }
.nav-user { display: none; }
@media (max-width: 899px) {
  html, body { overflow-x: clip; }
  .nav-user { display: grid; gap: 2px; margin: 8px 0 6px; padding: 10px 6px 8px; border-radius: 12px; background: color-mix(in srgb, var(--brand) 6%, var(--surface)); border: 1px solid var(--border); }
  .nav-user-head { display: flex; align-items: center; gap: 10px; padding: 2px 6px 10px; border-bottom: 1px solid var(--border); margin-bottom: 4px; }
  .nav-user-head img, .nav-user-head .acct-avatar { width: 34px; height: 34px; border-radius: 50%; font-size: .9rem; }
  .nav-user-head strong { display: block; font-size: .95rem; } .nav-user-head span { font-size: .76rem; color: var(--muted); }
  .acct-menu { position: fixed; left: 12px; right: 12px; top: 68px; min-width: 0; }
  /* admin page: controls wrap, range buttons fit */
  .adm-head { align-items: stretch; } .adm-controls .fp-seg { flex-wrap: wrap; }
  .adm-card { padding: 12px; } .adm-table { font-size: .8rem; } .adm-table th, .adm-table td { padding: 6px; }
}

/* --- blog --- */
.blog-filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.blog-filters a { font-size: .85rem; font-weight: 600; padding: 6px 12px; border: 1px solid var(--border, var(--line)); border-radius: 999px; text-decoration: none; color: var(--text-2); }
.blog-filters a[aria-current="page"], .blog-filters a:hover { border-color: var(--accent, #4f7cff); color: var(--text); }
.blog-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.blog-list a { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--border, var(--line)); border-radius: 14px; text-decoration: none; color: var(--text); background: var(--bg-2, transparent); transition: border-color .15s, transform .15s; height: 100%; }
.blog-list a:hover { border-color: var(--accent, #4f7cff); transform: translateY(-1px); }
.blog-list strong { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.3; }
.blog-list span { font-size: .88rem; color: var(--text-2); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.blog-list em { font-style: normal; font-size: .78rem; color: var(--muted); margin-top: auto; }
.blog-pager { display: flex; justify-content: space-between; align-items: center; margin-top: 22px; font-size: .9rem; }
.blog-body h2 { font-size: 1.35rem; } .blog-body h3 { font-size: 1.1rem; margin-top: 1.3em; }
.blog-body table { width: 100%; border-collapse: collapse; font-size: .92rem; margin: 1em 0; }
.blog-body th, .blog-body td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--border, var(--line)); vertical-align: top; }
.blog-body th { font-weight: 600; }
.blog-body blockquote { margin: 1em 0; padding: 10px 16px; border-left: 4px solid var(--accent, #4f7cff); background: var(--bg-2, transparent); border-radius: 0 10px 10px 0; color: var(--text-2); }
.blog-body img { max-width: 100%; height: auto; border-radius: 12px; }

/* ---- Header spacing on desktop (9 Oct 2026): room between the logo and the menu now that Blog is in the bar ---- */
@media (min-width: 900px) {
  .header-inner { gap: 20px; }
  .brand { flex: none; margin-right: 12px; }
  .site-nav { gap: 2px; }
  .site-nav > a, .site-nav .nav-top { padding: 6px 10px 6px 6px; }
  .site-nav .nav-sfx { display: none; }                 /* "Real Estate", "Image", "PDF", "Video" at mid widths */
}
@media (min-width: 1200px) {
  .site-header .wrap { width: min(1360px, 100% - 48px); }
  .brand { margin-right: 20px; }
  .site-nav { gap: 2px; }
  .site-nav > a, .site-nav .nav-top { padding: 6px 8px 6px 5px; }   /* seven menus since Language Tools, 27 Oct 2026 */
}
@media (min-width: 1360px) { .brand { margin-right: 28px; } }
@media (min-width: 1440px) {
  .site-nav { gap: 4px; }
  .site-nav > a, .site-nav .nav-top { padding: 6px 12px 6px 7px; }
}
/* the " Tools" suffix stays hidden in the bar: seven menus with full names do not fit even at 1920px (27 Oct 2026) */

/* ---- Blog: reading progress bar + "min left" chip (both themes via tokens) ---- */
.read-progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; background: transparent; pointer-events: none; }
.read-progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(0); background: linear-gradient(90deg, var(--brand), var(--brand-2)); border-radius: 0 2px 2px 0; transition: transform .08s linear; }
.read-chip { position: fixed; top: 74px; right: 16px; z-index: 55; display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px 6px 9px; border-radius: 999px; font-size: .78rem; font-weight: 550; letter-spacing: .01em; color: var(--text-2); background: color-mix(in srgb, var(--bg) 92%, transparent); border: 1px solid var(--border); box-shadow: 0 6px 20px rgba(0,0,0,.10); backdrop-filter: saturate(160%) blur(8px); -webkit-backdrop-filter: saturate(160%) blur(8px); animation: chip-in .22s ease; }
.read-chip[hidden] { display: none; }
.read-chip svg { color: var(--brand-ink); }
.read-chip.done { color: var(--brand-ink); border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); }
@keyframes chip-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@media (max-width: 899px) { .read-chip { top: 70px; right: 12px; font-size: .74rem; } }
@media (prefers-reduced-motion: reduce) { .read-progress i { transition: none; } .read-chip { animation: none; } }

/* ---- Blog: view counts ---- */
.post-views { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.post-views svg { vertical-align: -2px; opacity: .8; }
.post-views b { font-weight: 600; color: var(--text-2); }
.blog-list .post-views b { font-weight: 600; color: var(--muted); }

/* Any-amount recharge */
.pack-custom { margin-top: 10px; border: 1.5px dashed var(--border); border-radius: 12px; padding: 12px; display: grid; gap: 6px; }
.pack-custom label strong { font-family: var(--font-head); font-size: 1.05rem; }
.pack-custom-row { display: flex; align-items: center; gap: 8px; }
.pack-custom-rs { font-family: var(--font-head); font-size: 1.2rem; color: var(--text-2); }
.pack-custom-row input { flex: 1 1 120px; min-width: 0; font: inherit; font-size: 1.05rem; padding: 9px 12px; border: 1.5px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); }
.pack-custom-row input:focus { outline: none; border-color: var(--brand); }
.pack-custom-row .btn { white-space: nowrap; }
.pack-custom-row .btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---- 3D plan → video ---- */
.fp-ic[data-i="video"] { --m: url("data:image/svg+xml,%3Csvg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 24 24%22 fill=%22none%22 stroke=%22black%22 stroke-width=%222%22 stroke-linecap=%22round%22 stroke-linejoin=%22round%22%3E%3Crect x=%223%22 y=%226%22 width=%2213%22 height=%2212%22 rx=%222%22/%3E%3Cpath d=%22M16 10l5-3v10l-5-3z%22/%3E%3C/svg%3E"); }
.fp-side-video { border-top: 1px solid var(--border); padding-top: 12px; }
.vd-presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 8px 0 14px; }
@media (min-width: 720px) { .vd-presets { grid-template-columns: repeat(4, 1fr); } }
.vd-presets.vd-off { opacity: .4; pointer-events: none; }
.vd-preset { font: inherit; text-align: left; display: grid; gap: 3px; padding: 12px 12px 11px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.vd-preset:hover { border-color: var(--brand); transform: translateY(-1px); }
.vd-preset.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.vd-preset strong { font-family: var(--font-head); font-size: .98rem; }
.vd-preset span { font-size: .78rem; color: var(--text-2); line-height: 1.35; }
.vd-preset-ic { width: 34px; height: 22px; border-radius: 6px; border: 1.5px solid color-mix(in srgb, var(--brand) 55%, var(--border)); position: relative; margin-bottom: 4px; background: color-mix(in srgb, var(--brand) 10%, transparent); }
.vd-preset-ic::after { content: ""; position: absolute; inset: 5px 9px; border: 1.5px solid var(--brand-ink); border-radius: 3px; }
.vd-preset-ic[data-k="orbit"]::after { transform: skewX(-14deg); }
.vd-preset-ic[data-k="reveal"]::after { inset: 2px 3px; }
.vd-preset-ic[data-k="glide"]::after { inset: 8px 4px 3px 12px; border-radius: 2px 2px 0 0; }
.vd-row { display: grid; gap: 14px; grid-template-columns: 1fr; padding: 10px 0 4px; border-top: 1px solid var(--border); }
@media (min-width: 820px) { .vd-row { grid-template-columns: auto 1fr; align-items: start; column-gap: 28px; } .vd-row > .vd-opt:last-child { grid-column: 1 / -1; } }
#vd-tour { flex-wrap: wrap; }
.vd-opt { display: grid; gap: 6px; justify-items: start; }
.vd-opt .fp-engines { display: flex; gap: 8px; flex-wrap: wrap; border: 0; padding: 0; }
.fp-seg button:disabled { opacity: .4; cursor: not-allowed; }
.vd-go { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 10px; }
.vd-player-wrap { background: #0b1220; border-radius: 14px; overflow: hidden; border: 1px solid var(--border); display: grid; place-items: center; }
.vd-player-wrap video { width: 100%; max-height: 70vh; display: block; background: #000; }
.vd-recent-list { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.vd-recent-item { font: inherit; text-align: left; display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.vd-recent-item:hover { border-color: var(--brand); }
.vd-recent-item strong { font-family: var(--font-head); font-size: .95rem; }
.vd-recent-item span, .vd-recent-item em { font-style: normal; font-size: .78rem; color: var(--text-2); }
.vd-recent-item.done em { color: #0a7a71; }
.vd-recent-item.failed { opacity: .6; cursor: default; }
.vd-recent-item.running em, .vd-recent-item.starting em { color: var(--brand-ink); }
/* entrance pin + tour continuation */
.vd-door { margin-top: 12px; border: 1px solid var(--border); border-radius: 14px; padding: 12px; background: var(--surface); }
.vd-door-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.vd-door-head strong { font-family: var(--font-head); }
.vd-door-stage { position: relative; display: inline-block; max-width: 100%; cursor: crosshair; border-radius: 10px; overflow: hidden; line-height: 0; }
.vd-door-stage img { max-width: 100%; max-height: 420px; display: block; user-select: none; }
.vd-pin { position: absolute; transform: translate(-50%, -100%); pointer-events: none; display: grid; justify-items: center; gap: 2px; line-height: 1; }
.vd-pin i { width: 18px; height: 18px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg); background: var(--brand); border: 2px solid #fff; box-shadow: 0 4px 14px rgba(0,0,0,.45); }
.vd-pin b { font-size: .68rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; background: #0b1220; color: #fff; padding: 2px 7px; border-radius: 999px; order: -1; }
.vd-continue { margin-top: 14px; border: 1.5px dashed color-mix(in srgb, var(--brand) 55%, var(--border)); border-radius: 14px; padding: 12px 14px; background: color-mix(in srgb, var(--brand) 5%, var(--surface)); }
.vd-continue-head { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.vd-continue-head strong { font-family: var(--font-head); font-size: 1.02rem; }
.vd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.vd-chip { font: inherit; font-size: .84rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1.5px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; }
.vd-chip:hover { border-color: var(--brand); }
.vd-chip.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--brand-ink); }
/* interior finish tiles (swatches: floor, wall, accent, textile) */
.vd-styles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin: 8px 0 6px; }
@media (min-width: 640px) { .vd-styles { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 980px) { .vd-styles { grid-template-columns: repeat(7, 1fr); } }
.vd-style { font: inherit; text-align: left; display: grid; gap: 3px; padding: 8px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.vd-style:hover { border-color: var(--brand); }
.vd-style.active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.vd-style strong { font-family: var(--font-head); font-size: .88rem; line-height: 1.2; }
.vd-style > span:not(.vd-sw) { font-size: .72rem; color: var(--text-2); line-height: 1.3; }
.vd-sw { position: relative; display: block; height: 58px; border-radius: 8px; overflow: hidden; background: var(--w); border: 1px solid rgba(0,0,0,.08); }
.vd-sw i { position: absolute; display: block; }
.vd-sw .f { left: 0; right: 0; bottom: 0; height: 46%; background: var(--f); background-image: linear-gradient(90deg, rgba(0,0,0,.06) 1px, transparent 1px), linear-gradient(rgba(0,0,0,.06) 1px, transparent 1px); background-size: 14px 14px; }
.vd-sw .a { left: 10px; bottom: 16px; width: 34%; height: 34%; background: var(--a); border-radius: 4px 4px 2px 2px; box-shadow: 0 3px 6px rgba(0,0,0,.18); }
.vd-sw .t { right: 10px; bottom: 20px; width: 22%; height: 22%; background: var(--t); border-radius: 50%; box-shadow: 0 3px 6px rgba(0,0,0,.15); }

/* ---------- AI Video Studio (/video/ai-video/) ---------- */
.st-layout { display: grid; gap: 18px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 980px) { .st-layout { grid-template-columns: minmax(400px, 500px) 1fr; } .st-composer { position: sticky; top: 84px; } }
@media (min-width: 1200px) { .st-wrap { width: min(1320px, 100% - 48px); } .st-layout { grid-template-columns: minmax(540px, 620px) 1fr; gap: 24px; } .st-composer { padding: 20px; gap: 14px; } }
.st-composer { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 16px; min-width: 0; }
.st-layout > * { min-width: 0; }
.st-kind { width: 100%; } .st-kind button { flex: 1; padding: 8px 6px; font-size: .84rem; }
.st-kind-note { margin: -6px 0 0; }
.st-frames { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.st-tile { position: relative; display: grid; place-items: center; min-height: 112px; border: 1.5px dashed color-mix(in srgb, var(--brand) 45%, var(--border)); border-radius: 12px; background: color-mix(in srgb, var(--brand) 4%, var(--bg-2)); cursor: pointer; overflow: hidden; text-align: center; padding: 10px; transition: background .15s ease, border-color .15s ease; }
.st-tile:hover, .st-tile.over { background: color-mix(in srgb, var(--brand) 9%, var(--bg-2)); border-color: var(--brand); }
.st-tile.has { border-style: solid; padding: 0; background: #000; }
.st-tile img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; }
.st-tile-txt { display: grid; gap: 2px; } .st-tile-txt strong { font-family: var(--font-head); font-size: .95rem; } .st-tile-txt strong small { font-weight: 500; color: var(--text-2); font-size: .72rem; } .st-tile-txt em { font-style: normal; font-size: .74rem; color: var(--text-2); }
.st-tile-x { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; z-index: 2; }
.st-tile-sm { min-height: 84px; }
.st-refs { display: grid; gap: 8px; } .st-refs-list { display: flex; flex-wrap: wrap; gap: 8px; } .st-refs-list:empty { display: none; }
.st-ref { position: relative; width: 84px; height: 84px; border-radius: 10px; overflow: hidden; border: 1px solid var(--border); background: #000; } .st-ref img { width: 100%; height: 100%; object-fit: cover; }
.st-prompt-wrap { border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); padding: 10px 12px 8px; transition: border-color .15s ease, box-shadow .15s ease; }
.st-prompt-wrap:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.st-prompt { width: 100%; border: 0; background: transparent; color: var(--text); font: inherit; font-size: 1.02rem; line-height: 1.55; resize: vertical; min-height: 140px; outline: 0; padding: 0; }
.st-prompt-wrap { padding: 12px 14px 10px; }
.st-prompt-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.st-ideas { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; } .st-ideas::-webkit-scrollbar { display: none; }
.st-idea { flex: none; font: inherit; font-size: .74rem; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); cursor: pointer; white-space: nowrap; }
.st-idea:hover { color: var(--text); border-color: var(--brand); }
.st-model { display: flex; align-items: center; gap: 12px; width: 100%; font: inherit; text-align: left; padding: 10px 12px; border: 1.5px solid var(--border); border-radius: 14px; background: var(--surface); color: var(--text); cursor: pointer; }
.st-model:hover, .st-model[aria-expanded="true"] { border-color: var(--brand); }
.st-model-tile, .st-card-tile, .st-price-tile { flex: none; width: 46px; height: 46px; border-radius: 12px; background: linear-gradient(135deg, hsl(var(--h) 85% 60%), hsl(calc(var(--h) + 50) 80% 45%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.25), 0 4px 12px hsl(var(--h) 70% 50% / .35); position: relative; overflow: hidden; }
.st-model-tile::after, .st-card-tile::after, .st-price-tile::after { content: ''; position: absolute; inset: 30% 30%; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.9), rgba(255,255,255,.1) 70%); filter: blur(1px); }
.st-model-txt { flex: 1; min-width: 0; display: grid; gap: 2px; } .st-model-txt strong { font-family: var(--font-head); font-size: 1rem; } .st-model-txt em { font-style: normal; font-size: .76rem; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-model-chev { font-size: 1.3rem; line-height: 1; color: var(--text-2); margin-top: -6px; }
.st-picker { border: 1.5px solid var(--brand); border-radius: 14px; background: var(--surface); padding: 12px; margin-top: -6px; box-shadow: var(--shadow); }
.st-picker-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-bottom: 10px; } .st-picker-head strong { font-family: var(--font-head); } .st-picker-head .fp-btn { margin-left: auto; }
.st-picker-grid { display: grid; gap: 8px; grid-template-columns: 1fr; max-height: 52vh; overflow: auto; padding-right: 2px; }
.st-card-txt strong { flex-wrap: wrap; }
.st-card { display: flex; align-items: center; gap: 10px; font: inherit; text-align: left; padding: 8px 10px; border: 1.5px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; }
.st-card:hover { border-color: var(--brand); } .st-card.active { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--surface)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
.st-card.off { opacity: .45; cursor: not-allowed; }
.st-card-tile { width: 40px; height: 40px; }
.st-card-txt { display: grid; gap: 1px; min-width: 0; } .st-card-txt strong { font-family: var(--font-head); font-size: .92rem; display: flex; gap: 6px; align-items: center; } .st-card-txt em { font-style: normal; font-size: .72rem; color: var(--text-2); } .st-card-txt b { font-size: .72rem; font-weight: 600; color: var(--brand-ink); }
.st-pop { font-size: .6rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 1px 6px; border-radius: 999px; background: color-mix(in srgb, var(--brand-2) 18%, transparent); color: #0a7a71; }
.st-variants { margin-top: -4px; }
.st-settings { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.st-set { display: grid; gap: 5px; } .st-set .vd-chip { font-size: .8rem; padding: 5px 10px; }
.st-adv summary { cursor: pointer; font-size: .86rem; font-weight: 600; color: var(--text-2); } .st-adv-body { display: grid; gap: 10px; padding-top: 10px; }
.st-adv-body label { display: grid; gap: 4px; } .st-adv-body .fp-text { width: 100%; min-width: 0; } .st-adv-body input[type="range"] { width: 100%; accent-color: var(--brand); }
.st-check { display: flex !important; align-items: center; gap: 8px; font-size: .9rem; } .st-check input { accent-color: var(--brand); }
.st-go { padding-top: 10px; border-top: 1px solid var(--border); } .st-go .fp-go-btn { width: 100%; justify-content: center; }
.st-stage { display: grid; gap: 18px; min-height: 420px; }
.st-player-wrap video { max-height: 72vh; }
.st-view { display: grid; gap: 10px; }
.st-view-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; } .st-view-meta > div:first-child { display: grid; gap: 2px; } .st-view-meta strong { font-family: var(--font-head); font-size: 1.1rem; }
.st-view-prompt { color: var(--text-2); margin: 0; }
.st-empty { display: grid; place-items: center; text-align: center; gap: 8px; padding: 48px 20px; border: 2px dashed var(--border); border-radius: 18px; min-height: 380px; align-content: center; }
.st-empty strong { font-family: var(--font-head); font-size: 1.15rem; } .st-empty span { max-width: 420px; }
.st-empty-art { display: flex; gap: 10px; margin-bottom: 8px; } .st-empty-art span { width: 54px; height: 54px; border-radius: 14px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); opacity: .25; animation: st-float 3s ease-in-out infinite; } .st-empty-art span:nth-child(2) { animation-delay: .4s; opacity: .45; } .st-empty-art span:nth-child(3) { animation-delay: .8s; }
@keyframes st-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.st-history-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 10px; } .st-history-head strong { font-family: var(--font-head); font-size: 1.05rem; }
.st-gallery { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.st-item { font: inherit; text-align: left; display: grid; gap: 6px; padding: 0 0 8px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); cursor: pointer; overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.st-item:hover { border-color: var(--brand); transform: translateY(-1px); } .st-item.failed { opacity: .55; cursor: default; } .st-item.running, .st-item.starting { border-style: dashed; }
.st-item-media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, hsl(var(--h, 222) 60% 30%), #0b1220); overflow: hidden; }
.st-item-media video, .st-item-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.st-item-media b { position: absolute; right: 6px; bottom: 6px; font-size: .68rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.st-item.running .st-item-media::after, .st-item.starting .st-item-media::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg, rgba(255,255,255,.08) 0 10px, transparent 10px 20px); animation: fp-stripes 1s linear infinite; }
.st-item-txt { display: grid; gap: 2px; padding: 0 10px; min-width: 0; } .st-item-txt strong { font-family: var(--font-head); font-size: .9rem; } .st-item-txt em { font-style: normal; font-size: .76rem; color: var(--text-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .st-item-txt small { font-size: .7rem; color: var(--muted); }
.st-item.done .st-item-txt small { color: #0a7a71; }
.st-price-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .st-price-grid { grid-template-columns: 1fr 1fr; } } @media (min-width: 1000px) { .st-price-grid { grid-template-columns: repeat(3, 1fr); } }
.st-price { gap: 8px; padding: 16px; } .st-price.best { border-color: color-mix(in srgb, var(--brand) 50%, var(--border)); }
.st-price-head { display: flex; align-items: center; gap: 10px; } .st-price-head h3 { font-size: 1.02rem; } .st-price-head > div { flex: 1; min-width: 0; display: grid; } .st-price-tile { width: 40px; height: 40px; }
.st-rates { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-rates li { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; align-items: baseline; font-size: .86rem; padding: 4px 0; border-top: 1px dashed var(--border); }
.st-rates li span { color: var(--text-2); text-transform: uppercase; font-size: .76rem; letter-spacing: .04em; } .st-rates li strong { font-family: var(--font-head); } .st-rates li em { font-style: normal; font-size: .76rem; color: var(--muted); }
/* studio · tabs, preset card, media tray, stage tabs, how-it-works */
.st-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin: -4px 0 2px; }
.st-tabs button { font: inherit; font-family: var(--font-head); font-size: .95rem; font-weight: 600; padding: 8px 10px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--text-2); cursor: pointer; margin-bottom: -1px; }
.st-tabs button.active { color: var(--text); border-bottom-color: var(--brand); }
.st-preset { position: relative; display: flex; align-items: flex-end; width: 100%; min-height: 128px; padding: 14px; border: 0; border-radius: 14px; cursor: pointer; overflow: hidden; text-align: left; color: #fff; font: inherit;
  background: linear-gradient(160deg, hsl(var(--h) 70% 22%), hsl(calc(var(--h) + 40) 75% 42%) 60%, hsl(calc(var(--h) + 80) 70% 60%)); box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); }
.st-preset-art { position: absolute; inset: 0; pointer-events: none; }
.st-preset-art i { position: absolute; border-radius: 50%; background: radial-gradient(circle at 35% 35%, rgba(255,255,255,.55), rgba(255,255,255,0) 70%); filter: blur(2px); }
.st-preset-art i:nth-child(1) { width: 140px; height: 140px; right: -20px; top: -40px; } .st-preset-art i:nth-child(2) { width: 70px; height: 70px; right: 90px; top: 30px; opacity: .6; } .st-preset-art i:nth-child(3) { width: 220px; height: 60px; left: -30px; bottom: -30px; border-radius: 50%; opacity: .5; }
.st-preset-txt { position: relative; display: grid; gap: 2px; } .st-preset-txt b { font-family: var(--font-head); font-size: 1.35rem; letter-spacing: .02em; text-shadow: 0 2px 8px rgba(0,0,0,.35); } .st-preset-txt em { font-style: normal; font-size: .82rem; opacity: .9; }
.st-preset-change { position: absolute; top: 10px; right: 10px; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: rgba(0,0,0,.45); backdrop-filter: blur(4px); }
.st-preset-grid { display: grid; gap: 8px; grid-template-columns: repeat(3, 1fr); max-height: 48vh; overflow: auto; }
.st-preset-card { position: relative; display: grid; align-items: end; min-height: 68px; padding: 8px; border: 2px solid transparent; border-radius: 10px; cursor: pointer; overflow: hidden; color: #fff; font: inherit; text-align: left;
  background: linear-gradient(160deg, hsl(var(--h) 70% 24%), hsl(calc(var(--h) + 50) 75% 48%)); }
.st-preset-card b { position: relative; font-family: var(--font-head); font-size: .8rem; text-shadow: 0 1px 4px rgba(0,0,0,.4); } .st-preset-card.active { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 25%, transparent); }
.st-preset-card .st-preset-art i:nth-child(1) { width: 60px; height: 60px; right: -10px; top: -20px; } .st-preset-card .st-preset-art i:nth-child(2) { display: none; } .st-preset-card .st-preset-art i:nth-child(3) { width: 90px; height: 30px; left: -20px; bottom: -14px; }
.st-inputs { display: grid; gap: 8px; }
.st-add { min-height: 104px; } .st-add-icons { display: flex; gap: 6px; justify-content: center; margin-bottom: 4px; } .st-add-icons i { font-style: normal; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 1px solid var(--border); font-size: .9rem; }
.st-media { display: flex; flex-wrap: wrap; gap: 8px; } .st-media:empty { display: none; }
.st-ref { width: 96px; height: 96px; } .st-ref video { width: 100%; height: 100%; object-fit: cover; }
.st-ref b { position: absolute; left: 4px; bottom: 4px; font-size: .62rem; font-weight: 700; padding: 2px 6px; border-radius: 999px; background: rgba(0,0,0,.6); color: #fff; }
.st-ref-audio { display: grid; place-items: center; width: 100%; height: 100%; background: linear-gradient(135deg, #1f2a44, #0b1220); color: #fff; font-size: 1.4rem; } .st-ref-audio small { font-size: .62rem; opacity: .8; }
.st-prompt-tools { display: flex; align-items: center; gap: 8px; flex: none; }
.st-tool-chip { font: inherit; font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer; white-space: nowrap; }
.st-tool-chip[aria-pressed="false"] { color: var(--text-2); }
.st-model-txt small { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.st-quick { display: grid; gap: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.st-extras { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; } .st-extras label { display: grid; gap: 4px; } .st-extras select { width: 100%; }
.st-stage-tabs { display: flex; gap: 6px; } .st-stage-tabs .fp-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.st-how { display: grid; gap: 12px; padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: var(--surface); } .st-how h2 { margin: 0; } .st-how > p { margin: -6px 0 0; }
.st-how-grid { display: grid; gap: 14px; grid-template-columns: 1fr; } @media (min-width: 760px) { .st-how-grid { grid-template-columns: repeat(3, 1fr); } }
.st-how-grid > div { display: grid; gap: 6px; } .st-how-grid strong { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .03em; } .st-how-grid span:last-child { font-size: .9rem; color: var(--text-2); }
.st-how-art { display: block; aspect-ratio: 16 / 10; border-radius: 14px; border: 1px solid var(--border); background: linear-gradient(135deg, #0b1220, #1f2a44); position: relative; overflow: hidden; }
.st-how-art::after { content: ''; position: absolute; inset: 18% 24%; border-radius: 10px; border: 2px dashed rgba(255,255,255,.35); }
.st-how-art.a2::after { border-style: solid; border-color: var(--brand); inset: 14% 36%; box-shadow: -60px 0 0 -6px rgba(255,255,255,.12), 60px 0 0 -6px rgba(255,255,255,.12); }
.st-how-art.a3::after { border: 3px solid #fff; inset: 12% 16%; background: linear-gradient(120deg, #2f6bff55, #12c2b555, #e94fa055); }
.st-stage-tabs .fp-btn.active::before { content: none; }

/* ---- AI video studio: reference notes, @ tags, voice, ideas, model search ---- */
.st-ref-at { position: absolute; left: 4px; top: 4px; font-style: normal; font-size: .64rem; font-weight: 800; letter-spacing: .02em; padding: 1px 6px; border-radius: 999px; background: var(--brand); color: #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.st-notes { display: grid; gap: 6px; margin: 8px 0 2px; padding: 10px 10px 8px; border-radius: 12px; border: 1px dashed var(--border); background: color-mix(in srgb, var(--brand) 4%, var(--bg-2)); }
.st-notes-head { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 2px; } .st-notes-head strong { font-size: .86rem; }
.st-note { display: grid; grid-template-columns: 36px auto 1fr auto; gap: 8px; align-items: center; }
.st-note-move { display: grid; gap: 2px; } .st-note-move button { font: inherit; font-size: .62rem; line-height: 1; width: 30px; height: 19px; padding: 0; border-radius: 5px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; } .st-note-move button:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); } .st-note-move button:disabled { opacity: .3; cursor: default; }
.st-ref.st-sortable { cursor: grab; touch-action: pan-y; user-select: none; -webkit-user-select: none; } .st-ref.st-sortable img, .st-ref.st-sortable video { pointer-events: none; -webkit-user-drag: none; }
.st-ref.dragging { display: none; } .st-ref.st-ph { background: color-mix(in srgb, var(--brand) 14%, var(--surface)); border: 2px dashed var(--brand); }
.st-ref.st-ghost { position: fixed; z-index: 1300; pointer-events: none; box-shadow: 0 16px 40px rgba(0,0,0,.35); transform: scale(1.06) rotate(-2deg); border-color: var(--brand); } body.st-sorting { cursor: grabbing; } body.st-sorting * { cursor: grabbing !important; }
.st-note-thumb { width: 36px; height: 36px; border-radius: 8px; overflow: hidden; background: #000; display: grid; place-items: center; } .st-note-thumb img, .st-note-thumb video { width: 100%; height: 100%; object-fit: cover; } .st-note-audio { font-size: 1rem; }
.st-note-tag { font: inherit; font-size: .74rem; font-weight: 800; padding: 4px 9px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--brand) 40%, var(--border)); background: color-mix(in srgb, var(--brand) 10%, transparent); color: var(--brand-ink); cursor: pointer; white-space: nowrap; } .st-note-tag:hover { background: var(--brand); color: #fff; }
.st-note-in { width: 100%; min-width: 0; font: inherit; font-size: .86rem; padding: 7px 10px; border-radius: 9px; border: 1px solid var(--border); background: var(--surface); color: var(--text); } .st-note-in:focus { outline: 0; border-color: var(--brand); }
.st-prompt-foot { flex-wrap: wrap; gap: 6px 8px; margin-top: 8px; border-top: 1px solid var(--border); padding-top: 8px; }
.st-prompt-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; flex: 1 1 auto; min-width: 0; position: relative; }
.st-prompt-right { display: flex; align-items: center; gap: 8px; margin-left: auto; flex: none; }
.st-prompt-wrap .st-ideas { margin-top: 4px; }
.st-chip-label { margin-left: 4px; }
.st-at-glyph { font-weight: 800; font-size: .9rem; }
.st-tool-chip { display: inline-flex; align-items: center; line-height: 1.2; }
.st-voice-wrap { display: inline-flex; align-items: center; gap: 4px; }
.st-mic { display: inline-flex; align-items: center; gap: 5px; }
.st-mic.live { background: #e53e3e; border-color: #e53e3e; color: #fff; animation: st-pulse 1.2s ease-in-out infinite; }
.st-mic.off { opacity: .55; }
@keyframes st-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 62, 62, .45); } 50% { box-shadow: 0 0 0 7px rgba(229, 62, 62, 0); } }
.st-voice-lang { font: inherit; font-size: .7rem; font-weight: 600; padding: 3px 2px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text-2); width: 46px; }
.st-tagmenu { position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 20; display: grid; gap: 2px; min-width: 200px; max-width: 320px; padding: 6px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); box-shadow: 0 14px 40px rgba(0,0,0,.22); }
.st-tagmenu button { font: inherit; font-size: .84rem; text-align: left; padding: 7px 10px; border-radius: 8px; border: 0; background: none; color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .st-tagmenu button:hover { background: var(--text); color: var(--bg); }
.st-lib { margin-top: 8px; padding: 12px; border-radius: 12px; border: 1.5px solid var(--brand); background: var(--surface); max-height: 420px; overflow: auto; }
.st-lib-group h4 { margin: 8px 0 6px; font-size: .8rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.st-lib-items { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.st-lib-item { font: inherit; text-align: left; display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); cursor: pointer; }
.st-lib-item strong { font-size: .86rem; } .st-lib-item span { font-size: .74rem; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-lib-item:hover { border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, var(--bg-2)); }
.st-picker-q { font: inherit; font-size: .86rem; padding: 7px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); min-width: 180px; } .st-picker-q:focus { outline: 0; border-color: var(--brand); }
@media (max-width: 640px) { .st-chip-label { display: none; } .st-tool-chip { padding: 6px 9px; } .st-prompt-right { margin-left: auto; } .st-note { grid-template-columns: 32px auto 1fr auto; } .st-note-move button { width: 34px; height: 22px; } .st-count { display: none; } }
.st-count-full { color: var(--brand-ink, #2f6bff); font-weight: 600; }
.st-peek { position: fixed; z-index: 1200; border-radius: 14px; overflow: hidden; background: #0b0f1a; border: 1px solid color-mix(in srgb, var(--brand) 50%, transparent); box-shadow: 0 18px 50px rgba(0,0,0,.55); pointer-events: none; animation: stpeek .12s ease-out; }
.st-peek.pinned { pointer-events: auto; }
.st-peek img, .st-peek video { display: block; width: 100%; max-height: 60vh; object-fit: contain; background: #000; }
.st-peek-cap { display: block; padding: 8px 12px; font-size: .8rem; color: #e6e9f2; background: #0b0f1a; } .st-peek-cap b { color: #9db4ff; }
.st-peek-x { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.st-peek-audio { display: grid; place-items: center; height: 120px; font-size: 40px; }
@keyframes stpeek { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.st-prompt-wrap.st-has-mirror { position: relative; } .st-prompt-wrap.st-has-mirror .st-prompt { position: relative; z-index: 1; background: transparent; }
.st-mirror { position: absolute; z-index: 0; overflow: hidden; pointer-events: none; color: transparent; box-sizing: border-box; } .st-mirror-in { white-space: pre-wrap; overflow-wrap: break-word; word-break: normal; box-sizing: border-box; will-change: transform; }
.st-mirror mark { color: transparent; background: color-mix(in srgb, var(--brand) 16%, transparent); border-radius: 5px; box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 35%, transparent); }
.st-ref.st-hl { outline: 3px solid var(--brand); outline-offset: 2px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 22%, transparent); }
.st-note.st-hl .st-note-thumb { outline: 3px solid var(--brand); outline-offset: 1px; } .st-note.st-hl .st-note-tag { background: var(--brand); color: #fff; border-color: var(--brand); }
.st-brief-note { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin: 6px 0 2px; padding: 8px 10px; border-radius: 10px; font-size: .82rem; color: var(--text-2); background: color-mix(in srgb, #f5a524 12%, var(--surface)); border: 1px solid color-mix(in srgb, #f5a524 45%, var(--border)); } .st-brief-note .fp-link { font-weight: 700; }
/* admin: pick users and add credits */
.adm-check { width: 16px; height: 16px; accent-color: var(--brand); cursor: pointer; vertical-align: middle; }
.adm-table tbody tr.is-sel { background: color-mix(in srgb, var(--brand) 10%, transparent); }
.adm-mini { font: inherit; font-size: .74rem; font-weight: 700; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; white-space: nowrap; } .adm-mini:hover { border-color: var(--brand); color: var(--brand); }
.adm-grant { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brand) 45%, var(--border)); background: color-mix(in srgb, var(--brand) 8%, var(--surface)); }
.adm-grant label { display: flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); } .adm-grant input { font: inherit; font-size: .9rem; padding: 6px 9px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg-2); color: var(--text); } #adm-grant-n { width: 110px; } .adm-grant-note { flex: 1 1 220px; } .adm-grant-note input { width: 100%; }
.adm-grant .fp-btn.armed { background: #c2410c; border-color: #c2410c; color: #fff; } .adm-grant #adm-grant-msg { color: var(--text-2); flex-basis: 100%; }
@media (max-width: 640px) { .adm-grant { gap: 8px; } #adm-grant-n { width: 90px; } }

/* ---------- Home hero: three doors (AI video · 2D→3D · plan→video), auto-advancing ---------- */
.btn-dark { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn-dark:hover { background: var(--brand); border-color: var(--brand); color: #fff; }
.hero-doors-wrap { padding-top: clamp(28px, 5vw, 60px); }
.hero-doors-wrap h1 { max-width: 24ch; }
.hero-doors-wrap p.lead { margin-bottom: 1.2em; }
.doors { margin: 28px auto 0; max-width: 1160px; text-align: left; }
.doors-track { display: grid; gap: 14px; grid-template-columns: 1fr; }
.door { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); min-width: 0; transition: border-color .5s ease, box-shadow .5s ease; }
.door.is-active { border-color: color-mix(in srgb, var(--brand) 55%, var(--border)); box-shadow: 0 18px 50px color-mix(in srgb, var(--brand) 22%, transparent); }
/* every door keeps the same inner geometry in both states, so only its width ever animates */
.door-media { position: relative; display: block; height: 300px; background: #0b1220; overflow: hidden; flex: none; }
.door-media img, .door-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.door-chip { position: absolute; left: 12px; top: 12px; z-index: 2; background: rgba(11, 18, 32, .72); color: #fff; font-size: .78rem; font-weight: 600; padding: 5px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.door-play { position: absolute; left: 50%; top: 50%; z-index: 2; width: 56px; height: 56px; margin: -28px 0 0 -28px; border-radius: 50%; background: rgba(255, 255, 255, .92); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); transition: transform .25s ease; }
.door-play::after { content: ""; position: absolute; left: 22px; top: 17px; border-left: 18px solid #0b1220; border-top: 11px solid transparent; border-bottom: 11px solid transparent; }
.door:hover .door-play { transform: scale(1.08); }
.door-body { padding: 16px 18px 18px; display: flex; flex-direction: column; flex: 1; }
.door-body h2 { font-size: 1.12rem; line-height: 1.25; margin: 0; transition: font-size .5s ease; }
.door-more { display: grid; grid-template-rows: 0fr; opacity: 0; transition: grid-template-rows .55s cubic-bezier(.2, .7, .2, 1), opacity .35s ease; }
.door-more > div { min-height: 0; overflow: hidden; }
.door-body p { font-size: .92rem; color: var(--text-2); line-height: 1.5; margin: 8px 0 12px; }
.door-body .btn { align-self: flex-start; padding: 10px 16px; margin-bottom: 4px; }
.door.is-active .door-more { grid-template-rows: 1fr; opacity: 1; transition-delay: .1s; }
.door-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: color-mix(in srgb, var(--brand) 18%, transparent); }
.door-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }
.door.is-active .door-bar i { width: 100%; transition: width var(--dwell, 7s) linear; }
.doors.paused .door.is-active .door-bar i { transition: none; }
.doors-nav { display: flex; justify-content: center; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.doors-nav button { font: inherit; font-size: .84rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; transition: background .3s ease, color .3s ease, border-color .3s ease; }
.doors-nav button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
/* motion inside the frames until real clips are dropped in: slow push-in, and a 2D→3D cross-fade */
.door-pan { transform: scale(1.02); transition: transform .8s ease; }
.door.is-active .door-pan { animation: door-pan var(--dwell, 7s) ease-in-out both; }
.door.is-active .door-pan-slow { animation-name: door-pan-slow; }
@keyframes door-pan { from { transform: scale(1.02) translate(0, 0); } to { transform: scale(1.12) translate(-1.5%, 1.5%); } }
@keyframes door-pan-slow { from { transform: scale(1.04) translate(1.5%, 0); } to { transform: scale(1.12) translate(-1.5%, -1%); } }
.door-xfade img { object-fit: contain; background: #fff; }
.door-xfade .xf-b { opacity: 0; transition: opacity .6s ease; }
.door.is-active .door-xfade .xf-b { animation: door-xfade var(--dwell, 7s) ease-in-out both; }
@keyframes door-xfade { 0%, 28% { opacity: 0; } 48%, 100% { opacity: 1; } }
@media (min-width: 760px) {
  .doors-track { display: flex; align-items: stretch; }
  .door { flex: 1 1 0; transition: flex-grow .65s cubic-bezier(.2, .7, .2, 1), border-color .5s ease, box-shadow .5s ease; will-change: flex-grow; }
  .door.is-active { flex-grow: 1.6; }
  .door:not(.is-active) { cursor: pointer; }
  .door.is-active .door-body h2 { font-size: 1.3rem; }
}
@media (min-width: 1100px) { .door-media { height: 340px; } }
@media (max-width: 759px) {
  .doors { margin-top: 26px; margin-inline: calc(50% - 50vw); padding-inline: 16px; max-width: none; }
  .doors-track { display: flex; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; -webkit-overflow-scrolling: touch; }
  .doors-track::-webkit-scrollbar { display: none; }
  .door { flex: 0 0 86%; scroll-snap-align: center; }
  .door-media { height: auto; aspect-ratio: 16 / 10; }
  .door-body h2 { font-size: 1.08rem; }
  .door-more { grid-template-rows: 1fr; opacity: 1; }   /* on a phone every card shows its text; the slider does the moving */
  .btn-row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  .door, .door-more, .door .door-pan, .door-xfade .xf-b, .door.is-active .door-bar i { animation: none !important; transition: none !important; }
  .door-xfade .xf-b { opacity: 1; }
}
.st-neutral-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.st-ref.st-flag { outline: 2px solid #c0392b; outline-offset: 2px; } .st-ref .st-flag-tag { position: absolute; left: 4px; bottom: 4px; background: #c0392b; color: #fff; font: 600 .66rem/1 system-ui, sans-serif; padding: 3px 6px; border-radius: 4px; text-decoration: none; letter-spacing: .02em; } .st-ref.st-covered { outline: 2px solid #0a7a71; outline-offset: 2px; } .st-neutral-row .fp-btn { padding: 8px 14px; font-size: .88rem; }

/* Email Tools: guide links inside the nav dropdown; the last menu opens leftwards so it stays on screen */
.nav-menu-label.nav-menu-label-top { border-top: 0; margin-top: 0; display: flex; align-items: center; gap: 7px; }
.nav-menu-cat-ic { width: 18px; height: 18px; display: grid; place-items: center; color: var(--brand-ink); } .nav-menu-cat-ic svg { width: 14px; height: 14px; }
.nav-menu-label { padding: 10px 10px 2px; font-size: .68rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--border); margin-top: 4px; }
@media (min-width: 900px) { .nav-item-end > .nav-menu { left: auto; right: 0; } }
.acct-btn { white-space: nowrap; }
@media (min-width: 900px) and (max-width: 1199px) {   /* five tool menus + About + Blog: tighten so Sign in stays on one line */
  .header-inner { gap: 12px; }
  .brand { margin-right: 4px; }
  .site-nav > a, .site-nav .nav-top { padding: 6px 7px 6px 5px; }
}
@media (min-width: 900px) and (max-width: 1279px) { .site-nav > a > .nav-ic, .site-nav .nav-top > .nav-ic { display: none; } .site-nav > a, .site-nav .nav-top { padding: 6px 8px; } }
@media (min-width: 900px) and (max-width: 999px) { .site-nav > a, .site-nav .nav-top { padding: 6px 4px; font-size: .84rem; } .header-inner { gap: 12px; } .brand { margin-right: 4px; } }

/* ---------- Ads (manual AdSense units; markup in _includes/ad.njk, shown only when a slot ID is set) ---------- */
.ad { position: relative; text-align: center; }
.ad-label { display: block; font-size: .66rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ad ins.adsbygoogle { background: transparent; }
/* The label shows only once Google has filled the unit; a unit Google leaves empty (e.g. while the site is under review,
   or no ad is available) is collapsed so visitors never see a blank "Advertisement" box. */
.ad .ad-label { visibility: hidden; }
.ad:has(ins[data-ad-status="filled"]) .ad-label { visibility: visible; }
.ad:has(ins[data-ad-status="unfilled"]), .ad.ad-empty { display: none !important; }
.ad-in { margin: 32px auto; min-height: 120px; clear: both; }
.page-head .ad-head { margin: 0 0 16px; min-height: 76px; }
.page-head.has-head-ad::after { content: ""; display: block; clear: both; }
.page-head.has-head-ad > p { clear: right; }
@media (min-width: 1100px) {
  .page-head .ad-head { float: right; width: 728px; max-width: calc(100% - 340px); min-height: 110px; margin: 6px 0 12px 24px; }
}
.post-rail { display: none; }
@media (min-width: 1100px) {
  .post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 48px; align-items: start; }
  .post-rail { display: block; align-self: stretch; }
  .post-rail .ad { position: sticky; top: 84px; width: 300px; min-height: 620px; }
}
.ad-ear { display: none; }
@media (min-width: 1540px) {
  main.has-ears { position: relative; }
  .ad-ear { display: block; position: absolute; top: 24px; bottom: 24px; width: 160px; z-index: 1; }
  .ad-ear-l { left: calc(50% - 560px - 184px); }
  .ad-ear-r { right: calc(50% - 560px - 184px); }
  .ad-ear .ad { position: sticky; top: 84px; min-height: 620px; }
}
@media print { .ad, .ad-ear, .post-rail { display: none !important; } }

/* ---------- Blog index (22 Oct 2026): head, featured story, classic image cards. Markup: _includes/blog-cards.njk ---------- */
.blog-head { --bh-c: var(--brand-2); }
.blog-head .bh-eyebrow { display: inline-block; font: 700 .72rem/1 var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: var(--bh-c); margin: 4px 0 8px; }
.blog-head h1 { margin-bottom: .3em; }
.blog-head .bh-page { font-size: .5em; color: var(--muted); font-weight: 600; }
.blog-head .bh-lede { max-width: 62ch; margin-bottom: 14px; }
.bh-stats { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; color: var(--muted); font-size: .86rem; margin: 0 0 20px; clear: right; }
.bh-stats span, .bh-stats a { display: inline-flex; align-items: center; gap: 6px; }
.bh-stats svg { opacity: .85; }
.bh-stats a { color: var(--brand-ink); text-decoration: none; font-weight: 600; }
.bh-stats a:hover { text-decoration: underline; }
.blog-head .blog-filters { margin: 0; padding: 14px 0 0; border-top: 1px solid var(--border); }
.blog-head .blog-filters a { padding: 8px 14px; font-size: .88rem; background: var(--surface); transition: border-color .2s, color .2s, background .2s; }
.blog-head .blog-filters a[aria-current="page"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.blog-head .blog-filters a:not([aria-current]):hover { border-color: var(--brand); color: var(--text); }
.blog-index { margin-top: 8px; }

.bc-feat, .bc-card { --c: var(--brand); position: relative; }
[data-cat="images"] { --c: #3b82f6; } [data-cat="video"] { --c: #0d9488; } [data-cat="floor"] { --c: #7c3aed; } [data-cat="pdf"] { --c: #ea580c; }
:root[data-theme="dark"] [data-cat="images"] { --c: #60a5fa; } :root[data-theme="dark"] [data-cat="video"] { --c: #2dd4bf; } :root[data-theme="dark"] [data-cat="floor"] { --c: #a78bfa; } :root[data-theme="dark"] [data-cat="pdf"] { --c: #fb923c; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) [data-cat="images"] { --c: #60a5fa; } :root:not([data-theme="light"]) [data-cat="video"] { --c: #2dd4bf; } :root:not([data-theme="light"]) [data-cat="floor"] { --c: #a78bfa; } :root:not([data-theme="light"]) [data-cat="pdf"] { --c: #fb923c; } }
.bc-cat { display: inline-flex; align-items: center; gap: 6px; font: 600 .76rem/1 var(--font-body); color: var(--c); white-space: nowrap; }
.bc-cat::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.bc-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: .78rem; color: var(--muted); }
.bc-meta i { font-style: normal; opacity: .6; }
.bc-meta .post-views b { color: var(--muted); font-weight: 500; }
.bc-stretch { text-decoration: none; color: inherit; }
.bc-stretch::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.bc-lift { position: relative; z-index: 2; }
.bc-clamp2, .bc-clamp3 { display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
.bc-clamp2 { -webkit-line-clamp: 2; } .bc-clamp3 { -webkit-line-clamp: 3; }
.bc-img { position: relative; overflow: hidden; background: var(--bg-2); }
.bc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.2,.8,.2,1); }

/* featured story */
.bc-feat { display: grid; grid-template-columns: 1.45fr 1fr; background: var(--surface); border: 1px solid var(--border); border-radius: 22px; overflow: hidden; box-shadow: var(--shadow); margin-bottom: 26px; transition: box-shadow .3s, border-color .3s; }
.bc-feat .bc-img { min-height: 100%; background: #0c1222; display: grid; place-items: center; }
.bc-feat .bc-img img { height: auto; aspect-ratio: 1200 / 630; object-fit: contain; }   /* never crop the headline baked into the share image */
.bc-feat .bc-badge { position: absolute; top: 14px; left: 14px; z-index: 2; font: 700 .7rem/1 var(--font-body); letter-spacing: .1em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); padding: 8px 11px; border-radius: 999px; }
.bc-feat .bc-body { padding: clamp(20px, 2.6vw, 34px); display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.bc-feat h2 { font-family: var(--font-head); font-size: clamp(1.4rem, 2.3vw, 1.95rem); line-height: 1.18; margin: 0; letter-spacing: -.01em; }
.bc-feat h2 .bc-stretch { background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size .4s; }
.bc-feat p { margin: 0; color: var(--text-2); line-height: 1.6; }
.bc-ctas { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.bc-feat:hover { box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 22px 48px rgba(11,18,32,.18); border-color: color-mix(in srgb, var(--c) 50%, var(--border)); }
.bc-feat:hover .bc-img img { transform: scale(1.04); }
.bc-feat:hover h2 .bc-stretch { background-size: 100% 2px; }
@media (max-width: 820px) { .bc-feat { grid-template-columns: 1fr; } .bc-feat .bc-img { aspect-ratio: 1200 / 630; } }

/* classic image cards */
.bc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.bc-card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s, border-color .3s; }
.bc-card .bc-img { aspect-ratio: 1200 / 630; }
.bc-peek { position: absolute; inset: 0; display: grid; place-items: center; background: linear-gradient(180deg, transparent 30%, rgba(4,8,20,.55)); opacity: 0; transition: opacity .3s; }
.bc-peek span { font: 600 .85rem/1 var(--font-body); color: #fff; padding: 10px 16px; border-radius: 999px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.35); backdrop-filter: blur(6px); transform: translateY(8px); transition: transform .3s; }
.bc-card .bc-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.bc-card h3 { font-family: var(--font-head); font-size: 1.12rem; line-height: 1.3; margin: 0; }
.bc-card p { margin: 0; color: var(--text-2); font-size: .9rem; line-height: 1.5; }
.bc-foot { margin-top: auto; padding-top: 12px; border-top: 1px dashed var(--border); display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.bc-read { display: inline-flex; align-items: center; gap: 6px; font: 600 .88rem/1 var(--font-body); color: var(--brand-ink); }
.bc-arr { transition: transform .25s; }
.bc-tool { display: inline-flex; align-items: center; font: 600 .8rem/1 var(--font-body); padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); transition: background .2s, color .2s, border-color .2s; }
.bc-tool:hover { background: var(--c); color: #fff; border-color: var(--c); }
.bc-card:hover { transform: translateY(-6px); box-shadow: 0 2px 6px rgba(0,0,0,.12), 0 18px 40px rgba(11,18,32,.18); border-color: color-mix(in srgb, var(--c) 55%, var(--border)); }
.bc-card:hover .bc-img img { transform: scale(1.07); }
.bc-card:hover .bc-peek { opacity: 1; } .bc-card:hover .bc-peek span { transform: none; }
.bc-card:hover h3 { color: var(--brand-ink); }
.bc-card:hover .bc-arr { transform: translateX(5px); }
.bc-card:focus-within, .bc-feat:focus-within { border-color: var(--brand); }
.blog-index .blog-pager { margin-top: 30px; }
@media (prefers-reduced-motion: reduce) { .bc-card, .bc-feat, .bc-img img, .bc-peek, .bc-peek span, .bc-arr { transition: none !important; } .bc-card:hover { transform: none; } }

/* "Watch the video" (YouTube): a still image until pressed, then the youtube-nocookie player in the same box */
.yt-video { margin: 1.6em 0 0; }
.yt-video h2 { margin-top: 0; }
.yt-lite { position: relative; aspect-ratio: 16 / 9; width: 100%; border-radius: var(--radius); overflow: hidden; background: #000; }
.yt-lite.yt-short { aspect-ratio: 9 / 16; max-width: 340px; }
.yt-lite button { all: unset; display: block; position: absolute; inset: 0; cursor: pointer; }
.yt-lite img { width: 100%; height: 100%; object-fit: cover; display: block; }
.yt-lite .yt-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); opacity: .9; transition: opacity .15s, transform .15s; }
.yt-lite button:hover .yt-play, .yt-lite button:focus-visible .yt-play { opacity: 1; transform: translate(-50%, -50%) scale(1.06); }
.yt-lite button:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; }
.yt-lite iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.yt-cap { margin-top: 8px; }

/* ---- Exam photo and signature size pages (/exam-photo-size/) ---- */
.ex-source { margin-top: 6px; }
.ex-h2 { font-size: 1.3rem; margin: 8px 0 12px; }
.ex-warn { border: 1px solid color-mix(in srgb, #d98a00 45%, var(--border)); background: color-mix(in srgb, #d98a00 9%, var(--surface)); border-radius: 12px; padding: 12px 16px; margin: 0 0 18px; font-size: .95rem; line-height: 1.5; }
.ex-table-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
.ex-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ex-table th, .ex-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.ex-table thead th { background: var(--bg-2); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ex-table tbody tr:last-child th, .ex-table tbody tr:last-child td { border-bottom: 0; }
.ex-table tbody th { font-weight: 600; white-space: nowrap; }
.ex-table ul { margin: 0; padding-left: 1.1em; } .ex-table li { margin: 0 0 .25em; }
.ex-notes { margin: 12px 0 0; padding-left: 1.2em; color: var(--text-2); } .ex-notes li { margin: .3em 0; }
.ex-lead { color: var(--text-2); max-width: 72ch; margin: 0 0 12px; }
.ex-set { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
.ex-chip { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); cursor: pointer; font: inherit; text-align: left; }
.ex-chip strong { font-size: .92rem; } .ex-chip span { font-size: .78rem; color: var(--text-2); }
.ex-chip:hover { border-color: var(--brand); }
.ex-chip.active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 25%, transparent); }
.ex-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; } .ex-links a { text-decoration: none; }
.ex-now { margin: 0 0 4px; padding: 8px 12px; border-left: 3px solid var(--brand); background: var(--bg-2); border-radius: 0 8px 8px 0; max-width: 80ch; }
.ex-hub-group { margin: 34px 0 0; }
.ex-hub-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.ex-hub-table th, .ex-hub-table td { text-align: left; vertical-align: top; padding: 9px 12px; border-bottom: 1px solid var(--border); }
.ex-hub-table thead th { background: var(--bg-2); font-size: .74rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.ex-hub-table tbody tr:last-child td { border-bottom: 0; }
.ex-hub-table td:first-child a { font-weight: 600; }
@media (max-width: 760px) {
  .ex-table-wrap { border: 0; background: none; border-radius: 0; overflow: visible; }
  .ex-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ex-table, .ex-table tbody, .ex-table tr, .ex-table th, .ex-table td { display: block; width: 100%; }
  .ex-table tr { border: 1px solid var(--border); border-radius: 12px; margin: 0 0 12px; background: var(--surface); overflow: hidden; }
  .ex-table tbody th { background: var(--bg-2); white-space: normal; font-size: 1rem; }
  .ex-table td { display: grid; grid-template-columns: 7.2em 1fr; gap: 10px; padding: 8px 12px; }
  .ex-table td::before { content: attr(data-l); font-size: .74rem; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding-top: 2px; }
  .ex-table tbody tr:last-child td { border-bottom: 1px solid var(--border); } .ex-table tbody tr td:last-child { border-bottom: 0; }
  .ex-hub-wrap { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); }
  .ex-hub-table { font-size: .86rem; } .ex-hub-table th, .ex-hub-table td { padding: 8px; } .ex-hub-table .ex-src { display: none; }
}

/* Festival ("moment") AI video pages: /video-tools/<slug>/ from moments.json (moment.njk) */
.mo-head .eyebrow { margin-bottom: 14px; }
.mo-head .mo-feeling { font-size: clamp(1.1rem, 1.8vw, 1.25rem); color: var(--text); line-height: 1.55; max-width: 62ch; }
.mo-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 4px; }
.mo-section { padding-top: 0; }
.mo-sub { margin-top: -4px; max-width: 70ch; }
.mo-steps { list-style: none; counter-reset: mo; margin: 0; padding: 0; display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .mo-steps { grid-template-columns: repeat(3, 1fr); } }
.mo-steps li { counter-increment: mo; display: grid; gap: 4px; padding: 18px 18px 18px 64px; position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.mo-steps li::before { content: counter(mo); position: absolute; left: 18px; top: 16px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.mo-steps span { color: var(--text-2); font-size: .95rem; }
.mo-group { margin: 26px 0 12px; font-size: 1.15rem; }
.mo-ideas { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); }
.mo-idea { gap: 10px; }
.mo-idea-top { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 10px; }
.mo-idea-top h3 { font-size: 1.02rem; margin: 0; }
.mo-idea-top .pill { text-transform: none; letter-spacing: 0; font-weight: 500; }
.card p.mo-prompt { flex: 1; font-size: .86rem; line-height: 1.5; color: var(--text-2); background: var(--bg-2); border-radius: 10px; padding: 10px 12px; border-left: 3px solid color-mix(in srgb, var(--brand) 45%, transparent); }
.mo-use { align-self: flex-start; padding: 9px 16px; font-size: .92rem; }
.mo-cost { margin: 22px 0 0; padding: 14px 16px; border-radius: 12px; background: color-mix(in srgb, var(--brand-2) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--brand-2) 30%, var(--border)); color: var(--text-2); font-size: .95rem; max-width: 900px; }
.mo-cost strong { color: var(--text); }
.mo-tips { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.mo-tips .card h3 { font-size: 1rem; }
.mo-biz { padding: clamp(18px, 3vw, 28px); }
.mo-biz h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); margin: 0; }
.mo-biz p { max-width: 75ch; }
.mo-biz-links { display: flex; flex-wrap: wrap; gap: 8px; }
.mo-biz-links .btn { padding: 9px 14px; font-size: .9rem; white-space: normal; text-align: left; }
.mo-biz-email { margin-top: 4px; }
.mo-samples { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); }
.mo-sample { margin: 0; }
.mo-sample video { width: 100%; height: auto; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 12px; background: var(--bg-2); cursor: pointer; }
.mo-sample figcaption { font-size: .82rem; color: var(--text-2); margin-top: 6px; }
.mo-note { color: var(--text-2); font-size: .9rem; margin: -4px 0 14px; max-width: 70ch; }
/* "Festival ideas" strip on the AI video generator page and the small "new" link on the home page */
.mo-strip, .page-head .mo-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: .9rem; margin: 4px 0 0; }
.mo-strip > span { font-weight: 600; color: var(--text); margin-right: 2px; }
.mo-strip a { padding: 4px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); }
.mo-strip a:hover { border-color: var(--brand); text-decoration: none; }
.hero-new { margin: 14px 0 0; font-size: .92rem; }
.hero-new .pill { margin-right: 4px; }
.st-lib-item em { font-style: normal; font-size: .7rem; color: var(--brand-ink); }
.st-add-nudge { box-shadow: 0 0 0 3px var(--ring); transition: box-shadow .3s ease; }

/* Related links block (lib/related-links.js) and the guides index directory */
.rel-links { padding-top: 0; }
.rel-links h2 { font-size: 1.25rem; margin: 0 0 14px; }
.rel-grid, .guide-dir { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.rel-col, .guide-dir > div { padding: 16px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s, transform .15s; }
.rel-col:hover, .guide-dir > div:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--border)); box-shadow: 0 10px 24px color-mix(in srgb, var(--brand) 8%, transparent); transform: translateY(-2px); }
.rel-col h3, .guide-dir h3 { margin: 0 0 8px; font-size: .78rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.rel-col ul, .guide-dir ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rel-col a, .guide-dir a, .guide-dir-list a { color: var(--text); text-decoration: none; font-size: .93rem; line-height: 1.35; transition: color .15s; }
.rel-col a:hover, .guide-dir a:hover, .guide-dir-list a:hover { color: var(--brand-ink); text-decoration: underline; text-underline-offset: 2px; }
.guide-dir-h { font-size: 1.3rem; margin: 40px 0 10px; scroll-margin-top: 80px; }
.guide-dir-list { list-style: none; margin: 0; padding: 0; columns: 3 240px; column-gap: 24px; }
.guide-dir-list li { break-inside: avoid; padding: 4px 0; }
.guide-jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.guide-jump a { font-size: .85rem; font-weight: 600; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); text-decoration: none; transition: color .15s, border-color .15s; }
.guide-jump a:hover { color: var(--brand-ink); border-color: var(--brand); }

/* Exam shortcuts in the Image menu (28 Oct 2026) */
.nav-menu-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 10px 8px; max-width: 360px; }
.nav-menu-chips a { font-size: .76rem; font-weight: 600; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border); color: var(--text); background: var(--surface); }
.nav-menu-chips a:hover { text-decoration: none; background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 899px) { .nav-menu-chips { max-width: none; padding-left: 4px; } }

/* Category pages: "Pages already set for one job" as grouped cards (28 Oct 2026) */
.job-groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; margin-top: 14px; }
.job-group { padding: 16px 18px 18px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.job-group-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.job-group h3 { margin: 0; font-size: 1rem; }
.job-count { font-size: .72rem; font-weight: 700; color: var(--muted); border: 1px solid var(--border); border-radius: 999px; padding: 1px 8px; }
.job-group p { margin: 4px 0 12px; font-size: .85rem; color: var(--muted); }
.job-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.job-chips a { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--border); font-size: .86rem; font-weight: 600; color: var(--text); background: transparent; white-space: nowrap; transition: background .15s, color .15s, border-color .15s; }
.job-chips a:hover, .job-chips a:focus-visible { text-decoration: none; background: var(--text); color: var(--bg); border-color: var(--text); }
@media (max-width: 520px) { .job-groups { grid-template-columns: 1fr; } .job-group { padding: 14px; } }

/* /admin/ command centre (owner's choice, 28 Oct 2026): left menu, one section at a time, overview with goal, trend and alerts */
.adm-shell:not([hidden]) { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 20px; align-items: start; }
.adm-side { position: sticky; top: 84px; display: grid; gap: 2px; padding: 8px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.adm-side a, .adm-side-toggle { position: relative; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--text-2); font-weight: 600; font-size: .9rem; text-decoration: none; }
.adm-side-ic { display: inline-flex; width: 30px; height: 30px; flex: none; align-items: center; justify-content: center; border-radius: 9px; background: color-mix(in srgb, var(--text) 6%, transparent); }
.adm-side-ic svg, .adm-side-toggle svg { width: 17px; height: 17px; }
.adm-side a:hover { background: color-mix(in srgb, var(--text) 7%, transparent); color: var(--text); text-decoration: none; }
.adm-side a.on { background: var(--text); color: var(--bg); } .adm-side a.on .adm-side-ic { background: transparent; }
.adm-side .adm-side-out { margin-top: 6px; border-top: 1px solid var(--border); border-radius: 0 0 10px 10px; padding-top: 12px; }
.adm-side-toggle { border: 0; background: none; cursor: pointer; font: inherit; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.adm-side-toggle svg { margin: 0 6.5px; } .adm-side-toggle:hover { color: var(--text); }
.adm-shell.collapsed:not([hidden]) { grid-template-columns: 62px minmax(0, 1fr); }
.adm-shell.collapsed .adm-side { padding: 8px 6px; overflow: visible; }
.adm-shell.collapsed .adm-side-txt, .adm-shell.collapsed .adm-side-toggle span { display: none; }
.adm-shell.collapsed .adm-side a, .adm-shell.collapsed .adm-side-toggle { justify-content: center; padding: 6px; }
.adm-shell.collapsed .adm-side-toggle svg { transform: scaleX(-1); }
.adm-shell.collapsed .adm-side [data-tip]:hover::after, .adm-shell.collapsed .adm-side [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; left: calc(100% + 14px); top: 50%; transform: translateY(-50%); background: #0b1220; color: #fff; font-size: .82rem; font-weight: 600; padding: 7px 12px; border-radius: 9px; white-space: nowrap; z-index: 30; box-shadow: 0 8px 22px rgba(0,0,0,.25); pointer-events: none; }
.adm-shell.collapsed .adm-side [data-tip]:hover::before, .adm-shell.collapsed .adm-side [data-tip]:focus-visible::before { content: ""; position: absolute; left: calc(100% + 8px); top: 50%; transform: translateY(-50%); border: 6px solid transparent; border-right-color: #0b1220; border-left: 0; z-index: 30; }
.adm-main { min-width: 0; }
.adm-sec { display: grid; gap: 16px; } .adm-sec[hidden] { display: none; }
.adm-sec .adm-grid { margin-top: 0; }
.ov-hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.ov-goal { background: radial-gradient(120% 140% at 0% 0%, rgba(47,107,255,.18), transparent 55%), radial-gradient(120% 140% at 100% 100%, rgba(47,213,199,.12), transparent 55%), var(--surface); }
.ov-eye { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #19b48c; }
.ov-goal h2 { font-size: clamp(1.45rem, 2.6vw, 2.25rem); line-height: 1.12; margin: 8px 0 6px; }
.ov-goal h2 em { font-style: normal; background: linear-gradient(90deg, #5b8cff, #2fd5c7); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ov-goal p { margin: 0; }
.ov-track { height: 12px; border-radius: 99px; background: rgba(127,140,170,.22); margin: 16px 0 8px; overflow: hidden; }
.ov-track i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #5b8cff, #2fd5c7); box-shadow: 0 0 16px rgba(47,213,199,.45); }
.ov-ms { display: flex; justify-content: space-between; gap: 8px; font-size: .78rem; color: var(--muted); }
.ov-ms b { display: block; font-size: 1rem; color: var(--text); }
.ov-trend .adm-svg { margin-top: 4px; }
.ov-trend-foot { display: flex; justify-content: space-between; gap: 8px; font-size: .85rem; margin-top: 4px; }
.ov-up { color: #19b48c; font-weight: 700; } .ov-down { color: #f0647e; font-weight: 700; }
.ov-delta { display: block; font-size: .78rem; margin-top: 2px; font-style: normal; }
.ov-alerts { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); } .ov-alerts:empty { display: none; }
.ov-alerts-head { grid-column: 1 / -1; }
.adm-shell > p { grid-column: 2; }
@media (max-width: 900px) { .adm-shell > p { grid-column: 1; } }
.ov-alerts-head { font-size: .7rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ov-alert { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.ov-alert i { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; }
.ov-alert.red i { background: #f0647e; box-shadow: 0 0 0 4px rgba(240,100,126,.18); } .ov-alert.amber i { background: #e9a93b; } .ov-alert.green i { background: #19b48c; }
.ov-alert.red { border-color: rgba(240,100,126,.45); }
.ov-alert b { display: block; font-size: .95rem; } .ov-alert span { font-size: .85rem; color: var(--text-2); }
.ov-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ov-row { display: flex; justify-content: space-between; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--border); font-size: .9rem; } .ov-row:last-child { border-bottom: 0; }
.adm-sec[data-sec="overview"] .adm-kpis { margin-bottom: 0; }
@media (max-width: 1100px) { .ov-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .adm-shell:not([hidden]) { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .adm-side { position: sticky; top: 64px; z-index: 5; display: flex; overflow-x: auto; gap: 6px; padding: 6px; scrollbar-width: none; }
  .adm-side a { white-space: nowrap; padding: 6px 10px 6px 6px; } .adm-side-toggle { display: none; } .adm-side-ic { width: 26px; height: 26px; }
  .adm-shell.collapsed:not([hidden]) { grid-template-columns: minmax(0, 1fr); } .adm-shell.collapsed .adm-side-txt { display: inline; } .adm-shell.collapsed .adm-side a { padding: 6px 10px 6px 6px; } .adm-shell.collapsed .adm-side [data-tip]::after, .adm-shell.collapsed .adm-side [data-tip]::before { display: none !important; }
  .adm-side .adm-side-out { margin: 0; border: 0; padding-top: 7px; border-radius: 10px; }
  .ov-hero, .ov-3 { grid-template-columns: 1fr; }
}

/* /admin/ polish (28 Oct 2026): two-column sections, tables that fit (no sideways scroll), ranked lists, hover tooltips */
@media (min-width: 760px) { .adm-sec .adm-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .adm-sec .adm-span2, .adm-sec .adm-span3 { grid-column: 1 / -1; } }
.adm-card { transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.adm-card:hover { transform: translateY(-1px); }
.adm-card-head { align-items: center; flex-wrap: wrap; row-gap: 2px; }
.adm-card-head h2 { white-space: nowrap; margin: 0; font-size: 1.02rem; }
.adm-card-head > .muted, .adm-card-head > .small { font-size: .78rem; }
.adm-sec .adm-table-wrap:not(.adm-scroll) { overflow: visible; max-height: none; }
.adm-table.adm-fixed { table-layout: fixed; }
.adm-table th { white-space: nowrap; padding-top: 9px; padding-bottom: 9px; }
.adm-table td { vertical-align: middle; padding-top: 9px; padding-bottom: 9px; }
.adm-table tbody tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: color-mix(in srgb, var(--brand) 9%, transparent); }
.adm-table tbody tr:hover td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.adm-path { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); text-decoration: none; }
a.adm-path:hover { color: var(--brand-ink, var(--brand)); text-decoration: underline; }
.adm-arrow { color: var(--muted); }
.adm-two { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; } .adm-two b { font-weight: 600; } .adm-two span { font-size: .74rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-two.r { align-items: flex-end; }
.adm-flag { font-size: 1.05rem; }
.adm-nowrap { white-space: nowrap; }
.adm-new { color: #19b48c !important; font-weight: 700; font-size: .72rem !important; text-transform: uppercase; letter-spacing: .06em; }
.adm-extra { display: none !important; } .adm-open .adm-extra { display: revert !important; } .adm-open li.adm-extra { display: block !important; }
.adm-showall { display: block; width: 100%; margin-top: 8px; padding: 8px; border: 1px dashed var(--border); border-radius: 10px; background: none; color: var(--brand-ink, var(--brand)); font: inherit; font-size: .82rem; font-weight: 600; cursor: pointer; }
.adm-showall:hover { border-style: solid; border-color: var(--brand); background: color-mix(in srgb, var(--brand) 7%, transparent); }
/* ranked lists */
.adm-rank { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.adm-rank li { padding: 7px 8px; margin: 0 -8px; border-radius: 10px; transition: background .15s ease; cursor: default; }
.adm-rank li:hover { background: color-mix(in srgb, var(--brand) 8%, transparent); }
.adm-rank-top { display: flex; align-items: baseline; gap: 8px; font-size: .88rem; }
.adm-rank-ic { font-size: 1rem; line-height: 1; }
.adm-rank-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.adm-rank-name a { color: inherit; text-decoration: none; } .adm-rank-name a:hover { text-decoration: underline; }
.adm-rank-name em { font-style: normal; font-weight: 400; color: var(--muted); font-size: .76rem; margin-left: 6px; }
.adm-rank-top b { font-variant-numeric: tabular-nums; }
.adm-rank-pct { width: 38px; text-align: right; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.adm-rank-bar { display: block; height: 6px; margin-top: 6px; border-radius: 99px; background: color-mix(in srgb, var(--text) 7%, transparent); overflow: hidden; }
.adm-rank-bar i { display: block; height: 100%; border-radius: 99px; transition: filter .15s ease; }
.adm-rank li:hover .adm-rank-bar i { filter: brightness(1.15); }
/* charts */
.adm-svg .adm-val { font-size: 10.5px; font-weight: 700; fill: var(--text); }
.adm-svg .adm-guide { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; pointer-events: none; }
.adm-svg .adm-dot { transition: r .12s ease; } .adm-svg .adm-dot.on { r: 5.5; stroke: var(--surface); stroke-width: 2; }
.adm-svg .adm-hit { cursor: crosshair; }
.adm-svg .adm-arc { cursor: pointer; transition: stroke-width .15s ease; } .adm-svg .adm-arc:hover { stroke-width: 22; }
.adm-tip { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; min-width: 120px; max-width: 280px; padding: 9px 12px; border-radius: 12px; background: #0b1220; color: #fff; border: 1px solid rgba(255,255,255,.12); box-shadow: 0 12px 30px rgba(0,0,0,.35); font-size: .8rem; line-height: 1.45; display: grid; gap: 2px; }
.adm-tip[hidden] { display: none; }
.adm-tip b { font-weight: 700; } .adm-tip span { color: #cfd6e4; } .adm-tip span b { color: #fff; margin-left: 2px; }
.adm-tip i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }
/* users */
.adm-users td { padding-top: 10px; padding-bottom: 10px; }
.adm-user { display: flex; align-items: center; gap: 10px; min-width: 0; }
.adm-user > div { min-width: 0; display: flex; flex-direction: column; }
.adm-ava { width: 34px; height: 34px; flex: none; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, hsl(var(--h) 70% 52%), hsl(calc(var(--h) + 40) 70% 42%)); }
.adm-userlink strong { font-size: .9rem; }
.adm-mail { font-size: .76rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-tag { display: inline-block; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: color-mix(in srgb, var(--brand) 18%, transparent); color: var(--brand-ink, var(--brand)); vertical-align: 1px; }
.adm-urow { display: flex; align-items: center; min-width: 0; } .adm-urow .adm-userlink { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
#ch-users { overflow-x: auto; } @media (max-width: 760px) { .adm-users { min-width: 860px; } }
.adm-plus { width: 30px; height: 30px; padding: 0; font-size: 1rem; line-height: 1; display: inline-flex; align-items: center; justify-content: center; }
.adm-kpi { transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease; } .adm-kpi:hover { transform: translateY(-2px); }


/* /admin/ as wide as AMIQ Mail (owner, 28 Oct 2026) */
.wrap.adm-wide { width: min(1440px, 100% - 32px); }

/* 2D→3D and Redraw studio panel: folding sections, no inner scroll bar (owner, 28 Oct 2026) */
@media (min-width: 980px) { .fp-side.fp-side-folds { position: static; max-height: none; overflow: visible; align-content: start; } }
.fp-side-folds [data-fold] > h4 { cursor: pointer; user-select: none; margin: 0; padding: 2px 0; }
.fp-side-folds [data-fold] > h4::after { content: ""; width: 8px; height: 8px; margin-left: auto; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .18s ease; opacity: .7; }
.fp-side-folds [data-fold] > h4 .fp-info { margin-left: auto; } .fp-side-folds [data-fold] > h4 .fp-info + * { margin-left: 0; }
.fp-side-folds [data-fold] > h4:has(.fp-info)::after { margin-left: 8px; }
.fp-side-folds [data-fold="closed"] > h4::after { transform: rotate(-45deg); }
.fp-side-folds [data-fold="open"] > h4 { margin-bottom: 8px; }
.fp-side-folds [data-fold="closed"] > :not(h4) { display: none !important; }
.fp-side-folds [data-fold] > h4:hover { color: var(--text); }
.fp-side-folds [data-fold] > h4:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }
.fp-side-folds [data-fold="closed"] { padding-top: 9px; padding-bottom: 9px; }

/* 2D→3D options (29 Oct 2026): more air between the rows (Look, Accent, Floors, Shadows, Reference, Title badge, instructions);
   the Developer Version reference is an optional toggle, off by default */
.fp-options .fp-bar { padding-top: 14px; padding-bottom: 14px; row-gap: 14px; }
button.fp-ref-builtin { font: inherit; font-size: .82rem; line-height: 1.3; color: inherit; cursor: pointer; text-align: left; border-style: dashed; opacity: .82; transition: opacity .15s, border-color .15s, background .15s; }
button.fp-ref-builtin:hover { opacity: 1; }
button.fp-ref-builtin.on { border-style: solid; opacity: 1; background: color-mix(in srgb, var(--brand) 10%, transparent); }

/* Header menus (30 Oct 2026): long menus were taller than the screen. Two columns when a menu has more than six tools,
   descriptions on one line, and never taller than the window (scrolls inside if it must). */
.nav-menu-item em { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
@media (min-width: 900px) {
  .nav-menu { max-height: calc(100vh - 96px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .nav-menu-item em { max-width: 270px; }
  .nav-menu.nav-menu-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 4px; width: min(660px, calc(100vw - 32px)); left: 50%; transform: translate(-50%, 6px); }
  .nav-item:hover > .nav-menu.nav-menu-wide, .nav-item:focus-within > .nav-menu.nav-menu-wide { transform: translate(-50%, 0); }
  .nav-menu-wide > .nav-menu-label, .nav-menu-wide > .nav-menu-chips, .nav-menu-wide > .nav-menu-all { grid-column: 1 / -1; }
  .nav-menu-wide > .nav-menu-chips { max-width: none; }
}
@media (min-width: 900px) { .nav-menu-wide > a[href="/exam-photo-size/"] { grid-column: 1 / -1; } .nav-menu-wide > a[href="/exam-photo-size/"] em { max-width: none; } }
@media (min-width: 1100px) { .nav-menu.nav-menu-wide.nav-menu-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); width: min(960px, calc(100vw - 32px)); } .nav-menu-3 .nav-menu-item em { max-width: 250px; } }

/* Header menus (30 Oct 2026, owner: "website content is mixing with menu"): while a menu is open on desktop, the page behind it
   dims and blurs so only the menu stands out. The overlay sits on body, just under the header (z 50), and never takes clicks. */
@media (min-width: 900px) {
  body::before { content: ''; position: fixed; inset: 0; z-index: 49; pointer-events: none; opacity: 0; visibility: hidden;
    background: rgba(12, 16, 26, .32); -webkit-backdrop-filter: blur(7px) saturate(.9); backdrop-filter: blur(7px) saturate(.9);
    transition: opacity .18s ease, visibility 0s linear .18s; }
  body:has(.site-nav .nav-item:hover > .nav-menu, .site-nav .nav-item:focus-within > .nav-menu)::before { opacity: 1; visibility: visible; transition-delay: 0s; }
  :root[data-theme="dark"] body::before { background: rgba(2, 4, 10, .55); }
  .nav-menu { box-shadow: 0 24px 60px rgba(0,0,0,.35), 0 0 0 1px color-mix(in srgb, var(--border) 80%, transparent); }
}
@media (min-width: 900px) and (prefers-color-scheme: dark) { :root:not([data-theme="light"]) body::before { background: rgba(2, 4, 10, .55); } }

/* Share strip on tool pages and blog posts (31 Oct 2026) */
.share-strip { margin: 8px 0 0; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 14px; background: var(--bg-2); font-size: .92rem; color: var(--text-2); }
.share-row > span { flex: 1 1 260px; }
.share-btn { font: inherit; font-size: .88rem; font-weight: 600; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer; text-decoration: none; transition: background .15s, color .15s, border-color .15s; }
.share-btn:hover, .share-btn:focus-visible { background: var(--text); color: var(--bg); border-color: var(--text); text-decoration: none; }
.share-wa { border-color: color-mix(in srgb, #25d366 55%, var(--border)); }

/* Rating strip on tool pages + stars in the result panel (3 Nov 2026). Real ratings only; the average shows from 20 ratings. */
.rate-strip { margin: 8px 0 0; }
.rate-strip .share-row > span.rate-ask { flex: 0 1 auto; }
.rate-avg { flex: 1 1 100%; display: flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; }
.rate-stars { --r: 0; font-size: 1.05rem; letter-spacing: 2px; background: linear-gradient(90deg, #f5a623 calc(var(--r) / 5 * 100%), color-mix(in srgb, var(--text-2) 35%, transparent) 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
.rate-pick { display: inline-flex; gap: 2px; }
.rate-pick button, .cdh-fb button[data-star] { font-size: 1.35rem; line-height: 1; padding: 2px 4px; border: 0; background: none; color: color-mix(in srgb, var(--text-2) 45%, transparent); cursor: pointer; transition: color .12s, transform .12s; }
.cdh-fb button[data-star]:hover { transform: none; }
.rate-pick button.on, .cdh-fb button[data-star].on { color: #f5a623; }
.rate-pick button:hover, .rate-pick button:focus-visible, .cdh-fb button[data-star]:focus-visible { transform: scale(1.12); }
