:root {
  color-scheme: dark;
  --ink: #f4f5f9;
  --muted: #a4aaba;
  --line: rgba(255, 255, 255, .11);
  --bg: #090b12;
  --surface: rgba(255, 255, 255, .045);
  --surface-hover: rgba(255, 255, 255, .085);
  --card: #141722;
  --accent: #ff4655;
  --accent-strong: #d6001c;
  --done: #2fd8a8;
  --done-ink: #03261c;
  --doing: #ffc24b;
  --doing-ink: #3a2700;
  --todo: rgba(255, 255, 255, .055);
  --sample: #ffd98a;
  --focus: #8cc4ff;
  --line-gradient: linear-gradient(90deg, #ff3344, #ff8a1f 45%, #e8c14a 70%, #5fd6d0);
  --radius: 16px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { background: var(--bg); }

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

/* The backdrop: two slow lights and a faint grid, behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: -20%;
  z-index: -2;
  background:
    radial-gradient(38% 34% at 22% 18%, rgba(255, 60, 80, .20), transparent 70%),
    radial-gradient(40% 36% at 80% 12%, rgba(64, 208, 200, .15), transparent 70%),
    radial-gradient(45% 40% at 60% 90%, rgba(255, 150, 40, .07), transparent 70%);
  animation: drift 26s ease-in-out infinite alternate;
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(#000, transparent 70%);
}
@keyframes drift { to { transform: translate3d(3%, 2%, 0) scale(1.06); } }

button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

.num { font-variant-numeric: tabular-nums; }

.sample-bar {
  padding: 5px var(--gutter);
  font-size: 12px;
  text-align: center;
  color: var(--sample);
  background: rgba(255, 194, 75, .09);
  border-bottom: 1px solid rgba(255, 194, 75, .16);
}

/* Top bar */
.top {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 8px 20px;
  flex-wrap: wrap;
  padding: 10px var(--gutter);
  background: rgba(9, 11, 18, .78);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.top h1 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; }
.as-of { color: var(--muted); font-size: 13px; }
.tabs { display: flex; gap: 4px; margin-left: auto; overflow-x: auto; }
.tab {
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  text-decoration: none;
  transition: background .15s, color .15s;
}
.tab:hover { color: var(--ink); background: var(--surface-hover); }
.tab[aria-current="page"] { color: var(--bg); background: var(--ink); }
.sign-out {
  background: none;
  border: 0;
  padding: 6px 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}
.sign-out:hover { color: var(--ink); text-decoration: underline; }

.page { padding: 20px var(--gutter) 40px; display: grid; gap: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  min-width: 0;
}
.card h2, .kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: minmax(250px, .8fr) minmax(0, 1.9fr) minmax(320px, 1.1fr);
  gap: 16px;
}
.hero-status {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(150deg, rgba(47, 216, 168, .17), rgba(47, 216, 168, .02) 62%), var(--surface);
  border-color: rgba(47, 216, 168, .28);
}
.verdict {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 8px;
  font-size: clamp(36px, 3.5vw, 52px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -.035em;
}
.dot {
  position: relative;
  flex: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--done);
  box-shadow: 0 0 18px var(--done);
}
.dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 2px solid var(--done);
  animation: ping 2.4s ease-out infinite;
}
@keyframes ping { to { transform: scale(2.6); opacity: 0; } }

.next-ms {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 2px 12px;
  width: 100%;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  cursor: pointer;
}
.next-days {
  grid-row: span 2;
  font-size: 44px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -.03em;
}
.next-label { font-weight: 700; }
.next-name { color: var(--muted); font-size: 13px; line-height: 1.3; }
.next-ms:hover .next-name { color: var(--ink); text-decoration: underline; }

/* Progress rings */
.rings { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 14px; }
.ring-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-width: 0;
  padding: 10px 4px;
  background: none;
  border: 0;
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
  transition: background .15s;
}
.ring-btn:hover { background: var(--surface-hover); }
.ring { position: relative; width: min(100%, 124px); aspect-ratio: 1; }
.ring svg { display: block; width: 100%; height: 100%; overflow: visible; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring-track { stroke: var(--todo); }
.ring-arc {
  stroke-linecap: round;
  stroke-dasharray: 100;
  stroke-dashoffset: var(--off);
  transform-origin: center;
  transform: rotate(var(--turn, 0deg));
  animation: arc 1.1s cubic-bezier(.2, .8, .2, 1) both;
}
.ring-done { stroke: var(--done); filter: drop-shadow(0 0 6px rgba(47, 216, 168, .55)); }
.ring-doing { stroke: var(--doing); animation-delay: .35s; }
@keyframes arc { from { stroke-dashoffset: 100; } }
.ring-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -.03em;
}
.ring-value small { font-size: 13px; font-weight: 700; color: var(--muted); margin-left: 1px; }
.ring-name { font-weight: 700; font-size: 13px; line-height: 1.2; }
.ring-sub { color: var(--muted); font-size: 12px; }

