:root {
  --bg: #080c1a;
  --bg-soft: #0d1224;
  --panel: #11182e;
  --panel-hi: #16203b;
  --panel-low: #0b1124;
  --line: rgba(148, 165, 220, 0.16);
  --line-strong: rgba(148, 165, 220, 0.3);
  --text: #f2f5ff;
  --muted: #9ca8c5;
  --muted-2: #687594;
  --cyan: #53e0ff;
  --cyan-soft: rgba(83, 224, 255, 0.13);
  --amber: #f5bb63;
  --amber-soft: rgba(245, 187, 99, 0.14);
  --violet: #a99cff;
  --green: #78e2b0;
  --red: #ff8c8c;
  --shadow: 0 26px 80px rgba(0, 0, 0, 0.32);
  --nebula: rgba(105, 85, 255, .13);
  --cosmic-glow: 0 0 32px rgba(83, 224, 255, .12);
  font-family: "Manrope", ui-sans-serif, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
::selection { color: var(--bg); background: var(--cyan); }

.app-shell { min-height: 100vh; position: relative; overflow-x: hidden; }
.app-shell::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .62;
  background-image: radial-gradient(circle at 18% 8%, rgba(83,224,255,.14), transparent 20%), radial-gradient(circle at 78% 12%, rgba(169,156,255,.12), transparent 23%), radial-gradient(rgba(160, 185, 255, .32) .7px, transparent .7px), linear-gradient(rgba(105, 130, 193, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(105, 130, 193, .04) 1px, transparent 1px);
  background-size: auto, auto, 31px 31px, 62px 62px, 62px 62px; mask-image: linear-gradient(to bottom, black, transparent 92%);
}
.app-shell::after { content: ""; position: fixed; width: 54vw; height: 54vw; top: -24vw; right: -15vw; border: 1px solid rgba(83,224,255,.13); border-radius: 50%; box-shadow: 0 0 0 28px rgba(83,224,255,.035), 0 0 0 58px rgba(169,156,255,.03), 0 0 0 102px rgba(83,224,255,.018); pointer-events: none; transform: rotate(-18deg); }

.layout { position: relative; z-index: 1; display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 27px 18px 18px; border-right: 1px solid rgba(83,224,255,.14); background: linear-gradient(180deg, rgba(8,12,26,.96), rgba(11,14,34,.92)); backdrop-filter: blur(16px); box-shadow: 16px 0 60px rgba(0,0,0,.12); }
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 28px; }
.brand-mark { width: 36px; height: 36px; position: relative; display: grid; place-items: center; filter: drop-shadow(0 0 9px rgba(83,224,255,.3)); }
.brand-mark::before, .brand-mark::after { content: ""; position: absolute; border: 1px solid var(--cyan); border-radius: 50%; transform: rotate(-33deg); }
.brand-mark::before { width: 31px; height: 15px; opacity: .8; }
.brand-mark::after { width: 15px; height: 31px; opacity: .42; transform: rotate(33deg); }
.brand-core { width: 9px; height: 9px; background: var(--cyan); border-radius: 50%; box-shadow: 0 0 18px var(--cyan); animation: corePulse 4s ease-in-out infinite; }
@keyframes corePulse { 0%,100% { box-shadow: 0 0 13px var(--cyan); } 50% { box-shadow: 0 0 27px 5px rgba(83,224,255,.32); } }
.brand-name { font-size: 14px; letter-spacing: .18em; font-weight: 800; }
.brand-sub { display: block; color: var(--muted-2); font-size: 9px; font-family: "DM Mono", monospace; letter-spacing: .12em; margin-top: 3px; }
.role-switcher { padding: 11px; margin: 0 0 18px; border: 1px solid rgba(83,224,255,.14); border-radius: 10px; background: rgba(83,224,255,.045); }
.account-switcher { padding: 11px; margin: 0 0 18px; border: 1px solid rgba(169,156,255,.14); border-radius: 10px; background: rgba(169,156,255,.045); }
.role-switcher-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 9px; }
.role-switcher .badge { font-size: 8px; }
.role-select { min-height: 34px; padding: 7px 9px; font-size: 10px; background: rgba(8,12,26,.72); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.nav-label { padding: 0 10px; color: var(--muted-2); font: 500 10px "DM Mono", monospace; letter-spacing: .14em; text-transform: uppercase; margin: 5px 0 9px; }
.nav-group { display: grid; gap: 4px; }
.nav-item { display: flex; gap: 11px; align-items: center; padding: 11px 10px; border: 1px solid transparent; border-radius: 9px; color: var(--muted); background: transparent; transition: .2s ease; text-align: left; }
.nav-item svg { width: 16px; height: 16px; opacity: .78; flex: none; }
.nav-item:hover { color: var(--text); background: rgba(83,224,255,.05); border-color: rgba(83,224,255,.1); }
.nav-item.active { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(83,224,255,.17); box-shadow: inset 3px 0 0 var(--cyan); }
.nav-item.active svg { opacity: 1; }
.sidebar-bottom { margin-top: auto; }
.demo-card { padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(135deg, rgba(83,224,255,.08), rgba(169,156,255,.06)); }
.demo-row { display: flex; gap: 10px; align-items: center; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: var(--bg); background: linear-gradient(135deg, var(--cyan), var(--violet)); font-size: 11px; font-weight: 800; }
.demo-name { font-size: 12px; font-weight: 700; }
.demo-role { color: var(--muted); font-size: 10px; margin-top: 2px; }
.demo-note { color: var(--muted); font-size: 10px; line-height: 1.45; margin: 11px 0 0; }

.main { min-width: 0; padding: 0 40px 64px; }
.topbar { min-height: 79px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); gap: 20px; position: relative; }
.topbar::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 130px; height: 1px; background: linear-gradient(90deg, var(--cyan), transparent); box-shadow: 0 0 16px var(--cyan); }
.breadcrumb { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 9px; }
.breadcrumb strong { color: var(--text); font-weight: 700; }
.breadcrumb .slash { color: var(--muted-2); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.status-chip { display: flex; align-items: center; gap: 8px; padding: 7px 10px; color: var(--muted); border: 1px solid var(--line); border-radius: 999px; font: 10px "DM Mono", monospace; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.icon-btn { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); color: var(--muted); }
.icon-btn:hover { color: var(--cyan); border-color: rgba(83,224,255,.3); }
.icon-btn svg { width: 15px; height: 15px; }

.page { max-width: 1460px; margin: 0 auto; padding-top: 40px; animation: pageIn .3s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.eyebrow { color: var(--cyan); font: 500 10px "DM Mono", monospace; letter-spacing: .16em; text-transform: uppercase; }
.page-title { max-width: 800px; margin: 11px 0 10px; font: 500 clamp(34px, 4vw, 58px)/.98 "Newsreader", Georgia, serif; letter-spacing: -.035em; text-shadow: 0 0 32px rgba(83,224,255,.06); }
.page-title em { color: var(--cyan); font-style: normal; }
.page-intro { max-width: 660px; color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.page-heading-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 28px; }
.page-heading-row .page-title { margin-bottom: 0; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: var(--panel); font-size: 12px; font-weight: 700; transition: .2s ease; }
.btn:hover { transform: translateY(-1px); border-color: rgba(83,224,255,.45); }
.btn:disabled { opacity: .42; cursor: not-allowed; transform: none; }
.btn svg { width: 14px; height: 14px; }
.btn-primary { color: var(--bg); border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 22px rgba(83,224,255,.16); }
.btn-primary:hover { background: #8aebff; border-color: #8aebff; }
.btn-ghost { background: transparent; }
.btn-amber { color: var(--bg); border-color: var(--amber); background: var(--amber); }
.btn-danger { color: var(--red); border-color: rgba(255,140,140,.3); background: rgba(255,140,140,.06); }

.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.panel { position: relative; border: 1px solid rgba(148,165,220,.19); border-radius: 12px; background: radial-gradient(circle at 100% 0%, rgba(83,224,255,.045), transparent 32%), linear-gradient(135deg, rgba(17,24,46,.97), rgba(11,17,36,.97)); box-shadow: 0 14px 36px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.018); }
.panel::after { content: ""; position: absolute; inset: 0; pointer-events: none; border-radius: inherit; background: linear-gradient(115deg, transparent 20%, rgba(83,224,255,.035) 50%, transparent 80%); opacity: .55; }
.panel.pad { padding: 21px; }
.panel-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.panel-title { margin: 0; font-size: 14px; font-weight: 800; letter-spacing: -.01em; }
.panel-kicker { color: var(--muted-2); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; }
.panel-copy { margin: 5px 0 0; color: var(--muted); line-height: 1.55; font-size: 12px; }
.panel-link { color: var(--cyan); font-size: 11px; font-weight: 700; white-space: nowrap; border: 0; padding: 0; background: transparent; cursor: pointer; }
.panel-link:hover { color: #9aeeff; }

.hero-panel { min-height: 288px; overflow: hidden; display: flex; justify-content: space-between; align-items: stretch; border-color: rgba(83,224,255,.25); background: radial-gradient(circle at 82% 42%, rgba(83,224,255,.12), transparent 23%), radial-gradient(circle at 58% 100%, var(--nebula), transparent 38%), linear-gradient(108deg, #121b37, #11182e 58%, #0c1731); box-shadow: 0 20px 70px rgba(0,0,0,.2), inset 0 0 60px rgba(83,224,255,.035); }
.hero-copy { padding: 30px 30px 27px; max-width: 650px; display: flex; flex-direction: column; justify-content: space-between; position: relative; z-index: 1; }
.hero-kicker { color: var(--amber); font: 500 10px "DM Mono", monospace; letter-spacing: .15em; text-transform: uppercase; }
.hero-title { font: 500 clamp(31px, 4vw, 50px)/.98 "Newsreader", Georgia, serif; letter-spacing: -.03em; margin: 11px 0 12px; max-width: 530px; }
.hero-title span { color: var(--cyan); }
.hero-text { max-width: 520px; color: var(--muted); font-size: 13px; line-height: 1.65; margin: 0; }
.hero-actions { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.orbit-scene { width: min(38%, 450px); min-width: 280px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 52%, rgba(83,224,255,.11), transparent 13%), radial-gradient(circle at 50% 52%, rgba(169,156,255,.08), transparent 38%); }
.orbit-scene::before { content: ""; position: absolute; inset: 18% 3% 12% 3%; border: 1px solid rgba(83,224,255,.22); border-radius: 50%; transform: rotate(-23deg); box-shadow: 0 0 0 28px rgba(83,224,255,.045), 0 0 0 70px rgba(83,224,255,.025); animation: orbitFloat 10s ease-in-out infinite; }
.orbit-scene::after { content: ""; position: absolute; inset: 25% -10% 23% -10%; border: 1px solid rgba(245,187,99,.18); border-radius: 50%; transform: rotate(31deg); box-shadow: 0 0 0 1px rgba(169,156,255,.04); animation: orbitFloat 13s ease-in-out infinite reverse; }
@keyframes orbitFloat { 0%,100% { transform: rotate(-23deg) scale(1); } 50% { transform: rotate(-19deg) scale(1.025); } }
.orbit-core { position: absolute; width: 72px; height: 72px; left: 50%; top: 51%; transform: translate(-50%,-50%); border: 1px solid rgba(83,224,255,.6); border-radius: 50%; display: grid; place-items: center; box-shadow: 0 0 40px rgba(83,224,255,.16), 0 0 0 9px rgba(83,224,255,.035); }
.orbit-core::before { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 28px 7px rgba(83,224,255,.42); }
.orbit-node { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 16px var(--amber); }
.node-a { left: 23%; top: 29%; } .node-b { right: 19%; top: 27%; background: var(--cyan); box-shadow: 0 0 16px var(--cyan); } .node-c { right: 19%; bottom: 22%; } .node-d { left: 18%; bottom: 25%; background: var(--violet); box-shadow: 0 0 16px var(--violet); }
.hero-index { position: absolute; right: 22px; top: 19px; color: var(--muted-2); font: 10px "DM Mono", monospace; letter-spacing: .12em; }

.stat-card { padding: 17px; min-height: 106px; }
.stat-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 11px; }
.stat-label { color: var(--muted); font-size: 11px; }
.stat-icon { color: var(--cyan); }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -.04em; }
.stat-meta { color: var(--muted-2); font-size: 10px; margin-top: 3px; }

.section-space { margin-top: 16px; }
.progress-line { height: 5px; background: #202944; border-radius: 999px; overflow: hidden; }
.progress-line span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--cyan), var(--violet)); }
.analytics-bars { display: grid; gap: 16px; }
.analytics-bar-row { display: grid; gap: 6px; }
.analytics-bar-label { display: flex; justify-content: space-between; gap: 16px; color: var(--muted); font-size: 11px; }
.analytics-bar-label strong { color: var(--text); font: 11px "DM Mono", monospace; }
.analytics-bar-track { height: 8px; overflow: hidden; border: 1px solid rgba(148,165,220,.12); border-radius: 99px; background: rgba(8,12,26,.72); }
.analytics-bar-fill { display: block; height: 100%; border-radius: inherit; box-shadow: 0 0 14px rgba(83,224,255,.18); }
.analytics-bar-row small { color: var(--muted-2); font-size: 10px; }
.analytics-legend { display: flex; flex-wrap: wrap; gap: 14px; margin: -4px 0 20px; color: var(--muted-2); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .06em; }
.legend-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; }
.dot-cyan { background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.dot-violet { background: var(--violet); box-shadow: 0 0 8px var(--violet); }
.mini-chart { height: 126px; display: flex; align-items: end; gap: 9px; padding: 12px 4px 0; border-bottom: 1px solid var(--line-strong); background: repeating-linear-gradient(to bottom, transparent 0, transparent 30px, rgba(148,165,220,.08) 31px); }
.mini-bar { flex: 1; min-width: 8px; border-radius: 5px 5px 0 0; box-shadow: 0 0 18px rgba(83,224,255,.1); opacity: .9; }
.chart-axis { display: flex; justify-content: space-between; margin-top: 8px; color: var(--muted-2); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.kpi-row { display: flex; gap: 24px; margin-top: 18px; }
.kpi-row > div { display: grid; gap: 4px; }
.kpi-row strong { color: var(--text); font: 700 18px "DM Mono", monospace; }
.kpi-row span { color: var(--muted-2); font-size: 10px; }
.analytics-table { display: grid; gap: 0; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.analytics-table-row { display: grid; grid-template-columns: 1.5fr .8fr .7fr; gap: 10px; align-items: center; padding: 12px; color: var(--muted); font-size: 11px; }
.analytics-table-row + .analytics-table-row { border-top: 1px solid var(--line); }
.analytics-table-row strong { color: var(--text); font-size: 11px; }
.analytics-table-head { color: var(--muted-2); background: rgba(8,12,26,.35); font: 9px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .08em; }
.signal-callout { display: grid; grid-template-columns: auto 1fr auto; gap: 13px; align-items: center; padding: 13px; border: 1px solid rgba(83,224,255,.2); border-radius: 9px; background: linear-gradient(100deg, rgba(83,224,255,.07), rgba(169,156,255,.05)); }
.signal-callout strong { color: var(--text); font-size: 12px; }
.signal-callout p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.milestone-track { position: relative; display: grid; gap: 17px; padding-left: 2px; }
.milestone-track::before { content: ""; position: absolute; left: 15px; top: 16px; bottom: 16px; width: 1px; background: linear-gradient(var(--cyan), var(--violet), var(--line)); }
.milestone { position: relative; display: grid; grid-template-columns: 31px 1fr; gap: 12px; align-items: start; }
.milestone-node { z-index: 1; width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); background: var(--panel); font: 9px "DM Mono", monospace; }
.milestone.done .milestone-node { color: var(--bg); border-color: var(--cyan); background: var(--cyan); box-shadow: 0 0 15px rgba(83,224,255,.28); }
.milestone.current .milestone-node { color: var(--amber); border-color: var(--amber); box-shadow: 0 0 15px rgba(245,187,99,.16); }
.milestone strong { display: block; color: var(--text); font-size: 12px; }
.milestone p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.4; }
.account-boundary { min-height: 40px; display: grid; gap: 3px; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,12,26,.42); }
.account-boundary strong { color: var(--green); font-size: 11px; }
.account-boundary span { color: var(--muted-2); font-size: 10px; line-height: 1.35; }
.report-list { display: grid; gap: 12px; }
.report-card { padding: 16px; border: 1px solid var(--line); border-radius: 10px; background: linear-gradient(110deg, rgba(8,12,26,.35), rgba(83,224,255,.035)); }
.report-card-top { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.report-card h3 { margin: 8px 0 4px; font-size: 14px; }
.report-card p { margin: 0; color: var(--muted); font-size: 11px; }
.report-grade { min-width: 115px; text-align: right; }
.report-grade strong { display: block; color: var(--cyan); font: 700 27px "DM Mono", monospace; text-shadow: 0 0 17px rgba(83,224,255,.25); }
.report-grade span { display: block; color: var(--muted-2); font-size: 9px; line-height: 1.35; }
.report-card-meta { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 14px; color: var(--muted-2); font-size: 10px; }
.report-score-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 8px; margin-top: 15px; }
.report-score-grid > div { display: grid; gap: 5px; padding: 9px; border: 1px solid var(--line); border-radius: 7px; background: rgba(8,12,26,.3); }
.report-score-grid span { color: var(--muted-2); font-size: 9px; line-height: 1.25; }
.report-score-grid strong { color: var(--text); font: 11px "DM Mono", monospace; }
.report-feedback { margin-top: 13px !important; padding-top: 12px; border-top: 1px solid var(--line); line-height: 1.5; }
.report-feedback strong { color: var(--amber); }
.grade-legend { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; }
.grade-legend > div { display: grid; grid-template-columns: 31px 1fr; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,12,26,.28); }
.grade-legend strong { color: var(--cyan); font: 700 20px "DM Mono", monospace; }
.grade-legend span { color: var(--muted); font-size: 10px; line-height: 1.45; }
.progress-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 11px; margin-bottom: 8px; }
.progress-meta strong { color: var(--text); }
.competency-item + .competency-item { margin-top: 18px; }

