/* Scatola — moving inventory. Visual language: cardboard boxes, packing tape in room colours, stencil-like condensed numbers. */
:root {
  --ink: #16181b;
  --ink-2: #3d4650;
  --muted: #56616b;
  --line: #d0d6db;
  --bg: #e7eaed;
  --paper: #ffffff;
  --kraft: #d6ad76;
  --kraft-hi: #f1e3cc;
  --kraft-2: #c9965a;
  --kraft-3: #8f6431;
  --red: #c8202a;
  --green: #1c7344;
  --focus: #0b57d0;
  --cond: "Avenir Next Condensed", "AvenirNextCondensed-Bold", "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --ui: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1360px;
  --gut: 32px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--ui); }
a { color: var(--ink); text-underline-offset: 3px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--ink); color: #fff; padding: 10px 14px; z-index: 100; }
.skip:focus { left: 8px; }

/* ---------- buttons & fields ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 4px;
  background: var(--paper); color: var(--ink); font-weight: 650; font-size: 15px; cursor: pointer; text-decoration: none; white-space: nowrap;
}
.btn:hover { background: #f1f3f5; }
.btn.primary { background: var(--ink); color: #fff; }
.btn.primary:hover { background: #000; }
.btn.danger { border-color: transparent; color: var(--red); padding: 0 6px; text-decoration: underline; text-underline-offset: 3px; }
.btn.danger:hover { background: #fbecec; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
input[type="text"], input[type="search"], input:not([type]), input[type="date"], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; border: 1.5px solid #9aa3ab; border-radius: 4px; background: #fff; font-size: 16px;
}
textarea { line-height: 1.5; resize: vertical; min-height: 150px; }
input:focus, select:focus, textarea:focus { border-color: var(--ink); }
.hint { color: var(--muted); font-size: 13px; font-weight: 500; }
.msg { min-height: 1.4em; margin: 8px 0 0; font-size: 14px; color: var(--ink-2); }
.error { margin: 0 0 12px; padding: 10px 12px; background: #fbecec; border-left: 4px solid var(--red); font-size: 15px; }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  max-width: var(--wrap); margin: 0 auto; padding: 12px var(--gut);
}
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; font: 800 28px/1 var(--cond); letter-spacing: -.01em; }
.brand b { color: var(--kraft-2); }
.top-nav { display: flex; gap: 4px; }
.top-nav a { padding: 10px 12px; font-weight: 600; font-size: 15px; text-decoration: none; border-radius: 4px; }
.top-nav a:hover { background: #f1f3f5; }

/* ---------- intro ---------- */
.intro {
  max-width: var(--wrap); margin: 0 auto; padding: 6px var(--gut) 16px;
  display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 32px; align-items: end;
}
.intro h1 { font: 800 44px/1 var(--cond); text-transform: uppercase; letter-spacing: -.005em; }
.intro p { margin: 10px 0 0; font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 60ch; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; font-size: 15px; font-weight: 550; }
.steps b { display: grid; place-items: center; width: 34px; height: 34px; background: var(--kraft); font: 800 20px/1 var(--cond); border-radius: 3px; }

