/* ==========================================================================
   TPSC Luxe — base.css
   Tokens (light), reset, type scale, layout, buttons, forms, surfaces,
   tags, tables, tabs/chips, KPIs, overlays, accordion, stepper, autocomplete,
   pinpad, admin shell, print. FROZEN after Phase 0 — screens use their own
   prefixed files (site.css .st-, treatments.css .tr-, ...).
   No emoji anywhere; every glyph is a stroke SVG from U.icon().
   ========================================================================== */

/* --------------------------------------------------------------- tokens */
:root { --yellow:#fee85b; --yellow-deep:#f5d916; --aqua:#5bfee8; --aqua-deep:#19d9bd; --aqua-text:#0f766e;
  --aqua-tint:#eefdfa; --aqua-tint-2:#dcfbf4; --yellow-tint:#fffbe0; --ink:#07333e; --ink-soft:#3e5f68;
  --ink-faint:#59757e; --line:#d9efe9; --bg:#ffffff; --surface:#ffffff; --header-bg:rgba(255,255,255,.9);
  --brand-dark:#07333e; --ok:#1f8a5b; --warn:#b7791f; --bad:#c2410c; --ok-tint:#e6f6ee; --warn-tint:#fdf3e1; --bad-tint:#fdeae1;
  --grad-teal:linear-gradient(135deg,#08554c,#1db89e);
  --shadow-sm:0 2px 10px rgba(7,51,62,.07); --shadow-md:0 10px 34px rgba(7,51,62,.12); --shadow-lg:0 24px 60px rgba(7,51,62,.16);
  --radius:18px; --radius-sm:10px; --pill:999px;
  --font-display:'Montserrat',system-ui,sans-serif; --font-body:'Montserrat',system-ui,sans-serif; --font-script:'Allura',cursive;
  --display-weight:700; --display-tracking:-.018em;
  --gutter:40px; --shell:1180px; --header-h:76px; --tabbar-h:64px; --tap:48px; --ease:cubic-bezier(.22,.61,.36,1); }

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  font-family: var(--font-body); font-size: 16.5px; line-height: 1.6;
  color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  transition: background .3s ease, color .3s ease;
}
@media (max-width: 760px) { body { font-size: 15.5px; } }
h1, h2, h3, h4, h5 { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.15; margin: 0 0 .45em; letter-spacing: var(--display-tracking); }
h1 { font-size: 2.4rem; } h2 { font-size: 1.7rem; } h3 { font-size: 1.25rem; } h4 { font-size: 1.05rem; }
p { margin: 0 0 14px; } p:last-child { margin-bottom: 0; }
ul, ol { margin: 0 0 14px; padding-left: 22px; }
img, svg, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
hr, .hairline { border: 0; border-top: 1px solid var(--line); margin: 20px 0; }
strong, b { font-weight: 700; }
small { font-size: .85em; }
::selection { background: var(--aqua); color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--aqua-text); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.no-scroll { overflow: hidden; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }
.hide-scrollbar::-webkit-scrollbar { display: none; }

/* ----------------------------------------------------------------- type */
.display-xl, .display-l, .display-m, .display-s { font-family: var(--font-display); font-weight: var(--display-weight); line-height: 1.12; letter-spacing: var(--display-tracking); }
/* Big Montserrat wants a touch more line-height than a serif did, or the
   descenders of one line sit on the caps of the next. */
