/* AI Onboarding Guide - shared stylesheet */

:root {
  --bg: #ffffff;
  --bg-sub: #f6f7f9;
  --bg-inset: #eef1f4;
  --fg: #1b1e22;
  --fg-muted: #596270;
  --fg-faint: #7d8794;
  --line: #e1e5ea;
  --line-strong: #c6ccd4;
  --accent: #0b57c7;
  --accent-bg: #e9f0fc;
  --level-1: #15764f;
  --level-2: #0b57c7;
  --level-3: #6a3ba3;
  --warn-bg: #fdf4e3;
  --warn-line: #e4c88a;
  --radius: 4px;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --display: "Public Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --sidebar-w: 264px;
  --content-max: 820px;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16181c;
    --bg-sub: #1d2025;
    --bg-inset: #23272d;
    --fg: #e4e7ea;
    --fg-muted: #a2abb6;
    --fg-faint: #828c98;
    --line: #2b3037;
    --line-strong: #3d444d;
    --accent: #6ea8f8;
    --accent-bg: #1a2535;
    --level-1: #4dbd8e;
    --level-2: #6ea8f8;
    --level-3: #b18ad8;
    --warn-bg: #2a2416;
    --warn-line: #5c4d2a;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #16181c;
  --bg-sub: #1d2025;
  --bg-inset: #23272d;
  --fg: #e4e7ea;
  --fg-muted: #a2abb6;
  --fg-faint: #828c98;
  --line: #2b3037;
  --line-strong: #3d444d;
  --accent: #6ea8f8;
  --accent-bg: #1a2535;
  --level-1: #4dbd8e;
  --level-2: #6ea8f8;
  --level-3: #b18ad8;
  --warn-bg: #2a2416;
  --warn-line: #5c4d2a;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img, svg, iframe { max-width: 100%; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

code, kbd {
  font-family: var(--mono);
  font-size: 0.875em;
  background: var(--bg-inset);
  padding: 0.12em 0.36em;
  border-radius: 3px;
}

pre {
  background: var(--bg-sub);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.6;
}
pre code { background: none; padding: 0; font-size: inherit; }

/* ---------- Top bar ---------- */

.topbar {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 56px;
  padding-left: max(20px, env(safe-area-inset-left, 0px));
  padding-right: max(20px, env(safe-area-inset-right, 0px));
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

body::before {
  content: "";
  position: fixed;
  inset: 0 0 auto;
  height: env(safe-area-inset-top, 0px);
  background: var(--bg);
  z-index: 21;
}

.topbar .wordmark {
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  color: var(--fg);
  white-space: nowrap;
}
.topbar .wordmark span { color: var(--fg-faint); font-weight: 400; }

.topbar nav {
  display: flex;
  gap: 2px;
  margin-left: auto;
  align-items: center;
}
.topbar nav a {
  color: var(--fg-muted);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: var(--radius);
  white-space: nowrap;
}
.topbar nav a:hover { background: var(--bg-sub); text-decoration: none; color: var(--fg); }
.topbar nav a[aria-current="page"] { color: var(--fg); font-weight: 550; background: var(--bg-sub); }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg-muted);
  border-radius: var(--radius);
  cursor: pointer;
  flex: none;
}
.icon-btn:hover { background: var(--bg-sub); color: var(--fg); }

.menu-btn { display: none; }

/* ---------- Layout ---------- */

.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  align-items: start;
  max-width: 1320px;
  margin: 0 auto;
}

.sidebar {
  position: sticky;
  top: calc(56px + env(safe-area-inset-top, 0px));
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  padding: 26px 8px 48px max(20px, env(safe-area-inset-left, 0px));
  border-right: 1px solid var(--line);
  font-size: 14px;
}

.sidebar h2 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-faint);
  font-weight: 600;
  margin: 22px 0 7px 10px;
}
.sidebar h2:first-child { margin-top: 0; }
.sidebar .nav-mirror { display: none; }
.sidebar .nav-mirror h2 { margin-top: 0; }

