/* The panel check's look: the Apple-guidelines design (screens-hig.html) — light and dark from the phone, 52pt controls,
   17/15/13 type, contrast >= 4.5:1, the main action pinned in thumb reach. Sizes in em so the phone's text size carries. */
:root{ color-scheme:light dark;
  --app:#f4f5ec; --panel:#ffffff; --chip:#e9ecd9; --line:#dcdfcb; --line2:#c4c9b0;
  --ink:#1b1f10; --ink2:#363c28; --mute:#555c47;
  --bar:#373e1d; --bar-ink:#ffffff; --bar-sub:#dfe4c4;
  --btn:#373e1d; --btn-ink:#ffffff;
  --ok:#1d6b33; --okbg:#e2f3e8; --okfill:#1b7a43;
  --fix:#a8360a; --fixbg:#fdeadb; --fixfill:#a8360a;
  --warn:#6e4d00; --warnbg:#fff3d6; --warnline:#ecd18a;
  --bad:#a81c25; --badbg:#fde8e8;
  --accent:#f2c200; --accent-ink:#2b2100; --truckbg:#fffbe8; --truckline:#e8c84a;
}
@media (prefers-color-scheme: dark){ :root{
  --app:#12140d; --panel:#1d2015; --chip:#2a2e1f; --line:#33382a; --line2:#4a503c;
  --ink:#eef0e4; --ink2:#d3d7c4; --mute:#aab09c;
  --bar:#2a3016; --bar-ink:#ffffff; --bar-sub:#cfd6a8;
  --btn:#c8d27a; --btn-ink:#1b1f0b;
  --ok:#6fd394; --okbg:#173325; --okfill:#1b7a43;
  --fix:#ffa26b; --fixbg:#3a2217; --fixfill:#a8360a;
  --warn:#f2c75c; --warnbg:#3a2e0d; --warnline:#6b5419;
  --bad:#ff8a8a; --badbg:#3a1717;
  --truckbg:#29260f; --truckline:#6b5d12;
} }
@supports (font: -apple-system-body){ html{ font:-apple-system-body; } }   /* follows the phone's text size */
*{ box-sizing:border-box; }
html,body{ margin:0; min-height:100%; background:var(--app); }
body{ font-family:-apple-system,system-ui,"Segoe UI",Roboto,Helvetica,Arial,sans-serif; color:var(--ink); font-size:clamp(17px,1rem,26px);
  line-height:1.35; -webkit-font-smoothing:antialiased; -webkit-tap-highlight-color:transparent; }
button{ font:inherit; color:inherit; border:0; background:none; padding:0; text-align:inherit; cursor:pointer; }
a{ color:inherit; }
p{ margin:0; }
.screen{ min-height:100dvh; display:flex; flex-direction:column; }
[hidden]{ display:none !important; }

/* the bar: solid olive, the stripe under it; the P only on the home screens */
.bar{ position:sticky; top:0; z-index:10; display:grid; grid-template-columns:minmax(44px,auto) 1fr minmax(44px,auto); align-items:center; gap:8px;
  padding:calc(env(safe-area-inset-top) + 8px) 12px 13px; background:var(--bar); color:var(--bar-ink); min-height:69px; }
