@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 100 800;
  font-display: swap;
  src: url("/assets/fonts/jetbrains-mono-latin.woff2") format("woff2");
}

:root {
  color-scheme: dark;
  --surface-primary: oklch(0.145 0 0);
  --surface-raised: oklch(0.182 0 0);
  --surface-2: oklch(0.209 0 0);
  --surface-3: oklch(0.244 0 0);
  --surface-4: oklch(0.285 0 0);
  --surface-overlay: oklch(0.191 0 0);
  --surface-dock: oklch(0.218 0 0);
  --surface-map: oklch(0.187 0.012 237.5);
  --surface-glass: oklch(0.182 0 0 / 0.92);
  --text-primary: oklch(0.946 0 0);
  --text-muted: oklch(0.709 0 0);
  --text-subtle: oklch(0.580 0 0);
  --text-inverse: oklch(1 0 0);
  --text-on-accent: oklch(0.177 0.034 269.6);
  --text-on-alert: oklch(1 0 0);
  --text-map: oklch(0.833 0 0);
  --text-map-link: oklch(0.905 0.042 275.1);
  --border-subtle: oklch(1 0 0 / 0.08);
  --border-strong: oklch(1 0 0 / 0.14);
  --border-control: oklch(1 0 0 / 0.42);
  --accent-primary: oklch(0.694 0.160 272.5);
  --accent-soft: oklch(0.694 0.160 272.5 / 0.12);
  --accent-line: oklch(0.694 0.160 272.5 / 0.45);
  --accent-soft-strong: oklch(0.694 0.160 272.5 / 0.2);
  --status-error: oklch(0.770 0.136 20.7);
  --status-error-bg: oklch(0.770 0.136 20.7 / 0.08);
  --status-error-border: oklch(0.770 0.136 20.7 / 0.3);
  --status-ok: oklch(0.836 0.126 156.8);
  --status-ok-bg: oklch(0.836 0.126 156.8 / 0.08);
  --status-ok-border: oklch(0.836 0.126 156.8 / 0.3);
  --status-alert: oklch(0.582 0.223 24.7);
  --border-focus: var(--accent-primary);
  --highlight-strong: oklch(1 0 0 / 0.9);
  --highlight-soft: oklch(1 0 0 / 0.35);
  --highlight-hairline: oklch(1 0 0 / 0.03);
  --highlight-row: oklch(1 0 0 / 0.02);
  --shadow-soft: oklch(0 0 0 / 0.25);
  --shadow-mid: oklch(0 0 0 / 0.35);
  --shadow: oklch(0 0 0 / 0.45);
  --shadow-strong: oklch(0 0 0 / 0.55);
  --scrim: oklch(0.145 0 0 / 0.62);
  --scrim-heavy: oklch(0 0 0 / 0.72);
  --figure: oklch(0.973 0.003 106.4);
  --bg: var(--surface-primary);
  --surface: var(--surface-raised);
  --text: var(--text-primary);
  --muted: var(--text-muted);
  --subtle: var(--text-subtle);
  --border: var(--border-subtle);
  --accent: var(--accent-primary);
  --primary: var(--text-primary);
  --primary-ink: var(--surface-primary);
  --good: var(--status-ok);
  --good-bg: var(--status-ok-bg);
  --bad: var(--status-error);
  --bad-bg: var(--status-error-bg);
  --radius-sm: 6px;
  --radius: 10px;
  --radius-lg: 14px;
  --sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(0.2, 0, 0, 1);
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  color: var(--text);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

::selection { background: var(--accent-soft); color: var(--text); }

a {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: var(--border-strong);
  text-underline-offset: 3px;
  transition: color 150ms var(--ease), text-decoration-color 150ms var(--ease);
}
a:hover { color: var(--accent); text-decoration-color: var(--accent-line); }

code, kbd, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
}
code {
  padding: 0.1rem 0.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 10;
  background: var(--primary);
  color: var(--primary-ink);
  padding: 0.4rem 0.75rem;
  border-radius: var(--radius-sm);
  text-decoration: none;
}
.skip:focus { top: 0.6rem; }

/* Header */

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  overflow: visible;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.top-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem 1rem;
  width: min(68rem, calc(100% - 2.5rem));
  min-height: 3.5rem;
  margin: 0 auto;
  padding: 0.35rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand:hover { color: var(--text); }
.brand-mark {
  width: 1.1rem;
  height: 1.1rem;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(135deg, var(--highlight-strong), var(--highlight-soft));
  box-shadow: inset 0 0 0 3px var(--bg);
}

.nav { display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center; justify-content: flex-end; overflow: visible; font-size: 0.875rem; }
.nav form { margin: 0; }
.nav a,
.nav button {
  display: inline-flex;
  align-items: center;
  height: 2rem;
  padding: 0 0.7rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms var(--ease), color 150ms var(--ease);
}
.nav a:hover,
.nav button:hover { background: var(--surface-3); color: var(--text); }
.icon {
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  display: inline-block;
  vertical-align: -0.15em;
  fill: currentColor;
}
.nav .icon,
button .icon,
.view-toggle .icon,
.reply > summary .icon { margin-right: 0.35rem; }
.icon-only .icon,
.attach-plus .icon,
.menu-trigger .icon,
.map-tools .icon { margin: 0; }
.nav a[data-nav-messages],
.dock-toggle { position: relative; }
.nav-ping {
  position: absolute;
  top: -0.32rem;
  right: -0.28rem;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--status-alert);
  color: var(--text-on-alert);
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  pointer-events: none;
  box-shadow: 0 0 0 2px var(--bg);
}
.nav-ping[hidden] { display: none; }