.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { margin: 0; }
.sidebar a {
  display: block;
  padding: 5px 10px;
  color: var(--fg-muted);
  border-radius: var(--radius);
  line-height: 1.45;
}
.sidebar a:hover { background: var(--bg-sub); color: var(--fg); text-decoration: none; }
.sidebar a.active {
  background: var(--accent-bg);
  color: var(--accent);
  font-weight: 550;
}

.content {
  min-width: 0;
  padding: 40px max(24px, env(safe-area-inset-right, 0px)) 96px max(28px, env(safe-area-inset-left, 0px));
}
.content > * { max-width: var(--content-max); }

/* ---------- Typography ---------- */

h1, h2, h3, h4, .eyebrow, .badge, .wordmark, .topbar nav, .xp-head h4, th,
.track-card h3, .pager .n, .vid-info .t, .sidebar h2 {
  font-family: var(--display);
}

h1 {
  font-size: 32px;
  line-height: 1.25;
  font-weight: 680;
  letter-spacing: -0.02em;
  margin: 0 0 10px;
  text-wrap: balance;
}
h2 {
  font-size: 21px;
  font-weight: 640;
  letter-spacing: -0.01em;
  margin: 52px 0 12px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--line);
  text-wrap: balance;
}
h3 { font-size: 17px; font-weight: 620; margin: 32px 0 8px; text-wrap: balance; }
h4 { font-size: 15px; font-weight: 620; margin: 22px 0 6px; }
p { margin: 0 0 14px; }
.lede { font-size: 17.5px; color: var(--fg-muted); line-height: 1.6; margin-bottom: 22px; }

ul.body, ol.body { padding-left: 22px; margin: 0 0 16px; }
ul.body li, ol.body li { margin-bottom: 6px; }

.eyebrow {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: var(--fg-faint);
  margin-bottom: 8px;
}

.meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  font-size: 13.5px;
  color: var(--fg-muted);
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  margin-bottom: 30px;
}
.meta-row b { color: var(--fg); font-weight: 600; }

/* ---------- Level badges ---------- */

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 2px 8px;
  border-radius: 20px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.badge.l1 { color: var(--level-1); }
.badge.l2 { color: var(--level-2); }
.badge.l3 { color: var(--level-3); }

/* ---------- Track cards on home ---------- */

.track-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 12px;
  max-width: var(--content-max);
}
.track-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-top: 3px solid var(--tc, var(--accent));
  border-radius: var(--radius);
  padding: 18px 18px 20px;
  background: var(--bg);
}
.track-card.l1 { --tc: var(--level-1); }
.track-card.l2 { --tc: var(--level-2); }
.track-card.l3 { --tc: var(--level-3); }
.track-card h3 { margin: 0 0 2px; font-size: 17px; }
.track-card .who { font-size: 13px; color: var(--fg-faint); margin-bottom: 10px; }
.track-card p { font-size: 14.5px; color: var(--fg-muted); margin-bottom: 14px; }
.track-card .go { margin-top: auto; font-size: 14px; font-weight: 550; }

/* ---------- Topic block ---------- */

/* Each topic is a <details>, so a track is a scannable list of ten rows
   instead of a single very long page. */
.topic {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 9px 0;
  background: var(--bg);
}
.topic[open] { border-color: var(--line-strong); }

summary.topic-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 13px 15px;
  cursor: pointer;
  list-style: none;
  border-radius: 5px;
}
summary.topic-head::-webkit-details-marker { display: none; }
summary.topic-head:hover { background: var(--bg-sub); }
.topic[open] summary.topic-head {
  background: var(--bg-sub);
  border-bottom: 1px solid var(--line);
  border-radius: 5px 5px 0 0;
}

/* the number chip takes its track's colour */
.content[data-track="1"] { --tc: var(--level-1); }
.content[data-track="2"] { --tc: var(--level-2); }
.content[data-track="3"] { --tc: var(--level-3); }

