/* myday.css - the phone-first rebuild (2026-10-15, docs/mobile_contract.md): My day, To do, People, More, the first-run screens, the
   full-screen Scan, the period sheet and the one-line date bar. Tokens from styles.css. Sizes in rem so the phone's text size scales
   them (Q35); every control 44 px or more; nothing scrolls sideways at 360 px. */

/* ---- the logo (sign-in, My day) ------------------------------------------------------------------------------------------------- */
.logo-full { display: flex; justify-content: center; margin: 0 0 14px; }
.logo-full img { width: min(240px, 64vw); height: auto; display: block; }
.card.signin { text-align: left; }
.card.signin .logo-full img { width: min(280px, 72vw); }

/* ---- My day -------------------------------------------------------------------------------------------------------------------- */
/* the full logo heads My day (Q37), so the top bar does not repeat it: a phone drops the bar there, the desktop keeps the bar's rest */
@media (max-width: 899px) { body[data-route="myday"] .topbar { display: none; } body[data-route="myday"] .main { padding-top: calc(10px + env(safe-area-inset-top, 0px)); } }
@media (min-width: 900px) { body[data-route="myday"] .wordmark { visibility: hidden; } }
.md-screen .screen-head { display: none; }
.md-screen .stamp { margin-top: 18px; }
.md-head { margin: 4px 0 14px; }
.md-head .logo-full { justify-content: flex-start; margin-bottom: 10px; }
.md-head .logo-full img { width: min(190px, 52vw); }
.md-hello { font-size: var(--fs-hero); line-height: 1.1; font-weight: 800; letter-spacing: -.02em; margin: 0; text-wrap: balance; overflow-wrap: anywhere; }
.md-scope { margin: 4px 0 10px; color: var(--muted); font-size: var(--fs-lg); font-weight: 600; }
.md-back { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; font-size: var(--fs-lg); color: var(--red); text-decoration: none; margin-bottom: 2px; }
.md-period { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 44px; padding: 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: var(--fs-md); cursor: pointer; text-align: left; max-width: 100%; }
.md-period b { font-weight: 800; }
.md-period span { color: var(--red); }
.md-sofar { margin: 10px 0 0; font-size: var(--fs-md); color: var(--muted); }
.md-sofar b { color: var(--ink); }
.md-kept { margin: 8px 0 0; font-size: var(--fs-md); color: var(--info); }
.md-asof { margin: 16px 0 0; font-size: var(--fs-md); color: var(--muted); }
.md-back.from-md { margin: 0 0 4px; }
.mc-skel { height: 168px; border-radius: 16px; }
.md-kept.err { color: var(--bad); }
.md-method { margin-top: 22px; }
.md-method summary { min-height: 44px; display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: var(--fs-md); list-style: none; }
.md-method summary::-webkit-details-marker { display: none; }
.md-method summary::before { content: ""; width: 8px; height: 8px; border-right: 2.5px solid currentColor; border-bottom: 2.5px solid currentColor; transform: rotate(-45deg); flex: none; transition: transform .15s; }
.md-method[open] summary::before { transform: rotate(45deg); margin-top: -4px; }
.md-h { grid-column: 1 / -1; margin: 16px 0 0; font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }

