/* Aufbau und Bausteine. Farben, Flächen und Rundungen kommen nur aus tokens.css. */

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

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

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background-color: var(--bg);
  background-image: var(--bg-image);
  background-attachment: fixed;
}

a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { line-height: 1.2; margin: 0; text-wrap: balance; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
code, pre, kbd { font-family: var(--mono); font-size: 0.9em; }

/* ---- Hülle --------------------------------------------------------------- */

.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.shell.is-bare { display: block; }

.side {
  position: sticky;
  top: var(--side-gap);
  align-self: start;
  height: calc(100vh - 2 * var(--side-gap));
  margin: var(--side-gap) 0 var(--side-gap) var(--side-gap);
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 14px 14px;
  overflow-y: auto;
  color: var(--side-text);
  background: var(--side-bg);
  backdrop-filter: var(--side-blur);
  -webkit-backdrop-filter: var(--side-blur);
  border-radius: var(--side-radius);
  box-shadow: 0 0 0 1px var(--side-line);
}

.brand { display: block; padding: 0 8px 4px; text-decoration: none; color: var(--side-strong); }
.brand img { display: block; height: 30px; width: auto; }
.brand span { display: block; margin-top: 10px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--side-faint); }

.nav-group + .nav-group { margin-top: 14px; }
.nav-title { padding: 0 10px 6px; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--side-faint); }
.nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 36px;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--side-text);
  text-decoration: none;
  font-size: 14px;
}
a.nav-item:hover { background: rgba(255, 255, 255, 0.07); color: var(--side-strong); }
.nav-item.is-active { background: var(--side-active); color: var(--side-strong); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(255, 107, 0, 0.35); }
.nav-item.is-soon { color: var(--side-faint); cursor: default; }
.nav-item small { font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--side-faint); border: 1px solid var(--side-line); border-radius: 999px; padding: 1px 7px; }

.side-foot { margin-top: auto; padding: 12px 10px 4px; border-top: 1px solid var(--side-line); display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 13px; }
.side-foot strong { color: var(--side-strong); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.linkbtn { font: inherit; font-size: 12px; color: var(--side-faint); background: none; border: 0; padding: 4px 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.linkbtn:hover { color: var(--side-strong); }

.main { min-width: 0; padding: 32px clamp(16px, 4vw, 48px) 64px; }
.wrap { max-width: 1120px; margin: 0 auto; }
.shell.is-bare .main { display: grid; place-items: center; min-height: 100vh; padding: 24px 16px; }

/* ---- Bausteine ----------------------------------------------------------- */

.eyebrow { font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--eyebrow); font-weight: 600; }
.lede { color: var(--muted); max-width: 68ch; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }

.page-head { display: grid; gap: 8px; margin-bottom: 20px; }
.page-head h1 { font-size: clamp(24px, 3vw, 30px); font-weight: 700; letter-spacing: -0.01em; }

.panel {
  background: var(--surface);
  backdrop-filter: var(--surface-blur);
  -webkit-backdrop-filter: var(--surface-blur);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px 12px; }
.panel-head h2 { font-size: 15px; font-weight: 600; }
.panel-body { padding: 0 20px 20px; }

.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; align-items: start; }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px; line-height: 20px; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); text-decoration: none; white-space: nowrap; }
a.chip:hover { border-color: var(--line-strong); color: var(--text); }
.chip.is-on { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; font-weight: 600; }
.chip.is-ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.chip.is-warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 22px;
  font: inherit; font-weight: 600;
  color: var(--btn-text); background: var(--btn-bg);
  border: 0; border-radius: var(--radius-s);
  box-shadow: var(--btn-shadow);
  cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { filter: brightness(1.06); }

.search { display: flex; gap: 10px; }
.search input[type="search"] {
  flex: 1; min-width: 0; min-height: 44px; padding: 0 16px;
  font: inherit; color: var(--text);
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius-s);
}
.search input::placeholder { color: var(--faint); }
.search input:focus { outline: 2px solid var(--focus); outline-offset: 1px; }

