/* ============================================================
   API COMPONENT WAREHOUSE — style.css
   ============================================================ */

:root {
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;

  --bg: #f4f6fb;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --surface-2: #f8fafc;
  --surface-3: #eef1f7;
  --border: #e4e8f1;
  --border-strong: #d3d9e6;
  --text: #0f1729;
  --text-2: #41506b;
  --muted: #7a879c;

  --brand: #4f46e5;
  --brand-2: #6366f1;
  --brand-3: #0ea5e9;
  --brand-soft: #eef0ff;
  --brand-text: #4038c7;
  --brand-gradient: linear-gradient(135deg, #4f46e5 0%, #6366f1 55%, #0ea5e9 120%);

  --success: #059669;
  --success-soft: #e7f7f0;
  --danger: #e11d48;
  --danger-soft: #ffeef2;
  --warning: #d97706;
  --warning-soft: #fff5e5;
  --neutral: #64748b;
  --neutral-soft: #f1f4f9;
  --info: #0284c7;
  --info-soft: #e8f5fd;

  --chart-track: #eef1f7;
  --chart-in: #6366f1;
  --chart-out: #22d3ee;

  --sidebar: #0d1424;
  --sidebar-2: #131d33;
  --sidebar-text: #9aa8c2;
  --sidebar-line: rgba(148, 163, 184, .14);

  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .04);
  --shadow-sm: 0 2px 8px -3px rgba(15, 23, 42, .10);
  --shadow: 0 18px 40px -26px rgba(15, 23, 42, .28);
  --shadow-lg: 0 30px 70px -30px rgba(15, 23, 42, .38);

  --radius: 16px;
  --radius-sm: 10px;
  --sidebar-w: 264px;
}

[data-theme="dark"] {
  --bg: #070d18;
  --bg-soft: #0b1322;
  --surface: #101a2c;
  --surface-2: #142036;
  --surface-3: #1a2842;
  --border: #1f2d45;
  --border-strong: #2c3d59;
  --text: #e6edf9;
  --text-2: #b3c0d6;
  --muted: #8494ae;

  --brand: #7c7bfa;
  --brand-2: #8b8afb;
  --brand-soft: rgba(99, 102, 241, .16);
  --brand-text: #b6b5ff;

  --success: #34d399;
  --success-soft: rgba(16, 185, 129, .14);
  --danger: #fb7185;
  --danger-soft: rgba(244, 63, 94, .14);
  --warning: #fbbf24;
  --warning-soft: rgba(245, 158, 11, .14);
  --neutral: #94a3b8;
  --neutral-soft: rgba(148, 163, 184, .12);
  --info: #38bdf8;
  --info-soft: rgba(14, 165, 233, .15);

  --chart-track: #1b2942;
  --chart-in: #8b8afb;
  --chart-out: #22d3ee;

  --sidebar: #070c16;
  --sidebar-2: #0d1626;
  --sidebar-line: rgba(148, 163, 184, .12);

  --shadow-xs: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-sm: 0 2px 10px -4px rgba(0, 0, 0, .5);
  --shadow: 0 20px 45px -28px rgba(0, 0, 0, .8);
  --shadow-lg: 0 30px 80px -30px rgba(0, 0, 0, .9);
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  transition: background-color .2s ease, color .2s ease;
}

body.modal-open { overflow: hidden; }

h1, h2, h3, h4, p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; }
img, svg { display: block; }
[hidden] { display: none !important; }

.icon { flex: 0 0 auto; stroke-width: 1.8; }

.mono { font-family: var(--mono); font-size: .92em; letter-spacing: -.02em; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.nowrap { white-space: nowrap; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.strong { font-weight: 650; }
.center { text-align: center; }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }

::selection { background: var(--brand); color: #fff; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-strong); border-radius: 10px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background: var(--muted); background-clip: content-box; }

/* ---------------- buttons ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease, transform .1s ease;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn .icon { width: 17px; height: 17px; }

.btn--primary {
  background: var(--brand-gradient);
  color: #fff;
  box-shadow: 0 8px 18px -10px rgba(79, 70, 229, .8);
}
.btn--primary:hover { filter: brightness(1.05); box-shadow: 0 12px 24px -12px rgba(79, 70, 229, .9); }

.btn--outline {
  background: var(--surface);
  border-color: var(--border-strong);
  color: var(--text-2);
}
.btn--outline:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.btn--soft {
  background: var(--brand-soft);
  color: var(--brand-text);
}
.btn--soft:hover { background: var(--brand); color: #fff; }

.btn--ghost { color: var(--text-2); }
.btn--ghost:hover { background: var(--surface-3); color: var(--text); }

.btn--danger { background: var(--danger); color: #fff; }
.btn--danger:hover { filter: brightness(1.06); }

.btn--danger-ghost { color: var(--danger); background: var(--danger-soft); }
.btn--danger-ghost:hover { background: var(--danger); color: #fff; }

.btn--sm { height: 34px; padding: 0 12px; font-size: 12.5px; border-radius: 9px; }
.btn--sm .icon { width: 15px; height: 15px; }
.btn--lg { height: 48px; font-size: 15px; border-radius: 12px; }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.spacer { flex: 1; }

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn--sm { width: 30px; height: 30px; border-radius: 8px; }
.icon-btn--danger:hover { background: var(--danger-soft); color: var(--danger); }
.icon-btn:disabled { opacity: .35; cursor: not-allowed; }
.icon-btn:disabled:hover { background: transparent; }

.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
}
.link-btn:hover { text-decoration: underline; }

/* ---------------- forms ---------------- */
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > label {
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .01em;
  color: var(--text-2);
}
.input {
  width: 100%;
  height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 13.5px;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
textarea.input { height: auto; padding: 10px 13px; line-height: 1.55; resize: vertical; }
.input::placeholder { color: var(--muted); }
.input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 16%, transparent);
}
select.input {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%237a879c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 11px center;
  padding-right: 34px;
  cursor: pointer;
}
.input--sm { height: 36px; font-size: 12.5px; border-radius: 9px; }

.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon {
  position: absolute;
  left: 13px;
  display: flex;
  color: var(--muted);
  pointer-events: none;
}
.input-wrap .input { padding-left: 40px; }
.input-action {
  position: absolute;
  right: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.input-action:hover { background: var(--surface-3); color: var(--text); }

.input-suffix { display: flex; align-items: stretch; }
.input-suffix .input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix > span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border: 1px solid var(--border-strong);
  border-left: 0;
  border-radius: 0 10px 10px 0;
  background: var(--surface-2);
  color: var(--muted);
  font-size: 12.5px;
}

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field--full { grid-column: 1 / -1; }
.field--inline { flex-direction: row; align-items: center; gap: 12px; }
.field--inline label { white-space: nowrap; }
.form-hint { font-size: 11.5px; color: var(--muted); line-height: 1.55; }
.form-hint b { color: var(--text-2); }

.checkbox {
  display: inline-flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 13px;
  color: var(--text-2);
  cursor: pointer;
  user-select: none;
}
.checkbox input { position: absolute; opacity: 0; pointer-events: none; }
.checkbox__box {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border: 1.5px solid var(--border-strong);
  border-radius: 5px;
  background: var(--surface);
  transition: background .15s ease, border-color .15s ease;
  position: relative;
}
.checkbox input:checked + .checkbox__box { background: var(--brand); border-color: var(--brand); }
.checkbox input:checked + .checkbox__box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 1.5px;
  width: 5px;
  height: 9px;
  border: 2px solid #fff;
  border-top: 0;
  border-left: 0;
  transform: rotate(42deg);
}
.checkbox input:focus-visible + .checkbox__box { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 20%, transparent); }
.checkbox--card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.checkbox--card > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.checkbox--card strong { font-size: 13px; color: var(--text); }