.proof-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(290px, .65fr); gap: 16px; align-items: start; }
.objective-picker { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.objective-chip { text-align: left; border: 1px solid var(--line); border-radius: 8px; padding: 11px 12px; background: rgba(8,12,26,.42); color: var(--muted); flex: 1 1 190px; }
.objective-chip:hover, .objective-chip.selected { border-color: rgba(83,224,255,.45); background: var(--cyan-soft); color: var(--text); }
.objective-chip strong { display: block; font-size: 12px; line-height: 1.35; }
.objective-chip small { display: block; margin-top: 7px; color: var(--muted-2); font: 9px "DM Mono", monospace; }

.stepper { display: flex; align-items: center; gap: 0; margin: 3px 0 25px; }
.step { display: flex; align-items: center; gap: 8px; color: var(--muted-2); font: 10px "DM Mono", monospace; text-transform: uppercase; letter-spacing: .05em; }
.step b { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-strong); font-size: 10px; font-weight: 500; }
.step.current { color: var(--cyan); } .step.current b { color: var(--bg); border-color: var(--cyan); background: var(--cyan); } .step.done { color: var(--green); } .step.done b { border-color: var(--green); color: var(--green); }
.step-line { height: 1px; width: 35px; background: var(--line); margin: 0 9px; }
.form-label { display: block; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.input, .textarea, .select { width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; color: var(--text); background: rgba(8,12,26,.66); outline: none; padding: 11px 12px; font-size: 12px; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(83,224,255,.1); }
.textarea { min-height: 118px; resize: vertical; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.field + .field { margin-top: 16px; }
.form-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 19px; }
.form-actions-right { display: flex; gap: 9px; margin-left: auto; }
.helper { color: var(--muted-2); font-size: 10px; line-height: 1.5; }
.check-item { padding: 14px 0; border-top: 1px solid var(--line); }
.check-item:first-child { border-top: none; padding-top: 0; }
.check-q { font-size: 12px; line-height: 1.5; margin: 0 0 9px; font-weight: 700; }
.radio-option { display: flex; gap: 8px; color: var(--muted); font-size: 11px; padding: 5px 0; align-items: flex-start; }
.radio-option input { accent-color: var(--cyan); margin: 2px 0 0; }

.aside-stack { display: grid; gap: 16px; }
.side-list { display: grid; gap: 12px; }
.side-list-item { display: flex; gap: 10px; align-items: flex-start; }
.side-list-icon { width: 25px; height: 25px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--cyan-soft); color: var(--cyan); font: 11px "DM Mono", monospace; }
.side-list-copy { min-width: 0; }
.side-list-title { font-size: 11px; line-height: 1.4; }
.side-list-meta { color: var(--muted-2); font-size: 10px; margin-top: 3px; }
.callout { border-left: 2px solid var(--amber); padding: 3px 0 3px 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.callout strong { color: var(--amber); }

.rubric-grid { display: grid; gap: 9px; }
.rubric-row { display: grid; grid-template-columns: minmax(150px, 1fr) repeat(4, 76px); align-items: center; gap: 7px; }
.rubric-dimension { font-size: 11px; font-weight: 700; }
.rubric-dimension small { display: block; color: var(--muted-2); font-size: 9px; font-weight: 400; margin-top: 3px; }
.score-btn { min-height: 48px; border: 1px solid var(--line); border-radius: 7px; background: rgba(8,12,26,.45); color: var(--muted-2); font: 10px "DM Mono", monospace; }
.score-btn:hover { color: var(--text); border-color: var(--line-strong); }
.score-btn.selected { color: var(--bg); font-weight: 700; border-color: var(--cyan); background: var(--cyan); }
.score-head { color: var(--muted-2); font: 9px "DM Mono", monospace; text-align: center; line-height: 1.3; }
.rubric-explain { padding: 12px 14px; margin-top: 15px; border: 1px solid var(--line); border-radius: 8px; background: rgba(83,224,255,.035); color: var(--muted); font-size: 10px; line-height: 1.55; }
.rubric-explain strong { color: var(--text); }

.badge { display: inline-flex; align-items: center; min-height: 21px; padding: 0 8px; border-radius: 999px; font: 9px "DM Mono", monospace; letter-spacing: .03em; text-transform: uppercase; border: 1px solid var(--line-strong); }
.badge-cyan { color: var(--cyan); background: var(--cyan-soft); border-color: rgba(83,224,255,.24); }
.badge-amber { color: var(--amber); background: var(--amber-soft); border-color: rgba(245,187,99,.25); }
.badge-green { color: var(--green); background: rgba(120,226,176,.11); border-color: rgba(120,226,176,.23); }
.badge-muted { color: var(--muted); background: rgba(156,168,197,.08); }
.badge-red { color: var(--red); background: rgba(255,140,140,.09); border-color: rgba(255,140,140,.22); }

.table-wrap { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; min-width: 650px; }
.data-table th { color: var(--muted-2); font: 9px "DM Mono", monospace; letter-spacing: .09em; text-align: left; text-transform: uppercase; padding: 0 12px 10px; border-bottom: 1px solid var(--line); }
.data-table td { padding: 14px 12px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 11px; vertical-align: top; }
.data-table tr:last-child td { border-bottom: none; }
.data-table td strong { color: var(--text); display: block; margin-bottom: 4px; }
.data-table td small { color: var(--muted-2); font-size: 10px; }

.atlas-layout { display: grid; grid-template-columns: 260px minmax(0,1fr); gap: 16px; }
.atlas-nav { padding: 9px; }
.atlas-subject { width: 100%; text-align: left; padding: 12px; color: var(--muted); border: 1px solid transparent; border-radius: 8px; background: transparent; font-size: 11px; }
.atlas-subject:hover, .atlas-subject.selected { color: var(--text); background: var(--cyan-soft); border-color: rgba(83,224,255,.14); }
.atlas-subject span { color: var(--muted-2); float: right; font: 10px "DM Mono", monospace; }
.hierarchy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 18px; }
.hierarchy-col { padding: 0 17px; min-height: 310px; border-left: 1px solid var(--line); }
.hierarchy-col:first-child { border-left: none; padding-left: 0; }
.hierarchy-label { color: var(--muted-2); font: 9px "DM Mono", monospace; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 13px; }
.hierarchy-item { border: 1px solid var(--line); border-radius: 8px; padding: 11px; margin-bottom: 8px; background: rgba(8,12,26,.36); }
.hierarchy-item.selected { border-color: rgba(83,224,255,.42); background: var(--cyan-soft); }
.hierarchy-item strong { display: block; font-size: 11px; line-height: 1.4; }
.hierarchy-item small { color: var(--muted-2); font-size: 9px; line-height: 1.4; display: block; margin-top: 4px; }

