:root {
  --bg0: #070b10;
  --bg1: #0c1219;
  --bg2: #121a24;
  --bg3: #182433;
  --line: rgba(140, 170, 200, 0.14);
  --line-strong: rgba(140, 170, 200, 0.28);
  --text: #eef4fb;
  --muted: #8b9cb0;
  --accent: #2dd4b5;
  --accent-dim: rgba(45, 212, 181, 0.14);
  --accent-2: #4ec4f5;
  --accent-glow: rgba(45, 212, 181, 0.35);
  --warn: #f0b35a;
  --danger: #f07178;
  --ok: #5ed99a;
  --radius: 12px;
  --radius-lg: 18px;
  --font: "Vazirmatn", "Tahoma", sans-serif;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.45);
  --shadow-soft: 0 8px 24px rgba(0, 0, 0, 0.28);
  --sidebar-w: 248px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  min-height: 100vh;
  line-height: 1.65;
  background-color: var(--bg0);
  background-image:
    radial-gradient(ellipse 900px 520px at 85% -8%, rgba(45, 212, 181, 0.16), transparent 55%),
    radial-gradient(ellipse 700px 480px at -5% 40%, rgba(78, 196, 245, 0.1), transparent 50%),
    radial-gradient(ellipse 600px 400px at 60% 110%, rgba(45, 212, 181, 0.07), transparent 50%),
    linear-gradient(165deg, #080d13 0%, #0a1018 45%, #070b10 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(140, 170, 200, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 170, 200, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, #000 20%, transparent 75%);
}

a { color: var(--accent-2); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent); text-decoration: none; }

/* ——— App shell ——— */
.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) 1fr;
  min-height: 100vh;
  position: relative;
  z-index: 1;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding: 1.25rem 1rem 1rem;
  background:
    linear-gradient(180deg, rgba(18, 26, 36, 0.96), rgba(10, 15, 22, 0.98));
  border-left: 1px solid var(--line);
  backdrop-filter: blur(16px);
  animation: slide-in 0.45s var(--ease) both;
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.35rem 0.5rem;
  text-decoration: none;
  color: var(--text);
}

.brand-mark:hover { color: var(--text); }

