/* ==========================================================================
   otp.css — the otp.rip look on the SMM panel (22 Oct 2026, owner's choice:
   "otp.rip look": dark-first, mint accent, left rail, aurora backdrop).

   Loaded LAST, after theme / components / compat / skin. Three jobs:

   1. Re-point the kit's design tokens (theme.css names) at the otp.rip
      palette, so every page written against --accent, --surface, --border…
      changes colour without being touched. Dark is the default; light is a
      separately designed scheme, as on otp.rip, not an inversion.
   2. Restyle the shell — top bar, rail, footer — and the shared components
      (cards, buttons, inputs, pills, tables, modals, notices) to otp.rip's
      shapes: larger radii, hairline + shadow elevation instead of borders,
      uppercase micro-labels, spring motion.
   3. Add what the kit never had: the aurora, toasts, the animated brand mark,
      the rail's status footer and desktop collapse, the four-column footer.

   The four kit files (theme / components / ui / icons) stay untouched, as
   always; everything here is an override or an addition.
   ========================================================================== */

/* ─── 1. Tokens ─────────────────────────────────────────────────────────── */
:root {
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --font-sans: var(--sans);
  --font-num: var(--mono);

  --fs-xs: 0.75rem;  --fs-sm: 0.875rem;  --fs-base: 0.9375rem;
  --fs-md: 1.0625rem;  --fs-lg: 1.1875rem;  --fs-xl: 1.5rem;
  --fs-2xl: clamp(1.5rem, 1.6vw + 0.95rem, 2rem);  --fs-3xl: 2.25rem;

  --r-sm: 9px; --r-md: 13px; --r-lg: 18px; --r-xl: 26px; --r-pill: 999px;
  --spring: cubic-bezier(0.16, 0.9, 0.24, 1.02);
  --ease: cubic-bezier(0.32, 0.72, 0.24, 1);
  --dur: 200ms; --dur-fast: 140ms;

  --sidebar-w: 236px; --topbar-h: 64px; --content-max: 1320px;
  --tap: 44px; --tap-min: 40px;
  --ctl-h: 40px; --ctl-r: var(--r-md);
}

/* Dark — the default scheme, and what a visitor with no preference gets. */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg:            #070b10;
  --bg-sunk:       #05080c;
  --surface:       #0d141c;
  --surface-1:     #0d141c;
  --surface-2:     #121c26;
  --surface-3:     #18242f;
  --ink:           #e9eff5;
  --ink-muted:     #9fb0c0;
  --ink-subtle:    #8396a8;
  --ink-inverse:   #04180f;
  --border:        #223140;
  --border-soft:   #16212c;
  --border-strong: #2d3f52;

  --accent:        #2fe3a0;
  --accent-hi:     #5cf0b8;
  --accent-hover:  #5cf0b8;
  --accent-active: #26c98d;
  --accent-ink:    #04180f;
  --accent-text:   #2fe3a0;
  --accent-soft:   rgba(47, 227, 160, 0.11);
  --accent-border: rgba(47, 227, 160, 0.28);
  --violet:        #8b5cf6;
  --cyan:          #22d3ee;
  --warn:          #f5a524;  --warn-wash:   rgba(245, 165, 36, 0.12);
  --danger:        #ff5f5f;  --danger-wash: rgba(255, 95, 95, 0.12);

  --focus:         #2fe3a0;
  --focus-inverse: #04180f;

  --pend-bg: var(--warn-wash);   --pend-ink: #f5a524; --pend-bd: rgba(245, 165, 36, 0.3);
  --prog-bg: rgba(34, 211, 238, 0.12); --prog-ink: #22d3ee; --prog-bd: rgba(34, 211, 238, 0.3);
  --done-bg: var(--accent-soft); --done-ink: #2fe3a0; --done-bd: var(--accent-border);
  --canc-bg: var(--danger-wash); --canc-ink: #ff5f5f; --canc-bd: rgba(255, 95, 95, 0.3);
  --unk-bg:  #18242f;            --unk-ink:  #9fb0c0; --unk-bd:  #223140;

  --e1: 0 0 0 1px var(--border-soft);
  --e2: 0 0 0 1px var(--border-soft), 0 2px 8px rgba(0, 0, 0, 0.4);
  --e3: 0 0 0 1px var(--border), 0 14px 40px rgba(0, 0, 0, 0.55);
  --e4: 0 0 0 1px var(--border), 0 30px 80px rgba(0, 0, 0, 0.65);
  --shadow-1: var(--e1); --shadow-2: var(--e2); --shadow-3: var(--e3);
  --glow-accent: 0 6px 26px rgba(47, 227, 160, 0.26);
  --scrim: rgba(3, 6, 10, 0.6);
  --masthead-bg: rgba(7, 11, 16, 0.72);
  --aurora-op-1: 0.16; --aurora-op-2: 0.11; --aurora-op-3: 0.09;
  --sb-thumb: #18242f; --sb-thumb-hover: #223140;
}

/* Light — designed, not inverted: deeper accent so white text clears it. */
[data-theme="light"] {
  color-scheme: light;
  --bg:            #eceff4;
  --bg-sunk:       #e4e9ef;
  --surface:       #ffffff;
  --surface-1:     #ffffff;
  --surface-2:     #ffffff;
  --surface-3:     #f4f7fa;
  --ink:           #0d1620;
  --ink-muted:     #4b5c6e;
  --ink-subtle:    #596a7b;
  --ink-inverse:   #ffffff;
  --border:        #d3dce5;
  --border-soft:   #e3e9ef;
  --border-strong: #b9c6d2;

  --accent:        #0b7f56;
  --accent-hi:     #096b48;
  --accent-hover:  #096b48;
  --accent-active: #085a3d;
  --accent-ink:    #ffffff;
  --accent-text:   #0b7f56;
  --accent-soft:   rgba(11, 127, 86, 0.09);
  --accent-border: rgba(11, 127, 86, 0.24);
  --violet:        #6d3fd4;
  --cyan:          #0e7f96;
  --warn:          #a35a00;  --warn-wash:   rgba(163, 90, 0, 0.1);
  --danger:        #c22f2f;  --danger-wash: rgba(194, 47, 47, 0.1);

  --focus:         #0b7f56;
  --focus-inverse: #ffffff;

  --pend-bg: var(--warn-wash);   --pend-ink: #a35a00; --pend-bd: rgba(163, 90, 0, 0.3);
  --prog-bg: rgba(14, 127, 150, 0.1); --prog-ink: #0e7f96; --prog-bd: rgba(14, 127, 150, 0.3);
  --done-bg: var(--accent-soft); --done-ink: #0b7f56; --done-bd: var(--accent-border);
  --canc-bg: var(--danger-wash); --canc-ink: #c22f2f; --canc-bd: rgba(194, 47, 47, 0.3);
  --unk-bg:  #f4f7fa;            --unk-ink:  #4b5c6e; --unk-bd:  #d3dce5;

  --e1: 0 0 0 1px var(--border-soft);
  --e2: 0 1px 2px rgba(13, 22, 32, 0.07), 0 4px 12px rgba(13, 22, 32, 0.06), 0 0 0 1px var(--border-soft);
  --e3: 0 1px 2px rgba(13, 22, 32, 0.08), 0 10px 28px rgba(13, 22, 32, 0.1), 0 0 0 1px var(--border-soft);
  --e4: 0 2px 4px rgba(13, 22, 32, 0.08), 0 24px 60px rgba(13, 22, 32, 0.16), 0 0 0 1px var(--border-soft);
  --shadow-1: var(--e1); --shadow-2: var(--e2); --shadow-3: var(--e3);
  --glow-accent: 0 2px 4px rgba(11, 127, 86, 0.2), 0 10px 24px rgba(11, 127, 86, 0.22);
  --scrim: rgba(13, 22, 32, 0.45);
  --masthead-bg: rgba(236, 239, 244, 0.86);
  --aurora-op-1: 0.1; --aurora-op-2: 0.07; --aurora-op-3: 0.06;
  --sb-thumb: #c9d3dd; --sb-thumb-hover: #aab8c6;
}

/* ─── 2. Base ───────────────────────────────────────────────────────────── */
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg); color: var(--ink);
  font-family: var(--sans); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--accent); }
a:hover { color: var(--accent-hi); }
h1, h2, h3, h4 { letter-spacing: -0.02em; }
.mono, .num, .u-num, .u-money { font-family: var(--mono); font-variant-numeric: tabular-nums; }
:where(a, button, summary, input, select, textarea, [tabindex]):focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border-radius: 999px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: var(--sb-thumb-hover); }

/* Ambient backdrop: three blurred discs drifting behind everything. */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(80px); }
.aurora span:nth-child(1) { inline-size: 52vmax; block-size: 52vmax; inset-block-start: -22vmax; inset-inline-start: -14vmax; background: var(--accent); opacity: var(--aurora-op-1); animation: drift-a 43s ease-in-out infinite alternate; }
.aurora span:nth-child(2) { inline-size: 40vmax; block-size: 40vmax; inset-block-start: 34vh; inset-inline-end: -16vmax; background: var(--violet); opacity: var(--aurora-op-2); animation: drift-b 61s ease-in-out infinite alternate; }
.aurora span:nth-child(3) { inline-size: 34vmax; block-size: 34vmax; inset-block-end: -16vmax; inset-inline-start: 26vw; background: var(--cyan); opacity: var(--aurora-op-3); animation: drift-c 79s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(10vw, 8vh, 0) scale(1.18); } }
@keyframes drift-b { to { transform: translate3d(-12vw, -10vh, 0) scale(0.86); } }
@keyframes drift-c { to { transform: translate3d(8vw, -7vh, 0) scale(1.24); } }

