:root {
  --ink: #070604;
  --ink-soft: #0e0c08;
  --surface: rgba(22, 18, 11, .78);
  --surface-strong: #17120b;
  --surface-hover: #201a10;
  --gold: #c9a15b;
  --gold-bright: #f0d393;
  --gold-pale: #f8e8bd;
  --bronze: #826634;
  --ivory: #f1eadc;
  --muted: #918779;
  --line: rgba(201, 161, 91, .2);
  --line-bright: rgba(201, 161, 91, .48);
  --success: #93cfa4;
  --danger: #dd7f72;
  --display: "Cinzel", Georgia, serif;
  --sans: "Manrope", system-ui, sans-serif;
  --sidebar: 252px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--ink); color: var(--ivory); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }
::selection { background: var(--gold); color: var(--ink); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--ink); }
::-webkit-scrollbar-thumb { background: #352a19; border: 3px solid var(--ink); border-radius: 10px; }

body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .16; z-index: 20; background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.18'/%3E%3C/svg%3E"); mix-blend-mode: soft-light; }
.ambient { position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.ambient::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(201,161,91,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(201,161,91,.025) 1px, transparent 1px); background-size: 68px 68px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
.ambient span { position: absolute; border-radius: 50%; filter: blur(1px); background: radial-gradient(circle, rgba(201,161,91,.12), transparent 68%); }
.ambient span:nth-child(1) { width: 820px; height: 820px; right: -340px; top: -360px; }
.ambient span:nth-child(2) { width: 540px; height: 540px; left: 8%; bottom: -400px; opacity: .55; }

.app-shell { min-height: 100vh; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: var(--sidebar); display: flex; flex-direction: column; padding: 28px 20px 22px; border-right: 1px solid var(--line); background: rgba(7,6,4,.84); backdrop-filter: blur(24px); z-index: 15; }
.sidebar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: repeating-linear-gradient(90deg, var(--gold) 0 14px, transparent 14px 21px, var(--gold) 21px 28px, transparent 28px 42px); opacity: .55; }
.brand { display: flex; align-items: center; gap: 13px; padding: 8px; }
.brand-mark { width: 50px; height: 50px; display: grid; place-items: center; position: relative; border: 1px solid var(--gold); transform: rotate(45deg); background: radial-gradient(circle, rgba(201,161,91,.18), transparent 65%); box-shadow: inset 0 0 0 4px var(--ink), inset 0 0 0 5px rgba(201,161,91,.35); }
.brand-mark i { font-family: var(--display); font-size: 22px; font-style: normal; transform: rotate(-45deg); color: var(--gold-pale); }
.brand-mark b { position: absolute; font: 7px var(--sans); letter-spacing: 1px; transform: rotate(-45deg) translate(10px, 10px); color: var(--gold); }
.brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }
.brand strong { font: 700 21px/1 var(--display); letter-spacing: .13em; }
.brand small { margin-top: 5px; font-size: 8px; color: var(--gold); letter-spacing: .23em; }
.main-nav { display: flex; flex-direction: column; gap: 7px; margin-top: 64px; }
.nav-caption { color: #5e5548; font-size: 9px; letter-spacing: .26em; padding: 0 13px 10px; }
.nav-link { height: 50px; display: flex; align-items: center; gap: 13px; padding: 0 13px; color: #82796b; border: 1px solid transparent; transition: .25s var(--ease); position: relative; }
.nav-link i { width: 22px; color: var(--bronze); font: normal 19px var(--display); text-align: center; }
.nav-link span { font-size: 13px; font-weight: 600; }
.nav-link:hover { color: var(--ivory); transform: translateX(3px); }
.nav-link.active { background: linear-gradient(90deg, rgba(201,161,91,.16), rgba(201,161,91,.03)); color: var(--gold-pale); border-color: var(--line); }
.nav-link.active::before { content: ""; position: absolute; left: -21px; width: 2px; height: 28px; background: var(--gold-bright); box-shadow: 0 0 16px var(--gold); }
.nav-link.active i { color: var(--gold-bright); }
.nav-count { margin-left: auto; min-width: 22px; height: 22px; display: grid; place-items: center; border: 1px solid var(--line); font-size: 10px; font-weight: 700; color: var(--gold); border-radius: 50%; }
.sidebar-orbit { width: 146px; height: 146px; margin: auto auto 28px; position: relative; display: grid; place-items: center; opacity: .5; }
.orbit-ring { position: absolute; width: 112px; height: 112px; border: 1px solid var(--line-bright); border-radius: 50%; box-shadow: inset 0 0 35px rgba(201,161,91,.07); }
.orbit-ring::before, .orbit-ring::after { content: ""; position: absolute; inset: 15px; border: 1px dashed var(--line); border-radius: 50%; }
.orbit-ring::after { inset: -16px; border-style: solid; opacity: .25; }
.orbit-core { font: 24px var(--display); color: var(--gold); }
.orbit-dot { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold-bright); top: 16px; left: 68px; box-shadow: 0 0 14px var(--gold); transform-origin: 4px 57px; animation: orbit 9s linear infinite; }
.sidebar-foot { display: flex; flex-direction: column; gap: 7px; padding: 16px 10px 0; border-top: 1px solid var(--line); }
.sidebar-foot small { font-size: 9px; letter-spacing: .13em; color: #5d554a; text-transform: uppercase; }
.signal { font-size: 10px; color: var(--success); text-transform: uppercase; letter-spacing: .11em; }
.signal i, .live-chip i { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px var(--success); margin-right: 7px; animation: pulse 2s infinite; }

.workspace { min-height: 100vh; margin-left: var(--sidebar); }
.topbar { height: 82px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 0 clamp(24px, 4vw, 62px); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 12; background: rgba(7,6,4,.72); backdrop-filter: blur(18px); }
.topbar-title { display: flex; flex-direction: column; gap: 2px; }
.topbar-title span { color: var(--bronze); font-size: 8px; letter-spacing: .24em; }
.topbar-title strong { font-family: var(--display); font-size: 14px; letter-spacing: .04em; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.command-trigger { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 10px 0 13px; border: 1px solid var(--line); background: rgba(255,255,255,.02); color: var(--muted); font-size: 11px; cursor: pointer; }
.command-trigger:hover { border-color: var(--line-bright); color: var(--ivory); }
kbd { padding: 3px 6px; border: 1px solid var(--line); background: #15110b; color: #756b5e; font-size: 8px; font-family: var(--sans); }
.live-chip { display: flex; align-items: center; height: 38px; padding: 0 12px; border: 1px solid var(--line); color: var(--muted); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; }
.live-chip b { color: var(--ivory); font-weight: 500; padding-left: 9px; margin-left: 9px; border-left: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.avatar { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold); background: linear-gradient(135deg, var(--gold), #65491f); color: var(--ink); font-size: 10px; font-weight: 800; cursor: pointer; }
.mobile-menu { display: none; }
.content { width: min(1540px, 100%); margin: 0 auto; padding: clamp(28px, 4.5vw, 70px) clamp(22px, 4.5vw, 68px) 80px; }

.reveal { animation: rise .7s var(--ease) both; }
.delay-1 { animation-delay: .08s; }.delay-2 { animation-delay: .16s; }.delay-3 { animation-delay: .24s; }
.gold-frame { position: relative; border: 1px solid var(--line-bright); background: linear-gradient(145deg, rgba(36,28,16,.78), rgba(10,8,5,.92)); }
.gold-frame::before, .gold-frame::after { content: ""; position: absolute; width: 22px; height: 22px; pointer-events: none; }
.gold-frame::before { top: -1px; left: -1px; border-top: 2px solid var(--gold-bright); border-left: 2px solid var(--gold-bright); }
.gold-frame::after { bottom: -1px; right: -1px; border-bottom: 2px solid var(--gold-bright); border-right: 2px solid var(--gold-bright); }
.eyebrow { display: flex; align-items: center; gap: 12px; color: var(--gold); font-size: 9px; font-weight: 700; letter-spacing: .2em; }
.eyebrow i { width: 34px; height: 1px; background: var(--line-bright); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(320px, .85fr); gap: 18px; }
.hero-panel { min-height: 440px; padding: clamp(34px, 5vw, 72px); overflow: hidden; }
.hero-panel::after { width: 280px; height: 280px; border: 1px solid var(--line); border-radius: 50%; right: -90px; bottom: -120px; box-shadow: 0 0 0 28px rgba(201,161,91,.025), 0 0 0 56px rgba(201,161,91,.018); }
.hero-panel h1, .page-intro h1 { margin: 26px 0 20px; font: 500 clamp(48px, 6vw, 82px)/.96 var(--display); letter-spacing: -.04em; }
.hero-panel h1 em, .page-intro h1 em { color: var(--gold-bright); font-style: normal; }
.hero-panel p { max-width: 620px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.8; }
.hero-actions { display: flex; gap: 12px; margin-top: 38px; }
.button { min-height: 46px; display: inline-flex; align-items: center; justify-content: center; gap: 18px; padding: 0 20px; border: 1px solid var(--line-bright); background: transparent; cursor: pointer; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; transition: .25s var(--ease); }
.button.primary { background: linear-gradient(135deg, var(--gold-bright), #a77b36); color: #100c06; border-color: var(--gold-bright); box-shadow: 0 12px 36px rgba(201,161,91,.14); }
.button.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(201,161,91,.24); }
.button.ghost:hover { background: rgba(201,161,91,.08); border-color: var(--gold); color: var(--gold-pale); }
.button.compact { min-height: 40px; padding: 0 16px; font-size: 9px; }
.hero-inscription { position: absolute; bottom: 24px; left: 72px; color: rgba(201,161,91,.21); font: 11px var(--display); letter-spacing: .4em; }
.progress-oracle { min-height: 440px; padding: 28px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; }
.oracle-head, .oracle-foot { display: flex; justify-content: space-between; align-items: center; font-size: 9px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.oracle-head b { color: var(--success); font-weight: 600; }
.progress-sigil { width: min(245px, 75%); aspect-ratio: 1; margin: auto; border-radius: 50%; display: grid; place-items: center; position: relative; background: conic-gradient(var(--gold-bright) calc(var(--progress) * 1%), rgba(201,161,91,.1) 0); box-shadow: 0 0 80px rgba(201,161,91,.08); }
.progress-sigil::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: var(--ink-soft); }
.sigil-rings { position: absolute; inset: -17px; border: 1px dashed rgba(201,161,91,.22); border-radius: 50%; animation: orbit 28s linear infinite; }
.sigil-rings span:first-child { position: absolute; inset: 24px; border: 1px solid rgba(201,161,91,.13); border-radius: 50%; }
.sigil-rings span:last-child { position: absolute; width: 8px; height: 8px; border: 1px solid var(--gold); background: var(--ink); transform: rotate(45deg); top: 31px; right: 28px; }
.sigil-value { z-index: 1; display: flex; flex-direction: column; align-items: center; }
.sigil-value strong { font: 500 50px var(--display); color: var(--gold-pale); }
.sigil-value small { font-size: 8px; color: var(--muted); letter-spacing: .2em; }
.oracle-foot { padding-top: 19px; border-top: 1px solid var(--line); }
.oracle-foot i { font-style: normal; color: var(--ivory); font-size: 13px; margin-right: 5px; }

.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 18px; border: 1px solid var(--line); }
.metric-card { min-height: 128px; display: flex; align-items: center; gap: 18px; padding: 24px; background: rgba(17,14,9,.72); border-right: 1px solid var(--line); position: relative; }
.metric-card:last-child { border-right: 0; }
.metric-rune { width: 38px; height: 48px; display: grid; place-items: center; flex: 0 0 auto; font: 10px var(--display); color: var(--gold); border: 1px solid var(--line); clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%); background: rgba(201,161,91,.06); }
.metric-card > div { display: flex; flex-direction: column; gap: 7px; }
.metric-card small { color: var(--muted); text-transform: uppercase; font-size: 8px; letter-spacing: .16em; }
.metric-card strong { font: 500 26px var(--display); }
.metric-card strong i { font: normal 9px var(--sans); color: #6d6458; margin-left: 5px; }
.trend { margin-left: auto; font-size: 8px; font-style: normal; color: var(--success); border: 1px solid rgba(147,207,164,.25); padding: 4px 6px; }
.trend.neutral { color: var(--gold); border-color: var(--line); }

.dashboard-grid { display: grid; grid-template-columns: 1.2fr .8fr; gap: 18px; margin-top: 18px; }
.panel { background: rgba(17,14,9,.75); border: 1px solid var(--line); padding: 28px; }
.section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 24px; }
.section-heading h2 { margin: 7px 0 0; font: 500 24px var(--display); letter-spacing: -.02em; }
.section-heading > a { margin-top: 10px; color: var(--gold); font-size: 10px; text-transform: uppercase; letter-spacing: .12em; }
.section-heading > a i { font-style: normal; margin-left: 5px; }
.queue-list { display: flex; flex-direction: column; }
.queue-item { display: grid; grid-template-columns: 46px 1fr auto auto; align-items: center; gap: 14px; min-height: 74px; border-top: 1px solid rgba(201,161,91,.11); transition: .2s; }
.queue-item:hover { background: rgba(201,161,91,.035); padding: 0 9px; }
.queue-index { color: var(--bronze); font: 10px var(--display); }
.queue-team { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.queue-team strong { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.queue-team small { color: var(--muted); font-size: 9px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 8px; border: 1px solid var(--line); color: var(--gold); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.status-pill.checked { color: var(--success); border-color: rgba(147,207,164,.25); background: rgba(147,207,164,.045); }
.queue-item > a { color: var(--muted); font-size: 18px; padding: 9px; }
.queue-item > a:hover { color: var(--gold); }
.period { color: var(--success); font-size: 8px; letter-spacing: .14em; border: 1px solid rgba(147,207,164,.22); padding: 6px 8px; }
.pulse-panel { display: flex; flex-direction: column; }
.pulse-chart { min-height: 285px; display: flex; align-items: stretch; justify-content: space-between; gap: 9px; padding: 20px 8px 0; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 51px, rgba(201,161,91,.07) 51px 52px); }
.pulse-bar { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 11px; min-width: 14px; }
.pulse-bar i { display: block; width: min(24px, 70%); height: calc(var(--bar) * 1%); min-height: 2px; background: linear-gradient(to top, #654921, var(--gold-bright)); box-shadow: 0 0 18px rgba(201,161,91,.11); transition: height .8s var(--ease); }
.pulse-bar span { font-size: 7px; color: var(--muted); padding-bottom: 9px; writing-mode: vertical-rl; transform: rotate(180deg); max-height: 55px; overflow: hidden; }
.pulse-legend { display: flex; gap: 18px; padding-top: 18px; color: var(--muted); font-size: 9px; }
.pulse-legend span, .donut-legend span { display: flex; align-items: center; gap: 7px; }
.gold-dot, .muted-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; background: var(--gold-bright); }
.muted-dot { background: #3a342b; }
.command-strip { margin-top: 18px; padding: 30px; border: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: linear-gradient(90deg, rgba(201,161,91,.08), rgba(201,161,91,.015)); }
.command-strip h2 { margin: 7px 0 0; font: 500 22px var(--display); }
.command-actions { display: grid; grid-template-columns: repeat(3, minmax(190px, 1fr)); gap: 8px; flex: 1; max-width: 820px; }
.command-card { min-height: 66px; display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: rgba(7,6,4,.58); padding: 11px 14px; text-align: left; cursor: pointer; transition: .2s; }
.command-card:hover { border-color: var(--line-bright); transform: translateY(-2px); background: rgba(201,161,91,.055); }
.command-card > i { font: normal 9px var(--display); color: var(--gold); }
.command-card > span { display: flex; flex-direction: column; gap: 3px; }
.command-card strong { font-size: 10px; }.command-card small { font-size: 8px; color: var(--muted); }.command-card > b { margin-left: auto; color: var(--gold); }

.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; margin-bottom: 36px; }
.page-intro h1 { margin: 15px 0 10px; font-size: clamp(42px, 5vw, 68px); }
.page-intro p { margin: 0; color: var(--muted); font-size: 13px; }
.intro-stats { display: flex; align-items: center; gap: 30px; padding: 17px 22px; border: 1px solid var(--line); background: rgba(201,161,91,.03); }
.intro-stats span { display: flex; flex-direction: column; gap: 5px; min-width: 82px; }.intro-stats small { color: var(--muted); font-size: 8px; letter-spacing: .17em; }.intro-stats strong { font: 500 27px var(--display); color: var(--gold-pale); }.intro-stats i { width: 1px; height: 34px; background: var(--line); }
.desk-toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; padding: 8px; border: 1px solid var(--line); background: rgba(17,14,9,.7); }
.step-button { width: 42px; height: 42px; border: 1px solid var(--line); background: transparent; color: var(--gold); cursor: pointer; }.step-button:hover { background: rgba(201,161,91,.08); }
.team-select-wrap { display: flex; align-items: center; gap: 14px; height: 42px; padding: 0 13px; border: 1px solid var(--line); min-width: 310px; }.team-select-wrap span { font-size: 8px; letter-spacing: .15em; color: var(--bronze); }.team-select-wrap select { appearance: none; flex: 1; border: 0; outline: 0; background: transparent; color: var(--ivory); font-size: 11px; font-weight: 700; cursor: pointer; }.team-select-wrap option { background: #17120b; }.toolbar-spacer { flex: 1; }
.active-team-layout { display: grid; grid-template-columns: minmax(270px, .37fr) minmax(0, 1fr); gap: 16px; }
.team-profile { min-height: 620px; padding: 35px 30px; overflow: hidden; display: flex; flex-direction: column; }
.team-profile::after { width: 190px; height: 190px; right: -70px; bottom: -70px; border-radius: 50%; border: 1px solid var(--line); box-shadow: 0 0 0 25px rgba(201,161,91,.02), 0 0 0 50px rgba(201,161,91,.015); }
.team-badge-large { width: 84px; height: 84px; display: grid; place-items: center; border: 1px solid var(--gold); transform: rotate(45deg); margin: 22px 0 40px 13px; background: rgba(201,161,91,.06); box-shadow: inset 0 0 0 7px #100c07, inset 0 0 0 8px var(--line); }
.team-badge-large span { transform: rotate(-45deg); font: 500 17px var(--display); color: var(--gold-pale); }
.team-profile h2 { margin: 0 0 9px; font: 500 34px/1.05 var(--display); }
.team-profile .institution { color: var(--gold); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.team-meta-list { margin: 28px 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.team-meta-list div { display: flex; justify-content: space-between; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 10px; }.team-meta-list span { color: var(--muted); }.team-meta-list b { font-weight: 600; }
.team-status-large { margin-top: auto; padding: 17px; border: 1px solid var(--line); display: flex; align-items: center; gap: 12px; color: var(--gold); }.team-status-large.checked { color: var(--success); border-color: rgba(147,207,164,.26); }.team-status-large i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; box-shadow: 0 0 10px currentColor; }.team-status-large span { display: flex; flex-direction: column; gap: 3px; font-size: 9px; letter-spacing: .1em; }.team-status-large small { color: var(--muted); font-size: 8px; letter-spacing: 0; }
.member-manifest { min-height: 620px; }.manifest-count { color: var(--gold); font-size: 9px; letter-spacing: .12em; border: 1px solid var(--line); padding: 7px 10px; }
.member-list { display: flex; flex-direction: column; }.member-row { display: grid; grid-template-columns: 42px minmax(170px, 1.3fr) minmax(120px, .75fr) auto auto; align-items: center; gap: 14px; min-height: 84px; border-top: 1px solid var(--line); }
.member-no { color: var(--bronze); font: 10px var(--display); }.member-identity, .member-academic { display: flex; flex-direction: column; gap: 5px; min-width: 0; }.member-identity strong { font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.member-identity small, .member-academic small { color: var(--muted); font-size: 8px; }.member-academic span { font-size: 9px; color: #b9aea0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attendance-toggle { min-width: 100px; height: 34px; border: 1px solid rgba(147,207,164,.25); color: var(--success); background: rgba(147,207,164,.04); font-size: 8px; font-weight: 700; letter-spacing: .1em; cursor: pointer; }.attendance-toggle.absent { color: var(--danger); border-color: rgba(221,127,114,.25); background: rgba(221,127,114,.035); }.attendance-toggle:hover { filter: brightness(1.25); }
.more-button { width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }.more-button:hover { color: var(--gold); border-color: var(--gold); }
.desk-notes { display: grid; grid-template-columns: 1fr auto; gap: 9px; padding-top: 22px; margin-top: 12px; border-top: 1px solid var(--line); }.desk-notes label { grid-column: 1 / -1; color: var(--bronze); font-size: 8px; letter-spacing: .15em; }.desk-notes textarea { resize: vertical; min-height: 46px; color: var(--ivory); background: rgba(0,0,0,.22); border: 1px solid var(--line); padding: 11px; outline: none; font-size: 10px; }.desk-notes textarea:focus { border-color: var(--gold); }.desk-notes button { border: 1px solid var(--line-bright); background: rgba(201,161,91,.07); color: var(--gold-pale); padding: 0 16px; cursor: pointer; font-size: 9px; text-transform: uppercase; letter-spacing: .1em; }

.filter-bar { display: flex; gap: 12px; align-items: center; padding: 10px; border: 1px solid var(--line); margin-bottom: 16px; }.inline-search { height: 42px; flex: 1; max-width: 380px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--line); }.inline-search span { color: var(--gold); }.inline-search input { width: 100%; background: transparent; border: 0; outline: 0; color: var(--ivory); font-size: 10px; }.filter-pills { display: flex; gap: 6px; }.filter-pills button { height: 36px; padding: 0 12px; border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; font-size: 9px; }.filter-pills button.active { color: var(--gold-pale); border-color: var(--line); background: rgba(201,161,91,.07); }
.team-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }.team-card { min-height: 292px; padding: 24px; border: 1px solid var(--line); background: rgba(17,14,9,.76); position: relative; overflow: hidden; transition: .25s var(--ease); }.team-card:hover { transform: translateY(-4px); border-color: var(--line-bright); background: rgba(24,19,11,.9); }.team-card::after { content: attr(data-index); position: absolute; right: 16px; bottom: -20px; color: rgba(201,161,91,.035); font: 700 112px var(--display); pointer-events: none; }.team-card-head { display: flex; justify-content: space-between; align-items: flex-start; }.team-id { width: 54px; height: 54px; display: grid; place-items: center; transform: rotate(45deg); border: 1px solid var(--line-bright); }.team-id span { transform: rotate(-45deg); font: 8px var(--display); color: var(--gold); }.team-card h2 { margin: 30px 0 7px; font: 500 21px var(--display); position: relative; z-index: 1; }.team-card .uni { color: var(--muted); font-size: 9px; min-height: 22px; }.team-card-stats { display: grid; grid-template-columns: repeat(3,1fr); margin: 22px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }.team-card-stats span { display: flex; flex-direction: column; gap: 4px; padding: 12px 5px; border-right: 1px solid var(--line); }.team-card-stats span:last-child { border: 0; }.team-card-stats small { font-size: 7px; color: var(--muted); letter-spacing: .09em; }.team-card-stats b { font: 500 17px var(--display); }.team-card-foot { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }.team-card-foot a { color: var(--gold); font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }

.reports-kpis { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); margin-bottom: 16px; }.reports-kpis article { min-height: 154px; padding: 26px; border-right: 1px solid var(--line); background: rgba(17,14,9,.72); display: flex; flex-direction: column; justify-content: space-between; }.reports-kpis article:last-child { border: 0; }.reports-kpis small { color: var(--muted); font-size: 8px; letter-spacing: .15em; }.reports-kpis strong { font: 500 39px var(--display); color: var(--gold-pale); }.reports-kpis strong em { font: normal 10px var(--sans); color: var(--muted); margin-left: 5px; }.thin-progress { height: 3px; background: rgba(201,161,91,.1); overflow: hidden; }.thin-progress i { display: block; height: 100%; width: 0; background: var(--gold-bright); transition: width .8s var(--ease); }.report-tag { color: var(--success); font-size: 8px; letter-spacing: .13em; }.report-grid { display: grid; grid-template-columns: 1fr .72fr; gap: 16px; margin-bottom: 16px; }.institutional-panel > div:last-child { display: flex; flex-direction: column; gap: 17px; }.institution-row { display: grid; grid-template-columns: 170px 1fr 30px; align-items: center; gap: 12px; }.institution-row span { font-size: 9px; color: #b8afa2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }.institution-row div { height: 5px; background: rgba(201,161,91,.09); }.institution-row i { display: block; height: 100%; background: linear-gradient(90deg, #765826, var(--gold-bright)); }.institution-row b { font: 10px var(--display); color: var(--gold); text-align: right; }.donut-wrap { display: flex; align-items: center; justify-content: center; gap: 34px; min-height: 220px; }.report-donut { --progress: 0; width: 175px; aspect-ratio: 1; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--gold-bright) calc(var(--progress) * 1%), #272118 0); position: relative; }.report-donut::before { content: ""; position: absolute; inset: 12px; background: #100d08; border-radius: 50%; }.report-donut span { z-index: 1; display: flex; flex-direction: column; align-items: center; }.report-donut b { font: 500 37px var(--display); }.report-donut small { color: var(--muted); font-size: 8px; }.donut-legend { display: flex; flex-direction: column; gap: 13px; color: var(--muted); font-size: 9px; }.donut-legend b { color: var(--ivory); }.roster-report table { width: 100%; border-collapse: collapse; text-align: left; }.roster-report th { padding: 13px 11px; border-bottom: 1px solid var(--line-bright); color: var(--bronze); font-size: 7px; letter-spacing: .14em; }.roster-report td { padding: 16px 11px; border-bottom: 1px solid rgba(201,161,91,.1); font-size: 9px; color: #b8afa2; }.roster-report td:first-child { color: var(--ivory); font-weight: 700; }.roster-report .note-cell { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.intro-actions { display: flex; gap: 8px; }

.search-dialog, .member-modal { position: fixed; inset: 0; z-index: 40; display: grid; place-items: start center; padding-top: 11vh; background: rgba(0,0,0,.74); backdrop-filter: blur(10px); opacity: 0; pointer-events: none; transition: opacity .2s; }.search-dialog.open, .member-modal.open { opacity: 1; pointer-events: auto; }.search-modal { width: min(620px, calc(100% - 28px)); border: 1px solid var(--line-bright); background: #0d0b07; box-shadow: 0 32px 100px rgba(0,0,0,.55); }.search-field { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }.search-field > span { color: var(--gold); font-size: 18px; }.search-field input { flex: 1; background: transparent; border: 0; outline: 0; color: var(--ivory); }.search-results { max-height: 410px; overflow: auto; padding: 9px; }.search-results > p { color: var(--muted); font-size: 10px; padding: 18px; text-align: center; }.search-result { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px; border: 1px solid transparent; cursor: pointer; }.search-result:hover { border-color: var(--line); background: rgba(201,161,91,.04); }.search-result div { display: flex; flex-direction: column; gap: 4px; }.search-result strong { font-size: 11px; }.search-result small { color: var(--muted); font-size: 8px; }.search-result span { color: var(--gold); font-size: 9px; }
.member-modal { place-items: center; padding: 20px; }.member-modal-card { width: min(500px, 100%); padding: 34px; background: #100d08; position: relative; }.member-modal-card h2 { margin: 10px 0 8px; font: 500 29px var(--display); }.member-modal-card > p { color: var(--muted); font-size: 10px; margin-bottom: 24px; }.member-modal-card > label { display: flex; flex-direction: column; gap: 7px; margin-top: 13px; color: var(--bronze); font-size: 8px; letter-spacing: .12em; }.member-modal-card input { height: 43px; padding: 0 12px; color: var(--ivory); background: rgba(0,0,0,.28); border: 1px solid var(--line); outline: 0; }.member-modal-card input:focus { border-color: var(--gold); }.modal-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: 1px solid var(--line); background: transparent; color: var(--muted); cursor: pointer; }.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 26px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 60; padding: 12px 18px; color: var(--gold-pale); border: 1px solid var(--line-bright); background: #17120b; font-size: 10px; box-shadow: 0 16px 50px rgba(0,0,0,.5); transform: translate(-50%, 30px); opacity: 0; pointer-events: none; transition: .3s var(--ease); }.toast.show { opacity: 1; transform: translate(-50%, 0); }
.empty-state { grid-column: 1 / -1; padding: 70px 20px; border: 1px solid var(--line); color: var(--muted); text-align: center; font: 16px var(--display); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes orbit { to { transform: rotate(360deg); } }
@keyframes pulse { 50% { opacity: .4; transform: scale(.75); } }

@media (max-width: 1180px) {
  :root { --sidebar: 210px; }.sidebar { padding-inline: 14px; }.brand > span:last-child { display: none; }.brand { justify-content: center; }.nav-link.active::before { left: -15px; }.hero-grid { grid-template-columns: 1.4fr .85fr; }.metrics-grid { grid-template-columns: repeat(2,1fr); }.metric-card:nth-child(2) { border-right: 0; }.metric-card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }.command-strip { align-items: flex-start; flex-direction: column; }.command-actions { width: 100%; max-width: none; }.team-gallery { grid-template-columns: repeat(2,1fr); }.member-row { grid-template-columns: 34px 1fr 110px auto; }.member-academic { grid-column: 2; }.member-row .more-button { grid-row: 1 / 3; grid-column: 4; }
}
@media (max-width: 820px) {
  .sidebar { transform: translateX(-100%); width: 252px; transition: transform .3s var(--ease); box-shadow: 24px 0 70px rgba(0,0,0,.55); }.sidebar.open { transform: none; }.sidebar .brand > span:last-child { display: flex; }.workspace { margin-left: 0; }.mobile-menu { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); background: transparent; }.topbar { padding-inline: 18px; }.topbar-title { margin-right: auto; }.command-trigger { display: none; }.content { padding-top: 30px; }.hero-grid, .dashboard-grid, .active-team-layout, .report-grid { grid-template-columns: 1fr; }.hero-panel { min-height: 390px; }.progress-oracle { min-height: 390px; }.team-profile { min-height: 470px; }.command-actions { grid-template-columns: 1fr; }.page-intro { align-items: flex-start; flex-direction: column; }.intro-stats { width: 100%; }.desk-toolbar { flex-wrap: wrap; }.team-select-wrap { order: -1; width: 100%; }.toolbar-spacer { display: none; }.desk-toolbar .button { flex: 1; }.team-gallery { grid-template-columns: 1fr 1fr; }.filter-bar { align-items: stretch; flex-wrap: wrap; }.inline-search { max-width: none; flex-basis: 100%; }.reports-kpis { grid-template-columns: 1fr; }.reports-kpis article { border-right: 0; border-bottom: 1px solid var(--line); }.reports-kpis article:last-child { border-bottom: 0; }
}
@media (max-width: 560px) {
  .topbar-title { display: none; }.live-chip span { display: none; }.content { padding-inline: 15px; }.hero-panel { padding: 31px 25px; min-height: 430px; }.hero-panel h1 { font-size: 45px; }.hero-actions { align-items: stretch; flex-direction: column; }.hero-inscription { left: 25px; font-size: 8px; }.metrics-grid, .team-gallery { grid-template-columns: 1fr; }.metric-card { border-right: 0; border-bottom: 1px solid var(--line); }.metric-card:last-child { border-bottom: 0; }.queue-item { grid-template-columns: 32px 1fr auto; }.queue-item > .status-pill { display: none; }.command-strip { padding: 24px 18px; }.page-intro h1 { font-size: 43px; }.intro-stats { justify-content: space-between; }.member-manifest { padding: 21px 16px; }.member-row { grid-template-columns: 30px 1fr auto; padding: 13px 0; }.member-academic { grid-column: 2; }.attendance-toggle { grid-column: 2; min-width: 0; width: 110px; }.member-row .more-button { grid-column: 3; grid-row: 1 / 4; }.desk-notes { grid-template-columns: 1fr; }.desk-notes label { grid-column: 1; }.desk-notes button { min-height: 40px; }.filter-pills { width: 100%; }.filter-pills button { flex: 1; }.filter-bar > .button { width: 100%; }.institution-row { grid-template-columns: 110px 1fr 24px; }.donut-wrap { align-items: flex-start; flex-direction: column; }.table-scroll { overflow-x: auto; }.roster-report table { min-width: 720px; }.intro-actions { width: 100%; }.intro-actions .button { flex: 1; }.section-heading h2 { font-size: 21px; }
}
@media print { .sidebar,.topbar,.intro-actions,.filter-bar,.toast,.ambient { display:none!important; }.workspace { margin:0; }.content { padding: 20px; }.panel,.reports-kpis { break-inside: avoid; background:#fff; color:#111; }.roster-report td { color:#333; } body { background:#fff; color:#111; } }
@media (prefers-reduced-motion: reduce) { *,*::before,*::after { scroll-behavior:auto!important; animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; } }

/* ── REFERENCE THEME: BRIGHT OLYMPIAN GOLD ────────────────── */
:root {
  --ink: #050506;
  --ink-soft: #08080a;
  --surface: #0e0d10;
  --surface-strong: #121014;
  --surface-hover: #18151a;
  --gold: #d4af37;
  --gold-bright: #f6e27a;
  --gold-pale: #fff0a8;
  --bronze: #8a6d1d;
  --ivory: #ece4cc;
  --muted: #948b72;
  --line: rgba(212,175,55,.28);
  --line-bright: rgba(212,175,55,.72);
  --success: #7bd88f;
  --danger: #e5645a;
  --display: "Cinzel", Georgia, serif;
  --sans: "Rajdhani", system-ui, sans-serif;
  --sidebar: 0px;
}

body {
  font-size: 17px;
  font-weight: 600;
  overflow-x: hidden;
  background:
    radial-gradient(800px 420px at 85% -5%, rgba(212,175,55,.16), transparent),
    linear-gradient(rgba(212,175,55,.05) 1px, transparent 1px) 0 0 / 44px 44px,
    linear-gradient(90deg, rgba(212,175,55,.05) 1px, transparent 1px) 0 0 / 44px 44px,
    var(--ink);
}

body::before { opacity: .08; }
.ambient { display: none; }

.sidebar {
  inset: 0 0 auto 0;
  width: 100%;
  height: 82px;
  padding: 8px max(24px, calc((100vw - 1240px) / 2)) 17px;
  flex-direction: row;
  align-items: center;
  gap: 24px;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,6,.9);
  backdrop-filter: blur(12px);
}

.sidebar::before {
  top: auto;
  bottom: 0;
  height: 12px;
  opacity: .78;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='12'%3E%3Cpath d='M0 11h28M2 11V1h10v8H6V5h2M16 11V1h10v8h-4V5' fill='none' stroke='%23d4af37' stroke-width='1.5'/%3E%3C/svg%3E") repeat-x;
}

.brand { justify-content: flex-start; flex: 0 0 auto; padding: 0; gap: 9px; }
.brand > span:last-child { display: flex; }
.brand-mark { width: 42px; height: 42px; border: 0; transform: none; background: none; box-shadow: none; }
.brand-mark i { transform: none; font-size: 0; }
.brand-mark i::before { content: "Ω"; font: 700 38px/1 var(--display); color: var(--gold-bright); }
.brand-mark b { display: none; }
.brand strong {
  font-size: 19px;
  letter-spacing: .07em;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 58%, var(--bronze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.brand small { margin-top: 3px; font-size: 10px; color: var(--muted); letter-spacing: .04em; }

.main-nav { margin: 0 0 0 auto; flex-direction: row; gap: 2px; align-items: center; }
.nav-caption { display: none; }
.nav-link { height: 48px; padding: 0 14px; gap: 7px; color: var(--muted); border: 0; border-bottom: 2px solid transparent; }
.nav-link:hover { transform: none; color: var(--gold-bright); }
.nav-link.active { background: transparent; color: var(--gold); border-color: var(--gold); }
.nav-link.active::before { display: none; }
.nav-link i { width: 14px; font-size: 14px; color: currentColor; }
.nav-link span { font-size: 16px; font-weight: 600; }
.nav-count { width: 20px; min-width: 20px; height: 20px; color: var(--gold-bright); border-color: var(--line-bright); }
.sidebar-orbit { display: none; }
.sidebar-foot { flex: 0 0 auto; padding: 0; border: 0; }
.sidebar-foot small { display: none; }
.signal { padding: 7px 13px; border: 1px solid var(--line); color: var(--gold); font-size: 11px; letter-spacing: .06em; }
.signal i { background: var(--success); }

.workspace { margin-left: 0; padding-top: 82px; }
.topbar { display: none; }
.content { max-width: 1240px; padding: 34px 24px 80px; }

.reference-hero {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 46px 16px 42px;
  text-align: center;
}
.reference-hero::after {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(212,175,55,.08);
  pointer-events: none;
}
.hero-omega {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: rgba(212,175,55,.045);
  font: 900 min(42vw, 430px)/1 var(--display);
  pointer-events: none;
}
.greek-key-line {
  width: min(320px, 80%);
  height: 14px;
  margin-bottom: 22px;
  opacity: .82;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='28' height='14'%3E%3Cpath d='M0 13h28M2 13V2h10v9H6V6h2M16 13V2h10v9h-4V6' fill='none' stroke='%23d4af37' stroke-width='1.6'/%3E%3C/svg%3E") repeat-x;
}
.reference-hero .eyebrow { position: relative; z-index: 1; color: var(--gold); font-size: 12px; }
.reference-hero h1 {
  position: relative;
  z-index: 1;
  margin: 15px 0 10px;
  font: 700 clamp(46px, 7vw, 88px)/.98 var(--display);
  letter-spacing: .04em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 58%, var(--bronze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 18px rgba(212,175,55,.12));
}
.reference-hero h1 em { font-style: normal; }
.reference-hero p { position: relative; z-index: 1; max-width: 620px; margin: 0 0 14px; color: var(--muted); font-size: 19px; line-height: 1.5; }
.reference-hero .progress-sigil { width: 168px; margin: 12px auto 18px; }
.reference-hero .sigil-rings { inset: -9px; }
.reference-hero .sigil-value strong { font-size: 36px; color: var(--gold-bright); }
.reference-hero .sigil-value small { color: var(--muted); font-size: 10px; letter-spacing: .07em; }
.reference-hero .hero-actions { position: relative; z-index: 1; margin-top: 12px; }

.button { min-height: 44px; padding: 0 22px; border-color: var(--gold); font-size: 15px; letter-spacing: 0; text-transform: none; }
.button.primary {
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border: 0;
  color: #050506;
  clip-path: polygon(10px 0,100% 0,calc(100% - 10px) 100%,0 100%);
}
.button.ghost { color: var(--gold); background: rgba(5,5,6,.55); }
.button.compact { min-height: 38px; padding: 0 15px; font-size: 14px; }

.metrics-grid { gap: 16px; border: 0; margin-top: 16px; }
.metric-card {
  min-height: 118px;
  padding: 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--gold);
  background: var(--surface);
}
.metric-rune { border-color: var(--gold); color: var(--gold-bright); }
.metric-card small { font-size: 13px; letter-spacing: .02em; color: var(--muted); text-transform: none; }
.metric-card strong { font-size: 31px; color: var(--gold-bright); }
.metric-card strong i { font-size: 14px; }
.trend { font-size: 10px; }

.panel, .team-card, .reports-kpis article, .command-strip, .desk-toolbar {
  background: linear-gradient(180deg, #121014, var(--surface));
  border-color: var(--line);
}
.panel, .team-card { position: relative; }
.panel::before, .team-card::before, .team-profile::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 22px;
  height: 22px;
  border-top: 2px solid var(--gold);
  border-left: 2px solid var(--gold);
  pointer-events: none;
}
.section-heading h2, .command-strip h2 { color: var(--gold-bright); }
.section-heading .eyebrow, .eyebrow { color: var(--gold); font-size: 11px; }
.queue-item, .member-row, .team-meta-list div, .roster-report td { border-color: rgba(212,175,55,.13); }
.queue-team strong, .member-identity strong { color: var(--ivory); font-size: 15px; }
.queue-team small, .member-identity small, .member-academic small { font-size: 12px; }
.status-pill { border-radius: 20px; font-size: 11px; }
.command-card { background: #08080a; }

.page-intro { padding: 26px 0 12px; }
.page-intro h1 {
  font-weight: 700;
  letter-spacing: .02em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold) 62%, var(--bronze));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.page-intro h1 em { color: transparent; }
.page-intro p { font-size: 18px; }
.intro-stats { background: var(--surface); border-left: 3px solid var(--gold); }
.intro-stats small { font-size: 11px; }.intro-stats strong { color: var(--gold-bright); }

.team-select-wrap, .step-button, .inline-search, .filter-bar { background: #08080a; border-color: var(--line); }
.team-select-wrap span { font-size: 11px; color: var(--gold); }
.team-select-wrap select { font-size: 15px; }
.step-button { color: var(--gold-bright); font-size: 19px; }
.team-profile { background: linear-gradient(180deg, #121014, var(--surface)); }
.team-profile h2 { color: var(--gold-bright); }
.team-badge-large { border-color: var(--gold); box-shadow: inset 0 0 0 7px #09080a, inset 0 0 0 8px rgba(212,175,55,.34); }
.team-badge-large span { color: var(--gold-bright); }
.member-manifest { background: linear-gradient(180deg, #121014, var(--surface)); }
.attendance-toggle { border-radius: 2px; font-size: 11px; }
.desk-notes label { font-size: 11px; color: var(--gold); }
.desk-notes textarea, .member-modal-card input { background: #08080a; }
.desk-notes button { color: #050506; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border: 0; font-weight: 700; }

.filter-pills button { border-radius: 20px; font-size: 14px; }
.filter-pills button.active { color: var(--gold-bright); border-color: var(--gold); background: rgba(212,175,55,.15); }
.team-card { min-height: 286px; }
.team-card:hover { border-color: var(--gold); box-shadow: 0 0 26px rgba(212,175,55,.08); }
.team-card h2 { color: var(--gold-bright); }
.team-card .uni { font-size: 13px; }
.team-card-stats small { font-size: 10px; }.team-card-stats b { color: var(--gold-bright); }

.reports-kpis { gap: 16px; border: 0; }
.reports-kpis article { border: 1px solid var(--line); border-left: 3px solid var(--gold); }
.reports-kpis strong { color: var(--gold-bright); }
.institution-row span, .roster-report td { font-size: 13px; }
.roster-report th { color: var(--gold); font-size: 11px; background: #0a090c; }
.report-donut { background: conic-gradient(var(--gold-bright) calc(var(--progress) * 1%), #272118 0); }

.search-modal, .member-modal-card { background: var(--surface); }
.search-field input, .member-modal-card input { font-size: 16px; }
.search-result strong { font-size: 15px; }.search-result small { font-size: 12px; }
.toast { color: #050506; background: var(--gold); border-color: var(--gold-bright); font-size: 15px; font-weight: 700; }

button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

@media (max-width: 940px) {
  .sidebar { transform: none; width: 100%; height: 126px; padding: 8px 14px 14px; flex-wrap: wrap; gap: 0 12px; box-shadow: none; }
  .brand { margin-right: auto; }
  .sidebar-foot { margin-left: auto; }
  .main-nav { order: 3; width: 100%; margin: 0; overflow-x: auto; justify-content: center; }
  .nav-link { height: 40px; flex: 0 0 auto; padding-inline: 12px; }
  .workspace { padding-top: 126px; }
  .team-gallery { grid-template-columns: repeat(2,1fr); }
}

@media (max-width: 620px) {
  .sidebar { transform: none; width: 100%; height: 119px; box-shadow: none; }
  .brand strong { font-size: 16px; }.brand small { font-size: 9px; }
  .brand-mark { width: 34px; }.brand-mark i::before { font-size: 31px; }
  .signal { font-size: 0; padding: 8px; }.signal i { margin: 0; }
  .main-nav { justify-content: flex-start; }
  .nav-link { padding-inline: 8px; }.nav-link i { display: none; }.nav-link span { font-size: 12.5px; }
  .nav-count { width: 18px; min-width: 18px; height: 18px; font-size: 9px; }
  .workspace { padding-top: 119px; }
  .content { width: 100vw; max-width: 100vw; padding: 22px 14px 60px; overflow: hidden; }
  .reference-hero { min-height: 590px; padding-inline: 10px; }
  .reference-hero::after { inset: 8px; }
  .reference-hero h1 { font-size: 44px; }
  .reference-hero p { font-size: 16px; }
  .reference-hero .hero-actions { width: 100%; padding-inline: 20px; }
  .reference-hero .hero-actions .button { width: 100%; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metric-card { border-right: 1px solid var(--line); }
  .team-gallery { grid-template-columns: 1fr; }
  .page-intro { padding-top: 14px; }
  .page-intro h1 { font-size: 39px; }
  .page-intro p { font-size: 16px; }
}

/* ── CRE8X ARTWORK INTEGRATION & GLITCH LOADER ───────────── */
.preloader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #030304;
  opacity: 1;
  visibility: visible;
  transition: opacity .55s var(--ease), visibility .55s, transform .55s var(--ease);
}
.preloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: scale(1.025); }
.preloader::before, .preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.preloader::before {
  background: repeating-linear-gradient(to bottom, transparent 0 3px, rgba(246,226,122,.035) 3px 4px);
  animation: loaderScan 7s linear infinite;
}
.preloader::after {
  inset: 24px;
  border: 1px solid rgba(212,175,55,.22);
  box-shadow: inset 0 0 90px rgba(212,175,55,.04);
  clip-path: polygon(0 0, 90px 0, 90px 1px, calc(100% - 90px) 1px, calc(100% - 90px) 0, 100% 0, 100% 100%, calc(100% - 90px) 100%, calc(100% - 90px) calc(100% - 1px), 90px calc(100% - 1px), 90px 100%, 0 100%);
}
.preloader-grid { position: absolute; inset: 0; opacity: .42; background: linear-gradient(rgba(212,175,55,.06) 1px, transparent 1px) 0 0/54px 54px, linear-gradient(90deg,rgba(212,175,55,.06) 1px,transparent 1px) 0 0/54px 54px; mask-image: radial-gradient(circle at center, black, transparent 72%); }
.preloader-core { width: min(680px, 84vw); display: flex; flex-direction: column; align-items: center; position: relative; z-index: 2; }
.glitch-logo { width: min(610px, 82vw); aspect-ratio: 1.9; position: relative; display: grid; place-items: center; filter: drop-shadow(0 0 28px rgba(212,175,55,.2)); }
.glitch-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.glitch-base { animation: logoPulse 1.7s ease-in-out infinite; }
.glitch-layer { opacity: 0; pointer-events: none; }
.glitch-a { filter: sepia(1) saturate(2.5) hue-rotate(335deg); animation: glitchA 1.85s steps(1,end) infinite; }
.glitch-b { filter: sepia(1) saturate(3) hue-rotate(150deg); animation: glitchB 1.85s steps(1,end) infinite; }
.loader-kicker { margin-top: -8px; color: var(--gold); font-size: 11px; font-weight: 700; letter-spacing: .28em; }
.loader-track { width: min(360px, 62vw); height: 2px; margin: 18px 0 10px; overflow: hidden; background: rgba(212,175,55,.14); }
.loader-track i { display: block; width: 42%; height: 100%; background: linear-gradient(90deg, transparent, var(--gold-bright), transparent); box-shadow: 0 0 14px var(--gold); animation: loaderTrack 1.15s var(--ease) infinite; }
.preloader-core small { color: #716750; font-size: 9px; letter-spacing: .22em; }

.brand { width: 184px; height: 58px; overflow: visible; }
.brand-logo { width: 100%; height: 100%; object-fit: contain; object-position: left center; filter: drop-shadow(0 0 9px rgba(212,175,55,.2)); }
.brand-mark, .brand > span:not(.brand-mark) { display: none !important; }

.reference-hero {
  min-height: 670px;
  display: grid;
  grid-template-columns: minmax(0, .88fr) minmax(420px, 1.12fr);
  align-items: center;
  gap: clamp(10px, 3vw, 44px);
  padding: 28px 32px 20px;
  text-align: left;
  background: radial-gradient(ellipse at 72% 45%, rgba(212,175,55,.13), transparent 44%);
}
.reference-hero::before {
  content: "";
  position: absolute;
  inset: 22px;
  pointer-events: none;
  background: linear-gradient(90deg, var(--gold) 0 38px, transparent 38px) top left/100% 1px no-repeat, linear-gradient(180deg, var(--gold) 0 38px, transparent 38px) top left/1px 100% no-repeat, linear-gradient(270deg, var(--gold) 0 38px, transparent 38px) bottom right/100% 1px no-repeat, linear-gradient(0deg, var(--gold) 0 38px, transparent 38px) bottom right/1px 100% no-repeat;
  opacity: .65;
}
.reference-hero::after { inset: 34px; border-color: rgba(212,175,55,.08); }
.hero-copy { position: relative; z-index: 4; padding-left: clamp(10px, 2vw, 28px); }
.hero-copy { min-width: 0; width: 100%; }
.hero-copy .greek-key-line { margin: 0 0 26px; }
.reference-hero .eyebrow { justify-content: flex-start; }
.reference-hero h1 { margin: 18px 0 18px; font-size: clamp(56px, 5.8vw, 82px); }
.reference-hero p { max-width: 520px; margin: 0; font-size: 19px; }
.hero-command-row { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.reference-hero .progress-sigil { width: 132px; flex: 0 0 132px; margin: 0; }
.reference-hero .sigil-value strong { font-size: 29px; }
.reference-hero .sigil-value small { max-width: 72px; text-align: center; font-size: 8px; }
.reference-hero .hero-actions { flex-direction: column; align-items: stretch; width: 195px; margin: 0; }
.reference-hero .hero-actions .button { width: 100%; }
.hero-visual { height: 620px; align-self: end; position: relative; z-index: 2; display: grid; place-items: end center; overflow: hidden; }
.hero-visual::before { content: ""; position: absolute; width: 430px; height: 430px; left: 50%; top: 16%; transform: translateX(-50%); border: 1px solid rgba(246,226,122,.32); border-radius: 50%; box-shadow: 0 0 0 34px rgba(212,175,55,.03), 0 0 90px rgba(212,175,55,.13); }
.hero-visual img { width: 100%; height: 100%; object-fit: contain; object-position: center bottom; position: relative; z-index: 2; filter: saturate(.92) contrast(1.06) drop-shadow(0 18px 34px rgba(0,0,0,.75)); mask-image: linear-gradient(to bottom, transparent 0, black 8%, black 89%, transparent 100%); }
.hero-orbit { position: absolute; z-index: 3; border: 1px solid rgba(246,226,122,.45); border-radius: 50%; pointer-events: none; }
.orbit-one { width: 96px; height: 28px; left: 13%; top: 18%; transform: rotate(-17deg); box-shadow: 0 0 12px rgba(246,226,122,.22); animation: orbitalFloat 5s ease-in-out infinite; }
.orbit-two { width: 18px; height: 18px; right: 15%; top: 38%; border-style: dashed; animation: orbit 8s linear infinite; }
.visual-caption { position: absolute; right: 4px; bottom: 48px; z-index: 4; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; padding: 9px 11px; border-right: 2px solid var(--gold); background: rgba(5,5,6,.66); backdrop-filter: blur(8px); }
.visual-caption b { color: var(--gold-bright); font-size: 9px; letter-spacing: .18em; }.visual-caption span { color: var(--muted); font-size: 8px; letter-spacing: .13em; }

.page-intro { min-height: 250px; position: relative; isolation: isolate; align-items: center; overflow: hidden; padding: 32px 34px; border: 1px solid var(--line); background: linear-gradient(90deg, rgba(14,13,16,.96) 0 50%, rgba(14,13,16,.58) 72%, rgba(14,13,16,.94)); }
.page-intro::before { content: ""; position: absolute; inset: 0; z-index: -2; background-position: 72% 20%; background-repeat: no-repeat; background-size: 360px auto; opacity: .34; filter: saturate(.78) contrast(1.08); mask-image: linear-gradient(90deg, transparent 37%, black 55%, black 80%, transparent 96%); }
.page-intro::after { content: ""; position: absolute; inset: 12px; z-index: -1; border: 1px solid rgba(212,175,55,.09); pointer-events: none; }
body[data-page="checkin"] .page-intro::before { background-image: url("assets/zeus-guardian.png"); background-position: 69% 12%; background-size: 300px auto; }
body[data-page="teams"] .page-intro::before { background-image: url("assets/hera-open.png"); }
body[data-page="reports"] .page-intro::before { background-image: url("assets/athena-tablet.png"); background-position: 70% 17%; }
.page-intro > div { position: relative; z-index: 2; }
.page-intro h1 { margin-top: 12px; }
.page-intro .intro-stats, .page-intro .intro-actions { align-self: center; margin-left: auto; }

.active-team-layout { grid-template-columns: minmax(305px, .36fr) minmax(0, 1fr); align-items: stretch; }
.team-profile, .member-manifest { min-height: 620px; height: 100%; }
.team-profile { background: linear-gradient(180deg, rgba(18,16,20,.96), rgba(14,13,16,.84)), url("assets/zeus-guardian.png") right -28px bottom -30px/230px auto no-repeat; }
.desk-toolbar { min-height: 60px; padding: 8px 10px; }
.team-select-wrap { flex: 0 1 430px; min-width: 0; }
.member-row { padding: 7px 0; }
.member-identity strong { white-space: normal; line-height: 1.25; }
.desk-notes textarea { min-height: 52px; }

.team-gallery { align-items: stretch; }
.team-card { height: 100%; display: flex; flex-direction: column; }
.team-card .uni { flex: 1; }.team-card-foot { margin-top: auto; }
.reports-kpis article { min-height: 148px; }
.report-grid { align-items: stretch; }.report-grid > .panel { height: 100%; }

@keyframes glitchA {
  0%, 86%, 100% { opacity: 0; clip-path: inset(0 0 100% 0); transform: none; }
  87% { opacity: .76; clip-path: inset(12% 0 62% 0); transform: translate(-9px, 2px); }
  89% { opacity: .42; clip-path: inset(68% 0 12% 0); transform: translate(7px, -2px); }
  91% { opacity: 0; }
}
@keyframes glitchB {
  0%, 72%, 100% { opacity: 0; clip-path: inset(100% 0 0 0); transform: none; }
  73% { opacity: .58; clip-path: inset(44% 0 34% 0); transform: translate(8px, -1px); }
  75% { opacity: .34; clip-path: inset(6% 0 76% 0); transform: translate(-5px, 2px); }
  77% { opacity: 0; }
}
@keyframes logoPulse { 0%,100% { filter: brightness(.88); transform: scale(.995); } 50% { filter: brightness(1.1); transform: scale(1.008); } }
@keyframes loaderTrack { from { transform: translateX(-120%); } to { transform: translateX(340%); } }
@keyframes loaderScan { to { transform: translateY(4px); } }
@keyframes orbitalFloat { 0%,100% { transform: rotate(-17deg) translateY(0); } 50% { transform: rotate(-11deg) translateY(-8px); } }

@media (max-width: 1040px) {
  .reference-hero { grid-template-columns: minmax(0,.95fr) minmax(350px,1.05fr); padding-inline: 24px; }
  .reference-hero h1 { font-size: 55px; }
  .hero-visual { height: 570px; }
  .hero-command-row { gap: 20px; }
  .page-intro::before { background-position: 64% 18%; opacity: .25; }
}

@media (max-width: 940px) {
  .brand { width: 158px; height: 52px; }
  .reference-hero { min-height: auto; grid-template-columns: 1fr; grid-template-rows: auto 510px; text-align: center; padding-top: 54px; }
  .hero-copy { padding: 0; }
  .hero-copy .greek-key-line { margin-inline: auto; }
  .reference-hero .eyebrow { justify-content: center; }
  .reference-hero p { margin-inline: auto; }
  .hero-command-row { justify-content: center; }
  .hero-visual { width: min(620px,100%); height: 510px; margin: 0 auto; }
  .visual-caption { right: 24px; }
  .page-intro { min-height: 230px; padding: 28px; }
  .page-intro::before { background-position: 58% 18%; background-size: 280px auto; opacity: .2; }
  .active-team-layout { grid-template-columns: 1fr; }
  .team-profile, .member-manifest { min-height: auto; }
  .team-profile { min-height: 465px; background-size: 205px auto; }
}

@media (max-width: 620px) {
  .preloader::after { inset: 10px; }
  .loader-kicker { font-size: 8px; letter-spacing: .18em; }
  .preloader-core small { font-size: 7px; letter-spacing: .16em; }
  .glitch-logo { width: 74vw; }
  .brand { width: 121px; height: 43px; }
  .reference-hero { grid-template-rows: auto 390px; padding: 42px 16px 14px; }
  .reference-hero::before { inset: 8px; }
  .reference-hero::after { inset: 17px; }
  .hero-copy { width: calc(100vw - 64px); max-width: 100%; margin-inline: auto; overflow: hidden; }
  .reference-hero h1 { font-size: 35px; letter-spacing: .02em; }
  .hero-copy .greek-key-line { width: min(260px, 78vw); }
  .reference-hero p { width: 100%; max-width: 100%; padding: 0; font-size: 15px; }
  .hero-command-row { flex-direction: column; gap: 23px; }
  .reference-hero .hero-actions { width: 100%; max-width: 290px; }
  .hero-visual { height: 390px; }
  .hero-visual::before { width: 300px; height: 300px; }
  .visual-caption { right: 10px; bottom: 20px; }
  .page-intro, .desk-toolbar, .active-team-layout, .filter-bar, .reports-kpis, .report-grid, .roster-report { width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
  .page-intro { min-width: 0; min-height: 270px; padding: 24px 20px; }
  .page-intro > div:first-child { width: 100%; min-width: 0; }
  .page-intro h1 { max-width: 100%; font-size: 27px; line-height: 1.08; overflow-wrap: anywhere; }
  .page-intro p { width: calc(100vw - 74px); max-width: calc(100vw - 74px); overflow-wrap: anywhere; }
  .page-intro::before { background-position: right -25px center; background-size: 230px auto; opacity: .14; mask-image: linear-gradient(90deg, transparent 25%, black 76%, transparent 100%); }
  .page-intro .intro-stats, .page-intro .intro-actions { width: calc(100vw - 70px); max-width: calc(100vw - 70px); min-width: 0; margin: 18px auto 0; }
  .intro-stats { gap: 14px; padding: 14px 16px; }
  .intro-stats span { min-width: 0; flex: 1; }
  .intro-stats i { flex: 0 0 1px; }
  .desk-toolbar { width: 100%; min-width: 0; gap: 7px; overflow: hidden; }
  .team-select-wrap { flex: 1 0 100%; width: 100%; max-width: 100%; }
  .team-select-wrap select { min-width: 0; width: 100%; text-overflow: ellipsis; }
  .desk-toolbar [data-mark-all] { flex: 1 1 auto; }
  .desk-toolbar [data-confirm-team] { order: 3; flex: 1 0 100%; width: 100%; }
  .team-profile { background-size: 180px auto; }
}

@media (prefers-reduced-motion: reduce) {
  .preloader { transition-duration: .01ms; }
  .glitch-base, .glitch-layer, .loader-track i, .hero-orbit { animation: none !important; }
}

/* ── OLYMPUS BOOT SEQUENCE 2.0 ───────────────────────────── */
.preloader.enhanced {
  --loader-progress: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(153, 103, 20, .18), transparent 24%),
    radial-gradient(circle at 50% 50%, #0d0a06 0, #030304 56%, #000 100%);
}
.loader-aurora {
  position: absolute;
  width: min(840px, 88vw);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(from 90deg, transparent, rgba(246,226,122,.05), transparent 22%, rgba(212,175,55,.1) 38%, transparent 51%, rgba(246,226,122,.04) 69%, transparent);
  filter: blur(16px);
  animation: loaderAurora 11s linear infinite;
}
.loader-aurora::before,
.loader-aurora::after {
  content: "";
  position: absolute;
  inset: 12%;
  border: 1px solid rgba(212,175,55,.16);
  border-radius: 50%;
  box-shadow: 0 0 45px rgba(212,175,55,.08), inset 0 0 45px rgba(212,175,55,.04);
}
.loader-aurora::after { inset: 24%; border-style: dashed; animation: loaderAurora 7s linear infinite reverse; }
.loader-particles { position: absolute; inset: 50%; pointer-events: none; }
.loader-particles i {
  position: absolute;
  left: -2px;
  top: -2px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--gold-bright);
  box-shadow: 0 0 7px var(--gold-bright), 0 0 17px rgba(212,175,55,.7);
  opacity: .16;
  transform: rotate(calc(var(--i) * 20deg)) translateY(clamp(-340px, -35vw, -180px));
  animation: loaderParticle calc(2.7s + var(--i) * .09s) ease-in-out infinite;
  animation-delay: calc(var(--i) * -.18s);
}
.loader-reticle {
  position: absolute;
  width: 76px;
  height: 76px;
  border: 1px solid rgba(212,175,55,.2);
  border-radius: 50%;
  animation: reticlePulse 2.4s ease-in-out infinite;
}
.loader-reticle::before,
.loader-reticle::after { content: ""; position: absolute; background: rgba(246,226,122,.55); }
.loader-reticle::before { width: 98px; height: 1px; left: -12px; top: 50%; }
.loader-reticle::after { width: 1px; height: 98px; left: 50%; top: -12px; }
.loader-reticle i { position: absolute; inset: 13px; border: 1px dashed rgba(212,175,55,.25); border-radius: 50%; animation: loaderAurora 4s linear infinite; }
.loader-reticle-a { left: 8vw; top: 17vh; }
.loader-reticle-b { right: 8vw; bottom: 17vh; animation-delay: -1.2s; }
.glitch-logo::before,
.glitch-logo::after {
  content: "";
  position: absolute;
  z-index: -1;
  left: 50%;
  top: 50%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(-8deg);
  pointer-events: none;
}
.glitch-logo::before {
  width: 72%;
  height: 88%;
  border: 1px solid rgba(246,226,122,.28);
  box-shadow: 0 0 0 10px rgba(212,175,55,.025), 0 0 42px rgba(212,175,55,.15);
  animation: logoOrbit 5.5s ease-in-out infinite;
}
.glitch-logo::after {
  width: 54%;
  height: 66%;
  border: 1px dashed rgba(212,175,55,.22);
  animation: loaderAurora 9s linear infinite;
}
.logo-sweep {
  position: absolute;
  z-index: 5;
  inset: 13% 4%;
  overflow: hidden;
  mix-blend-mode: screen;
  mask-image: url("assets/cre8x-logo.png");
  mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
}
.logo-sweep::before {
  content: "";
  position: absolute;
  top: -20%;
  bottom: -20%;
  left: -28%;
  width: 16%;
  transform: skewX(-17deg);
  background: linear-gradient(90deg, transparent, rgba(255,249,205,.95), transparent);
  filter: blur(5px);
  animation: logoSweep 1.9s cubic-bezier(.35,0,.25,1) infinite;
}
.preloader.enhanced .loader-track {
  height: 3px;
  position: relative;
  overflow: visible;
  box-shadow: 0 0 0 1px rgba(212,175,55,.08);
}
.preloader.enhanced .loader-track::before,
.preloader.enhanced .loader-track::after {
  content: "";
  position: absolute;
  top: -3px;
  width: 1px;
  height: 9px;
  background: var(--gold-bright);
  box-shadow: 0 0 8px var(--gold);
}
.preloader.enhanced .loader-track::before { left: 0; }
.preloader.enhanced .loader-track::after { right: 0; }
.preloader.enhanced .loader-track i {
  width: calc(var(--loader-progress) * 1%);
  transform: none;
  animation: none;
  transition: width .16s ease-out;
  background: linear-gradient(90deg, #6c4712, var(--gold), #fff4a7);
  box-shadow: 0 0 16px rgba(246,226,122,.65);
}
.loader-hud {
  width: min(480px, 74vw);
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 18px;
  color: #766b55;
  font: 700 8px var(--sans);
  letter-spacing: .18em;
}
.loader-hud span { display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.loader-hud span:last-child { justify-content: flex-end; }
.loader-hud span i { width: 5px; height: 5px; border: 1px solid var(--gold); transform: rotate(45deg); box-shadow: 0 0 7px var(--gold); }
.loader-hud b { color: var(--gold-bright); font: 600 19px var(--display); text-shadow: 0 0 13px rgba(246,226,122,.45); }
.loader-sequence { display: flex; gap: 6px; margin-top: 12px; }
.loader-sequence i { width: 22px; height: 2px; background: rgba(212,175,55,.12); animation: sequencePing 1.15s ease-in-out infinite; }
.loader-sequence i:nth-child(2) { animation-delay: .1s; }.loader-sequence i:nth-child(3) { animation-delay: .2s; }.loader-sequence i:nth-child(4) { animation-delay: .3s; }.loader-sequence i:nth-child(5) { animation-delay: .4s; }
.preloader.is-complete .loader-hud b { color: #fff8c8; }
.preloader.is-complete .glitch-logo { animation: loaderLock .22s ease-out both; }

/* ── CHECK-IN COMMAND EMPHASIS ────────────────────────────── */
body[data-page="checkin"] .page-intro {
  border-color: rgba(212,175,55,.38);
  box-shadow: inset 0 0 70px rgba(212,175,55,.025), 0 20px 65px rgba(0,0,0,.34);
  background:
    linear-gradient(90deg, rgba(10,9,11,.99) 0 43%, rgba(14,11,7,.65) 73%, rgba(9,8,9,.94)),
    radial-gradient(circle at 72% 46%, rgba(212,175,55,.17), transparent 32%);
}
body[data-page="checkin"] .page-intro::before { opacity: .53; filter: saturate(.9) contrast(1.13) drop-shadow(0 0 24px rgba(212,175,55,.2)); }
body[data-page="checkin"] .page-intro h1 { text-shadow: 0 0 32px rgba(212,175,55,.18); }
body[data-page="checkin"] .desk-toolbar {
  position: relative;
  border-color: rgba(212,175,55,.34);
  box-shadow: 0 14px 42px rgba(0,0,0,.32), inset 0 1px rgba(246,226,122,.06);
  overflow: hidden;
}
body[data-page="checkin"] .desk-toolbar::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 -30%;
  width: 22%;
  background: linear-gradient(90deg, transparent, rgba(246,226,122,.08), transparent);
  transform: skewX(-16deg);
  animation: toolbarSweep 5.8s ease-in-out infinite;
  pointer-events: none;
}
body[data-page="checkin"] .team-select-wrap { border-color: rgba(212,175,55,.31); box-shadow: inset 3px 0 var(--gold); }
body[data-page="checkin"] .team-profile,
body[data-page="checkin"] .member-manifest {
  border-color: rgba(212,175,55,.29);
  box-shadow: 0 22px 60px rgba(0,0,0,.27), inset 0 1px rgba(246,226,122,.04);
}
body[data-page="checkin"] .team-profile {
  background:
    linear-gradient(180deg, rgba(15,13,15,.9), rgba(8,7,8,.87)),
    url("assets/zeus-guardian.png") right -30px bottom -26px/250px auto no-repeat;
}
body[data-page="checkin"] .team-profile::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, transparent 42%, rgba(246,226,122,.07) 50%, transparent 57%);
  background-size: 240% 100%;
  animation: profileShimmer 6.5s ease-in-out infinite;
}
body[data-page="checkin"] .team-badge-large { box-shadow: inset 0 0 0 7px #09080a, inset 0 0 0 8px rgba(212,175,55,.48), 0 0 30px rgba(212,175,55,.15); }
body[data-page="checkin"] .member-row { position: relative; transition: background .22s ease, transform .22s ease, border-color .22s ease; }
body[data-page="checkin"] .member-row::before { content: ""; position: absolute; left: -12px; top: 18%; bottom: 18%; width: 2px; background: var(--gold); box-shadow: 0 0 12px var(--gold); opacity: 0; transform: scaleY(.3); transition: .22s ease; }
body[data-page="checkin"] .member-row:hover { background: linear-gradient(90deg, rgba(212,175,55,.08), transparent 72%); transform: translateX(3px); border-color: rgba(212,175,55,.25); }
body[data-page="checkin"] .member-row:hover::before { opacity: 1; transform: scaleY(1); }
body[data-page="checkin"] .attendance-toggle:not(.absent) { box-shadow: 0 0 16px rgba(84,198,142,.12); }
body[data-page="checkin"] [data-confirm-team] { box-shadow: 0 0 24px rgba(212,175,55,.13); }

/* ── PASSWORD-GATED RESET COMMAND ─────────────────────────── */
.modal-open { overflow: hidden; }
.danger-button {
  color: #ffd9c8;
  border: 1px solid rgba(205,77,48,.62);
  background: linear-gradient(180deg, rgba(113,28,20,.42), rgba(45,13,10,.75));
  box-shadow: inset 0 1px rgba(255,208,172,.07);
}
.danger-button:hover { color: #fff4dd; border-color: #e57d4d; box-shadow: 0 0 20px rgba(205,77,48,.18), inset 0 1px rgba(255,225,190,.12); }
.signal.syncing { color: var(--gold); }
.signal.syncing i { background: var(--gold); box-shadow: 0 0 9px var(--gold); animation: backendPulse .9s ease-in-out infinite; }
.signal.offline { color: #d08361; }
.signal.offline i { background: #d05f3d; box-shadow: 0 0 8px rgba(208,95,61,.65); }
.secure-reset-modal {
  position: fixed;
  inset: 0;
  z-index: 950;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0,0,0,.78);
  backdrop-filter: blur(14px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .25s ease, visibility .25s;
}
.secure-reset-modal::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(205,77,48,.15); pointer-events: none; }
.secure-reset-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.secure-reset-card {
  width: min(500px, 100%);
  max-height: calc(100vh - 32px);
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 36px 38px 26px;
  border: 1px solid rgba(212,175,55,.42);
  background:
    linear-gradient(145deg, rgba(212,175,55,.055), transparent 32%),
    #0d0c0f;
  box-shadow: 0 35px 100px #000, inset 0 0 55px rgba(212,175,55,.025);
  transform: translateY(15px) scale(.98);
  transition: transform .3s var(--ease);
}
.secure-reset-modal.open .secure-reset-card { transform: none; }
.secure-reset-card::before { content: ""; position: absolute; top: 0; left: 0; width: 84px; height: 2px; background: var(--gold-bright); box-shadow: 0 0 16px var(--gold); }
.secure-reset-card h2 { margin: 10px 0 9px; color: var(--gold-bright); font: 700 28px var(--display); text-transform: uppercase; }
.secure-reset-card > p { max-width: 390px; margin: 0 0 24px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.reset-modal-close { position: absolute; top: 12px; right: 13px; width: 35px; height: 35px; border: 1px solid var(--line); background: #09090b; color: var(--muted); font-size: 22px; }
.reset-modal-close:hover { color: var(--gold-bright); border-color: var(--gold); }
.reset-lock { float: right; width: 70px; height: 76px; margin: 8px 4px 12px 20px; position: relative; display: grid; place-items: end center; }
.reset-lock span { position: absolute; top: 0; width: 42px; height: 42px; border: 2px solid var(--gold); border-bottom: 0; border-radius: 22px 22px 0 0; box-shadow: 0 0 18px rgba(212,175,55,.15); }
.reset-lock i { width: 61px; height: 47px; display: grid; place-items: center; position: relative; z-index: 1; border: 1px solid var(--gold); background: #151006; color: var(--gold-bright); font: normal 22px var(--display); box-shadow: 0 0 22px rgba(212,175,55,.1); }
.secure-reset-card label { display: block; margin-bottom: 7px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.reset-scope { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0 0 17px; padding: 0; border: 0; }
.reset-scope legend { grid-column: 1 / -1; width: 100%; margin-bottom: 7px; color: var(--gold); font-size: 10px; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.secure-reset-card .scope-option { min-height: 67px; display: grid; grid-template-columns: 18px 1fr; align-items: center; gap: 9px; margin: 0; padding: 10px 11px; border: 1px solid rgba(212,175,55,.2); background: #08080a; color: var(--ivory); cursor: pointer; letter-spacing: 0; text-transform: none; transition: border-color .2s, background .2s, box-shadow .2s; }
.secure-reset-card .scope-option:hover { border-color: rgba(212,175,55,.55); }
.secure-reset-card .scope-option:has(input:checked) { border-color: var(--gold); background: linear-gradient(145deg, rgba(212,175,55,.12), rgba(8,8,10,.94)); box-shadow: inset 2px 0 var(--gold), 0 0 15px rgba(212,175,55,.06); }
.scope-option input { width: 14px; height: 14px; margin: 0; accent-color: var(--gold); }
.scope-option span { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.scope-option b { color: var(--gold-bright); font-size: 12px; letter-spacing: .04em; }
.scope-option small { color: #716a5f; font-size: 9px; font-weight: 500; line-height: 1.25; letter-spacing: .02em; }
.reset-team-picker { margin: -1px 0 17px; padding: 12px; border: 1px solid rgba(212,175,55,.2); border-top: 2px solid var(--gold); background: rgba(212,175,55,.035); animation: teamPickerReveal .24s var(--ease) both; }
.reset-team-picker[hidden] { display: none; }
.reset-select-shell { height: 46px; display: grid; grid-template-columns: 35px 1fr 20px; align-items: center; padding: 0 10px; border: 1px solid rgba(212,175,55,.27); background: #070708; }
.reset-select-shell > span { color: var(--gold); font: 18px var(--display); }
.reset-select-shell select { width: 100%; height: 100%; border: 0; outline: 0; appearance: none; background: transparent; color: var(--ivory); font: 600 13px var(--sans); }
.reset-select-shell select option { background: #0d0c0f; color: var(--ivory); }
.reset-select-shell > i { color: var(--gold); font-style: normal; text-align: center; }
.secure-reset-card form > label[for="reset-password"] { margin-top: 2px; }
.password-field { height: 51px; display: grid; grid-template-columns: 42px 1fr 18px; align-items: center; padding: 0 13px; border: 1px solid rgba(212,175,55,.28); background: #070708; transition: border-color .2s, box-shadow .2s; }
.password-field:focus-within { border-color: var(--gold); box-shadow: 0 0 20px rgba(212,175,55,.09); }
.password-field > span { color: var(--gold); font-size: 20px; }
.password-field input { width: 100%; height: 100%; border: 0; outline: 0; background: transparent; color: var(--ivory); font: 600 19px var(--sans); letter-spacing: .22em; }
.password-field input::placeholder { color: #5f594f; font-size: 13px; letter-spacing: .04em; }
.password-field > i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 10px var(--gold); animation: reticlePulse 1.4s ease-in-out infinite; }
.reset-error { display: block; min-height: 24px; padding-top: 7px; color: #ff8566; font-size: 10px; letter-spacing: .07em; }
.reset-actions { display: grid; grid-template-columns: 1fr 1.45fr; gap: 9px; margin-top: 9px; }
.reset-actions .button { width: 100%; }
.reset-clearance { display: flex; align-items: center; gap: 10px; margin-top: 20px; color: #585044; font-size: 8px; letter-spacing: .16em; }
.reset-clearance i { height: 1px; flex: 1; background: linear-gradient(90deg, transparent, rgba(212,175,55,.28)); }
.reset-clearance i:last-child { transform: rotate(180deg); }
.secure-reset-card.denied { animation: accessDenied .34s ease; border-color: rgba(238,83,53,.72); }
.secure-reset-card.denied .password-field { border-color: rgba(238,83,53,.75); box-shadow: 0 0 22px rgba(238,83,53,.12); }

@keyframes loaderAurora { to { transform: rotate(360deg); } }
@keyframes loaderParticle { 0%,100% { opacity: .08; margin-top: 12px; } 45% { opacity: .88; margin-top: -12px; } }
@keyframes reticlePulse { 0%,100% { opacity: .38; transform: scale(.94); } 50% { opacity: .86; transform: scale(1.03); } }
@keyframes logoOrbit { 0%,100% { transform: translate(-50%,-50%) rotate(-8deg) scale(.98); } 50% { transform: translate(-50%,-50%) rotate(5deg) scale(1.04); } }
@keyframes logoSweep { 0%,12% { left: -28%; opacity: 0; } 25% { opacity: 1; } 70%,100% { left: 116%; opacity: 0; } }
@keyframes sequencePing { 0%,100% { background: rgba(212,175,55,.1); box-shadow: none; } 50% { background: var(--gold-bright); box-shadow: 0 0 10px var(--gold); } }
@keyframes loaderLock { 50% { filter: brightness(1.55) drop-shadow(0 0 45px rgba(246,226,122,.55)); transform: scale(1.018); } }
@keyframes toolbarSweep { 0%,12% { left: -30%; } 52%,100% { left: 115%; } }
@keyframes profileShimmer { 0%,20% { background-position: 160% 0; opacity: 0; } 48% { opacity: 1; } 75%,100% { background-position: -80% 0; opacity: 0; } }
@keyframes accessDenied { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-8px); } 55% { transform: translateX(7px); } 80% { transform: translateX(-4px); } }
@keyframes backendPulse { 0%,100% { opacity: .4; transform: scale(.75); } 50% { opacity: 1; transform: scale(1.2); } }
@keyframes teamPickerReveal { from { opacity: 0; transform: translateY(-7px); } to { opacity: 1; transform: none; } }

@media (max-width: 620px) {
  .loader-reticle { width: 48px; height: 48px; }
  .loader-reticle::before { width: 68px; left: -10px; }.loader-reticle::after { height: 68px; top: -10px; }
  .loader-reticle-a { left: 8vw; top: 14vh; }.loader-reticle-b { right: 8vw; bottom: 14vh; }
  .loader-hud { width: 82vw; gap: 8px; }.loader-hud span { font-size: 6px; letter-spacing: .1em; }.loader-hud b { font-size: 16px; }
  body[data-page="reports"] .intro-actions { flex-wrap: wrap; }
  body[data-page="reports"] .intro-actions .danger-button { flex-basis: 100%; }
  body[data-page="checkin"] .page-intro::before { opacity: .25; }
  body[data-page="checkin"] .team-profile { background-size: 195px auto; }
  .secure-reset-card { padding: 31px 22px 23px; }
  .secure-reset-card h2 { font-size: 23px; }
  .reset-lock { width: 58px; transform: scale(.85); transform-origin: top right; margin-left: 6px; }
  .reset-scope { grid-template-columns: 1fr; }
  .secure-reset-card .scope-option { min-height: 57px; }
  .reset-actions { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .loader-aurora, .loader-aurora::after, .loader-particles i, .loader-reticle, .loader-reticle i,
  .glitch-logo::before, .glitch-logo::after, .logo-sweep::before, .loader-sequence i,
  body[data-page="checkin"] .desk-toolbar::before, body[data-page="checkin"] .team-profile::after,
  .password-field > i { animation: none !important; }
}

/* ── OVERVIEW // OLYMPUS COMMAND CENTER ───────────────────── */
body[data-page="dashboard"] .content { max-width: 1320px; }
body[data-page="dashboard"] .reference-hero {
  min-height: 690px;
  padding: 34px 38px 108px;
  border: 1px solid rgba(212,175,55,.28);
  background:
    linear-gradient(90deg, rgba(7,7,9,.98) 0 38%, rgba(8,7,7,.72) 58%, rgba(8,7,6,.35)),
    radial-gradient(circle at 72% 38%, rgba(212,175,55,.16), transparent 29%);
  box-shadow: 0 28px 90px rgba(0,0,0,.34), inset 0 1px rgba(246,226,122,.05);
}
body[data-page="dashboard"] .reference-hero::before {
  opacity: .8;
  background:
    linear-gradient(90deg, var(--gold) 0 48px, transparent 48px) top left/100% 1px no-repeat,
    linear-gradient(180deg, var(--gold) 0 48px, transparent 48px) top left/1px 100% no-repeat,
    linear-gradient(270deg, var(--gold) 0 48px, transparent 48px) bottom right/100% 1px no-repeat,
    linear-gradient(0deg, var(--gold) 0 48px, transparent 48px) bottom right/1px 100% no-repeat;
}
body[data-page="dashboard"] .reference-hero::after {
  inset: 13px;
  border-color: rgba(212,175,55,.12);
  background: linear-gradient(90deg, transparent 49.9%, rgba(212,175,55,.05) 50%, transparent 50.1%);
}
body[data-page="dashboard"] .hero-copy { align-self: center; padding-left: clamp(8px,2vw,26px); }
body[data-page="dashboard"] .hero-copy::before {
  content: "03 // COMMAND";
  position: absolute;
  left: -7px;
  top: 50%;
  color: rgba(212,175,55,.25);
  font: 700 8px var(--sans);
  letter-spacing: .28em;
  writing-mode: vertical-rl;
  transform: translateY(-50%) rotate(180deg);
}
body[data-page="dashboard"] .reference-hero h1 {
  max-width: 560px;
  font-size: clamp(55px,5.6vw,84px);
  line-height: .91;
  text-shadow: 0 0 34px rgba(212,175,55,.08);
}
body[data-page="dashboard"] .reference-hero h1 span { color: #f4eab8; -webkit-text-fill-color: #f4eab8; }
body[data-page="dashboard"] .reference-hero h1 em { color: transparent; -webkit-text-fill-color: transparent; background: linear-gradient(90deg,#9b6e25,var(--gold-bright),#9b6e25); -webkit-background-clip: text; background-clip: text; }
.hero-coordinates { display: flex; align-items: center; gap: 10px; margin-top: 17px; color: #827761; font-size: 9px; font-weight: 700; letter-spacing: .15em; }
.hero-coordinates i { width: 4px; height: 4px; border: 1px solid var(--gold); transform: rotate(45deg); box-shadow: 0 0 7px rgba(212,175,55,.45); }
body[data-page="dashboard"] .hero-command-row {
  width: min(100%, 525px);
  display: grid;
  grid-template-columns: 112px minmax(150px,1fr) 168px;
  align-items: center;
  gap: 14px;
  margin-top: 26px;
}
body[data-page="dashboard"] .reference-hero .progress-sigil { width: 104px; margin: 0; }
body[data-page="dashboard"] .reference-hero .sigil-value strong { font-size: 25px; }
body[data-page="dashboard"] .reference-hero .hero-actions { width: 168px; margin: 0; }
.next-clearance { min-width: 0; padding: 12px 13px 11px; border-left: 2px solid var(--gold); background: linear-gradient(90deg,rgba(212,175,55,.09),transparent); }
.next-clearance > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.next-clearance small { color: #7f7564; font-size: 7px; font-weight: 700; letter-spacing: .16em; }
.next-clearance span { color: var(--gold); font: 700 8px var(--display); letter-spacing: .08em; }
.next-clearance strong { display: block; margin: 7px 0 4px; overflow: hidden; color: var(--ivory); font: 600 14px var(--display); text-overflow: ellipsis; white-space: nowrap; }
.next-clearance em { color: var(--gold); font-size: 7px; font-style: normal; font-weight: 700; letter-spacing: .12em; }
body[data-page="dashboard"] .hero-visual { height: 590px; }
body[data-page="dashboard"] .hero-visual::before {
  width: 440px;
  height: 440px;
  background: repeating-radial-gradient(circle,transparent 0 35px,rgba(212,175,55,.035) 36px,transparent 37px);
  box-shadow: 0 0 0 34px rgba(212,175,55,.025), 0 0 110px rgba(212,175,55,.14), inset 0 0 60px rgba(212,175,55,.035);
  animation: overviewHalo 7s ease-in-out infinite;
}
body[data-page="dashboard"] .hero-visual::after {
  content: "";
  position: absolute;
  z-index: 3;
  top: 2%;
  bottom: 4%;
  left: 50%;
  width: 1px;
  background: linear-gradient(transparent,rgba(246,226,122,.55),transparent);
  box-shadow: 0 0 18px rgba(246,226,122,.35);
  opacity: .32;
  animation: overviewScan 4.8s ease-in-out infinite;
}
body[data-page="dashboard"] .hero-visual img { transform: scale(1.035); filter: saturate(.96) contrast(1.07) drop-shadow(0 25px 40px rgba(0,0,0,.72)) drop-shadow(0 0 20px rgba(212,175,55,.08)); }
.hero-target { position: absolute; z-index: 4; width: 24px; height: 24px; border: 1px solid rgba(246,226,122,.45); pointer-events: none; }
.hero-target::before,.hero-target::after { content: ""; position: absolute; background: rgba(246,226,122,.55); }
.hero-target::before { width: 38px; height: 1px; left: -8px; top: 11px; }.hero-target::after { width: 1px; height: 38px; left: 11px; top: -8px; }
.target-a { left: 15%; top: 25%; }.target-b { right: 12%; top: 48%; transform: scale(.65); opacity: .65; }
.hero-scan-label { position: absolute; z-index: 5; left: 4%; bottom: 108px; display: flex; flex-direction: column; gap: 3px; padding-left: 10px; border-left: 1px solid var(--gold); }
.hero-scan-label small { color: #776d5a; font-size: 7px; letter-spacing: .15em; }.hero-scan-label b { color: var(--gold); font: 700 9px var(--display); letter-spacing: .1em; }
body[data-page="dashboard"] .visual-caption { bottom: 105px; }
.hero-status-rail {
  position: absolute;
  z-index: 8;
  left: 32px;
  right: 32px;
  bottom: 23px;
  display: grid;
  grid-template-columns: 1.35fr .8fr 1.1fr .85fr;
  min-height: 64px;
  border: 1px solid rgba(212,175,55,.25);
  background: rgba(5,5,7,.82);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 36px rgba(0,0,0,.32), inset 0 1px rgba(246,226,122,.04);
}
.hero-status-rail > span { min-width: 0; display: flex; flex-direction: column; justify-content: center; gap: 5px; padding: 11px 15px; border-right: 1px solid rgba(212,175,55,.14); }
.hero-status-rail > span:last-child { border-right: 0; }
.hero-status-rail small { color: #6f6656; font-size: 7px; font-weight: 700; letter-spacing: .17em; }
.hero-status-rail b { overflow: hidden; color: #d8cfb5; font-size: 10px; letter-spacing: .08em; text-overflow: ellipsis; white-space: nowrap; }
.hero-status-rail .rail-live b { color: var(--success); }
.rail-live i { display: inline-block; width: 6px; height: 6px; margin-right: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 9px var(--success); animation: pulse 1.6s infinite; }

body[data-page="dashboard"] .metrics-grid { gap: 11px; margin-top: 12px; }
body[data-page="dashboard"] .metric-card {
  min-height: 132px;
  overflow: hidden;
  border-left-width: 1px;
  background:
    linear-gradient(145deg,rgba(212,175,55,.075),transparent 43%),
    linear-gradient(180deg,#111013,#0c0b0d);
  transition: transform .25s var(--ease),border-color .25s,box-shadow .25s;
}
body[data-page="dashboard"] .metric-card::before { content: ""; position: absolute; left: 0; top: 0; width: 37px; height: 2px; background: var(--gold-bright); box-shadow: 0 0 12px var(--gold); }
body[data-page="dashboard"] .metric-card::after { content: ""; position: absolute; width: 92px; height: 92px; right: -45px; top: -45px; border: 1px solid rgba(212,175,55,.09); transform: rotate(45deg); }
body[data-page="dashboard"] .metric-card:hover { transform: translateY(-4px); border-color: rgba(212,175,55,.42); box-shadow: 0 20px 48px rgba(0,0,0,.26),0 0 24px rgba(212,175,55,.055); }
body[data-page="dashboard"] .metric-rune { width: 42px; height: 52px; background: radial-gradient(circle,rgba(212,175,55,.13),transparent 64%); box-shadow: 0 0 20px rgba(212,175,55,.08); }
.metric-meter { position: absolute; left: 18px; right: 18px; bottom: 13px; height: 2px; overflow: hidden; background: rgba(212,175,55,.1); }
.metric-meter i { display: block; width: 0; height: 100%; background: linear-gradient(90deg,#76511a,var(--gold-bright)); box-shadow: 0 0 9px var(--gold); transition: width .8s var(--ease); }

body[data-page="dashboard"] .dashboard-grid { gap: 12px; margin-top: 12px; grid-template-columns: minmax(0,1.25fr) minmax(330px,.75fr); }
body[data-page="dashboard"] .dashboard-grid .panel { border-color: rgba(212,175,55,.25); box-shadow: 0 20px 55px rgba(0,0,0,.2); }
body[data-page="dashboard"] .queue-item { position: relative; min-height: 70px; }
body[data-page="dashboard"] .queue-item::before { content: ""; position: absolute; left: -28px; top: 50%; width: 2px; height: 0; background: var(--gold); box-shadow: 0 0 10px var(--gold); transition: height .2s,top .2s; }
body[data-page="dashboard"] .queue-item:hover::before { top: 18%; height: 64%; }
body[data-page="dashboard"] .queue-item:hover { padding-left: 10px; background: linear-gradient(90deg,rgba(212,175,55,.075),transparent); }
body[data-page="dashboard"] .pulse-chart { position: relative; background: repeating-linear-gradient(to top,transparent 0 51px,rgba(212,175,55,.075) 51px 52px),linear-gradient(90deg,transparent,rgba(212,175,55,.025),transparent); }
body[data-page="dashboard"] .pulse-chart::before { content: "100\A75\A50\A25"; white-space: pre; position: absolute; left: -16px; top: 17px; color: #4f493f; font: 7px/52px var(--sans); }
body[data-page="dashboard"] .pulse-bar i { position: relative; overflow: hidden; }
body[data-page="dashboard"] .pulse-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg,rgba(255,255,255,.36),transparent 22%); }
body[data-page="dashboard"] .command-strip { position: relative; overflow: hidden; margin-top: 12px; border-color: rgba(212,175,55,.28); box-shadow: 0 20px 55px rgba(0,0,0,.2); }
body[data-page="dashboard"] .command-strip::after { content: "Ω"; position: absolute; left: 21%; bottom: -51px; color: rgba(212,175,55,.035); font: 900 145px var(--display); pointer-events: none; }
body[data-page="dashboard"] .command-actions { position: relative; z-index: 2; }
body[data-page="dashboard"] .command-card { min-height: 72px; border-color: rgba(212,175,55,.2); box-shadow: inset 0 1px rgba(246,226,122,.025); }
body[data-page="dashboard"] .command-card:hover { border-color: var(--gold); box-shadow: 0 11px 26px rgba(0,0,0,.25),inset 0 0 24px rgba(212,175,55,.035); }
body[data-page="dashboard"] .command-card > i { width: 29px; height: 29px; display: grid; place-items: center; border: 1px solid rgba(212,175,55,.32); background: rgba(212,175,55,.04); clip-path: polygon(50% 0,100% 24%,100% 76%,50% 100%,0 76%,0 24%); }

@keyframes overviewHalo { 0%,100% { transform: translateX(-50%) scale(.98); opacity: .72; } 50% { transform: translateX(-50%) scale(1.035); opacity: 1; } }
@keyframes overviewScan { 0%,100% { transform: translateX(-170px); opacity: 0; } 25%,70% { opacity: .35; } 50% { transform: translateX(170px); } }

@media (max-width: 1040px) {
  body[data-page="dashboard"] .reference-hero { padding-inline: 26px; }
  body[data-page="dashboard"] .hero-command-row { grid-template-columns: 100px minmax(130px,1fr) 150px; gap: 10px; }
  body[data-page="dashboard"] .reference-hero .hero-actions { width: 150px; }
  .hero-status-rail { left: 24px; right: 24px; }
  .hero-status-rail > span { padding-inline: 10px; }
  .hero-status-rail b { font-size: 9px; }
}

@media (max-width: 940px) {
  body[data-page="dashboard"] .reference-hero { grid-template-rows: auto 520px auto; padding: 50px 26px 24px; }
  body[data-page="dashboard"] .hero-copy { padding: 0; }
  body[data-page="dashboard"] .hero-copy::before { display: none; }
  body[data-page="dashboard"] .hero-command-row { width: min(540px,100%); margin-inline: auto; grid-template-columns: 110px minmax(150px,1fr) 170px; }
  body[data-page="dashboard"] .reference-hero .hero-actions { width: 170px; }
  body[data-page="dashboard"] .hero-visual { height: 520px; }
  .hero-status-rail { position: relative; left: auto; right: auto; bottom: auto; grid-column: 1; width: 100%; grid-template-columns: repeat(2,1fr); }
  .hero-status-rail > span:nth-child(2) { border-right: 0; }
  .hero-status-rail > span:nth-child(-n+2) { border-bottom: 1px solid rgba(212,175,55,.14); }
  body[data-page="dashboard"] .visual-caption,.hero-scan-label { bottom: 25px; }
  body[data-page="dashboard"] .dashboard-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  body[data-page="dashboard"] .reference-hero { width: calc(100vw - 28px); max-width: calc(100vw - 28px); grid-template-rows: auto 400px auto; padding: 40px 16px 16px; }
  body[data-page="dashboard"] .reference-hero h1 { font-size: 39px; }
  body[data-page="dashboard"] .reference-hero p { font-size: 15px; }
  .hero-coordinates { justify-content: center; flex-wrap: wrap; font-size: 7px; }
  body[data-page="dashboard"] .hero-command-row { grid-template-columns: 1fr; justify-items: center; gap: 16px; }
  body[data-page="dashboard"] .reference-hero .progress-sigil { width: 116px; }
  .next-clearance { width: min(290px,100%); text-align: left; }
  body[data-page="dashboard"] .reference-hero .hero-actions { width: min(290px,100%); }
  body[data-page="dashboard"] .hero-visual { height: 400px; }
  body[data-page="dashboard"] .hero-visual::before { width: 285px; height: 285px; }
  .hero-target,.hero-scan-label { display: none; }
  .hero-status-rail { grid-template-columns: 1fr; }
  .hero-status-rail > span { min-height: 56px; border-right: 0; border-bottom: 1px solid rgba(212,175,55,.14); }
  .hero-status-rail > span:last-child { border-bottom: 0; }
  body[data-page="dashboard"] .metrics-grid,body[data-page="dashboard"] .dashboard-grid,body[data-page="dashboard"] .command-strip { width: calc(100vw - 28px); max-width: calc(100vw - 28px); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="dashboard"] .hero-visual::before,body[data-page="dashboard"] .hero-visual::after,.rail-live i { animation: none !important; }
}

/* ── FULLSCREEN COMMAND ───────────────────────────────────── */
.sidebar-foot { flex-direction: row; align-items: center; gap: 8px; }
.fullscreen-toggle {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(212,175,55,.31);
  background: linear-gradient(180deg, rgba(212,175,55,.07), rgba(5,5,6,.8));
  color: var(--gold);
  cursor: pointer;
  font: 700 11px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s,border-color .2s,background .2s,box-shadow .2s,transform .2s;
}
.fullscreen-icon { width: 15px; height: 15px; display: grid; place-items: center; }
.fullscreen-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: square; stroke-linejoin: miter; }
.fullscreen-collapse { display: none; }
.fullscreen-toggle:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(212,175,55,.11); box-shadow: 0 0 18px rgba(212,175,55,.08); transform: translateY(-1px); }
.fullscreen-toggle.active { color: var(--success); border-color: rgba(84,198,142,.42); background: rgba(84,198,142,.06); box-shadow: 0 0 16px rgba(84,198,142,.08); }
.fullscreen-toggle.active .fullscreen-expand { display: none; }
.fullscreen-toggle.active .fullscreen-collapse { display: grid; filter: drop-shadow(0 0 5px currentColor); }
.fullscreen-toggle:disabled { color: #5d554a; border-color: rgba(212,175,55,.12); cursor: not-allowed; opacity: .62; }

/* ── DELEGATE MANIFEST MODAL ──────────────────────────────── */
.manifest-open { overflow: hidden; }
.manifest-launch {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  padding: clamp(28px,4vw,48px);
  overflow: hidden;
  background:
    linear-gradient(145deg, rgba(212,175,55,.055), transparent 38%),
    linear-gradient(180deg, #121014, #0c0b0d);
}
.manifest-launch::after {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(212,175,55,.08);
  pointer-events: none;
}
.manifest-launch-head { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.manifest-ready { display: inline-flex; align-items: center; gap: 8px; color: var(--success); font-size: 9px; font-weight: 700; letter-spacing: .13em; }
.manifest-ready i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; animation: pulse 2s infinite; }
.manifest-launch-sigil { width: 118px; height: 118px; display: grid; place-items: center; align-self: center; margin: clamp(44px,6vh,72px) 0 54px; border: 1px solid var(--gold); background: #09090a; box-shadow: inset 0 0 0 9px #0e0d10, inset 0 0 0 10px rgba(212,175,55,.24), 0 0 42px rgba(212,175,55,.1); transform: rotate(45deg); }
.manifest-launch-sigil::before { content: ""; position: absolute; inset: 18px; border: 1px solid rgba(212,175,55,.22); }
.manifest-launch-sigil span { transform: rotate(-45deg); color: var(--gold-bright); font: 700 19px var(--display); letter-spacing: .04em; }
.manifest-launch-copy { position: relative; z-index: 1; text-align: center; }
.manifest-launch-copy > span { color: var(--bronze); font-size: 9px; font-weight: 700; letter-spacing: .18em; }
.manifest-launch-copy h2 { margin: 10px auto 9px; color: var(--gold-bright); font: 700 clamp(27px,3vw,38px)/1.1 var(--display); overflow-wrap: anywhere; }
.manifest-launch-copy p { max-width: 600px; margin: 0 auto; color: var(--muted); font-size: 14px; line-height: 1.55; }
.manifest-launch-stats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3,1fr); margin: auto 0 22px; border-block: 1px solid rgba(212,175,55,.17); }
.manifest-launch-stats span { min-width: 0; padding: 15px 10px; border-right: 1px solid rgba(212,175,55,.14); text-align: center; }
.manifest-launch-stats span:last-child { border-right: 0; }
.manifest-launch-stats small { display: block; margin-bottom: 5px; color: var(--muted); font-size: 9px; letter-spacing: .12em; }
.manifest-launch-stats b { display: block; color: var(--gold-bright); font: 700 16px var(--display); overflow-wrap: anywhere; }
.manifest-open-button { position: relative; z-index: 1; width: min(360px,100%); align-self: center; }
.manifest-open-button i { margin-left: 8px; font-style: normal; }

.manifest-modal {
  position: fixed;
  inset: 0;
  z-index: 900;
  display: grid;
  place-items: center;
  padding: clamp(16px,3vw,34px);
  background: radial-gradient(circle at 50% 34%, rgba(212,175,55,.055), transparent 46%), rgba(0,0,0,.72);
  backdrop-filter: blur(18px) saturate(.76);
  -webkit-backdrop-filter: blur(18px) saturate(.76);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .26s ease, visibility .26s;
}
.manifest-modal::before { content: ""; position: absolute; inset: 16px; border: 1px solid rgba(212,175,55,.11); pointer-events: none; }
.manifest-modal.open { opacity: 1; visibility: visible; pointer-events: auto; }
.manifest-dialog {
  width: min(1040px,100%);
  max-height: calc(100dvh - clamp(32px,6vw,68px));
  min-height: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 0;
  overflow: hidden;
  border-color: rgba(246,226,122,.48);
  background:
    radial-gradient(circle at 86% 4%, rgba(246,226,122,.12), transparent 24%),
    linear-gradient(135deg, rgba(255,255,255,.045), transparent 34%, rgba(212,175,55,.025) 72%),
    rgba(10,9,12,.86);
  backdrop-filter: blur(30px) saturate(1.18);
  -webkit-backdrop-filter: blur(30px) saturate(1.18);
  box-shadow: 0 42px 130px rgba(0,0,0,.9), 0 0 78px rgba(212,175,55,.09), inset 0 1px rgba(255,248,210,.13), inset 0 -1px rgba(212,175,55,.13);
  transform: translateY(18px) scale(.965);
  transition: transform .32s var(--ease);
}
.manifest-modal.open .manifest-dialog { transform: none; }
.manifest-close { position: absolute; top: 18px; right: 20px; z-index: 3; width: 42px; height: 42px; display: grid; place-items: center; border: 1px solid rgba(212,175,55,.28); background: #08080a; color: var(--muted); cursor: pointer; font-size: 27px; line-height: 1; transition: color .2s,border-color .2s,background .2s,transform .2s; }
.manifest-close:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(212,175,55,.08); transform: rotate(3deg); }
.manifest-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 28px; padding: 30px 82px 24px 34px; border-bottom: 1px solid rgba(212,175,55,.2); background: linear-gradient(100deg, rgba(246,226,122,.075), rgba(255,255,255,.018) 42%, transparent 74%); }
.manifest-title-block { min-width: 0; }
.manifest-title-block h2 { margin: 9px 0 6px; color: var(--gold-bright); font: 700 clamp(25px,3.3vw,39px)/1.08 var(--display); overflow-wrap: anywhere; }
.manifest-title-block p { max-width: 670px; margin: 0; color: var(--muted); font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.manifest-dialog .manifest-count { flex: 0 0 auto; margin-top: 33px; padding: 9px 12px; border-color: rgba(212,175,55,.35); color: var(--gold-bright); font-size: 11px; }
.manifest-overview { display: grid; grid-template-columns: 1.25fr 1.35fr 1fr .8fr; border-bottom: 1px solid rgba(212,175,55,.18); background: rgba(4,4,6,.54); box-shadow: inset 0 1px rgba(255,255,255,.025); }
.manifest-overview > span { min-width: 0; padding: 14px 18px; border-right: 1px solid rgba(212,175,55,.14); }
.manifest-overview > span:last-child { border-right: 0; }
.manifest-overview small { display: block; margin-bottom: 5px; color: var(--bronze); font-size: 8px; font-weight: 700; letter-spacing: .14em; }
.manifest-overview strong { display: block; color: var(--ivory); font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.manifest-scroll-region { min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 0 34px 30px; background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(0,0,0,.1)); scrollbar-color: var(--bronze) #09090b; }
.manifest-dialog .member-row { min-height: 88px; }
.manifest-dialog .member-identity strong { white-space: normal; line-height: 1.3; overflow-wrap: anywhere; }
.manifest-dialog .member-identity small,.manifest-dialog .member-academic small { line-height: 1.35; overflow-wrap: anywhere; }
.manifest-dialog .desk-notes { margin-top: 18px; padding-top: 22px; }
.manifest-dialog .desk-notes textarea { min-height: 58px; font-size: 14px; line-height: 1.4; }
.manifest-dialog .desk-notes button { min-width: 120px; font-size: 11px; }
.manifest-dialog-actions { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 16px 24px 16px 34px; border-top: 1px solid rgba(212,175,55,.24); background: linear-gradient(90deg, rgba(212,175,55,.075), rgba(8,8,11,.82) 40%, rgba(8,8,11,.9)); box-shadow: 0 -18px 42px rgba(0,0,0,.3), inset 0 1px rgba(255,248,210,.045); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.manifest-clearance { min-width: 0; display: flex; align-items: center; gap: 12px; }
.manifest-clearance > i { flex: 0 0 auto; width: 9px; height: 9px; border: 1px solid var(--gold-bright); transform: rotate(45deg); background: rgba(212,175,55,.18); box-shadow: 0 0 14px rgba(212,175,55,.45); }
.manifest-clearance span { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.manifest-clearance small { color: var(--gold); font-size: 8px; font-weight: 700; letter-spacing: .17em; }
.manifest-clearance strong { color: var(--ivory); font-size: 12px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; }
.manifest-action-buttons { flex: 0 0 auto; display: flex; gap: 9px; }
.manifest-action-buttons .button { min-width: 118px; }
.manifest-confirm { min-width: 190px !important; box-shadow: 0 0 26px rgba(212,175,55,.16); }
.manifest-confirm i { margin-right: 7px; font-style: normal; }
.button.is-verified,.button.is-verified:hover { color: #cffff0; border: 1px solid rgba(84,198,142,.38); background: rgba(84,198,142,.1); clip-path: none; box-shadow: 0 0 22px rgba(84,198,142,.1); cursor: default; opacity: 1; }
.manifest-open .toast { z-index: 1250; }
.member-modal { z-index: 1100; }
.member-modal-card { max-height: calc(100dvh - 32px); overflow-y: auto; transform: translateY(14px) scale(.98); transition: transform .25s var(--ease); }
.member-modal.open .member-modal-card { transform: none; }

@media (max-width: 760px) {
  .manifest-launch { min-height: 500px; }
  .manifest-modal { padding: 8px; }
  .manifest-modal::before { display: none; }
  .manifest-dialog { width: 100%; max-height: calc(100dvh - 16px); }
  .manifest-dialog-head { padding: 23px 58px 19px 20px; }
  .manifest-dialog .manifest-count { margin-top: 14px; }
  .manifest-overview { grid-template-columns: 1fr 1fr; }
  .manifest-overview > span:nth-child(2) { border-right: 0; }
  .manifest-overview > span:nth-child(-n+2) { border-bottom: 1px solid rgba(212,175,55,.14); }
  .manifest-scroll-region { padding: 0 20px 22px; }
  .manifest-dialog .member-row { grid-template-columns: 31px minmax(0,1fr) auto; gap: 10px; padding: 14px 0; }
  .manifest-dialog .member-academic { grid-column: 2; }
  .manifest-dialog .attendance-toggle { grid-column: 2; width: 116px; }
  .manifest-dialog .member-row .more-button { grid-column: 3; grid-row: 1 / 4; }
  .manifest-dialog-actions { padding: 13px 20px; gap: 14px; }
  .manifest-clearance strong { font-size: 10px; }
  .manifest-action-buttons .ghost { display: none; }
}

@media (max-width: 620px) {
  .fullscreen-toggle { width: 38px; padding: 0; }
  .fullscreen-label { display: none; }
  .manifest-launch { min-height: 440px; padding: 25px 20px; }
  .manifest-ready { display: none; }
  .manifest-launch-sigil { width: 88px; height: 88px; margin: 38px 0 42px; }
  .manifest-launch-sigil span { font-size: 15px; }
  .manifest-launch-stats span { padding-inline: 5px; }
  .manifest-launch-stats small { font-size: 7px; }
  .manifest-launch-stats b { font-size: 13px; }
  .manifest-dialog { padding: 0; }
  .manifest-title-block h2 { font-size: 22px; }
  .manifest-title-block p { font-size: 12px; }
  .manifest-dialog-head { display: block; }
  .manifest-dialog .manifest-count { display: inline-flex; }
  .manifest-overview > span { padding: 11px 13px; }
  .manifest-overview strong { font-size: 10px; }
  .manifest-scroll-region { padding-inline: 14px; }
  .manifest-dialog .member-no { display: none; }
  .manifest-dialog .member-row { grid-template-columns: minmax(0,1fr) auto; }
  .manifest-dialog .member-academic,.manifest-dialog .attendance-toggle { grid-column: 1; }
  .manifest-dialog .member-row .more-button { grid-column: 2; }
  .manifest-dialog .desk-notes { grid-template-columns: 1fr; }
  .manifest-dialog .desk-notes label { grid-column: 1; }
  .manifest-dialog .desk-notes button { min-height: 42px; }
  .manifest-dialog-actions { align-items: stretch; flex-direction: column; padding: 12px 14px 14px; }
  .manifest-clearance { min-height: 34px; }
  .manifest-confirm { width: 100%; min-width: 0 !important; }
}

@media (prefers-reduced-motion: reduce) {
  .manifest-ready i { animation: none; }
  .manifest-dialog,.member-modal-card { transform: none; }
}

/* ── THEME COMMAND + SUNLIT OLYMPUS ───────────────────────── */
.theme-toggle {
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid rgba(212,175,55,.31);
  background: linear-gradient(180deg, rgba(212,175,55,.07), rgba(5,5,6,.8));
  color: var(--gold);
  cursor: pointer;
  font: 700 11px var(--sans);
  letter-spacing: .08em;
  text-transform: uppercase;
  transition: color .2s,border-color .2s,background .25s,box-shadow .2s,transform .2s;
}
.theme-toggle:hover { color: var(--gold-bright); border-color: var(--gold); background: rgba(212,175,55,.11); box-shadow: 0 0 18px rgba(212,175,55,.08); transform: translateY(-1px); }
.theme-icon { width: 15px; height: 15px; display: grid; place-items: center; }
.theme-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.theme-moon { display: none; }
.theme-toggle.active .theme-sun { display: none; }
.theme-toggle.active .theme-moon { display: grid; }
.manifest-title-block .eyebrow { color: var(--gold-bright); font-size: 14px; line-height: 1.35; letter-spacing: .16em; text-shadow: 0 0 16px rgba(212,175,55,.18); }

html[data-theme="light"] {
  color-scheme: light;
  --ink: #f4eedf;
  --ink-soft: #eee4d0;
  --surface: rgba(255,252,245,.9);
  --surface-strong: #fffaf0;
  --surface-hover: #f0e5cf;
  --gold: #96650c;
  --gold-bright: #b27a12;
  --gold-pale: #4b330d;
  --bronze: #74531c;
  --ivory: #211b13;
  --muted: #6d6254;
  --line: rgba(118,82,18,.24);
  --line-bright: rgba(145,96,8,.58);
  --success: #1f784b;
  --danger: #ad4137;
}
html[data-theme="light"] body {
  background:
    radial-gradient(900px 520px at 84% -8%, rgba(187,132,28,.2), transparent 68%),
    linear-gradient(rgba(132,91,17,.065) 1px, transparent 1px) 0 0/44px 44px,
    linear-gradient(90deg, rgba(132,91,17,.065) 1px, transparent 1px) 0 0/44px 44px,
    #f4eedf;
  color: var(--ivory);
}
html[data-theme="light"] body::before { opacity: .035; mix-blend-mode: multiply; }
html[data-theme="light"] ::selection { background: #b27a12; color: #fffaf0; }
html[data-theme="light"] ::-webkit-scrollbar-track { background: #eee4d0; }
html[data-theme="light"] ::-webkit-scrollbar-thumb { background: #b99a60; border-color: #eee4d0; }

html[data-theme="light"] .sidebar { background: rgba(255,252,245,.9); box-shadow: 0 10px 38px rgba(75,50,12,.11); }
html[data-theme="light"] .nav-link { color: #685d4d; }
html[data-theme="light"] .nav-link:hover,html[data-theme="light"] .nav-link.active { color: #7d5208; }
html[data-theme="light"] .signal,html[data-theme="light"] .fullscreen-toggle,html[data-theme="light"] .theme-toggle { background: rgba(255,252,245,.72); }
html[data-theme="light"] .theme-toggle.active { color: #70490a; border-color: rgba(150,101,12,.55); background: rgba(178,122,18,.1); box-shadow: inset 0 0 18px rgba(178,122,18,.06); }
html[data-theme="light"] .fullscreen-toggle.active { color: #17663e; background: rgba(31,120,75,.08); }
html[data-theme="light"] .button.ghost { color: #79510a; background: rgba(255,252,245,.64); }
html[data-theme="light"] .button.ghost:hover { color: #553703; background: rgba(178,122,18,.11); }
html[data-theme="light"] kbd { background: #eee3ce; color: #685b49; }

html[data-theme="light"] .panel,
html[data-theme="light"] .team-card,
html[data-theme="light"] .reports-kpis article,
html[data-theme="light"] .command-strip,
html[data-theme="light"] .desk-toolbar,
html[data-theme="light"] .intro-stats,
html[data-theme="light"] .metric-card {
  background: linear-gradient(180deg, rgba(255,253,248,.94), rgba(245,237,222,.9));
  box-shadow: 0 18px 45px rgba(74,49,11,.07), inset 0 1px rgba(255,255,255,.9);
}
html[data-theme="light"] .queue-team strong,
html[data-theme="light"] .member-identity strong,
html[data-theme="light"] .member-academic span,
html[data-theme="light"] .roster-report td:first-child { color: #241b10; }
html[data-theme="light"] .queue-team small,
html[data-theme="light"] .member-identity small,
html[data-theme="light"] .member-academic small,
html[data-theme="light"] .institution-row span,
html[data-theme="light"] .roster-report td { color: #6a5d4d; }
html[data-theme="light"] .command-card { background: rgba(255,252,245,.82); }
html[data-theme="light"] .command-card:hover,html[data-theme="light"] .queue-item:hover { background: rgba(178,122,18,.075); }
html[data-theme="light"] .status-pill:not(.checked) { color: #73521b; }
html[data-theme="light"] .pulse-chart { background: repeating-linear-gradient(to top,transparent 0 51px,rgba(121,81,11,.1) 51px 52px); }

html[data-theme="light"] .page-intro {
  background: linear-gradient(90deg, rgba(255,253,247,.98) 0 50%, rgba(249,240,221,.72) 73%, rgba(255,252,244,.94));
  box-shadow: 0 24px 65px rgba(76,49,7,.08), inset 0 1px rgba(255,255,255,.92);
}
html[data-theme="light"] .page-intro::before { opacity: .58; filter: sepia(.12) saturate(.92) contrast(1.1) drop-shadow(0 14px 20px rgba(72,47,10,.2)); }
html[data-theme="light"] body[data-page="checkin"] .page-intro {
  background: linear-gradient(90deg, rgba(255,253,247,.99) 0 43%, rgba(245,229,196,.68) 73%, rgba(255,252,245,.94)), radial-gradient(circle at 72% 46%, rgba(178,122,18,.18), transparent 34%);
  border-color: rgba(145,96,8,.36);
  box-shadow: inset 0 0 70px rgba(178,122,18,.035), 0 20px 55px rgba(70,44,7,.08);
}

html[data-theme="light"] body[data-page="dashboard"] .reference-hero {
  background:
    linear-gradient(90deg, rgba(255,253,247,.99) 0 38%, rgba(249,241,224,.76) 60%, rgba(247,232,201,.3)),
    radial-gradient(circle at 72% 38%, rgba(178,122,18,.18), transparent 31%);
  box-shadow: 0 28px 75px rgba(72,47,9,.1), inset 0 1px rgba(255,255,255,.94);
}
html[data-theme="light"] body[data-page="dashboard"] .hero-visual img { filter: saturate(.94) contrast(1.1) drop-shadow(0 25px 38px rgba(69,44,8,.27)) drop-shadow(0 0 18px rgba(178,122,18,.08)); }
html[data-theme="light"] .visual-caption { background: rgba(255,251,242,.76); }
html[data-theme="light"] .hero-status-rail { background: rgba(255,252,245,.82); box-shadow: 0 14px 36px rgba(69,44,8,.08), inset 0 1px rgba(255,255,255,.75); }
html[data-theme="light"] body[data-page="dashboard"] .metric-card { background: linear-gradient(145deg,rgba(255,253,248,.98),rgba(240,229,207,.9)); }
html[data-theme="light"] body[data-page="dashboard"] .dashboard-grid .panel,
html[data-theme="light"] body[data-page="dashboard"] .command-strip { box-shadow: 0 20px 48px rgba(69,44,8,.08); }

html[data-theme="light"] .team-select-wrap,
html[data-theme="light"] .step-button,
html[data-theme="light"] .inline-search,
html[data-theme="light"] .filter-bar { background: rgba(255,252,245,.9); }
html[data-theme="light"] .team-select-wrap option,
html[data-theme="light"] .reset-select-shell select option { background: #fffaf0; color: #211b13; }
html[data-theme="light"] .team-profile {
  background: linear-gradient(180deg, rgba(255,253,248,.93), rgba(241,232,214,.88)), url("assets/zeus-guardian.png") right -30px bottom -26px/250px auto no-repeat;
}
html[data-theme="light"] .manifest-launch { background: linear-gradient(145deg,rgba(178,122,18,.07),transparent 40%),linear-gradient(180deg,rgba(255,253,248,.96),rgba(240,230,210,.91)); }
html[data-theme="light"] .team-badge-large { background: rgba(255,252,245,.76); box-shadow: inset 0 0 0 7px #f6eddb,inset 0 0 0 8px rgba(150,101,12,.28),0 0 28px rgba(150,101,12,.09); }
html[data-theme="light"] .manifest-launch-sigil { background: rgba(255,252,245,.84); box-shadow: inset 0 0 0 9px #f5ecd9,inset 0 0 0 10px rgba(150,101,12,.24),0 0 38px rgba(150,101,12,.1); }
html[data-theme="light"] .desk-notes textarea,
html[data-theme="light"] .member-modal-card input { color: #211b13; background: rgba(255,252,245,.86); }
html[data-theme="light"] .team-card:hover { background: #fffaf0; box-shadow: 0 18px 45px rgba(70,45,8,.1); }
html[data-theme="light"] .roster-report th { color: #704b0b; background: #eee3cd; }
html[data-theme="light"] .report-donut { background: conic-gradient(var(--gold-bright) calc(var(--progress) * 1%), #ded2bc 0); }
html[data-theme="light"] .report-donut::before { background: #fffaf0; }

html[data-theme="light"] .search-dialog,
html[data-theme="light"] .member-modal,
html[data-theme="light"] .secure-reset-modal { background: rgba(61,43,16,.34); }
html[data-theme="light"] .search-modal,
html[data-theme="light"] .member-modal-card,
html[data-theme="light"] .secure-reset-card { background: rgba(255,252,245,.96); box-shadow: 0 34px 100px rgba(55,36,8,.28),inset 0 1px rgba(255,255,255,.92); }
html[data-theme="light"] .reset-modal-close,
html[data-theme="light"] .secure-reset-card .scope-option,
html[data-theme="light"] .reset-select-shell,
html[data-theme="light"] .password-field { background: rgba(255,252,245,.9); color: #211b13; }
html[data-theme="light"] .secure-reset-card .scope-option:has(input:checked) { background: linear-gradient(145deg,rgba(178,122,18,.13),rgba(255,252,245,.94)); }
html[data-theme="light"] .password-field input,
html[data-theme="light"] .reset-select-shell select,
html[data-theme="light"] .search-field input { color: #211b13; }

html[data-theme="light"] .manifest-modal { background: radial-gradient(circle at 50% 34%,rgba(178,122,18,.08),transparent 48%),rgba(70,50,18,.28); }
html[data-theme="light"] .manifest-dialog {
  border-color: rgba(145,96,8,.48);
  background: radial-gradient(circle at 86% 4%,rgba(178,122,18,.13),transparent 25%),linear-gradient(135deg,rgba(255,255,255,.66),transparent 36%,rgba(178,122,18,.035) 72%),rgba(255,252,245,.87);
  box-shadow: 0 42px 120px rgba(57,37,8,.28),0 0 72px rgba(150,101,12,.08),inset 0 1px rgba(255,255,255,.96),inset 0 -1px rgba(150,101,12,.13);
}
html[data-theme="light"] .manifest-dialog-head { background: linear-gradient(100deg,rgba(178,122,18,.1),rgba(255,255,255,.35) 42%,transparent 74%); }
html[data-theme="light"] .manifest-overview { background: rgba(241,230,208,.66); box-shadow: inset 0 1px rgba(255,255,255,.72); }
html[data-theme="light"] .manifest-scroll-region { background: linear-gradient(180deg,rgba(255,255,255,.22),rgba(125,82,12,.025)); scrollbar-color: #aa8645 #eee4d0; }
html[data-theme="light"] .manifest-close { color: #5f5344; background: rgba(255,252,245,.82); }
html[data-theme="light"] .manifest-dialog-actions { background: linear-gradient(90deg,rgba(178,122,18,.1),rgba(255,252,245,.86) 42%,rgba(248,239,221,.94)); box-shadow: 0 -18px 42px rgba(71,46,8,.08),inset 0 1px rgba(255,255,255,.82); }
html[data-theme="light"] .member-row:hover { background: linear-gradient(90deg,rgba(178,122,18,.085),transparent 72%); }

html[data-theme="light"] .preloader { color: #30230f; background: radial-gradient(circle at 50% 44%,rgba(178,122,18,.2),transparent 34%),#eee3cd; }
html[data-theme="light"] .preloader::before { opacity: .28; }
html[data-theme="light"] .preloader-grid { opacity: .3; mix-blend-mode: multiply; }
html[data-theme="light"] .glitch-logo { filter: drop-shadow(0 14px 28px rgba(76,49,8,.18)); }
html[data-theme="light"] .loader-kicker,html[data-theme="light"] .preloader-core > small { color: #73521b; }

@media (max-width: 760px) {
  .manifest-title-block .eyebrow { font-size: 12px; }
}
@media (max-width: 620px) {
  .theme-toggle { width: 38px; padding: 0; }
  .theme-label { display: none; }
  .manifest-title-block .eyebrow { font-size: 12px; letter-spacing: .13em; }
}