.display-xl { line-height: 1.08; }
.display-xl { font-size: clamp(2.3rem, 5.5vw, 3.2rem); }
.display-l  { font-size: clamp(1.9rem, 4vw, 2.4rem); }
.display-m  { font-size: 1.7rem; }
.display-s  { font-size: 1.25rem; }
.script { font-family: var(--font-script); font-weight: 400; }
.serif { font-family: var(--font-display); }
.eyebrow {
  display: inline-flex; align-items: center;
  font-size: .74rem; letter-spacing: .18em; text-transform: uppercase;
  font-weight: 700; color: var(--aqua-text); line-height: 1.4;
}
.eyebrow.bare::before { display: none; }
.lede { font-size: 1.1rem; line-height: 1.65; color: var(--ink-soft); max-width: 62ch; }
.small { font-size: .9rem; }
.tiny  { font-size: .78rem; letter-spacing: .02em; }
.muted { color: var(--ink-soft); }
.faint { color: var(--ink-faint); }
.tabular { font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.right { text-align: right; }
.upper { text-transform: uppercase; letter-spacing: .1em; }
.bold { font-weight: 700; }
.ok-text { color: var(--ok); } .warn-text { color: var(--warn); } .bad-text { color: var(--bad); }
.aqua-text { color: var(--aqua-text); }

/* --------------------------------------------------------------- layout */
.shell { width: 92%; max-width: var(--shell); margin: 0 auto; }
.shell-narrow { width: 92%; max-width: 820px; margin: 0 auto; }
.section { padding: 72px 0; }
.section-tight { padding: 40px 0; }
@media (max-width: 760px) { .section { padding: 48px 0; } .section-tight { padding: 28px 0; } }
.stack > * + * { margin-top: var(--s, 14px); }
.row { display: flex; gap: 12px; align-items: center; }
.row-between { display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.row-wrap { flex-wrap: wrap; }
.row-top { align-items: flex-start; }
.grow { flex: 1 1 auto; min-width: 0; }
.gap-s { gap: 6px; } .gap-l { gap: 20px; }
.grid { display: grid; gap: 24px; }
.grid > *, .row > *, .row-between > * { min-width: 0; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1100px) { .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 960px)  { .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px)  { .grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; gap: 16px; } }
.band { background: var(--grad-teal); color: #fff; }
.band .muted, .band .lede { color: rgba(255,255,255,.78); }
.band .eyebrow { color: rgba(255,255,255,.85); }

/* -------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; min-width: 0; max-width: 100%; padding: 10px 26px; border-radius: var(--pill);
  border: 1px solid var(--ink); background: var(--ink); color: var(--bg);
  font-family: var(--font-body); font-weight: 700; font-size: .92rem; line-height: 1.2;
  white-space: normal; overflow-wrap: anywhere; text-align: center; text-decoration: none; cursor: pointer;
  transition: transform .2s var(--ease), background .2s, color .2s, border-color .2s, box-shadow .2s, filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: none; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-primary { background: var(--yellow); border-color: var(--yellow); color: var(--brand-dark); }
.btn-primary:hover { background: var(--yellow-deep); border-color: var(--yellow-deep); }
.btn-aqua { background: var(--aqua); border-color: var(--aqua); color: var(--brand-dark); box-shadow: 0 8px 22px rgba(25,217,189,.22); }
.btn-aqua:hover { background: var(--aqua-deep); border-color: var(--aqua-deep); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.btn-outline { background: transparent; border: 2px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--bg); }
.btn-light { background: transparent; border-color: rgba(255,255,255,.72); color: #fff; }
.btn-light:hover { background: #fff; border-color: #fff; color: var(--brand-dark); }
.btn-quiet { background: transparent; border-color: var(--line); color: var(--ink); }
.btn-quiet:hover { background: var(--aqua-tint); border-color: var(--aqua-deep); }
.btn-danger { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-sm { min-height: 36px; padding: 8px 14px; font-size: .8rem; gap: 6px; }
.btn-sm svg { width: 16px; height: 16px; }
.btn-lg { min-height: 54px; padding: 14px 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.iconbtn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: inherit;
  cursor: pointer; position: relative; transition: background .18s, color .18s;
}
.iconbtn:hover { background: var(--aqua-tint); }
.iconbtn svg { width: 20px; height: 20px; }
.iconbtn.solid { background: var(--ink); color: var(--bg); }
.iconbtn.yellow { background: var(--yellow); color: var(--brand-dark); }
.iconbtn.aqua { background: var(--aqua); color: var(--brand-dark); }
.iconbtn .pip {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--yellow); color: var(--brand-dark);
  font-size: 10.5px; font-weight: 800; line-height: 18px; text-align: center;
}
.textlink { cursor: pointer; color: var(--aqua-text); font-weight: 600; border-bottom: 1px solid transparent; padding-bottom: 1px; transition: border-color .18s; }
.textlink:hover { border-color: currentColor; }
svg.ico { width: 18px; height: 18px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- forms */
.field { display: block; min-width: 0; }
.field + .field { margin-top: 14px; }
.fieldset .field + .field, .grid .field + .field { margin-top: 0; }
.label, .field > .label {
  display: block; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--ink-faint); margin-bottom: 6px;
}
.input, .select, .textarea {
  display: block; width: 100%; min-width: 0; max-width: 100%; min-height: 46px; padding: 10px 14px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink);
  font-size: 16px; line-height: 1.4; transition: border-color .18s, box-shadow .18s;
  appearance: none; -webkit-appearance: none;
}
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--aqua-deep); box-shadow: 0 0 0 3px var(--aqua-tint-2); }
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); opacity: .8; }
.input:disabled, .select:disabled, .textarea:disabled { opacity: .55; background: var(--aqua-tint); cursor: not-allowed; }
.input[type="date"], .input[type="time"] { min-width: 0; }
.textarea { min-height: 108px; resize: vertical; line-height: 1.55; }
.select {
  cursor: pointer; padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2359757e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 18px;
}
.input.err, .select.err, .textarea.err { border-color: var(--bad); }
.err-msg { color: var(--bad); font-size: .82rem; margin-top: 5px; }
.check { display: flex; gap: 11px; align-items: flex-start; cursor: pointer; font-size: .95rem; line-height: 1.5; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--aqua-deep); flex: none; }
.fieldset { display: grid; gap: 14px; }
.fieldset-2 { grid-template-columns: 1fr 1fr; }
.fieldset-3 { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 560px) { .fieldset-2, .fieldset-3 { grid-template-columns: 1fr; } }
.inputgroup { display: flex; gap: 8px; align-items: center; }
.inputgroup .input { flex: 1; }
.searchbox { position: relative; }
.searchbox .input { padding-left: 42px; border-radius: var(--pill); }
.searchbox > svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); pointer-events: none; }

