@font-face {
  font-family: "Helvetica Neue Local";
  src: url("fonts/HelveticaNeue300.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Helvetica Neue Local";
  src: url("fonts/HelveticaNeue400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Palette mapped onto the NOCTIS marketing landing token system */
  --black: #0B0A08;              /* landing --bg */
  --black2: #0D0C0A;             /* landing --bg-2 */
  --ink: #131110;                /* landing --surface */
  --panel: rgba(19, 17, 16, .76);
  --panel2: rgba(13, 12, 10, .7);
  --cream: #ECE4D6;              /* landing --cream */
  --muted: #8C8175;              /* landing --muted */
  --dim: #6b6154;
  --gold: #C9A15F;               /* landing --gold */
  --gold-light: #D7B86F;         /* landing --gold-lite */
  --gold-dark: #C99D5F;          /* landing --gold-deep */
  --green: #9fb98a;              /* semantic positive (data viz) */
  --red: #d98a6a;                /* semantic danger */
  --line: #2A241D;               /* landing --line */
  --line-strong: #3a322a;
  --line-soft: rgba(201, 161, 95, .14); /* landing --line-soft */
  --shadow: 0 50px 120px -50px rgba(0, 0, 0, .92);
  --shadow-soft: 0 28px 70px -42px rgba(0, 0, 0, .9);
  --glow: 0 0 38px rgba(201, 161, 95, .14), 0 0 90px rgba(159, 185, 138, .08);
  --gold-glow: 0 8px 30px -12px rgba(201, 161, 95, .7);
  --sans: "Helvetica Neue Local", "Helvetica Neue", Helvetica, "Archivo", Arial, sans-serif;
  --serif: "Helvetica Neue Local", "Helvetica Neue", Helvetica, "Archivo", Arial, sans-serif;
  --mono: 'JetBrains Mono', Menlo, monospace;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

* { box-sizing: border-box; }

html {
  color-scheme: dark;
  background: var(--black);
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  letter-spacing: .01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  background:
    radial-gradient(900px 480px at 50% 10%, rgba(215, 184, 111, .07), transparent 64%),
    radial-gradient(1100px 600px at 82% -12%, rgba(201, 161, 95, .12), transparent 60%),
    radial-gradient(800px 700px at -10% 35%, rgba(201, 161, 95, .05), transparent 55%),
    var(--black);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
}

body::before {
  z-index: 0;
  opacity: .22;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1600' height='900' viewBox='0 0 1600 900'%3E%3Cg fill='none' stroke='%23C9A15F' stroke-opacity='.25' stroke-width='1'%3E%3Cpath d='M710 5c-55 70-81 142-38 205 43 62 130 75 166 134 36 60-10 137 25 205 35 70 146 92 207 143 61 52 71 132 35 202'/%3E%3Cpath d='M805 10c-40 60-54 124-10 174 44 50 119 62 146 117 27 55-17 120 18 177 35 58 135 78 190 126 55 48 60 118 24 184'/%3E%3Cpath d='M905 6c-27 54-27 111 19 151 46 41 109 52 130 99 21 47-18 102 18 151 36 50 122 67 169 109 47 42 48 102 12 161'/%3E%3Cpath d='M1008 18c-14 43-4 86 40 117 45 31 96 43 111 79 15 36-17 80 18 119 35 39 107 53 146 85 39 32 37 79 4 125'/%3E%3Cpath d='M1114 20c-3 34 16 65 56 88 40 24 78 35 88 61 10 27-14 61 18 90 32 30 87 42 117 65 30 24 24 58-4 90'/%3E%3C/g%3E%3Cg fill='%23C9A15F' fill-opacity='.18' font-family='monospace' font-size='16'%3E%3Ctext x='980' y='128'%3E+12%3C/text%3E%3Ctext x='925' y='278'%3E+4%3C/text%3E%3Ctext x='896' y='382'%3E0%3C/text%3E%3Ctext x='874' y='493'%3E-4%3C/text%3E%3Ctext x='918' y='654'%3E-8%3C/text%3E%3C/g%3E%3C/svg%3E");
  background-position: center top;
  background-size: cover;
  mix-blend-mode: screen;
  animation: contourDrift 24s ease-in-out infinite alternate;
}

body::after {
  z-index: 0;
  opacity: .22;
  background:
    radial-gradient(circle at 22% 18%, rgba(215, 184, 111, .14), transparent 22%),
    radial-gradient(circle at 86% 62%, rgba(143, 176, 121, .10), transparent 20%),
    linear-gradient(90deg, rgba(237,230,214,.05), transparent 18%, transparent 82%, rgba(176,137,76,.06));
  animation: ambientBreath 9s ease-in-out infinite alternate;
}

button, input, select {
  font: inherit;
}

button, a {
  -webkit-tap-highlight-color: transparent;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .2;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255,255,255,.08) 0 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 3px 3px, 42px 42px, 42px 42px;
  mask-image: linear-gradient(180deg, #000, transparent 88%);
  z-index: 0;
  animation: grainShift 1.8s steps(2) infinite;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 70px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  justify-content: space-between;
  gap: clamp(10px, 2.4vw, 24px);
  padding: 18px clamp(16px, 4vw, 48px);
  background: rgba(8, 7, 6, .82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-grid;
  grid-template-columns: 38px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  color: var(--cream);
  text-decoration: none;
}

.brand-mark {
  grid-row: 1 / span 2;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  color: var(--gold-light);
  font-family: var(--serif);
  border-radius: 50%;
  background: rgba(201, 157, 95, .08);
}

.brand-word {
  font-family: var(--serif);
  font-size: 18px;
  letter-spacing: .34em;
  line-height: 1;
}

.brand-version {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .18em;
}

.nav {
  display: flex;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.nav::-webkit-scrollbar {
  display: none;
}

.nav button,
.nav a,
.command-sidebar button {
  color: var(--muted);
  background: transparent;
  border: 0;
  cursor: pointer;
  border-radius: 8px;
  padding: 9px 12px;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  text-decoration: none;
}

.nav button:hover,
.nav a:hover,
.nav button.active,
.command-sidebar button:hover,
.command-sidebar button.active {
  color: var(--gold-light);
  background: rgba(215, 184, 111, .055);
}

.nav button.active,
.command-sidebar button.active {
  box-shadow: inset 0 -1px 0 rgba(215, 184, 111, .38);
}

body:not([data-auth-state="signed-in"]) .member-only,
body:not([data-admin-state="admin"]) .admin-only {
  display: none !important;
}

.auth-slot {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  min-width: max-content;
}

.screen {
  min-height: calc(100vh - 76px);
  display: none;
  position: relative;
  z-index: 1;
  padding: clamp(22px, 5vw, 64px);
}

.screen.active {
  display: block;
  animation: rise .42s ease both;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes contourDrift {
  from { transform: translate3d(-10px, -8px, 0) scale(1.02); }
  to { transform: translate3d(12px, 10px, 0) scale(1.05); }
}

@keyframes ambientBreath {
  from { opacity: .16; transform: scale(1); }
  to { opacity: .28; transform: scale(1.04); }
}

@keyframes grainShift {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(1px, -1px, 0); }
  100% { transform: translate3d(-1px, 1px, 0); }
}

.hero-grid,
.teaser-grid,
.auth-page,
.report-layout,
.command-layout {
  max-width: 1240px;
  margin: 0 auto;
  min-width: 0;
}

.hero-copy,
.auth-copy,
.instrument-card,
.score-card,
.unlock-card,
.report-hero,
.command-main {
  min-width: 0;
}

.hero-grid {
  min-height: calc(100vh - 184px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(28px, 6vw, 86px);
}

.system-label {
  margin: 0 0 16px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 400;
  letter-spacing: .16em;
  text-transform: uppercase;
}

h1, h2, h3, p {
  margin-top: 0;
}

h1 {
  max-width: min(13ch, 100%);
  margin-bottom: 22px;
  font-family: var(--serif);
  font-size: 66px;
  line-height: .95;
  letter-spacing: -.02em;
  font-weight: 700;
  overflow-wrap: break-word;
}

h2 {
  font-family: var(--serif);
  font-size: 42px;
  line-height: 1.02;
  letter-spacing: -.015em;
  font-weight: 700;
}

h3 {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -.01em;
}

h1 em,
h2 em,
h3 em {
  font-style: italic;
  color: var(--gold-light);
}

.lead {
  max-width: 46ch;
  color: var(--muted);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.65;
}

.hero-actions,
.unlock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

button,
.ghost,
.gold {
  min-height: 50px;
  border-radius: 10px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  color: var(--cream);
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .14em;
  text-transform: uppercase;
  transition: transform .18s ease, filter .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, background .18s ease;
}

button:hover,
.ghost:hover,
.gold:hover {
  transform: translateY(-1px);
}

button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none;
}

.gold {
  color: #1c1305;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  border-color: rgba(215, 184, 111, .6);
  font-weight: 400;
  box-shadow: var(--gold-glow);
}

.gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 40px -14px rgba(201, 161, 95, .85);
}

.ghost {
  background: transparent;
  border-color: var(--gold);
  color: var(--gold-light);
}

.ghost:hover {
  background: rgba(201, 161, 95, .09);
  border-color: var(--gold-light);
}

.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 12px;
}

.hidden {
  display: none !important;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-row span {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 8px 12px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
}

.hero-status {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 660px;
  margin-top: 22px;
}

.hero-status div {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(215, 184, 111, .16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(215, 184, 111, .07), rgba(7, 6, 5, .34)),
    repeating-linear-gradient(115deg, rgba(215, 184, 111, .03) 0 1px, transparent 1px 18px);
}

.hero-status b,
.hero-status span {
  display: block;
}

.hero-status b {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 11px;
  margin-bottom: 14px;
}

.hero-status span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.instrument-card,
.score-card,
.unlock-card,
.auth-box,
.report-hero,
.command-main,
fieldset,
.legal-page,
.legal-grid article {
  background: linear-gradient(180deg, rgba(20, 16, 12, .6), rgba(8, 7, 6, .4));
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: var(--shadow);
  position: relative;
}

.instrument-card::before,
.score-card::before,
.unlock-card::before,
.auth-box::before,
.report-hero::before,
.command-main::before,
fieldset::before,
.legal-page::before,
.legal-grid article::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background:
    linear-gradient(135deg, rgba(231,207,149,.035), transparent 28%),
    repeating-linear-gradient(115deg, rgba(231,207,149,.035) 0 1px, transparent 1px 22px);
  opacity: .8;
}

.instrument-card {
  min-height: 600px;
  padding: 28px;
  display: grid;
  align-content: center;
  gap: 26px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(30, 24, 17, .76), rgba(8, 7, 6, .58)),
    radial-gradient(circle at 68% 24%, rgba(159, 185, 138, .12), transparent 24%),
    repeating-linear-gradient(0deg, rgba(215, 184, 111, .035) 0 1px, transparent 1px 4px);
  box-shadow: var(--shadow), var(--glow);
}

.instrument-card::after {
  content: "";
  position: absolute;
  inset: 16px;
  border: 1px solid rgba(215, 184, 111, .08);
  border-radius: 8px;
  pointer-events: none;
}

.instrument-dossier {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 16px;
}

.instrument-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.instrument-head .system-label {
  margin: 0;
}

.instrument-head span {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
}

.read-module {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 132px;
  gap: 18px;
  align-items: center;
  padding: 18px;
  border: 1px solid rgba(215, 184, 111, .26);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(215, 184, 111, .12), rgba(8, 7, 6, .42)),
    repeating-linear-gradient(115deg, rgba(215, 184, 111, .04) 0 1px, transparent 1px 20px);
}

.read-module small,
.read-module p {
  display: block;
  margin: 0;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.read-module strong {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 12px 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: 34px;
  line-height: .9;
}

.read-module strong span {
  color: var(--gold-light);
  font-size: 86px;
}

.mini-orb {
  width: 132px;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px solid rgba(215, 184, 111, .26);
  background:
    radial-gradient(circle at 50% 50%, #edf2b7 0 9%, #9fb98a 10% 17%, transparent 18%),
    radial-gradient(circle, rgba(215, 184, 111, .24) 0 1px, transparent 1px);
  background-size: auto, 9px 9px;
  box-shadow: inset 0 0 46px rgba(0, 0, 0, .72), 0 0 46px rgba(159, 185, 138, .24);
  animation: pulseOrb 4.8s ease-in-out infinite alternate;
}

.signal-bars {
  display: grid;
  gap: 10px;
}

.signal-bars div {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) 32px;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

.signal-bars i {
  height: 7px;
  border-radius: 999px;
  background: rgba(237, 230, 214, .09);
  overflow: hidden;
}

.signal-bars i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  animation: barGlow 3.5s ease-in-out infinite alternate;
}

.signal-bars b {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 11px;
}

.ring-wrap {
  position: relative;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
}

.ring {
  width: min(280px, 70%);
  aspect-ratio: 1;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, rgba(215, 184, 111, .14), transparent 58%);
  box-shadow: inset 0 0 0 22px rgba(8, 7, 6, .82);
}

.ring span {
  font-family: var(--serif);
  font-size: 82px;
  line-height: .82;
  font-weight: 600;
}

.ring small {
  color: var(--muted);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.orbit {
  position: absolute;
  inset: 14%;
  border: 1px dashed rgba(215, 184, 111, .18);
  border-radius: 50%;
  animation: orbitSpin 18s linear infinite;
}

.o2 {
  inset: 2%;
  transform: rotate(24deg);
  animation-duration: 28s;
  animation-direction: reverse;
}

@keyframes orbitSpin {
  to { transform: rotate(360deg); }
}

.flow-steps {
  display: grid;
  gap: 10px;
}

.coming-list {
  display: grid;
  gap: 8px;
}

.coming-list div {
  display: grid;
  grid-template-columns: 38px 1fr;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(215, 184, 111, .18);
  border-radius: 8px;
  background: rgba(215, 184, 111, .045);
}

.coming-list b {
  color: var(--gold-light);
  font-family: var(--sans);
}

.coming-list span {
  color: var(--cream);
}

.flow-steps div,
.ready-item,
.mini-card,
.notification-row {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(215, 184, 111, .035);
}

.flow-steps b,
.ready-item span {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 12px;
}

.flow-steps span,
.ready-item {
  color: var(--muted);
}

.readiness {
  display: grid;
  gap: 10px;
  margin: 26px 0;
}

.ready-item.on {
  color: var(--cream);
  border-color: rgba(143, 176, 121, .48);
}

.teaser-grid,
.auth-page,
.report-layout {
  min-height: calc(100vh - 184px);
  display: grid;
  grid-template-columns: minmax(280px, .8fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
}

.score-card,
.unlock-card,
.auth-box,
.report-hero {
  padding: clamp(22px, 4vw, 42px);
}

.big-score,
.report-score span {
  font-family: var(--serif);
  font-size: 138px;
  line-height: .82;
  letter-spacing: 0;
  font-weight: 600;
}

.unlock-card p,
.auth-copy p,
.report-hero p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
}

.auth-copy ol {
  margin: 24px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.auth-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 22px 0 0;
}

.auth-benefits article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(215, 184, 111, .04);
}

.auth-benefits b,
.auth-benefits span {
  display: block;
}

.auth-benefits b {
  color: var(--cream);
  margin-bottom: 6px;
}

.auth-benefits span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.fallback-auth {
  display: grid;
  gap: 12px;
}

label,
legend {
  color: var(--cream);
  font-size: 14px;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(12, 10, 8, .48);
  color: var(--cream);
  padding: 0 12px;
}

input::placeholder {
  color: rgba(140, 129, 117, .72);
}

.fallback-auth p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.onboarding-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.onboarding-head {
  max-width: 760px;
  margin-bottom: 24px;
}

.onboarding-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}