/* Decisions */
.decisions { display: flex; flex-direction: column; gap: 10px; }
.decision {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 12px;
  align-items: center;
  width: 100%;
  padding: 11px 13px;
  text-align: left;
  background: rgba(255, 70, 85, .09);
  border: 1px solid rgba(255, 70, 85, .28);
  border-radius: 12px;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.decision:hover { background: rgba(255, 70, 85, .18); transform: translateY(-1px); }
.decision-title { font-weight: 700; line-height: 1.25; }
.decision-who { grid-column: 1; color: var(--muted); font-size: 13px; }
.decision-due { grid-row: 1 / span 2; grid-column: 2; text-align: center; line-height: 1.05; color: #ff8a93; }
.decision-due b { display: block; font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.decision-due span { font-size: 11px; font-weight: 600; }

/* Journey */
.journey { padding: 16px 22px 14px; }
.timeline { position: relative; padding-top: 88px; }
.line {
  position: relative;
  height: 6px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .1);
  overflow: hidden;
}
.line-run {
  position: absolute;
  top: 0;
  bottom: 0;
  right: 0;
  background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .16) 0 5px, transparent 5px 10px);
}
.line-elapsed {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  overflow: hidden;
  border-radius: 3px;
  background: var(--line-gradient);
  background-size: 700% 100%;
  animation: grow 1.3s cubic-bezier(.2, .8, .2, 1) both;
  transform-origin: left;
  box-shadow: 0 0 16px rgba(255, 90, 70, .6);
}
.line-elapsed::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .85), transparent);
  animation: sweep 2.6s linear infinite;
}
@keyframes grow { from { transform: scaleX(0); } }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(260%); } }

.ms {
  position: absolute;
  top: 0;
  height: 97px;
  width: clamp(104px, 11.2%, 190px);
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  gap: 1px;
  padding: 0 2px;
  background: none;
  border: 0;
  text-align: center;
  font-size: 12px;
  line-height: 1.22;
  color: var(--muted);
  cursor: pointer;
}
.ms b { color: var(--ink); font-size: 14px; font-weight: 800; }
.ms:hover .ms-name { color: var(--ink); text-decoration: underline; }
.ms-node {
  flex: none;
  width: 16px;
  height: 16px;
  margin-top: 5px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid #6e7485;
  transition: transform .15s;
}
.ms:hover .ms-node { transform: scale(1.25); }
.ms.next .ms-node { border-color: var(--doing); box-shadow: 0 0 14px rgba(255, 194, 75, .8); }
.ms.next b { color: var(--doing); }
.ms.past .ms-node { background: var(--done); border-color: var(--done); }

.today {
  position: relative;
  height: 30px;
}
.today span {
  position: absolute;
  top: 9px;
  transform: translateX(-50%);
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--accent-strong);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}
.today span::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -17px;
  width: 12px;
  height: 12px;
  margin-left: -6px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px var(--accent), 0 0 18px 5px rgba(255, 70, 85, .75);
}
.months { display: flex; }
.month {
  padding-left: 7px;
  border-left: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.month.run { color: #7c8294; }

/* The journey as a list, on narrow screens */
.ms-list { display: none; margin-top: 12px; }
.ms-step {
  position: relative;
  display: block;
  width: 100%;
  padding: 0 0 16px 28px;
  background: none;
  border: 0;
  text-align: left;
  cursor: pointer;
}
.ms-step::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 16px;
  bottom: -4px;
  width: 2px;
  background: var(--line);
}
.ms-step:last-child { padding-bottom: 0; }
.ms-step:last-child::before { display: none; }
.ms-step .ms-node { position: absolute; left: 0; top: 2px; margin: 0; }
.ms-step.next .ms-node { border-color: var(--doing); box-shadow: 0 0 14px rgba(255, 194, 75, .8); }
.ms-step-name { display: block; font-weight: 700; }
.ms-step-date { display: block; color: var(--muted); font-size: 13px; }
.ms-step.here { cursor: default; color: #ff8a93; font-weight: 700; }
.ms-step.here .ms-node { background: #fff; border-color: var(--accent); box-shadow: 0 0 14px var(--accent); }

/* Main area */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; }

#map { scroll-margin-top: 66px; }
.changes { position: sticky; top: 66px; }
.changes h2 { margin-bottom: 10px; }
.change {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 0 8px;
  width: 100%;
  padding: 9px 8px;
  margin: 0 -8px;
  width: calc(100% + 16px);
  background: none;
  border: 0;
  border-radius: 10px;
  text-align: left;
  cursor: pointer;
  transition: background .15s;
}
.change:hover { background: var(--surface-hover); }
.change-mark {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 800;
}
.change-mark.s-done { color: var(--done-ink); }
.change-mark.s-doing { color: var(--doing-ink); }
.change-name { font-weight: 700; line-height: 1.25; }
.change-text { color: var(--muted); font-size: 13px; line-height: 1.3; }

/* Status colours */
.s-done { background: var(--done); }
.s-doing { background: var(--doing); }
.s-todo { background: var(--todo); }

.map-head { display: flex; align-items: center; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin-bottom: 8px; }
.legend { display: flex; gap: 4px; flex-wrap: wrap; }
.legend-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  background: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
}
.legend-btn:hover { background: var(--surface-hover); }
.legend-btn[aria-pressed="true"] { border-color: var(--ink); background: var(--surface-hover); }
.swatch { flex: none; width: 13px; height: 13px; border-radius: 4px; display: inline-block; }
.swatch.s-todo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22); }

