:root {
  --bg: #f5f4ef;
  --card: #ffffff;
  --ink: #1b2530;
  --muted: #65717e;
  --line: #e3e1d9;
  --accent: #0f766e;
  --accent-ink: #0b5952;
  --accent-soft: #e3f2f0;
  --warn: #9a5b00;
  --warn-soft: #fdf1d8;
  --danger: #b42318;
  --danger-soft: #fde8e6;
  --ok: #17663a;
  --ok-soft: #e2f4e8;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(27, 37, 48, 0.06), 0 4px 14px rgba(27, 37, 48, 0.05);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 4px; letter-spacing: -0.01em; }
h2 { font-size: 17px; margin: 0 0 10px; }
h3 { font-size: 14px; margin: 20px 0 8px; }
p { margin: 0 0 10px; }
a { color: var(--accent-ink); }
code { background: #efede6; padding: 1px 5px; border-radius: 4px; font-size: 13px; }
.muted { color: var(--muted); }
.hint { color: var(--muted); font-size: 13px; }
.pad { padding: 24px; }
.clip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 52ch; }
.cap { text-transform: capitalize; }
.grow { flex: 1; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side {
  background: #12302d; color: #e7f1ef; padding: 18px 14px; display: flex; flex-direction: column; gap: 14px;
  position: sticky; top: 0; height: 100vh;
}
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: inherit; text-decoration: none; line-height: 1.25; }
.brand.big { font-size: 22px; color: var(--ink); margin-bottom: 4px; }
.brand-mark { display: inline-grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px; background: var(--accent); color: #fff; font-size: 15px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a { color: #cfe0dd; text-decoration: none; padding: 9px 11px; border-radius: 8px; font-weight: 500; }
.side nav a:hover { background: rgba(255, 255, 255, 0.08); }
.side nav a.active { background: rgba(255, 255, 255, 0.14); color: #fff; }
.side-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid rgba(255, 255, 255, 0.14); padding-top: 12px; }
.side-foot .who { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.side-foot .muted { color: #9db8b4; font-size: 13px; }
.side-foot .btn.ghost { color: #e7f1ef; border-color: rgba(255, 255, 255, 0.3); }
.main { padding: 26px 32px 60px; max-width: 1120px; width: 100%; min-width: 0; }
.side { min-width: 0; }
.center-screen { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.page-head p { margin: 0; }
.back { display: inline-block; margin-bottom: 8px; text-decoration: none; font-size: 14px; }
.code { font-size: 15px; font-weight: 600; color: var(--muted); background: #eceae2; padding: 2px 8px; border-radius: 6px; vertical-align: middle; letter-spacing: 0.02em; }

/* ---------- cards, notices ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; margin-bottom: 16px; }
.card.flush { padding: 0; overflow-x: auto; }
.card.auth { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; padding: 28px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.card-head h2 { margin: 0; }
.notice { background: #eef3f8; border: 1px solid #cfdbe8; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; }
.notice.warn { background: var(--warn-soft); border-color: #f0d49a; }
.notice.error { background: var(--danger-soft); border-color: #f3b9b3; color: #7a1a12; }
.alerts { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.alert { background: #fff; border: 1px solid var(--line); border-left: 4px solid #9aa6b2; border-radius: 8px; padding: 8px 12px; }
.alert.warn { border-left-color: #d9920a; background: #fffaf0; }
.alert.danger { border-left-color: var(--danger); background: #fff5f4; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 7px 14px;
  border: 1px solid #c9c6ba; border-radius: 8px; background: #fff; color: var(--ink); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn:hover { background: #f7f6f1; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { background: var(--accent-ink); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent-ink); }
.btn.ghost:hover { background: rgba(15, 118, 110, 0.08); }
.btn.danger { color: var(--danger); border-color: #e7b3ad; }
.btn.small { min-height: 32px; padding: 4px 10px; font-size: 13.5px; }
.btn.block { width: 100%; }
.btn:disabled, .btn.disabled { opacity: 0.55; cursor: not-allowed; pointer-events: none; }
.btn:focus-visible, .link:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, .tabs button:focus-visible, .thumb:focus-visible, a:focus-visible {
  outline: 3px solid rgba(15, 118, 110, 0.35); outline-offset: 1px;
}
.btn-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.btn-row.end { justify-content: flex-end; }
.btn-row .push { margin-left: auto; }
.link { background: none; border: 0; padding: 4px 6px; font: inherit; color: var(--accent-ink); cursor: pointer; text-decoration: underline; }
.link.danger { color: var(--danger); }
.icon-btn { background: none; border: 0; font-size: 22px; line-height: 1; width: 34px; height: 34px; border-radius: 8px; cursor: pointer; color: var(--muted); }
.icon-btn:hover { background: #f0eee7; color: var(--ink); }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field.inline { flex-direction: row; align-items: center; gap: 8px; }
.label { font-size: 13px; font-weight: 600; color: #3d4955; }
input, select, textarea {
  font: inherit; color: inherit; background: #fff; border: 1px solid #c9c6ba; border-radius: 8px; padding: 8px 10px; width: 100%; min-height: 38px;
}
textarea { resize: vertical; line-height: 1.45; }
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; min-height: 0; flex: none; accent-color: var(--accent); }
input[type="color"] { padding: 2px; width: 64px; }
input:disabled { background: #f3f2ec; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .wide { grid-column: 1 / -1; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.top-gap { margin-top: 14px; }
.check { display: flex; align-items: center; gap: 9px; margin: 12px 0 6px; font-weight: 500; }
.inline-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inline-form input { width: 240px; max-width: 100%; }
.searchbar { display: flex; gap: 8px; flex: 1; max-width: 460px; min-width: 240px; }
.search-wide { margin-bottom: 14px; min-height: 44px; font-size: 16px; }

/* ---------- chips ---------- */
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: #eceae2; color: #45505c; white-space: nowrap; vertical-align: middle; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.danger { background: var(--danger-soft); color: var(--danger); }
.chip.returning { background: #e6e9fb; color: #2f3c9e; }
.chip.new { background: var(--accent-soft); color: var(--accent-ink); }
.chip-row { display: inline-flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.due { color: var(--danger); font-weight: 700; }

/* ---------- dashboard ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; margin-bottom: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; }
.tile-num { font-size: 24px; font-weight: 700; letter-spacing: -0.01em; }
.tile-label { color: var(--muted); font-size: 13px; }
.tile.attention { border-color: #f0d49a; background: #fffaf0; }

/* ---------- lists and tables ---------- */
.rows, .timeline { list-style: none; margin: 0; padding: 0; }
.rows li + li, .timeline li + li { border-top: 1px solid var(--line); }
.row-link, .row-static { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 6px; text-decoration: none; color: inherit; border-radius: 8px; }
.row-link:hover { background: #f7f6f1; }
.row-link > div:first-child, .row-static > div:first-child { min-width: 0; }
.row-end { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; flex: none; max-width: 50%; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table.compact th, .table.compact td { padding: 8px 10px; }
.table .num { text-align: right; white-space: nowrap; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover { background: #f7f6f1; }
.table tr.inactive { color: var(--muted); }
.table td a { text-decoration: none; }
.table-wrap { overflow-x: auto; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button.active { color: var(--accent-ink); border-bottom-color: var(--accent); }
.totals { display: flex; gap: 28px; flex-wrap: wrap; margin-bottom: 8px; }
.totals div { display: flex; flex-direction: column; }
.totals strong { font-size: 20px; }

/* ---------- new patient: returning-patient panel ---------- */
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.match-panel { position: sticky; top: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); }
.match { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 10px; background: #fff; }
.match.high { border-color: #e9b949; background: #fffbef; }
.match-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.match-facts { display: flex; flex-direction: column; font-size: 13.5px; margin-top: 4px; }
.match .btn-row { margin-top: 8px; }

/* ---------- prescription ---------- */
.rx { border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; margin-top: 12px; background: #fcfcfa; }
.rx.signed { background: #f6fbf8; border-color: #cfe6d7; }
.rx-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.rx-head h3 { margin: 0; font-size: 15px; }
.rx-mark { color: var(--accent); font-size: 20px; font-weight: 700; margin-right: 4px; }
.med-table { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.med-row { display: grid; grid-template-columns: 2.2fr 1fr 1.3fr 1fr 1.5fr 34px; gap: 6px; align-items: center; }
.med-head { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; }
.med-summary { margin: 0 0 10px; padding-left: 20px; }
.med-summary li { margin-bottom: 2px; }
.sign-box { border: 1px dashed #b9b6aa; border-radius: 10px; padding: 12px; text-align: center; background: #fff; margin: 10px 0; }
.sign-box img { max-width: 260px; max-height: 90px; display: block; margin: 0 auto 6px; }

/* ---------- signature pad ---------- */
.sigpad canvas { width: 100%; display: block; background: #fff; border: 1px solid #b9b6aa; border-radius: 10px; touch-action: none; cursor: crosshair;
  background-image: linear-gradient(#d9d6cc, #d9d6cc); background-size: calc(100% - 40px) 1px; background-repeat: no-repeat; background-position: 20px calc(100% - 36px); }
.sigpad-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 4px; font-size: 13px; }

/* ---------- files ---------- */
.upload-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.upload-bar select { width: auto; }
.folder h3 { margin-top: 14px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.thumb { border: 1px solid var(--line); border-radius: 8px; background: #fff; padding: 0; overflow: hidden; cursor: pointer; display: flex; flex-direction: column; font: inherit; }
.thumb img, .thumb-doc { width: 100%; aspect-ratio: 1; object-fit: cover; display: grid; place-items: center; background: #f0eee7; color: var(--muted); font-weight: 700; }
.thumb-cap { font-size: 12px; color: var(--muted); padding: 4px 6px; text-align: left; }
.viewer { max-width: 100%; max-height: 68vh; display: block; margin: 0 auto; border-radius: 6px; }
.viewer.doc { width: 100%; height: 68vh; border: 1px solid var(--line); }
.lh-preview { max-height: 220px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; display: block; margin-bottom: 4px; }
.pay-form { display: grid; grid-template-columns: 1fr 1fr 1fr 1.4fr auto; gap: 10px; align-items: end; margin-bottom: 14px; }
.mode-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0 14px; }
.mode { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; cursor: pointer; }
.mode.active { border-color: var(--accent); background: var(--accent-soft); }
.mode span { display: flex; flex-direction: column; }
.mode input { margin-top: 3px; }

/* ---------- reports and ask ---------- */
.report-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 8px; margin-bottom: 14px; }
.report-btn { text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; font: inherit; cursor: pointer; display: flex; flex-direction: column; gap: 2px; }
.report-btn span { color: var(--muted); font-size: 13px; }
.report-btn.active { border-color: var(--accent); background: var(--accent-soft); }
.chat { display: flex; flex-direction: column; gap: 10px; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 12px; }
.bubble.user { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 4px; }
.bubble.assistant { align-self: flex-start; background: #f3f2ec; border-bottom-left-radius: 4px; }
.bubble.failed { background: var(--danger-soft); color: #7a1a12; }
.answer p:last-child, .answer ul:last-child { margin-bottom: 0; }
.answer ul { margin: 0 0 10px; padding-left: 20px; }
.answer .table { background: #fff; border-radius: 6px; margin-bottom: 10px; }
.queries { margin-top: 8px; font-size: 13px; }
.queries summary { cursor: pointer; color: var(--muted); }
.queries pre { background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 8px; overflow-x: auto; white-space: pre-wrap; margin: 6px 0 0; font-size: 12.5px; }
.starters { display: flex; flex-wrap: wrap; gap: 8px; }
.starter { background: #fff; border: 1px solid #c9c6ba; border-radius: 999px; padding: 7px 14px; font: inherit; cursor: pointer; text-align: left; }
.starter:hover { border-color: var(--accent); }
.chat-form { display: flex; gap: 8px; margin-top: 6px; }

/* ---------- modal, toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(18, 28, 38, 0.5); display: grid; place-items: center; padding: 16px; z-index: 50; overflow-y: auto; }
.modal { background: #fff; border-radius: 12px; padding: 20px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25); }
.modal.wide { max-width: 820px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.modal-head h2 { margin: 0; overflow-wrap: anywhere; }
.toasts { position: fixed; bottom: 18px; left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; z-index: 60; width: max-content; max-width: calc(100vw - 32px); }
.toast { background: #17332f; color: #fff; padding: 10px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2); }
.toast.error { background: #8f1d14; }

/* ---------- small screens (tablet at the chair, phone at reception) ---------- */
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 14px; gap: 10px; }
  .side .btn.block { width: auto; order: 2; margin-left: auto; }
  .side nav { flex-direction: row; order: 3; width: 100%; overflow-x: auto; }
  .side nav a { white-space: nowrap; padding: 7px 11px; }
  .side-foot { order: 2; margin: 0; border: 0; padding: 0; }
  .side-foot .who { display: none; }
  .main { padding: 18px 16px 60px; }
  .split { grid-template-columns: 1fr; }
  .match-panel { position: static; order: -1; }
  .pay-form { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .form-grid { grid-template-columns: 1fr; }
  .med-row { grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
  .med-row input:first-child { grid-column: 1 / -1; }
  .med-head { display: none; }
  .row-link, .row-static { flex-direction: column; align-items: flex-start; }
  .row-end { max-width: 100%; justify-content: flex-start; }
  .clip { max-width: 80vw; }
  h1 { font-size: 22px; }
  .bubble { max-width: 100%; }
}

/* ---------- treatments ---------- */
.treat { border: 1px solid var(--line); border-left: 4px solid #6b78d6; border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: #fff; }
.treat.completed { border-left-color: #3f9a62; background: #fafcfb; }
.treat.stopped { border-left-color: #9aa6b2; background: #fafafa; }
.treat-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.treat-head h3 { margin: 0 0 2px; font-size: 16px; }
.treat-new { border: 1px dashed #b9b6aa; border-radius: 10px; padding: 14px 16px; background: #fcfcfa; }
.treat-link { border-left: 4px solid #6b78d6; }
.totals.small { gap: 22px; margin-bottom: 0; }
.totals.small strong { font-size: 17px; }
.inset { background: #f7f6f1; border-radius: 8px; padding: 12px; margin-top: 10px; }
.charge-form { display: grid; grid-template-columns: 2fr 1fr auto; gap: 10px; align-items: start; }
.charge-form .btn, .pay-form .btn { align-self: end; }
.charge-form .btn { margin-top: 23px; align-self: start; }
.treat-details { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 4px; }
.treat-details h4 { margin: 12px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.sittings { margin: 0; padding-left: 20px; }
.sittings li { margin-bottom: 3px; }

/* ---------- pad layout editor ---------- */
.pad-setup { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 20px; align-items: start; margin: 6px 0 10px; }
.pad-editor { position: relative; border: 1px solid #b9b6aa; border-radius: 4px; overflow: hidden; touch-action: none; user-select: none; background: #fff; }
.pad-editor img { display: block; width: 100%; pointer-events: none; }
.pad-area { position: absolute; left: 0; right: 0; background: rgba(15, 118, 110, 0.1); display: grid; place-items: center; pointer-events: none; }
.pad-area span { background: rgba(255, 255, 255, 0.85); padding: 2px 8px; border-radius: 4px; font-size: 12px; color: var(--accent-ink); }
.pad-line { position: absolute; left: 0; right: 0; height: 22px; margin-top: -11px; padding: 0; border: 0; background: none; cursor: ns-resize; font: inherit; display: flex; justify-content: flex-end; align-items: center; z-index: 2; }
.pad-line::before { content: ""; position: absolute; left: 0; right: 0; top: 10px; border-top: 2px solid var(--accent); }
.pad-line span { position: relative; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 4px; margin-right: 6px; }
.pad-dot { position: absolute; width: 16px; height: 16px; margin: -15px 0 0 -2px; padding: 0; border: 0; background: none; cursor: move; z-index: 3; }
.pad-dot::before { content: ""; position: absolute; left: 0; bottom: 0; width: 2px; height: 16px; background: #1d4ed8; }
.pad-dot span { position: absolute; left: 2px; bottom: 0; background: #1d4ed8; color: #fff; font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 0 4px 4px 0; white-space: nowrap; line-height: 16px; }
.pad-options p { margin-bottom: 8px; }
input.pin { width: 150px; letter-spacing: 0.25em; }
.inline-form input.pin { width: 190px; letter-spacing: normal; }
.two-step { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.two-step img { width: 170px; height: 170px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.two-step > div { flex: 1; min-width: 240px; }
.two-step code { word-break: break-all; }
.notice.test-mode { background: #b42318; border-color: #8f1d14; color: #fff; }

@media (max-width: 900px) {
  .pad-setup { grid-template-columns: 1fr; }
  .treat-details { grid-template-columns: 1fr; }
  .charge-form { grid-template-columns: 1fr 1fr; }
}

/* ---------- product name with the clinic's name beneath ---------- */
.brand-text { display: flex; flex-direction: column; line-height: 1.15; letter-spacing: 0.06em; min-width: 0; }
.brand-text small { font-size: 12px; font-weight: 500; letter-spacing: 0; color: #9db8b4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