fieldset {
  padding: 18px;
  display: grid;
  gap: 14px;
  min-width: 0;
}

legend {
  padding: 0 8px;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .12em;
}

fieldset label {
  display: grid;
  gap: 8px;
  color: var(--muted);
}

fieldset input[type="radio"],
fieldset input[type="checkbox"] {
  width: auto;
  min-height: auto;
  margin-right: 8px;
  accent-color: var(--gold);
}

.report-dossier {
  max-width: 1120px;
  margin: 0 auto;
  border: 1px solid rgba(215, 184, 111, .22);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(23, 18, 13, .92), rgba(7, 6, 5, .94)),
    repeating-linear-gradient(0deg, rgba(231,207,149,.04) 0 1px, transparent 1px 4px);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.dossier-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: clamp(18px, 4vw, 34px);
  border-bottom: 1px solid var(--line);
}

.dossier-head h2 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  max-width: 720px;
}

.dossier-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.dossier-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(240px, .65fr);
  gap: 14px;
  padding: clamp(14px, 3vw, 24px);
}

.read-card,
.interpretation-card,
.projection-card,
.protocol-stack,
.signal-orb {
  border: 1px solid rgba(215, 184, 111, .18);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(215, 184, 111, .08), rgba(12, 10, 8, .46)),
    repeating-linear-gradient(115deg, rgba(231,207,149,.035) 0 1px, transparent 1px 22px);
  padding: 18px;
  box-shadow: var(--shadow-soft);
}

