/* Moving Day Planner — toolkityourlife.com/MovingDay/
   Matches the site's look: black, Inter + Archivo Black, lime accent. Mobile first. */
:root {
  --bg: #000; --bg2: #0b0b0c; --card: #121214; --card2: #18181b; --line: rgba(255,255,255,.12); --line2: rgba(255,255,255,.2);
  --ink: #f4f4f2; --muted: #9a9aa0; --accent: #c9ff3d; --accent-ink: #000;
  --ok: #c9ff3d; --soon: #ffc44d; --bad: #ff6b6b; --none: #77777d; --info: #7cc4ff;
  --r: 14px; --tab-h: 64px; --safe-b: env(safe-area-inset-bottom, 0px);
  color-scheme: dark;
}
html.big { font-size: 112.5%; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--ink);
  font: 400 1rem/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh;
  padding-bottom: calc(var(--tab-h) + var(--safe-b) + 8px);
}
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: -1;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255,255,255,.06), transparent 70%); }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
img { max-width: 100%; }
[hidden] { display: none !important; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px; background: rgba(0,0,0,.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.top-nav { flex: 1; min-width: 0; min-height: 38px; display: flex; align-items: center; }
.acct { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 6px; border-radius: 999px;
  background: rgba(18,18,20,.9); border: 1px solid var(--line); cursor: pointer; font-size: .82rem; font-weight: 600; letter-spacing: .04em; }
.acct:hover { border-color: rgba(201,255,61,.6); }
.acct-av { width: 26px; height: 26px; border-radius: 50%; background: var(--card2); display: grid; place-items: center; overflow: hidden; font-size: .8rem; color: var(--muted); }
.acct-av img { width: 100%; height: 100%; object-fit: cover; }
.acct.signed-in .acct-av { background: var(--accent); color: #000; }
.acct-label { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-menu { position: absolute; right: 12px; top: calc(100% + 6px); min-width: 230px; padding: 6px; background: rgba(18,18,20,.97);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 16px 48px rgba(0,0,0,.6); }
.acct-menu p { margin: 8px 10px; color: var(--muted); font-size: .82rem; }
.acct-menu button, .acct-menu a { display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink); text-decoration: none; cursor: pointer; }
.acct-menu button:hover, .acct-menu a:hover { background: rgba(255,255,255,.07); color: var(--accent); }

/* ---------- layout ---------- */
.view { max-width: 980px; margin: 0 auto; padding: 16px 14px 24px; outline: none; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1 { font: 400 clamp(1.45rem, 5.5vw, 2.2rem)/1.05 "Archivo Black", "Inter", sans-serif; text-transform: uppercase; letter-spacing: -.01em; overflow-wrap: anywhere; }
h1 .accent { color: var(--accent); }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: .01em; }
h3 { font-size: .95rem; font-weight: 600; }
.sub { color: var(--muted); margin: 6px 0 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; } .tiny { font-size: .75rem; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.stack > * + * { margin-top: 12px; }
.section { margin-top: 22px; }
.section-h { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.crumbs { margin-bottom: 10px; }
.crumbs a { color: var(--muted); text-decoration: none; font-size: .9rem; }
.crumbs a:hover { color: var(--accent); }
@media (min-width: 720px) { .grid2 { grid-template-columns: 1fr 1fr; } .view { padding: 22px 20px 28px; } }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; font-size: .95rem; }
.btn:hover { border-color: rgba(201,255,61,.6); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.06); }
.btn.ghost { background: none; }
.btn.danger { color: var(--bad); border-color: rgba(255,107,107,.4); background: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .85rem; border-radius: 10px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn svg, .ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.big-actions { display: grid; gap: 10px; grid-template-columns: repeat(3, 1fr); }
.big-actions .btn { min-height: 76px; flex-direction: column; gap: 6px; font-size: .92rem; border-radius: 16px; padding: 0 8px; text-align: center; }
.big-actions .btn svg { width: 26px; height: 26px; }
.quick { display: flex; flex-wrap: wrap; gap: 8px; }
.icon-btn { flex: none; width: 40px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: none; color: var(--muted); cursor: pointer; font-size: 1.2rem; display: grid; place-items: center; }
.icon-btn:hover { color: var(--ink); border-color: var(--line2); }
.icon-btn.on { color: var(--accent); border-color: rgba(201,255,61,.5); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.linkbtn { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0 4px; font-size: .8rem; text-decoration: underline; }

label.f { display: block; }
label.f > span, .f-label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 5px; font-weight: 500; }
.in, select.in, textarea.in { width: 100%; min-height: 44px; padding: 10px 12px; font-size: 16px; background: #0e0e10; color: var(--ink);
  border: 1px solid var(--line2); border-radius: 10px; }
textarea.in { min-height: 72px; resize: vertical; }
.in:focus { outline: none; border-color: rgba(201,255,61,.7); box-shadow: 0 0 0 3px rgba(201,255,61,.12); }
.fgrid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.fgrid .full, .fgrid .half { grid-column: 1 / -1; }
@media (min-width: 720px) { .fgrid { grid-template-columns: repeat(4, 1fr); } .fgrid .half { grid-column: span 2; } }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; accent-color: var(--accent); }
.seg { display: inline-flex; padding: 3px; gap: 3px; border-radius: 12px; background: #0e0e10; border: 1px solid var(--line); flex-wrap: wrap; }
.seg button { min-height: 38px; padding: 0 12px; border: 0; border-radius: 9px; background: none; color: var(--muted); cursor: pointer; font-weight: 600; font-size: .88rem; }
.seg button[aria-pressed="true"] { background: var(--card2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line2); }
.seg button:disabled { opacity: .45; cursor: not-allowed; }
.warn-t { color: var(--soon); }

/* ---------- badges & tags ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: .75rem; font-weight: 700;
  letter-spacing: .02em; border: 1px solid currentColor; white-space: nowrap; }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-packing { color: var(--none); } .st-packed { color: var(--info); } .st-loaded { color: var(--soon); } .st-delivered { color: #b68cff; } .st-unpacked { color: var(--ok); }
.tag { display: inline-block; font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); border: 1px solid var(--line2); border-radius: 6px; padding: 1px 5px; vertical-align: 1px; }
.dot { display: inline-block; width: 11px; height: 11px; border-radius: 50%; flex: none; vertical-align: -1px; box-shadow: 0 0 0 1px rgba(255,255,255,.25); }
.dot.big { width: 16px; height: 16px; }
.dot.none { background: repeating-linear-gradient(45deg, #444 0 3px, #222 3px 6px); }
.lf { display: inline-block; font-size: .72rem; font-weight: 800; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; border: 1.5px solid currentColor; margin-right: 4px; }
.lf-frag { color: #ff6b6b; } .lf-first { color: var(--accent); }

/* ---------- tiles / progress ---------- */
.tiles { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); margin-top: 12px; }
.tiles.five { grid-template-columns: repeat(5, 1fr); gap: 6px; }
@media (min-width: 720px) { .tiles { grid-template-columns: repeat(6, 1fr); } }
.tile { text-align: left; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-decoration: none; min-width: 0; }
a.tile:hover { border-color: rgba(201,255,61,.6); }
.tile b { display: block; font: 400 1.5rem/1 "Archivo Black", sans-serif; color: var(--tc, var(--ink)); }
.tile span { display: block; margin-top: 6px; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; }
.tiles.five .tile { padding: 10px 8px; }
@media (max-width: 420px) { .tiles.five .tile b { font-size: 1.2rem; } .tiles.five .tile span { font-size: .66rem; } }
.pbar { display: flex; height: 10px; border-radius: 999px; overflow: hidden; background: var(--card2); }
.pbar i { display: block; height: 100%; }
.pbar.single i { background: var(--accent); }
.countdown b { color: var(--accent); font-weight: 800; }

/* ---------- search / filters ---------- */
.toolbar { display: grid; gap: 8px; grid-template-columns: 1fr; margin-top: 16px; }
@media (min-width: 720px) { .toolbar { grid-template-columns: 1fr 220px; } }
.search { position: relative; }
.search svg { position: absolute; left: 12px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--muted); stroke-width: 2; pointer-events: none; }
.search .in { padding-left: 38px; }
.filters { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; margin-top: 8px; }
@media (min-width: 720px) { .filters { grid-template-columns: repeat(4, 1fr); } }
.filters .in { min-height: 40px; padding: 8px 10px; font-size: 14px; }

/* ---------- box cards ---------- */
.list { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 720px) { .list { grid-template-columns: 1fr 1fr; } .list .ad { grid-column: 1 / -1; } }
.bc { position: relative; display: grid; grid-template-columns: 64px 1fr 52px; gap: 12px; align-items: center; padding: 10px 12px 10px 0; border-radius: var(--r);
  background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); overflow: hidden; }
.bc:hover { border-color: rgba(201,255,61,.5); }
.bc-no { align-self: stretch; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--rc); color: #fff;
  font: 400 1.5rem/1 "Archivo Black", sans-serif; text-shadow: 0 1px 2px rgba(0,0,0,.45); margin: -10px 0; padding: 10px 0; }