/* ---------- example bar ---------- */
.example-bar {
  max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto 14px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  padding: 6px 8px 6px 14px; background: var(--kraft-hi); border-left: 8px solid var(--kraft-2);
}
.example-bar p { margin: 0; flex: 1 1 380px; font-size: 15px; }
.tag { background: var(--ink); color: #fff; font: 800 15px/1 var(--cond); text-transform: uppercase; letter-spacing: .08em; padding: 7px 10px; border-radius: 2px; }

/* ---------- board ---------- */
.board { background: var(--bg); padding: 18px var(--gut) 36px; border-top: 1px solid var(--line); }
.board-head, .board-grid { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; }
.board-head { display: grid; grid-template-columns: 230px 1fr; gap: 24px; align-items: start; margin-bottom: 16px; }
.board-head h2, .labels h2, .checklist h2, .guide h2, .faq h2 { font: 800 34px/1 var(--cond); text-transform: uppercase; }
.progress { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 10px; }
.pcell {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; text-align: left;
  min-height: 54px; padding: 6px 14px; border: 2px solid transparent; border-left: 8px solid #9aa3ab; background: var(--paper); border-radius: 4px; cursor: pointer;
}
.pcell[data-status="packed"] { border-left-color: var(--kraft-2); }
.pcell[data-status="moved"] { border-left-color: var(--ink); }
.pcell[data-status="unpacked"] { border-left-color: var(--green); }
.pcell[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.pnum { font: 800 36px/1 var(--cond); font-variant-numeric: tabular-nums; }
.plabel { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.pbar { grid-column: 1 / -1; display: flex; height: 12px; background: #c8ced3; border-radius: 2px; overflow: hidden; }
.pbar i { display: block; flex: 0 0 0; flex-basis: 0; }
.pbar i[data-s="todo"] { background: repeating-linear-gradient(135deg, #b5bdc4 0 6px, #cdd3d8 6px 12px); }
.pbar i[data-s="packed"] { background: var(--kraft-2); }
.pbar i[data-s="moved"] { background: var(--ink); }
.pbar i[data-s="unpacked"] { background: var(--green); }
.psum { grid-column: 1 / -1; margin: 0; font-size: 15px; color: var(--ink-2); font-weight: 550; }

.board-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr) 360px; gap: 24px; align-items: start; }

/* side */
.search label { display: block; font: 800 22px/1 var(--cond); text-transform: uppercase; margin-bottom: 8px; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--ink-2); }
.search-box input { padding-left: 42px; border: 2px solid var(--ink); min-height: 50px; font-size: 17px; }
.search-result { min-height: 1.5em; margin: 8px 0 0; font-size: 15px; line-height: 1.4; }
.search-result strong { background: var(--ink); color: #fff; padding: 1px 6px; border-radius: 2px; white-space: nowrap; }
.rooms { margin-top: 20px; }
.rooms h3, .data-tools summary { font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); margin-bottom: 8px; }
.room-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.room-list li { display: flex; align-items: stretch; gap: 6px; }
.room-btn {
  flex: 1; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 6px 10px;
  background: transparent; border: 2px solid transparent; border-radius: 4px; text-align: left; cursor: pointer; font-size: 15px; font-weight: 600;
}
.room-btn:hover { background: rgba(255, 255, 255, .6); }
.room-btn[aria-pressed="true"] { background: var(--paper); border-color: var(--ink); }
.room-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.room-n { font: 800 18px/1 var(--cond); color: var(--ink-2); }
.room-sw { flex: 0 0 44px; width: 44px; min-height: 44px; border: 2px solid rgba(0, 0, 0, .18); border-radius: 4px; cursor: pointer; padding: 0; }
.room-sw.all { flex: 0 0 22px; width: 22px; min-height: 22px; height: 22px; background: conic-gradient(#2563c9 0 25%, #e07a10 0 50%, #23935a 0 75%, #cf3f86 0); border-radius: 50%; }
.data-tools { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 12px; }
.data-tools summary { cursor: pointer; min-height: 40px; display: flex; align-items: center; margin: 0; }
.data-tools p { font-size: 14px; color: var(--ink-2); margin: 6px 0 10px; }
.data-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.file-btn { position: relative; }
.file-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.file-btn:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }

/* boxes */
.boxes-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.box-count { margin: 0; font: 800 24px/1 var(--cond); text-transform: uppercase; }
.box-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile {
  --room: #888;
  position: relative; display: flex; flex-direction: column; min-height: 190px;
  background: var(--kraft); border-radius: 4px; overflow: hidden;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .08);
}
.tile::before { content: ""; display: block; height: 12px; background: var(--room); flex: none; }
.tile-open {
  flex: 1; display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 12px; border: 0; background: none; text-align: left; cursor: pointer; width: 100%;
}
.tile-open:focus-visible { outline-offset: -4px; }
.tile-top { display: flex; align-items: baseline; gap: 10px; }
.tile-num { font: 800 48px/.86 var(--cond); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.tile-room { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2c2116; overflow-wrap: anywhere; }
.tile-name { font-size: 16px; font-weight: 750; line-height: 1.25; overflow-wrap: anywhere; }
.tile-items { font-size: 15px; line-height: 1.4; color: #2a2016; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.tile mark { background: #fff36b; color: var(--ink); padding: 0 1px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .25); }
.tile-foot { margin-top: auto; display: flex; flex-wrap: wrap; gap: 5px; padding-top: 4px; }
.chip { font-size: 12.5px; font-weight: 750; line-height: 1; padding: 5px 7px; border-radius: 3px; background: rgba(255, 255, 255, .75); color: var(--ink); }
.chip.st-todo { background: #fff; outline: 1.5px dashed var(--kraft-3); outline-offset: -1.5px; }
.chip.st-packed { background: var(--kraft-3); color: #fff; }
.chip.st-moved { background: var(--ink); color: #fff; }
.chip.st-unpacked { background: var(--green); color: #fff; }
.chip.fragile { background: var(--red); color: #fff; letter-spacing: .04em; text-transform: uppercase; }
.chip.up { background: #fff; color: var(--ink); }
.tile-next {
  min-height: 42px; border: 0; border-top: 1px solid rgba(0, 0, 0, .14); background: rgba(255, 255, 255, .28);
  font-size: 14px; font-weight: 750; text-align: left; padding: 0 14px; cursor: pointer; color: #2a2016;
}
.tile-next:hover { background: rgba(255, 255, 255, .55); }
.tile-next:focus-visible { outline-offset: -4px; }
/* status looks: open box, closed box, on the truck, flattened */
.tile.s-todo { background: var(--kraft-hi); box-shadow: inset 0 0 0 2px var(--kraft-2); }
.tile.s-todo .tile-next { background: rgba(214, 173, 118, .3); }
.tile.s-moved::after {
  content: ""; position: absolute; top: 12px; right: 0; width: 0; height: 0; border-style: solid; border-width: 0 30px 30px 0;
  border-color: transparent var(--ink) transparent transparent; pointer-events: none;
}
.tile.s-unpacked { background: #dcd7cf; box-shadow: none; }
.tile.s-unpacked .tile-num, .tile.s-unpacked .tile-name, .tile.s-unpacked .tile-items { color: #4d4a45; }
.tile.s-unpacked::before { opacity: .55; }
.tile.is-selected { outline: 3px solid var(--ink); outline-offset: 3px; }
.empty { padding: 32px 24px; background: var(--paper); border: 2px dashed #9aa3ab; border-radius: 4px; text-align: center; }
.empty-title { margin: 0 0 6px; font: 800 26px/1.1 var(--cond); text-transform: uppercase; }
.empty p { margin: 0 0 14px; font-size: 16px; color: var(--ink-2); }

/* editor */
.editor {
  --room: #888;
  position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow: auto;
  background: var(--paper); border-radius: 4px; border-top: 10px solid var(--room); padding: 16px 18px 18px;
}
.editor:focus { outline: none; }
.editor:focus-visible { outline: 3px solid var(--focus); }
.ed-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.ed-head h3 { font: 800 30px/1 var(--cond); text-transform: uppercase; }
.ed-close { display: none; }
.editor label:not(.flag):not(.seg label), .field-label { display: block; margin: 12px 0 5px; font-size: 14px; font-weight: 700; }
.editor label .hint { font-weight: 500; margin-left: 4px; }
#items-count { margin: 4px 0 0; }
.flags { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.flag { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 6px 10px; border: 2px solid var(--line); border-radius: 4px; font-size: 15px; font-weight: 700; cursor: pointer; line-height: 1.2; }
.flag input { width: 20px; height: 20px; flex: none; accent-color: var(--ink); }
.flag-fragile:has(input:checked) { border-color: var(--red); background: #fdeeee; color: var(--red); }
.flag-fragile input { accent-color: var(--red); }
.flag-up:has(input:checked) { border-color: var(--ink); background: #eef0f2; }
.seg { border: 0; padding: 0; margin: 14px 0 0; min-width: 0; }
.seg legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 6px; }
#ed-status { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
#ed-status legend { grid-column: 1 / -1; }
.seg label { position: relative; display: block; margin: 0; }
.seg input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 4px 8px; border: 2px solid var(--line); border-radius: 4px; font-size: 15px; font-weight: 650; text-align: center; background: #fff; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.ed-preview { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); }
.ed-preview .hint { margin: 0 0 6px; }
.ed-label svg { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.qr-link { display: inline-block; margin-top: 8px; font-size: 14px; font-weight: 600; min-height: 24px; }
#ed-delete { margin-top: 12px; }

/* ---------- labels ---------- */
.labels {
  max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gut);
  display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 36px; align-items: start;
}
.labels-controls p { font-size: 16px; color: var(--ink-2); margin: 12px 0 0; }
.seg-per { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.seg-per legend { grid-column: 1 / -1; }
.seg-per span { font: 800 24px/1 var(--cond); }
.checks { display: grid; gap: 6px; margin-top: 14px; }
.checks label { display: flex; align-items: center; gap: 10px; min-height: 40px; font-size: 15px; font-weight: 600; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--ink); flex: none; }
.sheet-sum { font-weight: 700; color: var(--ink) !important; }
.label-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sheet-preview { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding: 22px; background: var(--bg); border-radius: 4px; align-items: start; }
.sheet { margin: 0; }
/* Holds the place of an A4 sheet until the preview is drawn (it is drawn when scrolled near). */
.sheet-preview:empty::before { content: ''; aspect-ratio: 210 / 297; background: #fff; }
.sheet svg { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 1px 0 rgba(0, 0, 0, .1), 0 6px 18px rgba(20, 30, 40, .12); }
.sheet figcaption { margin-top: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.sheet-more { grid-column: 1 / -1; margin: 0; font-size: 15px; font-weight: 600; }

/* ---------- checklist ---------- */
.checklist { background: var(--bg); padding: 40px var(--gut); border-top: 1px solid var(--line); }
.chk-head, .timeline { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; }
.chk-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; flex-wrap: wrap; margin-bottom: 22px; }
.chk-head p { margin: 10px 0 0; font-size: 16px; color: var(--ink-2); max-width: 64ch; }
.chk-date { width: 260px; }
.chk-date label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 5px; }
.chk-count { margin: 8px 0 0 !important; font-weight: 700; color: var(--ink) !important; }
.timeline { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.phase { background: var(--paper); border-radius: 4px; padding: 18px 18px 8px; border-top: 8px solid #9aa3ab; }
.phase-giorno { border-top-color: var(--kraft-2); }
.phase-dopo { border-top-color: var(--green); }
.phase h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font: 800 24px/1 var(--cond); text-transform: uppercase; margin-bottom: 10px; }
.phase-n { font-size: 18px; color: var(--ink-2); }
.chk-list { list-style: none; margin: 0; padding: 0; }
.chk { display: grid; grid-template-columns: 26px 1fr; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.chk input { width: 22px; height: 22px; margin: 2px 0 0; accent-color: var(--green); cursor: pointer; }
.chk label { display: block; cursor: pointer; }
.chk-when { display: block; font-size: 12.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.chk-title { display: block; font-size: 17px; font-weight: 750; line-height: 1.3; margin-top: 2px; }
.chk-text { margin: 4px 0 0; font-size: 15px; line-height: 1.5; color: #2b3138; }
.chk-src { margin: 6px 0 0; font-size: 14px; color: var(--muted); }
.chk-src a { color: #0c4ea2; font-weight: 600; }
.chk.done .chk-title { text-decoration: line-through; text-decoration-thickness: 2px; color: var(--muted); }
.chk.done .chk-text { color: var(--muted); }

/* ---------- guide & faq ---------- */
.guide, .faq { max-width: var(--wrap); margin: 0 auto; padding: 40px var(--gut) 8px; }
.guide-cols { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-top: 20px; }
.guide h3 { font-size: 18px; font-weight: 750; margin-bottom: 6px; padding-top: 10px; border-top: 4px solid var(--kraft-2); }
.guide p { margin: 0; font-size: 16px; line-height: 1.6; color: #2b3138; }
.faq { padding-bottom: 48px; }
.faq h2 { margin-bottom: 12px; }
.faq details { border-bottom: 1px solid var(--line); max-width: 900px; }
.faq summary { min-height: 52px; display: flex; align-items: center; font-size: 17px; font-weight: 650; cursor: pointer; padding: 8px 0; }
.faq details p { margin: 0 0 16px; font-size: 16px; line-height: 1.6; color: #2b3138; }

/* ---------- footer ---------- */
.foot { background: var(--ink); color: #e9ecef; padding: 26px var(--gut) 30px; }
.foot-row, .foot .tw-xlinks { max-width: calc(var(--wrap) - 2 * var(--gut)); margin: 0 auto; }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; font-size: 15px; }
.foot-brand { font: 800 24px/1 var(--cond); color: #fff; }
.foot-brand b { color: var(--kraft); }
.foot a { color: #fff; }
.foot-row a { min-height: 40px; display: inline-flex; align-items: center; }
.foot .tw-xlinks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 16px; padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .18); font-size: 14px; }
.foot .tw-xlinks a { color: #d5dadf; min-height: 32px; display: inline-flex; align-items: center; }
.foot > a, .foot > button { color: #d5dadf !important; }

/* ---------- scan view (opened from a label QR) ---------- */
body.scan-mode > .top, body.scan-mode > main, body.scan-mode > .skip { display: none; }
.scan { max-width: 720px; margin: 0 auto; background: var(--paper); min-height: 100vh; }
.scan-band { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; font: 800 30px/1 var(--cond); text-transform: uppercase; letter-spacing: .02em; }
.scan-body { padding: 18px 20px 32px; }
.scan-kicker { margin: 0; font-size: 14px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.scan-num { font: 800 132px/.85 var(--cond); margin: 4px 0 8px; }
.scan-name { font-size: 24px; font-weight: 750; margin: 0 0 6px; line-height: 1.25; }
.scan-flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.scan-flag { padding: 6px 10px; color: #fff; font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .04em; border-radius: 3px; background: var(--ink); }
.scan-flag.fragile { background: var(--red); }
.scan-items { list-style: none; margin: 10px 0 0; padding: 0; border-top: 2px solid var(--ink); }
.scan-items li { padding: 12px 0 12px 34px; border-bottom: 1px solid var(--line); font-size: 19px; position: relative; line-height: 1.35; }
.scan-items li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 18px; height: 18px; border: 2px solid var(--ink); border-radius: 2px; }
.scan-items li.muted { color: var(--muted); padding-left: 0; }
.scan-items li.muted::before { display: none; }
.scan-more { font-size: 16px; font-weight: 600; margin: 12px 0 0; }
.scan-local { margin-top: 18px; padding: 14px; background: var(--kraft-hi); border-left: 6px solid var(--kraft-2); }
.scan-local p { margin: 0 0 10px; font-size: 16px; font-weight: 600; }
.scan-local-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.scan-note { margin: 22px 0 16px; font-size: 14px; color: var(--muted); }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .board-grid { grid-template-columns: 230px minmax(0, 1fr) 340px; gap: 18px; }
  .guide-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 899px) {
  :root { --gut: 16px; }
  .top { padding-top: 8px; padding-bottom: 8px; flex-wrap: wrap; }
  .brand { font-size: 24px; }
  .top-nav { width: 100%; overflow-x: auto; margin: 0 -4px; }
  .top-nav a { padding: 10px 10px; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
  .intro { grid-template-columns: 1fr; gap: 16px; padding-top: 8px; }
  .intro h1 { font-size: 32px; }
  .intro p { font-size: 15.5px; margin-top: 8px; }
  .steps { display: none; }
  .example-bar { margin: 0 var(--gut) 14px; gap: 8px 12px; padding: 8px 8px 8px 12px; }
  .example-bar p { flex-basis: 100%; order: 2; font-size: 15px; }
  .example-bar .btn { margin-left: auto; min-height: 40px; }
  .board { padding: 16px var(--gut) 28px; }
  .board-head { grid-template-columns: 1fr; gap: 12px; }
  .board-head h2, .labels h2, .checklist h2, .guide h2, .faq h2 { font-size: 28px; }
  .progress { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pcell { min-height: 56px; padding: 6px 10px; gap: 8px; }
  .pnum { font-size: 32px; }
  .plabel { font-size: 12px; }
  .board-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .side, .boxes { min-width: 0; }
  .room-list { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 4px; }
  .room-list li { flex: none; }
  .room-btn { background: rgba(255, 255, 255, .6); white-space: nowrap; }
  .room-row .room-sw { display: none; }
  .room-row .room-btn { border-left: 8px solid var(--room); }
  .side { display: contents; }
  .data-tools { order: 5; margin-top: 4px; }
  .rooms { margin-top: 0; }
  .rooms h3 { margin-bottom: 4px; }
  .search-result { min-height: 0; }
  .box-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .tile { min-height: 180px; }
  .tile-open { padding: 10px 11px; }
  .tile-num { font-size: 40px; }
  .tile-top { flex-direction: column; gap: 4px; }
  .tile-next { padding: 0 11px; font-size: 13.5px; }
  .editor { display: none; }
  .editor.open {
    display: block; position: fixed; inset: 0; z-index: 60; max-height: none; border-radius: 0; padding: 14px 16px 28px; overflow-y: auto;
  }
  .ed-close { display: inline-flex; }
  body.sheet-open { overflow: hidden; }
  .labels { grid-template-columns: 1fr; gap: 20px; padding: 32px var(--gut); }
  .sheet-preview { grid-template-columns: 1fr; padding: 14px; }
  .chk-date { width: 100%; }
  .timeline { grid-template-columns: 1fr; }
  .guide-cols { grid-template-columns: 1fr; gap: 18px; }
  .scan-num { font-size: 110px; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- print ---------- */
.print-area { display: none; }
@media print {
  body.printing-labels > *:not(.print-area), body.printing-inventory > *:not(.print-area) { display: none !important; }
  body.printing-labels .print-area, body.printing-inventory .print-area { display: block; }
  .print-page { width: 210mm; height: 297mm; overflow: hidden; break-after: page; page-break-after: always; }
  .print-page:last-child { break-after: auto; page-break-after: auto; }
  .print-page svg { display: block; width: 210mm; height: 297mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .inv-title { font: 800 26pt/1 var(--cond); text-transform: uppercase; margin: 0 0 2mm; }
  .inv-sub { margin: 0 0 6mm; font-size: 10pt; }
  .inv-room { font: 800 15pt/1.1 var(--cond); text-transform: uppercase; margin: 6mm 0 2mm; break-after: avoid; }
  .inv-table { width: 100%; border-collapse: collapse; font-size: 9.5pt; }
  .inv-table th { text-align: left; border-bottom: 1.5pt solid #000; padding: 1.5mm 2mm; font-size: 8.5pt; text-transform: uppercase; }
  .inv-table td { border-bottom: .5pt solid #888; padding: 1.8mm 2mm; vertical-align: top; }
  .inv-table tr { break-inside: avoid; }
  .inv-n { font: 800 16pt/1 var(--cond); width: 12mm; }
  .inv-box { font-size: 13pt; width: 16mm; text-align: center; }
  /* plain Ctrl+P on the page: print the content without the controls */
  body:not(.printing-labels):not(.printing-inventory) .top-nav,
  body:not(.printing-labels):not(.printing-inventory) .example-bar,
  body:not(.printing-labels):not(.printing-inventory) .side,
  body:not(.printing-labels):not(.printing-inventory) .editor,
  body:not(.printing-labels):not(.printing-inventory) .tile-next,
  body:not(.printing-labels):not(.printing-inventory) .labels-controls .btn { display: none !important; }
}

/* ---------- about / privacy ---------- */
.doc-main { max-width: 760px; margin: 0 auto; padding: 24px var(--gut) 56px; }
.doc-main h1 { font: 800 44px/1 var(--cond); text-transform: uppercase; margin-bottom: 14px; }
.doc-main h2 { font: 800 24px/1.1 var(--cond); text-transform: uppercase; margin: 30px 0 8px; padding-top: 10px; border-top: 4px solid var(--kraft-2); }
.doc-main p, .doc-main li { font-size: 17px; line-height: 1.65; color: #23292f; }
.doc-main .lead { font-size: 19px; }
.doc-main ul { padding-left: 22px; }
.doc-main code { background: #eef0f2; padding: 1px 5px; border-radius: 3px; font-size: 15px; }
.doc-date { color: var(--muted) !important; font-size: 15px !important; }
@media (max-width: 899px) { .doc-main h1 { font-size: 34px; } }
