:root {
  color-scheme: light;
  --bg: #f3f6f4;
  --surface: #ffffff;
  --surface-muted: #f7f9f8;
  --surface-strong: #eaf0ed;
  --ink: #152421;
  --ink-soft: #526560;
  --ink-faint: #788984;
  --line: #dce5e1;
  --line-strong: #c8d6d1;
  --brand: #126b5c;
  --brand-dark: #0b493f;
  --brand-soft: #dff3ed;
  --nav: #0b2c27;
  --nav-soft: #123a34;
  --gold: #a76a16;
  --gold-soft: #fff1d6;
  --blue: #2666b1;
  --blue-soft: #e7f0ff;
  --danger: #b53a46;
  --danger-soft: #fff0f1;
  --warning: #a8640b;
  --warning-soft: #fff4df;
  --success: #157254;
  --success-soft: #e4f7ef;
  --shadow-xs: 0 1px 2px rgba(13, 44, 38, 0.05);
  --shadow-sm: 0 5px 18px rgba(13, 44, 38, 0.07);
  --shadow-md: 0 18px 45px rgba(7, 35, 30, 0.14);
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --sidebar-width: 264px;
  --topbar-height: 72px;
  --ease: 180ms ease;
  font-family:
    Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0e1715;
  --surface: #15211e;
  --surface-muted: #192724;
  --surface-strong: #20322e;
  --ink: #edf4f1;
  --ink-soft: #afc0ba;
  --ink-faint: #81958e;
  --line: #2b3d38;
  --line-strong: #3a5049;
  --brand: #45b79d;
  --brand-dark: #8fdac8;
  --brand-soft: #173c34;
  --nav: #08110f;
  --nav-soft: #132622;
  --gold: #edb95f;
  --gold-soft: #3a2c16;
  --blue: #83b9fa;
  --blue-soft: #172e49;
  --danger: #ff8890;
  --danger-soft: #412126;
  --warning: #f2b75d;
  --warning-soft: #3c2d18;
  --success: #71d4ad;
  --success-soft: #173b30;
  --shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.25);
  --shadow-sm: 0 6px 20px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 20px 48px rgba(0, 0, 0, 0.36);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select,
textarea {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  border: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  display: block;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid rgba(44, 150, 128, 0.35);
  outline-offset: 2px;
}

.skip-link {
  position: fixed;
  z-index: 200;
  top: 10px;
  left: 10px;
  transform: translateY(-150%);
  border-radius: 10px;
  background: var(--surface);
  box-shadow: var(--shadow-md);
  padding: 10px 14px;
  font-weight: 750;
}

.skip-link:focus {
  transform: translateY(0);
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
}

.muted {
  color: var(--ink-soft);
}

.faint {
  color: var(--ink-faint);
}

.app-boot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 100vh;
}

.app-boot div {
  display: grid;
  gap: 2px;
}

.app-boot span:last-child {
  color: var(--ink-soft);
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: linear-gradient(145deg, #42b89d, #126b5c 65%, #0a4a40);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 8px 22px rgba(24, 124, 104, 0.22);
  color: #fff;
  font-size: 17px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.brand-mark--large {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  font-size: 22px;
  animation: breathe 1.6s ease-in-out infinite;
}

@keyframes breathe {
  50% { transform: scale(1.04); box-shadow: 0 10px 30px rgba(24, 124, 104, 0.32); }
}

/* Authentication */
.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  background: var(--surface);
}

.auth-panel {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(28px, 5vw, 72px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.auth-content {
  width: min(100%, 430px);
  margin: auto;
  padding: 64px 0;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-content h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.auth-lead {
  margin: 14px 0 28px;
  color: var(--ink-soft);
  font-size: 16px;
}

.auth-art {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(76, 197, 165, 0.2), transparent 29%),
    radial-gradient(circle at 83% 80%, rgba(219, 167, 81, 0.18), transparent 26%),
    linear-gradient(145deg, #0a2c26 0%, #104b40 58%, #143e37 100%);
  color: #fff;
}

.auth-art::before,
.auth-art::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 50%;
}

.auth-art::before { top: -180px; right: -100px; }
.auth-art::after { bottom: -190px; left: -140px; }

.auth-art__content {
  position: relative;
  z-index: 1;
  width: min(72%, 620px);
}

.auth-art__content h2 {
  max-width: 580px;
  margin: 20px 0 14px;
  font-size: clamp(34px, 4vw, 58px);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.auth-art__content > p {
  max-width: 500px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 17px;
}

.network-preview {
  position: relative;
  height: 260px;
  margin-top: 50px;
}

.preview-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 176px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.09);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.16);
  padding: 13px;
  backdrop-filter: blur(12px);
}

.preview-node strong,
.preview-node span { display: block; }
.preview-node span { color: rgba(255,255,255,.6); font-size: 11px; }
.preview-node--one { top: 0; left: calc(50% - 88px); }
.preview-node--two { top: 125px; left: 2%; }
.preview-node--three { top: 125px; right: 2%; }
.preview-node--four { top: 218px; left: calc(50% - 88px); }

.preview-node::before {
  content: "";
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(108, 226, 196, 0.2);
  box-shadow: inset 0 0 0 1px rgba(108, 226, 196, 0.28);
}

.auth-footer {
  color: var(--ink-faint);
  font-size: 12px;
}

.demo-accounts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 18px 0 0;
}