/* ------------------------------------------------------------- surfaces */
.card { background: var(--surface); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); }
.card-line { background: var(--surface); border-radius: var(--radius); padding: 22px; border: 1px solid var(--line); box-shadow: none; }
.card-hover { transition: transform .25s var(--ease), box-shadow .25s var(--ease); }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.panel { background: var(--aqua-tint); border-radius: var(--radius); padding: 22px; }
.panel-yellow { background: var(--yellow-tint); border-radius: var(--radius); padding: 22px; }
.panel-dark { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 22px; }
.panel-dark .muted { color: rgba(255,255,255,.72); }
.card > .display-s:first-child, .card-line > .display-s:first-child, .panel > .display-s:first-child { margin-bottom: 10px; }
.card-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.media { overflow: hidden; border-radius: var(--radius); background: var(--aqua-tint-2); position: relative; }
.media img, .media > div, .media > svg { width: 100%; height: 100%; object-fit: cover; }
.media-4x3 { aspect-ratio: 4 / 3; } .media-1x1 { aspect-ratio: 1; } .media-16x9 { aspect-ratio: 16 / 9; }
.avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex: none;
  background: var(--aqua-tint-2); color: var(--aqua-text); font-weight: 700; font-size: .85rem; text-transform: uppercase; }
.avatar.lg { width: 56px; height: 56px; font-size: 1.05rem; }
.avatar.patient-avatar svg { stroke-width: 1.7; }
.dot-line { display: inline-flex; align-items: center; gap: 8px; }
.dot-line::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

/* ----------------------------------------------------------------- tags */
.tag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px;
  border-radius: var(--pill); font-size: .7rem; letter-spacing: .08em; text-transform: uppercase;
  font-weight: 700; background: var(--aqua-tint-2); color: var(--ink-soft); white-space: nowrap; line-height: 1.5;
}
.tag svg { width: 13px; height: 13px; }
.tag-ok     { background: var(--ok-tint); color: var(--ok); }
.tag-warn   { background: var(--warn-tint); color: var(--warn); }
.tag-bad    { background: var(--bad-tint); color: var(--bad); }
.tag-dark   { background: var(--ink); color: var(--bg); }
.tag-yellow { background: var(--yellow); color: var(--brand-dark); }
.tag-aqua   { background: var(--aqua); color: var(--brand-dark); }
.tag-new    { background: var(--yellow); color: var(--brand-dark); font-weight: 800; letter-spacing: .14em; padding: 4px 10px; }
.tag-quiet  { background: transparent; border: 1px solid var(--line); color: var(--ink-faint); }
.tag.lg { font-size: .8rem; padding: 6px 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }

/* --------------------------------------------------------------- tables */
.table-wrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: .92rem; min-width: 620px; }
table.tbl th {
  text-align: left; font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700;
  color: var(--ink-faint); padding: 13px 15px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface);
}
table.tbl td { padding: 12px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.tbl tr:last-child td { border-bottom: 0; }
table.tbl tbody tr:hover { background: var(--aqua-tint); }
table.tbl td.num, table.tbl th.num { text-align: right; font-variant-numeric: tabular-nums; }
table.tbl tfoot td { font-weight: 700; background: var(--aqua-tint); }
table.tbl.compact { min-width: 0; }
table.tbl.compact td, table.tbl.compact th { padding: 8px 10px; }
.clickable { cursor: pointer; }
.rowmedia { width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--aqua-tint-2); flex: none; }
.rowmedia img, .rowmedia > div { width: 100%; height: 100%; object-fit: cover; }
.dl { display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 6px 18px; font-size: .95rem; }
.dl > * { min-width: 0; overflow-wrap: anywhere; }
.dl dt { color: var(--ink-faint); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; padding-top: 3px; }
.dl dd { margin: 0; }
.totals { display: grid; gap: 8px; }
.totals .tr { display: flex; justify-content: space-between; gap: 14px; font-size: .95rem; font-variant-numeric: tabular-nums; }
.totals .tr.grand { font-size: 1.25rem; padding-top: 10px; border-top: 1px solid var(--line); font-family: var(--font-display); }
.totals .tr.disc { color: var(--ok); }

