/* ---------------------------------------------------------------- tokens */
/* processdoc.art — mirrors brand/tokens.css, which is the source of truth.
   Warm neutrals rather than the usual blue-grey: paper, not screen. */
:root {
  --bg:        #F5F2ED;
  --surface:   #FBFAF8;
  --surface-2: #F1EDE6;
  --line:      #E4DED4;
  --line-soft: #EDE8E0;
  --ink:       #16151B;
  --ink-2:     #46424B;
  --muted:     #7C7568;
  --accent:    #5B44E0;
  --accent-ink:#FBFAF8;
  --accent-sf: #EDE9FD;
  --clay:      #E0663D;
  --clay-sf:   #FBEDE6;
  --ok:        #10795A;
  --ok-sf:     #E3F2EB;
  --warn:      #A96F12;
  --warn-sf:   #FAF0DC;
  --danger:    #BE3A2B;
  --danger-sf: #FBE9E5;
  --shadow:    0 1px 2px rgba(34,26,18,.05), 0 6px 20px -8px rgba(34,26,18,.12);
  --shadow-lg: 0 8px 40px -12px rgba(34,26,18,.26);
  --r:         10px;
  --r-lg:      14px;
  --sidebar:   248px;
  --display:   'Iowan Old Style', 'Palatino Linotype', Palatino, Georgia,
               'Times New Roman', ui-serif, serif;
}
:root[data-theme="dark"], :root.dark {
  --bg:        #131118;
  --surface:   #1B1922;
  --surface-2: #23202C;
  --line:      #2E2A38;
  --line-soft: #241F2C;
  --ink:       #EDEAF2;
  --ink-2:     #C2BBCE;
  --muted:     #8E869C;
  --accent:    #A99AFF;
  --accent-ink:#151122;
  --accent-sf: #241E3D;
  --clay:      #F0916A;
  --clay-sf:   #33201A;
  --ok:        #3FC894;
  --ok-sf:     #102A20;
  --warn:      #E0A33A;
  --warn-sf:   #2C2413;
  --danger:    #F0705E;
  --danger-sf: #301A17;
  --shadow:    0 1px 2px rgba(0,0,0,.4), 0 8px 24px -12px rgba(0,0,0,.6);
  --shadow-lg: 0 10px 50px -12px rgba(0,0,0,.7);
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4 { margin: 0; letter-spacing: -.015em; line-height: 1.25; }
/* Guides are documents, so their titles are set like documents. Serif is
   reserved for display sizes — never for UI chrome, labels or data. */
.display, .doc-head h1, .empty h3, .auth-card h1, .auth-art h2, .step-view h3 {
  font-family: var(--display); font-weight: 600; letter-spacing: -.02em;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* ---------------------------------------------------------------- shared */
.btn {
  display: inline-flex; align-items: center; gap: 7px; justify-content: center;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  border-radius: 8px; padding: 7px 13px; font-size: 14px; font-weight: 550;
  cursor: pointer; transition: background .12s, border-color .12s, transform .06s;
  white-space: nowrap;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.danger { color: var(--danger); border-color: var(--line); }
.btn.danger:hover { background: var(--danger-sf); border-color: var(--danger); }
.btn.sm { padding: 4px 9px; font-size: 13px; border-radius: 7px; }
.btn.lg { padding: 10px 18px; font-size: 15px; border-radius: 9px; }
.ic { width: 16px; height: 16px; flex: 0 0 auto; }

.input, .select, .textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 8px; padding: 8px 11px; outline: none; transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-sf);
}
.textarea { resize: vertical; min-height: 72px; line-height: 1.5; }
label.field { display: block; margin-bottom: 14px; }
label.field > span { display: block; font-size: 13px; font-weight: 550; color: var(--ink-2); margin-bottom: 5px; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); }
.pad { padding: 18px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12.5px; }
.stack { display: grid; gap: 14px; }
.hidden { display: none !important; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag {
  display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 550;
  padding: 3px 9px; border-radius: 999px; background: var(--surface-2);
  border: 1px solid var(--line); color: var(--ink-2); white-space: nowrap;
}
.tag .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tag.fresh { background: var(--ok-sf); color: var(--ok); border-color: transparent; }
.tag.due   { background: var(--warn-sf); color: var(--warn); border-color: transparent; }
.tag.stale { background: var(--danger-sf); color: var(--danger); border-color: transparent; }
.tag.unset { background: var(--surface-2); color: var(--muted); }
.tag.draft { background: var(--surface-2); color: var(--muted); }
.tag.published { background: var(--accent-sf); color: var(--accent); border-color: transparent; }
.tag .avatar { width: 15px; height: 15px; font-size: 8px; }

.avatar {
  width: 26px; height: 26px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; font-size: 11px; font-weight: 650; color: #fff;
  background: hsl(var(--hue, 210) 55% 48%);
}
.avatar.lg { width: 36px; height: 36px; font-size: 14px; }

.empty { text-align: center; padding: 52px 20px; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 6px; font-size: 17px; }
.empty .btn { margin-top: 16px; }

/* ----------------------------------------------------------------- shell */
#app { min-height: 100%; }
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }

