/* The hub. Two looks from one sheet:
   .desk  a calm, neutral work tool. The gym's brand shows only in the sidebar block.
   .pub   what members see (join, sign, thanks). The gym's brand in full.
   --brand, --on-brand and --brand-font are set per gym in the page head. */
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Lato"; src: url("/fonts/lato-latin-900-normal.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-wdth-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow"; src: url("/fonts/barlow-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("/fonts/barlow-condensed-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Big Shoulders"; src: url("/fonts/big-shoulders-display-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap; }

:root {
  --ground: #F3F4F6; --surface: #FFFFFF; --side: #0D0F12; --soft: #F8F9FA;
  --ink: #0D0F12; --ink2: #2B3138; --muted: #5A636E; --line: #E3E6EA; --edge: #C9CED5;
  --good: #1B7F4F; --watch: #8A5A00; --stop: #B93221; --info: #2B55C8;
  --good-bg: #E6F4EC; --watch-bg: #FBF3DD; --stop-bg: #FCE9E6; --info-bg: #E8EEFC;
  --on-dark: #A7AEB8;
  --shadow: 0 1px 2px rgba(13,15,18,0.05), 0 12px 32px rgba(13,15,18,0.06);
  --head: "Lato", system-ui, sans-serif;
  --brand: #0D0F12; --on-brand: #FFFFFF; --brand-font: var(--head);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Lato", system-ui, sans-serif; font-size: 16px; line-height: 1.45; color: var(--ink); background: var(--ground); }
h1, h2, legend { font-family: var(--head); font-weight: 700; line-height: 1.05; margin: 0; }
h1 { font-size: 40px; margin: 0 0 6px; }
h2 { font-size: 24px; margin: 30px 0 10px; }
p { margin: 8px 0; }
a { color: var(--ink); text-underline-offset: 3px; }
a:hover { color: var(--info); }
code { font-size: 0.92em; background: var(--ground); padding: 1px 5px; border-radius: 4px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 18px 0; }
:focus-visible { outline: 3px solid var(--info); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 12px; top: 12px; z-index: 10; background: var(--surface); padding: 10px 14px; border-radius: 6px; }

/* words that used to be tiny mono caps are now plain small text */
.mono { font-size: 15px; font-variant-numeric: tabular-nums; }
.dim { color: var(--muted); }
.warn { color: var(--watch); font-weight: 600; }

/* ---------- desk shell ---------- */
.desk { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.side { display: flex; flex-direction: column; background: var(--side); border-right: 1px solid var(--line); position: sticky; top: 0; height: 100vh; }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--brand); color: var(--on-brand); text-decoration: none; }
.side-brand:hover { color: var(--on-brand); }
.side-brand img { width: 44px; height: 44px; border-radius: 6px; object-fit: cover; flex: none; background: #000; }
.side-brand b { display: block; font: 700 19px/1.1 var(--head); letter-spacing: 0.2px; }
.side-brand small { font-size: 13px; opacity: 0.92; }
.side-nav { display: flex; flex-direction: column; gap: 4px; padding: 16px 12px; }
.side a[href] { text-decoration: none; }
.side-nav a, .side-foot > a { display: flex; align-items: center; min-height: 52px; padding: 6px 14px; border-radius: 6px; font-weight: 500; color: var(--ink); }
.side-nav a:hover, .side-foot > a:hover { background: #EDF0F3; color: var(--ink); }
.side a[aria-current] { background: var(--surface); box-shadow: 0 0 0 1px var(--line); font-weight: 700; }
.side-foot { margin-top: auto; padding: 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.side-who { display: flex; justify-content: space-between; align-items: center; margin: 0; padding: 2px 14px; font-size: 14px; color: var(--muted); }
.page { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 16px; padding: 14px 40px; background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; }
.find { flex: 1; max-width: 620px; display: flex; align-items: center; gap: 10px; height: 48px; padding: 0 14px; margin: 0; border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); color: var(--muted); }
.find:focus-within { outline: 3px solid var(--info); outline-offset: 1px; }
.find label { display: flex; }
.find input { flex: 1; min-width: 0; border: 0; outline: 0; padding: 0; height: 44px; background: transparent; font: 500 16px "Lato", system-ui, sans-serif; color: var(--ink); }
.topbar .btn-solid { margin-left: auto; }
.subnav { display: flex; gap: 4px; padding: 0 32px; background: var(--surface); border-bottom: 1px solid var(--line); overflow-x: auto; }
.subnav a { padding: 12px 10px 10px; text-decoration: none; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.subnav a[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.desk main { padding: 28px 40px 72px; max-width: 1240px; width: 100%; }

/* ---------- buttons and fields ---------- */
button, .btn-solid, .btn-line { font: 600 15px "Lato", system-ui, sans-serif; display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 16px; border-radius: 6px; border: 1px solid var(--edge); background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; white-space: nowrap; }
button:hover, .btn-line:hover { border-color: var(--ink); color: var(--ink); }
.btn-solid { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-solid:hover { background: #2B333C; border-color: #2B333C; color: #FFFFFF; }
.btn-line.on { background: var(--ink); border-color: var(--ink); color: #FFFFFF; }
.btn-danger { color: var(--stop); border-color: #E8B4AE; }
.btn-text { min-height: 32px; padding: 0 4px; border: 0; background: none; color: var(--muted); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; }
.sm { min-height: 38px; padding: 0 12px; font-size: 14px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
label.check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-weight: 500; min-height: 32px; }
label.check input[type="checkbox"], label.check input[type="radio"] { flex: none; }
input, select, textarea { font: 500 16px "Lato", system-ui, sans-serif; color: var(--ink); background: var(--surface); border: 1px solid var(--edge); border-radius: 6px; padding: 0 12px; min-height: 44px; max-width: 100%; }
textarea { width: 100%; padding: 10px 12px; line-height: 1.5; }
input[type="checkbox"], input[type="radio"] { min-height: 0; width: 20px; height: 20px; padding: 0; accent-color: var(--ink); }
input[type="file"] { padding: 8px 12px; }
input[type="color"] { width: 56px; padding: 4px; }
.form-narrow { max-width: 440px; display: grid; gap: 16px; }
.grid label { min-width: 0; }
.grid input, .grid select, .form-narrow input, .form-narrow select { width: 100%; }
.grid input[type="checkbox"], .form-narrow input[type="color"] { width: auto; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
fieldset.person { border: 1px solid var(--line); border-radius: 8px; margin: 14px 0; padding: 14px 16px; }
legend { font-size: 18px; padding: 0 6px; }
.inline { display: inline-flex; gap: 8px; align-items: flex-end; margin: 0; flex-wrap: wrap; }
.link-out { width: 100%; font-size: 14px; background: var(--ground); border-style: dashed; }
.token { background: var(--ground); border: 1px dashed var(--edge); border-radius: 6px; padding: 12px; word-break: break-all; user-select: all; }

/* ---------- common pieces ---------- */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 8px; }
.bar h1 { margin: 0; }
.bar-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 20px; margin: 14px 0; }
.card > h2:first-child { margin-top: 0; }
.back { font-size: 15px; color: var(--muted); }
.lede { font-size: 17px; max-width: 70ch; }

.ring { display: inline-block; flex: none; width: 20px; height: 20px; border: 5px solid var(--muted); border-radius: 50%; }
.ring-good { border-color: var(--good); } .ring-watch { border-color: var(--watch); }
.ring-stop { border-color: var(--stop); } .ring-info { border-color: var(--info); } .ring-off { border-color: var(--edge); }

.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.chip::before { content: ""; width: 12px; height: 12px; border: 3px solid currentColor; border-radius: 50%; }
.chip-synced, .chip-joined { color: var(--good); }
.chip-dry-run, .chip-fob-pending, .chip-waitlist, .chip-contacted { color: var(--watch); }
.chip-error { color: var(--stop); }
.chip-new { color: var(--info); }

.flash { background: var(--good-bg); border-left: 4px solid var(--good); border-radius: 4px; padding: 12px 16px; font-weight: 500; }
.flash-err { background: var(--stop-bg); border-color: var(--stop); }
.flash-warn { background: var(--watch-bg); border-color: var(--watch); }

.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { display: grid; gap: 2px; padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; text-decoration: none; }
.stat b { font: 700 30px/1.05 var(--head); font-variant-numeric: tabular-nums; }
.stat .mono { color: var(--muted); font-size: 14px; }
a.stat:hover { border-color: var(--ink); color: var(--ink); }
.stat-on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.stat-warn b { color: var(--watch); }
.ok-note { color: var(--good); font-size: 14px; font-weight: 600; }

.rows { display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.row { display: grid; grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 1fr) minmax(0, 2fr); gap: 16px; align-items: center; min-height: 56px; padding: 10px 18px; border-top: 1px solid var(--line); text-decoration: none; }
.rows > .row:first-child, .card > .row:first-child { border-top: 0; }
.card > .row { padding-left: 0; padding-right: 0; }
.row:hover { background: #F5F7F9; color: var(--ink); }
.row-name { font-weight: 700; font-size: 17px; }
.row-plan { color: var(--muted); }
.row-people { color: var(--muted); font-size: 15px; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 14px 0; }

.person-row { display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line); }
.person-row:first-child { border-top: 0; }
.person-row b { font-size: 17px; }
.person-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.person-actions form { margin: 0; }
.log-row { display: grid; grid-template-columns: 150px 150px 150px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); }
.log-row:first-child { border-top: 0; }
.log-err { color: var(--stop); }
details.add-person summary { cursor: pointer; font-weight: 600; min-height: 32px; }
details.add-person[open] summary { margin-bottom: 14px; }

/* ---------- Today ---------- */
.today { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; }
.needs { list-style: none; margin: 18px 0 0; padding: 0; border-bottom: 1px solid var(--line); }
.needs li { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-top: 1px solid var(--line); }
.needs .ring { margin-top: 3px; }
.needs div { flex: 1; min-width: 0; }
.needs b { display: block; font-size: 18px; font-weight: 600; }
.needs span { color: var(--muted); display: block; max-width: 62ch; }
.rail { display: flex; flex-direction: column; gap: 28px; padding-top: 6px; }
.rail h2 { font: 600 16px "Lato", system-ui, sans-serif; color: var(--muted); margin: 0 0 4px; }
.big { font: 700 52px/1 var(--head); font-variant-numeric: tabular-nums; }
.bars { display: grid; gap: 9px; }
.bars div { display: grid; grid-template-columns: 150px 1fr 36px; gap: 10px; align-items: center; font-size: 15px; }
.bars i { height: 10px; background: #E3E8ED; border-radius: 2px; overflow: hidden; }
.bars i u { display: block; height: 10px; background: var(--ink); }
.bars b { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- a member's page ---------- */
.member { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 40px; }
.status3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 20px 0 6px; }
.status { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.status-label { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 600; }
.status strong { font: 700 28px/1.05 var(--head); }
.status p { margin: 0; color: var(--muted); font-size: 15px; }
.status form, .status .btn-line { margin-top: 6px; align-self: flex-start; }
.people { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line); }
.people li { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.people .who { flex: 1; min-width: 200px; }
.people .who b { font-size: 17px; }
.people .who small { font-size: 14px; color: var(--muted); font-weight: 500; }
.people .who div { color: var(--muted); font-size: 15px; }
.people form { margin: 0; display: flex; align-items: center; gap: 10px; }
.switch { min-height: 44px; padding: 0; border: 0; background: none; gap: 10px; font-weight: 500; color: var(--muted); }
.switch i { width: 52px; height: 30px; border-radius: 15px; background: var(--edge); padding: 3px; display: flex; }
.switch i::after { content: ""; width: 24px; height: 24px; border-radius: 50%; background: #FFFFFF; }
.switch[aria-pressed="true"] i { background: var(--good); justify-content: flex-end; }
.do { display: grid; gap: 8px; }
.do h2, .history h2 { font: 600 16px "Lato", system-ui, sans-serif; color: var(--muted); margin: 0 0 2px; }
.do form { margin: 0; display: grid; gap: 8px; }
.do .btn-line, .do button, .do select { width: 100%; justify-content: flex-start; }
.do details { border: 1px solid var(--edge); border-radius: 6px; background: var(--surface); }
.do summary { cursor: pointer; font: 600 15px "Lato", system-ui, sans-serif; min-height: 44px; display: flex; align-items: center; padding: 0 16px; }
.do details > form { padding: 4px 16px 16px; }
.history { margin-top: 24px; }
.history ul { list-style: none; margin: 0; padding: 0; }
.history li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 6px 0; font-size: 15px; }
.history time { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- discount builder ---------- */
.builder { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: 44px; align-items: start; }
.builder form.card { margin: 0; background: none; border: 0; padding: 0; }
.builder .grid { grid-template-columns: 1fr 1fr; }
.pay { width: 100%; border-collapse: collapse; font-size: 17px; }
.pay th { text-align: left; font-weight: 600; font-size: 14px; color: var(--muted); padding-bottom: 8px; }
.pay td { padding: 13px 0; border-top: 1px solid var(--line); }
.pay s { color: var(--muted); }
.pay td:last-child { font: 700 24px var(--head); font-variant-numeric: tabular-nums; }

/* ---------- what members see ---------- */
.pub { min-height: 100vh; display: flex; flex-direction: column; background: #0E0E10; color: #FFFFFF; --pub-sub: #B9C0C7; --pub-line: #33363B; --pub-card: #17181B; }
.pub-light { background: #F6F8FB; color: #14181D; --pub-sub: #4A5563; --pub-line: #D3DAE6; --pub-card: #FFFFFF; }
.pub a { color: inherit; }
.pub-head { display: flex; align-items: center; gap: 12px; padding: 24px 24px 0; max-width: 520px; width: 100%; margin: 0 auto; font: 700 20px var(--brand-font); }
.pub-head img { width: 52px; height: 52px; border-radius: 6px; object-fit: cover; }
.pub main { flex: 1; width: 100%; max-width: 520px; margin: 0 auto; padding: 20px 24px 32px; }
.pub-foot { text-align: center; font-size: 14px; color: var(--pub-sub); padding: 16px 24px 28px; }
.pub h1, .pub h2 { font-family: var(--brand-font); font-weight: 800; }
.pub h1 { font-size: 52px; line-height: 0.95; margin: 12px 0 0; }
.pub .dim, .pub .mono { color: var(--pub-sub); }
.pub .card { background: none; border: 0; padding: 0; margin: 20px 0; }
.pub .thanks, .pub .join, .pub .doc { max-width: none; margin: 20px 0; }
.pub .btn-solid, .pub button { width: 100%; min-height: 58px; font-size: 19px; font-weight: 700; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.pub .btn-solid:hover, .pub button:hover { filter: brightness(1.08); color: var(--on-brand); }
.pub input, .pub select, .pub textarea { background: var(--pub-card); color: inherit; border-color: var(--pub-line); }
.pub .flash { color: #14181D; }
.pub form { display: grid; gap: 14px; }
.pub label.check { color: inherit; }
.tag { display: inline-block; background: var(--brand); color: var(--on-brand); font-weight: 700; font-size: 15px; padding: 6px 12px; border-radius: 4px; margin-top: 16px; }
.price { display: flex; align-items: baseline; gap: 12px; margin-top: 20px; }
.price b { font: 800 64px/1 var(--brand-font); }
.pub-light .price b { color: var(--brand); }
.price s { font-size: 18px; color: var(--pub-sub); }
.join-lines { display: grid; margin: 26px 0 14px; font-size: 17px; }
.join-lines > div { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-top: 1px solid var(--pub-line); }
.join-lines .join-total { border-bottom: 1px solid var(--pub-line); font-weight: 700; font-size: 20px; }
.doc-body { max-height: 55vh; overflow: auto; padding: 16px; line-height: 1.6; background: var(--pub-card); border: 1px solid var(--pub-line); border-radius: 8px; }

/* brand settings preview */
.preview { width: 260px; border: 8px solid var(--ink); border-radius: 22px; overflow: hidden; }
.preview .pub { min-height: 0; padding: 18px 16px; gap: 8px; }
.preview .pub-head { padding: 0; font-size: 15px; }
.preview .pub-head img { width: 32px; height: 32px; }
.preview h1 { font-size: 34px; }
.preview .tag { font-size: 12px; padding: 4px 8px; margin-top: 10px; align-self: flex-start; }
.preview .price { margin-top: 6px; }
.preview .price b { font-size: 34px; }
.preview .fake-btn { margin-top: 28px; background: var(--brand); color: var(--on-brand); text-align: center; font-weight: 700; padding: 12px; border-radius: 6px; }
.brand-set { display: grid; grid-template-columns: minmax(0, 440px) auto; gap: 44px; align-items: start; }

/* ---------- smaller screens: the desk walks the floor with this ---------- */
@media (max-width: 1000px) {
  .today, .member, .builder, .brand-set { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 820px) {
  .desk { display: block; }
  .side { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .side-brand { padding: 10px 16px; }
  .side-brand img { width: 36px; height: 36px; }
  .side-brand small { display: none; }
  .side-nav { flex-direction: row; overflow-x: auto; padding: 8px 12px; gap: 2px; }
  .side-nav a, .side-foot > a { white-space: nowrap; }
  .side-foot { flex-direction: row; align-items: center; justify-content: space-between; margin: 0; padding: 4px 12px; }
  .side-who { gap: 12px; padding: 0 4px; }
  .topbar { padding: 12px 16px; gap: 10px; }
  .subnav { padding: 0 8px; }
  .desk main { padding: 20px 16px 56px; }
  h1 { font-size: 34px; }
  .status3 { grid-template-columns: 1fr; }
  .row { grid-template-columns: 1fr; gap: 2px; padding: 12px 16px; }
  .log-row { grid-template-columns: 1fr; gap: 2px; }
  .person-row { flex-direction: column; align-items: flex-start; }
  .needs li { flex-wrap: wrap; }
  .needs li > a { margin-left: 36px; }
  .builder .grid { grid-template-columns: 1fr; }
  .big { font-size: 44px; }
}
@media (max-width: 520px) {
  .topbar .btn-solid { padding: 0 12px; }
  .pub h1 { font-size: 44px; }
}
@media (prefers-reduced-motion: no-preference) {
  .switch i { transition: background-color 0.15s; }
}

/* ---------- analytics ---------- */
.charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.chart-card { margin: 0; }
.chart-card h2 { margin: 0; }
.chart-card > p.dim { margin: 2px 0 10px; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 500 13px "Lato", system-ui, sans-serif; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart .hit:hover { fill: rgba(20, 24, 29, 0.05); }
.legend { display: flex; gap: 18px; margin: 0 0 6px; font-size: 14px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; }
.chart-table summary { cursor: pointer; font-size: 14px; font-weight: 600; color: var(--muted); min-height: 32px; margin-top: 6px; }
.chart-table .scroll { max-height: 260px; overflow: auto; }
.chart-table table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.chart-table th, .chart-table td { text-align: right; padding: 5px 8px; border-top: 1px solid var(--line); }
.chart-table th:first-child, .chart-table td:first-child { text-align: left; }
.hbars { display: grid; gap: 12px; }
.hbars > div { display: grid; grid-template-columns: minmax(0, 190px) 1fr; column-gap: 12px; row-gap: 2px; align-items: center; font-size: 14px; }
.hbars > div > span { grid-row: span 2; }
.hbars > div > div { display: flex; align-items: center; gap: 8px; }
.hbars i { height: 10px; min-width: 2px; border-radius: 0 4px 4px 0; }
.hbars b { font-variant-numeric: tabular-nums; }
#tip { position: fixed; z-index: 20; pointer-events: none; background: var(--ink); color: #fff; font-size: 14px; font-weight: 500; padding: 6px 10px; border-radius: 6px; max-width: 280px; }
@media (max-width: 1100px) { .charts { grid-template-columns: minmax(0, 1fr); } }

.followup-step { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); margin: 0; }

/* ---------- inbox ---------- */
.side-nav a { justify-content: space-between; }
.badge { background: var(--info); color: #fff; font-size: 13px; font-weight: 700; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; }
.thread-unread .row-name { display: flex; align-items: center; gap: 8px; }
.thread-unread .ring { width: 14px; height: 14px; border-width: 4px; }
.thread-msgs { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin: 18px 0; }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); align-self: flex-start; }
.msg p { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg small { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
.msg-out { align-self: flex-end; background: #E4ECFF; border-color: #C5D4F7; }
.msg-call { background: none; border-style: dashed; }
.reply { max-width: 720px; display: grid; gap: 8px; }
.status form + .btn-line, .status .btn-line + form { margin-top: 0; }

.side-nav a small, .side-foot > a small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); line-height: 1.25; }
.side-nav a > span, .side-foot > a > span { display: block; line-height: 1.25; }
@media (max-width: 820px) { .side-nav a small, .side-foot > a small { display: none; } .side-nav a, .side-foot > a { min-height: 44px; } }

/* ---------- team inbox: list | thread | person ---------- */
.desk main:has(.inbox3) { max-width: none; padding: 0; }
.inbox3 { display: grid; grid-template-columns: 330px minmax(0, 1fr) 290px; height: calc(100vh - 124px); background: var(--ground); }
.inbox3.no-thread { grid-template-columns: 330px minmax(0, 1fr); }
.ib-list { display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); min-height: 0; }
.ib-list-head { padding: 16px 16px 0; }
.ib-list-head h1 { font-size: 30px; margin: 0 0 6px; }
.ib-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); }
.ib-tabs a { padding: 10px 2px 8px; text-decoration: none; font-weight: 500; color: var(--muted); border-bottom: 3px solid transparent; white-space: nowrap; }
.ib-tabs a[aria-current] { color: var(--ink); font-weight: 700; border-bottom-color: var(--ink); }
.ib-tabs span { font-weight: 500; color: var(--muted); }
.ib-chips { display: flex; gap: 6px; flex-wrap: wrap; padding: 10px 0; }
.ib-chips .sm { min-height: 32px; border-radius: 16px; }
.ib-notice { display: block; margin: 0 12px 8px; padding: 10px 12px; background: var(--watch-bg); border: 1px solid #E9D27A; border-radius: 8px; font-size: 15px; text-decoration: none; }
.ib-items { flex: 1; overflow-y: auto; min-height: 0; }
.ib-item { display: grid; gap: 3px; padding: 12px 16px; border-top: 1px solid var(--line); text-decoration: none; }
.ib-item:hover { background: #F5F7F9; color: var(--ink); }
.ib-item.on { background: #EDF2FF; box-shadow: inset 3px 0 0 var(--info); }
.ib-top { display: flex; gap: 8px; align-items: baseline; }
.ib-top b { flex: 1; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-item.unread .ib-top b { font-weight: 700; }
.ib-item.unread .ib-top b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--info); margin-right: 8px; }
.ib-top time, .ib-who { font-size: 13px; color: var(--muted); white-space: nowrap; }
.ib-snip { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ib-snip b { color: var(--ink); font-weight: 600; }
.ib-who { display: flex; align-items: center; gap: 6px; }
.ib-who .warn { font-size: 13px; }
.face { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; flex: none; }
.ib-empty { padding: 20px 16px; color: var(--muted); }
.ib-list-foot { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ib-thread { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.ib-blank { padding: 28px 32px; }
.ib-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 24px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ib-head form { margin: 0; }
.ib-name { flex: 1; min-width: 120px; }
.ib-name h2 { margin: 0; font-size: 26px; }
.ib-name p { margin: 0; font-size: 14px; color: var(--muted); }
.ib-assign select { min-height: 38px; font-weight: 600; font-size: 15px; }
.ib-done { color: var(--good); border-color: var(--good); }
.ib-back { display: none; width: 100%; }
.ib-test { margin: 0; padding: 6px 24px; background: var(--watch-bg); font-size: 14px; }
.ib-thread > .flash { margin: 10px 24px 0; }
.ib-thread .thread-msgs { flex: 1; overflow-y: auto; min-height: 0; max-width: none; margin: 0; padding: 18px 24px; }
.ib-pad { padding: 0 24px; margin: 0 0 8px; }
.msg-note { align-self: center; max-width: 88%; background: var(--watch-bg); border-color: #E9D27A; }
.ib-compose { display: grid; gap: 8px; margin: 0; padding: 12px 24px 16px; background: var(--surface); border-top: 1px solid var(--line); }
.ib-modes { display: flex; gap: 16px; }
.ib-modes label { display: flex; align-items: center; gap: 6px; font-weight: 600; }
.ib-compose.is-note textarea { background: var(--watch-bg); border-color: #E9D27A; }
.ib-tools summary { cursor: pointer; font-weight: 600; font-size: 15px; min-height: 30px; }
.ib-toolgrid { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; padding: 6px 0; }
.ib-send { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ib-send label { font-size: 14px; }
.ib-send .dim { flex: 1; font-size: 14px; padding-bottom: 12px; }
.ib-side { background: var(--side); border-left: 1px solid var(--line); padding: 16px 18px; overflow-y: auto; min-height: 0; font-size: 15px; }
.ib-side h2 { margin: 0 0 6px; font-size: 22px; }
.ib-side h3 { margin: 18px 0 4px; font: 600 14px "Lato", system-ui, sans-serif; color: var(--muted); }
.ib-side p { margin: 4px 0; }
.ib-side form { margin: 0; }
.ib-row { display: flex; justify-content: space-between; gap: 12px; padding: 7px 0; border-top: 1px solid var(--line); }
.ib-row span { color: var(--muted); }
.ib-row b { text-align: right; font-weight: 600; }
.ib-todo { display: grid; gap: 6px; }
.ib-todo input { width: 100%; }
.team td { font: inherit; font-size: 16px; }
.team td:last-child { font: inherit; }
@media (max-width: 1180px) { .inbox3 { grid-template-columns: 300px minmax(0, 1fr); } .ib-side { display: none; } }
@media (max-width: 820px) {
  .inbox3, .inbox3.no-thread { display: block; height: auto; }
  .inbox3.has-thread .ib-list { display: none; }
  .inbox3.no-thread .ib-blank { display: none; }
  .ib-back { display: block; }
  .ib-thread .thread-msgs { max-height: none; overflow: visible; padding: 14px 16px; }
  .ib-head, .ib-compose { padding-left: 16px; padding-right: 16px; }
  .ib-side { display: block; border-left: 0; border-top: 1px solid var(--line); }
}

/* photos, recordings, email and suggestions in a thread */
.msg-pic { display: block; max-width: 240px; max-height: 240px; border-radius: 8px; margin: 6px 0; }
.msg audio { display: block; width: 260px; max-width: 100%; margin: 6px 0; }
.msg-subject { font-weight: 700; margin-bottom: 2px; }
.ib-subject { display: none; }
.ib-compose.is-email .ib-subject { display: grid; gap: 4px; font-size: 14px; }
.ib-photo { display: grid; gap: 4px; font-size: 14px; font-weight: 600; margin-top: 6px; }
.ib-ai { margin: 0; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 14px; }
label.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 500; }
label.check input { width: auto; min-height: 0; margin-top: 4px; }

/* member side */
.pub .my h2 { font-size: 26px; margin: 34px 0 0; }
.pub .my .join-lines { margin: 12px 0 14px; }
.pub .my-out { margin-top: 26px; }
.pub .my-out button { background: none; color: inherit; border: 0; padding: 0; min-height: 44px; width: auto; justify-self: start; text-decoration: underline; font-weight: 600; }

/* ================= Graphite: the 2026 look =================
   A near-black sidebar, a light desk, one typeface set slightly wide for headings,
   panels that sit on soft shadows, and color saved for what needs attention. */
body { font-size: 15.5px; }
h1, h2, legend, .stat b, .big, .status strong, .pay td:last-child, .price b, .row-name, .ib-name h2, .mcard-name { font-family: var(--head); font-weight: 600; font-stretch: 116%; letter-spacing: -0.015em; }
h1 { font-size: 38px; line-height: 1.08; }
h2 { font-size: 21px; }
.row-name { font-size: 16px; font-stretch: 100%; letter-spacing: 0; }
code { background: #ECEEF1; }

/* sidebar */
.desk { grid-template-columns: 248px minmax(0, 1fr); }
.side { background: var(--side); border-right: 0; color: #FFFFFF; }
.side-brand { background: none; color: #FFFFFF; padding: 22px 20px 18px; }
.side-brand:hover { color: #FFFFFF; }
.side-brand img { width: 40px; height: 40px; border-radius: 10px; }
.side-brand b { font: 600 15px/1.2 var(--head); font-stretch: 112%; letter-spacing: -0.01em; }
.side-brand small { font-size: 12.5px; opacity: 1; color: var(--on-dark); }
.side-nav { gap: 2px; padding: 8px 12px; }
.side-nav a, .side-foot > a { position: relative; justify-content: flex-start; gap: 12px; min-height: 52px; border-radius: 10px; color: var(--on-dark); font-size: 15px; }
.side-nav a > span, .side-foot > a > span { flex: 1; }
.side-nav a svg, .side-foot > a svg { flex: none; }
.side-nav a small, .side-foot > a small { color: #8A929C; font-size: 12.5px; }
.side-nav a:hover, .side-foot > a:hover { background: #171A1F; color: #FFFFFF; }
.side a[aria-current] { background: #1D2127; color: #FFFFFF; box-shadow: none; font-weight: 600; }
.side a[aria-current] small { color: var(--on-dark); }
.side a[aria-current]::before { content: ""; position: absolute; left: -12px; top: 50%; width: 3px; height: 22px; margin-top: -11px; border-radius: 0 3px 3px 0; background: var(--brand); }
.side-foot { border-top: 1px solid #1F242B; }
.side-who { color: var(--on-dark); padding: 6px 14px; }
.side-me { color: #FFFFFF; font-weight: 600; }
.side .btn-text { color: var(--on-dark); }
.side .btn-text:hover { color: #FFFFFF; }
.side :focus-visible { outline-color: #FFFFFF; }
.badge { background: #FFFFFF; color: var(--ink); font-size: 12px; }

/* top of the page */
.topbar { background: var(--ground); border-bottom: 0; padding: 14px 40px 10px; }
.find { height: 44px; max-width: 440px; border: 0; border-radius: 12px; box-shadow: 0 0 0 1px var(--line); }
.find input { height: 40px; font-size: 15px; }
.subnav { background: var(--ground); padding: 0 40px; gap: 22px; }
.subnav a { padding: 10px 0 10px; border-bottom-width: 2px; }
.subnav a[aria-current] { font-weight: 600; }
.desk main { padding-top: 26px; max-width: 1280px; }

/* buttons and fields */
button, .btn-solid, .btn-line { border-radius: 10px; }
input, select, textarea { border-radius: 10px; font-size: 15.5px; }
.btn-solid:hover { background: #262B32; border-color: #262B32; }
.sm { border-radius: 9px; }
.do details, fieldset.person, .token, .link-out { border-radius: 10px; }

/* panels: shadow, not outline */
.card, .rows, .stat, .status, .needs { border: 0; border-radius: 16px; box-shadow: var(--shadow); }
.card { padding: 22px 24px; margin: 16px 0; }
.rows { margin: 16px 0; }
.row { padding: 14px 24px; min-height: 60px; }
.row:hover { background: #F7F8FA; }
.stat { padding: 18px 20px; gap: 4px; }
.stat b { font-size: 30px; }
a.stat:hover { box-shadow: var(--shadow), 0 0 0 1px var(--ink); }
.stat-on { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); }
.flash { border-left: 0; border-radius: 12px; }
.flash-warn { color: #4A3800; }

/* status marks become one small dot; the word next to it carries the meaning */
.ring { width: 10px; height: 10px; border: 0; background: var(--muted); }
.ring-good { background: var(--good); } .ring-watch { background: #C98A00; } .ring-stop { background: var(--stop); } .ring-info { background: var(--info); } .ring-off { background: var(--edge); }
.thread-unread .ring { width: 10px; height: 10px; }
.chip::before { width: 8px; height: 8px; border: 0; background: currentColor; }

/* Today */
.today { gap: 28px; grid-template-columns: minmax(0, 1fr) 340px; }
.needs { background: var(--surface); padding: 0; overflow: hidden; }
.needs li { align-items: center; padding: 18px 24px; }
.needs li:first-child { border-top: 0; }
.needs .ring { margin-top: 0; }
.needs b { font-size: 16.5px; }
.needs span { font-size: 14.5px; }
.rail { gap: 20px; padding-top: 18px; }
.rail > * { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 20px 22px; }
.rail h2, .do h2, .history h2 { font: 500 13.5px "Lato", system-ui, sans-serif; font-stretch: 100%; letter-spacing: 0.01em; color: var(--muted); }
.big { font-size: 44px; }
.bars i { border-radius: 5px; background: #E9ECF0; }

/* a member */
.status { padding: 20px 22px; }
.status strong { font-size: 23px; }
.switch[aria-pressed="true"] i { background: var(--ink); }
.people, .history { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); border-bottom: 0; padding: 4px 24px; }
.people li:first-child { border-top: 0; }
.history { padding: 20px 24px; }
.pay td:last-child { font-size: 22px; }

/* messages */
.inbox3 { grid-template-columns: 348px minmax(0, 1fr) 300px; height: calc(100vh - 112px); }
.inbox3.no-thread { grid-template-columns: 348px minmax(0, 1fr); }
.ib-list { background: var(--ground); }
.ib-list-head { padding: 8px 24px 0; }
.ib-tabs { gap: 20px; }
.ib-tabs a { border-bottom-width: 2px; }
.ib-tabs a[aria-current] { font-weight: 600; }
.ib-items { padding: 6px 8px; }
.ib-item { border-top: 0; border-radius: 12px; padding: 14px 16px; }
.ib-item:hover { background: #E9EBEF; }
.ib-item.on { background: var(--surface); box-shadow: var(--shadow); }
.ib-item.unread .ib-top b::before { background: var(--brand); }
.face { background: #E9ECF0; color: var(--ink2); }
.ib-list-foot { border-top: 0; padding: 10px 16px 16px; }
.ib-head { background: var(--ground); padding: 12px 28px 14px; }
.ib-name h2 { font-size: 22px; }
.ib-thread .thread-msgs { padding: 22px 28px; gap: 12px; }
.msg { border: 0; border-radius: 16px 16px 16px 4px; padding: 12px 16px; box-shadow: var(--shadow); max-width: min(82%, 520px); }
.msg-out { background: var(--ink); color: #FFFFFF; border-radius: 16px 16px 4px 16px; box-shadow: none; }
.msg-out small, .msg-out .btn-text { color: var(--on-dark); }
.msg-out a { color: #FFFFFF; }
.msg-call { background: none; box-shadow: inset 0 0 0 1px var(--edge); }
.msg-note { background: var(--watch-bg); color: #4A3800; box-shadow: none; border-radius: 12px; }
.msg-note small { color: #6B5200; }
.ib-test { background: var(--watch-bg); color: #4A3800; padding: 6px 28px; }
.ib-compose { margin: 0 28px 24px; padding: 14px 16px; border-top: 0; border-radius: 16px; box-shadow: var(--shadow); }
.ib-compose textarea { border: 0; padding: 4px 0; min-height: 0; }
.ib-compose textarea:focus-visible { outline: 0; }
.ib-compose:focus-within { box-shadow: var(--shadow), 0 0 0 2px var(--ink); }
.ib-compose.is-note textarea { background: transparent; }
.ib-compose.is-note { background: var(--watch-bg); }
.ib-modes { gap: 2px; padding: 3px; border-radius: 10px; background: #ECEEF1; width: fit-content; flex-wrap: wrap; }
.ib-modes label { position: relative; padding: 0 14px; min-height: 34px; border-radius: 8px; font-size: 14px; font-weight: 500; cursor: pointer; }
.ib-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ib-modes label:has(input:checked) { background: var(--surface); font-weight: 600; box-shadow: 0 1px 2px rgba(13,15,18,0.14); }
.ib-modes label:has(input:focus-visible) { outline: 3px solid var(--info); outline-offset: 1px; }
.ib-modes label:has(input:disabled) { color: #8A929C; cursor: not-allowed; }
.ib-side { background: var(--soft); padding: 14px 24px; }
.ib-side h2 { font-size: 18px; }
.ib-side h3 { font: 500 13.5px "Lato", system-ui, sans-serif; letter-spacing: 0.01em; }
.ib-notice { border: 0; border-radius: 12px; color: #4A3800; }

/* charts keep their data colors; the frame follows the look */
.chart text { font-family: "Lato", system-ui, sans-serif; }
#tip { border-radius: 8px; }

/* ---------- what members see ---------- */
.pub { background: var(--side); --pub-sub: #A7AEB8; --pub-line: #2B3138; --pub-card: #171A1F; }
.pub-light { background: var(--ground); color: var(--ink); --pub-sub: #5A636E; --pub-line: #E3E6EA; --pub-card: #FFFFFF; }
.pub-head { padding-top: 28px; font: 600 15px var(--head); font-stretch: 112%; letter-spacing: -0.01em; }
.pub-head img { width: 42px; height: 42px; border-radius: 11px; }
.pub h1, .pub h2 { font-family: var(--brand-font); font-weight: 600; font-stretch: 116%; letter-spacing: -0.015em; }
.pub h1 { font-size: 38px; line-height: 1.08; margin-top: 18px; }
.pub .btn-solid, .pub button { min-height: 56px; border-radius: 14px; font-size: 17px; font-weight: 600; }
.pub input, .pub select, .pub textarea { min-height: 54px; border-radius: 13px; font-size: 16.5px; }
.pub label { font-weight: 500; font-size: 14px; color: var(--pub-sub); }
.pub label input, .pub label select, .pub label textarea { color: inherit; }
.pub-dark input, .pub-dark select, .pub-dark textarea { color: #FFFFFF; }
.pub .flash { border-radius: 12px; }
.price b { font-size: 56px; font-weight: 600; }
.tag { border-radius: 8px; font-weight: 600; }
.join-lines { font-size: 16px; }
.pub .my-out button { min-height: 44px; font-size: 15px; border-radius: 0; }

/* the membership card */
.mcard { position: relative; overflow: hidden; display: flex; flex-direction: column; min-height: 204px; margin: 20px 0 0; padding: 22px 24px 22px 28px; border-radius: 20px; background: #0D0F12; color: #FFFFFF; box-shadow: 0 20px 44px rgba(13,15,18,0.30); }
.mcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 7px; background: var(--brand); }
.mcard-top { display: flex; align-items: center; gap: 10px; font: 600 13.5px var(--head); font-stretch: 112%; }
.mcard-top img { width: 34px; height: 34px; border-radius: 9px; object-fit: cover; }
.mcard-top span:first-of-type { flex: 1; }
.mcard-state { display: inline-flex; align-items: center; gap: 7px; }
.mcard-state i { width: 8px; height: 8px; border-radius: 50%; background: #A7AEB8; }
.mcard-state.is-active i { background: #4ADE80; }
.mcard-name { margin-top: auto; padding-top: 44px; font-size: 26px; line-height: 1.1; }
.mcard-sub { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: 14px; color: #A7AEB8; }
.my-strip { display: grid; grid-template-columns: 1fr 1fr; margin: 18px 0 0; padding: 16px 18px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); }
.my-strip > div + div { padding-left: 18px; border-left: 1px solid var(--line); }
.my-strip span { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.my-strip b { display: block; margin-top: 2px; font: 600 19px var(--head); font-stretch: 112%; }
.my-nav { display: grid; margin: 18px 0 0; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.my-nav a { display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 8px 18px; text-decoration: none; border-top: 1px solid var(--line); }
.my-nav a:first-child { border-top: 0; }
.my-nav a:hover { background: #F7F8FA; color: var(--ink); }
.my-nav b { display: block; font-weight: 600; }
.my-nav small { display: block; font-size: 13.5px; color: var(--muted); }
.my-nav a > span { flex: 1; }
.my-nav a::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-top: 2px solid var(--muted); transform: rotate(45deg); flex: none; }
.pub .my section { margin-top: 28px; padding: 22px 20px; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); scroll-margin-top: 16px; }
.pub .my section h2 { margin: 0 0 6px; font-size: 21px; }
.pub .my .join-lines { margin: 10px 0 0; }
.pub .my .join-lines > div:first-child { border-top: 0; }
.my-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 24px; font-size: 14.5px; }

/* ---------- the desk on a phone: a tab bar at the bottom ---------- */
@media (max-width: 820px) {
  .side { background: var(--side); border-bottom: 0; }
  .side-brand { padding: 12px 16px; }
  .side-nav { position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 30; flex-direction: row; gap: 0; padding: 4px; border-radius: 20px; background: var(--side); box-shadow: 0 10px 30px rgba(13,15,18,0.35); overflow: visible; }
  .side-nav a { flex: 1; flex-direction: column; justify-content: center; gap: 3px; min-height: 58px; padding: 4px 2px; font-size: 11.5px; text-align: center; border-radius: 16px; }
  .side-nav a > span { flex: none; }
  .side a[aria-current]::before { display: none; }
  .side-nav .badge { position: absolute; top: 4px; right: 50%; margin-right: -24px; min-width: 18px; height: 18px; font-size: 11px; }
  .side-foot { border-top: 1px solid #1F242B; }
  .side-foot > a { flex: none; }
  .topbar { padding: 12px 16px 8px; }
  .subnav { padding: 0 16px; gap: 18px; }
  .desk main { padding-bottom: 110px; }
  .inbox3, .inbox3.no-thread { height: auto; padding-bottom: 96px; }
  .ib-compose { margin: 0 12px 16px; }
  .ib-head, .ib-thread .thread-msgs { padding-left: 16px; padding-right: 16px; }
  h1 { font-size: 32px; }
}
/* the new column widths must still give way on narrower screens */
@media (max-width: 1180px) { .inbox3 { grid-template-columns: 320px minmax(0, 1fr); } }
@media (max-width: 1000px) { .today { grid-template-columns: minmax(0, 1fr); } .rail { padding-top: 0; } }
@media (max-width: 820px) { .desk { display: block; } .side-foot { flex-direction: row; } }
@media (max-width: 820px) { .needs li { flex-wrap: wrap; padding: 16px 18px; } .needs li > div { flex: 1 1 75%; } .needs li > a { margin-left: 26px; } }
.ib-name { min-width: 210px; }
.ib-name h2 { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pub form { grid-template-columns: minmax(0, 1fr); }
.pub form input:not([type="checkbox"]):not([type="radio"]), .pub form select, .pub form textarea { width: 100%; }

/* ---------- page head, number strip, segmented filter, member table ---------- */
.page-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 0 0 20px; }
.page-head h1 { margin: 0; }
.page-head > span { flex: 1; font-size: 16px; color: var(--muted); }
.page-head .btn-solid { align-self: center; }
h2.over { font: 500 13.5px "Lato", system-ui, sans-serif; font-stretch: 100%; letter-spacing: 0.01em; color: var(--muted); margin: 26px 0 10px; }
.today h2.over:first-child { margin-top: 0; }
.figs { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 24px 0; margin: 0 0 24px; }
.figs > * { display: block; padding: 0 28px; border-left: 1px solid var(--line); text-decoration: none; min-width: 0; }
.figs > *:first-child { border-left: 0; }
.figs span { display: block; font-size: 13.5px; font-weight: 500; color: var(--muted); letter-spacing: 0.01em; }
.figs b { display: block; margin-top: 8px; font: 600 36px/1.05 var(--head); font-stretch: 116%; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.figs small { display: block; margin-top: 6px; font-size: 13.5px; color: var(--muted); }
.figs a:hover b { color: var(--info); }
.today .needs { margin-top: 0; }
.state { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; white-space: nowrap; }
.seg { display: flex; gap: 4px; padding: 4px; border-radius: 14px; background: #E8EAEE; width: fit-content; max-width: 100%; overflow-x: auto; margin: 0 0 12px; }
.seg a { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; text-decoration: none; font-weight: 500; white-space: nowrap; }
.seg a span { color: var(--muted); font-variant-numeric: tabular-nums; }
.seg a[aria-current] { background: var(--surface); font-weight: 600; box-shadow: 0 1px 2px rgba(13,15,18,0.12); }
.filters { align-items: center; margin: 0 0 16px; }
.filters .sm { min-height: 34px; border-radius: 17px; font-weight: 500; }
.mtable { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; margin: 0 0 14px; }
.mhead, .mrow { display: grid; grid-template-columns: minmax(200px, 1.5fr) minmax(130px, 1fr) minmax(140px, 0.9fr) 90px minmax(0, 1.4fr); gap: 16px; align-items: center; padding: 0 24px; }
.mhead { padding-top: 16px; padding-bottom: 10px; font-size: 13.5px; font-weight: 500; color: var(--muted); }
.mrow { min-height: 64px; border-top: 1px solid var(--line); text-decoration: none; }
.mrow:hover { background: #F7F8FA; color: var(--ink); }
.mrow-name { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mrow-name b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mrow-plan, .mrow-bill { color: var(--ink2); font-variant-numeric: tabular-nums; }
.mrow-people { color: var(--muted); font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.face-lg { width: 36px; height: 36px; font-size: 13px; }
/* lists of people or things inside a panel */
.plist { display: grid; }
.plist > * { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; }
.plist > *:first-child { border-top: 0; }
.plist > * > span:not(.face) { flex: 1; min-width: 0; }
.plist b { display: block; font-weight: 600; }
.plist small { display: block; font-size: 13.5px; color: var(--muted); }
.plist .num { flex: none; font-variant-numeric: tabular-nums; }
.plist a:hover b { color: var(--info); }
.rail .bar, .card .bar { margin-bottom: 4px; flex-wrap: nowrap; }
/* plans */
.plans .person-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 90px auto; gap: 20px; padding: 18px 0; }
.plan-name { font: 600 19px var(--head); font-stretch: 116%; letter-spacing: -0.015em; }
.plan-price b { font: 600 24px var(--head); font-stretch: 116%; letter-spacing: -0.015em; font-variant-numeric: tabular-nums; }
.plan-price small { display: block; color: var(--muted); font-size: 13.5px; }
.plan-count { color: var(--ink2); font-size: 14.5px; }
/* settings */
.two { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.two > .card { margin: 0; }
.brand-set { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; margin-top: 16px; }
.mcard-sm { min-height: 168px; margin: 8px 0 0; padding: 18px 20px 18px 24px; border-radius: 18px; }
.mcard-sm .mcard-name { font-size: 21px; padding-top: 30px; }
.sample-btn { margin: 14px 0 6px; padding: 13px; border-radius: 12px; background: var(--brand); color: var(--on-brand); text-align: center; font-weight: 600; }
.conn { display: grid; margin: 8px 0; }
.conn > div { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.conn > div:first-child { border-top: 0; }
.conn b { display: block; font-weight: 600; }
.conn small { display: block; font-size: 13.5px; color: var(--muted); }
@media (max-width: 1100px) { .two, .brand-set { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 820px) {
  .figs { grid-template-columns: 1fr 1fr; row-gap: 20px; padding: 20px 0; }
  .figs > * { padding: 0 18px; }
  .figs > *:nth-child(odd) { border-left: 0; }
  .figs b { font-size: 28px; }
  .mhead { display: none; }
  .mrow { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 12px 16px; }
  .mrow-plan, .mrow-bill, .mrow-people { display: none; }
  .mrow:first-of-type { border-top: 0; }
  .plans .person-row { grid-template-columns: minmax(0, 1fr) auto; }
  .plan-count { display: none; }
}
.plain { width: 100%; border-collapse: collapse; }
.plain td { padding: 12px 14px 12px 0; border-top: 1px solid var(--line); vertical-align: top; font-size: 14.5px; }
.plain tr:first-child td { border-top: 0; }
.plain td:nth-child(2) { white-space: nowrap; }
.card:has(> table) { overflow-x: auto; }
.form-narrow input[type="checkbox"] { width: 20px; }
.plist .dim { flex: none !important; font-size: 13.5px; }

.row-sub { padding-left: 26px; font-weight: 500; position: relative; }
.row-sub::before { content: ""; position: absolute; left: 6px; top: 50%; width: 10px; height: 10px; margin-top: -9px; border-left: 2px solid var(--edge); border-bottom: 2px solid var(--edge); border-radius: 0 0 0 4px; }

/* ---------- vending: the machine as a grid of slots, the restock sheet, the sales list ---------- */
.page-head form, .page-head .btn-line { align-self: center; }
button:disabled { opacity: 0.45; cursor: not-allowed; }
.vgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(136px, 1fr)); gap: 10px; }
.vslot { display: grid; gap: 5px; align-content: start; min-height: 118px; padding: 12px 14px 13px; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow); text-decoration: none; }
.vslot:hover { box-shadow: var(--shadow), inset 0 0 0 2px var(--ink); color: var(--ink); }
.vslot-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-variant-numeric: tabular-nums; }
.vslot-top b { font: 600 21px/1 var(--head); font-stretch: 112%; }
.vslot-top span { font-weight: 600; font-size: 14.5px; }
.vslot-name { font-size: 14.5px; line-height: 1.25; min-height: 2.5em; overflow-wrap: anywhere; }
.vslot-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.vslot-bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.vslot small { font-size: 13px; color: var(--muted); }
.vslot.is-low .vslot-bar i { background: #C98A00; }
.vslot.is-low small { color: var(--watch); font-weight: 600; }
.vslot.is-empty { background: var(--stop-bg); }
.vslot.is-empty small { color: var(--stop); font-weight: 600; }
.vslot.is-off { opacity: 0.55; }

.vsales { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.vsale { display: grid; grid-template-columns: 132px minmax(0, 1.5fr) minmax(0, 1fr) 76px minmax(150px, 0.9fr); gap: 14px; align-items: center; min-height: 56px; padding: 8px 24px; border-top: 1px solid var(--line); }
.vsale:first-child { border-top: 0; }
.vsale > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vsale .num { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.vsale small { display: block; margin-left: 18px; font-size: 13px; }

.vstock { background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 8px 24px 16px; }
.vstock-head, .vstock-row { display: grid; grid-template-columns: 56px minmax(0, 1fr) 150px 96px 96px; gap: 12px; align-items: center; }
.vstock-head { padding: 14px 0 6px; font-size: 13.5px; font-weight: 500; color: var(--muted); position: sticky; top: 77px; background: var(--surface); z-index: 1; }
.vstock-tray { margin-top: 18px; padding: 8px 0 4px; font-weight: 600; border-top: 1px solid var(--line); }
.vstock-head + .vstock-tray { margin-top: 0; border-top: 0; }
.vstock-row { padding: 4px 0; }
.vstock-row b { font: 600 18px var(--head); font-variant-numeric: tabular-nums; }
.vstock-row input { width: 100%; min-width: 0; }
.vstock-row.is-off b { color: var(--muted); }

/* the member's phone */
.pub .my .vunlock { width: 100%; min-height: 64px; margin-top: 18px; font-size: 19px; border-radius: 16px; background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.vlive { display: grid; gap: 6px; margin-top: 18px; padding: 24px 22px; background: var(--ink); color: #FFFFFF; border-radius: 16px; }
.vlive b { font: 600 25px/1.15 var(--head); font-stretch: 112%; }
.vlive span { color: #C9CED5; min-height: 1.4em; }
.vlive[data-state="vended"] { background: var(--good); }
.vlive[data-state="vended"] span { color: #FFFFFF; }
.vlive[data-state="ended"], .vlive[data-state="gone"], .vlive[data-state="signed-out"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.vlive[data-state="ended"] span, .vlive[data-state="gone"] span { color: var(--muted); }
@media (prefers-reduced-motion: no-preference) {
  .vlive[data-state="waiting"] b, .vlive[data-state="vending"] b { animation: vpulse 1.4s ease-in-out infinite; }
  @keyframes vpulse { 50% { opacity: 0.55; } }
}
.pub .my .join-lines span b { display: inline-block; min-width: 2.6em; font-variant-numeric: tabular-nums; }

/* the sticker for the front of the machine: 4 by 6 inches */
.vsticker-page { background: var(--ground); display: grid; justify-items: center; gap: 18px; padding: 28px 16px; }
.vsticker { width: 4in; min-height: 6in; display: grid; gap: 12px; align-content: start; justify-items: center; text-align: center; padding: 0.32in 0.3in; background: #FFFFFF; color: #0D0F12; border-radius: 14px; box-shadow: var(--shadow); }
.vsticker-kicker { margin: 0; font-weight: 600; font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.vsticker h1 { font-size: 30px; font-stretch: 112%; margin: 0; }
.vsticker-qr { width: 2.5in; height: 2.5in; margin: 6px 0; }
.vsticker-qr svg { width: 100%; height: 100%; display: block; }
.vsticker ol { margin: 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 8px; justify-items: start; text-align: left; font-weight: 600; font-size: 17px; }
.vsticker li { counter-increment: s; display: flex; align-items: center; gap: 10px; }
.vsticker li::before { content: counter(s); flex: none; width: 28px; height: 28px; border-radius: 50%; background: #0D0F12; color: #FFFFFF; display: grid; place-items: center; font-size: 15px; }
.vsticker-foot { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
@media print {
  @page { size: 4in 6in; margin: 0; }
  .vsticker-page { background: #FFFFFF; padding: 0; }
  .vsticker { box-shadow: none; border-radius: 0; }
  .vsticker-print { display: none; }
}

@media (max-width: 820px) {
  .vsale { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 12px 18px; }
  .vsale > span:nth-child(1) { grid-column: 1 / -1; font-size: 13.5px; }
  .vsale > span:nth-child(3) { grid-column: 1; font-size: 14.5px; color: var(--muted); }
  .vsale .num { grid-row: 2; grid-column: 2; }
  .vsale > span:nth-child(5) { grid-column: 1 / -1; }
  .vstock { padding: 4px 14px 12px; }
  .vstock-head { display: none; }
  .vstock-row { grid-template-columns: 44px minmax(0, 1fr) 1fr 1fr; grid-template-areas: "c n n n" ". p h s"; padding: 8px 0; border-top: 1px solid var(--line); }
  .vstock-row b { grid-area: c; } .vstock-row input:nth-of-type(1) { grid-area: n; } .vstock-row input:nth-of-type(2) { grid-area: p; }
  .vstock-row input:nth-of-type(3) { grid-area: h; } .vstock-row input:nth-of-type(4) { grid-area: s; }
}

[hidden] { display: none !important; }

/* stocking plan from a photo: one editable card per product */
.vplan { display: grid; gap: 12px; }
.vplan-row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.3fr) 130px 100px; gap: 12px; align-items: end; padding: 16px 20px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow); }
.vplan-row input, .vplan-row select { width: 100%; min-width: 0; }
.vplan-row p { grid-column: 1 / -1; margin: 0; }
@media (max-width: 820px) { .vplan-row { grid-template-columns: 1fr 1fr; } .vplan-row label:nth-child(1), .vplan-row label:nth-child(2) { grid-column: 1 / -1; } }

/* Transactions: filters, splits that open the payments behind them, and the ledger table */
.tx-filter { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; align-items: end; background: var(--surface); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; margin: 0 0 16px; }
.tx-filter label { font-size: 13.5px; color: var(--muted); min-width: 0; }
.tx-filter input, .tx-filter select { width: 100%; min-width: 0; }
.tx-filter .wide { grid-column: span 2; }
.tx-filter .btn-solid { justify-self: start; }
.tx-split { display: grid; }
.tx-split a { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(60px, 1fr) auto; gap: 14px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.tx-split a:first-child { border-top: 0; }
.tx-split b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tx-split small { display: block; color: var(--muted); font-size: 13.5px; }
.tx-split i { display: block; height: 8px; border-radius: 4px; background: linear-gradient(to right, var(--ink) var(--w), #E8EAEE var(--w)); }
.tx-split em { min-width: 76px; text-align: right; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; }
.tx-split a:hover b, .tx-split a:hover em { color: var(--info); }
.tx-scroll { overflow-x: auto; padding: 6px 20px; }
table.tx { width: 100%; border-collapse: collapse; font-size: 14.5px; font-variant-numeric: tabular-nums; }
table.tx th { text-align: right; font-size: 13px; font-weight: 600; color: var(--muted); padding: 10px 10px; white-space: nowrap; }
table.tx td { text-align: right; padding: 10px 10px; border-top: 1px solid var(--line); vertical-align: top; white-space: nowrap; }
table.tx th:first-child, table.tx td:first-child { text-align: left; padding-left: 0; }
table.tx th:last-child, table.tx td:last-child { padding-right: 0; }
table.tx-list th:nth-child(-n+6), table.tx-list td:nth-child(-n+6) { text-align: left; }
table.tx-list td:nth-child(2), table.tx-list td:nth-child(3) { white-space: normal; min-width: 140px; }
table.tx small { display: block; color: var(--muted); font-size: 12.5px; }
table.tx tfoot td { font-weight: 600; border-top: 2px solid var(--ink); }
table.tx tr.bad td { background: var(--stop-bg); }
table.tx tr.bad td:first-child { box-shadow: -20px 0 0 var(--stop-bg); }
table.tx tr.bad td:last-child { box-shadow: 20px 0 0 var(--stop-bg); }
table.tx s { color: var(--muted); }
.tx-chart { width: 100%; height: auto; display: block; }
.tx-chart text { font-size: 13px; fill: var(--muted); }
.tx-chart .b { fill: #C3C8D0; }
.tx-chart a:hover .b, .tx-chart a:focus .b { fill: var(--ink); }
@media (max-width: 640px) {
  .tx-filter { grid-template-columns: 1fr 1fr; padding: 14px; }
  .tx-split a { grid-template-columns: minmax(0, 1fr) auto; }
  .tx-split i { display: none; }
  .tx-chart text { font-size: 20px; }
}
table.tx-due th:nth-child(-n+5), table.tx-due td:nth-child(-n+5) { text-align: left; }
table.tx-due td:nth-child(2), table.tx-due td:nth-child(3) { white-space: normal; }
.plist em { font-style: normal; font-size: 14px; color: var(--muted); white-space: nowrap; margin-left: auto; }

/* ---------- scan to pay ---------- */
.payq-amt { display: flex; align-items: center; gap: 10px; margin-top: 6px; font: 700 34px var(--brand-font); color: inherit; }
.payq-amt input { flex: 1; min-width: 0; min-height: 72px; font: 700 34px var(--brand-font); font-variant-numeric: tabular-nums; }
.paycode { display: grid; grid-template-columns: 132px 1fr; gap: 20px; align-items: center; }
.paycode h2 { margin: 0 0 4px; }
.paycode p { margin: 6px 0; }
.paycode-qr { width: 132px; height: 132px; padding: 8px; background: #FFFFFF; border: 1px solid var(--edge); border-radius: 10px; }
.paycode-qr svg { width: 100%; height: 100%; display: block; }
.paycode .inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.paycode .inline form { margin: 0; }
.paysign-price { margin: 0; font: 900 44px/1 var(--head); font-variant-numeric: tabular-nums; }
@media (max-width: 560px) { .paycode { grid-template-columns: 1fr; } }

/* ---------- the store ---------- */
.page-head .btn-line { align-self: center; }
.store-stock { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.st { display: inline-flex; gap: 5px; align-items: baseline; padding: 3px 9px; border-radius: 999px; background: var(--ground); color: var(--ink); font-size: 14px; }
.st-low { background: #FFF1D6; color: #7A4B00; }
.st-out { background: #FDE3E3; color: #9B1C1C; }
.store-counts { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 12px; margin: 8px 0 4px; }
.store-counts input { width: 100%; font-variant-numeric: tabular-nums; }
/* what a customer sees */
.shopfront h1 { font-size: 64px; line-height: 0.95; font-weight: 900; letter-spacing: -0.03em; margin: 22px 0 0; }
.shop-lede { font-size: 18px; line-height: 1.4; margin: 12px 0 0; max-width: 30ch; }
.shop-cat { font-size: 22px; font-weight: 900; margin: 34px 0 0; padding-bottom: 10px; border-bottom: 3px solid var(--brand); letter-spacing: -0.01em; }
.shop-list { display: grid; }
.shop-row { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; min-height: 68px; padding: 12px 0; border-bottom: 1px solid var(--pub-line); text-decoration: none; }
.shop-name { font-size: 18px; font-weight: 700; line-height: 1.2; }
.shop-name small { display: block; font-size: 13.5px; font-weight: 500; color: var(--pub-sub); margin-top: 3px; }
.shop-row b { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; }
.shop-buy { display: inline-flex; align-items: center; justify-content: center; min-width: 64px; min-height: 44px; padding: 0 16px; border-radius: 12px; background: var(--brand); color: var(--on-brand); font-size: 16px; font-weight: 700; }
.shop-row:active .shop-buy { filter: brightness(0.9); }
.shop-row.is-out { opacity: 0.55; }
.shop-row.is-out .shop-buy { background: none; color: var(--pub-sub); padding: 0; min-width: 0; font-weight: 600; }
.shop-other { margin: 30px 0 8px; font-size: 16px; }
.shop-back { font-size: 15px; color: var(--pub-sub); }
.shop select { width: 100%; }
/* printed: the price list */
.psheet-page { background: var(--ground); display: grid; justify-items: center; gap: 18px; padding: 28px 16px; margin: 0; }
.psheet { width: 8.5in; min-height: 11in; background: #FFFFFF; color: #000000; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.psheet-top { background: #000000; color: #FFFFFF; display: flex; align-items: center; gap: 0.3in; padding: 0.45in 0.6in; }
.psheet-top img { width: 1.25in; height: 1.25in; object-fit: cover; border-radius: 0.12in; }
.psheet-top h1 { font: 900 0.95in/0.9 "Lato", sans-serif; letter-spacing: -0.02em; margin: 0; color: #FFFFFF; }
.psheet-top p { margin: 0.08in 0 0; font: 700 0.2in/1 "Lato", sans-serif; }
.psheet-bar { height: 0.16in; background: var(--brand); }
.psheet-body { flex: 1; display: grid; grid-template-columns: 1fr 2.3in; gap: 0.5in; padding: 0.45in 0.6in 0.3in; align-items: start; }
.psheet-list section { margin-bottom: 0.3in; break-inside: avoid; }
.psheet-list h2 { font: 900 0.26in/1 "Lato", sans-serif; margin: 0 0 0.08in; padding-bottom: 0.07in; border-bottom: 0.04in solid #000000; color: #000000; letter-spacing: 0; }
.psheet-row { display: flex; align-items: baseline; gap: 0.1in; padding: 0.085in 0; font: 700 0.2in/1.2 "Lato", sans-serif; }
.psheet-row small { display: block; font: 400 0.135in/1.3 "Lato", sans-serif; color: #444444; }
.psheet-row i { flex: 1; border-bottom: 2px dotted #999999; transform: translateY(-0.04in); min-width: 0.3in; }
.psheet-row b { font: 900 0.23in/1 "Lato", sans-serif; font-variant-numeric: tabular-nums; }
.psheet-scan { border: 0.05in solid #000000; padding: 0.18in; text-align: center; }
.psheet-qr svg { width: 100%; height: auto; display: block; }
.psheet-scan h3 { font: 900 0.3in/1 "Lato", sans-serif; margin: 0.14in 0 0.06in; }
.psheet-scan p { font: 400 0.135in/1.35 "Lato", sans-serif; margin: 0; }
.psheet-foot { padding: 0 0.6in 0.4in; font: 400 0.13in/1.3 "Lato", sans-serif; color: #444444; }
/* printed: a tag for each shelf, six to a sheet */
.ptags { width: 8.5in; height: 11in; background: #FFFFFF; box-shadow: var(--shadow); display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: repeat(3, 1fr); break-after: page; }
.ptag { display: grid; grid-template-columns: 1fr 1.55in; gap: 0.15in; align-items: center; padding: 0.3in; border-right: 1px dashed #999999; border-bottom: 1px dashed #999999; color: #000000; }
.ptag-txt p { margin: 0; font: 700 0.12in/1 "Lato", sans-serif; color: #444444; }
.ptag-txt h2 { font: 900 0.3in/1.02 "Lato", sans-serif; margin: 0.08in 0 0.1in; color: #000000; letter-spacing: -0.01em; }
.ptag-txt b { display: inline-block; font: 900 0.5in/1 "Lato", sans-serif; background: #000000; color: #FFFFFF; padding: 0.06in 0.14in; font-variant-numeric: tabular-nums; }
.ptag-txt small { display: block; margin-top: 0.09in; font: 400 0.13in/1.3 "Lato", sans-serif; }
.ptag-qr svg { width: 100%; height: auto; display: block; }
.ptag-qr span { display: block; text-align: center; font: 700 0.13in/1 "Lato", sans-serif; margin-top: 0.07in; }
@media print {
  @page { size: letter; margin: 0; }
  .psheet-page { background: #FFFFFF; padding: 0; gap: 0; display: block; }
  .psheet, .ptags { box-shadow: none; }
  .psheet *, .ptags * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.shop-pickup { display: inline-block; margin: 14px 0 0; padding: 8px 12px; border: 1px solid var(--pub-line); border-radius: 10px; font-size: 14.5px; font-weight: 600; }
.shop-drop { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px; margin: 22px 0 0; padding: 16px 16px 16px 18px; border-radius: 14px; background: #FFFFFF; color: #0D0F12; text-decoration: none; border-left: 6px solid var(--brand); }
.pub .shop-drop { color: #0D0F12; }
.shop-drop b { display: block; font-size: 19px; font-weight: 900; letter-spacing: -0.01em; }
.shop-drop small { display: block; margin-top: 3px; font-size: 14px; color: #4A5563; }
