/* ===========================================================================
   Cadence — plain, hand-written CSS using BEM naming (see docs/adr/0005).
   No Tailwind, no build step. Palette mirrors the product mock.
   =========================================================================== */

:root {
  --ink: #0E1C2B;
  --canvas: #F5F7F8;
  --flow: #12A594;
  --flow-soft: #E4F4F1;
  --delay: #E08A1E;
  --delay-soft: #FBEFDA;
  --muted: #5B6B78;
  --line: #E1E7EB;
  --white: #FFFFFF;
  --danger: #DC2626;
  --danger-soft: #FDECEC;

  --spai: #6366F1;
  --product: #F59E0B;
  --foundation: #64748B;

  --prio-critical: #DC2626;
  --prio-high: #F97316;
  --prio-medium: #0EA5E9;
  --prio-low: #94A3B8;

  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(14, 28, 43, .06), 0 1px 3px rgba(14, 28, 43, .04);
  --font-sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }

/* Keep the hidden attribute authoritative: author display rules (.field,
   .form__fieldset, .resolve-panel, …) would otherwise override the UA's
   [hidden] → display:none and reveal server-hidden sections. */
[hidden] { display: none !important; }

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

body.app {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--canvas);
  line-height: 1.45;
  display: flex;
  min-height: 100vh;
}

a { color: inherit; text-decoration: none; }

code {
  font-family: var(--font-mono);
  font-size: .85em;
  background: rgba(14, 28, 43, .05);
  padding: .05em .35em;
  border-radius: 4px;
}

/* --- Sidebar --------------------------------------------------------------- */
.sidebar {
  position: sticky;
  top: 0;
  align-self: flex-start;
  height: 100vh;
  width: 216px;
  flex-shrink: 0;
  box-sizing: border-box;
  background: var(--ink);
  color: var(--white);
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 12px;
}
.sidebar__foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }

.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; padding: 6px 8px; }
.brand__mark {
  width: 24px; height: 24px;
  border-radius: 6px;
  background: var(--flow);
  color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700;
}
.brand__mark--lg { width: 40px; height: 40px; font-size: 20px; border-radius: 10px; }

/* Search trigger — looks like an input, opens the Cmd+K palette on click. */
.navsearch {
  display: flex; align-items: center; gap: 8px; width: 100%;
  box-sizing: border-box; margin: 4px 0 8px;
  padding: 8px 10px; border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .10);
  color: #cbd5e1; font: inherit; font-size: 13px; cursor: text; text-align: left;
  transition: background .15s, border-color .15s;
}
.navsearch:hover { background: rgba(255, 255, 255, .10); border-color: rgba(255, 255, 255, .18); }
.navsearch__icon { flex-shrink: 0; opacity: .8; }
.navsearch__label { flex: 1; }
.navsearch__kbd {
  font-family: var(--font-mono); font-size: 10px; color: #cbd5e1;
  background: rgba(255, 255, 255, .10); border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 4px; padding: 1px 5px;
}

