/* Cafe Con Bagel — Manager's Daily (look approved in the mockup review, decisions D16–D17)
   Type: Manrope for headings and big numbers, Inter for everything else.
   Colors (text pairs pass WCAG AA 4.5:1 on their backgrounds):
   ground #F4F7FA · card #FFF · ink #111418 · muted #56606B · sky #D6ECFA · tan #F3E7DA
   red #8C1D14 on #FAD9D5 · yellow #7A5A00 on #FCF0C8 · green #1F6E43 on #E3F1E8 · blue #0B4F7A
   Spacing steps: 4 · 8 · 12 · 16 · 24. Card padding is --pad: 16px on a phone, 24px on a tablet. */
:root {
  --ground: #F4F7FA; --card: #FFFFFF; --line: #DDE3EA; --line-soft: #EDF1F5;
  --ink: #111418; --soft: #36404A; --muted: #56606B;
  --sky: #D6ECFA; --sky-ink: #2E4A5E; --tan: #F3E7DA; --tan-ink: #5C3A17; --gold: #C89B6D;
  --accent: #0B4F7A; --accent-dark: #08395A; --tint: #D6ECFA;
  --amber: #7A5A00; --amber-bg: #FCF0C8;
  --red: #B42318; --red-ink: #8C1D14; --red-bg: #FAD9D5; --red-soft: #FDF1EF; --red-line: #E0796F;
  --green: #1F6E43; --green-bg: #E3F1E8;
  --radius: 20px; --pad: clamp(16px, 2.2vw, 24px);
  --shadow: 0 1px 2px rgba(17,20,24,0.04), 0 8px 24px rgba(17,20,24,0.05);
  --head: Manrope, Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
:empty#coming-up { display: none; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: Inter, system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
h1 { margin: 0; font-family: var(--head); font-size: clamp(21px, 5.4vw, 28px); line-height: 1.15; font-weight: 800; letter-spacing: -0.6px; }
h2 { margin: 0; font-family: var(--head); font-size: 20px; font-weight: 800; letter-spacing: -0.3px; }
p { margin: 0; }
button { font: inherit; color: inherit; }
.page { max-width: 1180px; margin: 0 auto; padding: var(--pad); padding-bottom: 40px; display: flex; flex-direction: column; gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.muted { color: var(--muted); }
.small { font-size: 13px; line-height: 1.45; }
.center { text-align: center; }
.good { color: var(--green); }
.warn { color: var(--amber); }
.bad { color: var(--red-ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }

/* ---------- header and tabs ---------- */
.top { background: var(--sky); border-radius: 24px; padding: var(--pad); display: flex; flex-direction: column; gap: 16px; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.brand-text { min-width: 0; }
.brand p { font-size: 14px; color: var(--sky-ink); margin-top: 2px; }
.logo { width: 52px; height: 52px; border-radius: 50%; background: #fff; padding: 5px; flex: none; }   /* the shop's mark (logo-mark.png) on a white disc */
.login-logo { width: 190px; height: auto; align-self: center; margin: 4px 0; }
.tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: #fff; border-radius: 999px; padding: 4px; }
.tabs button { min-height: 44px; font-family: var(--head); font-size: clamp(13px, 3.5vw, 16px); font-weight: 700; background: transparent; border: 0; border-radius: 999px; padding: 0 6px; cursor: pointer; }
.tabs button[aria-pressed="true"] { background: var(--ink); color: #fff; }
.banner-error { background: var(--red-bg); color: var(--red-ink); border-radius: 12px; padding: 12px 16px; font-weight: 600; }
.banner-pretend { background: var(--amber-bg); color: var(--amber); border-radius: 12px; padding: 10px 16px; font-weight: 600; font-size: 14px; text-align: center; }

/* ---------- buttons ---------- */
.btn { font-size: 15px; font-weight: 600; color: #fff; background: var(--ink); border: 0; border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { background: #2A323B; }
.btn:disabled { opacity: .6; cursor: default; }
.btn.light { background: #fff; color: var(--ink); font-size: 14px; flex: none; }
.btn.soft { background: var(--ground); color: var(--ink); font-size: 14px; }
.btn.sky { background: #BFE0F5; color: var(--ink); font-size: 14px; font-weight: 700; }
.btn.white { background: #fff; color: var(--ink); font-size: 14px; font-weight: 700; min-width: 60px; padding: 0 14px; }
.btn.outline { background: transparent; color: #fff; border: 1px solid var(--muted); font-size: 14px; font-weight: 700; }
.btn.ghost { background: transparent; color: var(--accent); border: 1px solid var(--line); min-height: 44px; font-size: 14px; padding: 0 14px; }
.btn.ghost:hover { background: var(--tint); }
.start { align-self: flex-start; }

/* ---------- cards and fold-down cards ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: var(--pad); display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(330px, 100%), 1fr)); gap: 16px; align-items: start; }
.fold { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; scroll-margin-top: 12px; }
.fold-head { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 12px var(--pad); background: transparent; border: 0; text-align: left; cursor: pointer; }
.fold-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.fold-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.fold-title b { font-family: var(--head); font-size: 18px; font-weight: 800; letter-spacing: -0.2px; }
.fold-sum { font-size: 14px; line-height: 1.4; color: var(--muted); text-wrap: pretty; }
.fold-body { padding: 4px var(--pad) var(--pad); display: flex; flex-direction: column; gap: 14px; }
.chev { flex: none; transition: transform .15s; }
[aria-expanded="true"] > .chev { transform: rotate(180deg); }
.sub-fold { border-top: 1px solid var(--line); display: flex; flex-direction: column; }
.sub-fold > button { display: flex; align-items: center; gap: 12px; min-height: 60px; width: 100%; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.sub-fold > button b { font-family: var(--head); font-size: 17px; font-weight: 800; display: block; color: var(--ink); }
.sub-fold > button span { flex: 1; font-size: 14px; color: var(--muted); }
.sub-fold > div { display: flex; flex-direction: column; gap: 12px; padding-bottom: 6px; }

/* pills and tags */
.pill { font-size: 12px; font-weight: 700; padding: 2px 9px; border-radius: 999px; color: var(--red-ink); background: var(--red-bg); white-space: nowrap; }
.pill.yellow { color: var(--amber); background: var(--amber-bg); }
.pill.green { color: var(--green); background: var(--green-bg); }
.pill.grey { color: var(--soft); background: var(--line-soft); }
.pill.blue { color: var(--accent); background: var(--sky); }
.tag-sample { font-size: 11px; font-weight: 700; color: #8A4A0B; background: #FDF1E3; padding: 2px 8px; border-radius: 999px; margin-left: 8px; vertical-align: middle; white-space: nowrap; }
.note { font-size: 13px; line-height: 1.45; color: var(--muted); }
.note.yellow { font-size: 14px; font-weight: 600; color: var(--amber); background: var(--amber-bg); border-radius: 10px; padding: 8px 10px; }

/* ---------- Do these first ---------- */
.first { background: var(--ink); color: #fff; border-radius: 24px; padding: var(--pad); display: flex; flex-direction: column; gap: 12px; }
.first-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.first-head p { font-size: 13px; color: #C9D3DC; margin-top: 2px; }
.first-list { display: flex; flex-direction: column; gap: 8px; }
.pr { display: flex; align-items: center; gap: 12px; background: #1E242B; border-radius: 16px; padding: 12px; }
.pr-n { flex: none; width: 26px; height: 26px; border-radius: 50%; background: var(--gold); color: var(--ink); font-family: var(--head); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.pr-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.pr-text strong { font-family: var(--head); font-size: 16px; line-height: 1.3; text-wrap: pretty; }
.pr-text span.d { font-size: 14px; line-height: 1.4; color: #C9D3DC; text-wrap: pretty; }
.tag { align-self: flex-start; font-size: 11px; font-weight: 700; letter-spacing: 0.5px; text-transform: uppercase; padding: 2px 8px; border-radius: 999px; color: var(--ink); background: #BFE0F5; }
.tag.urgent { color: #fff; background: var(--red); }
.tag.staffing { background: #F5C518; }
.tag.customers { background: #F2B5AE; }
.tag.cleaning { background: var(--sky); }
.tag.deadline { background: #E2BD94; }
.first-add { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; background: #1E242B; border-radius: 16px; padding: 12px; }
.first-add input[type=text] { flex: 1 1 220px; min-height: 44px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 0; border-radius: 12px; padding: 0 12px; }
.first-add label { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; min-height: 44px; }
.first-empty { font-size: 15px; color: #C9D3DC; }

/* ---------- tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(136px, 100%), 1fr)); gap: 8px; }
.tiles.narrow { grid-template-columns: repeat(auto-fit, minmax(min(92px, 100%), 1fr)); }
.tile { background: var(--ground); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tile .lbl { font-size: 13px; color: var(--muted); }
.tile .val { font-family: var(--head); font-size: 22px; font-weight: 800; line-height: 1.2; letter-spacing: -0.4px; }
.tile .sub { font-size: 13px; line-height: 1.4; color: var(--soft); }
.tile.white { background: #fff; }
.tile.dark { background: var(--ink); color: #fff; }
.tile.dark .lbl, .tile.dark .sub { color: #C9D3DC; }
.tile.tan { background: var(--tan); }
.tile.tan .lbl, .tile.tan .sub { color: var(--tan-ink); font-weight: 600; }
.tile.line { background: #fff; border: 1px solid var(--line); }
.tile.red { background: var(--red-soft); border: 2px solid var(--red-line); }
.tile.red .lbl, .tile.red .val { color: var(--red-ink); }
.tile .val.xl { font-size: 36px; letter-spacing: -1.2px; line-height: 1.1; }
.tile .val.l { font-size: 30px; letter-spacing: -1px; line-height: 1.1; }
/* Bagels for tomorrow: recommended and average side by side in each flavor's box */
.tiles.bagel-tiles { grid-template-columns: repeat(auto-fit, minmax(min(176px, 100%), 1fr)); }
.tiles.bagel-tiles .tile { padding: 12px; }
.bagel-pair { display: grid; grid-template-columns: max-content 1fr; gap: 8px; margin-top: 4px; }
.bagel-pair > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.bagel-pair .k { font-size: 11px; font-weight: 600; color: var(--tan-ink); white-space: nowrap; }
.bagel-pair .sub { font-size: 12px; white-space: nowrap; }
.bagel-pair .avg { border-left: 1px solid rgba(0, 0, 0, 0.12); padding-left: 8px; }
.bagel-pair .avg .val { font-weight: 600; }

/* sales box */
.sales { display: flex; flex-wrap: wrap; gap: 10px; }
.sales-main { flex: 1.3 1 240px; background: var(--sky); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; justify-content: center; }
.sales-main .lbl { font-size: 14px; font-weight: 600; color: var(--sky-ink); }
.sales-main .big { font-family: var(--head); font-size: clamp(44px, 11vw, 60px); font-weight: 800; letter-spacing: -2px; line-height: 1.05; }
.sales-main .sub { font-size: 14px; color: var(--sky-ink); }
.sales-main .sub strong { color: var(--ink); }
.sales-side { flex: 1 1 150px; display: flex; flex-direction: column; gap: 8px; }
.sales-side .tile { flex: 1; justify-content: center; border-radius: 16px; }
.sales .tile.wide { flex: 1 1 150px; border-radius: 16px; justify-content: center; padding: 14px 16px; }
.sales .tile.wide .val { font-size: clamp(22px, 5.6vw, 28px); }

/* slim period buttons */
.seg { display: grid; grid-template-columns: repeat(var(--n, 3), minmax(0, 1fr)); gap: 3px; width: 100%; max-width: 400px; background: var(--ground); border-radius: 999px; padding: 3px; }
.seg.two-way { max-width: 300px; }
.seg button { min-height: 36px; padding: 0 8px; font-size: 13px; font-weight: 700; background: transparent; border: 0; border-radius: 999px; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* top sellers */
.used { background: var(--tan); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.used-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; color: var(--tan-ink); }
.used-head strong { font-family: var(--head); font-size: 17px; font-weight: 800; }
.used-head span { font-size: 13px; }
.sellers { display: flex; flex-direction: column; }
.seller { border-top: 1px solid var(--line-soft); display: flex; flex-direction: column; }
.seller > button { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto 20px; gap: 10px; align-items: center; min-height: 52px; width: 100%; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.rank { width: 28px; height: 28px; border-radius: 50%; background: var(--line-soft); color: var(--soft); font-family: var(--head); font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rank.top3 { background: var(--ink); color: #fff; }
.seller-name { display: flex; flex-direction: column; gap: 5px; font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.bar { height: 5px; background: var(--ground); border-radius: 3px; display: block; }
.bar i { display: block; height: 5px; background: #BFE0F5; border-radius: 3px; }
.seller-count { font-family: var(--head); font-size: 17px; font-weight: 800; }
.addons { margin-bottom: 12px; background: var(--ground); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.45; }
.addons .grp { display: flex; flex-direction: column; gap: 1px; }
.addons .grp b { font-size: 12px; letter-spacing: 0.6px; text-transform: uppercase; color: var(--muted); }

/* bagels for tomorrow */
.reco { font-size: 15px; font-weight: 700; color: var(--red); }
.math { background: var(--ground); border-radius: 12px; padding: 12px 14px; overflow-x: auto; }
.math { display: flex; flex-direction: column; gap: 10px; }
.math > div { display: grid; grid-template-columns: minmax(96px, 1fr) repeat(3, minmax(104px, 1.2fr)) minmax(120px, 1.3fr); gap: 8px 12px; font-size: 14px; min-width: 600px; }
.math small { color: var(--muted); white-space: nowrap; }
.math .h { color: var(--muted); font-weight: 700; }

/* look-ups */
.lookup { display: flex; flex-direction: column; gap: 12px; }
.lookup label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.lookup input[type=date] { min-height: 44px; width: 100%; font: inherit; font-size: 16px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 10px; }
.lookup .one { max-width: 220px; }
.lookup .pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; max-width: 448px; }
.lookup-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
.lookup-head strong { font-family: var(--head); font-size: 17px; font-weight: 800; }
.by-day { background: var(--ground); border-radius: 12px; padding: 4px 12px; overflow-x: auto; }
.by-day table { width: 100%; border-collapse: collapse; font-size: 14px; }
.by-day th { font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; padding: 10px 8px 8px 0; white-space: nowrap; }
.by-day td { padding: 8px 8px 8px 0; border-top: 1px solid #E1E7ED; white-space: nowrap; }
.by-day td:first-child { font-weight: 600; }
.by-day td:last-child, .by-day th:last-child { font-weight: 700; padding-right: 0; }

/* empanadas */
.names { display: flex; flex-direction: column; }
.names > strong { font-size: 14px; padding-bottom: 6px; }
.names > div { display: grid; grid-template-columns: minmax(0, 1fr) auto 76px; gap: 10px; align-items: center; min-height: 40px; border-top: 1px solid var(--line-soft); font-size: 14px; }
.names > div > span:first-child { font-weight: 600; overflow-wrap: anywhere; }
.names > div > b { text-align: right; color: var(--red-ink); }
.orders { display: flex; flex-direction: column; background: var(--ground); border-radius: 12px; padding: 4px 14px; }
.orders > div { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; padding: 9px 0; border-bottom: 1px solid #E1E7ED; font-size: 14px; }
.orders > div:last-child { border-bottom: 0; }
.orders span { flex: 1 1 120px; }
.orders span:first-child { flex-basis: 150px; color: var(--soft); }

/* this week's schedule */
.filerow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.filerow .note { flex: 1 1 260px; }
.days { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(148px, 100%), 1fr)); gap: 8px; }
.day { background: var(--ground); border: 2px solid transparent; border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.day.today { border-color: var(--ink); }
.day.bad { background: var(--red-soft); border-color: var(--red-line); }
.day-head { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; }
.day-head strong { font-family: var(--head); font-size: 15px; font-weight: 800; }
.day-head span { font-size: 13px; font-weight: 600; color: var(--muted); }
.day .ok { font-size: 13px; font-weight: 600; color: var(--green); }
.warnline { font-size: 13px; font-weight: 700; line-height: 1.3; color: var(--red-ink); background: var(--red-bg); border-radius: 10px; padding: 6px 8px; }
.offline { font-size: 13px; font-weight: 600; line-height: 1.3; color: var(--amber); background: var(--amber-bg); border-radius: 10px; padding: 6px 8px; }
.day .who { display: flex; flex-direction: column; gap: 1px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.day .who span { font-size: 13px; color: var(--soft); }
.note.bad { color: var(--red-ink); font-weight: 700; }

/* next 2 weeks */
.plan-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px; }
.legend .pday-band { font-size: 13px; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.pdays { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(330px, 100%), 1fr)); gap: 10px; align-items: start; }
.pday { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: #fff; box-shadow: 0 1px 2px rgba(17,20,24,0.04); display: flex; flex-direction: column; }
.pday.today { border: 2px solid var(--ink); }
.pday-head { width: 100%; display: flex; flex-direction: column; padding: 0; background: transparent; border: 0; text-align: left; cursor: pointer; }
.pday-band { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 9px 14px; background: #E4E9EE; color: var(--soft); }
.pday-band strong { font-family: var(--head); font-size: 15px; font-weight: 800; letter-spacing: 0.3px; }
.pday-band span { font-family: var(--head); font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.5px; }
.pday-band.normal { background: var(--green-bg); color: var(--green); }
.pday-band.busy { background: #F5C518; color: var(--ink); }
.pday-band.rush { background: var(--red); color: #fff; }
.pday-strip { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.pday-sum { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.pday-money { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: -0.8px; line-height: 1; }
.pday-sum small { font-size: 13px; color: var(--muted); }
.pday-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.pday-flags .pill { white-space: normal; line-height: 1.3; padding: 3px 9px; }
.pday-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 14px; border-top: 1px solid var(--line-soft); }
/* Each opened day reads the same way, top to bottom: weather, sales before, crew and labor, events — each under a small label. */
.pday-label { font-size: 11px; font-weight: 800; letter-spacing: 0.9px; text-transform: uppercase; color: var(--muted); }
.pday-sec { display: flex; flex-direction: column; gap: 6px; }
.pday-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pday-pair.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.pday-pair.three > div { padding: 9px 10px; }
.pday-pair.three b { font-size: 17px; }
.pday-pair > div { background: var(--ground); border-radius: 12px; padding: 9px 12px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.pday-pair small { font-size: 12px; color: var(--muted); line-height: 1.35; }
.pday-pair b { font-family: var(--head); font-size: 18px; font-weight: 800; letter-spacing: -0.3px; line-height: 1.25; }
.pday-pair > div.bad { background: var(--red-soft); }
.pday-pair > div.bad b { color: var(--red-ink); }
/* Weather: a thick border so it stands out from everything else in the day (Pablo, Nov 18 2026) */
.pday-wx { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 3px solid var(--accent); }
.pday-wx .pday-label { color: var(--accent); }
.pday-wx-main { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 2px 10px; }
.pday-wx-main b { font-family: var(--head); font-size: 26px; font-weight: 800; letter-spacing: -0.8px; line-height: 1.1; }
.pday-wx-main b small { font-size: 16px; font-weight: 700; color: var(--muted); letter-spacing: 0; }
.pday-wx-main strong { font-size: 15px; font-weight: 700; }
.pday-wx p { font-size: 14px; font-weight: 600; line-height: 1.4; }
.pday-wx.wet { background: var(--red-soft); border-color: var(--red); color: var(--red-ink); }
.pday-wx.wet .pday-label, .pday-wx.wet .pday-wx-main b small { color: var(--red-ink); }
.pday-event { display: flex; flex-direction: column; gap: 3px; background: var(--sky); border-radius: 12px; padding: 10px 12px; font-size: 13px; line-height: 1.45; color: var(--sky-ink); }
.pday-event strong { font-size: 15px; color: var(--ink); }
.launch { display: flex; flex-direction: column; gap: 6px; padding-top: 10px; border-top: 2px solid var(--ink); }
.launch-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.launch-head strong { font-family: var(--head); font-size: 17px; font-weight: 800; flex: 1 1 160px; }
.launch-date { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.launch-date input, .step input[type=date] { min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: var(--tan); border: 2px dashed var(--gold); border-radius: 12px; padding: 0 10px; }
.step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; min-height: 48px; border-top: 1px solid var(--line-soft); padding: 4px 0; }
.step label { flex: 1 1 180px; font-size: 15px; line-height: 1.35; display: flex; flex-direction: column; }
.step label small { font-size: 13px; color: var(--green); font-weight: 600; }
.step.done label { color: var(--muted); }
.step-add { display: flex; flex-wrap: wrap; gap: 8px; }
.step-add input { flex: 1 1 200px; min-height: 44px; font: inherit; font-size: 16px; color: var(--ink); background: var(--ground); border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 12px; }

/* shop & notes */
.items { display: flex; flex-direction: column; }
.item { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 8px 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.item-main { flex: 1 1 200px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.item-main strong { font-size: 16px; line-height: 1.3; }
.item-main small { font-size: 13px; line-height: 1.4; color: var(--muted); }
.pill.solid { color: #fff; background: var(--red); }
.pill.tan { color: var(--tan-ink); background: var(--tan); }
.inote { font-size: 14px; line-height: 1.4; color: var(--soft); background: var(--ground); border-radius: 10px; padding: 8px 10px; }
.inote small { color: var(--muted); }
.linkbtn { min-height: 36px; font-size: 14px; font-weight: 600; color: var(--accent); background: transparent; border: 0; padding: 0; cursor: pointer; }
.mini-form { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.mini-form input { flex: 1 1 200px; min-height: 44px; font: inherit; font-size: 16px; color: var(--ink); background: var(--ground); border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 12px; }
.mini-form select, .prio-select { min-height: 44px; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); background: #fff; border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 8px; }
.prio-select { min-height: 32px; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 0 6px; background: var(--sky); border-color: transparent; color: var(--accent); }
.prio-select.high { background: var(--red); color: #fff; }
.prio-select.low { background: var(--line-soft); color: var(--soft); }
.done-line { font-size: 14px; line-height: 1.4; color: var(--green); }
.msg { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.msg small { font-size: 13px; font-weight: 700; color: var(--muted); }
.msg p { font-size: 15px; line-height: 1.45; }
.msg .reply { font-size: 14px; font-weight: 600; color: var(--accent); background: var(--sky); padding: 6px 12px; border-radius: 10px; }

/* settings: people and shop tablets */
.top-actions { display: flex; gap: 8px; flex: none; }
#settings-btn[aria-pressed="true"] { background: var(--ink); color: #fff; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.item.off strong { color: var(--muted); }
.edit-box { width: 100%; display: flex; flex-direction: column; gap: 10px; background: var(--ground); border-radius: 12px; padding: 12px; margin-top: 4px; }
.edit-box .mini-form input { background: #fff; }
.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--muted); }
.pin-input { letter-spacing: 0.3em; -webkit-text-security: disc; }
.pin-input::placeholder { letter-spacing: normal; }
.saved { font-size: 15px; font-weight: 600; color: var(--green); background: var(--green-bg); border-radius: 12px; padding: 12px 16px; }
@media (max-width: 700px) { .top-actions { flex-direction: column; } .top-actions .btn { min-height: 40px; } }

/* weather & comfort */
.wxnow { display: flex; flex-wrap: wrap; gap: 10px; align-items: stretch; }
.wxnow-temp { flex: 1 1 200px; background: var(--sky); border-radius: 16px; padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; justify-content: center; }
.wxnow-temp b { font-family: var(--head); font-size: clamp(64px, 16vw, 84px); font-weight: 800; letter-spacing: -3px; line-height: 1; }
.wxnow-temp strong { font-size: 17px; }
.wxnow-temp span { font-size: 14px; color: var(--sky-ink); }
.wxnow-hours { flex: 3 1 300px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.hours { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(70px, 100%), 1fr)); gap: 6px; }
.hr { background: var(--ground); border: 2px solid transparent; border-radius: 12px; padding: 8px 4px; display: flex; flex-direction: column; align-items: center; gap: 1px; text-align: center; }
.hr span { font-size: 13px; font-weight: 700; }
.hr b { font-family: var(--head); font-size: 22px; font-weight: 800; }
.hr small { font-size: 12px; font-weight: 600; }
.hr.wet { background: var(--red-soft); border-color: var(--red-line); color: var(--red-ink); }
.wall { color: #fff; border-radius: 16px; padding: 16px 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; background: #2F4A63; }
.wall.open { background: var(--green); }
.wall small { display: block; font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.wall b { font-family: var(--head); font-size: 36px; font-weight: 800; letter-spacing: -0.8px; line-height: 1; }
.wall p { flex: 1 1 240px; font-size: 14px; line-height: 1.45; }
.heaters { display: flex; align-items: center; gap: 10px; background: var(--red-soft); border: 2px solid var(--red-line); border-radius: 16px; padding: 12px 14px; color: var(--red); font-size: 16px; font-weight: 700; line-height: 1.35; }
.heaters svg { flex: none; }

/* ---------- the earlier sections kept in the other tabs: weather week, events, cleaning, fixes ---------- */
.wx-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(120px, 100%), 1fr)); gap: 8px; }
.wx { border-radius: 14px; padding: 12px 14px; background: var(--ground); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; border: 2px solid transparent; }
.wx.today { background: var(--sky); border-color: var(--ink); }
.wx .day { font-size: 14px; font-weight: 700; }
.wx .temp { font-size: 16px; }
.wx .note.down { color: var(--amber); font-weight: 600; }
.wx .note.cold { color: var(--accent); font-weight: 600; }
.list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.list li { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.list .grow { flex: 1 1 180px; min-width: 0; display: flex; flex-direction: column; gap: 2px; font-size: 15px; }
.list .grow small { font-size: 13px; color: var(--muted); }
.list .title { font-size: 16px; font-weight: 600; }
.datebox { flex: none; width: 52px; text-align: center; border-radius: 12px; background: var(--ground); padding: 6px 0; display: flex; flex-direction: column; }
.datebox.holiday { background: var(--sky); }
.datebox span { font-size: 11px; font-weight: 700; color: var(--sky-ink); }
.datebox b { font-family: var(--head); font-size: 20px; line-height: 1.1; }
.datebox b.tbd { font-size: 14px; line-height: 1.5; }
.chip { flex: none; font-size: 13px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--ground); color: var(--muted); }
.chip.up, .chip.done { background: var(--green-bg); color: var(--green); }
.chip.down, .chip.due { background: var(--amber-bg); color: var(--amber); }
.chip.overdue { background: var(--red-bg); color: var(--red-ink); }
.chip.kind { background: var(--sky); color: var(--accent); font-size: 12px; padding: 2px 8px; margin-left: 4px; }
.prio { width: 10px; height: 10px; border-radius: 50%; flex: none; background: #8792A0; }
.prio.high { background: var(--red); }
.prio.normal { background: var(--accent); }
.age { font-size: 13px; font-weight: 600; color: var(--muted); }
.age.old { color: var(--red-ink); }
input[type=checkbox] { width: 22px; height: 22px; margin: 0; accent-color: var(--ink); flex: none; }
.callout { background: var(--sky); border-radius: 12px; padding: 12px 14px; font-size: 15px; line-height: 1.45; }
.callout.amber { background: var(--amber-bg); }
.callout .callout-title { display: block; font-size: 14px; font-weight: 700; color: var(--amber); margin-bottom: 4px; }
.form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(180px, 100%), 1fr)); gap: 10px; align-items: end; background: var(--ground); border-radius: 12px; padding: 14px; }
.form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); }
.form input, .form select { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 10px; min-height: 44px; background: #fff; }
details.add summary { cursor: pointer; color: var(--accent); font-weight: 600; font-size: 15px; min-height: 44px; display: flex; align-items: center; }
details.add[open] summary { margin-bottom: 8px; }

/* ---------- sign-in page ---------- */
.login-page { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login-card { width: 100%; max-width: 400px; gap: 18px; }
.login-card h1 { font-size: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); }
.field input { font: inherit; font-size: 16px; color: var(--ink); border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 12px; min-height: 48px; background: #fff; }
.field input:focus, .form input:focus, .form select:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.pin-card { max-width: 380px; align-items: stretch; }
.pin-dots { display: flex; justify-content: center; gap: 14px; padding: 6px 0; }
.pin-dots span { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #9AA6B2; }
.pin-dots span.on { background: var(--ink); border-color: var(--ink); }
.pin-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pin-pad button { min-height: 68px; font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--ink); background: var(--ground); border: 1px solid var(--line); border-radius: 16px; cursor: pointer; touch-action: manipulation; }
.pin-pad button.word { font-size: 16px; font-weight: 600; color: var(--soft); background: #fff; }
.pin-pad button:active { background: var(--sky); }
.pin-pad button:disabled { opacity: 0.45; cursor: default; }
.pin-card .linkbtn { align-self: center; }

/* ---- D24: undo and remove, urgent rows, recently fixed, dozens, and the bottom of the page ---- */
.btn.undo { background: var(--amber-bg); color: var(--amber); font-size: 14px; font-weight: 700; border: 2px solid #E5C766; }
.btn.undo .count { min-width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-variant-numeric: tabular-nums; }
.links { display: flex; flex-wrap: wrap; gap: 0 18px; align-items: center; }
.linkbtn.danger { color: var(--red-ink); }
.launch-head .linkbtn, .step .linkbtn { flex: none; min-height: 44px; }
/* Urgent: a red bar and a tinted row, so it can't be missed */
.item.urgent { background: var(--red-soft); border-top-color: transparent; border-left: 5px solid var(--red); border-radius: 0 12px 12px 0; padding: 12px 12px 12px 12px; margin: 4px 0; }
.item.urgent + .item { border-top-color: transparent; }
.item.urgent .item-main strong { color: var(--red-ink); }
.tag.out { color: #fff; background: var(--red); }
.tile .sub.doz { color: var(--muted); font-weight: 600; }

/* The owners' empanada inventory (D28): a small table — trays, units, total — one column per flavor */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.inv-wrap { overflow-x: auto; }
.inv { width: 100%; border-collapse: separate; border-spacing: 6px 6px; font-variant-numeric: tabular-nums; }
.inv th { font-size: 13px; font-weight: 700; color: var(--soft); text-align: center; white-space: nowrap; }
.inv th[scope="row"] { text-align: left; padding-right: 6px; }
.inv td { text-align: center; font-size: 16px; min-width: 64px; }
.inv input { width: 100%; min-width: 56px; min-height: 48px; font: inherit; font-family: var(--head); font-size: 20px; font-weight: 800; text-align: center; color: var(--ink); background: var(--ground); border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 4px; }
.inv input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.inv-total td b { font-family: var(--head); font-size: 20px; font-weight: 800; }
.inv-total th, .inv-total td { border-top: 2px solid var(--ink); padding-top: 6px; }
.inv-check { background: var(--green-bg); border-radius: 16px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.inv-check.bad { background: var(--red-soft); border: 2px solid var(--red-line); }
.inv-check strong { font-family: var(--head); font-size: 16px; font-weight: 800; }

/* "We're out of ...": slide the knob to the end to send it */
.slide { --x: 0px; --p: 0; position: relative; height: 68px; border-radius: 999px; background: var(--red-bg); border: 2px solid var(--red-line); overflow: hidden; display: flex; align-items: center; justify-content: center; user-select: none; -webkit-user-select: none; touch-action: pan-y; }
.slide-fill { position: absolute; inset: 0 auto 0 0; width: calc(var(--x) + 62px); background: var(--red); border-radius: 999px; opacity: calc(var(--p) * 0.9 + 0.1); }
.slide-text { position: relative; padding: 0 16px 0 76px; font-size: 16px; font-weight: 600; color: var(--red-ink); text-align: center; line-height: 1.25; opacity: calc(1 - var(--p) * 1.6); }
.slide-text b { font-weight: 800; }
.slide-knob { position: absolute; left: 4px; top: 4px; width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--red); color: #fff; display: flex; align-items: center; justify-content: center; cursor: grab; touch-action: none; transform: translateX(var(--x)); box-shadow: 0 2px 6px rgba(140,29,20,0.35); }
.slide:not(.dragging) .slide-knob, .slide:not(.dragging) .slide-fill { transition: transform .25s ease, width .25s ease; }
.slide.dragging .slide-knob { cursor: grabbing; }
.slide-knob:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.slide.sent { background: var(--green-bg); border-color: var(--green); }
.slide.sent .slide-fill, .slide.sent .slide-knob { background: var(--green); }
.out-sent { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; background: var(--red); color: #fff; border-radius: 20px; padding: 14px 16px; }
.out-sent > div { flex: 1 1 220px; display: flex; flex-direction: column; gap: 2px; }
.out-sent strong { font-family: var(--head); font-size: 17px; font-weight: 800; }
.out-sent small { font-size: 13px; line-height: 1.4; color: #FCE4E1; }
.out-check { width: 40px; height: 40px; border-radius: 50%; background: #fff; color: var(--red); display: flex; align-items: center; justify-content: center; flex: none; }

/* The check mark that pops up when something was sent */
.toast { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; padding: 24px; background: rgba(17,20,24,0.28); z-index: 20; }
.toast-box { background: #fff; border-radius: 24px; box-shadow: 0 16px 48px rgba(17,20,24,0.25); padding: 28px 32px; max-width: 360px; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; animation: toast-in .22s ease-out; }
.toast-box strong { font-family: var(--head); font-size: 24px; font-weight: 800; }
.toast-box > span:last-child { font-size: 15px; line-height: 1.4; color: var(--soft); }
.toast-check { width: 72px; height: 72px; border-radius: 50%; background: var(--green); color: #fff; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.toast-check svg { width: 40px; height: 40px; }
/* The lock screen on a phone or computer after 5 minutes away (D44). While it shows, nothing of the page is visible. */
body.locked main, body.locked footer { visibility: hidden; }
.lock-screen { position: fixed; inset: 0; z-index: 50; background: var(--ground); display: flex; align-items: center; justify-content: center; padding: 16px; }
.lock-box { background: #fff; border-radius: 24px; box-shadow: 0 16px 48px rgba(17,20,24,0.15); padding: 28px 24px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; align-items: stretch; text-align: center; }
.lock-box .logo { align-self: center; }
.lock-box strong { font-family: var(--head); font-size: 24px; font-weight: 800; }
.lock-box > span:not(.pw-wrap) { font-size: 15px; line-height: 1.4; color: var(--soft); }
.lock-box input { min-height: 52px; font: inherit; font-size: 22px; text-align: center; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; width: 100%; }
@keyframes toast-in { from { transform: scale(.85); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .toast-box { animation: none; } .slide:not(.dragging) .slide-knob, .slide:not(.dragging) .slide-fill { transition: none; } }
.bagel-day { margin: 6px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-family: var(--head); font-size: 17px; font-weight: 800; }   /* Saturday: one heading per day (D25) */
/* Inventory card, made plainer (Pablo, Nov 18 2026): three titled parts, one question, one button */
.inv-step { display: flex; flex-direction: column; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.inv-step h3 { margin: 0; font-family: var(--head); font-size: 17px; font-weight: 800; }
.inv-q { font-size: 14px; font-weight: 700; color: var(--soft); }
.seg.inv-kind { max-width: 520px; }
.seg.inv-kind button { min-height: 48px; font-size: 15px; }
.inv-help { font-size: 15px; line-height: 1.45; font-weight: 600; color: var(--accent); background: var(--sky); border-radius: 12px; padding: 10px 12px; }
.btn.wide { width: 100%; min-height: 52px; font-size: 16px; font-weight: 700; }
.inv-after { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; background: var(--tan); border-radius: 14px; padding: 12px 14px; color: var(--tan-ink); }
.inv-after strong { font-family: var(--head); font-size: 16px; font-weight: 800; color: var(--ink); }
.inv-after > span { font-size: 13px; }
.inv-after > div { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 15px; }
.inv-after b { font-family: var(--head); font-size: 20px; font-weight: 800; color: var(--ink); }
/* Inventory wording pass (Pablo, Nov 18): dates everywhere; the "found" part smaller and in another color */
.inv-last { font-size: 16px; font-weight: 600; background: var(--ground); border-radius: 12px; padding: 10px 12px; }
.inv-last b { font-family: var(--head); font-weight: 800; }
.inv th[scope="row"] { white-space: normal; line-height: 1.3; }
.inv-help.found { color: var(--tan-ink); background: var(--tan); font-size: 14px; }
.inv.small input { min-height: 40px; font-size: 17px; background: #FBF6EF; border-color: var(--gold); }
.inv.small .inv-total td b { font-size: 17px; }
.inv-miss { font-size: 14px; font-weight: 700; border-radius: 10px; padding: 8px 10px; }
.inv-miss.bad { color: var(--red-ink); background: var(--red-bg); }
.inv-miss.good { color: var(--green); background: var(--green-bg); }

/* Text alerts on the Settings page (D34) */
#card-alerts code { font: 600 0.92em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line); border-radius: 5px; padding: 1px 5px; white-space: nowrap; }
#card-alerts h3.sub { font-family: var(--head); font-size: 15px; font-weight: 800; margin: 8px 0 0; }

/* Where events come from, on the Settings page (D38) */
#card-sources .source { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
#card-sources h3.sub { font-family: var(--head); font-size: 16px; font-weight: 800; margin: 0; }
#card-sources code { font: 600 0.9em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--line); border-radius: 5px; padding: 1px 5px; overflow-wrap: anywhere; }
#card-sources .rules { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.45; }

/* "Show" next to a password (D39) */
.pw-wrap { display: flex; gap: 8px; align-items: stretch; }
.pw-wrap input { flex: 1; min-width: 0; }
.pw-toggle { flex: none; min-width: 64px; min-height: 44px; font: inherit; font-size: 14px; font-weight: 700; color: var(--accent);
  background: transparent; border: 1px solid #C3CCD5; border-radius: 12px; padding: 0 12px; cursor: pointer; }
.pw-toggle:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
#card-security h3.sub { font-family: var(--head); font-size: 15px; font-weight: 800; margin: 8px 0 0; }
.warn-text { color: var(--red-ink, #9B2C1F); font-weight: 600; }