/* ─── 3. Shell ──────────────────────────────────────────────────────────── */
.smm-shell { background: transparent; }

/* Top bar: a translucent, blurred masthead that stays put. */
.smm-topbar {
  position: sticky; top: 0; z-index: 90;
  min-height: var(--topbar-h); padding: 0 clamp(12px, 2.4vw, 22px);
  gap: 10px; flex-wrap: nowrap;
  background: var(--masthead-bg);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--border-soft); box-shadow: none;
}
.smm-topbar__brand { gap: 10px; font-size: 1.1875rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); flex: none; }
.smm-topbar__mark { display: none; }
.brand-mark { inline-size: 28px; block-size: 28px; color: var(--accent); flex: none; }
.bm-ring { animation: bm-draw 8s var(--ease) -5.4s infinite; }
@keyframes bm-draw { 0% { stroke-dashoffset: 75.4; } 34% { stroke-dashoffset: 0; } 88% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 75.4; } }
.bm-slot { animation: bm-slot 8s var(--ease) -5.4s infinite; transform-origin: 16px 16px; }
@keyframes bm-slot { 0%, 26% { opacity: 0.25; transform: scale(0.82); } 38%, 86% { opacity: 1; transform: scale(1); } 100% { opacity: 0.25; transform: scale(0.82); } }
.smm-topbar__brand:hover .bm-ring, .smm-topbar__brand:hover .bm-slot { animation-duration: 2.4s; }
.brand-tld { color: var(--ink-subtle); }
.brand-sub {
  display: none; margin-inline-start: 10px; padding-inline-start: 11px;
  border-inline-start: 1px solid var(--border);
  color: var(--ink-subtle); font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
@media (min-width: 700px) { .brand-sub { display: inline-block; } }

.smm-topbar__right { gap: 6px; flex-wrap: nowrap; margin-inline-start: auto; }
.smm-stats { gap: 6px; flex-wrap: nowrap; }

/* The balance chip. */
.smm-topbar .smm-stat {
  min-height: 40px; height: auto; padding: 0 12px; gap: 9px;
  border: 0; border-radius: var(--r-md);
  background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-border);
  color: var(--ink); font-weight: 650; font-size: var(--fs-sm);
  transition: transform 0.2s var(--spring), background-color 0.2s var(--ease);
}
.smm-topbar .smm-stat:hover { transform: translateY(-1px); background: var(--accent-soft); }
.smm-topbar .smm-stat__icon { width: auto; height: auto; background: none; color: var(--accent); }
.smm-topbar .smm-stat__icon svg { width: 16px; height: 16px; }
.smm-topbar .smm-stat__label { display: none; }
.smm-topbar .smm-stat__value { font-family: var(--mono); font-size: var(--fs-sm); color: var(--ink); line-height: 1; }
.smm-topbar .smm-stat.is-bumped { animation: bump 0.6s var(--spring); }
@keyframes bump { 40% { transform: scale(1.07); } }

/* Icon buttons: theme toggle, language, burger. */
.icon-btn, .smm-themetoggle, .smm-sidebar__toggle {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border: 0; border-radius: var(--r-md); background: none; color: var(--ink-muted); cursor: pointer;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease), transform 0.2s var(--spring);
}
.icon-btn:hover, .smm-themetoggle:hover, .smm-sidebar__toggle:hover { color: var(--ink); background: var(--surface-2); transform: translateY(-1px); }
.icon-btn svg, .smm-themetoggle .smm-i, .smm-sidebar__toggle svg { width: 18px; height: 18px; }
.smm-topbar .smm-themetoggle { display: inline-grid; }
.smm-topbar .smm-themes { display: none !important; }
.smm-sidebar__toggle { display: inline-grid; }
@media (min-width: 992px) { .smm-sidebar__toggle { display: none; } }

/* "Admin view" and "Add funds" become quiet / primary small buttons. */
.smm-topbar .smm-viewswitch {
  height: 36px; padding: 0 12px; border: 0; border-radius: var(--r-md);
  background: none; color: var(--ink); font-size: var(--fs-xs); font-weight: 650;
  box-shadow: inset 0 0 0 1.5px var(--border);
  transition: transform 0.2s var(--spring), box-shadow 0.24s var(--ease), background-color 0.2s var(--ease);
}
.smm-topbar .smm-viewswitch:hover { color: var(--ink); background: var(--surface-1); box-shadow: inset 0 0 0 1.5px var(--accent-border); transform: translateY(-2px); }
.smm-topbar .smm-btn--primary { height: 40px; min-height: 40px; padding: 0 14px; font-size: var(--fs-sm); }
@media (max-width: 760px) { .smm-topbar .smm-btn--primary .smm-btn__txt, .smm-topbar .smm-viewswitch { display: none; } }

.avatar {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none;
  border-radius: 50%; background: var(--surface-3); box-shadow: var(--e1);
  color: var(--ink-muted); font-size: var(--fs-sm); font-weight: 700; text-decoration: none;
  transition: transform 0.2s var(--spring), box-shadow 0.2s var(--ease);
}
.avatar:hover { color: var(--ink); transform: translateY(-1px); box-shadow: inset 0 0 0 1px var(--accent-border); }

/* Language menu (filled by the i18n lane; empty until then). */
.dlang { position: relative; }
.dlang > summary { display: inline-flex; align-items: center; justify-content: center; list-style: none; gap: 5px; width: auto; padding: 0 9px; }
.dlang > summary::-webkit-details-marker { display: none; }
.dlang-cur { font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; }
.dlang-panel {
  position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 120;
  min-width: 220px; max-height: min(70vh, 480px); overflow-y: auto; padding: 6px;
  background: var(--surface-1); border-radius: var(--r-lg); box-shadow: var(--e4);
  animation: toast-in 0.25s var(--spring);
}
.dlang-list { margin: 0; padding: 0; list-style: none; }
.dlang-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; width: 100%;
  min-height: 40px; padding: 0 12px; border: 0; border-radius: var(--r-sm); background: none;
  color: var(--ink-muted); font-size: var(--fs-sm); font-weight: 600; text-align: start; cursor: pointer;
}
.dlang-item:hover { background: var(--surface-2); color: var(--ink); }
.dlang-item.is-current { color: var(--accent); background: var(--accent-soft); }
.dlang-code { font-family: var(--mono); font-size: var(--fs-xs); color: var(--ink-subtle); }

/* Rail. */
.smm-body { position: relative; }
.smm-sidebar {
  width: var(--sidebar-w); padding: 14px 12px 20px; gap: 4px;
  background: var(--surface-1); border-right: 1px solid var(--border-soft);
  top: var(--topbar-h); height: calc(100vh - var(--topbar-h));
  overscroll-behavior: contain;
  transition: width 0.28s var(--ease);
}
.smm-sidebar__label { padding: 14px 12px 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.11em; text-transform: uppercase; color: var(--ink-subtle); }
.smm-sidebar ul { display: grid; gap: 2px; }
.smm-nav__link {
  position: relative; gap: 11px; min-height: 44px; padding: 0 12px;
  border: 0; border-radius: var(--r-md);
  color: var(--ink-muted); font-size: var(--fs-base); font-weight: 550;
  transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.smm-nav__link svg { width: 18px; height: 18px; opacity: 0.85; }
.smm-nav__link:hover { color: var(--ink); background: var(--surface-2); }
.smm-sidebar li.active > .smm-nav__link, .smm-sidebar .smm-nav__link[aria-current="page"] {
  color: var(--accent); background: var(--accent-soft); font-weight: 650;
}
.smm-sidebar li.active > .smm-nav__link .smm-i { color: var(--accent); }
.smm-sidebar li.active > .smm-nav__link::before {
  content: ""; position: absolute; inset-inline-start: -12px; inset-block: 10px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); animation: rail-in 0.4s var(--spring);
}
@keyframes rail-in { from { transform: scaleY(0); } }
.smm-nav__badge {
  margin-inline-start: auto; min-width: 22px; padding: 0 7px; border: 0; border-radius: 999px;
  background: var(--accent); color: var(--accent-ink);
  font-family: var(--mono); font-size: var(--fs-xs); font-weight: 700; text-align: center; line-height: 20px;
}
.smm-sidebar__prefs { display: none !important; }

