/* Corz Management, in the Corz website's and launcher's own language (corz.gg app/globals.css): near-black,
   translucent white overlays with 1px edges, launcher purple, Minecraft pixel headings, the CORZ wordmark, flat
   buttons, and hairline lists rather than a wall of equal cards. Values are the site's, under the site's names. */
@font-face { font-family: "Minecraft"; src: url("/assets/fonts/Minecraft-Regular.otf") format("opentype"); font-display: swap; }
@font-face { font-family: "CorzWave"; src: url("/assets/fonts/CorzWave-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Geist"; src: url("/assets/fonts/geist-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --background: #0b0a0a; --card: #131212; --popover: #1c1b1b; --sidebar: #0f0e0e;
  --surface: rgba(255, 255, 255, .027); --surface-hover: rgba(255, 255, 255, .045);
  --edge: rgba(255, 255, 255, .094); --hairline: rgba(255, 255, 255, .055);
  --control: rgba(255, 255, 255, .04); --control-hover: rgba(255, 255, 255, .07);
  --field: rgba(255, 255, 255, .067); --field-hover: rgba(255, 255, 255, .1);
  --title: #fafafa; --body: #a09e9e; --subtle: #968f8f; --label: #c8c8c8; --dim: #4e4d4d;
  --primary: #7e2ed6; --primary-hover: #8c3ee4; --primary-active: #6a24b6; --primary-soft: rgba(126, 46, 214, .1); --primary-light: #9e62e0;
  --on: #70be7a; --attn: #e6e1ee; --off: #e25250;   /* green and red are the only status colours (owner, 6.11: "yellow is just ugly"). What needs a look but isn't bad reads bright and clean. */
  --chip: 6px; --control-r: 8px; --panel: 10px;
  --sans: Poppins, Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --num: Geist, Poppins, ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, Menlo, Consolas, monospace;
  --pixel: Minecraft, "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--background); color: var(--title); font: 400 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0; background: radial-gradient(70% 46% at 62% -12%, rgba(126, 46, 214, .045), transparent 72%); }
h1, h2, h3, h4, p, ul { margin: 0; }
a { color: var(--primary-light); text-decoration: none; }
a:hover { color: #b48aeb; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--primary); color: #fff; }
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; border-radius: 4px; }
.num { font-family: var(--num); font-variant-numeric: tabular-nums; }
.font-pixel { font-family: var(--pixel); letter-spacing: .02em; line-height: 1.3; }
.wordmark { font-family: CorzWave, var(--sans); font-size: 17px; line-height: 1; color: #cfcece; }

/* The frame */
.frame { position: relative; z-index: 1; display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: 100vh; }
.rail { position: sticky; top: 0; height: 100vh; background: var(--sidebar); border-right: 1px solid var(--hairline); display: flex; flex-direction: column; }
.brand { display: flex; align-items: center; gap: 10px; height: 56px; flex: none; padding: 0 16px; border-bottom: 1px solid var(--hairline); }
.brand img { width: 24px; height: 24px; object-fit: contain; }
.nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding: 12px 10px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-head { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); padding: 20px 10px 6px; }
.nav-head:first-child { padding-top: 6px; }
.nav a { display: flex; align-items: center; gap: 10px; height: 36px; flex: none; padding: 0 10px; border-radius: var(--control-r); font-size: 13px; font-weight: 500; color: var(--body); transition: background-color .15s, color .15s; }
.nav a svg { color: var(--subtle); flex: none; transition: color .15s; }
.nav a:hover { background: var(--control); color: var(--title); }
.nav a.on { background: var(--control-hover); color: var(--title); }
.nav a.on svg { color: var(--primary-light); }
.nav .count.mine { background: var(--primary-soft); color: #d8b4fe; }
.nav .count { margin-left: auto; font: 600 11px var(--num); min-width: 18px; height: 18px; padding: 0 5px; display: grid; place-items: center; border-radius: var(--chip); background: rgba(226, 82, 80, .14); color: var(--off); }
.rail-foot { flex: none; padding: 12px; border-top: 1px solid var(--hairline); display: flex; align-items: center; gap: 10px; }
.rail-foot .who { min-width: 0; flex: 1; }
.rail-foot .who b { display: block; font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail-foot .who span { display: block; font-size: 12px; color: var(--primary-light); }
.main { padding: 28px 32px 64px; min-width: 0; width: 100%; max-width: 1360px; margin: 0 auto; }
.page { animation: rise .35s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.still .page, .still .bar > i { animation: none; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font: 400 24px/1.25 var(--pixel); letter-spacing: .02em; }
.page-head p { color: var(--body); margin-top: 4px; }
.asof { display: inline-flex; align-items: center; gap: 7px; height: 28px; padding: 0 10px; border: 1px solid var(--edge); border-radius: var(--control-r); background: var(--surface); font-size: 12px; color: var(--body); }
.asof i { width: 6px; height: 6px; border-radius: 50%; background: var(--on); }
.demo { background: rgba(255, 255, 255, .035); color: var(--label); border: 1px solid var(--hairline); border-radius: var(--control-r); padding: 9px 13px; margin-bottom: 20px; font-size: 13px; font-weight: 500; }
.topbar { display: none; }

/* Layout */
.grid { display: grid; gap: 12px; }
.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); }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt { margin-top: 12px; }
.mt-l { margin-top: 28px; }
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .018)); border: 1px solid var(--hairline); border-radius: 12px; padding: 16px 18px; min-width: 0; }
.card.flush { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: -16px -18px 14px; padding: 12px 18px; min-height: 46px; border-bottom: 1px solid var(--hairline); }
.card.flush .card-head { margin: 0; }
h3.t { font: 600 14px/1.3 var(--sans); color: var(--title); }
.sub { color: var(--subtle); font-size: 12px; }
.section-title { font: 400 16px/1.3 var(--pixel); letter-spacing: .02em; margin: 30px 0 12px; }
.src { color: var(--subtle); font: 11px/1.5 var(--mono); margin-top: 12px; }
.src a { color: var(--primary-light); }

/* The verdict */
.hero { display: grid; grid-template-columns: minmax(280px, 5fr) minmax(0, 7fr); background: var(--surface); border: 1px solid var(--edge); border-radius: var(--panel); overflow: hidden; }
.hero-main { position: relative; padding: 26px 26px 22px; border-right: 1px solid var(--hairline); background-image: radial-gradient(circle, rgba(255, 255, 255, .055) 1px, transparent 1px); background-size: 22px 22px; }
.hero-main::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(90% 90% at 0% 0%, rgba(126, 46, 214, .07), transparent 70%); }
.hero-main > * { position: relative; z-index: 1; }
.eyebrow, .verdict-eyebrow { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); }
.hero-title { font: 400 34px/1.2 var(--pixel); letter-spacing: .02em; margin: 12px 0 14px; }
.hero-title span { display: block; }
.verdict-state { font: 400 26px/1.25 var(--pixel); letter-spacing: .02em; margin-top: 8px; }
.s-on { color: var(--on); } .s-attn { color: var(--attn); } .s-off { color: var(--off); } .s-none { color: var(--subtle); }
.hero-why { list-style: none; padding: 0; color: var(--body); font-size: 13px; }
.hero-why li { margin-top: 5px; padding-left: 14px; position: relative; }
.hero-why li::before { content: ""; position: absolute; left: 0; top: 8px; width: 5px; height: 5px; border-radius: 1px; background: var(--dim); }
.exceptional { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; margin-bottom: 8px; font-size: 11px; font-weight: 500; border-radius: var(--chip); color: var(--on); background: rgba(112, 190, 122, .1); }
.metric-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
.metric { display: grid; grid-template-columns: 7px minmax(0, 1fr) auto; align-items: center; column-gap: 11px; padding: 11px 18px; border-bottom: 1px solid var(--hairline); min-width: 0; }
.metric:nth-child(odd) { border-right: 1px solid var(--hairline); }
.metric:nth-last-child(-n+2) { border-bottom: 0; }
.metric-name { min-width: 0; font-size: 13px; color: var(--label); }
.metric-name span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.metric-name small { display: block; font-size: 11px; color: var(--subtle); margin-top: 1px; }
.metric-val { font: 600 15px var(--num); font-variant-numeric: tabular-nums; white-space: nowrap; }
.metric-val.na { font-weight: 500; font-size: 12px; color: var(--subtle); }
.dot { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.dot.s-on { background: var(--on); } .dot.s-attn { background: var(--attn); } .dot.s-off { background: var(--off); }

/* Numbers: one panel with hairlines between, as the launcher does it, not a row of separate boxes */
.strip { display: grid; gap: 1px; background: var(--hairline); border: 1px solid var(--edge); border-radius: var(--panel); overflow: hidden; }
.strip.s3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.strip.s4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.strip > .card { border: 0; border-radius: 0; background: var(--card); padding: 15px 18px 14px; }
.strip > .card[style*="pointer"], .strip > .card.link { cursor: pointer; transition: background-color .15s; }
.strip > .card.link:hover { background: #181717; }
.kpi { position: relative; overflow: hidden; }
.kpi-label { font-size: 12px; color: var(--subtle); }
.kpi-val { font: 600 26px/1.2 var(--num); letter-spacing: -.02em; font-variant-numeric: tabular-nums; margin-top: 5px; }
.kpi-val small { font: 500 12px var(--sans); color: var(--subtle); letter-spacing: 0; margin-left: 5px; }
.kpi-foot { font-size: 12px; color: var(--subtle); margin-top: 5px; display: flex; gap: 4px 8px; flex-wrap: wrap; align-items: center; }
.kpi .spark { position: absolute; right: 14px; top: 16px; }
.delta-up { color: var(--on); } .delta-down { color: var(--off); } .delta-flat { color: var(--subtle); }
.na { color: var(--subtle); }
.na-val { font-size: 13px; color: var(--body); margin-top: 8px; }
.na-tag { display: inline-flex; align-items: center; height: 20px; font-size: 11px; color: var(--subtle); border: 1px dashed var(--edge); padding: 0 7px; border-radius: var(--chip); }
.na-needs { font-size: 12px; color: var(--subtle); margin-top: 5px; }

/* Tables */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 500; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); padding: 10px 14px; border-bottom: 1px solid var(--hairline); white-space: nowrap; }
th.sortable { cursor: pointer; user-select: none; transition: color .15s; }
th.sortable:hover, th.sorted { color: var(--title); }
td { padding: 10px 14px; border-bottom: 1px solid var(--hairline); vertical-align: middle; font-size: 13px; color: var(--label); }
tr:last-child td { border-bottom: 0; }
tbody tr.link { cursor: pointer; transition: background-color .12s; }
tbody tr.link:hover { background: var(--surface-hover); }
td.r, th.r { text-align: right; }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person > div > b { font-weight: 500; font-size: 13px; color: var(--title); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person > div > span { font-size: 12px; color: var(--subtle); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: var(--control-r); background: var(--control); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--label); object-fit: cover; }
.avatar.l { width: 56px; height: 56px; font-size: 20px; border-radius: var(--panel); }
.avatar.s { width: 32px; height: 32px; }
.avatar.m { width: 42px; height: 42px; font-size: 16px; border-radius: 10px; }
.avatar.xs { width: 24px; height: 24px; font-size: 11px; border-radius: 7px; }
.tag { display: inline-flex; align-items: center; gap: 4px; height: 22px; font-size: 11px; font-weight: 500; line-height: 1; padding: 0 8px; border-radius: var(--chip); background: var(--control); color: var(--label); white-space: nowrap; }
.tag.s-on { background: rgba(112, 190, 122, .1); color: var(--on); } .tag.s-attn { background: rgba(255, 255, 255, .07); color: var(--attn); } .tag.s-off { background: rgba(226, 82, 80, .1); color: var(--off); } .tag.s-none { color: var(--subtle); }
.tag.blue { background: var(--primary-soft); color: var(--primary-light); }
.score { font: 600 14px/1 var(--num); font-variant-numeric: tabular-nums; color: var(--title); }