/* Layout */

main {
  flex: 1;
  width: min(46rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 2.5rem 0 4rem;
}
body.wide main { width: min(68rem, calc(100% - 2.5rem)); }
body.exam main { width: min(52rem, calc(100% - 2.5rem)); padding-top: 1.25rem; }

.foot {
  width: min(68rem, calc(100% - 2.5rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
  border-top: 1px solid var(--border);
  color: var(--subtle);
  font-size: 0.8rem;
}
.foot p { margin: 0; max-width: 60rem; }
.foot p + p { margin-top: 0.35rem; }

h1, h2, h3 {
  margin: 0 0 0.6rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
}
h1 { font-size: 1.75rem; }
h2 { font-size: 1.125rem; }
h3 { font-size: 1rem; margin-top: 1.75rem; }
p { margin: 0 0 0.9rem; }

.lede, .muted, .meta, .help, .disclaimer { color: var(--muted); }
.lede { font-size: 1rem; margin-bottom: 1.75rem; }
.disclaimer { font-size: 0.8rem; color: var(--subtle); }
.meta {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}

/* Surfaces */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  margin: 0 0 1rem;
  box-shadow: 0 1px 0 var(--highlight-hairline) inset, 0 8px 24px var(--shadow-soft);
}
.card > :last-child { margin-bottom: 0; }

.narrow { max-width: 25rem; margin: 3rem auto 0; padding: 2rem; }
.narrow h1 { font-size: 1.4rem; }
.narrow .lede { font-size: 0.9rem; margin-bottom: 1.25rem; }
.narrow form + form { margin-top: 0.6rem; }
.narrow form button { width: 100%; }
.auth-or {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.2rem 0 1rem;
  color: var(--muted);
  font-size: 0.82rem;
}
.auth-or::before,
.auth-or::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--border);
}

.craft-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(19rem, 1fr));
  gap: 1rem;
}
.landing-bleed {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
}
.landing-bleed video { width: 100%; height: 100%; object-fit: cover; }
.landing-bleed::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--scrim);
}
body.landing main,
body.landing .foot { position: relative; z-index: 1; }
body.landing main { width: min(68rem, calc(100% - 2.5rem)); }
@media (max-width: 430px) {
  body.landing main { padding-top: 4.6rem; }
}
.landing-first {
  min-height: calc(100vh - 9rem);
  display: flex;
  flex-direction: column;
}
.nav-work { display: inline-flex; align-items: center; gap: 0.25rem; flex-wrap: nowrap; }
.nav-slot { position: relative; display: flex; align-items: center; }
.nav a.nav-cue {
  position: absolute;
  top: calc(100% + 1.25rem);
  left: 50%;
  height: auto;
  padding: 0.28rem 0.72rem 0.28rem 0.48rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-glass);
  color: var(--text);
  box-shadow: 0 8px 18px var(--shadow-mid);
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
  white-space: nowrap;
  transform: translateX(calc(-0.48rem - 0.5em));
}
.nav a.nav-cue[data-cue="signup"] {
  left: auto;
  right: 50%;
  flex-direction: row-reverse;
  padding: 0.28rem 0.48rem 0.28rem 0.72rem;
  transform: translateX(calc(0.48rem + 0.5em));
}
.nav a.nav-cue[hidden] { display: none; }
.nav a.nav-cue:hover {
  background: var(--surface-glass);
  border-color: var(--border-control);
  color: var(--text);
}
.nav-cue { display: inline-flex; align-items: center; gap: 0.4rem; }
.job-cue-arrow { display: inline-flex; animation: cue-bounce 1.7s ease-in-out infinite; }
.job-cue-arrow .icon { transform: rotate(90deg); margin: 0; }
@keyframes cue-bounce {
  0%, 100% { transform: translateY(1px); }
  50% { transform: translateY(-3px); }
}
.landing-viewport { overflow: hidden; }
.landing-track {
  display: flex;
  width: 400%;
  transition: transform 650ms cubic-bezier(0.45, 0.05, 0.2, 1);
}
.landing-slide {
  flex: 0 0 25%;
  width: 25%;
  box-sizing: border-box;
  padding-right: 1.5rem;
}
.landing-carousel[data-index="0"] .landing-track { transform: translateX(0); }
.landing-carousel[data-index="1"] .landing-track { transform: translateX(-25%); }
.landing-carousel[data-index="2"] .landing-track { transform: translateX(-50%); }
.landing-carousel[data-index="3"] .landing-track { transform: translateX(-75%); }
@media (prefers-reduced-motion: reduce) {
  .job-cue-arrow { animation: none; }
  .landing-track { transition: none; }
}
.landing-slide h1,
.landing-slide h2 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 0.75rem; }
.landing-slide p { max-width: 36rem; font-size: 1.05rem; }
.landing-dots { display: flex; gap: 0.45rem; margin-top: 1.75rem; }
.landing-dots button {
  width: 0.6rem;
  height: 0.6rem;
  padding: 0;
  border-radius: 99px;
  background: var(--surface-4);
  border: 0;
}
.landing-dots button.is-on,
.landing-dots button[aria-current="true"] { background: var(--text); }
.landing-about { margin-top: 3rem; max-width: 34rem; }
.landing-about h2 { font-size: 1.35rem; }
.craft-grid.browse { align-items: start; }
.craft-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.craft-card:hover { border-color: var(--border-strong); background: var(--surface-2); }
.craft-card h2 { font-size: 1.2rem; }
.craft-card .muted { font-size: 0.875rem; }
.craft-card .price { margin: 0.15rem 0 0; font-size: 1.15rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin-top: auto; padding-top: 0.85rem; }
.card-actions form { margin: 0; }
.bundle-line { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.bundle-line p { margin: 0; }
.card-actions .muted { flex-basis: 100%; margin: 0.25rem 0 0; font-size: 0.85rem; }

/* Forms */

label {
  display: block;
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 500;
}
input:not([type]), input[type="email"], input[type="password"], input[type="text"], input[type="number"], input[type="file"],
select, textarea {
  display: block;
  width: 100%;
  height: 2.5rem;
  margin-top: 0.4rem;
  padding: 0 0.8rem;
  border: 1px solid var(--border-control);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font: inherit;
  font-size: 0.95rem;
  transition: border-color 150ms var(--ease), box-shadow 150ms var(--ease), background 150ms var(--ease);
}
input[inputmode="numeric"] {
  font-family: var(--mono);
  font-size: 1.1rem;
  letter-spacing: 0.3em;
}
input:hover { border-color: var(--border-control); }
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid var(--border-focus);
  outline-offset: 2px;
  border-color: var(--border-focus);
}
input::placeholder { color: var(--subtle); }
input[type="radio"], input[type="checkbox"] { accent-color: var(--accent); }
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  box-shadow: 0 0 0 1000px var(--surface-2) inset;
}
textarea { height: auto; min-height: 6rem; padding: 0.7rem 0.8rem; resize: vertical; }
select { height: 2.5rem; }
input[type="file"] { height: auto; padding: 0.4rem; font-size: 0.85rem; color: var(--muted); }
input[type="file"]::file-selector-button {
  margin-right: 0.75rem;
  height: 1.9rem;
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text);
  font: inherit;
  cursor: pointer;
}