/* The rail footer: a real status, and the collapse control. */
.rail-foot { margin-top: auto; padding: 12px 4px 0; border-top: 1px solid var(--border-soft); display: flex; align-items: center; gap: 6px; }
.rail-status { display: inline-flex; align-items: center; gap: 9px; min-width: 0; flex: 1 1 auto; padding: 6px 8px; border-radius: var(--r-md); color: var(--ink-subtle); font-size: var(--fs-sm); font-weight: 550; }
.rail-status-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rail-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 18%, transparent); animation: blip 3.1s ease-in-out infinite; }
.rail-status.is-thin .rail-dot, .foot-status.is-thin .foot-status-dot { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in oklab, var(--warn) 20%, transparent); }
.rail-status.is-down .rail-dot, .foot-status.is-down .foot-status-dot { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in oklab, var(--danger) 20%, transparent); animation: none; }
.rail-status.is-thin, .rail-status.is-down { color: var(--ink-muted); }
@keyframes blip { 50% { opacity: 0.3; transform: scale(0.7); } }
.rail-collapse { display: none; }
@media (min-width: 992px) {
  .rail-collapse {
    position: relative; display: grid; place-items: center; margin-inline-start: auto; flex: none;
    width: 32px; height: 32px; border: 0; border-radius: var(--r-md); background: none; color: var(--ink-subtle); cursor: pointer;
    transition: color 0.2s var(--ease), background-color 0.2s var(--ease);
  }
  .rail-collapse::before { content: ""; position: absolute; inset-inline-start: -6px; inset-block: 7px; width: 1px; background: var(--border-soft); }
  .rail-collapse:hover { color: var(--ink); background: var(--surface-2); }
  .rail-collapse svg { width: 18px; height: 18px; transition: transform 0.3s var(--ease); }

  /* Collapsed: icons only, group headings become rules, badge becomes a dot. */
  :root[data-rail="on"] .smm-sidebar { width: 76px; padding-inline: 12px; }
  :root[data-rail="on"] .smm-nav__link { justify-content: center; gap: 0; padding-inline: 0; }
  :root[data-rail="on"] .smm-nav__link svg { width: 20px; height: 20px; }
  :root[data-rail="on"] .smm-nav__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  :root[data-rail="on"] .smm-sidebar__label { font-size: 0; line-height: 0; padding: 12px 6px 6px; }
  :root[data-rail="on"] .smm-sidebar__label::before { content: ""; display: block; height: 1px; background: var(--border-soft); }
  :root[data-rail="on"] .smm-sidebar__label:first-of-type { padding-top: 4px; }
  :root[data-rail="on"] .smm-sidebar__label:first-of-type::before { display: none; }
  :root[data-rail="on"] .smm-nav__badge { position: absolute; top: 7px; inset-inline-end: 14px; min-width: 8px; width: 8px; height: 8px; padding: 0; border-radius: 50%; font-size: 0; line-height: 0; box-shadow: 0 0 0 2px var(--surface-1); }
  :root[data-rail="on"] .rail-foot { flex-direction: column; gap: 8px; padding-inline: 0; }
  :root[data-rail="on"] .rail-status { flex: none; padding: 6px; }
  :root[data-rail="on"] .rail-status-t { display: none; }
  :root[data-rail="on"] .rail-collapse::before { display: none; }
  :root[data-rail="on"] .rail-collapse { margin-inline-start: 0; }
  :root[data-rail="on"] .rail-collapse svg { transform: rotate(180deg); }
}
@media (max-width: 991px) {
  .smm-sidebar { top: var(--topbar-h); height: auto; width: min(84vw, 300px); transform: translateX(-102%); transition: transform 0.32s var(--ease); }
  .smm-shell[data-nav="open"] .smm-sidebar { transform: none; box-shadow: var(--e4); }
}

/* Main column and the page head. */
.smm-main { padding: clamp(16px, 2.6vw, 30px) clamp(14px, 2.6vw, 30px) 0; }
@media (min-width: 992px) { .smm-main { padding: clamp(16px, 2.6vw, 30px) clamp(14px, 2.6vw, 30px) 0; } }
.smm-wrap { padding-bottom: 44px; }
.smm-page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.smm-page-head h1 { font-size: var(--fs-2xl); font-weight: 780; letter-spacing: -0.035em; line-height: 1.1; margin: 0; }
.smm-page-head p { margin-top: 6px; color: var(--ink-subtle); font-size: var(--fs-base); max-width: 60ch; }

/* ─── 4. Components ─────────────────────────────────────────────────────── */
.smm-card, .card, .smm-panelcard, .smm-stat:not(.smm-topbar .smm-stat) {
  border: 0; border-radius: var(--r-lg); background: var(--surface-1); box-shadow: var(--e1);
  transition: box-shadow 0.28s var(--ease), transform 0.28s var(--spring);
}
.smm-card__head, .card-header { padding: 15px 18px; border-bottom: 1px solid var(--border-soft); }
.smm-card__head h2, .smm-card__head h3, .smm-panelcard__title { font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.02em; }
.smm-card__sub, .smm-panelcard__sub { color: var(--ink-subtle); font-size: var(--fs-sm); }
.smm-card__body, .card-body { padding: 18px; }
.smm-card__foot { padding: 14px 18px; border-top: 1px solid var(--border-soft); background: var(--surface-2); }
.smm-cartcard__head { border-bottom-color: var(--border-soft); }

.smm-stat:not(.smm-topbar .smm-stat) { padding: 16px 17px; }
.smm-stat:not(.smm-topbar .smm-stat):hover { transform: translateY(-3px); box-shadow: var(--e3); }
.smm-stat:not(.smm-topbar .smm-stat) .smm-stat__label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); }
.smm-stat:not(.smm-topbar .smm-stat) .smm-stat__value { margin-top: 9px; font-family: var(--mono); font-size: clamp(1.4rem, 1.6vw + 0.9rem, 1.85rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }

/* Buttons. */
.smm-btn, .btn {
  min-height: 44px; min-width: 0; padding: 0 18px; gap: 8px;
  border: 0; border-radius: var(--r-md);
  font-size: var(--fs-sm); font-weight: 650; letter-spacing: -0.005em;
  transition: transform 0.2s var(--spring), box-shadow 0.24s var(--ease), background-color 0.2s var(--ease), color 0.2s var(--ease);
}
.smm-btn svg { width: 16px; height: 16px; }
.smm-btn--primary, .btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--glow-accent); position: relative; overflow: hidden; }
.smm-btn--primary:hover, .btn-primary:hover { background: var(--accent-hi); color: var(--accent-ink); transform: translateY(-2px); }
.smm-btn--primary:active, .btn-primary:active { transform: translateY(0); background: var(--accent-active); }
.smm-btn--primary::after, .btn-primary::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(140% 180% at 50% 125%, rgba(255,255,255,0.34), transparent 62%);
  opacity: 0; transform: translateY(34%); transition: opacity 0.3s var(--ease), transform 0.5s var(--spring); pointer-events: none;
}
.smm-btn--primary:hover::after, .btn-primary:hover::after { opacity: 1; transform: none; }
.smm-btn--secondary, .btn-secondary, .btn-outline-primary { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); }
.smm-btn--secondary:hover, .btn-secondary:hover, .btn-outline-primary:hover { background: var(--surface-1); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent-border); transform: translateY(-2px); }
.smm-btn--ghost { color: var(--ink-muted); background: none; }
.smm-btn--ghost:hover { color: var(--ink); background: var(--surface-2); }
.smm-btn--danger, .btn-danger { background: none; color: var(--danger); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--danger) 40%, transparent); filter: none; }
.smm-btn--danger:hover, .btn-danger:hover { background: var(--danger-wash); color: var(--danger); transform: translateY(-2px); filter: none; }
.smm-btn--lg { min-height: 52px; padding: 0 26px; font-size: var(--fs-base); }
.smm-btn--sm { min-height: 36px; padding: 0 12px; font-size: var(--fs-xs); }
.smm-btn--icon { width: 44px; padding: 0; }
.smm-btn--sm.smm-btn--icon { width: 36px; }
.smm-btn:disabled, .btn:disabled { opacity: 0.55; transform: none; }

/* Pills, tags, badges. */
.smm-pill, .smm-tag, .smm-badge {
  padding: 4px 9px; border: 0; border-radius: 999px;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em;
  background: var(--surface-3); color: var(--ink-muted); box-shadow: var(--e1);
}
.smm-pill--pending  { background: var(--pend-bg); color: var(--pend-ink); box-shadow: inset 0 0 0 1px var(--pend-bd); }
.smm-pill--progress { background: var(--prog-bg); color: var(--prog-ink); box-shadow: inset 0 0 0 1px var(--prog-bd); }
.smm-pill--complete { background: var(--done-bg); color: var(--done-ink); box-shadow: inset 0 0 0 1px var(--done-bd); }
.smm-pill--canceled { background: var(--canc-bg); color: var(--canc-ink); box-shadow: inset 0 0 0 1px var(--canc-bd); }
.smm-pill--unknown  { background: var(--unk-bg);  color: var(--unk-ink);  box-shadow: inset 0 0 0 1px var(--unk-bd); }