/* Bars */
.bar { height: 5px; border-radius: 999px; background: var(--control-hover); position: relative; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7c3aed, #a78bfa); animation: grow .8s var(--ease); }
@keyframes grow { from { width: 0; } }
.bar.on > i { background: var(--on); } .bar.attn > i { background: var(--attn); } .bar.off > i { background: var(--off); }
.bar .tick { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--label); border-radius: 1px; }
.goal { margin-bottom: 14px; }
.goal:last-child { margin-bottom: 0; }
.goal-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--label); margin-bottom: 6px; }
.goal-top span:last-child { color: var(--body); }

/* Alerts */
.alert { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.alert:first-child { padding-top: 0; }
.alert:last-child { border-bottom: 0; padding-bottom: 0; }
.alert-mark { flex: none; width: 7px; height: 7px; margin-top: 6px; border-radius: 50%; background: var(--dim); }
.alert.sev-3 .alert-mark { background: var(--off); } .alert.sev-2 .alert-mark { background: var(--attn); } .alert.sev-1 .alert-mark { background: var(--primary-light); }
.alert-body { min-width: 0; flex: 1; }
.alert-title { font-weight: 500; font-size: 13px; color: var(--title); }
.alert-detail { color: var(--subtle); font-size: 12px; margin-top: 2px; overflow-wrap: anywhere; }
.empty { color: var(--subtle); padding: 20px 0; text-align: center; font-size: 13px; }
.calm { display: flex; align-items: center; gap: 9px; color: var(--body); font-size: 13px; }

/* Controls: the site's one button */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: var(--control-r); background: var(--control); color: var(--label); box-shadow: inset 0 0 0 1px var(--edge); font-size: 13px; font-weight: 600; line-height: 1; white-space: nowrap; cursor: pointer; user-select: none; transition: background-color .2s, color .2s, box-shadow .2s; }
.btn:hover { background: var(--control-hover); color: var(--title); }
.btn:disabled { opacity: .5; pointer-events: none; }
.btn-primary { background: var(--primary); color: #fff; box-shadow: none; }
.btn-primary:hover { background: var(--primary-hover); color: #fff; }
.btn-primary:active { background: var(--primary-active); }
.btn-danger { color: var(--off); background: rgba(226, 82, 80, .08); box-shadow: inset 0 0 0 1px rgba(226, 82, 80, .28); }
.btn-danger:hover { background: rgba(226, 82, 80, .15); color: var(--off); }
.btn-ghost { background: transparent; box-shadow: none; color: var(--subtle); height: 30px; padding: 0 9px; font-weight: 500; font-size: 12px; }
.btn-ghost:hover { background: var(--control); color: var(--title); }
.btn-icon { width: 32px; height: 32px; padding: 0; }
.btn-lg { height: 44px; padding: 0 22px; font-size: 14px; }
.input, select.input, textarea.input { width: 100%; height: 36px; background: var(--field); border: 0; box-shadow: inset 0 0 0 1px transparent; border-radius: var(--control-r); padding: 0 11px; font-size: 13px; caret-color: #8c3ee4; transition: background-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 84px; padding: 9px 11px; resize: vertical; }
.input:hover { background: var(--field-hover); }
.input:focus { outline: none; box-shadow: inset 0 0 0 1px var(--primary-light); }
.input::placeholder { color: var(--subtle); }
select.input option { background: var(--popover); }
label.field { display: block; font-size: 13px; font-weight: 500; color: var(--label); margin-bottom: 12px; }
label.field > .input { margin-top: 6px; font-weight: 400; color: var(--title); }
/* Filters: the site's module pills */
.seg { display: inline-flex; flex-wrap: wrap; gap: 6px; max-width: 100%; }
.seg button { height: 30px; padding: 0 12px; border: 1px solid var(--edge); border-radius: 999px; background: var(--surface); color: var(--body); cursor: pointer; font-size: 12px; font-weight: 500; transition: color .3s var(--ease), border-color .3s var(--ease), box-shadow .4s var(--ease); }
.seg button:hover { color: var(--title); }
.seg button.on { color: var(--title); border-color: var(--edge); background: var(--control-hover); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--hairline); margin-bottom: 16px; overflow-x: auto; }
.tabs button { position: relative; background: none; border: 0; padding: 9px 12px; color: var(--body); cursor: pointer; white-space: nowrap; font-size: 13px; font-weight: 500; transition: color .15s; }
.tabs button::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 999px; background: var(--primary); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.tabs button:hover { color: var(--title); }
.tabs button:hover::after, .tabs button.on::after { transform: scaleX(1); }
.tabs button.on { color: var(--title); }

/* Dialog */
.dialog-back { position: fixed; inset: 0; background: rgba(0, 0, 0, .66); display: grid; place-items: center; padding: 16px; z-index: 50; animation: fade .15s; }
.dialog { background: var(--popover); border: 1px solid var(--edge); border-radius: var(--panel); padding: 20px; width: 100%; max-width: 440px; max-height: 90vh; overflow-y: auto; animation: rise .22s var(--ease); }
.dialog h2 { font: 400 17px/1.3 var(--pixel); letter-spacing: .02em; margin-bottom: 5px; }
.dialog .sub { margin-bottom: 15px; font-size: 13px; color: var(--body); }
.dialog-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.form-error { color: var(--off); font-size: 13px; margin-top: 8px; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--popover); box-shadow: inset 0 0 0 1px var(--edge); border-radius: var(--control-r); padding: 10px 15px; z-index: 60; font-size: 13px; color: var(--label); animation: fade .2s; max-width: calc(100vw - 32px); }
.toast.bad { box-shadow: inset 0 0 0 1px var(--off); color: var(--off); }

/* Charts */
.chart-box { min-width: 0; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: rgba(255, 255, 255, .045); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .base-line { stroke: rgba(255, 255, 255, .12); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .cursor { stroke: rgba(255, 255, 255, .22); stroke-width: 1; vector-effect: non-scaling-stroke; }
.chart .end-label { fill: var(--title); font: 600 12px var(--num); }
.chart .line { filter: drop-shadow(0 2px 7px rgba(167, 139, 250, .32)); animation: draw 1.1s var(--ease) both; }
.chart .pulse { transform-box: fill-box; transform-origin: center; animation: pulse 2.4s ease-out infinite; }
.bar-mark path { transition: filter .15s, opacity .15s; }
.bar-mark.hot path { filter: brightness(1.28); }
@keyframes pulse { 0% { opacity: .55; transform: scale(1); } 75%, 100% { opacity: 0; transform: scale(3.1); } }
@keyframes draw { from { opacity: 0; } to { opacity: 1; } }
.still .chart .line { animation: none; }
.chart .axis { fill: var(--subtle); font: 10px var(--mono); }
.chart-tip { position: fixed; pointer-events: none; background: var(--popover); box-shadow: inset 0 0 0 1px var(--edge), 0 8px 24px rgba(0, 0, 0, .45); border-radius: 8px; padding: 7px 11px; font-size: 12px; color: var(--label); z-index: 40; white-space: nowrap; }
.chart-tip b { font: 600 12px var(--num); color: var(--title); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--subtle); margin-top: 10px; }
.swatch { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }
.tip-head { color: var(--subtle); font-size: 11px; margin-bottom: 3px; }
.tip-row { display: flex; align-items: center; gap: 2px; }
.tip-row span { margin-right: 8px; }
.tip-row b { margin-left: auto; }
.hbars { display: flex; flex-direction: column; gap: 11px; }
.hbar-top { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--label); margin-bottom: 5px; }
.hbar-top span:first-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hbar-top span:last-child { color: var(--body); font-family: var(--num); }

/* Leaderboards */
.board-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); }
.board-row:last-child { border-bottom: 0; padding-bottom: 0; }
.board-row .rank { font: 400 13px var(--pixel); color: var(--subtle); text-align: center; }
.board-row.first .rank { color: var(--primary-light); }
.board-row.unranked .avatar, .board-row.unranked .person b { opacity: .62; }
.board-row.unranked .board-val { font: 500 12px var(--sans); }
.board-val { text-align: right; font: 600 14px var(--num); font-variant-numeric: tabular-nums; color: var(--title); }
.board-val small { display: block; font: 400 11px var(--num); color: var(--subtle); }
.board-why { font-size: 12px; color: var(--subtle); margin: -4px 0 8px; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.podium-card { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 20px 12px 16px; border: 1px solid var(--edge); border-radius: var(--panel); background: var(--surface); min-width: 0; }
.podium-card.first { position: relative; border-color: var(--edge); background: rgba(255, 255, 255, .04); }
.podium-card b { font-weight: 500; margin-top: 10px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.podium-card .big { font: 400 26px/1.2 var(--pixel); margin-top: 4px; }

/* Profile */
.back-link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--body); margin-bottom: 14px; }
.back-link:hover { color: var(--title); }
.profile-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.profile-head h1 { font: 400 24px/1.25 var(--pixel); letter-spacing: .02em; }
.note { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
.note:first-of-type { padding-top: 4px; }
.note:last-child { border-bottom: 0; padding-bottom: 0; }
.note-top { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--subtle); flex-wrap: wrap; }
.note p { margin-top: 5px; font-size: 13px; color: var(--label); white-space: pre-wrap; overflow-wrap: anywhere; }
.note p.sub { color: var(--subtle); font-size: 12px; }
.note.removed p { text-decoration: line-through; color: var(--dim); }
.task { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--label); }
.task:last-child { border-bottom: 0; }
.task.done .task-title { color: var(--subtle); text-decoration: line-through; }
.task input { margin-top: 3px; accent-color: var(--primary); }
.task-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.milestone { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--label); }
.milestone .check { width: 16px; height: 16px; border-radius: 5px; box-shadow: inset 0 0 0 1px var(--edge); flex: none; display: grid; place-items: center; font-size: 10px; color: transparent; }
.milestone.earned .check { background: var(--primary); box-shadow: none; color: #fff; }
.milestone:not(.earned) { color: var(--subtle); }
.milestone .bar { flex: 0 0 64px; margin-left: auto; }

/* Trials */
.trial-card { display: flex; flex-direction: column; gap: 13px; cursor: pointer; transition: border-color .2s, background-color .2s; }
.trial-card:hover { border-color: rgba(158, 98, 224, .5); background: var(--surface-hover); }
.req { display: flex; justify-content: space-between; gap: 8px; font-size: 12px; color: var(--body); padding: 3px 0; }
.req .num { color: var(--label); }
.flag { color: var(--attn); font-size: 12px; }

/* Code and logs */
.log { font: 12px/1.55 var(--mono); }
.log-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; padding: 3px 0; }
.log-row time { color: var(--subtle); }
.log-row span { overflow-wrap: anywhere; color: var(--body); }
.log-row.error span { color: var(--off); } .log-row.warn span { color: var(--attn); }
.scroll { max-height: 340px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--hairline); font-size: 13px; color: var(--label); }
.switch-row:first-child { padding-top: 0; }
.switch-row:last-child { border-bottom: 0; padding-bottom: 0; }

