/* 4.4.Forty Dev Hub
   Stripboard idea: every project carries its category color everywhere it appears.
   One family (Archivo), width axis does the work: condensed for names and numbers, normal for reading. */

:root {
  --canvas: #eceff3;
  --surface: #ffffff;
  --sunken: #f5f7fa;
  --line: #dde2ea;
  --line-strong: #c7cfdb;
  --ink: #13203a;
  --ink-2: #2b3953;
  --muted: #5a6478;
  --faint: #8a93a5;

  /* category strips */
  --c-doc: #2d6cdf;
  --c-series: #7a4fd6;
  --c-digital: #12a07a;
  --c-branded: #d23f7c;
  --c-live: #e2761e;
  --c-podcast: #1593a8;
  --c-company: #46536b;
  --c-tracking: #c9971a;
  --c-other: #8a93a5;

  /* signals */
  --now: #e5484d;
  --next: #f0a020;
  --later: #a4acba;
  --good: #1f9d55;

  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 7px;
  --side: 248px;
  --font: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.5;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; padding: 0; }
input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--c-doc); outline-offset: 2px; border-radius: 6px; }
.boot { min-height: 100vh; display: grid; place-items: center; color: var(--muted); }

/* condensed display voice */
.cond { font-stretch: 75%; font-variation-settings: "wdth" 75; }
.xcond { font-variation-settings: "wdth" 62; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: var(--side) minmax(0, 1fr); min-height: 100vh; }
.side {
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  background: var(--ink); color: #c9d2e3; padding: 22px 14px 18px;
  display: flex; flex-direction: column; gap: 18px;
}
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px; color: #fff; }
.logo-bars { display: flex; gap: 3px; height: 26px; align-items: stretch; }
.logo-bars i { width: 5px; border-radius: 3px; display: block; }
.logo-text { line-height: 1.05; }
.logo-text b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.01em; font-variation-settings: "wdth" 72; }
.logo-text span { font-size: 12px; color: #8f9bb3; }

.side-search { position: relative; }
.side-search input {
  width: 100%; background: #1e2d4b; border: 1px solid #2a3b5e; color: #fff;
  border-radius: 10px; padding: 9px 12px 9px 34px; font-size: 14px;
}
.side-search input::placeholder { color: #7f8ba4; }
.side-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; stroke: #7f8ba4; }

.navgroup { display: flex; flex-direction: column; gap: 2px; }
.navlabel { font-size: 12px; color: #6f7c97; padding: 8px 10px 4px; }
.navlink {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px;
  font-size: 14.5px; color: #c9d2e3;
}
.navlink svg { width: 17px; height: 17px; stroke: currentColor; flex: none; opacity: 0.8; }
.navlink .n { margin-left: auto; font-size: 12px; color: #74819b; font-variant-numeric: tabular-nums; }
.navlink:hover { background: #1c2a47; color: #fff; }
.navlink.on { background: #26375a; color: #fff; }
.navlink.on .n { color: #b9c4d9; }
.navlink .alert { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--now); color: #fff; font-size: 11.5px; font-weight: 700; display: grid; place-items: center; }

.side-foot { position: sticky; bottom: -18px; background: var(--ink); padding-bottom: 18px; margin-top: auto; padding: 12px 10px 0; border-top: 1px solid #22314f; font-size: 12.5px; color: #8f9bb3; display: grid; gap: 10px; }
.refresh {
  display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  background: #fff; color: var(--ink); border-radius: 10px; padding: 9px; font-weight: 650; font-size: 14px;
}
.refresh:hover { background: #e9eef7; }
.refresh:disabled { opacity: 0.7; cursor: default; }
.refresh svg { width: 16px; height: 16px; stroke: currentColor; }
.refresh.busy svg { animation: spin 0.9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.side-foot { grid-template-columns: minmax(0, 1fr); }
.whoami span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.whoami button { flex: none; }
.whoami { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.whoami button { color: #b9c4d9; text-decoration: underline; text-underline-offset: 2px; font-size: 12.5px; }

.mobilebar { display: none; }

/* ---------- main ---------- */
.main { padding: 28px 32px 80px; min-width: 0; }
.head { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; margin-bottom: 20px; }
.head h1 {
  margin: 0; font-size: 44px; line-height: 0.95; font-weight: 800; letter-spacing: -0.01em;
  font-variation-settings: "wdth" 70;
}
.head p { margin: 6px 0 0; color: var(--muted); max-width: 64ch; }
.head .spacer { flex: 1; }
.banner { margin: 0 0 18px; padding: 11px 14px; border-radius: var(--r-md); background: #e3ecfb; color: #1f4fa8; font-size: 14px; }
.banner.err { background: #fde8e8; color: #a3272b; }

/* toolbar */
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.field {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 14px; min-width: 0;
}
.field:focus { border-color: var(--c-doc); outline: none; box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15); }
input.field { width: 240px; }
.seg { display: inline-flex; background: #dfe4ec; border-radius: 10px; padding: 3px; gap: 2px; }
.seg button { padding: 6px 12px; border-radius: 8px; font-size: 13.5px; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(19, 32, 58, 0.12); }
.count { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }

/* chips */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: var(--r-sm);
  background: var(--sunken); border: 1px solid var(--line); font-size: 13px; line-height: 1.35; color: var(--ink-2);
  white-space: nowrap;
}
a.chip:hover { border-color: var(--line-strong); background: #fff; }
.chip .sw { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.chip.cat { color: #fff; border: 0; font-weight: 600; font-size: 12px; padding: 3px 8px; }
.chip.pri-now { background: #fdeaea; border-color: #f7c9ca; color: #b5262b; font-weight: 600; }
.chip.pri-next { background: #fdf2dc; border-color: #f4dba6; color: #8f5c00; font-weight: 600; }
.chip.pri-later { color: var(--muted); }
.chip.st-good { background: #e3f5ea; border-color: #bfe6cd; color: #17713d; }
.chip.st-warm { background: #fdf2dc; border-color: #f4dba6; color: #8f5c00; }
.chip.st-hot { background: #e7effd; border-color: #c4d6f8; color: #1f4fa8; }
.chip.st-cold { color: var(--muted); }
.chip.st-red { background: #fdeaea; border-color: #f7c9ca; color: #b5262b; }

.ago { color: var(--faint); font-size: 12.5px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ago.stale { color: #b46b00; }
mark.d { background: #e7effd; color: #1f4fa8; border-radius: 3px; padding: 0 2px; font-weight: 600; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
mark.d.soon { background: #fdeaea; color: #b5262b; }

/* ---------- home bento ---------- */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--surface); border-radius: var(--r-lg); border: 1px solid var(--line); padding: 18px 20px; min-width: 0; }
.tile h2 { margin: 0 0 12px; font-size: 19px; font-weight: 750; font-variation-settings: "wdth" 80; display: flex; align-items: baseline; gap: 10px; }
.tile h2 a.more { margin-left: auto; font-size: 13px; font-weight: 500; color: var(--c-doc); font-variation-settings: "wdth" 100; }
.span-12 { grid-column: span 12; } .span-8 { grid-column: span 8; } .span-7 { grid-column: span 7; }
.span-6 { grid-column: span 6; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }

.scoreboard { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; background: var(--ink); color: #fff; border-color: var(--ink); padding: 0; overflow: hidden; }
.score { padding: 16px 18px 14px; border-left: 1px solid #22314f; display: block; }
.score:first-child { border-left: 0; }
.score:hover { background: #1b2a48; }
.score b { display: block; font-size: 46px; line-height: 1; font-weight: 800; font-variation-settings: "wdth" 62; font-variant-numeric: tabular-nums; }
.score span { display: block; font-size: 13px; color: #a9b5cb; margin-top: 4px; }
.score em { font-style: normal; font-size: 12.5px; color: #fff; opacity: 0.85; }
.score .bar { display: flex; height: 4px; border-radius: 2px; overflow: hidden; margin-top: 10px; background: #26375a; }

/* stripboard rows (Now) */
.strips { display: grid; gap: 8px; }
.strip {
  display: grid; grid-template-columns: 6px minmax(0, 1fr) auto; gap: 0 14px; align-items: start;
  background: var(--sunken); border-radius: var(--r-md); padding: 10px 14px 10px 0; border: 1px solid transparent;
}
.strip:hover { border-color: var(--line-strong); background: #fff; }
.strip .rail { align-self: stretch; border-radius: 0 4px 4px 0; }
.strip .t { font-weight: 700; font-size: 15.5px; font-variation-settings: "wdth" 85; }
.strip .s { color: var(--ink-2); font-size: 13.5px; margin-top: 2px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.strip .r { text-align: right; display: grid; gap: 4px; justify-items: end; }

/* coming up */
.agenda { display: grid; gap: 2px; }
.agenda-day { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.agenda-day:first-child { border-top: 0; padding-top: 0; }
.cal { align-self: start; text-align: center; border-radius: 10px; background: var(--sunken); padding: 5px 0 6px; line-height: 1; }
.cal small { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 3px; }
.cal b { font-size: 24px; font-weight: 800; font-variation-settings: "wdth" 66; }
.cal.today { background: var(--ink); color: #fff; }
.cal.today small { color: #a9b5cb; }
.agenda-items { display: grid; gap: 6px; }
.agenda-item { display: grid; grid-template-columns: 4px minmax(0, 1fr); gap: 10px; font-size: 13.5px; }
.agenda-item .rail { border-radius: 2px; }
.agenda-item b { font-weight: 650; }
.agenda-item p { margin: 0; color: var(--ink-2); }

/* feed */
.feed { display: grid; }
.feed-item { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.feed-item:first-child { border-top: 0; padding-top: 2px; }
.feed-item .dot { width: 10px; height: 10px; border-radius: 3px; margin-top: 5px; }
.feed-item .meta { display: flex; gap: 8px; align-items: baseline; }
.feed-item .meta b { font-weight: 700; font-size: 14px; font-variation-settings: "wdth" 85; }
.feed-item p { margin: 2px 0 0; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.feed-item:hover p { color: var(--ink); }

/* progress */
.prog-list { display: grid; gap: 14px; }
.prog .top { display: flex; align-items: baseline; gap: 8px; margin-bottom: 6px; }
.prog .top b { font-weight: 700; font-size: 14.5px; font-variation-settings: "wdth" 85; }
.prog .top span { color: var(--muted); font-size: 13px; }
.prog .top .count { margin-left: auto; }
.stackbar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--sunken); gap: 2px; }
.stackbar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }
.legend i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }

.qlist { display: grid; gap: 8px; }
.q { display: block; background: var(--sunken); border-radius: var(--r-md); padding: 10px 12px; font-size: 13.5px; border: 1px solid transparent; }
.q:hover { border-color: var(--line-strong); background: #fff; }
.q b { display: block; font-weight: 650; font-size: 13px; color: var(--muted); margin-bottom: 2px; }

.pipeline { display: grid; gap: 10px; }
.pipe-row { display: grid; grid-template-columns: 110px minmax(0, 1fr) 34px; gap: 10px; align-items: center; font-size: 13.5px; }
.pipe-row .track { height: 22px; background: var(--sunken); border-radius: 6px; overflow: hidden; display: flex; }
.pipe-row .track i { display: block; height: 100%; }
.pipe-row b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- boards ---------- */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(290px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: #e2e6ed; border-radius: var(--r-lg); padding: 10px; min-width: 0; }
.col-head { display: flex; align-items: center; gap: 8px; padding: 4px 6px 10px; font-weight: 700; font-size: 15px; font-variation-settings: "wdth" 85; }
.col-head .sig { width: 10px; height: 10px; border-radius: 50%; }
.col-head .count { margin-left: auto; font-weight: 500; }
.col-body { display: grid; gap: 8px; }

.card {
  display: block; background: var(--surface); border-radius: var(--r-md); border: 1px solid var(--line);
  padding: 12px 14px 12px 16px; position: relative; overflow: hidden;
}
.card:hover { border-color: var(--line-strong); box-shadow: 0 4px 14px rgba(19, 32, 58, 0.08); }
.card .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 5px; }
.card .t { font-weight: 700; font-size: 15.5px; line-height: 1.25; font-variation-settings: "wdth" 85; }
.card .sub { color: var(--muted); font-size: 13px; margin-top: 2px; }
.card .s { margin-top: 8px; font-size: 13.5px; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card .foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.card .foot .ago { margin-left: auto; }
.mini-bar { flex: 1; min-width: 60px; }

/* grid of tiles (people, brands, industry) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.person { display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 12px; align-items: start; }
.avatar {
  width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  font-weight: 700; font-size: 15px; font-variation-settings: "wdth" 80; flex: none;
}
.avatar.lg { width: 64px; height: 64px; border-radius: 16px; font-size: 22px; }

.section-label { font-size: 15px; font-weight: 700; margin: 26px 0 10px; display: flex; align-items: baseline; gap: 8px; font-variation-settings: "wdth" 85; }
.section-label:first-child { margin-top: 0; }

/* log timeline */
.daygroup { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.daylabel { position: sticky; top: 16px; align-self: start; }
.daylabel b { display: block; font-size: 28px; font-weight: 800; line-height: 1; font-variation-settings: "wdth" 64; }
.daylabel span { color: var(--muted); font-size: 13px; }
.entries { display: grid; gap: 8px; }
.entry { display: grid; grid-template-columns: 5px minmax(0, 1fr); gap: 0 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 11px 14px 11px 0; overflow: hidden; }
.entry:hover { border-color: var(--line-strong); }
.entry .rail { border-radius: 0 3px 3px 0; }
.entry .meta { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.entry .meta b { font-weight: 700; font-size: 14px; font-variation-settings: "wdth" 85; }
.entry p { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }

.more-btn { display: block; width: 100%; padding: 12px; border-radius: var(--r-md); background: var(--surface); border: 1px dashed var(--line-strong); color: var(--c-doc); font-weight: 600; margin-top: 10px; }

.empty { padding: 36px 16px; text-align: center; color: var(--muted); background: var(--surface); border-radius: var(--r-lg); border: 1px dashed var(--line-strong); }

/* ---------- drawer ---------- */
.scrim { position: fixed; inset: 0; background: rgba(19, 32, 58, 0.32); z-index: 40; animation: fade 0.18s ease-out; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); z-index: 41;
  background: var(--canvas); box-shadow: -12px 0 40px rgba(19, 32, 58, 0.18); overflow-y: auto;
  animation: slide 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes fade { from { opacity: 0; } }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .scrim, .drawer { animation: none; } .refresh.busy svg { animation: none; } }
.dr-head { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); padding: 18px 24px 16px; }
.dr-head .rail { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; }
.dr-top { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dr-top .crumb { font-size: 13px; color: var(--muted); }
.dr-top .x { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; background: var(--sunken); }
.dr-top .x:hover { background: var(--line); }
.dr-top .x svg { width: 16px; height: 16px; stroke: var(--ink); }
.dr-title { display: flex; gap: 14px; align-items: center; }
.dr-head h2 { margin: 0; font-size: 32px; line-height: 1; font-weight: 800; font-variation-settings: "wdth" 70; letter-spacing: -0.005em; }
.dr-head .chips { margin-top: 10px; }
.dr-body { padding: 20px 24px 60px; display: grid; gap: 14px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.panel h3 { margin: 0 0 10px; font-size: 15.5px; font-weight: 700; display: flex; gap: 8px; align-items: baseline; font-variation-settings: "wdth" 85; }
.panel h3 .count { font-weight: 500; }
.panel.lead { border-left: 5px solid var(--ink); }

.points { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.points li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 8px; font-size: 14.5px; line-height: 1.5; }
.points li::before { content: ""; width: 6px; height: 6px; border-radius: 2px; background: var(--faint); margin-top: 8px; }
.points.todo li::before { width: 11px; height: 11px; border-radius: 3px; border: 1.5px solid var(--line-strong); background: none; margin-top: 4px; }

.kv { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; margin: 0; }
.kv dt { color: var(--muted); font-size: 13.5px; padding-top: 1px; }
.kv dd { margin: 0; font-size: 14.5px; white-space: pre-wrap; word-break: break-word; }
.kv a.link, .link { color: var(--c-doc); text-decoration: underline; text-underline-offset: 2px; }

.twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.rel-list { display: grid; gap: 6px; }
.rel { display: grid; grid-template-columns: 4px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 8px 10px 8px 0; border-radius: 9px; }
.rel:hover { background: var(--sunken); }
.rel .rail { align-self: stretch; border-radius: 2px; }
.rel b { font-weight: 650; font-size: 14px; }
.rel p { margin: 1px 0 0; font-size: 13px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.tl { display: grid; }
.tl-item { display: grid; grid-template-columns: 62px 14px minmax(0, 1fr); gap: 10px; }
.tl-item .when { font-size: 13px; color: var(--muted); text-align: right; padding-top: 1px; font-variant-numeric: tabular-nums; }
.tl-item .node { position: relative; }
.tl-item .node::before { content: ""; position: absolute; left: 6px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.tl-item .node::after { content: ""; position: absolute; left: 2px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--c); }
.tl-item:last-child .node::before { bottom: auto; height: 12px; }
.tl-item .what { padding-bottom: 14px; font-size: 14px; }
.tl-item .what small { display: block; color: var(--faint); font-size: 12.5px; margin-top: 2px; }

.contact-lines { display: grid; gap: 6px; margin-top: 6px; }
.contact-lines a { color: var(--c-doc); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-art { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.auth-art h1 { margin: 0; font-size: clamp(56px, 8vw, 112px); line-height: 0.88; font-weight: 800; font-variation-settings: "wdth" 62; letter-spacing: -0.01em; }
.auth-art p { color: #a9b5cb; max-width: 36ch; margin: 18px 0 0; }
.auth-strips { display: grid; gap: 10px; }
.auth-strips i { display: block; height: 14px; border-radius: 7px; }
.auth-form { display: grid; place-items: center; padding: 32px; }
.auth-form form { width: 100%; max-width: 360px; }
.auth-form h2 { margin: 0 0 6px; font-size: 30px; font-weight: 800; font-variation-settings: "wdth" 72; }
.auth-form .hint { color: var(--muted); margin: 0 0 22px; font-size: 14px; }
.auth-form label { display: block; font-size: 13.5px; color: var(--muted); margin: 14px 0 5px; }
.auth-form input { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; }
.auth-form input:focus { border-color: var(--c-doc); outline: none; box-shadow: 0 0 0 3px rgba(45, 108, 223, 0.15); }
.primary { display: block; width: 100%; margin-top: 20px; background: var(--ink); color: #fff; border-radius: 10px; padding: 12px; font-weight: 650; }
.primary:hover { background: #1e2f52; }
.primary:disabled { opacity: 0.6; }
.switch { margin-top: 16px; font-size: 14px; color: var(--muted); }
.switch button { color: var(--c-doc); text-decoration: underline; text-underline-offset: 2px; }
.auth-msg { margin-top: 12px; color: #b5262b; font-size: 14px; min-height: 1.2em; }

/* ---------- about ---------- */
.prose { max-width: 72ch; }
.prose h3 { font-size: 20px; font-weight: 800; font-variation-settings: "wdth" 80; margin: 26px 0 8px; }
.prose dl { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 10px 18px; margin: 0; }
.prose dt { font-weight: 650; }
.prose dd { margin: 0; color: var(--ink-2); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .span-8, .span-7, .span-6, .span-5, .span-4 { grid-column: span 12; }
  .scoreboard { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .score:nth-child(4) { border-left: 0; }
  .score:nth-child(n + 4) { border-top: 1px solid #22314f; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform 0.2s; }
  .side.open { transform: none; box-shadow: 0 0 0 100vmax rgba(19, 32, 58, 0.4); }
  .mobilebar { display: flex; align-items: center; gap: 12px; position: sticky; top: 0; z-index: 30; background: var(--ink); color: #fff; padding: 10px 16px; }
  .mobilebar button { width: 36px; height: 36px; border-radius: 9px; background: #1e2d4b; display: grid; place-items: center; }
  .mobilebar svg { width: 18px; height: 18px; stroke: #fff; }
  .mobilebar b { font-size: 18px; font-weight: 800; font-variation-settings: "wdth" 72; }
  .mobilebar .r { margin-left: auto; }
  .main { padding: 18px 16px 64px; }
  .head h1 { font-size: 34px; }
  .scoreboard { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .score:nth-child(n) { border-left: 0; border-top: 1px solid #22314f; }
  .score:nth-child(even) { border-left: 1px solid #22314f; }
  .score:nth-child(-n + 2) { border-top: 0; }
  .score b { font-size: 38px; }
  .board { grid-auto-columns: minmax(260px, 86vw); }
  .twocol { grid-template-columns: 1fr; }
  .kv, .prose dl { grid-template-columns: 1fr; gap: 2px; }
  .kv dd, .prose dd { margin-bottom: 10px; }
  .daygroup { grid-template-columns: 1fr; gap: 8px; }
  .daylabel { position: static; display: flex; gap: 10px; align-items: baseline; }
  .daylabel b { font-size: 22px; }
  input.field { width: 100%; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: 28px 24px; min-height: 220px; }
  .dr-head h2 { font-size: 26px; }
  .dr-head, .dr-body { padding-left: 18px; padding-right: 18px; }
}

/* links inside text */
a.elink { color: inherit; text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--c-doc) 45%, transparent); text-decoration-thickness: 1.5px; text-underline-offset: 2.5px; }
a.elink:hover { color: var(--c-doc); text-decoration-color: var(--c-doc); }
[data-href] { cursor: pointer; }
[data-href]:focus-visible { outline: 2px solid var(--c-doc); outline-offset: 2px; }
.tl-item:hover .what { color: var(--ink); }