.read-card {
  min-height: 230px;
}

.read-score {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 8px 0 12px;
}

.read-score span {
  font-family: var(--serif);
  font-size: clamp(72px, 11vw, 126px);
  line-height: .8;
  color: var(--gold-light);
}

.read-score small {
  color: var(--muted);
  font-family: var(--sans);
  letter-spacing: .12em;
}

.read-line {
  height: 2px;
  background: rgba(215, 184, 111, .16);
  margin: 8px 0 18px;
}

.read-line i {
  display: block;
  width: 72%;
  height: 100%;
  background: linear-gradient(90deg, var(--gold-light), transparent);
}

.signal-orb {
  display: grid;
  place-items: center;
  min-height: 230px;
  background:
    radial-gradient(circle at 50% 50%, rgba(159, 185, 138, .2), transparent 22%),
    radial-gradient(circle at 50% 50%, rgba(215, 184, 111, .08), transparent 48%),
    #070605;
}

.orb-core {
  width: min(170px, 70%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, #dce8a8 0 9%, #9fb98a 10% 17%, transparent 18%),
    radial-gradient(circle, rgba(231,207,149,.26) 0 1px, transparent 1px);
  background-size: auto, 10px 10px;
  border: 1px solid rgba(231,207,149,.28);
  box-shadow: inset 0 0 48px rgba(0,0,0,.7), 0 0 44px rgba(159,185,138,.22);
  animation: pulseOrb 5s ease-in-out infinite alternate;
}

@keyframes pulseOrb {
  from { transform: scale(.98); filter: brightness(.9); }
  to { transform: scale(1.02); filter: brightness(1.12); }
}

.interpretation-card,
.dossier-metrics {
  grid-column: span 2;
}

.interpretation-card p:not(.system-label),
.projection-card p {
  color: var(--muted);
  line-height: 1.55;
}

.projection-numbers {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 4px 0 16px;
}

.projection-numbers span {
  font-family: var(--serif);
  font-size: 64px;
  color: var(--gold-light);
}

.projection-numbers b {
  color: var(--muted);
  font-family: var(--sans);
}

.protocol-stack {
  display: grid;
  gap: 10px;
}

.protocol-stack button {
  width: 100%;
  min-height: 54px;
  justify-content: space-between;
  padding: 12px;
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
  background: rgba(8, 7, 6, .42);
}

.protocol-stack button.active,
.protocol-stack button:focus-visible {
  border-color: rgba(215, 184, 111, .54);
  background:
    linear-gradient(90deg, rgba(215, 184, 111, .14), rgba(159, 185, 138, .08)),
    rgba(8, 7, 6, .36);
  outline: none;
}

.protocol-stack span,
.protocol-stack b {
  display: block;
}

.protocol-stack span {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.protocol-stack b {
  color: var(--cream);
  font-weight: 500;
  font-size: 13px;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.metric-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: rgba(237, 230, 214, .035);
  box-shadow: var(--shadow-soft);
}

.metric-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.metric-card b {
  color: var(--cream);
}

.metric-card span {
  color: var(--gold-light);
  font-family: var(--mono);
}

.bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(237, 230, 214, .08);
  overflow: hidden;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--gold-dark), var(--gold-light));
  animation: barGlow 3.8s ease-in-out infinite alternate;
}