.sidebar {
  background: var(--surface); border-right: 1px solid var(--line);
  display: flex; flex-direction: column; padding: 14px 12px; gap: 4px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 9px; padding: 6px 8px 14px; }
.brand .mark { width: 26px; height: 26px; flex: 0 0 auto; }
.brand b {
  font-family: var(--display); font-size: 19px; font-weight: 600;
  letter-spacing: -.025em; line-height: 1;
}
.brand .tld { color: var(--clay); }

.org-switch {
  display: flex; align-items: center; gap: 9px; width: 100%; text-align: left;
  border: 1px solid var(--line); background: var(--surface-2); border-radius: 9px;
  padding: 7px 10px; cursor: pointer; margin-bottom: 10px;
}
.org-switch:hover { border-color: var(--accent); }
.org-switch .name { font-weight: 600; font-size: 14px; }
.org-switch .role { font-size: 11.5px; color: var(--muted); text-transform: capitalize; }

.nav-item {
  display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 8px;
  color: var(--ink-2); cursor: pointer; font-size: 14px; font-weight: 500; border: none;
  background: none; width: 100%; text-align: left;
}
.nav-item:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.nav-item.active { background: var(--accent-sf); color: var(--accent); font-weight: 600; }
.nav-item .count { margin-left: auto; font-size: 12px; color: var(--muted); }
.nav-item .ic { width: 17px; height: 17px; }
.nav-label {
  font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted);
  padding: 16px 10px 6px; font-weight: 650;
}
.space-dot { width: 9px; height: 9px; border-radius: 3px; background: hsl(var(--hue,210) 60% 52%); flex: 0 0 auto; }

/* Reorderable space rows on the People page. */
.space-row {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 9px; background: var(--surface);
  font-size: 13.5px; transition: border-color .12s, box-shadow .12s;
}
.space-row .grip { color: var(--muted); cursor: grab; display: flex; touch-action: none; }
.space-row .grip:active { cursor: grabbing; }
.space-row .name { flex: 1; font-weight: 550; }
.space-row.dragging { opacity: .45; }
.space-row.drop-above { box-shadow: 0 -3px 0 -1px var(--accent); }
.space-row:hover { border-color: var(--accent); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; padding: 12px 24px; min-height: 58px;
}
.topbar h1 { font-size: 17px; }
.content { padding: 24px; max-width: 1180px; width: 100%; }
.content.narrow { max-width: 860px; }

.search-box { position: relative; flex: 1; max-width: 380px; }
.search-box .input { padding-left: 32px; }
.search-box .ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--muted); }

/* ------------------------------------------------------------- dashboard */
.grid { display: grid; gap: 16px; }
.grid.two { grid-template-columns: 1.4fr 1fr; }
.grid.stats { grid-template-columns: repeat(4, 1fr); }
/* Breakpoints account for the fixed 248px sidebar: the content column, not the
   viewport, is what actually runs out of room. */