.demo-account {
  display: grid;
  gap: 2px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-muted);
  padding: 11px 12px;
  text-align: left;
  cursor: pointer;
  transition: border-color var(--ease), transform var(--ease), background var(--ease);
}

.demo-account:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  background: var(--brand-soft);
}

.demo-account strong { font-size: 12px; }
.demo-account span {
  overflow: hidden;
  color: var(--ink-soft);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Forms and controls */
.form-stack { display: grid; gap: 17px; }
.field { display: grid; gap: 7px; }
.field label,
.field-label { font-size: 12px; font-weight: 750; }
.field-hint { color: var(--ink-faint); font-size: 11px; }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; top: 50%; left: 13px; transform: translateY(-50%); color: var(--ink-faint); }
.input-wrap input { padding-left: 42px; }
.input-wrap .input-action { position: absolute; top: 50%; right: 7px; transform: translateY(-50%); }

.input,
.select,
.textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: var(--surface);
  padding: 11px 12px;
  outline: none;
  transition: border-color var(--ease), box-shadow var(--ease);
}

.input:hover,
.select:hover,
.textarea:hover { border-color: var(--ink-faint); }
.input:focus,
.select:focus,
.textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(18, 107, 92, 0.12); }
.textarea { min-height: 100px; resize: vertical; }
.input[aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 3px rgba(181,58,70,.1); }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 9px 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 750;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--ease), box-shadow var(--ease), background var(--ease), opacity var(--ease);
}

.button:hover:not(:disabled) { transform: translateY(-1px); box-shadow: 0 8px 18px rgba(18,107,92,.18); background: var(--brand-dark); }
.button:active:not(:disabled) { transform: translateY(0); }
.button:disabled { cursor: not-allowed; opacity: .56; }
.button--block { width: 100%; }
.button--secondary { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button--secondary:hover:not(:disabled) { background: var(--surface-muted); box-shadow: var(--shadow-xs); }
.button--ghost { background: transparent; color: var(--ink-soft); }
.button--ghost:hover:not(:disabled) { background: var(--surface-strong); box-shadow: none; color: var(--ink); }
.button--danger { background: var(--danger); }
.button--small { min-height: 34px; padding: 7px 10px; font-size: 12px; }
.button--icon { width: 40px; padding: 0; }
.button .spinner { width: 15px; height: 15px; }

.icon-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  color: var(--ink-soft);
  cursor: pointer;
  transition: color var(--ease), border-color var(--ease), background var(--ease);
}

.icon-button:hover { border-color: var(--line-strong); background: var(--surface-muted); color: var(--ink); }
.icon { width: 18px; height: 18px; stroke-width: 1.8; }
.icon--small { width: 15px; height: 15px; }
.icon--large { width: 23px; height: 23px; }
.notification-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--surface);
  border-radius: 99px;
  background: #f05e68;
}

/* Application layout */
.app-shell { min-height: 100vh; }
.sidebar {
  position: fixed;
  z-index: 40;
  inset: 0 auto 0 0;
  display: flex;
  width: var(--sidebar-width);
  flex-direction: column;
  background:
    radial-gradient(circle at 0 0, rgba(60,173,148,.15), transparent 30%),
    var(--nav);
  color: rgba(255,255,255,.72);
}

.sidebar__head {
  display: flex;
  align-items: center;
  gap: 11px;
  height: var(--topbar-height);
  padding: 0 22px;
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
}

