:root {
  --bg: #f6f7f9;
  --surface: #ffffff;
  --surface-2: #f1f3f5;
  --border: #e4e7eb;
  --text: #16191d;
  --muted: #667085;
  --primary: #0f766e;
  --primary-hover: #0d645d;
  --primary-soft: #e6f4f2;
  --on-primary: #ffffff;
  --danger: #c4320a;
  --danger-soft: #fdeee8;
  --ok: #157f3c;
  --ok-soft: #e7f6ec;
  --warn: #a15c07;
  --warn-soft: #fdf3e1;
  --info: #2459c4;
  --info-soft: #e9f0fd;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 1px 3px rgba(16, 24, 40, .06);
  --radius: 12px;
  --sidebar: 236px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1214;
    --surface: #171b1e;
    --surface-2: #1f2427;
    --border: #2a3034;
    --text: #e8ebed;
    --muted: #98a2ab;
    --primary: #2bb3a3;
    --primary-hover: #3cc4b4;
    --primary-soft: #133a36;
    --on-primary: #06201d;
    --danger: #f2805f;
    --danger-soft: #3a1d14;
    --ok: #5fcf88;
    --ok-soft: #14301f;
    --warn: #f0b45a;
    --warn-soft: #362812;
    --info: #7fa7f5;
    --info-soft: #18243d;
    --shadow: none;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}
[hidden] { display: none !important; }
a { color: var(--primary); text-decoration: none; }
h1, h2, h3 { margin: 0; line-height: 1.25; }
svg.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 16px; }

/* ---------- layout ---------- */
#shell { min-height: 100vh; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar);
  background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; padding: 16px 12px; z-index: 30;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 17px; padding: 4px 8px 20px; }
.brand .logo { width: 30px; height: 30px; border-radius: 8px; background: url(/favicon.svg) center/cover; flex: none; }
.brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar nav { flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: 12px; width: 100%;
  padding: 10px 12px; margin-bottom: 2px; border-radius: 8px; border: 0; background: none;
  color: var(--muted); font: inherit; font-weight: 500; cursor: pointer; text-align: left;
}
.nav-link:hover { background: var(--surface-2); color: var(--text); }
.nav-link.active { background: var(--primary-soft); color: var(--primary); }
main { margin-left: var(--sidebar); min-width: 0; }
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px;
  padding: 14px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px); border-bottom: 1px solid transparent;
}
.topbar h1 { font-size: 22px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.actions { display: flex; gap: 8px; }
.menu-btn { display: none; }
.view { padding: 8px 28px 40px; max-width: 1180px; }
.scrim { display: none; }
.bottom-nav { display: none; }

@media (max-width: 860px) {
  .sidebar { transform: translateX(-100%); transition: transform .2s ease; box-shadow: 0 0 40px rgba(0,0,0,.2); }
  body.drawer .sidebar { transform: none; }
  body.drawer .scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 25; }
  main { margin-left: 0; }
  .menu-btn { display: inline-flex; }
  .topbar { padding: calc(10px + env(safe-area-inset-top)) 16px 10px; }
  .topbar h1 { font-size: 19px; }
  .view { padding: 4px 16px calc(88px + env(safe-area-inset-bottom)); }
  .bottom-nav {
    display: grid; grid-template-columns: repeat(5, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 20;
    background: var(--surface); border-top: 1px solid var(--border);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
  }
  .bottom-nav button {
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    border: 0; background: none; color: var(--muted); font: inherit; font-size: 11px; font-weight: 500; padding: 4px 0; cursor: pointer;
  }
  .bottom-nav button.active { color: var(--primary); }
  .hide-sm { display: none !important; }
  .btn .lbl { display: none; }
  .btn.keep-lbl .lbl { display: inline; }
}

/* ---------- components ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card-pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-head h3 { font-size: 15px; flex: 1; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.kpi { padding: 16px 18px; }
.kpi .label { color: var(--muted); font-size: 13px; font-weight: 500; }
.kpi .value { font-size: 24px; font-weight: 700; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .value.neg { color: var(--danger); }
@media (max-width: 860px) {
  .grid-2, .grid-3 { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi .value { font-size: 19px; }
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font: inherit; font-weight: 600; font-size: 14px;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { background: var(--primary-hover); }
.btn.danger { color: var(--danger); }
.btn.sm { height: 32px; padding: 0 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px;
  border-radius: 10px; border: 0; background: none; color: var(--muted); cursor: pointer;
}
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

label.field { display: block; }
label.field > span { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--border); border-radius: 10px;
  background: var(--surface); color: var(--text); font: inherit; font-size: 16px;
}
textarea { height: auto; min-height: 76px; padding: 10px 12px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid color-mix(in srgb, var(--primary) 40%, transparent); border-color: var(--primary); }
.form { display: grid; gap: 14px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 6px; }
.form-actions .left { margin-right: auto; }

.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 16px; }
.toolbar .search { flex: 1 1 220px; position: relative; }
.toolbar .search input { padding-left: 38px; }
.toolbar .search svg { position: absolute; left: 11px; top: 11px; color: var(--muted); }
.toolbar input[type=date] { width: auto; flex: 0 1 160px; }
.chips { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.chip {
  border: 1px solid var(--border); background: var(--surface); color: var(--muted);
  border-radius: 999px; padding: 6px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.chip.active { background: var(--text); border-color: var(--text); color: var(--surface); }

/* list rows (work on desktop and mobile) */
.list { list-style: none; margin: 0; padding: 0; }
.list > li { border-top: 1px solid var(--border); }
.list > li:first-child { border-top: 0; }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 18px; color: inherit; cursor: pointer; }
a.item:hover, .item.clickable:hover { background: var(--surface-2); }
.item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .sub { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .amt { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--primary-soft); color: var(--primary); font-weight: 700; font-size: 14px;
}
.empty { padding: 36px 18px; text-align: center; color: var(--muted); }

