/* ───────────────────────── Aurora Mailer UI ───────────────────────── */

@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-cyrillic.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Inter';
  src: url('/fonts/inter-latin.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/mono-latin.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'JetBrains Mono';
  src: url('/fonts/mono-cyrillic.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
  unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

:root {
  --bg: #06080f;
  --bg-soft: #0a0e19;
  --panel: rgba(16, 21, 36, 0.72);
  --panel-solid: #0e1321;
  --panel-hi: rgba(24, 31, 52, 0.9);
  --line: rgba(151, 166, 209, 0.12);
  --line-strong: rgba(151, 166, 209, 0.22);
  --text: #e9edf8;
  --muted: #8b95ad;
  --dim: #5f6a83;
  --accent: #7c6cff;
  --accent-2: #34d8f6;
  --accent-soft: rgba(124, 108, 255, 0.14);
  --green: #3ddc97;
  --green-soft: rgba(61, 220, 151, 0.12);
  --amber: #ffc655;
  --amber-soft: rgba(255, 198, 85, 0.12);
  --red: #ff7a90;
  --red-soft: rgba(255, 122, 144, 0.12);
  --cyan: #5ad7ff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --sidebar-w: 258px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, p { margin: 0; }
button { font-family: inherit; }
a { color: var(--accent-2); text-decoration: none; }
::selection { background: rgba(124, 108, 255, 0.35); }

/* scrollbars */
* { scrollbar-width: thin; scrollbar-color: rgba(140, 155, 195, 0.25) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: rgba(140, 155, 195, 0.22); border-radius: 99px; border: 2px solid transparent; background-clip: content-box; }
*::-webkit-scrollbar-thumb:hover { background: rgba(140, 155, 195, 0.4); background-clip: content-box; }

/* ── background ── */
.aurora { position: fixed; inset: 0; z-index: -1; overflow: hidden; background: radial-gradient(120% 90% at 70% -10%, #0d1224 0%, #06080f 55%, #04060b 100%); }
.blob { position: absolute; border-radius: 50%; filter: blur(110px); opacity: 0.55; animation: float 22s ease-in-out infinite alternate; }
.blob.b1 { width: 620px; height: 620px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(104, 88, 255, 0.55), transparent 65%); }
.blob.b2 { width: 560px; height: 560px; right: -180px; top: 6%; background: radial-gradient(circle, rgba(50, 205, 245, 0.32), transparent 65%); animation-delay: -7s; }
.blob.b3 { width: 700px; height: 700px; left: 28%; bottom: -420px; background: radial-gradient(circle, rgba(150, 80, 255, 0.28), transparent 65%); animation-delay: -13s; }
.grid-overlay { position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.022) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.022) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse at 60% 20%, black 0%, transparent 75%); }
@keyframes float { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(30px, 40px, 0) scale(1.08); } }