button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  height: 2.5rem;
  padding: 0 1rem;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  color: var(--primary-ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 550;
  text-decoration: none;
  cursor: pointer;
  transition: background 150ms var(--ease), border-color 150ms var(--ease), color 150ms var(--ease), transform 150ms var(--ease);
}
button:hover, .button:hover { background: var(--text-inverse); color: var(--primary-ink); }
button:active, .button:active { transform: translateY(1px); }
button.ghost, .button.ghost, .ghost {
  background: var(--surface-2);
  color: var(--text);
  border-color: var(--border-strong);
}
button.ghost:hover, .button.ghost:hover, .ghost:hover { background: var(--surface-4); color: var(--text); }
.small { height: 2rem; padding: 0 0.75rem; font-size: 0.82rem; border-radius: var(--radius-sm); }
td button.ghost { height: 1.85rem; padding: 0 0.65rem; font-size: 0.8rem; border-radius: var(--radius-sm); }

.row { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; margin-top: 1.5rem; }
.row .push { margin-left: auto; }

.error, .note {
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  border: 1px solid;
  font-size: 0.875rem;
}
.error { background: var(--bad-bg); color: var(--bad); border-color: var(--status-error-border); }
.note { background: var(--good-bg); color: var(--good); border-color: var(--status-ok-border); }
.dev-code strong { font-family: var(--mono); letter-spacing: 0.15em; }

.rules { padding-left: 1.1rem; color: var(--muted); }
.rules li { margin: 0.3rem 0; }
.rules li::marker { color: var(--subtle); }

/* Exam */