.badge { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.b-received { background: var(--info-soft); color: var(--info); }
.b-washing { background: var(--warn-soft); color: var(--warn); }
.b-ready { background: var(--ok-soft); color: var(--ok); }
.b-collected { background: var(--surface-2); color: var(--muted); }
.b-paid { background: var(--ok-soft); color: var(--ok); }
.b-partial { background: var(--warn-soft); color: var(--warn); }
.b-unpaid { background: var(--danger-soft); color: var(--danger); }

.status-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.status-tile { padding: 14px; border-radius: 10px; text-align: left; border: 0; font: inherit; cursor: pointer; color: inherit; }
.status-tile .n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; }
.status-tile .l { font-size: 13px; font-weight: 600; }
@media (max-width: 520px) { .status-tiles { grid-template-columns: repeat(2, 1fr); } }

.steps { display: flex; gap: 6px; flex-wrap: wrap; }
.steps .chip.done { background: var(--primary-soft); border-color: transparent; color: var(--primary); }

table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
table.t th, table.t td { padding: 10px 18px; text-align: left; border-top: 1px solid var(--border); }
table.t th { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .03em; border-top: 0; }
table.t td.num, table.t th.num { text-align: right; }
.scroll-x { overflow-x: auto; }

.totals { display: grid; gap: 6px; padding: 14px 18px; border-top: 1px solid var(--border); }
.totals .row { justify-content: space-between; }
.totals .big { font-size: 17px; font-weight: 700; }

