:root {
  --brand: #0F4C45;
  --brand-ink: #0A3631;
  --brand-tint: #EAF2F0;
  --brand-tint-2: #D5E6E2;
  --bg: #F6F8F7;
  --surface: #FFFFFF;
  --ink: #0D1D1B;
  --ink-2: #4A5D5A;
  --ink-3: #7D8D8A;
  --line: #E3EAE8;
  --line-2: #CFDAD7;
  --series-1: #00806B;   /* services */
  --series-2: #C27C12;   /* products */
  --good: #1E7A3C;
  --warn: #A15C00;
  --bad: #B42318;
  --bad-tint: #FDECEA;
  --warn-tint: #FFF4E0;
  --good-tint: #E7F5EC;
  --radius: 12px;
  --f-d: "Sora", system-ui, sans-serif;
  --f-b: "Hanken Grotesk", system-ui, sans-serif;
  --shadow: 0 1px 2px rgba(13, 29, 27, .05), 0 8px 24px -12px rgba(13, 29, 27, .12);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 14px/1.5 var(--f-b); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--f-d); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
p { margin: 0; }
a { color: var(--brand); }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand); color: #fff; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.num { font-variant-numeric: tabular-nums; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; }
.hide { display: none !important; }

/* ---------- buttons & inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--line-2); background: var(--surface); font: 500 13px/1 var(--f-d); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; text-decoration: none; color: var(--ink); }
.btn:hover { background: var(--bg); border-color: var(--ink-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-ink); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--brand-tint); }
.btn.danger { color: var(--bad); }
.btn.danger:hover { background: var(--bad-tint); border-color: var(--bad); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12px; }
.btn svg { width: 16px; height: 16px; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }

label.field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.input, select.input, textarea.input { width: 100%; height: 38px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 9px; background: var(--surface); color: var(--ink); transition: border-color .15s, box-shadow .15s; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-tint-2); }
.input-group { display: flex; align-items: stretch; }
.input-group .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .suffix { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-2); border-left: 0; border-radius: 0 9px 9px 0; background: var(--bg); color: var(--ink-2); white-space: nowrap; }
.hint { font-size: 12px; color: var(--ink-3); font-weight: 400; }
.err { color: var(--bad); font-size: 13px; min-height: 1px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--brand); }

.switch { position: relative; width: 36px; height: 20px; flex: none; }
.switch input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--line-2); transition: background .15s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + span { background: var(--brand); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(360px, 5fr) 7fr; }
.auth-side { position: relative; overflow: hidden; background: var(--brand); color: #fff; padding: 40px; display: flex; flex-direction: column; justify-content: space-between; }
.auth-side .pattern { position: absolute; right: -30%; bottom: -25%; width: 120%; opacity: .1; }
.auth-side h1 { font-size: clamp(30px, 3.2vw, 44px); line-height: 1.08; font-weight: 400; max-width: 420px; position: relative; }
.auth-side ul { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 10px; color: rgba(255,255,255,.75); position: relative; }
.auth-side li::before { content: "✦"; margin-right: 10px; color: rgba(255,255,255,.5); }
.brandline { display: flex; align-items: center; gap: 10px; font: 600 20px/1 var(--f-d); letter-spacing: -0.03em; position: relative; }
.brandline img { width: 34px; height: 34px; border-radius: 9px; }
.brandline small { font: 400 12px/1 var(--f-b); letter-spacing: .08em; text-transform: uppercase; opacity: .6; margin-left: 2px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h2 { font-size: 26px; margin-bottom: 6px; }
.tabs { display: flex; gap: 4px; padding: 4px; background: var(--brand-tint); border-radius: 11px; margin: 24px 0; }
.tabs button { flex: 1; height: 34px; border: 0; border-radius: 8px; background: transparent; cursor: pointer; font: 500 13px/1 var(--f-d); color: var(--ink-2); }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--brand); box-shadow: var(--shadow); }
.notice { padding: 12px 14px; border-radius: 10px; background: var(--brand-tint); color: var(--brand-ink); font-size: 13px; }
.notice.warn { background: var(--warn-tint); color: var(--warn); }
.notice.bad { background: var(--bad-tint); color: var(--bad); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 12px; margin: 20px 0; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); padding: 16px 12px; }
.org { display: flex; align-items: center; gap: 10px; padding: 6px 8px 18px; }
.org img, .org .mono { width: 36px; height: 36px; border-radius: 10px; object-fit: contain; flex: none; }
.org .mono { display: grid; place-items: center; background: var(--brand); color: #fff; font: 600 15px/1 var(--f-d); }
.org b { display: block; font: 600 14px/1.2 var(--f-d); letter-spacing: -0.01em; }
.org small { color: var(--ink-3); font-size: 12px; }
.nav { display: grid; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: var(--ink-2); text-decoration: none; font-weight: 500; transition: background .12s, color .12s; }
.nav a svg { width: 18px; height: 18px; flex: none; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--brand-tint); color: var(--brand); }
.nav .badge { margin-left: auto; }
.side-foot { margin-top: auto; border-top: 1px solid var(--line); padding: 12px 8px 0; display: flex; align-items: center; gap: 10px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); font: 600 12px/1 var(--f-d); flex: none; }
.side-foot .who { min-width: 0; flex: 1; }
.side-foot .who b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who small { color: var(--ink-3); font-size: 12px; text-transform: capitalize; }
.powered { font-size: 11px; color: var(--ink-3); padding: 10px 8px 0; display: flex; align-items: center; gap: 6px; }
.powered img { width: 14px; height: 14px; border-radius: 4px; }

.main { min-width: 0; padding: 24px clamp(16px, 3vw, 36px) 48px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-size: 26px; }
.page-head p { color: var(--ink-2); margin-top: 4px; }

.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 18px 0; }
.card-h h3 { font-size: 15px; }
.card-b { padding: 16px 18px 18px; }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr); }

.badge { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding: 0 8px; border-radius: 99px; font: 500 11px/1 var(--f-b); background: var(--bg); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.brand { background: var(--brand); color: #fff; border-color: var(--brand); }
.badge.good { background: var(--good-tint); color: var(--good); border-color: transparent; }
.badge.warn { background: var(--warn-tint); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-tint); color: var(--bad); border-color: transparent; }
.badge.tint { background: var(--brand-tint); color: var(--brand); border-color: transparent; }

.chips { display: inline-flex; gap: 2px; padding: 3px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.chips button { height: 28px; padding: 0 12px; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font: 500 12px/1 var(--f-d); color: var(--ink-2); }
.chips button[aria-pressed="true"] { background: var(--brand); color: #fff; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
.t th { text-align: left; font: 500 12px/1 var(--f-b); color: var(--ink-3); padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr.click { cursor: pointer; }
.t tbody tr.click:hover td { background: var(--bg); }
.t .r { text-align: right; }

/* ---------- KPIs & charts ---------- */
.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.kpi { padding: 16px 18px; }
.kpi small { display: block; color: var(--ink-2); font-size: 12px; font-weight: 500; }
.kpi strong { display: block; font: 500 26px/1.25 var(--f-d); letter-spacing: -0.03em; margin-top: 6px; }
.kpi .delta { font-size: 12px; margin-top: 4px; color: var(--ink-3); }
.delta .up { color: var(--good); }
.delta .down { color: var(--bad); }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .grid-line { stroke: var(--line); stroke-width: 1; }
.chart .axis-text { fill: var(--ink-3); font: 400 11px var(--f-b); }
.chart .hit { fill: transparent; cursor: crosshair; }
.chart .hit:hover { fill: rgba(15, 76, 69, .05); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--ink-2); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.tip { position: absolute; pointer-events: none; z-index: 5; background: var(--ink); color: #fff; padding: 8px 10px; border-radius: 8px; font-size: 12px; line-height: 1.45; white-space: nowrap; transform: translate(-50%, calc(-100% - 10px)); box-shadow: var(--shadow); }
.tip i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 6px; }
.tip b { font-weight: 600; }