.rows > li + li { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 16px; align-items: baseline; padding: 11px 20px; color: inherit; text-decoration: none; }
a.row:hover { background: var(--surface-2); }
.row-title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-side { color: var(--faint); font-size: 13px; white-space: nowrap; }
.row-sub { grid-column: 1 / -1; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows:last-child > li:last-child .row { border-radius: 0 0 var(--radius) var(--radius); }

.empty { padding: 28px 20px; color: var(--muted); }
.empty strong { display: block; color: var(--text); margin-bottom: 4px; }

.note { padding: 12px 16px; border-radius: var(--radius-s); background: var(--warn-soft); color: var(--warn); font-size: 13px; }

/* ---- Heute --------------------------------------------------------------- */

.hero { padding: clamp(12px, 4vw, 44px) 0 28px; display: grid; gap: 16px; }
.hero h1 { font-size: clamp(34px, 5.4vw, 60px); font-weight: 800; letter-spacing: -0.02em; }
.hero .search { max-width: 760px; margin-top: 8px; }
.hero .search input[type="search"] { min-height: 56px; font-size: 17px; padding: 0 20px; }
.hero .btn { min-height: 56px; padding: 0 28px; }
.hero-meta { color: var(--muted); font-size: 14px; display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; }

.stack { display: grid; gap: 20px; }

.track { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); padding: 6px 20px 22px; }
.track li { position: relative; padding: 30px 14px 0 0; }
.track li::before { content: ""; position: absolute; top: 8px; left: 0; right: 0; height: 4px; border-radius: 4px; background: var(--track); }
.track li::after { content: ""; position: absolute; top: 2px; left: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line-strong); }
.track li.is-passed::before { background: linear-gradient(90deg, #ff6b00, #ff8a2a); }
.track li.is-passed::after { background: #ff6b00; border-color: #ff6b00; }
.track li.is-now::before { background: linear-gradient(90deg, #ff6b00 0%, #ffae70 34%, var(--track) 62%); }
.track li.is-now::after { background: #ffae70; border-color: #ff6b00; box-shadow: var(--track-glow); }
.track strong { display: block; font-size: 14px; }
.track span { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.track li.is-todo strong { color: var(--muted); font-weight: 500; }
.track li.is-todo span { color: var(--faint); }

/* ---- Suche --------------------------------------------------------------- */

.toolbar { display: grid; gap: 12px; margin-bottom: 20px; }
.hit { display: block; padding: 14px 20px; color: inherit; text-decoration: none; }
.hit:hover { background: var(--surface-2); }
.hit-path { font-size: 12px; color: var(--faint); font-family: var(--mono); overflow-wrap: anywhere; }
.hit-title { font-weight: 600; color: var(--link); margin: 2px 0 4px; }
.hit-title .sep { color: var(--faint); font-weight: 400; }
.hit-snippet { color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
mark { background: var(--mark); color: var(--mark-text); border-radius: 3px; padding: 0 2px; }

.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; padding: 0 20px 20px; }
.area { display: block; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); text-decoration: none; color: inherit; background: var(--surface-2); }
.area:hover { border-color: var(--line-strong); }
.area strong { display: block; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.area span { font-size: 13px; color: var(--muted); }

/* ---- Seite --------------------------------------------------------------- */

.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 13px; color: var(--faint); margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); text-decoration: underline; }

.doc { display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: 28px; align-items: start; }
.doc-main { padding: 28px clamp(18px, 3vw, 40px) 40px; }
.doc-title { font-size: clamp(26px, 3.2vw, 34px); font-weight: 700; letter-spacing: -0.01em; margin-bottom: 8px; overflow-wrap: anywhere; }
.doc-meta { margin: 14px 0 6px; }
.rail { position: sticky; top: 24px; display: grid; gap: 16px; max-height: calc(100vh - 48px); overflow-y: auto; }
.rail h2 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-bottom: 8px; }
.rail .panel { padding: 16px; }
.rail li { margin: 0; }
.rail li a { display: block; padding: 4px 0; font-size: 13px; color: var(--muted); text-decoration: none; overflow-wrap: anywhere; }
.rail li a:hover { color: var(--text); text-decoration: underline; }
.rail li.is-sub a { padding-left: 12px; }
.rail dl { margin: 0; display: grid; gap: 8px; font-size: 13px; }
.rail dt { color: var(--faint); font-size: 12px; }
.rail dd { margin: 0; overflow-wrap: anywhere; }

.prose { font-size: 15.5px; line-height: 1.7; overflow-wrap: break-word; }
.prose > * + * { margin-top: 1em; }
.prose h1 { font-size: 26px; margin-top: 1.6em; }
.prose h2 { font-size: 21px; margin-top: 1.9em; padding-top: 0.9em; border-top: 1px solid var(--line); scroll-margin-top: 16px; }
.prose h3 { font-size: 17px; margin-top: 1.6em; scroll-margin-top: 16px; }
.prose h4, .prose h5, .prose h6 { font-size: 15px; margin: 1.4em 0 0; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose li + li { margin-top: 0.3em; }
.prose li > ul, .prose li > ol { margin-top: 0.3em; }
.prose li:has(> .task), .prose li:has(> p > .task) { list-style: none; margin-left: -1.4em; }
.prose .task { width: 15px; height: 15px; margin: 0 6px 0 0; vertical-align: -2px; accent-color: var(--accent); }
.prose blockquote { margin-left: 0; margin-right: 0; padding: 10px 16px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 var(--radius-s) var(--radius-s) 0; color: var(--muted); }
.prose blockquote > * + * { margin-top: 0.6em; }
.prose code { background: var(--code-bg); padding: 1px 5px; border-radius: 4px; }
.prose pre { background: var(--code-bg); padding: 14px 16px; border-radius: var(--radius-s); overflow-x: auto; line-height: 1.5; border: 1px solid var(--line); }
.prose pre code { background: none; padding: 0; }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2em 0; }
.prose .table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-s); }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; }
.prose th, .prose td { padding: 9px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.prose th { background: var(--surface-2); font-weight: 600; white-space: nowrap; }
.prose tr:last-child td { border-bottom: 0; }
.prose .ta-right { text-align: right; }
.prose .ta-center { text-align: center; }
.prose a.wikilink { color: var(--link); background: var(--link-soft); padding: 0 4px; border-radius: 4px; text-decoration: none; }
.prose a.wikilink:hover { text-decoration: underline; }
.prose a.wikilink.missing { color: var(--warn); background: var(--warn-soft); }
.prose a.nolink { color: inherit; text-decoration: underline dotted; cursor: help; }
.prose a.external::after { content: " ↗"; font-size: 0.8em; color: var(--faint); }
.prose .md-image { display: inline-block; padding: 2px 10px; border: 1px dashed var(--line-strong); border-radius: var(--radius-s); color: var(--muted); font-size: 13px; }

/* ---- Schreiben ----------------------------------------------------------- */

.nav-count { margin-left: auto; margin-right: 0; min-width: 22px; padding: 0 7px; border-radius: 999px; font-size: 11px; line-height: 20px; text-align: center; font-weight: 700; color: #1a0a00; background: linear-gradient(135deg, #ff6b00, #ffae70); }
.nav-item .nav-count + small { display: none; }

.doc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.btn-quiet { color: var(--text); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.btn-quiet:hover { filter: none; box-shadow: inset 0 0 0 1px var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 16px; }
.field { flex: 1 1 260px; min-height: 44px; padding: 0 14px; font: inherit; color: var(--text); background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius-s); }
.note.is-ok { background: var(--ok-soft); color: var(--ok); }

.editor {
  display: block; width: 100%; min-height: 160px; padding: 14px 16px;
  font-family: var(--mono); font-size: 14px; line-height: 1.6; color: var(--text);
  background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius-s);
  resize: vertical; tab-size: 2;
}
.editor:focus { outline: 2px solid var(--focus); outline-offset: 1px; }
.editor-page { min-height: 60vh; }

.review-why { padding-top: 18px; display: grid; gap: 8px; }
.review-why h2 { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin-top: 6px; }
.evidence { margin: 0; padding: 10px 14px; border-left: 3px solid var(--line-strong); background: var(--surface-2); border-radius: 0 var(--radius-s) var(--radius-s) 0; white-space: pre-wrap; color: var(--muted); font-size: 14px; }

.diff { margin: 0 20px 16px; border: 1px solid var(--line); border-radius: var(--radius-s); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.6; }
.diff-line { display: grid; grid-template-columns: 24px minmax(0, 1fr); padding: 0 12px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.diff-sign { text-align: center; color: var(--faint); user-select: none; }
.diff-line.is-del { background: #fdecec; color: #8a1c1c; }
.diff-line.is-add { background: #e7f6ec; color: #0b5a33; }
.diff-line.is-gap { color: var(--faint); background: var(--surface-2); }
.diff del { background: #f7c8c8; text-decoration: line-through; text-decoration-thickness: 1px; border-radius: 3px; }
.diff ins { background: #b9e8c8; text-decoration: none; border-radius: 3px; }
.theme-night .diff-line.is-del { background: rgba(255, 99, 99, 0.12); color: #ffc2c2; }
.theme-night .diff-line.is-add { background: rgba(61, 220, 151, 0.12); color: #b8f5d8; }
.theme-night .diff del { background: rgba(255, 99, 99, 0.3); }
.theme-night .diff ins { background: rgba(61, 220, 151, 0.3); }

.adjust { padding-top: 0; }
.adjust summary { cursor: pointer; color: var(--link); font-size: 14px; margin-bottom: 10px; }
.reject { padding: 16px 20px; display: grid; gap: 10px; }

.edit-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 10px; }
.edit-tools button { font: inherit; font-size: 13px; padding: 5px 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); cursor: pointer; }
.edit-tools button:hover { border-color: var(--line-strong); }
.slash-menu { position: sticky; bottom: 16px; z-index: 5; margin-top: -8px; width: min(340px, 100%); padding: 6px; display: grid; gap: 2px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-s); box-shadow: 0 12px 32px rgba(16, 24, 40, 0.18); }
.slash-menu[hidden] { display: none; }
.slash-menu button { display: flex; justify-content: space-between; gap: 12px; padding: 7px 10px; font: inherit; font-size: 14px; text-align: left; color: var(--text); background: none; border: 0; border-radius: 6px; cursor: pointer; }
.slash-menu button[aria-selected="true"], .slash-menu button:hover { background: var(--accent-soft); color: var(--accent-text); }
.slash-menu code { font-size: 12px; color: var(--faint); }

/* ---- Meetings ------------------------------------------------------------ */

.head-row { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filters select, select.field { min-height: 38px; padding: 0 10px; font: inherit; font-size: 14px; color: var(--text); background: var(--field-bg); border: 1px solid var(--field-line); border-radius: var(--radius-s); }
.toolbar { grid-template-columns: minmax(0, 1fr); }

.mtable { display: grid; }
.mrow { display: grid; grid-template-columns: 104px minmax(0, 2.2fr) minmax(0, 1.2fr) minmax(0, 1.2fr) 110px; gap: 12px; align-items: center; padding: 10px 20px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
a.mrow:hover { background: var(--surface-2); }
.mhead { border-top: 0; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--faint); }
.mrow > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mtitle strong { font-weight: 600; }
.state-geplant { background: var(--link-soft); color: var(--link); border-color: transparent; }
.state-abgelegt { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.state-verworfen { background: var(--surface-2); color: var(--faint); text-decoration: line-through; }

.board { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; align-items: start; }
.cards { display: grid; gap: 10px; padding: 0 14px 14px; }
.card-item { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); color: inherit; text-decoration: none; }
.card-item:hover { border-color: var(--line-strong); }
.board-col.is-geplant .panel-head h2::before, .board-col.is-abgelegt .panel-head h2::before, .board-col.is-verworfen .panel-head h2::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 8px; }
.board-col.is-geplant .panel-head h2::before { background: var(--link); }
.board-col.is-abgelegt .panel-head h2::before { background: var(--ok); }
.board-col.is-verworfen .panel-head h2::before { background: var(--faint); }

.props { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px 16px; align-items: end; margin: 18px 0 6px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); }
.props label { display: grid; gap: 4px; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; text-transform: uppercase; }
.props .field { min-height: 38px; font-size: 14px; text-transform: none; letter-spacing: 0; }
.props .wide { grid-column: 1 / -1; }
.props-new { margin-top: 0; background: var(--surface); padding: 24px; }

@media (max-width: 860px) {
  .head-row { grid-template-columns: minmax(0, 1fr); }
  .mrow { grid-template-columns: 90px minmax(0, 1fr); }
  .mrow > span:nth-child(3), .mrow > span:nth-child(4) { display: none; }
  .mrow > span:nth-child(5) { grid-column: 2; }
  .board { grid-template-columns: minmax(0, 1fr); }
}

/* ---- Katalog ------------------------------------------------------------- */

.group + .group { margin-top: 20px; }
.group-title { font-family: var(--mono); font-size: 13px; color: var(--muted); font-weight: 500; }

/* ---- Anmelden, Hinweis --------------------------------------------------- */

.card { width: min(520px, 100%); padding: clamp(24px, 5vw, 40px); display: grid; gap: 16px; }
.card h1 { font-size: clamp(26px, 5vw, 36px); font-weight: 800; letter-spacing: -0.02em; }
.card img { height: 34px; width: auto; justify-self: start; }
.card .logo-plate { justify-self: start; padding: 10px 14px; border-radius: var(--radius-s); background: #0b0f19; }
.card code { background: var(--code-bg); padding: 2px 6px; border-radius: 4px; }
.card form { margin-top: 4px; }

/* ---- Schmal -------------------------------------------------------------- */

@media (max-width: 1080px) {
  .doc { grid-template-columns: minmax(0, 1fr); }
  .rail { position: static; max-height: none; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
}

@media (max-width: 860px) {
  .shell { display: block; }
  .side { position: static; height: auto; margin: 0; border-radius: 0; flex-direction: row; align-items: center; gap: 14px; padding: 10px 16px; overflow-x: auto; overflow-y: hidden; }
  .brand { padding: 0; flex: none; }
  .brand span { display: none; }
  .brand img { height: 24px; }
  .side nav { display: flex; gap: 4px; flex: none; }
  .nav-group { display: flex; gap: 4px; }
  .nav-group + .nav-group { margin-top: 0; }
  .nav-title, .nav-item.is-soon { display: none; }
  .nav-item { white-space: nowrap; }
  .side-foot { margin: 0 0 0 auto; padding: 0; border: 0; flex: none; }
  .side-foot strong { display: none; }
  .main { padding: 20px 16px 48px; }
  .search { flex-wrap: wrap; }
  .search .btn { flex: 1 1 100%; }
  .track { grid-template-columns: 1fr; gap: 0; padding-bottom: 12px; }
  .track li { padding: 0 0 16px 30px; }
  .track li::before { top: 4px; bottom: -4px; left: 6px; right: auto; width: 4px; height: auto; }
  .track li::after { top: 2px; }
  .track li:last-child::before { display: none; }
  .track li.is-passed::before { background: linear-gradient(180deg, #ff6b00, #ff8a2a); }
  .track li.is-now::before { background: linear-gradient(180deg, #ff6b00 0%, #ffae70 34%, var(--track) 62%); }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row-side { grid-row: 3; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn, .nav-item, .row, .hit, .area, .chip { transition: background-color 0.12s, border-color 0.12s, filter 0.12s, color 0.12s; }
}