.path-card { padding: 18px; }
.path-card.featured { border-color: rgba(83,224,255,.28); background: linear-gradient(145deg, rgba(83,224,255,.11), rgba(17,24,46,.96) 60%); }
.path-top { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.path-number { color: var(--cyan); font: 10px "DM Mono", monospace; }
.path-title { font-size: 14px; margin: 5px 0 7px; }
.path-copy { color: var(--muted); font-size: 11px; line-height: 1.55; margin: 0; }
.path-steps { display: flex; gap: 5px; align-items: center; margin-top: 17px; }
.path-step { width: 20px; height: 4px; border-radius: 4px; background: var(--line-strong); }
.path-step.done { background: var(--cyan); }
.path-step.current { background: var(--amber); }
.path-foot { display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-top: 13px; color: var(--muted-2); font-size: 10px; }

.audit { position: relative; padding-left: 19px; }
.audit::before { content: ""; position: absolute; left: 4px; top: 4px; bottom: 4px; width: 1px; background: var(--line-strong); }
.audit-item { position: relative; padding: 0 0 15px; color: var(--muted); font-size: 11px; line-height: 1.5; }
.audit-item::before { content: ""; position: absolute; left: -19px; top: 4px; width: 8px; height: 8px; border-radius: 50%; border: 2px solid var(--cyan); background: var(--panel); }
.audit-item:last-child { padding-bottom: 0; }
.audit-time { color: var(--muted-2); font: 9px "DM Mono", monospace; display: block; margin-top: 3px; }

.settings-list { display: grid; gap: 1px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 16px; background: rgba(17,24,46,.72); }
.setting-row + .setting-row { border-top: 1px solid var(--line); }
.setting-copy strong { display: block; font-size: 12px; }
.setting-copy p { margin: 4px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.switch { width: 39px; height: 22px; position: relative; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch-track { position: absolute; inset: 0; border-radius: 99px; background: #2a3553; transition: .2s; }
.switch-track::after { content: ""; position: absolute; width: 16px; height: 16px; top: 3px; left: 3px; background: var(--muted); border-radius: 50%; transition: .2s; }
.switch input:checked + .switch-track { background: rgba(83,224,255,.3); }
.switch input:checked + .switch-track::after { left: 20px; background: var(--cyan); }

.toast { position: fixed; z-index: 8; right: 24px; bottom: 24px; max-width: 340px; padding: 13px 15px; border: 1px solid rgba(83,224,255,.35); border-radius: 9px; background: #111a32; color: var(--text); box-shadow: var(--shadow); font-size: 12px; animation: toastIn .25s ease both; }
.toast strong { display: block; color: var(--cyan); font-size: 10px; font-family: "DM Mono", monospace; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 4px; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.empty { padding: 28px; color: var(--muted); text-align: center; border: 1px dashed var(--line-strong); border-radius: 9px; font-size: 12px; }
.notice { padding: 11px 13px; border: 1px solid rgba(245,187,99,.22); border-radius: 8px; background: var(--amber-soft); color: #f8d59b; font-size: 11px; line-height: 1.55; }
.kpi-accent { color: var(--cyan); }
.small-mono { font: 10px "DM Mono", monospace; color: var(--muted-2); }
.muted { color: var(--muted); }

@media (max-width: 1120px) {
  .layout { grid-template-columns: 220px 1fr; }
  .main { padding: 0 25px 52px; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-panel { min-height: 320px; }
  .orbit-scene { width: 34%; min-width: 220px; }
}
@media (max-width: 820px) {
  .layout { display: block; }
  .sidebar { position: sticky; z-index: 5; height: auto; padding: 12px 15px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { padding: 0; }
  .brand-sub { display: none; }
  .sidebar .nav-label, .sidebar-bottom { display: none; }
  .nav-group { display: flex; overflow-x: auto; gap: 5px; margin-top: 12px; padding-bottom: 1px; scrollbar-width: none; }
  .nav-item { white-space: nowrap; padding: 8px 10px; font-size: 11px; }
  .nav-item svg { width: 14px; height: 14px; }
  .main { padding: 0 16px 42px; }
  .topbar { min-height: 62px; }
  .status-chip { display: none; }
  .page { padding-top: 28px; }
  .page-heading-row { display: block; }
  .page-heading-row .btn { margin-top: 17px; }
  .hero-panel { display: block; min-height: 0; }
  .hero-copy { min-height: 285px; padding: 24px; }
  .orbit-scene { height: 180px; width: 100%; min-width: 0; }
  .grid-3, .grid-2, .proof-layout, .atlas-layout { grid-template-columns: 1fr; }
  .signal-callout { grid-template-columns: auto 1fr; }
  .signal-callout .btn { grid-column: 2; justify-self: start; }
  .kpi-row { gap: 14px; flex-wrap: wrap; }
  .report-card-top { display: block; }
  .report-grade { margin-top: 12px; text-align: left; }
  .report-score-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .grade-legend { grid-template-columns: 1fr; }
  .hierarchy { grid-template-columns: 1fr; gap: 16px; }
  .hierarchy-col, .hierarchy-col:first-child { min-height: 0; padding: 0; border-left: 0; border-top: 1px solid var(--line); padding-top: 17px; }
  .hierarchy-col:first-child { border-top: 0; padding-top: 0; }
  .rubric-row { grid-template-columns: minmax(128px, 1fr) repeat(4, minmax(52px, 1fr)); }
  .score-btn { min-height: 42px; font-size: 8px; }
  .form-row { grid-template-columns: 1fr; gap: 0; }
}
@media (max-width: 500px) {
  .grid-4 { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-card { padding: 13px; }
  .stat-value { font-size: 22px; }
  .page-title { font-size: 38px; }
  .top-actions .icon-btn:first-child { display: none; }
  .hero-actions, .form-actions { align-items: stretch; flex-direction: column; }
  .hero-actions .btn, .form-actions .btn { width: 100%; }
  .form-actions-right { width: 100%; margin: 0; }
  .form-actions-right .btn { flex: 1; }
  .analytics-table-row { grid-template-columns: 1.3fr .8fr .65fr; padding: 10px 8px; font-size: 10px; }
  .mini-chart { height: 102px; gap: 6px; }
  .rubric-row { gap: 4px; }
  .rubric-dimension { font-size: 9px; }
  .rubric-dimension small { font-size: 8px; }
  .score-head { font-size: 7px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.reduce-motion *, .reduce-motion *::before, .reduce-motion *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
.noscript { padding: 30px; color: var(--text); background: var(--bg); font: 16px sans-serif; }

.assistant-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(300px, .65fr); gap: 16px; margin-top: 18px; }
.assistant-console { min-width: 0; padding: 20px; overflow: hidden; background: radial-gradient(circle at 50% 20%, rgba(83,224,255,.09), transparent 34%), linear-gradient(135deg, rgba(17,24,46,.98), rgba(10,16,36,.96)); }
.assistant-console-head { display: flex; justify-content: space-between; gap: 18px; align-items: start; }
.assistant-console-head h2 { font-size: 26px; letter-spacing: .14em; }
.assistant-status { display: flex; align-items: center; gap: 7px; padding: 8px 10px; border: 1px solid rgba(120,226,176,.2); border-radius: 99px; color: var(--green); font: 9px "DM Mono", monospace; letter-spacing: .08em; white-space: nowrap; }
.assistant-stage { min-height: 284px; display: flex; align-items: center; justify-content: center; gap: 35px; margin: 10px -20px 18px; padding: 18px; border-top: 1px solid rgba(83,224,255,.11); border-bottom: 1px solid rgba(83,224,255,.11); background: radial-gradient(circle at 42% 50%, rgba(83,224,255,.11), transparent 22%), repeating-linear-gradient(90deg, transparent 0, transparent 62px, rgba(83,224,255,.035) 63px); }
.spectrum-orb { position: relative; width: 210px; height: 210px; flex: none; border-radius: 50%; isolation: isolate; filter: drop-shadow(0 0 26px rgba(83,224,255,.25)); }
.spectrum-orb::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; background: conic-gradient(from 20deg, rgba(83,224,255,.08), rgba(169,156,255,.7), rgba(245,187,99,.38), rgba(83,224,255,.72), rgba(120,226,176,.4), rgba(83,224,255,.08)); filter: blur(10px); animation: spectrumTurn 10s linear infinite; }
.spectrum-orb::after { content: ""; position: absolute; inset: 44px; border-radius: 50%; background: radial-gradient(circle at 38% 34%, rgba(255,255,255,.9), rgba(83,224,255,.6) 9%, rgba(25,45,98,.82) 33%, rgba(6,11,27,.97) 73%); box-shadow: inset 0 0 34px rgba(83,224,255,.45), 0 0 24px rgba(83,224,255,.28); z-index: 1; }
.spectrum-orb-locked { transform: scale(.86); opacity: .72; }
.orb-ring { position: absolute; z-index: 3; inset: 22px; border: 1px solid rgba(83,224,255,.48); border-radius: 50%; transform: rotateX(68deg) rotateZ(20deg); box-shadow: 0 0 12px rgba(83,224,255,.13); }
.ring-b { inset: 31px 9px; border-color: rgba(169,156,255,.5); transform: rotateY(67deg) rotateZ(-18deg); }
.ring-c { inset: 7px 35px; border-color: rgba(245,187,99,.34); transform: rotateX(72deg) rotateZ(78deg); }
.orb-core { position: absolute; z-index: 5; left: 50%; top: 50%; width: 20px; height: 20px; transform: translate(-50%, -50%); border-radius: 50%; background: #dffcff; box-shadow: 0 0 12px 4px var(--cyan), 0 0 44px 11px rgba(83,224,255,.55); animation: corePulse 3s ease-in-out infinite; }
.orb-particle { position: absolute; z-index: 6; width: 5px; height: 5px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 11px 3px var(--cyan); animation: particleOrbit 4s ease-in-out infinite; }
.orb-particle.p1 { left: 23%; top: 27%; background: var(--violet); box-shadow: 0 0 11px 3px var(--violet); }
.orb-particle.p2 { left: 74%; top: 29%; animation-delay: -1.3s; background: var(--amber); box-shadow: 0 0 11px 3px var(--amber); }
.orb-particle.p3 { left: 78%; top: 68%; animation-delay: -2.4s; background: var(--green); box-shadow: 0 0 11px 3px var(--green); }
.orb-particle.p4 { left: 17%; top: 65%; animation-delay: -3s; }
.orb-particle.p5 { left: 46%; top: 10%; animation-delay: -1.8s; background: var(--amber); box-shadow: 0 0 11px 3px var(--amber); }
.orb-particle.p6 { left: 45%; top: 88%; animation-delay: -.5s; background: var(--violet); box-shadow: 0 0 11px 3px var(--violet); }
@keyframes spectrumTurn { to { transform: rotate(360deg); } }
@keyframes particleOrbit { 0%,100% { transform: translate3d(0,0,0) scale(.8); opacity: .6; } 50% { transform: translate3d(6px,-8px,0) scale(1.45); opacity: 1; } }
.assistant-stage-copy { max-width: 220px; display: grid; gap: 10px; }
.assistant-stage-copy strong { color: var(--text); font-family: Georgia, serif; font-size: 19px; line-height: 1.17; }
.assistant-stage-copy > span:last-child { color: var(--muted); font-size: 11px; line-height: 1.5; }
.assistant-messages { display: grid; gap: 10px; max-height: 315px; overflow: auto; padding-right: 4px; }
.assistant-message { max-width: 82%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; background: rgba(8,12,26,.48); }
.assistant-message-ai { border-color: rgba(83,224,255,.2); box-shadow: inset 3px 0 rgba(83,224,255,.65); }
.assistant-message-user { justify-self: end; border-color: rgba(169,156,255,.22); background: rgba(169,156,255,.07); }
.assistant-message-label { color: var(--muted-2); font: 9px "DM Mono", monospace; letter-spacing: .08em; }
.assistant-message p { margin: 6px 0 0; color: var(--text); font-size: 12px; line-height: 1.55; }
.text-button { display: inline-flex; gap: 6px; align-items: center; margin-top: 8px; padding: 0; border: 0; color: var(--cyan); background: none; font-size: 10px; }
.text-button svg { width: 12px; height: 12px; }
.assistant-quick { margin-top: 18px; }
.assistant-quick-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.assistant-quick-row .btn { min-height: 31px; padding: 0 10px; font-size: 10px; }
.assistant-form { display: grid; grid-template-columns: 1fr auto; gap: 9px; margin-top: 14px; }
.assistant-footnote { margin: 11px 0 0; color: var(--muted-2); font-size: 10px; line-height: 1.45; }
.assistant-side { display: grid; align-content: start; gap: 16px; }
.assistant-capabilities { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 19px; color: var(--cyan); font: 9px "DM Mono", monospace; letter-spacing: .08em; }
.assistant-capabilities span { padding: 7px 9px; border: 1px solid rgba(83,224,255,.2); border-radius: 99px; background: rgba(83,224,255,.06); }
.assistant-locked { min-height: 430px; display: flex; align-items: center; justify-content: center; gap: 50px; padding: 36px; background: radial-gradient(circle at 32% 50%, rgba(83,224,255,.1), transparent 25%), linear-gradient(120deg, rgba(17,24,46,.96), rgba(10,16,36,.92)); }
@media (max-width: 820px) {
  .assistant-layout { grid-template-columns: 1fr; }
  .assistant-stage { gap: 18px; }
  .spectrum-orb { width: 170px; height: 170px; }
  .assistant-stage-copy { max-width: 175px; }
  .assistant-locked { flex-direction: column; gap: 20px; text-align: center; }
}
@media (max-width: 520px) {
  .assistant-console-head { display: block; }
  .assistant-status { display: inline-flex; margin-top: 12px; }
  .assistant-stage { min-height: 365px; flex-direction: column; }
  .assistant-stage-copy { max-width: 250px; text-align: center; }
  .assistant-message { max-width: 94%; }
  .assistant-form { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { .spectrum-orb::before, .orb-core, .orb-particle { animation: none; } }
.reduce-motion .spectrum-orb::before, .reduce-motion .orb-core, .reduce-motion .orb-particle { animation: none; }

.digital-layout { display: grid; grid-template-columns: minmax(0, 1.24fr) minmax(310px, .76fr); gap: 16px; margin-top: 18px; }
.digital-card { position: relative; display: flex; align-items: center; gap: 22px; min-height: 194px; padding: 24px; overflow: hidden; border: 1px solid rgba(83,224,255,.24); border-radius: 12px; background: radial-gradient(circle at 24% 50%, rgba(83,224,255,.22), transparent 27%), linear-gradient(120deg, rgba(83,224,255,.07), rgba(169,156,255,.08)); }
.digital-card::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(120deg, transparent, rgba(255,255,255,.035), transparent); transform: translateX(-100%); animation: scanPass 5s ease-in-out infinite; }
.digital-card-visual { position: relative; width: 145px; height: 145px; flex: none; display: grid; place-items: center; }
.digital-avatar { position: relative; z-index: 2; width: 102px; height: 102px; object-fit: cover; border: 2px solid var(--cyan); border-radius: 50%; box-shadow: 0 0 0 5px rgba(83,224,255,.07), 0 0 29px rgba(83,224,255,.35); }
.digital-avatar-empty { display: grid; place-items: center; color: var(--cyan); background: radial-gradient(circle at 35% 30%, rgba(255,255,255,.6), rgba(83,224,255,.22) 15%, rgba(10,18,46,.95) 65%); font: 700 25px "DM Mono", monospace; }
.digital-orbit { position: absolute; inset: 7px; border: 1px solid rgba(83,224,255,.35); border-radius: 50%; transform: rotate(-24deg); animation: digitalSpin 12s linear infinite; }
.digital-orbit span { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 13px var(--cyan); }
.digital-orbit span:nth-child(1) { top: -3px; left: 35%; }
.digital-orbit span:nth-child(2) { right: 3px; bottom: 25%; background: var(--amber); box-shadow: 0 0 13px var(--amber); }
.digital-orbit span:nth-child(3) { left: 10px; bottom: 22%; background: var(--violet); box-shadow: 0 0 13px var(--violet); }
.digital-card-copy { position: relative; z-index: 1; min-width: 0; }
.digital-card-copy h3 { margin: 9px 0 4px; font: 700 28px Georgia, serif; color: var(--text); }
.digital-card-copy p { margin: 0; color: var(--muted); font: 10px "DM Mono", monospace; }
.digital-signals { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; color: var(--cyan); font: 8px "DM Mono", monospace; letter-spacing: .07em; }
.digital-signals span { padding: 6px 7px; border: 1px solid rgba(83,224,255,.18); border-radius: 99px; background: rgba(83,224,255,.05); }
.camera-tools { display: grid; grid-template-columns: minmax(220px, .85fr) 1.15fr; gap: 14px; margin-top: 18px; }
.camera-frame { position: relative; min-height: 170px; display: grid; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 9px; background: repeating-linear-gradient(0deg, rgba(83,224,255,.025) 0, rgba(83,224,255,.025) 1px, transparent 1px, transparent 9px), #080c1a; }
.camera-frame video { width: 100%; height: 100%; min-height: 170px; object-fit: cover; transform: scaleX(-1); }
.camera-placeholder { position: absolute; inset: 0; display: grid; place-items: center; padding: 25px; color: var(--muted-2); font-size: 10px; line-height: 1.45; text-align: center; }
.camera-frame.has-camera .camera-placeholder { display: none; }
.camera-actions { display: flex; align-content: start; flex-wrap: wrap; gap: 8px; }
.camera-actions .helper { width: 100%; margin-top: 5px; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.consent-check { display: flex; gap: 10px; align-items: flex-start; margin: 17px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: rgba(8,12,26,.3); cursor: pointer; }
.consent-check input { margin-top: 3px; accent-color: var(--cyan); }
.consent-check span { display: grid; gap: 5px; }
.consent-check strong { color: var(--text); font-size: 11px; }
.consent-check small { color: var(--muted); font-size: 10px; line-height: 1.45; }
.digital-locked { min-height: 390px; display: flex; align-items: center; justify-content: center; gap: 48px; padding: 34px; background: radial-gradient(circle at 25% 50%, rgba(83,224,255,.09), transparent 25%), linear-gradient(120deg, rgba(17,24,46,.96), rgba(10,16,36,.92)); }
.id-hologram { position: relative; width: 180px; height: 180px; display: grid; place-items: center; flex: none; border: 1px solid rgba(83,224,255,.5); border-radius: 50%; color: var(--cyan); background: radial-gradient(circle, rgba(83,224,255,.26), rgba(83,224,255,.03) 47%, transparent 48%); box-shadow: 0 0 28px rgba(83,224,255,.2), inset 0 0 24px rgba(83,224,255,.2); animation: digitalSpin 15s linear infinite; }
.id-hologram::before, .id-hologram::after { content: ""; position: absolute; inset: 17px -15px; border: 1px solid rgba(169,156,255,.46); border-radius: 50%; transform: rotate(60deg); }
.id-hologram::after { inset: -15px 17px; border-color: rgba(245,187,99,.34); transform: rotate(-55deg); }
.id-hologram span { position: absolute; width: 100%; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); box-shadow: 0 0 13px var(--cyan); }
.id-hologram strong { z-index: 1; font: 700 24px "DM Mono", monospace; text-shadow: 0 0 12px var(--cyan); }
@keyframes digitalSpin { to { transform: rotate(360deg); } }
@keyframes scanPass { 0%, 55% { transform: translateX(-100%); } 80%, 100% { transform: translateX(100%); } }
@media (max-width: 820px) { .digital-layout { grid-template-columns: 1fr; } .digital-locked { flex-direction: column; gap: 24px; text-align: center; } }
@media (max-width: 560px) { .digital-card { display: block; text-align: center; } .digital-card-visual { margin: 0 auto 15px; } .digital-signals { justify-content: center; } .camera-tools { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .digital-card::after, .digital-orbit, .id-hologram { animation: none; } }
.reduce-motion .digital-card::after, .reduce-motion .digital-orbit, .reduce-motion .id-hologram { animation: none; }
.assistant-quest { margin: 16px 0 14px; padding: 17px; background: linear-gradient(135deg, rgba(83,224,255,.07), rgba(169,156,255,.06)); }
.quest-stage { display: flex; align-items: center; gap: 12px; margin: 13px 0; padding: 12px; border: 1px solid rgba(83,224,255,.2); border-radius: 9px; background: rgba(8,12,26,.42); }
.quest-stage-marker { width: 40px; height: 40px; display: grid; place-items: center; flex: none; border: 1px solid var(--cyan); border-radius: 50%; color: var(--cyan); font: 10px "DM Mono", monospace; box-shadow: 0 0 13px rgba(83,224,255,.22); }
.quest-stage strong { color: var(--text); font-size: 13px; }
.quest-stage p { margin: 4px 0; color: var(--muted); font-size: 11px; }
.quest-stage span { color: var(--cyan); font: 9px "DM Mono", monospace; letter-spacing: .06em; }
.quest-log-list { display: grid; gap: 6px; }
.quest-log-item { width: 100%; display: grid; grid-template-columns: 55px 1fr; gap: 9px; align-items: start; padding: 9px; border: 1px solid transparent; border-radius: 7px; color: var(--muted); background: rgba(8,12,26,.26); text-align: left; cursor: pointer; }
.quest-log-item:hover, .quest-log-item.active { border-color: rgba(83,224,255,.28); color: var(--text); background: rgba(83,224,255,.08); }
.quest-log-id { color: var(--cyan); font: 9px "DM Mono", monospace; }
.quest-log-item strong, .quest-log-item small { display: block; }
.quest-log-item strong { font-size: 11px; line-height: 1.35; }
.quest-log-item small { margin-top: 4px; color: var(--muted-2); font-size: 9px; }
.assistant-llm { display: grid; gap: 12px; }
.assistant-llm .consent-check { margin: 0; }
.assistant-llm .btn[disabled] { opacity: .45; cursor: not-allowed; }
.llm-result { display: grid; gap: 11px; margin-top: 4px; padding: 13px; border: 1px solid rgba(120,226,176,.24); border-radius: 9px; background: rgba(120,226,176,.05); }
.llm-result-head { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.llm-result > p { margin: 0; color: var(--text); font-size: 12px; line-height: 1.5; }
.llm-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.llm-columns ul { margin: 7px 0 0; padding-left: 17px; color: var(--muted); font-size: 10px; line-height: 1.5; }
.llm-columns li + li { margin-top: 5px; }
.llm-next { padding: 10px; border-left: 2px solid var(--amber); background: rgba(245,187,99,.06); }
.llm-next strong { color: var(--amber); font: 9px "DM Mono", monospace; letter-spacing: .07em; text-transform: uppercase; }
.llm-next p { margin: 6px 0; color: var(--text); font-size: 11px; line-height: 1.45; }
.llm-next span { color: var(--muted); font-size: 10px; font-style: italic; }
.curriculum-guide-strip { display: grid; grid-template-columns: 92px 1fr; gap: 13px; align-items: center; margin: -2px 0 15px; padding: 10px; border: 1px solid rgba(83,224,255,.2); border-radius: 10px; background: radial-gradient(circle at 18% 50%, rgba(83,224,255,.14), transparent 48%), rgba(8,12,26,.5); }
.curriculum-guide-avatar { position: relative; height: 92px; display: grid; place-items: center; overflow: hidden; border-radius: 9px; background: radial-gradient(circle, rgba(83,224,255,.18), transparent 65%); }
.curriculum-guide-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; filter: saturate(1.15) contrast(1.06) drop-shadow(0 0 12px rgba(83,224,255,.24)); }
.curriculum-guide-vector { position: relative; width: 60%; height: 86%; object-fit: contain; opacity: .76; mix-blend-mode: screen; filter: drop-shadow(0 0 8px rgba(169,156,255,.35)); }
.curriculum-guide-strip strong { display: block; margin-top: 4px; color: var(--text); font-size: 13px; }
.curriculum-guide-strip p { margin: 5px 0; color: var(--muted); font-size: 10px; line-height: 1.45; }
.curriculum-guide-strip small { color: var(--muted-2); font-size: 8px; }
@media (max-width: 560px) { .llm-columns { grid-template-columns: 1fr; } .quest-log-item { grid-template-columns: 47px 1fr; } .curriculum-guide-strip { grid-template-columns: 70px 1fr; } .curriculum-guide-avatar { height: 74px; } }
.curriculum-guide-avatar { transition: border-color .25s ease, box-shadow .25s ease, background .25s ease; border: 1px solid rgba(83,224,255,.18); }
.curriculum-guide-avatar.avatar-mode-thinking { border-color: rgba(169,156,255,.6); background: radial-gradient(circle, rgba(169,156,255,.25), transparent 65%); box-shadow: 0 0 20px rgba(169,156,255,.18); }
.curriculum-guide-avatar.avatar-mode-encouraging, .curriculum-guide-avatar.avatar-mode-celebrating { border-color: rgba(120,226,176,.58); background: radial-gradient(circle, rgba(120,226,176,.22), transparent 65%); box-shadow: 0 0 20px rgba(120,226,176,.16); }
.curriculum-guide-avatar.avatar-mode-revision, .curriculum-guide-avatar.avatar-mode-reviewing { border-color: rgba(245,187,99,.62); background: radial-gradient(circle, rgba(245,187,99,.22), transparent 65%); box-shadow: 0 0 20px rgba(245,187,99,.16); }
.avatar-cue { display: block; margin-top: 7px; color: var(--cyan); font: 9px "DM Mono", monospace; line-height: 1.45; }
@media (prefers-reduced-motion: reduce) { .curriculum-guide-avatar { transition: none; } }