.topic-no {
  flex: none;
  width: 24px; height: 24px;
  margin-top: 1px;
  border-radius: 50%;
  background: var(--tc, var(--accent));
  color: #fff;
  font-family: var(--display);
  font-size: 11.5px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  display: flex;
  align-items: center;
  justify-content: center;
}
.topic-no.done { background: var(--line-strong); }

.topic-text { min-width: 0; flex: 1; }
.topic-text h3 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 620;
  letter-spacing: -0.01em;
  line-height: 1.35;
}
.topic-teaser {
  display: block;
  font-size: 13.5px;
  color: var(--fg-muted);
  margin-top: 2px;
  line-height: 1.45;
}
.topic[open] .topic-teaser { display: none; }

.topic-chev {
  flex: none;
  margin-top: 4px;
  color: var(--fg-faint);
  transition: transform 0.18s ease;
}
.topic[open] .topic-chev { transform: rotate(90deg); }

.topic-body { padding: 16px 15px 20px; }
.topic-body > *:first-child { margin-top: 0; }
.topic-body > *:last-child { margin-bottom: 0; }

.topic .plain { margin: 0 0 14px; font-size: 16px; }
.topic .plain b { font-weight: 620; }

/* expand / collapse all */
.topic-tools {
  display: flex;
  gap: 8px;
  align-items: center;
  margin: 22px 0 4px;
  font-size: 13px;
}
.topic-tools button {
  font: inherit;
  font-family: var(--display);
  font-weight: 550;
  color: var(--fg-muted);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 4px 10px;
  cursor: pointer;
}
.topic-tools button:hover { background: var(--bg-sub); color: var(--fg); border-color: var(--line-strong); }
.topic-tools .count { color: var(--fg-faint); margin-left: auto; font-variant-numeric: tabular-nums; }

.callout {
  background: var(--bg-sub);
  border-left: 3px solid var(--line-strong);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 12px 16px;
  margin: 16px 0;
  font-size: 14.5px;
}
.callout .label {
  display: block;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 650;
  color: var(--fg-faint);
  margin-bottom: 3px;
}
.callout.note { border-left-color: var(--accent); }
.callout.warn { background: var(--warn-bg); border-left-color: var(--warn-line); }
.callout p:last-child { margin-bottom: 0; }

/* ---------- Resource list ---------- */

.res { list-style: none; margin: 16px 0 0; padding: 0; }
.res li {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  align-items: baseline;
}
.res li:last-child { border-bottom: none; }
.res .kind {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 650;
  color: var(--fg-faint);
  padding-top: 3px;
}
.res .src { color: var(--fg-faint); font-size: 13px; }

/* ---------- Video: compact card that expands to a player ---------- */

.vid { margin: 12px 0; }

.vid-card {
  display: flex;
  align-items: center;
  gap: 13px;
  width: 100%;
  padding: 8px;
  text-align: left;
  font: inherit;
  color: inherit;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.12s ease, border-color 0.12s ease;
}
.vid-card:hover { background: var(--bg-sub); border-color: var(--line-strong); }

.vid-thumb {
  position: relative;
  flex: none;
  width: 118px;
  aspect-ratio: 16 / 9;
  border-radius: 3px;
  overflow: hidden;
  background: #0d0f12;
}
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-thumb .pill {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vid-thumb .pill span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 24px;
  border-radius: 5px;
  background: rgba(14, 16, 20, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.26);
}
.vid-card:hover .vid-thumb .pill span { background: #c81e24; border-color: #c81e24; }
.vid-thumb .pill svg { width: 11px; height: 11px; fill: #fff; margin-left: 1px; }

.vid-info { min-width: 0; flex: 1; }
.vid-info .t {
  display: block;
  font-weight: 560;
  font-size: 14.5px;
  line-height: 1.35;
  color: var(--fg);
}
.vid-info .s {
  display: block;
  font-size: 12.5px;
  color: var(--fg-faint);
  margin-top: 2px;
}
.vid-info .s a { color: var(--fg-faint); text-decoration: underline; }

.vid-open {
  flex: none;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--fg-faint);
  padding-right: 6px;
  white-space: nowrap;
}
.vid-card:hover .vid-open { color: var(--accent); }

.vid-player {
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line-strong);
  border-radius: 5px;
  overflow: hidden;
  background: #0d0f12;
}
.vid-player iframe { width: 100%; height: 100%; border: 0; display: block; }
.vid-caption {
  display: flex;
  flex-wrap: wrap;
  gap: 3px 9px;
  align-items: baseline;
  padding: 7px 2px 0;
  font-size: 12.5px;
  color: var(--fg-faint);
}
.vid-caption .t { font-weight: 560; color: var(--fg); font-family: var(--display); }