@keyframes barGlow {
  from { filter: saturate(1); }
  to { filter: saturate(1.35) brightness(1.06); }
}

.metric-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 12px 0 0;
}

.command-layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.command-sidebar {
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(8, 7, 6, .58);
  padding: 18px;
  align-self: start;
  position: sticky;
  top: 100px;
}

.command-sidebar h2 {
  font-size: 32px;
  margin-bottom: 18px;
}

.command-sidebar button {
  width: 100%;
  justify-content: flex-start;
  border-radius: 9px;
  margin-bottom: 4px;
  min-height: 40px;
}

.command-main {
  padding: clamp(18px, 2.6vw, 30px);
  display: grid;
  gap: 16px;
  align-content: start;
  overflow: visible;
}

.command-main > .system-label {
  margin-bottom: -6px;
}

.command-main > h2 {
  margin: 0 0 2px;
  font-size: clamp(28px, 3.4vw, 38px);
}

.command-main > * {
  position: relative;
  z-index: 1;
}

.panel-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 156px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.panel-hero p:not(.system-label) {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.55;
}

.panel-score {
  min-height: 156px;
  display: grid;
  place-items: center;
  padding: 12px;
  border: 1px solid rgba(215, 184, 111, .22);
  border-radius: 12px;
  background:
    radial-gradient(circle, rgba(159, 185, 138, .16), transparent 48%),
    linear-gradient(180deg, rgba(215, 184, 111, .12), rgba(8, 7, 6, .38));
  box-shadow: var(--shadow-soft);
}

.panel-score > span,
.panel-score > small {
  display: block;
  text-align: center;
}

.panel-score > span {
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 76px;
  line-height: .9;
}

.panel-score > small {
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status-rail {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 16px;
}

.status-rail.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.status-rail article {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(215, 184, 111, .16);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(215, 184, 111, .07), rgba(8, 7, 6, .34)),
    repeating-linear-gradient(115deg, rgba(215, 184, 111, .025) 0 1px, transparent 1px 18px);
}

.status-rail b,
.status-rail span {
  display: block;
}