.quick-set { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.quick-set__btn {
  height: 30px;
  padding: 0 11px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.quick-set__btn:hover { border-color: var(--brand); color: var(--brand); }
.quick-set__btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

.divider { height: 1px; background: var(--border); margin: 18px 0; }

/* ---------------- badges & dots ---------------- */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: .01em;
  white-space: nowrap;
  background: var(--neutral-soft);
  color: var(--neutral);
}
.badge__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: 0 0 auto; }
.badge--success { background: var(--success-soft); color: var(--success); }
.badge--danger { background: var(--danger-soft); color: var(--danger); }
.badge--warning { background: var(--warning-soft); color: var(--warning); }
.badge--info { background: var(--info-soft); color: var(--info); }
.badge--brand { background: var(--brand-soft); color: var(--brand-text); }
.badge--neutral, .badge--ghost { background: var(--surface-3); color: var(--muted); }

.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: 0 0 auto; display: inline-block; }
.dot--kritis { background: var(--danger); box-shadow: 0 0 0 3px color-mix(in srgb, var(--danger) 14%, transparent); }
.dot--aman { background: var(--success); }
.dot--over { background: var(--warning); }
.dot--dead { background: var(--neutral); }
.dot--brand { background: var(--brand); }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 24px;
  padding: 0 9px;
  border-radius: 7px;
  background: var(--surface-3);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.tag--brand { background: var(--brand-soft); color: var(--brand-text); }

.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: var(--surface-3);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 700;
}

.lg {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: var(--muted);
  margin-right: 7px;
}
.lg--in { background: var(--chart-in); }
.lg--out { background: var(--chart-out); }
.lg--aman { background: var(--success); }
.lg--kritis { background: var(--danger); }
.lg--over { background: var(--warning); }
.lg--empty { background: var(--border-strong); }
.lg--dead { background: var(--neutral); }

/* ============================================================
   LOGIN
   ============================================================ */
.login {
  display: grid;
  grid-template-columns: 1.06fr .94fr;
  min-height: 100vh;
  background: var(--surface);
}

.login__art {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 40px 52px;
  overflow: hidden;
  color: #e7ecfa;
  background:
    radial-gradient(900px 500px at 12% 0%, rgba(99, 102, 241, .38), transparent 60%),
    radial-gradient(700px 500px at 92% 88%, rgba(14, 165, 233, .26), transparent 62%),
    linear-gradient(155deg, #0b1222 0%, #111c35 55%, #0d1830 100%);
}

.login__art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, .07) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 40% 40%, #000 30%, transparent 78%);
  pointer-events: none;
}