.sidebar__head small {
  display: block;
  margin-top: -2px;
  color: rgba(255,255,255,.48);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.sidebar__nav {
  flex: 1;
  overflow-y: auto;
  padding: 12px 13px 24px;
  scrollbar-width: thin;
}

.nav-group + .nav-group { margin-top: 20px; }
.nav-label {
  margin: 0 10px 7px;
  color: rgba(255,255,255,.37);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.nav-link {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 43px;
  margin: 2px 0;
  border-radius: 10px;
  padding: 9px 11px;
  color: rgba(255,255,255,.67);
  font-weight: 620;
  transition: background var(--ease), color var(--ease);
}

.nav-link:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-link[aria-current="page"] { background: rgba(80,190,164,.16); color: #fff; }
.nav-link[aria-current="page"]::before {
  content: "";
  position: absolute;
  left: -13px;
  width: 3px;
  height: 21px;
  border-radius: 0 4px 4px 0;
  background: #54c2a8;
}
.nav-link .icon { color: rgba(255,255,255,.53); }
.nav-link[aria-current="page"] .icon { color: #7ce0c8; }
.nav-link__count {
  min-width: 21px;
  margin-left: auto;
  border-radius: 99px;
  background: rgba(255,255,255,.1);
  padding: 2px 6px;
  color: #fff;
  font-size: 10px;
  text-align: center;
}

.sidebar__user {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  padding: 11px;
}

.sidebar__user div { min-width: 0; flex: 1; }
.sidebar__user strong,
.sidebar__user span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sidebar__user strong { color: #fff; font-size: 12px; }
.sidebar__user span { color: rgba(255,255,255,.45); font-size: 10px; text-transform: capitalize; }

.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}
.avatar--small { width: 30px; height: 30px; border-radius: 9px; font-size: 10px; }
.avatar--large { width: 48px; height: 48px; border-radius: 15px; font-size: 15px; }
.sidebar .avatar { background: rgba(84,194,168,.16); color: #8fe3d0; }

.main-shell { min-height: 100vh; margin-left: var(--sidebar-width); }
.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  height: var(--topbar-height);
  border-bottom: 1px solid rgba(205,219,214,.72);
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  padding: 0 clamp(18px, 3vw, 36px);
  backdrop-filter: blur(15px);
}

[data-theme="dark"] .topbar { border-color: var(--line); }
.mobile-menu-button { display: none; }
.topbar__crumb { min-width: 0; }
.topbar__crumb span { display: block; color: var(--ink-faint); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.topbar__crumb strong { display: block; overflow: hidden; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.topbar__spacer { flex: 1; }
.search-button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(30vw, 250px);
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface);
  padding: 0 12px;
  color: var(--ink-faint);
  cursor: pointer;
}
.search-button kbd {
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface-muted);
  padding: 1px 5px;
  color: var(--ink-faint);
  font: inherit;
  font-size: 10px;
}

.page {
  width: min(100%, 1580px);
  margin: 0 auto;
  padding: 30px clamp(18px, 3vw, 38px) 88px;
}

.page-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 25px;
}
.page-head h1 { margin: 0; font-size: clamp(25px, 3vw, 33px); line-height: 1.15; letter-spacing: -.038em; }
.page-head p { max-width: 700px; margin: 7px 0 0; color: var(--ink-soft); }
.page-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.mobile-nav { display: none; }

/* Cards, stats and charts */
.grid { display: grid; gap: 18px; }
.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)); }
.span-2 { grid-column: span 2; }
.stack { display: grid; gap: 18px; }
.card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding: 18px 20px;
}
.card__head h2,
.card__head h3 { margin: 0; font-size: 15px; letter-spacing: -.018em; }
.card__head p { margin: 3px 0 0; color: var(--ink-soft); font-size: 12px; }
.card__body { padding: 20px; }
.card__footer { border-top: 1px solid var(--line); padding: 13px 20px; }
.stat-card { position: relative; overflow: hidden; padding: 19px; }
.stat-card::after {
  content: "";
  position: absolute;
  right: -28px;
  bottom: -42px;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: .7;
}
.stat-card__top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.stat-card__label { color: var(--ink-soft); font-size: 12px; font-weight: 650; }
.stat-card__icon { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--brand-soft); color: var(--brand); }
.stat-card__value { position: relative; z-index: 1; margin-top: 14px; font-size: clamp(24px, 2.4vw, 31px); font-weight: 820; line-height: 1; letter-spacing: -.04em; }
.stat-card__meta { position: relative; z-index: 1; display: flex; align-items: center; gap: 6px; margin-top: 10px; color: var(--ink-faint); font-size: 11px; }
.trend { display: inline-flex; align-items: center; gap: 2px; border-radius: 99px; padding: 3px 6px; font-size: 10px; font-weight: 800; }
.trend--up { background: var(--success-soft); color: var(--success); }
.trend--down { background: var(--danger-soft); color: var(--danger); }