.bc-no small, .bh-no small { font: 700 .58rem/1 "Inter", sans-serif; letter-spacing: .14em; opacity: .85; margin-bottom: 3px; }
.bc-main { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-to { font-weight: 700; display: flex; align-items: center; gap: 7px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.bc-flags { color: var(--muted); font-size: .8rem; }
.bc-meta { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-hit { font-size: .8rem; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bc-hit mark { background: rgba(201,255,61,.18); color: var(--accent); border-radius: 4px; padding: 0 3px; }
.bc-badges { margin-top: 3px; }
.thumb { width: 52px; height: 52px; border-radius: 10px; background: var(--card2); display: grid; place-items: center; overflow: hidden; color: var(--muted); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; }
.rc { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; padding: 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); color: var(--ink); text-align: left; cursor: pointer; }
.rc-store { font-weight: 700; display: block; } .rc-meta { color: var(--muted); font-size: .82rem; display: block; }
.empty { text-align: center; padding: 34px 18px; border: 1px dashed var(--line2); border-radius: 18px; margin-top: 16px; }
.empty h2 { font: 400 1.2rem "Archivo Black", sans-serif; text-transform: uppercase; }
.empty p { color: var(--muted); max-width: 460px; margin: 8px auto 16px; }
.how { display: grid; gap: 10px; }
@media (min-width: 720px) { .how { grid-template-columns: repeat(3, 1fr); } }
.how p { margin: 6px 0 0; }

/* ---------- banners ---------- */
.banner { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: var(--r); margin-top: 14px;
  background: rgba(201,255,61,.08); border: 1px solid rgba(201,255,61,.35); }
.banner.warn { background: rgba(255,196,77,.08); border-color: rgba(255,196,77,.4); }
.banner.info { background: rgba(124,196,255,.07); border-color: rgba(124,196,255,.35); }
.banner p { margin: 0; } .banner .row { margin-top: 10px; }
p.banner { display: block; }
.syncline { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .82rem; margin-top: 8px; flex-wrap: wrap; }
.syncline i { width: 8px; height: 8px; border-radius: 50%; background: var(--none); }
.syncline.cloud i { background: var(--ok); } .syncline.off i { background: var(--soon); }

/* ---------- checklist ---------- */
.clist { list-style: none; margin: 0; padding: 0; }
.ck { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); }
.ck:first-child { border-top: 0; }
.ck .check { flex: 1; min-width: 0; padding: 4px 0; align-items: flex-start; }
.ck .check input { margin-top: 2px; }
.ck.done .check span { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(255,255,255,.3); }
.ck-due { flex: none; font-size: .75rem; color: var(--muted); white-space: nowrap; }
.ck-due.late { color: var(--soon); font-weight: 700; }
.ck .icon-btn { width: 32px; height: 32px; border: 0; }
.addline { display: flex; gap: 8px; margin-top: 10px; }
.addline .in { flex: 1; min-width: 0; }

/* ---------- rooms ---------- */
.roomchips { display: flex; flex-wrap: wrap; gap: 6px; }
.roomchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 10px; border-radius: 999px; background: #0e0e10; border: 1px solid var(--line2); color: var(--ink); text-decoration: none; font-size: .85rem; }
.roomchip b { color: var(--muted); font-weight: 600; font-size: .78rem; }
.roomchip:hover { border-color: rgba(201,255,61,.5); }
.roomchip.warn { border-color: rgba(255,196,77,.45); }
.rooms { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.room { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); }
.room .sw { flex: none; width: 30px; height: 30px; border-radius: 8px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.room .sw.out { background: repeating-linear-gradient(45deg, #2a2a2e 0 4px, #18181b 4px 8px); }
.rm-main { flex: 1; min-width: 0; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatches button { width: 38px; height: 38px; border-radius: 10px; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.swatches button[aria-pressed="true"] { border-color: #fff; box-shadow: 0 0 0 2px var(--accent); }
.roompick { display: flex; flex-wrap: wrap; gap: 8px; }
.roompick button { min-height: 42px; padding: 0 14px; border-radius: 12px; border: 2px solid var(--rc, var(--line2)); background: #0e0e10; color: var(--ink); cursor: pointer; font-weight: 600; }
.roompick button[aria-checked="true"] { background: var(--rc); color: var(--ri); }
.roompick button.add { border-style: dashed; border-color: var(--line2); color: var(--muted); }

/* ---------- box detail ---------- */
.bhead { display: flex; align-items: stretch; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--card); }
.bh-no { flex: none; width: 110px; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--rc); color: var(--ri);
  font: 400 2.8rem/1 "Archivo Black", sans-serif; padding: 16px 6px; }
.bh-main { flex: 1; min-width: 0; padding: 14px 16px; }
.bh-to { font: 400 1.4rem/1.1 "Archivo Black", sans-serif; text-transform: uppercase; overflow-wrap: anywhere; }
.bh-meta { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.bh-flags { margin-top: 8px; }
.stepper { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stepper button { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 2px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--muted); cursor: pointer; font-size: .72rem; font-weight: 600; }
.stepper button i { font-style: normal; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: var(--card2); font-size: .75rem; }
.stepper button.past { color: var(--ink); }
.stepper button.past i { background: rgba(201,255,61,.25); color: var(--accent); }
.stepper button[aria-pressed="true"] { border-color: var(--accent); color: var(--ink); }
.stepper button[aria-pressed="true"] i { background: var(--accent); color: #000; }
.contents { list-style: none; margin: 0; padding: 0; }
.contents li { display: flex; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line); align-items: baseline; }
.contents li:first-child { border-top: 0; }
.contents .q { flex: none; min-width: 28px; color: var(--muted); font-weight: 700; font-size: .88rem; }
.contents .n { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.contents .v { color: var(--muted); font-size: .85rem; }
.notes { white-space: pre-wrap; color: var(--muted); border-left: 3px solid var(--line2); padding-left: 10px; margin: 12px 0 0; }
.qrcard { text-align: center; }
.qrbig { width: min(220px, 70%); margin: 0 auto 8px; background: #fff; border-radius: 12px; padding: 6px; }
.qrbig svg { display: block; width: 100%; height: auto; }
.qrcard .row { justify-content: center; }
.log { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
details summary { cursor: pointer; }
.gallery { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); }
.gallery button, .gallery .ph { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: #0e0e10; border: 1px solid var(--line); padding: 0; cursor: zoom-in; }
.gallery img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gallery .ph button { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; aspect-ratio: auto; border-radius: 50%; background: rgba(0,0,0,.7); color: #fff; border: 0; cursor: pointer; display: grid; place-items: center; }
.gallery .muted { grid-column: 1 / -1; margin: 0; }
.pairbox { border-left: 3px solid var(--accent); }
.pairbox p { margin: 6px 0 10px; }
.works { display: flex; flex-wrap: wrap; gap: 8px; }
.works a { font-size: .8rem; color: var(--muted); text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.works a:hover { color: var(--accent); border-color: rgba(201,255,61,.5); }
.works:empty { display: none; }

/* ---------- editor ---------- */
.erows { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.erow { display: flex; gap: 6px; align-items: center; }
.erow .qty { flex: none; width: 58px; padding: 10px 6px; text-align: center; }
.erow .nm, .erow .hkname { flex: 1; min-width: 0; }
.erow .hkname { display: flex; align-items: center; gap: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; color: var(--ink); }
.erow .val { flex: none; width: 92px; }
@media (max-width: 420px) { .erow .val { width: 70px; } }
.savebar { position: sticky; bottom: calc(var(--tab-h) + var(--safe-b) + 8px); z-index: 20; display: flex; gap: 8px; justify-content: flex-end; padding: 10px; border-radius: 16px;
  background: rgba(12,12,14,.92); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (min-width: 900px) { .savebar { bottom: 90px; } }
.drop { border: 2px dashed var(--line2); border-radius: 18px; padding: 18px; text-align: center; color: var(--muted); }
.drop svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.drop b { color: var(--ink); }
.prog { height: 8px; border-radius: 999px; background: var(--card2); overflow: hidden; margin-top: 8px; }
.prog > i { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.pick { list-style: none; padding: 0; margin: 10px 0 0; max-height: 46vh; overflow: auto; border-top: 1px solid var(--line); }
.pick li { border-bottom: 1px solid var(--line); }
.pick .check { min-height: 42px; }
.pickrow { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 4px; background: none; border: 0; color: var(--ink); text-align: left; cursor: pointer; }
.pickrow:hover, .pickrow.on { color: var(--accent); }

/* ---------- scanner ---------- */
.scanmode { display: flex; width: 100%; }
.scanmode button { flex: 1 1 auto; }
.cam { position: relative; aspect-ratio: 4 / 3; max-height: 56vh; width: 100%; border-radius: 18px; overflow: hidden; background: #050506; border: 1px solid var(--line); }
.cam video { width: 100%; height: 100%; object-fit: cover; display: block; }
.cam-frame { position: absolute; inset: 18% 24%; border: 3px solid var(--accent); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0,0,0,.35); pointer-events: none; }
.cam-off { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px; text-align: center; background: #050506; }
.scanlog { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.scanlog li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); }
.scanlog li a { color: var(--ink); text-decoration: none; }

/* ---------- tables / lists ---------- */
.tablewrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: .88rem; }
.tbl th, .tbl td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl th { color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
.tbl .num { text-align: right; }
.supplies { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .supplies { grid-template-columns: 1fr 1fr; } }
.supplies b { display: inline-block; min-width: 36px; color: var(--accent); }
.tile.static { cursor: default; }
.moves, .members, .pairs { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.mv { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px; border-radius: 12px; background: #0e0e10; border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-align: left; }
.mv.on { border-color: var(--accent); }
.members li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.members li .btn { margin-left: auto; }
.pairs li { display: flex; flex-direction: column; gap: 2px; }

/* ---------- sheet / toast ---------- */
.sheet-bg { position: fixed; inset: 0; z-index: 2147482000; background: rgba(0,0,0,.7); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; align-items: flex-end; justify-content: center; }
.sheet { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; background: #0c0c0e; border: 1px solid var(--line); border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(18px + var(--safe-b)); }
@media (min-width: 720px) { .sheet-bg { align-items: center; } .sheet { border-radius: 20px; } }
.sheet.wide { max-width: 980px; padding: 10px; background: #000; }
.sheet.wide img { display: block; width: 100%; height: auto; border-radius: 10px; }
.sheet p { margin: 6px 0 0; }
.toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + var(--safe-b) + 14px); transform: translateX(-50%); z-index: 2147482500;
  background: #151515; border: 1px solid var(--accent); color: var(--ink); padding: 10px 16px; border-radius: 999px; font-size: .9rem; box-shadow: 0 8px 30px rgba(0,0,0,.6); max-width: calc(100vw - 24px); }
.toast.err { border-color: var(--bad); }
.toast-act { margin-left: 8px; background: var(--accent); color: #000; border: 0; border-radius: 999px; padding: 4px 10px; font-weight: 700; cursor: pointer; }

/* ---------- tab bar ---------- */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: grid; grid-template-columns: repeat(5, 1fr);
  height: calc(var(--tab-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: rgba(8,8,9,.94); border-top: 1px solid var(--line);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted);
  text-decoration: none; font-size: .72rem; font-weight: 600; letter-spacing: .04em; }
.tabbar a svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tabbar a[aria-current="page"] { color: var(--accent); }
.tabbar .tab-add svg { width: 32px; height: 32px; padding: 5px; border-radius: 50%; background: var(--accent); color: #000; stroke: #000; }
@media (min-width: 900px) {
  .tabbar { left: 50%; right: auto; bottom: 14px; width: 520px; transform: translateX(-50%); border-radius: 999px; border: 1px solid var(--line); height: 60px; padding: 0; }
  body { padding-bottom: 96px; }
}
body.public-view .tabbar { display: none; }
body.public-view { padding-bottom: 20px; }

/* ---------- ads ---------- */
.ad { display: flex; flex-direction: column; align-items: center; gap: 4px; margin: 18px 0; width: 100%; }
.ad-label { font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: #666; }
.ad ins, .ad .mn { width: 100%; min-height: 90px; }
.ad-ph { width: 100%; max-width: 970px; min-height: 90px; border: 1px dashed #444; border-radius: 8px; display: grid; place-items: center; color: #777; font-size: 13px; text-align: center; padding: 8px; }
.foot { max-width: 760px; margin: 18px auto 0; padding: 10px 16px 20px; text-align: center; color: #6a6a70; font-size: .78rem; }
.foot a { color: inherit; } .foot p { margin: 4px 0; }

/* ---------- label sheets (screen preview + print) ---------- */
.sheets { --k: 1; margin-top: 18px; overflow: hidden; }
.sheets .sheet-pg { transform: scale(var(--k)); transform-origin: top left; margin: 0 calc(8.5in * (var(--k) - 1)) calc(11in * (var(--k) - 1) + 16px) 0;
  box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.sheet-pg { width: 8.5in; height: 11in; background: #fff; color: #111; position: relative; overflow: hidden;
  display: grid; grid-template-columns: repeat(var(--cols), var(--lw)); grid-auto-rows: var(--lh); column-gap: var(--gx); row-gap: var(--gy);
  padding: var(--top) 0 0 var(--left); align-content: start; font-family: "Inter", Arial, sans-serif; }
.sheet-pg .cell { width: var(--lw); height: var(--lh); overflow: hidden; position: relative; }
.sheet-pg.cut .cell { outline: 1px dashed #bbb; outline-offset: -1px; }
.lab { position: absolute; inset: 0.12in; display: flex; flex-direction: column; border-radius: 0.08in; overflow: hidden; border: 1.5px solid #222; }
.lab-band { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 0.06in 0.12in; min-height: 0.5in;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.lab-to { font: 400 0.3in/1 "Archivo Black", Arial Black, sans-serif; text-transform: uppercase; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lab.bw .lab-band { border-bottom: 3px solid #111; background: repeating-linear-gradient(135deg, #fff 0 6px, #eee 6px 12px); }
.lab-cn { font-weight: 800; font-size: 0.13in; letter-spacing: .1em; text-transform: uppercase; border: 2px solid #111; border-radius: 4px; padding: 1px 4px; background: #fff; }
.lab-body { flex: 1; min-height: 0; display: flex; gap: 0.1in; padding: 0.06in 0.1in 0; }
.lab-left { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.lab-no { font: 400 0.78in/0.9 "Archivo Black", Arial Black, sans-serif; letter-spacing: -.02em; }
.lab-no small { display: block; font: 800 0.1in/1 "Inter", Arial, sans-serif; letter-spacing: .2em; margin-bottom: 2px; }
.lab-from { font-size: 0.12in; font-weight: 600; margin-top: 2px; }
.lab-from span { font-weight: 400; color: #444; }
.lab-flags { margin-top: 4px; }
.lab-flags .lf { font-size: 0.1in; padding: 1px 4px; border-color: #111; color: #111; }
.lab-flags .lf-frag { color: #c00; border-color: #c00; }
.lab-list { margin-top: 4px; font-size: 0.095in; line-height: 1.25; color: #333; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.lab-qr { flex: none; width: 1.3in; display: flex; flex-direction: column; align-items: center; }
.lab-qr svg { width: 1.3in; height: 1.3in; display: block; }
.lab-qr span { font-size: 0.075in; color: #555; margin-top: 1px; }
.lab-foot { flex: none; font-size: 0.085in; color: #666; padding: 0 0.12in 0.04in; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.lab.compact .lab-band { min-height: 0.36in; padding: 0.03in 0.1in; }
.lab.compact .lab-to { font-size: 0.2in; }
.lab.compact .lab-no { font-size: 0.5in; }
.lab.compact .lab-qr, .lab.compact .lab-qr svg { width: 1.05in; height: 1.05in; }
.lab.compact .lab-qr span, .lab.compact .lab-foot { display: none; }
.lab.compact .lab-list { -webkit-line-clamp: 1; }
.lab.big { inset: 0.3in; border-width: 3px; }
.lab.big .lab-band { min-height: 1in; }
.lab.big .lab-to { font-size: 0.62in; }
.lab.big .lab-no { font-size: 1.9in; }
.lab.big .lab-from { font-size: 0.22in; }
.lab.big .lab-flags .lf { font-size: 0.2in; }
.lab.big .lab-list { font-size: 0.16in; -webkit-line-clamp: 3; }
.lab.big .lab-qr, .lab.big .lab-qr svg { width: 2.4in; height: 2.4in; }
.lab.big .lab-qr span { font-size: 0.13in; }
.lab.big .lab-foot { font-size: 0.14in; }
.sign { position: absolute; inset: 0.4in; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; border: 0.35in solid var(--c);
  border-radius: 0.3in; color: #111; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.sign-band { position: absolute; top: 0; left: 0; right: 0; height: 1.3in; background: var(--c); color: var(--ci); display: grid; place-items: center;
  font: 800 0.4in/1 "Inter", Arial, sans-serif; letter-spacing: .3em; text-transform: uppercase; }
.sign-band.bottom { top: auto; bottom: 0; height: 0.6in; }
.sign-name { font: 400 1.3in/1 "Archivo Black", Arial Black, sans-serif; text-transform: uppercase; padding: 0 0.3in; overflow-wrap: anywhere; }
.sign-sub { font-size: 0.24in; margin-top: 0.3in; color: #333; padding: 0 0.5in; }

/* ---------- printable report ---------- */
.pv { background: #fff; color: #111; border-radius: 12px; padding: 22px; font-size: 13px; line-height: 1.45; overflow-x: auto; }
.pv h1 { color: #111; font-size: 22px; }
.pv h2 { font-size: 15px; margin: 18px 0 6px; color: #111; }
.pv table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.pv th, .pv td { text-align: left; padding: 5px 7px; border-bottom: 1px solid #ddd; vertical-align: top; }
.pv th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #555; }
.pv td.num, .pv th.num { text-align: right; white-space: nowrap; }
.pv .pv-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 6px 18px; margin-top: 10px; }
.pv .pv-meta div span { display: block; font-size: 11px; color: #666; text-transform: uppercase; letter-spacing: .05em; }
.pv .pv-foot { margin-top: 18px; font-size: 11px; color: #666; border-top: 1px solid #ddd; padding-top: 8px; }

@media print {
  @page { margin: 12mm; }
  :root { color-scheme: light; }
  html, body { background: #fff !important; color: #111 !important; padding: 0 !important; }
  body::before { display: none; }
  [data-noprint], .ad, .toast, .sheet-bg, tyl-nav, .tylp-foot, .noprint, .crumbs { display: none !important; }
  .view { max-width: none; padding: 0; }
  .card { background: #fff; border-color: #ccc; color: #111; break-inside: avoid; }
  .muted, .ck-due { color: #555 !important; }
  .pv { padding: 0; border-radius: 0; overflow: visible; }
  body.printing-labels .view > :not(.sheets) { display: none !important; }
  body.printing-labels .sheets { margin: 0; overflow: visible; }
  body.printing-labels .sheets .sheet-pg { transform: none; margin: 0; box-shadow: none; break-after: page; page-break-after: always; }
  body.printing-labels .sheets .sheet-pg:last-child { break-after: auto; page-break-after: auto; }
  body.printing-labels .sheet-pg.cut .cell { outline-color: #ccc; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
