:root {
  --primary: #0D475C;
  --primary-dark: #093645;
  --primary-soft: #e8f1f4;
  --ink: #1F232E;
  --body: #FFFFFF;
  --page: #F3F6F8;
  --text: #3C3241;
  --muted: #6d6472;
  --line: #e2e8eb;
  --btn: #5CE00B;
  --btn-text: #1F232E;
  --danger: #c0392b;
  --warn: #c47b12;
  --ok: #1e7a32;
  --shadow: 0 1px 2px rgba(31, 35, 46, 0.04), 0 8px 24px rgba(13, 71, 92, 0.05);
  --shadow-sm: 0 1px 2px rgba(31, 35, 46, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --sans: "Plus Jakarta Sans", "Source Sans 3", "Segoe UI", Arial, sans-serif;
  --header-h: 56px;
  --nav-h: 68px;
  --sidebar: 248px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--page);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.5;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: var(--text); }
h1, h2, h3, h4 { color: var(--ink); margin: 0 0 .4em; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 28px; }
h2 { font-size: 22px; }
h3 { font-size: 17px; }
p { margin: 0 0 12px; }
.lede { color: var(--muted); font-size: 15px; max-width: 52ch; }

.btn i, .btn .fa-solid, .btn .fa-regular { margin-right: 6px; }
.btn i:last-child { margin-right: 0; }
.nav-ico { width: 18px; text-align: center; flex-shrink: 0; font-size: 14px; }
.stat-ico {
  width: 38px; height: 38px; border-radius: 10px;
  background: var(--primary-soft); color: var(--primary);
  display: inline-flex; align-items: center; justify-content: center;
  margin-bottom: 10px; font-size: 15px;
}