.status-rail b {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.status-rail span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.legal-links {
  display: flex;
  gap: 14px;
  margin-top: 18px;
}

.legal-links button {
  min-height: auto;
  padding: 0;
  border: 0;
  color: var(--dim);
  background: transparent;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .18em;
}

.site-footer {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: clamp(14px, 4vw, 38px);
  flex-wrap: wrap;
  padding: 24px clamp(16px, 4vw, 48px) 34px;
  border-top: 1px solid var(--line);
  background: rgba(8, 7, 6, .74);
}

.site-footer a,
.site-footer button {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
}

.site-footer a:hover,
.site-footer button:hover {
  color: var(--gold-light);
}

.legal-page {
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(24px, 5vw, 48px);
}

.legal-page h2 {
  max-width: 760px;
  margin-bottom: 28px;
}

.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.legal-grid article {
  padding: 20px;
  box-shadow: var(--shadow-soft);
}

.legal-grid article h3 {
  margin-bottom: 10px;
}

.legal-grid article p {
  color: var(--muted);
  font-weight: 300;
  line-height: 1.55;
}

.consent-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.consent-actions button,
.consent-actions a {
  min-height: 34px;
  padding: 0 10px;
  font-size: 10px;
  display: inline-flex;
  align-items: center;
  color: var(--gold-light);
  font-family: var(--sans);
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
}

.admin-shell {
  display: grid;
  gap: 16px;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-tabs button {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(8, 7, 6, .34);
  color: var(--muted);
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.admin-tabs button.active {
  border-color: rgba(215, 184, 111, .5);
  color: var(--gold-light);
  background: rgba(215, 184, 111, .06);
}

.admin-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.product-toolbar {
  grid-template-columns: minmax(180px, 1fr) minmax(150px, .7fr) auto auto;
}

.admin-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.admin-summary article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: rgba(215, 184, 111, .035);
}

.admin-summary b,
.admin-summary span {
  display: block;
}

.admin-summary b {
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 18px;
}

.admin-summary span {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.admin-workbench {
  display: grid;
  grid-template-columns: minmax(280px, .9fr) minmax(320px, 1.1fr);
  gap: 14px;
  min-height: 420px;
}

.admin-list,
.admin-detail,
.admin-email-log {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(8, 7, 6, .32);
  padding: 12px;
}

.admin-list {
  display: grid;
  align-content: start;
  gap: 8px;
  max-height: 540px;
  overflow: auto;
}

.admin-row {
  width: 100%;
  min-height: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(20, 16, 12, .56);
  color: var(--cream);
  text-align: left;
  letter-spacing: 0;
  text-transform: none;
}

.admin-row.selected,
.admin-row:hover {
  border-color: rgba(215, 184, 111, .42);
  background: rgba(215, 184, 111, .06);
}

.admin-row span,
.admin-row b,
.admin-row small {
  display: block;
}

.admin-row small {
  margin-top: 5px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .02em;
}

.status {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 8px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.status.active { color: var(--green); }
.status.draft { color: var(--gold-light); }
.status.locked { color: var(--gold-light); }
.status.banned,
.status.deleted { color: var(--red); }

.admin-user-head {
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
}

.avatar {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1c1305;
  background: var(--gold-light);
  font-weight: 700;
}

.admin-user-head p {
  margin: 6px 0 0;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-actions button {
  min-height: 36px;
  padding: 0 11px;
  font-size: 10px;
}

.admin-actions .danger {
  color: #271008;
  background: linear-gradient(180deg, #e8a286, var(--red));
  border-color: transparent;
}

.admin-email-log {
  display: grid;
  gap: 8px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.product-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: rgba(8, 7, 6, .32);
  box-shadow: var(--shadow-soft);
}

.product-card header,
.tier-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.product-card h3 {
  margin: 0;
}

.product-card > p {
  margin: 12px 0 16px;
  color: var(--muted);
  line-height: 1.5;
}

.tier-stack {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.tier-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(215, 184, 111, .035);
}

.tier-row b,
.tier-row small {
  display: block;
}

.tier-row small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.wide {
  grid-column: span 2;
}

.mini-card {
  display: block;
  min-height: auto;
  background:
    linear-gradient(180deg, rgba(215, 184, 111, .07), rgba(8, 7, 6, .36)),
    repeating-linear-gradient(115deg, rgba(215, 184, 111, .025) 0 1px, transparent 1px 20px);
}

.mini-card h3 {
  margin-bottom: 10px;
}

.mini-card p {
  color: var(--muted);
  line-height: 1.45;
}

.signal-card {
  display: grid;
  align-content: space-between;
  gap: 12px;
}

.notification-stack {
  display: grid;
  gap: 8px;
}

.notification-row b,
.notification-row small,
.notification-row em {
  display: block;
}

.notification-row small {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.35;
}

.notification-row em {
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  text-transform: uppercase;
}

.dossier-preview {
  display: grid;
  grid-template-columns: minmax(130px, .38fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 260px;
}

.dossier-mini-score {
  display: grid;
  place-items: center;
  border: 1px solid rgba(231,207,149,.2);
  border-radius: 10px;
  background: radial-gradient(circle, rgba(231,207,149,.11), rgba(8,7,6,.36) 55%);
}

.dossier-mini-score span {
  font-family: var(--serif);
  font-size: 72px;
  color: var(--gold-light);
}

.dossier-mini-score small {
  color: var(--muted);
  font-family: var(--sans);
  text-transform: uppercase;
  letter-spacing: .12em;
}

.member-actions,
.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.report-list {
  display: grid;
  gap: 10px;
}

.report-list .notification-row {
  align-items: flex-start;
}

.profile-grid {
  display: grid;
  grid-template-columns: minmax(220px, .55fr) minmax(0, 1fr);
  gap: 14px;
}

.profile-card {
  min-height: 240px;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #1c1305;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
}

.preference-list {
  display: grid;
  gap: 10px;
}

.preference-list .notification-row {
  min-height: 58px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 12px;
  z-index: 45;
  transform: translateX(-50%);
  width: min(420px, calc(100vw - 24px));
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 4px;
  border: 1px solid rgba(231,207,149,.24);
  border-radius: 999px;
  background: rgba(7, 6, 5, .86);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
}

.bottom-nav button {
  min-height: 38px;
  padding: 0 6px;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 9px;
  letter-spacing: .1em;
}

.bottom-nav button.active {
  color: #1c1305;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
}

body[data-auth-state="signed-in"][data-screen="report"] .bottom-nav {
  display: grid;
}

.user-chip {
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 6px 5px 5px;
}

.user-chip span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #1c1305;
  background: var(--gold-light);
  border-radius: 50%;
  font-weight: 700;
}

.user-chip button {
  min-height: 30px;
  padding: 0 8px;
  border: 0;
  background: transparent;
  color: var(--muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(16px);
  opacity: 0;
  pointer-events: none;
  z-index: 50;
  max-width: min(520px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(12, 10, 8, .92);
  color: var(--cream);
  box-shadow: var(--shadow);
  transition: opacity .18s ease, transform .18s ease;
}

.toast.on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast.ok {
  border-color: rgba(159, 185, 138, .48);
}

.toast.warn {
  border-color: rgba(217, 138, 106, .58);
}

/* ---- Command center v2: dense editorial dashboard ---- */

.command-main .panel-hero,
.command-main .status-rail {
  margin: 0;
}

.panel-card {
  position: relative;
  padding: clamp(16px, 2.2vw, 22px);
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(215, 184, 111, .05), rgba(8, 7, 6, .3)),
    repeating-linear-gradient(115deg, rgba(215, 184, 111, .022) 0 1px, transparent 1px 22px);
  box-shadow: var(--shadow-soft);
}

.panel-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.panel-card-head .system-label,
.panel-card > .system-label {
  margin: 0 0 10px;
}

.panel-card-head .system-label {
  margin: 0;
}

.mono-tag {
  color: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}

.empty-note {
  margin: 0;
  color: var(--dim);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .02em;
}

/* Panel hero + chips */
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.data-chip {
  padding: 6px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.data-chip.on {
  border-color: rgba(159, 185, 138, .5);
  color: var(--green);
}

.panel-score em.score-note {
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .06em;
  text-transform: uppercase;
}

/* Delta chips */
.delta-chip {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 7px;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: .02em;
}

.delta-chip span[aria-hidden] { font-size: 8px; }
.delta-chip.up { color: var(--green); background: rgba(159, 185, 138, .12); }
.delta-chip.down { color: var(--red); background: rgba(217, 138, 106, .12); }
.delta-chip.flat { color: var(--muted); background: rgba(140, 129, 117, .12); }

/* Today panel */
.today-split {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  gap: 16px;
}

.metric-stack {
  display: grid;
  gap: 14px;
}

.metric-line-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.metric-line-head > span:first-child {
  color: var(--cream);
  font-size: 13.5px;
}

.metric-line-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--gold-light);
  font-family: var(--mono);
  font-size: 13px;
}

.action-panel {
  display: grid;
  align-content: start;
  gap: 14px;
}

.action-lead {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.action-lead b {
  color: var(--cream);
  font-weight: 500;
}

.action-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.action-facts div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(215, 184, 111, .03);
}

.action-facts small {
  display: block;
  margin-bottom: 6px;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.action-facts b {
  color: var(--cream);
  font-size: 13px;
  font-weight: 500;
}

.action-panel .member-actions { margin-top: 2px; }

/* Reports panel */
.report-list {
  display: grid;
  gap: 8px;
}

.report-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(215, 184, 111, .028);
}

.report-row:hover {
  border-color: rgba(215, 184, 111, .32);
  background: rgba(215, 184, 111, .05);
}

.report-row-score {
  display: grid;
  place-items: center;
  height: 46px;
  border-radius: 8px;
  border: 1px solid rgba(215, 184, 111, .22);
  background: radial-gradient(circle, rgba(215, 184, 111, .12), rgba(8, 7, 6, .3) 70%);
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 24px;
}

.report-row-body b {
  display: block;
  color: var(--cream);
  font-weight: 500;
}

.report-row-body small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .01em;
}

.report-row .report-actions {
  margin: 0;
  flex-wrap: nowrap;
}

.note-card p:not(.system-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

/* Progress chart */
.chart-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.chart-head .system-label { margin: 0 0 4px; }

.chart-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
}

.chart-readout {
  text-align: right;
  min-width: 92px;
}

.chart-readout b {
  display: block;
  color: var(--gold-light);
  font-family: var(--serif);
  font-size: 34px;
  line-height: 1;
}

.chart-readout small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.chart-frame {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(6, 5, 4, .4);
  padding: 6px;
}

.score-chart {
  display: block;
  width: 100%;
  height: clamp(180px, 30vw, 232px);
}

.chart-grid {
  stroke: rgba(215, 184, 111, .1);
  stroke-width: 1;
}

.chart-axis {
  fill: var(--dim);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: .04em;
}

.chart-crosshair {
  stroke: rgba(215, 184, 111, .4);
  stroke-width: 1;
  stroke-dasharray: 3 4;
  opacity: 0;
  transition: opacity .12s ease;
}

.pt-dot {
  fill: var(--gold-light);
  stroke: #0B0A08;
  stroke-width: 2;
  transition: r .12s ease;
}

.pt-dot.latest { fill: #fff; }
.pt-dot.hot { r: 5.5; }
.pt-halo { fill: none; stroke: rgba(215, 184, 111, .3); stroke-width: 1; }
.pt-hit { fill: transparent; cursor: pointer; outline: none; }

.chart-foot {
  margin-top: 12px;
}

.chart-card .empty-note { margin-top: 12px; }

.trend-stack {
  display: grid;
  gap: 14px;
}

.trend-row-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.trend-row-head > span:first-child {
  color: var(--cream);
  font-size: 13.5px;
}

/* Privacy panel */
.privacy-split {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.privacy-facts {
  display: grid;
  gap: 12px;
}

.privacy-facts p:not(.system-label) {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
}

.boundary-card {
  border-color: rgba(215, 184, 111, .28);
  background:
    linear-gradient(180deg, rgba(215, 184, 111, .08), rgba(8, 7, 6, .32));
}

.pref-stack {
  display: grid;
  gap: 6px;
}

.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
}

.pref-row:last-child { border-bottom: 0; }

.pref-copy b {
  display: block;
  color: var(--cream);
  font-weight: 500;
  font-size: 14px;
}

.pref-copy small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  max-width: 44ch;
}

.pref-row.pref-disabled .pref-copy { opacity: .5; }

.pref-time {
  width: auto;
  min-height: 40px;
  flex: 0 0 auto;
  font-family: var(--mono);
  font-size: 13px;
}

/* Toggle switch */
.switch {
  position: relative;
  flex: 0 0 auto;
  width: 46px;
  height: 26px;
}

.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: auto;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.switch-track {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: rgba(12, 10, 8, .7);
  transition: background .18s ease, border-color .18s ease;
}

.switch-track::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--muted);
  transition: transform .2s cubic-bezier(.3, .8, .4, 1), background .18s ease;
}

.switch input:checked + .switch-track {
  border-color: transparent;
  background: linear-gradient(180deg, var(--gold-light), var(--gold-dark));
}

.switch input:checked + .switch-track::after {
  transform: translateX(20px);
  background: #1c1305;
}

.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--gold-light);
  outline-offset: 2px;
}

/* Fact lists (profile / support / admin activity) */
.fact-list {
  display: grid;
  gap: 6px;
}

.fact-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--line);
}

