/* ==========================================================
   FAS · ADAM member area · Styles (v5)
   Load order: tokens.css, then this file.
   Brand elements used: gold gradient, gold hairline frames,
   gold chevrons, circular gold light, premium page fold,
   numbered gold squares, subtle black-gold streak pattern.
   Sections:
   1 Base  2 Layout  3 Sidebar  4 Type  5 Buttons  6 Status
   7 Specialist emblems  8 ADAM orb  9 Cards and panels
   10 Dashboard  11 Chat  12 Voice  13 Review  14 Vault
   15 Launch  16 Responsive  17 Reduced motion
   ========================================================== */

/* 1. Base ---------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    radial-gradient(900px 520px at 85% -120px, rgba(211,181,124,.10), transparent 70%),
    repeating-linear-gradient(118deg, transparent 0 140px, rgba(171,118,51,.035) 140px 141px, transparent 141px 320px);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
}
body[data-auth-pending] { visibility: hidden; }
h1, h2, h3, p { margin: 0; }
svg { display: block; }
button, input, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--gold); }
a:hover { color: var(--crispy-ivory); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
table { width: 100%; border-collapse: collapse; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 12px 18px; border-radius: var(--r-md); background: var(--gold); color: var(--bg); font-weight: 700; text-decoration: none; }
.skip-link:focus { top: 12px; }

/* 2. Layout -------------------------------------------- */
.app { min-height: 100vh; display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }
.main { min-width: 0; padding: 36px var(--gutter) 64px; display: flex; flex-direction: column; gap: 40px; }
.main--flush { padding: 0; gap: 0; }
.main__body { padding: 28px var(--gutter) 56px; display: flex; flex-direction: column; gap: 24px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack--sm { gap: 8px; }
.row { display: flex; align-items: center; gap: 12px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }

.mobilebar { display: none; position: sticky; top: 0; z-index: 30; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: rgba(8,8,6,.92); border-bottom: 1px solid var(--line); backdrop-filter: blur(10px); }
.scrim { display: none; position: fixed; inset: 0; z-index: 39; background: rgba(0,0,0,.65); }

/* 3. Sidebar ------------------------------------------- */
.sidebar {
  position: sticky; top: 0; height: 100dvh; overflow: hidden;
  padding: 12px 10px 10px;
  display: flex; flex-direction: column; gap: 10px;
  background: linear-gradient(180deg, #0D0C0A 0%, #080806 100%);
  border-right: 1px solid var(--line);
}
.brand { display: flex; flex-direction: column; gap: 3px; padding: 0 7px; color: var(--text); text-decoration: none; }
.brand__mark { display: block; width: 78px; height: 44px; object-fit: contain; object-position: left center; filter: drop-shadow(0 7px 16px rgba(171,118,51,.12)); transition: filter .2s ease; }
.brand:hover .brand__mark, .brand:focus-visible .brand__mark { filter: drop-shadow(0 8px 20px rgba(211,181,124,.25)); }
.brand__name { display: flex; align-items: center; gap: 6px; font-family: var(--font-sub); font-size: 8px; font-weight: 600; letter-spacing: 1.3px; color: var(--text-2); white-space: nowrap; }
.brand__name::before, .brand__name::after { content: ""; width: 14px; height: 1px; background: var(--gold); }

.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-group__title { padding: 0 8px 4px; font-family: var(--font-sub); font-size: 10px; font-weight: 600; color: var(--muted); }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 9px;
  min-height: 36px; padding: 0 10px; border-radius: var(--r-md);
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 12px;
}
.nav-link:hover { color: var(--text); background: var(--surface-2); }
.nav-link.is-active { color: var(--text); background: var(--surface-3); }
.nav-link.is-active::before { content: ""; position: absolute; left: 0; top: 12px; bottom: 12px; width: 2px; border-radius: 2px; background: var(--gold-gradient); }
.nav-link svg { color: var(--gold); }

.step-link {
  display: flex; align-items: center;
  min-height: 40px; padding: 3px 7px; gap: 7px; border-radius: var(--r-md);
  color: var(--text); text-decoration: none;
}
.step-link:hover { background: var(--surface-2); color: var(--text); }
.step-link__text { flex: 1 1 auto; display: flex; flex-direction: column; line-height: 1.3; }
.step-link__task { font-size: 12px; font-weight: 600; }
.step-link__agent { font-family: var(--font-sub); font-size: 8px; font-weight: 600; letter-spacing: 1.1px; color: var(--c, var(--muted)); }
.step-link.is-active { background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--gold-line); }
.step-link.is-active { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 60%, transparent); }
.step-link.is-locked .step-link__task { color: var(--muted); }
.step-link.is-locked .step-link__agent { opacity: .7; }
.step-link.is-preview .step-link__state svg { display: none; }
.step-link.is-preview .step-link__state::after { content: "↗"; color: var(--c); font-size: 15px; }
.is-preview .em.is-locked svg { filter: none; }
.step-link__state { color: var(--muted); }
.step-link.is-active .step-link__state { color: var(--gold); font-size: 8px; font-weight: 800; letter-spacing: .6px; }
.step-link.is-done .step-link__state { color: var(--gold); }