.brand-glyph {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: #041510;
  background:
    linear-gradient(145deg, #5eead4 0%, #2dd4b5 45%, #14b8a6 100%);
  box-shadow:
    0 0 0 1px rgba(45, 212, 181, 0.35),
    0 8px 20px var(--accent-glow);
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  min-width: 0;
}

.brand-name {
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.brand-tag {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.nav {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  flex: 1;
  overflow-y: auto;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: color 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.nav a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.03);
  transform: translateX(-2px);
}

.nav a.active {
  color: var(--text);
  background: var(--accent-dim);
  border-color: rgba(45, 212, 181, 0.28);
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}

.nav a.active .nav-dot {
  opacity: 1;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent-glow);
}

.userbox {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 0.85rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid var(--line);
}

.userbox-meta {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  min-width: 0;
}

.userbox-name {
  font-weight: 600;
  font-size: 0.9rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.userbox-role {
  font-size: 0.75rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.content-area {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.top-mobile {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(12, 18, 25, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 30;
}

.menu-toggle {
  appearance: none;
  background: var(--bg2);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 1.1rem;
  transition: border-color 0.2s, background 0.2s;
}

.menu-toggle:hover { border-color: var(--accent); }

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 35;
  opacity: 0;
  transition: opacity 0.25s var(--ease);
}

.sidebar-backdrop.show {
  display: block;
  opacity: 1;
}

.main {
  padding: 1.75rem 1.75rem 3rem;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  animation: rise 0.4s var(--ease) both;
}

.main-auth {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem 1.25rem;
  position: relative;
  z-index: 1;
}

/* ——— Typography / page ——— */
.page-head { margin-bottom: 1.5rem; }
.page-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 2.2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.lede { color: var(--muted); margin: 0; font-size: 0.95rem; }

.page h2 {
  font-size: 1.05rem;
  font-weight: 700;
  margin: 1.75rem 0 0.75rem;
  letter-spacing: -0.02em;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.65rem;
}

.section-label::before {
  content: "";
  width: 10px;
  height: 2px;
  border-radius: 2px;
  background: var(--accent);
}

/* ——— Auth / login hero ——— */
.auth-wrap {
  width: min(440px, 100%);
  animation: rise 0.55s var(--ease);
}

.auth-wrap.auth-hero {
  width: min(920px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 0;
  background: rgba(12, 18, 25, 0.72);
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  backdrop-filter: blur(20px);
}

.auth-brand-pane {
  position: relative;
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 1rem;
  min-height: 420px;
  background:
    radial-gradient(ellipse 120% 80% at 20% 0%, rgba(45, 212, 181, 0.28), transparent 55%),
    radial-gradient(ellipse 90% 70% at 100% 80%, rgba(78, 196, 245, 0.18), transparent 50%),
    linear-gradient(160deg, #0e1822 0%, #0a121a 100%);
  overflow: hidden;
}

.auth-brand-pane::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  background-size: 32px 32px;
  opacity: 0.5;
  pointer-events: none;
}

.auth-brand-pane > * { position: relative; z-index: 1; }

.brand-hero {
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1;
  background: linear-gradient(125deg, #fff 15%, #9ff5e4 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: brand-glow 4s ease-in-out infinite alternate;
}

.auth-brand-pane .lede {
  font-size: 1rem;
  max-width: 16rem;
  color: rgba(238, 244, 251, 0.72);
}

.auth-pulse {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
}

.auth-pulse::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent-glow);
  animation: pulse 2s ease-out infinite;
}

.auth-panel {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: none;
}

.auth-panel.standalone {
  background: rgba(12, 18, 25, 0.88);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.auth-panel.wide { width: min(720px, 100%); }

.auth-panel h2 {
  margin: 0 0 0.25rem;
  font-size: 1.25rem;
  font-weight: 700;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(12px); }
  to { opacity: 1; transform: none; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(45, 212, 181, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(45, 212, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(45, 212, 181, 0); }
}

@keyframes brand-glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.08); }
}

/* ——— Forms ——— */
.form-stack { display: flex; flex-direction: column; gap: 0.95rem; margin-top: 1rem; }
.form-stack.narrow { max-width: 520px; }
label { display: flex; flex-direction: column; gap: 0.35rem; font-size: 0.9rem; }
label span { color: var(--muted); font-weight: 500; font-size: 0.84rem; }

input, select, textarea {
  background: rgba(7, 11, 16, 0.75);
  border: 1px solid var(--line-strong);
  color: var(--text);
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font: inherit;
  transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

input:hover, select:hover, textarea:hover {
  border-color: rgba(140, 170, 200, 0.4);
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
  background: rgba(7, 11, 16, 0.95);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0;
  background: rgba(0, 0, 0, 0.15);
}
legend { padding: 0 0.4rem; color: var(--muted); font-weight: 600; }

/* ——— Buttons ——— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  background: var(--bg3);
  color: var(--text);
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0.55rem 1rem;
  font: inherit;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s var(--ease), border-color 0.18s, background 0.18s, box-shadow 0.18s;
}

.btn:hover {
  border-color: rgba(45, 212, 181, 0.45);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: var(--shadow-soft);
  color: var(--text);
}

.btn:active { transform: translateY(0); }

.btn-primary {
  background: linear-gradient(135deg, #1fad94 0%, #2dd4b5 55%, #5eead4 100%);
  border-color: transparent;
  color: #031510;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(45, 212, 181, 0.25);
}

.btn-primary:hover {
  border-color: transparent;
  color: #031510;
  box-shadow: 0 10px 26px rgba(45, 212, 181, 0.35);
}

.btn-ghost {
  background: transparent;
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
  box-shadow: none;
}

.btn-sm { padding: 0.28rem 0.6rem; font-size: 0.82rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.55rem; margin: 1.1rem 0; }
.actions-inline { display: flex; flex-wrap: wrap; gap: 0.35rem; align-items: center; }
.inline { display: inline; }
.inline-details summary { list-style: none; cursor: pointer; }
.inline-details summary::-webkit-details-marker { display: none; }

/* ——— Stats ——— */
.stat-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}

.stat {
  position: relative;
  background:
    linear-gradient(160deg, rgba(24, 36, 51, 0.75), rgba(12, 18, 25, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  overflow: hidden;
  animation: rise 0.5s var(--ease) both;
  transition: border-color 0.25s, transform 0.25s var(--ease), box-shadow 0.25s;
}

.stat::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.55;
}

.stat:hover {
  border-color: rgba(45, 212, 181, 0.35);
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.stat:nth-child(2) { animation-delay: 0.05s; }
.stat:nth-child(3) { animation-delay: 0.1s; }
.stat:nth-child(4) { animation-delay: 0.15s; }

.stat-label { display: block; color: var(--muted); font-size: 0.8rem; font-weight: 500; }
.stat-value {
  display: block;
  font-size: 1.55rem;
  font-weight: 800;
  margin-top: 0.3rem;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
}
.stat-sub { display: block; color: var(--muted); font-size: 0.76rem; margin-top: 0.3rem; }

.stat-accent .stat-value { color: var(--accent); }
.stat-warn .stat-value { color: var(--warn); }
.stat-danger .stat-value { color: var(--danger); }

/* ——— Dashboard charts ——— */
.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.95rem;
  margin-bottom: 1.25rem;
}

.chart-card {
  background:
    linear-gradient(160deg, rgba(24, 36, 51, 0.72), rgba(12, 18, 25, 0.55));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1rem 1.05rem 0.85rem;
  box-shadow: var(--shadow-soft);
  animation: rise 0.5s var(--ease) both;
}

.chart-title {
  margin: 0 0 0.65rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--text);
}

.chart-canvas-wrap {
  position: relative;
  height: 240px;
}

.chart-canvas-wrap.chart-canvas-sm {
  height: 220px;
  max-width: 320px;
  margin-inline: auto;
}

.chart-empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0;
  color: var(--muted);
  font-size: 0.88rem;
  pointer-events: none;
}

.panel-pop {
  min-width: 220px;
  margin-top: 0.45rem;
  padding: 0.75rem;
  background: rgba(10, 15, 22, 0.95);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}

/* ——— Grids / filters / tables ——— */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.grid-2 .span-2,
.grid-filters .span-2 { grid-column: 1 / -1; }

.grid-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.7rem;
  background: rgba(12, 18, 25, 0.55);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.15rem;
  backdrop-filter: blur(8px);
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(12, 18, 25, 0.5);
  box-shadow: var(--shadow-soft);
}

table.data { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
table.data th, table.data td {
  padding: 0.65rem 0.8rem;
  border-bottom: 1px solid var(--line);
  text-align: right;
  white-space: nowrap;
}
table.data th {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  background: rgba(0, 0, 0, 0.28);
  position: sticky;
  top: 0;
}
table.data tbody tr { transition: background 0.15s; }
table.data tr:hover td { background: rgba(45, 212, 181, 0.06); }
table.data tbody tr:last-child td { border-bottom: none; }

/* ——— Alerts / misc ——— */
.alert {
  padding: 0.8rem 1.05rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--line);
  animation: rise 0.35s var(--ease);
}
.alert-error, .alert-danger { background: rgba(240, 113, 120, 0.1); border-color: rgba(240, 113, 120, 0.45); }
.alert-success { background: rgba(94, 217, 154, 0.1); border-color: rgba(94, 217, 154, 0.45); }
.alert-warn { background: rgba(240, 179, 90, 0.1); border-color: rgba(240, 179, 90, 0.45); }

.muted { color: var(--muted); }
.small { font-size: 0.8rem; }
.break { word-break: break-all; }

code {
  font-family: ui-monospace, "Cascadia Code", SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.86em;
  background: rgba(0, 0, 0, 0.25);
  padding: 0.1em 0.35em;
  border-radius: 5px;
}

.code-block {
  background: rgba(7, 11, 16, 0.85);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  overflow: auto;
  max-height: 420px;
  font-size: 0.85rem;
}

.cred-box {
  background: rgba(7, 11, 16, 0.7);
  border: 1px dashed rgba(45, 212, 181, 0.55);
  border-radius: var(--radius);
  padding: 1.1rem;
  margin: 1rem 0;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 1.15rem 0;
}

.detail-grid > div {
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: rgba(12, 18, 25, 0.45);
  transition: border-color 0.2s;
}

.detail-grid > div:hover { border-color: rgba(45, 212, 181, 0.3); }
.detail-grid dt { color: var(--muted); font-size: 0.78rem; font-weight: 500; }
.detail-grid dd { margin: 0.2rem 0 0; font-weight: 600; }

.pager {
  display: flex;
  gap: 1rem;
  align-items: center;
  margin-top: 1.15rem;
  color: var(--muted);
}

.badge {
  display: inline-block;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 600;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.2);
}
.badge-pending { color: var(--warn); border-color: rgba(240, 179, 90, 0.35); }
.badge-processing { color: var(--accent-2); border-color: rgba(78, 196, 245, 0.35); }
.badge-done { color: var(--ok); border-color: rgba(94, 217, 154, 0.35); }
.badge-failed { color: var(--danger); border-color: rgba(240, 113, 120, 0.35); }

