@font-face { font-family: 'Archivo'; font-style: normal; font-display: swap; font-weight: 100 900; font-stretch: 62% 125%; src: url('fonts/archivo.woff2') format('woff2'); }
@font-face { font-family: 'Plus Jakarta Sans'; font-style: normal; font-display: swap; font-weight: 200 800; src: url('fonts/jakarta.woff2') format('woff2'); }
@font-face { font-family: 'JetBrains Mono'; font-style: normal; font-display: swap; font-weight: 100 800; src: url('fonts/mono.woff2') format('woff2'); }
:root {
  --o: #FF8000; --c: #3CC8FF; --v: #A78BFA; --ink: #0A0A0C; --ice: #F5F5F7; --bg: #07070B;
  --muted: rgba(245, 245, 247, 0.76); --line: rgba(255, 255, 255, 0.13);
  --display: 'Archivo', 'Plus Jakarta Sans', system-ui, sans-serif;
  --body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ice); font-family: var(--body); overflow-x: hidden; max-width: 100%; }
html { -webkit-text-size-adjust: 100%; }
body { min-height: 100vh; overflow-x: hidden; }
a { color: var(--c); }
.glow { position: fixed; border-radius: 50%; pointer-events: none; z-index: 0; animation: drift 16s ease-in-out infinite alternate; }
.g1 { width: 640px; height: 640px; left: -260px; top: -280px; background: radial-gradient(circle, rgba(255, 128, 0, 0.28) 0%, rgba(7, 7, 11, 0) 66%); }
.g2 { width: 600px; height: 600px; right: -240px; top: 30vh; background: radial-gradient(circle, rgba(167, 139, 250, 0.3) 0%, rgba(7, 7, 11, 0) 68%); animation-direction: alternate-reverse; }
.g3 { width: 560px; height: 560px; left: 25%; bottom: -300px; background: radial-gradient(circle, rgba(60, 200, 255, 0.26) 0%, rgba(7, 7, 11, 0) 68%); }
@keyframes drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(36px, 28px) scale(1.15); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; } }

#app { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; padding: 16px 16px 48px; display: flex; flex-direction: column; gap: 16px; }
.boot { color: var(--muted); padding: 40px 8px; }

.glass { background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.03)); border: 1px solid var(--line); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 14px 40px rgba(0, 0, 0, 0.45); backdrop-filter: blur(28px) saturate(170%); -webkit-backdrop-filter: blur(28px) saturate(170%); }
.card { border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.block { border-radius: 28px; padding: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--ink); min-width: 0; }
.block.o { background: var(--o); } .block.c { background: var(--c); } .block.v { background: var(--v); } .block.i { background: var(--ice); }
.block .muted { color: rgba(10, 10, 12, 0.8); }

h1, h2, h3 { margin: 0; font-family: var(--display); font-stretch: 125%; font-weight: 800; text-transform: uppercase; letter-spacing: -0.03em; line-height: 1; }
h1 { font-size: clamp(28px, 6vw, 60px); overflow-wrap: break-word; }
h2, h3, strong, p, span { overflow-wrap: anywhere; } h1 em { font-style: normal; color: var(--o); }
h2 { font-size: 20px; letter-spacing: -0.02em; } h3 { font-size: 16px; letter-spacing: -0.02em; }
p { margin: 0; line-height: 1.55; }
.eyebrow { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.muted { color: var(--muted); } .small { font-size: 12px; } .mono { font-family: var(--mono); font-weight: 700; }
.big { font-family: var(--mono); font-weight: 700; font-size: 84px; line-height: 0.9; letter-spacing: -0.07em; }
.mid { font-family: var(--mono); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.05em; }

.top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 8px 8px 14px; border-radius: 28px; }
.brand { display: flex; align-items: center; gap: 10px; white-space: nowrap; font-family: var(--display); font-stretch: 125%; font-weight: 800; font-size: 13px; text-transform: uppercase; margin-right: 4px; }
.dot { width: 32px; height: 32px; border-radius: 50%; background: var(--o); color: var(--ink); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 11px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; flex: 1; min-width: 0; }
.nav a { height: 44px; padding: 0 14px; white-space: nowrap; flex: none; border-radius: 999px; display: flex; align-items: center; gap: 8px; color: rgba(245, 245, 247, 0.82); text-decoration: none; font-size: 13px; font-weight: 700; }
.nav a[aria-current="page"] { background: var(--ice); color: var(--ink); font-weight: 800; }
.nav a[aria-current="page"]::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--o); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(0, 0, 0, 0.38); border: 1px solid var(--line); }
.seg button { height: 38px; min-width: 44px; padding: 0 12px; border-radius: 999px; border: 0; background: transparent; color: rgba(245, 245, 247, 0.82); font-family: var(--mono); font-size: 12px; font-weight: 700; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ice); color: var(--ink); }