/* Fields. */
.smm-label, label { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--ink-subtle); margin-bottom: 6px; }
.smm-hint { font-size: var(--fs-sm); color: var(--ink-subtle); }
.smm-input, .smm-select, .smm-textarea, .form-control,
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"],
input[type="datetime-local"], input[type="time"], input[type="date"], textarea, select {
  min-height: 44px; padding: 10px 13px;
  border: 0; border-radius: var(--r-md);
  background: var(--surface-3); color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--border-soft);
  font-size: var(--fs-base);
  transition: box-shadow 0.2s var(--ease), background-color 0.2s var(--ease);
}
.smm-input::placeholder, .form-control::placeholder, textarea::placeholder { color: var(--ink-subtle); }
.smm-input:hover, .form-control:hover, select:hover, textarea:hover { box-shadow: inset 0 0 0 1px var(--border); border-color: transparent; }
.smm-input:focus, .form-control:focus, textarea:focus, select:focus { outline: none; border-color: transparent; background: var(--surface-3); box-shadow: inset 0 0 0 1.5px var(--accent-border), 0 0 0 3px var(--accent-soft); }
.smm-input:disabled, .form-control:disabled { background: var(--surface-2); color: var(--ink-muted); }
.smm-input[aria-invalid="true"], .form-control.is-invalid { border: 0; background: var(--danger-wash); box-shadow: inset 0 0 0 1.5px var(--danger); }
.smm-input-affix__prefix { border: 0; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border-soft); color: var(--ink-subtle); }
.smm-combo__control { border: 0; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border-soft); border-radius: var(--r-md); }
.smm-combo__panel { border: 0; border-radius: var(--r-lg); box-shadow: var(--e4); background: var(--surface-1); }
.smm-radio-card { border: 0; box-shadow: var(--e1); border-radius: var(--r-md); background: var(--surface-3); }
.smm-radio-card:has(input:checked) { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-border); }

/* Tables. */
.smm-table-wrap { border: 0; border-radius: var(--r-lg); box-shadow: var(--e1); background: var(--surface-1); max-height: none; }
.smm-table, table.table { font-size: var(--fs-sm); }
.smm-table thead th, table.table thead th {
  padding: 11px 14px; background: var(--surface-3); color: var(--ink-subtle);
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase;
  border-bottom: 1px solid var(--border-soft);
}
.smm-table tbody td, table.table tbody td { padding: 12px 14px; border-bottom: 1px solid var(--border-soft); }
.smm-table tbody tr:nth-child(even) { background: transparent; }
.smm-table tbody tr { transition: background-color 0.18s var(--ease); }
.smm-table tbody tr:hover { background: var(--surface-2); }
.smm-table__group td { background: var(--accent-soft) !important; color: var(--accent); }
.smm-table th.tablesorter-header::after { opacity: 0.4; }

/* Modals, notices, empties, tabs. */
.smm-modal__box { border: 0; border-radius: var(--r-xl); box-shadow: var(--e4); background: var(--surface-1); }
.smm-modal__head, .smm-modal__foot { border-color: var(--border-soft); }
.smm-modal__foot { background: var(--surface-2); }
.smm-modal__close { border: 0; background: var(--surface-3); border-radius: var(--r-md); }
.smm-notice { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-1); color: var(--ink); padding: 14px 16px; }
.smm-notice svg { color: var(--accent); }
.smm-notice p { color: var(--ink-muted); }
.smm-notice--warn { border-color: var(--warn); background: var(--warn-wash); }
.smm-notice--warn svg { color: var(--warn); }
.smm-empty { border: 0; box-shadow: var(--e1); border-radius: var(--r-lg); background: var(--surface-1); color: var(--ink-subtle); padding: 54px 20px; }
.smm-tabs { border-bottom-color: var(--border-soft); }
.smm-tabs__btn[aria-selected="true"], .smm-tabs__btn.is-on { color: var(--accent); border-color: var(--accent); }
.smm-pager__n, .smm-pager__arrow { border: 0; border-radius: var(--r-sm); color: var(--ink-muted); }
.smm-pager__n.is-on { background: var(--accent); color: var(--accent-ink); }
.smm-kbd { background: var(--surface-3); box-shadow: var(--e1); border: 0; }

/* Alerts the older pages still use (Bootstrap classes). */
.alert { border: 1px solid var(--border); border-radius: 14px; background: var(--surface-1); color: var(--ink); }
.alert-success { border-color: var(--accent-border); background: var(--accent-soft); color: var(--ink); }
.alert-danger { border-color: color-mix(in oklab, var(--danger) 40%, transparent); background: var(--danger-wash); color: var(--ink); }
.alert-warning { border-color: var(--warn); background: var(--warn-wash); color: var(--ink); }

/* ─── 5. Toasts ─────────────────────────────────────────────────────────── */
.toasts { position: fixed; inset-block-end: 20px; inset-inline-end: 20px; z-index: 300; display: grid; gap: 8px; justify-items: end; pointer-events: none; max-width: calc(100vw - 24px); }
.toast {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px;
  border-radius: var(--r-md); background: var(--surface-1); box-shadow: var(--e4);
  color: var(--ink); font-size: var(--fs-sm); font-weight: 600; animation: toast-in 0.4s var(--spring);
}
.toast svg { width: 16px; height: 16px; color: var(--accent); }
.toast.is-bad svg { color: var(--danger); }
.toast.is-out { animation: toast-out 0.3s var(--ease) forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(10px) scale(0.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(6px) scale(0.98); } }
@media (max-width: 520px) { .toasts { inset-inline: 12px; justify-items: stretch; } }

/* ─── 6. Footer ─────────────────────────────────────────────────────────── */
.smm-footer { display: none; }
.foot { background: var(--bg-sunk); border-top: 1px solid var(--border-soft); margin-top: auto; }
.foot-shell { width: 100%; max-width: var(--content-max); margin-inline: auto; padding-inline: clamp(14px, 2.6vw, 30px); }
.foot-grid { display: grid; gap: 30px 24px; padding-block: clamp(28px, 3.4vw, 44px) 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; } }
.foot-brand { grid-column: 1 / -1; }
@media (min-width: 860px) { .foot-brand { grid-column: auto; } }
.foot-brand .smm-topbar__brand { display: inline-flex; }
.foot-tag { margin-top: 14px; max-width: 26em; color: var(--ink-subtle); font-size: var(--fs-sm); text-wrap: pretty; }
.foot-status { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; padding: 7px 12px; border-radius: 999px; background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-border); color: var(--ink-muted); font-size: var(--fs-sm); font-weight: 600; }
.foot-status-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--accent); animation: blip 3.1s ease-in-out infinite; }
.foot-stats { display: flex; gap: 22px; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--border-soft); }
.foot-stats dt { font-family: var(--mono); font-size: var(--fs-base); font-weight: 700; color: var(--ink); }
.foot-stats dd { margin: 2px 0 0; color: var(--ink-subtle); font-size: var(--fs-xs); }
.foot-col { display: grid; gap: 1px; align-content: start; justify-items: start; }
.foot-h { margin: 0 0 10px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-subtle); }
.foot-col a { padding-block: 7px; color: var(--ink-muted); font-size: var(--fs-sm); transition: color 0.18s var(--ease), transform 0.2s var(--spring); }
.foot-col a:hover { color: var(--accent); transform: translateX(2px); }
.foot-fine { padding-block: 18px; border-top: 1px solid var(--border-soft); color: var(--ink-subtle); font-size: var(--fs-xs); line-height: 1.65; }
.foot-fine p { margin: 0; }
.foot-base { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; justify-content: space-between; padding-block: 12px 20px; border-top: 1px solid var(--border-soft); color: var(--ink-subtle); font-size: var(--fs-sm); }
.foot-base p { margin: 0; }
.foot-base-end { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.foot-base-link { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 10px; color: var(--ink-subtle); font-size: var(--fs-sm); }
.foot-base-link:hover { color: var(--accent); }
.smm-main { display: flex; flex-direction: column; }

/* ─── 7. Reveals and motion ─────────────────────────────────────────────── */
.rv { transition: opacity 0.6s var(--ease), transform 0.66s var(--spring); transition-delay: var(--rv-delay, 0s); }
.rv.rv-pre { opacity: 0; transform: translate3d(0, 16px, 0); }
.row-enter { animation: row-in 0.42s var(--spring) backwards; }
@keyframes row-in { from { opacity: 0; transform: translateY(7px); } }
@media (prefers-reduced-motion: reduce) {
  .aurora { display: none; }
  .rv.rv-pre { opacity: 1; transform: none; }
  .bm-ring, .bm-slot, .rail-dot, .foot-status-dot, .row-enter { animation: none !important; }
  .smm-sidebar, .smm-btn, .smm-stat, .rail-collapse svg { transition: none !important; }
}

/* ─── 8. Sign-in and sign-up pages (no shell) ───────────────────────────── */
.smm-auth { background: transparent; }
.smm-auth__card { border: 0; border-radius: var(--r-xl); background: var(--surface-1); box-shadow: var(--e4); }

/* ─── 9. Drawer-only items and the skip link ────────────────────────────── */
.smm-sidebar ul.smm-sidebar__extra { display: none; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--border-soft); }
@media (max-width: 991px) { .smm-sidebar ul.smm-sidebar__extra { display: grid; gap: 2px; } }
/* The kit hides the brand's last span under 400px, which now catches the ".vc"; the word stays whole. */
.smm-topbar__brand .brand-word .brand-tld { display: inline; }
.skip:focus { position: fixed; left: 12px; top: 8px; z-index: 200; width: auto; height: auto; clip: auto; clip-path: none; overflow: visible; padding: 12px 18px; background: var(--surface-1); color: var(--ink); box-shadow: var(--e3); border-radius: var(--r-md); }

