/* Admin Dashboard — operational control-room story */

body[data-page="admin-dashboard"] {
  --admin-ink: #111711;
  --admin-paper: #f3f2ec;
  --admin-panel: #fbfaf5;
  --admin-blue: #315fee;
  --admin-blue-dark: #173b9d;
  --admin-mint: #a8f7ca;
  --admin-coral: #ff765f;
  --admin-line: rgba(17, 23, 17, 0.17);
  overflow-x: clip;
  color: var(--admin-ink);
  background: var(--admin-paper);
}

html:has(body[data-page="admin-dashboard"]) { overflow-x: clip; }

body[data-page="admin-dashboard"] .admin-story {
  width: 100%;
  max-width: none;
  overflow: clip;
  background:
    linear-gradient(rgba(17, 23, 17, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17, 23, 17, 0.025) 1px, transparent 1px),
    var(--admin-paper);
  background-size: 44px 44px;
}

body[data-page="admin-dashboard"] .admin-story :is(h1, h2, h3, p, figure) { margin-top: 0; }

body[data-page="admin-dashboard"] .admin-story .kicker {
  margin: 0 0 24px;
  color: var(--admin-blue-dark);
  font-family: var(--body-font);
  font-size: .76rem;
  font-stretch: 78%;
  font-weight: 670;
  letter-spacing: .13em;
  text-transform: uppercase;
}

body[data-page="admin-dashboard"] .admin-hero,
body[data-page="admin-dashboard"] .admin-chapter {
  --admin-progress: 0;
  --admin-enter: 0;
  --admin-exit: 0;
  position: relative;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
}

/* Hero — an operational radar resolves into a command center. */
body[data-page="admin-dashboard"] .admin-hero {
  min-height: 132svh;
  padding: clamp(132px, 16vh, 184px) var(--gutter) 110px;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .72fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(30px, 6vw, 110px);
  isolation: isolate;
}

body[data-page="admin-dashboard"] .admin-hero::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 0 auto auto;
  width: 45vw;
  height: 72%;
  background: var(--admin-blue);
  clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 84%);
  transform: translate3d(calc((1 - var(--admin-progress)) * 7vw), calc(var(--admin-progress) * -3vh), 0);
}

body[data-page="admin-dashboard"] .admin-scene-progress {
  position: absolute;
  z-index: 3;
  top: 96px;
  right: var(--gutter);
  left: var(--gutter);
  height: 1px;
  background: var(--admin-line);
}

body[data-page="admin-dashboard"] .admin-scene-progress span {
  display: block;
  width: calc(var(--admin-progress) * 100%);
  height: 3px;
  transform: translateY(-1px);
  background: var(--admin-blue);
}

body[data-page="admin-dashboard"] .admin-hero .case-kicker {
  grid-column: 1 / -1;
  display: flex;
  gap: 8px;
  margin: 0 0 clamp(42px, 8vh, 90px);
}

body[data-page="admin-dashboard"] .admin-hero .case-kicker span {
  padding: 7px 10px;
  color: var(--admin-ink);
  border: 1px solid var(--admin-line);
  background: rgba(251, 250, 245, .76);
  backdrop-filter: blur(10px);
  font-size: .7rem;
  font-weight: 630;
  letter-spacing: .06em;
  text-transform: uppercase;
}

body[data-page="admin-dashboard"] .admin-hero-copy { position: relative; z-index: 2; }

body[data-page="admin-dashboard"] .admin-eyebrow {
  max-width: 33ch;
  margin-bottom: 18px;
  color: var(--admin-blue-dark);
  font-size: clamp(.8rem, 1vw, 1rem);
  font-stretch: 78%;
  font-weight: 650;
  letter-spacing: .11em;
  text-transform: uppercase;
}

body[data-page="admin-dashboard"] .admin-hero .case-title {
  margin: 0;
  color: var(--admin-ink);
  font-family: var(--title-font);
  font-size: clamp(5.8rem, 9.5vw, 11.4rem);
  font-stretch: 80%;
  font-weight: 570;
  letter-spacing: -.075em;
  line-height: .75;
  text-transform: none;
}

body[data-page="admin-dashboard"] .admin-hero .case-title span { display: block; }

body[data-page="admin-dashboard"] .admin-hero .case-title span:last-child {
  margin: 0;
  color: var(--admin-blue-dark);
  font-family: inherit;
  font-stretch: 105%;
  font-style: normal;
  transform: translate3d(calc(var(--admin-progress) * 3vw), 0, 0);
}

body[data-page="admin-dashboard"] .admin-hero .case-thesis {
  max-width: 18ch;
  margin: clamp(34px, 6vh, 66px) 0 0 clamp(40px, 9vw, 150px);
  color: var(--admin-ink);
  font-family: var(--title-font);
  font-size: clamp(2.1rem, 3.7vw, 4.3rem);
  font-stretch: 102%;
  font-weight: 430;
  letter-spacing: -.045em;
  line-height: .95;
}

body[data-page="admin-dashboard"] .admin-hero-console {
  align-self: center;
  position: relative;
  z-index: 2;
  width: min(100%, 610px);
  min-height: 570px;
  margin-left: auto;
  color: #f7f9f2;
  border: 1px solid rgba(255,255,255,.46);
  background: #111912;
  box-shadow: 22px 22px 0 rgba(17, 23, 17, .13);
  transform: perspective(1000px) rotateY(calc((1 - var(--admin-progress)) * -5deg)) translate3d(0, calc((1 - var(--admin-enter)) * 42px), 0);
}

body[data-page="admin-dashboard"] .console-top,
body[data-page="admin-dashboard"] .console-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(255,255,255,.15);
  font-size: .7rem;
  font-stretch: 78%;
  letter-spacing: .1em;
}