.welcome-card {
  position: relative;
  overflow: hidden;
  border: 0;
  background:
    radial-gradient(circle at 87% 10%, rgba(255,255,255,.14), transparent 28%),
    linear-gradient(130deg, #0d4a40, #126b5c 62%, #257f6e);
  color: #fff;
  padding: clamp(22px, 3vw, 31px);
}
.welcome-card::after { content: ""; position: absolute; right: -80px; bottom: -170px; width: 360px; height: 360px; border: 1px solid rgba(255,255,255,.13); border-radius: 50%; }
.welcome-card > * { position: relative; z-index: 1; }
.welcome-card h2 { max-width: 560px; margin: 0; font-size: clamp(24px, 3vw, 36px); letter-spacing: -.04em; }
.welcome-card p { max-width: 620px; margin: 9px 0 20px; color: rgba(255,255,255,.7); }
.welcome-card .button { background: #fff; color: #0b493f; }
.welcome-card .button--ghost { border-color: rgba(255,255,255,.16); background: rgba(255,255,255,.08); color: #fff; }

.chart-wrap { min-height: 260px; }
.chart { width: 100%; height: auto; overflow: visible; }
.chart-grid line { stroke: var(--line); stroke-dasharray: 4 5; }
.chart-label { fill: var(--ink-faint); font-size: 10px; }
.chart-area { fill: url(#areaGradient); }
.chart-line { fill: none; stroke: var(--brand); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.chart-dot { fill: var(--surface); stroke: var(--brand); stroke-width: 2.5; }
.chart-bars rect { fill: var(--brand-soft); rx: 5; }
.chart-bars rect:last-child { fill: var(--brand); }
.legend { display: flex; flex-wrap: wrap; gap: 16px; }
.legend__item { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); font-size: 11px; }
.legend__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }

.progress { height: 7px; overflow: hidden; border-radius: 99px; background: var(--surface-strong); }
.progress__bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--brand), #5fc6ac); }
.rank-card { padding: 20px; }
.rank-card__row { display: flex; align-items: center; gap: 14px; }
.rank-medal { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 15px; background: var(--gold-soft); color: var(--gold); }
.rank-card h3,
.rank-card p { margin: 0; }
.rank-card p { color: var(--ink-soft); font-size: 11px; }
.rank-card__progress { display: grid; gap: 7px; margin-top: 18px; }
.rank-card__meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }

/* Lists, badges and activity */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  border-radius: 99px;
  background: var(--surface-strong);
  padding: 4px 8px;
  color: var(--ink-soft);
  font-size: 10px;
  font-weight: 780;
  line-height: 1.3;
  text-transform: capitalize;
  white-space: nowrap;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--success,
.badge--active,
.badge--approved,
.badge--completed,
.badge--paid { background: var(--success-soft); color: var(--success); }
.badge--warning,
.badge--pending,
.badge--submitted,
.badge--processing { background: var(--warning-soft); color: var(--warning); }
.badge--danger,
.badge--inactive,
.badge--rejected,
.badge--failed,
.badge--overdue { background: var(--danger-soft); color: var(--danger); }
.badge--info,
.badge--in_progress { background: var(--blue-soft); color: var(--blue); }
.badge--rank { background: var(--gold-soft); color: var(--gold); }
.badge--rank::before { display: none; }

.activity-list { display: grid; }
.activity-item { position: relative; display: grid; grid-template-columns: 38px 1fr auto; gap: 12px; padding: 13px 0; }
.activity-item + .activity-item { border-top: 1px solid var(--line); }
.activity-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); }
.activity-item h4,
.activity-item p { margin: 0; }
.activity-item h4 { font-size: 12px; }
.activity-item p { margin-top: 2px; color: var(--ink-soft); font-size: 11px; }
.activity-time { color: var(--ink-faint); font-size: 10px; white-space: nowrap; }

.quick-actions { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.quick-action { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); padding: 13px; text-align: left; cursor: pointer; }
.quick-action:hover { border-color: var(--brand); background: var(--brand-soft); }
.quick-action__icon { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 auto; border-radius: 10px; background: var(--surface); color: var(--brand); }
.quick-action strong,
.quick-action span { display: block; }
.quick-action strong { font-size: 11px; }
.quick-action span { color: var(--ink-faint); font-size: 9px; }

/* Toolbar and data table */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; margin-bottom: 15px; }
.toolbar .input-wrap { min-width: min(100%, 270px); flex: 1; }
.toolbar .select { width: auto; min-width: 130px; }
.filter-count { margin-left: auto; color: var(--ink-faint); font-size: 11px; }
.table-wrap { width: 100%; overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { border-bottom: 1px solid var(--line); background: var(--surface-muted); padding: 11px 15px; color: var(--ink-faint); font-size: 10px; font-weight: 800; letter-spacing: .055em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { border-bottom: 1px solid var(--line); padding: 13px 15px; font-size: 12px; vertical-align: middle; }
.data-table tbody tr { transition: background var(--ease); }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--brand-soft) 35%, transparent); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.table-person { display: flex; align-items: center; gap: 10px; min-width: 170px; }
.table-person div { min-width: 0; }
.table-person strong,
.table-person span { display: block; overflow: hidden; max-width: 210px; text-overflow: ellipsis; white-space: nowrap; }
.table-person strong { font-size: 12px; }
.table-person span { color: var(--ink-faint); font-size: 10px; }
.money { font-variant-numeric: tabular-nums; font-weight: 760; white-space: nowrap; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); padding: 13px 16px; }
.pagination__buttons { display: flex; gap: 5px; }
.pagination p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.mobile-records { display: none; }