/* Sign-in */
.gate { position: relative; z-index: 1; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 24px; max-width: 480px; margin: 0 auto; }
.gate-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; }
.gate-brand img { width: 30px; height: 30px; object-fit: contain; }
.gate-brand .wordmark { font-size: 22px; }
.gate h1 { font: 400 26px/1.3 var(--pixel); letter-spacing: .02em; margin-bottom: 10px; }
.gate p { color: var(--body); margin-bottom: 22px; }
.gate-alt { margin: 18px 0 0; font-size: 13px; }
.gate-alt a { color: var(--primary-light); }
.gate-detail { color: var(--subtle) !important; font-size: 13px; }

/* ---- the control panel ---------------------------------------------------------------------------- */
.more { font-size: 12px; font-weight: 500; color: var(--primary-light); white-space: nowrap; }
.mono { font-family: var(--mono); }
.eyebrow { margin-bottom: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 500; color: var(--label); background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px var(--hairline); white-space: nowrap; }
a.chip { transition: background-color .15s, color .15s; }
a.chip:hover { background: rgba(255, 255, 255, .1); color: var(--title); }
.chip svg { color: var(--subtle); }
.chip-on { color: var(--on); } .chip-attn { color: var(--attn); } .chip-off { color: var(--off); }

/* Hello: the deepslate wall the site uses, lit from one side */
.hello { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 30px 30px 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--hairline); background: #100e12; isolation: isolate; }
.hello::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url("/assets/deepslate.png") 0 0 / 64px 64px; image-rendering: pixelated; opacity: .2; }
.hello::after { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 150% at 0% 0%, rgba(126, 46, 214, .5), transparent 62%), radial-gradient(50% 130% at 100% 110%, rgba(240, 171, 252, .13), transparent 70%), linear-gradient(90deg, rgba(11, 10, 10, .15), rgba(11, 10, 10, .7)); }
.hello-title { font: 400 38px/1.15 var(--pixel); letter-spacing: .02em; text-shadow: 0 3px 0 rgba(0, 0, 0, .45); }
.hello-sub { color: #d4d0d6; margin-top: 8px; font-size: 15px; }
.hello-chips { margin-top: 14px; gap: 6px; }
.hello-cta { flex: none; }
.hello-switch { flex: none; }
.hello-switch .switch { transform: scale(1.35); transform-origin: right center; }
.ai-hello .hello-title { font-size: 32px; }

/* What's waiting for you: the first thing somebody's dashboard says */
.floor-top { margin-bottom: 12px; }
.floor-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; }
.your-day .floor-stats { margin-top: 12px; }
.floor-stat { padding: 11px 12px; border-radius: 10px; background: rgba(255, 255, 255, .025); border: 1px solid rgba(255, 255, 255, .06); min-width: 0; }
.floor-stat b { display: block; font: 600 21px/1.15 var(--num); color: var(--title); }
.floor-stat span { display: block; margin-top: 3px; font-size: 11.5px; line-height: 1.3; color: var(--subtle); }
.floor-stat.strong { border-color: rgba(255, 255, 255, .24); } .floor-stat.strong b { color: var(--title); }
.floor-stat.red { border-color: rgba(224, 92, 92, .45); } .floor-stat.red b { color: #ef8a8a; }
.floor-stat.green b { color: var(--on); }
.floor-stat.violet b { color: var(--title); }
.floor { margin-top: 14px; overflow-x: auto; }
.floor-row { display: grid; grid-template-columns: 28px minmax(120px, 1.3fr) minmax(110px, 1.2fr) 74px 74px 74px 62px 62px 74px 62px; align-items: center; gap: 10px; width: 100%; min-width: 760px; padding: 8px; border: 0; border-top: 1px solid rgba(255, 255, 255, .05); background: none; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.floor-row:hover { background: var(--surface-hover); }
.floor-row .right { text-align: right; }
.floor-head { border-top: 0; cursor: default; font-size: 10.5px; line-height: 1.2; color: var(--subtle); align-items: end; }
.floor-head:hover { background: none; }
.floor-me { background: rgba(255, 255, 255, .035); border-radius: 8px; }
.floor-who { min-width: 0; }
.floor-who b { display: block; font-weight: 500; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-who b em { font-style: normal; font-weight: 400; color: var(--subtle); font-size: 11px; }
.floor-who > span { display: block; font-size: 11px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.floor-load { display: grid; grid-template-columns: 1fr 24px; align-items: center; gap: 8px; }
.floor-load b { text-align: right; font-weight: 500; color: var(--title); }
.tk-person { margin: 8px 0; width: 100%; }
@media (max-width: 760px) { .floor-row { grid-template-columns: 24px minmax(0, 1fr) 36px 46px 56px 46px; gap: 6px; min-width: 0; padding: 8px 4px; } .floor-wide { display: none; } .floor-load { grid-template-columns: 1fr; } .floor-load .race-bar { display: none; } }
.for-you { margin-top: 12px; border-radius: 14px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(255, 255, 255, .034), rgba(255, 255, 255, .018)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 44px -30px rgba(0, 0, 0, .95); overflow: hidden; }
.for-you-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 13px 18px 9px; }
.for-you-head h2 { font: 400 16px/1.3 var(--pixel); letter-spacing: .02em; }
.for-you-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 10px 18px; border-top: 1px solid rgba(255, 255, 255, .05); }
.for-you-who { min-width: 0; color: inherit; }
.for-you-who:hover { color: inherit; }
.for-you-who:hover b { color: var(--title); }
.for-you-who b { display: block; font-weight: 500; font-size: 13px; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .12s; }
.for-you-who span { display: block; font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.for-you-time { text-align: right; font-size: 12px; color: var(--subtle); white-space: nowrap; }
.for-you-time b { display: block; font-weight: 500; color: var(--label); }
.for-you-row .btn { height: 32px; padding: 0 11px; font-size: 12px; }
.hours-note { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 9px 13px; border-radius: 10px; font-size: 13px; color: var(--label); background: rgba(255, 255, 255, .03); border: 1px solid var(--hairline); }
.hours-note svg { flex: none; color: #c4b5fd; }
.stat-wide { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tile { --tone: #a78bfa; position: relative; display: flex; flex-direction: column; min-width: 0; padding: 14px 15px 13px; border-radius: 12px; color: inherit; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .018)); border: 1px solid var(--hairline); transition: transform .2s var(--ease), border-color .2s, box-shadow .25s; overflow: hidden; }
.tile::before { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 90% at 0% 0%, color-mix(in srgb, var(--tone) 16%, transparent), transparent 65%); pointer-events: none; }
.tile:hover { transform: translateY(-2px); color: inherit; border-color: color-mix(in srgb, var(--tone) 60%, transparent); box-shadow: 0 14px 34px -18px var(--tone); }
.tile > * { position: relative; }
.tone-violet, .tone-iris, .tone-lilac, .tone-orchid { --tone: #c9c6d0; } .tone-red { --tone: #e25250; }
.tile-icon { --tone: #c9c6d0; display: inline-grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 24%, transparent); }
.tile .tile-icon { color: var(--tone); background: color-mix(in srgb, var(--tone) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--tone) 24%, transparent); }
.tile-icon.tone-red { --tone: #e25250; }
.tile-icon.small { width: 28px; height: 28px; border-radius: 8px; }
.tile-label { margin-top: 12px; font-size: 12px; color: var(--subtle); }
.tile-val { font: 600 24px/1.2 var(--num); letter-spacing: -.02em; margin-top: 1px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-foot { font-size: 12px; color: var(--subtle); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Rows you can click */
.rows { display: flex; flex-direction: column; }
.line-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0; border-radius: 8px; background: none; color: inherit; font-size: 13px; text-align: left; cursor: pointer; transition: background-color .12s; }
.line-row:hover { background: var(--surface-hover); color: inherit; }
.line-row.plain { cursor: default; }
.line-row.plain:hover { background: none; }
.line-main { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 8px; }
.line-main b { font-weight: 500; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-main .sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.line-main.wrap span { overflow-wrap: anywhere; color: var(--label); }
.line-end { flex: none; }

/* Racing people */
.race { display: flex; flex-direction: column; gap: 2px; }
.race-row { display: grid; grid-template-columns: 32px minmax(90px, 130px) minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; color: inherit; transition: background-color .12s; }
a.race-row:hover { background: var(--surface-hover); color: inherit; }
.race-name { min-width: 0; }
.race-name b { display: block; font-weight: 500; font-size: 13px; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-name span { display: block; font-size: 11px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.race-bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.race-bar i { display: block; height: 100%; border-radius: 999px; background: var(--primary-light); animation: grow .9s var(--ease); }
.still .race-bar i { animation: none; }
.race-val { font-size: 12px; color: var(--label); white-space: nowrap; text-align: right; }

/* Donut, ring, heat */
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 148px; height: 148px; flex: none; }
.donut-arc { transition: stroke-width .15s; cursor: default; }
.donut-arc:hover { stroke-width: 16; }
.donut-num { fill: var(--title); font: 600 25px var(--num); letter-spacing: -.02em; }
.donut-sub { fill: var(--subtle); font: 11px var(--sans); }
.donut-legend { flex: 1; min-width: 120px; display: flex; flex-direction: column; gap: 7px; font-size: 13px; color: var(--label); }
.donut-legend > div { display: flex; align-items: center; }
.donut-legend b { margin-left: auto; padding-left: 10px; font-weight: 600; color: var(--title); font-variant-numeric: tabular-nums; }
.ring { display: block; }
.ring-arc { filter: drop-shadow(0 0 6px rgba(167, 139, 250, .5)); }
.ring-num { fill: var(--title); font: 600 34px var(--num); letter-spacing: -.03em; }
.ring-label { fill: var(--subtle); font: 10px var(--sans); }
.heat { display: grid; grid-template-columns: repeat(15, minmax(0, 1fr)); gap: 4px; }
.heat i, .heat-key i { display: block; aspect-ratio: 1; border-radius: 4px; background: rgba(255, 255, 255, .05); }
.heat i { transition: transform .12s; }
.heat i:hover { transform: scale(1.18); }
.l1 { background: #3b2263 !important; } .l2 { background: #5a2da0 !important; } .l3 { background: #8247d6 !important; } .l4 { background: #b48aeb !important; box-shadow: 0 0 10px rgba(180, 138, 235, .45); }
.heat-key { display: flex; align-items: center; gap: 4px; justify-content: flex-end; margin-top: 8px; font-size: 11px; color: var(--subtle); }
.heat-key i { width: 11px; height: 11px; aspect-ratio: auto; border-radius: 3px; }
.heat-key span:first-child { margin-right: 3px; } .heat-key span:last-child { margin-left: 3px; }

/* Switches */
.switch { position: relative; flex: none; width: 38px; height: 22px; padding: 0; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .12); cursor: pointer; transition: background-color .22s var(--ease), box-shadow .22s; }
.switch i { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #d8d6d6; box-shadow: 0 1px 3px rgba(0, 0, 0, .5); transition: transform .22s var(--ease), background-color .22s; }
.switch:hover { background: rgba(255, 255, 255, .18); }
.switch.on { background: linear-gradient(90deg, #7c3aed, #9e62e0); }
.switch.on i { transform: translateX(16px); background: #fff; }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.sw-list { display: flex; flex-direction: column; }
.sw-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hairline); }
.sw-row:first-child { padding-top: 0; } .sw-row:last-child { border-bottom: 0; padding-bottom: 0; }
.sw-text { min-width: 0; }
.sw-text b { display: block; font-size: 13px; font-weight: 500; color: var(--title); }
.sw-text > span:not(.tag) { display: block; font-size: 12px; color: var(--subtle); margin-top: 1px; }
.sw-mark { margin-top: 5px; height: 18px; font-size: 10px; }
.field-label { font-size: 12px; color: var(--subtle); margin-bottom: 7px; }
.field-label.mt { margin-top: 14px; }
.action-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .018)); border: 1px solid var(--hairline); min-width: 0; }
.action-text { flex: 1; min-width: 0; }
.action-text b { display: block; font-weight: 500; }
.action-text span { display: block; font-size: 12px; color: var(--subtle); margin-top: 1px; }
.big-line { font-size: 15px; font-weight: 500; color: var(--title); margin-bottom: 4px; }

/* Suggestions and bug reports */
.posts { display: flex; flex-direction: column; gap: 6px; }
.post { display: flex; align-items: center; gap: 14px; width: 100%; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .02); color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.post:hover { border-color: rgba(158, 98, 224, .55); background: var(--surface-hover); }
.post.top { border-color: var(--edge); background: rgba(255, 255, 255, .035); }
.post-votes { flex: none; display: flex; flex-direction: column; align-items: center; width: 42px; color: #c4b5fd; line-height: 1.1; }
.post-votes b { font: 600 16px var(--num); color: var(--title); }
.post-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.post-main > b { font-size: 13px; font-weight: 500; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-sub { font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-bar { height: 3px; margin-top: 3px; border-radius: 999px; background: rgba(255, 255, 255, .04); overflow: hidden; }
.post-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.post-body { padding: 14px 0 0; border-top: 1px solid var(--hairline); overflow: visible; }
.vote-chip { flex: none; display: inline-flex; align-items: center; gap: 3px; min-width: 42px; font: 600 13px var(--num); color: #c4b5fd; }

/* The Control page */
.glance { display: flex; flex-wrap: wrap; gap: 1px; background: var(--hairline); border: 1px solid var(--hairline); border-radius: 12px; overflow: hidden; }
.glance-item { flex: 1 1 150px; display: flex; flex-direction: column; gap: 1px; padding: 12px 14px; background: var(--card); color: inherit; min-width: 0; transition: background-color .12s; }
a.glance-item:hover { background: #181717; color: inherit; }
.glance-item.wide { flex-basis: 100%; }
.glance-item b { font: 600 16px/1.25 var(--num); display: flex; align-items: center; gap: 7px; }
.glance-item span:not(.dot) { font-size: 12px; color: var(--subtle); overflow-wrap: anywhere; }
.sw-select { width: 120px; height: 30px; flex: none; font-size: 12px; padding: 0 8px; }
.word-tag { padding-right: 3px; }
.word-x { display: inline-grid; place-items: center; width: 16px; height: 16px; margin-left: 2px; padding: 0; border: 0; border-radius: 4px; background: none; color: var(--subtle); cursor: pointer; }
.word-x:hover { background: rgba(226, 82, 80, .18); color: var(--off); }

/* The guide */
.guide-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 20px; align-items: start; }
.guide-toc { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 2px; }
.guide-toc button { padding: 6px 10px; border: 0; border-radius: 8px; background: none; color: var(--body); font-size: 13px; text-align: left; cursor: pointer; transition: background-color .12s, color .12s; }
.guide-toc button:hover { background: var(--control); color: var(--title); }
.guide-sec { padding: 18px 20px; margin-bottom: 12px; border: 1px solid var(--hairline); border-radius: 12px; background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015)); scroll-margin-top: 16px; }
.guide-sec h2 { font: 400 17px/1.3 var(--pixel); letter-spacing: .02em; margin-bottom: 8px; }
.guide-sec h3 { font-size: 13px; font-weight: 600; color: var(--title); margin: 14px 0 5px; }
.guide-sec p, .guide-sec li { font-size: 13px; line-height: 1.6; color: var(--label); }
.guide-sec ul { list-style: none; padding: 0; }
.guide-sec li { position: relative; padding-left: 15px; margin-top: 4px; }
.guide-sec li::before { content: ""; position: absolute; left: 1px; top: 9px; width: 5px; height: 5px; border-radius: 2px; background: var(--primary-light); }
.guide-sec code { font: 12px var(--mono); padding: 1px 5px; border-radius: 5px; background: var(--control-hover); color: var(--title); white-space: nowrap; }
.guide-sec b { font-weight: 600; color: var(--title); }
.flow { display: flex; flex-direction: column; gap: 0; margin-top: 8px; }
.flow-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; bottom: 2px; width: 2px; background: linear-gradient(180deg, rgba(158, 98, 224, .6), rgba(158, 98, 224, .12)); }
.flow-num { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--primary-soft); box-shadow: inset 0 0 0 1px rgba(158, 98, 224, .4); color: #d8b4fe; font: 400 13px var(--pixel); }
.flow-step b { display: block; font-size: 13px; color: var(--title); padding-top: 5px; }
.flow-step span { font-size: 13px; color: var(--body); line-height: 1.55; }
.day-bar { position: relative; height: 26px; margin: 22px 0 6px; border-radius: 7px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.day-bar i { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #7c3aed, #a78bfa); }
.day-labels { display: flex; justify-content: space-between; font: 11px var(--mono); color: var(--subtle); }
.who-table { margin-top: 8px; }
@media (max-width: 900px) { .guide-layout { grid-template-columns: minmax(0, 1fr); } .guide-toc { position: static; flex-direction: row; flex-wrap: wrap; } .guide-toc button { background: var(--control); font-size: 12px; } }

/* Channels */
.chan-help { margin: -4px 0 10px; }
.chan-group + .chan-group { margin-top: 14px; }
.chan-cat { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .1em; color: var(--subtle); padding: 4px 0 6px; }
.chan { display: grid; grid-template-columns: minmax(0, 1fr) 140px 136px auto; align-items: center; gap: 14px; padding: 7px 10px; margin: 0 -10px; border-radius: 8px; transition: background-color .12s; }
.chan:hover { background: var(--surface-hover); }
.chan-name { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 13px; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chan.quiet .chan-name { color: var(--subtle); }
.chan-hash { color: var(--dim); font-weight: 600; }
.chan-name .sw-mark { margin: 0; }
.chan-select { height: 30px; font-size: 12px; padding: 0 8px; }
.chan-lock { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--subtle); }
.search-small { max-width: 200px; height: 30px; font-size: 12px; }

/* The ticket window */
.inbox { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: min(720px, calc(100vh - 150px)); min-height: 460px; border: 1px solid var(--hairline); border-radius: 14px; overflow: hidden; background: var(--card); }
.tk-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--hairline); background: rgba(255, 255, 255, .012); }
.tk-filter { display: flex; flex-wrap: wrap; gap: 5px; padding: 10px; border-bottom: 1px solid var(--hairline); }
.tk-filter button { height: 26px; padding: 0 9px; font-size: 11.5px; }
.seg-n { margin-left: 5px; color: var(--subtle); }
.tk-list { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.tk { --mark: var(--dim); position: relative; display: block; width: 100%; padding: 10px 12px 10px 16px; border: 0; border-bottom: 1px solid var(--hairline); background: none; color: inherit; text-align: left; cursor: pointer; transition: background-color .12s; }
.tk:hover { background: var(--surface-hover); }
.tk.on { background: var(--primary-soft); }
.tk-mark { position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--mark); }
.tk.staff { --mark: var(--off); } .tk.holder { --mark: #a78bfa; } .tk.member { --mark: rgba(255, 255, 255, .14); } .tk.dev { --mark: #d8b4fe; }
.tk-top { display: flex; align-items: baseline; gap: 7px; font-size: 13px; }
.tk-top b { font-weight: 600; color: var(--title); }
.tk-cat { flex: 1; min-width: 0; color: var(--label); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-top time { flex: none; font-size: 11px; color: var(--subtle); }
.tk-sub { display: block; font-size: 12px; color: var(--label); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-sub.dim { color: var(--subtle); margin-top: 0; }
.tk-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.tk-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--subtle); font-size: 13px; text-align: center; padding: 24px; }
.tk-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--hairline); }
.tk-back { display: none; }
.tk-title { min-width: 0; flex: 1; }
.tk-title h2 { font: 400 20px/1.2 var(--pixel); letter-spacing: .02em; display: flex; align-items: baseline; gap: 9px; flex-wrap: wrap; }
.tk-title h2 span { font: 500 13px var(--sans); color: var(--body); letter-spacing: 0; }
.tk-actions { gap: 6px; }
.tk-actions .btn { height: 32px; padding: 0 11px; font-size: 12px; }
.wait { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--label); }
.tk-title .wait { margin-top: 5px; }
.wait i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.waiting-staff i { background: var(--off); box-shadow: 0 0 8px rgba(226, 82, 80, .7); } .waiting-holder i { background: #a78bfa; } .waiting-dev i { background: #d8b4fe; } .waiting-member i { background: rgba(255, 255, 255, .25); }
.tk-who { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--hairline); }
.tk-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; padding: 9px 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; }
.tk-facts span { color: var(--subtle); margin-right: 5px; }
.tk-facts b { font-weight: 500; color: var(--label); }
.tk-note { padding: 9px 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; color: var(--label); background: var(--primary-soft); overflow-wrap: anywhere; }
.tk-note b { font-weight: 500; color: var(--title); }
.tk-form { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 3px 12px; margin: 0; padding: 9px 16px; border-bottom: 1px solid var(--hairline); font-size: 12px; }
.tk-form dt { color: var(--subtle); text-transform: capitalize; }
.tk-form dd { margin: 0; color: var(--label); overflow-wrap: anywhere; white-space: pre-wrap; }
.tk-convo { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; scrollbar-width: thin; scrollbar-color: var(--edge) transparent; }
.msg { display: flex; gap: 9px; min-width: 0; }
.msg-body { min-width: 0; flex: 1; }
.msg-top { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.msg-top b { font-weight: 600; color: var(--title); }
.msg-top .tag { height: 16px; font-size: 9px; padding: 0 5px; }
.msg-top time { color: var(--subtle); font-size: 11px; }
.msg p { margin-top: 2px; font-size: 13px; color: var(--label); white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.from-bot p { color: var(--body); }
.msg.from-member .msg-top b { color: #d8b4fe; }
.msg-img { display: block; max-width: min(320px, 100%); max-height: 220px; margin-top: 5px; border-radius: 8px; border: 1px solid var(--hairline); }
.solo .frame { grid-template-columns: minmax(0, 1fr); }
.solo .rail, .solo .topbar { display: none; }
.solo .main { padding: 10px; max-width: none; }
.solo-page { display: flex; flex-direction: column; gap: 8px; height: calc(100vh - 20px); }
.solo-head { padding: 2px 4px; gap: 8px; font-size: 13px; }
.solo-page .inbox { flex: 1; height: auto; min-height: 0; }
.solo .demo { margin-bottom: 8px; padding: 5px 10px; font-size: 12px; }

/* A window over the page */
.drawer-back { position: fixed; inset: 0; z-index: 45; background: rgba(0, 0, 0, .55); animation: fade .15s; }
.drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(440px, 100%); padding: 24px 22px 40px; overflow-y: auto; background: var(--popover); border-left: 1px solid var(--edge); animation: slide .26s var(--ease); }
.drawer-x { position: absolute; top: 14px; right: 14px; }
.drawer-title { font: 400 19px/1.3 var(--pixel); letter-spacing: .02em; padding-right: 30px; overflow-wrap: anywhere; }
.drawer-title.mono { font: 500 18px var(--mono); }
@keyframes slide { from { transform: translateX(26px); opacity: .4; } to { transform: none; opacity: 1; } }
.stat-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; border-radius: 10px; overflow: hidden; background: var(--hairline); border: 1px solid var(--hairline); }
.stat-row.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.stat-row > div { padding: 10px 11px; background: var(--card); min-width: 0; }
.stat-row b { display: block; font: 600 17px/1.2 var(--num); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stat-row b.font-pixel { font: 400 17px/1.2 var(--pixel); }
.stat-row span { font-size: 11px; color: var(--subtle); }
.role-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.search-card { padding: 12px 14px; }
.search-box { display: flex; align-items: center; gap: 10px; color: var(--subtle); }
.search-box .input { background: none; height: 32px; padding: 0; font-size: 14px; }
.search-box .input:focus { box-shadow: none; }
.search-card .rows { margin-top: 4px; }
.search-card .rows:empty { display: none; }

/* Commands */
.cmd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 8px; }
.cmd { display: flex; flex-direction: column; gap: 5px; padding: 12px 13px; min-width: 0; border-radius: 10px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .02); color: inherit; text-align: left; cursor: pointer; transition: border-color .15s, background-color .15s; }
.cmd:hover { border-color: rgba(158, 98, 224, .6); background: var(--surface-hover); }
.cmd-top { display: flex; align-items: center; gap: 6px; min-width: 0; }
.cmd-top b { flex: 1; min-width: 0; font-size: 13px; font-weight: 500; color: var(--title); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-top .tag { height: 18px; font-size: 10px; padding: 0 6px; }
.cmd-tier { text-transform: capitalize; }
.cmd-desc { flex: 1; font-size: 12px; color: var(--subtle); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cmd-use { display: flex; align-items: center; gap: 8px; margin-top: 2px; }
.cmd-bar { flex: 1; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.cmd-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a78bfa); }

/* People and the board */
.people { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.person-card { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .018)); min-width: 0; }
.person-card.management { border-color: var(--edge); background: rgba(255, 255, 255, .035); }
.person-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person-name { flex: 1; min-width: 0; }
.person-name b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-name span { display: block; font-size: 12px; color: var(--primary-light); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.person-does { font-size: 12px; color: var(--body); }
.person-stats { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; min-height: 30px; }
.person-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.person-chips .chip { height: 22px; padding: 0 8px; font-size: 11px; }
.person-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 8px; border-top: 1px solid var(--hairline); }
.section-row { margin: 30px 0 12px; }
.section-title.flat { margin: 0; }
.kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: start; }
.kan-col { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .018); border: 1px solid var(--hairline); min-width: 0; }
.kan-col.doing { border-color: var(--edge); }
.kan-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 4px; font-size: 12px; font-weight: 600; color: var(--label); }
.kan-empty { padding: 14px 4px; text-align: center; font-size: 12px; color: var(--subtle); }
.task-card { padding: 10px 11px; border-radius: 9px; background: var(--card); border: 1px solid var(--hairline); min-width: 0; }
.task-card b { display: block; font-size: 13px; font-weight: 500; color: var(--title); overflow-wrap: anywhere; }
.task-card p { font-size: 12px; color: var(--subtle); margin-top: 3px; overflow-wrap: anywhere; }
.task-card.done b { color: var(--subtle); text-decoration: line-through; }
.task-foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: 8px; }
.task-who { display: inline-flex; align-items: center; gap: 6px; min-width: 0; font-size: 12px; color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-foot .btn-icon { width: 24px; height: 24px; }

/* My stats */
.me-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(240px, 300px); gap: 24px; align-items: center; padding: 20px 24px; border-radius: 14px; border: 1px solid var(--hairline); background: linear-gradient(180deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .015)); }
.me-ring { text-align: center; }
.me-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 22px; }
.me-fact { display: grid; grid-template-columns: 22px minmax(0, 1fr); column-gap: 8px; align-items: center; min-width: 0; }
.me-fact svg { color: #c4b5fd; grid-row: span 2; }
.me-fact b { font: 600 20px/1.15 var(--num); white-space: nowrap; }
.me-fact span { font-size: 12px; color: var(--subtle); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.badge { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 14px 10px 12px; text-align: center; border-radius: 12px; border: 1px solid var(--hairline); background: rgba(255, 255, 255, .018); font-size: 12px; color: var(--subtle); min-width: 0; }
.badge.earned { color: var(--title); border-color: rgba(255, 255, 255, .22); background: rgba(255, 255, 255, .06); }
.item { image-rendering: pixelated; object-fit: contain; filter: drop-shadow(0 3px 5px rgba(0, 0, 0, .5)); }
.item.locked { filter: grayscale(1) brightness(.5); }
.badge-bar { width: 70%; height: 3px; border-radius: 999px; background: rgba(255, 255, 255, .06); overflow: hidden; }
.badge-bar i { display: block; height: 100%; background: linear-gradient(90deg, #7c3aed, #a78bfa); }

.skeleton { background: linear-gradient(90deg, var(--surface) 0%, var(--control-hover) 50%, var(--surface) 100%); background-size: 200% 100%; animation: shimmer 1.3s infinite linear; border-radius: var(--panel); height: 92px; border: 1px solid var(--hairline); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

@media (max-width: 1280px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .me-hero { grid-template-columns: auto minmax(0, 1fr); } .me-heat { grid-column: 1 / -1; } }
@media (max-width: 1180px) {
  .g4, .strip.s4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-2-1 { grid-template-columns: minmax(0, 1fr); }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .hero-main { border-right: 0; border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 820px) {
  .frame { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; z-index: 30; left: 0; top: 0; width: 252px; transform: translateX(-100%); transition: transform .2s var(--ease); }
  .rail.open { transform: none; box-shadow: 0 0 40px rgba(0, 0, 0, .7); }
  .topbar { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 20; height: 56px; background: rgba(11, 10, 10, .92); backdrop-filter: blur(8px); padding: 0 16px; border-bottom: 1px solid var(--hairline); }
  .topbar img { width: 24px; height: 24px; object-fit: contain; }
  .main { padding: 20px 16px 50px; }
  .g2, .g3, .strip.s3 { grid-template-columns: minmax(0, 1fr); }
  .strip.s3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .podium { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hello { padding: 22px 20px; }
  .hello-title { font-size: 30px; }
  .hello-cta { width: 100%; }
  .kanban { grid-template-columns: minmax(0, 1fr); }
  .inbox { position: relative; grid-template-columns: minmax(0, 1fr); height: calc(100vh - 130px); }
  .tk-side { border-right: 0; }
  .tk-pane { position: absolute; inset: 0; z-index: 2; background: var(--card); transform: translateX(100%); transition: transform .24s var(--ease); }
  .tk-pane.open { transform: none; }
  .tk-back { display: inline-flex; }
  .chan { grid-template-columns: minmax(0, 1fr) auto; }
  .chan-select { grid-column: 1; grid-row: 2; max-width: 180px; }
  .chan-slow { grid-row: 3; }
  .chan-lock { grid-column: 2; grid-row: 1 / span 3; }
  .race-row { grid-template-columns: 32px minmax(70px, 96px) minmax(0, 1fr) auto; }
  .for-you-row { grid-template-columns: 32px minmax(0, 1fr) auto; }
  .for-you-time { display: none; }
  .me-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; padding: 18px; }
  .me-facts, .me-heat { width: 100%; }
  .stat-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-title { font-size: 28px; }
  .metric-list { grid-template-columns: minmax(0, 1fr); }
  .metric:nth-child(odd) { border-right: 0; }
  .metric:nth-last-child(2) { border-bottom: 1px solid var(--hairline); }
}
@media (max-width: 460px) { .g4, .strip.s3, .strip.s4 { grid-template-columns: minmax(0, 1fr); } }

/* ---- Sicker (6.11): a living backdrop, light that follows the mouse, depth on everything. Still the site's near-black
   and launcher purple, and nothing here carries information: the same page works without any of it. ---- */
.portal-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
body::after { content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none; background: radial-gradient(38% 30% at 22% 18%, rgba(126, 46, 214, .05), transparent 70%), radial-gradient(34% 28% at 82% 72%, rgba(216, 84, 200, .025), transparent 70%); animation: aurora 34s ease-in-out infinite alternate; }
@keyframes aurora { from { transform: translate3d(-3%, -2%, 0) scale(1); } to { transform: translate3d(4%, 3%, 0) scale(1.08); } }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .09); border-radius: 999px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: rgba(158, 98, 224, .5); border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-track { background: transparent; }

/* The rail */
.rail { background: rgba(15, 14, 14, .94); backdrop-filter: blur(12px); }
.brand img { filter: drop-shadow(0 0 8px rgba(158, 98, 224, .3)); }
.brand .wordmark { color: #f2f1f3; }
.rail-search { display: flex; align-items: center; gap: 8px; flex: none; height: 34px; margin: 12px 10px 0; padding: 0 8px 0 10px; border: 1px solid var(--hairline); border-radius: var(--control-r); background: rgba(255, 255, 255, .03); color: var(--subtle); font-size: 12px; cursor: pointer; transition: border-color .2s, color .2s, background .2s; }
.rail-search span { flex: 1; text-align: left; }
.rail-search:hover { color: var(--title); border-color: var(--edge); background: var(--control); }
kbd { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 5px; font: 500 10px var(--mono); color: var(--body); background: rgba(255, 255, 255, .06); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); }
.nav a { position: relative; transition: background .18s, color .18s, transform .18s var(--ease); }
.nav a:hover { transform: translateX(2px); }
.nav a.on { background: var(--control-hover); }
.nav a.on::before { content: ""; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--primary-light); }
.nav a.on svg { color: var(--title); }
.nav .count.mine { background: var(--primary); color: #fff; }

/* Depth, and the light that follows the mouse */
.card, .tile, .action-card, .floor-stat, .podium-card, .for-you { position: relative; isolation: isolate; }
.card, .action-card { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 18px 44px -30px rgba(0, 0, 0, .95); transition: border-color .25s, box-shadow .25s, transform .25s var(--ease); }
.card::after, .tile::after, .action-card::after, .floor-stat::after, .podium-card::after, .for-you::after { content: ""; position: absolute; inset: 0; z-index: -1; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(320px circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, .055), transparent 68%); }
.card:hover::after, .tile:hover::after, .action-card:hover::after, .floor-stat:hover::after, .podium-card:hover::after, .for-you:hover::after { opacity: 1; }
.card:hover, .action-card:hover { border-color: var(--edge); }
.action-card:hover { transform: translateY(-1px); }
.floor-stat { transition: transform .22s var(--ease), border-color .22s, box-shadow .22s; }
.floor-stat:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .16); }
.floor-stat.red { box-shadow: inset 0 0 22px -10px rgba(239, 138, 138, .6); }
.floor-stat b, .tile-val { text-shadow: 0 0 22px rgba(255, 255, 255, .12); }

/* Arriving on a page: everything lands in turn */
.page { animation: none; }
.page > *, .tiles > * { animation: land .55s var(--ease) both; }
.page > :nth-child(2) { animation-delay: .05s; } .page > :nth-child(3) { animation-delay: .1s; } .page > :nth-child(4) { animation-delay: .15s; } .page > :nth-child(5) { animation-delay: .2s; } .page > :nth-child(n+6) { animation-delay: .24s; }
.tiles > :nth-child(2) { animation-delay: .18s; } .tiles > :nth-child(3) { animation-delay: .22s; } .tiles > :nth-child(4) { animation-delay: .26s; } .tiles > :nth-child(5) { animation-delay: .3s; } .tiles > :nth-child(6) { animation-delay: .34s; }
@keyframes land { from { opacity: 0; transform: translateY(14px) scale(.992); } to { opacity: 1; transform: none; } }
.still .page > *, .still .tiles > * { animation: none; }

/* The hero */
.hello { padding: 40px 34px 36px; min-height: 196px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.hello::before { animation: drift 90s linear infinite; }
@keyframes drift { to { background-position: 640px -320px; } }
.hello::after { background: radial-gradient(52% 140% at 4% 0%, rgba(126, 46, 214, .24), transparent 68%), linear-gradient(90deg, rgba(11, 10, 10, .15), rgba(11, 10, 10, .6)); background-size: 130% 130%; animation: breathe 16s ease-in-out infinite alternate; }
@keyframes breathe { from { background-position: 0% 0%; } to { background-position: 100% 60%; } }
.hello-main { position: relative; z-index: 1; }
.hello-title { font-size: 46px; color: var(--title); text-shadow: 0 4px 0 rgba(0, 0, 0, .55); }
.hello-cta { position: relative; z-index: 1; }
.chip-live { background: rgba(112, 190, 122, .1); color: var(--on); box-shadow: inset 0 0 0 1px rgba(112, 190, 122, .24); }
.chip-live.is-closed { background: rgba(226, 82, 80, .1); color: #ef8a8a; box-shadow: inset 0 0 0 1px rgba(226, 82, 80, .26); }
.live-dot { position: relative; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.live-dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: currentColor; animation: pulse 2s var(--ease) infinite; }

/* What waits for you is a plain card (owner, 6.11: "waiting for you trenger ikke å være lilla") */
.for-you-row { transition: background .18s; }
.for-you-row:hover { background: var(--surface-hover); }

/* Buttons and switches */
.btn { transition: background .18s, color .18s, transform .18s var(--ease), box-shadow .18s; }
.btn:active { transform: translateY(1px) scale(.985); }
.btn-primary { position: relative; overflow: hidden; background: linear-gradient(180deg, #8a3fdc, #7426cc); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2); }
.btn-primary:hover { background: linear-gradient(180deg, #9a50e8, #8232dc); transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .26); }
.btn-primary::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .32), transparent); transform: skewX(-18deg); transition: left .6s var(--ease); pointer-events: none; }
.btn-primary:hover::after { left: 120%; }
.switch.on { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25); }

/* Headings get a rule running off them */
.section-title { display: flex; align-items: center; gap: 12px; }
.section-title::after { content: ""; flex: 1; height: 1px; background: linear-gradient(90deg, var(--edge), transparent); }
.section-title.flat::after { display: none; }
.page-head h1 { font-size: 28px; color: var(--title); filter: drop-shadow(0 3px 0 rgba(0, 0, 0, .5)); }

/* Bars catch the light */
.race-bar { position: relative; }
.race-bar i { position: relative; overflow: hidden; }
.race-bar i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .2) 50%, transparent 70%); background-size: 220% 100%; animation: sweep 3.6s ease-in-out infinite; }
@keyframes sweep { from { background-position: 180% 0; } to { background-position: -80% 0; } }
.floor-row:not(.floor-head) { border-radius: 8px; transition: background .16s, transform .16s var(--ease); }
.floor-row:not(.floor-head):hover { transform: translateX(2px); }

/* The podium: first in the middle, standing taller, in the theme's own light */
.podium { align-items: end; }
.podium-card { --medal: #a78bfa; overflow: hidden; padding-top: 26px; transition: transform .25s var(--ease), box-shadow .25s; border-color: color-mix(in srgb, var(--medal) 42%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 13%, transparent), rgba(255, 255, 255, .012) 72%); }
.podium-card:hover { transform: translateY(-4px); }
.podium-card.place-1 { --medal: #c9a8f2; order: 2; padding: 38px 12px 26px; }
.podium-card.place-2 { --medal: #cdc8d6; order: 1; box-shadow: 0 20px 46px -32px rgba(205, 200, 214, .6); }
.podium-card.place-3 { --medal: #9c93ac; order: 3; box-shadow: 0 20px 46px -32px rgba(156, 147, 172, .55); }
.podium-card.first { background: linear-gradient(180deg, color-mix(in srgb, var(--medal) 20%, transparent), rgba(255, 255, 255, .012) 76%); border-color: color-mix(in srgb, var(--medal) 62%, transparent); }
.podium-card::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, transparent, var(--medal), transparent); box-shadow: 0 0 18px 2px color-mix(in srgb, var(--medal) 70%, transparent); }
.podium-rank { position: absolute; top: 10px; left: 12px; font-size: 13px; color: var(--medal); text-shadow: 0 0 12px color-mix(in srgb, var(--medal) 70%, transparent); }
.podium-card.place-1 .podium-rank { font-size: 16px; }
.podium-card .big { color: var(--medal); text-shadow: 0 0 22px color-mix(in srgb, var(--medal) 55%, transparent); }
.podium-card.place-1 .big { font-size: 34px; }
.podium-card .avatar { box-shadow: 0 0 0 2px color-mix(in srgb, var(--medal) 70%, transparent), 0 0 22px -2px color-mix(in srgb, var(--medal) 70%, transparent); }

/* Jump to anything */
.palette-back { position: fixed; inset: 0; z-index: 60; display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; background: rgba(5, 3, 9, .62); backdrop-filter: blur(6px); animation: fade .14s; }
.palette { width: 100%; max-width: 580px; max-height: 66vh; display: flex; flex-direction: column; overflow: hidden; border-radius: 14px; border: 1px solid var(--edge); background: var(--popover); box-shadow: 0 40px 90px -30px #000; animation: land .22s var(--ease); }
.palette-top { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 52px; flex: none; border-bottom: 1px solid var(--hairline); color: var(--subtle); }
.palette-input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; font-size: 15px; color: var(--title); }
.palette-input::placeholder { color: var(--subtle); }
.palette-input::-webkit-search-cancel-button { display: none; }
.palette-list { flex: 1; overflow-y: auto; padding: 6px; }
.palette-group { padding: 10px 10px 4px; font-size: 10.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .12em; color: var(--subtle); }
.palette-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--label); text-align: left; cursor: pointer; }
.palette-row svg { color: var(--subtle); flex: none; }
.palette-row.on { background: var(--control-hover); color: var(--title); }
.palette-row.on svg { color: var(--title); }
.palette-label { flex: none; max-width: 60%; font-size: 13.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-sub { margin-left: auto; min-width: 0; font-size: 12px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.palette-foot { display: flex; gap: 14px; flex: none; padding: 8px 14px; border-top: 1px solid var(--hairline); font-size: 11.5px; color: var(--subtle); }
.palette-foot kbd { margin-right: 3px; }

/* Dialogs and drawers lift off the page */
.dialog, .drawer { box-shadow: 0 40px 90px -30px #000; }

@media (max-width: 900px) { .hello-title { font-size: 36px; } .rail-search kbd { display: none; } }
@media (max-width: 620px) { .podium { grid-template-columns: 1fr; } .podium-card.place-1, .podium-card.place-2, .podium-card.place-3 { order: 0; padding: 26px 12px 16px; } .hello { padding: 28px 22px 26px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* Ask the AI (9.11) */
.ask-card { display: flex; flex-direction: column; gap: 12px; padding: 0; overflow: hidden; }
.ask-log { display: flex; flex-direction: column; gap: 14px; min-height: 320px; max-height: min(62vh, 640px); overflow-y: auto; padding: 18px 18px 6px; }
.ask-empty { margin: auto 0; padding: 24px 0; }
.ask-chip { cursor: pointer; border: 0; font: inherit; font-size: 12px; height: auto; min-height: 28px; padding: 5px 12px; white-space: normal; text-align: left; transition: background-color .15s, box-shadow .15s; }
.ask-chip:hover { background: rgba(255, 255, 255, .1); box-shadow: inset 0 0 0 1px var(--edge); }
.ask-msg { display: flex; flex-direction: column; gap: 6px; max-width: min(78%, 720px); }
.ask-msg.me { align-self: flex-end; align-items: flex-end; }
.ask-msg.ai { align-self: flex-start; }
.ask-who { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--primary-light); }
.ask-bubble { padding: 10px 13px; border-radius: 12px; background: rgba(255, 255, 255, .045); box-shadow: inset 0 0 0 1px var(--hairline); color: var(--label); overflow-wrap: anywhere; }
.ask-msg.me .ask-bubble { background: var(--primary-soft); box-shadow: inset 0 0 0 1px rgba(158, 98, 224, .28); color: var(--title); border-bottom-right-radius: 4px; }
.ask-msg.ai .ask-bubble { border-bottom-left-radius: 4px; }
.ask-msg.held .ask-bubble { color: var(--subtle); font-style: italic; }
.ask-line + .ask-line { margin-top: 6px; }
.ask-line b { color: var(--title); font-weight: 600; }
.ask-link { text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }
.ask-link.discord { display: inline-flex; align-items: center; padding: 1px 8px; border-radius: var(--chip); background: var(--primary-soft); text-decoration: none; font-weight: 600; white-space: nowrap; }
.ask-link.discord:hover { background: rgba(126, 46, 214, .2); }
.ask-do { display: flex; flex-direction: column; gap: 10px; padding: 12px 13px; border-radius: 12px; background: rgba(126, 46, 214, .07); box-shadow: inset 0 0 0 1px rgba(158, 98, 224, .3); }
.ask-do.danger { background: rgba(226, 82, 80, .06); box-shadow: inset 0 0 0 1px rgba(226, 82, 80, .28); }
.ask-do-label { color: var(--title); font-weight: 600; overflow-wrap: anywhere; }
.ask-note { color: var(--subtle); }
.ask-error { align-self: center; font-size: 13px; color: var(--off); background: rgba(226, 82, 80, .08); padding: 7px 12px; border-radius: var(--control-r); }
.ask-typing { display: inline-flex; gap: 5px; padding: 14px 15px; }
.ask-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--subtle); animation: ask-dot 1.2s infinite ease-in-out; }
.ask-typing span:nth-child(2) { animation-delay: .15s; } .ask-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes ask-dot { 0%, 80%, 100% { opacity: .25; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .ask-typing span { animation: none; opacity: .6; } }
.ask-form { display: flex; align-items: flex-end; gap: 10px; padding: 12px 14px 14px; border-top: 1px solid var(--hairline); }
textarea.input.ask-input { min-height: 44px; max-height: 180px; resize: none; }
@media (max-width: 640px) { .ask-msg { max-width: 92%; } .ask-log { max-height: 58vh; padding: 14px 12px 4px; } .ask-form { padding: 10px; } }

/* Get the app (9.11) */
.app-steps { margin: 4px 0 0; padding-left: 20px; color: var(--label); }
.app-steps li + li { margin-top: 6px; }
