/* Husco 5000 service guide — workshop-first, dirty-hands UI */
:root {
  --bg: #efe9dc;
  --bg-2: #e4ddce;
  --paper: #fffdf7;
  --ink: #1b1a16;
  --ink-dim: #4a463c;
  --line: #d0c8b6;
  --line-strong: #b7ae9a;
  --accent: #c24e0a;
  --accent-dark: #9a3c07;
  --accent-soft: #f8e6d6;
  --steel: #24343e;
  --steel-2: #3b5160;
  --danger: #8a1c1c;
  --danger-bg: #f7e6e3;
  --warn: #7a5200;
  --warn-bg: #f6ecd0;
  --ok: #1b5a38;
  --ok-bg: #e3efe6;
  --cite: #5c6670;
  --shadow: 0 1px 2px rgba(27, 26, 22, 0.06), 0 10px 28px rgba(27, 26, 22, 0.07);
  --radius: 14px;
  --tap: 48px;
  --max: 46rem;
  --font: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", "Cascadia Mono", Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 8.5rem; }
.stage { scroll-margin-top: 8.5rem; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.55;
  color: var(--ink);
  background:
    radial-gradient(1200px 400px at 50% -80px, #f7f1e4, transparent 60%),
    var(--bg);
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

img { max-width: 100%; height: auto; display: block; }
button, input { font: inherit; }
a { color: var(--accent-dark); }
a:hover { color: var(--accent); }

.skip {
  position: absolute;
  left: -999px;
  top: 0;
}
.skip:focus {
  left: 12px; top: 12px;
  background: var(--paper);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--steel);
  color: #f4efe6;
  box-shadow: 0 2px 10px rgba(0,0,0,.22);
}
.header-inner {
  max-width: 72rem;
  margin: 0 auto;
  padding: 12px 16px 10px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.brand { min-width: 0; }
.eyebrow {
  margin: 0 0 2px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #d8c4a4;
  font-weight: 700;
}
.site-header h1 {
  margin: 0;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  font-weight: 750;
  line-height: 1.2;
}
.tagline {
  margin: 3px 0 0;
  font-size: 13px;
  color: #c9d3da;
}
.header-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  flex-shrink: 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
  line-height: 1.2;
}
.btn-pdf {
  background: var(--accent);
  color: #fff;
  border-color: #a84408;
}
.btn-pdf:hover { background: #d45810; color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line-strong);
}
.btn-ghost:hover { background: var(--bg-2); }
.btn-danger {
  background: var(--danger-bg);
  color: var(--danger);
  border-color: #e0b8b3;
}

/* Stage nav — v2 prominent workshop tabs */
.nav-ico {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  display: block;
}
.stage-nav-wrap {
  position: sticky;
  top: 72px;
  z-index: 30;
  background: #142026;
  border-bottom: 2px solid #c24e0a;
  box-shadow: 0 4px 14px rgba(0,0,0,.18);
}
.stage-nav-wrap { isolation: isolate; }
.stage-nav-fade {
  display: none;
}
.stage-nav {
  max-width: 72rem;
  margin: 0 auto;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 10px 16px;
  scrollbar-width: thin;
  scrollbar-color: #c24e0a #1b292f;
}
.stage-nav a {
  flex: 0 0 auto;
  color: #e8eef2;
  text-decoration: none;
  font-weight: 800;
  font-size: 15px;
  padding: 10px 14px;
  min-height: 52px;
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 14px;
  border: 2px solid #3a515c;
  background: #1e3038;
  white-space: nowrap;
  position: relative;
}
.stage-nav a .nav-text { display: inline-flex; align-items: baseline; gap: 6px; }
.stage-nav a .meter { font-size: 11px; font-weight: 700; opacity: .8; font-variant-numeric: tabular-nums; }
.stage-nav a:hover { background: #2c454f; color: #fff; border-color: #5a7380; }
.stage-nav a.active {
  background: var(--accent);
  color: #fff;
  border-color: #ffd2a8;
  box-shadow: 0 0 0 2px rgba(194,78,10,.35);
}
.stage-nav a.active .meter { opacity: 1; }
.stage-nav .dot {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #6a7f88;
}
.stage-nav a.done .dot { background: #3dba74; }
.stage-nav a.active .dot { background: #fff; }

/* Bottom tab bar (phones) */
.bottom-nav,
.more-sheet,
.more-backdrop { display: none; }

.stage-pager {
  display: flex;
  gap: 10px;
  margin: 28px 0 4px;
}
.stage-pager a,
.stage-pager .pager-disabled {
  flex: 1;
  min-height: 52px;
  padding: 10px 14px;
  border-radius: 12px;
  font-weight: 800;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  border: 2px solid var(--line-strong);
  background: var(--paper);
  color: var(--ink);
}
.stage-pager .pager-next {
  background: var(--steel);
  color: #f4efe6;
  border-color: var(--steel);
}
.stage-pager .pager-next:hover { background: var(--steel-2); color: #fff; }
.stage-pager .pager-prev:hover { background: var(--bg-2); }
.stage-pager .pager-disabled {
  opacity: .4;
  pointer-events: none;
}

.progress-bar {
  height: 4px;
  background: #132024;
}
.progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width .25s ease;
}

/* Layout */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 16px 96px;
}
.stage { display: none; padding-top: 8px; }
.stage.active { display: block; }
.stage > h2 {
  margin: 8px 0 6px;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.lede { color: var(--ink-dim); margin: 0 0 16px; }

/* Cards / asides */
.card, .callout, figure, .kit, .step, .step-block, table.wrap-shadow {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card, .callout, .kit { padding: 16px 16px 14px; margin: 0 0 14px; }
.card h3, .kit h3, .callout h3 { margin: 0 0 8px; font-size: 1.05rem; }
.callout.safety { background: var(--danger-bg); border-color: #e2b4ae; }
.callout.safety h3 { color: var(--danger); }
.callout.warn { background: var(--warn-bg); border-color: #e4d19a; }
.callout.warn h3 { color: var(--warn); }
.callout.assume { background: #eef2f4; border-color: #c9d4da; }
.callout.ok { background: var(--ok-bg); border-color: #b7d4c2; }
.callout.manual {
  background: var(--steel);
  color: #f3efe6;
  border-color: var(--steel);
}
.callout.manual a { color: #ffd2a8; }
.callout.manual p:last-child { margin-bottom: 0; }
ul.plain, .callout ul, .kit ul, .step ul { margin: 8px 0 0; padding-left: 1.2em; }
li + li { margin-top: 4px; }

.cite, figcaption, .src {
  font-size: 12.5px;
  color: var(--cite);
  margin: 8px 0 0;
}
.cite { font-variant-numeric: tabular-nums; }

figure {
  margin: 0 0 16px;
  padding: 8px;
  overflow: hidden;
}
figure img {
  width: 100%;
  border-radius: 10px;
  background: #fff;
}
figcaption { padding: 6px 8px 6px; }

/* Steps / checkboxes */
.step {
  display: grid;
  grid-template-columns: var(--tap) 1fr;
  gap: 0 10px;
  padding: 14px 14px 14px 8px;
  margin: 0 0 12px;
  align-items: start;
}
.step .check {
  position: relative;
  width: var(--tap);
  height: var(--tap);
  display: grid;
  place-items: center;
}
.step input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 30px;
  height: 30px;
  border: 2.5px solid var(--steel);
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  margin: 0;
}
.step input[type="checkbox"]:checked {
  background: var(--ok) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M3 8.2 6.4 12 13 4.5'/></svg>") center/18px no-repeat;
  border-color: var(--ok);
}
.step input[type="checkbox"]:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}
.step.done { background: #f6f8f4; }
.step h3 { margin: 6px 0 6px; font-size: 1.05rem; }
.step p { margin: 0 0 8px; }
.step p:last-child { margin-bottom: 0; }
.num-badge {
  display: inline-block;
  min-width: 1.6em;
  margin-right: 4px;
  color: var(--accent-dark);
  font-weight: 800;
}

details.why {
  margin: 8px 0 4px;
  border-top: 1px dashed var(--line);
  padding-top: 6px;
}
details.why summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--steel-2);
  min-height: 40px;
  display: flex;
  align-items: center;
  list-style: none;
}
details.why summary::-webkit-details-marker { display: none; }
details.why summary::before {
  content: "▸ ";
  color: var(--accent);
}
details.why[open] summary::before { content: "▾ "; }

/* Tabs — recommended / alternate */
.tabs {
  display: flex;
  gap: 6px;
  margin: 0 0 16px;
  padding: 6px;
  background: var(--steel);
  border: 2px solid var(--steel);
  border-radius: 14px;
}
.tabs button {
  flex: 1;
  min-height: 52px;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #2c4049;
  color: #dce4ea;
  font-weight: 800;
  font-size: 1.02rem;
  cursor: pointer;
  padding: 10px 12px;
}
.tabs button:hover { background: #3a515c; color: #fff; }
.tabs button[aria-selected="true"] {
  background: var(--accent);
  color: #fff;
  border-color: #ffd2a8;
  box-shadow: 0 0 0 2px rgba(194,78,10,.3);
}
.tab-panel[hidden] { display: none; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  min-width: 520px;
}
th, td {
  text-align: left;
  padding: 11px 12px;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
th {
  background: var(--steel);
  color: #f4efe6;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 750;
  position: sticky;
  top: 0;
}
tr:last-child td { border-bottom: 0; }
tr:nth-child(even) td { background: #faf7f0; }
td.pn, .pn { font-family: var(--mono); font-size: 0.92em; font-weight: 650; }
.torque-hl td:nth-child(2) { font-weight: 800; font-size: 1.05em; color: var(--accent-dark); }

/* Filter + tools */
.search {
  width: 100%;
  min-height: var(--tap);
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 8px 12px;
  background: var(--paper);
  margin: 0 0 12px;
}
.tool-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}
.stat {
  font-size: 14px;
  color: var(--ink-dim);
  font-weight: 650;
}
@media (max-width: 719px) {
  #photos .tool-row { flex-direction: column; align-items: stretch; }
  #photos .tool-row .btn { width: 100%; }
}

.two-col {
  display: grid;
  gap: 12px;
}
@media (min-width: 720px) {
  .two-col { grid-template-columns: 1fr 1fr; }
  .site-header h1 { font-size: 1.35rem; }
  .header-inner { align-items: center; }
  .header-actions { flex-direction: row; }
  .stage-nav-wrap { top: 78px; }
  .stage-nav-wrap { display: block; }
  .bottom-nav, .more-sheet, .more-backdrop { display: none !important; }
}

/* Phone: hide the top pill bar, use a high-contrast bottom tab bar */
@media (max-width: 719px) {
  .stage-nav-wrap { display: none; }
  .site-header { position: sticky; top: 0; }
  .header-inner { padding: 10px 14px 8px; }
  .tagline { display: none; }
  main { padding: 16px 14px calc(118px + env(safe-area-inset-bottom, 0px)); }
  .footer { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
  .bottom-nav {
    display: flex;
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 45;
    background: #142026;
    border-top: 3px solid var(--accent);
    padding: 6px 4px calc(8px + env(safe-area-inset-bottom, 0px));
    justify-content: space-around;
    align-items: stretch;
    gap: 2px;
    box-shadow: 0 -6px 20px rgba(0,0,0,.25);
    min-height: calc(68px + env(safe-area-inset-bottom, 0px));
    box-sizing: border-box;
  }
  .bottom-nav a,
  .bottom-nav .more-toggle {
    flex: 1 1 0;
    flex-shrink: 0;
    min-width: 44px;
    min-height: 56px;
    height: auto;
    margin: 0;
    padding: 6px 2px 5px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: #c5d0d6;
    text-decoration: none;
    font-weight: 800;
    font-size: 11px;
    line-height: 1.15;
    text-align: center;
    background: transparent;
    border: 0;
    border-radius: 10px;
    position: relative;
    cursor: pointer;
    font-family: inherit;
  }
  .bottom-nav .nav-ico { width: 24px; height: 24px; }
  .bottom-nav a.active,
  .bottom-nav .more-toggle.active,
  .bottom-nav .more-toggle[aria-expanded="true"] {
    color: #fff;
    background: var(--accent);
  }
  .bottom-nav .dot {
    position: absolute;
    top: 5px;
    right: calc(50% - 18px);
    width: 7px; height: 7px; border-radius: 50%;
    background: transparent;
  }
  .bottom-nav a.done .dot { background: #3dba74; }
  .bottom-nav a.active.done .dot { background: #fff; }
  .more-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(15, 20, 24, .5);
    z-index: 44;
  }
  .more-backdrop[hidden] { display: none; }
  .more-sheet {
    display: block;
    position: fixed;
    left: 0; right: 0;
    bottom: calc(68px + env(safe-area-inset-bottom, 0px));
    z-index: 46;
    background: #142026;
    color: #f4efe6;
    border-radius: 16px 16px 0 0;
    padding: 12px 12px 10px;
    box-shadow: 0 -8px 28px rgba(0,0,0,.3);
  }
  .more-sheet[hidden] { display: none; }
  .more-title {
    margin: 0 6px 8px;
    font-size: 11px;
    letter-spacing: .12em;
    text-transform: uppercase;
    font-weight: 800;
    color: #d8c4a4;
  }
  .more-sheet a {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 52px;
    padding: 8px 12px;
    color: #e8eef2;
    text-decoration: none;
    font-weight: 800;
    font-size: 16px;
    border-radius: 12px;
    border: 2px solid transparent;
  }
  .more-sheet a .nav-ico { width: 22px; height: 22px; }
  .more-sheet a:hover { background: #1e3038; }
  .more-sheet a.active {
    background: var(--accent);
    color: #fff;
    border-color: #ffd2a8;
  }
  .offline-pill { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
}

@media (min-width: 720px) {
  .stage-nav {
    padding-left: 28px;
    padding-right: 28px;
    gap: 6px;
  }
  .stage-nav a {
    padding: 8px 11px;
    font-size: 14px;
    min-height: 48px;
    gap: 6px;
  }
  .stage-nav-fade {
    display: block;
    pointer-events: none;
    position: absolute;
    top: 0; bottom: 4px; left: 0; right: 0;
    background: linear-gradient(90deg, #142026 0, transparent 24px, transparent calc(100% - 24px), #142026 100%);
    z-index: 1;
  }
  .stage-nav { position: relative; z-index: 0; }
}

.specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
  margin: 0;
  padding: 0;
}
.specs div { margin: 0; }
.specs dt {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--cite);
  font-weight: 750;
}
.specs dd { margin: 0; font-weight: 700; }

.footer {
  max-width: var(--max);
  margin: 0 auto;
  padding: 8px 16px 40px;
  color: var(--ink-dim);
  font-size: 13px;
}
.footer a { color: var(--ink-dim); }

.offline-pill {
  display: none;
  position: fixed;
  right: 12px;
  bottom: 12px;
  background: var(--ok);
  color: #fff;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  z-index: 50;
  box-shadow: var(--shadow);
}
.offline-pill.show { display: block; }


/* Photo notes */
.step-block {
  margin: 0 0 12px;
  padding: 0;
  overflow: hidden;
}
.step-block > .step {
  background: transparent;
  border: 0;
  box-shadow: none;
  margin: 0;
  border-radius: 0;
}
.step-notes {
  border-top: 1px dashed var(--line);
  padding: 8px 14px 12px 14px;
}
.note-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.note-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1.5px solid var(--line-strong);
  background: var(--bg);
  color: var(--steel);
  font-weight: 750;
  font-size: 14px;
  cursor: pointer;
  font-family: inherit;
}
.note-toggle:hover { background: var(--bg-2); }
.note-toggle.has-items {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent-dark);
}
.note-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.4em;
  height: 1.4em;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.note-toggle:not(.has-items) .note-badge { display: none; }
.note-preview {
  font-size: 14px;
  color: var(--ink-dim);
  margin: 0;
  flex: 1 1 12rem;
}
.note-panel {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: #f6f3ec;
  border: 1.5px solid var(--line);
}
.note-panel[hidden] { display: none; }
.note-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
.note-actions .btn { min-height: 44px; font-size: 14px; }
.note-panel textarea {
  width: 100%;
  min-height: 72px;
  border: 1.5px solid var(--line-strong);
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  resize: vertical;
  background: var(--paper);
  color: var(--ink);
}
.note-privacy, .album-privacy {
  font-size: 12.5px;
  color: var(--cite);
  margin: 8px 0 0;
}
.note-status { font-size: 13px; color: var(--ok); margin: 6px 0 0; min-height: 1.2em; }
.thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 0;
}
.thumb {
  width: 72px;
  height: 72px;
  padding: 0;
  border-radius: 10px;
  border: 1.5px solid var(--line-strong);
  background: #ddd;
  cursor: pointer;
  overflow: hidden;
  display: block;
}
.thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border: 0;
  border-radius: 0;
}
.thumb:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.print-only { display: none; }

.note-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.25em;
  height: 1.25em;
  padding: 0 5px;
  margin-left: 2px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
}
.note-count[hidden] { display: none !important; }
.stage-nav a .note-count { margin-left: 4px; }
.bottom-nav .note-count {
  position: absolute;
  top: 3px;
  right: calc(50% - 22px);
  margin: 0;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(12, 16, 18, .92);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom, 0px));
}
.lightbox[hidden] { display: none; }
.lightbox img {
  max-width: min(100%, 1100px);
  max-height: calc(100vh - 160px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  background: #000;
}
.lightbox-cap { color: #e8eef2; margin: 0; text-align: center; font-weight: 650; }
.lightbox-close {
  position: absolute;
  top: 10px;
  right: 10px;
  min-height: 44px;
  padding: 8px 14px;
  border-radius: 10px;
  border: 0;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  cursor: pointer;
  font-family: inherit;
}

.album-group { margin: 0 0 22px; }
.album-group h3 { margin: 0 0 10px; font-size: 1.1rem; }
.album-item {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  margin: 0 0 10px;
}
.album-item h4 { margin: 0 0 6px; font-size: 1rem; }
.album-item .album-link { font-size: 14px; font-weight: 700; }
.album-empty { color: var(--ink-dim); }

@media (max-width: 719px) {
  .offline-pill { z-index: 47; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .progress-bar span { transition: none; }
}

@media print {
  :root { --shadow: none; }
  body { background: #fff; font-size: 12pt; color: #000; }
  .site-header, .stage-nav-wrap, .offline-pill, .no-print, .tabs,
  .bottom-nav, .more-sheet, .more-backdrop, .stage-pager { display: none !important; }
  .btn-pdf { display: none !important; }
  main { max-width: none; padding: 0 !important; }
  .stage { display: block !important; break-before: page; }
  .stage:first-of-type { break-before: avoid; }
  details.why { border: 0; }
  details.why[open] summary, details.why summary { display: block; }
  .tab-panel[hidden] { display: block !important; }
  .tab-panel { margin-top: 12px; }
  .tab-panel::before {
    content: attr(data-print-title);
    display: block;
    font-weight: 800;
    margin: 8px 0;
  }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; word-break: break-all; }
  .step, .step-block { break-inside: avoid; box-shadow: none; }
  figure { break-inside: avoid; box-shadow: none; }
  table { min-width: 0; font-size: 10pt; }
  th { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .note-toggle, .note-panel, .note-actions, .note-privacy, .note-status, .note-bar { display: none !important; }
  .step-notes { border-top: 1px solid #ccc; padding: 6pt 0 0; }
  .note-preview, .print-only { display: block !important; color: #000; font-size: 10pt; margin: 4pt 0; }
  .thumbs { display: flex !important; gap: 6pt; }
  .thumb { width: 28mm; height: 28mm; cursor: default; break-inside: avoid; }
  .album-item { box-shadow: none; break-inside: avoid; }
}