body[data-page="admin-dashboard"] .console-status { border: 0; border-top: 1px solid rgba(255,255,255,.15); }
body[data-page="admin-dashboard"] .console-status i { display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; background: var(--admin-mint); box-shadow: 0 0 16px var(--admin-mint); }

body[data-page="admin-dashboard"] .console-radar { position: relative; height: 478px; overflow: hidden; }
body[data-page="admin-dashboard"] .console-radar::before,
body[data-page="admin-dashboard"] .console-radar::after { content: ""; position: absolute; background: rgba(255,255,255,.11); }
body[data-page="admin-dashboard"] .console-radar::before { top: 50%; left: 0; width: 100%; height: 1px; }
body[data-page="admin-dashboard"] .console-radar::after { top: 0; left: 50%; width: 1px; height: 100%; }

body[data-page="admin-dashboard"] .radar-ring {
  position: absolute; left: 50%; top: 50%; border: 1px solid rgba(168,247,202,.34); border-radius: 50%; transform: translate(-50%,-50%);
}
body[data-page="admin-dashboard"] .ring-a { width: 54%; aspect-ratio: 1; }
body[data-page="admin-dashboard"] .ring-b { width: 88%; aspect-ratio: 1; }
body[data-page="admin-dashboard"] .radar-sweep { position: absolute; inset: 3%; border-radius: 50%; background: conic-gradient(from calc(var(--admin-progress) * 260deg), rgba(168,247,202,.26), transparent 20%, transparent); }
body[data-page="admin-dashboard"] .radar-core { position: absolute; top: 50%; left: 50%; width: 17px; height: 17px; border: 3px solid var(--admin-mint); border-radius: 50%; background: #111912; box-shadow: 0 0 0 calc(var(--admin-progress) * 16px) rgba(168,247,202,.1), 0 0 26px var(--admin-mint); transform: translate(-50%,-50%); }

body[data-page="admin-dashboard"] .radar-node {
  position: absolute;
  padding: 7px 9px;
  color: var(--admin-mint);
  border: 1px solid currentColor;
  background: #111912;
  font-size: .68rem;
  font-stretch: 80%;
  font-weight: 620;
  letter-spacing: .08em;
  text-transform: uppercase;
  transform: translate3d(calc((1 - var(--admin-progress)) * var(--scatter-x)), calc((1 - var(--admin-progress)) * var(--scatter-y)), 0);
}
body[data-page="admin-dashboard"] .node-hospital { --scatter-x: -60px; --scatter-y: -30px; top: 18%; left: 20%; }
body[data-page="admin-dashboard"] .node-doctor { --scatter-x: 80px; --scatter-y: -20px; top: 25%; right: 15%; }
body[data-page="admin-dashboard"] .node-patient { --scatter-x: -80px; --scatter-y: 60px; bottom: 24%; left: 17%; }
body[data-page="admin-dashboard"] .node-team { --scatter-x: 65px; --scatter-y: 45px; right: 20%; bottom: 18%; }

body[data-page="admin-dashboard"] .admin-hero-summary {
  grid-column: 1 / -1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 40px;
  margin-top: clamp(80px, 14vh, 150px);
  padding-top: 28px;
  border-top: 1px solid var(--admin-line);
}
body[data-page="admin-dashboard"] .admin-hero-summary p { max-width: 58ch; margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.55rem); line-height: 1.4; }
body[data-page="admin-dashboard"] .admin-hero-summary .primary-link { flex: 0 0 auto; }
body[data-page="admin-dashboard"] .admin-scroll-cue { position: absolute; right: var(--gutter); bottom: 35px; margin: 0; font-size: .7rem; font-weight: 640; letter-spacing: .11em; text-transform: uppercase; }
body[data-page="admin-dashboard"] .admin-scroll-cue span { display: inline-block; width: 34px; height: 1px; margin-right: 9px; vertical-align: middle; background: currentColor; transform-origin: left; transform: scaleX(calc(.35 + var(--admin-progress) * .65)); }

/* Shared chapter layout */
body[data-page="admin-dashboard"] .admin-chapter {
  min-height: 235svh;
  padding: 0 var(--gutter);
  border-top: 1px solid var(--admin-line);
}

body[data-page="admin-dashboard"] .admin-chapter-copy {
  position: sticky;
  z-index: 5;
  top: 88px;
  width: min(45%, 660px);
  min-height: calc(100svh - 88px);
  padding: clamp(56px, 8vh, 90px) clamp(30px, 5vw, 80px) 50px 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
}
body[data-page="admin-dashboard"] .admin-chapter-copy h2,
body[data-page="admin-dashboard"] .admin-epilogue h2 {
  max-width: 12ch;
  margin-bottom: 30px;
  color: var(--admin-ink);
  font-family: var(--title-font);
  font-size: clamp(3.35rem, 5vw, 6.3rem);
  font-stretch: 92%;
  font-weight: 510;
  letter-spacing: -.065em;
  line-height: .9;
}
body[data-page="admin-dashboard"] .admin-chapter-copy > p:last-child { max-width: 48ch; margin: 0; font-size: clamp(1.05rem, 1.45vw, 1.35rem); line-height: 1.48; }