.login__brand { position: relative; display: flex; align-items: center; gap: 12px; }
.brand-mark {
  display: block;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  flex: 0 0 auto;
  box-shadow: 0 10px 24px -12px rgba(79, 70, 229, .9);
}
.brand-mark svg { width: 100%; height: 100%; }
.login__brand strong { display: block; font-size: 16px; letter-spacing: -.01em; color: #fff; }
.login__brand span { display: block; font-size: 11.5px; color: #9fb0cd; letter-spacing: .02em; }

.login__art-content { position: relative; margin: auto 0; padding: 48px 0; max-width: 520px; }
.login__eyebrow--light { font-size: 12px; }
.login__art-content h1 {
  font-size: clamp(30px, 3.2vw, 44px);
  line-height: 1.12;
  letter-spacing: -.03em;
  font-weight: 750;
  margin-bottom: 18px;
}
.login__art-content h1 span {
  background: linear-gradient(100deg, #a5b4fc, #67e8f9);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.login__art-content > p {
  max-width: 430px;
  font-size: 14.5px;
  line-height: 1.7;
  color: #a7b6d1;
}

.login__preview { position: relative; height: 236px; margin-top: 38px; }
.lp-card {
  position: absolute;
  width: 196px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(19, 30, 52, .78);
  border: 1px solid rgba(148, 163, 184, .18);
  box-shadow: 0 24px 48px -24px rgba(0, 0, 0, .8);
  backdrop-filter: blur(14px);
}
.lp-card strong { font-size: 26px; font-weight: 720; letter-spacing: -.02em; display: block; margin-top: 6px; }
.lp-card__row { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #a9b7d1; }
.lp-bar { height: 5px; border-radius: 999px; background: rgba(148, 163, 184, .18); margin-top: 12px; overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #fb7185, #f43f5e); }
.lp-bar--aman i { background: linear-gradient(90deg, #34d399, #10b981); }
.lp-card--1 { left: 0; top: 0; }
.lp-card--2 { left: 214px; top: 46px; }
.lp-card--3 { left: 74px; top: 132px; width: 226px; }
.lp-card--3 strong { font-size: 15px; margin-top: 8px; line-height: 1.35; }
.lp-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 650;
  letter-spacing: .04em;
  color: #a5b4fc;
  background: rgba(99, 102, 241, .16);
  border: 1px solid rgba(99, 102, 241, .28);
  padding: 3px 8px;
  border-radius: 6px;
}
.lp-sub { display: block; margin-top: 4px; font-size: 11px; color: #93a4c1; }

.login__art-foot {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 11.5px;
  color: #7f8fac;
}
.lp-secure { display: inline-flex; align-items: center; gap: 6px; }

.login__form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
  background: var(--surface);
}
.login__form { width: 100%; max-width: 392px; }
.login__logo-mobile { display: none; width: 46px; height: 46px; margin-bottom: 22px; }
.login__eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 10px;
}
.login__form h2 { font-size: 27px; letter-spacing: -.03em; font-weight: 730; }
.login__sub { margin-top: 8px; color: var(--muted); font-size: 13.5px; line-height: 1.65; }
.login__form form { margin-top: 28px; display: flex; flex-direction: column; gap: 16px; }
.login__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: -2px; }
.login__error {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--danger-soft);
  border: 1px solid color-mix(in srgb, var(--danger) 24%, transparent);
  color: var(--danger);
  font-size: 12.5px;
  line-height: 1.5;
  font-weight: 500;
}
.login__error .icon { margin-top: 1px; }

.login__form.is-shake { animation: shake .4s ease; }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

.login__demo {
  margin-top: 24px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px dashed var(--border-strong);
  background: var(--surface-2);
}
.login__demo-head {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .02em;
  color: var(--muted);
  margin-bottom: 10px;
}
.login__demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.login__demo-grid > div { display: flex; flex-direction: column; gap: 2px; }
.login__demo-grid span { font-size: 11px; color: var(--muted); }
.login__demo-grid code {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
  background: var(--surface-3);
  padding: 3px 7px;
  border-radius: 6px;
  transition: background .15s ease;
}
.login__demo-grid code:hover { background: var(--brand-soft); color: var(--brand-text); }
.login__foot { margin-top: 22px; text-align: center; font-size: 11.5px; color: var(--muted); }

/* ============================================================
   APP SHELL
   ============================================================ */
.app { display: flex; min-height: 100vh; }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 60;
  display: flex;
  flex-direction: column;
  width: var(--sidebar-w);
  background:
    radial-gradient(500px 240px at 100% 0%, rgba(79, 70, 229, .22), transparent 70%),
    linear-gradient(180deg, var(--sidebar) 0%, #0a1120 100%);
  border-right: 1px solid rgba(148, 163, 184, .1);
  color: var(--sidebar-text);
}

.sidebar__brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 22px 20px 20px;
}
.sidebar__brand-text { min-width: 0; }
.sidebar__brand-text strong { display: block; color: #f1f5ff; font-size: 14.5px; letter-spacing: -.01em; }
.sidebar__brand-text span { display: block; font-size: 10.5px; letter-spacing: .05em; color: #7c8bab; text-transform: uppercase; }
.sidebar__brand .brand-mark { width: 38px; height: 38px; border-radius: 11px; }
.sidebar__close { display: none; margin-left: auto; color: #94a3b8; }

.sidebar__nav { flex: 1; overflow-y: auto; padding: 6px 14px 18px; }
.sidebar__nav::-webkit-scrollbar { width: 6px; }
.nav-group { margin-bottom: 18px; }
.nav-group__label {
  display: block;
  padding: 0 10px;
  margin-bottom: 7px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b7a99;
}
.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 42px;
  padding: 0 11px;
  margin-bottom: 3px;
  border-radius: 10px;
  color: #a9b6d0;
  font-size: 13.5px;
  font-weight: 550;
  transition: background .16s ease, color .16s ease;
}
.nav-item:hover { background: rgba(148, 163, 184, .08); color: #fff; }
.nav-item__icon { display: flex; color: #8294b3; transition: color .16s ease; }
.nav-item:hover .nav-item__icon { color: #c7d2fe; }
.nav-item__label { flex: 1; }
.nav-item.is-active {
  background: linear-gradient(90deg, rgba(99, 102, 241, .24), rgba(99, 102, 241, .06));
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(129, 140, 248, .22);
}
.nav-item.is-active::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 3px;
  height: 18px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, #a5b4fc, #22d3ee);
}
.nav-item.is-active .nav-item__icon { color: #c7d2fe; }
.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
}
.nav-badge--danger { background: rgba(244, 63, 94, .18); color: #fda4af; }
.nav-badge--soft { background: rgba(148, 163, 184, .12); color: #93a4c1; }

.sidebar__foot { padding: 14px; border-top: 1px solid var(--sidebar-line); }
.sidebar__account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 11px;
  background: rgba(148, 163, 184, .07);
  border: 1px solid rgba(148, 163, 184, .1);
}
.sidebar__account .avatar { width: 34px; height: 34px; border-radius: 10px; font-size: 12px; }
.sidebar__account-text { min-width: 0; }
.sidebar__account-text strong {
  display: block;
  color: #e2e8f7;
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__account-text span {
  display: block;
  margin-top: 1px;
  font-size: 10.5px;
  color: #7b8aa8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar__logout {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  height: 40px;
  margin-top: 8px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #93a4c1;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
}
.sidebar__logout:hover { background: rgba(244, 63, 94, .12); color: #fda4af; }

.sidebar-overlay { display: none; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }

/* ---------------- topbar ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  height: 74px;
  padding: 0 30px;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar__menu { display: none; }
.topbar__title { min-width: 0; }
.topbar__title h1 { font-size: 19px; font-weight: 720; letter-spacing: -.025em; line-height: 1.25; }
.topbar__title p { font-size: 12px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }

.sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.sync-pill:hover { border-color: var(--brand); color: var(--brand); }
.sync-pill__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--success) 16%, transparent);
}
.sync-pill__dot.is-syncing { animation: pulse-dot .7s ease; }
@keyframes pulse-dot {
  0% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.7); opacity: .5; }
  100% { transform: scale(1); opacity: 1; }
}

.avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-gradient);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .02em;
  flex: 0 0 auto;
}
.avatar--sm { width: 31px; height: 31px; border-radius: 9px; font-size: 11px; }

.content { flex: 1; width: 100%; max-width: 1480px; margin: 0 auto; padding: 26px 30px 56px; outline: none; }

/* ============================================================
   PAGE / PANELS
   ============================================================ */
.page { display: flex; flex-direction: column; gap: 18px; animation: page-in .34s ease both; }
@keyframes page-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.page-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
}
.page-intro h2 { font-size: 22px; font-weight: 720; letter-spacing: -.03em; }
.page-intro p { margin-top: 5px; font-size: 13px; color: var(--muted); }
.page-intro p strong { color: var(--text-2); }
.page-intro__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-xs);
  overflow: hidden;
  min-width: 0;
}
.panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.panel__head--wrap { flex-wrap: wrap; }
.panel__head h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: -.01em;
}
.panel__head p { margin-top: 3px; font-size: 11.5px; color: var(--muted); }
.panel__body { padding: 20px; }
.panel__body--flush { padding: 0; }
.panel__body--tight { padding: 14px 16px 0; }
.panel-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.panel-title-inline { font-size: 14.5px; font-weight: 700; }
.panel-subtitle-inline { font-size: 11.5px; color: var(--muted); margin-top: 3px; }
.panel-subtitle {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 18px 0 10px;
}
.panel-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
}
.panel-foot__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.panel-foot-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  padding: 11px;
  border: 0;
  border-top: 1px solid var(--border);
  background: transparent;
  color: var(--brand);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
}
.panel-foot-link:hover { background: var(--brand-soft); }

.grid { display: grid; gap: 18px; }
.grid--chart { grid-template-columns: minmax(0, 1.62fr) minmax(0, 1fr); }
.grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--settings { grid-template-columns: repeat(3, minmax(0, 1fr)); }

/* ---------------- KPI ---------------- */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.kpi {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 18px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.kpi::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: var(--brand);
  opacity: .9;
}
.kpi--danger::after { background: linear-gradient(90deg, #fb7185, #e11d48); }
.kpi--warning::after { background: linear-gradient(90deg, #fbbf24, #d97706); }
.kpi--neutral::after { background: linear-gradient(90deg, #94a3b8, #64748b); }
.kpi--brand::after { background: var(--brand-gradient); }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.kpi__top { display: flex; align-items: center; gap: 9px; }
.kpi__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand-text);
}
.kpi--danger .kpi__icon { background: var(--danger-soft); color: var(--danger); }
.kpi--warning .kpi__icon { background: var(--warning-soft); color: var(--warning); }
.kpi--neutral .kpi__icon { background: var(--neutral-soft); color: var(--neutral); }
.kpi__label { font-size: 12px; font-weight: 650; color: var(--muted); letter-spacing: .01em; }
.kpi__arrow { margin-left: auto; color: var(--muted); opacity: 0; transform: translate(-3px, 3px); transition: opacity .18s ease, transform .18s ease; }
.kpi:hover .kpi__arrow { opacity: 1; transform: none; }
.kpi__value { font-size: 30px; font-weight: 740; letter-spacing: -.035em; line-height: 1.15; margin-top: 14px; }
.kpi__value span { font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.kpi__bar { height: 5px; border-radius: 999px; background: var(--surface-3); margin-top: 14px; overflow: hidden; }
.kpi__bar i { display: block; height: 100%; border-radius: 999px; background: var(--muted); }
.kpi--danger .kpi__bar i { background: var(--danger); }
.kpi--warning .kpi__bar i { background: var(--warning); }
.kpi--neutral .kpi__bar i { background: var(--neutral); }
.kpi--brand .kpi__bar i { background: var(--brand-gradient); }
.kpi__foot { margin-top: 10px; font-size: 11.5px; color: var(--muted); line-height: 1.45; }

/* ---------------- stat cards ---------------- */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.stat-card {
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 17px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-xs);
}
.stat-card .stat-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex: 0 0 auto;
  line-height: 0;
}
.stat-card .stat-card__icon svg { display: block; }
.stat-card__icon.is-success { background: var(--success-soft); color: var(--success); }
.stat-card__icon.is-muted { background: var(--neutral-soft); color: var(--neutral); }
.stat-card__icon.is-brand { background: var(--brand-soft); color: var(--brand-text); }
.stat-card > div > span { display: block; font-size: 11px; font-weight: 600; color: var(--muted); }
.stat-card strong { display: block; font-size: 19px; font-weight: 720; letter-spacing: -.02em; margin-top: 1px; }
.stat-card strong em { font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); }

/* ---------------- charts ---------------- */
.chart-wrap { width: 100%; overflow: hidden; }
.chart { width: 100%; height: auto; display: block; }
.chart-grid { stroke: var(--border); stroke-width: 1; stroke-dasharray: 3 5; }
.chart-axis { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.chart-bar__in { fill: var(--chart-in); }
.chart-bar__out { fill: var(--chart-out); }
.chart-bar rect { transition: opacity .15s ease; }
.chart-bar:hover rect { opacity: .8; }
.chart-legend { display: flex; gap: 18px; justify-content: center; margin-top: 10px; font-size: 11.5px; color: var(--muted); font-weight: 550; }
.chart-legend span { display: inline-flex; align-items: center; }

.donut-block { display: flex; flex-direction: column; align-items: center; gap: 20px; padding: 4px 0; }
.donut { position: relative; width: 168px; height: 168px; }
.donut svg { width: 100%; height: 100%; }
.donut__center { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.donut__center strong { font-size: 27px; font-weight: 740; letter-spacing: -.03em; }
.donut__center span { font-size: 11px; color: var(--muted); }
.donut-legend { width: 100%; display: flex; flex-direction: column; gap: 8px; }
.donut-legend__row { display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; }
.donut-legend__row--muted { padding-top: 8px; border-top: 1px dashed var(--border); color: var(--muted); }
.donut-legend__label { display: inline-flex; align-items: center; color: var(--text-2); }
.donut-legend__value { font-weight: 700; font-variant-numeric: tabular-nums; }
.donut-legend__value em { font-style: normal; font-weight: 500; color: var(--muted); font-size: 11px; margin-left: 4px; }

/* ---------------- mini lists ---------------- */
.mini-table { display: flex; flex-direction: column; }
.mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: background .14s ease;
}
.mini-row:hover { background: var(--surface-2); }
.mini-row:last-child { border-bottom: 0; }
.mini-row__main { min-width: 0; }
.mini-row__name { display: block; font-size: 12.5px; font-weight: 650; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row__meta { display: block; font-size: 10.5px; color: var(--muted); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-row__side { text-align: right; }
.mini-row__qty { display: block; font-size: 13.5px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mini-row__sub { display: block; font-size: 10px; color: var(--muted); white-space: nowrap; }
.mini-row__status .badge { height: 22px; font-size: 10.5px; padding: 0 8px; }
.mini-empty {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 26px 20px;
  color: var(--muted);
  font-size: 12.5px;
  justify-content: center;
}

/* ---------------- toolbar ---------------- */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.toolbar__right { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.segmented {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 11px;
  background: var(--surface-3);
}
.segmented--wrap { flex-wrap: wrap; }
.segmented--sm { padding: 3px; border-radius: 9px; }
.seg-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.seg-btn:hover { color: var(--text); }
.seg-btn.is-active {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-sm);
}
.seg-btn__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 19px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 10.5px;
  font-weight: 700;
  color: var(--muted);
}
.seg-btn.is-active .seg-btn__count { background: var(--brand-soft); color: var(--brand-text); }

.search { position: relative; display: flex; align-items: center; }
.search .icon { position: absolute; left: 12px; color: var(--muted); pointer-events: none; }
.search input {
  height: 38px;
  width: 252px;
  padding: 0 13px 0 37px;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
  font-family: inherit;
  font-size: 12.5px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.search input::placeholder { color: var(--muted); }
.search input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.search input::-webkit-search-cancel-button { cursor: pointer; }
.mini-search input { width: 208px; height: 34px; font-size: 12px; }
.filter-inline { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }

.tabs { display: inline-flex; gap: 4px; }
.tabs button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 13px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.tabs button:hover { background: var(--surface-3); color: var(--text); }
.tabs button.is-active { background: var(--brand-soft); color: var(--brand-text); }
.tabs button span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--surface-3);
  font-size: 10.5px;
  font-weight: 700;
}
.tabs button.is-active span { background: color-mix(in srgb, var(--brand) 18%, transparent); }

.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 20px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
  font-size: 11.5px;
  color: var(--muted);
}
.table-meta strong { color: var(--text-2); }

/* ============================================================
   TABLES
   ============================================================ */
.table-wrap { width: 100%; overflow-x: auto; }
.table-wrap--tall { max-height: 520px; overflow-y: auto; }
.table-wrap--compact { border: 1px solid var(--border); border-radius: 12px; margin-top: 14px; }
.table-wrap--compact .table { font-size: 12px; }
.table-wrap--compact .table th, .table-wrap--compact .table td { padding: 10px 14px; }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 10px 16px;
  background: var(--surface-2);
  border-bottom: 1px solid var(--border);
  text-align: left;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--muted);
  white-space: nowrap;
}
.table tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .13s ease; }
.table tbody tr:hover { background: var(--surface-2); }
.table .strong { font-weight: 650; }
.table--stock td { padding-top: 11px; padding-bottom: 11px; }
.table--history .cell-note { max-width: 230px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 12px; }
.table--users .user-cell { display: flex; align-items: center; gap: 10px; }
.table--preview .badge { height: 22px; font-size: 10.5px; }
.table--preview td, .table--preview th { padding: 9px 12px; }

/* Master Data: kolom dibuat tetap agar teks panjang tidak mendorong kolom lain. */
.table--master { table-layout: fixed; font-size: 12.5px; }
.table--master thead th { padding: 9px 12px; font-size: 10px; letter-spacing: .06em; }
.table--master tbody td { padding: 10px 12px; overflow: hidden; }
.table--master .cell-stack > strong { font-size: 12.4px; }
.table--master .cell-stack > span { font-size: 10.8px; }
.table--master .mono { font-size: 12px; }
.table--master td.num { white-space: nowrap; }
.table--master .actions-cell { padding-left: 6px; padding-right: 8px; }
.table--components { min-width: 980px; }
.table--categories { min-width: 780px; }
.table--master .master-name .cell-stack > strong,
.table--master .master-name .cell-stack > span,
.table--master .master-sku .cell-stack > strong,
.table--master .master-sku .cell-stack > span,
.table--master .master-category .cell-stack > strong,
.table--master .master-category .cell-stack > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.table--master .master-name .cell-stack > strong { font-size: 12.6px; }
.table--master .master-loc { font-size: 11.5px; }
.table--master .master-stock .cell-stack { align-items: flex-start; }
.table--master .master-stock .badge { margin-top: 3px; }

.th-sort {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  cursor: pointer;
}
.th-sort:hover { color: var(--text-2); }
.th-sort.is-active { color: var(--brand-text); }
.th-sort.is-active .icon { transition: transform .15s ease; }
.th-sort.is-active.is-asc .icon { transform: rotate(180deg); }

.cell-stack { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cell-stack > strong { font-size: 12.8px; font-weight: 650; }
.cell-stack > span { font-size: 11px; color: var(--muted); }

.status-stack { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.mini-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 9.5px;
  font-weight: 650;
  color: var(--muted);
  background: var(--surface-3);
  border-radius: 5px;
  padding: 2px 5px;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.actions-cell { text-align: right; white-space: nowrap; }
.actions-cell .icon-btn { display: inline-flex; }
.table th.actions-cell { text-align: right; }

.loc-btn { border: 0; background: none; padding: 0; cursor: pointer; text-align: left; }
.loc-cell { display: flex; flex-direction: column; gap: 1px; }
.loc-cell__code { font-family: var(--mono); font-size: 12px; font-weight: 650; color: var(--text); }
.loc-btn:hover .loc-cell__code { color: var(--brand); text-decoration: underline; }
.loc-cell__detail { font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.loc-cell--empty { font-size: 11.5px; color: var(--muted); font-style: italic; }

.rack-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 22px;
  border-radius: 6px;
  background: var(--brand-soft);
  color: var(--brand-text);
  font-size: 11px;
  font-weight: 750;
  margin-right: 5px;
}
.rack-tag--lg { width: 38px; height: 38px; border-radius: 10px; font-size: 16px; margin-right: 0; }

.fill-cell { display: flex; flex-direction: column; gap: 5px; min-width: 110px; }
.meter { height: 7px; width: 100%; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--brand-gradient); }
.meter--wide { height: 9px; margin-top: 12px; }

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
}
.pagination__buttons { display: flex; gap: 4px; }
.page-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: background .14s ease, border-color .14s ease, color .14s ease;
}
.page-btn:hover:not(:disabled):not(.is-active) { border-color: var(--brand); color: var(--brand); }
.page-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }
.page-btn:disabled { opacity: .4; cursor: not-allowed; }

/* ============================================================
   RACK MAP
   ============================================================ */
.rack-boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.rack-board {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-2);
  padding: 14px 15px 12px;
}
.rack-board__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.rack-board__title { display: flex; align-items: center; gap: 11px; }
.rack-board__title strong { display: block; font-size: 13px; }
.rack-board__title span:not(.rack-tag) { display: block; font-size: 10.5px; color: var(--muted); }
.rack-board__meta { font-size: 10.5px; font-weight: 650; color: var(--muted); background: var(--surface); border: 1px solid var(--border); padding: 3px 8px; border-radius: 999px; }
.rack-board__body { display: flex; flex-direction: column; gap: 7px; }
.rack-board__foot { display: flex; align-items: center; gap: 10px; margin-top: 12px; padding-top: 11px; border-top: 1px dashed var(--border); }
.rack-board__foot .meter { flex: 1; height: 5px; }
.rack-board__foot > span { font-size: 10.5px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }

.rack-row { display: flex; align-items: center; gap: 8px; }
.rack-row__label { width: 22px; font-size: 10px; font-weight: 700; color: var(--muted); flex: 0 0 auto; }
.rack-row__slots { flex: 1; display: grid; gap: 5px; }

.rack-cell {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 2px;
  min-height: 46px;
  padding: 5px 7px;
  border-radius: 7px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
  overflow: hidden;
}
.rack-cell:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); border-color: var(--brand); }
.rack-cell__slot { font-size: 9.5px; font-weight: 700; color: var(--muted); }
.rack-cell__qty { font-size: 10.5px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.rack-cell--aman { background: color-mix(in srgb, var(--success) 11%, var(--surface)); border-color: color-mix(in srgb, var(--success) 34%, transparent); }
.rack-cell--aman .rack-cell__qty { color: var(--success); }
.rack-cell--kritis { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 38%, transparent); }
.rack-cell--kritis .rack-cell__qty { color: var(--danger); }
.rack-cell--over { background: color-mix(in srgb, var(--warning) 12%, var(--surface)); border-color: color-mix(in srgb, var(--warning) 36%, transparent); }
.rack-cell--over .rack-cell__qty { color: var(--warning); }
.rack-cell--empty { background: var(--surface-3); border-style: dashed; border-color: var(--border-strong); }
.rack-cell--empty .rack-cell__qty { color: var(--muted); }