@media (max-width: 1120px) { .grid.two { grid-template-columns: 1fr; } }
@media (max-width: 1000px) { .grid.stats { grid-template-columns: repeat(2,1fr); } }

.stat { padding: 16px 18px; }
.stat .k { font-size: 12.5px; color: var(--muted); font-weight: 550; }
.stat .v { font-size: 30px; font-weight: 700; letter-spacing: -.03em; margin-top: 4px; line-height: 1.1; }
.stat .v small { font-size: 14px; font-weight: 500; color: var(--muted); letter-spacing: 0; }

.health { display: flex; align-items: center; gap: 20px; }
.dial { width: 92px; height: 92px; flex: 0 0 auto; position: relative; }
.dial svg { transform: rotate(-90deg); }
.dial .val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 21px; font-weight: 700; }
.bars { display: grid; gap: 7px; flex: 1; min-width: 0; }
.bar-row { display: grid; grid-template-columns: 74px 1fr 34px; align-items: center; gap: 10px; font-size: 13px; }
.bar { height: 7px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; }

.section-head { display: flex; align-items: center; gap: 10px; margin: 4px 0 12px; }
.section-head h2 { font-size: 15px; }
.section-head .muted { font-size: 13px; }

/* ------------------------------------------------------------ guide list */
.doc-row {
  display: flex; align-items: center; gap: 14px; padding: 13px 16px;
  border-bottom: 1px solid var(--line-soft); cursor: pointer; transition: background .1s;
}
.doc-row:last-child { border-bottom: none; }
.doc-row:hover { background: var(--surface-2); }
.doc-row .title { font-weight: 600; font-size: 14.5px; }
.doc-row .sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; display: flex; gap: 10px; flex-wrap: wrap; }
.doc-row .grow { min-width: 0; flex: 1; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.chip {
  border: 1px solid var(--line); background: var(--surface); border-radius: 999px;
  padding: 5px 12px; font-size: 13px; cursor: pointer; font-weight: 500; color: var(--ink-2);
}
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ----------------------------------------------------------- doc + steps */
.doc-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 6px; }
.doc-head h1 { font-size: 28px; }
.doc-meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }

