[hidden] { display: none !important; }
/* Daftar — mobile-first, no build step. Logical properties (inline-start/end) keep RTL text correct. */
:root {
  --brand: #0f766e;
  --brand-dark: #115e59;
  --bg: #f4f6f5;
  --card: #ffffff;
  --text: #1f2933;
  --muted: #64748b;
  --line: #e2e8f0;
  --in: #ffffff;
  --out: #dcf3ee;
  --warn: #b45309;
  --error: #b91c1c;
  --radius: 12px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", "Noto Nastaliq Urdu", "Noto Naskh Arabic", sans-serif;
  background: var(--bg); color: var(--text); font-size: 16px; line-height: 1.45;
}
a { color: var(--brand-dark); }
h1 { font-size: 1.4rem; margin: 0 0 1rem; }
h2 { font-size: 1.1rem; margin: 0 0 .75rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.mono { font-family: ui-monospace, Consolas, monospace; }
.break { word-break: break-all; }

.demo-banner { background: #fef3c7; color: #78350f; padding: .5rem 1rem; font-size: .85rem; text-align: center; }

.topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .75rem 1rem; background: var(--brand); color: #fff; }
.topbar a, .topbar .brand { color: #fff; text-decoration: none; }
.brand { font-weight: 700; font-size: 1.1rem; }
.brand img { display: block; height: 24px; width: auto; }
.topbar { flex-wrap: nowrap; position: sticky; top: 0; z-index: 20; }
.nav { display: flex; gap: .25rem; align-items: center; font-size: .95rem; margin-inline-end: auto; margin-inline-start: 1rem; }
.nav a { padding: .45rem .75rem; border-radius: 8px; opacity: .9; white-space: nowrap; }
.nav a:hover { background: rgba(255, 255, 255, .12); opacity: 1; }
.nav a[aria-current="page"] { background: rgba(255, 255, 255, .2); opacity: 1; font-weight: 600; }

/* Account menu (top right) */
.account-menu { position: relative; }
.account-menu > summary { list-style: none; display: flex; align-items: center; gap: .5rem; cursor: pointer; padding: .3rem .5rem; border-radius: 999px; }
.account-menu > summary::-webkit-details-marker, .more > summary::-webkit-details-marker { display: none; }
.account-menu > summary:hover, .account-menu[open] > summary { background: rgba(255, 255, 255, .12); }
.account-menu .avatar { display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: #fff; color: var(--brand); font-weight: 700; }
.account-name { max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }
.menu-panel { position: absolute; inset-inline-end: 0; top: calc(100% + .4rem); min-width: 230px; background: #fff; color: var(--text); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: 0 12px 30px rgba(0, 0, 0, .15); padding: .4rem; display: grid; z-index: 30; }
.menu-panel a, .menu-logout, .more-sheet a { color: var(--text) !important; text-decoration: none; padding: .6rem .75rem; border-radius: 8px; text-align: start; }
.menu-panel a:hover, .menu-logout:hover, .more-sheet a:hover { background: var(--bg, #f1f5f9); }
.menu-panel a[aria-current="page"], .more-sheet a[aria-current="page"] { color: var(--brand-dark) !important; font-weight: 600; }
.menu-who { display: grid; padding: .5rem .75rem .6rem; margin: 0 0 .25rem; border-bottom: 1px solid var(--line); }
.menu-panel form, .more-sheet form { margin: 0; display: grid; }
.menu-logout { font: inherit; background: none; border: 0; cursor: pointer; color: var(--error) !important; }

/* Phones: bottom tabs + "More" sheet instead of the top menu */
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav, .account-menu { display: none; }
  .has-menu .page { padding-bottom: 5.5rem; }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; inset-inline: 0; bottom: 0; z-index: 25; background: #fff;
    border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
  .tabbar > a, .tabbar summary { display: grid; justify-items: center; gap: .1rem; padding: .45rem .2rem .5rem; font-size: .7rem; color: var(--muted); text-decoration: none; cursor: pointer; list-style: none; }
  .tabbar > a[aria-current="page"], .tabbar .more.current > summary, .tabbar .more[open] > summary { color: var(--brand-dark); font-weight: 600; }
  .more-sheet { position: fixed; inset-inline: .5rem; bottom: calc(4rem + env(safe-area-inset-bottom)); background: #fff; border: 1px solid var(--line); border-radius: 14px;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, .15); padding: .4rem; display: grid; }
  .more-sheet a { display: flex; gap: .75rem; align-items: center; }
  .has-menu.chat-page .page { padding-bottom: 0; }
  .has-menu.chat-page .chat { height: calc(100dvh - 56px - 58px - env(safe-area-inset-bottom)); }
}

.page { max-width: 960px; margin: 0 auto; padding: 1rem; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-block-end: 1rem; }
.narrow { max-width: 420px; margin-inline: auto; }

.form { display: grid; gap: .75rem; }
.form label { display: grid; gap: .3rem; font-weight: 600; font-size: .9rem; }
input, textarea, select { font: inherit; padding: .6rem .7rem; border: 1px solid var(--line); border-radius: 8px; width: 100%; background: #fff; }
input[type=checkbox], input[type=radio] { width: 1.15rem; height: 1.15rem; padding: 0; margin: 0; flex: none; vertical-align: middle; accent-color: var(--brand); }
.btn { font: inherit; text-decoration: none; display: inline-block; border: 0; border-radius: 8px; padding: .65rem 1rem; cursor: pointer; background: var(--line); }
.btn.primary { background: var(--brand); color: #fff; }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--brand-dark); text-decoration: underline; cursor: pointer; }
.error, .errorlist { color: var(--error); }
.errorlist { margin: 0; padding-inline-start: 1rem; font-size: .85rem; }
.notice { background: #ecfdf5; border: 1px solid #a7f3d0; padding: .75rem; border-radius: 8px; }
.flash { list-style: none; padding: 0; margin: 0 0 1rem; }
.flash li { background: #ecfdf5; border: 1px solid #a7f3d0; padding: .6rem .8rem; border-radius: 8px; margin-block-end: .5rem; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: .75rem; margin-block-end: 1rem; }
.tile { display: grid; gap: .25rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; text-decoration: none; color: var(--text); }
.tile.attention { border-color: var(--warn); }
.tile-title { font-weight: 700; }
.tile-num { font-size: 1.6rem; font-weight: 700; }

.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { text-align: start; padding: .5rem; border-block-end: 1px solid var(--line); vertical-align: top; }
.table .actions { display: flex; gap: .75rem; flex-wrap: wrap; }
.table .actions form { margin: 0; }
.table tr.inactive td { color: var(--muted); }
@media (max-width: 640px) { .table { display: block; overflow-x: auto; } }
.list { list-style: none; padding: 0; margin: 0; }
.list li { padding: .6rem 0; border-block-end: 1px solid var(--line); display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.badge { background: #fef3c7; color: #78350f; border-radius: 999px; padding: .1rem .5rem; font-size: .75rem; }
.fields { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; margin: 0; }
.fields dt { font-weight: 600; color: var(--muted); }
.fields dd { margin: 0; }

/* Chat */
.chat-page .page { padding: 0; max-width: 720px; }
.chat { display: flex; flex-direction: column; height: calc(100dvh - 56px); background: #ece5dd; }
.customer .chat { height: calc(100dvh - 56px); }
.customer:has(.powered) .chat { height: calc(100dvh - 82px); }
.powered a { color: inherit; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem .75rem; display: flex; flex-direction: column; gap: .5rem; }
.bubble { max-width: 85%; padding: .5rem .7rem; border-radius: var(--radius); background: var(--in); box-shadow: 0 1px 1px rgba(0,0,0,.08); }
.bubble.in { align-self: flex-end; background: var(--out); border-end-end-radius: 4px; }
.bubble.out { align-self: flex-start; border-end-start-radius: 4px; }
.bubble .text { white-space: normal; overflow-wrap: anywhere; }
.bubble img { max-width: 100%; border-radius: 8px; display: block; }
.bubble audio { max-width: 240px; }
.bubble .meta { font-size: .7rem; color: var(--muted); text-align: end; margin-block-start: .2rem; }
.thread { display: flex; flex-direction: column; gap: .5rem; background: #ece5dd; }
.buttons { display: flex; flex-wrap: wrap; gap: .4rem; margin-block-start: .5rem; }
.chat-btn { font: inherit; font-size: .9rem; border: 1px solid var(--brand); color: var(--brand-dark); background: #fff; border-radius: 999px; padding: .35rem .8rem; cursor: pointer; }
.chat-btn:disabled { opacity: .5; cursor: default; }
.chat-btn.chosen { background: var(--brand); color: #fff; opacity: 1; }
.typing { align-self: flex-start; background: var(--in); border-radius: var(--radius); padding: .6rem .8rem; display: flex; gap: .25rem; }
.typing[hidden] { display: none; }
.typing span { width: 7px; height: 7px; background: var(--muted); border-radius: 50%; animation: blink 1.2s infinite; }
.typing span:nth-child(2) { animation-delay: .2s; } .typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .2; } 40% { opacity: 1; } }
.chat-error { margin: 0; padding: .4rem .75rem; background: #fee2e2; color: var(--error); font-size: .85rem; }
.composer { display: flex; gap: .4rem; align-items: flex-end; padding: .5rem; background: #f0f0f0; }
.composer textarea { resize: none; max-height: 8rem; border-radius: 20px; padding: .55rem .9rem; }
.icon-btn { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; background: #fff; font-size: 1.2rem; cursor: pointer; display: grid; place-items: center; }
.icon-btn.send { background: var(--brand); color: #fff; }
.icon-btn.active { background: var(--error); color: #fff; }
.recording { padding: .4rem .75rem; background: #fee2e2; color: var(--error); font-size: .9rem; }
.recording[hidden] { display: none; }
.powered { text-align: center; padding: .25rem; }

/* Order desk and shared dashboard pieces */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-block-end: .75rem; }
.row-between h1 { margin: 0; }
.tabs { display: flex; gap: .25rem; flex-wrap: wrap; margin-block-end: .75rem; }
.tabs a { padding: .4rem .8rem; border-radius: 999px; background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--text); font-size: .9rem; }
.tabs a.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.search { margin-block-end: .75rem; }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; margin-inline-start: auto; }
td.amount, th.amount { text-align: end; }
.status { font-size: .75rem; border-radius: 999px; padding: .1rem .55rem; background: var(--line); white-space: nowrap; }
.s-awaiting_confirmation { background: #fef3c7; color: #78350f; }
.s-draft { background: #e0e7ff; color: #3730a3; }
.s-invoiced, .s-confirmed { background: #dcfce7; color: #166534; }
.s-paid, .s-delivered { background: #ccfbf1; color: #115e59; }
.s-cancelled { background: #f1f5f9; color: var(--muted); text-decoration: line-through; }
.line { border: 1px solid var(--line); border-radius: 10px; padding: .6rem; display: grid; gap: .4rem; }
.line.problem { border-color: var(--warn); background: #fffbeb; }
.line.add { border-style: dashed; }
.line-fields { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; }
.line-fields select { flex: 1 1 14rem; width: auto; }
.line-fields .qty { width: 5.5rem; flex: none; }
.line-fields .batch { width: 7.5rem; flex: none; }
.line-fields .expiry { width: 6rem; flex: none; }
.line-fields select[name$="-unit"], .line-fields select[name="new-unit"] { flex: 0 1 7rem; }
.line-fields .remove { font-weight: 400; font-size: .8rem; display: flex; gap: .25rem; align-items: center; }
.line-fields .remove input { width: auto; }
.notice.warn { background: #fffbeb; border-color: #fcd34d; color: #78350f; }
.actions-row { display: flex; gap: .5rem; flex-wrap: wrap; }
.actions-row form { margin: 0; }
.link.danger { color: var(--error); }
.pre { white-space: pre-wrap; }
.scroll { overflow-x: auto; }
.mapping { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .5rem; }
.check { display: flex !important; flex-direction: row; gap: .5rem; align-items: center; font-weight: 400 !important; }
.check input { width: auto; }
.totals { margin-block: .5rem; }
.totals dd { text-align: end; font-variant-numeric: tabular-nums; }
details.card summary { cursor: pointer; font-weight: 600; }

.embedded .demo-banner { font-size: .7rem; padding: .25rem .5rem; }
/* Embedded (widget/landing iframe): banner + header + chat fill the frame exactly, whatever their heights. */
body.embedded { height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.embedded .page { flex: 1; min-height: 0; width: 100%; }
.embedded .chat { height: 100%; }
.choices { display: grid; gap: .6rem; margin-block-end: 1rem; }
.choice { display: grid; gap: .2rem; text-align: start; background: var(--card); border: 2px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; font: inherit; color: var(--text); cursor: pointer; text-decoration: none; }
.choice:hover, .choice.selected { border-color: var(--brand); }
.choice.soon { opacity: .75; }
.price-row { display: grid !important; grid-template-columns: 1fr 7rem; align-items: center; gap: .5rem; font-weight: 400 !important; }
.welcome { border-color: var(--brand); background: #f0fdfa; }
.qr img { display: block; margin-block: .5rem; image-rendering: pixelated; }

/* Admissions desk */
.t-hot { background: #fee2e2; color: #991b1b; }
.t-warm { background: #fef3c7; color: #78350f; }
.t-cold { background: #e0f2fe; color: #075985; }
.s-new { background: #e0e7ff; color: #3730a3; }
.s-contacted, .s-visit { background: #fef3c7; color: #78350f; }
.s-enrolled { background: #dcfce7; color: #166534; }
.s-lost { background: #f1f5f9; color: var(--muted); }
.s-due { background: #ffedd5; color: #9a3412; }
.card.inactive { opacity: .6; }

/* Plans and usage */
.meter-row { margin-block: .6rem; }
.meter { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: .25rem; }
.meter span { display: block; height: 100%; background: var(--brand); }
.meter.high span { background: #d97706; }
.meter.full span { background: var(--error); }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .75rem; }
.plan-card { border: 1px solid var(--line); border-radius: var(--radius); padding: .75rem 1rem; }
.plan-card.current { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand); }
.plan-card h3 { margin: 0 0 .25rem; font-size: 1rem; }
.plan-price { font-weight: 700; font-size: 1.2rem; margin: 0 0 .5rem; }
.plan-card ul { margin: 0; padding-inline-start: 1.1rem; }
.checklist { display: grid; gap: 1rem; padding-inline-start: 1.25rem; margin: .75rem 0; }
.checklist .actions-row { margin-top: .5rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.review-table td { padding: .3rem; } .review-table td:first-child { width: 2rem; vertical-align: middle; } .review-table td:last-child { width: 7rem; }
.review-table input[type=checkbox] { width: auto; }

/* Editable rows: a header line on wide screens, captions on each field on phones */
.rows-box { display: grid; gap: .4rem; margin-block: .25rem .75rem; }
.rows-head, .row-fields { display: grid; gap: .5rem; align-items: center; grid-template-columns: var(--cols); }
.rows-head { font-size: .8rem; font-weight: 600; color: var(--muted); padding-inline: .1rem; }
.row-fields { margin-block-end: .4rem; }
.row-fields > label { display: block; margin: 0; font-weight: 400; }
.row-fields .cap { display: none; font-size: .75rem; color: var(--muted); margin-block-end: .15rem; }
.row-remove { width: 2.2rem; height: 2.2rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--muted); }
.row-remove:hover { color: var(--error); border-color: var(--error); }
.btn.add-row { justify-self: start; background: #fff; border: 1px dashed var(--brand); color: var(--brand-dark); }
.cols-course { --cols: minmax(0, 2fr) minmax(0, 1.2fr) 7rem 9rem 2.2rem; }
.cols-batch { --cols: minmax(0, 1.2fr) minmax(0, 1fr) 7.5rem 7.5rem 4.5rem 2.2rem; }
.cols-hours { --cols: minmax(0, 1fr) 8rem 8rem 2.2rem; }
.cols-faq { --cols: minmax(0, 1fr) minmax(0, 1.3fr) 2.2rem; }
.cols-fee { --cols: minmax(0, 1fr) 9rem 2.2rem; }
.cols-word { --cols: minmax(0, 1fr) 2.2rem; }
label.choice .check { display: flex; gap: .5rem; align-items: center; }
.safety { border-color: #fde68a; background: #fffbeb; }
.wizard-note { margin: 0 0 .75rem; }
details.card > summary { cursor: pointer; font-weight: 600; }
@media (max-width: 640px) {
  .rows-head { display: none; }
  .row-fields { grid-template-columns: 1fr 1fr; padding: .6rem; border: 1px solid var(--line); border-radius: 8px; position: relative; }
  .row-fields .cap { display: block; }
  .row-fields > label:first-of-type { grid-column: 1 / -1; padding-inline-end: 2.6rem; }
  .cols-faq > label, .cols-batch > label:nth-of-type(2) { grid-column: 1 / -1; }
  .row-remove { position: absolute; top: .5rem; right: .5rem; }
}
.field-title { font-weight: 600; font-size: .9rem; margin: .25rem 0 0; }

/* Clinic follow-up desk */
.s-urgent { background: #fee2e2; color: #991b1b; font-weight: 700; }
.s-to_pay { background: #fef3c7; color: #78350f; }
.s-queued { background: #e0e7ff; color: #3730a3; }
.s-answered { background: #dcfce7; color: #166534; }
.s-visit { background: #ccfbf1; color: #115e59; }
.s-closed { background: #f1f5f9; color: var(--muted); }
.s-due { background: #fde68a; color: #78350f; }
.urgent-notice { background: #fef2f2; border-color: #fecaca; color: #7f1d1d; }
.case-thread { display: grid; gap: .75rem; }
.case-item { border-inline-start: 3px solid var(--line); padding: .25rem 0 .25rem .75rem; }
.case-item p { margin: .15rem 0; }
.case-item.k-answer { border-color: var(--brand); }
.case-item.k-payment { border-color: #f59e0b; }
.case-item.k-note { border-color: #94a3b8; }
.case-photo { max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid var(--line); }
.report-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: .75rem; }
.report-grid figure { margin: 0; }
.pre { white-space: pre-wrap; }

/* Property leads desk */
.cols-listing { --cols: minmax(0, 1.4fr) 5.5rem 10rem 7rem 3.5rem 7.5rem 8rem 2.2rem; }
.cols-listing .span-ref { grid-column: 1 / 2; }
.cols-listing .span-details { grid-column: 2 / 6; }
.cols-listing .span-link { grid-column: 6 / -1; }
.listing-row { padding-block-end: .6rem; border-block-end: 1px solid var(--line); }
.check-row { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-block-end: .5rem; }
input.short { max-width: 5rem; display: inline-block; }
.sticky-actions { position: sticky; bottom: 0; background: var(--card); padding-block: .6rem; z-index: 2; }
.lead-summary { font-weight: 600; }
.rows-filter { margin-block-end: .5rem; }
.s-viewing { background: #ccfbf1; color: #115e59; }
.s-deal { background: #dcfce7; color: #166534; }
@media (max-width: 640px) {
  .cols-listing .span-details, .cols-listing .span-link { grid-column: 1 / -1; }
  .cols-listing .span-ref { grid-column: auto; }
  .listing-row { border-block-end: 1px solid var(--line); }
}

/* School office desk */
.cols-schoolfee { --cols: minmax(0, 1.4fr) 8rem 8rem 8rem 2.2rem; }
.cols-event { --cols: minmax(0, 1.5fr) 9.5rem 9.5rem 6.5rem 2.2rem; }
.s-open { background: #e0e7ff; color: #3730a3; }
.s-replied { background: #dcfce7; color: #166534; }
.s-done { background: #f1f5f9; color: var(--muted); }
.s-seen { background: #f1f5f9; color: var(--muted); }
.case-item.k-reply { border-color: var(--brand); }
.case-item.k-photo { border-color: #f59e0b; }
.class-head { font-size: 1rem; margin: 1rem 0 .25rem; padding-block-end: .2rem; border-block-end: 1px solid var(--line); }
.day-tabs { overflow-x: auto; white-space: nowrap; }
@media print {
  .no-print, header, nav, .site-nav, .demo-banner, footer { display: none !important; }
  .card { border: 0; box-shadow: none; padding: 0; }
  body { background: #fff; }
}

/* Desk chooser */
.choice-row { display: grid; grid-template-columns: 1fr auto; gap: .5rem 1rem; align-items: center; }
.choice-title { display: flex; align-items: center; gap: .5rem; }
.choice-icon { font-size: 1.3rem; line-height: 1; }
.choice-demo { white-space: nowrap; }
@media (max-width: 640px) { .choice-row { grid-template-columns: 1fr; } .choice-demo { justify-self: end; } }

/* Dashboard home: getting started and this week */
.steps-list { list-style: none; padding: 0; margin: .5rem 0 0; display: grid; gap: .75rem; }
.steps-list li { display: grid; grid-template-columns: 1.9rem 1fr; gap: .6rem; align-items: start; }
.steps-list p { margin: .1rem 0 0; }
.step-mark { width: 1.9rem; height: 1.9rem; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .85rem; background: var(--bg); border: 2px solid var(--line); color: var(--muted); }
.steps-list li.done .step-mark { background: var(--brand); border-color: var(--brand); color: #fff; }
.steps-list li.done a { color: var(--muted); text-decoration: line-through; }
.link-button { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; font: inherit; }
.inline-form { display: inline; }
.right { text-align: end; margin-block-start: .5rem; }
.week-card { border-color: var(--brand); }
.kicker-small { text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; font-weight: 700; color: var(--brand); margin: 0; }
.week-big { font-size: 1.15rem; margin: .35rem 0 .5rem; }
.week-big strong { font-size: 1.6rem; color: var(--brand); }
.week-facts { list-style: none; padding: 0; margin: 0 0 .5rem; display: flex; flex-wrap: wrap; gap: .4rem 1.5rem; }

/* Customer chat header: business name with the desk under it */
.chat-brand { display: grid; line-height: 1.15; }
.chat-sub { font-size: .75rem; font-weight: 400; opacity: .85; }

/* Operator console (/ops/) */
.ops-bar { background: #1e293b; }
.ops-tag { font-size: .7rem; background: #f59e0b; color: #1e293b; border-radius: 6px; padding: .05rem .4rem; vertical-align: middle; margin-inline-start: .25rem; }
.ops-logout { color: #fff; }
.page.wide { max-width: 1200px; }
.ops-cards { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.ops-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 1rem; }
.ops-inline { display: flex; flex-wrap: wrap; gap: .5rem; align-items: end; }
.ops-inline label { margin: 0; }
.table-scroll { overflow-x: auto; }
.traceback { white-space: pre-wrap; font-size: .8rem; background: var(--bg); padding: .75rem; border-radius: 8px; max-height: 480px; overflow: auto; }
.btn.danger { border-color: #fca5a5; color: #b91c1c; }

/* Account and data */
.danger-zone { border-color: #fecaca; }
.danger-zone summary { color: #b91c1c; }

/* Pager (templates/_pager.html) */
.pager { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin: 1rem 0; }

/* Two-step login */
.recovery-codes { columns: 2; list-style: none; padding: 0; font-size: 1.05rem; }
.qr-box { margin: .5rem 0; }
.qr-box img { background: #fff; border-radius: 8px; }
.setup-steps li { margin-block-end: .75rem; }