/* Genealogy */
.tree-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 9px; padding: 13px; border-bottom: 1px solid var(--line); }
.segmented { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-muted); padding: 3px; }
.segmented button { min-height: 32px; border-radius: 7px; background: transparent; padding: 6px 11px; color: var(--ink-soft); font-size: 11px; font-weight: 750; cursor: pointer; }
.segmented button[aria-pressed="true"] { background: var(--surface); box-shadow: var(--shadow-xs); color: var(--ink); }
.tree-toolbar__spacer { flex: 1; }
.tree-help { display: flex; align-items: center; gap: 10px; color: var(--ink-faint); font-size: 10px; }
.tree-stage {
  position: relative;
  min-height: 560px;
  overflow: auto;
  background-image: radial-gradient(var(--line) .8px, transparent .8px);
  background-size: 20px 20px;
  padding: 42px;
}
.tree-canvas { width: max-content; min-width: 100%; transform-origin: top center; transition: transform var(--ease); }
.tree-root,
.tree-root ul { position: relative; display: flex; justify-content: center; gap: 26px; margin: 0; padding: 34px 0 0; list-style: none; }
.tree-root { padding-top: 0; }
.tree-root ul::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 20px; background: var(--line-strong); }
.tree-root li { position: relative; display: grid; justify-items: center; min-width: 180px; }
.tree-root li::before,
.tree-root li::after { content: ""; position: absolute; top: -14px; width: calc(50% + 14px); height: 14px; border-top: 1px solid var(--line-strong); }
.tree-root li::before { right: 50%; }
.tree-root li::after { left: 50%; }
.tree-root li:first-child::before,
.tree-root li:last-child::after,
.tree-root > li::before,
.tree-root > li::after { display: none; }
.tree-root li:not(:only-child):first-child::after { border-left: 1px solid var(--line-strong); border-radius: 8px 0 0; }
.tree-root li:not(:only-child):last-child::before { border-right: 1px solid var(--line-strong); border-radius: 0 8px 0 0; }
.tree-node {
  position: relative;
  width: 176px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  padding: 13px;
  text-align: left;
  cursor: pointer;
  transition: transform var(--ease), border-color var(--ease), box-shadow var(--ease);
}
.tree-node:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-md); }
.tree-node--highlight { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft), var(--shadow-md); }
.tree-node__top { display: flex; align-items: center; gap: 9px; }
.tree-node__top div { min-width: 0; }
.tree-node__top strong,
.tree-node__top span { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-node__top strong { font-size: 11px; }
.tree-node__top span { color: var(--ink-faint); font-size: 9px; }
.tree-node__stats { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; margin-top: 11px; }
.tree-node__stat { border-radius: 7px; background: var(--surface-muted); padding: 6px; }
.tree-node__stat span,
.tree-node__stat strong { display: block; }
.tree-node__stat span { color: var(--ink-faint); font-size: 8px; text-transform: uppercase; }
.tree-node__stat strong { margin-top: 1px; font-size: 10px; }
.tree-node__leg { position: absolute; top: -8px; right: 10px; display: grid; place-items: center; width: 18px; height: 18px; border-radius: 6px; background: var(--brand-soft); color: var(--brand); font-size: 8px; font-weight: 850; }
.tree-empty { display: grid; place-items: center; width: 176px; height: 78px; border: 1px dashed var(--line-strong); border-radius: 14px; color: var(--ink-faint); font-size: 10px; }

/* Tasks */
.task-summary { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.summary-chip { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 8px 10px; color: var(--ink-soft); font-size: 11px; }
.summary-chip strong { color: var(--ink); }
.task-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.task-card { display: flex; min-height: 220px; flex-direction: column; padding: 18px; }
.task-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.task-card h3 { margin: 14px 0 6px; font-size: 15px; }
.task-card p { margin: 0; color: var(--ink-soft); font-size: 11px; }
.task-card__meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 15px 0; color: var(--ink-faint); font-size: 10px; }
.task-card__meta span { display: inline-flex; align-items: center; gap: 5px; }
.task-card__foot { display: flex; align-items: center; gap: 9px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.task-card__foot .button { margin-left: auto; }

/* Wallet */
.balance-card { position: relative; overflow: hidden; border: 0; background: linear-gradient(135deg,#0d493f,#126b5c 62%,#28816f); color: #fff; padding: 24px; }
.balance-card::after { content: ""; position: absolute; width: 250px; height: 250px; right: -90px; top: -140px; border: 1px solid rgba(255,255,255,.16); border-radius: 50%; }
.balance-card__label { color: rgba(255,255,255,.65); font-size: 11px; }
.balance-card__amount { margin-top: 8px; font-size: clamp(30px,4vw,42px); font-weight: 820; letter-spacing: -.045em; }
.balance-card__row { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; margin-top: 24px; }
.balance-card__mini { display: flex; gap: 25px; }
.balance-card__mini span,
.balance-card__mini strong { display: block; }
.balance-card__mini span { color: rgba(255,255,255,.6); font-size: 9px; }
.balance-card__mini strong { margin-top: 2px; font-size: 13px; }
.balance-card .button { background: #fff; color: #0b493f; }
.ledger-type { display: flex; align-items: center; gap: 9px; }
.ledger-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--success-soft); color: var(--success); }
.ledger-icon--debit { background: var(--danger-soft); color: var(--danger); }
.amount--credit { color: var(--success); }
.amount--debit { color: var(--danger); }

/* Products and orders */
.product-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.product-card { overflow: hidden; }
.product-visual { position: relative; display: grid; place-items: center; aspect-ratio: 1.35; overflow: hidden; background: linear-gradient(145deg, var(--surface-muted), var(--brand-soft)); color: var(--brand); }
.product-visual::before,
.product-visual::after { content: ""; position: absolute; border: 1px solid color-mix(in srgb, var(--brand) 20%, transparent); border-radius: 50%; }
.product-visual::before { width: 170px; height: 170px; right: -70px; top: -80px; }
.product-visual::after { width: 110px; height: 110px; left: -45px; bottom: -55px; }
.product-visual .icon { width: 50px; height: 50px; stroke-width: 1.2; }
.product-card__body { padding: 15px; }
.product-card__body h3 { margin: 0; font-size: 14px; }
.product-card__body p { display: -webkit-box; min-height: 34px; margin: 7px 0 14px; overflow: hidden; color: var(--ink-soft); font-size: 11px; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.product-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.product-card__price { font-size: 16px; font-weight: 820; }
.cart-pill { position: fixed; z-index: 25; right: 25px; bottom: 26px; display: inline-flex; align-items: center; gap: 10px; border-radius: 99px; background: var(--ink); box-shadow: var(--shadow-md); padding: 11px 17px; color: var(--surface); font-weight: 750; cursor: pointer; }

/* KYC, reports and notifications */
.stepper { display: flex; align-items: center; justify-content: space-between; margin: 6px 0 25px; }
.step { position: relative; display: grid; justify-items: center; gap: 7px; flex: 1; color: var(--ink-faint); font-size: 10px; text-align: center; }
.step:not(:last-child)::after { content: ""; position: absolute; z-index: 0; top: 13px; left: calc(50% + 17px); width: calc(100% - 34px); height: 2px; background: var(--line); }
.step__dot { position: relative; z-index: 1; display: grid; place-items: center; width: 27px; height: 27px; border: 2px solid var(--line-strong); border-radius: 50%; background: var(--surface); font-size: 9px; font-weight: 800; }
.step--done,
.step--active { color: var(--brand); font-weight: 750; }
.step--done .step__dot,
.step--active .step__dot { border-color: var(--brand); background: var(--brand-soft); }
.step--done:not(:last-child)::after { background: var(--brand); }
.upload-zone { display: grid; place-items: center; gap: 8px; min-height: 145px; border: 1.5px dashed var(--line-strong); border-radius: 12px; background: var(--surface-muted); padding: 20px; color: var(--ink-soft); text-align: center; cursor: pointer; }
.upload-zone:hover { border-color: var(--brand); background: var(--brand-soft); }
.upload-zone strong { color: var(--ink); font-size: 12px; }
.report-list { display: grid; gap: 8px; }
.report-row { display: grid; grid-template-columns: minmax(110px,1fr) 2fr auto; align-items: center; gap: 13px; }
.report-row__bar { height: 9px; overflow: hidden; border-radius: 99px; background: var(--surface-strong); }
.report-row__bar span { display: block; height: 100%; border-radius: inherit; background: var(--brand); }
.notification-list { display: grid; }
.notification-item { position: relative; display: grid; grid-template-columns: 40px minmax(0,1fr) auto; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); cursor: pointer; }
.notification-item:last-child { border-bottom: 0; }
.notification-item:hover { background: var(--surface-muted); }
.notification-item--unread { background: color-mix(in srgb, var(--brand-soft) 38%, transparent); }
.notification-item--unread::before { content: ""; position: absolute; top: 22px; left: 7px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.notification-item h3,
.notification-item p { margin: 0; }
.notification-item h3 { font-size: 12px; }
.notification-item p { margin-top: 4px; color: var(--ink-soft); font-size: 11px; }
.notification-time { color: var(--ink-faint); font-size: 10px; white-space: nowrap; }

/* States */
.state-panel { display: grid; place-items: center; min-height: 330px; padding: 35px; text-align: center; }
.state-panel__icon { display: grid; place-items: center; width: 55px; height: 55px; border-radius: 17px; background: var(--surface-strong); color: var(--ink-faint); }
.state-panel h2 { margin: 16px 0 5px; font-size: 17px; }
.state-panel p { max-width: 430px; margin: 0 0 17px; color: var(--ink-soft); font-size: 12px; }
.spinner { display: inline-block; width: 26px; height: 26px; border: 2px solid var(--line-strong); border-top-color: var(--brand); border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.skeleton { position: relative; overflow: hidden; border-radius: 8px; background: var(--surface-strong); }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg,transparent,rgba(255,255,255,.35),transparent); animation: shimmer 1.4s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }

/* Modal, drawer, command search and toast */
.overlay { position: fixed; z-index: 90; inset: 0; display: grid; place-items: center; background: rgba(5,20,17,.53); padding: 18px; backdrop-filter: blur(3px); animation: fadeIn var(--ease); }
.modal { width: min(100%, 560px); max-height: min(88vh,760px); overflow: auto; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-md); animation: modalIn var(--ease); }
.modal--wide { width: min(100%, 760px); }
.modal__head { position: sticky; z-index: 1; top: 0; display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; border-bottom: 1px solid var(--line); background: var(--surface); padding: 18px 20px; }
.modal__head h2 { margin: 0; font-size: 17px; }
.modal__head p { margin: 3px 0 0; color: var(--ink-soft); font-size: 11px; }
.modal__body { padding: 20px; }
.modal__foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; border-top: 1px solid var(--line); background: var(--surface); padding: 13px 20px; }
.drawer-overlay { place-items: stretch end; padding: 0; }
.drawer { width: min(92vw,440px); height: 100%; overflow-y: auto; border-left: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow-md); animation: drawerIn var(--ease); }
.drawer__hero { padding: 25px 20px 20px; background: linear-gradient(145deg,var(--brand-soft),var(--surface)); }
.drawer__body { padding: 20px; }
.detail-list { display: grid; gap: 0; }
.detail-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 15px; border-bottom: 1px solid var(--line); padding: 11px 0; }
.detail-row span { color: var(--ink-soft); font-size: 11px; }
.detail-row strong { font-size: 11px; text-align: right; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(8px) scale(.985); } }
@keyframes drawerIn { from { transform: translateX(100%); } }