.steps { display: grid; gap: 2px; margin-top: 22px; }
.step-view { display: flex; gap: 16px; padding: 20px 0; border-top: 1px solid var(--line); }
.step-view .num {
  flex: 0 0 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-weight: 650; font-size: 14px;
}
.step-view .num.note { background: var(--surface-2); color: var(--muted); font-size: 12px; }
.step-view h3 { font-size: 17px; margin-bottom: 4px; }
.step-view .prose { min-width: 0; flex: 1; }
.prose p { margin: .45em 0; color: var(--ink-2); }
.prose ul, .prose ol { margin: .45em 0; padding-left: 1.3em; color: var(--ink-2); }
.prose code { background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.prose img, .shot { max-width: 100%; border-radius: 10px; border: 1px solid var(--line); display: block; margin-top: 12px; }

.callout-view {
  display: flex; gap: 12px; background: var(--surface-2); border: 1px solid var(--line);
  border-left: 3px solid var(--muted); border-radius: 8px; padding: 12px 14px;
}
.callout-view.warning { background: var(--warn-sf); border-left-color: var(--warn); }

/* ---------------------------------------------------------------- editor */
.editor-step {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 14px; display: flex; gap: 12px; align-items: flex-start; position: relative;
}
.editor-step.dragging { opacity: .4; }
.editor-step.drop-target { box-shadow: 0 -3px 0 -1px var(--accent); }
.editor-step .handle {
  cursor: grab; color: var(--muted); padding: 4px 2px; user-select: none; touch-action: none;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.editor-step .handle .idx { font-size: 12px; font-weight: 650; color: var(--ink-2); }
.editor-step .fields { flex: 1; min-width: 0; display: grid; gap: 8px; }
.title-input {
  border: none; background: none; font-size: 16px; font-weight: 600; padding: 2px 0;
  width: 100%; outline: none; color: var(--ink);
}
.title-input::placeholder { color: var(--muted); font-weight: 500; }
.editor-step .body-input {
  border: 1px solid transparent; background: var(--surface-2); border-radius: 8px;
  padding: 8px 10px; resize: vertical; min-height: 46px; outline: none; width: 100%; font-size: 14px;
}
.editor-step .body-input:focus { border-color: var(--accent); background: var(--surface); }
.editor-step .tools { display: flex; gap: 4px; align-items: center; }
.shot-wrap { position: relative; display: inline-block; max-width: 100%; }
.shot-wrap .shot { max-height: 320px; object-fit: contain; }
.shot-wrap .overlay {
  position: absolute; inset: auto 8px 8px auto; display: flex; gap: 6px; opacity: 0; transition: opacity .12s;
}
.shot-wrap:hover .overlay { opacity: 1; }
.overlay .btn { background: rgba(20,24,32,.82); color: #fff; border-color: transparent; backdrop-filter: blur(6px); }

.dropzone {
  border: 2px dashed var(--line); border-radius: var(--r-lg); padding: 30px 20px; text-align: center;
  color: var(--muted); transition: border-color .12s, background .12s; cursor: pointer;
}
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-sf); color: var(--accent); }
.dropzone strong { color: var(--ink); display: block; font-size: 15px; margin-bottom: 4px; }
.dropzone.over strong { color: var(--accent); }

/* ------------------------------------------------------------------ runs */
.run-item {
  display: flex; gap: 14px; padding: 14px 16px; border: 1px solid var(--line);
  border-radius: var(--r); background: var(--surface); align-items: flex-start;
}
.run-item.done { background: var(--surface-2); }
.run-item.done .rt { text-decoration: line-through; color: var(--muted); }
.check {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line);
  background: var(--surface); cursor: pointer; flex: 0 0 auto; display: grid; place-items: center;
  color: transparent; transition: all .12s; margin-top: 1px;
}
.check:hover { border-color: var(--accent); }
.check.on { background: var(--ok); border-color: var(--ok); color: #fff; }
.progress { height: 6px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ok); border-radius: 4px; transition: width .25s; }

/* ---------------------------------------------------------------- modals */
.scrim {
  position: fixed; inset: 0; background: rgba(10,13,20,.5); backdrop-filter: blur(3px);
  display: grid; place-items: center; z-index: 100; padding: 20px; overflow-y: auto;
}
.modal {
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: 90vh; overflow: auto;
}
.modal.wide { width: min(920px, 100%); }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.modal-head h2 { font-size: 17px; }
.modal-body { padding: 16px 20px; }
.modal-foot { display: flex; gap: 8px; justify-content: flex-end; padding: 0 20px 18px; }

