/* Baloo 2, self-hosted (variable font, weights 400-800) — the round
   font, founder's order Nov 16, 2026. Self-hosted: the Google Fonts
   route proved flaky about serving every weight. */
@font-face {
  font-family: "Baloo 2";
  src: url("/fonts/baloo2-var.woff2") format("woff2");
  font-weight: 400 800;
  font-style: normal;
  font-display: swap;
}
:root { --blue: #1e5aa8; --light: #eef4fc; --ink: #1a1a1a; --muted: #666; --yellow: #f7c948; }
* { box-sizing: border-box; }
body { margin: 0; font-family: "Baloo 2", -apple-system, Helvetica, Arial, sans-serif; color: var(--ink); background: #fff; padding-bottom: 88px; }
button, input, select, textarea { font-family: inherit; }
.topbar { background: var(--blue); color: #fff; padding: 12px 16px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; }
.topbar .brand { font-weight: 700; font-size: 18px; }
.topbar .brand span { font-weight: 400; }
.topbar .slogan { font-size: 17px; font-style: italic; opacity: .95; flex: 1; text-align: center; }
@media (max-width: 640px) { .topbar .slogan { display: none; } }
.topbar .shop { font-size: 13px; opacity: .9; }
.topbar .role { flex-basis: 100%; font-size: 13px; opacity: .9; margin-top: 2px; }
.menu-btn { background: none; color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 6px 10px; font-size: 14px; }
.menu-panel { position: absolute; top: 52px; left: 12px; background: #fff; border: 1px solid #ddd; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 6px; z-index: 10; box-shadow: 0 4px 16px rgba(0,0,0,.15); }
.menu-panel button { background: #fff; color: var(--blue); border: 1px solid var(--blue); text-align: left; }
.hq-door { background: var(--light); margin-top: 20px; }
button:disabled { opacity: .45; cursor: not-allowed; }
/* Ask Square One (Nov 3): the floating HQ support chat, ported
   from Hello Yellow's Ask chat in Square One's own palette —
   postal blue, white, and the app's error red for the unread
   badge (no chick, no lemon: this is Square One's mark). The
   launcher floats bottom-right ABOVE the bottom pill bar; the
   panel takes its place when open. The DOM lives on <body>,
   outside the views, so screen switches never disturb it. The
   menu panel is Square One's one overlay-class element: while
   it is open the launcher and panel hide entirely, so the chat
   never covers a live control. */
.ask-launcher { position: fixed; right: 14px; bottom: 86px; z-index: 60;
  width: 56px; height: 56px; border-radius: 50%; padding: 0; cursor: pointer;
  background: var(--blue); border: 2px solid #fff;
  box-shadow: 0 6px 20px rgba(30, 90, 168, .35);
  display: flex; align-items: center; justify-content: center; }
.ask-launcher svg { width: 28px; height: 28px; display: block; }
.ask-dot { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px;
  border-radius: 999px; background: #b00020; color: #fff; font-size: 11px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; padding: 0 5px;
  border: 2px solid #fff; }
.ask-panel { position: fixed; right: 14px; bottom: 86px; z-index: 90;
  width: min(360px, calc(100vw - 28px));
  height: min(520px, calc(100dvh - 110px));
  background: #fff; border: 1px solid #c9d9ef; border-radius: 16px;
  box-shadow: 0 16px 44px rgba(26, 26, 26, .3);
  display: flex; flex-direction: column; overflow: hidden; }
.ask-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--blue); color: #fff; }
.ask-head .ask-sub { font-size: 12px; opacity: .85; }
.ask-head button { background: none; color: #fff; border: 1px solid rgba(255,255,255,.6); padding: 4px 10px; flex: none; }
.ask-msgs { flex: 1; overflow-y: auto; padding: 12px; display: flex;
  flex-direction: column; gap: 8px; }
.ask-row { display: flex; }
.ask-row.mine { justify-content: flex-end; }
.ask-bubble { max-width: 85%; background: var(--light); border: 1px solid #d7e3f2;
  border-radius: 14px; padding: 8px 11px; font-size: 14px; line-height: 1.45;
  overflow-wrap: anywhere; }
.ask-row.mine .ask-bubble { background: #dbeafe; border-color: #bfdbfe; }
.ask-time { font-size: 11px; color: var(--muted); margin-top: 4px; }
/* HQ support thread (Nov 3): Hello Yellow's positional zigzag,
   in Square One's own palette. Inside the HQ inbox's opened
   thread ONLY (.ask-msgs.hq-thread), the boxes alternate by
   POSITION, speaker-independent (the stamp inside each box
   names the writer): odd positions sit LEFT in the soft postal
   blue of the Messages chat-blue bubbles, even positions sit
   RIGHT in the soft green of the chat-green bubbles — the same
   two tint/border pairs the Messages flow already speaks, here
   spent on reading rhythm instead of speaker code. The
   customer/operator panel never carries .hq-thread, so its
   speaker styling (.mine right/blue, other left/light) is
   untouched, as is the Messages flow itself. */
.ask-msgs.hq-thread .ask-row:nth-child(odd) { justify-content: flex-start; }
.ask-msgs.hq-thread .ask-row:nth-child(even) { justify-content: flex-end; }
.ask-msgs.hq-thread .ask-row:nth-child(odd) .ask-bubble { background: #dbeafe; border-color: #bfdbfe; }
.ask-msgs.hq-thread .ask-row:nth-child(even) .ask-bubble { background: #dcfce7; border-color: #bbf7d0; }
/* HQ support inbox list (Nov 3): the same positional rhythm on
   the conversation LIST — the thread rows alternate the same
   two tints by position (odd postal blue, even green) so the
   queue reads like the thread it opens into. Scoped to the Ask
   inbox's own list only; the list repaints on every filter
   change, so each filtered list restarts at blue. No other
   .list in HQ (or anywhere) is touched. */
.hq-support-list li:nth-child(odd) { background: #dbeafe; border-color: #bfdbfe; }
.hq-support-list li:nth-child(even) { background: #dcfce7; border-color: #bbf7d0; }
.ask-compose { display: flex; gap: 8px; padding: 10px 12px;
  border-top: 1px solid #e2e2e2; background: #fff; }
.ask-compose input { flex: 1; }
.ask-compose button { flex: none; }
body:has(#menu-panel:not(.hidden)) .ask-launcher,
body:has(#menu-panel:not(.hidden)) .ask-panel { display: none !important; }
@media print { .ask-launcher, .ask-panel { display: none !important; } }
@media (max-width: 480px) {
  .ask-panel { left: 12px; right: 12px; width: auto; }
}

@media print { .topbar, .demo-banner, .bottombar, .menu-btn, button { display: none !important; } .labelbox { break-inside: avoid; } }
/* Tag labels on paper (visual pass #2): the layout survives
   printing, but the color band becomes a light fill with a
   dark outline and the chip an outlined pill — labels print
   on B/W printers too, and nothing about the tag may depend
   on color to be read. */
@media print {
  .labelbox { border: 2px solid #000 !important; background: #fff !important; }
  .tag-band { background: #e6e6e6 !important; color: #000 !important; border-bottom: 2px solid #000; }
  .tag-chip { background: #fff !important; color: #000 !important; border: 1px solid #000; }
}
.demo-banner { background: var(--yellow); color: #3a2a00; text-align: center; font-size: 13px; font-weight: 600; padding: 8px; }
.view { padding: 16px; max-width: 640px; margin: 0 auto; }
.hidden { display: none !important; }
h1 { font-size: 22px; margin: 8px 0; }
h2 { font-size: 17px; margin: 20px 0 8px; }
h3 { font-size: 15px; margin: 16px 0 6px; }
.sub { color: var(--muted); }
.note { color: var(--muted); font-size: 14px; }
.error { color: #b00020; }
.result { font-weight: 600; }
button, select, input { font-size: 16px; padding: 10px; border-radius: 8px; border: 1px solid #ccc; }
button { background: var(--blue); color: #fff; border: none; cursor: pointer; }
button.big { display: block; width: 100%; margin: 10px 0; padding: 14px; }
form label { display: block; margin: 10px 0; font-size: 14px; }
form label input, form label select { display: block; width: 100%; margin-top: 4px; }
form label.check { line-height: 1.45; }
form label.check input[type="checkbox"] { display: inline-block; width: auto; margin: 0 6px 0 0; vertical-align: baseline; }
.list { list-style: none; padding: 0; }
.list li { border: 1px solid #e2e2e2; border-radius: 8px; padding: 10px 12px; margin: 8px 0; }
/* Pickup appointment cards (Nov 9, 2026): the items being
   picked up ride the card; one item's number is BIG and BOLD
   (readable across the counter), several list with a count.
   Date-group headers separate the Pickups queue by day —
   Today first after any past-due group. */
.pickup-items { margin: 8px 0 4px; padding: 8px 10px; background: var(--light); border-radius: 8px; }
.pickup-item-label { font-size: 13px; font-weight: 700; color: var(--blue); text-transform: uppercase; letter-spacing: .4px; }
.pickup-item-big { font-size: 30px; font-weight: 800; line-height: 1.15; letter-spacing: .3px; }
.pickup-item-row { margin: 3px 0; }
.pickup-item-num { font-size: 19px; font-weight: 800; }
.queue-day-head { grid-column: 1 / -1; background: var(--light); color: var(--blue); border: 1px solid var(--blue); font-size: 16px; font-weight: 800; padding: 10px 12px; }
.queue-day-head.queue-day-today { background: var(--blue); color: #fff; }
.queue-day-head.queue-day-pastdue { background: #b00020; border-color: #b00020; color: #fff; }
.list .meta { color: var(--muted); font-size: 13px; }
/* Documents (ID vault v1, Nov 5): the Documents sections inside an
   application row and a customer detail, and the portal's "Your
   documents" block. Plain list rows (the standard .list look); the
   upload form rides the view's normal form styling so it spans
   the desktop content column like every other form. The armed
   delete button (first tap = make-sure, second tap = delete)
   takes the app's one alarm color. */
.app-docs { margin-top: 10px; border-top: 1px solid #eee; padding-top: 8px; }
.doc-upload label { margin: 6px 0; }
button[data-doc-del][data-armed="1"] { background: #b00020; }
/* Chat bubbles (Messages view, both threads): a conversation
   should read like a chat, not a stack of identical boxes. One
   color rule everywhere, from either chair (operator or HQ
   login): the operator/shop side is always green, the other
   party (customer or HQ) is always blue. Operator/shop bubbles
   align right, the other party left. Scoped to the two thread
   lists only — the thread picker, pickups and other lists keep
   the standard .list look. */
#msg-list li.chat, #hq-msg-list li.chat { max-width: 80%; border-radius: 16px; padding: 10px 14px; }
#msg-list li.chat-blue, #hq-msg-list li.chat-blue { background: #dbeafe; border-color: #bfdbfe; margin-right: auto; border-bottom-left-radius: 6px; }
#msg-list li.chat-green, #hq-msg-list li.chat-green { background: #dcfce7; border-color: #bbf7d0; margin-left: auto; border-bottom-right-radius: 6px; }
/* Customer portal "My messages" (Nov 4 restyle, user's ask —
   "color and space left and right"): the same thread seen from
   the customer's chair. Color still follows the sender (shop
   green, customer blue — the exact tints above), but the sides
   flip with the chair: the customer's own bubbles sit RIGHT,
   the shop's LEFT, each capped at 80% so a clear margin always
   shows on the open side. Scoped to #customer-msg-list only —
   the Messages view and the Ask chat are untouched. */
#customer-msg-list li.chat { max-width: 80%; border-radius: 16px; padding: 10px 14px; }
#customer-msg-list li.chat-blue { background: #dbeafe; border-color: #bfdbfe; margin-left: auto; border-bottom-right-radius: 6px; }
#customer-msg-list li.chat-green { background: #dcfce7; border-color: #bbf7d0; margin-right: auto; border-bottom-left-radius: 6px; }
/* Plan cards (Nov 4): the includes line fills the card from the
   fee schedule (see loadBillingCustomer), and the customer's
   current plan reads as SELECTED — a soft postal tint fill
   (never plain white) plus a prominent badge — while its button
   stays the non-action "Current plan" state. */
.plan-includes { margin: 6px 0 2px; }
.plan-current { background: var(--light); border-color: var(--blue); box-shadow: inset 3px 0 0 var(--blue); }
.plan-badge { background: var(--blue); color: #fff; font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
/* Legacy Letters entry card (Nov 4): the one slim door left in
   My mailbox where the full section used to sit; the section
   itself is its own page (view-legacy) now. */
.legacy-entry { display: block; width: 100%; text-align: left; background: var(--light);
  border: 1px solid var(--blue); border-radius: 8px; padding: 12px 14px; margin: 14px 0;
  color: var(--ink); font-size: 15px; cursor: pointer; }
/* Services shelf — "More from Square One" (Nov 5): the calm
   foot of the customer portal. Same card family as the rest of
   the app; no badges, no urgency, nothing animated. */
.shelf-card { background: var(--light); border-radius: 10px; padding: 14px; margin: 10px 0; }
.shelf-card h3 { margin: 0 0 6px; }
.shelf-card p { margin: 6px 0; }
.shelf-plans { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0 4px; }
.shelf-plans button { flex: 1 1 140px; }
.cards { display: flex; gap: 10px; flex-wrap: wrap; }
.card { background: var(--light); border-radius: 10px; padding: 14px; min-width: 110px; flex: 1; }
.approve-card { border: 2px solid #2e7d32; margin: 10px 0; }
.btn-approve { background: #2e7d32; color: #fff; font-weight: 700; font-size: 1.05rem; padding: 10px 26px; border: none; border-radius: 8px; cursor: pointer; }
button.card.dash-tile { border: none; font: inherit; text-align: left; cursor: pointer; }
.card .n { font-size: 26px; font-weight: 700; color: var(--blue); }
/* Dashboard stat tabs (visual pass #2, Nov 5, 2026): the
   pale tiles become colorful TABS in the mail-label tag
   language — a rounded card, a solid color band across the
   top, a light filled body, the count CENTERED and BOLD big
   with the label CENTERED and BOLD under it (the user's
   shape word: "a colorful TAB" + "center and bold"; an
   earlier circle shape from the same evening was superseded
   before it ever shipped). The grid is four across at every
   width (the grouping the tiles used); each tab is a real
   button, comfortably tappable at phone sizes. Colors (band
   / border + ink / tinted fill): Scan = postal blue;
   Forward = teal, Hold = amber-orange, Shred = the held
   red, Application = plum, Intake = the banner yellow (the
   Legacy person-color rings + app primaries); Pickup = sage
   and Package Point = terracotta — two lanes the user
   refuses to blur, two colors that cannot blur. A zero
   count dims (opacity + desaturate) but never disables.
   Long counts step the number down (.n4/.n5). */
#queue-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px 8px; }
.dash-tab { display: flex; flex-direction: column; align-items: stretch; text-align: center; width: 100%; min-height: 88px; padding: 0 6px 10px; border: 2px solid rgba(0, 0, 0, .18); border-radius: 12px; overflow: hidden; cursor: pointer; font: inherit; box-shadow: 0 2px 6px rgba(26, 26, 26, .10); }
.dash-tab-band { display: block; height: 10px; margin: 0 -6px 8px; }
.dash-tab-num { font-size: 28px; font-weight: 800; line-height: 1.1; text-align: center; }
.dash-tab-num.n4 { font-size: 21px; }
.dash-tab-num.n5 { font-size: 16px; }
.dash-tab-label { font-size: 13px; font-weight: 700; line-height: 1.2; text-align: center; margin-top: 2px; }
.dash-tab.zero { opacity: .52; filter: saturate(.35); }
.dash-tab.t-scan { background: #eef4fc; border-color: #17487f; color: #17487f; }
.dash-tab.t-scan .dash-tab-band { background: #1e5aa8; }
.dash-tab.t-forward { background: #e8f3f1; border-color: #256863; color: #256863; }
.dash-tab.t-forward .dash-tab-band { background: #2f7e79; }
.dash-tab.t-hold { background: #fdf3e3; border-color: #b45309; color: #9a4a08; }
.dash-tab.t-hold .dash-tab-band { background: #d97706; }
.dash-tab.t-shred { background: #f9ecec; border-color: #732626; color: #732626; }
.dash-tab.t-shred .dash-tab-band { background: #8c2f2f; }
.dash-tab.t-pickup { background: #eef3ea; border-color: #4c6842; color: #4c6842; }
.dash-tab.t-pickup .dash-tab-band { background: #5f7f52; }
.dash-tab.t-pkg { background: #f9eee7; border-color: #9c4a27; color: #9c4a27; }
.dash-tab.t-pkg .dash-tab-band { background: #be5a30; }
.dash-tab.t-application { background: #f1ecf5; border-color: #634a76; color: #634a76; }
.dash-tab.t-application .dash-tab-band { background: #7a5c90; }
.dash-tab.t-intake { background: #fdf6da; border-color: #d9a92e; color: #6b5310; }
.dash-tab.t-intake .dash-tab-band { background: #f7c948; }
@media (max-width: 480px) {
  .dash-tab { min-height: 76px; padding: 0 4px 8px; }
  .dash-tab-band { margin: 0 -4px 6px; height: 8px; }
  .dash-tab-num { font-size: 22px; }
  .dash-tab-num.n4 { font-size: 17px; }
  .dash-tab-num.n5 { font-size: 13px; }
  .dash-tab-label { font-size: 11.5px; }
}
/* Recent mail rows are tap targets (visual pass #2,
   amendment, Nov 5, 21:17): the whole row is one quiet
   button — the list item's own frame stays, the press/hover
   tint does the talking, in the dashboard's postal-blue
   family. */
.recent-row { display: block; width: 100%; min-height: 48px; text-align: left; background: none; border: none; padding: 0; margin: 0; cursor: pointer; font: inherit; color: inherit; }
li:has(> .recent-row) { cursor: pointer; }
li:has(> .recent-row):hover { background: #f4f8fd; }
li:has(> .recent-row):active { background: var(--light); }
.recent-row:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 8px; }
/* Needs your approval (Nov 5): the operator Home's top block —
   what is waiting on the operator's decision, above everything
   else on the view. A plain card with a postal-blue edge; each
   row is a full-width quiet button (label + meta lines) that
   taps to its acting surface. When nothing waits, the block is
   one small note line (.approvals-clear) — never a banner. */
.approvals-card { background: #fff; border: 1px solid var(--blue); box-shadow: inset 3px 0 0 var(--blue); margin: 12px 0; }
.approvals-card h3 { margin: 0 0 6px; }
.approval-row { display: block; width: 100%; text-align: left; background: none; border: none;
  color: var(--ink); padding: 2px 0; cursor: pointer; font-size: 15px; }
.approval-row:hover strong { text-decoration: underline; }
.approval-more { color: var(--blue); }
.approvals-clear { margin: 6px 0 2px; }
/* Needs your attention (Nov 6, 2026): the top-of-surface law
   on the customer's own chair — the portal leads with the
   customer's incomplete state, the same placement the
   operator's "Needs your approval" holds on Home, in the same
   card language (white, postal-blue edge). Calm by the user's
   ruling: incomplete is a note, never an alarm — NO red here;
   red stays for real problems. Quiet when complete: the
   loader renders nothing at all, not even an empty shell. */
.attention-card { background: #fff; border: 1px solid var(--blue); box-shadow: inset 3px 0 0 var(--blue); margin: 12px 0; }
.attention-card h3 { margin: 0 0 6px; }
.attention-line { margin: 4px 0; }
.attention-go { margin-top: 8px; padding: 10px 12px; background: #fff; color: var(--blue); border: 1px solid var(--blue); border-radius: 8px; font-weight: 600; cursor: pointer; }
/* "Your shipments" (Nov 8, 2026): the calm informational card
   directly below "Needs your attention" — shipped lines need
   no action, so they never render under the action heading.
   Each line is a real tappable row (thumb-sized, chevron at
   the right edge) opening the shipment detail. */
.shipments-card { background: #fff; border: 1px solid var(--blue); margin: 12px 0; }
.shipments-card h3 { margin: 0 0 6px; }
.ship-line { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 48px; padding: 10px 12px; margin: 6px 0; background: var(--light); color: var(--ink); border: 1px solid var(--blue); border-radius: 8px; font: inherit; text-align: left; cursor: pointer; }
.ship-line-text { flex: 1; }
.ship-line-go { color: var(--blue); font-size: 22px; font-weight: 700; line-height: 1; }
.ship-fold-head { display: flex; align-items: center; gap: 8px; width: 100%; min-height: 40px; padding: 4px 0; background: none; border: none; font: inherit; color: var(--ink); text-align: left; cursor: pointer; }
.ship-fold-title { flex: 1; font-weight: 700; font-size: 17px; }
.ship-fold-chev { color: var(--blue); font-size: 20px; font-weight: 700; line-height: 1; }
/* The shipment detail: one panel in the #shipment-detail
   slot, replaced on each open — never stacked. */
.ship-detail-card { background: #fff; border: 1px solid var(--blue); box-shadow: inset 3px 0 0 var(--blue); margin: 12px 0; }
.ship-tracking-label { margin: 10px 0 0; color: var(--muted); font-weight: 600; }
.ship-tracking-big { margin: 2px 0 6px; font-size: 22px; font-weight: 700; letter-spacing: .3px; word-break: break-all; }
.ship-tracking-big a { color: var(--blue); }
/* The packages-list shipped line as a tap target (Nov 8,
   2026): same shipped facts, button reset to read as the
   line it replaces. */
.pkg-shipped-btn { display: block; width: 100%; background: none; border: none; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
/* Her shipping-options rows (Nov 8, 2026): one tappable row
   per rate in the attention card — full-width so the whole
   row is the tap target, cheapest first as the server sent. */
.fwd-pick-btn { display: block; width: 100%; text-align: left; margin-top: 6px; }
/* Approval items as tab-style cards (visual pass #2,
   styling amendment, Nov 5, 21:19): a colored band by TYPE
   does the triage at a glance — application = the
   Application tab's plum, recipient 1583 check = postal
   blue, Legacy needs-attention = amber, suspicious-flagged
   = the alarm red from the pickup chips — and the cards
   zebra-alternate by visible order (zb-0 white / zb-1
   postal tint), the standing readability rule. The row
   button inside stays a big tap target with its navigation
   untouched. */
.approvals-card li.approval-item { border: 2px solid #dfe5ec; border-radius: 12px; overflow: hidden; padding: 0; margin: 10px 0; background: #fff; }
.approvals-card li.approval-item.zb-1 { background: #f4f8fd; }
.approval-band { display: block; height: 8px; background: var(--blue); }
.appr-applications .approval-band { background: #7a5c90; }
.appr-recipients .approval-band { background: #1e5aa8; }
.appr-legacy_attention .approval-band { background: #d97706; }
.appr-flagged .approval-band { background: #b00020; }
.approval-item .approval-row { padding: 10px 12px; min-height: 48px; }
/* Pulse bands (Nov 4): each home screen leads with what is
   actually happening today — the Neighborhood Pulse law in
   Square One's own palette (postal blue / the Messages
   chat-blue and chat-green tints; no borrowed colors). A row
   exists only when its real signal is above zero and taps
   through to its section; when nothing is happening the band
   collapses to one quiet line. Overdue rows borrow the app's
   one alarm color (#b00020), as text and border only. */
.pulse { background: var(--light); border: 1px solid #d7e3f2; border-radius: 10px; padding: 12px 14px; margin: 12px 0; }
.pulse-title { font-weight: 700; color: var(--blue); margin-bottom: 6px; }
.pulse-quiet { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.pulse-rows { list-style: none; margin: 0; padding: 0; }
.pulse-rows li { margin: 6px 0; }
.pulse-rows li:last-child { margin-bottom: 0; }
.pulse-row { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: #fff; color: var(--ink); border: 1px solid #bfdbfe; border-radius: 8px; padding: 10px 12px; font-size: 15px; cursor: pointer; }
.pulse-row .pulse-go { margin-left: auto; color: var(--blue); font-weight: 700; }
.pulse-row.pulse-alert { border-color: #b00020; }
.pulse-row.pulse-alert .pulse-text { color: #b00020; font-weight: 600; }
.pulse-ops { border-top: 1px solid #d7e3f2; margin-top: 10px; padding-top: 6px; }
/* Customer moments tracker rows: occasion — recipient, what's
   arranged, and its status stacked in one tappable row. */
.pulse-moment .pulse-text { display: flex; flex-direction: column; gap: 2px; }
.pulse-moment .m-title { font-weight: 600; }
.pulse-moment .m-meta { color: var(--muted); font-size: 13px; }
.pulse-moment .m-status { color: var(--blue); font-size: 13px; font-weight: 600; }
.pulse-moment .m-status.sent { color: #1e7a34; }
.pulse-add { display: block; width: 100%; margin-top: 10px; padding: 10px 12px; background: #fff; color: var(--blue); border: 1px solid var(--blue); border-radius: 8px; font-weight: 600; cursor: pointer; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters button { background: #fff; color: var(--blue); border: 1px solid var(--blue); }
#portal-tabs button.active { background: var(--blue); color: #fff; }
/* Bottom bar: one big rounded pill, inset from the screen edges
   (same container shape as Hello Yellow's bottom menu, in Square
   One's white + postal-blue scheme). Icon-only tabs (user decision,
   Nov 1): simple outline line icons, Facebook-style — thin outline
   when inactive, filled solid version when active; the word labels
   live on aria-label/title only. The active tab is unmistakable
   without words: the filled icon turns postal blue on a light-blue
   fill with an inset postal-blue ring around its pill segment. */
.bottombar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; z-index: 50; width: min(540px, calc(100vw - 20px)); background: #fff; border: 2px solid var(--blue); border-radius: 999px; display: flex; padding: 6px; box-shadow: 0 6px 20px rgba(30, 90, 168, .18); transition: transform 0.25s ease; }
/* Scroll-hide (Nov 4): slides the pill fully below the viewport
   edge while scrolling down; the app.js scroll listener toggles
   this class and removes it on scroll up or near the top. Same
   160% travel as Hello Yellow's pill. */
.bottombar.bar-hide { transform: translate(-50%, 160%); }
.bottombar button { flex: 1; background: none; color: #555; border: none; padding: 6px 1px; border-radius: 999px; white-space: nowrap; }
.bottombar button svg { width: 24px; height: 24px; display: block; margin: 0 auto; }
.bottombar button .icon-filled { display: none; }
.bottombar button.active { color: var(--blue); background: var(--light); box-shadow: inset 0 0 0 2px var(--blue); }
.bottombar button.active .icon-outline { display: none; }
.bottombar button.active .icon-filled { display: block; }
/* The mail-item label as a TAG (visual pass #2, Nov 5,
   2026): a colored band across the top (BOX line + kind
   word; package = postal blue, letter/mail = the banner
   yellow), the information inside a light-filled rounded
   outline — name largest, then date, then tracking — and a
   small status chip in the band when the item carries one
   (pass #1 chip families). The print block near the top of
   this file renders the tag as outline + light band so B/W
   printers stay legible. */
.labelbox { border: 2px solid #c9d9ef; border-radius: 12px; margin-top: 8px; overflow: hidden; background: #f7fafd; }
.labelbox.tag-package { border-color: #a9c6e8; }
.labelbox.tag-letter { border-color: #e8cf7e; }
#label-preview { padding: 12px; }
#label-preview .labelbox { margin-top: 0; }
.tag-band { display: flex; align-items: center; gap: 8px; padding: 7px 12px; }
.tag-package .tag-band { background: var(--blue); color: #fff; }
.tag-letter .tag-band { background: var(--yellow); color: #3a2a00; }
.tag-box { font-size: 15px; font-weight: 800; letter-spacing: .4px; }
.tag-kind { margin-left: auto; font-size: 13px; font-weight: 700; text-transform: capitalize; }
.tag-chip { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(255, 255, 255, .88); color: #333; white-space: nowrap; }
.tag-chip.tag-st-received { background: #fdeec9; color: #6b5310; }
.tag-chip.tag-st-held { background: #f6dede; color: #8c2f2f; }
.tag-chip.tag-st-picked_up { background: #e2efda; color: #33691e; }
.tag-body { padding: 9px 12px 11px; }
.tag-name { font-size: 17px; font-weight: 700; line-height: 1.2; }
.tag-date { font-size: 14px; margin-top: 1px; }
.tag-track { font-size: 13px; margin-top: 2px; }

/* Page background picker (Nov 3): swatch buttons with a color chip.
   The tint itself is applied to the page background only — cards,
   lists and panels keep their own surfaces, so nothing about the
   working screens changes shape or readability. */
.bg-swatches { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.bg-swatch { background: #fff; color: var(--ink); border: 1px solid #ccc; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; }
.bg-swatch .bg-chip { width: 22px; height: 22px; border-radius: 6px; border: 1px solid #ccc; display: inline-block; flex: none; }
.bg-swatch[aria-pressed="true"] { border: 2px solid var(--blue); font-weight: 700; }

/* Pickup hours editor (Messages view, operator side): one row per
   weekday, each with its open windows as start/end time inputs. */
.pickup-day { border-top: 1px solid #e3e8ef; padding: 10px 0; }
.pickup-day .day-name { display: inline-block; min-width: 96px; font-weight: 700; font-size: 14px; }
.pickup-day .closed-note { color: var(--muted); font-size: 13px; }
.pickup-window { display: inline-flex; align-items: center; gap: 6px; margin: 2px 10px 2px 0; }
.pickup-window input[type="time"] { width: auto; padding: 6px; }

/* Store finder (landing page, Nov 3): Leaflet/OpenStreetMap map —
   same stack as Hello Yellow — with a city type-ahead, the listed
   stores, and the store-scoped sign-up card. The map container
   carries position + z-index so Leaflet's internal panes stay
   inside it (below the fixed bottom bar and the menu panel). */
#finder-map { position: relative; z-index: 0; height: 300px; border: 1px solid #ccc; border-radius: 10px; margin: 10px 0; background: var(--light); }
.finder-pick { position: relative; }
.finder-pick label { display: block; margin: 10px 0; font-size: 14px; }
.finder-pick label input { display: block; width: 100%; margin-top: 4px; }
.finder-suggest { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: #fff; border: 1px solid #ccc; border-radius: 8px; box-shadow: 0 4px 16px rgba(0,0,0,.15); overflow: hidden; }
.finder-suggest button { display: block; width: 100%; background: #fff; color: var(--blue); border: none; border-radius: 0; text-align: left; }
.finder-suggest button:hover { background: var(--light); }
#finder-stores .store-signup { margin-top: 8px; }
#signup-wrap { border: 1px solid #ddd; border-radius: 10px; padding: 4px 14px 14px; margin: 12px 0; }
#signup-confirm { border: 1px solid #b9d6b9; background: #f1f7f1; border-radius: 10px; padding: 4px 14px 14px; margin: 12px 0; }
/* Packages finder (Nov 5): the dedicated package-receiving page
   mirrors the store finder's map treatment. */
#pkg-map { position: relative; z-index: 0; height: 300px; border: 1px solid #ccc; border-radius: 10px; margin: 10px 0; background: var(--light); }
#pkg-stores .store-signup { margin-top: 8px; }
#pkg-nearest { margin: 4px 0; }
#listing-editor { margin-top: 12px; }

/* ================================================================
   Wide screens (desktop, 900px and up): everything above this
   block is the phone layout and stays exactly as it is. On a
   desktop monitor the content opens up to a ~1200px working
   width and EVERYTHING stretches to that full content column —
   forms, lists, card grids, reading panes (the user's standing
   stretch law, re-asserted Nov 4 evening after the Queues
   screenshot: a pinched container on one view means sweep the
   whole app, not a hit list). The only deliberate exception is
   the login column. The bottom menu pill is already
   width-capped and centered above, so it does not change here.
   ================================================================ */
@media (min-width: 900px) {
  .view { max-width: 1200px; padding: 24px 32px; }

  /* Login used to stay a phone-width column — the one
     deliberate exception. OVERRULED Nov 15, 2026 (founder,
     with the wide-monitor screenshot: the front page sat in
     a narrow strip in the middle): the front page now fits
     the page like every other view. The sign-in and sign-up
     forms keep a reading-width cap so their fields do not
     stretch silly across a wide screen. */
  #view-login { max-width: 1200px; }
  #login-form, #login-verify-form, #signup-form { max-width: 560px; }

  /* Dashboard: queue cards in a 4-across grid; the Ask bar
     stretches with everything else. */
  #queue-cards { display: grid; grid-template-columns: repeat(4, 1fr); }
  #queue-cards .card { min-width: 0; }

  /* Customers / Directory: customer cards two across at full
     width; the detail pane and forms stretch full width too. */
  #directory-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }

  /* Queues: task rows and history rows in two columns, each
     row full width within its column; the add-task form
     stretches the full column (the Nov 4 screenshot pinch). */
  #queue-list, #history-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  .queue-who { margin: 3px 0; font-size: 15px; }

  /* Intake / Labels: the intake form and label preview stretch
     full width; unassigned items and printable labels use the
     wider space in grids. */
  #unassigned-items { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  #labels-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
  #labels-list .labelbox { margin-top: 0; }

  /* HQ: operator cards in a grid; network totals and operator
     detail counts lay out in columns; operator list two
     across; HQ forms stretch full width. */
  #hq-overview .cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
  #hq-overview .card { min-width: 0; }
  #hq-overview > .meta, #operator-detail .meta { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); column-gap: 16px; }
  #operator-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }

  /* Check Pad: count cards in a grid; forms stretch. */
  #checker-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  #checker-counts .card { min-width: 0; }

  /* Settings: forms stretch to the full content column. */
}

/* Legacy Letters (Nov 4): house card designs rendered from the
   design list the Worker serves — a gradient header band with the
   design's motif and headline, the sender's words on the card's
   paper color below. The same markup is the design picker, the
   sender's preview, the operator's card step, and (at print size)
   the printed card. */
/* Numbered step bubbles on the Write-a-letter form (Nov 4): one
   filled postal-blue circle per form section heading, white number
   centered, so the form reads as a numbered path. Decorative —
   headings keep their full words beside the bubble. */
.step-dot { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--blue); color: #fff; font-size: 13px; font-weight: 700; line-height: 1; margin-right: 7px; vertical-align: -6px; }
.legacy-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin: 8px 0; }
.legacy-design-pick { padding: 0; border: 2px solid #ddd; border-radius: 12px; overflow: hidden; background: #fff; cursor: pointer; text-align: left; }
.legacy-design-pick[aria-pressed="true"] { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue); }
.legacy-design-pick .legacy-card-head { padding: 14px 8px; }
.legacy-design-pick .pick-name { display: block; color: var(--ink); font-size: 13px; font-weight: 600; padding: 6px 8px; }
.legacy-card { border: 1px solid #ddd; border-radius: 14px; overflow: hidden; margin: 10px 0; max-width: 520px; }
.legacy-card-head { text-align: center; padding: 26px 16px; }
.legacy-card-motif { font-size: 34px; line-height: 1; }
.legacy-card-headline { font-size: 23px; font-weight: 700; letter-spacing: .5px; margin-top: 8px; }
.legacy-card-for { font-size: 14px; opacity: .85; margin-top: 4px; }
.legacy-card-body { padding: 22px 20px 8px; font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.6; white-space: pre-wrap; }
.legacy-card-from { padding: 0 20px 20px; font-family: Georgia, 'Times New Roman', serif; font-size: 15px; }
.legacy-overdue { color: #b00020; font-weight: 700; }
.legacy-attention { color: #b00020; font-weight: 600; }
/* Person bubbles (Nov 4, late evening): a colored ring circle
   with the loved one's initial(s), beside their name on the
   Legacy page (loved ones, letters, letter detail). Colors are
   inline per person from app.js's LEGACY_PERSON_COLORS palette
   (ring = border-color, tint = background, ink = color) — one
   stable color per recipient. The meta + buttons under the
   name line indent past the bubble so the row reads as one
   person block. */
.person-bubble { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--blue); font-size: 14px; font-weight: 700; line-height: 1; }
.person-line { display: flex; align-items: center; gap: 10px; }
.person-sub { margin-left: 46px; }
/* The Legacy page's Pulse band reuses the .pulse family as-is
   (band, title, rows, moment text); only its counts line is
   its own — a calm real-counts footer under the rows. The
   person bubble takes the row's icon slot. */
.legacy-pulse-counts { margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.legacy-pulse-counts strong { color: var(--ink); }
#legacy-print { display: none; }
@media print {
  body.legacy-printing #app { display: none !important; }
  body.legacy-printing #legacy-print { display: block !important; }
  body.legacy-printing #legacy-print .legacy-card { max-width: 7in; margin: 0.4in auto; break-inside: avoid; }
  body.legacy-printing #legacy-print .legacy-card-head { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Legacy Letters photo letters (Nov 4): the handwritten page on
   screen, and on paper — fit to the sheet, clean margins, one
   small sender line under it and nothing else. */
/* Occasions (person/occasions remodel, Nov 5 late evening): a
   person's days as chips under their name; letters group under
   person + occasion headings. */
.occ-chip { display: inline-block; background: var(--light); border: 1px solid #d8dee9; border-radius: 999px; padding: 2px 10px; font-size: 13px; font-weight: 600; color: var(--ink); }
.legacy-occ-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; }
.legacy-occ-item { display: inline-flex; align-items: center; gap: 2px; }
.occ-remove { border: none; background: none; color: var(--muted); cursor: pointer; font-size: 12px; padding: 2px 4px; line-height: 1; }
.occ-remove:hover { color: #b00020; }
.legacy-group-head { margin: 18px 0 6px; font-size: 15px; }
.legacy-first-occ { border: 1px solid #d8dee9; border-radius: 10px; margin: 10px 0; padding: 4px 12px 10px; }
.legacy-first-occ legend { font-weight: 600; padding: 0 6px; }
.legacy-occ-form { border: 1px solid #d8dee9; border-radius: 10px; margin: 10px 0; padding: 4px 12px 10px; background: #fbfcfe; }
.legacy-photo-view img { max-width: 100%; border: 1px solid #ddd; border-radius: 10px; margin: 8px 0; }
.legacy-video-view video { max-width: 100%; border-radius: 10px; margin: 8px 0; background: #000; }
#legacy-print .legacy-photo-print { display: block; max-width: 7.5in; max-height: 9.3in; object-fit: contain; margin: 0.25in auto 0; }
#legacy-print .legacy-print-from { text-align: center; font-family: Georgia, 'Times New Roman', serif; font-size: 13px; color: #555; margin-top: 0.18in; }

/* Monthly statement (Nov 4, evening): one screen, one column of
   numbers — collections, then the Square One charges (each with
   its math under its label), then the net. Right-aligned tabular
   amounts so the column reads like the statements operators
   already know, minus everything they hate about them. */
.stmt-table { width: 100%; border-collapse: collapse; margin: 8px 0 12px; }
.stmt-table td { padding: 6px 4px; border-bottom: 1px solid #e2e2e2; vertical-align: top; }
.stmt-table td.amt { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.stmt-table .stmt-head td { font-weight: 700; border-bottom: 2px solid var(--ink); padding-top: 14px; }
.stmt-table .stmt-total td { font-weight: 600; border-bottom: 2px solid #e2e2e2; }
.stmt-table .stmt-net td { font-weight: 700; font-size: 17px; border-bottom: none; padding-top: 10px; }
#statement-print { display: none; }
@media print {
  body.stmt-printing #app { display: none !important; }
  body.stmt-printing #statement-print { display: block !important; }
  body.stmt-printing #statement-print .stmt { max-width: 7in; margin: 0.4in auto; }
}

/* Google sign-in (Nov 5, 2026): the customer-only "Continue with
   Google" button. Rendered ONLY when the Worker reports Google
   sign-in configured (keys-pending otherwise — the wrap stays
   hidden and nothing else on the page changes). Plain white pill
   with a blue G, in the shape people already recognize. */
.google-btn { display: inline-flex; align-items: center; gap: 10px; background: #fff; border: 1px solid #dadce0; border-radius: 999px; padding: 9px 18px 9px 14px; color: #1f1f1f; font-weight: 600; font-size: 15px; text-decoration: none; margin: 6px 0 2px; }
.google-btn:hover { background: #f8faff; border-color: #c6d7f5; }
.google-btn .g-mark { color: #4285f4; font-weight: 700; font-size: 17px; line-height: 1; }

/* ID redaction (Nov 5, 2026): the staff ID-check card shows ONLY
   the operator-cropped portrait + the name + verified standing —
   the original ID never reaches a staff screen. The crop panel's
   square is dragged over the face on the operator's own view of
   the ID photo; the canvas cuts it and uploads only the crop. */
.id-check-row { display: flex; align-items: center; gap: 10px; margin: 6px 0; }
.id-portrait-img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid #ddd; display: block; }
.scan-img { max-width: 100%; height: auto; border: 1px solid #ddd; border-radius: 10px; display: block; margin: 8px 0; }
.scan-actions { margin-top: 10px; }
.id-portrait-img.small { width: 48px; height: 48px; border-radius: 8px; }
.portrait-panel { margin: 10px 0; padding: 10px; border: 1px dashed #c6d7f5; border-radius: 10px; }
.crop-stage { position: relative; display: inline-block; max-width: 100%; line-height: 0; }
.crop-img { max-width: 100%; height: auto; border-radius: 6px; }
.crop-box { position: absolute; border: 2px solid var(--blue); background: rgba(30, 90, 168, .14); cursor: move; touch-action: none; box-sizing: border-box; }
.crop-controls { margin-top: 8px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

/* SA-network (Nov 5, 2026): Package Point kind badges (HQ
   network table) and the point operator trimming. The trimming
   rides the body.shop-point class (set in renderRole) so a late
   async loader can never resurrect a hidden mailbox section;
   the server fences remain the real boundary. */
.kind-badge {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e8eef4;
  color: #33506b;
  vertical-align: middle;
}
.kind-badge.kind-point { background: #fdeec9; color: #6b5310; }
.kind-badge.kind-invited { background: #dbe4f0; color: #31517a; }
/* SA-network payouts (Nov 5, 2026): payout-state badges on the
   point statement (operator Settings + HQ Network expander). */
.kind-badge.kind-paid { background: #e2efd9; color: #33691e; }
.kind-badge.kind-owed { background: #f6dede; color: #8c2f2f; }
.kind-badge.kind-partial { background: #fdeec9; color: #6b5310; }
/* Decided application rows (Nov 5, 2026): a decided application
   renders as history — name, plan, and this status chip; no live
   controls. Same pill shape as .kind-badge. */
.status-chip {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: #e8eef4;
  color: #33506b;
  vertical-align: middle;
}
.status-chip.chip-approved { background: #e2efd9; color: #33691e; }
.status-chip.chip-auto { background: #dbe4f0; color: #31517a; }
.status-chip.chip-declined { background: #f6dede; color: #8c2f2f; }
/* Release receipt (Nov 5, 2026): a completed release lands on a
   card that stays until the operator dismisses it — the item
   leaves the queue AND the operator holds the receipt. */
.pkg-receipt { background: #e2efd9; border: 1px solid #b9d3a8; border-radius: 10px; padding: 12px 14px; margin: 10px 0; }
.pkg-receipt h3 { margin: 0 0 4px; color: #33691e; }
.pkg-receipt .meta { color: #44603a; margin: 2px 0 8px; }
.pkg-code-hero { text-align: center; border: 1px solid #d8dee5; border-radius: 10px; padding: 14px 12px; margin: 10px 0; background: #fff; }
.pkg-code-hero .pkg-code-label { font-size: 15px; font-weight: bold; letter-spacing: .04em; color: #555; }
.pkg-code-hero .pkg-code-value { font-size: 56px; font-weight: bold; letter-spacing: .18em; line-height: 1.15; }
.pkg-shipped-line { font-size: 17px; font-weight: 600; margin: 4px 0; }
.pkg-set-bar { border: 1px solid #d8dee5; border-radius: 10px; padding: 10px 12px; margin: 10px 0; background: #f6f8f5; }
.intake-pick-row { display: block; width: 100%; text-align: left; background: none; border: none; padding: 4px 2px; cursor: pointer; font: inherit; color: var(--ink); }
.intake-pick-row:hover { background: #eef3ea; }
/* Operator Home bottom shortcut to package intake (Nov 8,
   2026): a full-width thumb target in the intake tab's
   postal-blue family, sitting at the bottom of the
   dashboard — one tap into the intake line. */
.intake-shortcut { display: block; width: 100%; margin: 18px 0; padding: 16px; font: inherit; font-size: 17px; font-weight: 800; text-align: center; color: #17487f; background: #eef4fc; border: 2px solid #17487f; border-radius: 12px; cursor: pointer; box-shadow: 0 2px 6px rgba(26, 26, 26, .10); }
.intake-shortcut:active { background: #dbe9fa; }
/* The picker's "Show all customers" expand (Nov 8, 2026):
   a quiet but clearly tappable row under the search. */
#intake-show-all { min-height: 44px; padding: 8px 14px; font-weight: 700; }
body.shop-point #billing-operator-wrap,
body.shop-point #statement-wrap,
body.shop-point #reports-wrap,
body.shop-point #legacy-queue-wrap,
body.shop-point #recipients-wrap,
body.shop-point #application-form-wrap,
body.shop-point #add-mailbox-customer-wrap { display: none !important; }
#signup-qr, #op-signup-qr {
  background: #fff;
  border: 1px solid #d8dee5;
  border-radius: 8px;
  max-width: 232px;
  height: auto;
}

/* Pickup surface visual pass #1 (Nov 5, 2026): the package
   pickup queue ONLY — every rule is scoped to #package-queue
   (plus the receipt card in #package-receipt, restyled in
   place at its own definitions above) so no other view moves.
   Tokens reuse the app's own palette: postal blue (selection,
   --blue / --light), the receipt green family (the release
   action — green is the operator/shop color everywhere else
   in the app), the badge amber pair (waiting), the badge red
   pair (held) and the app's one alarm color (flagged). The
   path reads as numbered steps (.step-dot, the app's numbered
   bubble): 1 packages · 2 ID checked · 3 code → RELEASE. */
#package-queue {
  --pk-green: #33691e;
  --pk-green-edge: #b9d3a8;
  --pk-amber-bg: #fdeec9;
  --pk-amber-ink: #6b5310;
  --pk-red-bg: #f6dede;
  --pk-red-ink: #8c2f2f;
  --pk-alarm: #b00020;
  --pk-edge: #d7e3f2;
}
#package-queue .pk-step { display: flex; align-items: center; flex-wrap: wrap; font-size: 17px; margin: 16px 0 8px; }
#package-queue .pk-step .note { font-size: 14px; }
#package-queue .pk-cards { list-style: none; padding: 0; margin: 0; }
#package-queue .pk-card { border: 2px solid #dfe5ec; border-radius: 14px; padding: 12px 14px; margin: 10px 0; background: #fff; }
#package-queue .pk-card.flash { border-color: var(--blue); box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px rgba(30, 90, 168, .30); }
#package-queue .pk-card.can-pick { cursor: pointer; }
#package-queue .pk-card.sel { border-color: var(--blue); background: var(--light); box-shadow: inset 0 0 0 2px var(--blue); }
#package-queue .pk-card-top { display: flex; align-items: center; gap: 10px; min-height: 48px; }
#package-queue .pk-pick-wrap { display: flex; align-items: center; flex: none; padding: 9px 4px; margin: -4px 0; cursor: pointer; }
#package-queue .pkg-pick { width: 30px; height: 30px; margin: 0; padding: 0; border: none; accent-color: var(--blue); cursor: pointer; }
#package-queue .pk-name { font-size: 19px; font-weight: 700; flex: 1; min-width: 0; }
#package-queue .pk-chip { font-size: 13px; padding: 3px 10px; flex: none; }
#package-queue .pk-chip-wait { background: var(--pk-amber-bg); color: var(--pk-amber-ink); }
#package-queue .pk-chip-held { background: var(--pk-red-bg); color: var(--pk-red-ink); }
#package-queue .pk-chip-flag { background: var(--pk-alarm); color: #fff; }
#package-queue .pk-card-body { display: flex; gap: 12px; align-items: flex-start; margin-top: 6px; }
#package-queue .pk-card-body .id-check-slot { flex: none; }
#package-queue .id-portrait-img.small { width: 84px; height: 84px; border-radius: 12px; }
#package-queue .pk-card-info { flex: 1; min-width: 0; }
#package-queue .pk-fee { font-size: 17px; font-weight: 700; margin: 2px 0 4px; }
#package-queue .pk-card .legacy-attention { margin-top: 8px; }
#package-queue .pk-reissue { margin-top: 10px; }
#package-queue .pk-reissue button { padding: 10px 14px; }
#package-queue .pk-panel { border: 2px solid var(--pk-edge); border-radius: 14px; padding: 4px 14px 14px; margin: 16px 0 10px; background: #f6f8f5; }
#package-queue .pk-idc { display: flex; align-items: center; gap: 12px; min-height: 56px; font-size: 16px; background: #fff; border: 1px solid var(--pk-edge); border-radius: 10px; padding: 10px 12px; margin: 0 0 4px; cursor: pointer; }
#package-queue .pk-idc input { width: 28px; height: 28px; margin: 0; padding: 0; border: none; accent-color: var(--pk-green); flex: none; cursor: pointer; }
#package-queue .pk-idc:has(input:checked) { background: #e2efd9; border-color: var(--pk-green-edge); }
#package-queue #pkg-set-code { display: block; width: 100%; font-size: 30px; font-weight: 700; letter-spacing: .25em; text-align: center; padding: 12px; }
#package-queue #pkg-set-btn { display: block; width: 100%; padding: 16px; margin-top: 12px; font-size: 19px; font-weight: 700; background: var(--pk-green); }
#package-queue .pk-hint { color: var(--muted); font-size: 14px; margin: 8px 0 0; min-height: 20px; }
@media (min-width: 900px) {
  #package-queue .pk-cards { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
  #package-queue .pk-card { margin: 8px 0; }
}

/* Intake step path (visual pass #3, Nov 5, 2026): the Intake
   line becomes a numbered, colored STEP PATH in the pass
   #1/#2 language — the user's words: "number out the steps,
   one, two, three, four, five, so that the operator would
   know what to do. Give it some color. Give some life."
   Each step is a card: a solid color band across the top
   carrying the .step-dot bubble (reversed to a white disc
   on the band) and the step's name in bold, a light tinted
   body holding the step's fields. Colors reuse the pass #2
   tab tokens so the app speaks one palette: 1 Photo =
   postal blue, 2 What is it? = teal, 3 Who is it for? =
   plum, 4 Details = amber, 5 Add it = the release green
   (#33691e) — and the Add item button inside step 5 is that
   same green, full width, the release button's shape.
   Expected packages rides ABOVE the form as its own banded
   strip (the banner yellow — a shortcut INTO step 3, not a
   step), and Unassigned items below gets a matching banded
   header. Every rule is scoped to #view-intake so no other
   surface moves. Regrouping only: every field keeps its id,
   name, and handler — the picker, the submit catch, kind
   re-scoping, expectation binding, and the label preview
   wire exactly as before. */
#view-intake .in-card { border: 2px solid rgba(0, 0, 0, .18); border-radius: 12px; overflow: hidden; margin: 14px 0; box-shadow: 0 2px 6px rgba(26, 26, 26, .10); background: #fff; }
#view-intake .in-band { display: flex; align-items: center; padding: 9px 12px; font-size: 16px; font-weight: 700; color: #fff; }
#view-intake .in-band .step-dot { background: #fff; margin-right: 9px; vertical-align: 0; flex: none; }
#view-intake .in-body { padding: 2px 12px 8px; }
#view-intake .in-exp { border-color: #d9a92e; background: #fdf6da; }
#view-intake .in-exp .in-band { background: var(--yellow); color: #6b5310; }
#view-intake .in-s1 { border-color: #17487f; background: #eef4fc; }
#view-intake .in-s1 .in-band { background: var(--blue); }
#view-intake .in-s1 .step-dot { color: #17487f; }
#view-intake .in-s2 { border-color: #256863; background: #e8f3f1; }
#view-intake .in-s2 .in-band { background: #2f7e79; }
#view-intake .in-s2 .step-dot { color: #256863; }
#view-intake .in-s3 { border-color: #634a76; background: #f1ecf5; }
#view-intake .in-s3 .in-band { background: #7a5c90; }
#view-intake .in-s3 .step-dot { color: #634a76; }
#view-intake .in-s4 { border-color: #b45309; background: #fdf3e3; }
#view-intake .in-s4 .in-band { background: #d97706; }
#view-intake .in-s4 .step-dot { color: #9a4a08; }
#view-intake .in-s5 { border-color: #33691e; background: #eef3ea; }
#view-intake .in-s5 .in-band { background: #33691e; }
#view-intake .in-s5 .step-dot { color: #33691e; }
#view-intake #intake-submit { display: block; width: 100%; padding: 16px; margin: 8px 0 4px; font-size: 19px; font-weight: 700; background: #33691e; border-radius: 10px; }
#view-intake .in-sec-band { background: var(--blue); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 16px; }
/* Paper: the step bands take the tag treatment — light fill,
   dark words — so nothing on the page depends on color to
   be read (the label itself prints via .labelbox as before). */
@media print {
  #view-intake .in-band, #view-intake .in-sec-band { background: #e6e6e6 !important; color: #000 !important; border-bottom: 2px solid #000; }
  #view-intake .in-band .step-dot { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  #view-intake .in-card { background: #fff !important; border-color: #000 !important; box-shadow: none; }
}

/* Walk-in shipping step path (Nov 9, 2026 — the user's word:
   "make the walk in shipment colorful and step by step numbered
   just like the intake line page"): the SAME treatment as the
   Intake step path above, scoped to #view-walkin — banded cards,
   white-disc .step-dot bubbles, one palette: 1 Sender &
   recipient = postal blue, 2 Package & prices = teal, 3 Pick a
   speed = plum, 4 Customer pays = amber, 5 Label = the release
   green. The form carries steps 1–2; the active shipment's card
   carries the band of the step it is ON (3/4/5) plus a 1–5 dot
   tracker (green ✓ = done, the step's own color = current,
   alarm red ! = needs attention — payment_failed / label_failed
   also flip the card's band + border to the app's one alarm
   color #b00020, the flagged-band convention). Regrouping and
   paint only: every field, id, and handler is unchanged. */
#view-walkin .wk-card { border: 2px solid rgba(0, 0, 0, .18); border-radius: 12px; overflow: hidden; margin: 14px 0; box-shadow: 0 2px 6px rgba(26, 26, 26, .10); background: #fff; }
#view-walkin .wk-band { display: flex; align-items: center; padding: 9px 12px; font-size: 16px; font-weight: 700; color: #fff; }
#view-walkin .wk-band .step-dot { background: #fff; margin-right: 9px; vertical-align: 0; flex: none; }
#view-walkin .wk-body { padding: 2px 12px 8px; }
#view-walkin .wk-s1 { border-color: #17487f; background: #eef4fc; }
#view-walkin .wk-s1 .wk-band { background: var(--blue); }
#view-walkin .wk-s1 .step-dot { color: #17487f; }
#view-walkin .wk-s2 { border-color: #256863; background: #e8f3f1; }
#view-walkin .wk-s2 .wk-band { background: #2f7e79; }
#view-walkin .wk-s2 .step-dot { color: #256863; }
#view-walkin .wk-s3 { border-color: #634a76; background: #f1ecf5; }
#view-walkin .wk-s3 .wk-band { background: #7a5c90; }
#view-walkin .wk-s3 .step-dot { color: #634a76; }
#view-walkin .wk-s4 { border-color: #b45309; background: #fdf3e3; }
#view-walkin .wk-s4 .wk-band { background: #d97706; }
#view-walkin .wk-s4 .step-dot { color: #9a4a08; }
#view-walkin .wk-s5 { border-color: #33691e; background: #eef3ea; }
#view-walkin .wk-s5 .wk-band { background: #33691e; }
#view-walkin .wk-s5 .step-dot { color: #33691e; }
#view-walkin .wk-attn { border-color: #b00020; }
#view-walkin .wk-attn .wk-band { background: #b00020; }
#view-walkin .wk-attn .step-dot { color: #b00020; }
#view-walkin .wk-cancel { border-color: rgba(0, 0, 0, .35); background: #f4f4f4; }
#view-walkin .wk-cancel .wk-band { background: #666; }
#view-walkin .wk-outside { border-color: #455a64; background: #eef2f3; }
#view-walkin .wk-outside .wk-band { background: #546e7a; }
#view-walkin .wk-outside-box { border: 1.5px dashed rgba(0, 0, 0, .30); border-radius: 10px; padding: 4px 10px 8px; margin: 12px 0 4px; }
#view-walkin .wk-sec-band { background: var(--blue); color: #fff; border-radius: 10px; padding: 10px 12px; font-size: 16px; }
#view-walkin #walkin-recent-toggle { cursor: pointer; user-select: none; -webkit-user-select: none; }
#view-walkin #walkin-quote-btn { display: block; width: 100%; padding: 16px; margin: 8px 0 4px; font-size: 19px; font-weight: 700; background: #2f7e79; border-radius: 10px; }
#view-walkin .walkin-rate { display: block; width: 100%; text-align: left; padding: 14px 16px; font-size: 17px; font-weight: 600; background: #7a5c90; border-radius: 10px; }
#view-walkin .wk-track { display: flex; align-items: center; gap: 6px; margin: 10px 0 4px; }
#view-walkin .wk-dot { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 2px solid #bbb; color: var(--muted); font-size: 13px; font-weight: 700; line-height: 1; flex: none; }
#view-walkin .wk-dot.done { background: #33691e; border-color: #33691e; color: #fff; }
#view-walkin .wk-dot.now { background: var(--blue); border-color: var(--blue); color: #fff; }
#view-walkin .wk-s3 .wk-dot.now { background: #7a5c90; border-color: #7a5c90; }
#view-walkin .wk-s4 .wk-dot.now { background: #d97706; border-color: #d97706; }
#view-walkin .wk-s5 .wk-dot.now { background: #33691e; border-color: #33691e; }
#view-walkin .wk-dot.attn { background: #b00020; border-color: #b00020; color: #fff; }
#view-walkin .wk-line { flex: 1; height: 2px; background: rgba(0, 0, 0, .15); }
#view-walkin [data-walkin-print], #view-walkin [data-walkin-print-list] { background: #33691e; }
/* Forward-lane label reprint (Nov 9, 2026): the same release-green
   Print label as the walk-in lane, on the operator Queues — open
   forward cards (label bought, not yet marked shipped) and the
   read-only Recently shipped forwards rows below them. */
#queue-list [data-fwd-print] { background: #33691e; }
#queue-list .fwd-shipped-row { box-shadow: inset 5px 0 0 #33691e; }
#view-walkin .wk-st-label_bought { box-shadow: inset 5px 0 0 #33691e; }
#view-walkin .wk-st-label_failed { box-shadow: inset 5px 0 0 #b00020; }
#view-walkin .wk-st-awaiting_payment, #view-walkin .wk-st-ready { box-shadow: inset 5px 0 0 #d97706; }
#view-walkin .wk-st-paid { box-shadow: inset 5px 0 0 var(--blue); }
#view-walkin .wk-st-handled_outside { box-shadow: inset 5px 0 0 #546e7a; }
#view-walkin .wk-st-cancelled { opacity: .72; }
/* Recent-list accordion (Nov 16, 2026): the summary line is the
   tap target, and expanded meta wraps so long tracking numbers
   never push past the screen edge. */
#view-walkin .wk-head { cursor: pointer; }
#view-walkin .wk-chev { display: inline-block; width: 1em; color: var(--muted); }
#view-walkin .wk-row .meta { overflow-wrap: anywhere; }
@media print {
  #view-walkin .wk-band, #view-walkin .wk-sec-band { background: #e6e6e6 !important; color: #000 !important; border-bottom: 2px solid #000; }
  #view-walkin .wk-band .step-dot { background: #fff !important; color: #000 !important; border: 1px solid #000; }
  #view-walkin .wk-card { background: #fff !important; border-color: #000 !important; box-shadow: none; }
}

/* Legacy Letters (Nov 5, late evening): the just-saved letter
   flashes in Your letters — the package-card flash treatment
   (blue border + yellow ring), so a save visibly lands. */
#legacy-mine li.flash { border-color: var(--blue); box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px rgba(30, 90, 168, .30); }

/* Approvals landing (Nov 6, 2026): the "Needs your approval"
   card for an application lands ON that application's row —
   the same flash treatment (postal-blue border + yellow ring)
   so the operator's eye goes straight to the row he tapped
   for. */
#application-list li.flash { border-color: var(--blue); box-shadow: 0 0 0 3px var(--yellow), 0 0 0 6px rgba(30, 90, 168, .30); }

/* The four-document checklist (Nov 6, 2026 — the user's law):
   one numbered list in both chairs — operator application rows,
   the customer portal, the Finish view. Each row: the .step-dot
   number (postal blue while the piece is missing, the release
   green once it lands), the piece's name, and either its own
   Upload control or the "✓ Uploaded" state. Rows are quiet
   cards so the list reads as a path, not a form. */
.doc-checklist { margin: 10px 0; }
.doc-checklist-title { margin: 0 0 6px; }
.doc-check-row { display: flex; align-items: center; gap: 10px; border: 2px solid #dfe5ec; border-radius: 12px; padding: 9px 12px; margin: 7px 0; background: #fff; }
.doc-check-row .step-dot { flex: none; margin-right: 0; vertical-align: 0; }
.doc-check-row.done { border-color: #b9d3a8; background: #f4f9f0; }
.doc-check-row.done .step-dot { background: #33691e; }
.doc-check-main { flex: 1; min-width: 0; }
.doc-check-state { font-weight: 700; color: #33691e; flex: none; }
.doc-check-state.doc-check-missing { color: var(--muted); font-weight: 400; }
.doc-check-up { display: flex; align-items: center; gap: 8px; flex: none; }
.doc-check-up input[type="file"] { max-width: 190px; padding: 6px; }
.doc-check-note { margin: 2px 0 6px; min-height: 0; }
.app-approve-hint { margin-left: 6px; }

/* Legacy Letters — photo + words (Nov 5, late night): a photo
   letter's optional written words sit under the photo — in the
   form's "How it will look" preview, the sender's letter view,
   and the operator's card step on screen (.legacy-photo-words),
   and centered under the photo on the printed page
   (.legacy-print-words). A photo with no words is untouched. */
.legacy-photo-words { font-family: Georgia, 'Times New Roman', serif; font-size: 16px; line-height: 1.6; white-space: pre-line; margin: 10px 0; }
#legacy-print .legacy-print-words { font-family: Georgia, 'Times New Roman', serif; font-size: 15px; line-height: 1.6; white-space: pre-line; text-align: center; max-width: 6.5in; margin: 0.18in auto 0; }

/* SA-1583 (Nov 6, 2026): the in-app Form 1583 — guided form,
   click-to-sign, lanes, operator stamp. Required boxes stay
   highlighted (amber edge + pale fill) until filled. */
.f1583-cmra-block { margin: 14px 0; border: 2px solid #b7d3b0; border-radius: 12px; padding: 12px 14px; background: #f4faf1; }
.f1583-cmra-block h4 { margin: 0 0 6px; }
.f1583-panel { margin: 14px 0; border: 2px solid #dfe5ec; border-radius: 12px; padding: 12px 14px; background: #fff; }
.f1583-panel h3 { margin: 0 0 6px; }
.f1583-cmra { border-left: 4px solid #1e5aa8; background: #eef4fc; padding: 8px 10px; border-radius: 6px; margin: 10px 0; }
.f1583-field { display: block; margin: 7px 0; font-weight: 600; }
.f1583-field input, .f1583-field select { width: 100%; box-sizing: border-box; margin-top: 3px; font-weight: 400; }
.f1583-field.f1583-missing input, .f1583-field.f1583-missing select { border: 2px solid #d97706; background: #fdf6da; }
.f1583-optional { margin: 12px 0; border: 1px dashed #cfd8e3; border-radius: 10px; padding: 8px 12px; }
.f1583-optional summary { cursor: pointer; font-weight: 700; }
.sig-pad { width: 100%; max-width: 560px; height: auto; border: 2px solid #1e5aa8; border-radius: 10px; background: #fff; touch-action: none; cursor: crosshair; }
.sig-preview { max-width: 280px; max-height: 90px; border: 1px solid #dfe5ec; border-radius: 8px; background: #fff; }
.f1583-typed-preview { font-family: Georgia, 'Times New Roman', serif; font-style: italic; font-size: 30px; min-height: 40px; padding: 6px 10px; border-bottom: 2px solid #1e5aa8; }
.f1583-attest { display: block; margin: 12px 0; font-size: 14px; line-height: 1.5; }
.f1583-notary { margin-top: 12px; border-top: 1px solid #dfe5ec; padding-top: 10px; }
.f1583-notary-link { display: inline-block; background: #1e5aa8; color: #fff; padding: 9px 16px; border-radius: 10px; font-weight: 700; text-decoration: none; }
.f1583-stamp-row { margin-top: 10px; border-top: 1px solid #dfe5ec; padding-top: 8px; }
.f1583-stamp-btn { background: #33691e; color: #fff; border: 0; padding: 9px 16px; border-radius: 10px; font-weight: 700; cursor: pointer; }
.lane-badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: 2px; }
.lane-badge.lane-in_person { background: #eef4fc; color: #1e5aa8; border: 1px solid #1e5aa8; }
.lane-badge.lane-online_notary { background: #fdf6da; color: #8a6100; border: 1px solid #d97706; }

/* Change plan box (Nov 7, 2026): the closed door under the
   current plan in Plan & billing. */
.change-plan-box { display: block; width: 100%; text-align: center; margin-top: 12px; padding: 12px; font-weight: 600; }
#change-plan-panel { margin-top: 8px; }

/* Open button + sent-back documents (Nov 7, 2026) */
.btn-open-unread { background: #c0392b; border-color: #c0392b; color: #fff; font-weight: 700; }
.doc-reject-banner { background: #fdf3e7; border: 1px solid #e0a458; border-radius: 8px; padding: 8px 10px; }
.doc-reject-form { margin-top: 8px; }
.doc-reject-form input[type="text"] { min-width: 220px; }

/* Verification lane + ready-for-approval (Nov 7, 2026) */
.lane-card { border: 1px solid #d8d8d8; border-radius: 10px; padding: 10px 12px; margin-bottom: 10px; }
.ready-line { color: #1e7d32; font-weight: 600; }
.app-decision-note { margin: 10px 0; padding: 12px 14px; border-radius: 10px; font-weight: 600; }
.name-link { background: none; border: none; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: left; }
.name-link:hover strong { text-decoration: underline; }
.app-decision-note.ok { background: #e6f4ea; color: #1e7d32; border: 1px solid #1e7d32; }
.app-decision-note.err { background: #fdecea; color: #b3261e; border: 1px solid #b3261e; }

/* Scan Requested chip (Nov 7, 2026) */
.scan-requested-chip { background: #e6f4ea; color: #1e7d32; border: 1px solid #a5d6a7; border-radius: 6px; padding: 4px 10px; font-weight: 600; cursor: default; opacity: 1; }

/* Scan capture panel + cancel-reason box (Nov 7, 2026) */
.scan-panel { margin-top: 8px; padding: 10px; border: 1px solid #d8d8d8; border-radius: 10px; }
.scan-pick { display: inline-block; padding: 6px 12px; border: 1px solid #bdbdbd; border-radius: 8px; cursor: pointer; font-weight: 600; margin: 4px 4px 4px 0; }
.scan-preview { max-width: 220px; max-height: 220px; border-radius: 8px; margin-top: 6px; display: block; }
.scan-nophoto { background: none; border: none; color: #666; text-decoration: underline; cursor: pointer; font-size: 0.9em; }
.cancel-box { margin-top: 8px; padding: 10px; border: 1px solid #e0c9c9; border-radius: 10px; }
.cancel-box textarea { width: 100%; box-sizing: border-box; margin: 6px 0; }
.scan-cancel-note { color: #b3261e; font-weight: 600; }

/* Multi-page scans (Nov 7, 2026) */
.scan-pages-strip { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.scan-page-thumb { margin: 0; text-align: center; }
.scan-page-thumb img { max-width: 90px; max-height: 90px; border-radius: 6px; display: block; }
.scan-page-thumb figcaption { font-size: 0.8em; color: #666; }
.scan-pdf-chip { width: 90px; height: 90px; border: 1px solid #d8d8d8; border-radius: 6px; display: flex; align-items: center; justify-content: center; }
.scan-page { margin: 10px 0; }
.scan-page figcaption { text-align: center; margin-top: 4px; }
.scan-pdf { width: 100%; height: 480px; border: 1px solid #d8d8d8; border-radius: 8px; }

/* Shipping step on forward cards (Nov 7, 2026) */
.ship-panel { margin-top: 8px; padding: 10px; border: 1px solid #d8d8d8; border-radius: 10px; }
.ship-grid { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0; }
.ship-grid label { display: flex; flex-direction: column; font-size: 0.85em; color: #555; gap: 2px; }
.ship-grid input, .ship-grid select { min-width: 130px; }

.ship-to { border: 1px solid #d8d8d8; border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
/* Consolidated forwards (Nov 7, 2026): the customer's note on
   the ship panel, the inbox cart picks + bar, the box's note
   field and speed list. */
.ship-note { border: 1px solid #e3c878; background: #fff8e1; border-radius: 8px; padding: 8px 10px; margin: 6px 0; }
.fwd-pick-wrap { display: inline-block; margin: 2px 8px 2px 0; font-size: .9em; }
#customer-forward-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0; }
.fwd-note-label { display: block; margin: 8px 0; }
.fwd-note-label textarea { display: block; width: 100%; box-sizing: border-box; margin-top: 4px; }
.fwd-speeds { margin: 8px 0; }
.fwd-speed { display: block; margin: 4px 0; }

/* PayPoint (Nov 8, 2026 — demo): the dashboard tile (money
   green — this tile is the take, not a queue), the public pay
   page (test-mode banner, tip chips — never pre-checked, the
   selected chip is the only filled one), and the operator
   panel's landing receipt + counter cards. */
.dash-tab.t-pay { background: #e9f5ec; border-color: #2e6b34; color: #2e6b34; }
.dash-tab.t-pay .dash-tab-band { background: #3f9142; }
/* USPS queue (Nov 8, 2026): postal blue, the CRD burn-down tile. */
.dash-tab.t-crd { background: #eef4fc; border-color: #17487f; color: #17487f; }
.dash-tab.t-crd .dash-tab-band { background: #004b87; }
/* CRD packet (Nov 8, 2026): one field per row — label + value
   on the left, its Copy button on the right. */
.crd-field { border-bottom: 1px solid rgba(0, 0, 0, .08); padding: 6px 0; align-items: flex-start; }
.pay-test-banner { border: 2px solid #b45309; background: #fdf3e3; color: #7c3f06; border-radius: 10px; padding: 10px 12px; font-size: 15px; }
.pay-tips { border: 1px solid rgba(0, 0, 0, .18); border-radius: 10px; margin: 12px 0; padding: 10px 12px; }
.pay-chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.pay-chip { padding: 10px 16px; border-radius: 999px; border: 2px solid #2e6b34; background: #fff; color: #2e6b34; font: inherit; font-weight: 700; cursor: pointer; }
.pay-chip.on { background: #2e6b34; color: #fff; }
.pay-total { font-size: 18px; font-weight: 700; margin: 10px 0; }
.paypoint-latest { border: 2px solid #2e6b34; background: #e9f5ec; }
.paypoint-link { word-break: break-all; font-size: 13px; }
.paypoint-qr { display: block; margin: 8px 0; background: #fff; }

/* ☰ Pages restructure (Nov 9, 2026 — mirroring Hello Yellow's
   owner pages from the same morning, in Square One's postal-blue
   scheme): each long view carries a "☰ Pages" dropdown of its
   category pages; exactly one .sq-page shows at a time under the
   view's daily blocks. The active page is marked with the app's
   yellow. */
.sq-chrome { margin: 8px 0 4px; }
.sq-menu-btn { width: 100%; text-align: left; font-weight: 700; background: #fff; color: var(--blue); border: 2px solid var(--blue); }
.sq-back { background: #fff; color: var(--blue); border: 1px solid var(--blue); font-weight: 600; }
.sq-menu { margin-top: 6px; border: 2px solid var(--blue); border-radius: 12px; overflow: hidden; background: #fff; }
.sq-menu-item { display: block; width: 100%; text-align: left; padding: 12px 14px; font: inherit; font-size: 15px; font-weight: 600; background: #fff; color: var(--ink); border: 0; border-bottom: 1px solid rgba(0,0,0,.12); border-radius: 0; cursor: pointer; }
.sq-menu-item:last-child { border-bottom: 0; }
.sq-menu-item.on { background: var(--yellow); }
.sq-pagetitle { font-weight: 700; font-size: 17px; margin: 6px 0 2px; }
.sq-errcard { background: var(--light); border: 1px solid var(--blue); border-radius: 10px; padding: 12px 14px; margin: 8px 0; }
.sq-errcard button { margin-top: 8px; }

/* Front-page hero (Nov 15, 2026 — dark split hero, Hot Otter / mave language) */
.hero { position: relative; display: flex; flex-wrap: wrap; gap: 26px; align-items: center; padding: 40px 30px; border-radius: 22px; background: linear-gradient(130deg, #081c33 0%, #0e3358 60%, #17487f 100%); overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(circle, rgba(255,255,255,.14) 1px, transparent 1.5px); background-size: 24px 24px; opacity: .3; pointer-events: none; }
.hero-text { position: relative; flex: 1 1 320px; }
.hero-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 1.6px; text-transform: uppercase; color: #bcd7f5; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.25); border-radius: 999px; padding: 6px 14px; margin: 0 0 18px; }
.hero h1 { font-size: 42px; font-weight: 800; letter-spacing: -0.5px; line-height: 1.12; margin: 0 0 14px; color: #fff; }
.hero h1 .hl { background: linear-gradient(92deg, #6fc3ff, #2f9be8); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }
.hero-sub { font-size: 16.5px; line-height: 1.55; color: #c9dcf2; margin: 0 0 22px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin: 0 0 14px; }
.hero-cta { display: inline-block; background: linear-gradient(135deg, #2f7fe0, #39a2f0); color: #fff; font-size: 16px; font-weight: 800; padding: 14px 26px; border-radius: 999px; text-decoration: none; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.hero-cta2 { display: inline-block; background: transparent; color: #fff; font-size: 16px; font-weight: 700; padding: 14px 26px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); text-decoration: none; }
.hero-trust { font-size: 13px; color: #8fb0d4; margin: 0; }
.hero-media { position: relative; flex: 0 1 330px; margin: 0 auto; width: 100%; }
.hero-media img, .hero-media video { display: block; width: 100%; height: auto; }
.hero-slides { position: relative; aspect-ratio: 3/4; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(0,0,0,.4); background: #0e3358; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity .6s ease; pointer-events: none; }
.hero-slide.active { opacity: 1; pointer-events: auto; }
.hero-slide img, .hero-slide video { width: 100%; height: 100%; object-fit: cover; }
.hero-caption { position: absolute; left: 12px; right: 12px; bottom: 12px; background: rgba(8,28,51,.85); color: #fff; font-size: 13.5px; font-weight: 600; border-radius: 10px; padding: 8px 12px; }
.hero-slide-card { display: flex; align-items: center; justify-content: center; background: linear-gradient(150deg, #0e3358, #2f7fe0); text-align: center; padding: 24px; }
.hero-card-big { font-size: 30px; font-weight: 800; color: #fff; line-height: 1.2; margin: 0 0 10px; }
.hero-card-sub { color: #c9dcf2; font-size: 14.5px; margin: 0; }
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.hero-dot { width: 10px; height: 10px; border-radius: 50%; border: none; background: rgba(255,255,255,.35); padding: 0; cursor: pointer; }
.hero-dot.active { background: #fff; transform: scale(1.25); }
.hero-float { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.97); border-radius: 14px; padding: 10px 14px; box-shadow: 0 12px 28px rgba(0,0,0,.35); font-size: 14px; color: #0f2233; }
.hero-float-ic { font-size: 20px; background: #eef4fc; border-radius: 10px; padding: 6px 8px; }
.how { text-align: center; padding: 30px 4px 4px; }
.how h2 { font-size: 28px; margin: 0 0 4px; color: #0f2233; }
.how-sub { color: #7186a0; margin: 0 0 18px; font-size: 14px; }
.how-cards { display: flex; flex-wrap: wrap; gap: 12px; text-align: left; }
.how-card { position: relative; flex: 1 1 200px; background: #eef4fc; border-radius: 16px; padding: 20px 18px; overflow: hidden; }
.how-num { position: absolute; top: 6px; right: 14px; font-size: 44px; font-weight: 800; color: rgba(23,72,127,.13); }
.how-card h3 { margin: 0 0 6px; font-size: 16px; color: #0f2233; }
.how-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #43566b; }

/* Interior modernization (Nov 15, 2026 — same dynamic language inside) */
body { background: #f4f8fc; }
.topbar { background: linear-gradient(120deg, #081c33, #17487f); box-shadow: 0 4px 14px rgba(8,28,51,.25); }
.card { background: #fff; border: 1px solid #e2eaf3; border-radius: 16px; box-shadow: 0 6px 16px rgba(10,37,64,.06); }
.list li { background: #fff; border-color: #e2eaf3; border-radius: 12px; box-shadow: 0 2px 6px rgba(10,37,64,.04); }
button { border-radius: 10px; }
input, select, textarea { border-radius: 10px; border-color: #ccd9e6; }
.topbar-signin { color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; border: 1.5px solid rgba(255,255,255,.6); border-radius: 999px; padding: 6px 16px; margin-left: auto; white-space: nowrap; }
#finder-stores li { text-align: center; }
.svc-cards { display: flex; flex-wrap: wrap; gap: 12px; margin: 14px 0; }
.svc-card { flex: 1 1 220px; background: #fff; border: 1px solid #e2eaf3; border-radius: 16px; box-shadow: 0 6px 16px rgba(10,37,64,.06); padding: 20px 18px; text-align: center; }
.svc-ic { display: inline-block; font-size: 26px; background: #eef4fc; border-radius: 12px; padding: 8px 12px; }
.svc-card h3 { margin: 10px 0 6px; font-size: 17px; color: #0f2233; }
.svc-card p { margin: 0; font-size: 14px; line-height: 1.55; color: #43566b; }
.svc-card .svc-act { margin-top: 12px; }
.svc-card .svc-act a { font-weight: 700; color: #17487f; text-decoration: none; }
.vchat-launcher { position: fixed; right: 14px; bottom: 20px; z-index: 60; border-radius: 999px; padding: 13px 20px; font-size: 15px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #17487f, #2f7fe0); border: 2px solid #fff; box-shadow: 0 8px 22px rgba(10,37,64,.35); cursor: pointer; }
#vchat-panel { bottom: 20px; }
.vchat-emailrow { padding: 10px 10px 0; }
.vchat-emailrow input { width: 100%; box-sizing: border-box; }
#vchat-error { padding: 0 10px 8px; }
.linklike { background: none; border: none; color: #17487f; font-weight: 700; font-size: 14px; padding: 0; text-decoration: underline; cursor: pointer; }
.pulse-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.nf-bubble { flex: none; border: none; cursor: pointer; color: #fff; font-weight: 700; font-size: 13px; padding: 8px 14px; border-radius: 999px; background: linear-gradient(135deg, #17487f, #2f6db3); box-shadow: 0 4px 12px rgba(23, 72, 127, .35); }
.nf-bubble:active { transform: translateY(1px); }
/* Service-card watermarks (founder, Nov 15, 2026): each card's
   own icon, blown up and faint behind the text. */
.svc-card { position: relative; overflow: hidden; }
.svc-wm { position: absolute; right: -16px; bottom: -36px; font-size: 190px; line-height: 1; opacity: .24; transform: rotate(-10deg); pointer-events: none; }
.svc-card > :not(.svc-wm) { position: relative; }
/* Service-card actions (founder, Nov 15, 2026): blocks 1 and 3
   get the same bubble-box button look as block 2's button. */
.svc-card .svc-act a { display: inline-block; background: var(--blue); color: #fff; font-weight: 700; font-size: 16px; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
/* Service-card button alignment (founder, Nov 15, 2026): the
   three CTA boxes sit on one straight line at the card bottoms,
   however long each card's text runs. */
.svc-card { display: flex; flex-direction: column; }
.svc-card .svc-act { margin-top: auto; padding-top: 12px; }
/* Loved-ones bubble strip (founder, Nov 15, 2026): at the top of
   the Now & Forever page, each loved one is a name bubble and the
   Add a loved one button sits right beside them. */
.loved-strip { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0 2px; }
.loved-chip { display: inline-flex; align-items: center; gap: 7px; background: #eef4fc; border: 1px solid #c9dcf5; color: #0f2233; font-weight: 700; font-size: 14px; padding: 5px 13px 5px 6px; border-radius: 999px; cursor: pointer; }
.loved-chip .person-bubble { width: 27px; height: 27px; font-size: 12px; border-width: 1.5px; }
.loved-add { background: #fff; color: var(--blue); border: 1.5px dashed var(--blue); font-weight: 700; font-size: 14px; padding: 9px 15px; border-radius: 999px; cursor: pointer; }
/* Loved-one icon picker (founder, Nov 15, 2026): pick a face for
   a loved one and it replaces their initials in every bubble. */
.person-bubble .bubble-emoji { font-size: 19px; line-height: 1; }
.loved-chip .person-bubble .bubble-emoji { font-size: 15px; }
.legacy-icon-pick { border: 1px solid #d7e3f2; border-radius: 10px; margin: 10px 0; padding: 10px 12px; }
.legacy-icon-pick legend { font-size: 13px; font-weight: 600; color: var(--blue); padding: 0 4px; }
.icon-row { display: flex; flex-wrap: wrap; gap: 6px; }
.icon-opt { position: relative; display: inline-block; margin: 0; }
.icon-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.icon-opt span { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 2px solid #d7e3f2; font-size: 19px; background: #fff; color: #43566b; font-weight: 700; }
.icon-opt input:checked + span { border-color: var(--blue); background: var(--light); }
/* Loved-one picture faces + doubled bubbles (founder, Nov 15,
   2026): the house avatar faces fill the bubble, and the bubbles
   run twice their old size so the faces actually read. */
.person-bubble { width: 64px; height: 64px; font-size: 24px; }
.person-bubble .bubble-emoji { font-size: 32px; }
.person-bubble.has-face { padding: 0; overflow: hidden; }
.person-bubble .bubble-face { width: 100%; height: 100%; display: block; border-radius: 50%; }
.loved-chip .person-bubble { width: 48px; height: 48px; }
.loved-chip .person-bubble .bubble-emoji { font-size: 24px; }
.pulse-row .person-bubble { width: 44px; height: 44px; }
.pulse-row .person-bubble .bubble-emoji { font-size: 22px; }
.icon-opt span { width: 64px; height: 64px; font-size: 28px; }
.icon-opt.pic span { padding: 0; overflow: hidden; }
.icon-opt.pic span img { width: 100%; height: 100%; display: block; border-radius: 50%; }
/* Loved-one backdrops (founder, Nov 16, 2026): the color /
   scenery filling the space around a loved one — the same
   --bd scene paints their card and the picker's swatch chip. */
.bd-sky { --bd: linear-gradient(135deg, #7dd3fc 0%, #bae6fd 45%, #f0f9ff 100%); }
.bd-ocean { --bd: linear-gradient(135deg, #5eead4 0%, #a5f3fc 50%, #ecfeff 100%); }
.bd-sunset { --bd: linear-gradient(135deg, #fcd34d 0%, #fda4af 55%, #fbcfe8 100%); }
.bd-garden { --bd: linear-gradient(135deg, #86efac 0%, #bbf7d0 50%, #f0fdf4 100%); }
.bd-peach { --bd: linear-gradient(135deg, #fdba74 0%, #fed7aa 50%, #fff7ed 100%); }
.bd-grape { --bd: linear-gradient(135deg, #c4b5fd 0%, #ddd6fe 50%, #f5f3ff 100%); }
.bd-rose { --bd: linear-gradient(135deg, #f9a8d4 0%, #fbcfe8 50%, #fdf2f8 100%); }
.bd-night { --bd: linear-gradient(135deg, #4338ca 0%, #1e293b 70%, #0f172a 100%); }
li.loved-card[class*="bd-"] { background: var(--bd); border-radius: 14px; }
.pulse-row[class*="bd-"] { background: var(--bd); }
.pulse-row.bd-night { color: #eef2ff; }
.pulse-row.bd-night .m-meta { color: #c7d2fe; }
.pulse-row.bd-night .m-status { color: #a5b4fc; }
.pulse-row.bd-night .pulse-go { color: #a5b4fc; }
li.loved-card.bd-night { color: #eef2ff; }
li.loved-card.bd-night .meta { color: #c7d2fe; }
.icon-opt span.bd-chip { width: auto; min-width: 72px; height: 44px; padding: 0 14px; border-radius: 999px; font-size: 14px; background: var(--bd, #fff); }
.icon-opt input:checked + span.bd-chip { background: var(--bd, var(--light)); border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue) inset; }
.viewas-banner { background: #43284A; color: #FFF3E2; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: 0; z-index: 60; }
.viewas-banner button { background: #FFC53D; color: #43284A; border: none; font-weight: 700; border-radius: 8px; padding: 5px 12px; cursor: pointer; }
.go-fence-banner { background: #E8EEF4; color: #22384F; padding: 10px 14px; font-size: 13.5px; line-height: 1.45; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; position: sticky; top: 0; z-index: 60; border-bottom: 1px solid #C4D2DE; }
.go-fence-banner button { background: #fff; color: #22384F; border: 1px solid #B9C9D8; font-weight: 700; border-radius: 8px; padding: 4px 10px; cursor: pointer; margin-left: auto; }