.exam-bar {
  position: sticky;
  top: 3.5rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 1rem;
  padding: 0.75rem 0.9rem;
  background: var(--surface-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.exam-bar p { margin: 0; }
.exam-status { display: flex; align-items: center; gap: 1rem; min-width: 0; }
.exam-progress {
  display: grid;
  grid-template-columns: auto auto;
  gap: 0.15rem 0.75rem;
  align-items: baseline;
  font-size: 0.85rem;
}
.exam-progress .muted { font-size: 0.78rem; }
.exam-progress progress { grid-column: 1 / -1; width: 12rem; }
.exam-tools { display: flex; gap: 0.4rem; align-items: center; }

#timer {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0.3rem 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
}

progress {
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  border: 0;
  border-radius: 999px;
  background: var(--surface-4);
  overflow: hidden;
}
progress::-webkit-progress-bar { background: var(--surface-4); border-radius: 999px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 999px; transition: width 200ms var(--ease); }
progress::-moz-progress-bar { background: var(--accent); border-radius: 999px; }

.tools { display: grid; gap: 1rem; }
.tools:has(> :not([hidden])) { margin-bottom: 1rem; }

#calculator {
  width: min(20rem, 100%);
  padding: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.calc-display {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1.5rem;
  text-align: right;
  min-height: 3rem;
  margin: 0 0 0.75rem;
  padding: 0.55rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  overflow-wrap: anywhere;
}
.calc-keys { display: grid; grid-template-columns: repeat(20, 1fr); gap: 0.35rem; }
.calc-keys button { grid-column: span 5; }
.calc-keys button:nth-child(-n + 5) { grid-column: span 4; }
.calc-keys button {
  height: 2.6rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.95rem;
  font-weight: 500;
}
.calc-keys button:hover { background: var(--surface-4); }
.calc-keys button:nth-child(-n + 5) { color: var(--muted); font-size: 0.85rem; }
.calc-keys button.op { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.calc-keys button.op:hover { background: var(--accent-soft-strong); }

#formulas {
  padding: 1.1rem 1.25rem 1.25rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  columns: 2 16rem;
  column-gap: 2rem;
}
#formulas .help { column-span: all; font-size: 0.85rem; }
.card h2 + .formula-title { margin-top: 0.4rem; }
.formula-title {
  break-after: avoid;
  margin: 1rem 0 0.35rem;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
#formulas .formula-title:first-of-type { margin-top: 0.25rem; }
.formulas { margin: 0; padding: 0; list-style: none; }
.formulas li {
  break-inside: avoid;
  margin: 0;
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--border);
  font-family: var(--mono);
  font-size: 0.8rem;
  color: var(--text);
}
.formulas li:last-child { border-bottom: 0; }

.question { padding: 1.75rem; }
.prompt { font-size: 1.15rem; line-height: 1.55; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 1.25rem; }

fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.choice {
  position: relative;
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  margin: 0 0 0.5rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 400;
  cursor: pointer;
  transition: border-color 150ms var(--ease), background 150ms var(--ease);
}
.choice:hover { border-color: var(--border-strong); background: var(--surface-3); }
.choice input { position: absolute; opacity: 0; pointer-events: none; }
.choice .letter {
  flex: none;
  display: inline-grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-3);
  color: var(--muted);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  transition: inherit;
}
.choice-text { padding-top: 0.12rem; }
.choice:has(input:checked) { border-color: var(--accent-line); background: var(--accent-soft); }
.choice:has(input:checked) .letter { border-color: var(--accent); background: var(--accent); color: var(--primary-ink); }
.choice:has(input:focus-visible) { outline: 2px solid var(--border-focus); outline-offset: 2px; }

/* Figures stay on a light mat so black line drawings stay readable. */
.figure {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 0 1.25rem;
  padding: 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--figure);
}

/* Results */

.result-head { padding: 1.75rem; }
.result-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem; margin-bottom: 0.25rem; }
.result-title h1 { margin: 0; font-size: 2rem; }
.is-pass .result-title h1 { color: var(--good); }
.is-fail .result-title h1 { color: var(--bad); }
.badge {
  display: inline-flex;
  align-items: center;
  height: 1.5rem;
  padding: 0 0.55rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 500;
}
.score {
  margin: 0.5rem 0 1rem;
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 1rem;
  color: var(--muted);
}
.score-bar { display: block; width: 100%; height: 6px; }
.is-pass .score-bar::-webkit-progress-value { background: var(--good); }
.is-pass .score-bar::-moz-progress-bar { background: var(--good); }
.is-fail .score-bar::-webkit-progress-value { background: var(--bad); }
.is-fail .score-bar::-moz-progress-bar { background: var(--bad); }

.misses { margin-top: 2rem; }
.misses > h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.miss {
  margin: 0 0 0.75rem;
  padding: 1.25rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
}
.miss h2 { font-size: 1rem; font-weight: 500; line-height: 1.5; letter-spacing: -0.005em; margin-bottom: 0.9rem; }
.miss > :last-child { margin-bottom: 0; }
.answer {
  margin: 0 0 0.4rem;
  padding: 0.45rem 0.7rem;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}