/* ── layout ── */
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }
.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column;
  padding: 24px 16px 18px; border-right: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(10, 14, 25, 0.86), rgba(7, 10, 18, 0.94));
  backdrop-filter: blur(18px); z-index: 30;
}
.brand { display: flex; align-items: center; gap: 11px; padding: 0 8px 26px; }
.logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(124,108,255,.2), rgba(52,216,246,.08)); border: 1px solid rgba(124, 108, 255, 0.35); box-shadow: 0 8px 24px rgba(83, 70, 220, 0.25); }
.logo svg { width: 26px; height: 26px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; letter-spacing: -0.3px; font-weight: 650; }
.brand-text span { font-size: 11px; letter-spacing: 2.6px; text-transform: uppercase; color: var(--dim); margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 3px; flex: 1; overflow-y: auto; }
.nav-label { font-size: 10px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--dim); padding: 16px 12px 7px; font-weight: 600; }
.nav-item {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 10px 12px; border: 1px solid transparent;
  border-radius: 11px; background: transparent; color: var(--muted); font-size: 13.5px; font-weight: 500;
  cursor: pointer; transition: all 0.18s var(--ease); text-align: left; position: relative;
}
.nav-item .i { width: 18px; height: 18px; opacity: 0.8; }
.nav-item:hover { color: var(--text); background: rgba(255,255,255,0.035); }
.nav-item.active { color: #fff; background: linear-gradient(90deg, rgba(124,108,255,0.18), rgba(124,108,255,0.04)); border-color: rgba(124,108,255,0.22); }
.nav-item.active::before { content: ''; position: absolute; left: -17px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--accent), var(--accent-2)); box-shadow: 0 0 18px rgba(124,108,255,.6); }
.nav-item.active .i { opacity: 1; color: #b9b1ff; }
.nav-badge { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 600; color: var(--muted); background: rgba(255,255,255,0.05); border-radius: 99px; padding: 1px 7px; min-width: 20px; text-align: center; }
.nav-item.active .nav-badge { color: #cfc9ff; background: rgba(124,108,255,.22); }
.nav-dot { margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.nav-dot.on { background: var(--green); box-shadow: 0 0 10px rgba(61,220,151,.8); }

.sidebar-foot { padding-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.health { border: 1px solid var(--line); border-radius: 13px; padding: 11px 13px; background: rgba(255,255,255,0.022); }
.health-top { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; }
.health .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); }
.health .dot.ok { background: var(--green); box-shadow: 0 0 9px rgba(61,220,151,.7); }
.health .dot.warn { background: var(--amber); box-shadow: 0 0 9px rgba(255,198,85,.6); }
.health-sub { font-size: 11px; color: var(--dim); margin-top: 4px; }
.user-chip { display: flex; align-items: center; gap: 10px; border: 1px solid transparent; background: transparent; padding: 8px; border-radius: 12px; cursor: pointer; color: var(--text); transition: background .18s; width: 100%; text-align: left; }
.user-chip:hover { background: rgba(255,255,255,.035); }
.avatar { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 650; font-size: 13px; color: #dcd8ff; background: linear-gradient(145deg, rgba(124,108,255,.3), rgba(52,216,246,.16)); border: 1px solid rgba(124,108,255,.3); text-transform: uppercase; flex-shrink: 0; }
.user-meta { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.user-meta strong { font-size: 12.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.user-meta small { font-size: 10.5px; color: var(--dim); }
.user-chip > .i { width: 16px; height: 16px; margin-left: auto; color: var(--dim); }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; gap: 18px; padding: 22px 34px 14px; position: sticky; top: 0; z-index: 20; background: linear-gradient(180deg, rgba(6,8,15,.92), rgba(6,8,15,.55) 70%, transparent); backdrop-filter: blur(14px); }
.page-head h1 { font-size: 23px; font-weight: 650; letter-spacing: -0.6px; }
.page-head p { font-size: 12.5px; color: var(--dim); margin-top: 3px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.menu-btn { display: none !important; }
.live-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: #b9f5dc; background: rgba(61,220,151,.1); border: 1px solid rgba(61,220,151,.28); border-radius: 99px; padding: 6px 12px; }
.pulse { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(61,220,151,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(61,220,151,.6); } 70% { box-shadow: 0 0 0 9px rgba(61,220,151,0); } 100% { box-shadow: 0 0 0 0 rgba(61,220,151,0); } }

.view { padding: 18px 34px 48px; max-width: 1440px; width: 100%; margin: 0 auto; animation: viewIn .35s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* ── primitives ── */
.i { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line-strong);
  background: rgba(255,255,255,.04); color: var(--text); font-size: 13px; font-weight: 600; padding: 9px 15px;
  border-radius: 11px; cursor: pointer; transition: all .18s var(--ease); white-space: nowrap; height: 38px;
}
.btn:hover { background: rgba(255,255,255,.075); border-color: rgba(151,166,209,.32); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn .i { width: 16px; height: 16px; }
.btn.primary { background: linear-gradient(135deg, #6f5efc, #8f5cff 55%, #5b9dff); border-color: transparent; color: #fff; box-shadow: 0 10px 26px rgba(104, 88, 255, 0.3), inset 0 1px 0 rgba(255,255,255,.22); }
.btn.primary:hover { box-shadow: 0 14px 34px rgba(104, 88, 255, 0.42); filter: brightness(1.06); }
.btn.success { background: linear-gradient(135deg, #18b97a, #2fd394); border-color: transparent; color: #04231a; box-shadow: 0 8px 22px rgba(47,211,148,.22); }
.btn.danger { color: #ffb3bf; border-color: rgba(255,122,144,.3); background: rgba(255,122,144,.08); }
.btn.danger:hover { background: rgba(255,122,144,.14); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); }
.btn.ghost:hover { background: rgba(255,255,255,.05); color: var(--text); }
.btn.sm { height: 32px; padding: 6px 11px; font-size: 12px; border-radius: 9px; }
.btn.block { width: 100%; height: 44px; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; display: inline-grid; place-items: center; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; transition: all .16s; }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.07); }
.icon-btn.danger:hover { color: var(--red); border-color: rgba(255,122,144,.3); background: var(--red-soft); }
.link { background: none; border: 0; color: var(--accent-2); font-size: 12.5px; font-weight: 500; cursor: pointer; padding: 0; }
.link:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.mono { font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; }
.nowrap { white-space: nowrap; }
.tnum { font-variant-numeric: tabular-nums; }

.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(16px); box-shadow: 0 12px 34px rgba(0,0,0,.16); }
.card-pad { padding: 20px 22px; }
.grid { display: grid; gap: 16px; }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.layout-main { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(300px, 1fr); gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.between { justify-content: space-between; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.section-head { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.section-title { font-size: 14.5px; font-weight: 600; letter-spacing: -0.2px; }
.section-sub { font-size: 11.5px; color: var(--dim); }
.section-head .spacer { flex: 1; }

/* ── stats ── */
.stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.success-text { color: #4ff0b0; }
.stat { padding: 17px 18px 15px; border-radius: 16px; position: relative; overflow: hidden; background: linear-gradient(160deg, rgba(22,28,48,.82), rgba(12,16,28,.72)); border: 1px solid var(--line); }
.stat::after { content: ''; position: absolute; inset: 0 0 auto; height: 1px; background: linear-gradient(90deg, transparent, rgba(255,255,255,.14), transparent); }
.stat-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 11.5px; font-weight: 500; }
.stat-top .i { width: 15px; height: 15px; color: var(--dim); }
.stat-top .chip-mini { margin-left: auto; font-size: 10px; padding: 1px 7px; border-radius: 99px; color: var(--dim); background: rgba(255,255,255,.04); }
.stat-value { font-size: 27px; font-weight: 650; letter-spacing: -1px; margin-top: 10px; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-value small { font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-left: 3px; }
.stat-foot { display: flex; align-items: center; gap: 6px; margin-top: 9px; font-size: 11px; color: var(--dim); }
.trend { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; font-size: 11px; }
.trend.up { color: var(--green); }
.trend.down { color: var(--red); }
.stat-accent { position: absolute; right: -24px; bottom: -30px; width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.16), transparent 70%); pointer-events: none; }

/* ── chart ── */
.chart-card { padding: 20px 22px 14px; }
.chart-head { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 6px; }
.chart-title { font-size: 14.5px; font-weight: 600; }
.chart-value { font-size: 24px; font-weight: 650; letter-spacing: -0.8px; margin-top: 3px; font-variant-numeric: tabular-nums; }
.chart-value small { font-size: 11.5px; color: var(--dim); font-weight: 500; letter-spacing: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.seg button { border: 0; background: transparent; color: var(--dim); font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 7px; cursor: pointer; transition: all .15s; }
.seg button.active { background: rgba(124,108,255,.22); color: #d9d5ff; box-shadow: inset 0 0 0 1px rgba(124,108,255,.25); }
.chart-wrap { position: relative; margin-top: 8px; }
.chart-wrap svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart-legend { display: flex; gap: 16px; padding-top: 6px; font-size: 11px; color: var(--dim); }
.chart-legend i { display: inline-block; width: 8px; height: 8px; border-radius: 3px; margin-right: 6px; }
.chart-empty { padding: 38px 0; text-align: center; color: var(--dim); font-size: 12px; }

/* ── tables ── */
.table-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 12.8px; }
.tbl th { text-align: left; font-size: 10.5px; letter-spacing: .7px; text-transform: uppercase; color: var(--dim); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255,255,255,.012); }
.tbl td { padding: 12px 14px; border-bottom: 1px solid rgba(151,166,209,.075); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .14s; }
.tbl tbody tr:hover { background: rgba(255,255,255,.022); }
.tbl tr.clickable { cursor: pointer; }
.cell-main { font-weight: 550; color: var(--text); }
.cell-sub { font-size: 11.5px; color: var(--dim); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 320px; }
.cell-actions { display: flex; gap: 5px; justify-content: flex-end; }
.row-actions { opacity: 0; transition: opacity .15s; }
tr:hover .row-actions { opacity: 1; }
.tbl-empty { padding: 44px 20px; text-align: center; color: var(--dim); }

/* ── badges & status ── */
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 600; padding: 3px 9px; border-radius: 99px; border: 1px solid transparent; white-space: nowrap; letter-spacing: .1px; }
.badge .bdot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.draft { color: #a2abc0; background: rgba(162,171,192,.09); border-color: rgba(162,171,192,.16); }
.badge.scheduled { color: #b3b0ff; background: rgba(124,108,255,.13); border-color: rgba(124,108,255,.25); }
.badge.running { color: #7ff0c0; background: var(--green-soft); border-color: rgba(61,220,151,.25); }
.badge.running .bdot { animation: blink 1.4s infinite; }
.badge.paused { color: #ffd58a; background: var(--amber-soft); border-color: rgba(255,198,85,.25); }
.badge.stopped { color: #c0c7d6; background: rgba(192,199,214,.08); border-color: rgba(192,199,214,.16); }
.badge.done { color: #8fc4ff; background: rgba(90,160,255,.12); border-color: rgba(90,160,255,.22); }
.badge.error { color: #ff9cab; background: var(--red-soft); border-color: rgba(255,122,144,.25); }
.badge.sent { color: #7ff0c0; background: var(--green-soft); }
.badge.skipped { color: #b9c0d0; background: rgba(185,192,208,.08); }
@keyframes blink { 50% { opacity: .25; } }

/* ── progress ── */
.progress { height: 5px; border-radius: 99px; background: rgba(255,255,255,.07); overflow: hidden; position: relative; }
.progress > i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); box-shadow: 0 0 12px rgba(124,108,255,.4); transition: width .5s var(--ease); }
.progress.green > i { background: linear-gradient(90deg, #1cba7d, #4ff0b0); }
.progress-thin { height: 4px; }
.progress-cell { min-width: 120px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 10.5px; color: var(--dim); margin-top: 5px; }

/* ── toolbar / chips ── */
.toolbar { display: flex; align-items: center; gap: 10px; padding: 13px 16px; flex-wrap: wrap; }
.search { position: relative; flex: 1; min-width: 190px; max-width: 320px; }
.search .i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.search input { padding-left: 34px; }
input, select, textarea {
  width: 100%; background: rgba(9,13,23,.72); border: 1px solid var(--line-strong); color: var(--text);
  border-radius: 10px; padding: 9px 12px; font-size: 13px; font-family: inherit; outline: none;
  transition: border-color .15s, box-shadow .15s, background .15s;
}
input:focus, select:focus, textarea:focus { border-color: rgba(124,108,255,.55); box-shadow: 0 0 0 3px rgba(124,108,255,.13); background: rgba(9,13,23,.9); }
input::placeholder, textarea::placeholder { color: #4e5870; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7c869c 50%), linear-gradient(135deg, #7c869c 50%, transparent 50%); background-position: calc(100% - 16px) 50%, calc(100% - 11px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
textarea { resize: vertical; min-height: 90px; line-height: 1.55; }
input[type="checkbox"] { width: 15px; height: 15px; accent-color: var(--accent); padding: 0; border-radius: 4px; }
input[type="datetime-local"] { color-scheme: dark; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { border: 1px solid var(--line); background: rgba(255,255,255,.025); color: var(--muted); font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 99px; cursor: pointer; transition: all .15s; }
.chip:hover { color: var(--text); border-color: var(--line-strong); }
.chip.active { color: #d9d5ff; background: rgba(124,108,255,.16); border-color: rgba(124,108,255,.35); }
.chip .cnt { color: var(--dim); margin-left: 4px; font-size: 10.5px; }
.chip.active .cnt { color: #a9a1e8; }
.tag { display: inline-flex; align-items: center; font-size: 10.5px; padding: 2px 7px; border-radius: 6px; color: #b6aefe; background: rgba(124,108,255,.11); border: 1px solid rgba(124,108,255,.18); margin-right: 4px; }
.tag.gray { color: #a4adc0; background: rgba(255,255,255,.04); border-color: var(--line); }

/* ── empty ── */
.empty { padding: 54px 24px; text-align: center; }
.empty-icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 17px; display: grid; place-items: center; background: linear-gradient(145deg, rgba(124,108,255,.16), rgba(52,216,246,.06)); border: 1px solid rgba(124,108,255,.24); color: #b3aaff; }
.empty-icon .i { width: 25px; height: 25px; }
.empty h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.empty p { font-size: 12.5px; color: var(--dim); max-width: 380px; margin: 0 auto 18px; line-height: 1.6; }

/* ── forms ── */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field > span, .label { font-size: 11.5px; font-weight: 550; color: var(--muted); }
.field .hint { font-size: 10.5px; color: var(--dim); line-height: 1.5; }
.field.inline { flex-direction: row; align-items: center; gap: 10px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
.switch-row { display: flex; align-items: flex-start; gap: 12px; padding: 13px 0; border-bottom: 1px solid rgba(151,166,209,.08); }
.switch-row:last-child { border-bottom: 0; }
.switch-row .txt { flex: 1; }
.switch-row strong { display: block; font-size: 12.5px; font-weight: 550; }
.switch-row small { display: block; font-size: 11px; color: var(--dim); margin-top: 2px; line-height: 1.5; }
.switch { position: relative; width: 38px; height: 22px; flex-shrink: 0; margin-top: 1px; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 2; }
.switch i { position: absolute; inset: 0; border-radius: 99px; background: rgba(255,255,255,.1); border: 1px solid var(--line-strong); transition: all .2s; }
.switch i::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; background: #8b95ad; top: 2px; left: 2px; transition: all .2s var(--ease); }
.switch input:checked + i { background: rgba(124,108,255,.45); border-color: rgba(124,108,255,.6); }
.switch input:checked + i::after { left: 19px; background: #fff; }
.hint-box { display: flex; gap: 10px; padding: 11px 13px; border-radius: 11px; background: rgba(90,160,255,.06); border: 1px solid rgba(90,160,255,.16); font-size: 11.5px; color: #a9bdd8; line-height: 1.55; }
.hint-box .i { width: 16px; height: 16px; color: #7db4ff; margin-top: 1px; }
.hint-box.warn { background: rgba(255,198,85,.06); border-color: rgba(255,198,85,.18); color: #d8c096; }
.hint-box.warn .i { color: var(--amber); }
.form-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 6px; }

/* ── campaign detail ── */
.detail-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; flex-wrap: wrap; }
.back-btn { margin-bottom: 10px; }
.detail-title h2 { font-size: 21px; font-weight: 650; letter-spacing: -.5px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-title p { font-size: 12px; color: var(--dim); margin-top: 4px; }
.detail-actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 16px; }
.kpi { padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,.022); border: 1px solid var(--line); }
.kpi .k-label { font-size: 10.5px; color: var(--dim); text-transform: uppercase; letter-spacing: .7px; font-weight: 600; }
.kpi .k-value { font-size: 21px; font-weight: 650; margin-top: 5px; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.kpi .k-sub { font-size: 10.5px; color: var(--dim); margin-top: 2px; }
.big-progress { padding: 16px 18px; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; }
.big-progress .progress { flex: 1; height: 7px; }
.big-progress .bp-num { font-size: 18px; font-weight: 650; letter-spacing: -.4px; font-variant-numeric: tabular-nums; min-width: 52px; text-align: right; }
.big-progress .bp-meta { font-size: 11px; color: var(--dim); min-width: 110px; }
.console { background: rgba(4,7,13,.66); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius) var(--radius); max-height: 330px; overflow-y: auto; padding: 10px 0; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 11.2px; }
.console-line { display: flex; gap: 10px; padding: 3px 16px; line-height: 1.6; }
.console-line:hover { background: rgba(255,255,255,.018); }
.console-time { color: #4c5670; flex-shrink: 0; }
.console-text { color: #9aa5bb; word-break: break-word; }
.console-line.ok .console-text { color: #8fe3bf; }
.console-line.err .console-text { color: #ff9dac; }
.console-line.warn .console-text { color: #e8c07a; }
.console-empty { color: var(--dim); padding: 18px 16px; font-family: 'Inter', sans-serif; font-size: 12px; }
.preview-frame { width: 100%; height: 320px; border: 0; border-radius: 10px; background: #fff; }
.preview-meta { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--dim); padding: 10px 2px 0; }
.meta-list { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.meta-row { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; padding-bottom: 8px; border-bottom: 1px solid rgba(151,166,209,.07); }
.meta-row:last-child { border-bottom: 0; padding-bottom: 0; }
.meta-row span { color: var(--dim); }
.meta-row b { font-weight: 550; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ── modal ── */
.modal-backdrop { position: fixed; inset: 0; background: rgba(3,5,10,.7); backdrop-filter: blur(8px); z-index: 100; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 20px 30px; overflow-y: auto; animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { width: 100%; max-width: 560px; background: linear-gradient(180deg, #121828, #0b0f1a); border: 1px solid rgba(151,166,209,.16); border-radius: 20px; box-shadow: 0 40px 100px rgba(0,0,0,.65); animation: modalIn .28s var(--ease); margin: auto 0; }
.modal.wide { max-width: 760px; }
.modal.xl { max-width: 1040px; }
@keyframes modalIn { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.modal-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 16.5px; font-weight: 650; letter-spacing: -.3px; }
.modal-head p { font-size: 12px; color: var(--dim); margin-top: 3px; }
.modal-head .icon-btn { margin-left: auto; flex-shrink: 0; }
.modal-body { padding: 20px 24px 6px; max-height: calc(100vh - 230px); overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 14px 24px 20px; border-top: 1px solid var(--line); margin-top: 10px; }
.modal-foot .foot-note { margin-right: auto; font-size: 11px; color: var(--dim); }

/* ── wizard ── */
.steps { display: flex; gap: 6px; padding: 14px 24px 0; }
.step { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--dim); padding-bottom: 10px; border-bottom: 2px solid rgba(151,166,209,.12); }
.step b { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; background: rgba(255,255,255,.06); color: var(--dim); flex-shrink: 0; }
.step.active { color: var(--text); border-color: var(--accent); }
.step.active b { background: rgba(124,108,255,.3); color: #cfc9ff; }
.step.done { color: #9fe6c9; border-color: rgba(61,220,151,.5); }
.step.done b { background: rgba(61,220,151,.18); color: var(--green); }
.wizard-pane { display: none; }
.wizard-pane.active { display: block; animation: viewIn .25s ease; }
.choice-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.choice { position: relative; border: 1px solid var(--line-strong); background: rgba(255,255,255,.02); border-radius: 12px; padding: 13px 14px; cursor: pointer; transition: all .15s; }
.choice:hover { border-color: rgba(124,108,255,.35); background: rgba(124,108,255,.04); }
.choice.active { border-color: rgba(124,108,255,.55); background: rgba(124,108,255,.1); box-shadow: 0 0 0 1px rgba(124,108,255,.2); }
.choice strong { display: block; font-size: 12.5px; font-weight: 600; }
.choice small { display: block; font-size: 10.5px; color: var(--dim); margin-top: 2px; line-height: 1.45; }
.choice input { position: absolute; opacity: 0; }
.summary-box { border: 1px solid rgba(124,108,255,.24); background: linear-gradient(145deg, rgba(124,108,255,.09), rgba(52,216,246,.03)); border-radius: 13px; padding: 15px 16px; margin-bottom: 14px; }
.summary-box .sum-row { display: flex; justify-content: space-between; font-size: 12px; padding: 4px 0; }
.summary-box .sum-row span { color: var(--dim); }
.summary-box .sum-row b { font-weight: 600; }
.summary-box .sum-row.total { border-top: 1px solid rgba(124,108,255,.18); margin-top: 6px; padding-top: 9px; font-size: 13px; }

/* ── console/toast ── */
.toast-root { position: fixed; right: 22px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 9px; align-items: flex-end; pointer-events: none; }
.toast { display: flex; align-items: center; gap: 10px; min-width: 240px; max-width: 380px; padding: 11px 15px; border-radius: 12px; background: rgba(18,24,40,.96); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0,0,0,.5); font-size: 12.5px; animation: toastIn .3s var(--ease); pointer-events: auto; }
.toast.out { animation: toastOut .25s ease forwards; }
.toast .i { width: 17px; height: 17px; }
.toast.ok { border-color: rgba(61,220,151,.3); }
.toast.ok .i { color: var(--green); }
.toast.err { border-color: rgba(255,122,144,.32); }
.toast.err .i { color: var(--red); }
.toast.info .i { color: var(--accent-2); }
@keyframes toastIn { from { opacity: 0; transform: translateX(16px); } }
@keyframes toastOut { to { opacity: 0; transform: translateX(16px); } }

/* ── contacts extras ── */
.bulkbar { display: flex; align-items: center; gap: 9px; padding: 9px 16px; background: rgba(124,108,255,.09); border-bottom: 1px solid rgba(124,108,255,.18); font-size: 12px; color: #cfc9ff; flex-wrap: wrap; }
.bulkbar b { font-weight: 650; }
.pagination { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--dim); }
.pagination .pages { display: flex; gap: 4px; align-items: center; }
.page-btn { width: 28px; height: 28px; border-radius: 8px; border: 1px solid var(--line); background: transparent; color: var(--muted); font-size: 11.5px; cursor: pointer; }
.page-btn:hover { background: rgba(255,255,255,.05); color: var(--text); }
.page-btn.active { background: rgba(124,108,255,.2); border-color: rgba(124,108,255,.35); color: #d9d5ff; }
.contact-email { display: flex; align-items: center; gap: 9px; }
.contact-avatar { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 650; background: linear-gradient(145deg, rgba(124,108,255,.18), rgba(52,216,246,.07)); border: 1px solid var(--line); color: #c1baff; flex-shrink: 0; }
.checks { width: 15px; }
.contact-status { display: flex; align-items: center; gap: 6px; font-size: 11.5px; }
.contact-status .cdot { width: 6px; height: 6px; border-radius: 50%; }
.contact-status.active .cdot { background: var(--green); box-shadow: 0 0 8px rgba(61,220,151,.6); }
.contact-status.unsubscribed .cdot { background: var(--amber); }
.contact-status.bounced .cdot { background: var(--red); }

/* ── templates ── */
.tpl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tpl-card { border: 1px solid var(--line); background: var(--panel); border-radius: 16px; overflow: hidden; cursor: pointer; transition: all .2s var(--ease); position: relative; }
.tpl-card:hover { transform: translateY(-3px); border-color: rgba(124,108,255,.3); box-shadow: 0 18px 40px rgba(0,0,0,.3); }
.tpl-thumb { height: 132px; background: #fff; overflow: hidden; position: relative; border-bottom: 1px solid var(--line); }
.tpl-thumb iframe { width: 200%; height: 264px; border: 0; transform: scale(.5); transform-origin: top left; pointer-events: none; }
.tpl-thumb .tpl-empty { height: 100%; display: grid; place-items: center; color: #9aa3b5; font-size: 12px; background: #f4f5f8; }
.tpl-body { padding: 13px 15px; }
.tpl-body h4 { font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-body p { font-size: 11px; color: var(--dim); margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tpl-actions { display: flex; gap: 5px; margin-top: 11px; }
.tpl-actions .btn { flex: 1; }

/* ── smtp cards ── */
.smtp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
.smtp-card { padding: 17px 18px; border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(160deg, rgba(22,28,48,.7), rgba(12,16,28,.6)); position: relative; overflow: hidden; }
.smtp-card::before { content: ''; position: absolute; inset: 0 auto 0 0; width: 2px; background: linear-gradient(180deg, var(--accent), transparent); opacity: .7; }
.smtp-top { display: flex; align-items: center; gap: 11px; }
.provider { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; font-size: 14px; color: #ded9ff; background: linear-gradient(145deg, rgba(124,108,255,.24), rgba(52,216,246,.1)); border: 1px solid rgba(124,108,255,.25); flex-shrink: 0; }
.smtp-name { font-size: 13.5px; font-weight: 600; }
.smtp-host { font-size: 11px; color: var(--dim); margin-top: 2px; font-family: 'JetBrains Mono', monospace; }
.smtp-badges { margin-left: auto; display: flex; gap: 5px; }
.smtp-meta { display: flex; gap: 18px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(151,166,209,.08); font-size: 11px; color: var(--dim); flex-wrap: wrap; }
.smtp-meta b { color: var(--muted); font-weight: 550; }
.smtp-actions { display: flex; gap: 7px; margin-top: 13px; }
.provider-presets { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 15px; }
.provider-presets button { font-size: 11.5px; padding: 5px 10px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--muted); cursor: pointer; transition: all .15s; }
.provider-presets button:hover { color: var(--text); border-color: rgba(124,108,255,.4); background: rgba(124,108,255,.08); }

/* ── login ── */
.auth-body { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 30px; }
.auth { display: grid; grid-template-columns: 1.05fr .95fr; width: 100%; max-width: 1040px; min-height: 620px; background: rgba(10,14,24,.68); border: 1px solid var(--line); border-radius: 26px; overflow: hidden; box-shadow: 0 50px 120px rgba(0,0,0,.55); backdrop-filter: blur(20px); }
.auth-art { padding: 44px 46px; display: flex; flex-direction: column; background: linear-gradient(150deg, rgba(124,108,255,.13), rgba(52,216,246,.03) 55%, transparent); position: relative; overflow: hidden; }
.auth-art::before { content: ''; position: absolute; width: 420px; height: 420px; right: -160px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(124,108,255,.25), transparent 68%); filter: blur(20px); }
.auth-brand { display: flex; align-items: center; gap: 11px; font-size: 16px; font-weight: 600; letter-spacing: -.2px; }
.auth-brand b { color: #b6aeff; font-weight: 600; }
.auth-art h1 { font-size: 36px; line-height: 1.14; letter-spacing: -1.4px; margin-top: auto; font-weight: 650; }
.auth-art > p { font-size: 13.5px; color: var(--muted); line-height: 1.65; margin-top: 15px; max-width: 380px; }
.auth-points { list-style: none; padding: 0; margin: 24px 0 0; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; color: #b3bdd2; }
.auth-points .tick { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: rgba(61,220,151,.13); color: var(--green); font-size: 9px; margin-right: 8px; border: 1px solid rgba(61,220,151,.22); }
.auth-glow-card { margin-top: 32px; padding: 16px 18px; border-radius: 15px; background: rgba(8,11,20,.45); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.mini-chart { display: flex; align-items: flex-end; gap: 5px; height: 46px; }
.mini-chart span { flex: 1; border-radius: 4px 4px 2px 2px; background: linear-gradient(180deg, rgba(124,108,255,.7), rgba(52,216,246,.25)); opacity: .8; animation: grow 1s var(--ease) both; transform-origin: bottom; }
.mini-chart span:nth-child(2n) { opacity: .55; }
@keyframes grow { from { transform: scaleY(.1); } }
.mini-label { display: flex; align-items: center; gap: 7px; font-size: 10.5px; color: var(--dim); margin-top: 12px; }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 8px rgba(61,220,151,.8); }
.auth-form-wrap { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; border-left: 1px solid var(--line); background: rgba(7,10,18,.45); position: relative; }
.auth-card { width: 100%; max-width: 330px; }
.auth-card-top h2 { font-size: 22px; font-weight: 650; letter-spacing: -.5px; }
.auth-card-top p { font-size: 12.5px; color: var(--dim); margin-top: 6px; margin-bottom: 26px; }
.auth-card .field input { height: 43px; }
.pass-wrap { position: relative; }
.pass-toggle { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); border: 0; background: transparent; color: var(--dim); font-size: 10.5px; font-weight: 600; cursor: pointer; padding: 4px; }
.pass-toggle:hover { color: var(--muted); }
.auth-error { font-size: 11.5px; color: #ff9dac; background: rgba(255,122,144,.08); border: 1px solid rgba(255,122,144,.2); padding: 9px 12px; border-radius: 9px; margin-bottom: 13px; line-height: 1.45; }
.auth-card .btn.primary { margin-top: 4px; }
.auth-foot { display: flex; align-items: center; gap: 7px; justify-content: center; font-size: 10.5px; color: var(--dim); margin-top: 20px; text-align: center; line-height: 1.5; }
.auth-foot .i { width: 13px; height: 13px; color: #5b8f6f; }
.auth-note { position: absolute; bottom: 18px; font-size: 10.5px; color: #3f475b; letter-spacing: .5px; }
.btn.loading { pointer-events: none; opacity: .8; }
.btn.loading span { opacity: .6; }
.spinner { width: 15px; height: 15px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); border-top-color: #fff; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── misc ── */
.divider { height: 1px; background: var(--line); margin: 4px 0 16px; }
.checklist { display: flex; flex-direction: column; gap: 9px; margin-top: 14px; }
.check-item { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid var(--line); border-radius: 11px; background: rgba(255,255,255,.02); cursor: pointer; transition: all .15s; }
.check-item:hover { border-color: rgba(124,108,255,.3); background: rgba(124,108,255,.04); }
.check-item .ci-icon { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: rgba(124,108,255,.12); color: #b3aaff; flex-shrink: 0; }
.check-item .ci-icon .i { width: 14px; height: 14px; }
.check-item .ci-text { flex: 1; }
.check-item .ci-text strong { display: block; font-size: 12.5px; font-weight: 550; }
.check-item .ci-text small { display: block; font-size: 10.5px; color: var(--dim); margin-top: 1px; }
.check-item .done-mark { color: var(--green); font-size: 13px; font-weight: 700; }
.check-item .i.chev { color: var(--dim); width: 15px; height: 15px; }
.banner { display: flex; align-items: center; gap: 12px; padding: 13px 16px; border-radius: 13px; background: linear-gradient(100deg, rgba(124,108,255,.14), rgba(52,216,246,.05)); border: 1px solid rgba(124,108,255,.22); margin-bottom: 18px; }
.banner .bi { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: rgba(124,108,255,.18); color: #c3bcff; flex-shrink: 0; }
.banner .bt { flex: 1; }
.banner .bt strong { display: block; font-size: 12.5px; font-weight: 600; }
.banner .bt small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; }
.settings-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.code-box { background: rgba(4,7,13,.6); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; font-family: 'JetBrains Mono', monospace; font-size: 11px; color: #9fb0c9; white-space: pre-wrap; word-break: break-all; }
.kbd { font-family: 'JetBrains Mono', monospace; font-size: 10px; padding: 1px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px; border-radius: 4px; color: var(--muted); background: rgba(255,255,255,.04); }
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 11px; padding: 8px 0; }
.tl-dot { width: 7px; height: 7px; border-radius: 50%; margin-top: 6px; background: var(--dim); flex-shrink: 0; }
.tl-dot.ok { background: var(--green); }
.tl-dot.err { background: var(--red); }
.tl-dot.warn { background: var(--amber); }
.tl-text { font-size: 11.5px; color: var(--muted); line-height: 1.5; }
.tl-time { font-size: 10px; color: var(--dim); margin-top: 1px; }
.hidden { display: none !important; }

/* ── responsive ── */
@media (max-width: 1240px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .layout-main { grid-template-columns: minmax(0, 1.4fr) minmax(280px, 1fr); }
}
@media (max-width: 1080px) {
  :root { --sidebar-w: 224px; }
  .view, .topbar { padding-left: 22px; padding-right: 22px; }
  .settings-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; width: 270px; transform: translateX(-102%); transition: transform .28s var(--ease); box-shadow: var(--shadow); }
  .app.nav-open .sidebar { transform: none; }
  .app.nav-open::after { content: ''; position: fixed; inset: 0; background: rgba(3,5,10,.6); backdrop-filter: blur(2px); z-index: 25; }
  .menu-btn { display: inline-grid !important; }
  .topbar { padding-top: 14px; }
  .layout-main { grid-template-columns: 1fr; }
  .auth { grid-template-columns: 1fr; min-height: 0; max-width: 440px; }
  .auth-art { display: none; }
  .auth-form-wrap { padding: 42px 34px; border-left: 0; min-height: 480px; }
}
@media (max-width: 640px) {
  .view, .topbar { padding-left: 16px; padding-right: 16px; }
  .topbar { gap: 10px; }
  .page-head h1 { font-size: 19px; }
  .page-head p { display: none; }
  .btn span.hide-sm { display: none; }
  .top-actions .btn.primary { width: 38px; padding: 0; }
  .top-actions .btn.primary span { display: none; }
  .stat-grid { grid-template-columns: 1fr 1fr; gap: 9px; }
  .stat-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .stat-grid.three .stat { padding: 12px 11px 11px; }
  .stat-grid.three .stat-top { font-size: 10px; gap: 5px; }
  .stat-grid.three .stat-top .i { width: 13px; height: 13px; }
  .stat-grid.three .stat-value { font-size: 21px; margin-top: 7px; }
  .stat-grid.three .stat-foot { display: none; }
  .stat { padding: 14px; }
  .stat-value { font-size: 22px; }
  .cols-3, .cols-2 { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .choice-grid { grid-template-columns: 1fr; }
  .detail-actions { width: 100%; margin-left: 0; }
  .big-progress { flex-wrap: wrap; }
  .big-progress .progress { order: 3; flex-basis: 100%; }
  .modal-body { max-height: calc(100vh - 200px); }
  .modal-backdrop { padding: 2vh 10px 20px; }
  .steps { overflow-x: auto; }
  .step span { display: none; }
  .tbl th:nth-child(n+4), .tbl td:nth-child(n+4) { display: none; }
  .auth-body { padding: 12px; }
  .auth-form-wrap { padding: 32px 22px; }
}