/* ─── 10. Security, account and two-factor screens (lane 3) ─────────────── */
.smm-wrap--narrow { max-width: 760px; margin-inline: auto; }
.sec-notice { margin-bottom: 18px; }
.sec-notice p { flex: 1; }
.sec-notice .smm-btn { margin-inline-start: auto; flex: none; }
.sec-grid { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sec-card { display: grid; gap: 12px; align-content: start; padding: 18px; margin-bottom: 0; }
.sec-hd { display: flex; align-items: flex-start; gap: 12px; }
.sec-hd > div { flex: 1; min-width: 0; }
.sec-hd h2 { margin: 0; font-size: var(--fs-md); font-weight: 700; letter-spacing: -0.02em; }
.sec-hd .smm-card__sub { margin: 2px 0 0; }
.sec-ic { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; color: var(--accent); background: var(--accent-soft); }
.sec-ic svg { width: 19px; height: 19px; }
.sec-state, .sec-hd-action { flex: none; align-self: center; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; }
.sec-scroll { max-height: 320px; overflow-y: auto; }
.sec-row { display: flex; align-items: center; gap: 12px; padding-block: 11px; border-top: 1px solid var(--border-soft); }
.sec-row:first-child { border-top: 0; padding-top: 2px; }
.sec-row-main { flex: 1; min-width: 0; display: grid; gap: 2px; }
.sec-row-t { margin: 0; font-weight: 650; font-size: var(--fs-sm); display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: var(--ink); }
.sec-row-m { margin: 0; font-size: var(--fs-xs); color: var(--ink-subtle); overflow-wrap: anywhere; }
.sec-events .sec-row-t { font-weight: 600; }
.sec-when { flex: none; font-size: var(--fs-xs); color: var(--ink-subtle); text-align: end; line-height: 1.45; }
.sec-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sec-inline { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.sec-inline .form-control { flex: 1; min-width: 0; min-height: 36px; }
.sec-empty { margin: 0; padding: 14px; border-radius: var(--r-lg); background: var(--surface-3); color: var(--ink-muted); font-size: var(--fs-sm); }
.sec-line, .sec-status { margin: 0; }
.sec-status:empty { display: none; }
.sec-status.is-bad { color: var(--danger); }

.prof-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 900px) { .prof-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.prof-col { display: grid; gap: 16px; align-content: start; min-width: 0; }
.prof-col .smm-card { margin-bottom: 0; }
.prof-col h2 { font-size: var(--fs-md); margin-bottom: 4px; }
.prof-hd { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.prof-facts { margin: 14px 0 0; display: grid; gap: 1px; }
.prof-facts > div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--border-soft); }
.prof-facts > div:last-child { border-bottom: 0; }
.prof-facts dt { color: var(--ink-subtle); font-size: var(--fs-xs); letter-spacing: 0.03em; font-weight: 600; text-transform: none; }
.prof-facts dd { margin: 0; min-width: 0; overflow-wrap: anywhere; font-size: var(--fs-sm); }
.prof-chip { margin-inline-start: 6px; }
.prof-form { display: grid; gap: 12px 14px; margin-top: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 560px) { .prof-form { grid-template-columns: minmax(0, 1fr); } }
.prof-field { display: grid; gap: 5px; margin: 0; }
.prof-field > span { font-size: var(--fs-xs); color: var(--ink-subtle); letter-spacing: 0.03em; font-weight: 600; }
.prof-field-wide { grid-column: 1 / -1; }
.prof-form-foot { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin-top: 2px; }
.prof-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin-top: 14px; }
.prof-stat { display: grid; gap: 2px; align-content: start; padding: 12px 14px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: var(--e1); }
.prof-n { font-size: 1.3rem; font-weight: 780; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.prof-k { font-size: var(--fs-xs); color: var(--ink-subtle); }
.prof-links { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.prof-bullets { margin: 12px 0 16px; padding-inline-start: 18px; display: grid; gap: 7px; color: var(--ink-muted); font-size: var(--fs-sm); }
.prof-bullets li::marker { color: var(--accent); }
.prof-notify { display: grid; gap: 12px; margin-top: 12px; }
.prof-switch { align-items: flex-start; }
.prof-switch-t { display: grid; gap: 1px; }
.prof-switch-t b { color: var(--ink); font-size: var(--fs-sm); }
.prof-always { margin: 2px 0 0; }
.prof-h3 { margin: 20px 0 2px; font-size: var(--fs-base); font-weight: 700; }

.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: var(--fs-sm); color: var(--ink-muted); text-transform: none; letter-spacing: 0; margin: 0; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch-track { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--surface-3); box-shadow: inset 0 0 0 1px var(--border); transition: background-color 0.26s var(--ease), box-shadow 0.26s var(--ease); }
.switch-track::after { content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 18px; height: 18px; border-radius: 50%; background: var(--ink-subtle); transition: transform 0.3s var(--spring), background-color 0.26s var(--ease); }
.switch input:checked + .switch-track { background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent-border); }
.switch input:checked + .switch-track::after { transform: translateX(18px); background: var(--accent); }
[dir="rtl"] .switch input:checked + .switch-track::after { transform: translateX(-18px); }
.switch input:focus-visible + .switch-track { outline: 2px solid var(--accent); outline-offset: 2px; }

.tfa-card { margin-bottom: 16px; }
.tfa-steps { margin: 0; padding: 0; list-style: none; display: grid; gap: 26px; }
.tfa-step { display: flex; gap: 14px; align-items: flex-start; }
.tfa-num { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: var(--fs-sm); }
.tfa-body { flex: 1; min-width: 0; }
.tfa-h { margin: 2px 0 4px; font-size: 1.02rem; font-weight: 700; }
.tfa-scan { display: flex; gap: 20px; flex-wrap: wrap; align-items: flex-start; margin-top: 14px; }
.tfa-qr { flex: none; width: 188px; padding: 10px; border-radius: var(--r-sm); background: #fff; box-shadow: var(--e1); }
.tfa-qr svg { display: block; width: 100%; height: auto; }
.tfa-manual { flex: 1 1 240px; min-width: 0; }
.tfa-manual-t { font-weight: 650; margin: 0 0 2px; color: var(--ink); }
.tfa-key { display: block; margin: 10px 0 6px; padding: 11px 13px; border-radius: var(--r-sm); background: var(--surface-2); font-family: var(--mono); font-size: 0.95rem; letter-spacing: 0.06em; overflow-wrap: anywhere; user-select: all; color: var(--ink); }
.tfa-confirm { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.tfa-note { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-soft); color: var(--ink-subtle); font-size: var(--fs-sm); }
.input-code { font-family: var(--mono); font-size: 1.15rem; letter-spacing: 0.34em; text-align: center; max-width: 220px; }
.tfa-confirm .input-code { flex: none; }

.rec-warn { padding: 14px 16px; border-radius: var(--r-md); background: var(--warn-wash); border: 1px solid var(--warn); color: var(--ink); font-size: var(--fs-sm); line-height: 1.5; margin-top: 14px; }
.rec-list { list-style: none; margin: 16px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rec-list code { display: block; padding: 10px 12px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: var(--e1); font-family: var(--mono); font-size: 1rem; letter-spacing: 0.08em; text-align: center; color: var(--ink); }
.rec-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Auth cards drawn inside the signed-in shell (reauth, verify). */
.smm-auth--inshell { min-height: 0; padding: 20px 0; }
.smm-auth__eyebrow { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-subtle); }
.smm-auth__status-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); }
.smm-auth__status-ic.is-bad { background: var(--danger-wash); color: var(--danger); }
.smm-auth__status-ic svg { width: 26px; height: 26px; }
.smm-auth__foot { margin-top: 14px; text-align: center; font-size: var(--fs-sm); }