.rack-legend { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; font-size: 11.5px; color: var(--muted); }
.rack-legend__item { display: inline-flex; align-items: center; }
.rack-legend__hint { margin-left: auto; font-size: 11px; }

.rack-mini { display: flex; flex-direction: column; gap: 8px; }
.rack-level { display: flex; align-items: center; gap: 10px; }
.rack-level__label { width: 24px; font-size: 10px; font-weight: 700; color: var(--muted); }
.rack-level__slots { flex: 1; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; }
.rack-slot {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 7px 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: border-color .13s ease, transform .13s ease;
}
.rack-slot:hover { border-color: var(--brand); transform: translateY(-1px); }
.rack-slot.is-active { border-color: var(--brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 22%, transparent); }
.rack-slot__code { font-family: var(--mono); font-size: 9.5px; color: var(--muted); }
.rack-slot__qty { font-size: 11px; font-weight: 700; }
.rack-slot--aman { background: color-mix(in srgb, var(--success) 10%, var(--surface)); }
.rack-slot--kritis { background: color-mix(in srgb, var(--danger) 11%, var(--surface)); }
.rack-slot--over { background: color-mix(in srgb, var(--warning) 11%, var(--surface)); }
.rack-slot--empty { border-style: dashed; color: var(--muted); }

/* ---------------- location detail ---------------- */
.loc-detail { margin-bottom: 14px; }
.loc-detail__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.loc-detail__grid > div {
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border);
}
.loc-detail__grid span { display: block; font-size: 10px; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.loc-detail__grid strong { display: block; font-size: 14px; margin-top: 2px; }

.mini-list { display: flex; flex-direction: column; gap: 8px; }
.mini-list__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 13px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface-2);
}
.mini-list__main { min-width: 0; }
.mini-list__main strong { display: block; font-size: 12.5px; overflow-wrap: anywhere; }
.mini-list__main span { display: block; font-size: 11px; color: var(--muted); }
.mini-list__meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 6px 10px; }

