/* Mole Hill Bikes brand tokens — from the Brand Guide (Oct 26, 2026): cobalt + valley navy on workshop white.
   Radii follow the website system: controls 6px, cards 8px, feature 12px. */
:root {
  --cobalt: #023FAD;
  --navy: #011731;
  --cream: #FAECD2;
  --sky: #60AFFF;
  --orange: #B84E0B;
  --bg: #F5F7FA;
  --card: #FFFFFF;
  --ink: #011731;
  --ink-2: #30435F;
  --muted: #66758A;
  --line: #D6DEE8;
  --cobalt-tint: #E6EDF9;
  --sky-tint: #E7F2FF;
  --orange-tint: #FBEEE6;
  --cream-tint: #FDF6EA;
  --ok: #1E6B3A;
  --ok-tint: #E5F2EA;
  --err: #A4262C;
  --err-tint: #FBEAEA;
  --focus: #60AFFF;
  --r-control: 6px;
  --r-card: 8px;
  --r-feature: 12px;
  --seg-bg: #E8EDF3;
  --btn-bg: var(--cobalt);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); }
body { font: 16px/1.45 'Open Sans', system-ui, sans-serif; -webkit-text-size-adjust: 100%; }
h1, h2, h3, .q-num { font-family: 'Overpass', 'Open Sans', sans-serif; font-weight: 800; color: var(--navy); }
h1, h2, h3 { text-transform: uppercase; letter-spacing: .02em; }
h2 { font-size: 1.15rem; margin: 22px 0 10px; }
h3 { font-size: 1rem; margin: 22px 0 8px; }
main { max-width: 760px; margin: 0 auto; padding: 16px 16px 48px; }
a { color: var(--cobalt); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.center { text-align: center; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }

/* header */
.top { background: var(--card); color: var(--navy); position: sticky; top: 0; z-index: 5; padding-top: env(safe-area-inset-top); border-bottom: 3px solid var(--cobalt); }
.top-row { max-width: 760px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px 4px; }
.title { background: none; border: 0; padding: 4px 0; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.title img { height: 34px; width: auto; display: block; }
.title span { font: 800 .72rem/1.1 'Overpass', sans-serif; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-left: 1px solid var(--line); padding-left: 10px; }
.me { background: var(--cobalt-tint); border: 0; color: var(--navy); border-radius: 999px; padding: 6px 12px; font-size: .85rem; font-weight: 600; cursor: pointer; white-space: nowrap; }

/* buttons */
.btn { border: 1px solid var(--line); background: var(--card); color: var(--navy); border-radius: var(--r-control); padding: 10px 14px; font-weight: 600; cursor: pointer; min-height: 44px; }
.btn.primary { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; font: 800 1rem 'Overpass', sans-serif; text-transform: uppercase; letter-spacing: .04em; }
@media (hover: hover) { .btn.primary:hover { background: var(--navy); border-color: var(--navy); } }
.btn.big { width: 100%; padding: 14px; font-size: 1.05rem; min-height: 52px; }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger-outline { color: var(--err); border-color: var(--err); }
.btn.link { border: 0; background: none; color: var(--cobalt); padding: 6px 0; min-height: 0; }
.back { margin-bottom: 4px; }
.actions { display: flex; gap: 8px; margin-top: 14px; }
.actions.wrap { flex-wrap: wrap; }
.actions .btn.big { flex: 1; }

/* sign in */
.signin { max-width: 440px; padding-top: 40px; }
.brand-block { text-align: center; margin-bottom: 20px; }
.brand-block h1 { font-size: 1.5rem; margin: 10px 0 4px; }
.badge-logo { width: 180px; height: 180px; display: block; margin: 0 auto; }
.demo-note { background: var(--cream); color: var(--navy); border-radius: var(--r-card); padding: 8px 12px; font-size: .9rem; }
.who-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.who { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--navy); padding: 14px 10px; font-weight: 700; cursor: pointer; display: flex; flex-direction: column; gap: 2px; min-height: 64px; }
.who small { color: var(--muted); font-weight: 400; font-size: .78rem; }
.divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: .85rem; margin: 22px 0 12px; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* home */
.alert { background: var(--orange-tint); color: var(--orange); border-left: 4px solid var(--orange); border-radius: var(--r-card); padding: 10px 14px; font-weight: 600; margin-bottom: 12px; }
.queues { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.q-card { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--line); border-radius: var(--r-card); color: var(--navy); padding: 12px; text-align: left; cursor: pointer; display: flex; flex-direction: column; min-height: 96px; }
.q-num { font-size: 1.8rem; line-height: 1; }
.q-label { font-weight: 700; margin-top: 6px; }
.q-hint { color: var(--muted); font-size: .8rem; }
.q-card.s-pull { border-left-color: var(--muted); }
.q-card.s-to_build { border-left-color: var(--sky); }
.q-card.s-building { border-left-color: var(--cobalt); }
.q-card.s-qc { border-left-color: var(--navy); }
.q-card.s-notify { border-left-color: var(--orange); }

/* rows */
.list { display: flex; flex-direction: column; gap: 8px; }
.row { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); color: var(--navy); padding: 12px 14px; text-align: left; cursor: pointer; width: 100%; }
.row-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.row-bike { font-weight: 700; margin-top: 6px; }
.row-sub { font-size: .88rem; }
.badge, .stage { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 9px; }
.r-sold { background: var(--cobalt); color: #fff; }
.r-test_ride { background: var(--sky-tint); color: var(--cobalt); }
.r-stock { background: var(--cream); color: var(--navy); }
.badge.so { background: var(--orange-tint); color: var(--orange); }
.badge.blocked { background: var(--err-tint); color: var(--err); }
.stage { border: 1px solid var(--line); color: var(--muted); }
.due { margin-left: auto; font-size: .82rem; color: var(--muted); font-weight: 600; }
.due.late { color: var(--orange); }
.due.soon { color: var(--cobalt); }

/* chips */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 6px; }
.chip { border: 1px solid var(--line); background: var(--card); border-radius: 999px; padding: 8px 12px; font-weight: 600; white-space: nowrap; cursor: pointer; }
.chip.on { background: var(--navy); color: #fff; border-color: var(--navy); }

/* forms */
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: .92rem; }
input, select, textarea { border: 1px solid var(--line); border-radius: var(--r-control); padding: 11px 12px; background: var(--card); font-weight: 400; font-size: 16px; width: 100%; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-weight: 600; font-size: .92rem; margin-bottom: 6px; }
.segs { display: flex; gap: 6px; }
.seg { flex: 1; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: block; text-align: center; border: 1px solid var(--line); border-radius: var(--r-control); padding: 11px 6px; background: var(--card); cursor: pointer; }
.seg input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.seg input:focus-visible + span { outline: 3px solid var(--focus); }
.check { flex-direction: row; align-items: center; gap: 10px; }
.check input { width: 22px; height: 22px; }
.cust { display: flex; flex-direction: column; gap: 14px; }
.inline-form { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.inline-form input, .inline-form select { flex: 1 1 180px; width: auto; }

/* detail */
.bike-title { font-size: 1.4rem; margin: 6px 0 8px; text-transform: none; letter-spacing: 0; }
.next { background: var(--card); border: 2px solid var(--cobalt); border-radius: var(--r-feature); padding: 14px; margin: 14px 0; }
.next p { margin: 0 0 10px; }
.next .btn + .btn { margin-top: 8px; }
.warn { color: var(--orange); font-weight: 600; }
.ok { color: var(--ok); font-weight: 600; }
.error { background: var(--err-tint); color: var(--err); border-radius: var(--r-card); padding: 10px 14px; font-weight: 600; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px 16px; margin: 0; }
.facts dt { font-size: .78rem; color: var(--muted); font-weight: 600; }
.facts dd { margin: 0; }
.timeline { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.timeline li { border-left: 3px solid var(--sky); padding-left: 10px; }

/* confirm sheet */
.sheet { position: fixed; inset: 0; background: rgba(0,0,0,.4); display: grid; place-items: end center; z-index: 20; padding: 16px; }
.sheet-card { background: var(--card); color: var(--ink); border-radius: var(--r-feature); padding: 16px; width: 100%; max-width: 440px; }

.undo { display: block; margin: -4px 0 12px; font-size: .92rem; }
.pin { font-size: 2rem; letter-spacing: .6em; text-align: center; padding: 14px; }
.brand-block h1 { font-size: 1.25rem; }
.badge, .stage { font-family: 'Open Sans', sans-serif; }

.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.card h3 { margin: 0; font-size: 1rem; }
.card p { margin: 0; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.link-row { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0; }
.link-btn { text-decoration: none; display: inline-flex; align-items: center; min-height: 40px; font-size: .9rem; color: var(--cobalt); }
.toolbar { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.toolbar input { flex: 1; }
.login-unknown { color: var(--muted); }
.login-email_link_invoices { color: var(--orange); }
details summary { cursor: pointer; color: var(--cobalt); font-weight: 600; font-size: .9rem; }
.card .check { font-weight: 600; margin-top: 4px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--cobalt); color: #fff; display: inline-grid; place-items: center; font: 800 1rem 'Overpass', sans-serif; flex: none; }
.avatar.sm { width: 26px; height: 26px; font-size: .8rem; }
.avatar.lg { width: 84px; height: 84px; font-size: 2rem; }
.me { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; }
.profile-head { display: flex; align-items: center; gap: 14px; }
.profile-name { font: 800 1.2rem 'Overpass', sans-serif; color: var(--navy); }
.profile-links { display: flex; flex-direction: column; gap: 10px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.who-line { display: flex; align-items: center; gap: 10px; }
.photo-btn { flex-direction: row; justify-content: center; align-self: flex-start; }
.visually-hidden { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.form p { margin: 0; }

/* schedule */
.whos-in { background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--cobalt); border-radius: var(--r-card); padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 8px; }
.whos-in h2 { margin: 0; font-size: 1.05rem; }
.whos-in .alert { margin: 0; }
.shift-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.shift-list.card { padding: 12px 14px; }
.shift-line { display: flex; gap: 10px; align-items: flex-start; }
.shift-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.shift-main .btn.link { align-self: flex-start; padding: 2px 0; font-size: .82rem; }
.day-tag { font: 800 .8rem 'Overpass', sans-serif; text-transform: uppercase; color: var(--ink-2); min-width: 78px; padding-top: 2px; }
.off { color: var(--orange); font-weight: 600; }
.pending { color: var(--cobalt); font-style: italic; }
.status { font-size: .75rem; font-weight: 700; border-radius: 999px; padding: 2px 8px; margin-left: 6px; }
.st-pending { background: var(--sky-tint); color: var(--cobalt); }
.st-approved { background: var(--ok-tint); color: var(--ok); }
.st-declined { background: var(--err-tint); color: var(--err); }
.week-nav { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.week-nav h2 { margin: 0; font-size: 1.1rem; }
.days { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; margin-top: 10px; }
.day.is-today { border: 2px solid var(--cobalt); }
.day .alert { margin: 0; padding: 6px 10px; }
.time-pair { display: flex; gap: 10px; }
.time-pair label { flex: 1; }
.reg-row { display: flex; flex-direction: column; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.plain { list-style: none; margin: 0; padding: 0; }
.form.card h3 { margin: 0; }
.card .actions { flex-wrap: wrap; margin-top: 6px; }
.shift-main .status { align-self: flex-start; margin: 2px 0 0; }

/* ---------- app shell: bottom bar on phones, sidebar on computers ---------- */
:root { --nav-h: 64px; --side-w: 232px; }
.content { min-width: 0; }
.content main { padding-bottom: calc(var(--nav-h) + 32px + env(safe-area-inset-bottom)); }
.top-row { padding: 8px 16px; }
.title img { height: 30px; }
.page-title { flex: 1; margin: 0; font-size: 1rem; color: var(--ink-2); letter-spacing: .06em; padding-left: 12px; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-name { max-width: 12ch; overflow: hidden; text-overflow: ellipsis; }

.mainnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -2px 10px rgba(1, 23, 49, .06); display: flex; padding: 4px 4px env(safe-area-inset-bottom); }
.nav-brand { display: none; }
.nav-item { flex: 1; position: relative; background: none; border: 0; color: var(--muted); cursor: pointer; min-height: var(--nav-h);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: var(--r-card);
  font: 800 .68rem 'Overpass', sans-serif; text-transform: uppercase; letter-spacing: .05em; -webkit-tap-highlight-color: transparent; }
.nav-item .ico { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.on { color: var(--cobalt); }
.nav-item.on .ico { stroke-width: 2.2; }
.nav-item.on::before { content: ''; position: absolute; top: 0; left: 28%; right: 28%; height: 3px; border-radius: 0 0 3px 3px; background: var(--cobalt); }
.nav-badge { position: absolute; top: 6px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--orange); color: #fff; font: 700 .7rem/18px 'Open Sans', sans-serif; letter-spacing: 0; }

/* Page tabs: a segmented bar that always fits (no sideways scrolling), with the add button
   beside it on wide screens and on its own full-width line on phones. */
.chips { scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.subnav { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.subnav .chips { flex: 1 1 auto; display: flex; gap: 3px; overflow: visible; padding: 3px; background: var(--seg-bg);
  border-radius: var(--r-feature); max-width: 560px; }
.subnav .chip { flex: 1 1 0; min-width: 0; border: 0; background: transparent; border-radius: 9px; padding: 8px 6px;
  white-space: normal; line-height: 1.2; font-size: .86rem; text-align: center; color: var(--ink-2); }
.subnav .chip.on { background: var(--card); color: var(--navy); box-shadow: 0 1px 3px rgba(1, 23, 49, .16); font-weight: 700; }
.subnav .btn.primary { flex: none; margin-left: auto; min-height: 42px; padding: 8px 16px; font-size: .92rem; white-space: nowrap; }
@media (max-width: 599px) {
  .subnav { flex-direction: column; align-items: stretch; gap: 8px; }
  .subnav .chips { max-width: none; }
  .subnav .btn.primary { margin-left: 0; width: 100%; }
}

/* "Mark as received": reads as something to tap, not a status. */
.tick-box { display: inline-block; width: 16px; height: 16px; margin-right: 8px; vertical-align: -3px;
  border: 2px solid currentColor; border-radius: 4px; }
.stage-chips { margin-top: 2px; }

@media (min-width: 900px) {
  .mainnav { top: 0; right: auto; bottom: 0; width: var(--side-w); flex-direction: column; gap: 2px; padding: 16px 12px;
    border-top: 0; border-right: 1px solid var(--line); box-shadow: none; }
  .nav-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; background: none; border: 0; cursor: pointer; padding: 4px 10px 18px; margin-bottom: 8px; border-bottom: 3px solid var(--cobalt); }
  .nav-brand img { height: 38px; }
  .nav-brand span { font: 800 .72rem 'Overpass', sans-serif; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
  .nav-item { flex: none; flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 46px; padding: 0 12px; font-size: .85rem; }
  .nav-item.on { background: var(--cobalt-tint); }
  .nav-item.on::before { top: 10px; bottom: 10px; left: 0; right: auto; width: 3px; height: auto; border-radius: 0 3px 3px 0; }
  .nav-badge { position: static; margin-left: auto; }
  .content { margin-left: var(--side-w); }
  .content main { padding-bottom: 48px; max-width: 960px; }
  .top { border-bottom: 1px solid var(--line); }
  .top-row { max-width: 960px; padding: 12px 16px; }
  .title { display: none; }
  .page-title { border-left: 0; padding-left: 0; font-size: 1.25rem; color: var(--navy); }
}
@media (max-width: 899px) { .me-name { display: none; } .me { padding: 3px; } .me:has(.me-switch) { padding-right: 12px; } }
.me-switch { font-weight: 700; color: var(--cobalt); }

/* SOPs */
.cat { font-size: .85rem; color: var(--ink-2); margin: 18px 0 8px; }
.sop-row .row-sub .badge { margin-right: 4px; }
.sop { gap: 10px; }
.sop-title { margin: 0; font-size: 1.3rem; text-transform: none; letter-spacing: 0; }
.md { line-height: 1.55; }
.md h3 { font-size: 1rem; margin: 20px 0 6px; }
.md h4 { font-size: .9rem; margin: 16px 0 4px; text-transform: uppercase; color: var(--ink-2); }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 22px; }
.md li { margin: 3px 0; }
.md hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
.md .callout { background: var(--cobalt-tint); border-left: 4px solid var(--cobalt); border-radius: var(--r-card); padding: 10px 12px; margin: 0 0 12px; }
.sop-meta { border-top: 1px solid var(--line); padding-top: 8px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.45; }

/* receiving */
.recv-card { width: 100%; display: flex; align-items: center; gap: 14px; text-align: left; cursor: pointer; margin-bottom: 14px;
  background: var(--card); border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: var(--r-card); padding: 12px 14px; color: var(--navy); }
.recv-card > span:last-child { display: flex; flex-direction: column; }
.ship.s-delivered { border-left: 5px solid var(--orange); }
.ship.s-received { opacity: .85; }
.ship-st { white-space: nowrap; }
.ship-st.st-ordered { background: var(--cream); color: var(--navy); }
.ship-st.st-shipped, .ship-st.st-out_for_delivery { background: var(--sky-tint); color: var(--cobalt); }
.ship-st.st-delivered { background: var(--orange-tint); color: var(--orange); }
.ship-st.st-received { background: var(--ok-tint); color: var(--ok); }
.ship-st.st-cancelled { background: var(--err-tint); color: var(--err); }
.ship .actions { margin-top: 4px; }
.plan-form { align-items: flex-end; }
.plan-form label { flex: 1 1 110px; }

/* warranty */
@media (max-width: 899px) { .nav-item.desktop-only { display: none; } }
.w-card { border-left-color: var(--cobalt); }
.w-st { white-space: nowrap; }
.w-new, .w-gathering { background: var(--cream); color: var(--navy); }
.w-blocked { background: var(--err-tint); color: var(--err); }
.w-submitted, .w-waiting_vendor, .w-parts_ordered { background: var(--sky-tint); color: var(--cobalt); }
.w-scheduled { background: var(--orange-tint); color: var(--orange); }
.w-completed { background: var(--ok-tint); color: var(--ok); }
.w-denied { background: var(--line); color: var(--ink-2); }
.claim-row .row-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.claim .next { background: var(--workshop, #F5F7FA); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 12px; }
.claim .next.late-box { border-color: var(--err); background: var(--err-tint); }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-grid figure { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.photo-grid img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-control); background: var(--line); display: block; }
.photo-grid figcaption { font-size: .75rem; color: var(--ink-2); }
.photo-add { display: flex; align-items: center; justify-content: center; text-align: center; min-height: 96px; border: 2px dashed var(--line);
  border-radius: var(--r-control); color: var(--cobalt); font-weight: 700; cursor: pointer; padding: 8px; }
.photo-add.big-add { min-height: 72px; font-size: 1rem; background: var(--cobalt-tint); border-color: var(--cobalt); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 8px 16px; margin: 0; }
.facts dt { font-size: .75rem; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.facts dd { margin: 0; }
.claim-row .late { color: var(--err); font-weight: 600; } .claim-row .soon { color: var(--cobalt); font-weight: 600; }

/* assembly timer */
.timer { display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--r-card); padding: 10px 14px; margin-bottom: 6px; }
.timer.running { border-color: var(--cobalt); background: var(--cobalt-tint); }
.timer-num { font: 800 1.6rem 'Overpass', sans-serif; font-variant-numeric: tabular-nums; color: var(--navy); }
.timer .btn { min-width: 110px; }
.sec-toggles { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 6px; }

/* Push notifications */
.nudge { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; background: var(--sky-tint); border: 1px solid var(--line); border-radius: var(--r-card); padding: 10px 14px; }
.nudge span { flex: 1 1 200px; }
.push-card { margin-top: 16px; }
.push-card ol { margin: 4px 0 0; padding-left: 20px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: .8rem; font-weight: 600; }
.ok-pill { background: var(--ok-tint); color: var(--ok); }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }

/* To-dos and chores */
.tasks-today { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.tasks-today h2 { margin: 0; }
.card.task .actions { margin-top: 2px; }
.card.is-done { opacity: .72; }
.card.is-done h3 { text-decoration: line-through; text-decoration-thickness: 1px; }
.ask { display: flex; flex-direction: column; gap: 6px; width: 100%; background: var(--cream-tint); border-radius: 10px; padding: 10px; }
.badge.contents-bikes { background: var(--cobalt-tint); color: var(--cobalt); }
.badge.contents-parts { background: var(--orange-tint); color: var(--orange); }
.badge.contents-mixed { background: var(--sky-tint); color: var(--navy); }
@media (max-width: 899px) {
  .nav-item { min-width: 0; padding: 0 1px; letter-spacing: -.01em; font-size: .6rem; text-transform: none; font-weight: 700; }
  .nav-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

/* Long words and web addresses wrap instead of widening the page. */
.facts > div { min-width: 0; }
.facts dd, .card p, .card h3, .row-bike, .row-sub, .sheet-card p { overflow-wrap: anywhere; }
.nudge { margin-bottom: 12px; }
.sheet-card { max-width: min(420px, calc(100vw - 32px)); }
.task-open { display: flex; flex-direction: column; gap: 4px; width: 100%; text-align: left; background: none; border: 0; padding: 0; color: inherit; font: inherit; cursor: pointer; }
.task-open .card-head { width: 100%; }
.task-open:focus-visible { outline: 2px solid var(--focus); outline-offset: 4px; border-radius: 6px; }
.steps { display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: var(--r-card); background: var(--card); padding: 10px 14px; margin: 12px 0; }
.steps legend { font-weight: 700; padding: 0 4px; }
.steps .check:has(input:checked) { color: var(--muted); text-decoration: line-through; }
.task-details { overflow-wrap: anywhere; margin: 10px 0; }
.btn.back { margin-bottom: 6px; }
.segs { flex-wrap: wrap; }
.danger-link { color: var(--err); }
.badge.w-lost { background: var(--line); color: var(--ink-2); }
.chips select { min-height: 36px; border-radius: 999px; border: 1px solid var(--line); padding: 0 10px; background: var(--card); font: inherit; font-size: .85rem; }

/* Warranty: Bike vs Part / accessory. Fields marked k-bike / k-part show for that kind only;
   k-any labels show until a kind is picked. */
.kind-pick { border: 0; padding: 0; margin: 0; }
.kind-pick legend { font-weight: 700; margin-bottom: 6px; }
.form:not([data-kind="bike"]) .k-bike, .form:not([data-kind="part"]) .k-part { display: none !important; }
.form[data-kind="bike"] .k-any, .form[data-kind="part"] .k-any { display: none; }
.ebike-more summary { cursor: pointer; font-weight: 600; color: var(--cobalt); padding: 4px 0; }
.ebike-more .time-pair { margin-top: 10px; }
.receipt-check { align-self: end; min-height: 46px; }
.needs h3 { margin-top: 0; }
.needs.all-ok { border-left: 4px solid var(--ok); }
.needs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.needs-list li { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; }
.need-dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); display: inline-flex; align-items: center;
  justify-content: center; font-size: .75rem; font-weight: 800; color: #fff; flex: none; }
.ok-item .need-dot { background: var(--ok); border-color: var(--ok); }
.ok-item { color: var(--muted); }

/* Order emails copied into the app (Receiving). */
.mail-sheet { max-height: 85vh; overflow-y: auto; max-width: min(640px, calc(100vw - 32px)) !important; }
.mail-sheet .card-head { position: sticky; top: -16px; background: var(--card); padding: 4px 0 8px; z-index: 1; }
.mail + .mail { border-top: 1px solid var(--line); margin-top: 12px; padding-top: 12px; }
.mail h4 { margin: 0 0 2px; font-size: 1rem; overflow-wrap: anywhere; }
.mail-body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .9rem; line-height: 1.45; }

/* Need-to-order list (Hub). */
.need-form { display: flex; flex-direction: column; gap: 10px; }
.card-picks { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.chip-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-wrap .chip { white-space: normal; text-align: left; }
.need-group h3 { margin: 0 0 6px; }
.need-list { list-style: none; margin: 0; padding: 0; }
.need { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.need:first-child { border-top: 0; }
.need-main { flex: 1 1 180px; min-width: 0; overflow-wrap: anywhere; }
.need-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.need.is-ordered .need-main strong { color: var(--muted); text-decoration: line-through; }
details.card > summary { cursor: pointer; font-weight: 700; }


/* ---------- Dark theme (My profile → Theme). Same layout, darker tokens. ---------- */
:root[data-theme="dark"] {
  --cobalt: #8DB2FF;
  --navy: #EAF0F8;
  --sky: #8CC4FF;
  --orange: #F2A26B;
  --bg: #0B1422;
  --card: #15212F;
  --ink: #E6ECF4;
  --ink-2: #BAC6D6;
  --muted: #8E9DB2;
  --line: #2B3B50;
  --cobalt-tint: #1B2C49;
  --sky-tint: #17293F;
  --orange-tint: #3B2616;
  --cream: #3D3220;
  --cream-tint: #2A2417;
  --ok: #74D196;
  --ok-tint: #143020;
  --err: #F4878C;
  --err-tint: #3B1A1D;
  --seg-bg: #0E1928;
  --btn-bg: #2E62D3;
  --workshop: #0F1A28;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
  --cobalt: #8DB2FF;
  --navy: #EAF0F8;
  --sky: #8CC4FF;
  --orange: #F2A26B;
  --bg: #0B1422;
  --card: #15212F;
  --ink: #E6ECF4;
  --ink-2: #BAC6D6;
  --muted: #8E9DB2;
  --line: #2B3B50;
  --cobalt-tint: #1B2C49;
  --sky-tint: #17293F;
  --orange-tint: #3B2616;
  --cream: #3D3220;
  --cream-tint: #2A2417;
  --ok: #74D196;
  --ok-tint: #143020;
  --err: #F4878C;
  --err-tint: #3B1A1D;
  --seg-bg: #0E1928;
  --btn-bg: #2E62D3;
  --workshop: #0F1A28;
  color-scheme: dark;
  }
}
/* Things that use navy as a background with white text keep a strong blue in the dark. */
:root[data-theme="dark"] .chip.on, :root[data-theme="dark"] .seg input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
:root[data-theme="dark"] .subnav .chip.on { background: var(--card); color: var(--ink); border-color: transparent; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
:root[data-theme="dark"] .r-sold, :root[data-theme="dark"] .avatar { background: var(--btn-bg); color: #fff; }
:root[data-theme="dark"] .mainnav { box-shadow: 0 -2px 10px rgba(0,0,0,.4); }
:root[data-theme="dark"] img.logo-light { display: none; }
:root[data-theme="dark"] .title img.logo-dark, :root[data-theme="dark"] .nav-brand img.logo-dark { display: block; }
:root[data-theme="dark"] .sheet { background: rgba(0,0,0,.6); }
:root[data-theme="dark"] input, :root[data-theme="dark"] select, :root[data-theme="dark"] textarea { color: var(--ink); }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .chip.on, :root[data-theme="auto"] .seg input:checked + span { background: var(--btn-bg); border-color: var(--btn-bg); color: #fff; }
  :root[data-theme="auto"] .subnav .chip.on { background: var(--card); color: var(--ink); border-color: transparent; box-shadow: 0 1px 3px rgba(0,0,0,.5); }
  :root[data-theme="auto"] .r-sold, :root[data-theme="auto"] .avatar { background: var(--btn-bg); color: #fff; }
  :root[data-theme="auto"] .mainnav { box-shadow: 0 -2px 10px rgba(0,0,0,.4); }
  :root[data-theme="auto"] img.logo-light { display: none; }
  :root[data-theme="auto"] .title img.logo-dark, :root[data-theme="auto"] .nav-brand img.logo-dark { display: block; }
  :root[data-theme="auto"] .sheet { background: rgba(0,0,0,.6); }
  :root[data-theme="auto"] input, :root[data-theme="auto"] select, :root[data-theme="auto"] textarea { color: var(--ink); }
}
img.logo-dark, .title img.logo-dark, .nav-brand img.logo-dark { display: none; }
.theme-pick { border: 0; padding: 0; margin: 0; }
.theme-pick legend { font-weight: 700; margin-bottom: 6px; }

/* Build times (Builds → Build times). */
.stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 4px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); padding: 12px; display: flex; flex-direction: column; gap: 2px; }
.stat .q-num { font-size: 1.6rem; color: var(--navy); }
table.times { width: 100%; border-collapse: collapse; font-size: .92rem; }
table.times th { text-align: left; font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 4px 6px 6px 0; }
table.times td { padding: 8px 6px 8px 0; border-top: 1px solid var(--line); vertical-align: top; }

/* Search (magnifier in the header). */
.top-actions { display: flex; align-items: center; gap: 6px; }
.icon-btn { background: var(--cobalt-tint); border: 0; color: var(--navy); border-radius: 999px; width: 40px; height: 40px; display: inline-grid; place-items: center; cursor: pointer; flex: none; }
.icon-btn .ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.big-search { font-size: 17px; padding: 13px 14px; }
.search-group h2 { display: flex; align-items: baseline; gap: 8px; }

/* No connection: last good copy on screen. */
.offline-bar { max-width: 760px; margin: 10px auto 0; padding: 10px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--orange-tint); color: var(--ink); border-radius: var(--r-card); font-size: .9rem; flex-wrap: wrap; }
@media (max-width: 791px) { .offline-bar { margin: 10px 16px 0; } }

/* Barcode scanning (📷 next to serial fields). */
.scan-wrap { display: flex; gap: 6px; align-items: stretch; }
.scan-wrap input { flex: 1; min-width: 0; }
.scan-btn { flex: none; min-width: 48px; padding: 0 10px; font-size: 1.1rem; }
.scan-sheet { position: fixed; inset: 0; z-index: 30; background: #000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; }
.scan-view { position: relative; width: 100%; max-width: 560px; aspect-ratio: 4 / 3; background: #111; border-radius: 12px; overflow: hidden; }
.scan-view video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; left: 8%; right: 8%; top: 36%; bottom: 36%; border: 3px solid #60AFFF; border-radius: 8px; box-shadow: 0 0 0 9999px rgba(0,0,0,.35); }
.scan-hint { color: #fff; text-align: center; max-width: 480px; margin: 0; }
.scan-hint.scan-err { color: #FFB4A8; }
.scan-actions .btn { min-width: 140px; }

/* Long links or numbers never push the page wider than the screen. */
main { overflow-wrap: break-word; }
.claim, .claim .next, .timeline li, .timeline li div, .watch, .card .facts dd, .ok, .error { overflow-wrap: anywhere; min-width: 0; }
.timeline li { max-width: 100%; }

/* Warranty: send to vendor + emails on the timeline. */
.send-card .link-row { margin-top: 10px; }
.ok-line { color: var(--ok); font-weight: 600; }
.tl-mail details summary { cursor: pointer; font-weight: 600; overflow-wrap: anywhere; }
.tl-mail.in { border-left-color: var(--orange) !important; }
.tl-mail .mail-body { margin-top: 6px; background: var(--bg); border-radius: var(--r-control); padding: 8px 10px; }

/* Shop message board */
.post-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.post-head strong { font-size: .95rem; }
.badge.pinned-b { background: var(--cream-tint); color: var(--orange); border: 1px solid var(--cream); }
.badge.new { background: var(--cobalt); color: #fff; vertical-align: middle; text-transform: none; letter-spacing: 0; }
.post-body { margin: 8px 0 2px; overflow-wrap: anywhere; }
.post-tools { display: flex; gap: 14px; margin-top: 4px; }
.post.pinned { border-left: 4px solid var(--orange); }
.replies { margin: 10px 0 0 14px; padding-left: 12px; border-left: 2px solid var(--line); display: grid; gap: 10px; }
.reply .post-body { margin-top: 4px; }
.reply-form { margin-top: 10px; }
.reply-form input { flex: 1; min-width: 0; }
.compose { margin-bottom: 14px; }
.post-mini { text-align: left; }
.post-snip { margin-top: 4px; overflow-wrap: anywhere; color: var(--ink); }
.board-card .card-head h2 { display: flex; align-items: center; gap: 8px; }

/* Call / text buttons next to customer phone numbers */
.contact-btns { display: inline-flex; gap: 6px; margin-left: 6px; vertical-align: middle; }
.contact-btns .btn { padding: 4px 12px; min-height: 36px; display: inline-flex; align-items: center; font-size: .85rem; text-decoration: none; }
.text-sheet textarea { width: 100%; }
.text-sheet a.btn { text-decoration: none; display: inline-flex; align-items: center; }
.cards.board { grid-template-columns: 1fr; max-width: 760px; }
.compose { max-width: 760px; }

/* Hub: a page of tiles, then each area with a way back */
.hub-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 1fr; gap: 12px; }
.hub-tile { height: 100%; }
.hub-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; cursor: pointer;
  background: var(--card); color: var(--ink); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px; min-height: 140px; font: inherit; }
.hub-tile:hover { border-color: var(--cobalt); }
.hub-tile .ico { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--cobalt); margin-bottom: 4px; }
.hub-label { font-family: 'Overpass', 'Open Sans', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); font-size: 1rem; }
.hub-hint { font-size: .85rem; color: var(--muted); line-height: 1.3; }
.hub-stat { margin-top: auto; padding-top: 6px; font-size: .85rem; font-weight: 700; color: var(--ink-2); }
.hub-tile.alert { border-left: 4px solid var(--orange); }
.hub-tile.alert .hub-stat { color: var(--orange); }
.hub-back { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.hub-back .back { margin: 0; padding-left: 0; }
.hub-jump { display: none; }
@media (min-width: 700px) { .hub-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hub-tile { min-height: 160px; padding: 18px; } }
@media (min-width: 900px) { .hub-jump { display: flex; gap: 6px; flex-wrap: wrap; } }

/* Schedule: shift bars, the week table on computers, day cards on phones */
.tbar { position: relative; height: 6px; border-radius: 3px; background: var(--seg-bg); margin: 5px 0 3px; max-width: 260px; overflow: hidden; }
.tbar span { position: absolute; top: 0; bottom: 0; border-radius: 3px; }
.tbar .tb-open { background: var(--line); }
.tbar .tb-shift { background: var(--cobalt); }
.tbar .tb-out { background: var(--orange); }
.sched-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.lg { display: inline-block; width: 18px; height: 6px; border-radius: 3px; vertical-align: middle; }
.lg-shift { background: var(--cobalt); } .lg-out { background: var(--orange); }
.roster-wrap { display: none; }
@media (min-width: 900px) {
  .roster-wrap { display: block; overflow-x: auto; margin-top: 10px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-card); }
  .days { display: none; }
}
.roster { border-collapse: collapse; width: 100%; min-width: 700px; table-layout: fixed; font-size: .9rem; }
.roster col.r-name-col { width: 130px; }
.subnav .chip .seg-n { display: inline-block; min-width: 18px; padding: 0 5px; margin-left: 3px; border-radius: 9px; background: var(--orange); color: #fff; font-size: .72rem; line-height: 18px; }
.subnav .chip { white-space: nowrap; }
.roster th, .roster td { border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.roster thead th { background: var(--bg); font-weight: 400; }
.roster thead th:first-child, .roster tbody th { border-left: 0; }
.roster tbody th { white-space: nowrap; font-weight: 700; }
.r-who { display: inline-flex; align-items: center; gap: 8px; }
.r-day { font-family: 'Overpass', 'Open Sans', sans-serif; font-weight: 800; text-transform: uppercase; letter-spacing: .02em; color: var(--navy); }
.r-time { font-weight: 600; white-space: nowrap; }
.r-gap { margin-top: 4px; font-size: .78rem; font-weight: 700; color: var(--orange); }
.roster .is-today { background: var(--cobalt-tint); }
.roster thead th.is-today { box-shadow: inset 0 3px 0 var(--cobalt); }
.roster td.r-off { background: var(--orange-tint); }
.roster .r-count th, .roster .r-count td { border-bottom: 0; color: var(--muted); font-weight: 700; }
.roster .tbar { max-width: none; }
.roster .btn.link.small { padding: 2px 0; min-height: 0; display: block; }
form[data-form="change"] { scroll-margin-top: 90px; }
.stage-chips { flex-wrap: wrap; overflow: visible; }
.stage-chips .chip { padding: 7px 11px; }

/* Team cards */
.person { display: flex; flex-direction: column; gap: 8px; }
.person-head { display: flex; align-items: center; gap: 12px; }
.person-id { flex: 1; min-width: 0; }
.person-id h3 { margin: 0; }
.person-contact { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.person-email { color: var(--ink-2); overflow-wrap: anywhere; }
.person-line { margin: 0; }
.person-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { font-size: .78rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--cobalt-tint); color: var(--cobalt); }
.tag-muted { background: var(--seg-bg); color: var(--muted); }
.person-settings { border-top: 1px solid var(--line); padding-top: 8px; }
.person-settings summary { cursor: pointer; font-weight: 700; color: var(--cobalt); font-size: .92rem; }
.set-group { margin-top: 10px; }
.set-label { font-size: .8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.sec-toggles.col { flex-direction: column; }
.person-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; }
.person-actions .btn.small { min-height: 38px; padding: 6px 14px; font-size: .9rem; }
.person-remove { margin-left: auto; }
.btn.link.danger-link, .btn.link.danger-link:hover { color: var(--err); }
.cards.team-cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); }

/* Time off over several days */
.date-pair { display: flex; gap: 10px; }
.date-pair label { flex: 1; min-width: 0; }
.date-pair input { width: 100%; min-width: 0; box-sizing: border-box; }
.time-pair[hidden] { display: none; }

/* App feedback */
.fb-cta { display: flex; flex-direction: column; gap: 2px; width: 100%; text-align: left; cursor: pointer; font: inherit; color: var(--ink); margin-bottom: 14px; }
.fb-cta:hover { border-color: var(--cobalt); }
.badge.fb-problem { background: var(--orange-tint); color: var(--orange); }
.badge.fb-idea { background: var(--cobalt-tint); color: var(--cobalt); }
.status.st-fb-new { color: var(--orange); }
.status.st-fb-planned { color: var(--cobalt); }
.status.st-fb-done { color: var(--ok, #1a7f37); }
.status.st-fb-wont { color: var(--muted); }
.fb.fb-done, .fb.fb-wont { opacity: .8; }
.fb-reply { background: var(--seg-bg); border-radius: 8px; padding: 8px 10px; margin: 8px 0 0; }

/* Schedule: month view */
.month-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 4px 0 10px; }
.month-tools label { display: flex; flex-direction: row; align-items: center; gap: 8px; font-weight: 600; margin: 0; }
.month-tools select { width: auto; }
.month-tools select { min-height: 38px; }
.month { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 4px; }
.mhead { text-align: center; font-size: .72rem; font-weight: 700; color: var(--muted); text-transform: uppercase; padding-bottom: 2px; }
.mcell { position: relative; min-height: 64px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 8px;
  padding: 4px 4px 3px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left; cursor: pointer; font: inherit; overflow: hidden; }
.mcell .md { font-size: .8rem; font-weight: 700; }
.mcell .mn { position: absolute; top: 4px; right: 5px; font-size: .7rem; font-weight: 700; color: var(--muted); }
.mcell .moff { display: flex; flex-wrap: wrap; gap: 2px; margin-top: auto; }
.mcell.out-month { background: transparent; border-style: dashed; opacity: .45; }
.mcell.past { opacity: .6; }
.mcell.is-today { box-shadow: inset 0 0 0 2px var(--cobalt); }
.mcell.sel { border-color: var(--navy); box-shadow: inset 0 0 0 2px var(--navy); }
.mcell.short { background: var(--err-tint, #FDECEA); border-color: var(--err); }
.mcell.short .mn { color: var(--err); }
.mcell.who-off { background: var(--orange-tint); border-color: var(--orange); }
.ini { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 18px; padding: 0 3px; border-radius: 9px;
  font-style: normal; font-size: .62rem; font-weight: 800; letter-spacing: .02em; }
.ini.off { background: var(--orange); color: #fff; }
.ini.part { border: 1.5px solid var(--orange); color: var(--orange); }
.ini.ask { border: 1.5px dashed var(--muted); color: var(--muted); }
.sched-legend .ini { vertical-align: middle; }
.alert.low { background: var(--err-tint, #FDECEA); color: var(--err); border-color: var(--err); }
.roster .r-low { color: var(--err); }
@media (min-width: 700px) { .mcell { min-height: 92px; padding: 6px; } .mcell .md { font-size: .95rem; } .ini { font-size: .7rem; height: 20px; min-width: 24px; } }
.avatar.two { font-size: .85rem; letter-spacing: -.02em; }
.avatar.sm.two { font-size: .62rem; }
.avatar.lg.two { font-size: 1.7rem; }

/* Need to order: scan, photos, urgent */
.scan-big { width: 100%; margin-bottom: 12px; min-height: 48px; font-weight: 700; }
.need-more { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 4px 0 10px; }
.need-more summary { cursor: pointer; font-weight: 700; color: var(--cobalt); }
.need-more[open] summary { margin-bottom: 8px; }
.need-photo { flex: none; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); display: block; }
.need-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.need.urgent { border-left: 4px solid var(--err); padding-left: 10px; }
.badge.urgent-b { background: var(--err-tint); color: var(--err); }
.upc-mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.need-group .card-head { margin-bottom: 4px; }
.code-input { font-size: 1.6rem; letter-spacing: .3em; text-align: center; font-variant-numeric: tabular-nums; }
.signin-links { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