/* â”€â”€â”€ 11. Customer pages: overview, statistics, favourites, affiliate, documents (lane 6) â”€â”€â”€ */
.stats-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { padding: 14px 16px; border-radius: var(--r-md); background: var(--surface); box-shadow: var(--e1); min-width: 0; }
.stat-l { margin: 0; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-subtle); }
.stat-v { margin: 4px 0 0; font-family: var(--mono); font-size: 1.45rem; font-weight: 700; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-d { margin: 3px 0 0; font-size: var(--fs-xs); color: var(--ink-subtle); }
@media (max-width: 900px) { .stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.ov-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; margin-bottom: 16px; align-items: start; }
.ov-grid > .smm-card { margin: 0; }
@media (max-width: 900px) { .ov-grid { grid-template-columns: 1fr; } }
.ov-camp { padding: 10px 0; border-top: 1px solid var(--border-soft); }
.ov-camp:first-of-type { border-top: 0; padding-top: 0; }
.ov-camp-hd { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; font-size: var(--fs-sm); }
.ov-bar { height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.ov-bar > span { display: block; height: 100%; border-radius: 999px; background: var(--accent); transition: width .6s var(--ease); }
.aff-bar { margin-top: 12px; }
.aff-link-card { margin-bottom: 16px; }
.aff-link { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.aff-link code { flex: 1 1 260px; min-width: 0; padding: 11px 13px; border-radius: var(--r-sm); background: var(--surface-2); font-family: var(--mono); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.aff-steps { margin: 10px 0 0; padding-inline-start: 20px; display: grid; gap: 8px; font-size: var(--fs-sm); color: var(--ink-muted); }
.aff-steps li::marker { color: var(--accent); font-weight: 700; }
.card-t { margin: 0; font-size: var(--fs-md); font-weight: 700; }
.card-t + .card-sub { margin-top: 2px; }

.tiles { display: grid; gap: 8px; }
.ov-col .tile { display: grid; grid-template-columns: 32px minmax(0, 1fr); align-items: start; gap: 6px 12px; }
.ov-col .tile .tile-ic { grid-row: 1 / 3; }
.ov-col .tile .grow b { white-space: normal; overflow-wrap: anywhere; line-height: 1.45; }
.ov-col .tile > .mono { grid-column: 2; font-size: var(--fs-sm); }
.tiles-page { grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); }
.tile-row { display: flex; align-items: center; gap: 6px; }
.tile { display: flex; align-items: center; gap: 12px; width: 100%; padding: 11px 13px; border-radius: var(--r-md); background: var(--surface-2); box-shadow: var(--e1); color: var(--ink); text-decoration: none; text-align: start; transition: background-color .2s var(--ease), transform .2s var(--spring); min-width: 0; }
.tile:hover { background: var(--surface-3); text-decoration: none; transform: translateY(-1px); }
.tile .grow { flex: 1; min-width: 0; display: grid; gap: 1px; }
.tile .grow b { font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--surface); box-shadow: var(--e1); color: var(--accent); position: relative; }
.tile-ic .smm-i { width: 18px; height: 18px; }
.tile-flag { position: absolute; inset: 0; display: grid; place-items: center; font-size: 18px; background: var(--surface); border-radius: 10px; }
.grow { flex: 1; min-width: 0; }

.bars { display: grid; align-items: end; gap: 4px; height: 150px; padding: 6px 2px 0; border-bottom: 1px solid var(--border-soft); }
.bars-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.bars-30 { grid-template-columns: repeat(30, minmax(0, 1fr)); }
.bars-90 { grid-template-columns: repeat(90, minmax(0, 1fr)); gap: 1px; }
.bar { display: flex; flex-direction: column; justify-content: flex-end; height: 100%; gap: 5px; min-width: 0; }
.bar-stack { display: flex; flex-direction: column; justify-content: flex-end; border-radius: 4px 4px 2px 2px; background: var(--surface-3); overflow: hidden; }
.bar-stack > i { display: block; background: var(--accent); }
.bar-stack.is-solid { background: var(--accent); }
.bar-stack.is-zero { background: var(--surface-3); opacity: .6; }
.bar:hover .bar-stack { filter: brightness(1.12); }
.bar-d { height: 1em; text-align: center; font-size: .66rem; color: var(--ink-subtle); font-family: var(--mono); overflow: hidden; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; margin: 10px 0 0; font-size: var(--fs-xs); color: var(--ink-subtle); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; background: var(--surface-3); margin-inline-end: 6px; vertical-align: -1px; }
.legend i.is-accent { background: var(--accent); }

/* documents: a section index beside a measured column (otp.rip's legal.css on this panel's tokens) */
.legal-wrap { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; align-items: start; padding-bottom: 24px; }
.legal-wrap > * { min-width: 0; }
@media (min-width: 900px) { .legal-wrap { grid-template-columns: 220px minmax(0, 1fr); gap: 44px; } }
.legal-nav-inner { display: grid; gap: 2px; }
@media (min-width: 900px) { .legal-nav-inner { position: sticky; top: 84px; } }
.legal-nav .eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-subtle); margin: 10px 0 6px; }
.legal-nav .eyebrow:first-child { margin-top: 0; }
.legal-nav a { padding: 8px 12px; border-radius: 9px; font-size: var(--fs-sm); color: var(--ink-muted); border-inline-start: 2px solid transparent; text-decoration: none; }
.legal-nav a:hover { background: var(--surface-2); color: var(--ink); }
.legal-nav a.on { color: var(--accent-text); background: var(--accent-soft); border-inline-start-color: var(--accent); font-weight: 650; }
@media (max-width: 899px) { .legal-nav-inner { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; } .legal-nav .eyebrow { display: none; } .legal-nav a { white-space: nowrap; box-shadow: inset 0 0 0 1px var(--border); border-inline-start-width: 0; } }
.legal-doc { max-width: 74ch; }
.legal-doc h1 { font-size: clamp(1.6rem, 4.5vw, 2.1rem); letter-spacing: -.03em; margin: 0 0 6px; }
.legal-meta { font-size: var(--fs-xs); color: var(--ink-subtle); margin: 0 0 26px; }
.legal-doc h2 { font-size: 1.1rem; letter-spacing: -.015em; margin: 34px 0 10px; padding-top: 18px; border-top: 1px solid var(--border-soft); }
.legal-doc h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 22px; }
.legal-doc h3 { font-size: .98rem; margin: 20px 0 8px; }
.legal-doc p { margin: 0 0 14px; font-size: .95rem; line-height: 1.72; color: var(--ink-muted); }
.legal-doc ul, .legal-doc ol { margin: 0 0 16px; padding-inline-start: 22px; }
.legal-doc li { font-size: .95rem; line-height: 1.7; color: var(--ink-muted); margin-bottom: 7px; }
.legal-doc strong, .legal-doc b { color: var(--ink); font-weight: 650; }
.legal-doc a { text-decoration: underline; text-underline-offset: 2px; }
.legal-doc a.smm-btn { text-decoration: none; }
.legal-key { margin: 18px 0; padding: 15px 17px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-border); border-inline-start: 3px solid var(--accent); }
.legal-key p:last-child { margin-bottom: 0; }
.legal-todo { margin: 0 0 24px; padding: 14px 16px; border-radius: 12px; background: var(--warn-wash); border: 1px solid var(--warn); }
.legal-todo b { display: block; margin-bottom: 4px; font-size: var(--fs-sm); color: var(--warn); }
.legal-todo p { margin: 0; font-size: var(--fs-xs); }
.legal-foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--border-soft); }
.legal-foot p { font-size: var(--fs-sm); margin: 0; }
.legal-doc table { width: 100%; border-collapse: collapse; margin: 0 0 18px; font-size: .9rem; }
.legal-doc th, .legal-doc td { text-align: start; padding: 9px 10px; border-bottom: 1px solid var(--border-soft); vertical-align: top; }
.legal-doc th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-subtle); }
.legal-doc .smm-faq__stats { margin: 0 0 18px; }
.legal-doc .smm-faq__item p { margin: 0 0 8px; }

/* ─── 12. Rail density, the topbar on phones, quiet exports (22 Oct 2026) ─── */
/* Sixteen links do not fit a 900px-tall window at 44px each; otp.rip has
   eight. Forty pixels and 14px type keep every group in view, and the rail
   scrolls without showing a bar when it still has to. */
.smm-sidebar { scrollbar-width: none; }
.smm-sidebar::-webkit-scrollbar { display: none; }
#main-menu-navigation > li > a, .smm-nav__link { min-height: 40px; font-size: 0.875rem; }
.smm-sidebar__label { padding: 12px 12px 4px; }
.smm-sidebar__label:first-child { padding-top: 2px; }
/* On a phone the balance chip is the way to the wallet, so the Add funds
   button goes; under 430px the word mark goes too, the ring stays. */
@media (max-width: 600px) {
  .smm-topbar { gap: 6px; padding-inline: 10px; }
  .smm-topbar .smm-btn--primary { display: none !important; }
  .smm-topbar .smm-stat { padding: 0 9px; gap: 7px; }
  .smm-topbar__right { gap: 2px; }
}
/* Keep the complete wordmark readable even on the smallest supported phone. */
.smm-topbar__brand .brand-word { display: inline-block; font-size: clamp(1.1rem, 2.1vw, 1.65rem); white-space: nowrap; }
.smm-topbar__brand .brand-mark { inline-size: 34px; block-size: 34px; }
.smm-topbar__brand .brand-tld { color: var(--accent); }
@media (max-width: 430px) {
  .smm-topbar__brand { gap: 5px; }
  .smm-topbar__brand .brand-mark { inline-size: 24px; block-size: 24px; }
  .smm-topbar .smm-stat__icon, .smm-topbar .smm-viewswitch { display: none; }
  .smm-topbar .smm-stat { padding-inline: 5px; }
}
@media (prefers-reduced-motion: no-preference) {
  .smm-topbar__brand .brand-word { animation: brand-reveal .65s ease-out both; }
  @keyframes brand-reveal { from { opacity: .35; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
}
/* Exports are quiet buttons, as otp.rip's CSV export is; the green and red
   filled ones read as actions on the orders themselves. */
.smm-btn--xls, .smm-btn--pdf { background: none; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--border); border-color: transparent; }
.smm-btn--xls:hover, .smm-btn--pdf:hover { background: var(--surface-1); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--accent-border); filter: none; }

/* ─── 13. Motion, the way otp.rip moves (22 Oct 2026) ───────────────────────
   Live dots on open states, rows and bars that settle in, marks that react,
   figures that count up (otp.js), a checkout ring that draws itself. Every
   one of these stops under prefers-reduced-motion. */
