/* Linework — team task register. Blueprint paper, drawn rules, status-first colour. */

@font-face {
  font-family: "Space Grotesk";
  src: url("assets/space-grotesk.ttf") format("truetype");
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("assets/ibm-plex-mono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Literata";
  src: url("assets/literata.ttf") format("truetype");
  font-weight: 200 900;
  font-display: swap;
}

:root {
  --bg: #eff3f2;
  --surface: #fbfcfb;
  --ink: #13263b;
  --muted: #4c5f73;
  --rule: #cbd5de;
  --rule-strong: #13263b;
  --accent: #1a5a9e;
  --accent-ink: #ffffff;
  --accent-wash: #e3edf8;
  --grid: rgba(45, 125, 210, 0.07);
  --grid-major: rgba(45, 125, 210, 0.11);

  --todo-ink: #3a4d61;   --todo-wash: #e7ecf1;
  --prog-ink: #85570a;   --prog-wash: #faefd7;
  --block-ink: #a12a22;  --block-wash: #fbe4e1;
  --done-ink: #1f6a3b;   --done-wash: #def0e3;

  --font-ui: "Space Grotesk", "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --font-read: "Literata", Georgia, "Times New Roman", serif;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --topbar: 56px;
  --inspector: clamp(400px, 34vw, 500px);
  --radius: 2px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-ui);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid-major) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-major) 1px, transparent 1px),
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 120px 120px, 120px 120px, 24px 24px, 24px 24px;
  font-variant-numeric: tabular-nums;
  overflow-x: clip;
}