/* Grid */
.grid-wrap { overflow-x: auto; }
table.grid { border-collapse: separate; border-spacing: 3px; width: 100%; table-layout: fixed; }
.c-name { width: 138px; }
.c-gap { width: 12px; }
.c-asset { width: 128px; }
.grid caption { text-align: left; font-weight: 700; font-size: 15px; padding: 2px 2px 10px; }
.grid th { font-weight: 600; font-size: 11px; line-height: 1.2; padding: 4px 1px 6px; text-align: center; color: var(--muted); vertical-align: bottom; transition: color .1s; }
.grid th.hot { color: var(--ink); }
.grid th.band { font-size: 12px; font-weight: 700; letter-spacing: .04em; color: var(--ink); border-bottom: 1px solid var(--line); padding-bottom: 7px; }
.grid th.group { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 14px 2px 5px; color: #ff8a93; }
.grid .gap { background: none; border: 0; }
.grid td { padding: 0; height: 32px; }
.grid th.name { padding: 0; vertical-align: middle; }
.row-btn {
  width: 100%;
  height: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  background: none;
  padding: 4px 6px;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.2;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
}
.row-btn small { display: block; font-weight: 400; font-size: 11px; color: var(--muted); }
.row-btn:hover, .row-btn.hot { background: var(--surface-hover); }
.asset-name .row-btn { font-weight: 500; font-size: 12px; }
.cell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: 32px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  transition: opacity .2s, transform .12s, box-shadow .12s;
  animation: light-up .5s cubic-bezier(.2, .8, .2, 1) var(--d, 0ms) both;
}
@keyframes light-up { from { opacity: 0; transform: scale(.72); } }
.cell:hover { transform: scale(1.09); box-shadow: 0 0 0 2px var(--ink); position: relative; z-index: 1; }
.cell.s-done { color: var(--done-ink); box-shadow: 0 0 12px rgba(47, 216, 168, .24); }
.cell.s-doing { color: var(--doing-ink); }
.cell.s-doing::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--doing-ink);
  animation: breathe 1.8s ease-in-out infinite;
}
.cell.s-todo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.cell.s-done:hover, .cell.s-doing:hover, .cell.s-todo:hover { box-shadow: 0 0 0 2px var(--ink); }
@keyframes breathe { 50% { transform: scale(.55); opacity: .55; } }
.cell-na { display: flex; height: 100%; min-height: 32px; align-items: center; justify-content: center; color: #7c8294; }

/* Spotlight: one status stays lit. */
[data-spot="done"] .cell:not(.s-done),
[data-spot="doing"] .cell:not(.s-doing),
[data-spot="todo"] .cell:not(.s-todo) { opacity: .14; }
[data-spot="done"] .strip i:not(.s-done),
[data-spot="doing"] .strip i:not(.s-doing),
[data-spot="todo"] .strip i:not(.s-todo) { opacity: .2; }

.two-grids { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; }

/* Row cards, for narrow screens */
.row-cards { display: none; }
.row-card {
  display: block;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 8px;
  text-align: left;
  cursor: pointer;
}
.row-card.child { margin-left: 16px; width: calc(100% - 16px); }
.row-card b { display: block; }
.row-card > span { color: var(--muted); font-size: 13px; }
.strip { display: flex; gap: 3px; margin: 7px 0 5px; }
.strip i { flex: 1; height: 8px; border-radius: 3px; transition: opacity .2s; }
.strip i.s-doing { box-shadow: 0 0 8px rgba(255, 194, 75, .5); }
.strip i.s-na { background: repeating-linear-gradient(45deg, transparent, transparent 2px, var(--todo) 2px, var(--todo) 4px); }
.cards-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff8a93; margin: 14px 0 8px; }
.row-cards .cards-title:first-child { margin-top: 0; }