/* order item editor */
.items-editor .line { display: grid; grid-template-columns: 1fr 90px 110px 100px 36px; gap: 8px; align-items: center; margin-bottom: 8px; }
.items-editor .line .amount { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.items-editor .head { color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 4px; }
.quick-services { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
@media (max-width: 640px) {
  .items-editor .line { grid-template-columns: 1fr 1fr 36px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; }
  .items-editor .line .desc { grid-column: 1 / -1; }
  .items-editor .line .amount { grid-column: 1 / 3; text-align: left; }
  .items-editor .line .rm { grid-row: 3; grid-column: 3; }
  .items-editor .head { display: none; }
}

/* chart */
.chart { width: 100%; height: 220px; display: block; }
.chart .bar-in { fill: var(--primary); }
.chart .bar-out { fill: var(--warn); opacity: .75; }
.chart text { fill: var(--muted); font-size: 11px; }
.chart line { stroke: var(--border); }
.legend { display: flex; gap: 16px; font-size: 13px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.hbar { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin-top: 6px; }
.hbar > div { height: 100%; background: var(--primary); border-radius: 4px; }

/* modal & toast */
.modal { position: fixed; inset: 0; z-index: 50; background: rgba(10, 14, 18, .45); display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px; overflow-y: auto; }
.modal-card { background: var(--surface); border-radius: 16px; width: 100%; max-width: 520px; box-shadow: 0 20px 60px rgba(0,0,0,.25); }
.modal-head { display: flex; align-items: center; padding: 16px 18px 4px; }
.modal-head h2 { flex: 1; font-size: 18px; }
#modal-body { padding: 12px 18px 18px; }
@media (max-width: 640px) {
  .modal { align-items: flex-end; padding: 0; }
  .modal-card { border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: env(safe-area-inset-bottom); }
}
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60;
  background: var(--text); color: var(--surface); padding: 10px 18px; border-radius: 10px; font-weight: 500; box-shadow: 0 8px 30px rgba(0,0,0,.2);
  max-width: calc(100vw - 32px);
}
.toast.error { background: var(--danger); color: #fff; }
@media (max-width: 860px) { .toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }

/* auth */
#auth { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.auth-card { width: 100%; max-width: 400px; padding: 28px; }
.auth-card .brand { justify-content: center; padding: 0 0 6px; font-size: 22px; }
.auth-card .brand .logo { width: 38px; height: 38px; }
.auth-card p.tag { text-align: center; color: var(--muted); margin: 0 0 22px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14px; color: var(--muted); }
.error-msg { color: var(--danger); font-size: 14px; font-weight: 500; }

/* receipt */
.receipt { max-width: 380px; margin: 0 auto; padding: 24px; font-size: 14px; }
.receipt h2 { text-align: center; font-size: 18px; }
.receipt .center { text-align: center; }
.receipt hr { border: 0; border-top: 1px dashed var(--border); margin: 14px 0; }
.receipt table { width: 100%; border-collapse: collapse; }
.receipt td { padding: 3px 0; vertical-align: top; }
.receipt td:last-child { text-align: right; white-space: nowrap; }
.receipt .total td { font-weight: 700; font-size: 15px; }
.print-bar { display: flex; gap: 10px; justify-content: center; margin: 16px 0; flex-wrap: wrap; }

@media print {
  body { background: #fff; color: #000; }
  .sidebar, .topbar, .bottom-nav, .print-bar, .toast, .scrim { display: none !important; }
  main { margin: 0; }
  .view { padding: 0; }
  .receipt { border: 0; box-shadow: none; padding: 0; }
}

/* additions */
.grid-main { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
@media (max-width: 860px) { .grid-main { grid-template-columns: minmax(0, 1fr); } }
.items-editor label.mini { display: block; }
.items-editor label.mini small { display: none; }
@media (max-width: 640px) {
  .items-editor label.mini small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; margin-bottom: 2px; }
}
@media (max-width: 860px) { .btn .lbl.keep { display: inline; } }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--muted); font-size: 11px; font-weight: 500; padding: 4px 0; }
.bottom-nav a.active { color: var(--primary); }
@media print {
  :root { --text: #000; --muted: #444; --border: #999; --surface: #fff; --surface-2: #fff; color-scheme: light; }
}

/* roles & team */
.role-admin { background: var(--primary-soft); color: var(--primary); }
.role-manager { background: var(--info-soft); color: var(--info); }
.role-staff { background: var(--surface-2); color: var(--muted); }
label.check { display: flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
label.check input { width: 18px; height: 18px; flex: none; accent-color: var(--primary); }
.sidebar .me { border-top: 1px solid var(--border); margin: 8px -12px 4px; padding: 12px 20px 8px; }
.sidebar .me .avatar { width: 32px; height: 32px; font-size: 12px; }
.invoice-actions { flex-wrap: wrap; gap: 8px; }
.invoice-actions .btn { height: 36px; padding: 0 12px; font-size: 13px; }
details.help { font-size: 13px; color: var(--muted); }
details.help summary { cursor: pointer; color: var(--primary); font-weight: 600; }
details.help ol { margin: 8px 0 0; padding-left: 20px; }
details.help li { margin-bottom: 4px; }

/* account status & Global Administrator portal */
.st-pending { background: var(--warn-soft); color: var(--warn); }
.st-active { background: var(--ok-soft); color: var(--ok); }
.st-rejected, .st-suspended { background: var(--danger-soft); color: var(--danger); }
.kpi .value.warn { color: var(--warn); }
a.kpi.link { color: inherit; display: block; }
a.kpi.link:hover { border-color: var(--primary); }
.kpis.flat { padding: 12px; }
.kpis.flat .kpi { box-shadow: none; background: var(--surface-2); border-color: transparent; }
.nav-link .count { background: var(--danger); color: #fff; border-radius: 999px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
.bottom-nav button.dot { position: relative; }
.bottom-nav button.dot::after { content: ""; position: absolute; top: 4px; left: calc(50% + 8px); width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px 20px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--border); }
.info-grid .info > div:last-child { overflow-wrap: anywhere; }
table.t td.empty { text-align: center; }
.nowrap { white-space: nowrap; }
body.platform .sidebar .brand .logo { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--primary); }

/* subscriptions & billing */
.ss-trial { background: var(--info-soft); color: var(--info); }
.ss-active { background: var(--ok-soft); color: var(--ok); }
.ss-pending, .ss-past_due { background: var(--warn-soft); color: var(--warn); }
.ss-suspended, .ss-expired { background: var(--danger-soft); color: var(--danger); }
.ss-cancelled { background: var(--surface-2); color: var(--muted); }
.tx-successful, .inv-paid { background: var(--ok-soft); color: var(--ok); }
.tx-failed, .inv-unpaid { background: var(--danger-soft); color: var(--danger); }
.tx-pending { background: var(--warn-soft); color: var(--warn); }
.tx-refunded, .tx-cancelled, .inv-refunded, .inv-void { background: var(--surface-2); color: var(--muted); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tab { padding: 10px 14px; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--primary); border-bottom-color: var(--primary); }
.notice { padding: 12px 16px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--border); }
.notice.warn { background: var(--warn-soft); border-color: transparent; }
.notice ul { margin: 6px 0 0; padding-left: 18px; }
.meter .hbar { margin-top: 6px; }
.hbar.warn > div { background: var(--warn); }
.hbar.full > div { background: var(--danger); }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 8px 14px; }
.change { margin-top: 3px; color: var(--text); }
.change s { color: var(--muted); }
table.t.compare td, table.t.compare th { padding: 8px 10px; }
button.sort { border: 0; background: none; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; cursor: pointer; }
button.sort.on { color: var(--text); }
tr.clickable { cursor: pointer; }
tr.clickable:hover td { background: var(--surface-2); }
pre.payload, pre.instructions { margin: 0; white-space: pre-wrap; word-break: break-word; font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface-2); border-radius: 10px; padding: 12px; max-height: 50vh; overflow: auto; }
pre.instructions { font-family: inherit; font-size: 14px; }
fieldset.group { border: 1px solid var(--border); border-radius: 10px; padding: 12px 14px 14px; margin: 0; display: grid; gap: 12px; }
fieldset.group legend { padding: 0 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.radio-list { display: grid; gap: 10px; }
.radio-list label.check { align-items: flex-start; }
.sub-pick { display: grid; gap: 12px; padding: 14px; border-radius: 12px; background: var(--surface-2); }
.pick-summary { padding: 10px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); }
details.menu { position: relative; display: inline-block; }
details.menu > summary { list-style: none; }
details.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 4px); z-index: 15; min-width: 180px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 10px 30px rgba(0,0,0,.15); padding: 4px; display: grid; }
.menu-list a, .menu-list button { display: block; text-align: left; padding: 8px 12px; border-radius: 8px; border: 0; background: none;
  font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.menu-list a:hover, .menu-list button:hover { background: var(--surface-2); }
.brand .bell { position: relative; margin-left: auto; color: var(--muted); display: inline-flex; padding: 6px; border-radius: 8px; flex: none; }
.brand .bell:hover, .brand .bell.active { background: var(--surface-2); color: var(--text); }
.brand .bell .count { position: absolute; top: -2px; right: -4px; background: var(--danger); color: #fff; border-radius: 999px; font-size: 10px; font-weight: 700; padding: 1px 5px; }
.brand #brand-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.banners { padding: 0 28px; max-width: 1180px; }
.banners:empty { display: none; }
.banner { display: flex; gap: 10px; align-items: flex-start; padding: 10px 14px; border-radius: 10px; margin-bottom: 10px; font-size: 14px; }
.banner.info { background: var(--info-soft); color: var(--info); }
.banner.warn { background: var(--warn-soft); color: var(--warn); }
.banner.danger { background: var(--danger-soft); color: var(--danger); }
.banner a { color: inherit; text-decoration: underline; font-weight: 600; white-space: nowrap; }
.banner > div { color: var(--text); }
@media (max-width: 860px) { .banners { padding: 0 16px; } }
.lockout { padding: 20px; border: 1px solid var(--danger); background: color-mix(in srgb, var(--danger-soft) 60%, var(--surface)); }
.lockout > .row > svg { color: var(--danger); width: 28px; height: 28px; margin-top: 2px; }
.lockout h2 { font-size: 18px; }
.lockout p { margin: 6px 0 0; }
.plan-name { font-size: 22px; font-weight: 700; }
.plan-price { font-size: 20px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.plan-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.plan-card { display: block; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; cursor: pointer; position: relative; }
.plan-card input { position: absolute; opacity: 0; pointer-events: none; }
.plan-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 35%, transparent); }
.plan-card.current { cursor: default; background: var(--surface-2); }
.plan-card ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.plan-card .plan-price { font-size: 17px; }
details.msg > summary { list-style: none; }
details.msg > summary::-webkit-details-marker { display: none; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--surface-2); padding: 1px 5px; border-radius: 5px; overflow-wrap: anywhere; }
body.platform .brand { font-size: 15px; gap: 8px; }

/* LAUNDORA brand */
.brand .brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
body.platform .brand #brand-name { letter-spacing: .06em; }
.brand .slogan { font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; white-space: normal; line-height: 1.3; margin-top: 2px; }
.auth-card .brand span:last-child { letter-spacing: .08em; }
.auth-card p.slogan-lg { text-align: center; margin: -2px 0 6px; font-weight: 700; font-size: 14px; letter-spacing: .04em; color: var(--primary); }
.brand .brand-text, .brand .brand-text .slogan { white-space: normal; overflow: visible; text-overflow: clip; }
.brand .brand-text #brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand .brand-text { flex: 1; }
body.platform .brand .brand-text .slogan { white-space: nowrap; font-size: 10.5px; letter-spacing: 0; }
