/* Layout concept: hard-edged frames lifted from the 100/0 mark; the logo's 60° "cut" is the one
   recurring motif (buttons, bars, transitions). Night-navy brand surfaces for immersive moments,
   quiet steel-gray workspace everywhere else. */
:root {
  /* brand constants (same in both themes) */
  --navy: #093266;
  --navy-deep: #061f40;
  --night: #030b17;
  --night-2: #071628;
  --graphite: #3c3c3b;
  --steel: #d1d3d4;
  --zero: #c9cacb;
  --on-night: #eef1f5;
  --on-night-muted: #93a1b5;
  --night-line: rgba(209, 211, 212, 0.14);

  /* theme tokens: light */
  --bg: #f5f5f7;          /* studio mist: app canvas + feature bands */
  --canvas: #ffffff;      /* gallery white: editorial sections */
  --band: #f5f5f7;
  --surface: #ffffff;     /* cards */
  --surface-2: #f5f5f7;   /* cards nested inside white */
  --surface-3: #ececf0;
  --line: #d6d6d6;        /* hairline silver */
  --fg: #1d1d1f;          /* ink */
  --muted: #6e6e73;
  --steel: #a1a1a6;       /* the grey "0" half of a numeral */
  --label: #b64400;       /* bare status label, no pill */
  --r-card: 28px;
  --r-inner: 20px;
  --r-field: 12px;
  --accent: #093266;
  --accent-ink: #ffffff;
  --accent-soft: #e3e9f2;
  --good: #24704f;
  --good-soft: #e2f0e9;
  --warn: #9a6512;
  --warn-soft: #f6ecd9;
  --crit: #a43a33;
  --crit-soft: #f6e2e0;

  --font: "Hanken Grotesk", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --cut: 14px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --shadow: 0 1px 0 rgba(10, 14, 20, .04), 0 12px 32px -18px rgba(9, 50, 102, .35);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #05090f; --canvas: #05090f; --band: #0a1019; --surface: #111a26; --surface-2: #18222f; --surface-3: #1f2a38; --line: #26313f; --steel: #5d6878; --label: #ff9b5c;
    --fg: #e8ecf1; --muted: #93a0b0; --accent: #85a8de; --accent-ink: #04101f; --accent-soft: #12233a;
    --good: #5fc193; --good-soft: #0f2a20; --warn: #e2ad57; --warn-soft: #2c2210; --crit: #ec8a82; --crit-soft: #2f1513;
    --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -20px rgba(0, 0, 0, .8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #05090f; --canvas: #05090f; --band: #0a1019; --surface: #111a26; --surface-2: #18222f; --surface-3: #1f2a38; --line: #26313f; --steel: #5d6878; --label: #ff9b5c;
  --fg: #e8ecf1; --muted: #93a0b0; --accent: #85a8de; --accent-ink: #04101f; --accent-soft: #12233a;
  --good: #5fc193; --good-soft: #0f2a20; --warn: #e2ad57; --warn-soft: #2c2210; --crit: #ec8a82; --crit-soft: #2f1513;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -20px rgba(0, 0, 0, .8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--fg);
  font-family: var(--font); font-size: 16px; line-height: 1.55; font-weight: 400;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.08; text-wrap: balance; font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.light { font-weight: 300; }
.mono { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; }
.eyebrow {
  font-family: var(--mono); font-size: 12px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted);
}
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
@media (max-width: 560px) { .wrap { padding-inline: 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Buttons: the cut ---------- */
.btn {
  --b: var(--accent); --i: var(--accent-ink);
  display: inline-flex; align-items: center; gap: 10px; justify-content: center;
  min-height: 48px; padding: 0 28px 0 22px; border: 0; text-decoration: none;
  background: var(--b); color: var(--i); font-weight: 600; font-size: 15px; letter-spacing: .01em;
  clip-path: polygon(0 0, 100% 0, calc(100% - var(--cut)) 100%, 0 100%);
  transition: transform .25s var(--ease), filter .25s var(--ease), background .25s;
  white-space: nowrap;
}
.btn:hover { filter: brightness(1.12); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 18px; height: 18px; transition: transform .25s var(--ease); }
.btn:hover svg.go { transform: translateX(4px); }
.btn.ghost { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1.5px var(--line); clip-path: none; padding: 0 20px; }
.btn.ghost:hover { box-shadow: inset 0 0 0 1.5px var(--fg); filter: none; }
.btn.sm { min-height: 38px; font-size: 14px; padding: 0 20px 0 16px; --cut: 10px; }
.btn.ghost.sm { padding: 0 14px; }
.btn.white { --b: #fff; --i: var(--navy); }
.btn.night-ghost { background: transparent; color: var(--on-night); box-shadow: inset 0 0 0 1.5px rgba(238, 241, 245, .3); clip-path: none; padding: 0 22px; }
.btn.night-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--on-night); filter: none; }
.btn.danger { --b: var(--crit); --i: #fff; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; font-size: 14px; }
.linkbtn:hover { color: var(--fg); }

/* ---------- Logo ---------- */
.logo { display: block; height: auto; color: var(--fg); }
.logo .lg-zero { color: var(--zero); }
.on-night .logo, .logo.white { color: #fff; }
.on-night .logo .lg-zero, .logo.white .lg-zero, .topbar .logo .lg-zero, .immersive .logo .lg-zero { color: rgba(255, 255, 255, .34); }
.topbar .logo, .immersive .logo { color: #fff; }

/* ---------- Prototype view switcher ---------- */
.proto {
  position: fixed; z-index: 90; left: 50%; transform: translateX(-50%);
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 2px; padding: 4px;
  background: rgba(3, 11, 23, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--night-line); color: var(--on-night); box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}
.proto span { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--on-night-muted); padding: 0 10px 0 8px; }
.proto a { font-size: 13px; font-weight: 600; padding: 7px 12px; text-decoration: none; color: var(--on-night-muted); }
.proto a.on { background: #fff; color: var(--navy); }
.proto a:hover:not(.on) { color: #fff; }
.proto .reset { border-left: 1px solid var(--night-line); margin-left: 4px; }
@media (max-width: 520px) { .proto span { display: none; } .proto a { padding: 7px 9px; font-size: 12px; } }
.proto.hide { display: none; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 100; top: calc(16px + env(safe-area-inset-top, 0px)); left: 50%;
  transform: translate(-50%, -140%); transition: transform .45s var(--ease);
  background: var(--night); color: var(--on-night); padding: 12px 22px 12px 16px; font-weight: 600; font-size: 14px;
  display: flex; gap: 10px; align-items: center; border: 1px solid var(--night-line);
  clip-path: polygon(0 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}
.toast.show { transform: translate(-50%, 0); }
.toast i { width: 18px; height: 3px; background: #fff; transform: skewX(-30deg); display: block; }

/* =========================================================
   SALES PAGE
   ========================================================= */
.on-night { background: var(--night); color: var(--on-night); }
.on-night .eyebrow { color: var(--on-night-muted); }
.s-nav { position: absolute; z-index: 5; top: 0; left: 0; right: 0; padding-block: 22px; }
.s-nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.s-nav .logo { width: 104px; }
.s-nav nav { display: flex; gap: 26px; align-items: center; font-size: 14px; }
.s-nav nav a:not(.btn) { color: var(--on-night-muted); text-decoration: none; }
.s-nav nav a:not(.btn):hover { color: #fff; }
@media (max-width: 760px) { .s-nav nav a:not(.btn):not(.signin) { display: none; } }

.hero { position: relative; overflow: hidden; padding-block: 150px 80px; isolation: isolate; }
.hero::before { /* forest dark gradient */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background:
    radial-gradient(80% 70% at 78% 35%, rgba(9, 50, 102, .75), transparent 70%),
    radial-gradient(60% 60% at 10% 100%, rgba(9, 50, 102, .35), transparent 70%),
    linear-gradient(180deg, #030b17 0%, #041427 100%);
}
.hero canvas { position: absolute; inset: 0; z-index: -1; width: 100%; height: 100%; }
.hero-grid { display: grid; grid-template-columns: 1.25fr .9fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(56px, 10vw, 132px); letter-spacing: -0.045em; line-height: .9; margin-top: 18px; }
.hero h1 .light { color: var(--on-night-muted); }
.hero .lede { margin-top: 28px; max-width: 34ch; font-size: clamp(18px, 2vw, 22px); font-weight: 300; color: #cdd6e2; line-height: 1.45; }
.hero .ctas { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-mark { position: relative; }
.hero-mark .logo { width: 100%; max-width: 440px; margin-left: auto; }
.hero-mark figcaption { margin-top: 18px; font-size: 14px; color: var(--on-night-muted); max-width: 38ch; margin-left: auto; text-align: right; }
.hero-stats { margin-top: 72px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--night-line); }
.hero-stats div { padding: 20px 16px 0 0; }
.hero-stats b { display: block; font-size: 30px; font-weight: 700; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-stats span { font-size: 13px; color: var(--on-night-muted); }
@media (max-width: 860px) {
  .hero { padding-block: 116px 56px; }
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-mark { order: -1; } .hero-mark .logo { max-width: 220px; margin-left: 0; }
  .hero-mark figcaption { display: none; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); row-gap: 18px; margin-top: 48px; }
}

.s-sec { padding-block: 104px; background: var(--canvas); }
.s-sec.band { background: var(--band); }
.s-sec.on-night { background: var(--night); }
.s-sec.tight { padding-block: 72px; }
.s-head { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: end; margin-bottom: 56px; }
.s-head h2 { font-size: clamp(34px, 5vw, 60px); letter-spacing: -0.035em; margin-top: 12px; }
.s-head p { font-size: 18px; color: var(--muted); max-width: 46ch; font-weight: 300; }
.on-night .s-head p { color: var(--on-night-muted); }
@media (max-width: 760px) { .s-sec { padding-block: 72px; } .s-head { grid-template-columns: 1fr; margin-bottom: 36px; } }

.numeral { display: flex; align-items: baseline; font-weight: 600; letter-spacing: -0.045em; line-height: 1; color: var(--accent); font-variant-numeric: tabular-nums; font-size: 64px; }
.numeral i { font-style: normal; font-weight: 300; color: var(--steel); font-size: .42em; letter-spacing: -0.01em; margin-left: .12em; }
.numeral.sm { font-size: 34px; }
.ticks { display: flex; gap: 4px; }
.ticks i { flex: 1; height: 3px; border-radius: 2px; background: var(--surface-3); }
.ticks i.on { background: var(--accent); }

.ceiling { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.ceiling article { background: var(--surface); border-radius: var(--r-card); padding: 40px 36px 44px; display: grid; gap: 18px; align-content: start; }
.ceiling .tag { font-size: 12px; font-weight: 600; color: var(--label); letter-spacing: -0.01em; }
.ceiling h3 { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.ceiling p { color: var(--muted); font-size: 17px; line-height: 1.47; letter-spacing: -0.01em; }
@media (max-width: 760px) { .ceiling { grid-template-columns: 1fr; } }

.pillars { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--night-line); }
.pillars article { padding: 34px 28px 0 0; display: grid; gap: 12px; align-content: start; }
.pillars article + article { padding-left: 28px; border-left: 1px solid var(--night-line); }
.pillars article:nth-child(3n + 1) { padding-left: 0; border-left: 0; }
.pillars article:nth-child(n + 4) { padding-top: 40px; }
.pillars h3 { font-size: clamp(30px, 3.4vw, 42px); letter-spacing: -0.035em; }
.pillars p { color: var(--on-night-muted); max-width: 32ch; }
.pillars .bar { height: 6px; width: 64px; background: #fff; transform: skewX(-30deg); transform-origin: left; }
@media (max-width: 760px) { .pillars { grid-template-columns: 1fr; } .pillars article:nth-child(n) { padding-top: 0; } .pillars article + article { padding-left: 0; border-left: 0; border-top: 1px solid var(--night-line); margin-top: 28px; } }
.cut-story { margin-top: 72px; display: grid; grid-template-columns: 220px 1fr; gap: 40px; align-items: center; padding-top: 48px; border-top: 1px solid var(--night-line); }
.cut-story p { font-size: clamp(20px, 2.3vw, 28px); font-weight: 300; line-height: 1.35; max-width: 40ch; }
.cut-story p b { font-weight: 700; }
@media (max-width: 760px) { .cut-story { grid-template-columns: 1fr; gap: 20px; } .cut-story .logo { max-width: 160px; } }

.path { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.path article {
  background: var(--surface); border-radius: var(--r-card); padding: 32px 32px 30px; display: grid; gap: 12px; align-content: start;
  transition: transform .4s var(--ease);
}
.path article:hover { transform: translateY(-4px); }
.path .numeral { margin-bottom: 14px; }
.path h3 { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; }
.path p { font-size: 16px; color: var(--muted); line-height: 1.47; }
.path .ticks { margin-top: auto; padding-top: 16px; }
@media (max-width: 960px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .path { grid-template-columns: 1fr; } .path article { padding: 28px 26px; } }

.curr { border-top: 1px solid var(--line); }
.curr details { border-bottom: 1px solid var(--line); }
.curr summary {
  list-style: none; cursor: pointer; display: grid; grid-template-columns: 72px 1fr auto 28px; gap: 16px; align-items: center; padding: 22px 0;
}
.curr summary::-webkit-details-marker { display: none; }
.curr summary .m { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.curr summary h3 { font-size: clamp(20px, 2.4vw, 28px); letter-spacing: -0.025em; }
.curr summary h3 .light { color: var(--muted); }
.curr summary .count { font-size: 13px; color: var(--muted); font-family: var(--mono); }
.curr summary .pm { width: 18px; height: 18px; position: relative; }
.curr summary .pm::before, .curr summary .pm::after { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--fg); transition: transform .3s var(--ease); }
.curr summary .pm::after { transform: rotate(90deg); }
.curr details[open] .pm::after { transform: rotate(0); }
.curr ol { list-style: none; margin: 0 0 28px 88px; padding: 6px 24px; display: grid; background: var(--band); border-radius: var(--r-inner); }
.curr li { display: grid; grid-template-columns: 1fr auto; gap: 16px; padding: 14px 0; }
.curr li + li { border-top: 1px solid var(--line); }
.curr li b { font-weight: 600; }
.curr li small { color: var(--muted); font-family: var(--mono); font-size: 12px; }
.curr li p { font-size: 14px; color: var(--muted); }
@media (max-width: 640px) { .curr summary { grid-template-columns: 48px 1fr 22px; } .curr summary .count { display: none; } .curr ol { margin-left: 0; } }

.outcomes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.outcomes article { display: grid; gap: 10px; align-content: start; background: var(--surface); border-radius: var(--r-card); padding: 32px 28px 34px; }
.outcomes b { font-size: clamp(48px, 5.5vw, 68px); font-weight: 600; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent); margin-bottom: 10px; }
.outcomes h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.outcomes p { font-size: 14.5px; color: var(--muted); }
@media (max-width: 860px) { .outcomes { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .outcomes { grid-template-columns: 1fr; } }

.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.steps article { background: var(--surface); border-radius: var(--r-card); padding: 30px 28px 32px; display: grid; gap: 10px; align-content: start; }
.steps .numeral { margin-bottom: 12px; }
.s-sec:not(.band) .steps article { background: var(--band); }
.steps h3 { font-size: 21px; font-weight: 600; letter-spacing: -0.02em; }
.steps p { font-size: 15.5px; color: var(--muted); line-height: 1.47; }
@media (max-width: 860px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .steps { grid-template-columns: 1fr; } }

.coach { display: grid; grid-template-columns: 360px 1fr; gap: 56px; align-items: start; }
.coach-photo {
  aspect-ratio: 4 / 5; max-width: 100%; background: linear-gradient(160deg, var(--navy) 0%, var(--night) 100%);
  display: grid; place-items: center; position: relative; overflow: hidden; color: #fff;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 44px), calc(100% - 26px) 100%, 0 100%);
}
.coach-photo .logo { width: 62%; opacity: .14; }
.coach-photo span { position: absolute; left: 18px; bottom: 16px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.coach h2 { font-size: clamp(34px, 4.5vw, 54px); letter-spacing: -0.035em; margin-top: 10px; }
.coach .role { margin-top: 6px; color: var(--muted); }
.coach .bio { margin-top: 26px; display: grid; gap: 16px; font-size: 17.5px; max-width: 58ch; }
.draft { display: inline-block; margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; background: var(--warn-soft); color: var(--warn); }
@media (max-width: 860px) { .coach { grid-template-columns: 1fr; gap: 28px; } .coach-photo { max-width: 320px; } }

.faq { border-top: 1px solid var(--line); max-width: 860px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-size: 19px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 16px; font-size: 26px; font-weight: 300; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 64ch; }

.final { text-align: left; position: relative; overflow: hidden; }
.final h2 { font-size: clamp(44px, 8vw, 112px); letter-spacing: -0.05em; line-height: .92; max-width: 12ch; }
.final h2 .light { color: var(--on-night-muted); }
.final .row { margin-top: 40px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.final .slash { position: absolute; right: -6%; top: -20%; bottom: -20%; width: 34%; background: linear-gradient(180deg, rgba(9, 50, 102, .9), rgba(9, 50, 102, .2)); transform: skewX(-30deg); pointer-events: none; }
.s-foot { padding-block: 40px 96px; border-top: 1px solid var(--night-line); font-size: 13px; color: var(--on-night-muted); }
.s-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.s-foot .logo { width: 72px; }

/* Apply modal */
.modal-back { position: fixed; inset: 0; z-index: 80; background: rgba(3, 11, 23, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal {
  width: 100%; max-width: 520px; background: var(--night); color: var(--on-night); border: 1px solid var(--night-line); padding: 36px 32px 32px;
  clip-path: polygon(0 0, calc(100% - 32px) 0, 100% 32px, 100% 100%, 0 100%); position: relative;
}
.modal h2 { font-size: 34px; letter-spacing: -0.03em; margin-top: 8px; }
.modal > p { color: var(--on-night-muted); margin-top: 10px; }
.modal form { display: grid; gap: 16px; margin-top: 26px; }
.modal .x { position: absolute; top: 14px; right: 40px; background: none; border: 0; color: var(--on-night-muted); font-size: 26px; line-height: 1; }
.nfield { display: grid; gap: 6px; }
.nfield label { font-size: 13px; color: var(--on-night-muted); }
.nfield input, .nfield select {
  background: transparent; border: 0; border-bottom: 1.5px solid rgba(238, 241, 245, .25); color: #fff; padding: 10px 0; font-size: 18px; border-radius: 0; outline: none;
}
.nfield select option { color: #000; }
.nfield input:focus, .nfield select:focus { border-bottom-color: #fff; }
.modal .fine { font-size: 12.5px; color: var(--on-night-muted); }

/* =========================================================
   APP SHELL (member + coach)
   ========================================================= */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: var(--night); color: var(--on-night);
  border-bottom: 1px solid var(--night-line);
}
.topbar .wrap { display: flex; align-items: center; gap: 22px; min-height: 64px; max-width: 1320px; }
.topbar .logo { width: 70px; }
.topbar .prog-name { font-size: 13px; color: var(--on-night-muted); padding-left: 18px; border-left: 1px solid var(--night-line); white-space: nowrap; }
.topbar .prog-name b { color: #fff; font-weight: 600; }
.topbar nav { display: flex; gap: 4px; margin-left: auto; }
.topbar nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--on-night-muted); padding: 8px 12px; }
.topbar nav a.on { color: #fff; box-shadow: inset 0 -2px 0 #fff; }
.topbar nav a:hover { color: #fff; }
.avatar { width: 34px; height: 34px; display: grid; place-items: center; font-size: 13px; font-weight: 700; background: var(--navy); color: #fff; flex: none; }
.avatar.lg { width: 64px; height: 64px; font-size: 22px; }
@media (max-width: 700px) { .topbar .prog-name { display: none; } .topbar nav a { padding: 8px 8px; font-size: 13px; } .topbar .wrap { gap: 12px; } }

.app-main { padding-block: 40px 120px; }
.app-main .wrap { max-width: 1320px; }
.page-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 32px; }
.page-head h1 { font-size: clamp(32px, 4.4vw, 52px); letter-spacing: -0.035em; margin-top: 8px; }
.page-head h1 .light { color: var(--muted); }
.page-head p { color: var(--muted); margin-top: 8px; }

.panel { background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.panel-pad { padding: 26px; }
.panel h2 { font-size: 20px; letter-spacing: -0.015em; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 22px 28px 18px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 19px; font-weight: 600; letter-spacing: -0.02em; }

/* Member dashboard */
.dash { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; }
.dash > * { min-width: 0; }
@media (max-width: 960px) { .dash { grid-template-columns: 1fr; } }
.next {
  border-radius: var(--r-card);
  position: relative; overflow: hidden; background: var(--night); color: var(--on-night); padding: 32px; display: grid; grid-template-columns: auto 1fr; gap: 32px; align-items: center;
  border: 1px solid var(--night-line);
}
.next::after { content: ""; position: absolute; right: -40px; top: -20%; bottom: -20%; width: 200px; background: linear-gradient(180deg, rgba(9, 50, 102, .8), rgba(9, 50, 102, .1)); transform: skewX(-30deg); }
.next > * { position: relative; z-index: 1; min-width: 0; }
.next h2 { font-size: clamp(24px, 3vw, 34px); letter-spacing: -0.03em; margin: 8px 0 8px; }
.next p { color: var(--on-night-muted); max-width: 48ch; }
.next .btn { margin-top: 20px; }
@media (max-width: 600px) { .next { grid-template-columns: 1fr; gap: 20px; padding: 24px; } }
.ring { width: 132px; height: 132px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .trk { fill: none; stroke: rgba(238, 241, 245, .12); stroke-width: 8; }
.ring .val { fill: none; stroke: #fff; stroke-width: 8; stroke-linecap: butt; transition: stroke-dashoffset 1.4s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font-size: 32px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.ring .lbl small { display: block; font-size: 11px; color: var(--on-night-muted); font-family: var(--mono); letter-spacing: .08em; margin-top: 4px; }

.tasks { display: grid; gap: 1px; background: var(--line); }
.task { display: grid; grid-template-columns: 40px 1fr auto; gap: 14px; align-items: center; padding: 16px 20px; background: var(--surface); text-decoration: none; transition: background .2s; }
.task:hover { background: var(--surface-2); }
.task .st { width: 32px; height: 32px; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--muted); border-radius: 10px; }
.task .st svg { width: 16px; height: 16px; }
.task.done .st { background: var(--good); border-color: var(--good); color: #fff; }
.task.part .st { border-color: var(--warn); color: var(--warn); }
.task h3 { font-size: 15.5px; font-weight: 600; letter-spacing: 0; }
.task p { font-size: 13px; color: var(--muted); }
.task .arrow { color: var(--muted); }
.task .arrow svg { width: 18px; height: 18px; }

.rev { padding: 22px 22px 24px; display: grid; gap: 14px; }
.rev .row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.rev .row b { font-size: 26px; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.rev .row span { color: var(--muted); font-size: 13px; }
.slashbar { height: 10px; background: var(--surface-3); position: relative; overflow: hidden; border-radius: 99px; }
.slashbar i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--accent); width: 0; transition: width 1.2s var(--ease); clip-path: polygon(0 0, 100% 0, calc(100% - 8px) 100%, 0 100%); }
.slashbar.sm { height: 6px; }
.slashbar.sm i { clip-path: polygon(0 0, 100% 0, calc(100% - 5px) 100%, 0 100%); }
.slashbar .tick { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line); }
.rev .scale { display: flex; justify-content: space-between; font-family: var(--mono); font-size: 11px; color: var(--muted); }

.months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
@media (max-width: 960px) { .months { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .months { grid-template-columns: 1fr; } }
.month {
  display: grid; gap: 10px; align-content: start; padding: 24px 24px 22px; background: var(--surface-2); border-radius: var(--r-inner); text-decoration: none;
  transition: transform .35s var(--ease), background .3s; position: relative;
}
.month:hover { transform: translateY(-3px); background: var(--surface-3); }
.month .top { align-items: flex-start; margin-bottom: 6px; }
.month .top { display: flex; justify-content: space-between; align-items: center; }
.month .n { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .08em; }
.month .pill { font-size: 11.5px; }
.month h3 { font-size: 22px; font-weight: 600; letter-spacing: -0.025em; }
.month .theme { color: var(--muted); font-size: 14.5px; margin-top: -4px; }
.month .meta { display: flex; flex-wrap: wrap; gap: 4px 12px; justify-content: space-between; font-size: 12.5px; color: var(--muted); font-family: var(--mono); margin-top: 6px; }

.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 3px 9px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.pill.good { background: var(--good-soft); color: var(--good); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }
.pill.acc { background: var(--accent-soft); color: var(--accent); }
.pill::before { content: ""; width: 6px; height: 6px; background: currentColor; transform: skewX(-20deg); }
.pill.plain::before { display: none; }

/* Lesson player */
.player { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: calc(100vh - 64px); }
.side { background: var(--surface); border-right: 1px solid var(--line); position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); height: calc(100vh - 64px); overflow-y: auto; }
.side .back { display: flex; gap: 8px; align-items: center; padding: 18px 20px; font-size: 14px; color: var(--muted); text-decoration: none; border-bottom: 1px solid var(--line); }
.side .back svg { width: 16px; height: 16px; }
.side .back:hover { color: var(--fg); }
.side .sum { padding: 18px 20px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.side .sum .row { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); }
.side details { border-bottom: 1px solid var(--line); }
.side summary { list-style: none; cursor: pointer; padding: 14px 20px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.side summary::-webkit-details-marker { display: none; }
.side summary small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .08em; }
.side summary b { font-size: 15px; }
.side summary .c { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.side ol { list-style: none; margin: 0; padding: 0 0 8px; }
.side li a { display: grid; grid-template-columns: 22px 1fr; gap: 10px; padding: 9px 20px 9px 20px; text-decoration: none; font-size: 14px; color: var(--muted); align-items: start; line-height: 1.35; }
.side li a:hover { background: var(--surface-2); color: var(--fg); }
.side li a.on { background: var(--accent-soft); color: var(--fg); box-shadow: inset 3px 0 0 var(--accent); }
.side li .ck { width: 18px; height: 18px; border: 1.5px solid var(--line); display: grid; place-items: center; margin-top: 1px; }
.side li .ck svg { width: 12px; height: 12px; }
.side li.done .ck { background: var(--good); border-color: var(--good); color: #fff; }
.lesson { padding: 40px 56px 140px; max-width: 920px; width: 100%; }
.side-toggle { display: none; }
@media (max-width: 900px) {
  .player { grid-template-columns: 1fr; }
  .side { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: min(330px, 88vw); height: 100%; transform: translateX(-105%); transition: transform .35s var(--ease); padding-top: env(safe-area-inset-top, 0px); }
  .side.open { transform: none; box-shadow: 20px 0 50px rgba(0, 0, 0, .3); }
  .side-toggle { display: inline-flex; margin-bottom: 18px; }
  .lesson { padding: 26px 0 140px; }
  .lesson-wrap { padding-inline: 16px; }
}
.crumb { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.lesson h1 { font-size: clamp(30px, 4.2vw, 46px); letter-spacing: -0.035em; margin-top: 12px; }
.lesson .meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; color: var(--muted); font-size: 14px; align-items: center; }
.lesson .meta span { display: inline-flex; gap: 6px; align-items: center; }
.lesson .meta svg { width: 16px; height: 16px; }
.lesson .summary { font-size: 19px; font-weight: 300; margin-top: 18px; max-width: 60ch; }
.video {
  margin-top: 30px; border-radius: var(--r-card); aspect-ratio: 16 / 9; max-width: 100%; background: radial-gradient(70% 90% at 70% 30%, var(--navy), var(--night));
  position: relative; display: grid; place-items: center; overflow: hidden; color: #fff;
}
.video .playbtn { width: 84px; height: 84px; background: #fff; color: var(--navy); display: grid; place-items: center; border: 0; clip-path: polygon(0 0, 100% 0, calc(100% - 16px) 100%, 0 100%); transition: transform .3s var(--ease); }
.video .playbtn:hover { transform: scale(1.06); }
.video .playbtn svg { width: 30px; height: 30px; margin-left: 4px; }
.video .vt { position: absolute; left: 22px; bottom: 18px; right: 22px; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--on-night-muted); }
.video .vt b { color: #fff; font-weight: 600; }
.video .logo { position: absolute; right: 22px; top: 20px; width: 64px; opacity: .5; }
.video .note { position: absolute; inset: auto 0 0 0; padding: 14px 22px; background: rgba(3, 11, 23, .8); font-size: 14px; transform: translateY(100%); transition: transform .4s var(--ease); }
.video.tapped .note { transform: none; }

.prose { margin-top: 34px; font-size: 17.5px; line-height: 1.7; max-width: 66ch; display: grid; gap: 18px; }
.prose h3 { font-size: 23px; letter-spacing: -0.02em; margin-top: 14px; }
.prose ul, .prose ol { margin: 0; padding-left: 22px; display: grid; gap: 8px; }
.prose li::marker { color: var(--accent); font-weight: 700; }
.prose blockquote { margin: 6px 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--accent); font-size: 20px; font-weight: 300; line-height: 1.5; }
.prose strong { font-weight: 700; }

.assign { margin-top: 44px; background: var(--surface); border-radius: var(--r-card); overflow: hidden; }
.assign-head { padding: 28px 32px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; align-items: start; }
.assign-head h2 { font-size: 21px; margin-top: 6px; }
.assign-head p { color: var(--muted); margin-top: 6px; max-width: 60ch; }
.assign form { padding: 24px 32px 32px; display: grid; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label { font-weight: 600; font-size: 14.5px; }
.field input, .field textarea, .field select {
  width: 100%; background: var(--surface-2); border: 1px solid transparent; padding: 13px 16px; font-size: 16px; border-radius: var(--r-field); outline: none; transition: border-color .2s, background .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); background: var(--surface); }
.field textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
.saved { font-size: 12.5px; color: var(--muted); font-family: var(--mono); transition: color .3s; white-space: nowrap; }
.saved.on { color: var(--good); }

.formcard {
  margin-top: 34px; border-radius: var(--r-card); background: var(--night); color: var(--on-night); padding: 34px; display: grid; grid-template-columns: 1fr auto; gap: 26px; align-items: center; position: relative; overflow: hidden;
}
.formcard h2 { font-size: 28px; letter-spacing: -0.03em; margin-top: 8px; }
.formcard p { color: var(--on-night-muted); margin-top: 8px; max-width: 52ch; }
.formcard .slashes { position: absolute; right: 0; top: 0; bottom: 0; width: 40%; background: repeating-linear-gradient(120deg, transparent 0 22px, rgba(255, 255, 255, .035) 22px 24px); pointer-events: none; }
@media (max-width: 640px) { .formcard { grid-template-columns: 1fr; padding: 24px; } }

.lesson-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.complete-btn.is-done { --b: var(--good); --i: #fff; }
.burst { position: fixed; pointer-events: none; z-index: 120; width: 4px; height: 22px; background: var(--accent); transform-origin: center; }

body.lock { overflow: hidden; }
/* =========================================================
   IMMERSIVE FORMS (Intake + 7 Gardens)
   ========================================================= */
.immersive { position: fixed; inset: 0; z-index: 50; background: var(--night); color: var(--on-night); display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; overflow: hidden; padding-top: env(safe-area-inset-top, 0px); padding-bottom: env(safe-area-inset-bottom, 0px); }
.immersive::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 85% 10%, rgba(9, 50, 102, .55), transparent 70%), radial-gradient(50% 50% at 0% 100%, rgba(9, 50, 102, .3), transparent 70%);
}
.immersive .bgslash { position: absolute; top: -10%; bottom: -10%; width: 22vw; left: 62%; background: linear-gradient(180deg, rgba(9, 50, 102, .32), rgba(9, 50, 102, 0)); transform: skewX(-30deg); pointer-events: none; transition: left 1.2s var(--ease); }
.im-top { position: relative; z-index: 2; display: flex; align-items: center; gap: 18px; padding: 18px 28px; }
.im-top .logo { width: 62px; }
.im-top .title { font-size: 13px; color: var(--on-night-muted); }
.im-top .title b { color: #fff; font-weight: 600; }
.im-top .exit { margin-left: auto; }
.segs { display: flex; gap: 6px; padding: 0 28px; position: relative; z-index: 2; }
.seg { flex: 1; display: grid; gap: 8px; min-width: 0; }
.seg .b { height: 4px; background: rgba(238, 241, 245, .12); position: relative; overflow: hidden; transform: skewX(-30deg); }
.seg .b i { position: absolute; inset: 0 auto 0 0; width: 0; background: #fff; transition: width .6s var(--ease); }
.seg span { font-size: 11px; font-family: var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.seg.on span { color: #fff; }
@media (max-width: 640px) { .seg span { display: none; } .im-top { padding: 14px 16px; } .segs { padding: 0 16px; } }

.stage { position: relative; z-index: 1; overflow-y: auto; overflow-x: hidden; display: grid; padding: 24px 28px; }
.q { width: 100%; max-width: 760px; margin: auto; display: grid; gap: 22px; padding-block: 24px 40px; }
@media (max-width: 640px) { .stage { padding: 12px 16px; } }
.q .qn { display: flex; gap: 12px; align-items: center; font-family: var(--mono); font-size: 12.5px; color: var(--on-night-muted); letter-spacing: .06em; }
.q .qn i { width: 22px; height: 2px; background: #fff; transform: skewX(-30deg); display: block; }
.q h2 { font-size: clamp(30px, 4.6vw, 52px); letter-spacing: -0.035em; line-height: 1.05; }
.q h2 .light { color: var(--on-night-muted); }
.q .hint { font-size: 17px; color: var(--on-night-muted); font-weight: 300; max-width: 52ch; margin-top: -8px; }
.q .inputs { display: grid; gap: 22px; margin-top: 6px; }
.q .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.q .grid3 { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 22px; }
@media (max-width: 640px) { .q .grid2, .q .grid3 { grid-template-columns: 1fr; } }
.big { display: grid; gap: 6px; min-width: 0; }
.big label { font-size: 13px; color: var(--on-night-muted); font-family: var(--mono); letter-spacing: .04em; }
.big input, .big textarea {
  width: 100%; background: transparent; border: 0; border-bottom: 2px solid rgba(238, 241, 245, .22); padding: 10px 0 12px; font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 300; color: #fff; outline: none; border-radius: 0; transition: border-color .3s; letter-spacing: -0.01em;
}
.big textarea { resize: none; min-height: 52px; line-height: 1.35; overflow: hidden; }
.big input::placeholder, .big textarea::placeholder { color: rgba(238, 241, 245, .28); }
.big input:focus, .big textarea:focus { border-bottom-color: #fff; }
.big input[type="date"] { color-scheme: dark; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; background: rgba(238, 241, 245, .05); border: 1.5px solid rgba(238, 241, 245, .18);
  color: #fff; font-size: 16px; transition: background .2s, border-color .2s, transform .2s var(--ease);
}
.chip kbd { font-family: var(--mono); font-size: 11px; color: var(--on-night-muted); border: 1px solid rgba(238, 241, 245, .2); padding: 1px 6px; }
.chip:hover { border-color: rgba(238, 241, 245, .55); }
.chip[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.chip[aria-pressed="true"] kbd { color: var(--navy); border-color: rgba(9, 50, 102, .3); }
.chip:active { transform: scale(.97); }
.chips-note { font-size: 13px; color: var(--on-night-muted); font-family: var(--mono); }
.kids { display: grid; gap: 14px; }
.kid { display: grid; grid-template-columns: 1.6fr 1fr auto auto; gap: 16px; align-items: end; padding: 16px 18px; background: rgba(238, 241, 245, .04); border: 1px solid var(--night-line); }
.kid .big input { font-size: 20px; }
.kid .home { display: grid; gap: 6px; }
.kid .home label { font-size: 13px; color: var(--on-night-muted); font-family: var(--mono); }
.kid .rm { background: none; border: 0; color: var(--on-night-muted); padding: 8px; }
.kid .rm:hover { color: #fff; }
.kid .rm svg { width: 18px; height: 18px; }
.toggle { display: inline-flex; border: 1.5px solid rgba(238, 241, 245, .2); }
.toggle button { background: none; border: 0; color: var(--on-night-muted); padding: 8px 12px; font-size: 14px; }
.toggle button[aria-pressed="true"] { background: #fff; color: var(--navy); }
@media (max-width: 640px) { .kid { grid-template-columns: 1fr 1fr; } .kid .big:first-child { grid-column: 1 / -1; } }
.addkid { justify-self: start; }

.range { display: grid; gap: 14px; }
.range .val { font-size: 64px; font-weight: 700; letter-spacing: -0.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.range .val small { font-size: 20px; color: var(--on-night-muted); font-weight: 300; letter-spacing: 0; }
.range input[type="range"] { width: 100%; accent-color: #fff; }

.q-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 10px; }
.q-actions .enter { font-size: 13px; color: var(--on-night-muted); }
.q-actions .enter kbd { font-family: var(--mono); font-size: 12px; border: 1px solid rgba(238, 241, 245, .25); padding: 2px 6px; margin: 0 2px; }
@media (hover: none) { .q-actions .enter { display: none; } }
.im-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; align-items: center; padding: 14px 28px 18px; gap: 16px; }
.im-foot .count { font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); }
.navbtns { display: flex; gap: 6px; }
.navbtns button { width: 42px; height: 42px; display: grid; place-items: center; background: rgba(238, 241, 245, .06); border: 1px solid var(--night-line); color: #fff; }
.navbtns button:hover { background: rgba(238, 241, 245, .14); }
.navbtns button[disabled] { opacity: .3; pointer-events: none; }
.navbtns svg { width: 18px; height: 18px; }
.err { color: #ffb4ad; font-size: 14px; min-height: 20px; }
@media (max-width: 640px) { .im-foot { padding: 10px 16px 14px; } }

/* Chapter card */
.chapter { width: 100%; max-width: 900px; margin: auto; display: grid; gap: 20px; padding-block: 24px; }
.chapter .big-n { font-size: clamp(110px, 22vw, 240px); font-weight: 800; letter-spacing: -0.07em; line-height: .8; color: transparent; -webkit-text-stroke: 2px rgba(238, 241, 245, .5); }
.chapter h2 { font-size: clamp(40px, 7vw, 84px); letter-spacing: -0.045em; line-height: .95; }
.chapter p { font-size: 19px; font-weight: 300; color: #cdd6e2; max-width: 46ch; }
.chapter .meta { font-family: var(--mono); font-size: 12.5px; color: var(--on-night-muted); letter-spacing: .06em; }

/* Done screen */
.donecard { width: 100%; max-width: 860px; margin: auto; display: grid; gap: 22px; padding-block: 24px 48px; }
.donecard h2 { font-size: clamp(40px, 6vw, 72px); letter-spacing: -0.045em; line-height: .98; }
.donecard > p { font-size: 19px; color: #cdd6e2; font-weight: 300; max-width: 50ch; }
.review { display: grid; gap: 1px; background: var(--night-line); border: 1px solid var(--night-line); margin-top: 10px; }
.review section { background: var(--night-2); padding: 18px 20px; display: grid; gap: 10px; }
.review header { display: flex; justify-content: space-between; align-items: center; }
.review header b { font-size: 15px; }
.review dl { margin: 0; display: grid; grid-template-columns: minmax(120px, 220px) 1fr; gap: 6px 18px; font-size: 14px; }
.review dt { color: var(--on-night-muted); }
.review dd { margin: 0; color: #fff; min-width: 0; overflow-wrap: anywhere; }
.review .empty { color: rgba(238, 241, 245, .3); }
@media (max-width: 560px) { .review dl { grid-template-columns: 1fr; gap: 2px; } .review dd { margin-bottom: 8px; } }
.donemark { width: 120px; }

/* 7 Gardens */
.flight { width: 100%; max-width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.flight .plan { stroke: rgba(238, 241, 245, .25); stroke-dasharray: 3 8; fill: none; stroke-width: 2; }
.flight .actual { stroke: #fff; fill: none; stroke-width: 2; }
.flight text { fill: var(--on-night-muted); font-family: var(--mono); font-size: 12px; letter-spacing: .08em; }
.flight .pt { fill: #fff; }
.quote { font-size: clamp(18px, 2vw, 21px); font-weight: 300; line-height: 1.55; color: #dbe2ea; max-width: 64ch; display: grid; gap: 14px; }
.quote cite { font-style: normal; font-size: 13px; color: var(--on-night-muted); font-family: var(--mono); }
.quote-more { max-height: 0; overflow: hidden; transition: max-height .6s var(--ease); display: grid; gap: 14px; }
.quote-more.open { max-height: 600px; }

.garden-ico { width: 56px; height: 56px; color: #fff; }
.garden-ico svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.dial { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 8px; }
.dial button {
  height: 74px; background: rgba(238, 241, 245, .05); border: 1px solid rgba(238, 241, 245, .14); color: var(--on-night-muted);
  font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; position: relative; overflow: hidden; transition: color .2s, border-color .2s;
}
.dial button::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0; background: #fff; transition: height .35s var(--ease); z-index: -1; }
.dial button { z-index: 0; isolation: isolate; }
.dial button.lit { color: var(--navy); border-color: #fff; }
.dial button.lit::before { height: 100%; }
.dial button.lit.edge::before { background: #fff; }
.dial button.lit:not(.edge)::before { background: rgba(255, 255, 255, .72); }
.dial button:hover:not(.lit) { border-color: rgba(238, 241, 245, .5); color: #fff; }
.dial-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-night-muted); }
@media (max-width: 560px) { .dial { grid-template-columns: repeat(5, 1fr); } .dial button { height: 58px; font-size: 19px; } }

.ranklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.rankitem {
  display: grid; grid-template-columns: 52px 36px 1fr auto auto; gap: 14px; align-items: center; padding: 12px 14px; background: var(--night-2);
  border: 1px solid var(--night-line); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none;
}
.rankitem .rk { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; text-align: center; }
.rankitem .gi { width: 30px; height: 30px; }
.rankitem .gi svg { width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.6; }
.rankitem b { font-size: 18px; }
.rankitem .sc { font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); }
.rankitem .mv { display: flex; gap: 2px; }
.rankitem .mv button { width: 34px; height: 34px; background: transparent; border: 1px solid var(--night-line); color: var(--on-night-muted); display: grid; place-items: center; }
.rankitem .mv button:hover { color: #fff; border-color: rgba(238, 241, 245, .5); }
.rankitem .mv svg { width: 14px; height: 14px; }
.rankitem.sortable-ghost { opacity: .25; }
.rankitem.sortable-chosen { background: #fff; color: var(--navy); }
.rankitem.sortable-chosen .sc { color: var(--navy); }
.rankitem:first-child { border-color: rgba(238, 241, 245, .45); }
@media (max-width: 560px) { .rankitem { grid-template-columns: 40px 1fr auto; } .rankitem .gi, .rankitem .sc { display: none; } }

.result { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 36px; align-items: center; }
@media (max-width: 760px) { .result { grid-template-columns: 1fr; } }
.radar { width: 100%; max-width: 440px; height: auto; display: block; margin-inline: auto; overflow: visible; }
.radar .grid { fill: none; stroke: var(--rg, rgba(238, 241, 245, .14)); }
.radar .axis { stroke: var(--rg, rgba(238, 241, 245, .14)); }
.radar text { font-size: 12px; fill: var(--rt, var(--on-night-muted)); font-family: var(--font); }
.radar .area { fill: var(--ra, rgba(255, 255, 255, .18)); stroke: var(--rs, #fff); stroke-width: 2; }
.radar .area.before { fill: transparent; stroke: var(--rb, rgba(238, 241, 245, .45)); stroke-dasharray: 4 5; }
.radar .pt { fill: var(--rs, #fff); }
.radar.light-ui { --rg: var(--line); --rt: var(--muted); --ra: color-mix(in srgb, var(--accent) 18%, transparent); --rs: var(--accent); --rb: var(--muted); }
.insights { display: grid; gap: 12px; }
.insight { padding: 16px 18px; border: 1px solid var(--night-line); background: var(--night-2); display: grid; gap: 4px; }
.insight b { font-size: 16px; }
.insight p { font-size: 14.5px; color: var(--on-night-muted); }
.insight .k { font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.insight.gap .k { color: #ffb4ad; }
.insight.strong .k { color: #8fd6b0; }
.legend { display: flex; gap: 18px; font-size: 13px; color: var(--on-night-muted); justify-content: center; }
.legend i { display: inline-block; width: 18px; height: 0; border-top: 2px solid #fff; vertical-align: middle; margin-right: 6px; }
.legend i.dash { border-top: 2px dashed rgba(238, 241, 245, .5); }

/* =========================================================
   COACH
   ========================================================= */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin-bottom: 20px; }
.kpis div { background: var(--surface); border-radius: 24px; padding: 24px 28px 26px; display: grid; gap: 6px; }
.kpis b { font-size: 36px; font-weight: 600; letter-spacing: -0.04em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.kpis span { font-size: 13px; color: var(--muted); }
@media (max-width: 760px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tbl-wrap { overflow-x: auto; }
table.roster { width: 100%; border-collapse: collapse; min-width: 820px; }
.roster th { text-align: left; font-family: var(--mono); font-weight: 500; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.roster td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; font-size: 14.5px; }
.roster tr.click { cursor: pointer; transition: background .2s; }
.roster tr.click:hover td { background: var(--surface-2); }
.roster .who { display: flex; gap: 12px; align-items: center; }
.roster .who b { display: block; font-size: 15px; }
.roster .who small { color: var(--muted); font-size: 13px; }
.roster .revcell { min-width: 180px; display: grid; gap: 6px; }
.roster .revcell span { font-size: 13px; font-variant-numeric: tabular-nums; }
.roster .revcell span small { color: var(--muted); }
.you-tag { font-family: var(--mono); font-size: 10.5px; padding: 2px 6px; background: var(--accent); color: var(--accent-ink); margin-left: 6px; vertical-align: 2px; letter-spacing: .06em; }

.client-head { display: flex; gap: 20px; align-items: center; flex-wrap: wrap; margin-bottom: 26px; }
.client-head h1 { font-size: clamp(30px, 4vw, 44px); letter-spacing: -0.035em; }
.client-head p { color: var(--muted); }
.client-head .pills { display: flex; gap: 8px; margin-left: auto; flex-wrap: wrap; }
.cgrid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.cgrid > * { min-width: 0; }
@media (max-width: 960px) { .cgrid { grid-template-columns: 1fr; } }
.kv { display: grid; grid-template-columns: minmax(110px, 180px) 1fr; }
.kv dt, .kv dd { padding: 11px 22px; border-bottom: 1px solid var(--line); margin: 0; font-size: 14.5px; }
.kv dt { color: var(--muted); padding-right: 8px; }
.kv dd { padding-left: 8px; overflow-wrap: anywhere; }
.kv .sect { grid-column: 1 / -1; padding: 14px 22px 8px; font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); border-bottom: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 520px) { .kv { grid-template-columns: 1fr; } .kv dt { border-bottom: 0; padding-bottom: 0; } }
.flags { display: grid; gap: 10px; padding: 18px 22px 22px; }
.flag { display: grid; grid-template-columns: 4px 1fr; gap: 14px; }
.flag::before { content: ""; background: var(--crit); transform: skewX(-12deg); }
.flag.ok::before { background: var(--good); }
.flag b { font-size: 15px; }
.flag p { font-size: 14px; color: var(--muted); }
.gtable { width: 100%; border-collapse: collapse; }
.gtable td, .gtable th { padding: 9px 22px; border-bottom: 1px solid var(--line); font-size: 14px; text-align: left; }
.gtable th { font-family: var(--mono); font-weight: 500; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.gtable td.n { font-variant-numeric: tabular-nums; width: 60px; }
.mprog { display: grid; gap: 14px; padding: 20px 22px 24px; }
.mprog .row { display: grid; grid-template-columns: 150px 1fr 48px; gap: 14px; align-items: center; font-size: 14px; }
.mprog .row span:last-child { text-align: right; font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.notes textarea { width: 100%; border: 0; border-top: 1px solid var(--line); background: var(--surface); padding: 18px 22px; min-height: 140px; resize: vertical; outline: none; font-size: 15px; line-height: 1.55; }

/* =========================================================
   BUILDER
   ========================================================= */
.builder { display: grid; grid-template-columns: 400px minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 980px) { .builder { grid-template-columns: 1fr; } }
.b-tree { display: grid; gap: 10px; }
.b-mod { background: var(--surface); border-radius: var(--r-inner); overflow: hidden; }
.b-mod.sel > .b-mhead { box-shadow: inset 3px 0 0 var(--accent); background: var(--accent-soft); }
.b-mhead { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 12px 12px 12px 10px; cursor: pointer; }
.b-mhead small { display: block; font-family: var(--mono); font-size: 11px; color: var(--muted); letter-spacing: .06em; }
.b-mhead b { font-size: 15px; }
.grip { color: var(--muted); cursor: grab; display: grid; place-items: center; touch-action: none; }
.grip svg { width: 16px; height: 16px; }
.b-lessons { list-style: none; margin: 0; padding: 0 0 6px; border-top: 1px solid var(--line); min-height: 8px; }
.b-lesson { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; padding: 8px 12px 8px 10px; font-size: 14px; cursor: pointer; }
.b-lesson:hover { background: var(--surface-2); }
.b-lesson.sel { background: var(--accent-soft); box-shadow: inset 3px 0 0 var(--accent); }
.b-lesson.unpub span.t { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line); }
.b-lesson small { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.b-add { display: flex; gap: 8px; padding: 6px 12px 10px 44px; }
.b-add button { font-size: 13px; }
.sortable-ghost { opacity: .35; }
.b-editor .panel-head { position: sticky; top: calc(64px + env(safe-area-inset-top, 0px)); background: var(--surface); z-index: 2; }
.b-form { padding: 22px; display: grid; gap: 18px; }
.b-form .row3 { display: grid; grid-template-columns: 1fr 160px 120px; gap: 16px; }
@media (max-width: 640px) { .b-form .row3 { grid-template-columns: 1fr 1fr; } .b-form .row3 .field:first-child { grid-column: 1 / -1; } }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14px; font-weight: 600; }
.switch input { appearance: none; -webkit-appearance: none; width: 42px; height: 24px; background: var(--line); position: relative; margin: 0; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; background: #fff; transition: transform .25s var(--ease); }
.switch input:checked { background: var(--good); }
.switch input:checked::after { transform: translateX(18px); }
.rte { border: 1px solid var(--line); background: var(--surface-2); border-radius: 16px; overflow: hidden; }
.rte .bar { display: flex; gap: 2px; padding: 6px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.rte .bar button { min-width: 34px; height: 32px; padding: 0 8px; background: transparent; border: 1px solid transparent; font-size: 13px; font-weight: 700; }
.rte .bar button:hover { border-color: var(--line); background: var(--surface); }
.rte .ed { min-height: 320px; padding: 16px 18px; outline: none; font-size: 16px; line-height: 1.65; display: grid; gap: 12px; align-content: start; background: var(--surface); }
.rte .ed:focus { box-shadow: inset 0 0 0 2px var(--accent); }
.rte .ed h3 { font-size: 20px; }
.rte .ed ul, .rte .ed ol { margin: 0; padding-left: 22px; }
.rte .ed blockquote { margin: 0; padding-left: 16px; border-left: 3px solid var(--accent); }
.confirm-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 14px; }
.b-empty { padding: 60px 26px; text-align: center; color: var(--muted); }

/* view transitions */
.view-enter { animation: viewIn .55s var(--ease) backwards; }
@keyframes viewIn { from { opacity: 0; transform: translateY(14px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* =========================================================
   TIME AUDIT
   ========================================================= */
.linkbtn.night { color: var(--on-night-muted); }
.linkbtn.night:hover { color: #fff; }
.ta-kinds, .ta-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ta-kind, .ta-mode { padding: 20px 22px; border: 1px solid var(--night-line); background: var(--night-2); display: grid; gap: 6px; text-align: left; color: var(--on-night); align-content: start; }
.ta-kind .k, .ta-mode .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--on-night-muted); }
.ta-kind b, .ta-mode b { font-size: 19px; letter-spacing: -0.01em; }
.ta-kind p, .ta-mode p { font-size: 15px; color: var(--on-night-muted); line-height: 1.45; }
.ta-kind.u { border-top: 3px solid rgba(238, 241, 245, .35); }
.ta-kind.p { border-top: 3px solid #85a8de; }
.ta-goal { display: flex; gap: 16px; align-items: center; padding: 18px 22px; background: var(--navy); }
.ta-goal p { font-size: 15.5px; line-height: 1.5; color: #dbe2ea; }
.ta-goal b { color: #fff; }
.ua-mark { width: 30px; height: 30px; flex: none; color: #fff; }
.ua-mark svg { width: 100%; height: 100%; }
.ta-mode { cursor: pointer; transition: border-color .2s, background .2s, transform .2s var(--ease); min-height: 150px; }
.ta-mode:hover { border-color: rgba(238, 241, 245, .55); transform: translateY(-2px); }
.ta-mode[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.ta-mode[aria-pressed="true"] p, .ta-mode[aria-pressed="true"] .k { color: var(--navy); }
.ta-remind { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--on-night-muted); cursor: pointer; }
.ta-remind input { width: 18px; height: 18px; accent-color: #fff; }
@media (max-width: 640px) { .ta-kinds, .ta-modes { grid-template-columns: 1fr; } }

.ta-block { max-width: 1000px; }
.ta-block h2 { font-variant-numeric: tabular-nums; }
.ta-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 820px) { .ta-cols { grid-template-columns: 1fr; } }
.ta-col { border: 1px solid var(--night-line); background: var(--night-2); padding: 14px 16px 12px; display: grid; gap: 10px; align-content: start; min-width: 0; }
.ta-col.u { border-top: 3px solid rgba(238, 241, 245, .35); }
.ta-col.p { border-top: 3px solid #85a8de; }
.ta-col header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.ta-col header b { font-size: 16px; }
.ta-col header span { font-size: 12.5px; color: var(--on-night-muted); }
.ta-rows { display: grid; gap: 8px; }
.ta-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; align-items: center; }
.ta-col.p .ta-row { grid-template-columns: minmax(0, 1fr) auto auto auto; }
.ta-act { background: transparent; border: 0; border-bottom: 1.5px solid rgba(238, 241, 245, .2); color: #fff; font: inherit; font-size: 16px; padding: 8px 2px; min-width: 0; width: 100%; }
.ta-act:focus { outline: none; border-bottom-color: #fff; }
.ta-act::placeholder { color: rgba(238, 241, 245, .28); }
.ta-min { display: flex; align-items: center; border: 1px solid var(--night-line); }
.ta-min button { width: 30px; height: 36px; background: transparent; border: 0; color: var(--on-night-muted); font-size: 18px; }
.ta-min button:hover { color: #fff; background: rgba(238, 241, 245, .08); }
.ta-min input { width: 34px; background: transparent; border: 0; color: #fff; font: inherit; font-size: 15px; text-align: center; font-variant-numeric: tabular-nums; -moz-appearance: textfield; }
.ta-min input::-webkit-outer-spin-button, .ta-min input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ta-min span { font-size: 11px; font-family: var(--mono); color: var(--on-night-muted); padding-right: 2px; }
.ta-star { display: flex; align-items: center; gap: 6px; height: 38px; padding: 0 10px; background: transparent; border: 1px solid var(--night-line); color: var(--on-night-muted); font-size: 12.5px; white-space: nowrap; }
.ta-star svg { width: 15px; height: 15px; }
.ta-star:hover { color: #fff; border-color: rgba(238, 241, 245, .5); }
.ta-star[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
.ta-del { width: 30px; height: 30px; display: grid; place-items: center; background: transparent; border: 0; color: rgba(238, 241, 245, .35); }
.ta-del:hover { color: #ffb4ad; }
.ta-del svg { width: 14px; height: 14px; }
.ta-add { justify-self: start; display: flex; gap: 6px; align-items: center; background: transparent; border: 0; color: var(--on-night-muted); font-size: 13.5px; padding: 4px 0; }
.ta-add svg { width: 14px; height: 14px; }
.ta-add:hover { color: #fff; }
@media (max-width: 520px) {
  .ta-row, .ta-col.p .ta-row { grid-template-columns: minmax(0, 1fr) auto auto; }
  .ta-row .ta-act { grid-column: 1 / -1; }
  .ta-star span { display: none; }
}
.ta-meter { display: flex; align-items: center; gap: 14px; }
.ta-meter .bar { flex: 1; height: 8px; background: rgba(238, 241, 245, .1); display: flex; overflow: hidden; transform: skewX(-30deg); }
.ta-meter .bar i { display: block; height: 100%; transition: width .4s var(--ease); }
.ta-meter span { font-family: var(--mono); font-size: 12.5px; color: var(--on-night-muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ta-meter span.full { color: #fff; }
/* the three work colors, shared by meter, strip and legend */
.bar .u, .daystrip .u, .ta-legend i.u { background: rgba(238, 241, 245, .38); }
.bar .p, .daystrip .p, .ta-legend i.p { background: #85a8de; }
.bar .ua, .daystrip .ua, .ta-legend i.ua { background: #fff; }

.daystrip { display: grid; grid-template-columns: repeat(32, minmax(0, 1fr)); gap: 3px; padding-bottom: 18px; margin-top: 6px; }
.daystrip .blk { position: relative; height: 44px; background: rgba(238, 241, 245, .06); border: 0; padding: 0; display: block; }
.daystrip button.blk { cursor: pointer; }
.daystrip button.blk:hover { background: rgba(238, 241, 245, .14); }
.daystrip .blk.cur { outline: 1.5px solid #fff; outline-offset: 1px; }
.daystrip .fill { position: absolute; inset: 0; display: flex; flex-direction: column-reverse; transform-origin: bottom; }
.daystrip .fill i { display: block; height: var(--h, 0%); flex: none; transition: height .35s var(--ease); }
.daystrip em { position: absolute; top: 100%; left: 0; margin-top: 4px; font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--on-night-muted); }
.daystrip.big .blk { height: 120px; }
@media (max-width: 640px) { .daystrip { gap: 1px; } .daystrip .blk { height: 34px; } .daystrip.big .blk { height: 90px; } .daystrip em { font-size: 9px; } }
.daystrip.light .blk { background: var(--surface-2, #f0f0f2); height: 40px; }
.daystrip.light em { color: var(--muted); }
.daystrip.light .u { background: var(--steel); }
.daystrip.light .p { background: color-mix(in srgb, var(--accent) 45%, transparent); }
.daystrip.light .ua { background: var(--accent); }
.ta-legend { justify-content: flex-start; }
.ta-legend i { width: 14px; height: 14px; border: 0; vertical-align: -2px; }

.ta-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 640px) { .ta-stats { grid-template-columns: 1fr; } }
.ta-stats section { border: 1px solid var(--night-line); background: var(--night-2); padding: 20px 22px; display: grid; gap: 8px; align-content: start; }
.ta-stats .k { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--on-night-muted); }
.ta-stats p { font-size: 14px; color: var(--on-night-muted); }
.big-pct { font-size: clamp(56px, 8vw, 92px); font-weight: 800; letter-spacing: -0.05em; line-height: .9; font-variant-numeric: tabular-nums; }
.ta-stats dl { margin: 6px 0 0; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; font-size: 13.5px; }
.ta-stats dt { color: var(--on-night-muted); }
.ta-stats dd { margin: 0; text-align: right; color: #fff; }
.insight .m { font-family: var(--mono); font-size: 12px; color: var(--on-night-muted); font-weight: 400; }

/* coach panels for the tools */
.coach-ta { padding: 16px 22px 18px; display: grid; gap: 14px; }
.coach-ta .nums { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.coach-ta .nums div { display: grid; gap: 2px; }
.coach-ta .nums b { font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--accent); }
.coach-ta .nums span { font-size: 13px; color: var(--muted); }
.coach-ta .daystrip { padding-bottom: 16px; }
.coach-ta .hand { font-size: 14px; color: var(--muted); }
.coach-ta .hand b { color: var(--fg); font-weight: 600; }
.gtable td.far { color: var(--crit); font-weight: 600; }

/* =========================================================
   LEADERSHIP ALIGNMENT
   ========================================================= */
.al-eight { display: flex; flex-wrap: wrap; gap: 8px; }
.al-eight span { padding: 8px 14px; border: 1px solid var(--night-line); background: var(--night-2); font-size: 14px; }
.al-scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--on-night-muted); font-family: var(--mono); margin-bottom: -10px; }
.al-scale b { color: #fff; }
.al-rank .rankitem { grid-template-columns: 52px 1fr auto; }
.al-b { display: grid; gap: 2px; min-width: 0; }
.al-b b { font-size: 17px; }
.al-b span { font-size: 13.5px; color: var(--on-night-muted); }
.rankitem.sortable-chosen .al-b span { color: var(--navy); }
@media (max-width: 560px) { .al-rank .rankitem { grid-template-columns: 36px 1fr auto; } .al-b span { display: none; } }
.al-link { display: flex; align-items: center; gap: 10px; border: 1px solid rgba(238, 241, 245, .3); padding: 8px 8px 8px 14px; background: var(--night-2); }
.al-link .ico { width: 20px; height: 20px; color: var(--on-night-muted); flex: none; }
.al-link input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; font-family: var(--mono); font-size: 13.5px; }
.al-link input:focus { outline: none; }
.al-done { width: 64px; height: 64px; display: grid; place-items: center; background: #fff; color: var(--navy); clip-path: polygon(14px 0, 100% 0, calc(100% - 14px) 100%, 0 100%); }
.al-done svg { width: 30px; height: 30px; }
.al-cmp-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 28px; align-items: start; }
@media (max-width: 860px) { .al-cmp-grid { grid-template-columns: 1fr; } }
.insight .al-pct { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }

.slope { display: grid; grid-template-columns: minmax(0, 1fr) minmax(36px, 110px) minmax(0, 1fr); grid-template-rows: auto 384px; column-gap: 0; }
.slope-h { display: contents; }
.slope-h span { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-night-muted); padding-bottom: 10px; }
.slope-h span:last-child { text-align: right; }
.slope-col { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(8, 48px); }
.slope-col li { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 0 10px; border-bottom: 1px solid var(--night-line); transition: background .2s; }
.slope-col.r li { flex-direction: row-reverse; text-align: right; }
.slope-col li b { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 1; min-width: 0; }
.slope-col .rk { font-size: 20px; font-weight: 800; width: 22px; flex: none; text-align: center; font-variant-numeric: tabular-nums; }
.slope-col .gapb { font-family: var(--mono); font-size: 11.5px; padding: 2px 6px; border: 1px solid var(--night-line); color: var(--on-night-muted); flex: none; }
.slope-col li.far .gapb { color: #1a0505; background: #ffb4ad; border-color: #ffb4ad; }
.slope-col li.same .gapb { color: #8fd6b0; border-color: rgba(143, 214, 176, .5); }
.slope-col li.hl { background: rgba(238, 241, 245, .08); }
.slope-lines { width: 100%; height: 384px; overflow: visible; }
.slope-lines line { stroke: rgba(238, 241, 245, .35); stroke-width: 1.5; transition: stroke-width .2s, stroke .2s; }
.slope-lines line.same { stroke: #8fd6b0; }
.slope-lines line.far { stroke: #ffb4ad; stroke-width: 2.5; }
.slope-lines line.hl { stroke: #fff; stroke-width: 3.5; }
@media (max-width: 560px) { .slope { grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); } .slope-h span { font-size: 9.5px; } .slope-col li b { font-size: 12.5px; } .slope-col li { padding: 0 6px; gap: 6px; } .slope-col .rk { font-size: 16px; width: 16px; } .slope-col .gapb { display: none; } }
.al-legend { justify-content: flex-start; margin-top: 12px; flex-wrap: wrap; }
.al-legend i { width: 18px; border-top-width: 2px; }
.al-legend i.same { border-top-color: #8fd6b0; }
.al-legend i.near { border-top-color: rgba(238, 241, 245, .35); }
.al-legend i.far { border-top-color: #ffb4ad; border-top-width: 3px; }
.al-table { margin-top: 14px; font-size: 14px; }
.al-table summary { cursor: pointer; color: var(--on-night-muted); font-size: 13.5px; }
.al-table table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.al-table th { text-align: left; font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--on-night-muted); font-weight: 500; padding: 8px 10px; background: var(--navy); }
.al-table td { padding: 8px 10px; border-bottom: 1px solid var(--night-line); }
.al-table td.n { font-variant-numeric: tabular-nums; text-align: center; }

/* ---------- Business OS: shared ---------- */
.proto-role { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 10px; border-left: 1px solid var(--night-line); margin-left: 4px; }
.proto-role span { padding: 0; }
.proto-role select { background: transparent; color: #fff; border: 1px solid var(--night-line); font: 600 13px var(--font); padding: 5px 6px; }
.proto-role select option { color: #000; }
@media (max-width: 520px) { .proto { max-width: calc(100vw - 16px); overflow-x: auto; } .proto-role { padding-left: 6px; } }
.os-lock { display: grid; gap: 14px; justify-items: start; max-width: 640px; }
.os-lock svg { width: 34px; height: 34px; color: var(--accent); }
.os-lock h1 { font-size: clamp(32px, 4.4vw, 48px); letter-spacing: -0.035em; }
.os-lock p { color: var(--muted); max-width: 46ch; }
/* ---------- Business OS: list + dashboard ---------- */
.os-add { display: flex; gap: 10px; flex-wrap: wrap; }
.os-add input { min-height: 38px; padding: 0 14px; border: 1.5px solid var(--line); background: var(--surface); color: var(--fg); font: 15px var(--font); min-width: 0; flex: 1 1 200px; }
.os-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.os-card { display: grid; gap: 10px; padding: 22px 24px; background: var(--surface); border-radius: var(--r-card); text-decoration: none; color: var(--fg); box-shadow: var(--shadow); transition: transform .25s var(--ease); }
.os-card:hover { transform: translateY(-2px); }
.os-card-top { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.os-card-top b { font-size: 20px; letter-spacing: -0.02em; }
.os-card-who, .os-note, .os-empty { color: var(--muted); font-size: 14px; }
.os-draft { color: var(--warn); font-weight: 600; }
.os-note { margin-top: 16px; font-size: 13px; }
.os-segbar { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.os-segbar i { height: 6px; background: var(--surface-3); transform: skewX(-30deg); }
.os-segbar i.on { background: var(--navy); }
.os-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.os-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.os-rename { font: inherit; letter-spacing: inherit; color: inherit; background: transparent; border: 0; border-bottom: 2px solid var(--accent); width: 100%; }
.os-hero { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 32px; align-items: center; padding: 28px; margin-bottom: 36px; }
.os-hero-copy { display: grid; gap: 10px; }
.os-hero-copy h2 { font-size: clamp(26px, 3.2vw, 38px); letter-spacing: -0.03em; }
.os-hero-copy p:not(.eyebrow) { color: var(--muted); max-width: 46ch; }
@media (max-width: 720px) { .os-hero { grid-template-columns: 1fr; justify-items: center; text-align: center; } .os-hero-copy p { margin-inline: auto; } }
.os-wheel { width: 100%; max-width: 340px; height: auto; display: block; }
.os-wheel .w { cursor: pointer; transform-origin: 160px 160px; }
.os-wheel .w path { fill: var(--surface-2); stroke: var(--line); stroke-width: 1; transition: fill .3s var(--ease); }
.os-wheel .w text { font: 600 13px var(--font); fill: var(--muted); pointer-events: none; }
.os-wheel .w.done path { fill: var(--navy); stroke: var(--navy); }
.os-wheel .w.done text { fill: #fff; }
.os-wheel .w:hover path, .os-wheel .w:focus-visible path { stroke: var(--accent); stroke-width: 2; }
.os-wheel .w:focus { outline: none; }
.os-wheel .hub { fill: var(--surface); stroke: var(--line); }
.os-wheel .hub-n { font: 700 30px var(--font); fill: var(--fg); letter-spacing: -0.04em; }
.os-wheel .hub-t { font: 12px var(--mono); fill: var(--muted); }
.os-comp { margin-top: 34px; scroll-margin-top: 90px; }
.os-comp header { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.os-comp header .num { font-family: var(--mono); color: var(--muted); font-size: 13px; }
.os-comp h2 { font-size: 26px; letter-spacing: -0.03em; }
.os-docs { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 16px; }
.os-doc { display: grid; gap: 6px; padding: 14px 14px 18px; background: var(--surface); border-radius: var(--r-inner); text-decoration: none; color: var(--fg); box-shadow: var(--shadow); }
.os-doc b { font-size: 16px; letter-spacing: -0.01em; padding: 6px 4px 0; }
.os-doc > span { font-size: 13px; color: var(--muted); padding-inline: 4px; display: flex; align-items: center; gap: 6px; }
.os-doc > span svg { width: 15px; height: 15px; }
.os-doc.wait { box-shadow: none; outline: 1.5px dashed var(--line); background: transparent; }
.os-mini { position: relative; height: 150px; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.os-mini-in { position: absolute; top: 0; left: 0; width: 1100px; transform: scale(.235); transform-origin: 0 0; pointer-events: none; }
.os-mini-in .sheet + .sheet { display: none; }
.os-mini.empty { display: grid; place-items: center; background: var(--surface-2); border-style: dashed; }
.os-mini.empty svg { width: 26px; height: 26px; color: var(--muted); }

.os-send { display: grid; gap: 20px; max-width: 820px; }
.os-send-who { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 640px) { .os-send-who { grid-template-columns: 1fr; } }
.os-field { display: grid; gap: 6px; }
.os-field span { font: 12.5px var(--mono); color: var(--muted); letter-spacing: .04em; }
.os-field input, .os-field textarea, .os-linkrow input { width: 100%; min-width: 0; border: 1.5px solid var(--line); background: var(--surface-2); color: var(--fg); font: 15px var(--font); padding: 10px 12px; border-radius: var(--r-field); }
.os-field textarea { font: 13.5px/1.5 var(--mono); resize: vertical; }
.os-linkrow { display: flex; gap: 10px; align-items: center; }
.os-linkrow .ico svg { width: 20px; height: 20px; color: var(--accent); }
@media (max-width: 560px) { .os-linkrow { flex-wrap: wrap; } .os-linkrow .ico { display: none; } }

/* ---------- Business OS: journey ---------- */
.os-q { max-width: 880px; }
.big.sm label { font-size: 12px; }
.big.wide { grid-column: 1 / -1; }
.big select { width: 100%; min-height: 48px; background: transparent; color: var(--on-night); border: 0; border-bottom: 1.5px solid rgba(238, 241, 245, .3); font: 18px var(--font); padding: 6px 0; }
.big select option { color: #000; }
.need { font-size: 14px; color: var(--on-night-muted); }
.osr { display: grid; gap: 14px; }
.osr-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) 32px; gap: 10px; align-items: start; padding-bottom: 14px; border-bottom: 1px solid var(--night-line); }
.osr-n { font-family: var(--mono); color: var(--on-night-muted); padding-top: 30px; font-size: 13px; }
.osr-cells { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 12px 18px; }
.osr-rm, .ost-top { width: 32px; height: 32px; display: grid; place-items: center; background: none; border: 1px solid var(--night-line); color: var(--on-night-muted); margin-top: 22px; }
.osr-rm svg, .ost-top svg { width: 16px; height: 16px; }
.osr-rm:hover { color: #fff; border-color: #fff; }
.osr-sug { display: grid; gap: 10px; margin-top: 4px; }
.osr > .btn { justify-self: start; }
.osc-tree, .osc-kids { display: grid; gap: 14px; }
.osc { display: grid; gap: 12px; padding: 16px 18px; border: 1px solid var(--night-line); border-left: 3px solid #fff; background: rgba(255, 255, 255, .02); }
.osc-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .osc-row { grid-template-columns: 1fr; } }
.osc-kids { padding-left: 18px; border-left: 1px dashed var(--night-line); margin-left: 6px; }
.osc-acts { display: flex; gap: 18px; flex-wrap: wrap; }
.osc-acts svg { width: 14px; height: 14px; vertical-align: -2px; }
.ost { display: grid; gap: 12px; }
.ost-row { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 10px; align-items: center; padding-bottom: 12px; border-bottom: 1px solid var(--night-line); }
.ost-row input { background: transparent; border: 0; border-bottom: 1.5px solid rgba(238, 241, 245, .3); color: var(--on-night); font: 18px var(--font); padding: 8px 0; min-width: 0; }
.ost-top { margin: 0; }
.ost-top[aria-pressed="true"] { background: #fff; color: var(--navy); border-color: #fff; }
@media (max-width: 560px) { .ost-row { grid-template-columns: minmax(0, 1fr) 32px; } .ost-row .toggle { grid-column: 1 / -1; grid-row: 2; justify-self: start; } }
.ost > .btn { justify-self: start; }
.osi { display: grid; gap: 26px; }
.osi-p h3 { font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.osi-p h3 .light, .osi-co { color: var(--on-night-muted); font-weight: 300; }
.osi-co { font-size: 14px; margin-bottom: 8px; }
.osm { display: grid; gap: 24px; }
.osm > div:not(.grid2) { display: grid; gap: 10px; }
.os-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.os-tile { display: flex; gap: 10px; align-items: center; padding: 14px; border: 1px solid var(--night-line); background: rgba(255, 255, 255, .03); font-size: 14px; }
.os-tile svg { width: 18px; height: 18px; flex: none; }

.immersive [hidden] { display: none !important; }

/* ---------- Business OS: document sheets ---------- */
.doc-tools { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.doc-pages { display: grid; gap: 28px; justify-items: center; }
.sheet { width: 100%; max-width: 1100px; background: #fff; color: #1d1d1f; box-shadow: var(--shadow); padding: 34px 38px 22px; display: grid; gap: 22px; grid-template-rows: auto 1fr auto; }
.sheet-head { display: flex; gap: 22px; align-items: center; padding-bottom: 16px; border-bottom: 3px solid var(--navy); }
.sheet-head .sheet-mark { width: 92px; color: var(--navy); flex: none; }
.sheet-head .sheet-mark .lg-zero { color: #a1a1a6; }
.sheet-co { font: 12.5px var(--mono); color: #6e6e73; letter-spacing: .06em; }
.sheet-head h2 { font-size: clamp(22px, 2.6vw, 32px); font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; color: var(--navy); }
.sheet-head h2 .light { font-weight: 300; color: #3c3c3b; }
.sheet-body { display: grid; gap: 18px; align-content: start; min-width: 0; }
.sheet-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 11px var(--mono); color: #6e6e73; border-top: 1px solid #d1d3d4; padding-top: 10px; }
.sheet .blank { color: #a1a1a6; }
.sheet .muted { color: #6e6e73; font-weight: 400; }
.sheet .kv { font-size: 14.5px; line-height: 1.45; }
.sheet .kv b { font-weight: 700; color: #3c3c3b; margin-right: 4px; }
.sheet .kv.sub { margin-top: -6px; }
.sheet-list { padding-left: 20px; display: grid; gap: 4px; font-size: 14.5px; line-height: 1.4; }
.sheet-list li::marker { color: var(--navy); font-weight: 700; }
.sheet-note { font-size: 13px; color: #6e6e73; }
.sheet-tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.sheet-tbl th { text-align: left; font: 600 11px var(--mono); letter-spacing: .06em; color: #6e6e73; border-bottom: 1.5px solid #3c3c3b; padding: 6px 6px 6px 0; }
.sheet-tbl td { border-bottom: 1px solid #d1d3d4; padding: 7px 6px 7px 0; vertical-align: top; }
.sheet-tbl td:last-child { white-space: nowrap; color: #3c3c3b; }
.vto-h, .vto-l { background: var(--navy); color: #fff; font-weight: 700; letter-spacing: -0.01em; }
.vto-h { padding: 10px 14px; font-size: 17px; text-align: center; }
.vto-grid { display: grid; grid-template-columns: 170px minmax(0, 1fr) minmax(0, 320px); border: 1.5px solid #3c3c3b; }
.vto-grid > .vto-l { grid-column: 1; display: grid; place-items: center; text-align: center; padding: 14px; font-size: 18px; border-bottom: 1.5px solid #fff; }
.vto-grid > .vto-c { grid-column: 2; padding: 14px 16px; border-bottom: 1.5px solid #d1d3d4; display: grid; gap: 8px; align-content: start; }
.vto-r { grid-column: 3; grid-row: 1 / span 4; border-left: 1.5px solid #3c3c3b; display: grid; grid-template-rows: auto 1fr; }
.vto-r .vto-c { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.vto-big { font-size: 20px; font-weight: 700; letter-spacing: -0.02em; color: var(--navy); }
.vto-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid #3c3c3b; }
.vto-3 > div + div { border-left: 1.5px solid #3c3c3b; }
.vto-3 .vto-c { padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.kv.ids { margin-top: 10px; padding-top: 10px; border-top: 1px solid #d1d3d4; }
@media (max-width: 820px) {
  .sheet { padding: 22px 18px 16px; }
  .vto-grid, .vto-3 { grid-template-columns: 1fr; }
  .vto-grid > .vto-l, .vto-grid > .vto-c, .vto-r { grid-column: 1; grid-row: auto; border-left: 0; }
  .vto-3 > div + div { border-left: 0; border-top: 1.5px solid #3c3c3b; }
}
/* accountability chart: classic connector tree */
.ac-scroll { overflow-x: auto; padding-bottom: 8px; }
.ac-tree, .ac-kids { list-style: none; display: flex; justify-content: center; align-items: flex-start; padding: 0; margin: 0; }
.ac-kids { padding-top: 22px; position: relative; }
.ac-n { position: relative; padding: 22px 8px 0; display: flex; flex-direction: column; align-items: center; }
.ac-tree > .ac-n { padding-top: 0; }
.ac-n::before, .ac-n::after { content: ""; position: absolute; top: 0; width: 50%; height: 22px; border-top: 1.5px solid #3c3c3b; }
.ac-n::before { right: 50%; }
.ac-n::after { left: 50%; border-left: 1.5px solid #3c3c3b; }
.ac-n:first-child::before, .ac-n:last-child::after { border-top: 0; }
.ac-n:only-child::before { display: none; }
.ac-n:only-child::after { border-top: 0; }
.ac-tree > .ac-n::before, .ac-tree > .ac-n::after { display: none; }
.ac-kids::before { content: ""; position: absolute; top: 0; left: 50%; height: 22px; border-left: 1.5px solid #3c3c3b; }
.ac-box { width: 190px; background: #ececf0; padding: 12px 14px 14px; display: grid; gap: 4px; text-align: left; }
.ac-box > b { font-size: 13.5px; letter-spacing: .02em; text-align: center; }
.ac-name { text-align: center; font-size: 14px; color: #3c3c3b; border-bottom: 1.5px solid #3c3c3b; padding-bottom: 6px; margin-bottom: 4px; }
.ac-box .sheet-list { font-size: 12.5px; padding-left: 14px; gap: 2px; }
.ac-ed { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; }
/* scorecard */
.tbl-scroll { overflow-x: auto; }
.sc-tbl { border-collapse: collapse; width: 100%; min-width: 880px; font-size: 13.5px; }
.sc-tbl th, .sc-tbl td { border: 1px solid #3c3c3b; padding: 7px 8px; }
.sc-tbl th { font-weight: 700; color: #3c3c3b; text-align: left; }
.sc-tbl th.mo { text-align: center; font-weight: 600; font-size: 12.5px; }
.sc-tbl th.wk { text-align: center; font: 12px var(--mono); width: 34px; }
.sc-tbl .alt { background: #d1d3d4; }
.sc-tbl td.who { white-space: nowrap; }
.sc-tbl td.ms { min-width: 200px; }
.sc-tbl td.gl { white-space: nowrap; font-weight: 600; color: var(--navy); }
/* issues */
.is-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
@media (max-width: 720px) { .is-cols { grid-template-columns: 1fr; } }
.is-col { border: 1.5px solid #3c3c3b; }
.is-list { padding: 12px 16px 12px 36px; display: grid; gap: 8px; font-size: 14.5px; }
.is-list li.top { font-weight: 600; list-style: none; margin-left: -22px; }
.is-top { display: inline-grid; place-items: center; width: 22px; height: 22px; margin-right: 8px; background: var(--navy); color: #fff; font-size: 12px; }
/* processes */
.pr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.pr-card { border: 1.5px solid #3c3c3b; padding: 14px 16px; display: grid; gap: 8px; align-content: start; }
.pr-card header { display: flex; gap: 10px; align-items: baseline; }
.pr-card header .num { font: 12px var(--mono); color: #6e6e73; }
.pr-card header b { font-size: 17px; color: var(--navy); letter-spacing: -0.01em; }
.pr-owner { font-size: 13px; color: #6e6e73; }
/* circle of life */
.cl-wrap { position: relative; aspect-ratio: 16 / 10; width: 100%; }
.cl-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.cl-ring ellipse { fill: none; stroke: #a1a1a6; stroke-width: .5; stroke-dasharray: 1.6 1.2; }
.cl-ring path { fill: var(--navy); }
.cl-hub { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; display: grid; gap: 2px; }
.cl-hub b { font-size: 20px; color: var(--navy); letter-spacing: -0.02em; }
.cl-hub span { font: 12px var(--mono); color: #6e6e73; }
.cl-box { position: absolute; transform: translate(-50%, -50%); width: min(23%, 200px); background: #fff; border: 1.5px solid #3c3c3b; box-shadow: 4px 4px 0 #d1d3d4; padding: 8px 10px; display: grid; gap: 2px; font-size: 12px; }
.cl-box b { color: var(--navy); font-size: 13.5px; }
.cl-box span { color: #6e6e73; }
.cl-box ul { padding-left: 14px; }
@media (max-width: 720px) {
  .cl-wrap { aspect-ratio: auto; display: grid; gap: 10px; }
  .cl-ring { display: none; }
  .cl-hub, .cl-box { position: static; transform: none; width: auto; }
}
/* rocks */
.rk-due { font-size: 16px; }
.rk-due b { color: var(--navy); }
.rk-company .vto-h { text-align: left; }
.rk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 18px 28px; }
.rk-person h3 { font-size: 16px; color: var(--navy); margin-bottom: 6px; }
.rk-co { font: 10.5px var(--mono); color: #6e6e73; border: 1px solid #d1d3d4; padding: 1px 5px; margin-left: 8px; vertical-align: 1px; }
/* weekly meeting */
.l10-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 18px; border: 1.5px solid #3c3c3b; padding: 14px 16px; }
.l10-facts .wide { grid-column: 1 / -1; }
.l10-facts dt { font: 11px var(--mono); color: #6e6e73; letter-spacing: .06em; }
.l10-facts dd { font-size: 15px; font-weight: 600; }
@media (max-width: 720px) { .l10-facts { grid-template-columns: 1fr 1fr; } }
.ag { list-style: none; padding: 0; display: grid; }
.ag > li { padding: 10px 0; border-bottom: 1px solid #d1d3d4; display: grid; gap: 4px; }
.ag-row { display: flex; justify-content: space-between; gap: 12px; }
.ag-t { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; }
.ag-m { font-weight: 700; color: var(--navy); white-space: nowrap; }
.ag-note { font-size: 13.5px; color: #6e6e73; }
.ag-sub { padding-left: 22px; font-size: 14px; display: grid; gap: 2px; }
/* print: one sheet per page, no chrome, colors kept */
@media print {
  @page { size: letter landscape; margin: 0.4in; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body { background: #fff !important; }
  .topbar, .proto, .doc-tools, .doc-editing, .toast, .sheet-add, .sheet-del { display: none !important; }
  .app-main { padding: 0 !important; }
  .app-main .wrap { max-width: none; padding: 0; }
  .doc-pages { display: block; }
  .sheet { box-shadow: none; max-width: none; padding: 0; break-after: page; page-break-after: always; }
  .sheet:last-child { break-after: auto; page-break-after: auto; }
  .ac-scroll, .tbl-scroll { overflow: visible; }
  .sc-tbl { min-width: 0; }
}

/* fixes found in visual check */
.sheet .kv { display: block; grid-template-columns: none; }
.crumb svg { width: 18px; height: 18px; flex: none; }

.doc-editing { font-size: 14px; color: var(--accent); margin: -6px 0 14px; }
.doc-pages.editing .ed { outline: 1px dashed #a1a1a6; outline-offset: 2px; padding: 0 2px; min-width: 24px; display: inline-block; cursor: text; }
.doc-pages.editing .ed:focus { outline: 2px solid var(--navy); background: #e3e9f2; }
.doc-pages.editing .ed:empty::before { content: attr(data-ph); color: #a1a1a6; }
.ed-sel { font: inherit; border: 1px dashed #a1a1a6; background: #fff; color: #1d1d1f; padding: 1px 4px; max-width: 100%; }
.sheet-add, .sheet-del { background: none; border: 0; color: var(--navy); font: 600 12.5px var(--font); display: inline-flex; align-items: center; gap: 4px; padding: 4px 0; cursor: pointer; }
.sheet-add svg, .sheet-del svg { width: 14px; height: 14px; }
.sheet-del { color: #a43a33; margin-left: 6px; vertical-align: middle; padding: 0 2px; }


/* ================= accounts, terms, admin ================= */
.auth { min-height: 100vh; min-height: 100dvh; background: var(--night); position: relative; overflow: hidden; display: grid; place-items: center; align-content: center; gap: 22px; padding: 40px 16px; }
.auth .bgslash { position: absolute; top: -10%; bottom: -10%; width: 22vw; left: 62%; background: linear-gradient(180deg, rgba(9, 50, 102, .38), rgba(9, 50, 102, 0)); transform: skewX(-30deg); pointer-events: none; }
.auth-logo { position: relative; color: #fff; }
.auth-logo .logo { width: 132px; height: auto; display: block; }
.auth-card { position: relative; }
.auth-card.wide { max-width: 760px; }
.auth-card .light { color: var(--on-night-muted); font-weight: 300; }
.auth-card form { display: grid; gap: 16px; margin-top: 26px; }
.auth-card .fine, .auth-card .err { font-size: 13px; }
.auth-card .err, .modal .err { color: #ffb4ad; }
.auth-card a { color: var(--on-night); }
.auth-foot { position: relative; font-size: 13px; }
.auth-foot a { color: var(--on-night-muted); }
.linkbtn.night { color: var(--on-night-muted); }
.linkbtn.night:hover { color: #fff; }
.agree { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 14px; color: var(--on-night); line-height: 1.45; cursor: pointer; }
.agree input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: #fff; }
.agree .linkbtn { font-size: inherit; color: #fff; }
.terms-scroll { max-height: 42vh; overflow-y: auto; margin-top: 18px; padding: 4px 18px 4px 0; border-top: 1px solid var(--night-line); border-bottom: 1px solid var(--night-line); color: var(--on-night-muted); font-size: 14px; }
.terms-modal { max-width: 760px; max-height: calc(100dvh - 32px); overflow-y: auto; }
.terms-modal .terms-body { color: var(--on-night-muted); font-size: 14px; margin-top: 14px; }
.terms-body h3 { font-size: 16px; margin: 22px 0 8px; letter-spacing: -0.01em; }
.terms-body p, .terms-body li { margin: 0 0 10px; }
.terms-body ul { padding-left: 20px; margin: 0 0 10px; }
.terms-body mark.ph { background: var(--warn-soft); color: var(--warn); padding: 0 4px; font-weight: 600; }
.on-night .terms-body h3, .modal .terms-body h3 { color: var(--on-night); }
.terms-wrap { max-width: 860px; }
.terms-wrap .terms-body { font-size: 15.5px; line-height: 1.65; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.loading { color: var(--muted); padding: 24px 0; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: 12.5px; }
a.avatar { text-decoration: none; color: inherit; }
.head-acts { display: flex; gap: 10px; flex-wrap: wrap; }
.row-acts { white-space: nowrap; text-align: right; }
.row-acts .btn + .btn { margin-left: 6px; }
.row-acts .btn svg { width: 16px; height: 16px; }
.roster tr.off td { opacity: .55; }
.roster tr.warnrow td:nth-child(3) { color: var(--crit); }
.roster td.msg { max-width: 340px; white-space: pre-wrap; font-size: 13.5px; }
.roster small a { color: inherit; }
.mini-select { font: inherit; font-size: 13.5px; padding: 4px 8px; background: var(--surface-2); color: var(--fg); border: 1px solid var(--line); }
.tabs { display: flex; gap: 4px; margin: -6px 0 20px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 10px 14px; font-weight: 600; font-size: 14.5px; color: var(--muted); text-decoration: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on { color: var(--fg); border-bottom-color: var(--fg); }
.user-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; align-items: end; }
.uf-actions { grid-column: 1 / -1; display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.uf-actions .err { margin: 0; color: var(--crit); }
.perm-help { margin-top: 16px; background: var(--surface); padding: 14px 22px; }
.perm-help summary { cursor: pointer; font-weight: 600; font-size: 14.5px; }
.perm-help .gtable { margin-top: 10px; }
.light-modal { background: var(--surface); color: var(--fg); border-color: var(--line); max-width: 640px; }
.light-modal > p, .light-modal .fine { color: var(--muted); }
.light-modal .x { color: var(--muted); }
.light-modal .user-form { margin-top: 22px; }
.light-modal .err { color: var(--crit); }
.danger-zone { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.light-modal .fine { font-size: 12.5px; margin-top: 12px; }
.acct { max-width: 760px; }
.acct-form { display: grid; gap: 16px; max-width: 420px; }
.acct-form .err { color: var(--crit); margin: 0; }
.acct-note { margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.actbar b { font-size: 13px; padding: 0 8px 0 0; color: #fff; }
.actbar em { font-style: normal; font-size: 12px; color: var(--warn); padding: 0 10px; border-left: 1px solid var(--night-line); }
.actbar a { background: #fff; color: var(--navy) !important; }
@media (max-width: 640px) {
  .user-form { grid-template-columns: 1fr; }
  .row-acts { text-align: left; }
  .actbar { left: 16px; right: 16px; transform: none; flex-wrap: wrap; justify-content: center; }
}
.uf-check { display: inline-flex; gap: 8px; align-items: center; font-size: 14.5px; font-weight: 600; }
.uf-check input { width: 17px; height: 17px; accent-color: var(--navy); }