.answer-label {
  display: inline-block;
  min-width: 6.5rem;
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.answer-picked { background: var(--bad-bg); }
.answer-right { background: var(--good-bg); }

blockquote {
  margin: 0.9rem 0;
  padding: 0.6rem 0.9rem;
  border-left: 2px solid var(--accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.9rem;
}
blockquote p { margin: 0 0 0.3rem; }
blockquote footer { color: var(--subtle); font-size: 0.78rem; }
.why { margin-top: 0.4rem; color: var(--muted); font-size: 0.9rem; }
.refs { margin-top: 0.4rem; font-size: 0.8rem; }
.link { overflow-wrap: anywhere; font-family: var(--mono); font-size: 0.82rem; }

/* Tables */

.table-wrap {
  overflow-x: auto;
  margin: 0.5rem 0 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
table { width: 100%; border-collapse: collapse; font-size: 0.85rem; }
th, td {
  text-align: left;
  vertical-align: middle;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--surface-2);
  color: var(--subtle);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}
tbody tr { transition: background 120ms var(--ease); }
tbody tr:hover { background: var(--highlight-row); }
tbody tr:last-child td { border-bottom: 0; }
td form { margin: 0; }

:focus-visible { outline: 2px solid var(--border-focus); outline-offset: 2px; border-radius: var(--radius-sm); }

@media (max-width: 640px) {
  body { font-size: 14.5px; }
  main { padding-top: 1.5rem; }
  h1 { font-size: 1.5rem; }
  .narrow { margin-top: 1rem; padding: 1.5rem; }
  .card, .question, .result-head { padding: 1.15rem; }
  .exam-bar { top: 3.5rem; }
  .exam-progress progress { width: 8rem; }
  .row .push { margin-left: 0; }
}

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

/* Locked tests and the card menu */

.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.75rem; }
.card-head h2 { margin-bottom: 0.6rem; }
.craft-card.is-locked { background: var(--bg); border-style: dashed; box-shadow: none; }
.craft-card.is-locked:hover { background: var(--surface); }
.craft-card.is-locked h2,
.craft-card.is-locked .locked-body { color: var(--subtle); }
.craft-card.is-locked .locked-body .muted,
.craft-card.is-locked .locked-body .meta { color: var(--subtle); }

.menu { position: relative; flex: none; }
.menu-trigger {
  display: inline-grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  margin: -0.25rem -0.4rem 0 0;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  list-style: none;
  user-select: none;
  transition: background 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.menu-trigger::-webkit-details-marker { display: none; }
.menu-trigger:hover,
.menu[open] .menu-trigger { background: var(--surface-3); border-color: var(--border); color: var(--text); }
.menu-pop {
  position: absolute;
  top: calc(100% + 0.35rem);
  right: -0.4rem;
  z-index: 4;
  min-width: 11rem;
  padding: 0.3rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  box-shadow: 0 12px 32px var(--shadow);
}
.menu-pop form { margin: 0; }
.menu-item {
  display: flex;
  width: 100%;
  height: 2.1rem;
  margin: 0;
  padding: 0 0.65rem;
  align-items: center;
  justify-content: flex-start;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 500;
}
button.menu-item:hover,
button.menu-item:focus-visible { background: var(--surface-4); color: var(--text); }
.menu-item.is-disabled { color: var(--subtle); cursor: default; }

.badge-locked { color: var(--subtle); border-style: dashed; background: transparent; }
.badge-pending { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.badge-good { color: var(--good); border-color: var(--status-ok-border); background: var(--good-bg); }
.badge-bad { color: var(--bad); border-color: var(--status-error-border); background: var(--bad-bg); }
h2 .badge { margin-left: 0.4rem; vertical-align: 0.1em; }

/* Admin access */

.actions { display: flex; gap: 0.4rem; justify-content: flex-end; }
.toggle {
  height: 1.85rem;
  padding: 0 0.7rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.toggle:hover { background: var(--surface-3); color: var(--text); }
.toggle.is-on { border-style: solid; border-color: var(--accent-line); background: var(--accent-soft); color: var(--accent); }
.toggle.is-on:hover { background: var(--accent-soft-strong); color: var(--accent); }
.access-table td:nth-child(n + 3), .access-table th:nth-child(n + 3) { width: 9rem; }

.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0.35rem 0.75rem; margin: 0 0 1rem; padding: 0; border: 0; }
.recruiter-only { display: none; }
form:has(input[name="accountKind"][value="recruiter"]:checked) .recruiter-only { display: block; }
form:has(input[name="accountKind"][value="recruiter"]:checked) .craft-only { display: none; }
.checks legend, fieldset legend { font-weight: 600; margin-bottom: 0.4rem; }
.checks label { margin: 0; font-weight: 400; }
ul.plain { list-style: none; margin: 0; padding: 0; }
ul.plain li { margin: 0.35rem 0; }
form.search {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
  margin: 0 0 1.25rem;
}
form.search label { flex: 1 1 16rem; margin: 0; }
form.search label.kind { flex: 0 1 12rem; }
form.search button { flex: 0 0 auto; }
.stack { display: flex; flex-direction: column; gap: 0.75rem; margin: 1rem 0; }
.post { padding: 0.85rem 0; border-bottom: 1px solid var(--border); }
.post p { margin: 0.25rem 0; white-space: pre-wrap; }
.post form { margin-top: 0.4rem; }
.post button.ghost { height: 1.85rem; padding: 0 0.7rem; }

.dock { position: fixed; right: 1rem; bottom: 1rem; z-index: 40; display: flex; flex-direction: column; align-items: flex-end; }
.dock.is-open { right: 1rem; bottom: 0.75rem; max-height: calc(100svh - 5rem); }
.dock.is-open .dock-toggle { display: none; }
.dock-toggle {
  display: inline-flex;
  align-items: center;
  height: 2.6rem;
  padding: 0 1rem;
  border: 0;
  border-radius: 999px;
  background: var(--primary);
  color: var(--primary-ink);
  font: inherit;
  font-weight: 600;
  box-shadow: 0 8px 24px var(--shadow-mid);
}
.dock-panel {
  position: relative;
  width: min(23rem, calc(100vw - 1.5rem));
  height: min(24rem, calc(100svh - 5.5rem));
  max-height: calc(100svh - 5.5rem);
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  border-radius: 16px;
  background: var(--surface-overlay);
  box-shadow: 0 12px 40px var(--shadow-strong);
}
.dock-panel:not([hidden]) { display: flex; }
.dock-list-view, .dock-thread { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.dock-list-view[hidden], .dock-thread[hidden], .dock-send[hidden], .dock-decide[hidden], .dock-status[hidden], .dock-face[hidden], .dock-back[hidden], .dock-all[hidden] { display: none; }
.dock-bar { display: flex; align-items: center; gap: 0.45rem; min-height: 3.35rem; padding: 0.45rem 0.55rem 0.45rem 0.7rem; border-bottom: 1px solid var(--border); background: var(--surface-dock); }
.dock-heading { min-width: 0; flex: 1; }
.dock-title { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.95rem; }
.dock-face { width: 32px; height: 32px; }
.dock-back, .dock-x {
  width: 2rem;
  height: 2rem;
  padding: 0;
  border-radius: 50%;
  font-size: 1.25rem;
  line-height: 1;
}
.dock-all { color: var(--text); font-size: 0.8rem; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; white-space: nowrap; }
.dock-all:hover { color: var(--text); }
.dock-list { flex: 1; overflow: auto; padding: 0.35rem; }
.dock-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0.65rem;
  width: 100%;
  height: auto;
  margin: 0;
  padding: 0.45rem 0.55rem;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text);
  font: inherit;
  font-weight: 500;
  text-align: left;
}
.dock-row .avi { margin: 0; }
.dock-row:hover { background: var(--surface-3); }
.dock-row span { color: var(--muted); font-size: 0.85rem; }
.dock-log { flex: 1; min-height: 0; overflow: auto; overflow-anchor: none; padding: 0.75rem 0.7rem; display: flex; flex-direction: column; gap: 0.35rem; }
.dock-status { margin: 0; padding: 0.55rem 0.85rem 0; }
.dock-send, .dock-decide { flex: 0 0 auto; padding: 0.55rem 0.65rem 0.7rem; border-top: 1px solid var(--border); background: var(--surface-dock); }
.dock-send { display: flex; align-items: flex-end; gap: 0.4rem; }
.dock-compose { position: relative; flex: 1; margin: 0; }
.dock-send textarea {
  min-height: 2.3rem;
  max-height: 6rem;
  height: 2.3rem;
  margin: 0;
  padding: 0.45rem 0.9rem;
  border-radius: 999px;
  resize: none;
  line-height: 1.35;
}
.dock-send button { height: 2.3rem; padding: 0 0.85rem; border-radius: 999px; }
.dock-decide { display: flex; gap: 0.5rem; }
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (max-width: 640px) {
  .nav-ping { top: 0.12rem; right: 0.16rem; }
  .dock.is-open { left: 0.5rem; right: 0.5rem; bottom: 0.5rem; align-items: stretch; }
  .dock.is-open .dock-panel { width: 100%; height: min(24rem, calc(100svh - 5.5rem)); border-radius: 16px; }
}

.avi {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-3);
  flex: 0 0 auto;
}
.avi.lg { width: 72px; height: 72px; }
.avi.xl { width: 96px; height: 96px; }
.social { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.65rem 0 0.15rem; }
.social form, .who form { margin: 0; }
.who form { margin-left: auto; }
.profile-head { display: flex; gap: 1rem; align-items: flex-start; margin: 0 0 1.5rem; }
.profile-head h1 { margin: 0 0 0.15rem; font-size: 1.6rem; }
.profile-head p { margin: 0.15rem 0; }
.counts { display: flex; flex-wrap: wrap; gap: 0.2rem 1.15rem; margin: 0.7rem 0 0.15rem; }
.counts summary {
  display: inline-flex;
  gap: 0.3rem;
  align-items: baseline;
  cursor: pointer;
  list-style: none;
  color: var(--muted);
}
.counts summary::-webkit-details-marker { display: none; }
.counts summary strong { color: var(--text); font-size: 1.02rem; }
.counts details > .face-list,
.counts details > p { margin: 0.45rem 0 0.2rem; }
.fold { margin: 0.75rem 0; }
.fold > summary {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .icon { margin-right: 0.35rem; }
.fold > form,
.fold > p { margin-top: 0.85rem; }
.group-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.group-head h1 { margin: 0; }
.group-head form { margin: 0.15rem 0 0; }
button.write-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.75rem;
  width: 100%;
  height: auto;
  margin: 0.2rem 0 1rem;
  padding: 0.55rem 0.9rem 0.55rem 0.55rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
  font-weight: 550;
  text-align: left;
  box-shadow: 0 8px 24px var(--shadow-soft);
}
button.write-row:hover { background: var(--surface-3); color: var(--text); }
dialog.post-modal {
  width: min(34rem, calc(100vw - 2rem));
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--text);
}
dialog.post-modal::backdrop { background: var(--scrim-heavy); }
.post-modal form { margin: 0; padding: 1.1rem 1.2rem 1.15rem; }
.post-modal header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.post-modal h2 { margin: 0; }
.post-modal header button { width: 2.1rem; height: 2.1rem; padding: 0; }
article.post.card { border-bottom: 0; padding: 1rem 1.1rem; }
.post-top { display: flex; align-items: flex-start; gap: 0.7rem; }
.post-top > div { flex: 1; min-width: 0; }
.post-title { margin: 0.65rem 0 0.2rem; font-size: 1.08rem; }
.comments { margin-top: 0.75rem; padding-top: 0.6rem; border-top: 1px solid var(--border); }
.comment { margin: 0.55rem 0 0.55rem 0.15rem; }
.comment .comment { margin-left: 1.5rem; }
.comment p { margin: 0.12rem 0; }
form.comment-form { display: flex; gap: 0.5rem; align-items: center; margin: 0.35rem 0 0; }
form.comment-form label, .reply form label { flex: 1; margin: 0; }
form.comment-form input, .reply form input { height: 2.2rem; }
form.comment-form button, .reply form button { height: 2.2rem; }
.reply { margin-top: 0.2rem; }
.reply > summary {
  display: inline-block;
  width: auto;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}