/* ---------- Explainer widget ---------- */

.xp {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  margin: 20px 0;
  background: var(--bg);
}
.xp-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  padding: 12px 15px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-sub);
}
.xp-head h4 { margin: 0; font-size: 14.5px; }
.xp-head .tag {
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-weight: 650;
  color: var(--fg-faint);
  margin-left: auto;
}
.xp-stage { background: var(--bg); padding: 6px 0 0; }
.xp-stage svg { display: block; width: 100%; height: auto; }
.xp-cap {
  min-height: 62px;
  padding: 10px 15px 12px;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--fg);
  border-top: 1px solid var(--line);
}
.xp-cap b { font-weight: 620; }
.xp-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  border-top: 1px solid var(--line);
  background: var(--bg-sub);
}
.xp-bar button {
  font: inherit;
  font-size: 13px;
  font-weight: 550;
  padding: 4px 11px;
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--fg);
  border-radius: var(--radius);
  cursor: pointer;
}
.xp-bar button:hover:not(:disabled) { background: var(--bg-inset); }
.xp-bar button:disabled { opacity: 0.4; cursor: default; }
.xp-bar .primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.xp-bar .primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
.xp-dots { display: flex; gap: 5px; margin-left: auto; align-items: center; }
.xp-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--line-strong); display: block;
  transition: background 0.2s ease;
}
.xp-dots i.on { background: var(--accent); }
.xp-step { font-size: 12px; color: var(--fg-faint); font-variant-numeric: tabular-nums; }

.xp svg text { font-family: var(--sans); fill: var(--fg); }
.xp svg .muted { fill: var(--fg-muted); }
.xp svg .faint { fill: var(--fg-faint); }
.xp svg .mono { font-family: var(--mono); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 18px 0; max-width: var(--content-max); }
table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
th, td { text-align: left; padding: 9px 13px; border-bottom: 1px solid var(--line); vertical-align: top; }
th {
  font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--fg-faint); font-weight: 650; border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody tr:last-child td { border-bottom: none; }

/* ---------- Week plan ---------- */

.weeks { list-style: none; counter-reset: wk; margin: 18px 0; padding: 0; }
.weeks > li {
  counter-increment: wk;
  position: relative;
  padding: 0 0 18px 46px;
  border-left: 1px solid var(--line);
  margin-left: 13px;
}
.weeks > li:last-child { border-left-color: transparent; padding-bottom: 0; }
.weeks > li::before {
  content: "W" counter(wk);
  position: absolute;
  left: -14px;
  top: 0;
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg); border: 1px solid var(--line-strong);
  color: var(--fg-muted);
  border-radius: 50%;
  font-size: 11px; font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.weeks h4 { margin: 2px 0 4px; }
.weeks p { font-size: 14.5px; color: var(--fg-muted); margin-bottom: 6px; }

/* ---------- Checklist ---------- */

.check { list-style: none; margin: 14px 0; padding: 0; }
/* Mixed inline content, so this stays in normal flow with an absolute marker.
   A grid here puts the bare text node in the 22px marker column and every
   word wraps onto its own line. */
.check li {
  position: relative;
  padding: 7px 0 7px 28px;
  font-size: 14.5px;
  border-bottom: 1px solid var(--line);
}
.check li:last-child { border-bottom: none; }
.check li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 12px;
  width: 13px; height: 13px;
  border: 1.5px solid var(--line-strong);
  border-radius: 3px;
}
.check li b, .check li strong { font-weight: 620; }