.toast-wrap { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: grid; gap: 8px; }
.toast {
  background: var(--ink); color: var(--bg); padding: 9px 16px; border-radius: 999px;
  font-size: 13.5px; font-weight: 550; box-shadow: var(--shadow-lg); animation: pop .18s ease-out;
}
.toast.err { background: var(--danger); color: #fff; }
@keyframes pop { from { opacity: 0; transform: translateY(8px); } }

/* --------------------------------------------------------------- capture */
.capture-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.frame {
  position: relative; border: 2px solid var(--line); border-radius: 9px; overflow: hidden;
  cursor: pointer; aspect-ratio: 16/10; background: var(--surface-2);
}
.frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.frame.on { border-color: var(--accent); }
.frame .badge {
  position: absolute; top: 6px; left: 6px; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(15,18,25,.7); color: #fff; font-size: 11px; display: grid; place-items: center; font-weight: 650;
}
.frame.on .badge { background: var(--accent); color: var(--accent-ink); }
.frame .t { position: absolute; bottom: 5px; right: 6px; font-size: 10.5px; color: #fff;
  background: rgba(15,18,25,.7); padding: 1px 5px; border-radius: 4px; }

.annot-stage { background: var(--surface-2); border-radius: 10px; padding: 10px; display: grid; place-items: center; overflow: auto; }
.annot-stage canvas { max-width: 100%; cursor: crosshair; border-radius: 6px; touch-action: none; }
.tool-row { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.tool { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 11px;
  font-size: 13px; cursor: pointer; font-weight: 550; }
.tool.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

.progress-line { height: 4px; background: var(--surface-2); border-radius: 4px; overflow: hidden; margin-top: 10px; }
.progress-line > i { display: block; height: 100%; background: var(--accent); transition: width .2s; }

/* ------------------------------------------------------------------ auth */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
@media (max-width: 900px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { display: none; } }
.auth-panel { display: grid; place-items: center; padding: 32px; }
.auth-card { width: min(400px, 100%); }
.auth-art {
  position: relative; overflow: hidden;
  background: linear-gradient(158deg, #6B54F0 0%, #5B44E0 42%, #3E2CA8 100%);
  color: #FBFAF8; padding: 56px 48px; display: flex; flex-direction: column;
  justify-content: center; gap: 20px;
}
/* The mark, blown up as a ground rule rather than a decoration. */
.auth-art .watermark {
  position: absolute; right: -3%; bottom: -4%; width: 52%; opacity: .09; pointer-events: none;
}
.auth-art > * { position: relative; }
.auth-art h2 { font-size: 34px; line-height: 1.15; max-width: 11em; }
.auth-art .rule { width: 56px; height: 4px; border-radius: 2px; background: var(--clay); }
.auth-art ul { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 16px; max-width: 25em; }
.auth-art li { display: flex; gap: 14px; align-items: flex-start; font-size: 14.5px; opacity: .92; }
.auth-art li b { display: block; font-weight: 650; margin-bottom: 2px; opacity: 1; }
.auth-art li .n {
  flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: rgba(251,250,248,.16); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums;
}
.auth-art .foot { margin-top: 6px; font-size: 12.5px; letter-spacing: .12em; opacity: .6; text-transform: uppercase; }

@media (max-width: 820px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; z-index: 60; left: 0; top: 0; bottom: 0; width: var(--sidebar);
             transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .sidebar.open { transform: none; }
  .content { padding: 16px; }
  .topbar { padding: 10px 14px; }
}
.menu-btn { display: none; }
@media (max-width: 820px) { .menu-btn { display: inline-flex; } }

@media print {
  /* Paper is always light. Without this, printing from dark mode puts near-white
     ink (--ink: #EDEAF2) on a white sheet and the page comes out blank. The
     compound selectors match the specificity of :root[data-theme="dark"] and win
     on source order, so the override holds whichever theme is active. */
  :root, :root[data-theme="dark"], :root[data-theme="light"] {
    --bg:        #FFFFFF;
    --surface:   #FFFFFF;
    --surface-2: #F4F1EC;
    --line:      #C9C2B6;
    --line-soft: #DED8CE;
    --ink:       #16151B;
    --ink-2:     #33303A;
    --muted:     #55504A;
    --accent:    #3F2FB0;   /* darkened: must stay legible as ink, not backlit */
    --accent-ink:#FFFFFF;
    --accent-sf: #EDEAFB;
    --clay:      #A8431F;
    --clay-sf:   #F7EAE3;
    --ok:        #0B5C44;  --ok-sf:     #E6F1EC;
    --warn:      #7E5209;  --warn-sf:   #F7EFDF;
    --danger:    #93291D;  --danger-sf: #F8E7E3;
    --shadow: none; --shadow-lg: none;
  }

  .sidebar, .topbar, .noprint { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .content { padding: 0; max-width: none; }
  body { background: #fff; color: var(--ink); }

  /* Browsers drop background fills when "background graphics" is off, which
     would leave white numerals on white paper. Draw the badge as an outline so
     legibility never depends on a printed background. */
  .step-view .num {
    background: transparent !important;
    color: var(--accent) !important;
    border: 1.5px solid var(--accent);
  }
  .tag { border: 1px solid var(--line); background: transparent !important; }
  .card { box-shadow: none; }
  .step-view { break-inside: avoid; }
  .shot, .prose img { max-height: none; }
  a { text-decoration: none; }
}