.flash, .flash-error, .errors {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}
.flash { background: #f1fae8; border: 1px solid #c6e89a; color: var(--ok); }
.flash-error, .errors { background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger); }
.muted { color: var(--muted); }
.tiny { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.grid { display: grid; gap: 16px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.mt { margin-top: 18px; }

.card {
  background: var(--body);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}
.stat { padding: 16px 18px; }
.stat .label {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 700;
}
.stat .value {
  font-size: 22px;
  margin-top: 6px;
  color: var(--ink);
  font-weight: 800;
  letter-spacing: -.03em;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  background: var(--btn);
  color: var(--btn-text);
  font-weight: 700;
  text-decoration: none;
  min-height: 42px;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease, filter .12s ease;
  box-shadow: 0 1px 0 rgba(31, 35, 46, .08);
}
.btn:hover { filter: brightness(0.97); text-decoration: none; color: var(--btn-text); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.secondary {
  background: var(--body);
  color: var(--primary);
  border: 1px solid var(--line);
  box-shadow: none;
}
.btn.secondary:hover { background: var(--primary-soft); color: var(--primary); border-color: #c5d6dc; }
.btn.danger { background: var(--danger); color: #fff; }
.btn.danger:hover { color: #fff; }
.btn.gold, .btn.primary-solid {
  background: var(--primary);
  color: #fff;
}
.btn.gold:hover, .btn.primary-solid:hover { color: #fff; }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  box-shadow: none;
  border: 0;
}
.btn.icon {
  width: 42px;
  min-width: 42px;
  padding: 0;
}
.btn.icon i { margin: 0; }
.btn.full { width: 100%; }
.btn.small { padding: 7px 12px; font-size: 13px; min-height: 36px; border-radius: 8px; }

.input, select, textarea {
  width: 100%;
  background: var(--body);
  color: var(--text);
  border: 1px solid #d5dee2;
  border-radius: 10px;
  padding: 11px 13px;
  transition: border-color .12s ease, box-shadow .12s ease;
}
.input:focus, select:focus, textarea:focus {
  outline: 0;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(13, 71, 92, .12);
}
textarea { min-height: 96px; resize: vertical; }
label { display: block; margin: 0 0 6px; color: var(--ink); font-size: 13px; font-weight: 650; }
.field { margin-bottom: 14px; }
.checkbox {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--muted);
  font-weight: 600;
}
.checkbox input { width: auto; accent-color: var(--primary); }

.table-wrap { overflow: auto; border-radius: var(--radius); max-width: 100%; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; background: var(--body); }
th, td {
  text-align: left;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  vertical-align: middle;
}
th {
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .07em;
  background: #f7fafb;
  font-weight: 700;
}
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafcfd; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  text-transform: capitalize;
  letter-spacing: .02em;
}
.badge.ok { background: #e8f8dc; color: var(--ok); }
.badge.no { background: #fdecea; color: var(--danger); }
.badge.warn { background: #fff4e0; color: var(--warn); }
.badge.idle { background: var(--primary-soft); color: var(--primary); }
a.badge { color: inherit; }
a.badge:hover { text-decoration: none; filter: brightness(0.97); }
.dash-status { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tabs a i, .chip i { margin-right: 4px; }
.flash i, .flash-error i { margin-right: 2px; }
.tabs a, .chip {
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--body);
  font-weight: 650;
  font-size: 13px;
}
.tabs a:hover, .chip:hover { text-decoration: none; color: var(--primary); border-color: #c5d6dc; }
.tabs a.active, .chip.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.logo {
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  letter-spacing: -.02em;
}
.logo:hover { text-decoration: none; color: inherit; }
.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--btn);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 15px;
  box-shadow: inset 0 -1px 0 rgba(31, 35, 46, .12);
}
.logo-text { font-weight: 800; line-height: 1; }
.logo-img-wrap {
  display: grid;
  place-items: center;
  height: 36px;
}
.logo-img {
  height: 36px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}
.logo-compact .logo-img-wrap { height: 28px; }
.logo-compact .logo-img { height: 28px; max-width: 110px; }
.logo-compact .logo-mark { width: 28px; height: 28px; font-size: 12px; border-radius: 8px; }
.logo-circle {
  gap: 0;
}
.logo-circle .logo-img-wrap,
.logo-circle .logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex: 0 0 42px;
  border: 2px solid rgba(255,255,255,.42);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92, 224, 11, .18);
}
.logo-circle .logo-img {
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
}
.logo-circle .logo-mark {
  font-size: 16px;
  color: var(--primary);
  background: #fff;
}
.logo-circle.logo-auth .logo-img-wrap,
.logo-circle.logo-auth .logo-mark {
  width: 88px;
  height: 88px;
  flex-basis: 88px;
  border-width: 3px;
  box-shadow: 0 0 0 6px rgba(92, 224, 11, .16);
}
.logo-circle.logo-auth .logo-mark { font-size: 32px; }
.logo-preview {
  margin-top: 10px;
  padding: 12px 14px;
  background: #f7fafb;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: inline-block;
}
.logo-preview img { height: 48px; width: auto; max-width: 220px; object-fit: contain; }

.kicker {
  color: var(--primary);
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 6px;
}

.page-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.filters {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}
.filters .input, .filters select { width: auto; min-width: 180px; background: #fff; }
.empty {
  text-align: center;
  padding: 36px 18px;
  color: var(--muted);
}
.empty i { font-size: 28px; color: var(--primary); margin-bottom: 10px; display: block; }
.empty strong { display: block; color: var(--ink); margin-bottom: 4px; }

.avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
}
.avatar.lg { width: 44px; height: 44px; font-size: 14px; }
.avatar.xl { width: 84px; height: 84px; font-size: 28px; }
img.avatar { object-fit: cover; padding: 0; background: var(--line); }
.profile-stack { display: grid; gap: 16px; max-width: 860px; }
.profile-hero {
  display: flex;
  gap: 18px;
  align-items: center;
}
.profile-hero h3 { margin-bottom: 4px; }
.profile-photo-row {
  display: flex;
  gap: 16px;
  align-items: center;
  margin-bottom: 16px;
}
.kyc-preview {
  width: 100%;
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-top: 8px;
  background: #f7fafb;
}
.kyc-preview-link { display: block; color: inherit; }
.kyc-preview-link:hover { text-decoration: none; }
.review-docs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 12px;
}
.doc-card {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: inherit;
  text-decoration: none;
}
.doc-card.is-row { margin-bottom: 10px; }
.doc-card.is-static { grid-template-columns: 72px 1fr; }
.doc-card img, .doc-missing {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 8px;
  background: #f7fafb;
  border: 1px solid var(--line);
}
.doc-missing {
  display: grid;
  place-items: center;
  color: var(--muted);
}
.smtp-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.user-meta { min-width: 0; }
.user-meta strong { display: block; color: var(--ink); font-size: 13px; }
.user-meta span { display: block; color: var(--muted); font-size: 12px; }

.copy-row { display: flex; gap: 8px; }
.copy-row .input { flex: 1; font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 13px; }

.pager {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  margin-top: 16px;
  flex-wrap: wrap;
}
.pager-btn {
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
}
.pager-btn:hover { text-decoration: none; border-color: var(--primary); color: var(--primary); }
.pager-btn.is-current { background: var(--primary); color: #fff; border-color: var(--primary); }
.pager-btn.is-disabled { opacity: .4; pointer-events: none; }

/* Landing */
.landing { max-width: none; margin: 0; padding: 0; min-height: 100vh; background: var(--body); }
.landing-inner {
  max-width: 1120px;
  margin: 0 auto;
  min-width: 0;
  padding: 0 max(24px, env(safe-area-inset-right)) 0 max(24px, env(safe-area-inset-left));
}
.nav-public {
  background: rgba(31, 35, 46, .96);
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 40;
  border-bottom: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(16px);
}
.nav-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 72px;
  min-width: 0;
}
.nav-public .logo { color: #fff; min-width: 0; flex: 0 1 auto; }
.nav-public .logo-text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 42vw;
}
.nav-public .logo-img { max-width: min(160px, 38vw); }
.nav-toggle { display: none; }
.nav-burger {
  display: none;
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  margin-left: auto;
  place-items: center;
  align-content: center;
  justify-content: center;
  gap: 5px;
  cursor: pointer;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,.18);
}
.nav-burger span {
  display: block;
  width: 16px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-links {
  display: flex;
  flex: 1;
  justify-content: center;
  gap: 4px;
  align-items: center;
  min-width: 0;
}
.nav-links > a {
  color: rgba(255,255,255,.78);
  font-weight: 600;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 8px;
}
.nav-links > a:hover,
.nav-links > a.is-active {
  color: #fff;
  text-decoration: none;
  background: rgba(255,255,255,.1);
}
.nav-cta {
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}
.nav-public .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.nav-public .btn.secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav-public .btn { text-decoration: none; }
.nav-links-cta { display: none; }
body.landing-body { background: var(--body); overflow-x: hidden; }

.hero-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(92, 224, 11, .16), transparent 55%),
    radial-gradient(900px 380px at 92% 10%, rgba(255,255,255,.08), transparent 50%),
    linear-gradient(160deg, #093645 0%, var(--primary) 46%, var(--ink) 100%);
  color: #fff;
  padding: 72px 0 0;
}
.hero-glow {
  position: absolute;
  inset: auto -80px -120px auto;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: rgba(92, 224, 11, .18);
  filter: blur(40px);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 56px;
  align-items: center;
  padding-bottom: 56px;
}
.hero-copy, .page-band-inner, .page-shell, .prose, .contact-aside, .cms-layout, .page-main {
  min-width: 0;
}
.hero-copy h1, .hero-copy p, .page-band-inner h1, .page-band-inner p, .prose, .contact-card {
  overflow-wrap: break-word;
}
.hero-copy h1 {
  font-size: clamp(28px, 8vw, 58px);
  line-height: 1.05;
  color: #fff;
  letter-spacing: -.035em;
  max-width: min(16ch, 100%);
}
.hero-copy p {
  font-size: 17px;
  color: rgba(255,255,255,.78);
  max-width: 52ch;
  margin: 16px 0 0;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--btn);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  margin-bottom: 14px;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.hero-band .btn.ghost,
.page-band .btn.ghost,
.cta-band .btn.ghost {
  color: #fff;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}
.hero-band .btn.ghost:hover,
.page-band .btn.ghost:hover,
.cta-band .btn.ghost:hover {
  color: #fff;
  background: rgba(255,255,255,.12);
}
.hero-points {
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
}
.hero-points li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,.86);
  font-size: 13px;
  font-weight: 600;
}
.hero-points i { color: var(--btn); }
.hero-stage { position: relative; min-width: 0; }
.hero-desk {
  background: rgba(255,255,255,.96);
  color: var(--ink);
  border-radius: 20px;
  padding: 8px;
  box-shadow: 0 24px 60px rgba(0,0,0,.28);
}
.hero-desk-top {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 22px 22px 20px;
}
.hero-desk-label {
  display: block;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  font-weight: 700;
  color: rgba(255,255,255,.62);
}
.hero-desk-top strong {
  display: block;
  font-size: 32px;
  letter-spacing: -.04em;
  margin: 8px 0 4px;
}
.hero-desk-sub { color: rgba(255,255,255,.7); font-size: 13px; }
.hero-desk-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  border-bottom: 1px solid var(--line);
}
.hero-desk-row:last-child { border-bottom: 0; }
.hero-desk-row b { color: var(--primary); font-size: 16px; }
.hero-desk-row i { color: var(--ok); }
.hero-float {
  position: absolute;
  right: -12px;
  top: 38%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--ok);
  font-size: 13px;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  max-width: 240px;
}
.hero-metrics {
  background: rgba(0,0,0,.22);
  border-top: 1px solid rgba(255,255,255,.08);
}
.hero-metrics-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  padding: 22px 24px;
}
.hero-metrics-row strong {
  display: block;
  color: #fff;
  font-size: 18px;
  letter-spacing: -.02em;
}
.hero-metrics-row span {
  display: block;
  color: rgba(255,255,255,.62);
  font-size: 12px;
  margin-top: 2px;
}
.section { padding: 28px 0 12px; }
.section-head { margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.step { padding: 18px; }
.step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--primary); color: #fff;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 800;
  margin-bottom: 12px;
}
.cta-band {
  margin: 48px 0 0;
  background: var(--ink);
  color: #fff;
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.cta-band h2, .cta-band p { color: #fff; }
.cta-band p { color: rgba(255,255,255,.72); margin: 0; }
.site-footer {
  margin-top: 64px;
  background: var(--ink);
  color: rgba(255,255,255,.72);
  padding: 56px 0 0;
  font-size: 14px;
  border-top: 3px solid var(--btn);
}
.site-footer .logo { color: #fff; }
.site-footer .footer-brand .btn { margin-top: 18px; }
.site-footer .footer-brand p {
  margin-top: 14px;
  max-width: 36ch;
  line-height: 1.65;
  color: rgba(255,255,255,.68);
}
.footer-contact {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}
.footer-contact a, .footer-contact span {
  color: rgba(255,255,255,.82);
  font-weight: 600;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.footer-contact a:hover { color: #fff; text-decoration: none; }
.footer-contact i { width: 16px; margin-right: 8px; color: var(--btn); }
.site-footer .footer-grid {
  display: grid;
  grid-template-columns: minmax(240px, 1.5fr) repeat(3, minmax(0, 1fr));
  gap: 40px 32px;
  align-items: start;
  padding-bottom: 40px;
}
.footer-col h3 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.footer-col a {
  display: block;
  color: rgba(255,255,255,.74);
  padding: 6px 0;
  font-weight: 600;
}
.footer-col a:hover { color: #fff; text-decoration: none; }
.footer-base {
  border-top: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}
.site-footer .footer-copy {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 16px 0 calc(16px + env(safe-area-inset-bottom));
  color: rgba(255,255,255,.5);
  font-size: 12px;
}
.page-band {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(1200px 420px at 12% -10%, rgba(92, 224, 11, .16), transparent 55%),
    radial-gradient(900px 380px at 92% 10%, rgba(255,255,255,.08), transparent 50%),
    linear-gradient(160deg, #093645 0%, var(--primary) 46%, var(--ink) 100%);
  color: #fff;
  padding: 48px 0 44px;
}
.page-band-inner { position: relative; }
.page-band-inner h1 {
  color: #fff;
  font-size: clamp(26px, 8vw, 46px);
  letter-spacing: -.03em;
  max-width: min(22ch, 100%);
  margin: 8px 0 0;
  line-height: 1.1;
}
.page-band-inner p { color: rgba(255,255,255,.78); max-width: 54ch; margin: 12px 0 0; }
.page-band .hero-actions { margin-top: 22px; }
.page-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,.62);
  margin: 0 0 16px;
}
.page-crumb a { color: rgba(255,255,255,.86); }
.page-crumb a:hover { color: #fff; }
.page-shell { padding-top: 36px; padding-bottom: 48px; min-width: 0; }
.page-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  min-width: 0;
}
.page-article .prose { max-width: 760px; }
.cms-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 40px;
  align-items: start;
}
.cms-aside { position: sticky; top: 88px; display: grid; gap: 12px; }
.cms-aside .btn { width: 100%; }
.cms-aside a:not(.btn) {
  display: block;
  padding: 8px 0;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.cms-aside a:not(.btn):last-child { border-bottom: 0; }
.cms-aside a:not(.btn):hover { color: var(--primary); text-decoration: none; }
.more-heading { margin: 40px 0 16px; }
.page-shell .cta-band { margin-top: 40px; }
.prose {
  max-width: 720px;
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
}
.prose p { margin-bottom: 14px; }
.prose h2 { margin-top: 8px; }
.guide .prose h2 { scroll-margin-top: 96px; }
.guide-toc {
  position: sticky;
  top: 88px;
  margin: 0;
}
.guide-toc ol { margin: 8px 0 0; padding: 0; list-style: none; }
.guide-toc li { margin: 0; }
.guide-toc a {
  display: block;
  padding: 7px 0;
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
}
.guide-toc a:hover { color: var(--primary); text-decoration: none; }
.contact-layout {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 24px;
  align-items: start;
}
.contact-aside { display: grid; gap: 12px; }
.contact-card {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.contact-card i {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: var(--primary-soft);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.contact-card strong { display: block; color: var(--ink); }
.contact-card a, .contact-card span { color: var(--text); }
.contact-form { padding: 28px; }
.contact-form h2 { margin-bottom: 4px; }
.contact-form .btn { margin-top: 4px; }
.blog-empty { grid-column: 1 / -1; }
.blog-cover-fallback {
  height: 160px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 28px;
}
.guide-callout {
  background: var(--primary-soft);
  border-radius: 12px;
  padding: 16px 18px;
  margin: 8px 0 20px;
}
.guide-example p { margin-bottom: 12px; }
.guide .table-wrap { max-width: 720px; margin: 0 0 16px; }
.blog-card {
  overflow: hidden;
  padding: 0;
  display: block;
  color: inherit;
  transition: transform .15s ease, box-shadow .15s ease;
}
.blog-card:hover { text-decoration: none; color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); }
.blog-card img { width: 100%; height: 160px; object-fit: cover; }
.blog-card .pad { padding: 16px 18px 18px; }
.blog-card h3 { margin: 4px 0 8px; }
.article-cover {
  width: 100%;
  border-radius: 16px;
  margin: 8px 0 28px;
  max-height: 420px;
  object-fit: cover;
}

.package-card { position: relative; padding: 22px; }
.package-card ul { margin: 0 0 16px; padding: 0; list-style: none; }
.package-card li { padding: 6px 0; color: var(--text); font-size: 14px; }
.package-card li i { color: var(--ok); margin-right: 8px; }
.package-card .price { font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -.03em; margin: 4px 0 10px; }
.package-card.is-featured {
  border-color: var(--primary);
  box-shadow: 0 12px 32px rgba(13, 71, 92, .12);
}
.package-card.is-featured::before {
  content: "Popular";
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--btn);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}
.package-card.is-current {
  border-color: var(--primary);
}
.package-card.is-current::before {
  content: "Current";
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0;
  overflow: hidden;
  padding: 0;
  box-shadow: none;
  border-color: #d5dee2;
}
.product-card:hover {
  transform: none;
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}
.product-cover {
  display: block;
  position: relative;
  background: #eef3f5;
  color: inherit;
}
.product-cover:hover { text-decoration: none; }
.product-card img, .thumb {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background: #eef3f5;
}
.product-media {
  height: 200px;
  background: #eef3f5;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 40px;
  border-bottom: 1px solid var(--line);
}
.product-ribbon {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--ink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 5px 9px;
}
.product-card .pad {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  flex: 1;
}
.product-card h3 { margin: 4px 0 8px; font-size: 18px; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--primary); text-decoration: none; }
.product-card .muted {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 2.8em;
}
.product-cat {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--primary);
}
.product-price {
  margin-top: 12px;
  font-size: 20px;
  font-weight: 800;
  color: var(--ink);
  letter-spacing: -.03em;
}
.product-price.lg { font-size: 32px; margin: 8px 0 4px; }
.product-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.catalog-intro { margin-bottom: 8px; }
.catalog .empty { grid-column: 1 / -1; }

.product-sheet {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: start;
}
.product-sheet-media {
  position: relative;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
}
.product-sheet-media img,
.product-sheet-media .product-media {
  height: 420px;
  border-bottom: 0;
}
.product-sheet-info h1 { font-size: clamp(26px, 4vw, 36px); margin-bottom: 8px; }
.product-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 20px;
}
.product-facts div {
  border: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
}
.product-facts span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.product-facts strong { color: var(--ink); font-size: 16px; }
.promote-box {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.product-about { max-width: none; }
.mobile-frame .product-sheet-media img,
.mobile-frame .product-sheet-media .product-media { height: 220px; }
.mobile-frame .product-price.lg { font-size: 24px; }

/* App shell */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr);
  min-height: 100vh;
  align-items: start;
}
.sidebar {
  background: var(--ink);
  color: #fff;
  padding: 16px 12px;
  position: sticky;
  top: 0;
  align-self: start;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  z-index: 30;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.28) transparent;
}
.sidebar .logo { color: #fff; padding: 2px 8px 16px; border-bottom: 1px solid rgba(255,255,255,.1); margin-bottom: 16px; }
.nav-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: rgba(255,255,255,.42);
  font-weight: 700;
  padding: 12px 12px 6px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  border-radius: 10px;
  color: rgba(255,255,255,.78);
  margin-bottom: 2px;
  font-weight: 600;
  font-size: 13.5px;
}
.sidebar nav a:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.sidebar nav a.active {
  background: rgba(92, 224, 11, .16);
  color: #fff;
  box-shadow: inset 3px 0 0 var(--btn);
}
.sidebar nav a.active .nav-ico { color: var(--btn); }
.nav-text { flex: 1; min-width: 0; }
.nav-count {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--btn);
  color: var(--ink);
  font-size: 11px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
}
.sidebar .btn.secondary {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.sidebar .btn.secondary:hover { background: rgba(255,255,255,.08); color: #fff; }
.sidebar::-webkit-scrollbar { width: 6px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.28); border-radius: 999px; }
.sidebar::-webkit-scrollbar-track { background: transparent; }
.sidebar-foot {
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.1);
}
.sidebar-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 8px 12px;
}
.sidebar-user .user-meta strong, .sidebar-user .user-meta span { color: rgba(255,255,255,.9); }
.sidebar-user .user-meta span { color: rgba(255,255,255,.55); }