/* ---------------------------------------------------------- tabs, chips */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 6px; -ms-overflow-style: none; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button {
  flex: none; display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 16px;
  border: 0; border-radius: var(--pill); background: var(--aqua-tint); color: var(--ink-soft);
  font-weight: 700; font-size: .82rem; white-space: nowrap; transition: background .18s, color .18s;
}
.tabs button:hover { color: var(--ink); background: var(--aqua-tint-2); }
.tabs button.on { background: var(--ink); color: var(--bg); }
.tabs button .pip { background: var(--yellow); color: var(--brand-dark); border-radius: 9px; min-width: 18px; height: 18px; line-height: 18px; font-size: .68rem; padding: 0 5px; text-align: center; }
.tabs.underline { gap: 0; border-bottom: 1px solid var(--line); padding-bottom: 0; }
.tabs.underline button { background: none; border-radius: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 10px 14px; }
.tabs.underline button.on { background: none; color: var(--ink); border-color: var(--aqua-deep); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 14px;
  border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); color: var(--ink);
  font-weight: 600; font-size: .85rem; cursor: pointer; white-space: nowrap; transition: border-color .18s, background .18s, color .18s;
}
.chip:hover { border-color: var(--aqua-deep); }
.chip.on { background: var(--aqua); border-color: var(--aqua-deep); color: var(--brand-dark); }
.chip svg { width: 15px; height: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; -ms-overflow-style: none; scrollbar-width: none; }
.chips.scroll::-webkit-scrollbar { display: none; }
.seg { display: inline-flex; padding: 3px; border-radius: var(--pill); background: var(--aqua-tint); gap: 2px; }
.seg button { border: 0; background: none; border-radius: var(--pill); padding: 7px 14px; font-weight: 700; font-size: .8rem; color: var(--ink-soft); min-height: 34px; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ------------------------------------------------------ kpi, bar, spark */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; min-width: 0; }
.kpi .k { font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); }
.kpi .v { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; margin-top: 8px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .d { font-size: .8rem; color: var(--ink-faint); margin-top: 4px; }
.kpi.ok .v { color: var(--ok); } .kpi.warn .v { color: var(--warn); } .kpi.bad .v { color: var(--bad); } .kpi.aqua .v { color: var(--aqua-text); }
.kpi.solid { background: var(--brand-dark); color: #fff; border-color: transparent; }
.kpi.solid .k, .kpi.solid .d { color: rgba(255,255,255,.7); }
@media (max-width: 760px) { .kpi { padding: 14px 16px; } .kpi .v { font-size: 1.4rem; } }
@media (max-width: 480px) { .kpi .v { font-size: 1.3rem; } .kpis { gap: 10px; } }
.bar { height: 8px; background: var(--aqua-tint-2); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; background: var(--grad-teal); border-radius: 4px; transition: width .5s var(--ease); }
.bar.yellow > div { background: var(--yellow-deep); }
.bar.warn > div { background: var(--warn); }
.bar.bad > div { background: var(--bad); }
.bar.thin { height: 5px; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.spark > i { flex: 1; display: block; min-height: 2px; background: var(--aqua-tint-2); border-radius: 2px 2px 0 0; transition: height .4s var(--ease); }
.spark > i.hi { background: var(--aqua-deep); }
.spark > i.yellow { background: var(--yellow-deep); }
.spark > i.bad { background: var(--bad); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: .8rem; color: var(--ink-faint); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: middle; background: var(--aqua-deep); }

/* ---------------------------------------------------------------- empty */
.empty { text-align: center; padding: 56px 20px; color: var(--ink-faint); }
.empty svg { width: 36px; height: 36px; margin: 0 auto 12px; opacity: .55; }
.empty .display-s { color: var(--ink); }
.empty.compact { padding: 28px 16px; }

/* --------------------------------------------- scrim, drawer, modal, toast */
.scrim { position: fixed; inset: 0; z-index: 90; background: rgba(4,22,28,.55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s var(--ease); }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 91; width: min(520px, 100%);
  background: var(--surface); color: var(--ink); display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg); animation: slideIn .34s var(--ease);
}
@media (max-width: 700px) { .drawer { width: 100%; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 22px; border-bottom: 1px solid var(--line); flex: none; }
.drawer-head .display-s { margin: 0; }
.drawer-body { flex: 1; overflow-y: auto; padding: 22px; -webkit-overflow-scrolling: touch; }
.drawer-foot { flex: none; border-top: 1px solid var(--line); padding: 14px 22px calc(14px + env(safe-area-inset-bottom)); background: var(--surface); display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.modal {
  position: fixed; z-index: 91; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: min(560px, calc(100% - 32px)); max-height: 88vh; overflow-y: auto;
  background: var(--surface); color: var(--ink); border-radius: var(--radius); padding: 26px 28px;
  box-shadow: var(--shadow-lg); animation: pop .26s var(--ease);
}
.modal.wide { width: min(860px, calc(100% - 32px)); }
.modal .display-s { margin: 0; }
@media (max-width: 560px) { .modal { padding: 20px; } }
#toast-root { position: fixed; z-index: 99; left: 50%; bottom: 26px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 9px; align-items: center; pointer-events: none; width: max-content; max-width: 92vw; }
.toast {
  background: var(--ink); color: var(--bg); padding: 12px 20px; border-radius: var(--pill);
  font-size: .9rem; font-weight: 600; box-shadow: var(--shadow-md); animation: fadeUp .3s var(--ease);
  max-width: 100%; text-align: center;
}
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
@media (max-width: 899px) { #toast-root { bottom: calc(var(--tabbar-h) + 18px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(9px); } }
@keyframes slideIn { from { transform: translateX(100%); } }
@keyframes pop { from { opacity: 0; transform: translate(-50%, -46%) scale(.97); } }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ------------------------------------------------------------ accordion */
.acc { border-top: 1px solid var(--line); }
.acc:last-of-type { border-bottom: 1px solid var(--line); }
.acc-head {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  padding: 16px 0; background: none; border: 0; cursor: pointer; text-align: left;
  font-weight: 600; font-size: 1rem; color: var(--ink);
}
.acc-head svg { flex: none; width: 24px; height: 24px; padding: 4px; border-radius: 50%; background: var(--aqua-tint); color: var(--aqua-text); transition: transform .28s var(--ease); }
.acc.open .acc-head svg { transform: rotate(45deg); }
.acc-body { display: none; padding: 0 0 20px; color: var(--ink-soft); line-height: 1.65; }
.acc.open .acc-body { display: block; }

/* -------------------------------------------------------------- stepper */
.stepper { display: flex; align-items: flex-start; margin: 4px 0; }
.stepper .step { flex: 1; position: relative; text-align: center; font-size: .72rem; font-weight: 600; color: var(--ink-faint); min-width: 0; padding: 0 4px; }
.stepper .step::before { content: ''; position: absolute; top: 6px; left: -50%; right: 50%; height: 2px; background: var(--line); }
.stepper .step:first-child::before { display: none; }
.stepper .step-dot { position: relative; z-index: 1; width: 14px; height: 14px; border-radius: 50%; margin: 0 auto 7px; background: var(--surface); border: 2px solid var(--line); display: block; }
.stepper .step-label { display: block; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; }
.stepper .step.done { color: var(--ink-soft); }
.stepper .step.done .step-dot { background: var(--aqua-deep); border-color: var(--aqua-deep); }
.stepper .step.done::before { background: var(--aqua-deep); }
.stepper .step.on { color: var(--ink); }
.stepper .step.on .step-dot { background: var(--yellow); border-color: var(--yellow-deep); box-shadow: 0 0 0 4px var(--yellow-tint); }
.stepper .step.on::before { background: var(--aqua-deep); }
.stepper .step.bad .step-dot { background: var(--bad); border-color: var(--bad); }
.stepper.vertical { flex-direction: column; align-items: stretch; }
.stepper.vertical .step { display: flex; align-items: center; gap: 12px; text-align: left; padding: 8px 0; }
.stepper.vertical .step::before { top: -10px; bottom: 18px; left: 6px; right: auto; width: 2px; height: auto; }
.stepper.vertical .step-dot { margin: 0; }
@media (max-width: 560px) { .stepper .step { font-size: .64rem; } }

/* --------------------------------------------------------- autocomplete */
.ac { position: relative; }
.ac-list {
  position: absolute; top: calc(100% + 6px); left: 0; right: 0; z-index: 45;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-md);
  max-height: 300px; overflow-y: auto; padding: 6px; animation: fadeUp .18s var(--ease);
}
.ac-list[hidden] { display: none; }
.ac-item {
  display: block; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px;
  background: none; color: var(--ink); cursor: pointer; font-size: .95rem; line-height: 1.35;
}
.ac-item .sub { display: block; font-size: .78rem; color: var(--ink-faint); margin-top: 1px; }
.ac-item:hover, .ac-item.on { background: var(--aqua-tint); }
.ac-item.on { box-shadow: inset 0 0 0 1px var(--aqua-deep); }
.ac-add { color: var(--aqua-text); font-weight: 700; margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 12px; display: flex; align-items: center; gap: 8px; }
.ac-add svg { width: 16px; height: 16px; }
.ac-empty { padding: 12px; font-size: .85rem; color: var(--ink-faint); text-align: center; }

/* --------------------------------------------------------------- pinpad */
.pinpad { display: grid; gap: 22px; justify-items: center; outline: none; }
.pinpad-dots { display: flex; gap: 14px; min-height: 16px; }
.pinpad-dots i { display: block; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--ink-faint); transition: background .15s, border-color .15s; }
.pinpad-dots i.full { background: var(--aqua-deep); border-color: var(--aqua-deep); }
.pinpad-keys { display: grid; grid-template-columns: repeat(3, 64px); gap: 12px; }
.pinpad-keys button {
  width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-family: var(--font-display); font-size: 1.5rem; display: inline-grid; place-items: center;
  transition: background .15s, transform .1s, border-color .15s;
}
.pinpad-keys button:hover { background: var(--aqua-tint); border-color: var(--aqua-deep); }
.pinpad-keys button:active { transform: scale(.95); background: var(--aqua); color: var(--brand-dark); }
.pinpad-keys button.fn { font-family: var(--font-body); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-faint); border-color: transparent; background: transparent; }
.pinpad-keys button.fn svg { width: 22px; height: 22px; }
.pinpad-keys button.blank { visibility: hidden; }
.pinpad.shake .pinpad-dots { animation: shake .4s var(--ease); }
.pinpad.shake .pinpad-dots i.full { background: var(--bad); border-color: var(--bad); }
.pinpad-hint { font-size: .82rem; color: var(--ink-faint); text-align: center; }

/* ---------------------------------------------------------- admin shell */
.admin { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: var(--bg); }
.admin-rail {
  position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 18px 12px 24px;
  background: var(--brand-dark); color: rgba(255,255,255,.82); display: flex; flex-direction: column; gap: 2px;
  -ms-overflow-style: none; scrollbar-width: none;
}
.admin-rail::-webkit-scrollbar { display: none; }
.admin-rail .brand { display: flex; align-items: center; gap: 10px; padding: 8px 12px 18px; color: #fff; font-family: var(--font-display); font-size: 1.05rem; letter-spacing: .12em; text-transform: uppercase; }
.admin-rail .brand b { font-family: var(--font-body); font-weight: 800; letter-spacing: 0; }
.admin-rail .brand b .tp { color: var(--yellow); } .admin-rail .brand b .sc { color: var(--aqua); }
.admin-rail .sep { font-size: .66rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 700; color: rgba(255,255,255,.42); padding: 18px 12px 6px; }
.admin-rail .sep:first-child { padding-top: 4px; }
.admin-rail button, .admin-rail a.navbtn {
  position: relative; display: flex; align-items: center; gap: 11px; width: 100%; text-align: left;
  background: none; border: 0; color: inherit; padding: 10px 12px; border-radius: 10px;
  font-size: .92rem; font-weight: 500; cursor: pointer; transition: background .15s, color .15s; min-height: 42px;
}
.admin-rail button:hover { background: rgba(255,255,255,.08); color: #fff; }
.admin-rail button.on { background: rgba(255,255,255,.12); color: #fff; font-weight: 700; }
.admin-rail button.on::before { content: ''; position: absolute; left: 0; top: 9px; bottom: 9px; width: 3px; border-radius: 2px; background: var(--yellow); }
.admin-rail button svg { width: 19px; height: 19px; flex: none; opacity: .85; }
.admin-rail button.on svg { opacity: 1; color: var(--aqua); }
.admin-rail button .pip { margin-left: auto; background: var(--yellow); color: var(--brand-dark); border-radius: 9px; min-width: 18px; height: 18px; line-height: 18px; font-size: .68rem; font-weight: 800; padding: 0 5px; text-align: center; }
.admin-rail .rail-foot { margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); font-size: .8rem; color: rgba(255,255,255,.6); }
.admin-rail .rail-foot .who { color: #fff; font-weight: 600; font-size: .88rem; }
.admin-body { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.admin-topbar {
  position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 28px; background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); min-height: 60px;
}
.admin-topbar .who { display: flex; align-items: center; gap: 10px; font-size: .88rem; color: var(--ink-soft); }
.admin-topbar .who b { color: var(--ink); }
.admin-main { flex: 1; padding: 28px; min-width: 0; }
.admin-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.admin-head .display-m, .admin-head .display-l { margin: 0; }
.admin-head .sub { color: var(--ink-faint); font-size: .92rem; margin-top: 4px; }
.admin-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.admin-section { margin-bottom: 26px; }
.admin-section > .display-s { margin-bottom: 12px; }
.admin-tabbar {
  display: none; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
  padding: 0 4px env(safe-area-inset-bottom); background: var(--header-bg); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); align-items: stretch; justify-content: space-around;
}
.admin-tabbar button {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  min-height: var(--tabbar-h); padding: 0 2px; border: 0; background: none; color: var(--ink-faint);
  font-size: .64rem; font-weight: 700; letter-spacing: .02em; white-space: nowrap; position: relative;
}
.admin-tabbar button svg { width: 22px; height: 22px; }
.admin-tabbar button.on { color: var(--aqua-text); }
.admin-tabbar button.on::after { content: ''; position: absolute; top: 0; left: 22%; right: 22%; height: 3px; border-radius: 0 0 3px 3px; background: var(--aqua-deep); }
.admin-tabbar button .pip { position: absolute; top: 8px; left: calc(50% + 6px); background: var(--yellow); color: var(--brand-dark); border-radius: 9px; min-width: 17px; height: 17px; line-height: 17px; font-size: .62rem; padding: 0 4px; text-align: center; }
.admin-sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 92; background: var(--surface); border-radius: 24px 24px 0 0; padding: 12px 18px calc(20px + env(safe-area-inset-bottom)); box-shadow: var(--shadow-lg); animation: sheetUp .3s var(--ease); }
.admin-sheet .grab { width: 44px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto 14px; }
.admin-sheet button { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; border: 0; background: none; padding: 12px 8px; border-radius: 10px; font-size: .95rem; font-weight: 600; color: var(--ink); min-height: 48px; }
.admin-sheet button:hover, .admin-sheet button.on { background: var(--aqua-tint); }
.admin-sheet button.on { color: var(--aqua-text); }
@keyframes sheetUp { from { transform: translateY(100%); } }
.gate { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.gate-card { width: min(520px, 100%); background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-md); padding: 32px 28px; text-align: center; }
.gate-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin: 20px 0; }
.gate-tiles button { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 10px; display: grid; justify-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: .88rem; min-height: 96px; transition: border-color .15s, background .15s; }
.gate-tiles button:hover, .gate-tiles button.on { border-color: var(--aqua-deep); background: var(--aqua-tint); }
.gate-tiles button .role { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 700; }
@media (max-width: 899px) {
  .admin { grid-template-columns: 1fr; }
  .admin-rail { display: none; }
  .admin-tabbar { display: flex; }
  .admin-topbar { padding: 8px 16px; }
  .admin-main { padding: 16px; padding-bottom: calc(var(--tabbar-h) + 28px); }
  .admin-head { margin-bottom: 16px; }
  .gate { min-height: calc(100vh - var(--tabbar-h)); }
}

/* ------------------------------------------------ shared small components */
/* Brand mark: "TP" yellow + "SC" aqua in Montserrat 800, then LUXE in Marcellus. */
.logo { display: inline-flex; align-items: baseline; gap: 8px; text-decoration: none; color: inherit; white-space: nowrap; line-height: 1; }
.logo .mark { font-family: var(--font-body); font-weight: 800; font-size: 1.25rem; letter-spacing: .02em; }
.logo .mark .tp { color: var(--yellow); }
.logo .mark .sc { color: var(--aqua); }
.logo .luxe { font-family: var(--font-display); font-size: .82rem; letter-spacing: .28em; text-transform: uppercase; }
.logo.on-light .mark .tp { color: var(--yellow-deep); }
.logo.on-light .mark .sc { color: var(--aqua-deep); }
.logo.lg .mark { font-size: 1.7rem; } .logo.lg .luxe { font-size: 1rem; }

/* Inline notices (never toasts): stock low, unpaid balance, verify identity. */
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; background: var(--aqua-tint); color: var(--ink); font-size: .92rem; line-height: 1.5; border: 1px solid transparent; }
.notice svg { flex: none; margin-top: 2px; color: var(--aqua-text); }
.notice .display-s { font-size: 1.05rem; margin-bottom: 2px; }
.notice.ok { background: var(--ok-tint); } .notice.ok svg { color: var(--ok); }
.notice.warn { background: var(--warn-tint); } .notice.warn svg { color: var(--warn); }
.notice.bad { background: var(--bad-tint); } .notice.bad svg { color: var(--bad); }
.notice.yellow { background: var(--yellow-tint); border-color: var(--yellow-deep); } .notice.yellow svg { color: var(--brand-dark); }
.notice .grow { min-width: 0; }

/* Tappable list rows (mobile admin lists, settings menus). */
.list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.list-item { display: flex; align-items: center; gap: 14px; padding: 13px 16px; border-bottom: 1px solid var(--line); min-height: var(--tap); width: 100%; text-align: left; background: none; border-left: 0; border-right: 0; border-top: 0; color: inherit; }
.list-item:last-child { border-bottom: 0; }
.list-item.clickable:hover { background: var(--aqua-tint); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .sub { font-size: .82rem; color: var(--ink-faint); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .end { flex: none; display: flex; align-items: center; gap: 8px; font-variant-numeric: tabular-nums; }
.list-item > svg.chev { color: var(--ink-faint); flex: none; }

/* Timeline (visit history, movement log, audit). */
.timeline { display: grid; }
.tl { display: grid; grid-template-columns: 22px 1fr; gap: 12px; }
.tl-dot { display: grid; justify-items: center; }
.tl-dot i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); margin-top: 7px; display: block; flex: none; }
.tl.done .tl-dot i, .tl.ok .tl-dot i { background: var(--aqua-deep); }
.tl.on .tl-dot i { background: var(--yellow-deep); box-shadow: 0 0 0 3px var(--yellow-tint); }
.tl.bad .tl-dot i { background: var(--bad); }
.tl-dot::after { content: ''; width: 2px; flex: 1; background: var(--line); min-height: 16px; }
.tl:last-child .tl-dot::after { display: none; }
.tl-body { padding-bottom: 18px; min-width: 0; }
.tl-body .when { font-size: .78rem; color: var(--ink-faint); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* Quantity control (invoice lines, stock-in). */
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--pill); background: var(--surface); overflow: hidden; }
.qty button { width: 42px; height: 44px; background: none; border: 0; display: grid; place-items: center; color: var(--ink); }
.qty button:hover { background: var(--aqua-tint); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty input, .qty span { width: 52px; min-height: 0; height: 44px; text-align: center; border: 0; border-radius: 0; padding: 0; font-variant-numeric: tabular-nums; font-weight: 600; background: transparent; }
.qty input:focus { box-shadow: none; }

/* Amount emphasis and skeletons. */
.amount { font-family: var(--font-display); font-size: 1.6rem; font-variant-numeric: tabular-nums; line-height: 1.1; }
.amount.sm { font-size: 1.2rem; }
.skeleton { background: linear-gradient(90deg, var(--aqua-tint) 25%, var(--aqua-tint-2) 50%, var(--aqua-tint) 75%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; min-height: 1em; }
@keyframes shimmer { to { background-position: -200% 0; } }
.divider-label { display: flex; align-items: center; gap: 12px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: var(--ink-faint); }
.divider-label::before, .divider-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* Spacing and visibility utilities. */
.mt-0 { margin-top: 0 !important; } .mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; } .mt-32 { margin-top: 32px; } .mt-48 { margin-top: 48px; }
.mb-0 { margin-bottom: 0 !important; } .mb-8 { margin-bottom: 8px; } .mb-16 { margin-bottom: 16px; } .mb-24 { margin-bottom: 24px; } .mb-32 { margin-bottom: 32px; }
.p-0 { padding: 0 !important; } .w-full { width: 100%; } .hidden { display: none !important; }
.text-white { color: #fff; } .text-brand { color: var(--brand-dark); }
.mobile-only { display: none; } .desktop-only { display: initial; }
@media (max-width: 760px) { .mobile-only { display: initial; } .desktop-only { display: none !important; } }
.sticky-top { position: sticky; top: calc(var(--header-h) + 12px); }
@media (max-width: 899px) { .sticky-top { position: static; } }


/* ------------------------------------------------------------ print mode */
body.print-mode { background: #fff; color: #000; }
body.print-mode #app { padding: 0; }
body.print-mode .no-print { display: none !important; }
.print-actions { display: flex; gap: 8px; justify-content: center; padding: 16px; }
@media print {
  #drawer-root, #modal-root, #toast-root, .admin-rail, .admin-tabbar, .admin-topbar, .no-print { display: none !important; }
  body { background: #fff; color: #000; }
  .admin { grid-template-columns: 1fr; min-height: 0; }
  .admin-main { padding: 0; }
  .card, .card-line, .table-wrap, .kpi { box-shadow: none; border-color: #bbb; }
  a { color: inherit; }
  @page { margin: 12mm; }
}

/* --------------------------------------------------------- reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { color-scheme: light; scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}


/* ---------------------------------------------------------------------------
   Alignment guards found by tools/audit.mjs — each one is a place where a flex
   or grid child sized to its content and pushed its container wider.
   --------------------------------------------------------------------------- */
/* An SVG paints its stroke outside its viewport by default, so a 24px icon can
   measure 34px and quietly widen the row that holds it. */
svg.ico { overflow: hidden; }
/* The accordion's plus rotates to a cross when open, and a rotated square is
   wider than the one it started as. Give it that margin back rather than let it
   hang over the edge of the row. */
.acc-head { padding-right: 6px; }

/* A button normally holds its label on one line, but inside a narrow card on a
   phone that is what pushes the card off the screen. */
.btn.btn-wrap, .tr-card-foot .btn, .tr-pkg-foot .btn, .sh-card .btn {
  white-space: normal; padding-left: 14px; padding-right: 14px;
}
.acc-head { min-width: 0; }
.acc-head > * { min-width: 0; }
.acc-head span { overflow-wrap: anywhere; }
.admin-main, .admin-body, .admin > * { min-width: 0; }
.table-wrap { max-width: 100%; }
@media (max-width: 700px) {
  /* A thumb needs a target it can actually land on. */
  .textlink { display: inline-flex; align-items: center; min-height: 34px; }
  .iconbtn { min-width: 38px; min-height: 38px; }
}
@media (max-width: 900px) {
  /* The admin's bottom bar is fixed, so the last row of every table would sit
     underneath it unless the page reserves that height. */
  .admin-main { padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* A grid child defaults to its content width, so one unbreakable label can
   stretch the whole track past the viewport. Two guards for that, because the
   labels here are live text: the Messenger buttons carry the chat status, which
   is "Replies now" during clinic hours and "Replies Wednesday" outside them —
   long enough to overflow a phone, and only on some days. */
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
@media (max-width: 560px) {
  .btn-lg { white-space: normal; }
}
