/* ==========================================================================
   AfriBilling — shared stylesheet (design phase)
   Every colour is a CSS custom property so Admin > Settings > Appearance can
   drive it later. Light is the default; [data-theme="dark"] is a designed
   dark palette, not an inversion.
   ========================================================================== */

:root {
  --font-ui: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Manrope", "Inter", system-ui, sans-serif;
  --font-sign: "Caveat", "Segoe Script", cursive;

  /* brand: navy + dark yellow */
  --brand: #14213D;             /* primary fill (buttons, sidebar)      */
  --brand-hover: #0C162B;
  --brand-ink: #1F3C78;         /* brand used as text / links on light  */
  --brand-soft: #E9EEF8;
  --brand-soft-2: #D5DEF0;
  --accent: #E0A100;            /* dark yellow — fill with INK text     */
  --accent-hover: #C98F00;
  --accent-text: #14213D;       /* text on accent fills (7.3:1)         */
  --accent-soft: #FDF4DA;
  --accent-ink: #855F00;        /* accent used as text on light (5.6:1) */

  /* neutrals */
  --bg: #F6F7FB;
  --bg-alt: #EEF1F7;
  --surface: #FFFFFF;
  --surface-2: #F9FAFC;
  --surface-3: #F1F3F8;
  --border: #E2E6EF;
  --border-strong: #CBD2E1;
  --text: #121A2E;
  --text-2: #3F4A66;
  --muted: #667089;
  --faint: #9AA3BA;
  --side-bg: #14213D;
  --side-text: #C9D2E6;
  --side-muted: #8592B0;
  --side-hover: #1D2D50;
  --side-active: #23365F;
  --hero-band: #14213D;

  /* semantic */
  --ok: #146C35;   --ok-soft: #E4F4EA;
  --warn: #8A5A00; --warn-soft: #FFF2D2;
  --bad: #C0352B;  --bad-soft: #FDECEA;
  --info: #2357C6; --info-soft: #E7EFFD;

  /* charts */
  --c1: #2F56A6; --c2: #D99A00; --c3: #8E9BB8; --c4: #B8C5E2; --c5: #121A2E;

  /* paper (invoice documents stay paper-white in both themes) */
  --paper: #FFFFFF; --paper-text: #121A2E; --paper-muted: #667089; --paper-line: #E4E8F0; --paper-soft: #F5F7FB;

  --shadow-sm: 0 1px 2px rgba(18,26,46,.06);
  --shadow: 0 1px 2px rgba(18,26,46,.05), 0 6px 18px rgba(18,26,46,.06);
  --shadow-lg: 0 2px 6px rgba(18,26,46,.06), 0 22px 48px rgba(18,26,46,.14);
  --radius-sm: 7px;
  --radius: 11px;
  --radius-lg: 16px;
  --radius-xl: 22px;
  --header-h: 72px;
  --container: 1220px;
  color-scheme: light;
}