.command { width: min(100%,650px); align-self: start; margin-top: min(12vh,100px); overflow: hidden; }
.command__input { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); padding: 14px 16px; }
.command__input input { flex: 1; border: 0; background: transparent; outline: none; font-size: 15px; }
.command__results { max-height: 420px; overflow-y: auto; padding: 8px; }
.command__group { padding: 8px 7px 5px; color: var(--ink-faint); font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.command__item { display: flex; align-items: center; gap: 11px; width: 100%; border-radius: 10px; background: transparent; padding: 10px; text-align: left; cursor: pointer; }
.command__item:hover,
.command__item[aria-selected="true"] { background: var(--brand-soft); }
.command__item div { flex: 1; }
.command__item strong,
.command__item span { display: block; }
.command__item strong { font-size: 12px; }
.command__item span { color: var(--ink-faint); font-size: 10px; }
.toast-region { position: fixed; z-index: 150; top: 18px; right: 18px; display: grid; gap: 9px; width: min(calc(100vw - 36px),360px); }
.toast { display: grid; grid-template-columns: 32px 1fr auto; align-items: start; gap: 10px; border: 1px solid var(--line); border-radius: 13px; background: var(--surface); box-shadow: var(--shadow-md); padding: 12px; animation: toastIn 240ms ease; }
.toast__icon { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; background: var(--success-soft); color: var(--success); }
.toast--error .toast__icon { background: var(--danger-soft); color: var(--danger); }
.toast strong,
.toast p { margin: 0; }
.toast strong { font-size: 11px; }
.toast p { margin-top: 2px; color: var(--ink-soft); font-size: 10px; }
.toast button { background: transparent; color: var(--ink-faint); cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(-8px); } }