/* ---------- Glossary ---------- */

.gloss { margin: 0; }
.gloss > div {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.gloss dt { font-weight: 620; font-size: 15px; }
.gloss dt .lvl { display: block; font-size: 11.5px; font-weight: 600; color: var(--fg-faint); margin-top: 1px; }
.gloss dd { margin: 0; font-size: 14.5px; color: var(--fg-muted); }

/* ---------- Footer ---------- */

.foot {
  margin-top: 64px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
  color: var(--fg-faint);
  max-width: var(--content-max);
}
.foot a { color: var(--fg-muted); }

.pager {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 54px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  max-width: var(--content-max);
  font-size: 14.5px;
}
.pager .n { font-weight: 550; }
.pager span { display: block; font-size: 12px; color: var(--fg-faint); text-transform: uppercase; letter-spacing: 0.06em; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .menu-btn { display: inline-flex; }
  .sidebar {
    position: fixed;
    inset: calc(56px + env(safe-area-inset-top, 0px)) 0 0 0;
    max-height: none;
    z-index: 19;
    background: var(--bg);
    border-right: none;
    border-top: 1px solid var(--line);
    padding: 20px max(20px, env(safe-area-inset-right, 0px)) 60px max(20px, env(safe-area-inset-left, 0px));
    overflow-y: auto;
  }
  .sidebar[hidden] { display: none !important; }
  .content { padding: 28px max(16px, env(safe-area-inset-right, 0px)) 72px max(16px, env(safe-area-inset-left, 0px)); }
  .topbar nav a { display: none; }
  .sidebar .nav-mirror { display: block; }
  h1 { font-size: 25px; }
  .gloss > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .res li { grid-template-columns: minmax(0, 1fr); gap: 1px; }
  .res .kind { padding-top: 0; }
  .vid-open { display: none; }
  .vid-thumb { width: 92px; }
  summary.topic-head { padding: 12px 12px; gap: 10px; }
  .topic-body { padding: 14px 12px 18px; }
  .topic-text h3 { font-size: 15.5px; }
  summary.topic-head .badge { display: none; }
}

@media (min-width: 901px) {
  .sidebar[hidden] { display: block !important; }
}

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

@media print {
  .topbar, .sidebar, .xp-bar, .pager { display: none; }
  .shell { grid-template-columns: 1fr; }
  body { font-size: 11pt; }
}

/* ---------- Explainer SVG primitives ---------- */

.xp svg [data-s] {
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.3s ease, transform 0.3s ease;
}
.xp svg [data-s].on { opacity: 1; transform: translateY(0); }
.xp svg [data-s].dim { opacity: 0.3; }

.xp svg .box { fill: var(--bg-sub); stroke: var(--line-strong); stroke-width: 1; }
.xp svg .box-a { fill: var(--accent-bg); stroke: var(--accent); stroke-width: 1.4; }
.xp svg .chip { fill: var(--bg-inset); stroke: var(--line-strong); stroke-width: 1; }
.xp svg .chip-a { fill: var(--accent-bg); stroke: var(--accent); stroke-width: 1.4; }
.xp svg .plate { fill: none; stroke: var(--line-strong); stroke-width: 1; stroke-dasharray: 5 4; }
.xp svg .ln { stroke: var(--line-strong); stroke-width: 1.4; fill: none; }
.xp svg .ln-a { stroke: var(--accent); stroke-width: 1.6; fill: none; }
.xp svg .bar { fill: var(--line-strong); }
.xp svg .bar-a { fill: var(--accent); }
.xp svg .arrowhead { fill: var(--line-strong); }
.xp svg .arrowhead-a { fill: var(--accent); }
.xp svg .acc { fill: var(--accent); }
.xp svg text { font-size: 12.5px; }
.xp svg .sm { font-size: 11px; }
.xp svg .xs { font-size: 9.5px; }
.xp svg .bold { font-weight: 640; }