.fact-row:last-child { border-bottom: 0; }

.fact-row b {
  display: block;
  color: var(--cream);
  font-weight: 500;
  font-size: 13.5px;
}

.fact-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.fact-row em {
  flex: 0 0 auto;
  color: var(--gold-light);
  font-family: var(--sans);
  font-size: 10px;
  font-style: normal;
  letter-spacing: .1em;
  text-transform: uppercase;
}

/* Coming-soon rows — visibly distinct from live features */
.coming-soon-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 12px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: repeating-linear-gradient(135deg, rgba(140, 129, 117, .05) 0 8px, transparent 8px 16px);
  opacity: .72;
}

.coming-soon-row b {
  display: block;
  color: var(--muted);
  font-weight: 500;
  font-size: 13.5px;
}

.coming-soon-row small {
  display: block;
  margin-top: 4px;
  color: var(--dim);
  font-size: 12px;
  line-height: 1.45;
}

.soon-tag {
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--dim);
  font-family: var(--sans);
  font-size: 9px;
  font-style: normal;
  letter-spacing: .12em;
  text-transform: uppercase;
}

/* Profile / support grids */
.support-split {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.support-side {
  display: grid;
  gap: 16px;
}

.support-side p:not(.system-label) {
  margin: 0 0 4px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 13.5px;
}

.profile-card {
  display: block;
}

/* Admin two-step delete */
.danger-delete {
  color: var(--red);
  border-color: rgba(217, 138, 106, .5);
  background: rgba(217, 138, 106, .07);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.danger-delete.armed {
  color: #271008;
  background: linear-gradient(180deg, #e8a286, var(--red));
  border-color: transparent;
  animation: armPulse 1s ease-in-out infinite alternate;
}

@keyframes armPulse {
  from { box-shadow: 0 0 0 0 rgba(217, 138, 106, .4); }
  to { box-shadow: 0 0 0 4px rgba(217, 138, 106, 0); }
}

@media (max-width: 980px) {
  .topbar {
    grid-template-columns: auto minmax(0, 1fr) auto;
    height: auto;
  }

  .nav {
    overflow-x: auto;
    justify-content: flex-start;
  }

  .hero-grid,
  .teaser-grid,
  .auth-page,
  .report-layout,
  .command-layout,
  .onboarding-grid,
  .dossier-grid,
  .profile-grid {
    grid-template-columns: 1fr;
  }

  .interpretation-card,
  .dossier-metrics {
    grid-column: auto;
  }

  .instrument-card {
    min-height: auto;
  }

  .dashboard-grid,
  .metric-grid,
  .legal-grid,
  .product-grid,
  .admin-workbench,
  .today-split,
  .privacy-split,
  .support-split {
    grid-template-columns: 1fr;
  }

  .admin-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .wide {
    grid-column: auto;
  }

  .command-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .topbar {
    padding: 10px 12px;
    gap: 8px;
  }

  .brand {
    grid-template-columns: 34px auto;
  }

  .brand-mark {
    width: 34px;
    height: 34px;
  }

  .brand-word {
    font-size: 12px;
    letter-spacing: .26em;
  }

  .auth-slot {
    display: flex;
    gap: 5px;
  }

  .auth-slot .small {
    min-height: 34px;
    padding: 0 9px;
    font-size: 9px;
    letter-spacing: .1em;
  }

  .nav {
    order: 3;
    grid-column: 1 / -1;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 5px;
  }

  .nav button,
  .nav a {
    flex: 1 0 calc(25% - 5px);
    min-width: 74px;
    padding: 9px 7px;
    text-align: center;
    letter-spacing: .16em;
  }

  .screen {
    min-height: auto;
    width: 100%;
    max-width: 100vw;
    overflow: hidden;
    padding: 18px 12px 76px;
  }

  .hero-grid,
  .teaser-grid,
  .auth-page,
  .report-layout {
    min-height: auto;
  }

  h1 {
    max-width: min(100%, 330px);
    font-size: 34px;
    line-height: 1;
    overflow-wrap: break-word;
    word-break: normal;
    text-wrap: pretty;
  }

  h2 {
    max-width: min(100%, 330px);
    font-size: 34px;
    line-height: 1.03;
    overflow-wrap: break-word;
    text-wrap: pretty;
  }

  h3 {
    font-size: 18px;
  }

  .lead,
  .unlock-card p,
  .auth-copy p,
  .report-hero p {
    font-size: 16px;
    max-width: min(34ch, 100%);
    overflow-wrap: anywhere;
  }

  .auth-page,
  .auth-box,
  .fallback-auth,
  .fallback-auth p {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .auth-box {
    overflow: hidden;
  }

  .fallback-auth p {
    max-width: 300px;
  }

  .hero-actions,
  .unlock-actions {
    display: grid;
  }

  .hero-actions > *,
  .unlock-actions > *,
  .fallback-auth button,
  #finishOnboardingBtn,
  #saveReportBtn,
  #downloadReportBtn {
    width: 100%;
  }

  .instrument-card {
    padding: 18px;
  }

  .ring span {
    font-size: 58px;
  }

  .big-score,
  .report-score span {
    font-size: 94px;
  }

  .score-card,
  .unlock-card,
  .auth-box,
  .report-hero,
  .command-main {
    padding: 18px;
  }

  .command-main {
    min-height: 420px;
  }

  .admin-toolbar,
  .product-toolbar,
  .admin-summary {
    grid-template-columns: 1fr;
  }

  .admin-actions {
    justify-content: flex-start;
  }

  .command-sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    overflow: visible;
    padding: 10px;
  }

  .command-sidebar h2 {
    display: none;
  }

  .command-sidebar .system-label {
    grid-column: 1 / -1;
    margin: 0 0 4px;
    font-size: 10px;
  }

  .command-sidebar button {
    width: 100%;
    min-height: 36px;
    margin: 0;
    padding: 0 8px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    letter-spacing: .1em;
  }

  .dossier-head {
    display: grid;
  }

  .dossier-actions,
  .member-actions,
  .report-actions {
    display: grid;
    width: 100%;
    grid-template-columns: 1fr;
  }

  .dossier-actions > *,
  .member-actions > *,
  .report-actions > * {
    width: 100%;
  }

  .dossier-preview {
    grid-template-columns: 1fr;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }
}

@media print {
  html,
  body {
    background: #fff !important;
    color: #111 !important;
  }

  body::before,
  body::after,
  .noise,
  .topbar,
  .site-footer,
  .bottom-nav,
  .toast,
  .dossier-actions {
    display: none !important;
  }

  .screen {
    display: none !important;
    padding: 0 !important;
  }

  #report {
    display: block !important;
  }

  .report-dossier {
    box-shadow: none !important;
    border-color: #bbb !important;
    background: #fff !important;
    color: #111 !important;
  }

  .read-card,
  .interpretation-card,
  .projection-card,
  .protocol-stack,
  .signal-orb,
  .metric-card {
    box-shadow: none !important;
    background: #fff !important;
    color: #111 !important;
    border-color: #bbb !important;
  }
}

@media (max-width: 720px) {
  .command-main > h2 {
    font-size: 26px;
  }

  .chart-head {
    flex-direction: column;
    gap: 8px;
  }

  .chart-readout {
    text-align: left;
  }

  .report-row {
    grid-template-columns: 48px minmax(0, 1fr);
    grid-template-areas: "score body" "actions actions";
    row-gap: 10px;
  }

  .report-row-score { grid-area: score; }
  .report-row-body { grid-area: body; }

  .report-row .report-actions {
    grid-area: actions;
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .report-row .report-actions > * { width: 100%; }

  .action-facts {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px;
  }

  .action-facts div { padding: 8px; }

  .pref-row {
    align-items: flex-start;
  }

  .coming-soon-row,
  .fact-row {
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================================
   UNIFIED SITE CHROME — topbar + footer matching the homepage
   Source of truth: mi-landing .nav / .nav__links / .nav__theme / .footer
   ============================================================ */
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: block;
  min-height: 0;
  padding: 0;
  gap: 0;
  /* No backdrop-filter: matches the homepage (Chromium paints the whole page black under page zoom with it) */
  backdrop-filter: none;
  border-bottom: 1px solid var(--line);
  background: rgba(11, 10, 8, 0.92);
}
.topbar__inner {
  max-width: 1240px;
  margin-inline: auto;
  padding: 16px clamp(20px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-monogram { width: 40px; height: 40px; opacity: .95; display: block; }

/* center nav links — homepage .nav__links metrics */
.member-nav {
  display: flex;
  justify-content: center;
  gap: clamp(24px, 3vw, 44px);
  margin-inline: auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.member-nav::-webkit-scrollbar { display: none; }
.member-nav a,
.member-nav button {
  min-height: auto;
  padding: 4px 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--cream);
  opacity: .85;
  cursor: pointer;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 12.5px;
  letter-spacing: .16em;
  text-transform: uppercase;
  white-space: nowrap;
  text-decoration: none;
  transition: opacity .25s, color .25s;
}
.member-nav a:hover,
.member-nav button:hover,
.member-nav button.active {
  opacity: 1;
  color: var(--gold-light);
  background: transparent;
  transform: none;
}
.member-nav button.active {
  box-shadow: inset 0 -1px 0 rgba(215, 184, 111, .5);
}

.topbar__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* theme toggle — homepage .nav__theme (42px bordered square, sun icon) */
.nav__theme {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--gold-light);
  cursor: pointer;
  transition: border-color .25s;
}
.nav__theme:hover { border-color: var(--gold); transform: none; }
.nav__theme .ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}

@media (max-width: 720px) {
  .topbar__inner {
    flex-wrap: wrap;
    padding: 12px clamp(14px, 4vw, 20px);
    gap: 10px;
  }
  .member-nav {
    order: 3;
    flex: 1 0 100%;
    justify-content: flex-start;
    margin-inline: 0;
    gap: 20px;
  }
  .member-nav a,
  .member-nav button {
    flex: 0 0 auto;
    min-width: 0;
    padding: 4px 2px;
    text-align: left;
    font-size: 11.5px;
  }
  .topbar__actions { gap: 8px; }
}

.site-footer {
  display: block;
  padding: 48px clamp(20px, 5vw, 56px) 36px;
  background: var(--black);
  border-top: 1px solid var(--line);
}
.site-footer__inner {
  max-width: 1240px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__brand img { width: 56px; height: 56px; opacity: .95; display: block; }
.site-footer__social { display: flex; gap: 28px; }
.site-footer__social a,
.site-footer__legal-links a {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cream);
  opacity: .85;
  text-decoration: none;
}
.site-footer__social a:hover,
.site-footer__legal-links a:hover { opacity: 1; color: var(--gold-light); }
.site-footer__legal-links {
  max-width: 1240px;
  margin: 22px auto 0;
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
}
.site-footer__copyright {
  max-width: 1240px;
  margin: 22px auto 0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: right;
}

/* ============================================================
   BRONZE THEME (day treatment) — toggled via html[data-theme="bronze"]
   Mirrors the homepage bronze mode; remaps app tokens onto the
   cream/gold "NOCTIS - 3 versions" warm palette.
   ============================================================ */
html[data-theme="bronze"] {
  color-scheme: dark;
  --black:       #352C24;   /* landing bronze --bg */
  --black2:      #3E342B;   /* landing bronze --bg-2 */
  --ink:         #5B4C3E;   /* landing bronze --surface */
  --panel:       rgba(91, 76, 62, .82);
  --panel2:      rgba(62, 52, 43, .8);
  --cream:       #F1EADD;
  --muted:       #C0B09C;
  --dim:         #A99C88;
  --gold:        #C9A15F;
  --gold-light:  #D7B86F;
  --gold-dark:   #A9834C;
  --line:        rgba(236, 228, 214, 0.16);
  --line-strong: rgba(236, 228, 214, 0.24);
  --line-soft:   rgba(201, 161, 95, 0.22);
}

html[data-theme="bronze"] body {
  background: #352C24 url("texture-bronze.png") center/cover fixed no-repeat;
}

/* chrome */
html[data-theme="bronze"] .topbar { background: rgba(48, 40, 34, 0.94); }
html[data-theme="bronze"] .site-footer {
  background: #241F1A;
  border-top-color: rgba(236, 228, 214, 0.08);
}

/* feature panels — lift near-black surfaces to a deliberate raised bronze */
html[data-theme="bronze"] .instrument-card,
html[data-theme="bronze"] .report-dossier {
  background:
    linear-gradient(180deg, rgba(107, 90, 73, .93), rgba(74, 61, 49, .96)),
    repeating-linear-gradient(0deg, rgba(231, 207, 149, .05) 0 1px, transparent 1px 4px);
  border-color: rgba(236, 228, 214, 0.14);
}
html[data-theme="bronze"] .command-sidebar,
html[data-theme="bronze"] .panel-card,
html[data-theme="bronze"] .product-card,
html[data-theme="bronze"] .mini-card,
html[data-theme="bronze"] .boundary-card,
html[data-theme="bronze"] .status-rail article,
html[data-theme="bronze"] .admin-email-log,
html[data-theme="bronze"] .legal-grid article,
html[data-theme="bronze"] .protocol-stack button,
html[data-theme="bronze"] .admin-tabs button {
  background: linear-gradient(180deg, rgba(101, 84, 68, .70), rgba(70, 58, 47, .82));
  border-color: rgba(236, 228, 214, 0.12);
}
html[data-theme="bronze"] .panel-score {
  background:
    radial-gradient(circle, rgba(159, 185, 138, .14), transparent 48%),
    linear-gradient(180deg, rgba(215, 184, 111, .14), rgba(70, 58, 47, .84));
  border-color: rgba(236, 228, 214, 0.14);
}
html[data-theme="bronze"] .protocol-stack button.active,
html[data-theme="bronze"] .protocol-stack button:focus-visible,
html[data-theme="bronze"] .admin-tabs button.active {
  background:
    linear-gradient(90deg, rgba(215, 184, 111, .2), rgba(159, 185, 138, .1)),
    rgba(70, 58, 47, .86);
  border-color: rgba(215, 184, 111, .5);
}

/* inputs, chart wells, toggles */
html[data-theme="bronze"] input,
html[data-theme="bronze"] select { background: rgba(52, 43, 34, .55); }
html[data-theme="bronze"] .chart-frame { background: rgba(52, 43, 34, .5); }
html[data-theme="bronze"] .switch-track { background: rgba(46, 38, 30, .78); }

/* floating chrome */
html[data-theme="bronze"] .toast { background: rgba(46, 38, 30, .96); }
html[data-theme="bronze"] .bottom-nav { background: rgba(46, 38, 30, .9); }

/* topbar metric parity with the homepage bar (79px: 46px controls + 16px padding) */
.topbar .auth-slot .small {
  min-height: 46px;
  padding: 0 20px;
  font-size: 13px;
}
.topbar .user-chip {
  display: inline-flex;
  height: 46px;
  box-sizing: border-box;
}
.topbar .user-chip.hidden { display: none !important; }

/* ============================================================
   AUTH/GUEST SCREEN COMPOSITION FIXES
   ============================================================ */
/* guest nav links mirror the homepage menu; hide once signed in */
body[data-auth-state="signed-in"] .guest-only { display: none !important; }

/* no floating quick-nav pill for visitors, at any width */
body:not([data-auth-state="signed-in"]) .bottom-nav { display: none !important; }

/* auth content starts high instead of drowning mid-viewport */
.auth-page {
  min-height: 0;
  align-items: start;
  padding-top: clamp(16px, 5vh, 56px);
}
.screen#auth { min-height: calc(100vh - 76px - 140px); }