.nav { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.nav__sep { height: 1px; background: rgba(255, 255, 255, .10); margin: 8px 10px; }
.nav__tab {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  color: #cbd5e1;
  transition: background .15s, color .15s;
}
.nav__tab .ico { opacity: .85; }

/* Inline SVG icons (see icons.go): sized in em so they track the surrounding
   text and align neatly inside nav tabs and buttons. */
.ico {
  width: 1em; height: 1em;
  display: inline-block; vertical-align: -0.125em;
  flex: none;
}
.nav__tab:hover { color: var(--white); background: rgba(255, 255, 255, .06); }
.nav__tab--active { background: var(--flow); color: var(--white); }
.nav__tab--active:hover { background: var(--flow); }

.user { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.user__avatar {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  background: var(--flow); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 600;
}
.user__name { color: #e2e8f0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- Layout ---------------------------------------------------------------- */
.main { flex: 1; min-width: 0; padding: 24px 28px; }

.page-head {
  display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between;
  gap: 12px; margin-bottom: 20px;
}
.page-head__title { font-size: 24px; font-weight: 700; letter-spacing: -.02em; margin: 0; }
.page-head__sub { font-size: 14px; color: var(--muted); margin: 4px 0 0; }

/* --- Cards ----------------------------------------------------------------- */
.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}
.card__title { font-size: 15px; font-weight: 600; margin: 0 0 12px; }
.card--empty { color: var(--muted); text-align: center; padding: 40px; }

/* Scroll inside the box (both axes) so the sticky header sticks to its top. */
.table-wrap { overflow: auto; max-height: calc(100vh - 150px); }
.perm thead th {
  position: sticky; top: 0; z-index: 1;
  background: var(--white); box-shadow: inset 0 -1px 0 var(--line);
}

/* --- Buttons --------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 14px; font-weight: 500;
  padding: 8px 14px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
}
.btn:focus-visible { outline: 2px solid var(--flow); outline-offset: 2px; }
.btn--sm { padding: 6px 10px; font-size: 13px; }
.btn--block { width: 100%; }
.btn--primary { background: var(--flow); color: var(--white); }
.btn--primary:hover { background: #0e8c7d; }
.btn--ghost { background: transparent; border-color: rgba(255,255,255,.25); color: #e2e8f0; }
.btn--ghost:hover { border-color: var(--flow); color: var(--flow); }
.btn--google { background: var(--white); color: var(--ink); border-color: var(--line); }
.btn--google:hover { border-color: #cbd5e1; }
.btn__g {
  font-weight: 700; color: #4285F4;
  width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center;
}

/* --- Forms ----------------------------------------------------------------- */
.field { display: block; margin-bottom: 14px; }
.field__label {
  display: block; font-family: var(--font-mono); font-size: 10px;
  text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 4px;
}
.field__input, .field__select, .field__textarea {
  width: 100%; font-family: inherit; font-size: 14px;
  padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--white); color: var(--ink);
}
.field__input:focus, .field__select:focus, .field__textarea:focus {
  outline: none; border-color: var(--flow); box-shadow: 0 0 0 3px var(--flow-soft);
}
.checkbox { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 14px; }

/* --- Banners / alerts / flash ---------------------------------------------- */
.banner { border-radius: var(--radius); padding: 12px 14px; font-size: 14px; margin-bottom: 16px; }
.banner--info { background: var(--flow-soft); border: 1px solid #BFE6DF; color: #0e8071; }
.alert { border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; margin-bottom: 14px; }
.alert--error { background: var(--danger-soft); border: 1px solid #F4C7C7; color: var(--danger); }
.flash { background: var(--flow-soft); border: 1px solid #BFE6DF; color: #0e8071; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px; }

/* --- Rich-text editor (Quill) ---------------------------------------------- */
/* Match the bordered look of other form fields; give the editing area room. */
.wi-editor { background: var(--white); border-radius: var(--radius-sm); }
.wi-editor .ql-container {
  border: 1px solid var(--line); border-top: 0;
  border-bottom-left-radius: var(--radius-sm); border-bottom-right-radius: var(--radius-sm);
  font-family: inherit; font-size: 14px; color: var(--ink);
}
.wi-editor .ql-editor { min-height: 200px; }
.wi-editor .ql-toolbar {
  border: 1px solid var(--line);
  border-top-left-radius: var(--radius-sm); border-top-right-radius: var(--radius-sm);
}
/* No-JS fallback textarea (shown only when Quill fails to load / hydrate). */
.wi-editor__fallback { margin-top: 8px; }

/* --- Login ----------------------------------------------------------------- */
.login { min-height: 80vh; display: flex; align-items: center; justify-content: center; padding: 24px; }
.login__card {
  width: 100%; max-width: 360px; background: var(--white);
  border: 1px solid var(--line); border-radius: 16px; padding: 32px; box-shadow: var(--shadow);
}
.login__brand { text-align: center; margin-bottom: 24px; }
.login__brand .brand__mark--lg { margin: 0 auto 12px; }
.login__title { font-size: 22px; font-weight: 700; margin: 0; }
.login__subtitle { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.login__note { font-size: 12px; color: var(--muted); text-align: center; margin: 16px 0 0; }

/* --- Permissions matrix ---------------------------------------------------- */
.perm { width: 100%; border-collapse: collapse; line-height: 1.45; }
.perm th, .perm td { padding: 11px 10px; }
.perm__user { text-align: left; }
.perm__caphead {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); text-align: center; white-space: nowrap;
}
.perm tbody tr { border-top: 1px solid var(--line); }
/* Zebra striping + hover to make wide rows easy to scan. Kept neutral and
   low-contrast so they read as depth, not colour. Hover follows the even-row
   rule (same specificity) so it always wins. */
.perm tbody tr:nth-child(even) { background: var(--canvas); }
.perm tbody tr:hover { background: rgba(14, 28, 43, .05); }
.perm__name { font-weight: 500; font-size: 14px; display: block; }
.perm__email { font-size: 12px; color: var(--muted); }
.perm__cell { text-align: center; }
.permcell {
  width: 28px; height: 28px; border-radius: var(--radius-sm);
  border: none; cursor: pointer; font-size: 13px;
  background: #f1f5f9; color: #94a3b8;
}
.permcell--on { background: var(--flow); color: var(--white); }
.permcell:focus-visible { outline: 2px solid var(--flow); outline-offset: 2px; }

/* --- Audit log ------------------------------------------------------------- */
.audit { list-style: none; margin: 0; padding: 0; }
.audit__row {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: baseline;
  padding: 8px 0; border-top: 1px solid var(--line); font-size: 13px;
}
.audit__row:first-child { border-top: none; }
.audit__action { font-family: var(--font-mono); font-size: 12px; color: var(--flow); }
.audit__target { color: var(--ink); }
.audit__meta { margin-left: auto; font-size: 12px; color: var(--muted); }
.audit__row--empty { color: var(--muted); }

/* --- Toolbar / segmented control ------------------------------------------- */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.monthnav { display: flex; align-items: center; gap: 6px; }
.monthnav__label { font-size: 13px; font-weight: 500; min-width: 110px; text-align: center; }
.btn--soft { background: var(--white); border-color: var(--line); color: var(--muted); }
.btn--soft:hover { border-color: var(--flow); color: var(--flow); }

.segmented { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.segmented__lbl { color: var(--muted); font-family: var(--font-mono); font-size: 11px; margin-right: 2px; }
.segmented__opt {
  padding: 5px 10px; border-radius: var(--radius-sm);
  background: var(--white); border: 1px solid var(--line); color: var(--muted);
}
.segmented__opt--on { background: var(--flow); border-color: var(--flow); color: var(--white); }

/* --- Sources landing ------------------------------------------------------- */
.sources { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.sourcecard {
  display: flex; align-items: center; gap: 14px; background: var(--white);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px;
  text-decoration: none; color: var(--ink); transition: box-shadow .15s, border-color .15s;
}
.sourcecard:hover { box-shadow: 0 4px 12px rgba(14,28,43,.1); border-color: var(--flow); }
.sourcecard__bar { width: 5px; align-self: stretch; border-radius: 3px; }
.sourcecard__body { flex: 1; }
.sourcecard__name { font-size: 16px; font-weight: 600; margin: 0 0 4px; }
.sourcecard__count { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.sourcecard__go { font-size: 18px; color: var(--muted); }

/* --- Roadmap grid ---------------------------------------------------------- */
.roadmap { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.roadmap__colhead { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.roadmap__collabel { font-size: 14px; font-weight: 600; margin: 0; }
.roadmap__count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.roadmap__cards { display: flex; flex-direction: column; gap: 10px; }
.roadmap__empty { color: var(--muted); font-size: 13px; padding: 8px 0; }
.roadmap__foot { margin-top: 20px; font-family: var(--font-mono); font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.dot { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* --- Roadmap swimlane board (status columns × source/CoD lanes) ------------- */
.rmboard {
  display: grid; gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: auto;
}
.rmboard__corner { background: var(--white); position: sticky; left: 0; top: 0; z-index: 3; }
.rmboard__colhead {
  background: var(--white); padding: 10px 12px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 6px;
  position: sticky; top: 0; z-index: 1;
}
.rmboard__lanehead {
  background: var(--white); padding: 12px; display: flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; position: sticky; left: 0; z-index: 2;
}
.rmboard__lanelabel { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rmboard__count { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.rmboard__cell {
  background: var(--canvas); padding: 8px; min-height: 56px;
  display: flex; flex-direction: column; gap: 8px;
}
.initcard--ghost { opacity: .4; }
.initcard--saving { opacity: .5; pointer-events: none; }
[data-can-edit="1"] .initcard { cursor: grab; }
[data-can-edit="1"] .initcard:active { cursor: grabbing; }

.initcard {
  display: block; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 12px; box-shadow: var(--shadow);
  transition: box-shadow .15s, transform .15s;
}
.initcard:hover { box-shadow: 0 4px 12px rgba(14,28,43,.1); }
.initcard__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.initcard__title { font-weight: 600; font-size: 14px; line-height: 1.3; }
.initcard__impact {
  font-size: 12px; color: var(--muted); margin: 6px 0 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.initcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.initcard__feat { margin-left: auto; font-family: var(--font-mono); font-size: 10px; color: var(--muted); }

/* --- Chips & status pills -------------------------------------------------- */
.chip {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 6px;
  border-radius: 5px; background: #eef1f4; color: var(--muted); white-space: nowrap;
}
.chip--size { font-weight: 500; }
.chip--team { }
.chip--cod-High { background: #FDECEC; color: #DC2626; }
.chip--cod-Medium { background: #FDEEE3; color: #EA580C; }
.chip--cod-Low { background: #EEF1F4; color: #64748B; }
.chip--sol { background: #EDE9FE; color: #6D28D9; }

.status {
  font-family: var(--font-mono); font-size: 10px; padding: 2px 7px; border-radius: 5px;
  background: #f1f5f9; color: #64748b;
}
.status--committed { background: var(--flow-soft); color: #0e8071; }
.status--progress { background: #E0F2FE; color: #0369A1; }
.status--shipped { background: #DCFCE7; color: #15803D; }
.status--off { background: #F1F5F9; color: #94A3B8; }
.status--proposed { background: #F1F5F9; color: #64748B; }

/* --- Initiative detail ----------------------------------------------------- */
.detail { max-width: 760px; }
.detail__back { display: inline-block; font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.detail__back:hover { color: var(--flow); }
.detail__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.detail__source { font-family: var(--font-mono); font-size: 11px; margin-bottom: 4px; }
.detail__title { font-size: 22px; font-weight: 700; margin: 0; letter-spacing: -.02em; }
.detail__chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0; }
.detail__section { margin-top: 22px; }
.detail__label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 0 0 8px; }
.detail__impact { font-size: 14px; color: #334155; white-space: pre-wrap; }
.muted { color: var(--muted); }

.statusbar { display: flex; align-items: center; gap: 8px; margin: 8px 0; }
.statusbar__lbl { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.field__select--inline { width: auto; padding: 6px 10px; }

.features { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feature { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; }
.feature__num { font-family: var(--font-mono); font-size: 11px; color: var(--flow); cursor: grab; padding-top: 2px; }
.feature__body { flex: 1; }
.feature__title { font-size: 14px; font-weight: 500; }
.feature__desc { font-size: 12px; color: var(--muted); margin-top: 2px; }
.feature--empty { justify-content: center; }
.feature__del { margin: 0; }
.iconbtn { background: none; border: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer; padding: 0 4px; }
.iconbtn:hover { color: var(--danger); }
.feature-add { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.feature-add .btn { align-self: flex-end; }
.chip--link { background: var(--flow-soft); color: #0e8071; }

.linked { display: flex; flex-direction: column; gap: 6px; }
.linked__row { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; }
.linked__col { margin-left: auto; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.prio-dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.prio-dot--critical { background: var(--prio-critical); }
.prio-dot--high { background: var(--prio-high); }
.prio-dot--medium { background: var(--prio-medium); }
.prio-dot--low { background: var(--prio-low); }

/* --- Forms (page) ---------------------------------------------------------- */
.formpage { max-width: 640px; }
.form__row { display: flex; gap: 14px; }
.form__row .field { flex: 1; }
.form__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 8px; }
.checkrow { display: flex; flex-wrap: wrap; gap: 10px; }
.chipcheck { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
/* Assignee chips: avatar (initials) + name, laid out inline. */
.chip--who { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-sans); font-size: 12px; padding: 3px 9px 3px 3px; }
.chip--who .who { width: 20px; height: 20px; font-size: 9px; }
.chipcheck--who input:checked + .chip { box-shadow: 0 0 0 1.5px var(--flow); }

/* --- Month toggle-chip picker ---------------------------------------------- */
.monthpick { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 6px; }
.monthpick__chip {
  font-family: var(--font-mono); font-size: 11px; padding: 5px 9px; border-radius: 6px;
  background: #eef1f4; color: var(--muted); border: 1px solid transparent; cursor: pointer;
  transition: box-shadow .15s, background .15s, color .15s;
}
.monthpick__chip:hover { background: #e4e9ef; }
.monthpick__chip.is-on { background: var(--flow-soft); color: #0e8071; box-shadow: 0 0 0 2px var(--flow); }

/* --- Filter bar ------------------------------------------------------------ */
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.filterbar__lbl { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-left: 8px; }
.filterbar__lbl:first-child { margin-left: 0; }
.filterbar__break { flex-basis: 100%; height: 0; }
.toggle { display: inline-flex; align-items: center; cursor: pointer; }
.toggle input { position: absolute; opacity: 0; width: 0; height: 0; }
.toggle .chip { border: 1px solid transparent; transition: box-shadow .15s; }
.toggle input:checked + .chip { box-shadow: 0 0 0 2px var(--flow); }
.viewpicker { display: inline-flex; align-items: center; gap: 6px; }
.btn--ghost-dark { border-color: var(--line); color: var(--muted); }
.btn--ghost-dark:hover { color: var(--flow); border-color: var(--flow); }

/* --- Board ----------------------------------------------------------------- */
.board { padding: 12px; }
.board__scroll { overflow-x: auto; }
.board__grid { display: grid; gap: 8px; align-items: start; min-width: 760px; }
.board__corner { }
.board__colhead { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px; }
.board__colname { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); }
.wip { font-family: var(--font-mono); font-size: 10px; padding: 1px 7px; border-radius: 999px; background: var(--flow-soft); color: var(--flow); }
.wip--ok { background: var(--flow-soft); color: #0e8071; }
.wip--warn { background: #FEF3E2; color: #B4791A; }
.wip--over { background: var(--delay-soft); color: var(--delay); }
.wip--wip { background: #E0F2FE; color: #0369A1; }
.board__hint { margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

.lane__label {
  font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--white); border-radius: var(--radius-sm); padding: 6px 8px; text-align: center;
  height: fit-content; justify-content: center;
}
.lane__label--critical { background: var(--prio-critical); }
.lane__label--high { background: var(--prio-high); }
.lane__label--medium { background: var(--prio-medium); }
.lane__label--low { background: var(--prio-low); }

.lane__cell { background: var(--canvas); border-radius: var(--radius-sm); padding: 6px; min-height: 56px; display: flex; flex-direction: column; gap: 6px; }

.wicard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow); cursor: grab; }
.wicard:active { cursor: grabbing; }
.wicard--ghost { opacity: .4; }
.wicard--hidden { display: none; }
.wicard__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 6px; }
.wicard__title { font-size: 12px; font-weight: 500; line-height: 1.3; }
.wicard__edit { color: var(--muted); font-size: 12px; opacity: 0; transition: opacity .15s; }
.wicard:hover .wicard__edit { opacity: 1; }
.wicard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-top: 6px; }
.wicard__init { font-family: var(--font-mono); font-size: 9px; color: var(--muted); display: inline-flex; align-items: center; gap: 4px; }
.wicard__age { margin-left: auto; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.wicard__link { font-size: 11px; text-decoration: none; }
/* Collapsible rich-text description on the compact card — kept small and muted
   so formatted content can't blow out the card layout. */
.wicard__desc { margin-top: 6px; }
.wicard__desc > summary {
  font-family: var(--font-mono); font-size: 9px; text-transform: uppercase;
  letter-spacing: .04em; color: var(--muted); cursor: pointer; list-style: none;
}
.wicard__desc > summary::-webkit-details-marker { display: none; }
.wicard__desc > summary::before { content: "▸ "; }
.wicard__desc[open] > summary::before { content: "▾ "; }
.wicard__desc-body {
  margin-top: 4px; font-size: 11px; line-height: 1.4; color: var(--muted);
  max-height: 160px; overflow-y: auto; overflow-wrap: anywhere;
}
.wicard__desc-body :where(p, ul, ol, blockquote, pre, h2, h3) { margin: 4px 0; }
.wicard__desc-body :where(h2, h3) { font-size: 12px; color: var(--ink); }
.wicard__desc-body ul, .wicard__desc-body ol { padding-left: 18px; }
.wicard__desc-body a { color: var(--flow); }
.wicard__desc-body img { max-width: 100%; height: auto; }
.who {
  width: 18px; height: 18px; border-radius: 50%; background: var(--ink); color: var(--white);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 9px; font-weight: 600; text-transform: uppercase;
}
.dot--sm { width: 6px; height: 6px; border-radius: 50%; }
.chip--ticket { background: var(--flow-soft); color: #0e8071; }

/* --- Metrics --------------------------------------------------------------- */
.statcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.statcard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.statcard__lbl { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.statcard__val { font-size: 28px; font-weight: 700; margin-top: 4px; }
.statcard__unit { font-size: 15px; font-weight: 500; color: var(--muted); }
.statcard__val--warn { color: var(--delay); }
/* Charts: at most three per row, and roomy. */
.chartgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1040px) { .chartgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px)  { .chartgrid { grid-template-columns: 1fr; } .statcards { grid-template-columns: repeat(2, 1fr); } }

/* --- Help desk ------------------------------------------------------------- */
.helpdesk { display: grid; grid-template-columns: minmax(280px, 340px) 1fr; gap: 16px; align-items: start; }
.helpdesk__form { align-self: start; }
.helpdesk__queuehead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.hd-queue { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.hd-col { background: transparent; }
.hd-col__head { font-family: var(--font-mono); font-size: 10px; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); margin-bottom: 6px; padding: 0 2px; }
.hd-col__body { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; min-height: 80px; display: flex; flex-direction: column; gap: 6px; }
.hd-col__empty { padding: 6px; font-size: 12px; }

.tcard { display: block; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; box-shadow: var(--shadow); }
.tcard:hover { border-color: #cbd5e1; }
.tcard__top { display: flex; align-items: center; gap: 6px; }
.tcard__ref { font-family: var(--font-mono); font-size: 10px; color: var(--muted); }
.tcard__subject { font-size: 12px; font-weight: 500; margin: 4px 0; line-height: 1.3; }
.tcard__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 9px; color: var(--muted); }
.chip--restricted { background: #FEF3E2; }
.chip--res { background: var(--flow-soft); color: #0e8071; }
.chip--notify { background: #E0F2FE; color: #0369A1; }

.hd-stats { margin-top: 16px; }
.hd-stats__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-bottom: 12px; }
.hd-stats__mix { display: flex; flex-direction: column; gap: 10px; }

/* --- Ticket detail --------------------------------------------------------- */
.ticket-grid { display: grid; grid-template-columns: 1fr minmax(260px, 320px); gap: 16px; align-items: start; }
.ticket-side { display: flex; flex-direction: column; gap: 12px; }
.stack { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.stack:last-child { margin-bottom: 0; }
.inline-form { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.inline-form .field__select { flex: 1; min-width: 90px; }
.resolve-panel { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--canvas); border-radius: var(--radius-sm); margin: 8px 0; }

.thread { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.thread__item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px; background: var(--white); }
.thread__head { display: flex; align-items: center; gap: 8px; font-size: 12px; margin-bottom: 4px; }
.thread__author { font-weight: 600; }
.thread__time { color: var(--muted); font-family: var(--font-mono); font-size: 11px; }
.thread__body { font-size: 14px; white-space: pre-wrap; }
.thread__add { display: flex; flex-direction: column; gap: 6px; }

.stakeholders { list-style: none; margin: 0 0 8px; padding: 0; }
.stakeholders__row { display: flex; align-items: center; justify-content: space-between; font-size: 13px; padding: 3px 0; }
.stakeholders__row form { margin: 0; }

@media (max-width: 860px) {
  .helpdesk, .ticket-grid { grid-template-columns: 1fr; }
}

/* --- Toasts ---------------------------------------------------------------- */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.toast {
  display: flex; align-items: center; gap: 14px;
  background: var(--ink); color: var(--white);
  padding: 10px 14px; border-radius: var(--radius-sm); box-shadow: 0 6px 20px rgba(14,28,43,.25);
  font-size: 14px;
}
.toast__action {
  background: transparent; border: 1px solid rgba(255,255,255,.4); color: var(--white);
  border-radius: 6px; padding: 4px 10px; font-size: 13px; font-weight: 600; cursor: pointer;
}
.toast__action:hover { border-color: var(--flow); color: var(--flow); }

/* --- Roadmap table view ---------------------------------------------------- */
/* Scroll both axes inside the box so the sticky header sticks to its top while
   the wide table still scrolls horizontally. */
.rtable-wrap { padding: 0; overflow: auto; max-height: calc(100vh - 150px); }
/* Size to content and scroll horizontally rather than squeezing cells so their
   selects/inputs clip their values. min-width keeps it filling narrow viewports. */
.rtable { width: max-content; min-width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable thead th {
  text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .02em;
  text-transform: uppercase; color: var(--muted); padding: 10px 12px;
  border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--canvas);
  /* box-shadow keeps the divider visible while stuck (collapsed borders can
     scroll away on sticky cells). */
  position: sticky; top: 0; z-index: 1; box-shadow: inset 0 -1px 0 var(--line);
}
.rtable tbody tr { border-bottom: 1px solid var(--line); }
.rtable tbody tr:last-child { border-bottom: 0; }
/* Zebra striping + hover. The tint sits on the tr, so cell state classes
   (--saving/--saved/--error) which set the td background paint on top and
   still win. Hover follows the even-row rule so it wins over the stripe. */
.rtable tbody tr:nth-child(even) { background: var(--canvas); }
.rtable tbody tr:hover { background: rgba(14, 28, 43, .05); }
.rtable__cell { padding: 7px 8px; vertical-align: middle; line-height: 1.45; }
.rtable__cell--title { min-width: 240px; }
.rtable__cell--impact { min-width: 320px; }
.rtable__cell--sol { min-width: 168px; }
/* Give the select cells room so their selected value is never clipped. */
.rtable__select[data-field="status"],
.rtable__select[data-field="backlog_id"] { min-width: 150px; }
.rtable__select[data-field="owner_id"] { min-width: 168px; }
.rtable__input[data-field="title"] { min-width: 232px; }
.rtable__input[data-field="impact_md"] { min-width: 312px; }
/* Compact multi-select toggles: hidden checkbox, chip dims when unchecked. */
.rtable__sol { display: flex; flex-wrap: wrap; gap: 4px; }
.chipcheck--sm { gap: 0; }
.chipcheck--sm input { position: absolute; opacity: 0; width: 0; height: 0; }
.chipcheck--sm .chip { border: 1px solid transparent; opacity: .4; transition: opacity .15s, box-shadow .15s; }
.chipcheck--sm input:checked + .chip { opacity: 1; box-shadow: 0 0 0 1.5px var(--flow); }
.rtable__fib {
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
  text-align: center; font-variant-numeric: tabular-nums;
}
.rtable__input, .rtable__select {
  width: 100%; border: 1px solid transparent; background: transparent;
  border-radius: var(--radius-sm); padding: 6px 8px; font: inherit; color: var(--ink);
}
.rtable__select--sm { min-width: 72px; }
.rtable__input:hover, .rtable__select:hover { border-color: var(--line); }
.rtable__input:focus, .rtable__select:focus {
  outline: none; border-color: var(--flow); background: var(--white);
  box-shadow: 0 0 0 3px var(--flow-soft);
}
.rtable__input:disabled, .rtable__select:disabled {
  color: var(--ink); opacity: 1; -webkit-appearance: none; appearance: none; cursor: default;
}
.rtable__input--month { min-width: 130px; }
.rtable__cell--saving { background: var(--flow-soft); }
.rtable__cell--saved { background: var(--flow-soft); transition: background .8s ease; }
.rtable__cell--error { background: var(--danger-soft); }
.rtable__cell--go { text-align: center; }
.rtable__go { text-decoration: none; color: var(--muted); font-size: 15px; }
.rtable__go:hover { color: var(--flow); }
.rtable__empty { padding: 24px 12px; text-align: center; color: var(--muted); }
/* Fold caret + inline features sub-row. The title cell wraps the caret and the
   title input; the caret rotates when its row is expanded. */
.rtable__titlewrap { display: flex; align-items: center; gap: 4px; }
.rtable__fold {
  flex: none; border: 0; background: transparent; cursor: pointer;
  color: var(--muted); font-size: 12px; line-height: 1; padding: 4px;
  border-radius: var(--radius-sm); transition: transform .12s ease, color .12s;
}
.rtable__fold:hover { color: var(--flow); }
.rtable__fold:focus-visible { outline: 2px solid var(--flow); outline-offset: 1px; }
.rtable__fold--open { transform: rotate(90deg); color: var(--flow); }
/* Sub-row sits under its initiative; a left accent + tint set it apart from the
   zebra-striped data rows, and it wins over the stripe via its own background. */
.rtable__subrow > td {
  background: var(--canvas); box-shadow: inset 3px 0 0 var(--flow);
  padding: 6px 12px 10px 40px;
}
.rtable__features { display: flex; flex-direction: column; gap: 4px; }
.rtable__feature { font-size: 13px; line-height: 1.4; }
.rtable__feature-title { color: var(--ink); font-weight: 500; }
.rtable__feature-desc { color: var(--muted); margin-left: 8px; }
.rtable__features-empty { font-size: 13px; font-style: italic; }

/* --- Cmd+K search palette -------------------------------------------------- */
.cmdk {
  position: fixed; inset: 0; z-index: 100; display: flex; justify-content: center;
  align-items: flex-start; padding-top: 12vh; background: rgba(14, 28, 43, .45);
}
.cmdk[hidden] { display: none; }
.cmdk__panel {
  width: min(640px, 92vw); max-height: 70vh; display: flex; flex-direction: column;
  background: var(--white); border-radius: var(--radius);
  box-shadow: 0 12px 40px rgba(14, 28, 43, .28); overflow: hidden;
}
.cmdk__input {
  border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px;
  font-size: 16px; font-family: inherit; color: var(--ink); outline: none;
}
.cmdk__results { overflow-y: auto; padding: 6px; }
.cmdk__group {
  font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); padding: 10px 10px 4px;
}
.cmdk__item {
  display: flex; align-items: center; gap: 8px; padding: 9px 10px;
  border-radius: var(--radius-sm); text-decoration: none; color: var(--ink); cursor: pointer;
}
.cmdk__item--sel { background: var(--flow-soft); }
.cmdk__title { font-size: 14px; font-weight: 500; }
.cmdk__sub { margin-left: auto; font-size: 12px; color: var(--muted); font-family: var(--font-mono); }
.cmdk__empty { padding: 24px; text-align: center; color: var(--muted); font-size: 14px; }
.cmdk__hint {
  border-top: 1px solid var(--line); padding: 8px 14px; font-size: 11px; color: var(--muted);
}
.cmdk__hint kbd {
  font-family: var(--font-mono); font-size: 10px; background: var(--canvas);
  border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; margin: 0 1px;
}

/* Highlight a work item when reached via a Cmd+K search deep link. */
.wicard:target { border-color: var(--flow); box-shadow: 0 0 0 3px var(--flow-soft); }
.wicard--clickable { cursor: pointer; }

/* --- Work-item side panel (drawer) ----------------------------------------- */
.wi-panel {
  position: fixed; top: 0; right: 0;
  width: min(440px, 92vw); height: 100vh;
  background: var(--white); border-left: 1px solid var(--line);
  box-shadow: -8px 0 32px rgba(14, 28, 43, .16);
  transform: translateX(100%); transition: transform .2s ease, width .2s ease;
  z-index: 90; display: flex; flex-direction: column; overflow: hidden;
}
.wi-panel--open { transform: none; }
/* Full page: fill the main area but stop at the 216px left nav sidebar. */
.wi-panel--full { width: calc(100vw - 216px); }
.wi-panel-backdrop {
  position: fixed; inset: 0; z-index: 80; background: rgba(14, 28, 43, .35);
  opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility .2s ease;
}
.wi-panel-backdrop--on { opacity: 1; visibility: visible; }

.wipanel { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.wipanel__head {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 16px 18px; border-bottom: 1px solid var(--line);
}
.wipanel__headmain { flex: 1; min-width: 0; }
.wipanel__eyebrow {
  font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin-bottom: 6px; display: flex; align-items: center; gap: 6px;
}
.wipanel__title { font-size: 18px; font-weight: 600; margin: 0; word-break: break-word; }
.wipanel__titleinput {
  width: 100%; font-size: 18px; font-weight: 600; color: var(--ink);
  border: 1px solid transparent; border-radius: var(--radius-sm); padding: 4px 6px; margin: -4px -6px;
  background: transparent; font-family: inherit;
}
.wipanel__titleinput:hover { border-color: var(--line); }
.wipanel__titleinput:focus { outline: none; border-color: var(--flow); box-shadow: 0 0 0 3px var(--flow-soft); background: var(--white); }
.wipanel__tools { display: flex; gap: 4px; flex-shrink: 0; }
.wipanel__expand, .wipanel__close { font-size: 16px; line-height: 1; }

.wipanel__body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; }
.wipanel__props { display: flex; flex-direction: column; gap: 12px; margin-bottom: 20px; }
.wipanel__prop { display: flex; flex-direction: column; gap: 4px; }
.wipanel__prop .field__label { margin-bottom: 0; }
.wipanel__hint { font-size: 11px; color: var(--muted); }
.wipanel__field { border-radius: var(--radius-sm); transition: background .3s ease; }
.wipanel__field--saving { background: var(--flow-soft); }
.wipanel__field--saved { background: var(--flow-soft); }
.wipanel__field--error { background: var(--danger-soft); }
.wipanel__multi { display: flex; flex-wrap: wrap; gap: 6px; padding: 4px 0; }
.wipanel__link { color: var(--flow); font-size: 13px; word-break: break-all; }

.wipanel__section { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 4px; }
.wipanel__section-head { display: flex; align-items: baseline; justify-content: space-between; }
.wipanel__editlink { font-size: 12px; color: var(--flow); }
.wipanel__desc { font-size: 14px; margin-top: 6px; }
.wipanel__desc :first-child { margin-top: 0; }
.wipanel__desc :last-child { margin-bottom: 0; }

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

@media (max-width: 720px) {
  /* Collapse the sidebar to a horizontal top strip on narrow screens. */
  body.app { flex-direction: column; }
  .sidebar {
    width: auto; height: auto; position: static;
    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 12px;
  }
  .sidebar__foot { margin-top: 0; margin-left: auto; flex-direction: row; align-items: center; gap: 10px; padding-top: 0; }
  .navsearch { width: auto; flex: 1; min-width: 160px; margin: 0; }
  .nav { flex-direction: row; flex-wrap: wrap; gap: 2px; }
  .nav__tab { padding: 6px 10px; font-size: 13px; }
  .user__name { display: none; }
}

/* --- Designs (HTML mock hosting) ------------------------------------------ */
.banner--warn {
  background: var(--delay-soft);
  border: 1px solid #EFCF9C;
  color: #9A5B12;
}

.designs-upload { margin-bottom: 20px; }
.form__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.designs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 14px;
}

.designcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px;
}
.designcard__body { display: flex; flex-direction: column; gap: 8px; }
.designcard__title {
  font-weight: 600;
  font-size: 16px;
  color: var(--ink);
  text-decoration: none;
}
.designcard__title:hover { color: var(--flow); }
.designcard__desc { color: var(--muted); font-size: 13px; margin: 0; }
.designcard__link {
  width: 100%;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
}
.designcard__meta { color: var(--muted); font-size: 12px; }
.designcard__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.designcard__actions form { margin: 0; }

/* --- Two-track roadmap + Tech Radar (ADR 0012) --------------------------- */

/* Product pipeline / priority chips */
.chip--phase { background: #EDE9FE; color: #6D28D9; }
.chip--track { background: #EEF1F4; color: #475569; }
.chip--funnel { background: #E4F4F1; color: #0F766E; }
.chip--score { background: #F1F5F9; color: #475569; font-variant-numeric: tabular-nums; }
.chip--prio-Low { background: #EEF1F4; color: #64748B; }
.chip--prio-Medium { background: #FEF9C3; color: #A16207; }
.chip--prio-High { background: #FDEEE3; color: #EA580C; }
.chip--prio-Critical { background: #FDECEC; color: #DC2626; }

/* Product columns in the roadmap table */
.rtable__input--part { min-width: 120px; }
.rtable__input--ver { min-width: 64px; }
.rtable__cell--score .rtable__select { min-width: 48px; }
.rtable__cell--crit { text-align: center; }
.rtable__cell--promote form { margin: 0; }

/* Initiative detail: product pipeline card + funnel strip */
.prodcard__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px 18px; }
.prodcard__item { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.prodcard__item--scores { grid-column: 1 / -1; }
.prodcard__k { font-size: 12px; color: var(--muted); }
.prodcard__scores { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.funnelstrip__row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.funnelstrip__row form { margin: 0; }

/* Initiative form: product fieldset + score row */
.form__fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px 14px; margin: 0; display: grid; gap: 14px; }
.form__fieldset legend { padding: 0 6px; }
.form__row--scores { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; }
.field--score { min-width: 64px; flex: 0 0 auto; }
.field--crit { align-self: center; }

/* Tech radar */
.radar { display: grid; grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr); gap: 20px; padding: 16px; }
.radar__svg { width: 100%; height: auto; }
.radar__ring { fill: none; stroke: var(--line); stroke-width: 1.5; }
.radar__ring--0 { fill: #E4F4F1; fill-opacity: .55; }
.radar__ring--1 { fill: #F1F5F9; fill-opacity: .5; }
.radar__ring--2 { fill: #F8FAFC; fill-opacity: .5; }
.radar__divider { stroke: var(--line); stroke-width: 1.5; stroke-dasharray: 4 4; }
.radar__ring-label { font-size: 12px; fill: var(--muted); }
.radar__half-label { font-size: 13px; font-weight: 600; fill: var(--muted); }
.radar__blip { stroke: #fff; stroke-width: 1.5; }
.radar__blip-link:hover .radar__blip { stroke: var(--ink); }
.radar__blip-num { font-size: 10px; font-weight: 700; fill: #fff; pointer-events: none; }
.radar__legend { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.radar__legend-title { font-size: 13px; margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.radar__legend-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.radar__legend-item { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.radar__legend-item a { color: var(--ink); text-decoration: none; }
.radar__legend-item a:hover { text-decoration: underline; }
.radar__legend-num { flex: 0 0 auto; width: 18px; height: 18px; border-radius: 50%; color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.radar__note { font-size: 13px; margin-top: 10px; }
@media (max-width: 900px) { .radar { grid-template-columns: 1fr; } }