.md-cards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 720px) { .md-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .md-cards .mc-hero { grid-column: 1 / -1; } }
@media (min-width: 1180px) { .md-cards.md-dept, .md-cards.md-store { grid-template-columns: repeat(3, minmax(0, 1fr)); } .md-cards.md-company { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.mc { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px 16px; min-width: 0; box-shadow: var(--shadow); }
.mc[data-href] { cursor: pointer; -webkit-tap-highlight-color: transparent; transition: transform .08s ease, border-color .12s ease; }
@media (hover: hover) { .mc[data-href]:hover { border-color: var(--line-strong); } }
.mc[data-href]:active { transform: scale(.99); }
.mc-h { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.mc-lbl { margin: 0; flex: 1; min-width: 0; font-size: var(--fs-md); font-weight: 700; color: var(--muted); font-family: var(--body); line-height: 1.25; }
.mc-lbl a { color: inherit; text-decoration: none; }
.mc-lbl a:focus-visible { outline-offset: 4px; }
.mc-tag { font-size: var(--fs-md); font-weight: 700; color: var(--info); background: var(--info-soft); padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.mc-go { font-size: var(--fs-hero); line-height: 1; color: var(--muted); font-weight: 300; margin: -4px -2px 0 0; }
.mc-big { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 2px; min-width: 0; }
.big-n { font-family: var(--display); font-size: var(--fs-big); font-weight: 800; line-height: 1.02; letter-spacing: -.025em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
button.big-n { background: none; border: 0; padding: 0; margin: 0; min-height: 44px; cursor: pointer; text-align: left; -webkit-tap-highlight-color: transparent; }
button.big-n:focus-visible { outline-offset: 3px; border-radius: 8px; }
.big-n.sm { font-size: var(--fs-big); }
.big-n.neg { color: var(--bad); }
.big-n.none { color: var(--muted); }
.big-n.word { font-size: var(--fs-hero); }
.big-n.calm { color: var(--good); }
.big-n svg { width: 2.4rem; height: 2.4rem; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; vertical-align: -6px; }
.bn-unit { font-size: var(--fs-lg); font-weight: 600; color: var(--muted); }
.trend { margin: 6px 0 2px; font-size: var(--fs-lg); font-weight: 800; }
.trend.up { color: var(--good); }
.trend.down { color: var(--bad); }
.trend.flat { color: var(--muted); }
.trend.ink { color: var(--ink); }
.trend-on { display: block; font-weight: 600; font-size: var(--fs-md); color: var(--muted); margin-bottom: 1px; }
.nw { white-space: nowrap; }
.mc-sub { margin: 4px 0 0; font-size: var(--fs-lg); color: var(--muted); }
.mc-note { margin: 6px 0 0; font-size: var(--fs-md); color: var(--muted); font-style: italic; }
.mc-mini { margin: 4px 0 0; font-size: var(--fs-md); color: var(--muted); }
span.mc-mini { margin: 0; }
.mc-row { margin: 8px 0 0; font-size: var(--fs-lg); line-height: 1.4; overflow-wrap: anywhere; }
.mc-row.calm { color: var(--muted); }
.mc-k { display: inline-block; min-width: 3.6em; margin-right: 4px; font-size: var(--fs-md); font-weight: 700; color: var(--muted); }
/* a key and its value: the value wraps under itself, never under the key */
.mc-row.kv { display: grid; grid-template-columns: 4.4em minmax(0, 1fr); gap: 0 8px; align-items: baseline; }
.mc-row.kv .mc-k { min-width: 0; margin: 0; }
.md-err { margin-top: 6px; }
.pp-n { display: block; font-style: normal; font-weight: 800; color: var(--bad); font-size: var(--fs-md); margin-top: 2px; }
.pill-move { display: inline-block; padding: 2px 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--ink); font-weight: 800; white-space: nowrap; }
.neg { color: var(--bad); font-weight: 700; }
.pos { color: var(--good); font-weight: 700; }
b.ot, .ot { color: var(--bad); font-weight: 800; }
.mc-sofar { margin: 12px 0 0; padding-top: 10px; border-top: 1px dashed var(--line-strong); font-size: var(--fs-md); color: var(--ink); }
.mc-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 10px; margin: 8px 0 0; font-size: var(--fs-lg); }
.mc-item span { overflow-wrap: anywhere; }
.mc-item b { font-weight: 800; }
.mc-item small { grid-column: 1 / -1; color: var(--muted); font-size: var(--fs-md); }
.mc-more { margin: 8px 0 0; color: var(--red); font-weight: 700; font-size: var(--fs-md); }
.mc-hero { border-top: 4px solid var(--red); }
.mc-assigned.calm .bn-unit { color: var(--good); font-weight: 700; }
/* one Departments card on a store's My day (Tom 2026-10-16 Q7 / Q8): a row per department, a tap opens its My day */
.mc-depts { grid-column: 1 / -1; padding-bottom: 6px; }
.mc-dh { font-size: var(--fs-md); font-weight: 700; color: var(--muted); }
.md-drows { margin: 2px -4px 0; }
.md-drow { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; grid-template-areas: "dn dv dg" "dc dc dg" "dl dl dg"; gap: 2px 10px; align-items: baseline;
  padding: 12px 4px; min-height: 44px; border-top: 1px solid var(--line); color: inherit; text-decoration: none; }
.md-drow:first-child { border-top: 0; }
@media (hover: hover) { .md-drow:hover .dn { text-decoration: underline; text-decoration-color: var(--red); text-underline-offset: 3px; } }
.md-drow:active { background: var(--surface-2); }
.md-drow .dn { grid-area: dn; font-weight: 800; font-size: var(--fs-lg); overflow-wrap: break-word; min-width: 0; }
.md-drow .dv { grid-area: dv; font-family: var(--display); font-weight: 800; font-size: var(--fs-xl); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.md-drow .dv.neg { color: var(--bad); }
.md-drow.fe .dv { font-family: var(--body); font-size: var(--fs-lg); }
.md-drow .dc { grid-area: dc; font-weight: 800; font-size: var(--fs-md); line-height: 1.3; }
.md-drow .dc small { font-size: var(--fs-md); font-weight: 600; color: var(--muted); }
.md-drow .dc.up { color: var(--good); } .md-drow .dc.down { color: var(--bad); } .md-drow .dc.flat { color: var(--muted); }
.md-drow .dc b.ot { color: var(--bad); }
.md-drow .dl { grid-area: dl; font-size: var(--fs-md); color: var(--muted); overflow-wrap: break-word; line-height: 1.35; }
.md-drow .dl b { color: var(--ink); }
.md-drow .dl .neg { color: var(--bad); } .md-drow .dl .pos { color: var(--good); } .md-drow .dl b.ot { color: var(--bad); }
.md-drow .dgo { grid-area: dg; align-self: center; color: var(--muted); font-size: var(--fs-hero); line-height: 1; }

/* ---- To do ---------------------------------------------------------------------------------------------------------------------- */
.td-count { margin: 0 0 12px; font-size: var(--fs-lg); }
.td-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.td-row { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 14px; gap: 4px 12px; align-items: center; width: 100%; min-height: 76px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow); -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { .td-row:hover { border-color: var(--line-strong); } .pp-btn:hover, .mo-tile:hover { border-color: var(--line-strong); } }
.td-row:active { transform: scale(.99); }
.td-row.late { border-left: 5px solid var(--bad); }
.td-ic { display: grid; place-items: center; width: 42px; height: 42px; border-radius: var(--radius); background: var(--surface-2); color: var(--ink); }   /* review U13: an icon says the kind by its shape; colour is kept for better / worse */
.td-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }


.td-main { min-width: 0; display: grid; gap: 2px; }
.td-main b { font-size: var(--fs-lg); line-height: 1.25; overflow-wrap: anywhere; }
.td-main small { font-size: var(--fs-md); color: var(--muted); overflow-wrap: anywhere; }
.td-side { display: grid; justify-items: end; gap: 4px; text-align: right; }
.td-amt { font-family: var(--display); font-size: var(--fs-xl); font-weight: 800; white-space: nowrap; }
.td-go { color: var(--muted); font-size: var(--fs-hero); line-height: 1; }
.due { display: inline-block; font-size: var(--fs-md); font-weight: 800; padding: 3px 8px; border-radius: 99px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.due.late { background: var(--bad-soft); color: var(--bad); }
.due.today { background: var(--warn-soft); color: var(--warn); }
.due.soon { background: var(--surface-2); color: var(--ink); }
@media (max-width: 420px) { .td-row { grid-template-columns: 42px minmax(0, 1fr) 14px; } .td-side { grid-column: 2; grid-row: 2; justify-items: start; grid-auto-flow: column; justify-content: start; align-items: center; gap: 8px; } .td-go { grid-column: 3; grid-row: 1 / span 2; } }
/* a group of like items (Tom 2026-10-16 Q1 / Q2): one row that drops open every item */
.td-grp { display: grid; gap: 0; }
.td-chev { width: 10px; height: 10px; border-right: 2.5px solid var(--muted); border-bottom: 2.5px solid var(--muted); transform: rotate(45deg); margin-top: -4px; transition: transform .15s; }
.td-gh[aria-expanded="true"] .td-chev { transform: rotate(-135deg); margin-top: 4px; }
.td-gh[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.td-sub { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; background: var(--surface-2); overflow: hidden; }
.td-sub .td-row.td-srow { grid-template-columns: minmax(0, 1fr) auto 14px; min-height: 64px; border: 0; border-top: 1px solid var(--line); border-radius: 0; box-shadow: none; background: transparent; padding-left: 20px; }
.td-sub li:first-child .td-srow { border-top: 0; }
.td-sub .due:not(.late):not(.today):not(.soon) { background: var(--surface); }
.td-sub .td-srow.late { border-left: 5px solid var(--bad); padding-left: 15px; }
@media (max-width: 420px) { .td-sub .td-row.td-srow { grid-template-columns: minmax(0, 1fr) 14px; } .td-sub .td-srow .td-side { grid-column: 1; } .td-sub .td-srow .td-go { grid-column: 2; grid-row: 1 / span 2; } }
.td-empty { text-align: center; padding: 40px 16px; border: 1px dashed var(--line-strong); border-radius: 16px; }
.td-empty > svg { width: 64px; height: 64px; padding: 12px; border-radius: 50%; background: var(--good-soft); color: var(--good); fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.td-empty h2 { margin: 12px 0 6px; font-size: var(--fs-hero); }
.td-empty p { margin: 0 auto; color: var(--muted); max-width: 34ch; }
.td-meta { margin: -4px 0 10px; color: var(--muted); font-size: var(--fs-md); }
.td-meta b { color: var(--ink); }
.td-link { margin: 14px 0 0; }
.td-link a { display: inline-flex; align-items: center; min-height: 44px; font-weight: 700; }
.act-big { display: grid; gap: 10px; margin: 16px 0 4px; }
.btn.big { min-height: 56px; font-size: var(--fs-lg); padding: 12px 18px; border-radius: var(--radius); width: 100%; }
.btn.big.quiet { border-color: transparent; }

/* ---- People (three big buttons) and More (tiles) ----------------------------------------------------------------------------------- */
.pp-big { display: grid; gap: 12px; }
@media (min-width: 900px) { .pp-big { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pp-btn { display: grid; grid-template-columns: 52px minmax(0, 1fr) 16px; gap: 14px; align-items: center; min-height: 104px; padding: 18px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); }
.pp-btn > svg { width: 52px; height: 52px; padding: 11px; border-radius: var(--radius); background: var(--red-soft); color: var(--red); fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pp-btn b { display: block; font-size: var(--fs-xl); }
.pp-btn small { display: block; color: var(--muted); font-size: var(--fs-md); margin-top: 2px; }
.pp-btn i { font-style: normal; color: var(--muted); font-size: var(--fs-hero); }
.pp-more { list-style: none; margin: 16px 0 0; padding: 0; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); overflow: hidden; }
.pp-more li + li { border-top: 1px solid var(--line); }
.pp-more a { display: flex; align-items: center; min-height: 52px; padding: 0 16px; color: var(--ink); text-decoration: none; font-weight: 600; }
.pp-more a .chev { margin-left: auto; color: var(--muted); font-size: var(--fs-xl); }
.mo-h { margin: 20px 0 8px; font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }
.mo-h:first-child { margin-top: 2px; }
.mo-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 900px) { .mo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mo-tile { display: grid; align-content: space-between; gap: 12px; min-height: 100px; padding: 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-decoration: none; box-shadow: var(--shadow); min-width: 0; }
.mo-tile svg { width: 30px; height: 30px; fill: none; stroke: var(--red); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mo-tile span { font-weight: 700; font-size: var(--fs-lg); line-height: 1.2; overflow-wrap: anywhere; }

/* ---- full-screen sheets: Scan and the first look ----------------------------------------------------------------------------------- */
.scrim.full { align-items: stretch; background: rgba(0, 0, 0, .7); }
.sheet.full { width: 100%; height: 100%; max-height: none; border-radius: 0; padding: 0; display: flex; flex-direction: column; overflow-y: auto; }
@media (min-width: 900px) { .scrim.full { align-items: center; } .sheet.full { width: min(560px, 94vw); height: min(860px, 94vh); border-radius: 16px; } }
.sheet.full > .close { top: calc(10px + env(safe-area-inset-top, 0px)); right: 10px; z-index: 3; width: 44px; height: 44px; border-radius: 50%; }
/* Scan (Q30): the camera fills the top, the controls sit at the bottom within the thumb's reach */
.scan-sheet > .close { background: rgba(0, 0, 0, .55); color: var(--white); }
.scan-full { display: flex; flex-direction: column; min-height: 100%; flex: 1; }
.scan-full .scan-h { position: absolute; top: calc(12px + env(safe-area-inset-top, 0px)); left: 16px; z-index: 2; margin: 0; padding: 0; color: var(--white); font-size: var(--fs-xl); text-shadow: 0 1px 6px rgba(0, 0, 0, .6); }
.scan-stage { position: relative; flex: 1 1 auto; min-height: 42vh; background: var(--black); display: flex; flex-direction: column; }
.scan-stage .scanbox { flex: 1; border-radius: 0; min-height: 42vh; }
.scan-stage .scanbox.nocam { background: var(--black); }
.scan-stage video.scan { width: 100%; height: 100%; max-height: none; border-radius: 0; object-fit: cover; }
.scan-stage .scanaim { left: 10%; right: 10%; height: 3px; }
.scan-stage .scanbox::after { border-radius: 0; }
.scan-note { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 26px 16px 12px; color: var(--white); font-size: var(--fs-md); font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, .7)); max-width: none; }
.scan-dock { background: var(--surface); padding: 14px 16px calc(14px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 10px; }
.scan-store { display: flex; align-items: center; gap: 8px; font-weight: 700; color: var(--muted); }
.scan-store select { flex: 1; min-height: 48px; padding: 8px 36px 8px 14px; border: 1.5px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink); font-weight: 800; font-size: var(--fs-lg); appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23888' stroke-width='1.6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; }
.scan-dock .scan-mode { display: grid; grid-template-columns: 1fr 1fr; width: 100%; border-radius: var(--radius); margin: 0; overflow: hidden; }
.scan-dock .scan-mode button { min-height: 52px; font-size: var(--fs-lg); font-weight: 800; }
.scan-dock .askbox { margin: 0; }
.scan-dock .askbox input { min-height: 52px; font-size: var(--fs-lg); }
.scan-dock .askbox .btn { min-height: 52px; min-width: 84px; font-size: var(--fs-lg); border-radius: 8px; }
.scan-dock .scanbatch { margin: 0; }
.scan-dock .scan-lead { margin: 0; font-size: var(--fs-md); }
.scan-dock .scan-hint { margin: 0; }
/* the first look (Q44) */
.fr-sheet > .close { display: none; }
.fr { flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; padding: calc(40px + env(safe-area-inset-top, 0px)) 28px calc(24px + env(safe-area-inset-bottom, 0px)); }
.fr-ic { display: grid; place-items: center; width: 112px; height: 112px; border-radius: 50%; background: var(--red-soft); color: var(--red); margin-bottom: 22px; }
.fr-ic svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.fr h2 { font-size: var(--fs-hero); margin: 0 0 10px; padding: 0; }
.fr p { font-size: var(--fs-lg); color: var(--muted); margin: 0; max-width: 30ch; }
.fr-dots { display: flex; gap: 8px; margin: 26px 0 0; }
.fr-dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.fr-dots i.on { background: var(--red); width: 26px; border-radius: 99px; }
.fr-btns { width: 100%; max-width: 360px; display: grid; gap: 8px; margin-top: auto; padding-top: 30px; }

/* ---- the period sheet and the one-line date bar on a phone (Q10) ------------------------------------------------------------------- */
.pick-list { display: grid; gap: 8px; margin: 4px 0 6px; }
.pick { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 56px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); cursor: pointer; text-align: left; font-size: var(--fs-lg); }
.pick b { font-weight: 800; }
.pick small { color: var(--muted); font-size: var(--fs-md); }
.pick.on { border-color: var(--red); background: var(--red-soft); }
@media (max-width: 599px) {
  #datebar { padding: 10px var(--gutter) 0; border-bottom: 0; background: none; }
}
@media print { .mc { box-shadow: none; break-inside: avoid; } .md-period, .md-back { display: none; } }

/* the item page (Q31): how it moves first, then price and cost */
h2.it-h { margin: 20px 0 8px; font-size: var(--fs-lg); font-weight: 800; color: var(--ink); }

/* 2026-10-18 Q18 "done feels good": a cleared row turns into a green check and folds away; the count pops; a cleared group says so */
.td-ghost { overflow: hidden; max-height: 80px; transition: max-height .3s ease, opacity .3s ease, margin .3s ease; }
.td-ghost.fold { max-height: 0; opacity: 0; margin: -5px 0; }
.td-gone { display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 0 16px; border-radius: 16px; background: var(--good-soft); color: var(--good); font-size: var(--fs-lg); }
.td-sub .td-gone { border-radius: 0; }
.td-gone svg { width: 28px; height: 28px; padding: 4px; border-radius: 50%; background: var(--good); color: var(--bg); fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; animation: td-pop .35s ease-out; }
.td-cleared { list-style: none; }
.td-cleared .ux-done { padding: 14px 16px; }
.td-count.pop b { display: inline-block; animation: td-pop .35s ease-out; color: var(--good); }
@keyframes td-pop { 0% { transform: scale(.6); } 60% { transform: scale(1.18); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .td-ghost, .td-gone svg, .td-count.pop b { transition: none; animation: none; } }

/* 2026-10-18 Q1: the (i) right after a page title (the pages' infoTitle puts it after the h1, so the title's text stays the title) */
.screen-head.ux-head h1:has(+ .ux-i) { flex: 0 1 auto; }
.screen-head.ux-head h1 + .ux-i { flex: none; margin: 0 4px 0 2px; }

/* ==== from pricecheck.css (2026-10-24): pricecheck.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of myday.css - where pricecheck.css sat in the cascade ==== */
.pc { max-width: 560px; display: grid; gap: 12px; }
/* To do: the UPC on a price check's sheet */
.td-upc { font-size: var(--fs-lg); margin: 0 0 10px; }
.td-upc b { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
@media (min-width: 900px) {
  .pc { padding-top: 4px; }
}
/* 2026-10-18: one small line where a paragraph was */
.pc-when { margin: 6px 0 0; font-size: var(--fs-sm); color: var(--muted); }

/* ==== from storehelp.css (2026-10-24): storehelp.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of myday.css - where storehelp.css sat in the cascade ==== */
.sh { max-width: 720px; display: grid; gap: 14px; }
.sh-empty { margin: 0; color: var(--muted); }
.sh-unit { font-weight: 700; }
.sh-onitem { margin: 6px 0 2px; }
.sh-onitem .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -3px; }
.sh-asked { font-weight: 700; color: var(--muted); }

/* ==== from vendor.css (2026-10-24): vendor.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of myday.css - where vendor.css sat in the cascade ==== */
/* ---- the Buying pages (fix-pages 2026-10-19; vendor.css loads after styles.css, so these win) ---------------------------------
   Great deals: a deal's % off is a saving = better = green (Q7; it was the brand red), a deal not counted grey; "+ 1 other
   configuration" a 44 px target (review U19: it was 18 px). Negative cost keeps its amber "check". */
.gd-pct { background: var(--good-soft); color: var(--good); }
.gd-neg .gd-pct { background: var(--warn-soft); color: var(--warn); }
.cr-claim .gd-pct { background: var(--surface-2); color: var(--ink); }   /* a claim's status word: no colour meaning */
.gd-row details.codes > summary { display: flex; align-items: center; min-height: 44px; font-size: var(--fs-md); color: var(--ink); text-decoration: underline; }

/* ==== from invoicescan.css (2026-10-24): invoicescan.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of myday.css - where invoicescan.css sat in the cascade ==== */
.is { max-width: 720px; display: grid; gap: 14px; }
.dsd-scan { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin: 0 0 12px; }
.dsd-scan svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
/* the DSD / Upload drop box (screens2.js dropZone): a computer drags files onto it; a phone gets one "Choose files" button (review U19) */
.drop .dz-btn { display: none; }
.drop .dz-hint { display: block; }
@media (max-width: 599px) {
  .drop { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); margin: 0 0 12px 8px; vertical-align: top; }
}
@media (max-width: 599px) {
  .drop .dz-big, .drop .dz-hint { display: none; }
}
@media (max-width: 599px) {
  .drop .dz-btn { display: block; margin: 0; font-size: var(--fs-md); }
}

/* ==== from team.css (2026-10-24): team.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of myday.css - where team.css sat in the cascade ==== */
.tk-photo-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* the sheets */
.tk-lbl { display: block; margin: 14px 0 4px; font-weight: 700; font-size: var(--fs-md); }
.tk-file { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.tk-photo-btn { min-height: 48px; width: 100%; justify-content: flex-start; white-space: normal; text-align: left; }
.tk-file:focus-visible + .tk-photo-btn, .tk-photo-btn:focus-within { outline: 3px solid var(--red-line); }
#tkpeople { margin-top: 8px; display: grid; gap: 6px; }
#tkgroup { margin-top: 8px; display: grid; gap: 8px; }
.tk-tog { display: flex; gap: 10px; align-items: center; min-height: 48px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-weight: 500; }
.tk-tog input { width: 22px; height: 22px; flex: none; accent-color: var(--red-btn); }
.tk-tog { margin-top: 10px; }
#tkrep { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
#tkrep label { display: grid; gap: 4px; font-weight: 600; font-size: var(--fs-md); color: var(--muted); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
#tkpmore { min-height: 48px; }
@media (max-width: 420px) {
  #tkrep { grid-template-columns: 1fr; }
}
/* an associate's five tabs: labels on one line, smaller on a narrow phone with big text (the UX review: "check" fell off at 360 px) */
body.as-assoc .tabbar .tab-l { white-space: nowrap; font-size: min(.8125rem, 3.3vw); }
.tabbar .tab-badge.late { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--bad); }

/* ==== from accounts.css (2026-10-24): accounts.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of myday.css - where accounts.css sat in the cascade ==== */
.ac-chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; -webkit-overflow-scrolling: touch; }

/* ==== from scanner.css (2026-10-24): scanner.css loads with its page now (pages.js); these of its rules also style what the shell or other
   pages draw, so they load with the first paint, at the end of myday.css - where scanner.css sat in the cascade ==== */
body[data-route="scanner"] .btn, body[data-route="inventory"] .btn { white-space: normal; text-align: center; }
body[data-route="scanner"] a.btn, body[data-route="inventory"] a.btn { text-decoration: none; }
body[data-route="scanner"] .btn.big, body[data-route="inventory"] .btn.big { min-height: 56px; font-size: var(--fs-lg); }
/* every input the app's Count style: 17 px (no iPhone zoom under 16 px), 48 px tall, radius 10 - styles.css .form stays 15 px for the
   rest of the app, whose inputs all agree on it (review 2 U7) */
body[data-route="scanner"] .form label, body[data-route="inventory"] .form label { font-size: var(--fs-md); font-weight: 700; color: var(--ink); }
body[data-route="scanner"] .form input:not([type="checkbox"]):not([type="radio"]), body[data-route="inventory"] .form input:not([type="checkbox"]):not([type="radio"]), body[data-route="scanner"] .form select, body[data-route="inventory"] .form select, body[data-route="scanner"] .form textarea, body[data-route="inventory"] .form textarea { min-height: 48px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 8px; font-size: var(--fs-lg); font-weight: 500; box-sizing: border-box; }
/* a switch that is the only thing on its line keeps the app's inline pill (ux.css .ux-way) */
body[data-route="scanner"] .ux-way, body[data-route="inventory"] .ux-way { margin: 0 0 10px; max-width: 100%; }
.sc-choose { display: grid; gap: 10px; margin-top: 8px; }
/* the gate: where, initials, the first download */
.sc-torch { position: absolute; top: 8px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 99px; border: 0; background: rgba(0, 0, 0, .55); color: var(--red-ink); cursor: pointer; }
.sc-torch svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.sc-torch[aria-pressed="true"] { background: var(--warn); }
.sc-found { list-style: none; margin: 4px 0 8px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.sc-found li + li { border-top: 1px solid var(--line); }
.sc-found button { width: 100%; display: grid; gap: 2px; padding: 12px 16px; min-height: 52px; background: none; border: 0; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.sc-found small { color: var(--muted); font-size: var(--fs-md); }
/* the Overview's GP box: the inventory GP line under a department (scorecard.js) */
.sc-invgp { display: block; color: var(--ink); font-weight: 700; }
.sr-live { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
/* the Gross Profit card's dates row (2026-10-24) */
.sc-gpr { margin: 4px 0 8px; }
.sc-gpr-d { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 10px; }
.sc-gpr-d input[type=date] { min-height: 36px; }
.sc-gpr-d .err { color: var(--bad); }

/* ==== 121: My Focus + Assigned (Tom 2026-10-26 Q7 / Q8: two fold-open rows; 16:08: past due is the No Shrink Yesterday look) ==== */
.mf-sec { display: grid; gap: 0; margin: 0 0 12px; }
.mf-head { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto 14px; gap: 4px 12px; align-items: center; width: 100%; min-height: 72px; padding: 12px 14px;
  border: 1px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer; box-shadow: var(--shadow); font: inherit; -webkit-tap-highlight-color: transparent; }
.mf-head[aria-expanded="true"] { border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.mf-head[aria-expanded="true"] .td-chev { transform: rotate(-135deg); margin-top: 4px; }
.mf-hic svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mf-hm { display: grid; gap: 2px; min-width: 0; } .mf-hm b { font-size: var(--fs-lg); } .mf-hm small { color: var(--muted); font-size: var(--fs-md); }
.mf-hm small.td-count { margin: 0; font-size: var(--fs-md); }
.mf-hf .ux-flag { margin: 0; }
/* past due: the red edge, the red tint, the red pill (ux.css .ux-flagged / .ux-flag, the No Shrink Yesterday line) */
.mf-head.late, .td-row.late { border-color: var(--bad); border-left: 5px solid var(--bad); background: var(--bad-soft); }
.mf-body { border: 1px solid var(--line); border-top: 0; border-radius: 0 0 16px 16px; padding: 12px; background: var(--surface-2); display: grid; gap: 10px; }
.mf-note { margin: 0; color: var(--muted); }
.mf-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); padding: 0; min-height: 72px; cursor: default; }
.mf-row:active { transform: none; }
.mf-tick { display: grid; place-items: center; align-self: stretch; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0 0 0 6px; }
.mf-tick svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 2; }
@media (hover: hover) { .mf-tick:hover { color: var(--good); } }
.mf-open { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 4px 12px; align-items: center; border: 0; background: none; color: inherit; text-align: left; padding: 12px 14px 12px 4px; cursor: pointer; font: inherit; min-width: 0; }
.mf-open .td-side { display: grid; justify-items: end; gap: 4px; }
.mf-open .td-side .ux-flag { margin: 0; }
.mf-first { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-bits { display: block; color: var(--muted); } .mf-bits svg { width: 14px; height: 14px; vertical-align: -2px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mf-hi { display: inline-block; font-size: var(--fs-xs); font-weight: 800; padding: 1px 7px; border-radius: 99px; background: var(--ink); color: var(--bg); vertical-align: 2px; }
.mf-row.pri-low .td-main b { font-weight: 600; }
.mf-going { opacity: .4; transition: opacity .2s; }
@media (max-width: 420px) { .mf-open { grid-template-columns: minmax(0, 1fr) 14px; } .mf-open .td-side { grid-column: 1; grid-row: 2; justify-items: start; grid-auto-flow: column; justify-content: start; } .mf-open .td-go { grid-column: 2; grid-row: 1 / span 2; } }
.mf-empty { text-align: center; padding: 8px 4px 4px; } .mf-empty p { margin: 0 0 10px; color: var(--muted); }
.mf-pastgrp summary { cursor: pointer; font-weight: 700; padding: 6px 2px; }
.mf-pl { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.mf-past { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.mf-pm { display: grid; min-width: 0; } .mf-pm small { color: var(--muted); }
/* the round + at the bottom right (above the tab bar on a phone) */
.mf-fab { position: fixed; right: 18px; bottom: calc(var(--tabbar) + 18px + env(safe-area-inset-bottom, 0px)); z-index: 25; width: 60px; height: 60px; border-radius: 50%; border: 0;
  background: var(--red-btn); color: var(--red-ink); display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .28); cursor: pointer; }
.mf-fab svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.mf-fab:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
@media (min-width: 900px) { .mf-fab { bottom: 28px; right: 32px; } }
/* the editor */
.mf-form .mf-l { font-weight: 700; margin: 12px 0 4px; display: block; }
.mf-form input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .mf-form select, .mf-form textarea { width: 100%; }
/* Tom 2026-11-18: Due / Repeat / Reminder as one row of pills; the rest folds under More; a checklist line wraps and grows */
.mf-top { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 2px; }
.mf-pill { position: relative; display: inline-flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 99px; background: var(--surface); color: var(--ink); font: 600 var(--fs-md)/1.2 var(--body); cursor: pointer; white-space: nowrap; }
.mf-pill.on { border-color: var(--ink); }
.mf-pill b { font-weight: 800; }
.mf-form .mf-duep input[type="date"] { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
.mf-pill:focus-visible, .mf-duep:focus-within { outline: 3px solid var(--red); outline-offset: 2px; }
.mf-panel { margin: 6px 0 2px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.mf-rest { margin: 12px 0 0; border-top: 1px solid var(--line); }
.mf-rest summary { display: flex; align-items: center; gap: 8px; min-height: 48px; cursor: pointer; list-style: none; }
.mf-rest summary::-webkit-details-marker { display: none; }
.mf-rest summary small { flex: 1; min-width: 0; color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mf-rest .mf-caret { font-size: var(--fs-lg); transition: transform .15s; }
.mf-rest[open] .mf-caret { transform: rotate(180deg); }
.mf-rest textarea { min-height: 110px; resize: vertical; }
.mf-ck li { align-items: start; }
.mf-ck textarea.mf-ct { min-height: 44px; resize: none; overflow: hidden; line-height: 1.35; white-space: pre-wrap; overflow-wrap: anywhere; }
.mf-ck { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; }
.mf-ck li { display: grid; grid-template-columns: 28px minmax(0, 1fr) 40px; gap: 6px; }
.mf-ck input[type="checkbox"] { width: 22px; height: 22px; margin-top: 11px; }
.mf-ck li:has(input[type="checkbox"]:checked) .mf-ct { text-decoration: line-through; color: var(--muted); }
.mf-picks { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.mf-chip { border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink); border-radius: 99px; padding: 7px 14px; min-height: 44px; min-width: 48px; justify-content: center; font: 600 var(--fs-md)/1.2 var(--body); cursor: pointer; display: inline-flex; gap: 4px; align-items: center; }
.mf-chip input { margin: 0; }
.mf-chip:has(input:checked) { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.mf-days { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.mf-days input { position: absolute; opacity: 0; pointer-events: none; }
.mf-two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .mf-two label { display: grid; gap: 4px; font-weight: 600; }
/* Tom 2026-11-03 18:27 (1): the three priorities spread evenly across the row, the picked one red so it is obvious */
.mf-seg { display: flex; width: 100%; border: 1px solid var(--line-strong); border-radius: 8px; overflow: hidden; }
.mf-seg label { flex: 1 1 0; min-width: 0; cursor: pointer; } .mf-seg input { position: absolute; opacity: 0; pointer-events: none; }
.mf-seg span { display: block; min-height: 44px; padding: 11px 8px; font-weight: 600; text-align: center; }
.mf-seg label + label span { border-left: 1px solid var(--line-strong); }
.mf-seg input:checked + span { background: var(--red-btn); color: var(--red-ink); border-color: var(--red-btn); }
.mf-seg input:focus-visible + span { outline: 3px solid var(--red); outline-offset: -3px; }
.mf-org { margin-top: 8px; }
.mf-phs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 8px; }
.mf-ph { position: relative; width: 84px; height: 84px; border-radius: 8px; overflow: hidden; border: 1px solid var(--line); background: var(--surface-2); }
.mf-phimg { display: grid; place-items: center; width: 100%; height: 100%; cursor: zoom-in; } .mf-phimg img { width: 100%; height: 100%; object-fit: cover; }
.mf-phimg svg { width: 32px; height: 32px; fill: none; stroke: var(--muted); stroke-width: 1.6; }
.mf-phx { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(0, 0, 0, .6); color: var(--white); display: grid; place-items: center; cursor: pointer; }
.mf-phx svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.mf-phadd { cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.mf-phadd svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mf-hint { margin: 4px 0 0; color: var(--muted); font-size: var(--fs-md); }
.mf-pastline { padding: 8px 12px; margin: 0 0 6px; }
.mf-acts { margin-top: 16px; }
/* 133: room for the + under the last row (263: .mf-sec:last-of-type, further down) */
.mf-seg label, .mf-days label { position: relative; } .mf-seg input, .mf-days input { width: 1px !important; height: 1px; margin: 0; left: 0; top: 0; }
.mf-ck input[type="checkbox"] { width: 22px !important; } .mf-phadd { width: auto; }
.mf-form label.mf-phadd { display: inline-flex; flex-direction: row; gap: 6px; align-items: center; }
/* 127 (Tom 2026-10-27): Negative Cost's alert is the negative unit cost; under every deal, 13 weeks of units sold (oldest -> newest) */
.gd-neg .gd-pct.neg-cost { background: var(--red-soft); color: var(--red); }
.gd-neg .gd-pct.neg-cost b { font-size: var(--fs-lg); }
.gd-facts:empty { display: none; }
.gd-facts { margin-top: 6px; }
.gd-wk { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: 2px; align-items: end; margin-top: 6px; }
.gd-wk span { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 56px; min-width: 0; }
.gd-wk em { height: 13px; flex: none; }
.gd-wk i { display: block; width: 100%; max-width: 16px; background: var(--good); border-radius: 4px 4px 0 0; opacity: .75; }
.gd-wk em { font-style: normal; font-size: var(--fs-xs); line-height: 1.2; color: var(--muted); white-space: nowrap; overflow: hidden; max-width: 100%; }

/* 133: assigning To do items (assign.js) - Sent by me, the answers waiting on you, the reasons */
.as-ask { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.as-wait, .as-ok, .as-quiet { display: inline-block; padding: 2px 8px; border-radius: 99px; font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; }
.as-wait { background: var(--line); color: var(--ink); }
.as-ok { background: var(--good-soft); color: var(--good); }
.as-quiet { background: transparent; color: var(--muted); border: 1px solid var(--line); }
.mf-row > .mf-open.as-solo { grid-column: 1 / -1; padding-left: 16px; }
.as-note { margin: 0 0 12px; color: var(--muted); }
.as-dl { display: grid; grid-template-columns: minmax(5.5rem, 38%) minmax(0, 1fr); gap: .375rem .875rem; margin: 0 0 .75rem; }
.as-dl dt { color: var(--muted); }
.as-dl dd { margin: 0; }
.as-body { white-space: normal; margin: 0 0 12px; }
.as-hist { margin: 8px 0 0; padding-left: 18px; color: var(--muted); font-size: var(--fs-md); }
.as-reasons { display: grid; gap: 8px; margin: 4px 0 8px; }
.as-r { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--radius); cursor: pointer; }
.as-r input { width: 20px; height: 20px; margin: 0; }
.as-r:has(input:checked) { border-color: var(--ink); background: var(--info-soft); }
.as-decl { display: grid; gap: 8px; margin: 12px 0; }
.as-choose .btn { display: grid; gap: 2px; text-align: left; }
.as-choose .btn small { font-weight: 400; opacity: .85; }
#as-upq, #as-skq { display: grid; gap: 4px; }
#as-upq[hidden], #as-skq[hidden] { display: none; }
/* 160 (Tom 2026-11-03): the Backdoor Audit download - the top button beside Scan invoices and the date -> vendor picker */
.dsd-dl { display: inline-flex; align-items: center; gap: 8px; min-height: 52px; margin: 0 0 12px 8px; }
.dsd-dl svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.dsd-pick { display: grid; gap: 10px; margin: 4px 0 14px; max-height: 55vh; overflow: auto; }
.dsd-pd { border: 1px solid var(--line); border-radius: var(--radius); padding: 6px 10px; }
.dsd-pdate, .dsd-pinv { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 4px 0; }
.dsd-pinv { padding-left: 24px; border-top: 1px solid var(--line); }
.dsd-pdate input, .dsd-pinv input { width: 22px; height: 22px; flex: 0 0 auto; margin: 0; accent-color: var(--red-btn); }
.dsd-pdate b { font-size: var(--fs-md); }
.dsd-pdate small, .dsd-pinv small { display: block; color: var(--muted); font-size: var(--fs-sm); }
/* 160 (Tom 2026-11-03): the Savings drill's Download row at the top of an open category (and of the box) */
.sv-dl { margin: 4px 0 8px; }
.sv-dl .btn { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; }
.sv-dl .btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* the Deals to buy line under the Savings categories (Tom 2026-11-14) */
.sv-deals { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; margin-top: 8px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; color: inherit; text-decoration: none; }
.sv-deals-l { display: flex; flex-direction: column; gap: 2px; }
.sv-deals-l span { color: var(--muted); font-size: var(--fs-sm, 13px); }
.sv-deals-v { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; white-space: nowrap; }
.sv-deals-v span { color: var(--muted); font-size: var(--fs-sm, 13px); }

/* 221: the deals at a negative cost, under the Negative cost orders */
.ngd-list { list-style: none; margin: 0 0 12px; padding: 0; }
.ngd { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ngd-top { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ngd-cost { font-weight: 600; white-space: nowrap; }
.ngd-sub { color: var(--muted); font-size: var(--fs-sm, 13px); margin-top: 2px; }

/* 226: the item page's movement box - the period pills, the arrows, the one-line summary */
.it-moves .it-pers { display: flex; flex-wrap: wrap; margin: 0 0 10px; overflow: visible; }
.it-moves .it-pers button { flex: 1 1 auto; min-height: 44px; }
/* 235: the Movement title with its date pill (‹ pill ›); out of stock on the last UNFI order = red, white type */
.it-mvh { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin: 0 0 8px; }
.it-mvh h3 { margin: 0; }
.it-oos { margin: 0 0 12px; padding: 10px 14px; border-radius: 8px; background: var(--red-btn); color: var(--red-ink); font-size: var(--fs-md); line-height: 1.35; }
.it-oos b { font-weight: 800; }
.it-nav { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.it-nav b { flex: 1; text-align: center; }
.it-nav b small { display: block; font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
.it-nav .btn { min-height: 44px; min-width: 44px; justify-content: center; }
.it-sum { margin: 0 0 8px; }
.it-sum b { font-size: var(--fs-lg); }
.it-sum small { display: block; color: var(--muted); font-size: var(--fs-sm); margin-top: 2px; }
.it-custom { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin: 0 0 10px; }
.it-custom label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-sm); color: var(--muted); }
.it-custom input, .it-custom .btn { min-height: 44px; }

/* My Focus photos (Tom 2026-11-25): on the row without opening anything, above More in the editor, and full size on a tap */
.mf-phs:empty { display: none; } .mf-phs { margin-top: 12px; }
button.mf-phimg { border: 0; padding: 0; background: none; }
.mf-rowph { grid-column: 2; display: flex; flex-wrap: wrap; gap: 8px; padding: 0 14px 12px; }
.mf-rowph .mf-ph { width: 64px; height: 64px; padding: 0; cursor: zoom-in; }
.mf-rowph .mf-phmore { display: grid; place-items: center; color: var(--muted); font-size: var(--fs-md); font-weight: 700; }
.mf-view { position: fixed; inset: 0; z-index: 4000; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 56px 8px 48px; }
.mf-vimg { display: grid; place-items: center; width: 100%; height: 100%; min-height: 0; color: var(--white); cursor: zoom-out; }
.mf-vimg img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 8px; cursor: default; }
.mf-vimg svg { width: 96px; height: 96px; fill: none; stroke: var(--white); stroke-width: 1.2; }
.mf-vx, .mf-vn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .18); color: var(--white); display: grid; place-items: center; cursor: pointer; font-size: var(--fs-xl); }
.mf-vx { top: 8px; right: 8px; } .mf-vx svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; }
.mf-vprev { left: 8px; top: 50%; margin-top: -24px; } .mf-vnext { right: 8px; top: 50%; margin-top: -24px; }
.mf-vc { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: var(--white); font-size: var(--fs-sm); }

/* ---- To do, 263 (Tom 2026-11-25, the audit): the line on top, amber for "to answer", the For picker, the roll-up, thumb-size targets ---- */
.mf-total { margin: 0 0 10px; color: var(--muted); font-size: var(--fs-md); } .mf-total b { color: var(--ink); }
.mf-head.warn, .td-row.as-warn { border-color: var(--warn); border-left: 5px solid var(--warn); background: var(--warn-soft); }
.as-warnp { display: inline-block; padding: 2px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-size: var(--fs-xs); font-weight: 700; white-space: nowrap; border: 1px solid var(--warn); }
.as-warnw { color: var(--warn); font-weight: 700; }
.mf-pastline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--bad); font-weight: 700; padding: 0; }
.mf-pastline .ux-flag { margin: 0; }
.mf-top { flex-wrap: wrap; }
.as-forpanel { max-height: 52vh; overflow-y: auto; }
.as-pkme { width: 100%; justify-content: space-between; min-height: 48px; margin: 0 0 8px; } .as-pkme small { color: var(--muted); font-weight: 400; }
.as-ppl, .as-blist, .mf-ckl { list-style: none; margin: 0 0 8px; padding: 0; }
.as-ppl li + li, .as-blist li + li { border-top: 1px solid var(--line); }
.mf-form label.as-p, .as-p { display: flex; flex-direction: row; align-items: center; gap: 12px; min-height: 48px; padding: 4px 2px; cursor: pointer; }
.as-p input { width: 22px !important; height: 22px; flex: none; margin: 0; }
.as-p span { display: grid; min-width: 0; } .as-p small { color: var(--muted); font-size: var(--fs-sm); }
.as-brow { display: grid; grid-template-columns: minmax(0, 1fr) auto 14px; gap: 10px; align-items: center; width: 100%; min-height: 52px; padding: 6px 2px; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.as-bn { display: grid; min-width: 0; } .as-bn small { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.as-dph { margin-top: 8px; }
.mf-sticky { position: sticky; bottom: 0; background: var(--surface); padding-bottom: 4px; }
/* the checklist, ticked from the list */
.mf-rowck { grid-column: 2; padding: 0 14px 10px; }
.mf-ckb { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); color: var(--ink); font-size: var(--fs-sm); cursor: pointer; }
.mf-ckb svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.mf-ckl label { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.mf-ckl input { width: 22px; height: 22px; flex: none; margin: 0; }
.mf-ckl input:checked + span { color: var(--muted); text-decoration: line-through; }
.mf-find { margin: 6px 0; }
/* thumb-size targets in the sheets (the audit measured 13 - 34px) */
.mf-sheet .close { min-width: 44px; min-height: 44px; }
.mf-ck li > input[type="checkbox"] { width: 28px !important; height: 28px; margin: 8px; }
.mf-ck li > button { min-width: 44px; min-height: 44px; }
.mf-form label.mf-org { min-height: 44px; align-items: center; } .mf-org input { width: 22px !important; height: 22px; }
.mf-pastgrp > summary, .mf-more > summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.mf-tick { min-width: 44px; min-height: 44px; }
/* the + never sits on the last row, and steps aside while a box on the page is being typed in */
.mf-sec:last-of-type { margin-bottom: 96px; }
body.mf-typing .mf-fab { display: none; }
/* the owners' roll-up */
.ru-store { margin: 0 0 12px; } .ru-store > h3 { margin: 12px 0 2px; font-size: var(--fs-md); }
.ru-auto { margin: 0 0 6px; color: var(--muted); font-size: var(--fs-sm); }
.ru-p { border-top: 1px solid var(--line); } .ru-p > summary { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; cursor: pointer; list-style: none; }
.ru-p > summary::-webkit-details-marker { display: none; }
.ru-n { display: grid; min-width: 0; } .ru-n small { color: var(--muted); font-size: var(--fs-sm); }
.ru-c { white-space: nowrap; font-size: var(--fs-sm); } .ru-c .neg { font-weight: 700; }
.ru-items { list-style: none; margin: 0 0 8px; padding: 0 0 0 4px; } .ru-items li { padding: 6px 0; font-size: var(--fs-sm); } .ru-items li.late b { color: var(--bad); }
.ru-items small { display: block; color: var(--muted); }
.ru-p0 { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; min-height: 48px; }
.ru-n b { font-size: var(--fs-md); color: var(--ink); font-weight: 700; } .ru-c { color: var(--muted); }
.mf-for { margin: 4px 0 0; } .mf-for .mf-pill { max-width: 100%; }

/* 280: the line that says To do is quiet on purpose */
.td-quietnote { margin: 0 0 12px; padding: 8px 12px; border-radius: 8px; background: var(--surface-2); color: var(--muted); font-size: var(--fs-sm); }
.td-quietnote a { color: inherit; text-decoration: underline; }
