/* Centri Studios hub (mockup, Spin, 2026-10-13). The Sixth Man website's tokens
   (sixth-man/site/src/styles.css): Geist, brand blue, the ball's orange, bezel cards, pill
   buttons. Light and dark follow the device; data-theme on <html> overrides it. */

@font-face { font-family: Geist; src: url(fonts/Geist_400Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist_500Medium.ttf) format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist_600SemiBold.ttf) format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist_700Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: Geist; src: url(fonts/Geist_800ExtraBold.ttf) format('truetype'); font-weight: 800; font-display: swap; }

:root {
  --primary: #1f4fd1;
  --primary-2: #7d9bf0; /* the second series in a chart (Google Play beside the App Store) */
  --on-primary: #ffffff;
  --ball: #e8740c;
  --bg: #f4f4f2;
  --surface: #ffffff;
  --shell: rgba(16, 17, 20, 0.04);
  --shell-border: rgba(16, 17, 20, 0.07);
  --hairline: rgba(16, 17, 20, 0.08);
  --text: #101114;
  --text-2: #5b5f68;
  --text-3: #80848c;
  --primary-soft: #e3e9fb;
  --on-primary-soft: #1a3fa6;
  --ball-soft: #fdecd8;
  --on-ball-soft: #8a4204;
  --good: #1f9d55;
  --good-soft: #e1f3e8;
  --bad: #d23b3b;
  --bad-soft: #fbe5e5;
  --on-bad-soft: #9b1f1f;
  --highlight: rgba(255, 255, 255, 0.9);
  --shadow: 0 1px 2px rgba(16, 17, 20, 0.04), 0 18px 40px -24px rgba(16, 17, 20, 0.18);
  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --radius: 28px;
  --gutter: 20px;
  color-scheme: light;
}
:root[data-theme='dark'] {
  --primary-2: #8eaaf7;
  --bg: #0a0b0d;
  --surface: #15161a;
  --shell: rgba(255, 255, 255, 0.035);
  --shell-border: rgba(255, 255, 255, 0.07);
  --hairline: rgba(255, 255, 255, 0.08);
  --text: #f3f4f6;
  --text-2: #a4a8b0;
  --text-3: #7a7e86;
  --primary-soft: #1a2442;
  --on-primary-soft: #a9bdf7;
  --ball-soft: #3a240f;
  --on-ball-soft: #ffc28a;
  --good: #4acb82;
  --good-soft: #12301f;
  --bad: #f06a6a;
  --bad-soft: #3a1414;
  --on-bad-soft: #ffb3b3;
  --highlight: rgba(255, 255, 255, 0.06);
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -24px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: Geist, system-ui, sans-serif; font-size: 15px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
a { color: inherit; }
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.05; margin: 0; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 12px; }
.theme-dark-only { display: none; }
:root[data-theme='dark'] .theme-dark-only { display: block; }
:root[data-theme='dark'] .theme-light-only { display: none; }

/* ---------- the top bar: a floating pill, as on the site ---------- */
.top { padding: 16px var(--gutter) 0; position: relative; z-index: 5; }
.bar {
  max-width: 1240px; margin: 0 auto; display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: 999px; background: var(--shell); border: 1px solid var(--shell-border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px 0 6px; font-weight: 800; letter-spacing: -0.02em; text-decoration: none; white-space: nowrap; font-size: 16px; }
.brand img { width: 34px; height: 34px; }
.switcher {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; min-height: 44px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--shell-border);
  box-shadow: var(--shadow), inset 0 1px 0 var(--highlight); font: 600 15px Geist, sans-serif; color: var(--text);
}
.switcher img { width: 30px; height: 30px; border-radius: 8px; }
.switcher .chev { color: var(--text-3); font-size: 12px; margin-left: 2px; }
.sep { width: 1px; height: 24px; background: var(--hairline); margin: 0 4px; }
.tabs { display: flex; gap: 2px; }
.tabs a {
  text-decoration: none; font-weight: 500; font-size: 15px; color: var(--text-2); white-space: nowrap;
  padding: 10px 14px; border-radius: 999px; min-height: 44px; display: inline-flex; align-items: center; gap: 8px;
}
.tabs a[aria-current='page'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 1px 0 var(--highlight); font-weight: 600; }
.tabs .count { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ball); color: #fff; font-size: 12px; font-weight: 700; display: inline-grid; place-items: center; }
.bar .meta { margin-left: auto; display: flex; align-items: center; gap: 8px; padding-right: 12px; color: var(--text-3); font-size: 13px; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--good); display: inline-block; flex: none; }
.dot.bad { background: var(--bad); }
.dot.warn { background: var(--ball); }

