/* Homework dashboard — dark technical look after the Linear design system (approved mockup, 26.11.2026). */
:root {
  --bg: #08090a; --panel: #0f1011; --card: #0e0f10; --card-2: #111214; --me: #161723;
  --fg: #f7f8f8; --fg-2: #d0d6e0; --muted: #8a8f98;
  --line: rgba(255, 255, 255, 0.08); --line-soft: rgba(255, 255, 255, 0.05); --pill-line: #23252a;
  --accent: #5e6ad2; --violet: #7170ff; --violet-hover: #828fff; --ring-off: rgba(255, 255, 255, 0.09);
  --ok: #27a644; --warn: #eab308; --warn-text: #e5c35a; --danger: #dc2626;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); }
body {
  color: var(--fg); font-family: Inter, -apple-system, system-ui, "Segoe UI", Roboto, sans-serif;
  font-size: 16px; line-height: 1.5; font-feature-settings: "cv01", "ss03";
  -webkit-font-smoothing: antialiased;
}
a { color: var(--violet); } a:hover { color: var(--violet-hover); }
a:focus-visible, button:focus-visible, input:focus-visible { outline: 2px solid rgba(113, 112, 255, 0.8); outline-offset: 2px; }
input::placeholder { color: var(--muted); }
h1, h2, h3, p { margin: 0; }
.muted { color: var(--muted); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* Header */
.top { background: var(--panel); box-shadow: inset 0 -1px 0 var(--line-soft); }
.top .wrap { min-height: 64px; padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 32px; }
.brand { display: flex; flex-direction: column; line-height: 1.3; text-decoration: none; color: var(--fg); }
.brand b { font-size: 15px; font-weight: 590; }
.brand span { font-size: 13px; color: var(--muted); }
.nav { display: flex; flex-wrap: wrap; gap: 6px; flex-grow: 1; }
.nav a { padding: 7px 14px; border-radius: 6px; color: var(--fg-2); font-size: 14px; font-weight: 510; text-decoration: none; }
.nav a:hover { color: var(--fg); }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px var(--line); color: var(--fg); }
.who { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 510; }
.who form { margin: 0; }
.top.two-rows .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand who" "nav nav"; gap: 10px 24px; }
.top.two-rows .brand { grid-area: brand; }
.top.two-rows .who { grid-area: who; }
.top.two-rows .nav { grid-area: nav; margin: 0 -14px; }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border: 0; border-radius: 8px;
  font: inherit; font-size: 16px; font-weight: 510; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: #6b77e0; color: #fff; }
.btn-ghost { background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: #e2e4e7; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.05); color: var(--fg); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 6px; }
.btn-md { height: 40px; padding: 0 16px; font-size: 15px; border-radius: 6px; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 10px; border-radius: 9999px;
  box-shadow: inset 0 0 0 1px var(--pill-line); color: var(--fg-2); font-size: 13px; font-weight: 510; white-space: nowrap; }
.dot { width: 8px; height: 8px; border-radius: 9999px; flex-shrink: 0; }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); } .dot-err { background: var(--danger); }
.you { padding: 2px 10px; border-radius: 9999px; background: rgba(113, 112, 255, 0.16); color: #c4c3ff; font-size: 12px; font-weight: 510; }

/* Avatars */
.av { width: 40px; height: 40px; border-radius: 9999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 590; object-fit: cover; }
.av-sm { width: 32px; height: 32px; font-size: 12px; }
.av-stack { display: flex; flex-shrink: 0; }
.av-stack .av + .av { margin-left: -10px; }
.av-stack .av { box-shadow: 0 0 0 3px var(--card); }

/* Score ring: 12 segments like an inspection sticker */
.ring { --gap: var(--card); --deg: 0deg; position: relative; width: 48px; height: 48px; border-radius: 9999px; flex-shrink: 0;
  background: conic-gradient(var(--violet) 0deg var(--deg), var(--ring-off) var(--deg) 360deg); }
.ring::before { content: ""; position: absolute; inset: 0; border-radius: 9999px;
  background: repeating-conic-gradient(from -2deg, var(--gap) 0deg 4deg, transparent 4deg 30deg); }
.ring > span { position: absolute; inset: 6px; border-radius: 9999px; background: var(--gap); display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1; font-size: 15px; font-weight: 590; font-variant-numeric: tabular-nums; }
.ring.pending > span { color: var(--muted); }
.ring-xl { width: 220px; height: 220px; --gap: var(--bg); box-shadow: 0 0 80px rgba(113, 112, 255, 0.3); }
.ring-xl::before { background: repeating-conic-gradient(from -1.2deg, var(--gap) 0deg 2.4deg, transparent 2.4deg 30deg); }
.ring-xl > span { inset: 22px; font-size: 80px; font-weight: 510; letter-spacing: -2.4px; }
.ring-xl small, .ring-lg small { margin-top: 8px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.ring-lg { width: 136px; height: 136px; --gap: var(--card-2); box-shadow: 0 0 48px rgba(113, 112, 255, 0.28); }
.ring-lg::before { background: repeating-conic-gradient(from -1.5deg, var(--gap) 0deg 3deg, transparent 3deg 30deg); }
.ring-lg > span { inset: 15px; font-size: 44px; font-weight: 510; letter-spacing: -1px; }
.ring-lg small { margin-top: 6px; font-size: 12px; }

/* Layout blocks */
main.wrap { padding-top: 64px; padding-bottom: 80px; display: flex; flex-direction: column; gap: 56px; }
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: center; justify-content: space-between; }
.hero-text { flex: 1 1 540px; max-width: 680px; display: flex; flex-direction: column; gap: 20px; }
h1 { font-size: 56px; line-height: 1.04; font-weight: 510; letter-spacing: -1.2px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--muted); letter-spacing: -0.165px; }
h2 { font-size: 28px; line-height: 1.2; font-weight: 400; letter-spacing: -0.5px; }
h3 { font-size: 18px; font-weight: 590; }
.row-gap { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.deadline { font-size: 15px; color: var(--fg-2); }
.deadline .pill { margin-left: 6px; color: var(--muted); }
.card { border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.card-2 { border-radius: 12px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.mine { flex: 0 1 400px; display: flex; align-items: center; gap: 24px; padding: 24px; color: var(--fg); text-decoration: none; }
.mine:hover { color: var(--fg); background: #14151a; }
.mine .stack { display: flex; flex-direction: column; gap: 8px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px; }
.flash { padding: 14px 18px; border-radius: 10px; font-size: 15px; }
.flash-ok { background: rgba(39, 166, 68, 0.08); box-shadow: inset 0 0 0 1px rgba(39, 166, 68, 0.3); }
.flash-error { background: rgba(220, 38, 38, 0.1); box-shadow: inset 0 0 0 1px rgba(220, 38, 38, 0.35); }
.note { font-size: 15px; color: var(--muted); max-width: 760px; }
.empty { padding: 40px 24px; text-align: center; color: var(--muted); }

/* Tables built from grid rows */
.scroll { overflow-x: auto; }
.grid-table { min-width: 820px; }
.gt-row { display: grid; gap: 16px; align-items: center; padding: 14px 24px; box-shadow: inset 0 -1px 0 var(--line-soft); }
.gt-row:last-child { box-shadow: none; }
.gt-head { font-size: 13px; font-weight: 510; color: var(--muted); }
.gt-people { grid-template-columns: minmax(0, 2.4fr) minmax(0, 0.9fr) minmax(0, 0.6fr) minmax(0, 1.1fr) minmax(0, 1.2fr); }
.gt-row.is-me { background: var(--me); }
.gt-row.is-me .ring { --gap: var(--me); }
.gt-row.is-me .av-stack .av { box-shadow: 0 0 0 3px var(--me); }
.who-cell { display: flex; align-items: center; gap: 14px; min-width: 0; }
.who-cell .names { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.who-cell .names b { font-weight: 510; }
.who-cell .names span { font-size: 13px; color: var(--muted); }
.cell-2 { color: var(--fg-2); }
.gt-org { grid-template-columns: minmax(0, 2fr) minmax(0, 1.2fr) repeat(6, minmax(0, 0.62fr)) minmax(0, 2.3fr); gap: 12px; font-variant-numeric: tabular-nums; }
.gt-org .num { color: var(--fg-2); }
.gt-org .big { font-size: 20px; font-weight: 510; }
.gt-org .span6 { grid-column: span 6; display: inline-flex; align-items: center; gap: 8px; color: var(--fg-2); font-size: 15px; }
.gt-org.selected { background: var(--me); }
.gt-org a.rowlink { color: var(--fg); text-decoration: none; }
.gt-org a.rowlink:hover { color: var(--violet-hover); }
.links { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 15px; }
.gt-diff { grid-template-columns: minmax(0, 0.5fr) minmax(0, 2.4fr) minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr); gap: 12px; color: var(--fg-2); padding: 12px 20px; }

/* Forms */
.form-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.form-main { flex: 999 1 580px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
fieldset { margin: 0; border: 0; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
legend { padding: 0; float: left; width: 100%; display: flex; align-items: baseline; gap: 10px; }
legend b { font-size: 22px; font-weight: 510; letter-spacing: -0.3px; }
legend span { font-size: 13px; color: var(--muted); }
legend + * { clear: both; }
.drop { position: relative; border-radius: 10px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  padding: 36px 24px; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.drop.has-file { background: rgba(39, 166, 68, 0.08); box-shadow: inset 0 0 0 1px rgba(39, 166, 68, 0.3); }
.drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .title { font-size: 17px; font-weight: 510; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-size: 15px; font-weight: 510; }
.field small { font-size: 13px; color: var(--muted); }
.input { height: 44px; padding: 0 14px; border: 0; border-radius: 6px; background: rgba(255, 255, 255, 0.02);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--fg); font: inherit; font-size: 15px; width: 100%; }
.filerow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px;
  border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); }
.filerow .txt { display: flex; flex-direction: column; line-height: 1.4; }
.filerow .txt b { font-weight: 510; }
.filerow .txt span { font-size: 14px; color: var(--muted); }
.filerow input[type=file] { font: inherit; font-size: 14px; color: var(--fg-2); max-width: 260px; }
.filerow input[type=file]::file-selector-button { height: 36px; padding: 0 14px; margin-right: 10px; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); color: var(--fg); font: inherit; font-size: 14px; font-weight: 510; cursor: pointer; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; padding: 28px; }
.weights { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.bar { height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, 0.06); }
.bar > i { display: block; height: 6px; border-radius: 9999px; background: var(--violet); }
.bar.warn > i { background: var(--warn); }
.kv { display: flex; justify-content: space-between; gap: 12px; }
.kv b { font-weight: 590; font-variant-numeric: tabular-nums; }

/* My work */
.score-hero { display: flex; flex-wrap: wrap; align-items: center; gap: 32px 56px; }
.score-hero .txt { flex: 1 1 440px; display: flex; flex-direction: column; gap: 16px; }
.parts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.parts h2 { grid-column: 1 / -1; margin-bottom: 4px; }
.part { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.part.weakest { box-shadow: inset 0 0 0 1px rgba(234, 179, 8, 0.35); }
.part .label { font-size: 14px; color: var(--muted); }
.part .val { font-size: 32px; line-height: 1; font-weight: 510; letter-spacing: -0.7px; font-variant-numeric: tabular-nums; }
.part .val small { font-size: 16px; color: var(--muted); letter-spacing: 0; font-weight: 400; }
.part .hint { font-size: 13px; color: var(--muted); }
.part.weakest .hint { color: var(--warn-text); }
.two-cols { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.review { min-width: 0; padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.review .md { max-width: 70ch; font-size: 17px; line-height: 1.65; color: var(--fg-2); }
.review .md p { margin: 0 0 14px; }
.review .md strong { color: var(--fg); font-weight: 590; }
.review .md ul, .review .md ol { margin: 0 0 14px; padding-left: 24px; display: flex; flex-direction: column; gap: 8px; }
.review .md code { font-family: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 0.9em; padding: 1px 6px;
  border-radius: 4px; background: rgba(255, 255, 255, 0.06); color: var(--fg); }
.history { overflow: hidden; }
.history h3 { padding: 18px 24px; box-shadow: inset 0 -1px 0 var(--line-soft); }
.hist-row { display: flex; align-items: center; gap: 12px; padding: 16px 24px; box-shadow: inset 0 -1px 0 var(--line-soft); text-decoration: none; color: var(--fg); }
.hist-row:last-child { box-shadow: none; }
.hist-row:hover { background: rgba(255, 255, 255, 0.02); color: var(--fg); }
.hist-row.current { background: var(--me); }
.hist-row .grow { display: flex; flex-direction: column; gap: 4px; flex-grow: 1; }
.hist-row .when { display: inline-flex; align-items: center; gap: 8px; font-weight: 510; }
.hist-row .sub { font-size: 14px; color: var(--muted); }
.hist-row .num { font-size: 24px; font-weight: 510; letter-spacing: -0.4px; font-variant-numeric: tabular-nums; }

/* Organizer */
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px var(--line); gap: 2px; }
.seg a { height: 36px; padding: 0 14px; border-radius: 6px; display: inline-flex; align-items: center; color: var(--muted);
  font-size: 14px; font-weight: 510; text-decoration: none; }
.seg a[aria-current="true"] { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.detail { padding: 32px; display: flex; flex-direction: column; gap: 20px; }
.kvs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.kvs > div { padding: 16px 18px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.kvs span { font-size: 13px; color: var(--muted); }
.kvs b { font-size: 20px; font-weight: 510; }
.mono { font-family: "Berkeley Mono", ui-monospace, "SF Mono", Menlo, monospace; font-size: 13px; color: var(--fg-2); }

/* Login */
.login { max-width: 460px; margin: 96px auto; padding: 36px; display: flex; flex-direction: column; gap: 20px; }

/* Shared small pieces */
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.small { font-size: 14px; }
.strong { color: var(--fg); font-weight: 510; }
.h1-sm { font-size: 36px; letter-spacing: -0.8px; }
.stack-20 { display: flex; flex-direction: column; gap: 20px; }
.grow { flex: 999 1 600px; min-width: 0; }
.side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.pad { padding: 20px 24px; display: flex; flex-direction: column; gap: 12px; }
.card.inner { background: transparent; }
.btn[aria-disabled="true"] { opacity: 0.4; pointer-events: none; }
.demo-bar { background: #2a2140; color: #d9d2ff; font-size: 13px; text-align: center; padding: 6px 16px; }
.nav-sep { width: 1px; align-self: stretch; background: var(--line); margin: 4px 6px; }
.delta { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 2px 12px; border-radius: 9999px;
  font-size: 20px; line-height: 1.5; letter-spacing: 0; font-weight: 510; background: rgba(255, 255, 255, 0.06); color: var(--fg-2);
  font-variant-numeric: tabular-nums; }
.delta.up { background: rgba(39, 166, 68, 0.14); color: #6fd88a; }
.delta.down { background: rgba(220, 38, 38, 0.14); color: #f28b8b; }
.delta.sm { font-size: 13px; padding: 1px 8px; margin-left: 8px; }

/* The six parts of the result as marks */
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 8px; border-radius: 9999px;
  box-shadow: inset 0 0 0 1px var(--pill-line); font-size: 13px; font-weight: 510; color: var(--muted); white-space: nowrap; }
.chip.on { color: var(--fg-2); }
.chip.on svg { color: #6fd88a; }
.chip a { color: inherit; }
.chip a:hover { color: var(--fg); }

/* Home */
.next { display: flex; flex-direction: column; gap: 6px; padding: 16px 20px; border-radius: 10px; max-width: 660px;
  background: rgba(113, 112, 255, 0.08); box-shadow: inset 0 0 0 1px rgba(113, 112, 255, 0.25); }
.next-label { font-size: 13px; font-weight: 510; color: #c4c3ff; }
.next-text { font-size: 17px; line-height: 1.55; color: var(--fg-2); }
.next-text p { margin: 0; }
.next-text strong { color: var(--fg); font-weight: 590; }
.delivered { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.delivered-count { font-size: 15px; color: var(--fg-2); }
.tiles { display: flex; flex-wrap: wrap; gap: 12px; }
.tile { min-width: 170px; padding: 16px 20px; border-radius: 12px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line);
  display: flex; flex-direction: column; gap: 6px; }
.tile b { font-size: 36px; line-height: 1; font-weight: 510; letter-spacing: -0.8px; font-variant-numeric: tabular-nums; }
.tile span { font-size: 14px; color: var(--muted); }
.until { display: flex; flex-direction: column; gap: 10px; }
.until-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 15px; }
.bar-lg, .bar-lg > i { height: 8px; }
.faces { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.faces li { display: flex; }
.faces .more { align-items: center; padding: 0 8px; color: var(--muted); font-size: 14px; }

/* One submission: field by field */
.gt-fields { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
.f-name { display: flex; flex-direction: column; gap: 2px; }
.f-name b { font-weight: 510; }
.f-name small { font-size: 13px; color: var(--muted); }
.f-cell { display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.f-cell b { color: var(--fg); font-size: 17px; font-weight: 590; }
.f-cell .bar { max-width: 150px; }
.f-cell.low b { color: var(--warn-text); }
.lvl b { font-size: 16px; }
.dir { display: inline-flex; align-items: center; gap: 4px; font-size: 13px; color: var(--muted); }
.f-cell.low .dir { color: var(--warn-text); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.checks li { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.checks .mark { width: 22px; height: 22px; border-radius: 9999px; flex-shrink: 0; display: inline-flex; align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1px var(--pill-line); color: var(--muted); }
.checks li.on .mark { background: rgba(39, 166, 68, 0.16); box-shadow: none; color: #6fd88a; }
.checks li.off .what { color: var(--muted); }
.checks .what { flex-grow: 1; }
.checks a { font-size: 14px; }
.small-b { font-size: 16px !important; overflow-wrap: anywhere; }

/* Admins' comments on a submission */
.comment { display: flex; gap: 12px; align-items: flex-start; }
.comment-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.comment-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.comment-head b { font-weight: 510; }
.comment-head form { margin: 0; }
.comment-text { font-size: 16px; line-height: 1.6; color: var(--fg-2); white-space: pre-wrap; overflow-wrap: anywhere; max-width: 70ch; }
.comment-form { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.area { height: auto; min-height: 96px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.linklike { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.linklike:hover { color: var(--fg); }
.note-link { align-self: flex-start; font-size: 15px; font-weight: 510; }
.stack-6 { display: flex; flex-direction: column; gap: 6px; }

/* The reference page */
.pilot-top { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.fill-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 32px; margin-top: 4px; }
.gt-pilot { grid-template-columns: minmax(0, 2.1fr) minmax(0, 2.1fr) minmax(0, 1.5fr) minmax(0, 1.1fr) minmax(0, 1.1fr) minmax(0, 0.7fr); align-items: start; row-gap: 10px; }
.gt-pilot .cell { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gt-pilot .cell b { font-weight: 510; overflow-wrap: anywhere; }
.gt-pilot .cell small { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.gt-pilot .cell .big { font-size: 20px; line-height: 1.3; font-variant-numeric: tabular-nums; }
.gt-pilot details { grid-column: 1 / -1; }
.gt-pilot summary { cursor: pointer; width: fit-content; font-size: 14px; font-weight: 510; color: var(--violet); }
.gt-pilot summary:hover { color: var(--violet-hover); }
.gt-pilot .why { margin: 12px 0 6px; padding: 18px 20px; border-radius: 10px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line-soft);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; }
.gt-pilot .why > div { display: flex; flex-direction: column; gap: 6px; min-width: 0; font-size: 14px; line-height: 1.6; color: var(--fg-2); }
.gt-pilot .why b { font-weight: 510; color: var(--fg); }
.gt-pilot .why small { font-size: 13px; color: var(--muted); }
.gt-pilot .why ul { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.access { padding: 20px 24px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.access-state { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 15px; }
.access form { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.access label { display: flex; align-items: flex-start; gap: 10px; max-width: 460px; font-size: 14px; line-height: 1.45; color: var(--fg-2); cursor: pointer; }
.access input[type=checkbox] { margin: 3px 0 0; width: 16px; height: 16px; flex-shrink: 0; accent-color: var(--accent); }
.gt-pilot:target { background: var(--me); }
.missed { gap: 6px; }
a.next { text-decoration: none; }
a.next.pilot-open { max-width: none; }
a.next.pilot-open:hover .next-text { color: var(--fg); }

/* Admins: a team's header, the final show */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.pager-pos { min-width: 64px; text-align: center; color: var(--fg-2); font-variant-numeric: tabular-nums; }
.pager-gap { flex-grow: 1; }
.team-head { display: flex; align-items: center; gap: 16px; }
.team-head .names { display: flex; flex-direction: column; line-height: 1.35; }
.team-head .names b { font-size: 22px; font-weight: 510; letter-spacing: -0.3px; }
.team-head .names span { font-size: 15px; color: var(--muted); }
.av-lg { width: 56px; height: 56px; font-size: 18px; }
.av-stack.on-bg .av { box-shadow: 0 0 0 3px var(--bg); }
.embed { max-width: 960px; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; box-shadow: 0 0 0 1px var(--line); }
.embed iframe { display: block; width: 100%; height: 100%; border: 0; }

/* People */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 16px; }
.search { position: relative; flex: 1 1 320px; max-width: 480px; color: var(--muted); }
.search svg { position: absolute; left: 14px; top: 14px; }
.search .input { padding-left: 40px; }
.seg button { height: 36px; padding: 0 14px; border: 0; border-radius: 6px; background: transparent; color: var(--muted);
  font: inherit; font-size: 14px; font-weight: 510; cursor: pointer; }
.seg button[aria-pressed="true"] { background: rgba(255, 255, 255, 0.08); color: var(--fg); }
.seg button span { margin-left: 4px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gt-ppl { grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.7fr) minmax(0, 1.3fr) minmax(0, 1.4fr); padding-top: 10px; padding-bottom: 10px; }
.role-cell { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.role-cell form { margin: 0; }

/* The task */
.prose { display: flex; flex-direction: column; gap: 48px; }
.prose section { display: flex; flex-direction: column; gap: 16px; }
.prose p { font-size: 17px; line-height: 1.65; color: var(--fg-2); max-width: 70ch; }
.prose p.muted { color: var(--muted); font-size: 15px; }
.wp { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.wp ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 6px; color: var(--fg-2); }
.gt-task { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.6fr); align-items: start; }
.gt-task b { font-weight: 510; }
.gt-task span { color: var(--fg-2); }
.gt-task.gt-head span { color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 18px 20px 18px 64px; border-radius: 12px; background: var(--card);
  box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 4px; }
.steps li::before { content: counter(step); position: absolute; left: 22px; top: 12px; font-size: 30px; font-weight: 510;
  color: var(--violet); font-variant-numeric: tabular-nums; }
.steps li b { font-weight: 510; }
.steps li span { font-size: 15px; color: var(--muted); }
.plain { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; font-size: 15px; color: var(--fg-2); }
.plain b { color: var(--fg); font-weight: 510; }

/* Demo stand sign-in */
.personas { display: flex; flex-direction: column; gap: 8px; }
.personas form { margin: 0; }
.persona { width: 100%; padding: 12px 14px; border: 0; border-radius: 8px; background: rgba(255, 255, 255, 0.02); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--fg); font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.persona:hover { background: rgba(255, 255, 255, 0.05); }
.persona b { font-weight: 510; }
.persona span { font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) {
  /* Not enough room for one row: the sections move under the name. */
  .top .wrap { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "brand who" "nav nav"; gap: 10px 16px; }
  .top .brand { grid-area: brand; } .top .who { grid-area: who; } .top .nav { grid-area: nav; margin: 0 -14px; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  main.wrap { padding-top: 32px; padding-bottom: 48px; gap: 40px; }
  h1 { font-size: 36px; letter-spacing: -0.8px; }
  .lead { font-size: 16px; }
  .fields, .kvs { grid-template-columns: minmax(0, 1fr); }
  .parts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring-xl { width: 168px; height: 168px; }
  .ring-xl > span { inset: 18px; font-size: 60px; }
  .review, .detail, fieldset, .aside { padding: 20px; }
  .wp, .steps, .gt-pilot .why, .pilot-top, .fill-grid { grid-template-columns: minmax(0, 1fr); }
  .top .nav { margin: 0 -10px; }
  .top .brand span, .who > span:not(.you):not(.av) { display: none; }
  .nav a { padding: 7px 10px; }
  .nav-sep { display: none; }
  .ring-lg { width: 112px; height: 112px; }
  .ring-lg > span { inset: 13px; font-size: 36px; }
  .delta { font-size: 16px; }
  .mine { flex-basis: 100%; }
  /* Phone: the public table keeps who and the score; counts, dates and status drop out. */
  .grid-table:has(.gt-people) { min-width: 0; }
  .gt-people { grid-template-columns: minmax(0, 1fr) auto; padding: 12px 16px; }
  .gt-people > :nth-child(n+3) { display: none; }
  /* People on a narrow screen: who and the role button; the search still finds by email. */
  .grid-table:has(.gt-ppl) { min-width: 0 !important; }
  .gt-ppl { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 16px; }
  .gt-ppl > :nth-child(2), .gt-ppl > :nth-child(3) { display: none; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