.bar::after{ content:""; position:absolute; left:0; right:0; bottom:0; height:3px; background:linear-gradient(90deg,#4d5a1f,#9aa53e 45%,#f2c200); }
.bar .bt{ text-align:center; min-width:0; }
.bar .bt b{ display:block; font-size:1em; font-weight:650; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bar .bt small{ display:block; font-size:.765em; color:var(--bar-sub); margin-top:1px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.bar .bt button{ color:var(--bar-sub); font-size:inherit; min-height:24px; }
.psym{ height:26px; display:block; margin-left:6px; filter:brightness(0) invert(1); }
.back{ min-height:44px; display:flex; align-items:center; gap:2px; color:var(--bar-ink); padding-right:6px; white-space:nowrap; }
.back i{ font-style:normal; font-size:1.53em; line-height:1; margin-top:-3px; }
.me{ min-height:44px; min-width:44px; display:flex; align-items:center; justify-content:flex-end; gap:6px; font-size:.88em; font-weight:600; color:var(--bar-ink); }
.av{ width:32px; height:32px; border-radius:50%; background:#f2c200; color:#2b2100; display:grid; place-items:center; font-size:13px; font-weight:800; flex:none; }

.sync{ display:flex; align-items:center; gap:8px; padding:8px 16px; font-size:.765em; font-weight:600; border-bottom:1px solid var(--line); background:var(--panel); color:var(--mute); }
.sync i{ font-style:normal; width:18px; height:18px; border-radius:50%; display:grid; place-items:center; font-size:11px; color:#fff; background:var(--okfill); flex:none; }
.sync.wn{ color:var(--warn); background:var(--warnbg); } .sync.wn i{ background:var(--warn); color:var(--warnbg); }
.sync.bad{ color:var(--bad); background:var(--badbg); } .sync.bad i{ background:var(--bad); color:var(--badbg); }

.ab{ flex:1; padding:16px 16px calc(210px + env(safe-area-inset-bottom)); display:grid; gap:12px; align-content:start; width:100%; max-width:640px; margin:0 auto; }
.hero{ display:grid; justify-items:center; gap:4px; padding:18px 0 6px; text-align:center; }
.hero img{ height:58px; } .hero h1{ margin:6px 0 0; font-size:1.65em; }
.hero p{ color:var(--mute); font-size:.765em; letter-spacing:.09em; text-transform:uppercase; font-weight:700; }
.card{ background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:14px 16px; }
.card h2{ margin:0 0 6px; font-size:1.18em; }
.card b{ color:var(--ink); }
.fine{ font-size:.88em; color:var(--mute); line-height:1.4; }
.note{ border-radius:14px; padding:12px 14px; font-size:.88em; line-height:1.4; background:var(--warnbg); color:var(--warn); border:1px solid var(--warnline); }
.note.bad{ background:var(--badbg); color:var(--bad); border-color:transparent; }
.note.ok{ background:var(--okbg); color:var(--ok); border-color:transparent; font-weight:600; }
button.note{ text-align:left; width:100%; }
.empty{ text-align:center; padding:28px 18px; }
.empty b{ display:block; font-size:1.06em; margin-bottom:4px; }
.eyebrow{ font-size:.765em; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mute); }

.truck{ display:grid; grid-template-columns:1fr auto; align-items:center; gap:10px; background:var(--truckbg); border:1px solid var(--truckline); border-radius:14px; padding:12px 14px; }
.truck b{ display:block; } .truck small{ display:block; font-size:.88em; color:var(--mute); }
.truck .btn{ width:auto; padding:0 14px; font-size:.88em; }
.sec{ display:flex; justify-content:space-between; gap:8px; font-size:.765em; font-weight:700; letter-spacing:.05em; text-transform:uppercase; color:var(--mute); margin:4px 2px -4px; }
.list{ display:grid; gap:0; background:var(--panel); border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.row{ display:flex; justify-content:space-between; align-items:center; gap:10px; min-height:60px; padding:9px 14px; width:100%; border-top:1px solid var(--line); text-align:left; }
.row:first-child{ border-top:0; }
.row > span:first-child{ min-width:0; }
.row b{ display:block; font-weight:650; } .row small{ display:block; font-size:.765em; color:var(--mute); }
.row.picked{ background:var(--okbg); }
.row.half{ background:var(--warnbg); }
.row.off{ opacity:.75; }
.chips{ display:flex; gap:5px; flex-wrap:wrap; justify-content:flex-end; }
.c{ font-size:.765em; font-weight:700; border-radius:8px; padding:4px 8px; white-space:nowrap; background:var(--chip); color:var(--ink2); }
.c.ok{ background:var(--okbg); color:var(--ok); } .c.now{ background:var(--accent); color:var(--accent-ink); } .c.fx{ background:var(--fixbg); color:var(--fix); } .c.wn{ background:var(--warnbg); color:var(--warn); }
.row.picked .c.ok, .row.half .c.wn{ background:var(--panel); }
.c i{ font-style:normal; font-size:.92em; font-weight:800; margin-left:2px; }
.chip{ font-size:.765em; font-weight:600; background:var(--chip); color:var(--ink2); border-radius:8px; padding:5px 9px; }
.chiprow{ display:flex; gap:6px; flex-wrap:wrap; }
.more{ display:flex; justify-content:space-between; align-items:center; min-height:52px; padding:0 14px; width:100%; font-weight:600; }

.phs{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.ph{ position:relative; border-radius:14px; overflow:hidden; aspect-ratio:4/3; background:var(--chip); display:block; width:100%; }
.ph img{ width:100%; height:100%; object-fit:cover; display:block; }
.ph span{ position:absolute; left:0; right:0; bottom:0; background:rgba(0,0,0,.66); color:#fff; font-size:.765em; font-weight:600; padding:5px 9px; text-align:left; }
.ph.wide{ aspect-ratio:2.6/1; grid-column:1 / -1; }
.ph.need{ border:1.5px dashed var(--line2); background:var(--panel); display:grid; place-items:center; text-align:center; font-weight:650; color:var(--ink2); padding:8px; }
.ph.need small{ display:block; font-weight:500; font-size:.765em; color:var(--mute); }
.ph.need.req small{ color:var(--warn); }
.addph{ min-height:52px; display:flex; align-items:center; justify-content:center; gap:8px; border:1.5px dashed var(--line2); border-radius:14px; font-size:.94em; font-weight:600; color:var(--ink2); width:100%; }
.busyph{ display:grid; place-items:center; font-size:.88em; color:var(--mute); }

.okall{ display:flex; align-items:center; justify-content:space-between; gap:12px; min-height:60px; padding:8px 8px 8px 16px; border-radius:14px; background:var(--okfill); color:#fff; width:100%; text-align:left; }
.okall b{ display:block; } .okall small{ display:block; font-size:.765em; color:#fff; }
.undo{ min-height:44px; padding:0 14px; border-radius:10px; background:rgba(0,0,0,.24); color:#fff; font-weight:700; font-size:.88em; }
.ex .row{ min-height:56px; } .ex .row b{ font-weight:500; }
.v{ font-size:.88em; font-weight:750; color:var(--ok); white-space:nowrap; } .v.f{ color:var(--fix); } .v.na{ color:var(--mute); } .v.todo{ color:var(--warn); }
.v i{ font-style:normal; font-size:.8em; margin-left:3px; }
.nt{ display:block; font-size:.88em; color:var(--fix); margin-top:2px; font-weight:500; }

.kv{ display:grid; grid-template-columns:1fr 1fr; gap:12px; background:var(--panel); border:1px solid var(--line); border-radius:14px; padding:12px 14px; }
.kv span{ display:block; font-size:.765em; color:var(--mute); } .kv b{ display:block; font-size:1.18em; font-weight:650; }
.kv .el{ grid-column:1 / -1; font-size:.88em; font-weight:650; color:var(--ok); background:var(--okbg); border-radius:10px; padding:8px 10px; }
.kv .el.wn{ color:var(--warn); background:var(--warnbg); }
.tick{ width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex:none; background:var(--okfill); color:#fff; font-weight:800; font-size:16px; }
.tick.no{ background:var(--panel); border:2px solid var(--line2); color:transparent; }
.lock{ width:28px; height:28px; border-radius:8px; display:grid; place-items:center; flex:none; background:var(--warnbg); color:var(--warn); border:1px solid var(--warnline); }
.lock svg{ width:16px; height:16px; stroke:currentColor; fill:none; stroke-width:2; }
.rowl{ display:flex; align-items:center; gap:12px; min-width:0; } .why{ color:var(--warn) !important; font-weight:600; }

/* inputs, choices */
.f{ display:grid; gap:6px; font-size:.88em; font-weight:600; color:var(--ink2); }
.f input, .f textarea, .f select, input.search{ font:inherit; font-size:17px; font-weight:650; min-height:52px; border-radius:12px; border:1px solid var(--line2); background:var(--panel); color:var(--ink); padding:10px 14px; width:100%; }
.f textarea{ min-height:96px; font-weight:400; line-height:1.35; resize:vertical; }
.f input:focus, .f textarea:focus, input.search:focus{ outline:3px solid #f2c200; outline-offset:0; }
.row2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.seg{ display:grid; grid-template-columns:1fr 1fr; gap:8px; } .seg.three{ grid-template-columns:repeat(3,1fr); }
.seg button{ min-height:52px; border-radius:12px; border:1.5px solid var(--line2); background:var(--panel); font-weight:650; text-align:center; }
.seg .on{ background:var(--okfill); border-color:var(--okfill); color:#fff; } .seg .on.fx{ background:var(--fixfill); border-color:var(--fixfill); }
.jobs{ display:flex; gap:8px; flex-wrap:wrap; }
.jobs button{ min-height:44px; padding:0 14px; border-radius:12px; font-size:.88em; font-weight:650; background:var(--chip); color:var(--ink2); }
.jobs .on{ background:var(--okbg); color:var(--ok); box-shadow:inset 0 0 0 1.5px var(--ok); }
.readbox{ border:2px solid var(--warnline); background:var(--warnbg); color:var(--warn); border-radius:14px; padding:12px 14px; display:grid; gap:10px; font-size:.88em; line-height:1.4; }
.readbox b{ color:var(--warn); }
.btn2{ display:grid; grid-template-columns:1.2fr 1fr; gap:8px; }
.wr2{ display:grid; grid-template-columns:96px 1fr; gap:12px; align-items:start; }
.wr2 img{ width:96px; border-radius:8px; display:block; }
.wr2 .h{ font-weight:700; font-size:.88em; margin-bottom:6px; }
.wr2 .kv2{ display:grid; grid-template-columns:1fr 1fr; gap:6px 10px; }
.wr2 span{ display:block; font-size:.765em; color:var(--mute); } .wr2 b{ font-size:1em; }
.wr2 input{ font:inherit; font-weight:700; width:5.2em; min-height:44px; border-radius:8px; border:1.5px solid var(--line2); background:var(--app); color:var(--ink); padding:4px 8px; }
.slots{ display:grid; grid-template-columns:repeat(3,1fr); gap:10px; }
.slot{ position:relative; aspect-ratio:1/1; border-radius:12px; overflow:hidden; background:var(--panel); display:grid; place-items:center; text-align:center; border:1.5px dashed var(--line2); font-size:.88em; font-weight:650; color:var(--ink2); width:100%; padding:4px; }
.slot small{ display:block; font-size:.765em; font-weight:500; color:var(--mute); }
.slot.req small{ color:var(--warn); }
.slot.has{ border:0; background:var(--chip); } .slot img{ position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.slot.has span{ position:absolute; left:0; right:0; bottom:0; background:rgba(0,0,0,.66); color:#fff; font-size:.765em; font-weight:600; padding:4px 6px; text-align:left; }

/* sheets */
.scrim{ position:fixed; inset:0; background:rgba(0,0,0,.48); display:flex; align-items:flex-end; z-index:20; }
.sheet{ background:var(--panel); width:100%; border-radius:22px 22px 0 0; padding:10px 16px calc(20px + env(safe-area-inset-bottom)); display:grid; gap:12px; max-width:640px; margin:0 auto;
  max-height:92dvh; overflow:auto; }
.grab{ width:40px; height:5px; border-radius:9px; background:var(--line2); justify-self:center; }
.sheet h3{ margin:4px 0 0; font-size:1.18em; } .sheet > p{ color:var(--mute); font-size:.88em; }
.sheet .big{ width:100%; border-radius:12px; display:block; max-height:60dvh; object-fit:contain; background:#000; }
@media (prefers-reduced-motion: no-preference){ .sheet{ animation:up .18s ease-out; } @keyframes up{ from{ transform:translateY(30px); opacity:.6; } } }

/* the main action, pinned in thumb reach */
.act{ position:fixed; left:0; right:0; bottom:0; z-index:10; background:var(--panel); border-top:1px solid var(--line);
  padding:12px 16px calc(12px + env(safe-area-inset-bottom)); display:grid; gap:10px; }
.act > *{ width:100%; max-width:608px; margin:0 auto; }
.act > [role=status]:empty{ display:none; }
.act .note{ margin:0; }
.btn{ min-height:52px; width:100%; border-radius:14px; display:flex; align-items:center; justify-content:center; gap:10px; font-size:1em; font-weight:650;
  background:var(--btn); color:var(--btn-ink); text-align:center; text-decoration:none; }
.btn.ghost{ background:var(--panel); color:var(--ink); border:1.5px solid var(--line2); }
.btn.red{ background:var(--bad); color:#fff; }
.btn.dis, .btn:disabled{ background:var(--chip); color:var(--mute); cursor:default; }
.btn svg{ width:24px; height:24px; stroke:currentColor; fill:none; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.btn:focus-visible, .me:focus-visible, .row:focus-visible, .back:focus-visible{ outline:3px solid #f2c200; outline-offset:2px; }
.att{ display:flex; gap:12px; align-items:center; font-size:.88em; line-height:1.35; color:var(--ink2); min-height:44px; text-align:left; width:100%; }
.att .box{ width:28px; height:28px; border-radius:8px; flex:none; display:grid; place-items:center; border:2px solid var(--line2); color:transparent; font-weight:800; }
.att.on .box{ background:var(--okfill); border-color:var(--okfill); color:#fff; }
.done2{ display:grid; justify-items:center; text-align:center; gap:4px; padding:8px 0 4px; }
.done2 .big{ width:64px; height:64px; border-radius:50%; background:var(--okfill); color:#fff; display:grid; place-items:center; font-size:34px; font-weight:800; margin-bottom:6px; }
.done2 b{ font-size:1.3em; } .done2 small{ font-size:.88em; color:var(--mute); }
.toast{ position:fixed; left:50%; transform:translateX(-50%); bottom:calc(96px + env(safe-area-inset-bottom)); z-index:30; background:var(--ink); color:var(--app);
  padding:10px 16px; border-radius:12px; font-size:.88em; font-weight:600; max-width:calc(100% - 32px); box-shadow:0 6px 20px rgba(0,0,0,.25); }
.spin{ display:inline-block; width:18px; height:18px; border-radius:50%; border:2.5px solid currentColor; border-right-color:transparent; animation:sp 0.8s linear infinite; }
@keyframes sp{ to{ transform:rotate(360deg); } }
.filebtn{ position:relative; overflow:hidden; }