/* ============================================================
   MODAL / TOAST / EMPTY
   ============================================================ */
#modal-root { position: relative; z-index: 200; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(8, 13, 25, .5);
  backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity .18s ease;
  overflow-y: auto;
}
.modal-backdrop.is-open { opacity: 1; }

.modal {
  width: 100%;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  transform: translateY(14px) scale(.985);
  opacity: 0;
  transition: transform .2s cubic-bezier(.2, .8, .2, 1), opacity .2s ease;
  margin: auto;
}
.modal-backdrop.is-open .modal { transform: none; opacity: 1; }
.modal--sm { max-width: 440px; }
.modal--md { max-width: 640px; }
.modal--lg { max-width: 900px; }

.modal__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid var(--border);
}
.modal__head > div { min-width: 0; }
.modal__head .icon-btn { flex: 0 0 auto; }
.modal__head h3 { font-size: 16.5px; font-weight: 720; letter-spacing: -.02em; line-height: 1.3; }
.modal__head p { margin-top: 5px; font-size: 12px; color: var(--muted); line-height: 1.55; overflow-wrap: anywhere; }
.modal__body { padding: 22px 24px 24px; overflow-y: auto; }
.modal__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 0 0 18px 18px;
  flex-wrap: wrap;
}
.modal__foot .btn--danger-ghost { margin-right: auto; }

