:root {
  color-scheme: light;
  --bg: #f5f7f3;
  --ink: #17211d;
  --muted: #5a665f;
  --line: #d7ded5;
  --surface: #fffefa;
  --soft: #edf5f0;
  --warn: #fff1d9;
  --accent: #226b50;
  --accent-two: #8f4e26;
  --accent-three: #285f88;
  --danger: #963728;
  font-family: "Aptos", "Segoe UI", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
.receipt-command { width: min(1320px, calc(100% - 32px)); margin: 0 auto; padding: 30px 0 54px; }
.command-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 1px solid var(--line); padding-bottom: 22px; }
.crumb { margin: 0 0 10px; color: var(--accent); font-weight: 900; letter-spacing: 0; }
h1 { margin: 0; font-size: clamp(2.1rem, 6vw, 4.4rem); line-height: 1; letter-spacing: 0; text-wrap: balance; }
h2 { margin: 0 0 14px; font-size: 1.04rem; }
p { margin: 0; }
.lede { max-width: 82ch; margin-top: 18px; color: var(--muted); font-size: 1.04rem; line-height: 1.6; }
nav { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
a { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); color: var(--ink); background: #fff; text-decoration: none; padding: 0 13px; border-radius: 6px; white-space: nowrap; font-weight: 800; }
a:focus-visible { outline: 3px solid #8fc3d6; outline-offset: 3px; }
.summary-grid, .answer-grid, .phase-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 20px; }
.metric, .panel, .answer, .phase, .row-card { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; }
.metric strong { display: block; font-size: 1.85rem; line-height: 1; color: var(--accent-two); overflow-wrap: anywhere; }
.metric span, .muted { color: var(--muted); line-height: 1.45; }
.panel { margin-top: 20px; }
.phase { min-height: 170px; background: var(--soft); }
.phase strong, .row-card strong { display: block; margin-bottom: 8px; }
.row-stack { display: grid; gap: 12px; }
.row-card { display: grid; grid-template-columns: 0.75fr 1.35fr 1.1fr; gap: 14px; align-items: start; }
.command, code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; }
.command { padding: 10px; border-radius: 6px; background: #16231d; color: #f8fff9; font-size: 0.78rem; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-wrap; }
.pill-list, .flag-grid { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.pill, .flag { border: 1px solid var(--line); border-radius: 999px; padding: 6px 9px; background: #fff; font-size: 0.8rem; font-weight: 800; color: var(--ink); overflow-wrap: anywhere; }
.pill.ok { background: var(--soft); color: var(--accent); }
.pill.hold { background: var(--warn); color: var(--accent-two); }
.pill.stop { background: #fde8e2; color: var(--danger); }
.boundary-panel { background: var(--warn); }
@media (max-width: 900px) {
  .command-head, .row-card { display: block; }
  nav, .row-card > * + * { margin-top: 12px; justify-content: flex-start; }
}
@media (max-width: 620px) {
  .receipt-command { width: min(100% - 22px, 1320px); }
  nav a { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
