/* Layout: black-and-white champion badge identity. Black header band with the badge, one working column; customers get a request form + their tickets, staff get a live dispatch inbox. */
:root {
  --bg: #f4f4f2;
  --surface: #ffffff;
  --sunk: #e9e9e6;
  --ink: #111111;
  --muted: #5b5b58;
  --line: #d6d6d2;
  --band: #0d0d0d;
  --band-ink: #ffffff;
  --gold: #111111;
  --gold-soft: #ebebe8;
  --on-gold: #ffffff;
  --t-missed: #b23a1d;  --t-missed-bg: #f6dfd7;
  --t-change: #2d4f80;  --t-change-bg: #dde5f1;
  --t-bulk: #6a5512;    --t-bulk-bg: #efe7cc;
  --t-dumpster: #1f5a3f; --t-dumpster-bg: #d8e9df;
  --s-new: #b23a1d; --s-progress: #8a6410; --s-scheduled: #2d4f80; --s-done: #1f5a3f; --s-cancel: #6e6e6a;
  --focus: #111111;
  --font-display: "Barlow Condensed", "Arial Narrow", "Roboto Condensed", sans-serif;
  --font-body: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --radius: 4px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #101010; --surface: #1a1a1a; --sunk: #242424; --ink: #ededeb; --muted: #a3a39f; --line: #333331;
    --band: #000000; --band-ink: #ffffff; --gold: #ffffff; --gold-soft: #2a2a2a; --on-gold: #111111;
    --t-missed: #f08a6a; --t-missed-bg: #3b221b; --t-change: #93b4e0; --t-change-bg: #1e2a3b;
    --t-bulk: #d9c27a; --t-bulk-bg: #33301d; --t-dumpster: #80cfa7; --t-dumpster-bg: #19342a;
    --s-new: #f08a6a; --s-progress: #e8bf5a; --s-scheduled: #93b4e0; --s-done: #80cfa7; --s-cancel: #8f8f8b;
    --focus: #ffffff; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #101010; --surface: #1a1a1a; --sunk: #242424; --ink: #ededeb; --muted: #a3a39f; --line: #333331;
  --band: #000000; --band-ink: #ffffff; --gold: #ffffff; --gold-soft: #2a2a2a; --on-gold: #111111;
  --t-missed: #f08a6a; --t-missed-bg: #3b221b; --t-change: #93b4e0; --t-change-bg: #1e2a3b;
  --t-bulk: #d9c27a; --t-bulk-bg: #33301d; --t-dumpster: #80cfa7; --t-dumpster-bg: #19342a;
  --s-new: #f08a6a; --s-progress: #e8bf5a; --s-scheduled: #93b4e0; --s-done: #80cfa7; --s-cancel: #8f8f8b;
  --focus: #ffffff; color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); -webkit-text-size-adjust: 100%; color: var(--ink); font-family: var(--font-body); font-size: 15px; line-height: 1.5; }
body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 10; background: var(--band); }
.wrap { max-width: 880px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
a { color: inherit; }

/* Header band */
.band { background: var(--band); color: var(--band-ink); }
.band { padding-top: env(safe-area-inset-top, 0px); }
.band .wrap { padding-block: 22px 0; display: grid; gap: 16px; }
.brandrow { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.badge { width: 72px; height: 72px; flex: none; border-radius: 50%; background: #ffffff; padding: 3px; }
.brandtext { display: grid; gap: 2px; min-width: 0; }
.kicker { font-family: var(--font-display); font-weight: 600; font-size: .85rem; letter-spacing: .18em; text-transform: uppercase; color: var(--band-ink); opacity: .8; }
h1 { font-family: var(--font-display); font-weight: 800; font-size: 2.1rem; line-height: .95; letter-spacing: .01em; margin: 0; text-transform: uppercase; text-wrap: balance; }
.sub { margin: 0; color: #d6d6d2; font-size: .95rem; max-width: 62ch; }
.contactbar { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: .88rem; color: #d6d6d2; align-items: center; }
.contactbar strong { color: var(--band-ink); font-family: var(--font-mono); font-weight: 500; user-select: all; }
.contactbar .copy { font: 600 .78rem var(--font-body); color: var(--band-ink); background: transparent; border: 1px solid #555; border-radius: var(--radius); padding: 3px 8px; cursor: pointer; }
.contactbar a.portal { font-weight: 700; color: var(--band); background: var(--band-ink); text-decoration: none; padding: 4px 10px; border-radius: var(--radius); }
.stripe { height: 0; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs button { font: 700 .9rem var(--font-body); color: var(--band-ink); background: transparent; border: 0; padding: 10px 14px; border-radius: var(--radius) var(--radius) 0 0; cursor: pointer; opacity: .75; }
.tabs button[aria-selected="true"] { background: var(--bg); color: var(--ink); opacity: 1; }
.tabs .count { font-family: var(--font-mono); font-size: .78rem; background: var(--band-ink); color: var(--band); border-radius: 99px; padding: 1px 7px; margin-left: 6px; }

main .wrap { padding-block: 24px 48px; display: grid; gap: 26px; }
h2 { font-family: var(--font-display); font-weight: 800; font-size: 1.5rem; text-transform: uppercase; letter-spacing: .02em; margin: 0; text-wrap: balance; }
.eyebrow { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin: 0 0 6px; }
.notice { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius); padding: 12px 14px; font-size: .92rem; }
.area { font-size: .86rem; color: var(--muted); }
.area b { color: var(--ink); }

/* Type tiles */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 720px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.tile { display: grid; gap: 6px; align-content: start; text-align: left; background: var(--surface); color: var(--ink); border: 2px solid var(--line); border-radius: var(--radius); padding: 14px; cursor: pointer; font: inherit; }
.tile:hover { border-color: var(--muted); }
.tile[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink), 0 3px 0 var(--gold); }
.tile svg { width: 30px; height: 30px; }
.tile strong { font-family: var(--font-display); font-size: 1.22rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.tile span { font-size: .84rem; color: var(--muted); line-height: 1.35; }
.tile[data-t="missed"] svg { color: var(--t-missed); }
.tile[data-t="change"] svg { color: var(--t-change); }
.tile[data-t="bulk"] svg { color: var(--t-bulk); }
.tile[data-t="dumpster"] svg { color: var(--t-dumpster); }

/* Form */
form { display: grid; gap: 22px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; display: grid; gap: 16px; }
fieldset { border: 0; margin: 0; padding: 0; display: grid; gap: 14px; min-width: 0; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 560px) { .grid2 { grid-template-columns: 1fr; } }
label.f, .f { display: grid; gap: 5px; font-size: .86rem; font-weight: 600; min-width: 0; }
.f small { font-weight: 400; color: var(--muted); }
.flabel { font-size: .86rem; font-weight: 600; }
input[type=text], input[type=password], input[type=tel], input[type=email], input[type=date], input[type=number], select, textarea {
  font: 400 .95rem var(--font-body); color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 9px 10px; width: 100%; min-width: 0;
}
textarea { min-height: 76px; resize: vertical; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.chk { display: inline-flex; align-items: center; gap: 7px; background: var(--bg); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; font-size: .88rem; cursor: pointer; }
.chk:has(input:checked) { border-color: var(--ink); background: var(--gold-soft); }
.hint { font-size: .84rem; color: var(--muted); margin: 0; }
.opts { display: grid; gap: 8px; }
.opts.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.opts.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.opts.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 560px) { .opts.c2, .opts.c3, .opts.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.opt { position: relative; display: grid; gap: 2px; text-align: left; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.opt input { position: absolute; opacity: 0; pointer-events: none; }
.opt b { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.1; }
.opt b.mono { font-family: var(--font-mono); font-size: 1.05rem; text-transform: none; }
.opt span { font-size: .78rem; color: var(--muted); line-height: 1.3; }
.opt:has(input:checked) { border-color: var(--ink); background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--ink); }
.opt:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.price { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; background: var(--sunk); border-radius: var(--radius); padding: 10px 12px; font-size: .88rem; }
.price b { font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.inline { display: flex; align-items: center; gap: 8px; font-size: .9rem; }
.actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.btn { font: 700 .95rem var(--font-body); text-transform: uppercase; letter-spacing: .05em; border: 0; border-radius: var(--radius); padding: 12px 20px; cursor: pointer; background: var(--ink); color: var(--bg); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); box-shadow: none; padding: 7px 12px; font-size: .78rem; }
.formmsg { font-size: .9rem; color: var(--muted); }
.formmsg.err { color: var(--t-missed); font-weight: 600; }
.done { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 4px; }
.done > b { font-family: var(--font-display); font-size: 1.3rem; text-transform: uppercase; }

/* Tickets */
.listhead { display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.tickets { display: grid; gap: 10px; }
.ticket { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: grid; gap: 8px; min-width: 0; }
.ticket.isnew { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.thead { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 3px 9px; border-radius: 3px; }
.tag svg { width: 14px; height: 14px; }
.tag.missed { color: var(--t-missed); background: var(--t-missed-bg); }
.tag.change { color: var(--t-change); background: var(--t-change-bg); }
.tag.bulk { color: var(--t-bulk); background: var(--t-bulk-bg); }
.tag.dumpster { color: var(--t-dumpster); background: var(--t-dumpster-bg); }
.tno { font-family: var(--font-mono); font-size: .82rem; color: var(--muted); }
.when { font-size: .8rem; color: var(--muted); margin-left: auto; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; }
.status::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.st-new { color: var(--s-new); } .st-progress { color: var(--s-progress); } .st-scheduled { color: var(--s-scheduled); } .st-completed { color: var(--s-done); } .st-cancelled { color: var(--s-cancel); }
.rush { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--on-gold); background: var(--gold); padding: 2px 8px; border-radius: 3px; }
.who { font-weight: 700; }
.addr { color: var(--muted); font-size: .9rem; }
.details { margin: 0; font-size: .92rem; overflow-wrap: anywhere; }
.contact { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .86rem; color: var(--muted); }
.contact span { font-family: var(--font-mono); font-size: .8rem; color: var(--ink); user-select: all; }
.staffnote { background: var(--sunk); border-radius: var(--radius); padding: 8px 10px; font-size: .88rem; }
.staffnote b { font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); display: block; }
.ops { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 8px; align-items: center; border-top: 1px dashed var(--line); padding-top: 10px; }
@media (max-width: 560px) { .ops { grid-template-columns: 1fr; } }
.ops select, .ops input { padding: 7px 9px; font-size: .88rem; }
.empty { border: 2px dashed var(--line); border-radius: var(--radius); padding: 22px; color: var(--muted); font-size: .92rem; display: grid; gap: 4px; }
.empty b { color: var(--ink); }

/* Inbox summary */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (max-width: 560px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.cell { background: var(--surface); padding: 12px 14px; display: grid; gap: 2px; }
.cell b { font-family: var(--font-display); font-size: 2.1rem; line-height: 1; font-variant-numeric: tabular-nums; }
.cell span { font-size: .76rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .07em; }
.cell.hot b { color: var(--s-new); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fchip { font: 600 .84rem var(--font-body); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; cursor: pointer; }
.fchip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.filters select { width: auto; padding: 6px 10px; font-size: .84rem; border-radius: 99px; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius); font-size: .9rem; font-weight: 600; z-index: 20; max-width: calc(100% - 32px); }
footer .wrap { padding-block: 0 32px; font-size: .82rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 16px; }

[hidden] { display: none !important; }
img { max-width: 100%; }
footer .wrap { padding-bottom: calc(32px + env(safe-area-inset-bottom, 0px)); }
.install { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; display: flex; gap: 12px; align-items: center; font-size: .9rem; }
.install p { margin: 0; flex: 1; min-width: 0; }
.install svg { width: 18px; height: 18px; vertical-align: -3px; }
.login { max-width: 420px; display: grid; gap: 14px; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: .86rem; color: var(--muted); }
.lookup { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px; }
/* Tote picker keeps its three choices on one row at every width */
#c-totes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
/* Sign-up details */
.grid3 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1.3fr); gap: 14px; }
@media (max-width: 560px) { .grid3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .grid3 > :first-child { grid-column: 1 / -1; } }
.subpanel, .stack { display: grid; gap: 12px; }
.subpanel { border-top: 1px dashed var(--line); padding-top: 14px; }
.agree { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; line-height: 1.45; background: var(--sunk); border-radius: var(--radius); padding: 12px; cursor: pointer; }
.agree input { margin-top: 3px; flex: none; }
.f.bad input, .f.bad select, .agree.bad { outline: 2px solid var(--t-missed); outline-offset: 1px; }
/* Payment setup */
.paybox { border: 2px solid var(--ink); border-radius: var(--radius); padding: 12px 14px; display: grid; gap: 8px; font-size: .9rem; }
.paybox.ok { border-color: var(--s-done); color: var(--s-done); }
.paybox b.h { font-family: var(--font-display); font-size: 1.15rem; text-transform: uppercase; letter-spacing: .02em; }
.paybox .nums { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.paybox .nums span { font-family: var(--font-mono); font-size: 1rem; color: var(--ink); user-select: all; }
.paybox ol { margin: 0; padding-left: 20px; display: grid; gap: 2px; }
.paybox a.btn { justify-self: start; text-decoration: none; }
.pill { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; border: 1px solid currentColor; }
.pill.wait { color: var(--s-progress); }
.pill.done { color: var(--s-done); }
.cinfo { display: grid; gap: 2px; font-size: .85rem; color: var(--muted); }
.cinfo b { color: var(--ink); font-weight: 600; }
.setup { background: var(--sunk); border-radius: var(--radius); padding: 10px 12px; display: grid; gap: 10px; }
.setup .row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (max-width: 560px) { .setup .row { grid-template-columns: 1fr; } }
.setup label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; }
.setup input[type=text] { padding: 7px 9px; font-size: .9rem; }
.setup label.chk { display: inline-flex; align-items: center; gap: 7px; font-size: .86rem; font-weight: 600; }

/* Tote drop-off list */
.tabs button[hidden] { display: none; }
.tote { border-left: 4px solid var(--t-change); }
.tote.pickup { border-left-color: var(--t-missed); }
.tote.late { box-shadow: inset 0 0 0 1px var(--s-new); }
.tote .big { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.tote .due { font-size: .82rem; font-weight: 700; color: var(--muted); }
.tote .due.hot { color: var(--s-new); }
.tote .links { display: flex; flex-wrap: wrap; gap: 8px; }
.tote .links a { text-decoration: none; }
.tote .where { font-size: .92rem; }
.tote .where b { font-weight: 700; }
.tote .tops { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tote .tops .btn:not(.ghost) { padding: 12px 22px; }
.tote .doneby { color: var(--s-done); font-weight: 700; font-size: .88rem; }
#t-add .actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.totedef { display: flex; gap: 8px; align-items: flex-start; margin-top: 2px; }
.totedef svg { width: 22px; height: 22px; flex: none; color: var(--ink); margin-top: 1px; }
.totedef b { color: var(--ink); }

/* Dumpster dispatch */
.djob { border-left: 4px solid var(--t-dumpster); }
.djob.st-requested { border-left-color: var(--s-new); }
.djob.st-done, .djob.st-cancelled { border-left-color: var(--line); }
.djob.late { box-shadow: inset 0 0 0 1px var(--s-new); }
.djob .big { font-family: var(--font-display); font-weight: 800; font-size: 1.35rem; text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; }
.djob .due { font-size: .86rem; color: var(--muted); }
.djob .hot, .overprev.hot { color: var(--s-new); }
.djob .where { font-size: .92rem; }
.djob .links { display: flex; flex-wrap: wrap; gap: 8px; }
.djob .links a { text-decoration: none; }
.dops { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; border-top: 1px solid var(--line); padding-top: 10px; }
.dops label { display: grid; gap: 4px; font-size: .8rem; font-weight: 600; min-width: 0; }
.dops input, .dops select { width: auto; max-width: 100%; }
.dops .btn:not(.ghost) { padding: 12px 20px; }
.overprev { font-size: .86rem; font-weight: 700; align-self: center; }
.units { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.units li { display: grid; grid-template-columns: minmax(70px, auto) minmax(90px, auto) 1fr auto; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--radius); font-size: .9rem; }
.units li.free .uwhere { color: var(--s-done); font-weight: 700; }
.units li.busy .uwhere { color: var(--muted); }
.units li.off { opacity: .55; }
@media (max-width: 560px) { .units li { grid-template-columns: 1fr auto; } .units li .uwhere { grid-column: 1 / -1; } }
.unitform { display: grid; grid-template-columns: 1.4fr 1fr .8fr auto; gap: 10px; align-items: end; }
@media (max-width: 560px) { .unitform { grid-template-columns: 1fr 1fr; } .unitform > :first-child { grid-column: 1 / -1; } }
#view-dumpsters .toolbar { flex-wrap: wrap; }

/* Dumpster placement photos */
.photopick { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.photobtn { cursor: pointer; font-size: .85rem; padding: 10px 14px; }
.photobtn[hidden] { display: none; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; }
.thumb { position: relative; width: 76px; height: 76px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb button { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.75); color: #fff; font-size: 16px; line-height: 24px; cursor: pointer; padding: 0; }
.dphotos { display: flex; gap: 8px; flex-wrap: wrap; }
.dphotos a { display: block; width: 96px; height: 96px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--sunk); }
.dphotos img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dphotos a.missing { display: none; }