.confirm { display: flex; gap: 13px; align-items: flex-start; }
.confirm__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex: 0 0 auto;
}
.confirm__icon.is-danger { background: var(--danger-soft); color: var(--danger); }
.confirm p { font-size: 13px; line-height: 1.65; color: var(--text-2); }

.toast-root {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 360px;
  width: calc(100% - 40px);
  pointer-events: none;
}
.toast {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 13px 14px;
  border-radius: 13px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  pointer-events: auto;
  transform: translateY(14px);
  opacity: 0;
  transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .24s ease;
}
.toast.is-in { transform: none; opacity: 1; }
.toast.is-out { transform: translateY(8px); opacity: 0; }
.toast__icon { flex: 0 0 auto; margin-top: 1px; color: var(--brand); }
.toast--success .toast__icon { color: var(--success); }
.toast--error .toast__icon { color: var(--danger); }
.toast--warning .toast__icon { color: var(--warning); }
.toast--info .toast__icon { color: var(--info); }
.toast__body { flex: 1; min-width: 0; }
.toast__body strong { display: block; font-size: 12.5px; font-weight: 700; }
.toast__body span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 2px; }
.toast__close { border: 0; background: none; color: var(--muted); cursor: pointer; padding: 2px; border-radius: 6px; flex: 0 0 auto; }
.toast__close:hover { background: var(--surface-3); color: var(--text); }

.empty { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 48px 24px; }
.empty__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--muted);
  margin-bottom: 13px;
}
.empty h4 { font-size: 14px; font-weight: 700; }
.empty p { font-size: 12.5px; color: var(--muted); margin-top: 4px; max-width: 330px; line-height: 1.6; }
.empty .btn { margin-top: 14px; }

.notice {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 14px 16px;
  border-radius: 12px;
  font-size: 12.5px;
  line-height: 1.65;
  border: 1px solid var(--border);
  background: var(--surface-2);
  color: var(--text-2);
}
.notice .icon { flex: 0 0 auto; margin-top: 2px; }
.notice--soft { background: var(--surface-2); border-color: var(--border); }
.notice--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 26%, transparent); color: var(--success); }
.notice--warning { background: var(--warning-soft); border-color: color-mix(in srgb, var(--warning) 26%, transparent); color: var(--warning); }
.notice--danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 26%, transparent); color: var(--danger); }
.notice b { font-weight: 700; }

/* ============================================================
   IMPORT UI
   ============================================================ */
.upload-zone {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 38px 24px;
  border: 1.5px dashed var(--border-strong);
  border-radius: 14px;
  background: var(--surface-2);
  text-align: center;
  transition: border-color .15s ease, background .15s ease;
}
.upload-zone.is-drag { border-color: var(--brand); background: var(--brand-soft); }
.upload-zone__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand-text);
  margin-bottom: 4px;
}
.upload-zone strong { font-size: 14px; }
.upload-zone > span { font-size: 12px; color: var(--muted); }
.upload-zone .btn { margin-top: 10px; }

.import-help { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.import-help__col {
  padding: 14px 15px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
}
.import-help__col strong { display: block; font-size: 12.5px; margin-bottom: 5px; }
.import-help__col p { font-size: 11.5px; color: var(--muted); line-height: 1.6; }
.import-help__col b { color: var(--text-2); }
.import-help__col .link-btn { margin-top: 8px; }

.import-file {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-2);
}
.import-file__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--success-soft);
  color: var(--success);
  flex: 0 0 auto;
}
.import-file__meta { flex: 1; min-width: 0; }
.import-file__meta strong { display: block; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.import-file__meta span { display: block; font-size: 11px; color: var(--muted); }

.import-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 16px 0 18px; }
.import-stats--stack { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stat-chip {
  padding: 12px 14px;
  border-radius: 11px;
  border: 1px solid var(--border);
  background: var(--surface-2);
}
.stat-chip span { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); line-height: 1.4; }
.stat-chip strong { display: block; font-size: 18px; font-weight: 720; letter-spacing: -.02em; margin-top: 2px; }
.stat-chip--success { background: var(--success-soft); border-color: color-mix(in srgb, var(--success) 24%, transparent); }
.stat-chip--success strong { color: var(--success); }
.stat-chip--info { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
.stat-chip--info strong { color: var(--info); }
.stat-chip--danger { background: var(--danger-soft); border-color: color-mix(in srgb, var(--danger) 22%, transparent); }
.stat-chip--danger strong { color: var(--danger); }

.loading-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 52px 20px;
  color: var(--muted);
  font-size: 13px;
}
.spinner {
  display: inline-block;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 2.5px solid var(--border-strong);
  border-top-color: var(--brand);
  animation: spin .7s linear infinite;
}
.spinner--sm { width: 15px; height: 15px; border-width: 2px; }
@keyframes spin { to { transform: rotate(360deg); } }

#imp-body > .field--inline { margin-bottom: 12px; }
#import-allow-create { margin-top: 12px; }
#imp-body .notice { margin-top: 12px; }
#imp-body .notice .icon { flex: 0 0 auto; }

/* ============================================================
   SETTINGS
   ============================================================ */
.grid--settings > .panel { display: flex; flex-direction: column; }
.grid--settings .panel__body { flex: 1; display: flex; flex-direction: column; gap: 15px; }
.grid--settings form { display: flex; flex-direction: column; gap: 15px; flex: 1; }
.grid--settings form > .btn { align-self: flex-start; margin-top: auto; }

.theme-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.theme-opt {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: var(--surface);
  color: var(--text-2);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.theme-opt.is-active { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-text); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand) 16%, transparent); }