.reply > summary::-webkit-details-marker { display: none; }
.reply form { display: flex; gap: 0.5rem; align-items: center; margin-top: 0.35rem; }
.menu-pop { min-width: 14rem; }
.menu-pop .menu-reason { display: block; margin: 0.15rem 0.3rem 0.3rem; font-size: 0.75rem; font-weight: 600; color: var(--muted); }
.menu-pop .menu-reason input { width: 100%; height: 2.1rem; margin-top: 0.25rem; }
.group-qa {
  margin-top: 2rem;
  padding: 1.1rem 1.2rem 0.3rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-lg);
  background: transparent;
  box-shadow: none;
}
.composer-bar { display: flex; align-items: flex-end; gap: 0.55rem; margin: 0.2rem 0 1rem; }
.attach { position: relative; }
.attach-plus {
  display: grid;
  place-items: center;
  width: 2.3rem;
  height: 2.3rem;
  margin: 0;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--text);
  font-size: 1.35rem;
  line-height: 1;
  list-style: none;
  cursor: pointer;
}
.attach-plus::-webkit-details-marker { display: none; }
.attach-plus:hover { background: var(--surface-3); }
.attach-menu {
  position: absolute;
  z-index: 6;
  left: 0;
  bottom: calc(100% + 0.4rem);
  min-width: 9.5rem;
  padding: 0.3rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface-2);
  box-shadow: 0 12px 32px var(--shadow);
}
.attach-item {
  display: block;
  margin: 0;
  padding: 0.5rem 0.7rem;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
}
.attach-item:hover { background: var(--surface-3); }
.attach-item input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.attach-picked { margin: 0; color: var(--muted); font-size: 0.8rem; }
.attach-picked:empty { display: none; }
.file-link, .composer a { font-weight: 600; }
.pill {
  display: inline-flex;
  align-items: center;
  margin-left: 0.35rem;
  padding: 0.05rem 0.45rem;
  border-radius: 999px;
  background: var(--accent-soft-strong);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.02em;
  line-height: 1.4;
  vertical-align: middle;
}
.who { display: flex; align-items: center; gap: 0.7rem; }
.who-head { display: flex; align-items: center; gap: 0.9rem; margin: 0.25rem 0 1rem; }
.who-head h1, .chat-head h1 { margin: 0; }
.photo-row { display: flex; align-items: center; gap: 0.9rem; margin: 0 0 1.25rem; }
.photo-row .muted { margin: 0.35rem 0 0; }
.post .meta { display: flex; align-items: center; gap: 0.45rem; }
.chat { display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.75rem; }
.chat-log {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  min-height: 18rem;
  max-height: min(32rem, 62vh);
  overflow: auto;
  overflow-anchor: none;
  padding: 1rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background: var(--surface);
}
.chat-compose {
  border: 1px solid var(--border);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  padding: 0.75rem 0.85rem 0.9rem;
  background: var(--surface);
}
.chat-compose textarea { min-height: 3.4rem; }
.bubble {
  display: flex;
  align-items: flex-end;
  gap: 0.45rem;
  max-width: 82%;
}
.bubble.mine { align-self: flex-end; }
.bubble-col { min-width: 0; }
.bubble-name { margin: 0 0 0.2rem; color: var(--muted); font-size: 0.75rem; }
.bubble.mine .bubble-name { text-align: right; }
.bubble-body {
  margin: 0;
  padding: 0.55rem 0.8rem;
  border-radius: 16px;
  background: var(--surface-3);
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.bubble.mine .bubble-body { background: var(--accent); color: var(--text-on-accent); }
.bubble.compact { align-items: flex-end; }
.bubble.compact .bubble-body { border-radius: 18px; }
.avi.sm { width: 28px; height: 28px; }
.dock-row.unread { background: var(--accent-soft); }
.dock-person { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.dock-person > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14rem; }
.dock-row .pill { color: var(--accent); font-size: 0.68rem; }
.dock-log .bubble { max-width: 92%; }
.nav a[data-nav-messages] { font-variant-numeric: tabular-nums; }
.tip { position: relative; display: inline-flex; vertical-align: middle; margin-left: 0.35rem; }
.tip-button {
  width: 1.2rem;
  height: 1.2rem;
  padding: 0;
  border: 1px solid var(--border-strong);
  border-radius: 50%;
  background: transparent;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
}
.tip-button:hover { background: var(--surface-3); color: var(--text); }
.tip-bubble {
  display: none;
  position: absolute;
  z-index: 5;
  left: calc(100% + 0.45rem);
  top: 50%;
  transform: translateY(-30%);
  width: min(16rem, 70vw);
  padding: 0.7rem 0.8rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: var(--surface-2);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 450;
  line-height: 1.45;
  text-align: left;
  box-shadow: 0 12px 32px var(--shadow);
}
.tip:hover .tip-bubble, .tip:focus-within .tip-bubble { display: block; }
.shot {
  display: block;
  max-width: min(100%, 28rem);
  margin: 0.5rem 0 0.75rem;
  border: 1px solid var(--border);
  border-radius: 12px;
}
.votes { display: flex; gap: 0.45rem; margin: 0.2rem 0 0.7rem; }
.votes button.is-on { border-color: var(--accent-line); color: var(--text); background: var(--accent-soft); }
.tip-button { display: inline-grid; place-items: center; }
.tip-button .icon { width: 0.75rem; height: 0.75rem; margin: 0; }
button.write-row span { display: inline-flex; align-items: center; }
.view-toggle { display: flex; gap: 0.4rem; margin: 0 0 1rem; }
.view-toggle a {
  display: inline-flex;
  align-items: center;
  height: 2.15rem;
  padding: 0 0.85rem;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
}
.view-toggle a.is-on { color: var(--text); background: var(--surface-3); }
.job-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem 0.75rem;
  align-items: end;
  margin: 0 0 1rem;
}
.job-filters label {
  display: grid;
  gap: 0.25rem;
  margin: 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.job-filters select,
.job-filters input,
.job-filters button {
  margin: 0;
}
.job-filters select { min-width: 8.5rem; }
.job-filters input[type="number"] { width: 7rem; }
.map-frame {
  position: relative;
  width: min(100%, 72rem);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface-map);
  overflow: hidden;
}
.map-canvas { height: min(70vh, 42rem); min-height: 24rem; }
.maplibregl-map { font-family: inherit; }
.maplibregl-ctrl-attrib {
  background: var(--scrim);
  color: var(--text-map);
  font-size: 0.72rem;
}
.maplibregl-ctrl-attrib a { color: var(--text-map-link); }
button.map-pin {
  width: 14px;
  height: 14px;
  min-width: 14px;
  padding: 0;
  border: 2px solid var(--surface-primary);
  border-radius: 50%;
  background: var(--accent-primary);
  box-shadow: 0 0 0 1px var(--shadow);
}
button.map-pin:hover, button.map-pin:focus-visible { background: var(--text-primary); }
.map-hover {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 0.12rem;
  max-width: 16rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 12px 32px var(--shadow);
  pointer-events: none;
}
.map-hover[hidden] { display: none; }
.map-hover a { color: inherit; font-weight: 650; text-decoration: underline; text-underline-offset: 2px; pointer-events: auto; }
.map-hover span { color: var(--muted); font-size: 0.82rem; }
.map-side {
  position: absolute;
  z-index: 3;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(20rem, 86%);
  overflow: auto;
  padding: 0.85rem 0.9rem 1rem;
  border-right: 1px solid var(--border);
  background: var(--surface-glass);
}
.map-side[hidden] { display: none; }
.map-side-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
.map-side h2 { margin: 0; font-size: 1rem; }
.map-side .count { margin: 0.15rem 0 0.7rem; }
.map-side li { margin: 0 0 0.85rem; }
.map-side li a { font-weight: 650; }
.map-side li .muted { display: block; }
.map-tools {
  position: absolute;
  z-index: 5;
  top: 0.65rem;
  right: 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.map-tools button {
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  padding: 0;
}
.off-map { margin-top: 1.25rem; }
.job-list { margin-top: 0.25rem; }

@media (forced-colors: active) {
  :root {
    --surface-primary: Canvas;
    --text-primary: CanvasText;
    --text-muted: CanvasText;
    --text-subtle: CanvasText;
    --border-subtle: CanvasText;
    --border-strong: CanvasText;
    --border-control: CanvasText;
    --border-focus: Highlight;
    --accent-primary: LinkText;
    --status-error: CanvasText;
    --status-ok: CanvasText;
    --status-alert: CanvasText;
  }
  :focus-visible {
    outline: 2px solid Highlight;
    outline-offset: 2px;
  }
  .top,
  .card,
  input,
  select,
  textarea,
  button,
  .button,
  .error,
  .note,
  .badge,
  .nav-cue {
    border-color: CanvasText;
  }
  .error,
  .note,
  .badge {
    border: 1px solid CanvasText;
  }
}