.main { padding: 0 28px 48px; background: var(--page); min-height: 100vh; min-width: 0; overflow-x: clip; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 -28px 22px;
  padding: 16px 28px;
  background: var(--body);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}
.topbar h2 { margin: 0; font-size: 20px; }
.topbar-actions { display: flex; align-items: center; gap: 10px; }

.dash-hero {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
  margin-bottom: 16px;
}
.welcome-card { padding: 22px 24px; }
.balance-card {
  background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
  color: #fff;
  border: 0;
  padding: 22px 24px;
}
.balance-card .label { color: rgba(255,255,255,.72); }
.balance-card .value { color: #fff; font-size: 30px; font-weight: 800; letter-spacing: -.03em; }
.balance-card .sub { color: rgba(255,255,255,.78); font-size: 13px; margin-top: 8px; }
.balance-card .btn { margin-top: 14px; }
.list-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.list-row:last-child { border-bottom: 0; padding-bottom: 0; }
.list-row:first-child { padding-top: 0; }

/* Auth */
.auth-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1fr;
}
.auth-brand {
  background: linear-gradient(160deg, var(--ink), var(--primary));
  color: #fff;
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.auth-brand .logo { color: #fff; }
.auth-card-logo { display: none; margin-bottom: 18px; }
.auth-brand h1 { color: #fff; font-size: 36px; max-width: 12ch; }
.auth-brand p { color: rgba(255,255,255,.78); max-width: 36ch; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; }
.auth-points li { display: flex; gap: 10px; margin-bottom: 10px; color: rgba(255,255,255,.88); font-weight: 600; }
.auth-points i { color: var(--btn); margin-top: 3px; }
.auth-wrap {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 24px;
  background: var(--page);
}
.auth-panel { display: grid; place-items: center; padding: 32px 24px; background: var(--page); }
.auth-card { width: min(440px, 100%); padding: 28px; }
.auth-card .logo { color: var(--ink); }

.finance-grid {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.finance-head, .finance-row {
  display: grid;
  grid-template-columns: minmax(140px, 1.4fr) 88px minmax(120px, 1fr);
  gap: 10px;
  align-items: center;
}
.finance-head {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.finance-row span:first-child { font-size: 13px; color: var(--ink); font-weight: 600; }
.finance-row.is-budget,
.finance-row.is-net,
.finance-row.is-company {
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}
.finance-row.is-net strong { font-size: 15px; color: var(--primary); }
.finance-row.is-company strong { font-size: 15px; color: var(--ok); }
.commission-summary {
  display: flex;
  gap: 28px;
  flex-wrap: wrap;
  margin: 4px 0 14px;
  padding: 12px 14px;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--muted);
}
.commission-summary strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
  color: var(--ink);
}
.commission-preview { max-height: 280px; overflow: auto; margin-top: 14px; }
.warn-box, .ok-box { padding: 14px 16px; border-radius: var(--radius-sm); }
.warn-box { background: #fdecea; border: 1px solid #f5c6c2; color: var(--danger); }
.ok-box { background: #eef9e4; border: 1px solid #b6e58a; color: var(--ok); }

.tree-level { margin-bottom: 10px; }
.tree-level summary { cursor: pointer; padding: 8px 0; font-weight: 700; color: var(--ink); }
.copy { cursor: pointer; }
.quick-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* Mobile app chrome */
body.mobile-body {
  background: #d5dee3;
  min-height: 100vh;
}
.mobile-frame {
  max-width: 390px;
  width: 100%;
  margin: 0 auto;
  min-height: 100vh;
  background: var(--page);
  position: relative;
  box-shadow: 0 0 0 1px #c5d0d5, 0 18px 50px rgba(13, 71, 92, .16);
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.m-status { height: 10px; background: var(--ink); }
body.mobile-body {
  --header-h: 68px;
  --nav-h: 86px;
  background: #d5dee3;
}
.m-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: linear-gradient(180deg, #252a36 0%, var(--ink) 100%);
  color: #fff;
  min-height: calc(var(--header-h) + env(safe-area-inset-top));
  padding: calc(10px + env(safe-area-inset-top)) 14px 10px;
  display: grid;
  grid-template-columns: 48px 1fr auto;
  align-items: center;
  gap: 10px;
  box-shadow: 0 8px 24px rgba(15, 18, 24, .22);
}
.m-brand { display: flex; align-items: center; }
.m-heading {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.m-header .m-title {
  text-align: left;
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.02em;
  color: #fff;
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .02em;
}
.m-live i { font-size: 7px; color: #5CE00B; animation: livePulse 1.4s ease-in-out infinite; }
.m-live.is-idle i { display: none; }
.m-live[data-state="offline"] { color: #f3b4ae; }
.m-live[data-state="offline"] i { color: var(--danger); animation: none; }
.m-live[data-state="connecting"] { color: #f0c36d; }
.m-live[data-state="connecting"] i { color: #f0c36d; }
.m-tools { display: flex; align-items: center; gap: 8px; }
.m-icon-btn {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.12);
}
.m-icon-btn:hover { text-decoration: none; color: #fff; background: rgba(255,255,255,.16); }
.m-icon-btn i { font-size: 16px; }
.m-header .logo { color: #fff; }
.m-header .logo-circle.logo-compact .logo-img-wrap,
.m-header .logo-circle.logo-compact .logo-mark {
  width: 42px;
  height: 42px;
  flex-basis: 42px;
}
.m-header a, .m-header .m-side { color: #fff; font-size: 14px; font-weight: 600; }
.m-header a:hover { text-decoration: none; opacity: .9; }
.m-header .m-side.right { text-align: right; }
.m-content { padding: 16px 16px calc(var(--nav-h) + 18px); flex: 1; min-width: 0; overflow-x: hidden; }
.m-nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: calc(8px + env(safe-area-inset-bottom));
  width: min(370px, calc(100% - 16px));
  height: 64px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(31, 35, 46, .08);
  border-radius: 22px;
  padding: 6px;
  box-shadow: 0 12px 32px rgba(15, 18, 24, .16);
  z-index: 40;
  backdrop-filter: blur(10px);
}
.m-nav a {
  text-align: center;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  padding: 6px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  border-radius: 16px;
  min-width: 0;
}
.m-nav a:hover { text-decoration: none; color: var(--primary); }
.m-nav a.active {
  color: #fff;
  background: var(--ink);
}
.m-nav-ico {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
}
.m-nav i { font-size: 16px; line-height: 1; }
.m-nav a.active i { color: var(--btn); }
.m-nav-label { letter-spacing: .01em; }

.hero-balance {
  background: linear-gradient(135deg, var(--ink) 0%, var(--primary) 100%);
  color: #fff;
  border: 0;
  padding: 20px;
  margin-bottom: 12px;
}
.hero-balance .label { color: rgba(255,255,255,.75); }
.hero-balance .value { color: #fff; font-size: 28px; }
.hero-balance .sub { color: rgba(255,255,255,.8); font-size: 13px; margin-top: 8px; }
.hero-balance .dash-status { margin-top: 14px; }

.m-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}
.m-actions a {
  background: var(--body);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 10px;
  text-align: center;
  color: var(--ink);
  font-weight: 700;
  font-size: 13px;
  min-height: 78px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}
.m-actions a i { font-size: 20px; color: var(--primary); }
.m-actions a:hover { text-decoration: none; background: var(--primary-soft); }

.mobile-frame .grid-4 { grid-template-columns: 1fr 1fr; }
.mobile-frame .grid-3 { grid-template-columns: 1fr; }
.mobile-frame .grid-2 { grid-template-columns: 1fr; }
.mobile-frame .btn { width: 100%; }
.mobile-frame .card { border-radius: 16px; }
.mobile-frame .input,
.mobile-frame select,
.mobile-frame textarea {
  min-height: 46px;
  font-size: 16px;
}
.mobile-frame .field { margin-bottom: 16px; }
.mobile-frame form .btn { min-height: 48px; }
.mobile-frame .quick-actions { display: none; }
.mobile-frame .row { gap: 8px; }
.mobile-frame h1 { font-size: 20px; }
.mobile-frame .stat .value { font-size: 18px; }
.mobile-frame .dash-hero { grid-template-columns: 1fr; }
.mobile-frame .copy-row { flex-direction: column; }
.mobile-frame .copy-row .btn { width: 100%; }
.mobile-frame .filters .input, .mobile-frame .filters select { min-width: 0; width: 100%; }

.org-card {
  background: var(--body);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}
.org-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}
.org-legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 12px;
}
.org-dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  margin-right: 6px;
  vertical-align: middle;
}
.org-dot.root { background: var(--primary); border-color: var(--primary); }
.org-dot.active { border-color: var(--btn); }
.org-dot.idle { border-color: #c5cdd1; }
.org-wrap {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  height: min(62vh, 640px);
  max-height: min(62vh, 640px);
  overflow-x: scroll;
  overflow-y: scroll;
  padding: 0;
  background: #fafcfd;
  border: 1px solid #edf1f3;
  border-radius: 10px;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  scrollbar-gutter: stable;
  scrollbar-width: auto;
  scrollbar-color: #0D475C #e8eef0;
}
.org-wrap::-webkit-scrollbar { height: 10px; width: 10px; }
.org-wrap::-webkit-scrollbar-thumb {
  background: #0D475C;
  border-radius: 999px;
  border: 2px solid #fafcfd;
}
.org-wrap::-webkit-scrollbar-track { background: #e8eef0; }
.org-scroll {
  width: max-content;
  min-width: 100%;
  min-height: 100%;
  padding: 20px 28px 36px;
  display: flex;
  justify-content: center;
}
.org-tree {
  display: inline-block;
  transform-origin: top left;
}
.org-tree ul {
  padding: 20px 0 0;
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  margin: 0;
}
.org-tree > ul { padding-top: 0; }
.org-tree li {
  list-style: none;
  text-align: center;
  position: relative;
  padding: 20px 10px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 0 0 auto;
}
.org-tree li::before,
.org-tree li::after {
  content: "";
  position: absolute;
  top: 0;
  right: 50%;
  border-top: 1px solid #c5cdd1;
  width: 50%;
  height: 20px;
}
.org-tree li::after {
  right: auto;
  left: 50%;
  border-left: 1px solid #c5cdd1;
}
.org-tree li:only-child { padding-top: 0; }
.org-tree li:only-child::before,
.org-tree li:only-child::after { display: none; }
.org-tree li:first-child::before,
.org-tree li:last-child::after { border: 0 none; }
.org-tree li:last-child::before { border-right: 1px solid #c5cdd1; }
.org-tree ul ul::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  border-left: 1px solid #c5cdd1;
  width: 0;
  height: 20px;
}
.org-tree > ul > li::before,
.org-tree > ul > li::after { display: none; }
.org-tree > ul > li { padding-top: 0; }
.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  z-index: 1;
  background: #fff;
  min-width: 56px;
}
.org-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 2px solid var(--ink);
  display: grid;
  place-items: center;
  color: var(--ink);
  background: #fff;
  font-size: 17px;
}
.org-node.is-root .org-avatar {
  width: 50px;
  height: 50px;
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  font-size: 19px;
}
.org-node.is-active:not(.is-root) .org-avatar { border-color: var(--btn); color: var(--ink); }
.org-node.is-idle:not(.is-root) .org-avatar { border-color: #c5cdd1; color: #8b9298; }
.org-name {
  font-size: 11px;
  font-weight: 700;
  max-width: 86px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.org-meta {
  font-size: 10px;
  color: var(--muted);
  max-width: 86px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-frame .org-toolbar .btn { width: auto; min-height: 34px; }
.mobile-frame .org-wrap {
  margin: 0;
  height: 48vh;
  max-height: 48vh;
}

.bell-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.bell-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
}
.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
}
.live-pill i { font-size: 8px; color: #5CE00B; animation: livePulse 1.4s ease-in-out infinite; }
@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .35; }
}
.live-toasts {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  width: min(360px, calc(100vw - 24px));
  pointer-events: none;
}
.live-toast {
  pointer-events: auto;
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}
.live-toast.is-ok { border-left-color: var(--ok); }
.live-toast.is-no { border-left-color: var(--danger); }
.live-toast strong { display: block; font-size: 13px; }
.live-toast span { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.live-toast.is-out { opacity: 0; transform: translateY(8px); transition: .3s ease; }
.payment-review {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  margin-top: 14px;
  background: #fff;
}
.payment-review:first-child { margin-top: 0; }
.payment-review-grid {
  display: grid;
  grid-template-columns: minmax(220px, 320px) 1fr;
  gap: 18px;
  align-items: start;
}
.payment-shots figure { margin: 0 0 12px; }
.payment-shots img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}
.payment-shots figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; }
.payment-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 16px;
  margin: 14px 0;
}
.payment-meta dt { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.payment-meta dd { margin: 0; font-size: 14px; color: var(--ink); }
.review-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.review-actions form {
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px;
}
@media (max-width: 900px) {
  .payment-review-grid, .review-actions, .payment-meta { grid-template-columns: 1fr; }
}
.mobile-body .live-toasts { bottom: 84px; }

.review-table { min-width: 1180px; }
.review-table td { font-size: 13px; }
.proof-thumb {
  display: block;
  width: 64px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--page);
}
.proof-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.proof-thumb.is-empty {
  display: grid;
  place-items: center;
  color: var(--muted);
  font-size: 14px;
}
.cell-stack { display: flex; flex-direction: column; gap: 1px; line-height: 1.35; }
.cell-stack span { font-size: 12px; color: var(--muted); }
.cell-notes {
  max-width: 160px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--muted);
}
.cell-actions { white-space: nowrap; }
.kv-table th {
  width: 140px;
  background: #f7fafb;
  color: var(--muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: .06em;
  vertical-align: top;
}
.kv-table td { background: #fff; }
.review-shot { margin: 0 0 14px; }
.review-shot img {
  width: 100%;
  max-height: 420px;
  object-fit: contain;
  background: var(--page);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

@media (max-width: 980px) {
  .shell { grid-template-columns: 1fr; align-items: stretch; }
  .sidebar {
    position: sticky;
    top: 0;
    height: auto;
    max-height: none;
    z-index: 25;
    padding: 10px 12px;
  }
  .sidebar .logo { margin-bottom: 8px; padding-bottom: 10px; }
  .nav-label { display: none; }
  .sidebar nav {
    display: flex;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 4px;
  }
  .sidebar nav a { margin: 0; white-space: nowrap; }
  .sidebar-foot { display: none; }
  .hero-grid, .grid-2, .grid-3, .grid-4, .dash-hero, .steps, .auth-shell, .product-sheet { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .main { padding: 0 16px 32px; }
  .topbar { margin: 0 -16px 16px; padding: 12px 16px; }
  .cta-band { flex-direction: column; align-items: stretch; }
  .cta-band .hero-actions, .page-band .hero-actions, .hero-copy .hero-actions { width: 100%; }
  .cta-band .btn, .page-band .hero-actions .btn { width: 100%; }
  .nav-bar {
    flex-wrap: wrap;
    gap: 8px 12px;
    min-height: 64px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .nav-cta { display: none; }
  .nav-burger { display: grid; }
  .nav-links {
    display: none;
    flex: 1 0 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 10px 0 8px;
    border-top: 1px solid rgba(255,255,255,.08);
  }
  .nav-toggle:checked ~ .nav-links {
    display: flex;
    max-height: min(70vh, 560px);
    overflow-y: auto;
  }
  .nav-toggle:checked ~ .nav-burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle:checked ~ .nav-burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .nav-burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .nav-links > a { padding: 12px; }
  .nav-links-cta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding-top: 12px;
  }
  .nav-links-cta .btn { width: 100%; }
  body.landing-body:has(#nav-toggle:checked) { overflow: hidden; }
  .site-footer { margin-top: 40px; padding-top: 40px; }
  .site-footer .footer-grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px 20px;
    padding-bottom: 28px;
  }
  .site-footer .footer-brand { grid-column: 1 / -1; }
  .hero-band { padding-top: 40px; }
  .hero-copy h1, .page-band-inner h1 { max-width: 100%; font-size: clamp(26px, 7.2vw, 42px); }
  .hero-stage { max-width: none; }
  .hero-float { position: static; max-width: none; margin-top: 12px; }
  .hero-desk-top strong { font-size: 26px; overflow-wrap: anywhere; }
  .hero-metrics-row { grid-template-columns: 1fr 1fr; padding: 18px 0; }
  .page-layout, .contact-layout, .cms-layout { grid-template-columns: 1fr; gap: 20px; }
  .guide-toc, .cms-aside { position: static; }
  .page-band { padding: 32px 0 28px; }
  .page-band-inner h1 { max-width: 100%; }
  .product-sheet-media img,
  .product-sheet-media .product-media { height: 240px; }
  .product-sheet-info .row { flex-direction: column; align-items: stretch; }
  .product-sheet-info .btn { width: 100%; }
  .contact-form { padding: 20px 16px; }
  .auth-card-logo { display: block; }
  .auth-panel { padding: 24px 16px; }
}

@media (max-width: 640px) {
  .site-footer .footer-grid { grid-template-columns: 1fr; }
  .site-footer .footer-brand .btn { width: 100%; }
  .site-footer .footer-col a { padding: 10px 0; }
  .nav-links-cta { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
  .hero-points { flex-direction: column; align-items: flex-start; }
  .hero-metrics-row { gap: 16px 12px; }
  .hero-copy p { font-size: 15px; }
  .page-shell { padding-top: 24px; padding-bottom: 32px; }
  .footer-copy { flex-direction: column; }
  .product-facts { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  body.mobile-body { background: var(--page); }
  .mobile-frame {
    max-width: 100%;
    box-shadow: none;
    border: 0;
  }
  .m-nav { width: calc(100% - 16px); left: 50%; transform: translateX(-50%); }
  .nav-public { padding: 0; }
  .landing-inner {
    padding-left: max(16px, env(safe-area-inset-left));
    padding-right: max(16px, env(safe-area-inset-right));
  }
  .nav-public .logo-img { max-width: 110px; }
  .hero-metrics-row { grid-template-columns: 1fr; }
  .hero-desk-sub { display: block; }
  .section { padding: 20px 0 8px; }
}

.live-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  color: #8be08b;
}
.live-dot i { font-size: 8px; animation: livePulse 1.4s ease-in-out infinite; }
.live-dot[data-state="offline"],
.live-pill[data-state="offline"] { color: var(--danger); }
.live-dot[data-state="offline"] i,
.live-pill[data-state="offline"] i { color: var(--danger); animation: none; }
.live-dot[data-state="connecting"],
.live-pill[data-state="connecting"] { color: #f0c36d; }
.live-dot[data-state="connecting"] i,
.live-pill[data-state="connecting"] i { color: #f0c36d; }
.m-header .m-side.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
}
.note-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.note-list { display: flex; flex-direction: column; gap: 8px; }
.note-list.compact { margin-top: 8px; }
.note-card {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 10px;
  align-items: start;
  background: var(--body);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  color: var(--ink);
  text-decoration: none;
}
.note-card:hover { text-decoration: none; border-color: #c5d0d5; }
.note-card p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.note-card.is-unread { background: #f4fbf6; border-color: #c9e8c4; }
.note-card.is-no.is-unread { background: #fdf4f3; border-color: #f0c7c3; }
.note-dot {
  width: 8px;
  height: 8px;
  margin-top: 6px;
  border-radius: 50%;
  background: #c5d0d5;
}
.note-card.is-unread .note-dot { background: var(--ok); }
.note-card.is-no.is-unread .note-dot { background: var(--danger); }
.empty.tight { padding: 18px 8px; }
[data-live-stat].is-flash {
  animation: statFlash .7s ease;
}
@keyframes statFlash {
  0% { color: var(--ok); transform: scale(1.04); }
  100% { color: inherit; transform: none; }
}
.m-activity { margin-top: 14px; }
.m-push-banner {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.m-push-banner[data-ready="1"] { display: none; }

.input-icon { position: relative; }
.input-icon i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  width: 16px;
  text-align: center;
}
.input-icon .input {
  padding-left: 42px;
}

.m-auth-content { padding-bottom: 32px; }
.m-auth-hero {
  text-align: center;
  padding: 8px 8px 18px;
}
.m-auth-hero .logo { justify-content: center; margin-bottom: 16px; }
.m-auth-hero h2 { font-size: 26px; margin-bottom: 6px; }
.m-auth-hero p { color: var(--muted); margin: 0; }
.m-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 18px;
}
.m-auth-tabs a {
  text-align: center;
  padding: 10px 12px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 13px;
  color: var(--muted);
}
.m-auth-tabs a:hover { text-decoration: none; color: var(--ink); }
.m-auth-tabs a.active {
  background: var(--ink);
  color: #fff;
}
.m-auth-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px 16px;
  box-shadow: var(--shadow);
}
.m-auth-remember { margin: 4px 0 16px; }
.m-auth-form .btn.full { min-height: 48px; border-radius: 12px; }
.m-auth-foot { text-align: center; margin-top: 16px; }
body.mobile-auth-body .m-content { padding-bottom: 28px; }

.m-icon-btn .bell-count {
  top: -2px;
  right: -2px;
}

.m-chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 14px;
  -webkit-overflow-scrolling: touch;
}
.m-chips a {
  flex: 0 0 auto;
  padding: 8px 14px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}
.m-chips a:hover { text-decoration: none; }
.m-chips a.active { background: var(--ink); color: #fff; border-color: var(--ink); }
.m-market-intro p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }
.m-feature {
  display: block;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 14px;
  color: inherit;
  box-shadow: var(--shadow);
}
.m-feature:hover { text-decoration: none; color: inherit; }
.m-feature-media { position: relative; }
.m-feature-media img,
.m-feature-media .product-media {
  height: 200px;
  width: 100%;
  object-fit: cover;
  border: 0;
}
.m-feature-body { padding: 16px; }
.m-feature-body h2 { font-size: 20px; margin: 4px 0 6px; }
.m-feature-body p {
  color: var(--muted);
  font-size: 13px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.m-feature-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 10px;
  margin-top: 12px;
}
.m-feature-row strong { font-size: 18px; }
.m-feature-row span { font-size: 12px; color: var(--muted); font-weight: 700; }
.m-market-list { display: flex; flex-direction: column; gap: 10px; }
.m-product-row {
  display: grid;
  grid-template-columns: 76px 1fr 16px;
  gap: 12px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px;
  color: inherit;
}
.m-product-row:hover { text-decoration: none; color: inherit; border-color: #c5d0d5; }
.m-product-thumb {
  width: 76px;
  height: 76px;
  border-radius: 14px;
  overflow: hidden;
  background: #eef3f5;
  display: grid;
  place-items: center;
  color: var(--primary);
  font-size: 22px;
}
.m-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.m-product-meta { min-width: 0; }
.m-product-meta strong {
  display: block;
  font-size: 15px;
  margin: 2px 0 4px;
}
.m-product-meta p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.m-product-row-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.m-price { font-weight: 800; color: var(--ink); }
.m-price.lg { font-size: 28px; margin: 8px 0 12px; }
.m-depth {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .04em;
  background: var(--primary-soft);
  color: var(--primary);
  border-radius: 999px;
  padding: 3px 7px;
}
.m-row-go { color: #b0bac0; font-size: 12px; }
.m-product-hero {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
}
.m-product-hero img,
.m-product-hero .product-media {
  height: 240px;
  width: 100%;
  object-fit: cover;
  border: 0;
}
.m-product-panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 18px 16px;
  margin-top: 12px;
}
.m-product-panel h2 { font-size: 22px; margin: 4px 0 8px; }
.m-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 14px 0 16px;
}
.m-facts div {
  background: var(--page);
  border-radius: 12px;
  padding: 12px;
}
.m-facts span { display: block; font-size: 11px; color: var(--muted); font-weight: 700; }
.m-facts strong { display: block; margin-top: 4px; }