/* People */
.people { display: grid; gap: 20px; }
.people-title { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #ff8a93; margin-bottom: 10px; }
.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.person-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.person-card:hover { background: var(--surface-hover); transform: translateY(-2px); }
.person-card b { display: block; font-size: 15px; line-height: 1.2; }
.person-team { color: var(--muted); font-size: 12px; }
.person-card .strip { margin: 0; }
.person { display: flex; align-items: center; gap: 8px; min-width: 0; }
.avatar {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(140deg, #ff5a5f, #ff9d3c);
  color: #1b0d03;
  font-size: 12px;
  font-weight: 800;
}
.avatar.alt { background: linear-gradient(140deg, #5fd6d0, #2fd8a8); color: #03261c; }
.person-name { font-weight: 600; font-size: 13px; line-height: 1.2; overflow-wrap: anywhere; }
.person-role { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }

/* Deliverables */
.deliverables { padding: 14px 18px 16px; }
.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.tile {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.tile:hover { background: var(--surface-hover); transform: translateY(-2px); }
.tile-name { font-weight: 700; line-height: 1.2; }
.tile-value { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.tile-value small { margin-left: 6px; font-size: 12px; font-weight: 600; letter-spacing: 0; color: var(--muted); }
.cell.has-file::after, .file-mark {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(9, 11, 18, .55);
}
.cell { position: relative; }
.cell.has-file::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
}
.swatch.file-mark { width: 9px; height: 9px; border-radius: 50%; margin: 2px; }
[data-spot="file"] .cell:not(.has-file) { opacity: .14; }
.doc-link.file { border-color: rgba(255, 255, 255, .24); }
.list-title { margin: 10px 0 6px; font-weight: 700; }
.note { color: var(--muted); font-size: 13px; }
.note a { color: var(--focus); }
.to-name { color: var(--doing); }

/* Sources */
.sources, .stack { display: grid; gap: 16px; }
.src-sum { display: grid; grid-template-columns: auto auto auto minmax(0, 1fr); gap: 16px 34px; align-items: center; }
.src-kpi b { display: block; font-size: 40px; font-weight: 800; line-height: 1; letter-spacing: -.03em; }
.src-kpi span { color: var(--muted); font-size: 13px; }
.funnel { display: grid; gap: 6px; }
.funnel-row { display: grid; grid-template-columns: 74px minmax(0, 1fr) 118px; gap: 10px; align-items: center; font-size: 13px; }
.funnel-name { font-weight: 600; }
.funnel-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--todo); }
.funnel-bar i { display: block; min-width: 0; transform-origin: left; animation: grow .9s cubic-bezier(.2, .8, .2, 1) both; }
.funnel-num { color: var(--muted); font-size: 12px; }
.funnel-num b { color: var(--ink); font-size: 14px; }
#map.src-map { padding: 14px 18px; }
.src-tools { display: flex; align-items: center; gap: 8px 12px; flex-wrap: wrap; margin-bottom: 8px; }
.src-search {
  flex: 0 1 280px;
  min-width: 0;
  min-height: 36px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 10px;
  color: var(--ink);
  font: inherit;
}
.src-tools .tag-sample { margin-left: 0; }
.src-count { margin-left: auto; color: var(--muted); font-size: 13px; }
.src-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 4px; }
.src-head, .src-row { display: grid; grid-template-columns: minmax(0, 2.4fr) 96px minmax(0, 1.5fr) 232px; gap: 14px; align-items: center; }
.src-head { padding: 12px 10px 4px; color: var(--muted); font-size: 11px; font-weight: 600; }
.src-head-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; text-align: center; }
.src-group { margin-top: 6px; }
.src-domain {
  display: flex;
  align-items: baseline;
  gap: 10px;
  width: 100%;
  padding: 10px;
  background: none;
  border: 0;
  border-bottom: 1px solid var(--line);
  text-align: left;
  cursor: pointer;
}
.src-domain b { font-size: 15px; color: #ff8a93; }
.src-domain span { color: var(--muted); font-size: 13px; }
.src-domain em { margin-left: auto; font-style: normal; font-size: 13px; color: var(--muted); }
.src-domain:hover em { color: var(--ink); text-decoration: underline; }
.src-row {
  width: 100%;
  padding: 7px 10px;
  background: none;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, .05);
  border-radius: 8px;
  text-align: left;
  cursor: pointer;
}
.src-row:hover { background: var(--surface-hover); }
.src-name b { display: block; font-weight: 650; line-height: 1.25; }
.src-name span { display: block; color: var(--muted); font-size: 12px; line-height: 1.3; }
.src-owner { font-size: 13px; }
.src-used { display: flex; flex-wrap: wrap; gap: 3px; }
.src-used i { padding: 1px 7px; border-radius: 999px; background: var(--surface-hover); font-size: 11px; font-style: normal; white-space: nowrap; }
.src-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 3px; }
.src-steps i { height: 16px; border-radius: 4px; }
.src-steps i.s-todo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .15); }
.pack { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.pack li { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pack .swatch { margin-top: 3px; }
.pack b { display: block; }
.pack li span span { color: var(--muted); font-size: 13px; }
.pack em { font-style: normal; color: var(--muted); font-size: 13px; }

/* Platform frame */
.layers { display: grid; gap: 6px; margin-top: 8px; }
.layer {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) 150px;
  gap: 16px;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
button.layer:hover { background: var(--surface-hover); transform: translateX(3px); }
.layer.core { background: linear-gradient(90deg, rgba(47, 216, 168, .15), rgba(95, 214, 208, .04)), var(--surface); border-color: rgba(47, 216, 168, .34); }
.layer.source { cursor: default; border-style: dashed; }
.layer-name { font-weight: 800; font-size: 15px; line-height: 1.2; }
.layer-name small { display: block; color: var(--done); font-size: 11px; font-weight: 700; margin-top: 2px; }
.layer-parts { display: flex; flex-wrap: wrap; gap: 5px; }
.layer-parts i { padding: 3px 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 12px; font-style: normal; }
.layer-rows .strip { margin: 3px 0; }
.principles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.principles b { display: block; margin-bottom: 2px; }
.principles span { color: var(--muted); font-size: 13px; line-height: 1.35; }

/* Operating model */
.comps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.comp-col { display: grid; gap: 8px; align-content: start; }
.comp-col h3 { font-size: 15px; font-weight: 800; color: #ff8a93; }
.comp {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px 13px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  text-align: left;
  cursor: pointer;
  transition: background .15s, transform .15s;
}
.comp:hover { background: var(--surface-hover); transform: translateY(-2px); }
.comp b { line-height: 1.2; }
.comp .strip { margin: 2px 0; }
.comp > span { color: var(--muted); font-size: 13px; line-height: 1.25; }
.comp > span.to-name { color: var(--doing); }
.swim-wrap { overflow-x: auto; }
table.swim { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; font-size: 13px; line-height: 1.3; }
.swim thead th { padding: 4px; text-align: left; font-weight: 700; }
.swim thead th i { display: inline-block; margin-right: 6px; color: #ff8a93; font-style: normal; }
.swim tbody th { width: 92px; padding: 6px; text-align: left; vertical-align: top; color: var(--muted); font-weight: 700; }
.swim td { vertical-align: top; padding: 0; }
.swim td span { display: block; height: 100%; padding: 7px 9px; background: var(--surface-hover); border-radius: 8px; }

/* Tables in panels */
table.plain { border-collapse: collapse; width: 100%; }
.plain th, .plain td { text-align: left; padding: 7px 8px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: break-word; }
.plain th { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Panel */
dialog#panel {
  margin: 0 0 0 auto;
  height: 100dvh;
  max-height: 100dvh;
  width: 540px;
  max-width: 100vw;
  border: 0;
  border-left: 1px solid var(--line);
  padding: 0;
  background: var(--card);
  color: var(--ink);
  box-shadow: -24px 0 70px rgba(0, 0, 0, .55);
}
dialog#panel[open] { animation: slide-in .26s cubic-bezier(.2, .8, .2, 1); }
dialog#panel.wide { width: 800px; }
dialog#panel::backdrop { background: rgba(4, 5, 10, .62); backdrop-filter: blur(4px); }
@keyframes slide-in { from { transform: translateX(44px); opacity: 0; } }
.panel-head { position: sticky; top: 0; background: var(--card); border-bottom: 1px solid var(--line); padding: 14px 18px; display: flex; gap: 8px; align-items: flex-start; z-index: 1; }
.panel-head > div { flex: 1; min-width: 0; }
.panel-head h2 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; outline: none; }
.eyebrow { color: var(--muted); font-size: 13px; }
.icon-btn { background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; flex: none; }
.icon-btn:hover { background: var(--surface-hover); }
.panel-body { padding: 18px; display: grid; gap: 20px; animation: panel-in .24s ease-out; }
@keyframes panel-in { from { opacity: 0; transform: translateY(6px); } }
.panel-body h3 { font-size: 12px; color: var(--muted); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 7px; }
.badge { display: inline-block; padding: 3px 11px; border-radius: 999px; font-weight: 700; font-size: 13px; }
.badge.s-done { color: var(--done-ink); }
.badge.s-doing { color: var(--doing-ink); }
.badge.s-todo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2); }
.tag-sample { display: inline-block; color: var(--sample); background: rgba(255, 194, 75, .12); padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; margin-left: 6px; }
.tag-sample:first-child { margin-left: 0; }
.panel-body ul { margin: 0; padding-left: 18px; }

.steps { display: flex; gap: 4px; }
.step {
  flex: 1;
  min-width: 0;
  height: 14px;
  padding: 0;
  border: 0;
  border-radius: 5px;
  cursor: pointer;
  transition: transform .12s;
}
.step:hover { transform: scaleY(1.35); }
.step.s-todo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .16); }
.step[aria-current="step"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.step.s-na { background: none; cursor: default; }

.stage-list { display: grid; gap: 5px; }
.stage-item { display: flex; gap: 10px; align-items: center; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; text-align: left; cursor: pointer; }
.stage-item:hover { background: var(--surface-hover); }
.stage-item em { margin-left: auto; font-style: normal; color: var(--muted); font-size: 13px; text-align: right; }
.doc-link { display: flex; justify-content: space-between; gap: 8px; width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; margin-bottom: 5px; text-align: left; cursor: pointer; font-weight: 600; }
.doc-link em { font-style: normal; font-weight: 400; color: var(--muted); font-size: 13px; flex: none; }
.doc-link:hover { background: var(--surface-hover); }

.flow { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.flow span { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 6px 10px; font-weight: 600; font-size: 13px; }
.flow i { font-style: normal; color: var(--muted); }

.checks { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.check { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.check:hover { background: var(--surface-hover); }
.check[aria-pressed="true"] { background: var(--ink); color: var(--bg); }
.check small { font-weight: 700; margin-left: 6px; }
tr.fail td { background: rgba(255, 70, 85, .24); }

/* Sign-in */
.login-page { display: grid; place-items: center; padding: 16px; }
.login {
  position: relative;
  overflow: hidden;
  width: 100%;
  max-width: 400px;
  background: rgba(20, 23, 34, .82);
  backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 26px 26px;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .55);
  animation: panel-in .4s ease-out;
}
.login::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: var(--line-gradient);
}
.login h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin-bottom: 22px; }
.login form { display: grid; gap: 8px; }
.login form[hidden] { display: none; }
.login label { font-weight: 600; }
.login input {
  width: 100%;
  min-height: 46px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 10px;
  background: rgba(255, 255, 255, .05);
  color: var(--ink);
  font: inherit;
  font-size: 16px;
}
.login-action {
  min-height: 46px;
  margin-top: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--accent-strong);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 26px rgba(214, 0, 28, .45);
  transition: filter .15s, transform .15s;
}
.login-action:hover { filter: brightness(1.12); transform: translateY(-1px); }
.login-action:disabled { opacity: .6; cursor: progress; transform: none; }
.login-back {
  min-height: 36px;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
}
.login-back:hover { color: var(--ink); text-decoration: underline; }
#sent-note { margin-bottom: 8px; }
.login-error { color: #ff8a93; margin-top: 12px; }
.login-error:empty { display: none; }

@media (max-width: 1320px) {
  .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); }
  .rings { grid-column: 1 / -1; grid-row: 2; }
  .ring { width: min(100%, 110px); }
  .layout { grid-template-columns: minmax(0, 1fr); }
  .changes { position: static; }
  .changes-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .two-grids { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .src-sum { grid-template-columns: auto auto auto; }
  .funnel { grid-column: 1 / -1; }
  .src-head, .src-row { grid-template-columns: minmax(0, 2fr) 84px minmax(0, 1.3fr) 190px; gap: 10px; }
  .src-head-steps span { font-size: 10px; }
  .principles, .comps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .c-name { width: 125px; }
  .c-asset { width: 115px; }
}

