/* ============================================================
   栩澜云拓 · 智能营销系统 网页复刻演示
   Original CSS implementation for the demo. No third-party assets.
   ============================================================ */

:root {
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Hiragino Sans GB", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
  --radius-xs: 8px;
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .14), 0 8px 24px rgba(0, 0, 0, .12);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, .28);
  --shadow-glow: 0 0 0 1px rgba(34, 211, 238, .18), 0 18px 50px rgba(34, 211, 238, .12);
  --sidebar-w: 248px;
  --topbar-h: 66px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --tr: .22s var(--ease);
}

html[data-theme="dark"] {
  --bg: #060d18;
  --bg-soft: #081321;
  --bg-elev: #0b1828;
  --bg-elev-2: #0f1f32;
  --bg-elev-3: #14263b;
  --sidebar: rgba(8, 19, 33, .88);
  --topbar: rgba(8, 19, 33, .78);
  --surface: rgba(13, 28, 45, .78);
  --surface-solid: #0d1c2d;
  --surface-hover: rgba(255, 255, 255, .055);
  --text: #e9f2fb;
  --text-2: #a8bdd2;
  --text-3: #7088a0;
  --line: rgba(151, 182, 211, .14);
  --line-strong: rgba(151, 182, 211, .24);
  --input: rgba(255, 255, 255, .045);
  --input-focus: rgba(34, 211, 238, .08);
  --grid-line: rgba(126, 167, 204, .08);
  --glass: rgba(10, 24, 40, .72);
  --code: rgba(255, 255, 255, .06);
  --shadow-color: rgba(0, 0, 0, .42);
  --chart-grid: rgba(170, 201, 230, .12);
  color-scheme: dark;
}

html[data-theme="light"] {
  --bg: #f3f7fb;
  --bg-soft: #eaf2f9;
  --bg-elev: #ffffff;
  --bg-elev-2: #f7fafd;
  --bg-elev-3: #eef5fb;
  --sidebar: rgba(255, 255, 255, .9);
  --topbar: rgba(255, 255, 255, .82);
  --surface: rgba(255, 255, 255, .86);
  --surface-solid: #ffffff;
  --surface-hover: rgba(11, 54, 88, .045);
  --text: #0d2238;
  --text-2: #4e667d;
  --text-3: #7f94a8;
  --line: rgba(14, 58, 92, .1);
  --line-strong: rgba(14, 58, 92, .18);
  --input: rgba(11, 54, 88, .035);
  --input-focus: rgba(8, 145, 178, .06);
  --grid-line: rgba(14, 58, 92, .055);
  --glass: rgba(255, 255, 255, .8);
  --code: rgba(11, 54, 88, .06);
  --shadow-color: rgba(30, 70, 110, .12);
  --chart-grid: rgba(20, 62, 96, .1);
  color-scheme: light;
}