/* Fragmentation */
body[data-page="admin-dashboard"] .admin-fragmentation { color: #f5f5ee; background: #101510; }
body[data-page="admin-dashboard"] .admin-fragmentation .admin-chapter-copy h2 { color: #f5f5ee; }
body[data-page="admin-dashboard"] .admin-fragmentation .kicker { color: var(--admin-mint); }
body[data-page="admin-dashboard"] .admin-fragmentation .admin-chapter-copy > p:last-child { color: rgba(245,245,238,.72); }

body[data-page="admin-dashboard"] .fragment-stage {
  position: sticky;
  top: 88px;
  left: 48%;
  width: 52%;
  height: calc(100svh - 88px);
  margin: calc(-100svh + 88px) 0 0 48%;
  overflow: hidden;
}

body[data-page="admin-dashboard"] .fragment-stage::before { content: ""; position: absolute; inset: 9% 4%; border: 1px solid rgba(255,255,255,.13); background: radial-gradient(circle at 50% 50%, rgba(49,95,238,.2), transparent 42%); }
body[data-page="admin-dashboard"] .fragment-route { position: absolute; top: 50%; left: 8%; right: 8%; height: 1px; background: rgba(255,255,255,.13); }
body[data-page="admin-dashboard"] .fragment-route span { display: block; width: calc(var(--admin-progress) * 100%); height: 2px; background: var(--admin-coral); box-shadow: 0 0 16px var(--admin-coral); }

body[data-page="admin-dashboard"] .tool-card {
  --tool-x: 0px; --tool-y: 0px;
  position: absolute;
  z-index: 2;
  width: clamp(145px, 14vw, 205px);
  min-height: 122px;
  padding: 16px;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 1px solid rgba(255,255,255,.26);
  background: rgba(23,31,24,.96);
  box-sizing: border-box;
  transform: translate3d(calc((1 - var(--admin-enter)) * var(--tool-x)), calc((1 - var(--admin-enter)) * var(--tool-y)), 0) rotate(calc((1 - var(--admin-progress)) * var(--tool-r)));
  opacity: calc(.3 + var(--admin-enter) * .7);
}
body[data-page="admin-dashboard"] .tool-card small { color: var(--admin-mint); font-size: .64rem; }
body[data-page="admin-dashboard"] .tool-card b { grid-column: 1 / -1; margin-top: 18px; font-size: 1.1rem; }
body[data-page="admin-dashboard"] .tool-card span { grid-column: 1 / -1; color: rgba(255,255,255,.58); font-size: .78rem; }
body[data-page="admin-dashboard"] .tool-card i { position: absolute; top: 12px; right: 12px; color: var(--admin-coral); font-size: .55rem; font-style: normal; font-weight: 700; letter-spacing: .08em; }
body[data-page="admin-dashboard"] .tool-excel { --tool-x: -70px; --tool-y: -40px; --tool-r: -5deg; top: 12%; left: 6%; }
body[data-page="admin-dashboard"] .tool-salesforce { --tool-x: 80px; --tool-y: -50px; --tool-r: 7deg; top: 10%; right: 5%; }
body[data-page="admin-dashboard"] .tool-database { --tool-x: 100px; --tool-y: 10px; --tool-r: -4deg; top: 40%; right: 1%; }
body[data-page="admin-dashboard"] .tool-calendar { --tool-x: -80px; --tool-y: 50px; --tool-r: 6deg; bottom: 9%; left: 8%; }
body[data-page="admin-dashboard"] .tool-email { --tool-x: 65px; --tool-y: 60px; --tool-r: -7deg; right: 8%; bottom: 8%; }

body[data-page="admin-dashboard"] .assignment-ticket {
  position: absolute;
  z-index: 3;
  top: 50%; left: 43%;
  width: 185px;
  padding: 18px;
  color: var(--admin-ink);
  background: var(--admin-mint);
  box-shadow: 0 0 0 calc(var(--admin-progress) * 14px) rgba(168,247,202,.08);
  transform: translate(-50%,-50%) scale(calc(.83 + var(--admin-enter) * .17));
}
body[data-page="admin-dashboard"] .assignment-ticket :is(small,strong,span) { display: block; }
body[data-page="admin-dashboard"] .assignment-ticket small { font-size: .58rem; font-weight: 700; letter-spacing: .08em; }
body[data-page="admin-dashboard"] .assignment-ticket strong { margin: 12px 0 4px; font-size: 2.3rem; }
body[data-page="admin-dashboard"] .assignment-ticket span { font-size: .75rem; }
body[data-page="admin-dashboard"] .ticket-pulse { position: absolute; inset: -12px; border: 1px solid var(--admin-mint); opacity: calc(1 - var(--admin-progress)); transform: scale(calc(1 + var(--admin-progress) * .5)); }
body[data-page="admin-dashboard"] .fragment-counter { position: absolute; left: 6%; bottom: 30%; display: flex; align-items: end; gap: 12px; }
body[data-page="admin-dashboard"] .fragment-counter strong { color: var(--admin-coral); font-size: clamp(4rem, 8vw, 8rem); line-height: .68; }
body[data-page="admin-dashboard"] .fragment-counter span { font-size: .7rem; line-height: 1.2; letter-spacing: .08em; text-transform: uppercase; }
body[data-page="admin-dashboard"] .admin-evidence-strip { position: absolute; z-index: 6; right: var(--gutter); bottom: 42px; left: calc(48% + 10px); display: grid; grid-template-columns: repeat(3,1fr); border: 1px solid rgba(255,255,255,.18); background: rgba(16,21,16,.85); backdrop-filter: blur(12px); }
body[data-page="admin-dashboard"] .admin-evidence-strip span { padding: 14px; color: rgba(255,255,255,.58); border-right: 1px solid rgba(255,255,255,.15); font-size: .7rem; text-transform: uppercase; }
body[data-page="admin-dashboard"] .admin-evidence-strip span:last-child { border: 0; }
body[data-page="admin-dashboard"] .admin-evidence-strip b { display: block; margin-bottom: 5px; color: var(--admin-mint); font-size: 1rem; }

/* Investigation trace */
body[data-page="admin-dashboard"] .admin-investigation { background: #e7e9e4; }
body[data-page="admin-dashboard"] .trace-stage { position: sticky; top: 88px; left: 48%; width: 52%; height: calc(100svh - 88px); margin: calc(-100svh + 88px) 0 0 48%; display: grid; grid-template-columns: minmax(180px,.62fr) 1.38fr; align-items: center; }
body[data-page="admin-dashboard"] .trace-list { position: relative; z-index: 3; margin: 0; padding: 0; list-style: none; }
body[data-page="admin-dashboard"] .trace-list li { padding: 14px 12px; display: grid; grid-template-columns: 30px 1fr; border-top: 1px solid var(--admin-line); opacity: calc(.28 + var(--step-active, 0) * .72); transform: translateX(calc((1 - var(--step-active, 0)) * 20px)); }
body[data-page="admin-dashboard"] .trace-list li:last-child { border-bottom: 1px solid var(--admin-line); }
body[data-page="admin-dashboard"] .trace-list span { grid-row: 1 / 3; color: var(--admin-blue); font-size: .65rem; }
body[data-page="admin-dashboard"] .trace-list b { font-size: .9rem; }
body[data-page="admin-dashboard"] .trace-list small { margin-top: 4px; color: rgba(17,23,17,.54); font-size: .68rem; }
body[data-page="admin-dashboard"] .trace-map { position: relative; height: min(68vh, 650px); }
body[data-page="admin-dashboard"] .trace-map svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
body[data-page="admin-dashboard"] .trace-path { fill: none; stroke-width: 2; }
body[data-page="admin-dashboard"] .trace-path-muted { stroke: rgba(17,23,17,.13); stroke-dasharray: 5 8; }
body[data-page="admin-dashboard"] .trace-path-live { stroke: var(--admin-blue); stroke-width: 4; stroke-dasharray: 1; stroke-dashoffset: calc(1 - var(--admin-progress)); }
body[data-page="admin-dashboard"] .map-object { position: absolute; z-index: 2; display: grid; justify-items: center; gap: 5px; font-size: .66rem; transform: scale(calc(.78 + var(--object-active, 0) * .22)); opacity: calc(.35 + var(--object-active, 0) * .65); }
body[data-page="admin-dashboard"] .map-object i { display: grid; place-items: center; width: 42px; height: 42px; color: white; border-radius: 50%; background: var(--admin-blue); box-shadow: 0 0 0 calc(var(--object-active, 0) * 8px) rgba(49,95,238,.14); font-style: normal; }
body[data-page="admin-dashboard"] .object-patient { top: 45%; left: 2%; }
body[data-page="admin-dashboard"] .object-hospital { top: 14%; left: 24%; }
body[data-page="admin-dashboard"] .object-doctor { top: 36%; left: 47%; }
body[data-page="admin-dashboard"] .object-team { right: 10%; bottom: 16%; }
body[data-page="admin-dashboard"] .object-status { top: 44%; right: -2%; }
body[data-page="admin-dashboard"] .map-cursor { position: absolute; z-index: 4; top: var(--map-top, 48%); left: var(--map-left, 3%); width: 14px; height: 14px; border: 3px solid white; border-radius: 50%; background: var(--admin-coral); box-shadow: 0 0 0 2px var(--admin-coral), 0 0 18px var(--admin-coral); }
body[data-page="admin-dashboard"] .admin-design-note { position: absolute; z-index: 6; right: var(--gutter); bottom: 45px; width: min(46%, 650px); margin: 0; padding: 20px 0 0; color: var(--admin-blue-dark); border-top: 2px solid var(--admin-blue); font-family: var(--title-font); font-size: clamp(1.4rem,2.3vw,2.7rem); font-stretch: 104%; font-weight: 460; line-height: 1.05; }

/* System assembly */
body[data-page="admin-dashboard"] .admin-system { color: #eff1eb; background: var(--admin-blue-dark); }
body[data-page="admin-dashboard"] .admin-system .admin-chapter-copy h2 { color: white; }
body[data-page="admin-dashboard"] .admin-system .kicker { color: var(--admin-mint); }
body[data-page="admin-dashboard"] .admin-system .admin-chapter-copy > p:last-child { color: rgba(255,255,255,.68); }
body[data-page="admin-dashboard"] .system-stage { position: sticky; top: 88px; left: 46%; width: 54%; height: calc(100svh - 88px); margin: calc(-100svh + 88px) 0 0 46%; display: grid; align-content: center; gap: 20px; }
body[data-page="admin-dashboard"] .system-shell { position: relative; width: 100%; min-height: min(64vh,650px); display: grid; grid-template-columns: 58px 1fr; grid-template-rows: 52px 1fr auto; color: var(--admin-ink); border: 1px solid rgba(255,255,255,.55); background: var(--admin-panel); box-shadow: 24px 24px 0 rgba(4,18,62,.3); transform: perspective(1200px) rotateY(calc((1 - var(--admin-enter)) * 6deg)) scale(calc(.93 + var(--admin-enter) * .07)); }
body[data-page="admin-dashboard"] .system-nav { grid-row: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: 16px; padding-top: 18px; color: white; background: #172115; }
body[data-page="admin-dashboard"] .system-nav i { width: 18px; height: 4px; background: rgba(255,255,255,.34); }
body[data-page="admin-dashboard"] .system-nav i:nth-child(1) { height: 18px; margin-bottom: 14px; background: var(--admin-mint); }
body[data-page="admin-dashboard"] .system-toolbar { padding: 0 18px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--admin-line); }
body[data-page="admin-dashboard"] .system-toolbar span { font-weight: 650; }
body[data-page="admin-dashboard"] .system-toolbar b { color: var(--admin-blue); font-size: .6rem; letter-spacing: .1em; }
body[data-page="admin-dashboard"] .system-panels { padding: 18px; display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
body[data-page="admin-dashboard"] .system-panel { padding: 15px; min-height: 120px; display: flex; flex-direction: column; border: 1px solid var(--admin-line); background: white; opacity: calc(.15 + var(--panel-active, 0) * .85); transform: translate3d(calc((1 - var(--panel-active, 0)) * var(--panel-x)), calc((1 - var(--panel-active, 0)) * var(--panel-y)), 0); }
body[data-page="admin-dashboard"] .system-panel small { color: var(--admin-blue); font-size: .54rem; letter-spacing: .1em; }
body[data-page="admin-dashboard"] .system-panel b { margin-top: auto; font-size: clamp(.85rem,1.2vw,1.12rem); }
body[data-page="admin-dashboard"] .system-panel span { margin-top: 4px; color: rgba(17,23,17,.52); font-size: .67rem; }
body[data-page="admin-dashboard"] .panel-dashboard { --panel-x: -70px; --panel-y: -40px; }
body[data-page="admin-dashboard"] .panel-organization { --panel-x: 0px; --panel-y: -80px; }
body[data-page="admin-dashboard"] .panel-team { --panel-x: 80px; --panel-y: -35px; }
body[data-page="admin-dashboard"] .panel-customers { --panel-x: -80px; --panel-y: 50px; }
body[data-page="admin-dashboard"] .panel-devices { --panel-x: 0px; --panel-y: 75px; }
body[data-page="admin-dashboard"] .panel-audit { --panel-x: 80px; --panel-y: 50px; }
body[data-page="admin-dashboard"] .system-assignment { grid-column: 2; padding: 15px 18px; display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 16px; border-top: 1px solid var(--admin-line); background: color-mix(in srgb, var(--admin-mint), white 45%); opacity: calc(.1 + var(--admin-progress) * .9); transform: translateY(calc((1 - var(--admin-progress)) * 20px)); }
body[data-page="admin-dashboard"] .system-assignment small { display:block; font-size:.54rem; letter-spacing:.08em; }
body[data-page="admin-dashboard"] .system-assignment b { font-size:.83rem; }
body[data-page="admin-dashboard"] .system-assignment span { font-size:.78rem; }
body[data-page="admin-dashboard"] .system-assignment i { padding: 7px; color: white; background: var(--admin-blue); font-size: .55rem; font-style: normal; font-weight: 700; letter-spacing: .08em; }
body[data-page="admin-dashboard"] .system-principles { display: grid; grid-template-columns: repeat(3,1fr); gap: 1px; background: rgba(255,255,255,.16); }
body[data-page="admin-dashboard"] .system-principles article { padding: 14px; background: var(--admin-blue-dark); opacity: calc(.4 + var(--admin-progress) * .6); }
body[data-page="admin-dashboard"] .system-principles span { color: var(--admin-mint); font-size: .58rem; }
body[data-page="admin-dashboard"] .system-principles b { display:block; margin: 8px 0 4px; font-size:.78rem; }
body[data-page="admin-dashboard"] .system-principles p { margin:0; color:rgba(255,255,255,.55); font-size:.66rem; line-height:1.35; }

/* Evidence */
body[data-page="admin-dashboard"] .admin-evidence { background: var(--admin-mint); }
body[data-page="admin-dashboard"] .metrics-console { position: sticky; top: 88px; left: 48%; width: 52%; height: calc(100svh - 88px); margin: calc(-100svh + 88px) 0 0 48%; display: grid; grid-template-columns: repeat(2,1fr); align-content: center; gap: 1px; background: rgba(17,23,17,.22); }
body[data-page="admin-dashboard"] .metrics-console article { min-height: 215px; padding: clamp(20px,3vw,38px); display:flex; flex-direction:column; color:white; background:#111711; }
body[data-page="admin-dashboard"] .metrics-console small { color: rgba(255,255,255,.55); font-size:.65rem; letter-spacing:.1em; text-transform:uppercase; }
body[data-page="admin-dashboard"] .metrics-console strong { margin:auto 0 18px; font-family:var(--title-font); font-size:clamp(3.3rem,6vw,7rem); font-stretch:84%; font-weight:600; letter-spacing:-.06em; line-height:.7; }
body[data-page="admin-dashboard"] .metrics-console p { margin:9px 0 0; color:var(--admin-mint); font-size:.7rem; text-transform:uppercase; }
body[data-page="admin-dashboard"] .metric-bar { width:100%; height:3px; background:rgba(255,255,255,.14); }
body[data-page="admin-dashboard"] .metric-bar i { display:block; width:calc(var(--metric) * var(--admin-progress) * 100%); height:100%; background:var(--admin-coral); }
body[data-page="admin-dashboard"] .before-after { position:absolute; right:var(--gutter); bottom:38px; left:calc(48% + 10px); z-index:5; padding:11px; color:white; background:var(--admin-blue-dark); }
body[data-page="admin-dashboard"] .before-after > div { display:flex; align-items:center; gap:7px; padding:8px; font-size:.62rem; }
body[data-page="admin-dashboard"] .before-after small { width:52px; color:var(--admin-mint); font-size:.55rem; letter-spacing:.1em; }
body[data-page="admin-dashboard"] .before-after span { padding:4px 7px; border:1px solid rgba(255,255,255,.22); }
body[data-page="admin-dashboard"] .before-after i { flex:1; height:1px; background:rgba(255,255,255,.25); }
body[data-page="admin-dashboard"] .after-state { opacity:var(--admin-progress); transform:translateX(calc((1 - var(--admin-progress)) * 20px)); }

/* Interface reel */
body[data-page="admin-dashboard"] .admin-interface { min-height: 300svh; color:#f4f5ee; background:#111711; }
body[data-page="admin-dashboard"] .admin-interface .admin-chapter-copy { z-index:8; width:35%; }
body[data-page="admin-dashboard"] .admin-interface .admin-chapter-copy h2 { color:white; }
body[data-page="admin-dashboard"] .admin-interface .kicker { color:var(--admin-mint); }
body[data-page="admin-dashboard"] .admin-interface .admin-chapter-copy > p:last-child { color:rgba(255,255,255,.62); }
body[data-page="admin-dashboard"] .interface-reel { position:sticky; top:88px; width:66%; height:calc(100svh - 88px); margin:calc(-100svh + 88px) 0 0 auto; overflow:hidden; perspective:1200px; }
body[data-page="admin-dashboard"] .interface-reel::before { content:"PRODUCT INTERFACE / 04 SCREENS"; position:absolute; z-index:10; top:18px; right:18px; padding:8px 10px; color:var(--admin-mint); border:1px solid rgba(168,247,202,.4); background:rgba(17,23,17,.8); font-size:.56rem; font-weight:700; letter-spacing:.1em; }
body[data-page="admin-dashboard"] .interface-frame { --frame-step:0; position:absolute; inset:clamp(70px,10vh,105px) 1.5% clamp(55px,8vh,80px) 5%; margin:0; display:grid; grid-template-rows:1fr auto; border:1px solid rgba(255,255,255,.25); background:#e9eae5; box-shadow:18px 18px 0 rgba(0,0,0,.35); transform:translate3d(var(--frame-x,0%), var(--frame-y,0px), var(--frame-z,0px)) rotateY(var(--frame-rotate,0deg)); opacity:var(--frame-opacity,1); }
body[data-page="admin-dashboard"] .interface-frame img { width:100%; height:100%; min-height:0; object-fit:cover; object-position:top left; }
body[data-page="admin-dashboard"] .interface-frame figcaption { padding:14px 16px; display:flex; gap:18px; color:var(--admin-ink); border-top:1px solid var(--admin-line); background:var(--admin-panel); font-size:.75rem; }
body[data-page="admin-dashboard"] .interface-frame figcaption span { color:var(--admin-blue); }
body[data-page="admin-dashboard"] .frame-overview { --frame-step:0; }
body[data-page="admin-dashboard"] .frame-hospital { --frame-step:.333; }
body[data-page="admin-dashboard"] .frame-team { --frame-step:.666; }
body[data-page="admin-dashboard"] .frame-access { --frame-step:1; }

/* Epilogue */
body[data-page="admin-dashboard"] .admin-epilogue { min-height:auto; padding:clamp(100px,15vh,180px) var(--gutter); color:var(--admin-ink); background:var(--admin-paper); }
body[data-page="admin-dashboard"] .admin-epilogue-lead { display:grid; grid-template-columns:.4fr 1.1fr .8fr; gap:clamp(24px,5vw,80px); align-items:start; }
body[data-page="admin-dashboard"] .admin-epilogue-lead h2 { margin:0; }
body[data-page="admin-dashboard"] .admin-epilogue-lead > p:last-child { margin:0; font-size:clamp(1.05rem,1.4vw,1.3rem); line-height:1.5; }
body[data-page="admin-dashboard"] .admin-role-list { margin:clamp(70px,12vh,130px) 0 0; padding:0; display:grid; grid-template-columns:repeat(4,1fr); list-style:none; border-top:1px solid var(--admin-line); }
body[data-page="admin-dashboard"] .admin-role-list li { min-height:210px; padding:20px; border-right:1px solid var(--admin-line); transform:translateY(calc((1 - var(--admin-enter)) * 30px)); opacity:calc(.25 + var(--admin-enter) * .75); }
body[data-page="admin-dashboard"] .admin-role-list span { color:var(--admin-blue); font-size:.64rem; }
body[data-page="admin-dashboard"] .admin-role-list b { display:block; margin:60px 0 8px; font-size:1rem; }
body[data-page="admin-dashboard"] .admin-role-list p { margin:0; color:rgba(17,23,17,.58); font-size:.78rem; line-height:1.4; }
body[data-page="admin-dashboard"] .admin-roadmap { margin-top:clamp(80px,14vh,150px); padding:clamp(35px,6vw,80px); color:white; background:var(--admin-blue-dark); }
body[data-page="admin-dashboard"] .admin-roadmap .kicker { color:var(--admin-mint); }
body[data-page="admin-dashboard"] .admin-roadmap h3 { max-width:13ch; margin-bottom:clamp(50px,8vh,90px); font-family:var(--title-font); font-size:clamp(3rem,6vw,7rem); font-stretch:96%; font-weight:500; letter-spacing:-.06em; line-height:.88; }
body[data-page="admin-dashboard"] .admin-roadmap > div { display:grid; grid-template-columns:repeat(4,1fr); border-top:1px solid rgba(255,255,255,.24); }
body[data-page="admin-dashboard"] .admin-roadmap span { padding:18px 12px; border-right:1px solid rgba(255,255,255,.2); font-size:.76rem; }

/* Keep the established compact navigation, with this story's signal color. */
body[data-page="admin-dashboard"] .case-section-nav { --acid:var(--admin-mint); }
body[data-page="admin-dashboard"] .case-work-footer { position:relative; z-index:10; }

@media (max-width: 1000px) {
  body[data-page="admin-dashboard"] .admin-hero { grid-template-columns:1fr; }
  body[data-page="admin-dashboard"] .admin-hero-console { width:min(82%,650px); margin:70px 0 0 auto; }
  body[data-page="admin-dashboard"] .admin-hero-summary { margin-top:90px; }
  body[data-page="admin-dashboard"] .admin-chapter-copy { width:42%; padding-right:25px; }
  body[data-page="admin-dashboard"] .fragment-stage,
  body[data-page="admin-dashboard"] .trace-stage,
  body[data-page="admin-dashboard"] .metrics-console { left:42%; width:58%; margin-left:42%; }
  body[data-page="admin-dashboard"] .system-stage { left:40%; width:60%; margin-left:40%; }
  body[data-page="admin-dashboard"] .admin-evidence-strip,
  body[data-page="admin-dashboard"] .before-after { left:calc(42% + 10px); }
  body[data-page="admin-dashboard"] .admin-design-note { width:54%; }
}

@media (max-width: 760px) {
  body[data-page="admin-dashboard"] .admin-story { background-size:30px 30px; }
  body[data-page="admin-dashboard"] .admin-hero { min-height:auto; padding:112px 18px 76px; display:block; }
  body[data-page="admin-dashboard"] .admin-hero::before { top:0; width:32%; height:48%; opacity:.9; }
  body[data-page="admin-dashboard"] .admin-scene-progress { top:88px; right:18px; left:18px; }
  body[data-page="admin-dashboard"] .admin-hero .case-kicker { margin-bottom:52px; flex-wrap:wrap; }
  body[data-page="admin-dashboard"] .admin-hero .case-kicker span { font-size:.58rem; }
  body[data-page="admin-dashboard"] .admin-eyebrow { max-width:28ch; }
  body[data-page="admin-dashboard"] .admin-hero .case-title { font-size:clamp(3.7rem,16vw,5.6rem); font-stretch:75%; line-height:.8; }
  body[data-page="admin-dashboard"] .admin-hero .case-title span:last-child { transform:none; }
  body[data-page="admin-dashboard"] .admin-hero .case-thesis { margin:32px 0 0 12%; font-size:clamp(1.9rem,8.5vw,2.8rem); }
  body[data-page="admin-dashboard"] .admin-hero-console { width:calc(100% - 12px); min-height:420px; margin:58px 0 0; box-shadow:12px 12px 0 rgba(17,23,17,.14); transform:none; }
  body[data-page="admin-dashboard"] .console-radar { height:330px; }
  body[data-page="admin-dashboard"] .admin-hero-summary { margin-top:54px; display:block; }
  body[data-page="admin-dashboard"] .admin-hero-summary .primary-link { margin-top:28px; display:inline-flex; }
  body[data-page="admin-dashboard"] .admin-scroll-cue { display:none; }

  body[data-page="admin-dashboard"] .admin-chapter { min-height:auto; padding:0 18px 80px; }
  body[data-page="admin-dashboard"] .admin-chapter-copy { position:relative; top:auto; width:100%; min-height:auto; padding:90px 0 56px; }
  body[data-page="admin-dashboard"] .admin-chapter-copy h2,
  body[data-page="admin-dashboard"] .admin-epilogue h2 { font-size:clamp(3.2rem,13.5vw,5rem); }
  body[data-page="admin-dashboard"] .fragment-stage,
  body[data-page="admin-dashboard"] .trace-stage,
  body[data-page="admin-dashboard"] .system-stage,
  body[data-page="admin-dashboard"] .metrics-console,
  body[data-page="admin-dashboard"] .interface-reel { position:relative; top:auto; left:auto; width:100%; height:auto; min-height:680px; margin:0; }
  body[data-page="admin-dashboard"] .fragment-stage { min-height:720px; }
  body[data-page="admin-dashboard"] .fragment-stage::before { inset:4% 0; }
  body[data-page="admin-dashboard"] .tool-card { width:142px; min-height:112px; padding:12px; transform:scale(.92); }
  body[data-page="admin-dashboard"] .tool-excel { left:1%; }
  body[data-page="admin-dashboard"] .tool-salesforce { right:1%; }
  body[data-page="admin-dashboard"] .tool-database { top:43%; right:0; }
  body[data-page="admin-dashboard"] .tool-calendar { bottom:9%; left:1%; }
  body[data-page="admin-dashboard"] .tool-email { right:1%; bottom:8%; }
  body[data-page="admin-dashboard"] .assignment-ticket { left:25%; width:160px; }
  body[data-page="admin-dashboard"] .fragment-counter { left:2%; bottom:28%; }
  body[data-page="admin-dashboard"] .fragment-counter strong { font-size:4.2rem; }
  body[data-page="admin-dashboard"] .admin-evidence-strip { position:relative; right:auto; bottom:auto; left:auto; grid-template-columns:1fr; margin-top:16px; }
  body[data-page="admin-dashboard"] .admin-evidence-strip span { border-right:0; border-bottom:1px solid rgba(255,255,255,.15); }

  body[data-page="admin-dashboard"] .trace-stage { min-height:680px; display:block; }
  body[data-page="admin-dashboard"] .trace-list { width:58%; padding-top:20px; }
  body[data-page="admin-dashboard"] .trace-map { position:absolute; inset:40px -8% 0 34%; height:600px; }
  body[data-page="admin-dashboard"] .admin-design-note { position:relative; right:auto; bottom:auto; width:100%; margin-top:35px; }
  body[data-page="admin-dashboard"] .map-object b { display:none; }

  body[data-page="admin-dashboard"] .system-stage { min-height:auto; padding-bottom:10px; }
  body[data-page="admin-dashboard"] .system-shell { min-height:540px; grid-template-columns:42px 1fr; transform:none; }
  body[data-page="admin-dashboard"] .system-panels { grid-template-columns:repeat(2,1fr); padding:10px; }
  body[data-page="admin-dashboard"] .system-panel { min-height:105px; padding:11px; transform:none; opacity:1; }
  body[data-page="admin-dashboard"] .system-assignment { gap:8px; padding:12px 10px; }
  body[data-page="admin-dashboard"] .system-assignment span { display:none; }
  body[data-page="admin-dashboard"] .system-principles { grid-template-columns:1fr; margin-top:16px; }

  body[data-page="admin-dashboard"] .metrics-console { min-height:auto; grid-template-columns:1fr 1fr; }
  body[data-page="admin-dashboard"] .metrics-console article { min-height:190px; padding:18px; }
  body[data-page="admin-dashboard"] .metrics-console strong { font-size:clamp(2.8rem,14vw,4.2rem); }
  body[data-page="admin-dashboard"] .before-after { position:relative; right:auto; bottom:auto; left:auto; margin-top:16px; overflow:hidden; }
  body[data-page="admin-dashboard"] .before-after > div { flex-wrap:wrap; }
  body[data-page="admin-dashboard"] .before-after i { min-width:10px; }

  body[data-page="admin-dashboard"] .admin-interface { min-height:auto; }
  body[data-page="admin-dashboard"] .admin-interface .admin-chapter-copy { width:100%; }
  body[data-page="admin-dashboard"] .interface-reel { min-height:auto; display:grid; gap:24px; overflow:visible; perspective:none; }
  body[data-page="admin-dashboard"] .interface-reel::before { position:relative; top:auto; right:auto; justify-self:start; }
  body[data-page="admin-dashboard"] .interface-frame { position:relative; inset:auto; opacity:1; transform:none; }
  body[data-page="admin-dashboard"] .interface-frame img { aspect-ratio:16/10; }

  body[data-page="admin-dashboard"] .admin-epilogue { padding:100px 18px; }
  body[data-page="admin-dashboard"] .admin-epilogue-lead { grid-template-columns:1fr; }
  body[data-page="admin-dashboard"] .admin-role-list { grid-template-columns:1fr 1fr; }
  body[data-page="admin-dashboard"] .admin-role-list li:nth-child(2) { border-right:0; }
  body[data-page="admin-dashboard"] .admin-role-list li { min-height:180px; border-bottom:1px solid var(--admin-line); }
  body[data-page="admin-dashboard"] .admin-role-list b { margin-top:42px; }
  body[data-page="admin-dashboard"] .admin-roadmap { padding:38px 20px; }
  body[data-page="admin-dashboard"] .admin-roadmap > div { grid-template-columns:1fr 1fr; }
  body[data-page="admin-dashboard"] .admin-roadmap span { border-bottom:1px solid rgba(255,255,255,.2); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-page="admin-dashboard"] .admin-story *,
  body[data-page="admin-dashboard"] .admin-story *::before,
  body[data-page="admin-dashboard"] .admin-story *::after { animation:none !important; scroll-behavior:auto !important; transition-duration:.01ms !important; }
  body[data-page="admin-dashboard"] [data-admin-scene] { --admin-progress:1 !important; --admin-enter:1 !important; --admin-exit:0 !important; }
  body[data-page="admin-dashboard"] :is(.radar-node,.tool-card,.trace-list li,.map-object,.system-shell,.system-panel,.system-assignment,.admin-role-list li,.admin-hero-console,.after-state) { transform:none !important; opacity:1 !important; }
  body[data-page="admin-dashboard"] .assignment-ticket { transform:translate(-50%,-50%) !important; opacity:1; }
  body[data-page="admin-dashboard"] .admin-hero .case-title span:last-child,
  body[data-page="admin-dashboard"] .admin-hero::before { transform:none; }
  body[data-page="admin-dashboard"] .admin-hero { min-height:auto; }
  body[data-page="admin-dashboard"] .admin-chapter { min-height:auto; padding-top:70px; padding-bottom:70px; display:grid; grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr); gap:36px; align-items:start; }
  body[data-page="admin-dashboard"] .admin-chapter-copy,
  body[data-page="admin-dashboard"] .admin-interface .admin-chapter-copy { position:static; width:100%; min-height:0; padding:0; }
  body[data-page="admin-dashboard"] :is(.fragment-stage,.trace-stage,.system-stage,.metrics-console,.interface-reel) { position:relative; inset:auto; width:100%; margin:0; height:auto; min-height:0; }
  body[data-page="admin-dashboard"] .fragment-stage { height:720px; }
  body[data-page="admin-dashboard"] .trace-stage { display:block; }
  body[data-page="admin-dashboard"] .trace-list { width:100%; padding:0; }
  body[data-page="admin-dashboard"] .trace-map { position:relative; inset:auto; height:330px; }
  body[data-page="admin-dashboard"] :is(.admin-evidence-strip,.before-after,.admin-design-note) { position:relative; inset:auto; width:100%; margin:0; grid-column:2; }
  body[data-page="admin-dashboard"] .interface-reel { display:grid; gap:30px; overflow:visible; perspective:none; }
  body[data-page="admin-dashboard"] .interface-reel::before { position:static; justify-self:start; }
  body[data-page="admin-dashboard"] .interface-frame { position:relative; inset:auto; opacity:1 !important; transform:none !important; }
  body[data-page="admin-dashboard"] .interface-frame img { height:auto; object-fit:contain; }
  body[data-page="admin-dashboard"] .admin-epilogue { display:block; }
}

@media (prefers-reduced-motion: reduce) and (max-width:760px) {
  body[data-page="admin-dashboard"] .admin-chapter { grid-template-columns:minmax(0,1fr); gap:36px; }
  body[data-page="admin-dashboard"] :is(.admin-evidence-strip,.before-after,.admin-design-note) { grid-column:1; }
}