.hbar { display: grid; grid-template-columns: 110px 1fr 54px; align-items: center; gap: 10px; font-size: 13px; padding: 5px 0; }
.hbar .track { height: 10px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--series-1); border-radius: 0 4px 4px 0; }
.hbar .v { text-align: right; color: var(--ink-2); font-variant-numeric: tabular-nums; }
.meter { height: 8px; background: var(--bg); border-radius: 4px; overflow: hidden; margin-top: 6px; }
.meter > span { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--series-1); }

.list { display: grid; }
.li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.li:last-child { border-bottom: 0; }
.li .when { width: 58px; flex: none; font: 500 13px/1.2 var(--f-d); }
.li .when small { display: block; font: 400 11px var(--f-b); color: var(--ink-3); }
.dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.empty { padding: 28px; text-align: center; color: var(--ink-3); }

/* ---------- inbox ---------- */
.inbox { display: grid; grid-template-columns: 300px minmax(0, 1fr) 280px; height: calc(100vh - 140px); min-height: 520px; overflow: hidden; }
.inbox > * { min-height: 0; }
.conv-list { border-right: 1px solid var(--line); overflow-y: auto; }
.conv { display: block; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; }
.conv:hover { background: var(--bg); }
.conv[aria-current="true"] { background: var(--brand-tint); }
.conv .top { display: flex; align-items: center; gap: 8px; }
.conv b { font-weight: 600; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.conv p { font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.conv .unread { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.chan { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
.thread { display: flex; flex-direction: column; min-width: 0; }
.thread-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.msgs { flex: 1; overflow-y: auto; padding: 18px; display: flex; flex-direction: column; gap: 8px; background: #F3F6F5; }
.msg { max-width: 72%; padding: 9px 12px; border-radius: 14px; white-space: pre-wrap; word-wrap: break-word; font-size: 14px; }
.msg.in { align-self: flex-start; background: var(--surface); border-bottom-left-radius: 4px; box-shadow: 0 1px 0 var(--line); }
.msg.out { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.msg.out.user { background: var(--brand-ink); }
.msg small { display: block; font-size: 11px; opacity: .6; margin-top: 4px; }
.composer { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.side-panel { border-left: 1px solid var(--line); padding: 16px; overflow-y: auto; }

/* ---------- calendar ---------- */
.cal-toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-toolbar h2 { font-size: 18px; min-width: 200px; }
.cal { position: relative; overflow-x: auto; }
.cal-grid { display: grid; min-width: 640px; }
.cal-head { position: sticky; top: 0; z-index: 3; display: grid; background: var(--surface); border-bottom: 1px solid var(--line); }
.cal-head div { padding: 10px; font: 500 13px/1.2 var(--f-d); display: flex; align-items: center; gap: 8px; }
.cal-body { display: grid; position: relative; }
.cal-times { position: relative; }
.cal-times span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 11px; color: var(--ink-3); }
.cal-col { position: relative; border-left: 1px solid var(--line); background-image: repeating-linear-gradient(to bottom, transparent 0, transparent calc(var(--hr) - 1px), var(--line) calc(var(--hr) - 1px), var(--line) var(--hr)); cursor: copy; }
.cal-off { position: absolute; left: 0; right: 0; background: repeating-linear-gradient(-45deg, #F1F4F3 0 6px, #E9EEEC 6px 7px); pointer-events: none; }
.cal-break { position: absolute; left: 0; right: 0; background: rgba(15, 76, 69, .06); border-top: 1px dashed var(--line-2); border-bottom: 1px dashed var(--line-2); display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--ink-2); pointer-events: none; }
.cal-ev { position: absolute; left: 4px; right: 4px; border-radius: 8px; padding: 5px 8px; font-size: 12px; line-height: 1.3; overflow: hidden; cursor: pointer; border: 0; text-align: left; background: var(--brand-tint); color: var(--brand-ink); border-left: 3px solid var(--c, var(--brand)); transition: box-shadow .15s, transform .1s; }
.cal-ev:hover { box-shadow: var(--shadow); z-index: 2; }
.cal-ev b { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev span { color: var(--ink-2); white-space: nowrap; }
.cal-ev.completed { opacity: .6; }
.cal-ev.no_show { background: var(--bad-tint); }
.cal-ev.cancelled { display: none; }
.now-line { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 2; pointer-events: none; }
.now-line::before { content: ""; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.slots { display: flex; flex-wrap: wrap; gap: 6px; }
.slot { height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font: 500 13px/1 var(--f-d); font-variant-numeric: tabular-nums; }
.slot:hover { border-color: var(--brand); color: var(--brand); }
.slot[aria-pressed="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }

/* ---------- modal / drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgba(13, 29, 27, .35); display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s ease; }
.overlay.drawer { justify-content: flex-end; padding: 0; }
.modal { width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 16px; box-shadow: 0 20px 60px -20px rgba(0,0,0,.35); animation: pop .18s ease; }
.drawer .modal { max-width: 440px; height: 100vh; max-height: none; border-radius: 0; animation: slide .2s ease; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.modal-h h3 { font-size: 17px; }
.modal-b { padding: 20px; display: grid; gap: 14px; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line); position: sticky; bottom: 0; background: var(--surface); }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
@keyframes slide { from { transform: translateX(30px); opacity: 0; } }
dl.kv { display: grid; grid-template-columns: 110px 1fr; gap: 8px 12px; margin: 0; font-size: 13px; }
dl.kv dt { color: var(--ink-3); }
dl.kv dd { margin: 0; }

#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: grid; gap: 8px; }
.toast { background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; box-shadow: var(--shadow); animation: pop .2s ease; }
.toast.bad { background: var(--bad); }

.hours-grid { display: grid; grid-template-columns: 60px 1fr 1fr 40px; gap: 6px 8px; align-items: center; font-size: 13px; }
.swatch { width: 18px; height: 18px; border-radius: 5px; display: inline-block; flex: none; }
.logo-prev { width: 64px; height: 64px; border-radius: 14px; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; background: var(--bg); }
.logo-prev img { max-width: 100%; max-height: 100%; }
.code { font-family: ui-monospace, Menlo, monospace; font-size: 12px; background: var(--bg); border: 1px solid var(--line); padding: 8px 10px; border-radius: 8px; word-break: break-all; }
pre.mail { white-space: pre-wrap; font: 13px/1.6 var(--f-b); background: var(--bg); padding: 14px; border-radius: 10px; margin: 0; }

/* ---------- public booking ---------- */
.public { min-height: 100vh; display: flex; justify-content: center; padding: 40px 16px; }
.public .wrap { width: 100%; max-width: 560px; }
.public .head { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.svc-pick { display: grid; gap: 8px; }
.svc-pick button { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); cursor: pointer; text-align: left; }
.svc-pick button[aria-pressed="true"] { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-tint-2); }

@media (max-width: 1200px) {
  .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .inbox { grid-template-columns: 260px minmax(0, 1fr); }
  .inbox .side-panel { display: none; }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px; gap: 8px; }
  .side .org { padding: 0; }
  .side .nav { display: flex; overflow-x: auto; width: 100%; order: 3; }
  .side .nav a span.lbl { display: none; }
  .side-foot, .powered { display: none; }
  .g-2, .g-3, .g-main { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .auth { grid-template-columns: 1fr; }
  .auth-side { min-height: 220px; }
  .inbox { grid-template-columns: 1fr; height: auto; }
  .conv-list { max-height: 260px; border-right: 0; border-bottom: 1px solid var(--line); }
  .thread { min-height: 480px; }
}
.li > svg { width: 18px; height: 18px; flex: none; color: var(--ink-3); }
svg:not([width]):not(.pattern):not([viewBox^="0 0 7"]) { max-width: 100%; }

/* =====================================================================
   Logged-in layout (v2): floating gradient sidebar, top bar with search,
   soft grey content panel holding white cards.
   ===================================================================== */
body { background: #E4ECEA; }
.shell { display: grid; grid-template-columns: 248px 1fr; gap: 0; min-height: 100vh; padding: 12px; transition: grid-template-columns .25s ease; }
.shell.is-min { grid-template-columns: 84px 1fr; }

.side {
  position: sticky; top: 12px; height: calc(100vh - 24px);
  display: flex; flex-direction: column; gap: 6px;
  padding: 22px 14px 18px; border: 0; border-radius: 28px;
  background: linear-gradient(170deg, color-mix(in srgb, var(--brand) 72%, #6FA89E) 0%, var(--brand) 42%, var(--brand-ink) 100%);
  color: rgba(255, 255, 255, .78);
  box-shadow: 0 24px 48px -28px rgba(10, 54, 49, .55);
  overflow: hidden;
}
.side-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0 6px 26px; }
.side .org { padding: 0; text-decoration: none; color: #fff; min-width: 0; }
.side .org img, .side .org .mono { width: 44px; height: 44px; border-radius: 13px; background: #fff; padding: 4px; }
.side .org .mono { background: rgba(255, 255, 255, .16); color: #fff; padding: 0; font-size: 16px; }
.org-name { min-width: 0; }
.org-name b { color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-name small { color: rgba(255, 255, 255, .55); }
.side-toggle { flex: none; width: 32px; height: 32px; border: 0; border-radius: 10px; background: transparent; color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .15s, transform .25s; }
.side-toggle:hover { background: rgba(255, 255, 255, .12); }
.side-toggle svg { width: 20px; height: 20px; }
.side .nav { gap: 4px; }
.side .nav a { color: rgba(255, 255, 255, .72); padding: 11px 12px; border-radius: 12px; font-weight: 500; }
.side .nav a:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side .nav a[aria-current="page"] { background: rgba(255, 255, 255, .14); color: #fff; box-shadow: inset 3px 0 0 #fff; }
.side .nav .badge.brand { background: #fff; color: var(--brand); border-color: #fff; }
.side-foot { margin-top: auto; border: 0; padding: 12px 0 0; display: grid; gap: 4px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: rgba(255, 255, 255, .72); font: 500 14px var(--f-b); text-decoration: none; cursor: pointer; text-align: left; }
.side-link:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.side-link svg { width: 18px; height: 18px; flex: none; }
.side .powered { color: rgba(255, 255, 255, .45); padding: 10px 12px 0; }
.side .powered img { opacity: .85; }

.shell.is-min .lbl, .shell.is-min .org-name, .shell.is-min .nav .badge { display: none; }
.shell.is-min .side-top { flex-direction: column; padding-bottom: 18px; }
.shell.is-min .side-toggle { transform: rotate(180deg); }
.shell.is-min .side .nav a, .shell.is-min .side-link { justify-content: center; padding: 12px 0; }

.workspace { min-width: 0; display: flex; flex-direction: column; padding: 4px 4px 4px 22px; }
.topbar { display: flex; align-items: center; gap: 20px; padding: 10px 0 18px; }
.search { flex: 1; max-width: 720px; display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 20px; border-radius: 18px; background: var(--surface); color: var(--ink-3); box-shadow: 0 1px 0 var(--line); }
.search svg { width: 20px; height: 20px; flex: none; }
.search input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font-size: 15px; color: var(--ink); }
.search:focus-within { box-shadow: 0 0 0 2px var(--brand-tint-2); }
.hello { margin-left: auto; display: flex; align-items: center; gap: 14px; font: 500 15px var(--f-d); color: var(--ink); white-space: nowrap; }
.avatar.lg { width: 44px; height: 44px; font-size: 14px; background: var(--brand); color: #fff; box-shadow: 0 0 0 3px #fff; }

.panel { flex: 1; min-width: 0; background: #F5F8F7; border-radius: 28px; padding: clamp(18px, 2.6vw, 36px) clamp(16px, 2.6vw, 40px) 48px; }
.panel .page-head h1 { font: 600 clamp(24px, 2.4vw, 30px)/1.15 var(--f-d); letter-spacing: -0.02em; }
.card { border: 0; border-radius: 18px; box-shadow: 0 1px 2px rgba(13, 29, 27, .04), 0 10px 30px -22px rgba(13, 29, 27, .25); }
.inbox { height: calc(100vh - 250px); }

/* header controls */
.head-tools { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.range { display: inline-flex; padding: 4px; gap: 2px; border-radius: 12px; background: var(--brand-tint); }
.range button { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border: 0; border-radius: 9px; background: transparent; color: var(--brand); font: 600 12px/1 var(--f-d); letter-spacing: .04em; text-transform: uppercase; cursor: pointer; }
.range button svg { width: 15px; height: 15px; }
.range button[aria-pressed="true"] { background: var(--surface); box-shadow: 0 1px 2px rgba(13, 29, 27, .08); }
.btn.cta { height: 44px; padding: 0 22px; border-radius: 12px; font: 600 13px/1 var(--f-d); letter-spacing: .06em; text-transform: uppercase; gap: 14px; box-shadow: 0 10px 22px -12px var(--brand); }
.btn.cta svg { width: 18px; height: 18px; }

/* KPI cards */
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.kpi { padding: 22px 24px 20px; }
.kpi small { display: flex; align-items: center; gap: 8px; font: 500 15px var(--f-d); color: var(--ink); }
.kpi small svg { width: 16px; height: 16px; color: var(--brand); opacity: .7; }
.kpi .kpi-row { display: flex; align-items: flex-end; gap: 14px; margin-top: 14px; }
.kpi strong { margin: 0; font: 400 clamp(34px, 3.4vw, 46px)/1 var(--f-d); letter-spacing: -0.03em; }
.kpi .delta { margin: 0 0 4px; font-size: 11px; line-height: 1.35; color: var(--ink-3); }
.kpi .delta span { display: block; font: 600 12px var(--f-b); }

/* chart card */
.card-h { padding: 22px 26px 0; }
.card-h h3 { display: flex; align-items: center; gap: 8px; font: 500 18px var(--f-d); }
.card-h h3 svg { width: 16px; height: 16px; color: var(--brand); opacity: .7; }
.card-sub { font-size: 12px; color: var(--ink-3); padding: 4px 26px 0; }
.card-b { padding: 18px 26px 24px; }
.seg { display: inline-flex; gap: 6px; }
.seg button { height: 26px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--bg); color: var(--ink-2); font: 600 11px/1 var(--f-d); letter-spacing: .06em; text-transform: uppercase; cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--brand-tint); color: var(--brand); }
.chart .line { fill: none; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .area { opacity: .08; }
.chart .cross { stroke: var(--line-2); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { stroke: var(--surface); stroke-width: 2; }
.tip.card-tip { background: var(--surface); color: var(--ink); border-radius: 10px; padding: 10px 14px; box-shadow: 0 12px 30px -12px rgba(13, 29, 27, .35); }
.tip.card-tip small { display: block; color: var(--ink-3); font-size: 11px; margin-bottom: 4px; }
.tip.card-tip b { font: 500 20px var(--f-d); }

/* horizontal bars (bookings by team member) */
.hchart { display: grid; grid-template-columns: 88px 1fr; row-gap: 14px; align-items: center; }
.hchart .nm { font-size: 13px; color: var(--ink-2); text-align: right; padding-right: 12px; border-right: 1px solid var(--ink-3); height: 100%; display: flex; align-items: center; justify-content: flex-end; }
.hchart .bar { position: relative; height: 26px; }
.hchart .bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 0 6px 6px 0; background: color-mix(in srgb, var(--series-1) 55%, #fff); }
.hchart .bar em { position: absolute; top: 50%; transform: translateY(-50%); font: 500 12px var(--f-b); font-style: normal; color: var(--ink-2); padding-left: 8px; }
.hchart .axis { grid-column: 2; display: flex; justify-content: space-between; font-size: 11px; color: var(--ink-3); padding-top: 4px; }
.hchart .axis-label { grid-column: 2; text-align: center; font-size: 11px; color: var(--ink-3); }

/* activity table */
table.t.activity th { color: var(--brand); font: 600 11px/1 var(--f-d); letter-spacing: .06em; text-transform: uppercase; padding: 12px 0; }
table.t.activity td { padding: 13px 0; }
table.t.activity th:last-child, table.t.activity td:last-child { text-align: right; font-weight: 600; }

@media (max-width: 1200px) { .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .shell, .shell.is-min { grid-template-columns: 1fr; padding: 8px; }
  .side { position: static; height: auto; flex-direction: column; padding: 14px; border-radius: 22px; }
  .side-top { padding-bottom: 10px; }
  .side-toggle, .side-foot .powered { display: none; }
  .side .nav { display: flex; overflow-x: auto; }
  .side .nav a span.lbl { display: none; }
  .side-foot { display: flex; padding: 0; }
  .side-foot .lbl { display: none; }
  .workspace { padding: 12px 0 0; }
  .hello span:first-child { display: none; }
  .panel { border-radius: 22px; }
}

/* =========================================================
   v3: modules, website support, Qabil admin, public pages
   ========================================================= */
:root { --red: #B42318; --red-tint: #FDECEA; --amber: #A15C00; --amber-tint: #FFF1D6; --green: #1E7A3C; --green-tint: #E3F4E8; --grey: #5F6B69; --grey-tint: #EEF1F0; }

/* sidebar groups + locked modules */
.side .nav-sec { display: block; margin: 14px 12px 4px; font: 600 10px/1 var(--f-d); letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.side .nav a.locked { color: rgba(255, 255, 255, .5); }
.side .nav a .lock { width: 13px; height: 13px; margin-left: auto; opacity: .7; }
.shell.is-min .nav-sec { display: none; }
.side .nav { overflow-y: auto; scrollbar-width: none; }

.kpis.kpis-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
a.kpi { text-decoration: none; color: inherit; transition: transform .15s; }
a.kpi:hover { transform: translateY(-2px); }
.kpi .delta .tk { margin-right: 2px; }

/* ticket status chips: colour + words, never colour alone */
.tk { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 99px; font: 600 12px/1 var(--f-b); white-space: nowrap; }
.tk i { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex: none; }
.tk em { font-style: normal; font-weight: 500; opacity: .85; }
.tk.red { background: var(--red-tint); color: var(--red); }
.tk.amber { background: var(--amber-tint); color: var(--amber); }
.tk.green { background: var(--green-tint); color: var(--green); }
.tk.grey { background: var(--grey-tint); color: var(--grey); }
.urgent { color: var(--red); font-weight: 600; }

.credit-guide { display: grid; grid-template-columns: auto 1fr; gap: 8px 14px; align-items: baseline; }
.credit-guide span { font-weight: 600; white-space: nowrap; }
.credit-guide span b { display: inline-block; min-width: 46px; color: var(--brand); font: 600 13px var(--f-d); }
.credit-guide small { color: var(--ink-3); font-size: 12px; }
.num.pos { color: var(--green); font-weight: 600; }
.num.neg { color: var(--ink-2); font-weight: 600; }

.chip-radio { display: inline-flex; }
.chip-radio input { position: absolute; opacity: 0; pointer-events: none; }
.chip-radio span { display: inline-flex; align-items: center; height: 32px; padding: 0 12px; border-radius: 8px; border: 1px solid var(--line-2); font: 500 13px var(--f-b); cursor: pointer; background: var(--surface); }
.chip-radio input:checked + span { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip-radio input:focus-visible + span { outline: 2px solid var(--brand); outline-offset: 2px; }
.chips:has(.chip-radio) { background: none; border: 0; padding: 0; gap: 8px; flex-wrap: wrap; }

.ticket-desc { white-space: pre-line; background: var(--bg); border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.shot img { display: block; max-width: 100%; max-height: 320px; border-radius: 10px; border: 1px solid var(--line); }
.thread-list { display: grid; gap: 10px; }
.tc { padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); }
.tc p { white-space: pre-line; margin-top: 4px; font-size: 14px; }
.tc-h { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; }
.tc.qabil { background: var(--brand-tint); border-color: transparent; }
.tc.system { background: transparent; border-style: dashed; color: var(--ink-2); }
.tc.system p { font-size: 13px; }
.tc.internal { background: var(--amber-tint); border-color: transparent; }
.approve-box b { font-size: 14px; }
.actions-box { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--surface); }
.li-btn { width: 100%; border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: inherit; }
.li-btn:hover { background: var(--bg); }

/* locked module page */
.locked-card .card-b { padding: 36px clamp(20px, 4vw, 48px); display: grid; gap: 18px; justify-items: start; }
.lock-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: var(--brand-tint); color: var(--brand); }
.lock-badge svg { width: 24px; height: 24px; }
.locked-card h2 { font-size: clamp(20px, 2vw, 26px); }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 2px; }

/* quotes board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.board .col { background: var(--surface); border-radius: 18px; padding: 12px; display: grid; gap: 8px; box-shadow: var(--shadow); }
.board .col header { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 4px 6px 6px; }
.board .col header small { grid-column: 1 / -1; font-size: 11px; }
.qcard { display: grid; gap: 2px; text-align: left; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 10px 12px; cursor: pointer; font: inherit; color: inherit; transition: border-color .12s, transform .12s; }
.qcard:hover { border-color: var(--brand); transform: translateY(-1px); }
.qcard svg { width: 13px; height: 13px; vertical-align: -2px; }
.fs { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 12px; display: grid; gap: 8px; margin: 0; }
.fs legend { font: 500 13px var(--f-b); padding: 0 4px; }
.cust-search { position: relative; }
.cust-results { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--surface); border-radius: 10px; box-shadow: var(--shadow); display: grid; }
.cust-results:empty { display: none; }
.cust-results button { border: 0; background: none; text-align: left; padding: 9px 12px; cursor: pointer; font: inherit; }
.cust-results button:hover { background: var(--brand-tint); }
.lines { display: grid; gap: 6px; }
.line, .line-h { display: grid; grid-template-columns: 1fr 70px 110px 34px; gap: 6px; align-items: center; }
.line-h { font-size: 11px; color: var(--ink-3); }
.total-box { text-align: right; }
.total-box strong { display: block; font: 500 26px var(--f-d); }

/* events + classes cards */
.ev-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.ev-card { display: flex; gap: 16px; padding: 18px; text-decoration: none; color: inherit; text-align: left; border: 0; font: inherit; cursor: pointer; transition: transform .15s; }
.ev-card:hover { transform: translateY(-2px); }
.ev-title { font: 500 16px var(--f-d); }
.ev-date { flex: none; width: 54px; height: 60px; border-radius: 14px; background: var(--brand-tint); color: var(--brand); display: grid; place-content: center; text-align: center; }
.ev-date b { font: 600 22px/1 var(--f-d); }
.ev-date small { font: 600 11px/1.4 var(--f-d); text-transform: uppercase; letter-spacing: .06em; }
.ev-card .meter { margin-top: 4px; }
.ev-card .meter > span, .big-count + .meter > span { background: var(--brand); }
.mono { font-family: ui-monospace, Menlo, monospace; letter-spacing: .06em; }
.danger-text { color: var(--bad); }
.checkin-code { display: flex; gap: 8px; align-items: flex-end; }
.checkin-code .field { flex: 1; }
.checkin-code input { font: 600 20px ui-monospace, Menlo, monospace; letter-spacing: .12em; text-transform: uppercase; height: 48px; }
.checkin-code .btn { height: 48px; }
.checkin-list { display: grid; gap: 6px; max-height: 60vh; overflow: auto; }
.ci { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font: 600 13px var(--f-b); color: var(--brand); text-align: left; }
.ci b { display: block; color: var(--ink); font-size: 15px; }
.ci small { color: var(--ink-3); font-weight: 400; }
.ci svg { width: 16px; height: 16px; }
.ci.in { background: var(--green-tint); border-color: transparent; color: var(--green); }
.big-count strong { display: block; font: 400 56px/1 var(--f-d); }
.big-count span { color: var(--ink-2); }

/* classes */
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line-2); overflow-x: auto; }
.tabs-line a { padding: 10px 14px; color: var(--ink-2); text-decoration: none; font: 500 14px var(--f-d); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs-line a[aria-selected="true"] { color: var(--brand); border-bottom-color: var(--brand); }
.tt { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.tt-day { background: var(--surface); border-radius: 16px; padding: 12px; display: grid; gap: 8px; align-content: start; min-height: 140px; box-shadow: var(--shadow); }
.tt-day h4 { font: 600 12px var(--f-d); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.tt-day.empty-day { opacity: .55; }
.tt-slot { display: grid; gap: 2px; padding: 9px 10px; border-radius: 10px; background: var(--brand-tint); text-decoration: none; color: var(--ink); border-left: 3px solid var(--brand); }
.tt-slot small { color: var(--brand); font-weight: 600; }
.tt-slot b { font-size: 13px; line-height: 1.3; }
.tt-slot span { font-size: 11px; }
.class-card .meter { width: 100%; }
.reg { display: grid; gap: 2px; }
.reg-row { display: flex; align-items: center; gap: 12px; padding: 8px 4px; border-bottom: 1px solid var(--line); }
.reg-btns { display: flex; gap: 6px; }
.att { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); font: 600 14px var(--f-d); color: var(--ink-2); cursor: pointer; }
.att[aria-pressed="true"].present { background: var(--green); border-color: var(--green); color: #fff; }
.att[aria-pressed="true"].late { background: var(--amber); border-color: var(--amber); color: #fff; }
.att[aria-pressed="true"].absent { background: var(--red); border-color: var(--red); color: #fff; }
.att[aria-pressed="true"].excused { background: var(--grey); border-color: var(--grey); color: #fff; }

/* auth extras */
.demo-btn { justify-content: flex-start; height: auto; padding: 10px 14px; text-align: left; }
.demo-btn span { display: grid; }
.demo-btn small { color: var(--ink-3); font-weight: 400; }
.undelivered { color: #ffd6d1; }
.msg.in .undelivered { color: var(--bad); }

/* public pages */
.code-big { font: 600 34px/1 ui-monospace, Menlo, monospace; letter-spacing: .18em; color: var(--brand); background: var(--brand-tint); border-radius: 14px; padding: 16px; text-align: center; }
.ev-pub { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.ann { padding: 10px 0; border-bottom: 1px solid var(--line); }
.ann:last-child { border: 0; }
.ann p { margin-top: 4px; color: var(--ink-2); }
.hub-class { display: grid; gap: 4px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.hub-class:last-child { border: 0; }
.public table.t tr.tot td { border-top: 2px solid var(--ink); }
.public .card-b h3 svg { width: 18px; height: 18px; vertical-align: -3px; color: var(--brand); }

/* Qabil admin: deeper sidebar so it never gets mistaken for a client portal */
body.qabil-admin .side { background: linear-gradient(170deg, #22312F 0%, #142221 55%, #0B1615 100%); }

@media (max-width: 1100px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tt { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .board, .kpis.kpis-3 { grid-template-columns: 1fr; }
  .tt { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .line, .line-h { grid-template-columns: 1fr 56px 84px 30px; }
  .side .nav-sec, .side .nav a .lock { display: none; }
  .ev-grid { grid-template-columns: 1fr; }
  .reg-row { flex-wrap: wrap; }
}
.kpi .delta.tk-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; }
.kpi .delta.tk-row span { display: inline-flex; font: 600 11px/1 var(--f-b); }
.kpi .delta.tk-row b { font: 600 14px var(--f-d); color: var(--ink); margin-right: 6px; }
/* more items in the sidebar now: tighter rows so everything fits on a laptop screen */
.side .nav a { padding: 8px 12px; }
.side-top { padding-bottom: 12px; }
.side-foot { padding-top: 6px; }
.side .nav { min-height: 0; flex: 1 1 auto; align-content: start; }
.drawer .modal.wide { width: min(720px, 100vw); max-width: 100vw; }

/* =========================================================
   Phones: labelled Menu button + dropdown navigation,
   and dropdowns instead of sideways-scrolling tab rows
   ========================================================= */
.menu-btn, .mselect { display: none; }
@media (max-width: 900px) {
  .shell .side { position: relative; z-index: 30; padding: 10px 12px; gap: 0; border-radius: 20px; overflow: visible; }
  .shell .side { align-items: stretch; }
  .shell .side .side-top { order: 1; } .shell .side .nav { order: 2; } .shell .side .side-foot { order: 3; }
  .shell .side-top, .shell.is-min .side-top { flex-direction: row; align-items: center; padding: 0; gap: 10px; width: 100%; }
  .shell.is-min .org-name { display: block; }
  .side .org img, .side .org .mono { width: 38px; height: 38px; }
  .menu-btn { display: inline-flex; align-items: center; gap: 8px; height: 42px; padding: 0 16px; margin-left: auto; border: 1px solid rgba(255, 255, 255, .35); border-radius: 12px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 14px var(--f-d); cursor: pointer; }
  .menu-btn svg { width: 20px; height: 20px; }
  .menu-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
  .shell .side .nav, .shell .side-foot { display: none; }
  .shell .side.open .nav { display: grid; gap: 2px; overflow: visible; margin-top: 12px; padding-top: 6px; border-top: 1px solid rgba(255, 255, 255, .16); }
  .shell .side.open .nav a { padding: 12px; }
  .shell .side.open .nav a .lbl, .shell .side.open .side-foot .lbl { display: inline; }
  .shell .side.open .nav-sec { display: block; }
  .shell .side.open .nav a .lock { display: inline-block; }
  .shell .side.open .nav .badge { display: inline-flex; margin-left: auto; }
  .shell .side.open .side-foot { display: grid; gap: 2px; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .16); }
  .shell .side.open .side-link { justify-content: flex-start; padding: 12px; }
}
@media (max-width: 700px) {
  [data-mselect] { display: none !important; }
  .mselect { display: grid; gap: 6px; font: 500 13px var(--f-b); color: var(--ink-2); margin: 4px 0 8px; width: 100%; }
  .mselect-box { position: relative; display: block; }
  .mselect select { width: 100%; height: 46px; padding: 0 44px 0 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); color: var(--ink); font: 600 15px var(--f-d); appearance: none; -webkit-appearance: none; }
  .mselect select:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
  .mselect svg { position: absolute; right: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); pointer-events: none; color: var(--brand); }
  .card-h .mselect { margin: 0; }
}