h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 1px 6px;
  border: 1px solid var(--rule);
  border-bottom-width: 2px;
  border-radius: var(--radius);
  background: var(--surface);
}
mark { background: #fde68a; color: var(--ink); padding: 0 1px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: var(--surface);
  text-decoration: none; transition: top 150ms var(--ease);
}
.skip:focus { top: 8px; outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: var(--topbar);
  padding-inline: 24px;
  background: var(--ink);
  color: #e9f0f6;
}
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-mark { color: #8fbfee; flex: none; }
.brand-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.brand-sub {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase;
  color: #b4c6d8; padding-left: 12px; border-left: 1px solid #3d5470; white-space: nowrap;
}
.session { display: flex; align-items: center; gap: 12px; }
.session-text { font-family: var(--font-mono); font-size: 12px; color: #b4c6d8; white-space: nowrap; }
.topbar .btn-quiet { color: #e9f0f6; border-color: #4a6280; }

/* ---------- Buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1px solid transparent; border-radius: var(--radius);
  background: none; cursor: pointer;
  font-size: 15px; font-weight: 500; line-height: 1.2;
  transition: background-color 160ms var(--ease), border-color 160ms var(--ease), color 160ms var(--ease), transform 120ms var(--ease);
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }
.btn:disabled:active { transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-quiet { border-color: var(--rule); color: var(--ink); background: transparent; }
.btn-icon { width: 44px; padding: 0; border-color: var(--rule); }
.btn-close { padding: 10px 14px; border-color: var(--rule-strong); }
.topbar .btn:focus-visible { outline-color: #8fbfee; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label {
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
input[type="search"], select {
  min-height: 44px; font-size: 16px;
  border: 1px solid #8395a8; border-radius: var(--radius);
  background-color: var(--surface);
  transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
input[type="search"]:focus, select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
select {
  appearance: none; -webkit-appearance: none;
  padding: 0 40px 0 12px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%2313263b' stroke-width='1.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
}

/* ---------- Workspace ---------- */
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--inspector);
  align-items: start;
}
.register { container-type: inline-size; padding: 24px 24px 48px; min-width: 0; }

.title-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
h1 { font-size: 30px; font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; }
.count { font-family: var(--font-mono); font-size: 13px; color: var(--muted); }

.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 200px 210px; gap: 12px; align-items: end; }
.search-wrap { position: relative; }
.search-wrap input { width: 100%; padding: 0 44px 0 40px; }
.search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.kbd-hint { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search-wrap input:focus ~ .kbd-hint, .search-wrap input:not(:placeholder-shown) ~ .kbd-hint { display: none; }
input[type="search"]::-webkit-search-cancel-button { cursor: pointer; }

/* ---------- Scale bar (status split drawn as a dimension line) ---------- */
.scale { margin-top: 20px; }
.scale-label {
  display: flex; justify-content: space-between; margin-bottom: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.scale-bar { display: flex; border: 1px solid var(--rule-strong); background: var(--surface); }
.seg {
  --n: 1;
  position: relative; flex: var(--n) 1 0; min-width: 0;
  display: flex; align-items: flex-end; gap: 8px;
  min-height: 52px; padding: 18px 10px 8px;
  border: 0; border-left: 1px solid var(--rule-strong); border-radius: 0;
  background: var(--wash); color: var(--sink);
  font-family: var(--font-mono); font-size: 12px; text-align: left; cursor: pointer;
  transition: flex-grow 250ms var(--ease), background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.seg:first-child { border-left: 0; }
.seg .dim {
  position: absolute; top: 6px; left: 6px; right: 6px; height: 7px;
  border-inline: 1px solid currentColor;
}
.seg .dim::before { content: ""; position: absolute; left: 0; right: 0; top: 3px; height: 1px; background: currentColor; }
.seg-n { font-size: 15px; }
.seg-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.seg svg { flex: none; align-self: center; }
.seg[aria-pressed="true"] { box-shadow: inset 0 -4px 0 currentColor; }
.seg:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; }
.seg:active { transform: scale(0.98); }

.s-todo { --wash: var(--todo-wash); --sink: var(--todo-ink); }
.s-in-progress { --wash: var(--prog-wash); --sink: var(--prog-ink); }
.s-blocked { --wash: var(--block-wash); --sink: var(--block-ink); }
.s-done { --wash: var(--done-wash); --sink: var(--done-ink); }

/* ---------- List ---------- */
.list-head, .row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 168px 68px 140px;
  column-gap: 16px; align-items: center;
}
.list-head {
  margin-top: 24px; padding: 8px 20px;
  border: 1px solid var(--rule-strong); border-bottom: 0;
  background: var(--surface);
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.list { border: 1px solid var(--rule-strong); background: var(--surface); }
.list:empty { display: none; }
.row {
  position: relative; min-height: 64px; padding: 10px 20px;
  border-top: 1px solid var(--rule);
  transition: background-color 160ms var(--ease), box-shadow 160ms var(--ease);
}
.row:first-child { border-top: 0; }
.row.is-open { background: var(--accent-wash); box-shadow: inset 4px 0 0 var(--accent); }
.idx { font-family: var(--font-mono); font-size: 22px; line-height: 1; color: var(--accent); letter-spacing: -0.02em; }
.row-main { min-width: 0; }
.open {
  display: block; width: 100%; padding: 0; border: 0; background: none; cursor: pointer;
  text-align: left; font-size: 16px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3;
}
.open::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.open:focus:not(:focus-visible) { outline: none; }
.open:focus-visible { outline: none; }
.open:focus-visible::after { outline: 2px solid var(--accent); outline-offset: -3px; }
.row:active .open::after { background: rgba(26, 90, 158, 0.06); }
.row-meta { margin-top: 3px; font-size: 13px; color: var(--muted); }
.row-meta .sep { padding-inline: 6px; color: var(--rule); }
.row-facts { display: contents; }
.who { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; }
.who-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mono-avatar {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px;
  border: 1px solid var(--rule-strong); font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.04em;
}
.due { font-family: var(--font-mono); font-size: 13px; }
.prio { display: inline-flex; align-items: center; gap: 4px; }
.prio-bars { display: inline-flex; gap: 2px; align-items: flex-end; }
.prio-bars i { display: block; width: 3px; background: var(--rule); }
.prio-bars i:nth-child(1) { height: 6px; } .prio-bars i:nth-child(2) { height: 9px; } .prio-bars i:nth-child(3) { height: 12px; }
.prio-bars i.on { background: var(--ink); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px;
  border: 1px solid currentColor; border-radius: var(--radius);
  background: var(--wash); color: var(--sink);
  font-family: var(--font-mono); font-size: 12px; white-space: nowrap;
  transition: box-shadow 250ms var(--ease), background-color 250ms var(--ease);
}
.row.flash .chip { box-shadow: 0 0 0 4px rgba(26, 90, 158, 0.28); }

/* compact rows when the list column narrows */
@container (max-width: 720px) {
  .toolbar { grid-template-columns: 1fr 1fr; }
  .field-search { grid-column: 1 / -1; }
  .list-head { display: none; }
  .list { margin-top: 20px; }
  .row {
    grid-template-columns: 40px minmax(0, 1fr);
    grid-template-areas: "idx main" "idx facts";
    row-gap: 8px; padding: 14px 16px; align-items: start;
  }
  .idx { grid-area: idx; font-size: 18px; padding-top: 2px; }
  .row-main { grid-area: main; }
  .row-facts { grid-area: facts; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
  .who { font-size: 13px; }
  .mono-avatar { width: 24px; height: 24px; font-size: 10px; }
}

/* ---------- Empty / error ---------- */
.empty {
  margin-top: 24px; padding: 40px 24px; text-align: center;
  border: 1px dashed var(--rule-strong); background: var(--surface);
}
.empty-art { color: var(--accent); margin-bottom: 12px; }
.empty-title { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; }
.empty-text { margin: 8px auto 20px; max-width: 46ch; color: var(--muted); font-size: 15px; }
.empty-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.load-error { padding: 24px 20px; color: var(--block-ink); font-size: 15px; }
.load-error .btn { margin-top: 12px; }
.noscript { margin-top: 24px; padding: 20px; border: 1px solid var(--rule-strong); background: var(--surface); }
.noscript a { color: var(--accent); }

/* ---------- Inspector ---------- */
.inspector {
  position: sticky; top: var(--topbar);
  height: calc(100vh - var(--topbar)); height: calc(100dvh - var(--topbar));
  display: flex; flex-direction: column; overflow: auto;
  background: var(--surface); border-left: 2px solid var(--rule-strong);
}

.overview { position: relative; margin: 24px; padding: 24px; border: 1px solid var(--rule); }
.corner { position: absolute; width: 14px; height: 14px; border-color: var(--accent); border-style: solid; }
.corner-tl { top: -1px; left: -1px; border-width: 2px 0 0 2px; }
.corner-br { bottom: -1px; right: -1px; border-width: 0 2px 2px 0; }
.eyebrow { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.overview-title { margin-top: 6px; font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; }
.overview-lede { margin-top: 8px; color: var(--muted); font-size: 14px; max-width: 46ch; }
.ledger { width: 100%; margin-top: 20px; border-collapse: collapse; font-size: 14px; }
.ledger th {
  padding: 8px 8px 8px 0; text-align: left; border-bottom: 1px solid var(--rule-strong);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted);
}
.ledger td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); }
.ledger .num { text-align: right; padding-right: 16px; font-family: var(--font-mono); font-size: 13px; }
.ledger td.when { font-family: var(--font-mono); font-size: 13px; }
.ledger .zero { color: var(--muted); }
.ledger .hot { color: var(--block-ink); }
.overview-sub {
  margin-top: 24px; font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted);
}
.soonest { margin-top: 8px; }
.soon {
  display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 12px; align-items: center;
  width: calc(100% + 16px); min-height: 48px; padding: 6px 8px; margin-inline: -8px;
  border: 0; border-bottom: 1px solid var(--rule); background: none; cursor: pointer; text-align: left;
  font-size: 14px; transition: background-color 160ms var(--ease);
}
.soon:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
.soon:active { transform: scale(0.99); }
.soon-no { font-family: var(--font-mono); color: var(--accent); }
.soon-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.soon-due { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.keys { margin-top: 20px; font-size: 13px; color: var(--muted); }

/* ---------- Detail ---------- */
.detail { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.detail-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 24px; border-bottom: 1px solid var(--rule-strong); background: var(--surface);
}
.sheet-no { min-width: 0; font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sheet-no .big { display: inline-block; margin-right: 8px; font-size: 13px; color: var(--accent); }
.sheet-no .note { color: var(--block-ink); text-transform: none; letter-spacing: 0; }
.detail-nav { display: flex; gap: 8px; }
.detail-scroll { flex: 1; min-height: 0; overflow: auto; padding: 24px 24px 48px; }

.detail-title {
  display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 16px; align-items: start;
  font-size: 27px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.15;
}
.detail-title:focus { outline: none; }
.detail-title:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
.detail-title .numeral {
  font-family: var(--font-mono); font-weight: 400; font-size: 44px; line-height: 0.9;
  letter-spacing: -0.04em; color: var(--accent);
}

.status-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; margin-top: 24px; }
.field-status select { width: 220px; font-weight: 500; }
.field-status select.s-todo, .field-status select.s-in-progress, .field-status select.s-blocked, .field-status select.s-done {
  background-color: var(--wash); color: var(--sink); border-color: var(--sink);
}
.stamp {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px;
  font-family: var(--font-mono); font-size: 12px; color: var(--muted);
}
.stamp.is-fresh { color: var(--done-ink); animation: stamp-in 220ms var(--ease); }
.stamp svg { flex: none; }
@keyframes stamp-in { from { opacity: 0; transform: scale(1.08); } to { opacity: 1; transform: none; } }

.titleblock {
  display: grid; grid-template-columns: 1fr 1fr; margin-top: 24px;
  border: 2px solid var(--rule-strong);
}
.tb-cell { padding: 10px 12px; border-right: 1px solid var(--rule-strong); border-bottom: 1px solid var(--rule-strong); min-width: 0; }
.tb-cell:nth-child(2n) { border-right: 0; }
.tb-cell:nth-last-child(-n + 2) { border-bottom: 0; }
.tb-cell dt { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tb-cell dd { margin-top: 4px; font-size: 15px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.tag { font-family: var(--font-mono); font-size: 12px; padding: 2px 6px; border: 1px solid var(--rule); }

.block-label {
  margin-top: 28px; padding-bottom: 6px; border-bottom: 1px solid var(--rule);
  font-family: var(--font-mono); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
}
.body { margin-top: 12px; font-family: var(--font-read); font-size: 17px; line-height: 1.65; max-width: 62ch; }
.body p + p { margin-top: 14px; }
.body strong { font-family: var(--font-ui); font-weight: 600; }

.rev-table { width: 100%; margin-top: 8px; border-collapse: collapse; font-size: 14px; }
.rev-table th {
  text-align: left; padding: 6px 8px 6px 0; font-family: var(--font-mono); font-size: 11px; font-weight: 400;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--rule-strong);
}
.rev-table td { padding: 8px 8px 8px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.rev-table td:first-child, .rev-table td:last-child { font-family: var(--font-mono); font-size: 13px; white-space: nowrap; }
.rev-table td:first-child { color: var(--accent); width: 44px; }
.rev-table tr.latest td { background: var(--accent-wash); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; z-index: 60; left: 24px; bottom: 24px;
  display: flex; align-items: center; gap: 8px;
  max-width: min(560px, calc(100vw - 32px)); padding: 8px 8px 8px 16px;
  background: var(--ink); color: #eaf1f7; border-radius: var(--radius);
  box-shadow: 0 8px 24px rgba(19, 38, 59, 0.24);
  animation: toast-in 200ms var(--ease);
}
.toast-text { font-size: 14px; line-height: 1.4; }
.btn-toast { flex: none; color: #9cc7f5; border-color: #4a6280; padding: 10px 16px; }
.btn-toast-x { flex: none; color: #eaf1f7; border-color: transparent; }
.toast .btn:focus-visible { outline-color: #9cc7f5; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ---------- Hover (pointer devices only) ---------- */
@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: #134a85; }
  .btn-quiet:hover, .btn-icon:hover:not(:disabled) { border-color: var(--rule-strong); background: var(--accent-wash); }
  .btn-close:hover { background: var(--ink); color: var(--surface); }
  .topbar .btn-quiet:hover { background: #22395a; border-color: #8fbfee; }
  .btn-toast:hover { background: #22395a; color: #cfe4fb; }
  .btn-toast-x:hover { background: #22395a; }
  .row:hover:not(.is-open) { background: #f1f5f9; }
  .row:hover .open { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; }
  .seg:hover { box-shadow: inset 0 -4px 0 currentColor; filter: saturate(1.2); }
  .soon:hover { background: var(--accent-wash); }
  input[type="search"]:hover, select:hover { border-color: var(--rule-strong); }
  .noscript a:hover { text-decoration-thickness: 2px; }
}

/* ---------- Narrow screens ---------- */
@media (max-width: 900px) {
  .workspace { grid-template-columns: minmax(0, 1fr); }
  .inspector { position: static; height: auto; overflow: visible; border-left: 0; border-top: 2px solid var(--rule-strong); }
  .overview { margin: 20px; }
  .detail {
    position: fixed; inset: 0; z-index: 40; background: var(--surface);
    animation: sheet-in 220ms var(--ease);
  }
  body.detail-open { overflow: hidden; }
  .toast { left: 16px; right: 16px; bottom: 16px; max-width: none; }
}
@keyframes sheet-in { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

@media (max-width: 600px) {
  .topbar { padding-inline: 20px; }
  .brand-sub, .session-text { display: none; }
  .topbar .btn-quiet { padding: 10px 12px; font-size: 13px; }
  .register { padding: 20px 20px 40px; }
  h1 { font-size: 26px; }
  .seg { padding-inline: 8px; gap: 6px; }
  .seg-label { display: none; }
  .detail-bar { padding: 8px 16px; }
  .detail-scroll { padding: 20px 20px 40px; }
  .detail-title { font-size: 23px; column-gap: 12px; }
  .detail-title .numeral { font-size: 36px; }
  .field-status { flex: 1 1 100%; }
  .field-status select { width: 100%; }
  .titleblock { grid-template-columns: 1fr; }
  .tb-cell { border-right: 0; }
  .tb-cell:nth-last-child(2) { border-bottom: 1px solid var(--rule-strong); }
  .body { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
  .btn:active, .seg:active, .soon:active { transform: none; }
  .seg { transition: background-color 160ms linear; }
  .stamp.is-fresh { animation: fade-in 160ms linear; }
  .toast { animation: fade-in 160ms linear; }
  .detail { animation: fade-in 160ms linear; }
}
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