.plain-list { list-style: none; padding: 0; margin: 0; }
.plain-list li {
  padding: 0.55rem 0.15rem;
  border-bottom: 1px solid var(--line);
}
.plain-list li:last-child { border-bottom: none; }

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.5rem;
}

/* ——— API docs ——— */
.docs-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin: 0 0 1.5rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(12, 18, 25, 0.5);
}
.docs-toc a {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--muted);
  padding: 0.2rem 0.45rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}
.docs-toc a:hover {
  color: var(--accent);
  background: var(--accent-dim);
}
.docs-section {
  margin-bottom: 1.75rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--line);
}
.docs-section:last-child { border-bottom: none; margin-bottom: 0; }
.docs-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.2rem;
  font-weight: 700;
}
.docs-section h3 {
  margin: 1.1rem 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-2);
}
.docs-olist {
  margin: 0.5rem 0 1rem;
  padding-inline-start: 1.35rem;
}
.docs-olist li { margin: 0.35rem 0; }
.dir-ltr {
  direction: ltr;
  text-align: left;
  unicode-bidi: isolate;
}
.code-block.dir-ltr { white-space: pre; }

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

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 40;
    transform: translateX(110%);
    transition: transform 0.3s var(--ease);
    border-left: none;
    border-right: 1px solid var(--line);
    height: 100vh;
  }

  .sidebar.open { transform: translateX(0); }

  .top-mobile { display: flex; }

  .stat-row, .grid-filters, .detail-grid { grid-template-columns: 1fr 1fr; }
  .chart-grid { grid-template-columns: 1fr; }

  .auth-wrap.auth-hero {
    grid-template-columns: 1fr;
  }

  .auth-brand-pane {
    min-height: 200px;
    padding: 1.75rem 1.5rem;
  }
}

@media (max-width: 600px) {
  .main { padding: 1.15rem 1rem 2.5rem; }
  .stat-row, .grid-filters, .grid-2, .detail-grid { grid-template-columns: 1fr; }
  .brand-hero { font-size: 2.4rem; }
  .auth-panel { padding: 1.5rem 1.25rem; }
}

.check-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding-top: 1.5rem;
}
.check-row input { width: auto; accent-color: var(--accent); }
.saved-searches li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
}
.report-sheet { margin-top: 1rem; }

@media print {
  body {
    background: #fff !important;
    color: #111 !important;
  }
  body::before, .sidebar, .top-mobile, .sidebar-backdrop, .no-print, .userbox, .nav { display: none !important; }
  .app-shell { display: block; }
  .content-area, .main { padding: 0; margin: 0; }
  .report-sheet, .data, .stat { color: #111; }
  .table-wrap { box-shadow: none; border: 1px solid #ccc; }
  a { color: #000; text-decoration: none; }
}