[data-theme="dark"] {
  --brand: #2E4C8F;
  --brand-hover: #3A5AA0;
  --brand-ink: #A9BEF0;
  --brand-soft: #18264A;
  --brand-soft-2: #22335E;
  --accent: #E8AC12;
  --accent-hover: #F2BB30;
  --accent-text: #0E1628;
  --accent-soft: #33280B;
  --accent-ink: #F2C04A;

  --bg: #0A1020;
  --bg-alt: #0D1428;
  --surface: #121A2F;
  --surface-2: #151F37;
  --surface-3: #1A2541;
  --border: #243154;
  --border-strong: #33426C;
  --text: #EAEEF8;
  --text-2: #BCC5DC;
  --muted: #8F99B7;
  --faint: #5F6A8D;
  --side-bg: #0D1529;
  --side-text: #C2CBE2;
  --side-muted: #76829F;
  --side-hover: #16213D;
  --side-active: #1E2C50;
  --hero-band: #0D1529;

  --ok: #5CCB87;   --ok-soft: #10301E;
  --warn: #F2C04A; --warn-soft: #332709;
  --bad: #FF8A80;  --bad-soft: #3B1A1A;
  --info: #86ABFF; --info-soft: #152750;

  --c1: #5E80D0; --c2: #B88505; --c3: #4D5B82; --c4: #33457A; --c5: #EAEEF8;

  --shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --shadow: 0 1px 2px rgba(0,0,0,.35), 0 8px 20px rgba(0,0,0,.28);
  --shadow-lg: 0 2px 8px rgba(0,0,0,.4), 0 24px 52px rgba(0,0,0,.5);
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; background: var(--bg); }
body { min-height: 100vh; }
body {
  margin: 0; font-family: var(--font-ui); font-size: 15px; line-height: 1.55;
  color: var(--text); background: var(--bg);
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { max-width: 100%; }
img { display: block; }
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--text); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: 44px; font-weight: 800; }
h2 { font-size: 32px; font-weight: 800; }
h3 { font-size: 18px; font-weight: 750; letter-spacing: -.01em; }
h4 { font-size: 15px; font-weight: 750; letter-spacing: -.005em; }
p { margin: 0 0 1em; color: var(--text-2); }
small, .small { font-size: 13px; }
.xs { font-size: 12px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.t2 { color: var(--text-2); }
.num, .table, .kpi-value, .doc, .money { font-variant-numeric: tabular-nums; font-feature-settings: "tnum" 1, "cv11" 1; }
.mono { font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; font-size: 13px; }
.strong { font-weight: 650; color: var(--text); }
.ink { color: var(--text); }
.ok-t { color: var(--ok); } .bad-t { color: var(--bad); } .warn-t { color: var(--warn); } .acc-t { color: var(--accent-ink); }
hr, .hr { border: 0; border-top: 1px solid var(--border); margin: 18px 0; }
::selection { background: var(--accent); color: var(--accent-text); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.row { display: flex; align-items: center; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.col { display: flex; flex-direction: column; gap: 12px; }
.ml-auto { margin-left: auto; }
.mt-0 { margin-top: 0 } .mb-0 { margin-bottom: 0 } .mt-8 { margin-top: 8px } .mt-12 { margin-top: 12px } .mt-16 { margin-top: 16px } .mt-20 { margin-top: 20px } .mt-24 { margin-top: 24px } .mb-8 { margin-bottom: 8px } .mb-12 { margin-bottom: 12px } .mb-16 { margin-bottom: 16px } .mb-20 { margin-bottom: 20px } .mb-24 { margin-bottom: 24px }
.gap-8 { gap: 8px } .gap-16 { gap: 16px } .gap-20 { gap: 20px } .gap-24 { gap: 24px }
.w-100 { width: 100% }
.tr { text-align: right } .tc { text-align: center }
.nowrap { white-space: nowrap }
.grid { display: grid; gap: 20px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.g-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.g-main-l { grid-template-columns: 300px minmax(0, 1fr); align-items: start; }

/* ---------- buttons ---------- */
.btn {
  --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: var(--h); padding: 0 18px; border-radius: 10px; border: 1px solid transparent;
  font: 600 14.5px/1 var(--font-ui); letter-spacing: -.005em; cursor: pointer; white-space: nowrap;
  color: var(--text); background: var(--surface); text-decoration: none !important;
  transition: background .15s, border-color .15s, color .15s, transform .15s, box-shadow .15s;
}
.btn i { font-size: 16px; line-height: 1; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, var(--shadow-sm); }
.btn-primary:hover { background: var(--brand-hover); }
.btn-accent { background: var(--accent); color: var(--accent-text); box-shadow: var(--shadow-sm); }
.btn-accent:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--border-strong); background: var(--surface); color: var(--text); }
.btn-outline:hover { border-color: var(--brand-ink); color: var(--brand-ink); }
.btn-ghost { background: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); color: var(--text); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-ok { background: var(--ok); color: #fff; }
[data-theme="dark"] .btn-ok { color: #08210F; }
.btn-light { background: #fff; color: #14213D; }
.btn-sm { --h: 36px; padding: 0 13px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { --h: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 40px; height: 40px; flex: 0 0 auto; display: inline-grid; place-items: center; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; position: relative;
  transition: background .15s, color .15s, border-color .15s;
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); background: var(--surface-2); }
.icon-btn i { font-size: 17px; line-height: 1; }
.icon-btn.plain { border-color: transparent; background: transparent; }
.icon-btn.sm { width: 36px; height: 36px; }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 2px var(--surface); }
.theme-toggle .bi-sun { display: none; }
[data-theme="dark"] .theme-toggle .bi-sun { display: inline; }
[data-theme="dark"] .theme-toggle .bi-moon-stars { display: none; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 13px; font-weight: 600; color: var(--text); }
.label .opt { font-weight: 400; color: var(--muted); }
.hint { font-size: 12.5px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border-strong);
  background: var(--surface); color: var(--text); font: 400 14.5px/1.4 var(--font-ui); min-width: 0;
  transition: border-color .15s, box-shadow .15s;
}
.input::placeholder, .textarea::placeholder { color: var(--faint); }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--brand-ink); box-shadow: 0 0 0 3px var(--brand-soft-2); }
.textarea { height: auto; min-height: 96px; padding: 11px 13px; resize: vertical; }
.select { appearance: none; padding-right: 36px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%23667089' d='M8 11.2 2.8 6l1.1-1.1L8 9l4.1-4.1L13.2 6z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; }
.input-sm { height: 36px; font-size: 13.5px; }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 15px; pointer-events: none; }
.input-icon .input { padding-left: 38px; }
.input-group { display: flex; align-items: stretch; min-width: 0; }
.input-group .addon { display: grid; place-items: center; padding: 0 12px; border: 1px solid var(--border-strong); background: var(--surface-3); color: var(--muted); font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.input-group .addon:first-child { border-radius: 10px 0 0 10px; border-right: 0; }
.input-group .addon:last-child { border-radius: 0 10px 10px 0; border-left: 0; }
.input-group .input:not(:first-child) { border-top-left-radius: 0; border-bottom-left-radius: 0; }
.input-group .input:not(:last-child) { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-group .btn { border-radius: 0 10px 10px 0; height: 42px; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; color: var(--text-2); cursor: pointer; min-height: 36px; }
.check input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; flex: 0 0 auto; }
[data-theme="dark"] .check input { accent-color: var(--accent); }
.switch { position: relative; display: inline-flex; align-items: center; width: 42px; height: 24px; flex: 0 0 auto; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: var(--border-strong); transition: background .2s; }
.switch span::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .2s; }
.switch input:checked + span { background: var(--brand); }
[data-theme="dark"] .switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.seg { display: inline-flex; padding: 3px; gap: 2px; background: var(--surface-3); border: 1px solid var(--border); border-radius: 10px; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button, .seg a { border: 0; background: transparent; color: var(--text-2); font: 600 13px/1 var(--font-ui); padding: 0 12px; height: 32px; border-radius: 8px; cursor: pointer; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; text-decoration: none !important; }
.seg .on, .seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
.dropzone { border: 1.5px dashed var(--border-strong); border-radius: 12px; padding: 22px; text-align: center; background: var(--surface-2); color: var(--muted); font-size: 13.5px; }
.dropzone i { font-size: 26px; color: var(--brand-ink); display: block; margin-bottom: 6px; }
.dropzone b { color: var(--text); }

/* ---------- cards, chips, misc ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); min-width: 0; }
.card-pad { padding: 22px; }
.card-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--border); min-height: 60px; flex-wrap: wrap; }
.card-head h3, .card-head h4 { margin: 0; }
.card-head .sub { font-size: 12.5px; color: var(--muted); }
.card-body { padding: 20px; }
.card-foot { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 99px;
  font: 600 12px/1 var(--font-ui); white-space: nowrap; background: var(--surface-3); color: var(--text-2);
}
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .85; }
.chip.nodot::before { display: none; }
.chip.draft, .chip.expired, .chip.ended { background: var(--surface-3); color: var(--muted); }
.chip.sent { background: var(--info-soft); color: var(--info); }
.chip.viewed { background: var(--brand-soft); color: var(--brand-ink); }
.chip.partial, .chip.pending, .chip.paused { background: var(--warn-soft); color: var(--warn); }
.chip.paid, .chip.accepted, .chip.active, .chip.approved, .chip.converted { background: var(--ok-soft); color: var(--ok); }
.chip.overdue, .chip.declined, .chip.failed { background: var(--bad-soft); color: var(--bad); }
.chip.gold { background: var(--accent-soft); color: var(--accent-ink); }
.tag { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 8px; border-radius: 7px; background: var(--surface-3); color: var(--text-2); font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.gold { background: var(--accent-soft); color: var(--accent-ink); }
.tag.navy { background: var(--brand-soft); color: var(--brand-ink); }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--accent); color: var(--accent-text); font-size: 11px; font-weight: 700; }
.avatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; flex: 0 0 auto; background: var(--surface-3); }
.avatar.sm { width: 28px; height: 28px; } .avatar.lg { width: 48px; height: 48px; } .avatar.xl { width: 64px; height: 64px; }
.mono-av { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; flex: 0 0 auto; font: 700 13px/1 var(--font-head); background: var(--brand-soft); color: var(--brand-ink); }
.mono-av.gold { background: var(--accent-soft); color: var(--accent-ink); }
.mono-av.sm { width: 30px; height: 30px; font-size: 12px; border-radius: 8px; }
.mono-av.lg { width: 56px; height: 56px; font-size: 19px; border-radius: 14px; }
.ico-box { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--brand-soft); color: var(--brand-ink); flex: 0 0 auto; }
.ico-box i { font-size: 18px; }
.ico-box.gold { background: var(--accent-soft); color: var(--accent-ink); }
.ico-box.ok { background: var(--ok-soft); color: var(--ok); }
.ico-box.bad { background: var(--bad-soft); color: var(--bad); }
.ico-box.info { background: var(--info-soft); color: var(--info); }
.ico-box.sm { width: 32px; height: 32px; border-radius: 9px; } .ico-box.sm i { font-size: 15px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font: 700 12.5px/1 var(--font-ui); letter-spacing: .09em; text-transform: uppercase; color: var(--accent-ink); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--accent); border-radius: 2px; }
.eyebrow.plain::before { display: none; }
.kbd { font: 600 11px/1 var(--font-ui); padding: 4px 6px; border: 1px solid var(--border); border-radius: 6px; color: var(--muted); background: var(--surface-2); }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
[data-theme="dark"] .progress > span { background: var(--c1); }
.progress.gold > span { background: var(--accent); }
.progress.ok > span { background: var(--ok); }
.progress.bad > span { background: var(--bad); }
.note { display: flex; gap: 12px; padding: 14px 16px; border-radius: 12px; background: var(--info-soft); color: var(--text-2); font-size: 13.5px; align-items: flex-start; }
.note i { color: var(--info); font-size: 17px; line-height: 1.3; }
.note.gold { background: var(--accent-soft); } .note.gold i { color: var(--accent-ink); }
.note.ok { background: var(--ok-soft); } .note.ok i { color: var(--ok); }
.note.navy { background: var(--brand-soft); } .note.navy i { color: var(--brand-ink); }
.note b { color: var(--text); }
.divider-label { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 12.5px; }
.divider-label::before, .divider-label::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.list-plain { list-style: none; margin: 0; padding: 0; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; color: var(--text-2); font-size: 14.5px; }
.ticks li i { color: var(--accent-ink); font-size: 17px; line-height: 1.35; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 9px 18px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; color: var(--text); font-weight: 550; text-align: right; }
.stack-sm > * + * { margin-top: 6px; }

/* ---------- dropdown / modal / drawer / toast ---------- */
.dd { position: relative; }
.dd-menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none;
}
.dd.open > .dd-menu { display: block; }
.dd-menu a, .dd-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 11px; border-radius: 8px; border: 0; background: none; color: var(--text); font: 500 14px/1.2 var(--font-ui); text-align: left; cursor: pointer; text-decoration: none !important; white-space: nowrap; }
.dd-menu a:hover, .dd-menu button:hover { background: var(--surface-3); }
.dd-menu i { color: var(--muted); font-size: 15px; width: 18px; }
.dd-menu .sep { height: 1px; background: var(--border); margin: 6px 4px; }
.dd-menu .dd-label { padding: 8px 11px 4px; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.modal-backdrop { position: fixed; inset: 0; background: rgba(9,14,28,.55); z-index: 90; display: none; }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(560px, calc(100vw - 32px)); max-height: calc(100vh - 48px); overflow: auto; z-index: 91; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); display: none; }
.modal.open, .modal-backdrop.open { display: block; }
.modal-head { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-head h3 { margin: 0; }
.modal-body { padding: 22px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 22px; border-top: 1px solid var(--border); flex-wrap: wrap; }
.side-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(520px, 100vw); background: var(--surface); border-left: 1px solid var(--border); box-shadow: var(--shadow-lg); z-index: 91; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; visibility: hidden; }
.side-drawer.open { transform: none; visibility: visible; }
.side-drawer .modal-body { overflow: auto; flex: 1; }
.toast-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 120; display: grid; gap: 10px; }
.toast { display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: calc(100vw - 40px); padding: 13px 16px; border-radius: 12px; background: #14213D; color: #fff; box-shadow: var(--shadow-lg); font-size: 14px; animation: toastIn .3s ease both; }
[data-theme="dark"] .toast { background: #E9EDF7; color: #0E1628; }
.toast i { color: var(--accent); font-size: 18px; }
[data-theme="dark"] .toast i { color: #855F00; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; padding: 0 14px; height: 44px; border: 0; background: none; color: var(--muted); font: 600 14px/1 var(--font-ui); cursor: pointer; white-space: nowrap; text-decoration: none !important; }
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .on { color: var(--text); }
.tabs .on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2.5px; border-radius: 3px; background: var(--accent); }
.tabs .count { font-size: 11.5px; color: var(--muted); background: var(--surface-3); padding: 3px 7px; border-radius: 99px; }
[data-panel] { display: none; }
[data-panel].on { display: block; }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font: 700 11.5px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 13px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2); white-space: nowrap; }
.table td { padding: 14px 16px; border-bottom: 1px solid var(--border); color: var(--text-2); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }
.table .r, .table th.r { text-align: right; }
.table .amt { font-weight: 650; color: var(--text); white-space: nowrap; text-align: right; }
.table .who { display: flex; align-items: center; gap: 11px; min-width: 0; }
.table .who b { display: block; color: var(--text); font-weight: 600; white-space: nowrap; }
.table .who small { color: var(--muted); font-size: 12.5px; display: block; }
.table .id { font-weight: 650; color: var(--text); white-space: nowrap; }
.table .ck { width: 44px; }
.table tr.selected { background: var(--brand-soft) !important; }
.table .acts { white-space: nowrap; text-align: right; }
.table tfoot td { font-weight: 700; color: var(--text); background: var(--surface-2); }
.table-compact td { padding: 10px 14px; } .table-compact th { padding: 10px 14px; }