html[data-accent="cyan"] { --accent: #22d3ee; --accent-2: #2f8cff; --accent-3: #6d5efc; --accent-ink: #06222b; --accent-soft: rgba(34, 211, 238, .12); --accent-line: rgba(34, 211, 238, .34); }
html[data-accent="violet"] { --accent: #a78bfa; --accent-2: #7c6cff; --accent-3: #f472b6; --accent-ink: #1c1231; --accent-soft: rgba(167, 139, 250, .14); --accent-line: rgba(167, 139, 250, .34); }
html[data-accent="emerald"] { --accent: #34d399; --accent-2: #10b981; --accent-3: #22d3ee; --accent-ink: #05231b; --accent-soft: rgba(52, 211, 153, .12); --accent-line: rgba(52, 211, 153, .34); }
html[data-accent="amber"] { --accent: #fbbf24; --accent-2: #f59e0b; --accent-3: #fb7185; --accent-ink: #2a1b03; --accent-soft: rgba(251, 191, 36, .13); --accent-line: rgba(251, 191, 36, .34); }

* { box-sizing: border-box; }
*::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
button { border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p { margin: 0; }
img, svg { display: block; max-width: 100%; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.app-root { height: 100%; }
.icon { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.icon.sm { width: 15px; height: 15px; }
.icon.lg { width: 22px; height: 22px; }
.icon.xl { width: 28px; height: 28px; }
.mono { font-family: var(--mono); }
.muted { color: var(--text-2); }
.dim { color: var(--text-3); }
.tiny { font-size: 11.5px; }
.small { font-size: 12.5px; }
.strong { font-weight: 700; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.hidden { display: none !important; }

/* Scrollbars */
* { scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
*::-webkit-scrollbar { width: 9px; height: 9px; }
*::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
*::-webkit-scrollbar-track { background: transparent; }

/* ============ Common atoms ============ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 15px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--input);
  color: var(--text); font-size: 13px; font-weight: 600; white-space: nowrap;
  transition: background var(--tr), border-color var(--tr), transform var(--tr), color var(--tr);
}
.btn:hover { background: var(--surface-hover); border-color: var(--line-strong); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 8px 24px rgba(34, 211, 238, .18);
}
.btn.primary:hover { filter: brightness(1.06); background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.btn.ghost { background: transparent; }
.btn.ghost:hover { background: var(--surface-hover); }
.btn.danger { color: #fb7185; border-color: rgba(251, 113, 133, .24); background: rgba(251, 113, 133, .08); }
.btn.danger:hover { background: rgba(251, 113, 133, .15); }
.btn.sm { height: 31px; padding: 0 11px; border-radius: 8px; font-size: 12px; gap: 6px; }
.btn.lg { height: 46px; padding: 0 22px; border-radius: 12px; font-size: 14px; }
.btn.icon-only { width: 38px; padding: 0; }
.btn.icon-only.sm { width: 31px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 25px; padding: 0 9px; border-radius: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--text-2);
  background: var(--input); border: 1px solid var(--line);
  white-space: nowrap;
}
.chip.accent { color: var(--accent); border-color: var(--accent-line); background: var(--accent-soft); }
.chip.green { color: #34d399; border-color: rgba(52, 211, 153, .24); background: rgba(52, 211, 153, .09); }
.chip.amber { color: #fbbf24; border-color: rgba(251, 191, 36, .24); background: rgba(251, 191, 36, .09); }
.chip.red { color: #fb7185; border-color: rgba(251, 113, 133, .24); background: rgba(251, 113, 133, .09); }
.chip.violet { color: #c4b5fd; border-color: rgba(167, 139, 250, .24); background: rgba(167, 139, 250, .09); }
.chip.plain { background: transparent; }
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 14%, transparent); }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-1);
  backdrop-filter: blur(18px) saturate(1.1);
}
.card-pad { padding: 20px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.card-title { font-size: 15px; font-weight: 700; letter-spacing: .01em; display: flex; align-items: center; gap: 9px; }
.card-sub { font-size: 12px; color: var(--text-3); margin-top: 3px; }
.card-link { font-size: 12px; color: var(--text-2); display: inline-flex; align-items: center; gap: 4px; }
.card-link:hover { color: var(--accent); }

.field { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.field > label, .label { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.input, .select, .textarea {
  width: 100%; height: 40px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--input); color: var(--text);
  outline: 0; transition: border-color var(--tr), background var(--tr), box-shadow var(--tr);
}
.textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; }
.input::placeholder, .textarea::placeholder { color: var(--text-3); }
.input:hover, .select:hover, .textarea:hover { border-color: var(--line-strong); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); background: var(--input-focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { appearance: none; padding-right: 32px; background-image: linear-gradient(45deg, transparent 50%, var(--text-3) 50%), linear-gradient(135deg, var(--text-3) 50%, transparent 50%); background-position: calc(100% - 16px) 17px, calc(100% - 11px) 17px; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
html[data-theme="dark"] .select option { background: #0d1c2d; color: #e9f2fb; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-error { font-size: 11.5px; color: #fb7185; min-height: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 12.5px; color: var(--text-2); user-select: none; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box { width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-strong); background: var(--input); display: grid; place-items: center; transition: var(--tr); }
.check .box .icon { width: 12px; height: 12px; opacity: 0; transform: scale(.7); transition: var(--tr); }
.check input:checked + .box { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.check input:checked + .box .icon { opacity: 1; transform: scale(1); }

/* ============ Auth ============ */
.auth-shell {
  position: relative; min-height: 100%; height: 100%; overflow: auto;
  display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(420px, .82fr);
  background:
    radial-gradient(1200px 800px at 8% -10%, rgba(34, 211, 238, .23), transparent 58%),
    radial-gradient(1000px 700px at 44% 112%, rgba(99, 102, 241, .25), transparent 60%),
    linear-gradient(135deg, #030a13 0%, #071626 48%, #06111f 100%);
  color: #eaf5ff;
}
.auth-shell::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(rgba(94, 234, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(94, 234, 255, .05) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(circle at 35% 40%, #000 0, transparent 70%);
}
.auth-visual { position: relative; z-index: 1; padding: clamp(32px, 5vw, 72px); display: flex; flex-direction: column; justify-content: space-between; min-height: 700px; }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; }
.brand-mark { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), #6366f1); box-shadow: 0 8px 30px rgba(34, 211, 238, .22); }
.brand-mark svg { width: 23px; height: 23px; stroke: #04121c; stroke-width: 2.4; fill: none; }
.brand-text { line-height: 1.1; }
.brand-text b { font-size: 17px; letter-spacing: .1em; display: block; }
.brand-text span { font-size: 9px; letter-spacing: .26em; color: #7cd9eb; text-transform: uppercase; }
.auth-hero { max-width: 640px; margin: clamp(28px, 6vh, 66px) 0 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 11px; letter-spacing: .18em; color: #8de9f9; text-transform: uppercase; padding: 6px 11px; border: 1px solid rgba(34, 211, 238, .25); background: rgba(34, 211, 238, .06); border-radius: 99px; }
.eyebrow .dot { width: 5px; height: 5px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .12); }
.auth-hero h1 { font-size: clamp(40px, 4.2vw, 64px); line-height: 1.08; letter-spacing: -.035em; margin: 20px 0 18px; font-weight: 800; }
.auth-hero h1 em { font-style: normal; background: linear-gradient(90deg, #67e8f9, #7dd3fc 42%, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-hero p { color: #9ab4c9; font-size: 15px; line-height: 1.9; max-width: 480px; }
.auth-stats { display: flex; gap: 34px; margin-top: 32px; }
.auth-stat b { display: block; font-size: 23px; letter-spacing: -.02em; }
.auth-stat span { font-size: 11.5px; color: #7f9cb3; }
.auth-proof { display: flex; align-items: center; gap: 12px; color: #7f9cb3; font-size: 11.5px; margin-top: 28px; }
.avatars { display: flex; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; font-weight: 700; border: 2px solid #071626; background: linear-gradient(135deg, #164e63, #312e81); color: #a5f3fc; margin-left: -7px; }
.avatar:first-child { margin-left: 0; }

.auth-preview { position: relative; margin-top: 36px; max-width: 620px; }
.preview-window { border: 1px solid rgba(125, 211, 252, .18); border-radius: 18px; background: linear-gradient(160deg, rgba(12, 32, 52, .82), rgba(6, 18, 30, .9)); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .06); overflow: hidden; }
.preview-bar { height: 36px; display: flex; align-items: center; gap: 6px; padding: 0 13px; border-bottom: 1px solid rgba(125, 211, 252, .1); }
.preview-bar i { width: 7px; height: 7px; border-radius: 50%; background: #334155; }
.preview-bar i:nth-child(1) { background: #fb7185; }
.preview-bar i:nth-child(2) { background: #fbbf24; }
.preview-bar i:nth-child(3) { background: #34d399; }
.preview-bar span { margin-left: 8px; font-size: 9px; letter-spacing: .14em; color: #56748b; text-transform: uppercase; }
.preview-body { display: grid; grid-template-columns: 116px 1fr; min-height: 220px; }
.preview-side { border-right: 1px solid rgba(125, 211, 252, .08); padding: 14px 10px; display: flex; flex-direction: column; gap: 7px; }
.preview-side span { height: 23px; border-radius: 6px; background: rgba(255, 255, 255, .035); }
.preview-side span.on { background: linear-gradient(90deg, rgba(34, 211, 238, .22), rgba(34, 211, 238, .03)); border-left: 2px solid #22d3ee; }
.preview-main { padding: 16px; }
.preview-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.preview-kpi { background: rgba(255, 255, 255, .035); border: 1px solid rgba(255, 255, 255, .05); border-radius: 9px; padding: 9px 10px; }
.preview-kpi small { font-size: 8px; color: #6f8ca1; display: block; letter-spacing: .08em; }
.preview-kpi b { font-size: 16px; letter-spacing: -.02em; }
.preview-kpi b i { font-style: normal; font-size: 8px; color: #34d399; margin-left: 4px; }
.preview-chart { height: 95px; margin-top: 12px; border-radius: 9px; border: 1px solid rgba(255, 255, 255, .05); background: linear-gradient(180deg, rgba(34, 211, 238, .06), transparent); overflow: hidden; }
.preview-chart svg { width: 100%; height: 100%; }

.auth-panel { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; padding: 36px clamp(26px, 4vw, 64px); min-height: 700px; }
.auth-panel::before { content: ""; position: absolute; inset: 26px 0 26px 0; border-left: 1px solid rgba(125, 211, 252, .09); background: linear-gradient(180deg, rgba(3, 10, 18, .18), rgba(3, 10, 18, .42)); backdrop-filter: blur(8px); }
.auth-card { position: relative; width: min(420px, 100%); padding: 34px; border-radius: 22px; background: rgba(7, 20, 34, .64); border: 1px solid rgba(125, 211, 252, .15); box-shadow: 0 30px 80px rgba(0, 0, 0, .45), inset 0 1px 0 rgba(255, 255, 255, .05); animation: authIn .55s var(--ease) both; }
@keyframes authIn { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
.auth-card h2 { font-size: 26px; letter-spacing: -.02em; }
.auth-card .auth-sub { color: #89a5ba; font-size: 12.5px; margin: 5px 0 24px; }
.auth-field { margin-bottom: 13px; }
.auth-input { position: relative; }
.auth-input .icon { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: #5f8097; pointer-events: none; }
.auth-input .input { height: 46px; padding-left: 41px; background: rgba(4, 14, 24, .5); border-color: rgba(125, 211, 252, .14); color: #eaf5ff; border-radius: 11px; }
.auth-input .input:focus { border-color: #22d3ee; box-shadow: 0 0 0 3px rgba(34, 211, 238, .1); }
.auth-input .input::placeholder { color: #577287; }
.auth-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 18px; }
.auth-link { color: #67e8f9; font-size: 12px; }
.auth-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-card .check { color: #89a5ba; }
.auth-card .check .box { border-color: rgba(125, 211, 252, .25); background: rgba(4, 14, 24, .5); }
.auth-card .btn.primary { width: 100%; height: 47px; border-radius: 11px; font-size: 14px; letter-spacing: .03em; background: linear-gradient(135deg, #22d3ee, #2f8cff); color: #03131d; box-shadow: 0 12px 30px rgba(34, 211, 238, .18); }
.auth-card .btn.primary:hover { filter: brightness(1.05); }
.auth-foot { text-align: center; margin-top: 18px; color: #718da2; font-size: 12px; }
.auth-foot a { color: #67e8f9; }
.auth-divider { display: flex; align-items: center; gap: 10px; color: #4e687c; font-size: 10px; letter-spacing: .12em; margin: 20px 0 14px; }
.auth-divider::before, .auth-divider::after { content: ""; height: 1px; flex: 1; background: rgba(125, 211, 252, .1); }
.demo-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 11px; border: 1px dashed rgba(125, 211, 252, .18); border-radius: 9px; color: #7d9ab0; font-size: 11px; }
.demo-line code { color: #a5f3fc; font-family: var(--mono); font-size: 10.5px; }
.demo-line button { color: #67e8f9; font-size: 11px; font-weight: 700; }
.captcha-row { display: grid; grid-template-columns: 1fr 118px; gap: 9px; }
.captcha {
  position: relative; height: 46px; border-radius: 11px; overflow: hidden; cursor: pointer;
  border: 1px solid rgba(125, 211, 252, .14); background: rgba(4, 14, 24, .5);
  display: flex; align-items: center; justify-content: center; gap: 2px;
}
.captcha::before { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, transparent 0 8px, rgba(34, 211, 238, .06) 8px 9px); }
.captcha span { position: relative; font-family: var(--mono); font-size: 19px; font-weight: 800; letter-spacing: 3px; color: #7dd3fc; text-shadow: 0 1px 0 rgba(0, 0, 0, .4); }
.captcha span:nth-child(2n) { transform: rotate(-8deg) translateY(-1px); color: #a5b4fc; }
.captcha span:nth-child(3n) { transform: rotate(7deg) translateY(1px); color: #67e8f9; }
.captcha small { position: absolute; right: 6px; bottom: 3px; font-size: 8px; color: #4c6b80; letter-spacing: .04em; }
.captcha:active { transform: scale(.995); }

/* Register / slider */
.slider-verify { position: relative; height: 42px; border-radius: 10px; border: 1px solid rgba(125, 211, 252, .17); background: rgba(4, 14, 24, .5); overflow: hidden; user-select: none; touch-action: none; }
.slider-verify .fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, rgba(34, 211, 238, .2), rgba(47, 140, 255, .12)); border-right: 1px solid rgba(34, 211, 238, .35); }
.slider-verify .text { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 11.5px; color: #6f8ca1; letter-spacing: .04em; pointer-events: none; }
.slider-verify .thumb { position: absolute; top: 4px; left: 4px; width: 48px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: linear-gradient(135deg, #22d3ee, #2f8cff); color: #04131d; cursor: grab; box-shadow: 0 5px 16px rgba(34, 211, 238, .25); transition: background .2s; }
.slider-verify .thumb:active { cursor: grabbing; }
.slider-verify.done { border-color: rgba(52, 211, 153, .35); }
.slider-verify.done .fill { width: 100% !important; background: rgba(52, 211, 153, .12); }
.slider-verify.done .thumb { background: #34d399; }
.slider-verify.done .text { color: #6ee7b7; }
.auth-note { font-size: 10.5px; color: #577287; line-height: 1.7; margin-top: 15px; text-align: center; }

/* ============ App shell ============ */
.app-shell {
  display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); grid-template-rows: var(--topbar-h) minmax(0, 1fr);
  height: 100%; background:
    radial-gradient(900px 500px at 88% -8%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 62%),
    radial-gradient(800px 600px at 10% 110%, color-mix(in srgb, var(--accent-3) 7%, transparent), transparent 60%),
    var(--bg);
  position: relative;
}
.app-shell::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--grid-line) 1px, transparent 1px), linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 60px 60px; mask-image: radial-gradient(circle at 72% 10%, #000, transparent 72%);
}
.topbar {
  grid-column: 1 / -1; grid-row: 1; display: flex; align-items: center; gap: 18px;
  padding: 0 20px 0 18px; border-bottom: 1px solid var(--line);
  background: var(--topbar); backdrop-filter: blur(20px) saturate(1.15);
  position: relative; z-index: 30;
}
.topbar .brand { flex: 0 0 auto; }
.topbar .brand-mark { width: 33px; height: 33px; border-radius: 9px; }
.topbar .brand-mark svg { width: 20px; height: 20px; }
.topbar .brand-text b { font-size: 14.5px; letter-spacing: .08em; }
.topbar .brand-text span { font-size: 8px; }
.top-search { position: relative; flex: 1; max-width: 440px; margin-left: 10px; }
.top-search .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 16px; height: 16px; }
.top-search input { width: 100%; height: 38px; padding: 0 46px 0 37px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); color: var(--text); outline: 0; }
.top-search input:focus { border-color: var(--accent); background: var(--input-focus); box-shadow: 0 0 0 3px var(--accent-soft); }
.top-search kbd { position: absolute; right: 9px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: 10px; color: var(--text-3); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; background: var(--bg-elev); }
.search-pop { position: absolute; left: 0; right: 0; top: calc(100% + 8px); border: 1px solid var(--line-strong); border-radius: 12px; background: var(--bg-elev); box-shadow: var(--shadow-2); padding: 6px; z-index: 80; max-height: 360px; overflow: auto; }
.search-pop .empty { padding: 16px 12px; color: var(--text-3); font-size: 12px; }
.search-result { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; text-align: left; color: var(--text-2); }
.search-result:hover { background: var(--surface-hover); color: var(--text); }
.search-result .icon { color: var(--accent); }
.search-result b { font-size: 12.5px; font-weight: 600; display: block; color: var(--text); }
.search-result small { font-size: 10.5px; color: var(--text-3); display: block; }
.top-actions { display: flex; align-items: center; gap: 5px; margin-left: auto; }
.top-btn { position: relative; width: 37px; height: 37px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); transition: var(--tr); }
.top-btn:hover { background: var(--surface-hover); color: var(--text); }
.top-btn .badge { position: absolute; top: 7px; right: 7px; min-width: 6px; height: 6px; border-radius: 50%; background: #fb7185; box-shadow: 0 0 0 2px var(--bg); }
.top-sep { width: 1px; height: 22px; background: var(--line); margin: 0 5px; }
.user-menu { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 4px; border-radius: 10px; transition: var(--tr); }
.user-menu:hover { background: var(--surface-hover); }
.user-avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #05202a; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.user-meta { line-height: 1.2; text-align: left; }
.user-meta b { display: block; font-size: 12px; font-weight: 600; }
.user-meta span { display: block; font-size: 9.5px; color: var(--text-3); }
.user-menu > .icon { width: 13px; height: 13px; color: var(--text-3); }

.sidebar { grid-column: 1; grid-row: 2; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--sidebar); backdrop-filter: blur(20px); position: relative; z-index: 20; }
.side-profile { margin: 14px 12px 8px; padding: 13px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 9%, transparent), transparent 65%); }
.side-profile-top { display: flex; align-items: center; gap: 10px; }
.side-profile .user-avatar { width: 36px; height: 36px; border-radius: 10px; }
.side-profile b { display: block; font-size: 12.5px; }
.side-profile span { display: block; font-size: 10px; color: var(--text-3); }
.side-profile .quota { margin-top: 11px; }
.quota-line { display: flex; justify-content: space-between; font-size: 10px; color: var(--text-3); margin-bottom: 5px; }
.quota-bar { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; }
.quota-bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.side-nav { flex: 1; overflow: auto; padding: 4px 10px 16px; }
.nav-group { margin-top: 15px; }
.nav-group:first-child { margin-top: 4px; }
.nav-label { font-size: 9.5px; letter-spacing: .17em; color: var(--text-3); padding: 0 10px 6px; text-transform: uppercase; font-weight: 700; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 39px; padding: 0 10px; border-radius: 9px; color: var(--text-2); font-size: 12.5px; font-weight: 500; margin-bottom: 2px; position: relative; transition: var(--tr); }
.nav-item .icon { width: 17px; height: 17px; color: var(--text-3); transition: var(--tr); }
.nav-item:hover { background: var(--surface-hover); color: var(--text); }
.nav-item:hover .icon { color: var(--text-2); }
.nav-item.active { background: linear-gradient(90deg, var(--accent-soft), transparent); color: var(--text); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2.5px; border-radius: 4px; background: var(--accent); box-shadow: 0 0 12px var(--accent); }
.nav-item.active .icon { color: var(--accent); }
.nav-item .nav-badge { margin-left: auto; min-width: 18px; height: 17px; padding: 0 5px; border-radius: 5px; display: grid; place-items: center; font-size: 9.5px; font-weight: 700; color: var(--accent); background: var(--accent-soft); }
.side-foot { padding: 10px 14px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; font-size: 10px; color: var(--text-3); }
.side-foot .status { display: flex; align-items: center; gap: 6px; }
.side-foot .status i { width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 3px rgba(52, 211, 153, .1); }

.main { grid-column: 2; grid-row: 2; min-width: 0; min-height: 0; overflow: auto; position: relative; }
.main-inner { max-width: 1500px; margin: 0 auto; padding: 25px 28px 46px; }
.page { animation: pageIn .3s var(--ease) both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.page-head h1 { font-size: 23px; line-height: 1.2; letter-spacing: -.02em; font-weight: 750; }
.page-head p { margin-top: 4px; font-size: 12px; color: var(--text-3); }
.page-head-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: var(--text-3); margin-bottom: 8px; }
.breadcrumb .icon { width: 11px; height: 11px; }
.page-banner { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 17px 20px; border-radius: var(--radius); border: 1px solid var(--accent-line); background: linear-gradient(100deg, var(--accent-soft), color-mix(in srgb, var(--accent-3) 6%, transparent) 55%, transparent); margin-bottom: 18px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -40px; top: -90px; width: 240px; height: 240px; border-radius: 50%; border: 1px solid var(--accent-line); opacity: .35; }
.page-banner .icon.xl { color: var(--accent); }
.page-banner b { font-size: 13px; display: block; }
.page-banner span { font-size: 11.5px; color: var(--text-2); display: block; margin-top: 2px; }
.banner-inner { display: flex; align-items: center; gap: 13px; }

/* ============ Dashboard ============ */
.hero { display: flex; justify-content: space-between; gap: 20px; padding: 22px 24px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 11%, transparent), transparent 40%), var(--surface); box-shadow: var(--shadow-1); position: relative; overflow: hidden; margin-bottom: 18px; }
.hero::before { content: ""; position: absolute; right: 4%; top: -90px; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, var(--accent-soft), transparent 68%); pointer-events: none; }
.hero::after { content: ""; position: absolute; right: 0; bottom: 0; width: 46%; height: 100%; opacity: .35; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 22px 22px; mask-image: linear-gradient(90deg, transparent, #000); pointer-events: none; }
.hero h1 { font-size: 24px; letter-spacing: -.02em; }
.hero p { color: var(--text-2); font-size: 12.5px; margin-top: 5px; }
.hero-actions { display: flex; align-items: center; gap: 8px; position: relative; z-index: 2; flex-wrap: wrap; justify-content: flex-end; }
.hero-meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.hero-meta .chip { background: color-mix(in srgb, var(--bg) 35%, transparent); }
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; margin-bottom: 16px; }
.kpi { padding: 17px 17px 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); position: relative; overflow: hidden; transition: transform var(--tr), border-color var(--tr), box-shadow var(--tr); }
.kpi:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: var(--shadow-1); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { font-size: 11.5px; color: var(--text-2); display: flex; align-items: center; gap: 7px; }
.kpi-icon { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.kpi-icon .icon { width: 16px; height: 16px; }
.kpi-value { font-size: 27px; letter-spacing: -.035em; font-weight: 750; line-height: 1.25; margin-top: 9px; }
.kpi-value small { font-size: 12px; font-weight: 500; color: var(--text-3); margin-left: 3px; letter-spacing: 0; }
.kpi-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 10.5px; color: var(--text-3); }
.delta { display: inline-flex; align-items: center; gap: 3px; font-weight: 700; font-size: 10.5px; }
.delta.up { color: #34d399; }
.delta.down { color: #fb7185; }
.spark { width: 64px; height: 24px; opacity: .8; }
.grid-2 { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(300px, 1fr); gap: 14px; margin-bottom: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.grid-2-eq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.chart-wrap { height: 250px; position: relative; }
.chart-wrap svg { width: 100%; height: 100%; overflow: visible; }
.chart-legend { display: flex; align-items: center; gap: 14px; font-size: 10.5px; color: var(--text-3); flex-wrap: wrap; }
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-item i { width: 8px; height: 8px; border-radius: 3px; background: var(--accent); }
.seg { display: inline-flex; padding: 3px; border-radius: 8px; background: var(--input); border: 1px solid var(--line); }
.seg button { height: 25px; padding: 0 9px; border-radius: 6px; font-size: 10.5px; color: var(--text-3); font-weight: 600; }
.seg button.on { background: var(--bg-elev-3); color: var(--text); box-shadow: 0 1px 3px var(--shadow-color); }
.todo { display: flex; flex-direction: column; gap: 2px; }
.todo-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 8px; border-radius: 8px; transition: var(--tr); }
.todo-item:hover { background: var(--surface-hover); }
.todo-check { width: 17px; height: 17px; border-radius: 5px; border: 1px solid var(--line-strong); margin-top: 2px; flex: 0 0 auto; display: grid; place-items: center; color: transparent; }
.todo-check .icon { width: 11px; height: 11px; }
.todo-item.done .todo-check { background: #34d399; border-color: #34d399; color: #06251b; }
.todo-item.done .todo-text { color: var(--text-3); text-decoration: line-through; }
.todo-text { font-size: 12px; line-height: 1.45; }
.todo-sub { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.quick-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.quick { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--input); text-align: left; transition: var(--tr); }
.quick:hover { border-color: var(--accent-line); background: var(--accent-soft); transform: translateY(-1px); }
.quick .icon { color: var(--accent); }
.quick b { font-size: 11.5px; font-weight: 600; }
.quick span { font-size: 9.5px; color: var(--text-3); }
.donut-wrap { display: flex; align-items: center; gap: 18px; }
.donut { width: 130px; height: 130px; flex: 0 0 auto; position: relative; }
.donut svg { transform: rotate(-90deg); }
.donut-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.donut-center b { font-size: 19px; display: block; letter-spacing: -.03em; }
.donut-center span { font-size: 9px; color: var(--text-3); }
.donut-legend { flex: 1; display: flex; flex-direction: column; gap: 9px; }
.donut-legend-row { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--text-2); }
.donut-legend-row i { width: 7px; height: 7px; border-radius: 2px; flex: 0 0 auto; }
.donut-legend-row b { margin-left: auto; font-size: 10.5px; color: var(--text); }
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.feed-item:last-child { border-bottom: 0; }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 6px; flex: 0 0 auto; box-shadow: 0 0 0 3px var(--accent-soft); }
.feed-body { min-width: 0; }
.feed-body b { font-size: 11.5px; font-weight: 600; }
.feed-body p { font-size: 10.5px; color: var(--text-3); margin-top: 1px; }
.feed-time { margin-left: auto; font-size: 9.5px; color: var(--text-3); white-space: nowrap; }
.ad-strip { display: flex; align-items: center; gap: 14px; padding: 11px 14px; border-radius: 11px; border: 1px solid var(--line); background: var(--input); margin-bottom: 16px; }
.ad-strip .tag { font-size: 9px; letter-spacing: .1em; padding: 3px 6px; border-radius: 4px; background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.ad-strip b { font-size: 11.5px; }
.ad-strip span { font-size: 10.5px; color: var(--text-3); }
.ad-strip .btn { margin-left: auto; }

/* ============ Tables / list pages ============ */
.stat-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 15px; }
.stat-mini { padding: 13px 15px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); }
.stat-mini span { font-size: 10px; color: var(--text-3); }
.stat-mini b { display: block; font-size: 19px; letter-spacing: -.02em; margin-top: 2px; }
.toolbar { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 13px; }
.toolbar .search { position: relative; flex: 1; min-width: 190px; max-width: 320px; }
.toolbar .search .icon { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--text-3); }
.toolbar .search input { padding-left: 34px; height: 36px; }
.toolbar .select { width: auto; min-width: 116px; height: 36px; font-size: 12px; }
.toolbar .btn { height: 36px; }
.toolbar .spacer { flex: 1; }
.table-wrap { overflow: auto; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; min-width: 760px; }
table.data th { text-align: left; font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); font-weight: 700; padding: 11px 14px; background: var(--bg-elev-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
table.data td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--text-2); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background var(--tr); cursor: pointer; }
table.data tbody tr:hover { background: var(--surface-hover); }
.cell-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.mini-avatar { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-size: 10px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); flex: 0 0 auto; }
.cell-main b { display: block; color: var(--text); font-size: 12px; font-weight: 600; }
.cell-main span { display: block; font-size: 9.5px; color: var(--text-3); }
.row-actions { display: flex; align-items: center; gap: 2px; opacity: .6; }
tr:hover .row-actions { opacity: 1; }
.row-actions button { width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center; color: var(--text-3); }
.row-actions button:hover { background: var(--surface-hover); color: var(--text); }
.table-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-top: 1px solid var(--line); font-size: 10.5px; color: var(--text-3); }
.pager { display: flex; align-items: center; gap: 4px; }
.pager button { min-width: 27px; height: 27px; padding: 0 7px; border-radius: 6px; font-size: 10.5px; color: var(--text-2); }
.pager button:hover { background: var(--surface-hover); }
.pager button.on { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.pager button[disabled] { opacity: .35; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--text-3); }
.empty-state .icon { width: 34px; height: 34px; margin: 0 auto 12px; color: var(--text-3); opacity: .55; }
.empty-state b { display: block; color: var(--text-2); font-size: 13px; margin-bottom: 4px; }
.empty-state p { font-size: 11px; }

/* ============ Drawer / Modal ============ */
.overlay { position: fixed; inset: 0; background: rgba(2, 8, 15, .56); backdrop-filter: blur(3px); z-index: 100; animation: fadeIn .18s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); background: var(--bg-elev); border-left: 1px solid var(--line-strong); z-index: 101; display: flex; flex-direction: column; box-shadow: -30px 0 80px rgba(0, 0, 0, .38); animation: drawerIn .26s var(--ease) both; }
@keyframes drawerIn { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 20px 16px; border-bottom: 1px solid var(--line); }
.drawer-head h3 { font-size: 17px; }
.drawer-head p { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.drawer-body { padding: 20px; overflow: auto; flex: 1; }
.drawer-foot { padding: 13px 20px; border-top: 1px solid var(--line); display: flex; gap: 8px; justify-content: flex-end; background: var(--bg-elev-2); }
.modal { position: fixed; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(520px, calc(100% - 32px)); max-height: calc(100vh - 48px); z-index: 101; background: var(--bg-elev); border: 1px solid var(--line-strong); border-radius: 17px; box-shadow: var(--shadow-2); display: flex; flex-direction: column; animation: modalIn .22s var(--ease) both; }
.modal.wide { width: min(760px, calc(100% - 32px)); }
.modal.slim { width: min(410px, calc(100% - 32px)); }
@keyframes modalIn { from { opacity: 0; transform: translate(-50%, -48%) scale(.98); } to { opacity: 1; transform: translate(-50%, -50%) scale(1); } }
.modal-head { padding: 19px 21px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-head h3 { font-size: 16px; }
.modal-head p { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.modal-body { padding: 19px 21px; overflow: auto; }
.modal-foot { padding: 13px 21px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; background: var(--bg-elev-2); border-radius: 0 0 17px 17px; }
.close-btn { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; color: var(--text-3); }
.close-btn:hover { background: var(--surface-hover); color: var(--text); }
.confirm-body { display: flex; gap: 13px; align-items: flex-start; }
.confirm-icon { width: 38px; height: 38px; border-radius: 10px; background: rgba(251, 113, 133, .1); color: #fb7185; display: grid; place-items: center; flex: 0 0 auto; }
.confirm-icon.warn { background: rgba(251, 191, 36, .1); color: #fbbf24; }
.confirm-copy b { display: block; font-size: 13px; margin-bottom: 4px; }
.confirm-copy p { font-size: 11.5px; color: var(--text-2); line-height: 1.65; }

/* Toast */
.toast-root { position: fixed; right: 20px; bottom: 22px; z-index: 200; display: flex; flex-direction: column; gap: 8px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; align-items: flex-start; gap: 10px; min-width: 250px; max-width: 390px; padding: 11px 13px; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--bg-elev-3); box-shadow: var(--shadow-2); animation: toastIn .25s var(--ease) both; }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.toast.out { animation: toastOut .2s ease forwards; }
@keyframes toastOut { to { opacity: 0; transform: translateY(5px); } }
.toast .t-icon { width: 21px; height: 21px; border-radius: 50%; display: grid; place-items: center; flex: 0 0 auto; background: var(--accent-soft); color: var(--accent); }
.toast.error .t-icon { background: rgba(251, 113, 133, .12); color: #fb7185; }
.toast.warn .t-icon { background: rgba(251, 191, 36, .12); color: #fbbf24; }
.toast b { display: block; font-size: 11.5px; margin-bottom: 1px; }
.toast p { font-size: 10.5px; color: var(--text-2); }

/* ============ Leads / Calendar / Cards ============ */
.kanban { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; }
.kanban-col { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); min-height: 260px; }
.kanban-head { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.kanban-head b { font-size: 11.5px; }
.kanban-head .count { margin-left: auto; font-size: 9.5px; color: var(--text-3); background: var(--input); border: 1px solid var(--line); border-radius: 5px; padding: 0 6px; }
.kanban-list { padding: 9px; display: flex; flex-direction: column; gap: 8px; min-height: 200px; }
.kanban-card { padding: 11px; border-radius: 9px; border: 1px solid var(--line); background: var(--bg-elev-2); cursor: grab; transition: var(--tr); }
.kanban-card:hover { border-color: var(--accent-line); transform: translateY(-1px); }
.kanban-card.dragging { opacity: .4; }
.kanban-card b { font-size: 11.5px; display: block; }
.kanban-card p { font-size: 10px; color: var(--text-3); margin-top: 4px; }
.kanban-card .meta { display: flex; align-items: center; justify-content: space-between; margin-top: 8px; }
.kanban-card .tagline { display: flex; gap: 4px; }
.kanban-card .owner { font-size: 9px; color: var(--text-3); }
.kanban-empty { border: 1px dashed var(--line); border-radius: 8px; padding: 15px 8px; text-align: center; color: var(--text-3); font-size: 10px; }
.drop-over { border-color: var(--accent-line) !important; background: var(--accent-soft) !important; }

.calendar { border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--bg-elev-2); border-bottom: 1px solid var(--line); }
.cal-head span { padding: 8px; font-size: 9.5px; text-align: center; color: var(--text-3); font-weight: 700; letter-spacing: .06em; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); }
.cal-cell { min-height: 92px; padding: 7px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: 10px; color: var(--text-2); position: relative; }
.cal-cell:nth-child(7n) { border-right: 0; }
.cal-cell:nth-last-child(-n+7) { border-bottom: 0; }
.cal-cell.dim { color: var(--text-3); opacity: .5; }
.cal-cell.today { background: var(--accent-soft); }
.cal-cell .day { font-size: 10px; font-weight: 700; }
.cal-event { margin-top: 4px; font-size: 8.5px; line-height: 1.35; padding: 2px 4px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); border-left: 2px solid var(--accent); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-event.violet { background: rgba(167, 139, 250, .1); color: #c4b5fd; border-color: #a78bfa; }
.cal-event.amber { background: rgba(251, 191, 36, .1); color: #fbbf24; border-color: #fbbf24; }

.asset-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.asset { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow: hidden; transition: var(--tr); }
.asset:hover { transform: translateY(-2px); border-color: var(--line-strong); }
.asset-thumb { height: 118px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-3) 8%, transparent)); display: grid; place-items: center; position: relative; }
.asset-thumb .icon { width: 38px; height: 38px; color: var(--accent); opacity: .8; }
.asset-thumb .type { position: absolute; top: 8px; left: 8px; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); background: var(--bg); border: 1px solid var(--accent-line); border-radius: 4px; padding: 1px 5px; }
.asset-body { padding: 11px 12px; }
.asset-body b { font-size: 11.5px; display: block; }
.asset-body p { font-size: 9.5px; color: var(--text-3); margin-top: 3px; }
.asset-meta { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; font-size: 9px; color: var(--text-3); }
.campaign-list { display: flex; flex-direction: column; gap: 9px; }
.campaign { display: grid; grid-template-columns: 40px minmax(0, 1fr) 150px 100px; gap: 13px; align-items: center; padding: 13px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.campaign-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.campaign b { font-size: 12px; display: block; }
.campaign p { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.campaign .progress { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 7px; }
.campaign .progress i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.campaign .budget { text-align: right; font-size: 10px; color: var(--text-3); }
.campaign .budget b { color: var(--text); font-size: 12px; }
.accounts-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.account-card { padding: 15px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); transition: var(--tr); }
.account-card:hover { border-color: var(--line-strong); }
.account-head { display: flex; align-items: center; gap: 10px; }
.platform-icon { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--accent); background: var(--accent-soft); border: 1px solid var(--accent-line); }
.account-card h4 { font-size: 12.5px; }
.account-card .account-sub { font-size: 9.5px; color: var(--text-3); }
.account-stats { display: flex; gap: 18px; margin: 13px 0 10px; }
.account-stat b { font-size: 16px; display: block; letter-spacing: -.02em; }
.account-stat span { font-size: 9px; color: var(--text-3); }
.account-foot { display: flex; align-items: center; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--line); }
.matrix-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.matrix-card { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.matrix-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.matrix-card b { font-size: 12px; }
.matrix-card p { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.matrix-steps { display: flex; gap: 4px; margin-top: 12px; }
.matrix-steps i { height: 5px; flex: 1; border-radius: 4px; background: var(--line); }
.matrix-steps i.on { background: var(--accent); }
.matrix-meta { display: flex; justify-content: space-between; margin-top: 10px; font-size: 9.5px; color: var(--text-3); }

/* Analytics */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: 78px 1fr 54px; gap: 10px; align-items: center; font-size: 10.5px; color: var(--text-2); }
.funnel-bar { height: 24px; border-radius: 5px; background: var(--input); overflow: hidden; }
.funnel-bar i { display: block; height: 100%; border-radius: 5px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); opacity: .8; }
.funnel-val { text-align: right; font-weight: 700; color: var(--text); }
.rank-row { display: flex; align-items: center; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 10.5px; }
.rank-row:last-child { border-bottom: 0; }
.rank-no { width: 18px; height: 18px; border-radius: 5px; display: grid; place-items: center; font-size: 9px; font-weight: 800; background: var(--input); color: var(--text-3); }
.rank-no.top { background: var(--accent); color: var(--accent-ink); }
.rank-name { flex: 1; color: var(--text-2); }
.rank-row b { font-size: 10px; }
.hbar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; }
.hbar i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }

/* Staff / stores */
.split { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 14px; align-items: start; }
.org-tree { padding: 4px 0; }
.org-node { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: 7px; font-size: 11px; color: var(--text-2); cursor: pointer; }
.org-node:hover { background: var(--surface-hover); }
.org-node.on { background: var(--accent-soft); color: var(--accent); }
.org-node .icon { width: 14px; height: 14px; color: var(--text-3); }
.org-node b { margin-left: auto; font-size: 9px; color: var(--text-3); font-weight: 500; }
.org-node.child { padding-left: 26px; }
.store-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.store-card { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.store-map { height: 96px; background: linear-gradient(135deg, var(--accent-soft), color-mix(in srgb, var(--accent-3) 8%, transparent)); position: relative; overflow: hidden; }
.store-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 18px 18px; opacity: .8; }
.store-map .pin { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 16px; height: 16px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 7px var(--accent-soft), 0 0 22px var(--accent); }
.store-body { padding: 12px; }
.store-body b { font-size: 12px; }
.store-body p { font-size: 9.5px; color: var(--text-3); margin-top: 2px; }
.store-meta { display: flex; gap: 12px; margin-top: 9px; font-size: 9px; color: var(--text-3); }
.map-panel { border: 1px solid var(--line); border-radius: 12px; min-height: 280px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 60%), var(--bg-elev-2); }
.map-panel::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 34px 34px; opacity: .6; }
.map-pin { position: absolute; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 5px var(--accent-soft); }
.map-pin::after { content: attr(data-city); position: absolute; left: 12px; top: -4px; font-size: 9px; color: var(--text-2); white-space: nowrap; }

/* Settings */
.settings-grid { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 18px; align-items: start; }
.settings-nav { display: flex; flex-direction: column; gap: 3px; }
.settings-nav button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 11px; border-radius: 8px; font-size: 11.5px; color: var(--text-2); text-align: left; }
.settings-nav button:hover { background: var(--surface-hover); color: var(--text); }
.settings-nav button.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.settings-nav .icon { width: 15px; height: 15px; }
.settings-panel { padding: 22px; }
.settings-panel h3 { font-size: 15px; margin-bottom: 3px; }
.settings-panel .sub { font-size: 11px; color: var(--text-3); margin-bottom: 19px; }
.profile-head { display: flex; align-items: center; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.profile-avatar { width: 58px; height: 58px; border-radius: 15px; display: grid; place-items: center; font-size: 18px; font-weight: 800; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: var(--accent-ink); }
.profile-head b { display: block; font-size: 16px; }
.profile-head span { display: block; font-size: 10.5px; color: var(--text-3); }
.theme-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
.theme-card { border: 1px solid var(--line); border-radius: 11px; padding: 10px; text-align: left; }
.theme-card.on { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.theme-preview { height: 72px; border-radius: 7px; border: 1px solid var(--line); margin-bottom: 8px; overflow: hidden; position: relative; }
.theme-preview.dark { background: #071321; }
.theme-preview.light { background: #f4f8fc; }
.theme-preview::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 30%; background: rgba(255, 255, 255, .07); border-right: 1px solid rgba(255, 255, 255, .08); }
.theme-preview.light::before { background: rgba(10, 50, 80, .05); border-color: rgba(10, 50, 80, .08); }
.theme-preview::after { content: ""; position: absolute; left: 36%; right: 10%; top: 14px; height: 7px; border-radius: 3px; background: var(--accent); box-shadow: 0 13px 0 rgba(125, 211, 252, .16), 0 26px 0 rgba(125, 211, 252, .1); }
.theme-card b { font-size: 11px; display: block; }
.theme-card span { font-size: 9px; color: var(--text-3); }
.swatches { display: flex; gap: 9px; margin-top: 9px; }
.swatch { width: 27px; height: 27px; border-radius: 50%; border: 2px solid transparent; position: relative; }
.swatch.on { border-color: var(--text); }
.swatch.cyan { background: #22d3ee; }
.swatch.violet { background: #a78bfa; }
.swatch.emerald { background: #34d399; }
.swatch.amber { background: #fbbf24; }
.setting-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.setting-row:last-child { border: 0; }
.setting-row b { font-size: 11.5px; display: block; }
.setting-row p { font-size: 10px; color: var(--text-3); }
.switch { width: 38px; height: 21px; border-radius: 99px; background: var(--line-strong); position: relative; transition: var(--tr); flex: 0 0 auto; }
.switch::after { content: ""; position: absolute; width: 15px; height: 15px; border-radius: 50%; background: #fff; top: 3px; left: 3px; transition: var(--tr); }
.switch.on { background: var(--accent); }
.switch.on::after { transform: translateX(17px); background: var(--accent-ink); }
.update-box { padding: 15px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg-elev-2); }
.update-version { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.update-version b { font-size: 13px; display: block; }
.update-version span { font-size: 10px; color: var(--text-3); }
.progress-line { height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; margin-top: 13px; }
.progress-line i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .2s linear; }
.update-notes { margin-top: 12px; font-size: 10.5px; color: var(--text-2); line-height: 1.7; }
.about-logo { width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--accent), var(--accent-2)); margin-bottom: 12px; }
.about-logo svg { width: 34px; height: 34px; stroke: var(--accent-ink); stroke-width: 2.2; fill: none; }
.about-list { display: grid; grid-template-columns: 110px 1fr; gap: 7px 14px; font-size: 11px; color: var(--text-2); margin-top: 14px; }
.about-list span:nth-child(odd) { color: var(--text-3); }
.disclaimer { padding: 11px 13px; border: 1px dashed var(--accent-line); border-radius: 9px; background: var(--accent-soft); font-size: 10px; color: var(--text-2); line-height: 1.7; margin-top: 18px; }

/* Tools */
.tool-tabs { display: flex; gap: 3px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--input); margin-bottom: 16px; width: max-content; max-width: 100%; overflow: auto; }
.tool-tabs button { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 7px; font-size: 10.5px; color: var(--text-3); font-weight: 600; white-space: nowrap; }
.tool-tabs button.on { background: var(--bg-elev-3); color: var(--text); box-shadow: 0 1px 4px var(--shadow-color); }
.software-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.software-card { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); padding: 15px; }
.software-head { display: flex; align-items: center; gap: 10px; }
.software-icon { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); }
.software-card b { font-size: 12px; display: block; }
.software-card p { font-size: 9.5px; color: var(--text-3); margin-top: 1px; }
.software-version { display: flex; justify-content: space-between; font-size: 9.5px; color: var(--text-3); margin: 11px 0 8px; }
.software-actions { display: flex; gap: 6px; margin-top: 11px; }
.software-actions .btn { flex: 1; }
.poi-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 14px; }
.poi-results { display: flex; flex-direction: column; gap: 8px; }
.poi-item { display: flex; align-items: flex-start; gap: 11px; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.poi-rank { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; font-size: 9px; font-weight: 800; background: var(--accent-soft); color: var(--accent); flex: 0 0 auto; }
.poi-item b { font-size: 11.5px; display: block; }
.poi-item p { font-size: 10px; color: var(--text-3); margin-top: 2px; }
.poi-item .poi-meta { display: flex; gap: 10px; font-size: 9px; color: var(--text-3); margin-top: 4px; }
.poi-item .btn { margin-left: auto; }
.perf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.gauge-card { padding: 16px; text-align: center; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.gauge { width: 150px; height: 86px; margin: 4px auto 0; position: relative; }
.gauge svg { width: 100%; height: 100%; overflow: visible; }
.gauge-val { position: absolute; left: 0; right: 0; bottom: 0; font-size: 21px; font-weight: 750; letter-spacing: -.03em; }
.gauge-val span { font-size: 9px; color: var(--text-3); font-weight: 500; }
.gauge-card > b { font-size: 11.5px; }
.gauge-card > span { font-size: 9.5px; color: var(--text-3); }
.process-table td { font-size: 11px; }

/* Logs */
.log-level { width: 52px; text-align: center; }

/* ============ Full screen dashboard ============ */
.screen-page { position: fixed; inset: 0; z-index: 50; background: #030b14; color: #dff4ff; overflow: auto; }
.screen-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(900px 500px at 50% -10%, rgba(34, 211, 238, .14), transparent 60%), radial-gradient(900px 700px at 10% 100%, rgba(99, 102, 241, .13), transparent 60%); }
.screen-head { position: relative; z-index: 2; height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 26px; border-bottom: 1px solid rgba(125, 211, 252, .12); background: rgba(3, 12, 21, .6); backdrop-filter: blur(20px); }
.screen-head .brand-text b { color: #eaf9ff; }
.screen-title { text-align: center; }
.screen-title h2 { font-size: 18px; letter-spacing: .1em; background: linear-gradient(90deg, #67e8f9, #a5b4fc); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen-title span { font-size: 9px; letter-spacing: .25em; color: #4d728a; }
.screen-date { font-family: var(--mono); font-size: 11px; color: #7dd3fc; text-align: right; }
.screen-date small { display: block; font-size: 9px; color: #4d728a; letter-spacing: .1em; }
.screen-grid { position: relative; z-index: 2; display: grid; grid-template-columns: 1fr 1.35fr 1fr; gap: 14px; padding: 16px 20px 20px; min-height: calc(100vh - 72px); }
.screen-col { display: flex; flex-direction: column; gap: 14px; }
.screen-card { border: 1px solid rgba(125, 211, 252, .13); border-radius: 12px; background: linear-gradient(160deg, rgba(9, 28, 45, .8), rgba(4, 13, 24, .65)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .03); padding: 14px; position: relative; overflow: hidden; }
.screen-card::before { content: ""; position: absolute; left: 0; top: 0; width: 28px; height: 1px; background: #22d3ee; box-shadow: 0 0 12px #22d3ee; }
.screen-card h3 { font-size: 11px; letter-spacing: .08em; font-weight: 600; color: #9ec8dd; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.screen-card h3 span { font-size: 8px; color: #3d657c; letter-spacing: .14em; }
.screen-total { padding: 8px 0 2px; }
.screen-total b { font-size: clamp(32px, 3.2vw, 48px); letter-spacing: -.04em; line-height: 1.1; font-weight: 750; background: linear-gradient(180deg, #eafcff, #67e8f9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.screen-total span { display: block; font-size: 10px; color: #5b7f96; margin-top: 3px; }
.screen-kpi-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 9px; }
.screen-kpi { padding: 8px; border: 1px solid rgba(125, 211, 252, .09); border-radius: 8px; background: rgba(255, 255, 255, .025); }
.screen-kpi b { display: block; font-size: 16px; letter-spacing: -.02em; }
.screen-kpi span { font-size: 8px; color: #5b7f96; }
.screen-chart { height: 150px; margin-top: 8px; }
.screen-chart svg { width: 100%; height: 100%; }
.screen-list { display: flex; flex-direction: column; gap: 2px; margin-top: 7px; }
.screen-list-item { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid rgba(125, 211, 252, .07); font-size: 9.5px; color: #7fa4b9; }
.screen-list-item:last-child { border-bottom: 0; }
.screen-list-item .dot { width: 5px; height: 5px; border-radius: 50%; background: #34d399; box-shadow: 0 0 7px #34d399; }
.screen-list-item b { margin-left: auto; color: #bce9f5; font-size: 9px; font-weight: 500; }
.screen-center { display: flex; flex-direction: column; gap: 14px; }
.screen-map { flex: 1; min-height: 340px; border: 1px solid rgba(125, 211, 252, .13); border-radius: 12px; position: relative; overflow: hidden; background: radial-gradient(circle at 50% 52%, rgba(34, 211, 238, .1), transparent 58%), rgba(3, 12, 21, .4); }
.screen-map::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(125, 211, 252, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(125, 211, 252, .055) 1px, transparent 1px); background-size: 28px 28px; }
.map-ring { position: absolute; left: 50%; top: 50%; width: 260px; height: 260px; border: 1px solid rgba(34, 211, 238, .12); border-radius: 50%; transform: translate(-50%, -50%); }
.map-ring.r2 { width: 380px; height: 380px; opacity: .6; }
.map-ring.r3 { width: 500px; height: 500px; opacity: .3; }
.map-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; }
.map-core b { display: block; font-size: 30px; letter-spacing: -.04em; color: #eafcff; }
.map-core span { font-size: 9px; color: #4f7a92; letter-spacing: .16em; }
.map-node { position: absolute; width: 7px; height: 7px; border-radius: 50%; background: #22d3ee; box-shadow: 0 0 0 4px rgba(34, 211, 238, .12), 0 0 14px #22d3ee; }
.map-node span { position: absolute; left: 10px; top: -5px; font-size: 8px; color: #7fb4c9; white-space: nowrap; }
.screen-head-actions { display: flex; align-items: center; gap: 7px; }

/* Auth responsive */
@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-visual { min-height: auto; padding: 32px 28px 10px; }
  .auth-preview { display: none; }
  .auth-panel { min-height: auto; padding: 20px 28px 42px; }
  .auth-panel::before { display: none; }
  .auth-hero { margin-top: 34px; }
  .auth-hero h1 { font-size: clamp(38px, 8vw, 54px); }
  .auth-card { background: rgba(7, 20, 34, .78); }
}
@media (max-width: 620px) {
  .auth-visual { padding: 22px 18px 4px; }
  .auth-panel { padding: 12px 14px 30px; }
  .auth-card { padding: 24px 19px; border-radius: 18px; }
  .auth-hero h1 { font-size: 36px; }
  .auth-hero p { font-size: 13px; }
  .auth-stats { gap: 22px; margin-top: 22px; }
  .auth-stat b { font-size: 19px; }
  .auth-proof { display: none; }
  .field-row, .captcha-row { grid-template-columns: 1fr; }
  .captcha { height: 42px; }
}

/* App responsive */
@media (max-width: 1240px) {
  .kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }
  .asset-grid { grid-template-columns: repeat(3, 1fr); }
  .software-grid { grid-template-columns: repeat(2, 1fr); }
  .accounts-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: repeat(2, 1fr); }
  .screen-grid { grid-template-columns: 1fr 1.2fr; }
  .screen-col:first-child { display: none; }
}
@media (max-width: 1050px) {
  :root { --sidebar-w: 78px; }
  .sidebar { overflow: visible; }
  .side-profile { padding: 8px; margin: 10px 8px; display: flex; justify-content: center; }
  .side-profile > *:not(.side-profile-top) { display: none; }
  .side-profile-top { gap: 0; }
  .side-profile .user-avatar { width: 36px; height: 36px; }
  .side-profile .side-user-text { display: none; }
  .nav-label { display: none; }
  .nav-group { margin-top: 7px; }
  .nav-item { justify-content: center; padding: 0; height: 42px; }
  .nav-item span.nav-text { display: none; }
  .nav-item .nav-badge { position: absolute; top: 5px; right: 6px; min-width: 14px; height: 14px; font-size: 8px; }
  .nav-item.active::before { left: -10px; }
  .side-foot { justify-content: center; }
  .side-foot .status span, .side-foot > span:last-child { display: none; }
  .top-search { max-width: 300px; }
  .topbar { gap: 10px; }
  .user-meta { display: none; }
  .settings-grid { grid-template-columns: 170px 1fr; }
  .split { grid-template-columns: 210px 1fr; }
  .poi-layout { grid-template-columns: 1fr 270px; }
}
@media (max-width: 820px) {
  body { overflow: auto; }
  .app-shell { display: block; height: auto; min-height: 100%; }
  .topbar { position: sticky; top: 0; height: 60px; }
  .topbar .brand-text { display: none; }
  .topbar .brand-mark { width: 32px; height: 32px; }
  .top-search { display: none; }
  .sidebar { position: fixed; left: 0; top: 60px; bottom: 0; width: 248px; transform: translateX(-102%); transition: transform .25s var(--ease); box-shadow: 20px 0 60px rgba(0, 0, 0, .35); }
  .sidebar.open { transform: none; }
  .sidebar .side-profile { display: block; padding: 13px; margin: 14px 12px 8px; }
  .sidebar .side-profile > *:not(.side-profile-top) { display: block; }
  .sidebar .side-profile .side-user-text { display: block; }
  .sidebar .nav-label { display: block; }
  .sidebar .nav-item { justify-content: flex-start; padding: 0 10px; height: 39px; }
  .sidebar .nav-item span.nav-text { display: inline; }
  .main { min-height: calc(100vh - 60px); overflow: visible; }
  .main-inner { padding: 18px 14px 40px; }
  .mobile-menu-btn { display: grid !important; }
  .page-head { align-items: flex-start; flex-direction: column; gap: 12px; }
  .page-head h1 { font-size: 20px; }
  .hero { flex-direction: column; padding: 18px; }
  .hero-actions { justify-content: flex-start; }
  .kpi-grid, .stat-strip { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2-eq { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .asset-grid, .accounts-grid, .store-grid, .software-grid { grid-template-columns: repeat(2, 1fr); }
  .campaign { grid-template-columns: 36px minmax(0, 1fr) 90px; }
  .campaign .budget { display: none; }
  .kanban { grid-template-columns: repeat(2, minmax(220px, 1fr)); }
  .split, .settings-grid, .poi-layout { grid-template-columns: 1fr; }
  .settings-nav { flex-direction: row; overflow: auto; }
  .settings-nav button { white-space: nowrap; width: auto; }
  .matrix-grid { grid-template-columns: 1fr; }
  .screen-grid { grid-template-columns: 1fr; }
  .screen-col:nth-child(2) { order: -1; }
  .screen-col:first-child { display: flex; }
  .screen-page .topbar { position: static; }
  .screen-head { height: auto; padding: 14px; flex-wrap: wrap; }
  .screen-title { order: -1; width: 100%; text-align: left; }
}
@media (max-width: 560px) {
  .kpi-grid, .stat-strip { grid-template-columns: 1fr; }
  .asset-grid, .accounts-grid, .store-grid, .software-grid, .kanban { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .page-head-actions { width: 100%; }
  .page-head-actions .btn { flex: 1; }
  .grid-2, .grid-3 { gap: 10px; }
  .campaign { grid-template-columns: 36px minmax(0, 1fr); }
  .campaign > .chip { display: none; }
  .drawer { width: 100%; }
  .modal { width: calc(100% - 20px); }
  .toast-root { left: 12px; right: 12px; bottom: 12px; }
  .toast { min-width: 0; max-width: none; }
  .hero h1 { font-size: 20px; }
  .chart-wrap { height: 210px; }
  .settings-panel { padding: 16px; }
}
.mobile-menu-btn { display: none !important; }
@media (max-width: 820px) { .mobile-menu-btn { display: grid !important; } }
.sidebar-mask { position: fixed; inset: 60px 0 0 0; background: rgba(2, 8, 15, .5); z-index: 19; display: none; }
.sidebar-mask.show { display: block; }

/* Reduced motion preference */
html.reduce-motion *, html.reduce-motion *::before, html.reduce-motion *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }


/* Auth sizing guards */
.auth-visual, .auth-panel, .auth-hero, .auth-card { min-width: 0; }
.auth-hero p { max-width: min(480px, 100%); }
@media (max-width: 1080px) {
  .auth-shell { grid-template-columns: minmax(0, 1fr); }
  .auth-card { max-width: 430px; margin-left: auto; margin-right: auto; }
}
@media (max-width: 620px) {
  .auth-card { max-width: 100%; }
  .ad-strip { flex-wrap: wrap; gap: 6px; }
  .ad-strip .btn { margin-left: 0; width: 100%; }
  .page-banner { flex-direction: column; align-items: flex-start; }
  .page-banner .btn { width: 100%; }
  .screen-head { gap: 10px; }
  .screen-head .brand-text { display: block; }
  .screen-head .brand { display: none; }
}

.cal-cell[data-date] { cursor: pointer; }
.cal-cell[data-date]:hover { background: var(--surface-hover); }
.cal-event { cursor: pointer; }