@media (max-width: 1120px) {
  .grid th { font-size: 10px; }
  .c-name { width: 112px; }
  .c-asset { width: 102px; }
  .c-gap { width: 8px; }
  .timeline { padding-top: 104px; }
  .ms { height: 113px; }
}

@media (max-width: 1023px) {
  :root { --gutter: 16px; }
  .page { padding-top: 14px; padding-bottom: 28px; gap: 12px; }
  .top { position: static; }
  .top h1 { margin-right: auto; }
  .as-of { order: 3; width: 100%; }
  .tabs { order: 4; width: 100%; margin-left: 0; }
  .tab { padding: 6px 11px; }
  .hero { grid-template-columns: minmax(0, 1fr); }
  .rings { grid-column: auto; grid-row: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .changes-list { grid-template-columns: minmax(0, 1fr); }
  .journey { padding: 16px; }
  .timeline { display: none; }
  .ms-list { display: block; }
  .grid-wrap, .two-grids { display: none; }
  .map-card { background: none; border: 0; padding: 0; }
  .row-cards { display: block; }
  .layout-main { order: 1; }
  .changes { order: 2; }
  dialog#panel, dialog#panel.wide { width: 100vw; border-left: 0; }
  .people-grid { grid-template-columns: minmax(0, 1fr); }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile:first-child { grid-column: 1 / -1; }
  .tile-value { font-size: 24px; }
  .src-sum { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
  .src-domain { flex-wrap: wrap; gap: 2px 10px; }
  .src-domain b { width: 100%; }
  .src-kpi b { font-size: 30px; }
  .funnel-row { grid-template-columns: 66px minmax(0, 1fr) 118px; gap: 8px; }
  .src-map.card { padding: 12px; }
  .src-search { flex: 1 1 100%; }
  .src-count { margin-left: 0; }
  .src-chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 2px; }
  .src-chips .legend-btn { flex: none; }
  .src-head { display: none; }
  .src-row { grid-template-columns: minmax(0, 1fr) auto; gap: 6px 10px; padding: 10px 4px; }
  .src-name { grid-column: 1 / -1; }
  .src-used { grid-column: 1 / -1; grid-row: 2; }
  .src-used:empty { display: none; }
  .src-steps { grid-column: 1; grid-row: 3; }
  .src-owner { grid-column: 2; grid-row: 3; text-align: right; }
  .layer { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .principles, .comps { grid-template-columns: minmax(0, 1fr); }
}

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

/* Deliverable pages */
.dl-head { display: grid; gap: 4px; }
.crumb { color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: none; }
.crumb::before { content: "← "; }
.crumb:hover { color: var(--ink); }
.dl-head h2 { font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; outline: none; }
.dl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.dl-meta a { color: var(--focus); }
.dl-lead { margin: 0; max-width: 900px; font-size: 19px; line-height: 1.4; font-weight: 600; }
.dl-page .card > * + * { margin-top: 12px; }
.chevrons { list-style: none; margin: 0; padding: 0; display: flex; }
.chevrons li { flex: 1; min-width: 0; padding: 18px 26px 18px 34px; margin-left: -10px; font-weight: 700; text-align: center; background: var(--surface-hover); clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%); }
.chevrons li:first-child { margin-left: 0; }
.chevrons li:last-child { background: linear-gradient(120deg, var(--done), #5fd6d0); color: var(--done-ink); }
.vchips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.vchips li { padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.vcard { display: grid; gap: 8px; align-content: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.vcard > b { font-size: 15px; line-height: 1.25; }
.vcard small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.tiers { display: grid; gap: 8px; justify-items: center; }
.tier { width: var(--w); min-width: 0; display: grid; grid-template-columns: minmax(130px, .8fr) minmax(0, 2fr) minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 12px; background: linear-gradient(90deg, rgba(255, 70, 85, .2), rgba(255, 138, 31, .1)); border: 1px solid var(--line); }
.tier:not(:has(.tier-pill)) { grid-template-columns: minmax(150px, .7fr) minmax(0, 2fr); }
.tier-who { color: var(--muted); font-size: 13px; }
.tier-pill { padding: 3px 10px; border-radius: 999px; background: var(--surface-hover); font-size: 12px; font-weight: 700; white-space: nowrap; }
.board-sum { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.board-sum .funnel { flex: 1 1 340px; min-width: 0; }
.src-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.src-tile { display: grid; gap: 6px; align-content: start; padding: 12px; text-align: left; color: inherit; font: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: background .15s, transform .15s; }
.src-tile:hover { background: var(--surface-hover); transform: translateY(-2px); }
.src-tile > span:nth-child(2) { color: var(--muted); font-size: 13px; line-height: 1.3; }
.src-tile-owner { font-size: 12px; font-weight: 600; }
.src-tile .src-steps { margin-top: auto; }
.src-tile .src-steps i { height: 8px; }
.matrix { border-collapse: separate; border-spacing: 3px; }
.matrix thead th { vertical-align: bottom; padding: 0 2px 6px; font-weight: 600; }
.matrix-col, .matrix-row { padding: 2px 4px; color: inherit; font: inherit; font-size: 12px; background: none; border: 0; border-radius: 6px; cursor: pointer; text-align: left; }
.matrix-col { width: 84px; line-height: 1.15; }
.matrix-row { min-width: 180px; }
.matrix-col:hover, .matrix-row:hover { background: var(--surface-hover); }
.matrix tbody th { font-weight: 600; text-align: left; }
.matrix td { height: 26px; text-align: center; background: var(--surface); border-radius: 5px; }
.matrix thead td { background: none; }
.matrix-dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; background: var(--accent); }
.owner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.owner-card { display: grid; gap: 8px; align-content: start; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.person.open .avatar { background: none; color: var(--doing); box-shadow: inset 0 0 0 1px var(--doing); }
.dl-page .layer.current { outline: 2px solid var(--accent); outline-offset: 2px; }
.dl-page .swim thead th { padding: 10px 22px 10px 12px; background: var(--surface-hover); clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 50%, calc(100% - 12px) 100%, 0 100%); }
.row-cards.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }

/* Gallery */
.dl-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; margin-top: 10px; }
.dl-tile { display: grid; gap: 6px; align-content: start; padding: 14px; color: inherit; text-decoration: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: background .15s, transform .15s; }
.dl-tile:hover { background: var(--surface-hover); transform: translateY(-2px); }
.dl-tile b { line-height: 1.2; }
.dl-tile .strip { margin: 2px 0; }
.dl-tile > span:last-child { color: var(--muted); font-size: 13px; line-height: 1.25; }
.mini { display: grid; height: 52px; gap: 3px; margin-bottom: 4px; overflow: hidden; }
.mini.dots { grid-template-columns: repeat(auto-fill, 10px); grid-auto-rows: 10px; align-content: start; }
.mini.dots i { border-radius: 50%; }
.mini.dots i.s-todo { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25); }
.mini.lanes { grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); }
.mini.lanes i { border-radius: 3px; background: var(--todo); }
.mini.lanes i.on { background: linear-gradient(90deg, #ff4655, #ff8a1f); }
.mini.bars { justify-items: center; align-content: center; }
.mini.bars i { height: 7px; border-radius: 3px; background: linear-gradient(90deg, #ff4655, #ff8a1f); width: 60%; }
.mini.bars i:nth-child(2) { width: 72%; }
.mini.bars i:nth-child(3) { width: 84%; }
.mini.bars i:nth-child(4) { width: 92%; }
.mini.bars i:nth-child(5) { width: 100%; }

/* Plan, done, remaining */
.pdr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.pdr-plan { grid-column: 1 / -1; }
.pdr h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 9px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pdr-count { margin-left: auto; color: var(--ink); letter-spacing: 0; }
.track { list-style: none; margin: 0; padding: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.track-step { position: relative; min-width: 0; }
.track-step::before { content: ""; position: absolute; top: 19px; left: 0; right: 0; height: 2px; background: var(--line); }
.track-step:first-child::before { left: 8px; }
.track-step:last-child::before { right: calc(100% - 26px); }
.track-body { position: relative; display: grid; gap: 2px; justify-items: start; align-content: start; width: 100%; height: 100%; padding: 8px; text-align: left; color: inherit; font: inherit; background: none; border: 0; border-radius: 10px; }
button.track-body { cursor: pointer; }
button.track-body:hover { background: var(--surface-hover); }
.track-node { display: grid; place-items: center; width: 24px; height: 24px; margin-bottom: 4px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 800; color: var(--done-ink); }
.track-node.s-todo { background: var(--card); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .22); }
.track-body b { line-height: 1.2; font-size: 13px; }
.track-body span { color: var(--muted); font-size: 12px; line-height: 1.25; }
.pdr ul.pdr-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pdr-list li { display: grid; grid-template-columns: 13px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 9px 11px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.pdr-list .swatch { margin-top: 3px; }
.pdr-list p { margin: 2px 0 0; color: var(--muted); font-size: 13px; line-height: 1.3; }
.pdr-file { padding: 3px 9px; color: var(--ink); font: inherit; font-size: 12px; font-weight: 700; white-space: nowrap; background: rgba(255, 70, 85, .18); border: 1px solid rgba(255, 70, 85, .45); border-radius: 999px; cursor: pointer; }
.pdr-file::after { content: " →"; }
.pdr-file:hover { background: rgba(255, 70, 85, .32); }
.pdr-file.none { color: var(--muted); font-weight: 600; background: none; border-color: var(--line); cursor: default; }
.pdr-file.none::after { content: ""; }
.sample-line .tag-sample { margin: 0 6px 0 0; font-size: 11px; }
.pdr ul.confirm { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 5px; }
.confirm li { position: relative; padding-left: 22px; line-height: 1.3; }
.confirm li::before { content: ""; position: absolute; left: 1px; top: 3px; width: 11px; height: 11px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--doing); }

.swim-steps { display: none; list-style: none; margin: 0; padding: 0; gap: 8px; }
.swim-steps li { display: grid; gap: 6px; padding: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.swim-steps b i { margin-right: 6px; color: #ff8a93; font-style: normal; }
.swim-steps p { margin: 0; line-height: 1.3; }
.swim-steps small { display: block; color: var(--muted); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }

@media (max-width: 640px) {
  .swim-steps { display: grid; }
  .dl-page .swim-wrap:has(.swim) { display: none; }
}

@media (max-width: 1023px) {
  .pdr { grid-template-columns: minmax(0, 1fr); }
  .tier, .tier:not(:has(.tier-pill)) { width: 100%; grid-template-columns: minmax(0, 1fr); gap: 4px; justify-items: start; }
  .chevrons { flex-direction: column; gap: 4px; }
  .chevrons li { margin-left: 0; padding: 12px; clip-path: none; border-radius: 10px; }
  .dl-head h2 { font-size: 24px; }
  .dl-lead { font-size: 16px; }
  .track { grid-auto-flow: row; }
  .track-step::before { display: none; }
  .track-body { grid-template-columns: 24px minmax(0, 1fr) auto; justify-items: start; align-items: center; column-gap: 10px; }
  .track-node { margin: 0; grid-row: 1 / span 2; }
  .pdr-list li { grid-template-columns: 13px minmax(0, 1fr); }
  .pdr-file { grid-column: 2; justify-self: start; }
}