.btn { min-height: 48px; padding: 0 20px; border-radius: 999px; border: 2px solid transparent; font-family: var(--body); font-size: 14px; font-weight: 800; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; }
.btn.primary { background: var(--o); color: var(--ink); min-height: 54px; font-size: 15px; }
.btn.dark { background: var(--ink); color: var(--ice); }
.btn.light { background: var(--ice); color: var(--ink); }
.btn.ghost { background: transparent; color: var(--ice); border-color: rgba(245, 245, 247, 0.5); }
.block .btn.ghost { color: var(--ink); border-color: var(--ink); }
.btn.sm { min-height: 44px; padding: 0 14px; font-size: 12px; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn:focus-visible, .seg button:focus-visible, input:focus-visible, textarea:focus-visible, .nav a:focus-visible, .row-btn:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

label { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; display: flex; flex-direction: column; gap: 6px; }
input, textarea, select { min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 2px solid transparent; background: rgba(0, 0, 0, 0.42); color: var(--ice); font-family: var(--body); font-size: 16px; font-weight: 600; width: 100%; max-width: 100%; letter-spacing: 0; text-transform: none; }
textarea { min-height: 84px; resize: vertical; }
.block input, .block textarea, .block select { background: rgba(10, 10, 12, 0.14); color: var(--ink); }
form { display: flex; flex-direction: column; gap: 10px; }
form.row { flex-direction: column; flex-wrap: nowrap; align-items: stretch; }
.block input::placeholder, .block textarea::placeholder { color: rgba(10, 10, 12, 0.62); }
input::placeholder, textarea::placeholder { color: rgba(245, 245, 247, 0.6); }
.inline { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }

.grid { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.grid > * { flex: 1 1 300px; }
.stack { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.block .row { background: rgba(10, 10, 12, 0.12); }
.row > .grow { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.row-btn { width: 100%; text-align: left; border: 0; color: inherit; font: inherit; cursor: pointer; }
.row-btn[aria-current="true"] { background: var(--ice); color: var(--ink); }
.row-btn[aria-current="true"] .muted { color: rgba(10, 10, 12, 0.74); }
.chip { font-size: 11px; font-weight: 800; padding: 6px 12px; border-radius: 999px; border: 2px solid transparent; white-space: nowrap; }
.chip.ok { background: var(--ice); color: var(--ink); } .chip.c { background: var(--c); color: var(--ink); } .chip.v { background: var(--v); color: var(--ink); }
.chip.wait { background: rgba(255, 255, 255, 0.12); } .chip.bad { border-color: var(--ice); }
.block .chip.dark { background: var(--ink); color: var(--ice); } .block .chip.line { border-color: var(--ink); }
.days { display: grid; grid-template-columns: repeat(14, 1fr); gap: 5px; }
.days span { height: 16px; border-radius: 5px; border: 2px solid rgba(10, 10, 12, 0.3); }
.days .done { background: var(--ink); border-color: var(--ink); } .days .now { background: var(--ice); border-color: var(--ink); }
.alert { border-radius: 20px; padding: 14px 16px; background: var(--ice); color: var(--ink); font-weight: 800; font-size: 14px; }
.note { border-radius: 20px; padding: 14px 16px; border: 2px dashed rgba(245, 245, 247, 0.3); font-size: 13px; color: rgba(245, 245, 247, 0.84); }
.embed { border-radius: 24px; overflow: hidden; background: #131318; }
.embed iframe { display: block; width: 100%; height: min(70vh, 620px); border: 0; }
.embed .fallback { padding: 28px 20px; display: flex; flex-direction: column; gap: 12px; }
.url { font-family: var(--mono); font-size: 12px; word-break: break-all; }
a.url.extra { display: flex; align-items: center; min-height: 44px; padding: 6px 14px; border-radius: 14px; background: rgba(255, 255, 255, 0.05); }
.chip { max-width: 100%; }
.login { max-width: 440px; margin: 8vh auto 0; display: flex; flex-direction: column; gap: 18px; }
.login h1 { font-size: clamp(30px, 10.5vw, 64px); }
.cols4 { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 64px; gap: 8px; align-items: center; }
.cols4 input { padding: 8px; min-height: 46px; font-family: var(--mono); font-size: 16px; }
.rate { justify-self: end; font-family: var(--mono); font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 999px; border: 2px solid var(--ink); }
.rate.low { background: var(--ink); color: var(--ice); }
@media (max-width: 760px) {
  .top { padding: 10px; }
  .top .brand { flex: 1; margin: 0 0 0 4px; font-size: 0; }
  .top .brand .dot { font-size: 11px; }
  .top .nav { order: 5; flex: 1 1 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .top .nav::-webkit-scrollbar { display: none; }
  .top .nav a { flex: 1 0 auto; justify-content: center; }
  .grid > * { flex: 1 1 100%; }
  .qlist { max-height: 250px; overflow-y: auto; }
}
@media (max-width: 560px) { .big { font-size: 68px; } .card, .block { padding: 18px; border-radius: 24px; } .cols4 { grid-template-columns: minmax(0, 1fr) 64px 64px 54px; } }

.btn.ai { background: var(--v); color: var(--ink); min-height: 54px; font-size: 15px; }
.gradebox { margin-left: auto; width: 60px; height: 60px; border-radius: 18px; background: var(--ink); color: var(--ice); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-family: var(--mono); font-size: 30px; font-weight: 700; flex: none; }
.gradebox.sm { width: 44px; height: 44px; border-radius: 14px; font-size: 22px; }
.bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.barhead { display: flex; justify-content: space-between; gap: 6px; font-size: 12px; font-weight: 700; margin-bottom: 5px; }
.bar { height: 6px; border-radius: 999px; background: rgba(10, 10, 12, 0.16); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
ul.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 13px; line-height: 1.45; }
ul.plain .chip { padding: 2px 8px; font-family: var(--mono); }


/* ---------- video types: 1 Storyline (orange), 2 Education (cyan), 3 Engagement (violet) ---------- */
.t1 { --tc: var(--o); } .t2 { --tc: var(--c); } .t3 { --tc: var(--v); }
.num { width: 44px; height: 44px; border-radius: 14px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; flex: none; background: var(--tc, var(--ice)); color: var(--ink); font-family: var(--mono); font-weight: 700; font-size: 20px; }
.num { line-height: 1; min-width: 44px; }
.num.sm { width: 28px; height: 28px; min-width: 28px; border-radius: 9px; font-size: 13px; }
.num.live { background: var(--ice); }
.chip.t1, .chip.t2, .chip.t3 { background: var(--tc); color: var(--ink); }
.chip.o { background: var(--o); color: var(--ink); }
.rolechip { margin-left: 8px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.08em; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); }

.missions { display: flex; flex-direction: column; gap: 16px; }
.mission { border-radius: 28px; padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; border-top: 4px solid var(--tc); }
.mission.is-locked { opacity: 0.55; }
.mission.is-done .mhead h3 { opacity: 0.85; }
.mhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mhead .grow { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.mhead h3 { font-size: clamp(18px, 5.4vw, 22px); overflow-wrap: normal; word-break: normal; }
.mhead .grow h3 { white-space: nowrap; }
.goal { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.06); background: color-mix(in srgb, var(--tc) 16%, transparent); border-left: 4px solid var(--tc); font-weight: 700; font-size: 15px; }
.submitbox { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; border-top: 1px solid var(--line); }

/* folds */
details.fold { border-radius: 18px; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
details.fold > summary { list-style: none; cursor: pointer; min-height: 48px; padding: 0 16px; display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 14px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '+'; font-family: var(--mono); width: 22px; height: 22px; border-radius: 7px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: rgba(255, 255, 255, 0.12); flex: none; }
details.fold[open] > summary::before { content: '\2212'; }
details.fold.ai-fold > summary { color: var(--v); }
details.fold.ai-fold > summary::before { background: var(--v); color: var(--ink); }
.foldbody { padding: 0 16px 16px; display: flex; flex-direction: column; gap: 12px; }
.block details.fold { background: rgba(10, 10, 12, 0.08); border-color: rgba(10, 10, 12, 0.2); }

/* playbook guide */
.guide { display: flex; flex-direction: column; gap: 16px; }
ol.formula, ol.beats, ol.steps, ol.timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
ol.formula { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); counter-reset: f; }
ol.formula li { padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, 0.05); border-top: 3px solid var(--tc, var(--ice)); display: flex; flex-direction: column; gap: 4px; }
ol.formula li .mono { color: var(--tc, var(--ice)); }
.gcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.hook { width: 100%; min-height: 44px; padding: 10px 14px; border-radius: 14px; border: 1px dashed rgba(245, 245, 247, 0.32); background: rgba(255, 255, 255, 0.03); color: var(--ice); font-family: var(--body); font-size: 14px; font-weight: 600; text-align: left; cursor: pointer; white-space: pre-line; line-height: 1.4; }
.hook:hover { border-style: solid; border-color: var(--tc, var(--ice)); }
.hook:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.hook[data-copied] { background: var(--ice); color: var(--ink); border-style: solid; }
ul.check li, ul.dont li { padding-left: 24px; position: relative; }
ul.check li::before { content: '\2713'; position: absolute; left: 0; font-family: var(--mono); font-weight: 700; color: var(--tc, var(--c)); }
ul.dont li::before { content: '\00D7'; position: absolute; left: 2px; font-family: var(--mono); font-weight: 700; color: rgba(245, 245, 247, 0.6); }
.block ul.check li::before, .block ul.dont li::before { color: var(--ink); }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { padding: 8px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.07); font-size: 13px; font-weight: 600; }

/* AI plan */
.ideaform { gap: 10px; }
.ideaout { display: flex; flex-direction: column; gap: 10px; padding-bottom: 6px; }
ol.beats li { display: grid; grid-template-columns: 64px 1fr; gap: 2px 12px; padding: 12px 14px; border-radius: 16px; background: rgba(167, 139, 250, 0.12); }
ol.beats li .mono { grid-row: span 2; color: var(--v); }
ol.beats li span:last-child { font-size: 14px; line-height: 1.5; }
.kv { display: flex; flex-direction: column; gap: 6px; }

/* progress ring */
.prog { flex-direction: row !important; align-items: center; gap: 18px !important; flex-wrap: wrap; }
.ring { --p: 0; width: 128px; height: 128px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: conic-gradient(var(--c) calc(var(--p) * 360deg), rgba(255, 255, 255, 0.12) 0); }
.ring > div { width: 100px; height: 100px; border-radius: 50%; background: #101016; display: flex; align-items: baseline; justify-content: center; padding-top: 30px; gap: 2px; }
.mini { display: flex; align-items: center; gap: 6px; }
.mini .sep { width: 10px; }
.d { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--tc, var(--ice)); display: inline-block; flex: none; }
.d.live { --tc: var(--ice); }
.d.ok { background: var(--tc, var(--ice)); }
.d.wait { background: color-mix(in srgb, var(--tc, #fff) 40%, transparent); }
.d.bad { background: repeating-linear-gradient(45deg, var(--tc, #fff) 0 3px, transparent 3px 6px); }

/* brief */
.brief h2 { font-size: clamp(22px, 4vw, 32px); }
.angle { display: flex; align-items: center; gap: 10px; }
.angle > span:last-child { flex: 1; min-width: 0; }
label .angle { text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 13px; font-weight: 800; }

/* academy */
.tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05); color: var(--ice); font-family: var(--body); font-size: 13px; font-weight: 800; cursor: pointer; display: flex; align-items: center; gap: 8px; }
.tabs button.t1::before, .tabs button.t2::before, .tabs button.t3::before { content: ''; width: 10px; height: 10px; border-radius: 3px; background: var(--tc); }
.tabs button[aria-selected="true"] { background: var(--ice); color: var(--ink); border-color: var(--ice); }
.tabs button:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.typehero .huge { font-size: clamp(40px, 9vw, 88px); letter-spacing: -0.05em; }
.typehero .lead { font-size: 18px; }
ol.steps li, ol.timeline li { display: grid; grid-template-columns: 140px 1fr; gap: 4px 14px; padding: 12px 14px; border-radius: 16px; background: rgba(10, 10, 12, 0.12); }
ol.timeline li { background: rgba(255, 255, 255, 0.05); }
ol.timeline li .mono { color: var(--c); }
.meterlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.meterlist p { margin-top: 6px; }
.rules { display: flex; flex-direction: column; gap: 8px; }
.verdict { font-size: clamp(20px, 3.4vw, 28px); text-transform: none; font-stretch: 100%; letter-spacing: -0.02em; line-height: 1.15; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.stats > div { padding: 10px 12px; border-radius: 14px; background: rgba(10, 10, 12, 0.12); display: flex; flex-direction: column; gap: 2px; }
.stats .mono { font-size: 20px; }

/* board */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.tile { padding: 16px 18px; gap: 6px; }
.tile .mid small { font-size: 18px; opacity: 0.7; letter-spacing: -0.02em; }
.tile.link { text-decoration: none; }
.tile.link:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.brow { display: grid; grid-template-columns: minmax(210px, 1fr) auto auto 72px minmax(0, 230px); align-items: center; gap: 10px 16px; padding: 12px 14px; border-radius: 18px; background: rgba(255, 255, 255, 0.05); }
.brow.miss { box-shadow: inset 0 0 0 2px rgba(245, 245, 247, 0.5); }
.brow .flag { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.brow .flag:empty { display: none; }
.brow .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.dotset { display: flex; align-items: center; gap: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 12px; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend .d { width: 14px; height: 14px; border-radius: 4px; }
.typeavg { display: flex; flex-direction: column; gap: 8px; }

select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }

@media (max-width: 760px) {
  .brow { grid-template-columns: 1fr auto; }
  .brow .who { grid-column: 1 / -1; }
  .brow > .chip { justify-self: start; }
  .brow .flag { grid-column: 1 / -1; justify-content: flex-start; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  ol.steps li, ol.timeline li { grid-template-columns: 1fr; }
  .rolechip { display: none; }
}
@media (max-width: 560px) {
  .mission { padding: 18px; border-radius: 24px; }
  .ring { width: 108px; height: 108px; } .ring > div { width: 84px; height: 84px; padding-top: 24px; } .ring .mid { font-size: 36px; }
  ol.beats li { grid-template-columns: 1fr; } ol.beats li .mono { grid-row: auto; }
}
.block .num { box-shadow: inset 0 0 0 2px var(--ink); }

/* =================== v3: IB / PM / Admin system =================== */
#app { padding-top: max(12px, env(safe-area-inset-top)); }
.page { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.top { position: sticky; top: max(8px, env(safe-area-inset-top)); z-index: 30; }
.brand { color: var(--ice); text-decoration: none; min-height: 44px; }
.logo { width: 34px; height: 34px; border-radius: 11px; background: var(--ink); border: 1px solid var(--line); display: inline-flex; align-items: flex-end; justify-content: center; gap: 3px; padding: 7px 6px; flex: none; }
.logo i { width: 4px; border-radius: 2px; transform-origin: bottom; animation: eq 1.4s ease-in-out infinite; }
.logo i:nth-child(1) { height: 9px; background: var(--o); } .logo i:nth-child(2) { height: 14px; background: var(--c); animation-delay: .2s; } .logo i:nth-child(3) { height: 19px; background: var(--v); animation-delay: .4s; }
@keyframes eq { 50% { transform: scaleY(.5); } }
.tools { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: rgba(0, 0, 0, .32); color: var(--ice); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; cursor: pointer; flex: none; }
.iconbtn .ic { width: 20px; height: 20px; }
.iconbtn[aria-pressed="false"] { opacity: .55; }
.iconbtn:focus-visible, .tabbar a:focus-visible, .pill:focus-visible, .src:focus-visible, .stat:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }
.ic { width: 18px; height: 18px; flex: none; }
.big-ic { width: 34px; height: 34px; }
.tabbar { display: none; }
.alert { animation: drop .35s cubic-bezier(.2, .8, .2, 1); }
.alert.ok { background: var(--c); } .alert.bad { background: var(--o); } .alert.info { background: var(--v); }
@keyframes drop { from { transform: translateY(-10px); opacity: 0; } }

/* magnetic buttons and press feel */
.btn, .tabs button, .tabbar a, .iconbtn { transform: translate(var(--mgx, 0px), var(--mgy, 0px)); transition: transform .25s cubic-bezier(.2, .8, .2, 1), background .2s, color .2s, box-shadow .2s, opacity .2s; }
.btn:active, .iconbtn:active, .tabbar a:active { transform: translate(var(--mgx, 0px), var(--mgy, 0px)) scale(.96); }
.btn.primary:hover { box-shadow: 0 10px 30px rgba(255, 128, 0, .35); }
.btn.ai:hover { box-shadow: 0 10px 30px rgba(167, 139, 250, .35); }
.btn.xs { min-height: 40px; padding: 0 12px; font-size: 12px; gap: 6px; }
.btn .ic { width: 18px; height: 18px; }
.btn.xs .num.sm { width: 22px; height: 22px; min-width: 22px; font-size: 11px; border-radius: 7px; }
.btn.busy { position: relative; overflow: hidden; }
.btn.busy::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .38), transparent); animation: shimmer 1.1s infinite; }
@keyframes shimmer { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.pill { border: 0; color: var(--ice); font-family: var(--body); cursor: pointer; min-height: 40px; text-align: left; }
.pill:hover { background: rgba(255, 255, 255, .14); }
.num .ic { width: 22px; height: 22px; } .num.sm .ic { width: 15px; height: 15px; }
.bar i { width: var(--w, 0%); transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes grow { from { transform: scaleX(0); } }

/* reveal on scroll */
.rv { opacity: 0; transform: translateY(22px) scale(.985); }
.rv.in { opacity: 1; transform: none; transition: opacity .6s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms), transform .7s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms); }

/* shared layout */
.sec-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.scoreline { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.angles { display: flex; flex-direction: column; gap: 8px; }
.angle-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.angle-row > span:not(.num):not(.av) { flex: 1 1 180px; min-width: 0; }
.usebtns { display: flex; gap: 6px; flex-wrap: wrap; }
.withic { display: flex; align-items: center; gap: 10px; }
.withic .ic { width: 24px; height: 24px; color: var(--v); }
.chip .ic { width: 12px; height: 12px; vertical-align: -1px; }
.chip.o { background: var(--o); color: var(--ink); }
.days { grid-template-columns: repeat(var(--n, 14), 1fr); }
.av { --s: 36px; width: var(--s); height: var(--s); border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--avc); color: var(--ink); font: 800 calc(var(--s) * .38)/1 var(--display); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.av.sm { --s: 30px; } .av.lg { --s: 56px; } .av.xl { --s: 72px; }

/* today */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; padding: 10px 4px 0; }
.hello { font-size: clamp(34px, 7vw, 66px); }
.hello em { font-style: normal; color: var(--o); }
.hero-stats { display: flex; gap: 10px; flex-wrap: wrap; }
.stat { min-width: 128px; padding: 14px 16px; border-radius: 22px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; color: var(--ice); text-decoration: none; }
.stat .sic { width: 36px; height: 36px; border-radius: 12px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; background: var(--o); color: var(--ink); margin-bottom: 4px; }
.stat:not(.flame) .sic { background: var(--v); }
.stat .mid { font-size: 38px; }
.stat.flame .sic { animation: flicker 1.6s ease-in-out infinite; }
@keyframes flicker { 50% { transform: scale(1.08) rotate(-5deg); } }
.warnbox { flex-direction: row; align-items: center; gap: 14px; }
.ring.full { box-shadow: 0 0 40px rgba(60, 200, 255, .45); }
.hotstrip { display: flex; align-items: center; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 10px 14px; min-height: 52px; border-radius: 22px; border: 1px solid rgba(255, 128, 0, .45); background: rgba(255, 128, 0, .08); color: var(--ice); text-decoration: none; }
.hotstrip::-webkit-scrollbar { display: none; }
.hotstrip .eyebrow { color: var(--o); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.hot { white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); font-size: 13px; font-weight: 700; }
.hotstrip > .small { white-space: nowrap; margin-left: auto; font-weight: 800; }
.brief-topic { font-size: clamp(22px, 4vw, 34px); }
.adminnote { padding: 10px 12px; border-radius: 14px; background: rgba(10, 10, 12, .08); }
.mission.open { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 20px 50px rgba(0, 0, 0, .45), 0 0 0 2px color-mix(in srgb, var(--tc) 55%, transparent); }
.mission.is-done .num { background: var(--ice); }
.passbar { position: relative; height: 10px; border-radius: 999px; background: rgba(10, 10, 12, .16); }
.passbar i { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 999px; background: var(--ink); transform-origin: left; animation: grow 1s cubic-bezier(.2, .8, .2, 1) both; }
.passbar b { position: absolute; top: -4px; bottom: -4px; width: 3px; border-radius: 2px; background: var(--ice); box-shadow: 0 0 0 2px var(--ink); }
.checkres.pass .gradebox { animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) both; }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }

/* ideas, radar */
.idea-list, .radar { display: flex; flex-direction: column; gap: 14px; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 12px; }
.idea-card { border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.summary { font-size: 17px; font-weight: 700; line-height: 1.5; padding-left: 14px; border-left: 4px solid var(--v); }
.radar-wait { align-items: center; text-align: center; padding: 32px; }
.scan { display: flex; gap: 6px; height: 36px; align-items: flex-end; }
.scan i { width: 10px; height: 36px; border-radius: 6px; background: var(--v); transform-origin: bottom; animation: eq .9s ease-in-out infinite; }
.scan i:nth-child(2) { background: var(--c); animation-delay: .15s; } .scan i:nth-child(3) { background: var(--o); animation-delay: .3s; }
.market .eyebrow { display: inline-flex; align-items: center; gap: 6px; }
ul.events { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
ul.events li { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 14px; background: rgba(10, 10, 12, .1); }
.trends { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.trend { border-radius: 26px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.catchip { font: 700 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; padding: 7px 10px; border-radius: 999px; background: var(--ice); color: var(--ink); }
.cat-gold .catchip { background: var(--o); } .cat-forex .catchip, .cat-money .catchip { background: var(--c); } .cat-success .catchip, .cat-motivation .catchip { background: var(--v); }
.cat-scam .catchip { background: transparent; color: var(--ice); box-shadow: inset 0 0 0 2px var(--ice); }
.heat { display: inline-flex; gap: 1px; }
.heat i { color: rgba(245, 245, 247, .18); display: inline-flex; } .heat i.on { color: var(--o); }
.heat .ic { width: 17px; height: 17px; }
.srcs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.src { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--ice); text-decoration: none; font-size: 12px; font-weight: 700; max-width: 100%; }
.src .ic { width: 14px; height: 14px; }
.block .src { background: rgba(10, 10, 12, .1); color: var(--ink); }

/* ranking */
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 10px; padding-top: 34px; max-width: 760px; width: 100%; margin: 0 auto; }
.pod { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; position: relative; min-width: 0; }
.pod .pname { font-size: 14px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pscore { font-size: 22px; } .pscore small { font-size: 11px; opacity: .7; }
.pbar { width: 100%; border-radius: 22px 22px 10px 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; font-size: 24px; color: var(--ink); transform-origin: bottom; animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
.p1 .pbar { height: 160px; background: var(--o); } .p2 .pbar { height: 118px; background: var(--c); animation-delay: .12s; } .p3 .pbar { height: 88px; background: var(--v); animation-delay: .24s; }
@keyframes rise { from { transform: scaleY(0); } }
.crown { position: absolute; top: -30px; color: var(--o); animation: bob 2s ease-in-out infinite; }
.crown .ic { width: 30px; height: 30px; fill: rgba(255, 128, 0, .3); }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-6deg); } }
.pod.me .av { box-shadow: 0 0 0 3px var(--ice); }
.kings { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.king { gap: 6px; } .king .big-ic { color: var(--tc); } .king strong { font-size: 18px; }
.lb-list .stack { gap: 8px; }
.lb-row { display: grid; grid-template-columns: 28px 40px 36px minmax(0, 1fr) minmax(90px, 170px) 44px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 18px; background: rgba(255, 255, 255, .04); }
.lb-row.me { background: rgba(255, 128, 0, .14); box-shadow: inset 0 0 0 2px var(--o); }
.lb-rank { font-size: 18px; text-align: center; }
.move { display: inline-flex; align-items: center; gap: 1px; font: 700 11px/1 var(--mono); color: rgba(245, 245, 247, .5); }
.move .ic { width: 14px; height: 14px; } .move.up { color: var(--c); } .move.new { color: var(--v); }
.lb-who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lb-who strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-who .ic { width: 12px; height: 12px; vertical-align: -1px; color: var(--o); }
.lb-bars { display: flex; flex-direction: column; gap: 4px; }
.mbar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .08); overflow: hidden; display: block; }
.mbar i { display: block; height: 100%; width: var(--w); background: var(--tc); border-radius: 999px; transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.lb-power { font-size: 20px; text-align: right; }

/* me */
.mini-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.mini-tiles .tile { padding: 14px; border-radius: 18px; background: rgba(255, 255, 255, .05); display: flex; flex-direction: column; gap: 6px; }
.mini-tiles .mid { font-size: 32px; }
.tile .eyebrow .ic { width: 12px; height: 12px; vertical-align: -1px; }
.inline.wide { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.history { gap: 12px; }
.workrow { gap: 10px; }

/* staff */
.pipeline > * { flex: 1 1 250px; }
.pcol-head { flex-direction: row !important; justify-content: space-between; align-items: flex-end; padding: 16px 18px; }
.pcard { gap: 10px; }
.pcard .chip { white-space: normal; line-height: 1.35; }
.cols5 { display: grid; grid-template-columns: minmax(0, 1fr) 84px 84px 84px 60px; gap: 8px; align-items: center; }
.cols5 input { padding: 8px; min-height: 46px; font-family: var(--mono); font-size: 16px; }
.switch { flex-direction: row; align-items: center; gap: 12px; min-height: 48px; cursor: pointer; text-transform: none; letter-spacing: 0; font-family: var(--body); font-size: 14px; font-weight: 700; position: relative; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; min-height: 0; }
.switch .knob { width: 52px; height: 30px; border-radius: 999px; background: rgba(255, 255, 255, .18); position: relative; flex: none; transition: background .2s; }
.switch .knob::after { content: ''; position: absolute; top: 4px; left: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--ice); transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.switch input:checked + .knob { background: var(--o); }
.switch input:checked + .knob::after { transform: translateX(22px); }
.switch input:focus-visible + .knob { outline: 3px solid var(--c); outline-offset: 2px; }
.revname { font-size: clamp(26px, 4vw, 40px); }
.must { padding: 16px; }
.brow .who { flex-direction: row !important; align-items: center; gap: 10px; }
.login-types { display: flex; flex-wrap: wrap; gap: 10px 12px; justify-content: center; opacity: .8; }
.login-types > span { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; white-space: nowrap; }
@media (max-width: 380px) { .login-types { gap: 8px; } .login-types > span { font-size: 12px; gap: 5px; } .login-types .num.sm { width: 24px; height: 24px; min-width: 24px; font-size: 12px; } }
.codein { font-size: 26px; letter-spacing: .4em; text-align: center; }

/* tutorial */
.tour { position: fixed; inset: 0; z-index: 9000; opacity: 0; transition: opacity .25s; }
.tour.on { opacity: 1; }
.tour-spot { position: fixed; border-radius: 20px; box-shadow: 0 0 0 200vmax rgba(4, 4, 8, .74), 0 0 0 2px var(--o), 0 0 34px rgba(255, 128, 0, .45); transition: all .38s cubic-bezier(.2, .8, .2, 1); pointer-events: none; }
.tour.center .tour-spot { box-shadow: 0 0 0 200vmax rgba(4, 4, 8, .82); }
.tour-card { position: fixed; z-index: 2; padding: 18px; border-radius: 24px; background: #15151c; border: 1px solid rgba(255, 255, 255, .16); box-shadow: 0 24px 60px rgba(0, 0, 0, .6); display: flex; flex-direction: column; gap: 10px; color: var(--ice); transition: left .38s cubic-bezier(.2, .8, .2, 1), top .38s cubic-bezier(.2, .8, .2, 1); }
.tour-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.tour-n { color: var(--o); }
.tour-x { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--muted); font: 700 12px var(--body); cursor: pointer; }
.tour-card h3 { font-size: 20px; }
.tour-card p { font-size: 14px; color: rgba(245, 245, 247, .9); }
.tour-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.tour-dots { display: flex; gap: 5px; }
.tour-dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, .25); transition: all .25s; }
.tour-dots i.on { width: 18px; border-radius: 999px; background: var(--o); }
.tour-acts { display: flex; gap: 8px; margin-left: auto; }
.tour-x:focus-visible { outline: 3px solid var(--c); outline-offset: 2px; }

/* cursor motion (mouse only) */
.fx-cursor, .fx-cursor * { cursor: none !important; }
.fx-cursor input:not([type=checkbox]):not([type=radio]), .fx-cursor textarea, .fx-cursor [contenteditable] { cursor: text !important; }
.cur { position: fixed; inset: 0; pointer-events: none; z-index: 9999; opacity: 0; transition: opacity .2s; }
.cur.on { opacity: 1; }
.cur-dot { position: absolute; left: 0; top: 0; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: var(--cc, var(--o)); }
.cur-ring { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; border: 1.5px solid rgba(245, 245, 247, .55); transition: opacity .2s, width .2s, height .2s, margin .2s; }
.cur.locked .cur-ring, .cur.text .cur-ring, .cur.text .cur-dot { opacity: 0; }
.cur.down .cur-ring { width: 22px; height: 22px; margin: -11px 0 0 -11px; }
.cur-lock { position: absolute; left: 0; top: 0; opacity: 0; transition: opacity .18s; }
.cur.locked .cur-lock { opacity: 1; }
.cur-lock i { position: absolute; width: 11px; height: 11px; border: 0 solid var(--cc, var(--o)); }
.cur-lock i:nth-child(1) { left: 0; top: 0; border-left-width: 2px; border-top-width: 2px; border-top-left-radius: 7px; }
.cur-lock i:nth-child(2) { right: 0; top: 0; border-right-width: 2px; border-top-width: 2px; border-top-right-radius: 7px; }
.cur-lock i:nth-child(3) { left: 0; bottom: 0; border-left-width: 2px; border-bottom-width: 2px; border-bottom-left-radius: 7px; }
.cur-lock i:nth-child(4) { right: 0; bottom: 0; border-right-width: 2px; border-bottom-width: 2px; border-bottom-right-radius: 7px; }
.cur-label { position: absolute; left: 0; top: 0; font: 700 10px/1 var(--mono); letter-spacing: .12em; padding: 5px 8px; border-radius: 999px; background: var(--cc, var(--o)); color: var(--ink); opacity: 0; transition: opacity .15s; white-space: nowrap; }
.cur.locked.labelled .cur-label { opacity: 1; }
.spark { position: fixed; z-index: 9998; width: 5px; height: 5px; margin: -2.5px; border-radius: 50%; pointer-events: none; animation: spark .5s ease-out forwards; }
@keyframes spark { to { transform: translate(var(--dx), var(--dy)) scale(.2); opacity: 0; } }
.tapring { position: fixed; z-index: 9998; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 2px solid var(--o); pointer-events: none; animation: tapring .55s ease-out forwards; }
@keyframes tapring { to { transform: scale(6); opacity: 0; } }
.fx-cursor .lit { position: relative; }
.fx-cursor .lit::after { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: radial-gradient(280px circle at var(--sx, -999px) var(--sy, -999px), rgba(255, 255, 255, .13), transparent 65%); }
.confetti { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 9500; }

/* phones: app-style bottom tab bar */
@media (max-width: 1023px) {
  .top { padding: 8px 8px 8px 10px; flex-wrap: nowrap; }
  .top .brand { flex: 1; font-size: 13px; margin: 0; min-width: 0; }
  .top .nav { display: none; }
  .bname { display: none; }
  .top .rolechip { display: inline-block; }
  .tools { gap: 4px; }
  .tools .seg button { min-width: 38px; padding: 0 8px; height: 36px; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); position: fixed; left: 10px; right: 10px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 40; padding: 6px; gap: 2px; border-radius: 26px; background: rgba(14, 14, 20, .82); backdrop-filter: blur(24px) saturate(170%); -webkit-backdrop-filter: blur(24px) saturate(170%); border: 1px solid var(--line); box-shadow: 0 18px 40px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .14); }
  .tabbar a { min-height: 54px; min-width: 0; border-radius: 20px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(245, 245, 247, .72); text-decoration: none; font-size: 10px; font-weight: 800; white-space: nowrap; overflow: hidden; }
  .tabbar a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .tabbar a .ic { width: 22px; height: 22px; }
  .tabbar a[aria-current="page"] { background: var(--ice); color: var(--ink); }
  #app.authed { padding-bottom: calc(104px + env(safe-area-inset-bottom)); }
}
@media (min-width: 761px) and (max-width: 1023px) {
  .bname { display: inline; }
  .tabbar { left: 50%; right: auto; width: min(620px, calc(100% - 20px)); translate: -50% 0; }
}
@media (max-width: 760px) {
  .lb-row { grid-template-columns: 24px 34px 32px minmax(0, 1fr) 40px; }
  .lb-bars { grid-column: 3 / 6; grid-row: 2; }
  .hero-stats { width: 100%; } .stat { flex: 1 1 0; min-width: 0; }
  .pbar { font-size: 18px; } .p1 .pbar { height: 120px; } .p2 .pbar { height: 92px; } .p3 .pbar { height: 70px; }
  .lb-who strong { white-space: normal; }
}
/* weekly report on phones: name on its own line, the three numbers below it with their own labels */
.cols5 .cell { display: contents; } .cols5 .cell-l { display: none; }
@media (max-width: 640px) {
  .cols5 { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; gap: 6px 8px; align-items: end; padding: 10px 0; border-top: 2px solid rgba(10, 10, 12, .15); }
  .cols5.eyebrow { display: none; }
  .cols5 > strong { grid-column: 1 / -1; }
  .cols5 .cell { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
  .cols5 .cell-l { display: block; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .cols5 .rate { align-self: end; margin-bottom: 6px; }
}
.brief-form .inline { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.settings .inline { align-items: end; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
@media (max-width: 420px) { .top .rolechip { display: none; } }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } .tour-spot, .tour-card { transition: none; } }