/* Mobile sidebar */
.sidebar-scrim { display: none; }

@media (max-width: 1180px) {
  .grid--4 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .task-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 940px) {
  :root { --sidebar-width: 78px; }
  .sidebar__head { justify-content: center; padding: 0; }
  .sidebar__head > div,
  .nav-label,
  .nav-link span:not(.nav-link__count),
  .sidebar__user > div,
  .sidebar__user > .icon { display: none; }
  .sidebar__nav { padding-inline: 10px; }
  .nav-link { justify-content: center; padding-inline: 8px; }
  .nav-link__count { position: absolute; top: 2px; right: 2px; min-width: 17px; padding: 1px 4px; }
  .sidebar__user { justify-content: center; padding: 8px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-panel { min-height: 100vh; }
  .auth-art { display: none; }
  .grid--3 { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}

@media (max-width: 720px) {
  :root { --topbar-height: 62px; }
  body { padding-bottom: 67px; }
  .sidebar { width: min(84vw,288px); transform: translateX(-102%); box-shadow: var(--shadow-md); transition: transform 220ms ease; }
  .app-shell--menu-open .sidebar { transform: translateX(0); }
  .app-shell--menu-open .sidebar-scrim { position: fixed; z-index: 35; inset: 0; display: block; background: rgba(5,20,17,.48); }
  .sidebar__head { justify-content: flex-start; padding: 0 19px; }
  .sidebar__head > div,
  .nav-label,
  .nav-link span:not(.nav-link__count),
  .sidebar__user > div,
  .sidebar__user > .icon { display: block; }
  .nav-link { justify-content: flex-start; padding-inline: 11px; }
  .nav-link__count { position: static; min-width: 21px; margin-left: auto; padding: 2px 6px; }
  .sidebar__user { justify-content: flex-start; padding: 11px; }
  .main-shell { margin-left: 0; }
  .mobile-menu-button { display: inline-grid; }
  .topbar { padding-inline: 13px; }
  .topbar__crumb span { display: none; }
  .search-button { width: 40px; justify-content: center; padding: 0; }
  .search-button span,
  .search-button kbd { display: none; }
  .topbar .theme-button { display: none; }
  .page { padding: 22px 14px 35px; }
  .page-head { align-items: flex-start; margin-bottom: 19px; }
  .page-head h1 { font-size: 25px; }
  .page-head p { font-size: 12px; }
  .page-actions .button span { display: none; }
  .page-actions .button { width: 40px; padding: 0; }
  .grid--4,
  .grid--3,
  .grid--2,
  .task-grid { grid-template-columns: 1fr; }
  .span-2 { grid-column: span 1; }
  .stats-scroll { display: flex; margin-inline: -14px; padding: 0 14px 6px; overflow-x: auto; scroll-snap-type: x mandatory; }
  .stats-scroll { scrollbar-width: none; }
  .stats-scroll::-webkit-scrollbar { display: none; }
  .stats-scroll .stat-card { min-width: 78vw; scroll-snap-align: start; }
  .welcome-card .page-actions { align-items: stretch; flex-direction: column; }
  .welcome-card .page-actions .button { width: 100%; }
  .mobile-nav { position: fixed; z-index: 34; right: 0; bottom: 0; left: 0; display: grid; grid-template-columns: repeat(5,1fr); min-height: 65px; border-top: 1px solid var(--line); background: color-mix(in srgb,var(--surface) 93%,transparent); padding: 6px max(7px,env(safe-area-inset-right)) max(6px,env(safe-area-inset-bottom)); backdrop-filter: blur(14px); }
  .mobile-nav__link { position: relative; display: grid; justify-items: center; align-content: center; gap: 2px; min-width: 0; border-radius: 9px; color: var(--ink-faint); font-size: 8px; font-weight: 700; }
  .mobile-nav__link[aria-current="page"] { color: var(--brand); }
  .mobile-nav__link[aria-current="page"]::before { content: ""; position: absolute; top: -6px; width: 24px; height: 3px; border-radius: 0 0 5px 5px; background: var(--brand); }
  .desktop-table { display: none; }
  .mobile-records { display: grid; gap: 10px; padding: 12px; }
  .mobile-record { border: 1px solid var(--line); border-radius: 12px; background: var(--surface-muted); padding: 13px; }
  .mobile-record__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
  .mobile-record__details { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
  .mobile-record__details span,
  .mobile-record__details strong { display: block; }
  .mobile-record__details span { color: var(--ink-faint); font-size: 8px; text-transform: uppercase; }
  .mobile-record__details strong { margin-top: 2px; font-size: 11px; }
  .product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .product-card__body { padding: 12px; }
  .product-visual { aspect-ratio: 1.15; }
  .product-card__body p { display: none; }
  .product-card__foot { align-items: flex-end; }
  .product-card__foot .button span { display: none; }
  .product-card__foot .button { width: 34px; min-height: 34px; padding: 0; }
  .tree-stage { min-height: 520px; padding: 28px 20px; }
  .tree-help { display: none; }
  .toolbar .input-wrap { min-width: 100%; }
  .toolbar .select { flex: 1; min-width: 0; }
  .notification-item { grid-template-columns: 35px minmax(0,1fr); padding: 14px; }
  .notification-time { grid-column: 2; }
  .balance-card__row { align-items: flex-start; flex-direction: column; }
  .balance-card__mini { width: 100%; justify-content: space-between; }
  .cart-pill { right: 14px; bottom: 78px; }
}

@media (max-width: 480px) {
  .auth-panel { padding: 23px 19px; }
  .auth-content { padding-block: 48px; }
  .demo-accounts { grid-template-columns: 1fr; }
  .quick-actions { grid-template-columns: 1fr; }
  .card__head,
  .card__body { padding: 16px; }
  .product-grid { grid-template-columns: 1fr 1fr; }
  .report-row { grid-template-columns: 88px 1fr auto; gap: 8px; }
  .modal { border-radius: 15px; }
}

.migration-warning { padding: 24px; margin-block: 20px; }
.migration-warning h2 { margin-bottom: 12px; }
.migration-warning p, .migration-warning li { line-height: 1.7; color: var(--ink-muted); }
.migration-warning ul { padding-left: 20px; }
.migration-warning .eyebrow { color: var(--brand); }
.migration-stats .stat-card__value { font-size: 26px; overflow-wrap: anywhere; }

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

@media print {
  .sidebar,
  .topbar,
  .mobile-nav,
  .page-actions,
  .toolbar,
  .cart-pill { display: none !important; }
  .main-shell { margin: 0; }
  .page { max-width: none; padding: 0; }
  .card { break-inside: avoid; box-shadow: none; }
}