.smm-table--svc > thead > tr > th:first-child { width: 54%; }
/* open states carry a live dot */
.smm-badge--prog::before, .smm-badge--pend::before, .smm-pill--progress::before, .smm-pill--pending::before {
  content: ""; display: inline-block; width: 6px; height: 6px; margin-inline-end: 6px; border-radius: 50%;
  background: currentColor; vertical-align: 1px; animation: blip 2.6s ease-in-out infinite;
}
/* rows settle in, one after another (otp.js numbers them) */
.smm-table tbody tr, .tbl tbody tr { animation: row-in 0.42s var(--spring) backwards; animation-delay: calc(var(--i, 0) * 28ms); }
/* chart bars rise from the baseline */
.bars .bar-stack { transform-origin: bottom; animation: chart-rise 0.9s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 14ms); }
@keyframes chart-rise { from { transform: scaleY(0); } }
/* brand marks and icons react to the pointer */
.smm-svcname__mark svg, .smm-combo__opt .smm-i, .smm-multi__mark, .smm-empty svg, .smm-blank__icon svg { transition: transform 0.22s var(--spring); }
.smm-table tbody tr:hover .smm-svcname__mark svg, .smm-combo__opt:hover .smm-i, .smm-multi__opt:hover .smm-multi__mark { transform: translateY(-1px) scale(1.1); }
.smm-nav__link svg { transition: transform 0.22s var(--spring), opacity 0.2s var(--ease); }
.smm-nav__link:hover svg { transform: translateX(2px) scale(1.08); opacity: 1; }
.smm-sidebar li.active > .smm-nav__link svg { animation: pop 0.45s var(--spring); }
@keyframes pop { 50% { transform: scale(1.22); } }
.smm-stat:not(.smm-topbar .smm-stat):hover svg, .stat:hover svg, .kpi:hover svg { transform: scale(1.12); }
.stat svg, .kpi svg { transition: transform 0.22s var(--spring); }
/* empty states breathe */
.smm-empty svg, .smm-blank__icon svg { animation: pulse-soft 2.8s ease-in-out infinite; }
@keyframes pulse-soft { 50% { opacity: 0.55; transform: scale(0.94); } }
/* a button that is fetching spins its icon */
.smm-btn.is-busy svg, .icon-btn.is-busy svg { animation: smm-spin 0.8s linear infinite; }
.smm-themetoggle .smm-i { transition: transform 0.4s var(--spring); }
.smm-themetoggle:hover .smm-i { transform: rotate(22deg); }
.avatar:hover { transform: translateY(-1px) scale(1.04); }
/* checkout: the check draws itself, the alert pops */
.smm-modal__bigmark { width: 72px; height: 72px; padding: 14px; border-radius: 50%; box-sizing: border-box; }
.smm-modal__bigmark--ok { background: var(--accent-soft); box-shadow: inset 0 0 0 1.5px var(--accent-border); animation: code-pop 0.6s var(--spring); }
.smm-modal__bigmark--bad { background: var(--danger-wash); box-shadow: inset 0 0 0 1.5px color-mix(in oklab, var(--danger) 40%, transparent); animation: code-pop 0.55s var(--spring); }
@keyframes fx-draw { to { stroke-dashoffset: 0; } }
@keyframes code-pop { 0% { transform: scale(0.6); opacity: 0; } 60% { transform: scale(1.08); } 100% { transform: scale(1); opacity: 1; } }
/* placeholders shimmer while they load */
.smm-skel, .is-loading-text { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s infinite; border-radius: 6px; color: transparent !important; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: 0 0; } }
/* a figure that just changed */
.is-counting { font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) {
  .smm-badge--prog::before, .smm-badge--pend::before, .smm-pill--progress::before, .smm-pill--pending::before,
  .smm-table tbody tr, .tbl tbody tr, .bars .bar-stack, .smm-sidebar li.active > .smm-nav__link svg,
  .smm-empty svg, .smm-blank__icon svg, .smm-modal__bigmark--ok, .smm-modal__bigmark--bad, .smm-skel, .is-loading-text { animation: none !important; }
  .smm-modal__bigmark--ok { stroke-dashoffset: 0; }
}
/* Tablet (23 Oct): the primary button never wraps, and below 900px it is the
   icon alone, otherwise it pushed the avatar off the edge at 768px. */
.smm-topbar .smm-btn--primary { white-space: nowrap; }
@media (max-width: 900px) { .smm-topbar .smm-btn--primary .smm-btn__txt { display: none; } }

/* ─── 14. Density and width (23 Oct 2026) ─────────────────────────────────
   The content column is capped like otp.rip's (skin.css had widened it to
   95% of a 1912px screen), cards and tables sit tighter, the overview's two
   cards share a height and the Running now card lists the open orders. */
:root { --content-max: 1240px; }
.smm-main > .smm-wrap { max-width: var(--content-max); width: 100%; margin-inline: auto; padding-bottom: 28px; }
.smm-main { padding-top: clamp(14px, 2vw, 22px); }
.smm-page-head, .adm-head { margin-bottom: 16px; }
.smm-page-head h1, .adm-head h1 { font-size: clamp(1.45rem, 1.3vw + 0.9rem, 1.8rem); }
.smm-card, .card { margin-bottom: 12px; }
.smm-card__body, .card-body { padding: 16px; }
.smm-card__head, .card-header { padding: 13px 16px; }
.stats-grid { gap: 10px; margin-bottom: 12px; }
.stat { padding: 12px 14px; }
.stat-v { font-size: 1.3rem; }
.ov-grid { gap: 12px; margin-bottom: 12px; align-items: stretch; }
.ov-grid > .smm-card { display: flex; flex-direction: column; min-height: 100%; }
.card-hd { margin-bottom: 8px; }
.card-hd h2 { font-size: 1rem; }
.ov-open { display: grid; gap: 2px; margin-top: 2px; }
.ov-open-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; margin-inline: -10px; border-radius: var(--r-sm); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.ov-open-row:hover { background: var(--surface-2); color: var(--ink); text-decoration: none; }
.ov-open-row .grow { display: grid; gap: 1px; min-width: 0; }
.ov-open-row .grow b, .ov-open-row .grow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ov-open-more { display: inline-block; margin-top: 6px; color: var(--accent); font-weight: 600; }
.tbl th { padding: 9px 12px; }
.tbl td { padding: 9px 12px; }
.ov-tbl th:nth-child(2) { width: 55%; }
.ov-svc, .tbl td .ov-svc { max-width: 32ch; white-space: normal; overflow-wrap: anywhere; }
.smm-table thead th, table.table thead th { padding: 9px 14px; }
.smm-table tbody td, table.table tbody td { padding: 10px 14px; }
.foot { margin-top: 10px; }
.foot-grid { padding-block: 26px 18px; gap: 24px; }
.foot-col a { padding-block: 5px; }
.foot-fine { padding-block: 14px; }
.foot-base { padding-block: 10px 16px; }
@media (min-width: 1500px) { :root { --content-max: 1320px; } }
/* Overview, second cut (23 Oct): a right column that is full rather than a
   stretched card, lighter running rows, and the link as its own column so
   the orders table reads across instead of leaving a void. */
@media (min-width: 901px) { .ov-grid { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); align-items: start; } }
.ov-grid > .smm-card { min-height: 0; }
.ov-col { display: grid; gap: 12px; min-width: 0; }
.ov-col > .smm-card { margin: 0; }
.ov-open-row { padding: 7px 10px; }
.ov-open-row .grow b { font-size: var(--fs-sm); font-weight: 600; }
.ov-open-row .grow span { font-size: var(--fs-xs); }
.ov-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ov-quick a { display: flex; align-items: center; gap: 9px; min-height: 40px; padding: 0 11px; border-radius: var(--r-sm); background: var(--surface-2); box-shadow: var(--e1); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; text-decoration: none; transition: background-color 0.18s var(--ease), transform 0.2s var(--spring); }
.ov-quick a:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; transform: translateY(-1px); }
.ov-quick a svg { color: var(--accent); flex: none; }
.ov-tbl th:nth-child(2) { width: 38%; }
.ov-tbl th:nth-child(3) { width: 30%; }
.ov-tbl td:nth-child(4), .ov-tbl td:nth-child(5), .ov-tbl th:nth-child(4), .ov-tbl th:nth-child(5) { white-space: nowrap; width: 1%; padding-inline: 18px; }
.ov-link { max-width: 28ch; overflow-wrap: anywhere; white-space: normal; }
.ov-svc { font-size: var(--fs-sm); color: var(--ink); }
.tile { padding: 9px 11px; }
.card-sub { font-size: var(--fs-xs); }

/* ─── 15. Type, scrollbars, pagers (23 Oct 2026) ─────────────────────────────
   Inter for text and JetBrains Mono for figures, self-hosted (assets/fonts,
   variable weight, four Inter subsets by unicode-range so a Latin page
   downloads 48 KB). 6px scrollbars. One pager look everywhere. */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-cyrillic-wght-normal.woff2") format("woff2"); unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/assets/fonts/inter-vietnamese-wght-normal.woff2") format("woff2"); unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); }