/* The app switcher, open. */
.menu {
  position: absolute; top: 76px; left: max(var(--gutter), calc(50% - 620px + 178px)); width: 300px; padding: 6px;
  border-radius: 24px; background: var(--bg); border: 1px solid var(--shell-border); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.45);
}
.menu .core { padding: 8px; }
.menu-item { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 16px; }
.menu-item img, .menu-item .ph { width: 40px; height: 40px; border-radius: 11px; flex: none; }
.menu-item .ph { display: grid; place-items: center; border: 1.5px dashed var(--shell-border); color: var(--text-3); font-weight: 700; background: var(--shell); }
.menu-item b { display: block; font-weight: 600; }
.menu-item small { color: var(--text-3); font-size: 13px; }
.menu-item.on { background: var(--primary-soft); }
.menu-item.on small { color: var(--on-primary-soft); }
.menu-item .check { margin-left: auto; color: var(--on-primary-soft); font-weight: 800; }
.menu hr { border: 0; border-top: 1px solid var(--hairline); margin: 6px 10px; }

/* ---------- page ---------- */
main { max-width: 1240px; margin: 0 auto; padding: 0 var(--gutter) 64px; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 40px 4px 24px; }
.eyebrow {
  display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--primary-soft); color: var(--on-primary-soft);
  font-size: 11px; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase;
}
.eyebrow.sample { background: var(--ball-soft); color: var(--on-ball-soft); margin-left: 6px; }
.head h1 { font-size: clamp(34px, 5vw, 48px); font-weight: 800; margin-top: 14px; }
.head p { color: var(--text-2); margin: 8px 0 0; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--shell); border: 1px solid var(--shell-border); }
.seg button, .seg a {
  border: 0; background: transparent; color: var(--text-2); font: 600 14px Geist, sans-serif; text-decoration: none;
  padding: 8px 16px; border-radius: 999px; min-height: 40px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer;
}
.seg [aria-pressed='true'], .seg [aria-current='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow), inset 0 1px 0 var(--highlight); }
.h2 { font-size: 22px; font-weight: 800; letter-spacing: -0.03em; margin: 36px 4px 14px; display: flex; align-items: center; gap: 10px; }
.h2 .note { font: 500 14px Geist, sans-serif; color: var(--text-3); letter-spacing: 0; margin-left: auto; }

/* ---------- bezel: a machined tray around a raised plate ---------- */
.bezel { padding: 6px; border-radius: var(--radius); background: var(--shell); border: 1px solid var(--shell-border); min-width: 0; }
.core { border-radius: calc(var(--radius) - 6px); background: var(--surface); box-shadow: var(--shadow), inset 0 1px 0 var(--highlight); padding: 22px; height: 100%; min-width: 0; }
.core.primary { background: var(--primary); color: var(--on-primary); }

/* ---------- needs you ---------- */
.needs .core { padding: 18px; }
.needs-head { display: flex; align-items: center; gap: 10px; padding: 2px 4px 14px; }
.needs-head b { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; }
.needs-head .pill { background: var(--ball); color: #fff; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 9px; }
.needs-head .all { margin-left: auto; color: var(--text-3); font-size: 13px; text-decoration: none; }
.alerts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 18px; background: var(--shell); border: 1px solid var(--shell-border); text-decoration: none; min-width: 0; }
.alert .ic { width: 36px; height: 36px; border-radius: 12px; flex: none; display: grid; place-items: center; background: var(--ball-soft); color: var(--on-ball-soft); font-weight: 800; font-size: 15px; }
.alert.bad .ic { background: var(--bad-soft); color: var(--on-bad-soft); }
.alert b { display: block; font-weight: 600; font-size: 14px; line-height: 1.3; }
.alert span { display: block; color: var(--text-2); font-size: 13px; line-height: 1.35; margin-top: 3px; }
.alert .go { margin-left: auto; color: var(--text-3); align-self: center; }

/* ---------- KPI cards ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpis .wide { grid-column: span 2; }
.kpi .label { display: flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 600; font-size: 13px; letter-spacing: 0.02em; }
.kpi .label .src { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 12px; }
.kpi .value { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 14px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.kpi .value small { font-size: 15px; font-weight: 600; color: var(--text-3); letter-spacing: 0; }
.kpi.wide .value { font-size: 48px; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; letter-spacing: 0; padding: 3px 9px; border-radius: 999px; background: var(--good-soft); color: var(--good); }
.delta.down { background: var(--bad-soft); color: var(--bad); }
.delta.flat { background: var(--shell); color: var(--text-2); }
.vs { color: var(--text-3); font-size: 12.5px; margin-top: 8px; }
.split { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 14px; font-size: 13.5px; color: var(--text-2); }
.split b { color: var(--text); font-weight: 700; }
.key { width: 9px; height: 9px; border-radius: 3px; display: inline-block; margin-right: 6px; background: var(--primary); vertical-align: 0; }
.key.b { background: var(--primary-2); }
.key.o { background: var(--ball); }
.spark { width: 100%; height: 56px; margin-top: 16px; overflow: visible; }
.kpi.wide .spark { height: 84px; }
.spark-axis { display: flex; justify-content: space-between; color: var(--text-3); font-size: 11.5px; margin-top: 6px; }
.stars { color: var(--ball); letter-spacing: 1px; font-size: 14px; }
.rating-row { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 12px; }
.rating-row .big { font-size: 30px; font-weight: 800; letter-spacing: -0.04em; }
.rating-row .n { color: var(--text-3); font-size: 12.5px; }
.nets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.nets .v { font-size: 26px; font-weight: 800; letter-spacing: -0.03em; }
.nets .k { color: var(--text-2); font-size: 13px; }
.nets .spark { height: 40px; margin-top: 8px; }

/* ---------- bars ---------- */
.bars { display: flex; align-items: flex-end; gap: 4px; height: 180px; margin-top: 18px; }
.bars .col { flex: 1; display: flex; flex-direction: column-reverse; gap: 2px; height: 100%; justify-content: flex-start; }
.bars i { display: block; border-radius: 5px; background: var(--primary); height: calc(var(--v) * 100%); min-height: 2px; }
.bars i.b { background: var(--primary-2); }
.bars .col.today i { outline: 2px solid var(--ball); outline-offset: 1px; }
.hbars { display: grid; gap: 12px; margin-top: 8px; }
.hbar { display: grid; grid-template-columns: 170px 1fr 56px; gap: 12px; align-items: center; font-size: 14px; }
.hbar .track { height: 12px; border-radius: 999px; background: var(--shell); border: 1px solid var(--shell-border); overflow: hidden; }
.hbar .fill { height: 100%; width: calc(var(--v) * 100%); border-radius: 999px; background: var(--primary); }
.hbar .fill.b { background: var(--primary-2); }
.hbar .fill.o { background: var(--ball); }
.hbar .num { text-align: right; font-weight: 700; }
.hbar .name { color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dist { display: grid; gap: 7px; margin-top: 14px; }
.dist .hbar { grid-template-columns: 26px 1fr 34px; font-size: 13px; }
.dist .fill { background: var(--ball); }

/* ---------- grids and tables ---------- */
.grid { display: grid; gap: 14px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.card-title { font-weight: 700; font-size: 16px; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.card-title .note { margin-left: auto; color: var(--text-3); font-weight: 500; font-size: 13px; }
.legend { display: flex; gap: 16px; color: var(--text-2); font-size: 13px; margin-top: 6px; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--text-3); font-weight: 600; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; padding: 10px 12px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
td.n, th.n { text-align: right; }
tfoot td { font-weight: 800; border-top: 1px solid var(--hairline); }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--shell); border: 1px solid var(--shell-border); color: var(--text-2); }
.tag.blue { background: var(--primary-soft); color: var(--on-primary-soft); border-color: transparent; }
.tag.ok { background: var(--good-soft); color: var(--good); border-color: transparent; }
.tag.bad { background: var(--bad-soft); color: var(--bad); border-color: transparent; }
.tag.warn { background: var(--ball-soft); color: var(--on-ball-soft); border-color: transparent; }
.mini { width: 110px; height: 26px; }
td.err { white-space: normal; color: var(--bad); font-size: 13px; line-height: 1.35; min-width: 180px; }
.muted { color: var(--text-3); }

/* ---------- reviews ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; min-height: 40px; border-radius: 999px; font-weight: 600; font-size: 14px; background: var(--shell); border: 1px solid var(--shell-border); color: var(--text-2); }
.chip[aria-pressed='true'] { background: var(--primary); color: var(--on-primary); border-color: transparent; }
.chip .st { color: var(--ball); }
.chip[aria-pressed='true'] .st { color: #fff; }
.filters .right { margin-left: auto; color: var(--text-3); font-size: 13px; }
.review { display: grid; gap: 8px; }
.review .top-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.review .stars { font-size: 16px; }
.review .stars .off { color: var(--hairline); }
.review p { margin: 0; color: var(--text); font-size: 15px; line-height: 1.55; }
.review .date { margin-left: auto; color: var(--text-3); font-size: 13px; }
.review.low .core { box-shadow: var(--shadow), inset 0 1px 0 var(--highlight), inset 3px 0 0 var(--ball); }
.list { display: grid; gap: 12px; }

/* ---------- health ---------- */
.deadline .core { display: grid; gap: 12px; }
.deadline .big { font-size: 40px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.meter { height: 12px; border-radius: 999px; background: var(--shell); border: 1px solid var(--shell-border); overflow: hidden; }
.meter i { display: block; height: 100%; width: calc(var(--v) * 100%); background: linear-gradient(90deg, var(--primary), var(--ball)); border-radius: 999px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.form label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.form .full { grid-column: 1 / -1; }
.field { min-height: 48px; padding: 12px 16px; border-radius: 16px; background: var(--bg); border: 1px solid var(--shell-border); color: var(--text); font: 500 15px Geist, sans-serif; display: flex; align-items: center; justify-content: space-between; }
.field .ph { color: var(--text-3); }
.btn {
  display: inline-flex; align-items: center; gap: 14px; padding: 6px 6px 6px 22px; min-height: 52px; border-radius: 999px;
  background: var(--primary); color: var(--on-primary); font: 600 15px Geist, sans-serif; text-decoration: none; border: 0;
  box-shadow: 0 14px 30px -16px var(--primary); justify-self: start;
}
.btn-icon { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: rgba(255, 255, 255, 0.18); }
.fine { color: var(--text-3); font-size: 13px; margin-top: 12px; }
footer.foot { max-width: 1240px; margin: 0 auto; padding: 0 calc(var(--gutter) + 4px) 40px; color: var(--text-3); font-size: 13px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }

/* ---------- phone ---------- */
@media (max-width: 900px) {
  .bar { flex-wrap: wrap; border-radius: 28px; padding: 8px; }
  .bar .meta { display: none; }
  .sep { display: none; }
  .switcher { margin-left: auto; }
  .tabs { order: 3; width: 100%; overflow-x: auto; scrollbar-width: none; padding-top: 4px; border-top: 1px solid var(--hairline); margin-top: 4px; }
  .tabs::-webkit-scrollbar { display: none; }
  .brand span { display: none; }
  .head { padding-top: 28px; }
  .alerts, .kpis, .g2, .g3, .g4, .g-2-1 { grid-template-columns: minmax(0, 1fr); }
  .kpis .wide { grid-column: auto; }
  .kpi.wide .value, .kpi .value { font-size: 40px; }
  .hbar { grid-template-columns: 120px 1fr 48px; }
  .form { grid-template-columns: minmax(0, 1fr); }
  .table-wrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
  .stack td, .stack th { padding: 10px 8px; }
  .hide-phone { display: none; }
  .h2 { flex-wrap: wrap; }
  .h2 .note { margin-left: 0; width: 100%; }
  td, th { padding: 10px 6px; }
  table { font-size: 13.5px; }
  .menu { left: var(--gutter); right: var(--gutter); width: auto; top: 70px; }
}

/* ---------- the real pages (added for the build; the mockup's tokens above are untouched) ---------- */
.eyebrow[hidden] { display: none; }
input.field, select.field { width: 100%; -webkit-appearance: none; appearance: none; }
select.field { background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
input.field:focus, select.field:focus { outline: 3px solid var(--primary); outline-offset: 2px; }
.form .btn { margin-top: 4px; }
.form .btn:disabled, .chip:disabled { opacity: 0.6; }
.chip.run { padding: 6px 12px; min-height: 32px; font-size: 13px; cursor: pointer; }
.review b { display: block; }
.menu[hidden] { display: none; }
.bar .meta span:last-child { overflow: hidden; text-overflow: ellipsis; }
.form label[hidden] { display: none; }