/* ---------- public site header ---------- */
.install-bar { background: var(--hero-band); color: #fff; font-size: 13.5px; }
.install-bar .container { display: flex; align-items: center; gap: 12px; min-height: 42px; }
.install-bar p { margin: 0; color: #C9D2E6; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.install-bar p b { color: #fff; }
.install-bar .app-ico { width: 24px; height: 24px; flex: 0 0 auto; }
.install-bar .btn { --h: 30px; padding: 0 12px; font-size: 13px; background: var(--accent); color: var(--accent-text); }
.install-bar .close { width: 36px; height: 36px; background: transparent; border: 0; color: #C9D2E6; }
.install-bar.hidden { display: none; }
.site-header { position: sticky; top: 0; z-index: 50; background: var(--surface); border-bottom: 1px solid var(--border); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: var(--shadow); }
.site-header .container { display: flex; align-items: center; gap: 22px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none !important; flex: 0 0 auto; }
.logo svg { width: 34px; height: 34px; flex: 0 0 auto; }
.logo .lt { display: flex; flex-direction: column; line-height: 1; }
.logo .lt b { font: 800 18px/1 var(--font-head); letter-spacing: -.03em; color: var(--text); }
.logo .lt small { font: 600 10.5px/1 var(--font-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.main-nav { display: flex; align-items: center; gap: 2px; }
.main-nav > a, .main-nav .more-btn { padding: 9px 13px; border-radius: 9px; font: 600 14.5px/1 var(--font-ui); color: var(--text-2); text-decoration: none !important; white-space: nowrap; background: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.main-nav > a:hover, .main-nav .more-btn:hover { color: var(--text); background: var(--surface-3); }
.main-nav > a.active { color: var(--text); background: var(--brand-soft); }
.main-nav .more { display: none; }
.header-tools { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.burger { display: none; }
.mobile-drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(340px, 88vw); background: var(--surface); z-index: 95; transform: translateX(105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; border-left: 1px solid var(--border); visibility: hidden; }
.mobile-drawer.open { transform: none; visibility: visible; }
.drawer-backdrop { position: fixed; inset: 0; background: rgba(9,14,28,.5); z-index: 94; display: none; }
.drawer-backdrop.open { display: block; }
.drawer-head { display: flex; align-items: center; gap: 10px; padding: 0 16px; height: 64px; border-bottom: 1px solid var(--border); }
.mobile-drawer nav { padding: 12px; display: grid; gap: 2px; overflow: auto; }
.mobile-drawer nav a { display: flex; align-items: center; gap: 12px; padding: 12px 12px; border-radius: 10px; color: var(--text); font-weight: 600; text-decoration: none !important; }
.mobile-drawer nav a i { color: var(--muted); font-size: 18px; }
.mobile-drawer nav a.active { background: var(--brand-soft); }
.drawer-foot { margin-top: auto; padding: 16px; display: grid; gap: 10px; border-top: 1px solid var(--border); }

@media (max-width: 1360px) { .hide-1360 { display: none !important; } }
@media (max-width: 1280px) { .site-header .container { gap: 14px; } .main-nav > a { padding: 9px 10px; } .hide-1280 { display: none !important; } }
@media (max-width: 1100px) { .main-nav .nav-extra { display: none; } .main-nav .more { display: block; } }
@media (max-width: 980px) {
  .main-nav { display: none; }
  .burger { display: inline-grid; }
  .hide-m { display: none !important; }
  .header-tools { margin-left: auto; }
}
@media (max-width: 720px) {
  :root { --header-h: 60px; }
  .site-header .container { padding: 0 16px; gap: 8px; }
  .header-tools { gap: 6px; margin-left: auto; }
  .logo .lt small { display: none; }
  .logo svg { width: 32px; height: 32px; }
}

/* ---------- public sections ---------- */
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section.alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head h2 { margin-top: 14px; }
.section-head p { font-size: 17px; }
.lead { font-size: 18px; line-height: 1.6; color: var(--text-2); }
.hl { color: var(--brand-ink); position: relative; white-space: nowrap; }
[data-theme="dark"] .hl { color: var(--accent); }
.hl-u { background: linear-gradient(transparent 62%, var(--accent-soft) 62%); padding: 0 2px; }

.hero { position: relative; padding: 64px 0 84px; overflow: hidden; background: var(--surface); }
.hero::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px); background-size: 44px 44px; opacity: .45; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%); pointer-events: none; }
.hero .container { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.hero h1 { font-size: 56px; line-height: 1.04; letter-spacing: -.035em; margin: 18px 0 20px; }
.hero h1 em { font-style: normal; color: var(--brand-ink); }
[data-theme="dark"] .hero h1 em { color: var(--accent); }
.hero .lead { max-width: 540px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 30px; }
.hero-proof { display: flex; align-items: center; gap: 16px; margin-top: 34px; flex-wrap: wrap; }
.avatars { display: flex; }
.avatars img { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--surface); object-fit: cover; margin-left: -10px; }
.avatars img:first-child { margin-left: 0; }
.stars { color: var(--accent); font-size: 13px; letter-spacing: 1px; }
.hero-proof .t { font-size: 13.5px; color: var(--muted); line-height: 1.35; }
.hero-proof .t b { color: var(--text); font-size: 15px; }
.hero-proof .sep { width: 1px; height: 34px; background: var(--border); }

/* hero visual */
.hx { position: relative; min-height: 600px; }
.hx-photo { position: absolute; right: 0; top: 0; width: 70%; height: 94%; border-radius: 28px; overflow: hidden; background: var(--surface-3); box-shadow: var(--shadow-lg); }
.hx-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.hx-photo::after { content: ""; position: absolute; inset: auto 0 0 0; height: 40%; background: linear-gradient(transparent, rgba(12,22,43,.35)); }
.hx-ring { position: absolute; right: -40px; top: -40px; width: 200px; height: 200px; border-radius: 50%; border: 2px solid var(--accent); opacity: .7; }
.hx-dots { position: absolute; left: 8%; bottom: 0; width: 120px; height: 80px; background-image: radial-gradient(var(--accent) 1.6px, transparent 1.6px); background-size: 14px 14px; opacity: .55; }
.inv-card { position: absolute; left: 0; top: 84px; width: 340px; background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow-lg); padding: 18px 18px 16px; z-index: 3; }
.inv-card .ic-head { display: flex; align-items: center; gap: 10px; }
.inv-card .ic-head .mono-av { width: 34px; height: 34px; }
.inv-card .ic-head b { display: block; font: 750 14.5px/1.2 var(--font-head); color: var(--text); }
.inv-card .ic-head small { font-size: 12px; color: var(--muted); }
.inv-card .status { margin-left: auto; position: relative; height: 24px; min-width: 72px; }
.inv-card .status .chip { position: absolute; right: 0; top: 0; }
.inv-card .ic-meta { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; margin: 14px 0 10px; padding: 10px 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 11px; font-size: 11.5px; color: var(--muted); }
.inv-card .ic-meta b { display: block; font-size: 12.5px; color: var(--text); font-weight: 650; margin-top: 2px; }
.inv-card .ic-lines { display: grid; }
.inv-card .ic-line { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 8px 2px; border-bottom: 1px dashed var(--border); font-size: 13px; color: var(--text-2); }
.inv-card .ic-line span:last-child { font-weight: 650; color: var(--text); font-variant-numeric: tabular-nums; }
.inv-card .ic-line small { display: block; color: var(--faint); font-size: 11.5px; }
.inv-card .ic-sum { display: grid; gap: 5px; padding: 10px 2px 0; font-size: 12.5px; color: var(--muted); }
.inv-card .ic-sum div { display: flex; justify-content: space-between; font-variant-numeric: tabular-nums; }
.inv-card .ic-total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--border); }
.inv-card .ic-total span { font-size: 13px; font-weight: 650; color: var(--text); }
.inv-card .ic-total b { font: 800 26px/1 var(--font-head); color: var(--text); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.inv-card .ic-pay { display: flex; align-items: center; gap: 8px; margin-top: 12px; height: 40px; border-radius: 10px; background: var(--accent); color: var(--accent-text); font-weight: 700; font-size: 13.5px; justify-content: center; }
.float-card { position: absolute; z-index: 4; display: flex; align-items: center; gap: 11px; padding: 11px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.float-card b { display: block; color: var(--text); font-size: 13.5px; font-weight: 650; }
.fc-reminder { right: -18px; top: -22px; }
.fc-quote { left: -26px; top: 2px; }
.fc-recurring { right: -28px; top: 63%; }
.pay-toast { position: absolute; z-index: 5; right: -10px; bottom: 30px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px; border-radius: 14px; background: #14213D; color: #fff; box-shadow: var(--shadow-lg); font-size: 12.5px; }
[data-theme="dark"] .pay-toast { background: #1F2E55; border: 1px solid #33426C; }
.pay-toast .ico-box { background: var(--accent); color: #14213D; width: 36px; height: 36px; }
.pay-toast b { display: block; font-size: 14px; }
.pay-toast span { color: #C9D2E6; }

.stats-band { margin-top: -38px; position: relative; z-index: 2; }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); }
.stats > div { padding: 26px 28px; border-left: 1px solid var(--border); }
.stats > div:first-child { border-left: 0; }
.stats b { display: block; font: 800 34px/1 var(--font-head); color: var(--text); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { display: block; margin-top: 8px; font-size: 13.5px; color: var(--muted); }

/* services */
.svc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.svc { background: var(--surface); border: 1px solid var(--border); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.svc:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.svc .ph { position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; }
.svc .ph img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.svc:hover .ph img { transform: scale(1.04); }
.svc .ph .price { position: absolute; left: 14px; bottom: 14px; background: var(--surface); color: var(--text); padding: 7px 11px; border-radius: 10px; font-size: 12.5px; color: var(--muted); box-shadow: var(--shadow); }
.svc .ph .price b { color: var(--text); font-size: 14.5px; }
.svc .ph .ico { position: absolute; right: 14px; top: 14px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent); color: #14213D; font-size: 18px; }
.svc .body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.svc .body p { font-size: 14.5px; }
.svc .body a.more { margin-top: auto; font-weight: 650; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.svc-chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 28px; }
.svc-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--border); background: var(--surface); font-size: 13.5px; color: var(--text-2); }
.svc-chips span i { color: var(--accent-ink); }
.svc-chips span b { color: var(--text); }

/* how billing works */
.flow { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.flow-path { position: absolute; left: 16.6%; right: 16.6%; top: 22px; height: 60px; pointer-events: none; z-index: 2; overflow: visible; }
.flow-path path { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 6 7; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 24px; box-shadow: var(--shadow-sm); text-align: center; }
.step .mini { text-align: left; }
.step .n { width: 60px; height: 60px; border-radius: 18px; display: grid; place-items: center; background: var(--brand); color: #fff; font-size: 25px; position: relative; z-index: 3; margin: 0 auto; box-shadow: 0 0 0 8px var(--surface); }
.step .n i { line-height: 1; }
.step .k { display: block; margin-top: 18px; font: 800 12px/1 var(--font-head); color: var(--accent-ink); letter-spacing: .12em; }
.step h3 { margin: 8px 0 8px; font-size: 21px; }
.step p { font-size: 14.5px; }
.step .mini { margin-top: 16px; padding: 14px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border); font-size: 12.5px; }

/* feature tabs */
.ftabs { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 36px; align-items: center; }
.ftab-list { display: grid; gap: 8px; }
.ftab { position: relative; display: flex; gap: 14px; text-align: left; padding: 16px 18px; border-radius: 16px; border: 1px solid transparent; background: transparent; cursor: pointer; font: inherit; color: inherit; overflow: hidden; }
.ftab .ico-box { background: var(--surface); color: var(--text-2); border: 1px solid var(--border); }
.ftab:hover { background: var(--surface); }
.ftab b { display: block; font: 750 16px/1.25 var(--font-head); color: var(--text); }
.ftab span { display: block; font-size: 13.5px; color: var(--muted); margin-top: 3px; }
.ftab.on { background: var(--surface); border-color: var(--border); box-shadow: var(--shadow); }
.ftab.on .ico-box { background: var(--accent); color: #14213D; border-color: var(--accent); }
.ftab .bar { position: absolute; left: 18px; right: 18px; bottom: 0; height: 3px; border-radius: 3px; background: var(--surface-3); overflow: hidden; display: none; }
.ftab.on .bar { display: block; }
.ftab .bar i { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left; }
.fpanel-stage { position: relative; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 26px; padding: 28px; min-height: 440px; }
.fpanel { display: none; }
.fpanel.on { display: block; }
.mini-ui { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; }
.mini-ui .mu-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.mini-ui .mu-head b { font: 750 15px/1.2 var(--font-head); color: var(--text); }
.mini-ui .mu-body { padding: 16px 18px; }
.mu-row { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.mu-row:last-child { border-bottom: 0; }
.mu-row b { color: var(--text); font-weight: 650; }
.mu-row .amt { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }

/* trust */
.trust-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.trust-photo { position: relative; border-radius: 26px; overflow: hidden; aspect-ratio: 5 / 4; background: var(--surface-3); }
.trust-photo img { width: 100%; height: 100%; object-fit: cover; }
.trust-badge { position: absolute; left: 20px; bottom: 20px; right: 20px; display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-lg); font-size: 13px; color: var(--muted); }
.trust-badge b { display: block; color: var(--text); font-size: 14px; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 26px; }
.trust-item { padding: 18px; border-radius: 16px; border: 1px solid var(--border); background: var(--surface); }
.trust-item h4 { margin: 12px 0 4px; }
.trust-item p { font-size: 13.5px; margin: 0; }
.gw-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gw { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; font-weight: 650; color: var(--text-2); }
.gw i { color: var(--brand-ink); }

/* reviews marquee */
.marquee { position: relative; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.marquee-track { display: flex; gap: 20px; width: max-content; }
.review { width: 380px; flex: 0 0 auto; background: var(--surface); border: 1px solid var(--border); border-radius: 20px; padding: 22px; }
.review p { font-size: 15px; color: var(--text); line-height: 1.6; margin: 12px 0 18px; }
.review .who { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.review .who b { display: block; color: var(--text); font-size: 14px; }
.marquee + .marquee { margin-top: 20px; }

/* contact CTA */
.cta-band { position: relative; border-radius: 28px; background: var(--hero-band); color: #fff; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.cta-band .copy { padding: 56px; position: relative; z-index: 1; }
.cta-band h2 { color: #fff; font-size: 38px; }
.cta-band p { color: #C9D2E6; font-size: 17px; }
.cta-band .ph { position: relative; min-height: 380px; }
.cta-band .ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-band .contact-lines { display: grid; gap: 10px; margin-top: 26px; font-size: 14.5px; color: #C9D2E6; }
.cta-band .contact-lines span { display: flex; gap: 10px; align-items: center; }
.cta-band .contact-lines i { color: var(--accent); }
.cta-band .stripes { position: absolute; right: -60px; bottom: -60px; width: 260px; height: 260px; border-radius: 50%; border: 36px solid rgba(224,161,0,.16); }
.contact-form { background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 28px; box-shadow: var(--shadow); }

/* footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); padding: 64px 0 28px; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.site-footer h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.site-footer ul a { color: var(--text-2); font-size: 14.5px; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.socials a { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--border); color: var(--text-2); text-decoration: none !important; }
.socials a:hover { background: var(--brand); color: #fff; border-color: var(--brand); }
.footer-install { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); margin-top: 16px; font-size: 13px; color: var(--muted); }
.footer-install b { display: block; color: var(--text); font-size: 14px; }
.footer-bottom { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); }
.footer-bottom a { color: var(--muted); }

/* ---------- auth ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); }
.auth-side { position: relative; background: var(--hero-band); color: #fff; padding: 44px 56px; display: flex; flex-direction: column; overflow: hidden; }
.auth-side .logo .lt b { color: #fff; } .auth-side .logo .lt small { color: #8592B0; }
.auth-side h2 { color: #fff; font-size: 34px; margin-top: auto; max-width: 460px; }
.auth-side p { color: #C9D2E6; max-width: 440px; }
.auth-side .ph { margin-top: 28px; border-radius: 20px; overflow: hidden; aspect-ratio: 16 / 10; max-width: 520px; position: relative; background: #1D2D50; }
.auth-side .ph img { width: 100%; height: 100%; object-fit: cover; }
.auth-side .ph .pill { position: absolute; left: 14px; bottom: 14px; display: flex; gap: 10px; align-items: center; background: #fff; color: #121A2E; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; box-shadow: var(--shadow-lg); }
.auth-side .ph .pill b { display: block; font-size: 13.5px; }
.auth-side .foot { margin-top: 28px; font-size: 13px; color: #8592B0; }
.auth-main { display: flex; flex-direction: column; padding: 28px 48px; }
.auth-main .top { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.auth-form { width: 100%; max-width: 420px; margin: auto; padding: 32px 0; }
.auth-form h1 { font-size: 32px; }
.role-switch { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 22px 0; }
.role-switch label { position: relative; display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1.5px solid var(--border); cursor: pointer; background: var(--surface); }
.role-switch label b { display: block; font-size: 14px; color: var(--text); }
.role-switch label small { font-size: 12px; color: var(--muted); }
.role-switch input { position: absolute; opacity: 0; }
.role-switch label.on { border-color: var(--brand-ink); background: var(--brand-soft); }
.role-switch label.on .ico-box { background: var(--brand); color: #fff; }

/* ---------- public invoice / quote pages ---------- */
.pub-top { background: var(--surface); border-bottom: 1px solid var(--border); }
.pub-top .container { display: flex; align-items: center; gap: 12px; height: 68px; }
.pub-wrap { padding: 36px 0 72px; }
.pub-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
.pay-panel { position: sticky; top: 24px; }
.pay-amount { padding: 22px; border-radius: 18px 18px 0 0; background: var(--hero-band); color: #fff; }
.pay-amount small { color: #C9D2E6; font-size: 13px; }
.pay-amount b { display: block; font: 800 38px/1.1 var(--font-head); letter-spacing: -.03em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.pay-amount .due { display: inline-flex; gap: 6px; align-items: center; margin-top: 10px; font-size: 12.5px; color: #F2C04A; }
.gw-choice { display: grid; gap: 8px; }
.gw-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--border); border-radius: 12px; cursor: pointer; background: var(--surface); }
.gw-opt input { position: absolute; opacity: 0; }
.gw-opt .gl { width: 40px; height: 28px; border-radius: 7px; display: grid; place-items: center; font: 800 11px/1 var(--font-ui); letter-spacing: -.01em; flex: 0 0 auto; }
.gw-opt b { display: block; font-size: 14px; color: var(--text); }
.gw-opt small { font-size: 12px; color: var(--muted); }
.gw-opt .rad { margin-left: auto; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--border-strong); flex: 0 0 auto; }
.gw-opt.on { border-color: var(--brand-ink); background: var(--brand-soft); }
.gw-opt.on .rad { border: 5px solid var(--brand-ink); }
.gl.stripe { background: #EEF0FF; color: #4B4FD8; } .gl.paypal { background: #E8F1FB; color: #1D4F91; } .gl.paystack { background: #E6F6FB; color: #0B6E8E; }
.gl.razorpay { background: #E8EEFC; color: #1C3D8C; } .gl.payhere { background: #FDEEE6; color: #A1430F; } .gl.bank { background: var(--accent-soft); color: var(--accent-ink); }
[data-theme="dark"] .gl.stripe, [data-theme="dark"] .gl.paypal, [data-theme="dark"] .gl.paystack, [data-theme="dark"] .gl.razorpay, [data-theme="dark"] .gl.payhere { background: #1E2A4A; color: #C9D6F5; }
.sign-pad { border: 1.5px dashed var(--border-strong); border-radius: 12px; background: var(--surface-2); padding: 14px 16px; min-height: 86px; display: flex; flex-direction: column; justify-content: flex-end; }
.sign-pad .sig { font: 600 34px/1 var(--font-sign); color: var(--brand-ink); min-height: 36px; }
.sign-pad .line { border-top: 1px solid var(--border-strong); margin-top: 8px; padding-top: 6px; font-size: 11.5px; color: var(--muted); display: flex; justify-content: space-between; gap: 8px; }

/* ---------- invoice document (paper) ---------- */
.doc { background: var(--paper); color: var(--paper-text); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 44px 48px; font-size: 13.5px; position: relative; overflow: hidden; }
[data-theme="dark"] .doc { border-color: #2B3A62; }
.doc h2, .doc h3, .doc h4, .doc b, .doc strong { color: var(--paper-text); }
.doc p { color: var(--paper-muted); }
.doc .muted { color: var(--paper-muted); }
.doc-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; }
.doc-brand { display: flex; align-items: center; gap: 12px; }
.doc-brand svg { width: 44px; height: 44px; }
.doc-brand b { display: block; font: 800 20px/1.1 "Manrope", sans-serif; letter-spacing: -.02em; }
.doc-brand small { color: var(--paper-muted); font-size: 12px; }
.doc-title { text-align: right; }
.doc-title h2 { font: 800 30px/1 "Manrope", sans-serif; letter-spacing: .02em; margin: 0 0 8px; text-transform: uppercase; }
.doc-title .no { font-weight: 650; color: var(--paper-muted); }
.doc-parties { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 24px; margin: 34px 0 28px; }
.doc-parties .lbl { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 7px; }
.doc-parties div { line-height: 1.55; color: #3F4A66; }
.doc-parties b { font-size: 14px; }
.doc-dates { display: grid; gap: 4px; }
.doc-dates span { display: flex; justify-content: space-between; gap: 12px; }
.doc table { width: 100%; border-collapse: collapse; }
.doc th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-muted); padding: 10px 10px; border-bottom: 1.5px solid var(--paper-text); font-weight: 700; white-space: nowrap; }
.doc td { padding: 13px 10px; border-bottom: 1px solid var(--paper-line); vertical-align: top; color: #3F4A66; }
.doc td b { font-weight: 650; display: block; color: var(--paper-text); }
.doc td small { color: var(--paper-muted); font-size: 12px; }
.doc .r { text-align: right; white-space: nowrap; }
.doc-totals { margin-left: auto; width: 320px; margin-top: 18px; display: grid; gap: 8px; }
.doc-totals div { display: flex; justify-content: space-between; color: #3F4A66; }
.doc-totals .grand { padding-top: 12px; margin-top: 4px; border-top: 1.5px solid var(--paper-text); font-weight: 800; font-size: 17px; color: var(--paper-text); }
.doc-totals .bal { padding: 11px 14px; margin-top: 6px; border-radius: 10px; background: #14213D; color: #fff; font-weight: 700; }
.doc-totals .bal span { color: #fff; }
.doc-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--paper-line); font-size: 12.5px; }
.doc-notes .lbl { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--paper-muted); margin-bottom: 6px; }
.doc-notes p { margin: 0; color: #3F4A66; }
.doc-foot { margin-top: 26px; display: flex; justify-content: space-between; gap: 12px; font-size: 11.5px; color: var(--paper-muted); flex-wrap: wrap; }
.doc .stamp { position: absolute; right: 44px; top: 132px; transform: rotate(-12deg); border: 3px solid #17803D; color: #17803D; font: 800 22px/1 "Manrope", sans-serif; letter-spacing: .12em; padding: 8px 14px; border-radius: 10px; opacity: .85; }
/* template: classic (navy band) */
.doc.t-classic { padding-top: 0; }
.doc.t-classic .band { margin: 0 -48px 34px; padding: 30px 48px; background: #14213D; color: #fff; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.doc.t-classic .band b, .doc.t-classic .band h2 { color: #fff; }
.doc.t-classic .band small, .doc.t-classic .band .no { color: #C9D2E6; }
.doc.t-classic .band .doc-title h2 { color: #E0A100; }
/* template: modern (yellow rail) */
.doc.t-modern { border-left: 0; }
.doc.t-modern::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 10px; background: #E0A100; }
.doc.t-modern .doc-title h2 { text-transform: none; letter-spacing: -.02em; font-size: 34px; }
.doc.t-modern th { border-bottom: 0; background: #F5F7FB; }
.doc.t-modern .doc-totals .grand { border-top: 0; background: #FDF4DA; padding: 12px 14px; border-radius: 10px; }
.doc.t-modern .amount-big { font: 800 36px/1 "Manrope", sans-serif; letter-spacing: -.03em; color: #14213D; }
/* template: minimal */
.doc.t-minimal { font-family: var(--font-ui); }
.doc.t-minimal .doc-title h2 { font-weight: 300; letter-spacing: .3em; font-size: 22px; }
.doc.t-minimal th { border-bottom: 1px solid var(--paper-line); font-weight: 600; }
.doc.t-minimal .doc-totals .grand { border-top: 1px solid var(--paper-line); font-weight: 700; }
.doc.t-minimal .doc-totals .bal { background: transparent; color: #14213D; border: 1.5px solid #14213D; }
.doc.t-minimal .doc-totals .bal span { color: #14213D; }

/* ---------- app shell ---------- */
.app { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; background: var(--side-bg); color: var(--side-text); display: flex; flex-direction: column; overflow: hidden; z-index: 70; }
.sidebar .brandrow { display: flex; align-items: center; gap: 10px; padding: 0 18px; height: 68px; border-bottom: 1px solid rgba(255,255,255,.07); }
.sidebar .logo .lt b { color: #fff; }
.sidebar .logo .lt small { color: var(--side-muted); }
.sidebar nav { padding: 14px 12px; overflow: auto; flex: 1; scrollbar-width: thin; scrollbar-color: #2A3A60 transparent; }
.side-label { padding: 14px 10px 7px; font: 700 11px/1 var(--font-ui); letter-spacing: .1em; text-transform: uppercase; color: var(--side-muted); }
.side-link { position: relative; display: flex; align-items: center; gap: 12px; padding: 0 11px; height: 40px; border-radius: 10px; color: var(--side-text); font-size: 14px; font-weight: 550; text-decoration: none !important; }
.side-link i { font-size: 17px; color: var(--side-muted); width: 20px; text-align: center; }
.side-link:hover { background: var(--side-hover); color: #fff; }
.side-link.on { background: var(--side-active); color: #fff; }
.side-link.on i { color: var(--accent); }
.side-link.on::before { content: ""; position: absolute; left: -12px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side-link .badge { margin-left: auto; }
.side-link .cnt { margin-left: auto; font-size: 12px; color: var(--side-muted); }
.side-foot { padding: 14px; border-top: 1px solid rgba(255,255,255,.07); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; }
.side-user b { display: block; color: #fff; font-size: 13.5px; }
.side-user small { color: var(--side-muted); font-size: 12px; }
.side-plan { padding: 12px; border-radius: 12px; background: rgba(224,161,0,.12); color: #F2C04A; font-size: 12.5px; display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.side-plan b { color: #fff; display: block; font-size: 13px; }
.app-main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; height: 68px; background: var(--surface); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 28px; }
.topbar .crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); min-width: 0; white-space: nowrap; overflow: hidden; }
.topbar .crumbs b { color: var(--text); font-weight: 650; overflow: hidden; text-overflow: ellipsis; }
.topbar .crumbs i { font-size: 11px; }
.topbar .tb-search { width: 320px; margin-left: auto; }
.topbar .tb-tools { display: flex; align-items: center; gap: 8px; }
.topbar .me { display: flex; align-items: center; gap: 10px; padding: 3px 10px 3px 3px; border: 1px solid var(--border); border-radius: 99px; background: var(--surface); cursor: pointer; }
.topbar .me b { font-size: 13.5px; color: var(--text); font-weight: 600; white-space: nowrap; }
.topbar .mlogo { display: none; }
.app-burger { display: none; }
.search-btn { display: none; }
.content { padding: 28px; flex: 1; }
.page-head { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.page-head h1 { font-size: 28px; margin: 0; letter-spacing: -.025em; }
.page-head p { margin: 6px 0 0; font-size: 14.5px; color: var(--muted); }
.page-head .acts { margin-left: auto; display: flex; gap: 10px; flex-wrap: wrap; }
.app-foot { padding: 18px 28px; font-size: 12.5px; color: var(--faint); display: flex; gap: 10px; justify-content: space-between; flex-wrap: wrap; border-top: 1px solid var(--border); }

@media (max-width: 1360px) {
  .topbar .tb-search { display: none; }
  .search-btn { display: inline-grid; }
  .topbar .tb-tools { margin-left: auto; }
}
@media (max-width: 1280px) { .topbar .me b { display: none; } .topbar .me { padding: 3px; } .hide-tb { display: none !important; } }
@media (max-width: 1100px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 272px; transform: translateX(-105%); transition: transform .28s cubic-bezier(.2,.8,.2,1); visibility: hidden; z-index: 96; }
  .sidebar.open { transform: none; visibility: visible; }
  .app-burger { display: inline-grid; }
  .topbar .mlogo { display: inline-flex; }
  .topbar .crumbs { display: none; }
}
@media (max-width: 720px) {
  .topbar { height: 60px; padding: 0 12px 0 16px; gap: 6px; }
  .topbar .tb-tools { gap: 6px; margin-left: auto; }
  .topbar .mlogo .lt small { display: none; }
  .topbar .mlogo svg { width: 32px; height: 32px; }
  .hide-m { display: none !important; }
  .content { padding: 18px 16px; }
  .page-head h1 { font-size: 24px; }
  .page-head .acts { margin-left: 0; width: 100%; }
  .app-foot { padding: 16px; }
}

/* app widgets */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.kpi { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow-sm); overflow: hidden; }
.kpi .top { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .kpi-value { font: 800 28px/1.1 var(--font-head); color: var(--text); letter-spacing: -.025em; margin-top: 12px; }
.kpi .kpi-value small { font-size: 16px; color: var(--muted); font-weight: 700; }
.kpi .delta { margin-top: 6px; font-size: 12.5px; color: var(--muted); display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.kpi .delta .up { color: var(--ok); font-weight: 650; } .kpi .delta .dn { color: var(--bad); font-weight: 650; }
.kpi svg.spark { position: absolute; right: 14px; bottom: 14px; width: 90px; height: 32px; }
.kpi.navy { background: var(--brand); border-color: var(--brand); }
.kpi.navy .top, .kpi.navy .delta { color: #C9D2E6; } .kpi.navy .kpi-value { color: #fff; } .kpi.navy .delta .up { color: #F2C04A; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 500 11px var(--font-ui); fill: var(--muted); }
.chart .grid-l { stroke: var(--border); stroke-width: 1; }
.chart .axis-l { stroke: var(--border-strong); }
.aging { display: grid; gap: 14px; }
.aging .ar { display: grid; grid-template-columns: 92px minmax(0, 1fr) 96px; gap: 12px; align-items: center; font-size: 13.5px; }
.aging .ar span:first-child { color: var(--text-2); }
.aging .ar b { text-align: right; color: var(--text); font-variant-numeric: tabular-nums; }
.feed { display: grid; }
.feed .fi { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text-2); }
.feed .fi:last-child { border-bottom: 0; }
.feed .fi b { color: var(--text); font-weight: 650; }
.feed .fi time { display: block; font-size: 12px; color: var(--faint); margin-top: 2px; }
.timeline { position: relative; display: grid; gap: 0; }
.timeline .tl { position: relative; display: flex; gap: 14px; padding-bottom: 20px; }
.timeline .tl::before { content: ""; position: absolute; left: 15px; top: 32px; bottom: 0; width: 2px; background: var(--border); }
.timeline .tl:last-child::before { display: none; }
.timeline .tl:last-child { padding-bottom: 0; }
.timeline .dot { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-3); color: var(--muted); flex: 0 0 auto; font-size: 14px; position: relative; z-index: 1; }
.timeline .dot.on { background: var(--accent); color: #14213D; }
.timeline .dot.navy { background: var(--brand); color: #fff; }
.timeline .dot.ok { background: var(--ok-soft); color: var(--ok); }
.timeline b { display: block; font-size: 14px; color: var(--text); font-weight: 650; }
.timeline small { font-size: 12.5px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.toolbar .input-icon { flex: 1 1 240px; max-width: 340px; }
.bulkbar { display: none; align-items: center; gap: 10px; padding: 10px 16px; background: var(--brand); color: #fff; font-size: 13.5px; flex-wrap: wrap; }
.bulkbar.on { display: flex; }
.bulkbar .btn { --h: 32px; background: rgba(255,255,255,.12); color: #fff; border: 0; }
.bulkbar .btn:hover { background: rgba(255,255,255,.2); }
.sum-strip { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--border); }
.sum-strip > div { padding: 16px 20px; border-left: 1px solid var(--border); }
.sum-strip > div:first-child { border-left: 0; }
.sum-strip small { display: block; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.sum-strip b { display: block; margin-top: 4px; font: 800 20px/1.2 var(--font-head); color: var(--text); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.sum-strip span { font-size: 12px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.pager .pg { display: flex; gap: 4px; margin-left: auto; }
.pager .pg a { min-width: 36px; height: 36px; display: grid; place-items: center; border-radius: 9px; border: 1px solid var(--border); color: var(--text-2); font-weight: 600; text-decoration: none !important; }
.pager .pg a.on { background: var(--brand); color: #fff; border-color: var(--brand); }

/* editor */
.lines { width: 100%; border-collapse: separate; border-spacing: 0; }
.lines th { text-align: left; font: 700 11.5px/1 var(--font-ui); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 10px 8px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.lines td { padding: 10px 8px; border-bottom: 1px solid var(--border); vertical-align: top; }
.lines .input, .lines .select { height: 38px; font-size: 14px; }
.lines .desc .input { font-weight: 600; }
.lines .desc .sub { margin-top: 6px; height: 34px; font-size: 13px; color: var(--text-2); }
.lines .lt-total { font-weight: 700; color: var(--text); text-align: right; padding-top: 19px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.lines .drag { color: var(--faint); padding-top: 19px; cursor: grab; width: 24px; }
.tax-pills { display: flex; flex-wrap: wrap; gap: 4px; min-height: 38px; align-items: center; padding: 4px 6px; border: 1px solid var(--border-strong); border-radius: 10px; background: var(--surface); }
.tax-pills .tag { height: 26px; }
.tax-pills .none { color: var(--faint); font-size: 13px; padding: 0 4px; }
.totals-box { display: grid; gap: 10px; font-size: 14px; }
.totals-box > div { display: flex; justify-content: space-between; gap: 12px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.totals-box .grand { padding-top: 12px; border-top: 1px solid var(--border); font: 800 22px/1.2 var(--font-head); color: var(--text); letter-spacing: -.02em; }
.totals-box .grand span { color: var(--text); }
.tpl-thumbs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tpl { position: relative; border: 2px solid var(--border); border-radius: 12px; padding: 8px; cursor: pointer; background: var(--surface); }
.tpl.on { border-color: var(--accent); }
.tpl.on::after { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; top: -9px; right: -9px; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #14213D; display: grid; place-items: center; font-size: 12px; }
.tpl .paper { aspect-ratio: 210 / 297; border-radius: 6px; background: #fff; border: 1px solid #E4E8F0; overflow: hidden; position: relative; padding: 8px; }
.tpl b { display: block; font-size: 13px; text-align: center; margin-top: 8px; color: var(--text); }
.tp-l { height: 4px; border-radius: 2px; background: #E4E8F0; margin-top: 4px; }
.tp-l.d { background: #CBD2E1; } .tp-l.s { width: 50%; } .tp-l.m { width: 70%; }
.tp-band { margin: -8px -8px 8px; height: 22%; background: #14213D; position: relative; }
.tp-band::after { content: ""; position: absolute; right: 8px; top: 40%; width: 26%; height: 5px; border-radius: 2px; background: #E0A100; }
.tp-rail { position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: #E0A100; }
.tp-tot { margin-left: auto; width: 46%; height: 10px; border-radius: 3px; background: #14213D; margin-top: 8px; }
.tp-tot.y { background: #FDF4DA; border: 1px solid #E0A100; }
.tp-tot.o { background: #fff; border: 1.5px solid #14213D; }

/* settings */
.settings { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { position: sticky; top: 92px; display: grid; gap: 2px; padding: 8px; }
.set-nav a { display: flex; align-items: center; gap: 11px; padding: 0 12px; height: 40px; border-radius: 10px; color: var(--text-2); font-size: 14px; font-weight: 550; text-decoration: none !important; white-space: nowrap; }
.set-nav a i { color: var(--muted); font-size: 16px; }
.set-nav a:hover { background: var(--surface-3); }
.set-nav a.on { background: var(--brand-soft); color: var(--text); font-weight: 650; }
.set-nav a.on i { color: var(--brand-ink); }
.set-sec { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 28px; padding: 22px 0; border-bottom: 1px solid var(--border); }
.set-sec:last-child { border-bottom: 0; }
.set-sec h4 { margin: 0 0 4px; }
.set-sec .d { font-size: 13px; color: var(--muted); }
.gw-card { border: 1px solid var(--border); border-radius: 14px; background: var(--surface); }
.gw-card .gh { display: flex; align-items: center; gap: 12px; padding: 14px 16px; }
.gw-card .gh b { display: block; font-size: 14.5px; color: var(--text); }
.gw-card .gh small { font-size: 12.5px; color: var(--muted); }
.gw-card .gb { padding: 0 16px 16px; display: grid; gap: 12px; }
.swatches { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.swatch { border: 2px solid var(--border); border-radius: 12px; padding: 10px; cursor: pointer; background: var(--surface); }
.swatch.on { border-color: var(--accent); }
.swatch .sw { display: flex; height: 36px; border-radius: 8px; overflow: hidden; }
.swatch .sw i { flex: 1; }
.swatch b { display: block; margin-top: 8px; font-size: 13px; color: var(--text); }
.color-in { display: flex; align-items: center; gap: 10px; }
.color-in .chipc { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--border-strong); flex: 0 0 auto; }
.theme-pick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.theme-pick label { border: 2px solid var(--border); border-radius: 12px; padding: 8px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--text); text-align: center; }
.theme-pick label.on { border-color: var(--accent); }
.theme-pick .pv { height: 64px; border-radius: 8px; margin-bottom: 8px; display: grid; grid-template-columns: 26% 1fr; overflow: hidden; border: 1px solid var(--border); }
.soc-row { display: grid; grid-template-columns: 24px 40px 130px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--border); }
.soc-row:last-child { border-bottom: 0; }
.soc-ico { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-size: 17px; }
.soc-row .grip { color: var(--faint); cursor: grab; }
.soc-row b { font-size: 14px; color: var(--text); }
.copy-field { display: flex; align-items: center; gap: 8px; padding: 0 6px 0 12px; height: 40px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); font-size: 12.5px; min-width: 0; }
.copy-field code { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-2); font-family: ui-monospace, Menlo, Consolas, monospace; }
.copy-field .btn { --h: 30px; padding: 0 10px; font-size: 12.5px; }
.lang-row { display: grid; grid-template-columns: minmax(0, 1fr) 120px 140px auto auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.lang-row:last-child { border-bottom: 0; }
.perm-grid { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.perm-grid th, .perm-grid td { padding: 10px 12px; border-bottom: 1px solid var(--border); text-align: center; }
.perm-grid th:first-child, .perm-grid td:first-child { text-align: left; }
.perm-grid th { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.perm-grid .y { color: var(--ok); font-size: 16px; } .perm-grid .n { color: var(--faint); font-size: 16px; }

/* portal */
.portal-head { background: var(--surface); border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 50; }
.portal-head .container { display: flex; align-items: center; gap: 22px; height: 68px; }
.portal-nav { display: flex; gap: 2px; }
.portal-nav a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border-radius: 9px; font: 600 14px/1 var(--font-ui); color: var(--text-2); text-decoration: none !important; white-space: nowrap; }
.portal-nav a i { font-size: 15px; color: var(--muted); }
.portal-nav a:hover { background: var(--surface-3); color: var(--text); }
.portal-nav a.active { background: var(--brand-soft); color: var(--text); }
.portal-nav a.active i { color: var(--brand-ink); }
.portal-hero { background: var(--hero-band); color: #fff; padding: 36px 0 84px; position: relative; overflow: hidden; }
.portal-hero h1 { color: #fff; font-size: 30px; margin: 0; }
.portal-hero p { color: #C9D2E6; margin: 6px 0 0; }
.portal-hero::after { content: ""; position: absolute; right: -80px; top: -120px; width: 360px; height: 360px; border-radius: 50%; border: 48px solid rgba(224,161,0,.12); }
.portal-body { margin-top: -56px; position: relative; z-index: 1; padding-bottom: 64px; }
.balance-card { display: grid; grid-template-columns: minmax(0, 1.2fr) repeat(3, minmax(0, 1fr)); background: var(--surface); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.balance-card > div { padding: 22px 24px; border-left: 1px solid var(--border); }
.balance-card > div:first-child { border-left: 0; background: var(--accent-soft); }
.balance-card small { font-size: 13px; color: var(--muted); font-weight: 600; display: block; }
.balance-card b { display: block; font: 800 26px/1.2 var(--font-head); color: var(--text); letter-spacing: -.02em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.balance-card .big b { font-size: 36px; }
.balance-card span { font-size: 12.5px; color: var(--muted); }
@media (max-width: 980px) { .portal-nav { display: none; } }

/* index overview */
.ov-hero { padding: 48px 0 28px; }
.ov-area { margin-top: 34px; }
.ov-area h2 { font-size: 20px; display: flex; align-items: center; gap: 10px; }
.ov-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.ov-card { display: block; padding: 16px; border-radius: 14px; border: 1px solid var(--border); background: var(--surface); color: var(--text); text-decoration: none !important; transition: border-color .15s, transform .15s; }
.ov-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.ov-card b { display: flex; align-items: center; gap: 8px; font-size: 14.5px; }
.ov-card b i { margin-left: auto; color: var(--faint); }
.ov-card p { margin: 6px 0 8px; font-size: 13px; color: var(--muted); }
.ov-card code { font-size: 12px; color: var(--accent-ink); }

/* ---------- responsive ---------- */
@media (max-width: 1200px) {
  .hero h1 { font-size: 48px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-main { grid-template-columns: minmax(0, 1fr) 320px; }
  .ov-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
  .hero .container { grid-template-columns: minmax(0, 1fr); gap: 40px; }
  .hx { max-width: 640px; width: 100%; margin: 0 auto; }
  .ftabs { grid-template-columns: minmax(0, 1fr); }
  .ftab-list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .ftab { flex-direction: column; gap: 10px; padding: 14px; }
  .ftab span { display: none; }
  .ftab b { font-size: 14px; }
  .pub-grid { grid-template-columns: minmax(0, 1fr) 340px; }
  .g-main, .g-main-l { grid-template-columns: minmax(0, 1fr); }
  .settings { grid-template-columns: minmax(0, 1fr); }
  .set-nav { position: static; display: flex; overflow-x: auto; scrollbar-width: none; padding: 6px; }
  .set-nav::-webkit-scrollbar { display: none; }
  .set-sec { grid-template-columns: minmax(0, 1fr); gap: 14px; }
}
@media (max-width: 980px) {
  .section { padding: 72px 0; }
  .svc-grid, .flow { grid-template-columns: minmax(0, 1fr); }
  .flow-path { display: none; }
  .trust-grid, .cta-band { grid-template-columns: minmax(0, 1fr); }
  .cta-band .ph { min-height: 260px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats > div:nth-child(3) { border-left: 0; }
  .stats > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .auth { grid-template-columns: minmax(0, 1fr); }
  .auth-side { display: none; }
  .pub-grid { grid-template-columns: minmax(0, 1fr); }
  .pay-panel { position: static; }
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .balance-card { grid-template-columns: 1fr 1fr; }
  .balance-card > div:nth-child(3) { border-left: 0; }
  .balance-card > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .sum-strip { grid-template-columns: 1fr 1fr; }
  .sum-strip > div:nth-child(3) { border-left: 0; }
  .sum-strip > div:nth-child(n+3) { border-top: 1px solid var(--border); }
  .doc { padding: 32px 28px; }
  .doc.t-classic .band { margin: 0 -28px 28px; padding: 24px 28px; }
  .ov-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .container { padding: 0 16px; }
  h1 { font-size: 32px; } h2 { font-size: 26px; }
  .section { padding: 56px 0; } .section-sm { padding: 44px 0; }
  .section-head { margin-bottom: 30px; }
  .section-head p { font-size: 15.5px; }
  .hero { padding: 36px 0 64px; }
  .hero h1 { font-size: 38px; }
  .lead { font-size: 16px; }
  .hx { min-height: 0; padding-bottom: 8px; }
  .hx-photo { position: relative; width: 100%; height: 300px; right: auto; top: auto; border-radius: 22px; }
  .hx-ring, .hx-dots { display: none; }
  .inv-card { position: relative; left: auto; top: auto; width: auto; margin: -70px 12px 0; }
  .fc-reminder { right: 10px; top: 14px; }
  .fc-recurring, .fc-quote { display: none; }
  .pay-toast { right: 50%; transform: translateX(50%); bottom: -14px; width: max-content; max-width: calc(100% - 24px); }
  .hero-cta .btn { flex: 1 1 auto; }
  .stats { border-radius: 16px; }
  .stats > div { padding: 18px; }
  .stats b { font-size: 26px; }
  .ftab-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
  .ftab { padding: 10px 4px; align-items: center; text-align: center; }
  .ftab .ico-box { width: 36px; height: 36px; }
  .ftab b { font-size: 11.5px; }
  .ftab .bar { left: 8px; right: 8px; }
  .fpanel-stage { padding: 14px; border-radius: 18px; min-height: 0; }
  .trust-list { grid-template-columns: minmax(0, 1fr); }
  .review { width: 300px; padding: 18px; }
  .cta-band { border-radius: 20px; }
  .cta-band .copy { padding: 30px 22px; }
  .cta-band h2 { font-size: 28px; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .contact-form { padding: 20px; }
  .auth-main { padding: 16px; }
  .auth-form h1 { font-size: 27px; }
  .role-switch { grid-template-columns: minmax(0, 1fr); }
  .g-2, .g-3, .g-4, .g-5, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .kpi { padding: 14px; }
  .kpi .kpi-value { font-size: 21px; }
  .kpi svg.spark { display: none; }
  .card-head { padding: 14px 16px; }
  .card-body { padding: 16px; }
  .card-pad { padding: 16px; }
  .doc { padding: 22px 16px; font-size: 12.5px; border-radius: 12px; }
  .doc.t-classic .band { margin: 0 -16px 22px; padding: 20px 16px; flex-wrap: wrap; }
  .doc-head { flex-direction: column; }
  .doc-title { text-align: left; }
  .doc-title h2 { font-size: 24px; }
  .doc-parties { grid-template-columns: minmax(0, 1fr); gap: 16px; margin: 22px 0; }
  .doc-totals { width: 100%; }
  .doc-notes { grid-template-columns: minmax(0, 1fr); }
  .doc .stamp { top: 22px; right: 16px; font-size: 16px; }
  .doc .lines-doc thead { display: none; }
  .doc .lines-doc tr { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--paper-line); }
  .doc .lines-doc td { padding: 0; border: 0; }
  .doc .lines-doc td.q { grid-column: 1; color: var(--paper-muted); font-size: 12px; }
  .doc .lines-doc td.rt, .doc .lines-doc td.tx { display: none; }
  .doc .lines-doc td.lt { grid-row: 1; grid-column: 2; font-weight: 700; color: var(--paper-text); }
  .balance-card { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .balance-card > div:first-child { grid-column: 1 / -1; }
  .balance-card > div:nth-child(2) { border-left: 0; border-top: 1px solid var(--border); }
  .balance-card > div:nth-child(3) { border-left: 1px solid var(--border); }
  .balance-card > div:nth-child(4) { border-left: 0; grid-column: 1 / -1; }
  .balance-card > div { padding: 16px 18px; }
  .balance-card .big b { font-size: 30px; }
  .portal-hero { padding: 26px 0 76px; }
  .portal-hero h1 { font-size: 24px; }
  .ov-grid { grid-template-columns: minmax(0, 1fr); }
  .tpl-thumbs, .swatches, .theme-pick { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .soc-row { grid-template-columns: 40px minmax(0, 1fr) auto; }
  .soc-row .grip, .soc-row .del { display: none; }
  .soc-row b { grid-column: 2; }
  .soc-row .input { grid-column: 1 / -1; grid-row: 2; }
  .soc-row .switch { grid-column: 3; grid-row: 1; }
  .lang-row { grid-template-columns: minmax(0, 1fr) auto; }
  .lang-row .prog, .lang-row .src { display: none; }
  .aging .ar { grid-template-columns: 74px minmax(0, 1fr) 84px; }
  .page-head .acts .btn { flex: 1 1 auto; }
  .toolbar .input-icon { max-width: none; flex-basis: 100%; }
  .toast-wrap { left: 16px; right: 16px; bottom: 16px; }
  .toast { min-width: 0; }
  /* tables become cards */
  .rtable thead { display: none; }
  .rtable, .rtable tbody, .rtable tr, .rtable td { display: block; width: 100%; }
  .rtable tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .rtable tbody tr:last-child { border-bottom: 0; }
  .rtable td { padding: 3px 0; border: 0; display: flex; justify-content: space-between; align-items: center; gap: 12px; text-align: right; min-height: 26px; }
  .rtable td::before { content: attr(data-label); font-size: 12px; font-weight: 600; color: var(--muted); text-align: left; flex: 0 0 auto; }
  .rtable td.main { display: block; text-align: left; padding: 0 44px 8px 0; }
  .rtable td.main::before { display: none; }
  .rtable td.ck { position: absolute; right: 12px; top: 10px; width: auto; padding: 0; }
  .rtable td.ck::before { display: none; }
  .rtable td.acts { justify-content: flex-end; padding-top: 8px; }
  .rtable td.acts::before { display: none; }
  .rtable td.hide-card { display: none; }
  .rtable tfoot { display: block; }
  .rtable tfoot tr { display: flex; justify-content: space-between; }
  .lines thead { display: none; }
  .lines, .lines tbody, .lines tr { display: block; width: 100%; }
  .lines tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 14px 0; border-bottom: 1px solid var(--border); }
  .lines td { padding: 0; border: 0; min-width: 0; }
  .lines td.desc { grid-column: 1 / -1; }
  .lines td.drag { display: none; }
  .lines td.tx { grid-column: 1 / 3; }
  .lines td.lt-total { padding-top: 10px; }
  .lines td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 600; color: var(--muted); margin-bottom: 4px; }
  .lines td.del { position: absolute; right: 0; }
}
@media (max-width: 400px) {
  .hero h1 { font-size: 34px; }
  .kpis { gap: 10px; }
  .kpi .kpi-value { font-size: 19px; }
  .inv-card { padding: 14px 14px 12px; margin: -60px 6px 0; }
  .inv-card .ic-meta { grid-template-columns: 1fr 1fr; }
  .inv-card .ic-meta div:last-child { display: none; }
}

/* print: invoice templates page */
@media print {
  .site-header, .topbar, .sidebar, .no-print, .install-bar { display: none !important; }
  body { background: #fff; }
  .doc { box-shadow: none; border: 0; }
}
@media (max-width: 720px) { .hide-xs { display: none; } }

/* who we work with */
.who-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
[data-theme="dark"] .logo .logo-mark rect, [data-theme="dark"] .ic-head .logo-mark rect { fill: #22386A; }
@media (max-width: 980px) { .who-grid { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 34%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 8px; scrollbar-width: thin; } .who-grid > * { scroll-snap-align: start; } }
@media (max-width: 720px) { .who-grid { grid-auto-columns: 62%; gap: 12px; } .pay-toast { top: 214px; bottom: auto; } }
.ph-only { display: none; }
@media (max-width: 720px) { .doc .ph-only { display: inline; } .doc .lines-doc td.d { grid-column: 1; } .doc .lines-doc td.d small { display: none; } }
.m-only { display: none !important; }
@media (max-width: 980px) { .m-only { display: inline-grid !important; } div.m-only { display: block !important; } #ps-grid { grid-template-columns: minmax(0, 1fr) !important; } }
.success-ring { display: inline-grid; place-items: center; width: 76px; height: 76px; border-radius: 50%; background: var(--ok); color: #fff; font-size: 38px; box-shadow: 0 0 0 10px var(--ok-soft); }
[data-theme="dark"] .success-ring { color: #08210F; }
.ab-anim .success-ring { animation: popIn .7s cubic-bezier(.3,1.5,.4,1) .2s both; }
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.pub-top .header-tools { margin-left: auto; }
.open-row td { background: var(--surface-2); }
/* logo mark on dark surfaces: yellow tile, navy mark */
.auth-side .logo-mark rect, .sidebar .logo-mark rect, .doc.t-classic .band .logo-mark rect, [data-theme="dark"] .logo .logo-mark rect, [data-theme="dark"] .ic-head .logo-mark rect, .drawer-head .logo-mark rect { fill: #E0A100; }
.auth-side .logo-mark path, .sidebar .logo-mark path, .doc.t-classic .band .logo-mark path, [data-theme="dark"] .logo .logo-mark path, [data-theme="dark"] .ic-head .logo-mark path, .drawer-head .logo-mark path { stroke: #14213D; }
.auth-side .logo-mark circle, .sidebar .logo-mark circle, .doc.t-classic .band .logo-mark circle, [data-theme="dark"] .logo .logo-mark circle, [data-theme="dark"] .ic-head .logo-mark circle, .drawer-head .logo-mark circle { fill: #14213D; }
.doc-dates span { white-space: nowrap; }
.doc-parties { grid-template-columns: 1fr 1.15fr .9fr; }
@media (max-width: 980px) { .pay-first > aside { order: -1; } }
@media (max-width: 720px) { .doc .lines-doc td.q { text-align: left; } .doc-parties { grid-template-columns: minmax(0, 1fr); } }
.tax-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.tax-row .tag i { font-size: 13px; opacity: .7; cursor: pointer; }
.tax-row .none { font-size: 12.5px; color: var(--faint); }
.ed-top { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); }
@media (min-width: 1101px) { .app { background: linear-gradient(90deg, var(--side-bg) 252px, var(--bg) 252px); } }
.kpi svg.spark { top: 16px; bottom: auto; width: 70px; height: 26px; }
@media (max-width: 1200px) { .ed-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ed-top > .field:first-child { grid-column: 1 / -1; } }
@media (max-width: 720px) { .ed-top { grid-template-columns: minmax(0, 1fr); } .lines td.lt-total { grid-column: 1 / -1; text-align: right; padding-top: 4px; } .lines tr { position: relative; } }
@media (min-width: 721px) { .lines { table-layout: fixed; } }
@media (max-width: 720px) { .lines td.desc .input-icon { margin-right: 42px; } .lines td.del { top: 14px; right: 0; padding: 0 !important; } }
/* invoice templates page */
.pdf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; align-items: start; }
.pdf-col { min-width: 0; }
.pdf-sheet { width: 100%; overflow: hidden; }
.pdf-sheet .doc { width: 816px; min-height: 1056px; border-radius: 6px; box-shadow: var(--shadow-lg); transform-origin: 0 0; }
body.a4 .pdf-sheet .doc { width: 794px; min-height: 1123px; }
@media (max-width: 1280px) { .pdf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) { .pdf-grid { grid-template-columns: minmax(0, 1fr); } }
.table td.amt, .table .nowrap { white-space: nowrap; }
@media (max-width: 720px) {
  .seg button, .seg a, .bulkbar .btn, .install-bar .btn, .copy-field .btn, .tax-row .btn { min-height: 36px; }
  .copy-field { height: 46px; }
  .switch { height: 36px; }
  .switch span { top: 6px; bottom: 6px; }
}
@media (max-width: 720px) {
  .portal-head .container, .pub-top .container { height: 60px; gap: 8px; }
  .lines .desc .sub { height: 38px; }
  .portal-head .logo .lt small, .pub-top .logo .lt small { display: none; }
}
@media (max-width: 720px) {
  .rtable td:not(.main) > small { display: inline !important; margin: 0 0 0 6px !important; }
  .rtable td:not(.main) > span.nowrap + small::before { content: "· "; }
}
@media (max-width: 720px) {
  .hx .pay-toast { top: 14px; bottom: auto; right: 12px; left: auto; transform: none; }
  .fc-reminder { display: none; }
}