:root {
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", SFMono-Regular, "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --font-sans: var(--sans); --font-num: var(--mono); --font-mono: var(--mono);
}
body { font-family: var(--sans); font-size: 15px; line-height: 1.5; letter-spacing: -0.006em; font-feature-settings: "cv11", "ss03", "calt"; }
h1, h2, h3, h4 { font-family: var(--sans); letter-spacing: -0.022em; }
.mono, .num, .u-num, .u-money, .stat-v, .kpi > b, .adm-bal-n, .smm-stat__value, .tbl .mono, code, kbd, pre { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
.smm-nav__link, #main-menu-navigation > li > a { font-weight: 520; }
.smm-sidebar li.active > .smm-nav__link { font-weight: 620; }
.smm-btn, .btn { font-weight: 600; letter-spacing: -0.005em; }
.smm-sidebar__label, .stat-l, .foot-h, .brand-sub { letter-spacing: 0.04em; }
.smm-label, label, .tbl th, .smm-table thead th, table.table thead th, .chip { letter-spacing: 0; }

/* Scrollbars: thin, rounded, nothing drawn until there is something to scroll. */
*, html, body { scrollbar-width: thin; scrollbar-color: var(--sb-thumb) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--sb-thumb); border: 0; border-radius: 999px; background-clip: border-box; }
::-webkit-scrollbar-thumb:hover { background: var(--sb-thumb-hover); }
::-webkit-scrollbar-corner { background: transparent; }
@media (max-width: 991px) { ::-webkit-scrollbar { width: 4px; height: 4px; } }

/* Pagers: explicit page links with a filled current-page indicator. */
.smm-pager { display: flex; align-items: center; justify-content: center; gap: 4px; flex-wrap: wrap; margin: 12px 0 2px; padding: 0; }
.smm-pager__n, .smm-pager__arrow { display: inline-grid; place-items: center; min-width: 34px; height: 34px; padding: 0 9px; border: 0; border-radius: var(--r-sm); background: none; color: var(--ink-muted); font-family: var(--mono); font-size: var(--fs-xs); font-weight: 600; text-decoration: none; transition: background-color 0.18s var(--ease), color 0.18s var(--ease); }
.smm-pager__n:hover, .smm-pager__arrow:hover { background: var(--surface-3); color: var(--ink); text-decoration: none; }
.smm-pager__n.is-on { background: var(--accent); color: var(--accent-ink); }
.smm-pager__arrow.is-off { opacity: 0.35; pointer-events: none; }
.smm-pager__arrow svg { width: 16px; height: 16px; }
.smm-pager__gap { padding: 0 2px; color: var(--ink-subtle); }
.smm-pager__status { width: 100%; text-align: center; margin-top: 6px; color: var(--ink-subtle); font-size: var(--fs-xs); }
.smm-pager.is-loading .smm-pager__status::before { content: ""; display: inline-block; width: 12px; height: 12px; margin-inline-end: 7px; vertical-align: -2px; border: 2px solid var(--accent); border-right-color: transparent; border-radius: 50%; animation: smm-spin 0.75s linear infinite; }

/* Shared layout corrections: preserve readable type and contain wide content. */
.smm-main, .smm-wrap, .smm-card, .ov-col, .prof-col { min-width: 0; }
.smm-main > .smm-wrap--narrow { max-width: 760px; }
.ov-grid > .smm-card, .ov-col > .smm-card { padding: 20px; }
.card-hd { gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { padding: 18px; }
.stat-d, .card-sub { line-height: 1.55; }
.ov-open-row { min-height: 54px; }
.ov-open-row > .chip { flex-shrink: 0; }
.ov-quick a { min-height: 44px; padding-block: 10px; }
.adm-tbl-wrap, .smm-table-wrap, .table-responsive { max-width: 100%; overflow-x: auto; }
.smm-pager { gap: 6px; padding: 12px 8px; margin: 8px 0; }
.smm-pager__n, .smm-pager__arrow { min-width: 40px; height: 40px; font-size: var(--fs-sm); }
.smm-pager a:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
@media (max-width: 600px) {
  .ov-grid > .smm-card, .ov-col > .smm-card { padding: 16px; }
  .smm-main { padding-inline: 14px; }
  .smm-page-head, .adm-head { gap: 12px; }
  .smm-pager__n, .smm-pager__arrow { min-width: 44px; height: 44px; }
  input.form-control, select.form-control, textarea.form-control { font-size: 16px; }
  .ov-open-row { gap: 8px; flex-wrap: wrap; }
  .ov-open-row .grow { flex: 1 1 140px; }
}
@media (max-width: 380px) { .ov-quick { grid-template-columns: 1fr; } }

.smm-topbar .smm-stats { padding: 0; flex: 0 0 auto; }
.smm-topbar .smm-stat { flex-shrink: 0; }
.sec-hd { flex-wrap: wrap; gap: 12px; }
.sec-hd > div { min-width: 0; }
.sec-line { overflow-wrap: anywhere; }
@media (max-width: 380px) {
  .smm-topbar { gap: 4px; padding-inline: 8px; }
  .smm-topbar__spacer { display: none; }
  .smm-topbar .smm-stat { padding-inline: 7px; }
  .smm-topbar .smm-stat__icon, .dlang-cur { display: none; }
  .dlang > summary { width: 36px; padding: 0; }
  .smm-topbar__right { flex: 0 0 auto; gap: 2px; }
}

/* Bare cards use the same inset as cards with a body wrapper. */
body[data-page="admin"] .smm-card:not(.card-pad-0),
.smm-card:has(> .card-hd):not(.card-pad-0) { padding: 20px; }
body[data-page="admin"] .smm-card { min-width: 0; }
.adm-bridge pre { white-space: pre-wrap; overflow-wrap: anywhere; }
@media (max-width: 600px) {
  body[data-page="admin"] .smm-card:not(.card-pad-0),
  .smm-card:has(> .card-hd):not(.card-pad-0) { padding: 16px; }
}

/* Documentation and legacy wrappers must shrink with the content column. */
.app-content, .content-wrapper, .content-body, .smm-docs, .smm-docs > *,
.smm-panelcard, .smm-codeblock { min-width: 0; max-width: 100%; }
.smm-tabs { min-width: 0; max-width: 100%; overscroll-behavior-x: contain; }
.smm-tabs__btn { flex-shrink: 0; }
.smm-docs pre { max-width: 100%; overflow-x: auto; }
.form-group > label, .prof-field > span:first-child { font-size: var(--fs-sm); font-weight: 600; text-transform: none; letter-spacing: 0; }
@media (max-width: 600px) {
  .smm-docs .smm-tabs { flex-wrap: wrap; gap: 4px; }
  .smm-docs .smm-tabs__btn { padding: 8px 12px; }
}

/* Long cookie names must not widen the legal document on small phones. */
.legal-doc table { table-layout: fixed; overflow-wrap: anywhere; }
.legal-doc th { font-size: var(--fs-xs); letter-spacing: 0; }

/* Overview: keep each service and destination together instead of squeezing
   long names and URLs into six competing table columns. */
.ov-recent .card-hd { padding: 24px; gap: 16px; flex-wrap: wrap; }
.ov-recent .card-hd h2 { margin: 0; font-size: 20px; letter-spacing: -.025em; }
.ov-recent .card-sub { margin: 6px 0 0; font-size: 14px; }
.ov-recent-list { list-style: none; margin: 0; padding: 0; }
.ov-recent-head, .ov-recent-row { display: grid; grid-template-columns: minmax(0, 1fr) 80px 112px 110px; gap: 24px; padding: 20px 24px; align-items: center; }
.ov-recent-head { padding-block: 12px; background: var(--surface-2); border-block: 1px solid var(--border-soft); font-size: 12px; color: var(--ink-muted); font-weight: 600; }
.ov-recent-row + .ov-recent-row { border-top: 1px solid var(--border-soft); }
.ov-recent-row:hover { background: var(--surface-2); }
.ov-recent-detail { min-width: 0; }
.ov-recent-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--ink-muted); margin-bottom: 8px; }
.ov-recent-source { display: inline-block; padding: 2px 7px; border: 1px solid var(--border); border-radius: 6px; font-size: 11px; line-height: 1.5; color: var(--ink-muted); font-weight: 500; }
.ov-recent-name { margin: 0; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.55; overflow-wrap: anywhere; }
.ov-recent-link { margin: 6px 0 0; color: var(--ink-muted); font-size: 12px; line-height: 1.6; overflow-wrap: anywhere; }
.ov-recent-value { font-size: 14px; text-align: right; white-space: nowrap; }
.ov-recent-head > :nth-child(2), .ov-recent-head > :nth-child(3) { text-align: right; }
.ov-recent-status { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.ov-recent-label { display: none; }
@media (max-width: 1100px) {
  .ov-recent-head, .ov-recent-row { grid-template-columns: minmax(0, 1fr) 64px 92px 96px; gap: 16px; padding-inline: 20px; }
}
@media (max-width: 700px) {
  .ov-recent .card-hd { padding: 20px 16px; }
  .ov-recent .card-hd h2 { font-size: 18px; }
  .ov-recent-head { display: none; }
  .ov-recent-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px 12px; padding: 20px 16px; }
  .ov-recent-row:first-child { border-top: 1px solid var(--border-soft); }
  .ov-recent-detail { grid-column: 1 / -1; }
  .ov-recent-value { text-align: left; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
  .ov-recent-label { display: block; font: 500 12px/1.5 var(--sans); color: var(--ink-muted); }
  .ov-recent-status .smm-pill { font-size: 11px; padding: 4px 8px; }
}

@media (max-width: 430px) {
 .smm-topbar .smm-themetoggle, .smm-topbar .icon-btn, .smm-topbar .smm-sidebar__toggle, .smm-topbar .avatar { width: 32px; min-width: 32px; height: 40px; }
 .smm-topbar__brand .brand-word { font-size: 1.05rem; }
}