.sidebar .em--xs { width: 29px; height: 29px; }
.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 6px; }
.user { display: flex; align-items: center; gap: 8px; padding: 7px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.user__avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--gold-gradient); color: var(--bg); font-family: var(--font-sub); font-weight: 700; font-size: 12px; }
.user__identity { min-width: 0; flex: 1 1 auto; }
.user__name { display: block; overflow: hidden; font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
.user__sub { font-size: 9px; color: var(--muted); }
.user__settings { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; border: 1px solid transparent; border-radius: var(--r-sm); color: var(--muted); text-decoration: none; }
.user__settings:hover, .user__settings:focus-visible { border-color: var(--gold-line); background: var(--gold-soft); color: var(--gold); }
.saved-note { display: flex; align-items: center; gap: 6px; padding: 0 7px; font-size: 10px; color: var(--text-2); }
.saved-note svg { color: var(--gold); }
.tour-trigger { width: 100%; border: 0; background: transparent; font-family: inherit; cursor: pointer; text-align: left; }

/* Interactive product tutorial ------------------------ */
body.tour-open { overflow: hidden; }
.tour-overlay { position: fixed; inset: 0; z-index: 1000; padding: 10px; background: #050504; color: var(--text); }
.tour-overlay[hidden], .tour-spotlight[hidden], .tour-pointer[hidden], .tour-loading[hidden] { display: none; }
.tour-dialog { width: 100%; height: 100%; overflow: hidden; display: grid; grid-template-rows: 46px minmax(0,1fr); border: 1px solid var(--gold-line); border-radius: 14px; background: #080806; box-shadow: 0 28px 90px rgba(0,0,0,.8); }
.tour-live-head { display: flex; align-items: center; gap: 12px; padding: 0 14px; border-bottom: 1px solid var(--line); background: #0d0c0a; }
.tour-live-head strong { margin-right: auto; color: var(--gold); font: 700 11px/1 var(--font-sub); letter-spacing: 1.4px; }
.tour-live-head span { color: var(--text-2); font-size: 11px; letter-spacing: .5px; }
.tour-live-head [data-tour-voice-status] { max-width: 260px; color: var(--gold-soft); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tour-live-head button, .tour-controls button { min-height: 34px; padding: 0 12px; border: 1px solid var(--gold-line); border-radius: 7px; background: #11100d; color: var(--text); font: 600 11px/1 var(--font-sub); cursor: pointer; }
.tour-live-head [data-tour-close] { width: 34px; padding: 0; font-size: 20px; }
.tour-frame-wrap { position: relative; min-width: 0; min-height: 0; overflow: hidden; background: #080806; }
.tour-frame-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #080806; }
.tour-dim { position: absolute; inset: 0; pointer-events: none; background: rgba(0,0,0,.18); }
.tour-spotlight { position: fixed; z-index: 5; pointer-events: none; border: 3px solid #e3c681; border-radius: 10px; box-shadow: 0 0 0 9999px rgba(0,0,0,.48), 0 0 30px rgba(211,181,124,.72); transition: left .2s, top .2s, width .2s, height .2s; }
.tour-pointer { position: fixed; z-index: 7; pointer-events: none; color: #f4d996; font-size: 30px; filter: drop-shadow(0 0 10px rgba(211,181,124,.9)); animation: tourPointer 1.1s ease-in-out infinite; transform: translate(-50%,-50%); }
.tour-pointer[data-placement="right"] { transform: translate(22px,-50%) rotate(180deg); }
.tour-pointer[data-placement="left"] { transform: translate(calc(-100% - 22px),-50%); }
.tour-pointer[data-placement="top"] { transform: translate(-50%,calc(-100% - 18px)) rotate(90deg); }
.tour-pointer[data-placement="bottom"] { transform: translate(-50%,18px) rotate(-90deg); }
@keyframes tourPointer { 50% { filter: drop-shadow(0 0 19px rgba(247,240,227,1)); } }
.tour-loading { position: absolute; z-index: 4; inset: 0; display: grid; place-items: center; padding: 30px; background: radial-gradient(circle at 50% 42%, rgba(171,118,51,.12), transparent 34%), #080806; color: var(--gold); font: 600 13px/1.4 var(--font-sub); text-align: center; }
.tour-chapters { position: absolute; z-index: 8; left: 16px; bottom: 15px; margin: 0; padding: 6px; list-style: none; display: flex; gap: 4px; border: 1px solid var(--line-2); border-radius: 9px; background: rgba(8,8,6,.94); }
.tour-chapter { padding: 8px 10px; border-radius: 6px; color: var(--muted); font: 600 9px/1 var(--font-sub); letter-spacing: .7px; text-transform: uppercase; }
.tour-chapter span { margin-right: 5px; color: #716859; }
.tour-chapter.is-active { background: var(--gold-soft); color: var(--gold); }
.tour-card { --target-left:50vw; --target-top:50vh; --target-right:50vw; --target-bottom:50vh; position: fixed; z-index: 9; width: min(350px, calc(100vw - 32px)); max-height: min(380px, calc(100vh - 90px)); overflow-y: auto; padding: 20px; border: 1px solid var(--gold-line); border-radius: 13px; background: rgba(13,12,10,.98); box-shadow: 0 18px 60px rgba(0,0,0,.72); }
.tour-card[data-placement="right"] { left: min(calc(var(--target-right) + 24px), calc(100vw - 366px)); top: clamp(62px, var(--target-top), calc(100vh - 398px)); }
.tour-card[data-placement="left"] { right: calc(100vw - var(--target-left) + 24px); top: clamp(62px, var(--target-top), calc(100vh - 398px)); }
.tour-card[data-placement="bottom"] { left: clamp(16px, var(--target-left), calc(100vw - 366px)); top: min(calc(var(--target-bottom) + 24px), calc(100vh - 398px)); }
.tour-card[data-placement="top"] { left: clamp(16px, var(--target-left), calc(100vw - 366px)); bottom: calc(100vh - var(--target-top) + 24px); }
.tour-card[data-placement="docked"], .tour-card:not([data-placement]) { right: 20px; bottom: 20px; }
.tour-kicker { margin: 0; color: var(--gold); font: 700 10px/1 var(--font-sub); letter-spacing: 1.3px; text-transform: uppercase; }
.tour-card h2 { margin: 11px 0; font: 400 30px/1.05 var(--font-heading); text-transform: uppercase; }
.tour-card > p:not(.tour-kicker) { margin: 0; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.tour-controls { margin-top: 16px; display: grid; grid-template-columns: 1fr auto auto; gap: 7px; }
.tour-controls [data-tour-next] { background: var(--gold-gradient); color: #080806; }
.tour-controls button:disabled { opacity: .35; cursor: default; }
body.tour-frame [data-tutorial-trigger] { display: none !important; }
@media (max-width: 900px) { .tour-overlay { padding: 0; } .tour-dialog { border: 0; border-radius: 0; } .tour-live-head strong { display: none; } .tour-ai-disclosure { display: none; } .tour-live-head [data-tour-voice-status] { max-width: 150px; } .tour-live-head { gap: 7px; padding: 0 8px; } .tour-card { right: 10px !important; bottom: 10px !important; left: auto !important; top: auto !important; max-height: 44vh; } .tour-chapters { display: none; } }
@media (max-height: 680px) { .tour-card { overflow-y: auto; max-height: calc(100vh - 72px); padding: 14px; } .tour-card h2 { font-size: 24px; margin: 7px 0; } .tour-controls { margin-top: 9px; } }
@media (prefers-reduced-motion: reduce) { .tour-pointer { animation: none; } .tour-spotlight { transition: none; } }
@media (prefers-reduced-transparency: reduce) { .tour-card, .tour-chapters { background: #0d0c0a; } .tour-dim { background: rgba(0,0,0,.34); } }

/* 4. Type ---------------------------------------------- */
.h-display { font-family: var(--font-heading); font-weight: 400; font-size: clamp(44px, 5.4vw, 72px); line-height: .95; letter-spacing: .5px; text-transform: uppercase; }
.h-1 { font-family: var(--font-heading); font-weight: 400; font-size: clamp(36px, 3.6vw, 48px); line-height: 1; letter-spacing: .5px; text-transform: uppercase; }
.h-2 { font-family: var(--font-heading); font-weight: 400; font-size: 32px; line-height: 1; letter-spacing: .6px; text-transform: uppercase; }
.h-3 { font-family: var(--font-sub); font-weight: 700; font-size: 18px; line-height: 1.3; }
.gold-text { background: var(--gold-gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sub { font-family: var(--font-sub); font-weight: 400; font-size: 19px; line-height: 1.5; color: var(--text-2); max-width: 58ch; }
.body-2 { font-size: 14px; color: var(--text-2); }
.muted { color: var(--muted); }
.eyebrow { font-family: var(--font-sub); font-size: 13px; font-weight: 600; color: var(--gold); letter-spacing: .4px; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; }
.rule { height: 1px; background: linear-gradient(90deg, var(--gold-line), transparent); border: 0; margin: 0; }

/* 5. Buttons ------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--tap); padding: 0 22px; border-radius: var(--r-sm);
  border: 1px solid var(--gold-line); background: transparent;
  color: var(--text); text-decoration: none;
  font-family: var(--font-sub); font-size: 14px; font-weight: 600; letter-spacing: .3px;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { border-color: var(--gold); background: var(--gold-soft); color: var(--text); }
.btn svg { color: var(--gold); }
.btn--gold { border: none; background: var(--gold-gradient); color: var(--simple-black); font-weight: 700; }
.btn--gold svg { color: var(--simple-black); }
.btn--gold:hover { background: var(--gold-gradient); color: var(--simple-black); filter: brightness(1.06); }
.resume-cta { min-width: 238px; }
.resume-cta__label { display: grid; overflow: hidden; }
.resume-cta__default, .resume-cta__hover { grid-area: 1 / 1; transition: opacity .18s ease, transform .18s ease; }
.resume-cta__hover { opacity: 0; transform: translateY(8px); }
.resume-cta:hover .resume-cta__default,
.resume-cta:focus-visible .resume-cta__default { opacity: 0; transform: translateY(-8px); }
.resume-cta:hover .resume-cta__hover,
.resume-cta:focus-visible .resume-cta__hover { opacity: 1; transform: translateY(0); }
.btn--lg { min-height: var(--tap-lg); padding: 0 30px; font-size: 15px; }
.btn--block { width: 100%; }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 13px; }
.btn--quiet { border-color: transparent; color: var(--text-2); }
.btn--quiet:hover { border-color: var(--line-2); background: transparent; }
.icon-btn { width: var(--tap); height: var(--tap); display: inline-flex; align-items: center; justify-content: center; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; color: var(--text); }
.icon-btn:hover { border-color: var(--gold-line); }

/* 6. Status -------------------------------------------- */
.status { display: inline-flex; align-items: center; gap: 7px; min-height: 28px; padding: 0 12px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.status--done { background: var(--ok-bg); color: var(--ok); }
.status--active { background: var(--gold-gradient); color: var(--simple-black); }
.status--locked { background: var(--locked-bg); color: var(--locked); border: 1px solid var(--line); }
.status--check { background: var(--info-bg); color: var(--info); }
.status--alert { background: var(--alert-bg); color: var(--alert); }
.status--draft { background: var(--info-bg); color: var(--info); }
.status--empty { background: var(--locked-bg); color: var(--muted); border: 1px solid var(--line); }

/* 7. Specialist emblems --------------------------------- */
.em { position: relative; flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; }
.em svg { width: 100%; height: 100%; }
.em--xs { width: 36px; height: 36px; }
.em--sm { width: 44px; height: 44px; }
.em--md { width: 64px; height: 64px; }
.em--lg { width: 88px; height: 88px; }
.em.is-locked svg { filter: saturate(.85) brightness(.82); }
.em.is-active::after { content: ""; position: absolute; inset: -8px; border-radius: 50%; background: radial-gradient(circle, rgba(211,181,124,.28), transparent 70%); z-index: -1; }

/* 8. ADAM orb (circular gold light) -------------------- */
.orb {
  border-radius: 50%; flex: 0 0 auto;
  background: radial-gradient(circle at 38% 32%, #FFFFFF 0%, #F7F0E3 12%, #E5D3A8 30%, #C79B5B 55%, #6E4A1E 80%, #1A1208 100%);
  box-shadow: 0 0 40px 6px rgba(211,181,124,.28);
  animation: orbBreath 4.5s ease-in-out infinite;
}
.orb--xs { width: 24px; height: 24px; }
.orb--sm { width: 36px; height: 36px; }
.orb--md { width: 44px; height: 44px; }
.orb--lg { width: 132px; height: 132px; }
.orb-wrap { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.orb-wrap--md { width: 60px; height: 60px; }
.orb-wrap--lg { width: 190px; height: 190px; }
.orb-halo { position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--gold-line); }
.orb-halo::after { content: ""; position: absolute; inset: 12px; border-radius: 50%; border: 1px solid rgba(211,181,124,.18); }
@keyframes orbBreath { 0%, 100% { box-shadow: 0 0 34px 4px rgba(211,181,124,.24); } 50% { box-shadow: 0 0 60px 14px rgba(211,181,124,.38); } }

/* 9. Cards and panels ---------------------------------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.panel--tight { padding: 18px; }
.frame { position: relative; border: 1px solid var(--gold-line); }

/* 10. Dashboard ---------------------------------------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }

.dashboard-progress {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background:
    radial-gradient(440px 170px at 10% 45%, rgba(191,208,223,.09), transparent 72%),
    linear-gradient(115deg, #14120E 0%, #0B0A08 58%, #0E0C08 100%);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.025), 0 18px 50px rgba(0,0,0,.14);
}
.dashboard-progress::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(115deg, transparent 0 22%, rgba(211,181,124,.04) 22.1%, transparent 22.4% 100%); }
.dashboard-progress__layout { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: clamp(20px, 3vw, 42px); align-items: center; padding: 18px 30px 16px 24px; }
.dashboard-progress__fold { position: absolute; top: 0; right: 0; width: 60px; height: 60px; pointer-events: none; }
.dashboard-progress__badge { align-self: stretch; min-width: 94px; padding-right: 24px; display: flex; align-items: baseline; justify-content: center; border-right: 1px solid rgba(211,181,124,.18); }
.dashboard-progress__number { font-family: var(--font-heading); font-size: 52px; line-height: 1; color: var(--crispy-ivory); text-shadow: 0 0 24px rgba(211,181,124,.16); }
.dashboard-progress__total { margin-left: 6px; font-family: var(--font-sub); font-size: 11px; font-weight: 700; letter-spacing: 1px; color: var(--muted); }
.dashboard-progress__main { min-width: 0; display: flex; align-items: flex-start; flex-direction: column; gap: 5px; }
.dashboard-progress__meta { min-width: 0; display: flex; align-items: center; gap: 14px; }
.dashboard-progress__identity { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.dashboard-progress__agent { font-family: var(--font-sub); font-size: 11px; font-weight: 700; letter-spacing: 1.3px; color: #BFD0DF; text-transform: uppercase; }
.dashboard-progress__title { font-family: var(--font-heading); font-weight: 400; font-size: clamp(34px, 3.4vw, 48px); line-height: .95; letter-spacing: .5px; text-transform: uppercase; white-space: nowrap; }
.dashboard-progress__output { padding-left: 14px; border-left: 1px solid rgba(211,181,124,.18); font-size: 12px; color: var(--muted); white-space: nowrap; }
.dashboard-progress__output strong { color: var(--text-2); font-weight: 600; }
.dashboard-progress__action { position: relative; padding-right: 24px; display: flex; align-items: flex-end; flex-direction: column; gap: 9px; }
.dashboard-progress__status { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-sub); font-size: 12px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.dashboard-progress__status-dot { width: 6px; height: 6px; border-radius: 50%; background: #BFD0DF; box-shadow: 0 0 12px rgba(191,208,223,.55); }
.dashboard-progress__rail { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; padding: 0 24px 13px; }
.dashboard-progress__rail-step { height: 3px; border-radius: 4px; background: rgba(229,217,203,.10); }
.dashboard-progress__rail-step.is-done { background: rgba(211,181,124,.5); }
.dashboard-progress__rail-step.is-active { background: linear-gradient(90deg, #BFD0DF, #F7F0E3); box-shadow: 0 0 14px rgba(191,208,223,.35); }

.progress { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.progress span { height: 4px; border-radius: 2px; background: var(--line-2); }
.progress span.is-done { background: var(--gold); }
.progress span.is-active { background: var(--gold-gradient); }

.specialists { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
/* Each card sets its own --c (accent) and --c-glow inline. */
.spec {
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
  border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line);
  color: var(--text); text-decoration: none;
  transition: border-color .2s ease, transform .2s ease;
}
.spec:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 55%, transparent); transform: translateY(-2px); }
.spec__art {
  position: relative; height: 150px; overflow: hidden;
  display: flex; align-items: center; padding: 0 24px;
  background:
    radial-gradient(220px 150px at 64px 50%, var(--c-glow), transparent 72%),
    linear-gradient(180deg, color-mix(in srgb, var(--c) 9%, #0B0A08), #0B0A08);
  border-bottom: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
}
.spec__art::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--c); opacity: .8; }
.spec__motif { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--c); opacity: .22; }
.spec__art .em { position: relative; z-index: 1; filter: drop-shadow(0 6px 18px var(--c-glow)); }
.spec__num {
  position: absolute; top: 16px; right: 16px; z-index: 1;
  min-width: 36px; height: 30px; padding: 0 8px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 1px solid color-mix(in srgb, var(--c) 55%, transparent);
  background: rgba(8,8,6,.6); color: var(--c);
  font-family: var(--font-sub); font-size: 13px; font-weight: 700;
}
.spec__body { flex: 1 1 auto; display: flex; flex-direction: column; gap: 10px; padding: 20px 22px 22px; }
.spec__name { display: block; font-family: var(--font-sub); font-size: 13px; font-weight: 700; letter-spacing: 2.2px; color: var(--c); }
.spec__role { display: block; font-size: 13px; color: var(--muted); }
.spec__task { font-family: var(--font-heading); font-weight: 400; font-size: 30px; line-height: 1; letter-spacing: .4px; text-transform: uppercase; }
.spec__makes { font-size: 14px; color: var(--text-2); }
.spec__makes strong { color: var(--text); font-weight: 600; }
.spec__foot { margin-top: auto; padding-top: 6px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.spec__note { font-size: 13px; color: var(--muted); }
.spec.is-active { border-color: var(--c); box-shadow: 0 0 0 1px var(--c), 0 18px 50px -24px var(--c-glow); }
.spec.is-active .status--active { background: var(--c); color: var(--simple-black); }
.spec.is-done .status--done { background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); }
.spec.is-locked .spec__art { filter: saturate(.85) brightness(.82); }
.spec.is-locked .spec__task { color: var(--text-2); }

.how { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.how__item { display: flex; flex-direction: column; gap: 10px; padding: 24px; border-right: 1px solid var(--line); }
.how__item:last-child { border-right: none; }
.how__icon { width: 44px; height: 44px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-line); border-radius: 4px; color: var(--gold); }
.how__title { font-family: var(--font-sub); font-weight: 700; font-size: 16px; }

.bonuses { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.bonus { display: flex; flex-direction: column; gap: 12px; min-height: 172px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.bonus:hover { border-color: var(--line-2); color: var(--text); }
.bonus__icon { width: 46px; height: 46px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold-line); border-radius: 4px; background: linear-gradient(160deg, #1B1914, #0E0D0B); color: var(--gold); }
.bonus__title { font-family: var(--font-sub); font-weight: 700; font-size: 16px; }
.bonus .status { margin-top: auto; align-self: flex-start; }
.bonus--vip { background: radial-gradient(260px 160px at 100% 0%, rgba(211,181,124,.16), transparent 70%), var(--surface); border-color: var(--gold-line); }
.bonus--vip .bonus__icon { background: var(--gold-gradient); color: var(--simple-black); border: none; }

.helpbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.helpbar__text { display: flex; align-items: center; gap: 14px; font-size: 16px; }

/* 11. Chat --------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px var(--gutter); background: rgba(8,8,6,.88); border-bottom: 1px solid var(--line); }
.toolbar__id { display: flex; align-items: center; gap: 16px; }
.toolbar__title { display: flex; flex-direction: column; line-height: 1.25; }
.toolbar__sub { font-size: 14px; color: var(--text-2); }
.chip-agent { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px 0 4px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--c, var(--gold)) 50%, transparent); font-family: var(--font-sub); font-size: 12px; font-weight: 700; letter-spacing: 1.6px; color: var(--c, var(--gold)); }

.segmented { display: inline-flex; gap: 4px; padding: 4px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.segmented [role="tab"] { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 7px; border: none; background: transparent; color: var(--text-2); font-family: var(--font-sub); font-size: 14px; font-weight: 600; }
.segmented [role="tab"][aria-selected="true"] { background: var(--gold-gradient); color: var(--simple-black); }

.stages { margin: 0; padding: 16px var(--gutter); list-style: none; display: flex; gap: 0; overflow-x: auto; border-bottom: 1px solid var(--line); }
.stage { flex: 1 0 110px; display: flex; flex-direction: column; gap: 8px; padding-right: 10px; }
.stage__bar { height: 3px; border-radius: 2px; background: var(--line-2); }
.stage__label { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.stage__label svg { flex: 0 0 auto; }
.stage.is-done .stage__bar { background: var(--gold); }
.stage.is-done .stage__label { color: var(--text-2); }
.stage.is-done .stage__label svg { color: var(--gold); }
.stage.is-active .stage__bar { background: var(--gold-gradient); }
.stage.is-active .stage__label { color: var(--text); font-weight: 600; }
.stage.is-active .stage__label svg { color: var(--gold); }

.thread { display: flex; flex-direction: column; gap: 18px; }
.msg { display: flex; gap: 14px; align-items: flex-start; }
.msg--user { justify-content: flex-end; }
.bubble { max-width: 640px; display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: 4px 16px 16px 16px; background: var(--surface-2); border: 1px solid var(--line); }
.bubble__tag { font-family: var(--font-sub); font-size: 12px; font-weight: 700; letter-spacing: 1.4px; color: var(--gold); }
.bubble__text { font-size: 16px; line-height: 1.6; }
.bubble__text--q { font-family: var(--font-sub); font-size: 19px; font-weight: 700; line-height: 1.45; }
.bubble__list { margin: 4px 0 0; padding-left: 18px; color: var(--text-2); }
.msg--user .bubble { border-radius: 16px 4px 16px 16px; background: var(--gold-soft); border-color: var(--gold-line); }
.msg--user .bubble__tag { color: var(--crispy-ivory); }
.bubble--note { background: var(--info-bg); border-color: rgba(229,217,203,.2); }
.bubble--note .bubble__tag { color: var(--crispy-ivory); }
.msg--checkpoint { justify-content: center; font-size: 11px; color: var(--muted); }
.msg--checkpoint .em, .msg--checkpoint .bubble__tag { display: none; }
.msg--checkpoint .bubble { max-width: none; padding: 2px 8px; border: 0; background: transparent; box-shadow: none; }
.msg--checkpoint .bubble__text { font-size: inherit; line-height: 1.35; letter-spacing: .25px; }
.bubble--typing { flex-direction: row; align-items: center; gap: 6px; padding: 18px; }
.bubble--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--gold); animation: typing 1.2s ease-in-out infinite; }
.bubble--typing span:nth-child(2) { animation-delay: .15s; }
.bubble--typing span:nth-child(3) { animation-delay: .3s; }
@keyframes typing { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

.composer { margin: 0; display: flex; flex-direction: column; gap: 14px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--gold-line); }
.composer__label { font-family: var(--font-sub); font-size: 14px; font-weight: 700; }
.composer__input { width: 100%; min-height: 112px; padding: 14px 16px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); font-size: 16px; line-height: 1.6; resize: vertical; }
.composer__input::placeholder { color: var(--muted); }
.composer__input:focus { outline: none; border-color: var(--gold); }
.composer__row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.composer__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: transparent; font-size: 14px; color: var(--text-2); }
.pill:hover { border-color: var(--gold-line); color: var(--text); }
.pill--dashed { border-style: dashed; }

.feed { display: flex; flex-direction: column; gap: 10px; }
.feed__item { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.feed__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.feed__name { font-weight: 600; font-size: 14px; }
.feed__value { font-size: 14px; color: var(--text-2); }
.saved-actions { display: flex; align-items: center; gap: 12px; }
.saved-download { min-height: 34px; padding: 0 12px; }
.promise { display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: var(--r-lg); border: 1px solid var(--gold-line); background: linear-gradient(160deg, #15130F, var(--surface)); }
.promise__intro { font-size: 14px; line-height: 1.5; color: var(--text); }
.promise ul { margin: 0; padding: 12px 0; list-style: none; display: flex; flex-direction: column; gap: 12px; font-size: 13px; line-height: 1.45; color: var(--text-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise li { display: flex; gap: 10px; align-items: flex-start; }
.promise li svg { color: var(--gold); flex: 0 0 auto; margin-top: 3px; }
.promise li strong { color: var(--text); font-weight: 600; }
.promise__note { font-size: 12px; line-height: 1.5; color: var(--muted); }
.promise li.is-alert svg { color: var(--alert); }

/* 12. Voice -------------------------------------------- */
.voice { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-direction: column; gap: 22px; padding: clamp(22px, 3vw, 36px); border-radius: var(--r-lg); background: radial-gradient(560px 320px at 50% 18%, rgba(211,181,124,.12), transparent 70%), var(--surface); border: 1px solid var(--gold-line); }
.voice > :not(.voice__ambient, .voice-hud) { position: relative; z-index: 2; }
.voice__ambient { position: absolute; z-index: 0; inset: 0; pointer-events: none; opacity: .42; }
.voice__ambient svg { width: 100%; height: 100%; }
.voice__wave-line { fill: none; stroke: var(--gold); stroke-width: 1; stroke-dasharray: 5 9; vector-effect: non-scaling-stroke; animation: voiceWaveDrift 12s linear infinite; }
.voice__wave-line--one { opacity: .2; }
.voice__wave-line--two { opacity: .11; animation-duration: 17s; animation-direction: reverse; }
.voice__wave-line--three { opacity: .08; animation-duration: 22s; }
.voice__stage { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.vorb { position: relative; width: 260px; height: 260px; display: flex; align-items: center; justify-content: center; }
.vorb::before, .vorb::after { content: ""; position: absolute; inset: 15px; border: 1px dashed rgba(211,181,124,.32); border-radius: 50%; animation: spin 18s linear infinite; }
.vorb::after { inset: 31px; border-style: solid; border-color: rgba(211,181,124,.08) rgba(211,181,124,.38); animation-duration: 11s; animation-direction: reverse; }
.vorb .orb-halo { inset: 6px; }
.vorb__core { position: relative; z-index: 2; width: 168px; height: 168px; }
.vorb__ripple { position: absolute; inset: 46px; border-radius: 50%; border: 1px solid var(--gold); opacity: 0; }
.vorb__spinner { position: absolute; inset: 22px; border-radius: 50%; opacity: 0; background: conic-gradient(from 0deg, transparent 0 62%, var(--gold) 100%); -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2px)); }
.vorb__agent { position: absolute; right: 10px; bottom: 10px; z-index: 3; }
.voice__state { font-family: var(--font-heading); font-size: 34px; letter-spacing: .6px; text-transform: uppercase; text-align: center; }
.voice__status { margin: -4px 0 0; color: var(--gold-soft); font-size: 11px; line-height: 1.35; text-align: center; }
.voice__privacy { display: block; margin-top: 2px; color: var(--text-2); font-size: 10px; }
.voice__recovery { display: flex; align-items: center; justify-content: center; gap: 8px; }
.voice__recovery[hidden] { display: none; }
.wave { display: flex; align-items: center; justify-content: center; gap: 3px; width: 100%; max-width: 310px; height: 48px; }
.wave span { width: 6px; height: var(--wave-height, 10px); border-radius: 999px; background: var(--gold); box-shadow: 0 0 10px rgba(211,181,124,.34); opacity: .55; transform-origin: center; animation: waveTicker var(--wave-speed, 1s) ease-in-out infinite alternate; animation-delay: var(--wave-delay, 0ms); }
.voice [data-orb-state="idle"] .vorb__core { animation: orbIdle 3.8s ease-in-out infinite; }
.voice [data-orb-state="idle"] .orb-halo { animation: haloIdle 4.8s ease-in-out infinite; }
[data-orb-state="listening"] .vorb__ripple { animation: ripple 2.6s ease-out infinite; }
[data-orb-state="listening"] .vorb__ripple:nth-child(2) { animation-delay: .85s; }
[data-orb-state="listening"] .vorb__ripple:nth-child(3) { animation-delay: 1.7s; }
[data-orb-state="thinking"] .vorb__spinner { opacity: 1; animation: spin 1.2s linear infinite; }
[data-orb-state="thinking"] .orb { animation: orbThink 1.3s ease-in-out infinite; }
[data-orb-state="speaking"] .orb { animation: orbTalk .5s ease-in-out infinite alternate; }
[data-orb-state="listening"] .wave span, [data-orb-state="speaking"] .wave span { opacity: 1; filter: brightness(1.2); }
[data-orb-state="listening"] .wave span { background: var(--crispy-ivory); }
@keyframes ripple { 0% { transform: scale(.9); opacity: .7; } 100% { transform: scale(1.75); opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes orbThink { 0%, 100% { filter: brightness(.78); } 50% { filter: brightness(1.08); } }
@keyframes orbTalk { from { transform: scale(1); } to { transform: scale(1.07); box-shadow: 0 0 80px 20px rgba(211,181,124,.42); } }
@keyframes bar { 0%, 100% { height: 4px; } 50% { height: 38px; } }
@keyframes waveTicker { from { transform: scaleY(var(--wave-floor, .28)); opacity: .35; } to { transform: scaleY(1); opacity: 1; } }
@keyframes orbIdle { 0%, 100% { transform: scale(.98); filter: brightness(.92); box-shadow: 0 0 35px 4px rgba(211,181,124,.16); } 50% { transform: scale(1.025); filter: brightness(1.05); box-shadow: 0 0 58px 10px rgba(211,181,124,.28); } }
@keyframes haloIdle { 0%, 100% { opacity: .45; transform: scale(.96); } 50% { opacity: .85; transform: scale(1.04); } }
@keyframes voiceWaveDrift { to { stroke-dashoffset: -100; } }
.voice-hud { position: absolute; z-index: 3; top: 42px; left: 28px; width: 190px; padding: 13px; overflow: hidden; border: 1px solid rgba(211,181,124,.25); border-radius: 6px; background: linear-gradient(145deg, rgba(12,12,9,.88), rgba(23,20,14,.58)); box-shadow: inset 0 0 28px rgba(211,181,124,.035); color: rgba(229,217,203,.62); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: .65px; pointer-events: none; }
.voice-hud::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(211,181,124,.025) 3px 4px); }
.voice-hud__scan { position: absolute; z-index: 2; left: 0; right: 0; top: -25%; height: 25%; background: linear-gradient(180deg, transparent, rgba(211,181,124,.14), transparent); animation: hudScan 3.4s linear infinite; }
.voice-hud__head { position: relative; display: flex; align-items: center; justify-content: space-between; padding-bottom: 9px; color: var(--gold); font-weight: 700; }
.voice-hud__head i { width: 6px; height: 6px; border-radius: 50%; background: #78C7A9; box-shadow: 0 0 9px #78C7A9; animation: hudBlink 1.4s steps(2) infinite; }
.voice-hud__grid { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 5px 10px; padding: 9px 0; border-top: 1px solid rgba(211,181,124,.14); border-bottom: 1px solid rgba(211,181,124,.14); }
.voice-hud__grid strong { color: var(--crispy-ivory); font-size: 9px; font-weight: 600; }
.voice-hud__meter { position: relative; height: 3px; margin-top: 9px; overflow: hidden; background: rgba(211,181,124,.1); }
.voice-hud__meter span { display: block; width: var(--hud-level); height: 100%; background: linear-gradient(90deg, #725B2B, var(--gold)); transform-origin: left; animation: hudMeter 2.2s ease-in-out infinite alternate; }
.voice-hud__stream { position: relative; height: 34px; margin-top: 10px; overflow: hidden; line-height: 17px; color: rgba(211,181,124,.48); }
.voice-hud__track { animation: hudData 6s steps(4) infinite; }
.voice-hud--signal { right: 28px; left: auto; }
.voice-signal { position: relative; display: grid; grid-template-columns: 60px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(211,181,124,.14); }
.voice-signal__radar { position: relative; width: 58px; height: 58px; overflow: hidden; border: 1px solid rgba(211,181,124,.3); border-radius: 50%; background: repeating-radial-gradient(circle, transparent 0 9px, rgba(211,181,124,.12) 10px 11px); }
.voice-signal__radar::before, .voice-signal__radar::after { content: ""; position: absolute; background: rgba(211,181,124,.16); }
.voice-signal__radar::before { top: 50%; left: 0; right: 0; height: 1px; }
.voice-signal__radar::after { left: 50%; top: 0; bottom: 0; width: 1px; }
.voice-signal__radar span { position: absolute; inset: 3px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(211,181,124,.48), transparent 27%); animation: hudRadar 2.8s linear infinite; }
.voice-signal__radar i { position: absolute; z-index: 2; top: 17px; left: 39px; width: 4px; height: 4px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 8px var(--gold); animation: hudBlink 1.1s steps(2) infinite; }
.voice-signal__spectrum { height: 52px; display: flex; align-items: center; gap: 3px; }
.voice-signal__spectrum span { width: 4px; height: var(--s); border-radius: 3px; background: linear-gradient(180deg, var(--crispy-ivory), var(--gold)); transform-origin: center; animation: signalBar 1.1s ease-in-out var(--sd) infinite alternate; }
.voice-hud__grid--signal { border-bottom: 0; padding-bottom: 0; }
@keyframes hudScan { to { transform: translateY(500%); } }
@keyframes hudBlink { 50% { opacity: .28; } }
@keyframes hudMeter { from { transform: scaleX(.72); opacity: .5; } to { transform: scaleX(1); opacity: 1; } }
@keyframes hudData { to { transform: translateY(-68px); } }
@keyframes hudRadar { to { transform: rotate(360deg); } }
@keyframes signalBar { from { transform: scaleY(.35); opacity: .45; } to { transform: scaleY(1); opacity: 1; } }
.voice__question { padding: 18px 22px; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--bg); }
.voice__question p { margin-top: 6px; font-family: var(--font-sub); font-size: 19px; font-weight: 700; line-height: 1.45; }
.voice__controls { display: flex; justify-content: center; align-items: center; gap: 24px; }
.voice__audio { width: min(260px, 80vw); height: 34px; margin: -3px auto 0; opacity: .82; accent-color: var(--gold); }
.vbtn { width: 58px; height: 58px; border-radius: 50%; border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); display: flex; align-items: center; justify-content: center; }
.vbtn:hover { border-color: var(--gold-line); }
.vbtn--mic { width: 92px; height: 92px; border: none; background: var(--gold-gradient); color: var(--simple-black); box-shadow: 0 14px 40px -12px rgba(211,181,124,.7); }
.vbtn--mic[aria-pressed="true"] { background: var(--white); }
.transcript { padding: 16px 18px; border-radius: var(--r-md); background: var(--bg); border: 1px dashed var(--line-2); }
.transcript__label { font-family: var(--font-sub); font-size: 13px; font-weight: 700; color: var(--text-2); }
.transcript__text { margin-top: 6px; min-height: 44px; color: var(--text-2); }
.devbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px dashed var(--line-2); font-size: 13px; color: var(--muted); }
.devbar .pill[aria-pressed="true"] { border-color: var(--gold); color: var(--gold); }

/* Agent loading transition ----------------------------- */
body.agent-loading { overflow: hidden; }
.agent-loader { position: fixed; z-index: 1000; inset: 0; width: 100vw; height: 100dvh; display: grid; place-items: center; overflow: hidden; padding: clamp(16px, 3vw, 38px); background: radial-gradient(circle at 35% 42%, rgba(211,181,124,.15), transparent 35%), #070705; }
.agent-loader[hidden] { display: none; }
.agent-loader__grid { position: absolute; inset: -20%; opacity: .27; background-image: linear-gradient(rgba(211,181,124,.23) 1px, transparent 1px), linear-gradient(90deg, rgba(211,181,124,.23) 1px, transparent 1px); background-size: 62px 62px; transform: perspective(650px) rotateX(58deg) translateY(17%); transform-origin: center bottom; mask-image: linear-gradient(to bottom, transparent 3%, #000 35%, #000 88%, transparent); animation: loaderGrid 8s linear infinite; }
.agent-loader__sweep { position: absolute; inset: 0; width: 34%; background: linear-gradient(90deg, transparent, rgba(211,181,124,.07), transparent); transform: skewX(-16deg) translateX(-180%); animation: loaderSweep 2.2s ease-in-out infinite; }
.agent-loader__card { position: relative; width: min(1180px, 100%); height: min(650px, calc(100dvh - 56px)); padding: clamp(24px, 3vw, 44px); border: 1px solid var(--gold-line); border-radius: 16px; background: linear-gradient(145deg, rgba(18,16,11,.92), rgba(7,7,5,.97)); box-shadow: 0 30px 100px rgba(0,0,0,.78), inset 0 1px rgba(255,255,255,.035); }
.agent-loader__card::before { content: ""; position: absolute; inset: 8px; border: 1px solid rgba(211,181,124,.08); border-radius: 7px; pointer-events: none; }
.agent-loader__layout { display: grid; grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr); grid-template-rows: minmax(0, 1fr) auto; gap: clamp(24px, 4vw, 60px); }
.agent-loader__brand-row { display: flex; align-items: center; gap: 12px; color: var(--muted); font-family: var(--font-sub); font-size: 9px; font-weight: 600; letter-spacing: 2px; }
.agent-loader__brand { width: 64px; height: 38px; object-fit: contain; }
.agent-loader__identity { min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.agent-loader__identity .agent-loader__brand-row { position: absolute; top: clamp(22px, 3vw, 38px); left: clamp(24px, 3vw, 44px); }
.agent-loader__identity-copy { margin-top: 22px; }
.agent-loader__eyebrow { color: var(--muted); font-family: var(--font-sub); font-size: 9px; font-weight: 600; letter-spacing: 1.8px; }
.agent-loader__eyebrow b { color: var(--gold); }
.agent-loader__emblem { width: clamp(150px, 16vw, 210px); height: clamp(150px, 16vw, 210px); filter: drop-shadow(0 0 30px rgba(211,181,124,.25)); animation: loaderEmblem 2s ease-in-out infinite; }
.agent-loader__title { margin-top: 7px; font-family: var(--font-heading); font-size: clamp(34px, 4vw, 52px); font-weight: 400; line-height: 1; letter-spacing: 1px; color: var(--crispy-ivory); }
.agent-loader__role { margin-top: 7px; color: var(--gold); font-family: var(--font-sub); font-size: 13px; font-weight: 700; letter-spacing: .7px; }
.agent-loader__hud { position: relative; align-self: center; min-height: 360px; overflow: hidden; display: flex; flex-direction: column; padding: 26px 28px 24px; border: 1px solid rgba(211,181,124,.42); background: linear-gradient(135deg, rgba(211,181,124,.07), rgba(7,7,5,.9) 34%); box-shadow: inset 0 0 35px rgba(211,181,124,.035), 0 18px 50px rgba(0,0,0,.34); clip-path: polygon(0 14px, 14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.agent-loader__hud::before, .agent-loader__hud::after { content: ""; position: absolute; width: 54px; height: 54px; pointer-events: none; }
.agent-loader__hud::before { top: 8px; left: 8px; border-top: 2px solid var(--gold); border-left: 2px solid var(--gold); }
.agent-loader__hud::after { right: 8px; bottom: 8px; border-right: 2px solid var(--gold); border-bottom: 2px solid var(--gold); }
.agent-loader__hud-scan { position: absolute; z-index: 0; left: 0; right: 0; height: 1px; top: 0; opacity: .5; background: linear-gradient(90deg, transparent, var(--gold), transparent); box-shadow: 0 0 14px var(--gold); animation: loaderHudScan 3.2s linear infinite; }
.agent-loader__hud-head { position: relative; z-index: 1; display: flex; justify-content: space-between; padding-bottom: 13px; border-bottom: 1px solid rgba(211,181,124,.2); color: var(--gold); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: 1.4px; }
.agent-loader__hud-head i { color: #7faf8f; font-style: normal; }
.agent-loader__briefing { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr; gap: 18px; padding: 20px 0 10px; }
.agent-loader__briefing h3 { margin: 0 0 9px; color: var(--gold); font-family: var(--font-sub); font-size: 10px; letter-spacing: 1.5px; }
.agent-loader__briefing p { color: var(--text-2); font-size: clamp(12px, 1.05vw, 14px); line-height: 1.55; }
.agent-loader__briefing ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.agent-loader__briefing li { position: relative; padding-left: 18px; color: var(--text); font-size: 13px; line-height: 1.45; }
.agent-loader__briefing li::before { content: "◆"; position: absolute; left: 0; top: 1px; color: var(--gold); font-size: 8px; }
.agent-loader__footer { grid-column: 1 / -1; align-self: end; }
.agent-loader__progress { width: 100%; height: 8px; overflow: hidden; border-radius: 99px; background: rgba(211,181,124,.1); box-shadow: inset 0 0 0 1px rgba(211,181,124,.2); }
.agent-loader__progress-bar { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--gold-gradient); box-shadow: 0 0 18px rgba(211,181,124,.6); }
.agent-loader__meta { width: 100%; display: flex; justify-content: space-between; margin-top: 9px; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 9px; letter-spacing: 1px; }
.agent-loader__meta strong { color: var(--gold); font-weight: 600; }
.agent-loader__actions { position: relative; z-index: 1; min-height: 52px; display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: auto; }
.agent-loader__audio { width: min(240px, 32vw); height: 34px; opacity: .82; accent-color: var(--gold); }
.agent-loader__start { min-width: 190px; opacity: 0; transform: translateY(6px); pointer-events: none; transition: opacity .24s ease, transform .24s ease, filter .15s ease; }
.agent-loader.is-ready .agent-loader__start { opacity: 1; transform: translateY(0); pointer-events: auto; }
.agent-loader.is-ready .agent-loader__progress-bar { box-shadow: 0 0 24px rgba(211,181,124,.8); }
.agent-loader.is-ready .agent-loader__emblem { filter: drop-shadow(0 0 26px rgba(211,181,124,.38)); }
@keyframes loaderGrid { to { background-position: 0 54px, 54px 0; } }
@keyframes loaderSweep { 0%, 18% { transform: skewX(-16deg) translateX(-180%); } 75%, 100% { transform: skewX(-16deg) translateX(430%); } }
@keyframes loaderEmblem { 0%, 100% { transform: scale(.96); opacity: .78; } 50% { transform: scale(1.04); opacity: 1; } }
@keyframes loaderHudScan { from { transform: translateY(0); } to { transform: translateY(360px); } }

/* 13. Review ------------------------------------------- */
.legend { display: flex; flex-wrap: wrap; gap: 10px; }
.part { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; align-items: start; padding: 20px 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.part__num { font-family: var(--font-heading); font-size: 30px; line-height: 1; color: var(--gold); }
.part__head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 6px; }
.part__name { font-family: var(--font-sub); font-weight: 700; font-size: 17px; }
.part__body { color: var(--text-2); }
.part__src { margin-top: 10px; font-size: 13px; color: var(--muted); }
.part--check { border-color: rgba(229,217,203,.28); }
.part--alert { border-color: rgba(224,138,110,.4); }
body.src-off .part__src { display: none; }

.artifact-live { width: min(1180px, 100%); margin: 0 auto; }
.artifact-live__head { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 4px 0 24px; border-bottom: 1px solid var(--gold-line); }
.artifact-live__title { margin-top: 4px; font-family: var(--font-heading); font-size: clamp(34px, 4vw, 54px); line-height: .98; letter-spacing: .4px; }
.artifact-live__meta { margin-top: 10px; color: var(--text-2); font-size: 13px; text-transform: capitalize; }
.artifact-live__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.artifact-live__layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; align-items: start; padding-top: 24px; }
.artifact-live__document { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.artifact-live__section { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 18px; padding: 24px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: linear-gradient(145deg, rgba(211,181,124,.045), transparent 38%), var(--surface); }
.artifact-live__section--gap { border-color: rgba(224,138,90,.42); }
.artifact-live__number { padding-top: 2px; color: var(--gold); font-family: var(--font-heading); font-size: 28px; line-height: 1; }
.artifact-live__copy { min-width: 0; }
.artifact-live__section-title { display: inline; font-family: var(--font-sub); font-size: 18px; line-height: 1.25; }
.artifact-live__status { display: inline-flex; margin-left: 10px; padding: 3px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 10px; font-weight: 700; vertical-align: 2px; }
.artifact-live__section--gap .artifact-live__status { background: rgba(224,138,90,.12); color: #e7a176; }
.artifact-live__body { margin-top: 12px; max-width: 76ch; color: var(--text-2); font-size: 16px; line-height: 1.7; overflow-wrap: anywhere; }
.artifact-live__source { margin-top: 8px; color: var(--muted); font-size: 11px; letter-spacing: .25px; }
.artifact-live__summary { position: sticky; top: 24px; padding: 24px; border: 1px solid var(--gold-line); border-radius: var(--r-lg); background: radial-gradient(circle at 90% 0, rgba(211,181,124,.13), transparent 38%), var(--surface); }
.artifact-live__summary h3 { margin-top: 4px; font-family: var(--font-sub); font-size: 19px; }
.artifact-live__summary dl { margin: 20px 0; }
.artifact-live__summary dl div { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.artifact-live__summary dt { color: var(--text-2); font-size: 12px; }
.artifact-live__summary dd { margin: 0; color: var(--gold); font-family: var(--font-sub); font-weight: 700; }
.artifact-live__assurance, .artifact-live__approval-note { color: var(--muted); font-size: 12px; line-height: 1.55; }
.artifact-live__summary .btn { margin-top: 20px; }
.artifact-live__restart { margin-top: 10px !important; background: transparent; }
.artifact-live__approval-note { margin-top: 10px; text-align: center; }
.artifact-live__notice { min-height: 38px; margin-top: 12px; padding: 9px 10px; border-radius: var(--r-sm); background: rgba(211,181,124,.08); color: var(--gold); font-size: 11px; line-height: 1.45; text-align: center; }
.artifact-live__notice:empty { visibility: hidden; }
.artifact-live__notice.is-error { background: rgba(224,138,90,.1); color: #e7a176; }
.artifact-compare-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--gold-line); border-radius: var(--r-lg); background: var(--bg); color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.72); }
.artifact-compare-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(5px); }
.artifact-compare-dialog__panel { padding: 28px; }
.artifact-compare-dialog__head { display: flex; align-items: start; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.artifact-compare-dialog__head h2 { margin-top: 4px; font-family: var(--font-sub); font-size: 28px; }
.artifact-compare-dialog__summary { margin-top: 7px; color: var(--text-2); font-size: 13px; }
.artifact-compare-dialog__close { width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 24px; cursor: pointer; }
.artifact-compare-dialog__labels, .artifact-compare-row__columns { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.artifact-compare-dialog__labels { position: sticky; top: 0; z-index: 1; padding: 14px 0 10px; background: var(--bg); color: var(--gold); font-size: 11px; letter-spacing: .7px; text-transform: uppercase; }
.artifact-compare-dialog__rows { display: flex; flex-direction: column; gap: 12px; }
.artifact-compare-row { padding: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface); }
.artifact-compare-row--changed, .artifact-compare-row--added, .artifact-compare-row--removed { border-color: var(--gold-line); }
.artifact-compare-row__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.artifact-compare-row__head h3 { font-family: var(--font-sub); font-size: 16px; }
.artifact-compare-row__status { padding: 3px 8px; border-radius: 999px; background: var(--gold-soft); color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.artifact-compare-row--unchanged .artifact-compare-row__status { background: rgba(255,255,255,.05); color: var(--muted); }
.artifact-compare-row__columns p { min-height: 72px; padding: 13px; border-radius: var(--r-sm); background: rgba(255,255,255,.025); color: var(--text-2); font-size: 13px; line-height: 1.6; white-space: pre-line; }
.artifact-compare-row__columns p:last-child { background: rgba(211,181,124,.06); color: var(--text); }
.artifact-upgrade-state { width: min(760px, 100%); margin: 24px auto; display: flex; align-items: center; gap: 18px; padding: 22px 24px; border: 1px solid var(--gold-line); border-radius: var(--r-lg); background: radial-gradient(circle at 0 0, rgba(211,181,124,.12), transparent 42%), var(--surface); }
.artifact-upgrade-state h2 { margin-top: 3px; font-family: var(--font-sub); font-size: 20px; }
.artifact-upgrade-state p:not(.eyebrow) { margin-top: 7px; color: var(--text-2); font-size: 13px; line-height: 1.55; }
.artifact-upgrade-state.is-error { display: block; border-color: rgba(224,138,90,.48); background: rgba(224,138,90,.08); }
.artifact-upgrade-state.is-error .btn { margin-top: 14px; }
.export-theme-dialog { width: min(1080px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 1px solid var(--gold-line); border-radius: 18px; background: #0b0b08; color: var(--text); box-shadow: 0 28px 90px rgba(0,0,0,.72); overflow: auto; }
.export-theme-dialog::backdrop { background: rgba(0,0,0,.78); backdrop-filter: blur(8px); }
.export-theme-dialog__panel { position: relative; padding: clamp(24px, 4vw, 42px); background: radial-gradient(circle at 88% 0, rgba(211,181,124,.12), transparent 35%), linear-gradient(145deg, rgba(255,255,255,.025), transparent 45%); }
.export-theme-dialog__panel h2 { margin-top: 6px; font-family: var(--font-heading); font-size: clamp(32px, 5vw, 52px); line-height: 1; letter-spacing: .5px; }
.export-theme-dialog__intro { max-width: 68ch; margin-top: 10px; color: var(--text-2); line-height: 1.6; }
.export-theme-dialog__close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 24px; cursor: pointer; }
.export-theme-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 16px; margin-top: 28px; }
.export-theme-card { padding: 0; border: 1px solid var(--line); border-radius: 14px; background: #11110e; color: inherit; text-align: left; overflow: hidden; cursor: pointer; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.export-theme-card:hover { transform: translateY(-4px); border-color: var(--gold); box-shadow: 0 16px 38px rgba(0,0,0,.35); }
.export-theme-card:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.export-theme-card.is-selected { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), 0 16px 38px rgba(0,0,0,.35); }
.export-theme-card:disabled { cursor: wait; opacity: .62; transform: none; }
.export-theme-card__preview { display: block; position: relative; height: 190px; padding: 18px; overflow: hidden; }
.export-theme-card__preview::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(118deg, transparent 0 35px, currentColor 36px 37px); opacity: .07; }
.export-theme-card__kicker, .export-theme-card__title, .export-theme-card__chart { position: relative; z-index: 1; display: block; }
.export-theme-card__kicker { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; }
.export-theme-card__title { margin-top: 30px; font-family: var(--font-heading); font-size: 31px; line-height: .9; }
.export-theme-card__chart { display: flex; align-items: end; gap: 5px; width: 100px; height: 42px; margin-top: 18px; }
.export-theme-card__chart i { flex: 1; background: currentColor; opacity: .7; }
.export-theme-card__chart i:nth-child(1) { height: 38%; }.export-theme-card__chart i:nth-child(2) { height: 75%; }.export-theme-card__chart i:nth-child(3) { height: 55%; }.export-theme-card__chart i:nth-child(4) { height: 100%; }
.export-theme-card--editorial-strategy .export-theme-card__preview { background: radial-gradient(circle at 82% 20%, rgba(213,173,104,.34), transparent 25%), #090907; color: #d5ad68; }
.export-theme-card--luxury-editorial .export-theme-card__preview { background: radial-gradient(circle at 80% 8%, #dec493, transparent 29%), linear-gradient(145deg,#5b4630,#ede1cf); color: #fff8ea; }
.export-theme-card--boardroom-consultancy .export-theme-card__preview { border-top: 7px solid #1c5148; background: linear-gradient(155deg,#fff,#e2ece8); color: #1c5148; }
.export-theme-card__body { display: flex; flex-direction: column; min-height: 145px; padding: 18px; border-top: 1px solid var(--line); }
.export-theme-card__body strong { font-family: var(--font-sub); font-size: 17px; }
.export-theme-card__body small { margin-top: 4px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; }
.export-theme-card__body span { margin-top: 12px; color: var(--text-2); font-size: 12px; line-height: 1.55; }
.export-theme-dialog__status { min-height: 20px; margin-top: 18px; color: var(--gold); font-size: 12px; text-align: center; }
.export-theme-dialog.is-pending .export-theme-dialog__status::before { content: ''; display: inline-block; width: 9px; height: 9px; margin-right: 8px; border: 2px solid var(--gold); border-right-color: transparent; border-radius: 50%; animation: export-spin .7s linear infinite; }
@keyframes export-spin { to { transform: rotate(360deg); } }
@media (max-width: 820px) { .export-theme-grid { grid-template-columns: 1fr; }.export-theme-card { display: grid; grid-template-columns: 150px minmax(0,1fr); }.export-theme-card__preview { height: 160px; }.export-theme-card__body { min-height: 160px; } }
@media (max-width: 520px) { .export-theme-dialog { width: calc(100vw - 16px); }.export-theme-dialog__panel { padding: 24px 16px; }.export-theme-card { display: block; }.export-theme-card__preview { height: 145px; }.export-theme-card__body { min-height: auto; }.export-theme-dialog__close { top: 10px; right: 10px; } }
@media (prefers-reduced-motion: reduce) { .export-theme-card { transition: none; }.export-theme-card:hover { transform: none; }.export-theme-dialog.is-pending .export-theme-dialog__status::before { animation-duration: 1.5s; } }
.switch { display: inline-flex; align-items: center; gap: 10px; min-height: var(--tap); padding: 0 16px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: transparent; font-family: var(--font-sub); font-size: 14px; font-weight: 600; }
.switch__track { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-2); transition: left .15s ease; }
.switch[aria-pressed="true"] .switch__track { background: var(--gold-gradient); }
.switch[aria-pressed="true"] .switch__knob { left: 19px; background: var(--simple-black); }
.check { display: flex; gap: 12px; align-items: flex-start; }
.check__icon { width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.check__title { font-weight: 600; }
.check__text { font-size: 14px; color: var(--text-2); }
.banner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: var(--r-lg); border: 1px solid var(--gold); background: linear-gradient(120deg, rgba(211,181,124,.16), var(--surface) 70%); }

/* 14. Vault -------------------------------------------- */
.alert { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding: 20px 22px; border-radius: var(--r-lg); background: var(--alert-bg); border: 1px solid rgba(224,138,110,.45); }
.alert__body { display: flex; gap: 14px; align-items: flex-start; flex: 1 1 420px; }
.alert__icon { color: var(--alert); flex: 0 0 auto; margin-top: 2px; }
.alert__title { font-family: var(--font-sub); font-weight: 700; }
.alert__text { font-size: 14px; color: var(--text-2); }
.vault-tabs { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.vault-tab { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 0 14px; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--surface); text-align: left; }
.vault-tab__text { display: flex; flex-direction: column; line-height: 1.3; }
.vault-tab__name { font-weight: 600; font-size: 14px; }
.vault-tab__agent { font-family: var(--font-sub); font-size: 11px; font-weight: 700; letter-spacing: 1.4px; color: var(--muted); }
.vault-tab[aria-selected="true"] { border-color: var(--gold); background: linear-gradient(160deg, #1A1711, var(--surface)); }
.vault-tab[aria-selected="true"] .vault-tab__agent { color: var(--gold); }
.vault-main { gap: 24px; background-image: radial-gradient(700px 360px at 88% 0, rgba(211,181,124,.08), transparent); }
.vault-head { padding-bottom: 8px; border-bottom: 1px solid var(--gold-line); }
.vault-complete { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding: 18px 20px; border: 1px solid rgba(95,181,151,.34); border-radius: var(--r-lg); background: linear-gradient(110deg, rgba(95,181,151,.1), rgba(211,181,124,.04)); }
.vault-complete__mark { width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(95,181,151,.5); border-radius: 50%; color: #8fd0b8; font-size: 20px; }
.vault-complete strong { font-family: var(--font-sub); font-size: 17px; }
.vault-complete p { margin-top: 2px; color: var(--text-2); font-size: 13px; }
.vault-tabs--seven { grid-template-columns: repeat(7, minmax(118px, 1fr)); }
.vault-tab b { width: 29px; height: 29px; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid var(--line-2); border-radius: 50%; color: var(--gold); font-size: 10px; }
.vault-asset { display: grid; gap: 18px; padding: clamp(20px, 3vw, 30px); border: 1px solid var(--gold-line); border-radius: var(--r-lg); background: linear-gradient(145deg, rgba(25,22,16,.97), rgba(10,10,8,.99)); box-shadow: 0 22px 65px rgba(0,0,0,.28); }
.vault-asset__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.vault-asset__top h2 { margin-top: 3px; }
.vault-asset__top p:not(.eyebrow) { max-width: 62ch; margin-top: 8px; color: var(--text-2); font-size: 14px; }
.vault-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.vault-asset__preview { min-height: 176px; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(300px, .85fr); gap: 20px; padding: 22px; overflow: hidden; border: 1px solid rgba(211,181,124,.18); border-radius: var(--r-md); background: radial-gradient(circle at 20% 20%, rgba(211,181,124,.13), transparent 36%), repeating-linear-gradient(120deg, transparent 0 70px, rgba(211,181,124,.035) 70px 71px), #0b0b09; }
.vault-quote { display: flex; align-items: center; padding: 8px 18px; border-left: 2px solid var(--gold); color: var(--crispy-ivory); font-family: var(--font-sub); font-size: clamp(18px, 2vw, 26px); font-weight: 600; line-height: 1.35; }
.vault-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; align-content: center; }
.vault-metric { min-width: 0; padding: 16px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: rgba(255,255,255,.025); }
.vault-metric span { display: block; color: var(--muted); font-family: var(--font-sub); font-size: 8px; letter-spacing: .7px; text-transform: uppercase; }
.vault-metric strong { display: block; margin-top: 7px; color: var(--gold); font-size: 14px; line-height: 1.25; }
.vault-diagram { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; }
.vault-diagram span { min-width: 74px; padding: 14px 9px; border: 1px solid var(--gold-line); border-radius: 3px; color: var(--crispy-ivory); font-family: var(--font-sub); font-size: 9px; font-weight: 700; text-align: center; }
.vault-diagram i { width: 18px; height: 1px; flex: 1 1 18px; background: var(--gold); opacity: .55; }
.vault-orbit { width: 150px; height: 150px; place-self: center; display: grid; place-items: center; border: 1px solid var(--gold); border-radius: 50%; box-shadow: 0 0 0 18px rgba(211,181,124,.04), 0 0 0 36px rgba(211,181,124,.025); color: var(--crispy-ivory); font-family: var(--font-sub); font-size: 10px; font-weight: 700; text-align: center; }
.vault-brandboard strong { display: block; margin-top: 6px; color: var(--crispy-ivory); font-family: var(--font-heading); font-size: 52px; font-weight: 400; line-height: .82; }
.vault-brandboard small { color: var(--gold); font-family: var(--font-sub); letter-spacing: 1.5px; }
.vault-brandboard p { margin-top: 13px; color: var(--text-2); }
.vault-swatches { display: flex; align-items: center; justify-content: center; gap: 12px; }
.vault-swatches i { width: 58px; height: 82px; border: 1px solid rgba(255,255,255,.12); border-radius: 30px; background: #080806; }
.vault-swatches i:nth-child(2) { background: #D3B57C; }.vault-swatches i:nth-child(3) { background: #F7F0E4; }.vault-swatches i:nth-child(4) { background: #5F7D69; }
.vault-demo-note { padding-top: 4px; color: var(--muted); font-size: 12px; text-align: center; }
@media (max-width: 1180px) { .vault-tabs--seven { grid-template-columns: repeat(4, minmax(140px, 1fr)); } .vault-asset__preview { grid-template-columns: 1fr; } }
@media (max-width: 700px) { .vault-complete { grid-template-columns: auto 1fr; }.vault-complete .status { grid-column: 2; justify-self: start; }.vault-asset__top { flex-direction: column; }.vault-actions { width: 100%; justify-content: flex-start; }.vault-actions .btn { flex: 1; }.vault-metrics { grid-template-columns: 1fr; }.vault-diagram { flex-wrap: wrap; }.vault-diagram i { display: none; }.vault-tabs--seven { grid-template-columns: repeat(2, 1fr); } }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); }
.table { min-width: 680px; font-size: 14px; }
.table th { padding: 12px 18px; text-align: left; background: var(--surface-2); font-family: var(--font-sub); font-size: 13px; font-weight: 600; color: var(--text-2); }
.table td { padding: 16px 18px; vertical-align: top; border-top: 1px solid var(--line); color: var(--text-2); }
.table td:first-child { color: var(--text); font-weight: 600; }
.table td.actions { text-align: right; }
.key-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.key-card { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 18px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); font-size: 14px; color: var(--text-2); }

/* 15. Launch ------------------------------------------- */
.countdown { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; padding: 16px 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--gold-line); }
.countdown__value { font-family: var(--font-heading); font-size: 40px; line-height: 1; }
.ready { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.gauge { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; min-height: 128px; padding: 18px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); text-align: left; }
.gauge__name { font-family: var(--font-sub); font-weight: 700; font-size: 16px; }
.gauge__text { font-size: 13px; color: var(--text-2); }
.calendar-wrap { overflow-x: auto; }
.calendar { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 6px; min-width: 800px; }
.day { display: flex; flex-direction: column; gap: 6px; min-height: 104px; padding: 10px; border-radius: var(--r-md); background: var(--surface-2); border: 1px solid var(--line); }
.day--weekend { background: var(--bg); }
.day__label { font-size: 12px; color: var(--muted); }
.event { padding: 6px 8px; border-radius: 4px; font-size: 13px; font-weight: 600; background: var(--gold-soft); color: var(--crispy-ivory); }
.event--main { background: var(--gold-gradient); color: var(--simple-black); }
.event--alert { background: var(--alert-bg); color: var(--alert); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.stat { display: flex; flex-direction: column; gap: 4px; padding: 18px; border-radius: var(--r-md); background: var(--bg); border: 1px solid var(--line); }
.stat__label { font-size: 13px; color: var(--text-2); }
.stat__value { font-family: var(--font-heading); font-size: 40px; line-height: 1; }
.empty { padding: 20px; border-radius: var(--r-md); border: 1px dashed var(--line-2); text-align: center; color: var(--text-2); }

/* 16. Responsive --------------------------------------- */
@media (max-width: 1180px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .how { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .how__item:nth-child(2) { border-right: none; }
  .how__item:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .voice-hud { display: none; }
  .dashboard-progress__layout { grid-template-columns: auto minmax(0, 1fr); gap: 14px 22px; padding-right: 54px; }
  .dashboard-progress__badge { grid-row: 1 / 3; }
  .dashboard-progress__main { grid-column: 2; }
  .dashboard-progress__action { grid-column: 2; padding-right: 0; align-items: center; flex-direction: row; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .mobilebar { display: flex; }
  .mobilebar .brand { padding: 0; }
  .mobilebar .brand__mark { width: 76px; height: 42px; object-position: center; }
  .sidebar { position: fixed; top: 0; left: 0; z-index: 40; width: min(86vw, var(--sidebar-w)); transform: translateX(-100%); transition: transform .2s ease; }
  body.menu-open .sidebar { transform: translateX(0); }
  body.menu-open .scrim { display: block; }
  .artifact-live__layout { grid-template-columns: minmax(0, 1fr); }
  .artifact-live__summary { position: static; }
}
@media (max-width: 600px) {
  .dashboard-progress__layout { grid-template-columns: minmax(0, 1fr); padding: 18px 20px 16px; }
  .dashboard-progress__badge { grid-row: auto; min-width: 0; padding: 0 42px 10px 0; justify-content: flex-start; border-right: 0; border-bottom: 1px solid rgba(211,181,124,.18); }
  .dashboard-progress__number { font-size: 42px; }
  .dashboard-progress__main, .dashboard-progress__action { grid-column: 1; }
  .dashboard-progress__main { gap: 8px; }
  .dashboard-progress__meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .dashboard-progress__output { padding-left: 0; border-left: 0; white-space: normal; }
  .dashboard-progress__title { white-space: normal; }
  .dashboard-progress__action { align-items: stretch; flex-direction: column; }
  .dashboard-progress__action .btn { width: 100%; }
  .how { grid-template-columns: minmax(0, 1fr); }
  .how__item { border-right: none; border-bottom: 1px solid var(--line); }
  .how__item:last-child { border-bottom: none; }
  .part { grid-template-columns: auto minmax(0, 1fr); }
  .part .btn { grid-column: 1 / -1; }
  .artifact-live__head { align-items: flex-start; flex-direction: column; }
  .artifact-live__actions { width: 100%; justify-content: flex-start; }
  .artifact-live__section { grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 19px 16px; }
  .artifact-compare-dialog__panel { padding: 18px; }
  .artifact-compare-dialog__labels, .artifact-compare-row__columns { grid-template-columns: 1fr; }
  .artifact-compare-dialog__labels strong:first-child { display: none; }
  .artifact-compare-row__columns p::before { display: block; margin-bottom: 5px; color: var(--gold); font-size: 9px; font-weight: 800; letter-spacing: .6px; text-transform: uppercase; }
  .artifact-compare-row__columns p:first-child::before { content: 'Previous version'; }
  .artifact-compare-row__columns p:last-child::before { content: 'Current version'; }
  .vorb { width: 210px; height: 210px; }
  .vorb__core { width: 132px; height: 132px; }
  .vorb__ripple { inset: 38px; }
  .composer__row .btn--gold { width: 100%; }
  .agent-loader { padding: 10px; }
  .agent-loader__card { height: calc(100dvh - 20px); padding: 18px; }
  .agent-loader__layout { grid-template-columns: 1fr; grid-template-rows: 116px minmax(0, 1fr) auto; gap: 12px; }
  .agent-loader__identity { flex-direction: row; justify-content: flex-start; gap: 16px; text-align: left; }
  .agent-loader__identity .agent-loader__brand-row { display: none; }
  .agent-loader__identity-copy { margin-top: 0; }
  .agent-loader__emblem { width: 82px; height: 82px; flex: 0 0 auto; }
  .agent-loader__title { font-size: 30px; }
  .agent-loader__hud { min-height: 0; padding: 18px; }
  .agent-loader__briefing { gap: 12px; padding: 13px 0 8px; }
  .agent-loader__briefing p, .agent-loader__briefing li { font-size: 11px; line-height: 1.35; }
  .agent-loader__briefing ul { gap: 4px; }
  .agent-loader__actions { justify-content: stretch; }
  .agent-loader__actions .btn { flex: 1; padding-inline: 12px; }
}

/* 17. Reduced motion ----------------------------------- */
@media (prefers-reduced-motion: reduce) {
  .orb, .vorb__ripple, .vorb__spinner, .wave span, .bubble--typing span, .chat-loading__spinner { animation: none !important; }
  .voice__ambient *, .voice-hud *, .vorb::before, .vorb::after { animation: none !important; }
  .agent-loader__grid, .agent-loader__sweep, .agent-loader__emblem, .agent-loader__hud-scan { animation: none !important; }
  .resume-cta__default, .resume-cta__hover { transition: none; }
  [data-orb-state="listening"] .wave span, [data-orb-state="speaking"] .wave span { height: 20px; }
  [data-orb-state="thinking"] .vorb__spinner { opacity: 1; }
  .sidebar, .switch__knob, .btn { transition: none; }
}

/* Account onboarding */
.account-page { width:100%; height:100dvh; min-height:100vh; overflow:hidden; background:#080806; color:var(--text); }
.account-shell { width:100%; height:100dvh; display:grid; grid-template-columns:minmax(0,42%) minmax(0,58%); background:radial-gradient(circle at 16% 20%,rgba(211,181,124,.12),transparent 34%),#080806; }
.account-story { position:relative; display:flex; flex-direction:column; justify-content:space-between; min-width:0; min-height:0; padding:clamp(28px,3.7vw,54px) clamp(32px,4.2vw,68px); overflow:hidden; border-right:1px solid rgba(211,181,124,.2); background:linear-gradient(145deg,rgba(29,27,22,.88),rgba(8,8,6,.97) 72%); }
.account-story::before { content:""; position:absolute; inset:0; pointer-events:none; opacity:.46; background:repeating-linear-gradient(118deg,transparent 0 88px,rgba(211,181,124,.07) 89px 90px); }
.account-story::after { content:""; position:absolute; width:min(38vw,520px); aspect-ratio:1; right:min(-19vw,-210px); top:17%; border:1px solid rgba(211,181,124,.3); border-radius:50%; box-shadow:0 0 0 62px rgba(211,181,124,.035),0 0 0 124px rgba(211,181,124,.022); }
.account-mark,.account-story__copy,.account-proof { position:relative; z-index:1; }
.account-mark { display:inline-flex; width:max-content; flex-direction:column; color:var(--gold); text-decoration:none; }
.account-mark span { font-family:var(--font-sub); font-size:clamp(42px,4vw,58px); font-weight:850; line-height:.8; letter-spacing:-.055em; }
.account-mark small { margin-top:10px; color:var(--text); font-size:9px; font-weight:700; letter-spacing:.24em; }
.account-story__copy { max-width:560px; margin:auto 0; padding:clamp(24px,4vh,46px) 0; }
.account-story__copy h1 { max-width:560px; margin:12px 0 18px; font-family:var(--font-heading); font-size:clamp(42px,4.1vw,64px); font-weight:700; line-height:.92; letter-spacing:-.018em; text-transform:uppercase; text-wrap:balance; }
.account-story__copy > p:last-child { max-width:500px; color:var(--text-2); font-size:clamp(13px,1.05vw,16px); line-height:1.6; }
.account-story .eyebrow { font-size:11px; }
.account-proof { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; margin:0; padding:0; list-style:none; }
.account-proof li { padding-top:11px; border-top:1px solid rgba(211,181,124,.28); color:var(--muted); font-size:10px; line-height:1.45; }
.account-proof span { display:block; margin-bottom:5px; color:var(--gold); font-weight:850; letter-spacing:.12em; }
.account-panel { position:relative; display:grid; align-items:safe center; justify-items:center; min-width:0; min-height:0; padding:clamp(20px,3vw,42px); overflow-x:hidden; overflow-y:auto; overscroll-behavior:contain; background:radial-gradient(circle at 78% 12%,rgba(211,181,124,.08),transparent 32%),linear-gradient(160deg,#0c0d0b,#080806 64%); }
.account-panel::before { content:""; position:absolute; inset:24px; border:1px solid rgba(211,181,124,.08); pointer-events:none; }
.account-panel__inner { position:relative; width:min(100%,640px); border:1px solid rgba(211,181,124,.3); border-radius:22px; padding:clamp(22px,2.2vw,32px); overflow:hidden; background:linear-gradient(155deg,rgba(24,23,19,.96),rgba(11,11,9,.98)); box-shadow:0 30px 90px rgba(0,0,0,.42),inset 0 1px 0 rgba(255,255,255,.035); }
.account-panel__inner::before { content:""; position:absolute; inset:0 0 auto; height:2px; background:linear-gradient(90deg,transparent,var(--gold),transparent); opacity:.7; }
.account-panel h2 { margin:0 0 7px; max-width:16ch; color:var(--text); font-family:var(--font-heading); font-size:clamp(36px,3.5vw,46px); font-weight:700; line-height:.92; letter-spacing:-.012em; text-transform:uppercase; }
.account-intro { margin:0 0 12px; max-width:58ch; color:var(--text-2); font-size:12px; line-height:1.5; }
[data-auth-confirm-email] { color:var(--text); overflow-wrap:anywhere; }
.account-tabs { display:grid; grid-template-columns:1fr 1fr; gap:4px; margin:10px 0 14px; padding:4px; border:1px solid rgba(211,181,124,.2); border-radius:11px; background:rgba(8,8,6,.72); }
.account-tabs button { min-height:36px; border:0; border-radius:7px; background:transparent; color:var(--muted); font:750 12px var(--font-body); cursor:pointer; transition:background .18s ease,color .18s ease; }
.account-page[data-auth-mode="signup"] [data-auth-switch="signup"],.account-page[data-auth-mode="signin"] [data-auth-switch="signin"] { background:linear-gradient(100deg,#f3ead7,#c89a50); color:#111; box-shadow:0 5px 18px rgba(171,118,51,.16); }
.account-page:is([data-auth-mode="confirm"],[data-auth-mode="reset"],[data-auth-mode="migrating"],[data-auth-mode="migration-skip"],[data-auth-mode="error"]) .account-tabs { display:none; }
.account-page:is([data-auth-mode="confirm"],[data-auth-mode="reset"],[data-auth-mode="migrating"],[data-auth-mode="migration-skip"],[data-auth-mode="error"]) .account-panel__inner > .eyebrow { margin-bottom:18px; }
.account-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px 12px; }
.account-field { display:grid; grid-column:1/-1; gap:5px; min-width:0; }
.account-field--half { grid-column:span 1; }
.account-form label { color:#d7c9ad; font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.account-form input { width:100%; min-height:40px; padding:0 13px; border:1px solid rgba(211,181,124,.24); border-radius:8px; outline:none; background:rgba(5,6,4,.88); color:var(--text); font:500 14px var(--font-body); transition:border-color .18s ease,box-shadow .18s ease,background .18s ease; }
.account-form input:hover { border-color:rgba(211,181,124,.4); }
.account-form input:focus { border-color:var(--gold); background:#080906; box-shadow:0 0 0 3px rgba(211,181,124,.1); }
.account-form .account-submit { grid-column:1/-1; }
.account-submit { display:flex; min-height:44px; justify-content:center; width:100%; margin-top:4px; border-radius:8px; text-decoration:none; }
.account-text-button { display:block; margin:14px auto 0; border:0; background:none; color:var(--gold); font:750 12px var(--font-body); cursor:pointer; }
.account-text-button:hover { color:var(--text); }
.account-status { min-height:14px; margin:8px 0 0; color:var(--gold); font-size:11px; line-height:1.4; text-align:center; }
.account-privacy { margin:8px 0 0; padding-top:8px; border-top:1px solid rgba(211,181,124,.14); color:var(--muted); font-size:10px; line-height:1.4; text-align:center; }
.account-state-icon { display:grid; place-items:center; width:44px; height:44px; margin:0 0 17px; border:1px solid var(--gold); border-radius:50%; background:rgba(211,181,124,.06); color:var(--gold); font-size:18px; }
.account-page[data-auth-mode="error"] .account-status { padding:9px 12px; border:1px solid rgba(224,138,110,.2); border-radius:8px; background:rgba(224,138,110,.07); color:#dca58f; }
.account-loader { width:38px; height:38px; margin-bottom:20px; border:2px solid rgba(211,181,124,.18); border-top-color:var(--gold); border-radius:50%; animation:spin 1s linear infinite; }
@keyframes spin { to { transform:rotate(360deg); } }
@media (max-height:760px) { .account-page { height:auto; overflow-y:auto; }.account-shell { height:auto; min-height:100vh; }.account-story,.account-panel { min-height:100vh; }.account-panel { overflow:visible; }.account-panel__inner { margin:18px 0; } }
@media (max-width:900px) { .account-page { height:auto; min-height:100vh; overflow-y:auto; }.account-shell { height:auto; min-height:100vh; grid-template-columns:1fr; }.account-story { min-height:auto; padding:22px 24px; border-right:0; border-bottom:1px solid rgba(211,181,124,.18); }.account-story::after,.account-story__copy,.account-proof { display:none; }.account-mark span { font-size:44px; }.account-panel { min-height:calc(100dvh - 104px); padding:18px 20px 30px; overflow:visible; }.account-panel::before { inset:10px; }.account-panel__inner { width:min(100%,640px); overflow:visible; } }
@media (max-width:520px) { .account-panel { padding:12px 12px 24px; }.account-panel__inner { border-radius:16px; padding:24px 18px; }.account-field--half { grid-column:1/-1; }.account-panel h2 { font-size:40px; }.account-intro { font-size:12px; }.account-privacy { font-size:9px; } }
@media (prefers-reduced-motion:reduce) { .account-loader { animation:none; } }

/* Specialist motion — additive to the original SVG artwork -------- */
.em[data-agent-motion] svg { transform-box: fill-box; transform-origin: center; animation-play-state: paused; }
.em[data-agent-motion]:hover svg,
.em[data-agent-motion]:focus-within svg,
.em[data-agent-motion].is-active svg,
.is-active > .em[data-agent-motion] svg,
.agent-loader__emblem[data-agent-motion] svg { animation-play-state: running; will-change: transform, opacity, filter; }
.spec .em[data-agent-motion] svg { animation-play-state: running; will-change: transform, opacity, filter; }
.em[data-agent-motion="anchor"] svg { animation: anchorSettle 3.8s cubic-bezier(.22,.8,.3,1) infinite; }
.em[data-agent-motion="extract"] svg { animation: extractFacet 4.2s ease-in-out infinite; }
.em[data-agent-motion="radar"] svg { animation: radarSweep 3.6s linear infinite; }
.em[data-agent-motion="forge"] svg { animation: forgeFlame 2.4s ease-in-out infinite; }
.em[data-agent-motion="architect"] svg { animation: architectTrace 4.8s steps(12) infinite; }
.em[data-agent-motion="voice"] svg { animation: voiceWave 2.2s ease-in-out infinite; }
.em[data-agent-motion="launch"] svg { animation: launchRise 3s cubic-bezier(.2,.7,.2,1) infinite; }
.em[data-agent-motion="extract"] { position: relative; }
.em[data-agent-motion="extract"]::after { content:""; position:absolute; inset:14%; pointer-events:none; opacity:.55; background:linear-gradient(115deg,transparent 32%,rgba(255,255,255,.72) 49%,transparent 64%); mix-blend-mode:screen; clip-path:polygon(50% 0,100% 50%,50% 100%,0 50%); animation: extractGlint 4.2s ease-in-out infinite; }
.em[data-agent-motion="forge"] { filter: drop-shadow(0 0 8px color-mix(in srgb,var(--c,#E08A5A) 32%,transparent)); }
.em[data-agent-motion="radar"] { filter: drop-shadow(0 0 7px color-mix(in srgb,var(--c,#5FB597) 28%,transparent)); }

@keyframes anchorSettle {
  0%,100% { transform: translateY(0) rotate(0); filter: brightness(1); }
  42% { transform: translateY(-5px) rotate(-2.5deg) scale(1.04); filter: brightness(1.22) drop-shadow(0 0 7px currentColor); }
  58% { transform: translateY(2px) rotate(1deg) scale(.99); }
}
@keyframes extractFacet {
  0%,100% { transform: perspective(220px) rotateY(0) scale(1); filter: brightness(1); }
  48% { transform: perspective(220px) rotateY(16deg) scale(1.065); filter: brightness(1.38) drop-shadow(0 0 8px currentColor); }
}
@keyframes extractGlint {
  0%,28%,100% { transform: translateX(-125%) skewX(-12deg); opacity:0; }
  46% { opacity:.72; }
  64% { transform: translateX(125%) skewX(-12deg); opacity:0; }
}
@keyframes radarSweep {
  0% { transform: rotate(0); filter: brightness(.92); }
  50% { filter: brightness(1.16); }
  100% { transform: rotate(360deg); filter: brightness(.92); }
}
@keyframes forgeFlame {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1) saturate(1); }
  35% { transform: translateY(-5px) scale(1.055,.94); filter: brightness(1.42) saturate(1.3) drop-shadow(0 0 8px currentColor); }
  68% { transform: translateY(2px) scale(.98,1.055); }
}
@keyframes architectTrace {
  0%,100% { transform: translate(0,0); filter: contrast(1); opacity:.92; }
  50% { transform: translate(2px,-2px) scale(1.035); filter: contrast(1.3) brightness(1.3) drop-shadow(0 0 6px currentColor); opacity:1; }
}
@keyframes voiceWave {
  0%,100% { transform: scaleX(1) scaleY(1); filter: brightness(1); }
  25% { transform: scaleX(.95) scaleY(1.08); }
  55% { transform: scaleX(1.065) scaleY(.94); filter: brightness(1.35) drop-shadow(0 0 7px currentColor); }
}
@keyframes launchRise {
  0%,100% { transform: translateY(0) scale(1); filter: brightness(1); }
  46% { transform: translateY(-8px) scale(1.065); filter: brightness(1.4) drop-shadow(0 0 8px currentColor); }
  64% { transform: translateY(0) scale(1); }
}

/* Each roadmap artwork moves with the specialist's visual metaphor. */
.spec__motif { transform-box: view-box; will-change: transform, opacity, filter; }
.spec[data-agent-link="anchor"] .spec__motif { transform-origin: 22% 50%; animation: anchorRings 5.2s ease-in-out infinite; }
.spec[data-agent-link="extract"] .spec__motif { transform-origin: 50% 50%; animation: extractNetwork 6.4s ease-in-out infinite; }
.spec[data-agent-link="radar"] .spec__motif { transform-origin: 22% 50%; animation: radarField 7s linear infinite; }
.spec[data-agent-link="forge"] .spec__motif { transform-origin: 70% 80%; animation: forgeHeat 3.2s ease-in-out infinite; }
.spec[data-agent-link="architect"] .spec__motif { transform-origin: center; animation: architectGrid 5.5s linear infinite; }
.spec[data-agent-link="voice"] .spec__motif { transform-origin: 72% 50%; animation: voiceSignal 2.1s ease-in-out infinite; }
.spec[data-agent-link="launch"] .spec__motif { transform-origin: 64% 62%; animation: launchClimb 3.8s cubic-bezier(.3,.7,.2,1) infinite; }

@keyframes anchorRings { 0%,100% { transform: scale(.94); opacity:.17; } 50% { transform: scale(1.08); opacity:.42; filter:brightness(1.35); } }
@keyframes extractNetwork { 0%,100% { transform: translate3d(-7px,3px,0) scale(1.04); opacity:.18; } 50% { transform: translate3d(9px,-5px,0) scale(1.1); opacity:.42; filter:brightness(1.35); } }
@keyframes radarField { 0% { transform: rotate(-7deg) scale(1.02); opacity:.2; } 50% { opacity:.46; filter:brightness(1.45); } 100% { transform: rotate(353deg) scale(1.08); opacity:.2; } }
@keyframes forgeHeat { 0%,100% { transform: translateY(8px) scale(1.02); opacity:.2; } 45% { transform: translateY(-9px) scale(1.08); opacity:.5; filter:brightness(1.55); } 70% { transform: translateY(-3px) scale(1.04); opacity:.32; } }
@keyframes architectGrid { 0% { transform: translate3d(-8px,-6px,0) scale(1.08); opacity:.16; } 50% { opacity:.42; filter:brightness(1.45); } 100% { transform: translate3d(12px,10px,0) scale(1.08); opacity:.16; } }
@keyframes voiceSignal { 0%,100% { transform: scaleY(.72) scaleX(.98); opacity:.2; } 35% { transform: scaleY(1.12) scaleX(1.03); opacity:.5; filter:brightness(1.55); } 68% { transform: scaleY(.88) scaleX(1); opacity:.3; } }
@keyframes launchClimb { 0% { transform: translateY(15px) scale(.98); opacity:.16; } 55% { transform: translateY(-12px) scale(1.08); opacity:.5; filter:brightness(1.5); } 100% { transform: translateY(-24px) scale(1.1); opacity:.1; } }

@media (prefers-reduced-motion: reduce) {
  .em[data-agent-motion] svg,
  .em[data-agent-motion]::after,
  .spec__motif { animation: none !important; transform: none !important; }
}

/* 17. One-screen chat ---------------------------------- */
.chat-page { height: 100dvh; overflow: hidden; }
.chat-page .app { height: 100dvh; min-height: 0; }
.chat-shell { height: 100dvh; min-height: 0; display: grid; grid-template-rows: auto auto auto minmax(0, 1fr); overflow: hidden; }
.chat-page .toolbar { padding: 10px 18px; gap: 10px; flex-wrap: nowrap; }
.chat-page .toolbar__id { gap: 10px; min-width: 0; }
.chat-page .toolbar__title { min-width: 0; }
.chat-page .toolbar__sub { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toolbar__stage-summary { display: none; font-size: 12px; color: var(--gold); }
.chat-page .orb-wrap--md { width: 48px; height: 48px; }
.chat-page .orb--md { width: 34px; height: 34px; }
.chat-page .stages { padding: 8px 18px; overflow: hidden; }
.chat-page .stage { min-width: 0; flex: 1 1 0; }
.chat-page .stage__bar { margin-bottom: 5px; }
.chat-page .stage__label { font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.chat-utilitybar { display: flex; justify-content: flex-end; gap: 8px; padding: 7px 18px; border-bottom: 1px solid var(--line); }
.chat-tool { min-height: 30px; padding: 0 11px; border: 1px solid var(--line); border-radius: 999px; background: transparent; color: var(--text-2); font-family: var(--font-sub); font-size: 11px; font-weight: 600; cursor: pointer; }
.chat-tool:hover, .chat-tool:focus-visible { border-color: var(--gold-line); color: var(--text); outline: none; }

.chat-shell__workspace { position: relative; min-height: 0; padding: 14px 18px; overflow: hidden; }
.chat-loading { position: absolute; z-index: 25; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; padding: 24px; background: radial-gradient(circle at 50% 42%, rgba(211,181,124,.12), transparent 34%), #080806; color: var(--gold); font: 600 12px/1.4 var(--font-sub); letter-spacing: .5px; text-align: center; }
.chat-loading[hidden] { display: none; }
.chat-loading__spinner { width: 42px; height: 42px; border: 2px solid rgba(211,181,124,.22); border-top-color: var(--gold); border-radius: 50%; box-shadow: 0 0 24px rgba(211,181,124,.12); animation: spin .9s linear infinite; }
.chat-shell__main { height: 100%; min-height: 0; display: block; }
.chat-primary { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto; gap: 10px !important; max-width: 1100px; margin: 0 auto; }
.chat-page #panel-voice { height: 100%; min-height: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto auto auto auto; align-content: stretch; gap: 10px; max-width: 1100px; margin: 0 auto; padding: 12px 18px; overflow: hidden; }
.chat-page #panel-voice .voice__stage { min-height: 0; justify-content: center; gap: 6px; }
.chat-page #panel-voice .vorb { width: 190px; height: 190px; }
.chat-page #panel-voice .vorb__core { width: 122px; height: 122px; }
.chat-page #panel-voice .vorb__ripple { inset: 34px; }
.chat-page #panel-voice .vorb__agent { right: 4px; bottom: 4px; }
.chat-page #panel-voice .voice__state { font-size: 24px; line-height: 1; }
.chat-page #panel-voice .wave { height: 20px; }
.chat-page #panel-voice .voice__question { padding: 8px 12px; }
.chat-page #panel-voice .voice__question p { margin-top: 3px; font-size: 15px; line-height: 1.35; }
.chat-page #panel-voice .voice__controls { gap: 10px; padding: 0; }
.chat-page #panel-voice .vbtn { width: 42px; height: 42px; }
.chat-page #panel-voice .vbtn--mic { width: 58px; height: 58px; }
.chat-page #panel-voice .vbtn:disabled { opacity: .45; cursor: wait; }
.chat-page #panel-voice .transcript { padding: 6px 10px; }
.chat-page #panel-voice .transcript__label { font-size: 11px; }
.chat-page #panel-voice .transcript__text { min-height: 18px; margin-top: 2px; font-size: 12px; line-height: 1.35; }
.chat-page #panel-voice .devbar { display: none; }
.chat-page #panel-voice .voice-hud { top: 20px; left: 18px; transform: scale(.9); transform-origin: top left; }
.chat-page #panel-voice .voice-hud--signal { right: 18px; left: auto; transform-origin: top right; }
.chat-page .thread { min-height: 0; justify-content: flex-start; overflow-x: hidden; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-line) transparent; }
.chat-page .thread::-webkit-scrollbar { width: 8px; }
.chat-page .thread::-webkit-scrollbar-thumb { border-radius: 999px; background: var(--gold-line); }
.chat-page .thread > .msg { width: 100%; max-width: none; margin: 0; }
.chat-page .thread > .msg .bubble { width: 100%; max-width: none; }
.chat-page .bubble { padding: 18px 20px; }
.chat-page .bubble__text--q { font-size: clamp(16px, 1.1vw, 18px); font-weight: 600; line-height: 1.45; }
.chat-page .composer { padding: 12px 14px; gap: 9px; border-radius: var(--r-md); }
.chat-page .composer__label { font-size: 12px; }
.chat-page .composer__input { min-height: 68px; max-height: 90px; padding: 11px 13px; line-height: 1.4; resize: none; }
.chat-page .composer__row { flex-wrap: nowrap; }
.chat-page .composer__chips { flex-wrap: nowrap; overflow: hidden; }
.chat-page .composer__chips .pill { min-height: 34px; padding: 0 12px; white-space: nowrap; }
.composer__status { min-height: 15px; margin: -3px 0 0; color: var(--gold); font-size: 11px; text-align: right; }
.chat-page [data-agent-completion] { justify-self: end; width: auto; min-height: 34px; padding: 0 12px; font-size: 11px; opacity: .72; }
.completion-panel { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 18px; padding: 16px 18px; border: 1px solid rgba(95,181,151,.36); border-radius: var(--r-md); background: linear-gradient(110deg,rgba(95,181,151,.1),rgba(211,181,124,.05)); }
.completion-panel[hidden] { display: none; }
.completion-panel h2 { margin: 7px 0 4px; font: 700 18px/1.2 var(--font-sub); }
.completion-panel p { color: var(--text-2); font-size: 12px; line-height: 1.45; }
.completion-panel__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }

.chat-drawer { position: fixed; z-index: 70; top: 0; right: 0; width: min(430px, 92vw); height: 100dvh; padding: 20px; overflow-y: auto; background: #0D0C0A; border-left: 1px solid var(--gold-line); box-shadow: -24px 0 60px rgba(0,0,0,.55); }
.chat-drawer[hidden], .chat-drawer-scrim[hidden] { display: none; }
.chat-drawer__head { position: sticky; top: -20px; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: -20px -20px 18px; padding: 16px 20px; background: rgba(13,12,10,.96); border-bottom: 1px solid var(--line); }
.chat-drawer .thread { justify-content: flex-start; overflow: visible; }
.chat-drawer-scrim { position: fixed; inset: 0; z-index: 69; border: 0; background: rgba(0,0,0,.64); }

@media (max-width: 900px) {
  .chat-page .app { height: calc(100dvh - 67px); }
  .chat-shell { height: calc(100dvh - 67px); grid-template-rows: auto auto minmax(0, 1fr); }
  .chat-page .stages { display: none; }
  .toolbar__stage-summary { display: block; }
  .chat-page .toolbar { padding: 8px 12px; }
  .chat-page .toolbar .segmented { display: none; }
  .chat-page .toolbar__sub { display: none; }
  .chat-utilitybar { justify-content: center; padding: 6px 10px; }
  .chat-shell__workspace { padding: 10px; }
}

@media (max-width: 600px) {
  .chat-page .toolbar .btn { min-height: 36px; padding: 0 10px; font-size: 11px; }
  .chat-page .toolbar .chip-agent { display: none; }
  .chat-tool { padding: 0 9px; font-size: 10px; }
  .chat-primary { gap: 8px !important; }
  .chat-page .thread .em { display: none; }
  .chat-page .bubble { padding: 14px; }
  .chat-page .composer__row { align-items: flex-end; }
  .chat-page .composer__chips .pill:nth-child(2) { display: none; }
  .chat-page .composer__row .btn--gold { width: auto; }
  .chat-page [data-agent-completion] { display: none; }
  .chat-page #panel-voice { padding: 8px; gap: 10px; }
  .chat-page #panel-voice .vorb { width: 150px; height: 150px; }
  .chat-page #panel-voice .vorb__core { width: 96px; height: 96px; }
  .chat-page #panel-voice .vorb__ripple { inset: 27px; }
}

@media (max-height: 760px) {
  .chat-page #panel-voice { padding-block: 8px; gap: 10px; }
  .chat-page #panel-voice .vorb { width: 150px; height: 150px; }
  .chat-page #panel-voice .vorb__core { width: 96px; height: 96px; }
  .chat-page #panel-voice .vorb__ripple { inset: 27px; }
  .chat-page #panel-voice .voice__state { font-size: 21px; }
  .chat-page #panel-voice .wave { height: 14px; }
  .chat-page #panel-voice .voice__question { padding: 7px 12px; }
  .chat-page #panel-voice .voice__question p { font-size: 14px; }
  .chat-page #panel-voice .vbtn { width: 38px; height: 38px; }
  .chat-page #panel-voice .vbtn--mic { width: 50px; height: 50px; }
  .chat-page #panel-voice .transcript { padding: 5px 10px; }
  .chat-page #panel-voice .voice-hud { top: 12px; transform: scale(.78); }
  .chat-page #panel-voice .voice-hud--signal { right: 12px; left: auto; }
}
html:not(.fas-access-ready) [data-agent-link="radar"],
html:not(.fas-access-ready) [data-agent-link="forge"],
html:not(.fas-access-ready) [data-agent-link="architect"],
html:not(.fas-access-ready) [data-agent-link="voice"],
html:not(.fas-access-ready) [data-agent-link="launch"],
html:not(.fas-access-ready) [data-nav="launch"],
html:not(.fas-access-ready) #tab-radar,
html:not(.fas-access-ready) #tab-forge,
html:not(.fas-access-ready) #tab-architect,
html:not(.fas-access-ready) #tab-voice,
html:not(.fas-access-ready) #tab-launch,
html:not(.fas-access-ready) #panel-radar,
html:not(.fas-access-ready) #panel-forge,
html:not(.fas-access-ready) #panel-architect,
html:not(.fas-access-ready) #panel-voice,
html:not(.fas-access-ready) #panel-launch { display: none !important; }