.theme-opt__swatch { width: 20px; height: 20px; border-radius: 6px; border: 1px solid var(--border); }
.theme-opt__swatch--light { background: linear-gradient(135deg, #fff 50%, #eef1f8 50%); }
.theme-opt__swatch--dark { background: linear-gradient(135deg, #101a2c 50%, #1f2d45 50%); }

.pw-strength { display: flex; align-items: center; gap: 4px; margin-top: -4px; }
.pw-strength i { flex: 1; height: 4px; border-radius: 999px; background: var(--surface-3); transition: background .18s ease; }
.pw-strength span { flex: 0 0 auto; margin-left: 7px; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.pw-strength--1 i.is-on { background: var(--danger); }
.pw-strength--2 i.is-on { background: var(--warning); }
.pw-strength--3 i.is-on { background: #84cc16; }
.pw-strength--4 i.is-on { background: var(--success); }

.panel--sync { display: flex; flex-direction: column; padding: 22px 22px 18px; }
.sync-card { display: flex; align-items: flex-start; gap: 16px; }
.sync-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand-text);
  flex: 0 0 auto;
}
.sync-card__text { flex: 1; min-width: 0; }
.sync-card__text h3 { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.sync-card__text p { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.7; max-width: 700px; }
.sync-card__actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.sync-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-top: 18px;
  padding-top: 15px;
  border-top: 1px dashed var(--border);
  font-size: 11px;
  color: var(--muted);
}
.sync-meta span { display: inline-flex; align-items: center; gap: 5px; }
.sync-meta__link { font-family: var(--mono); }

.data-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.data-item { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); }
.data-item span { display: block; font-size: 10.5px; font-weight: 600; color: var(--muted); }
.data-item strong { display: block; font-size: 19px; font-weight: 720; letter-spacing: -.02em; margin-top: 1px; }

.settings-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 6px 4px 0;
  font-size: 11px;
  color: var(--muted);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1280px) {
  .grid--settings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--three > .panel:last-child { grid-column: 1 / -1; }
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .content { padding: 24px 24px 48px; }
  .topbar { padding: 0 24px; }
}

@media (max-width: 1080px) {
  .grid--chart { grid-template-columns: 1fr; }
  .grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rack-boards { grid-template-columns: 1fr; }
  .login { grid-template-columns: 1fr; }
  .login__art { display: none; }
  .login__form-wrap { min-height: 100vh; }
  .login__logo-mobile { display: block; }
  .login__form h2 { font-size: 25px; }
}

@media (max-width: 1024px) {
  :root { --sidebar-w: 264px; }
  .main { margin-left: 0; }
  .sidebar {
    transform: translateX(-100%);
    transition: transform .26s cubic-bezier(.2, .8, .2, 1);
    box-shadow: var(--shadow-lg);
  }
  body.sidebar-open .sidebar { transform: none; }
  .sidebar__close { display: inline-flex; }
  .sidebar-overlay {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 55;
    background: rgba(8, 13, 25, .5);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
  }
  body.sidebar-open .sidebar-overlay { opacity: 1; pointer-events: auto; }
  .topbar__menu { display: inline-flex; }
  .sync-pill { display: none; }
  .grid--settings { grid-template-columns: 1fr; }
  .grid--three { grid-template-columns: 1fr; }
  .grid--three > .panel:last-child { grid-column: auto; }
}

@media (max-width: 820px) {
  .topbar { height: 66px; gap: 10px; padding: 0 16px; }
  .topbar__title h1 { font-size: 16.5px; }
  .topbar__title p { display: none; }
  .topbar__actions { gap: 6px; }
  .topbar__import span:last-child { display: none; }
  .topbar__import { width: 36px; padding: 0; }
  .content { padding: 18px 16px 44px; }
  .page-intro { align-items: flex-start; }
  .page-intro h2 { font-size: 19px; }
  .kpi-grid { gap: 12px; }
  .kpi { padding: 15px; }
  .kpi__value { font-size: 25px; }
  .panel__head { padding: 15px 16px; }
  .panel__body { padding: 16px; }
  .toolbar { padding: 14px 16px; }
  .search input { width: 100%; min-width: 140px; }
  .toolbar__right { width: 100%; }
  .toolbar__right .search { flex: 1; }
  .toolbar__right .search input { width: 100%; }
  .table tbody td { padding: 11px 13px; }
  .table thead th { padding: 9px 13px; }
  .pagination { padding: 12px 16px; }
  .table-meta { padding: 10px 16px; }
  .modal-backdrop { padding: 12px; }
  .modal { max-height: 94vh; }
  .modal__head { padding: 18px 20px 16px; }
  .modal__body { padding: 18px 20px 20px; }
  .modal__foot { padding: 14px 20px; }
  .import-help { grid-template-columns: 1fr; }
  .import-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loc-detail__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .panel--sync { padding: 18px 16px 16px; }
  .sync-card { flex-direction: column; gap: 14px; }
  .sync-card__actions { width: 100%; }
  .data-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .page-intro__actions { width: 100%; }
}

@media (max-width: 560px) {
  .kpi-grid { grid-template-columns: 1fr; }
  .stat-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .rack-row__slots { gap: 4px; }
  .rack-cell { min-height: 42px; padding: 4px 5px; }
  .rack-cell__qty { font-size: 9.5px; }
  .segmented { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .seg-btn { flex: 0 0 auto; }
  .grid--three { gap: 14px; }
  .chart-legend { font-size: 10.5px; }
  .modal__head { padding: 16px 18px 14px; }
  .modal__body { padding: 16px 18px 18px; }
  .modal__foot { flex-direction: column-reverse; align-items: stretch; padding: 13px 18px; }
  .modal__foot .btn { width: 100%; }
  .modal__foot .btn--danger-ghost { margin-right: 0; }
  .import-stats { gap: 10px; }
  .import-stats--stack { grid-template-columns: 1fr; }
  .toast-root { right: 12px; bottom: 12px; width: calc(100% - 24px); }
  .login__form-wrap { padding: 28px 20px; }
  .login__demo-grid { grid-template-columns: 1fr; }
  .hide-sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
