/* =====================================================================
   VCUBE Studio Room — design system
   Light + dark themes, 8px spacing scale, one brand gradient.
   ===================================================================== */

:root {
  --brand-1: #6366f1;
  --brand-2: #8b5cf6;
  --brand-3: #06b6d4;
  --brand-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 52%, #06b6d4 100%);
  --brand-soft: rgba(99, 102, 241, .10);
  --brand-ring: rgba(99, 102, 241, .35);

  --bg: #f5f6fa;
  --bg-accent: radial-gradient(1200px 600px at 100% -10%, rgba(139, 92, 246, .08), transparent 60%),
               radial-gradient(900px 500px at -10% 110%, rgba(6, 182, 212, .07), transparent 60%);
  --surface: #ffffff;
  --surface-2: #f8f9fc;
  --surface-3: #eef0f6;
  --glass: rgba(255, 255, 255, .72);
  --border: #e6e8f0;
  --border-strong: #d5d9e5;
  --text: #0f172a;
  --text-2: #334155;
  --muted: #64748b;
  --faint: #94a3b8;

  --success: #059669;  --success-bg: #ecfdf5;  --success-bd: #a7f3d0;
  --warning: #b45309;  --warning-bg: #fffbeb;  --warning-bd: #fde68a;
  --danger:  #dc2626;  --danger-bg:  #fef2f2;  --danger-bd:  #fecaca;
  --info:    #2563eb;  --info-bg:    #eff6ff;  --info-bd:    #bfdbfe;
  --violet:  #7c3aed;  --violet-bg:  #f5f3ff;  --violet-bd:  #ddd6fe;

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --shadow-xs: 0 1px 2px rgba(15, 23, 42, .05);
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, .06), 0 1px 2px rgba(15, 23, 42, .04);
  --shadow: 0 8px 24px -8px rgba(15, 23, 42, .12), 0 2px 6px rgba(15, 23, 42, .04);
  --shadow-lg: 0 24px 48px -16px rgba(15, 23, 42, .22);
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --sidebar-w: 256px;
  --topbar-h: 64px;
  --tabbar-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0a0c12;
  --bg-accent: radial-gradient(1200px 600px at 100% -10%, rgba(139, 92, 246, .14), transparent 60%),
               radial-gradient(900px 500px at -10% 110%, rgba(6, 182, 212, .10), transparent 60%);
  --surface: #11141c;
  --surface-2: #161a24;
  --surface-3: #1d2230;
  --glass: rgba(17, 20, 28, .72);
  --border: #222838;
  --border-strong: #2e3548;
  --text: #e8ebf4;
  --text-2: #c3c9d8;
  --muted: #8d95aa;
  --faint: #626b82;
  --brand-soft: rgba(129, 140, 248, .14);
  --success: #34d399;  --success-bg: rgba(16, 185, 129, .12);  --success-bd: rgba(16, 185, 129, .3);
  --warning: #fbbf24;  --warning-bg: rgba(245, 158, 11, .12);  --warning-bd: rgba(245, 158, 11, .3);
  --danger:  #f87171;  --danger-bg:  rgba(239, 68, 68, .12);   --danger-bd:  rgba(239, 68, 68, .3);
  --info:    #60a5fa;  --info-bg:    rgba(59, 130, 246, .12);  --info-bd:    rgba(59, 130, 246, .3);
  --violet:  #a78bfa;  --violet-bg:  rgba(139, 92, 246, .14);  --violet-bd:  rgba(139, 92, 246, .32);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 10px 30px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image: var(--bg-accent);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; letter-spacing: -.02em; color: var(--text); }
h1 { font-size: clamp(22px, 2.6vw, 30px); font-weight: 800; }
h2 { font-size: 20px; font-weight: 750; }
h3 { font-size: 16px; font-weight: 700; }
h4 { font-size: 14px; font-weight: 700; }
p { margin: 0; }
a { color: var(--brand-1); text-decoration: none; }
a:hover { text-decoration: underline; }
img, video { max-width: 100%; display: block; }
small, .small { font-size: 13px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand-ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: rgba(99, 102, 241, .25); }
.icon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icon-sm { width: 16px; height: 16px; }
.icon-lg { width: 24px; height: 24px; }
.grad-text { background: var(--brand-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- App shell ---------- */
.app { min-height: 100vh; display: flex; }
.sidebar {
  position: fixed; inset: 0 auto 0 0; width: var(--sidebar-w); z-index: 40;
  display: flex; flex-direction: column; gap: var(--s4);
  padding: var(--s5) var(--s4);
  background: var(--surface);
  border-right: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 10px; padding: 0 var(--s2); text-decoration: none !important; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
  background: var(--brand-grad); color: #fff; font-weight: 900; font-size: 17px; letter-spacing: -.04em;
  box-shadow: 0 8px 18px -6px rgba(99, 102, 241, .6);
}
.brand-name { font-weight: 800; font-size: 16px; color: var(--text); letter-spacing: -.02em; line-height: 1.1; }
.brand-name small { display: block; font-size: 11px; font-weight: 600; color: var(--muted); letter-spacing: .02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: var(--s3) var(--s3) var(--s1); }
.nav a {
  display: flex; align-items: center; gap: 12px; min-height: 42px; padding: 0 var(--s3);
  border-radius: 11px; color: var(--text-2); font-weight: 600; font-size: 14px; text-decoration: none;
  transition: background .15s, color .15s;
}
.nav a:hover { background: var(--surface-3); color: var(--text); }
.nav a.active { background: var(--brand-soft); color: var(--brand-1); }
:root[data-theme="dark"] .nav a.active { color: #a5b4fc; }
.nav a .count { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 99px; font-size: 12px; font-weight: 700; display: grid; place-items: center; background: var(--brand-1); color: #fff; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: var(--s3); }
.help-card {
  padding: var(--s4); border-radius: var(--radius); color: #fff; position: relative; overflow: hidden;
  background: var(--brand-grad);
}
.help-card::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .15); }
.help-card h4 { color: #fff; margin-bottom: 4px; }
.help-card p { font-size: 13px; opacity: .9; margin-bottom: var(--s3); }
.help-card .btn { background: rgba(255, 255, 255, .95); color: #4338ca; }

.main { flex: 1; min-width: 0; margin-left: var(--sidebar-w); display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h);
  display: flex; align-items: center; gap: var(--s3); padding: 0 var(--s6);
  background: var(--glass); backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.topbar-title { min-width: 0; }
.topbar-title .crumb { font-size: 12px; color: var(--muted); font-weight: 600; }
.topbar-title h1 { font-size: 18px; font-weight: 750; }
.topbar-actions { margin-left: auto; display: flex; align-items: center; gap: var(--s2); }
.topbar .mobile-brand { display: none; }
.content { width: 100%; max-width: 1280px; margin: 0 auto; padding: var(--s6); flex: 1; }
.content-narrow { max-width: 880px; }

/* Mobile tab bar */
.tabbar { display: none; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--surface); --btn-fg: var(--text); --btn-bd: var(--border);
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px; border-radius: 12px; border: 1px solid var(--btn-bd);
  background: var(--btn-bg); color: var(--btn-fg); font: inherit; font-weight: 650; font-size: 14px;
  cursor: pointer; text-decoration: none !important; white-space: nowrap;
  transition: transform .12s var(--ease), box-shadow .2s, background .15s, opacity .15s;
  box-shadow: var(--shadow-xs);
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: translateY(1px) scale(.99); }
.btn[disabled], .btn.is-loading { opacity: .6; pointer-events: none; }
.btn.is-loading::after { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
.btn-primary { --btn-bg: var(--brand-1); --btn-fg: #fff; --btn-bd: transparent; background: var(--brand-grad); box-shadow: 0 8px 20px -8px rgba(99, 102, 241, .7); }
.btn-primary:hover { background: var(--brand-grad); filter: brightness(1.06); box-shadow: 0 12px 24px -8px rgba(99, 102, 241, .75); }
.btn-success { --btn-bg: #059669; --btn-fg: #fff; --btn-bd: transparent; box-shadow: 0 8px 20px -8px rgba(5, 150, 105, .6); }
.btn-success:hover { background: #047857; }
.btn-danger { --btn-bg: var(--danger-bg); --btn-fg: var(--danger); --btn-bd: var(--danger-bd); box-shadow: none; }
.btn-danger:hover { background: var(--danger-bg); filter: brightness(.97); }
.btn-soft { --btn-bg: var(--brand-soft); --btn-fg: var(--brand-1); --btn-bd: transparent; box-shadow: none; }
:root[data-theme="dark"] .btn-soft { --btn-fg: #a5b4fc; }
.btn-soft:hover { background: var(--brand-soft); filter: brightness(1.08); }
.btn-ghost { --btn-bg: transparent; --btn-bd: transparent; box-shadow: none; color: var(--text-2); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-wa { --btn-bg: #25d366; --btn-fg: #fff; --btn-bd: transparent; }
.btn-wa:hover { background: #1ebe5b; }
.btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 15px; border-radius: 14px; }
.btn-block { width: 100%; }
.icon-btn {
  width: 42px; height: 42px; display: inline-grid; place-items: center; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2); cursor: pointer; position: relative;
  transition: background .15s;
}
.icon-btn:hover { background: var(--surface-3); color: var(--text); }
.icon-btn .dot { position: absolute; top: 8px; right: 9px; width: 9px; height: 9px; border-radius: 50%; background: #ef4444; border: 2px solid var(--surface); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Cards & layout helpers ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); }
.card-pad { padding: var(--s5); }
.card-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s4) var(--s5); border-bottom: 1px solid var(--border); }
.card-head h3 { display: flex; align-items: center; gap: 10px; }
.card-head .spacer, .spacer { flex: 1; }
.card-body { padding: var(--s5); }
.card-foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--border-strong); }
.grid { display: grid; gap: var(--s5); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid-main { grid-template-columns: minmax(0, 1fr) 360px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: var(--s5); }
.stack-sm { display: flex; flex-direction: column; gap: var(--s3); }
.row { display: flex; align-items: center; gap: var(--s3); }
.row-wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.mt-1 { margin-top: var(--s2); } .mt-2 { margin-top: var(--s4); } .mt-3 { margin-top: var(--s5); }
.mb-2 { margin-bottom: var(--s4); } .mb-3 { margin-bottom: var(--s5); }
.divider { height: 1px; background: var(--border); margin: var(--s4) 0; border: 0; }

/* Page header */
.page-head { display: flex; align-items: flex-end; gap: var(--s4); flex-wrap: wrap; margin-bottom: var(--s5); }
.page-head p { color: var(--muted); margin-top: 4px; }
.page-head .actions { margin-left: auto; display: flex; gap: var(--s2); flex-wrap: wrap; }

/* Hero (welcome banner) */
.hero {
  position: relative; overflow: hidden; border-radius: var(--radius-xl); padding: var(--s6);
  background: var(--brand-grad); color: #fff; box-shadow: 0 30px 60px -30px rgba(99, 102, 241, .7);
}
.hero::before, .hero::after { content: ""; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.hero::before { width: 340px; height: 340px; right: -80px; top: -140px; }
.hero::after { width: 200px; height: 200px; right: 160px; bottom: -120px; background: rgba(255, 255, 255, .08); }
.hero > * { position: relative; z-index: 1; }
.hero h1, .hero h2 { color: #fff; }
.hero p { opacity: .9; }
.hero .chip { background: rgba(255, 255, 255, .18); color: #fff; border-color: rgba(255, 255, 255, .25); }
.hero .btn:not(.btn-primary) { --btn-bg: rgba(255, 255, 255, .16); --btn-fg: #fff; --btn-bd: rgba(255, 255, 255, .28); backdrop-filter: blur(6px); }
.hero .btn:not(.btn-primary):hover { background: rgba(255, 255, 255, .26); }
.hero .btn.btn-white { --btn-bg: #fff; --btn-fg: #4338ca; --btn-bd: transparent; background: #fff; color: #4338ca; backdrop-filter: none; box-shadow: 0 10px 24px -10px rgba(15,23,42,.45); }
.hero .btn.btn-white:hover { background: #fff; filter: brightness(.97); }

/* KPI tiles */
.stat { padding: var(--s5); display: flex; flex-direction: column; gap: 6px; position: relative; overflow: hidden; }
.stat-label { font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; padding-right: 44px; }
.stat-value { font-size: 30px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat-sub { font-size: 12.5px; color: var(--muted); }
.stat-icon { position: absolute; right: var(--s4); top: var(--s4); width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; }
.tone-brand { background: var(--brand-soft); color: var(--brand-1); }
.tone-success { background: var(--success-bg); color: var(--success); }
.tone-warning { background: var(--warning-bg); color: var(--warning); }
.tone-danger { background: var(--danger-bg); color: var(--danger); }
.tone-info { background: var(--info-bg); color: var(--info); }
.tone-violet { background: var(--violet-bg); color: var(--violet); }
a.stat { color: inherit; text-decoration: none !important; }

/* Chips / badges */
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 99px;
  font-size: 12px; font-weight: 700; white-space: nowrap; border: 1px solid var(--border);
  background: var(--surface-2); color: var(--text-2);
}
.chip .dot-sm { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-success { background: var(--success-bg); color: var(--success); border-color: var(--success-bd); }
.chip-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-bd); }
.chip-danger { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bd); }
.chip-info { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }
.chip-violet { background: var(--violet-bg); color: var(--violet); border-color: var(--violet-bd); }
.chip-brand { background: var(--brand-soft); color: var(--brand-1); border-color: transparent; }
.chip-sm { height: 22px; padding: 0 8px; font-size: 11px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .label { font-size: 13px; font-weight: 650; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea, .field input:not([type=checkbox]):not([type=radio]):not([type=file]), .field select, .field textarea {
  width: 100%; min-height: 46px; padding: 11px 14px; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--text);
  font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s;
}
.field textarea, .textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus, .field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--brand-ring);
}
.input-icon { position: relative; }
.input-icon .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); pointer-events: none; }
.input-icon input { padding-left: 42px !important; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--text-2); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--brand-1); }

/* Alerts */
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px; font-size: 14px; font-weight: 550; border: 1px solid; }
.alert .icon { margin-top: 1px; }
.alert-success { background: var(--success-bg); color: var(--success); border-color: var(--success-bd); }
.alert-error { background: var(--danger-bg); color: var(--danger); border-color: var(--danger-bd); }
.alert-warning { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-bd); }
.alert-info { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }
.alert a { color: inherit; text-decoration: underline; font-weight: 700; }

/* Tabs / segmented */
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--border); overflow-x: auto; max-width: 100%; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a, .tabs button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; border-radius: 10px;
  font: inherit; font-size: 13.5px; font-weight: 650; color: var(--muted); background: none; border: 0; cursor: pointer;
  text-decoration: none !important; white-space: nowrap;
}
.tabs a:hover, .tabs button:hover { color: var(--text); }
.tabs .active { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.tabs .count { font-size: 11.5px; padding: 1px 7px; border-radius: 99px; background: var(--surface-3); color: var(--muted); }
.tabs .active .count { background: var(--brand-soft); color: var(--brand-1); }
.tab-panel[hidden] { display: none; }

/* Tables */
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); padding: 12px var(--s5); background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.table td { padding: 14px var(--s5); border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr { transition: background .12s; }
.table tbody tr:hover { background: var(--surface-2); }

/* Avatars */
.avatar {
  width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; overflow: hidden;
  font-weight: 800; font-size: 15px; color: #fff; background: var(--brand-grad);
}
.avatar { position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.avatar-sm { width: 32px; height: 32px; border-radius: 10px; font-size: 13px; }
.avatar-lg { width: 64px; height: 64px; border-radius: 18px; font-size: 24px; }
.avatar.c1 { background: linear-gradient(135deg, #6366f1, #8b5cf6); }
.avatar.c2 { background: linear-gradient(135deg, #06b6d4, #3b82f6); }
.avatar.c3 { background: linear-gradient(135deg, #f59e0b, #ef4444); }
.avatar.c4 { background: linear-gradient(135deg, #10b981, #06b6d4); }
.avatar.c5 { background: linear-gradient(135deg, #ec4899, #8b5cf6); }

/* Lists */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: var(--s3); padding: 14px var(--s5); border-bottom: 1px solid var(--border); color: inherit; text-decoration: none !important; transition: background .12s; }
.list-item:last-child { border-bottom: 0; }
a.list-item:hover { background: var(--surface-2); }
.list-item .meta { min-width: 0; flex: 1; }
.list-item .title { font-weight: 650; font-size: 14.5px; color: var(--text); }
.list-item .sub { font-size: 12.5px; color: var(--muted); }

/* Empty states */
.empty { text-align: center; padding: var(--s7) var(--s5); color: var(--muted); }
.empty .empty-icon { width: 64px; height: 64px; margin: 0 auto var(--s4); border-radius: 20px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-1); }
.empty h3 { margin-bottom: 6px; }
.empty p { max-width: 380px; margin: 0 auto var(--s4); }

/* Stepper (project stage) */
.stepper { display: flex; gap: 0; counter-reset: step; }
.step { flex: 1; position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 650; color: var(--faint); }
.step::before { counter-increment: step; content: counter(step); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 800; background: var(--surface-3); color: var(--faint); border: 2px solid var(--surface); position: relative; z-index: 1; transition: all .3s; }
.step::after { content: ""; position: absolute; top: 15px; left: calc(-50% + 16px); right: calc(50% + 16px); height: 3px; border-radius: 3px; background: var(--surface-3); }
.step:first-child::after { display: none; }
.step.done { color: var(--text-2); }
.step.done::before { content: "✓"; background: var(--success); color: #fff; }
.step.done::after, .step.current::after { background: linear-gradient(90deg, var(--success), var(--brand-1)); }
.step.current { color: var(--brand-1); }
.step.current::before { background: var(--brand-grad); color: #fff; box-shadow: 0 0 0 6px var(--brand-soft); }

/* Progress */
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--brand-grad); transition: width .6s var(--ease); }

/* Score ring */
.ring { --val: 0; --size: 112px; width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex: none;
  background: conic-gradient(var(--brand-1) calc(var(--val) * 1%), var(--surface-3) 0); position: relative; }
.ring::before { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: var(--surface); }
.ring > span { position: relative; font-size: 24px; font-weight: 800; letter-spacing: -.03em; }

/* ---------- Deliverables / approvals ---------- */
.deliv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--s5); }
.deliv-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; text-decoration: none !important; }
.thumb {
  position: relative; aspect-ratio: 16 / 10; background: var(--surface-3); overflow: hidden; display: grid; place-items: center;
  border-bottom: 1px solid var(--border);
}
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .thumb-icon { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; background: var(--surface); box-shadow: var(--shadow); color: var(--brand-1); }
.thumb .thumb-kind { position: absolute; left: 12px; bottom: 12px; }
.thumb .thumb-state { position: absolute; right: 12px; top: 12px; }
.thumb-pattern { background:
  radial-gradient(circle at 20% 20%, rgba(99, 102, 241, .16), transparent 45%),
  radial-gradient(circle at 80% 80%, rgba(6, 182, 212, .16), transparent 45%), var(--surface-2); }
.deliv-card .deliv-body { padding: var(--s4) var(--s5) var(--s5); display: flex; flex-direction: column; gap: 6px; flex: 1; }
.deliv-card .deliv-title { font-weight: 700; font-size: 15.5px; color: var(--text); }
.deliv-card .deliv-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-top: auto; padding-top: var(--s3); }

.viewer { border-radius: var(--radius-lg); overflow: hidden; background: #0b0d14; position: relative; min-height: 280px; display: grid; place-items: center; }
.viewer img { max-height: 72vh; width: auto; margin: 0 auto; object-fit: contain; }
.viewer iframe { width: 100%; height: 62vh; border: 0; background: #fff; display: block; }
.viewer video { width: 100%; max-height: 72vh; }
.viewer .link-card { text-align: center; color: #e2e8f0; padding: var(--s7) var(--s5); }
.viewer .link-card p { color: #94a3b8; margin: 8px 0 var(--s4); }
.pin-layer { position: absolute; inset: 0; }
.pin { position: absolute; width: 28px; height: 28px; margin: -14px 0 0 -14px; border-radius: 50% 50% 50% 4px; background: #ef4444; color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; box-shadow: 0 6px 14px rgba(0, 0, 0, .35); transform: rotate(-45deg); }
.pin > span { transform: rotate(45deg); }
.pin.new { background: var(--brand-1); animation: pop .3s var(--ease); }
.viewer.pinning { cursor: crosshair; }
.viewer.pinning::after { content: "Tap on the image to mark the spot"; position: absolute; left: 50%; top: 14px; transform: translateX(-50%); background: rgba(15, 23, 42, .85); color: #fff; font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 99px; pointer-events: none; }
@keyframes pop { from { transform: rotate(-45deg) scale(.3); } to { transform: rotate(-45deg) scale(1); } }

.decision {
  display: flex; gap: var(--s3); align-items: center; flex-wrap: wrap; padding: var(--s4) var(--s5);
  border-radius: var(--radius-lg); border: 1px solid var(--border); background: var(--surface);
}
.decision .decision-text { flex: 1; min-width: 200px; }
.stamp {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  padding: 10px 18px; border: 3px solid var(--success); color: var(--success); border-radius: 14px;
  transform: rotate(-4deg); font-weight: 900; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; background: var(--success-bg);
}
.stamp small { font-size: 11px; letter-spacing: .02em; font-weight: 700; text-transform: none; opacity: .85; }
.versions { display: flex; gap: 6px; flex-wrap: wrap; }
.versions a { min-width: 40px; height: 32px; padding: 0 10px; border-radius: 10px; display: grid; place-items: center; font-size: 13px; font-weight: 750; border: 1px solid var(--border); color: var(--text-2); background: var(--surface); text-decoration: none !important; }
.versions a.active { background: var(--brand-grad); color: #fff; border-color: transparent; }
.compare { position: relative; overflow: hidden; border-radius: var(--radius-lg); background: #0b0d14; user-select: none; }
.compare img { width: 100%; display: block; }
.compare .compare-top { position: absolute; inset: 0; overflow: hidden; width: 50%; border-right: 3px solid #fff; }
.compare .compare-top img { width: auto; height: 100%; max-width: none; }
.compare input[type=range] { position: absolute; inset: auto 0 12px; width: 80%; margin: 0 auto; }

/* Chat */
.chat { display: flex; flex-direction: column; gap: 10px; padding: var(--s5); max-height: 520px; overflow-y: auto; scroll-behavior: smooth; }
.msg { display: flex; gap: 10px; max-width: 86%; }
.msg .bubble { padding: 10px 14px; border-radius: 16px; font-size: 14.5px; line-height: 1.5; background: var(--surface-3); color: var(--text); word-wrap: break-word; white-space: pre-wrap; }
.msg .msg-meta { font-size: 11.5px; color: var(--faint); margin-top: 4px; }
.msg.me { margin-left: auto; flex-direction: row-reverse; }
.msg.me .bubble { background: var(--brand-1); background: var(--brand-grad); color: #fff; border-bottom-right-radius: 6px; }
.msg.me .msg-meta { text-align: right; }
.msg.them .bubble { border-bottom-left-radius: 6px; }
.msg-event { align-self: center; display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 650; padding: 8px 14px; border-radius: 99px; border: 1px solid; max-width: 92%; text-align: center; }
.msg-event.approved { background: var(--success-bg); color: var(--success); border-color: var(--success-bd); }
.msg-event.changes { background: var(--warning-bg); color: var(--warning); border-color: var(--warning-bd); }
.msg-event.reopened { background: var(--info-bg); color: var(--info); border-color: var(--info-bd); }
.msg-event-note { align-self: center; max-width: 86%; font-size: 14px; background: var(--surface-2); border: 1px dashed var(--border-strong); padding: 10px 14px; border-radius: 14px; white-space: pre-wrap; }
.composer { display: flex; gap: var(--s2); padding: var(--s3); border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.composer textarea { flex: 1; min-height: 46px; max-height: 160px; resize: none; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); color: var(--text); font: inherit; }
.composer textarea:focus { outline: none; border-color: var(--brand-1); box-shadow: 0 0 0 4px var(--brand-ring); }

/* Timeline */
.timeline { position: relative; display: flex; flex-direction: column; }
.tl-day { font-size: 12px; font-weight: 750; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); padding: var(--s4) 0 var(--s2); }
.tl-item { display: flex; gap: var(--s3); position: relative; padding-bottom: var(--s4); }
.tl-item::before { content: ""; position: absolute; left: 17px; top: 38px; bottom: 0; width: 2px; background: var(--border); }
.tl-item:last-child::before { display: none; }
.tl-icon { width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.tl-body { flex: 1; min-width: 0; padding-top: 6px; }
.tl-body .tl-title { font-weight: 650; font-size: 14px; }
.tl-body .tl-sub { font-size: 13px; color: var(--muted); }

/* Kanban */
.kanban { display: grid; grid-template-columns: repeat(3, minmax(260px, 1fr)); gap: var(--s4); overflow-x: auto; align-items: start; }
.k-col { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: var(--s3); display: flex; flex-direction: column; gap: var(--s3); min-height: 200px; }
.k-col-head { display: flex; align-items: center; gap: 8px; padding: 6px 6px 2px; font-weight: 750; font-size: 14px; }
.k-card { padding: var(--s4); display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none !important; }

/* Dropzone */
.dropzone {
  position: relative; border: 2px dashed var(--border-strong); border-radius: var(--radius-lg); padding: var(--s6) var(--s5);
  text-align: center; background: var(--surface-2); cursor: pointer; transition: border-color .15s, background .15s;
}
.dropzone:hover, .dropzone.drag { border-color: var(--brand-1); background: var(--brand-soft); }
.dropzone input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.dropzone .dz-icon { width: 56px; height: 56px; margin: 0 auto var(--s3); border-radius: 16px; display: grid; place-items: center; background: var(--surface); color: var(--brand-1); box-shadow: var(--shadow-sm); }
.file-pills { display: flex; flex-direction: column; gap: 8px; margin-top: var(--s3); text-align: left; }
.file-pill { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border); font-size: 13.5px; }

/* Dropdown / popover */
.dropdown { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 260px; z-index: 60;
  background: var(--surface); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow-lg);
  padding: 6px; display: none; animation: menuIn .16s var(--ease);
}
.menu.open { display: block; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; color: var(--text-2); font: inherit; font-size: 14px; font-weight: 600; background: none; border: 0; cursor: pointer; text-decoration: none !important; text-align: left; }
.menu a:hover, .menu button:hover { background: var(--surface-3); color: var(--text); }
.menu-head { padding: 10px 12px; border-bottom: 1px solid var(--border); margin-bottom: 6px; }
.notif-menu { width: min(380px, calc(100vw - 24px)); padding: 0; }
.notif-menu .menu-head { display: flex; align-items: center; margin: 0; padding: 14px 16px; }
.notif-list { max-height: 420px; overflow-y: auto; }
.notif { display: flex; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none !important; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--brand-soft); }
.notif .notif-title { font-size: 13.5px; font-weight: 650; color: var(--text); }
.notif .notif-sub { font-size: 12.5px; color: var(--muted); }
@keyframes menuIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* Modal */
.modal-backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(2, 6, 23, .55); backdrop-filter: blur(4px); display: none; align-items: center; justify-content: center; padding: var(--s4); }
.modal-backdrop.open { display: flex; animation: fade .15s; }
.modal { width: 100%; max-width: 520px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); animation: modalIn .22s var(--ease); max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-head { display: flex; align-items: center; gap: var(--s3); padding: var(--s5) var(--s5) 0; }
.modal-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.modal-foot { display: flex; gap: var(--s2); justify-content: flex-end; padding: 0 var(--s5) var(--s5); }
@keyframes modalIn { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* Toasts */
.toasts { position: fixed; z-index: 100; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: center; min-width: 260px; max-width: 380px; padding: 14px 16px; border-radius: 14px; background: #0f172a; color: #fff; font-size: 14px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toastIn .25s var(--ease); }
.toast.success .icon { color: #34d399; } .toast.error .icon { color: #f87171; } .toast.info .icon { color: #93c5fd; }
.toast.out { animation: toastOut .2s forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* Manager card */
.manager { display: flex; gap: var(--s4); align-items: center; }
.manager .avatar-lg { border-radius: 50%; }
.presence { width: 10px; height: 10px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 3px var(--surface); display: inline-block; }

/* Agenda */
.agenda-date { width: 52px; height: 56px; border-radius: 14px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--brand-soft); color: var(--brand-1); font-weight: 800; font-size: 18px; line-height: 1; }
.agenda-date small { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; margin-top: 4px; }

/* Auth pages */
.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.auth-art {
  position: relative; overflow: hidden; padding: var(--s7); color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  background: #0b0b1a;
}
.auth-art::before { content: ""; position: absolute; inset: -20%; background:
  radial-gradient(40% 40% at 20% 20%, rgba(99, 102, 241, .75), transparent 70%),
  radial-gradient(35% 35% at 80% 30%, rgba(139, 92, 246, .6), transparent 70%),
  radial-gradient(40% 40% at 60% 85%, rgba(6, 182, 212, .55), transparent 70%);
  filter: blur(30px); animation: drift 18s ease-in-out infinite alternate; }
.auth-art::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.auth-art > * { position: relative; z-index: 1; }
.auth-art .brand-name { color: #fff; }
.auth-art .brand-name small { color: rgba(255, 255, 255, .7); }
.auth-art h2 { color: #fff; font-size: clamp(28px, 3.4vw, 44px); font-weight: 800; letter-spacing: -.035em; line-height: 1.1; max-width: 520px; }
.auth-art p.lead { color: rgba(255, 255, 255, .78); font-size: 16px; max-width: 460px; margin-top: var(--s4); }
.float-card { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); backdrop-filter: blur(16px); border-radius: 20px; padding: var(--s4); color: #fff; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .5); }
.float-wrap { position: relative; height: 230px; margin-top: var(--s6); max-width: 480px; }
.float-wrap .float-card { position: absolute; }
.float-a { left: 0; top: 0; width: 300px; animation: bob 6s ease-in-out infinite; }
.float-b { right: 0; bottom: 0; width: 250px; animation: bob 7s ease-in-out -2s infinite; }
.auth-points { display: flex; gap: var(--s5); flex-wrap: wrap; font-size: 13.5px; color: rgba(255, 255, 255, .8); }
.auth-points span { display: inline-flex; align-items: center; gap: 8px; }
.auth-form { display: flex; align-items: center; justify-content: center; padding: var(--s6) var(--s5); background: var(--bg); background-image: var(--bg-accent); position: relative; }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 28px; }
.auth-card .sub { color: var(--muted); margin: 8px 0 var(--s5); }
.auth-top { position: absolute; top: var(--s4); right: var(--s4); display: flex; gap: 8px; }
@keyframes bob { 50% { transform: translateY(-10px); } }
@keyframes drift { to { transform: translate(4%, -3%) rotate(6deg); } }

/* Onboarding wizard */
.wizard-steps { display: flex; gap: 8px; margin-bottom: var(--s5); }
.wizard-steps span { flex: 1; height: 6px; border-radius: 99px; background: var(--surface-3); transition: background .3s; }
.wizard-steps span.on { background: var(--brand-grad); }
.wstep { display: none; }
.wstep.active { display: block; animation: fade .3s; }
.choice-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; }
.choice label { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--border-strong); background: var(--surface); font-weight: 650; font-size: 14px; cursor: pointer; transition: all .15s; }
.choice input:checked + label { border-color: var(--brand-1); background: var(--brand-soft); color: var(--brand-1); }
.choice input:focus-visible + label { box-shadow: 0 0 0 4px var(--brand-ring); }

/* Utility: skeleton shimmer */
.skeleton { background: linear-gradient(90deg, var(--surface-3) 25%, var(--surface-2) 37%, var(--surface-3) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Floating WhatsApp */
.fab-wa { position: fixed; right: 20px; bottom: 20px; z-index: 35; width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: #25d366; color: #fff; box-shadow: 0 12px 28px -8px rgba(37, 211, 102, .7); transition: transform .2s var(--ease); }
.fab-wa:hover { transform: scale(1.06); }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-main { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1024px) {
  .sidebar { display: none; }
  .main { margin-left: 0; }
  .topbar { padding: 0 var(--s4); }
  .topbar .mobile-brand { display: flex; }
  .topbar-title .crumb { display: none; }
  .content { padding: var(--s5) var(--s4) calc(var(--tabbar-h) + var(--s6)); }
  .tabbar {
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: var(--glass); backdrop-filter: saturate(180%) blur(16px); -webkit-backdrop-filter: saturate(180%) blur(16px);
    border-top: 1px solid var(--border);
  }
  .tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 14px; color: var(--muted); font-size: 11px; font-weight: 650; text-decoration: none !important; min-height: 44px; }
  .tabbar a.active { color: var(--brand-1); }
  .tabbar a.active::before { content: ""; position: absolute; top: 2px; width: 32px; height: 3px; border-radius: 3px; background: var(--brand-grad); }
  .tabbar a .count { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: #ef4444; color: #fff; font-size: 10.5px; font-weight: 800; display: grid; place-items: center; }
  .fab-wa { bottom: calc(var(--tabbar-h) + 16px); width: 50px; height: 50px; }
  .toasts { bottom: calc(var(--tabbar-h) + 16px); left: 12px; right: 12px; }
  .toast { max-width: none; }
  .auth { grid-template-columns: 1fr; }
  .auth-art { padding: var(--s5); min-height: auto; }
  .auth-art .float-wrap, .auth-art .auth-points, .auth-art p.lead { display: none; }
  .auth-art h2 { font-size: 24px; margin-top: var(--s4); }
  .auth-form { flex-direction: column; justify-content: flex-start; padding-top: var(--s4); }
  .auth-top { position: static; align-self: flex-end; margin-bottom: var(--s4); }
}
@media (max-width: 720px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); }
  .grid { gap: var(--s4); }
  .stat { padding: var(--s4); }
  .stat-value { font-size: 24px; }
  .stat-icon { width: 34px; height: 34px; }
  .card-pad, .card-body { padding: var(--s4); }
  .card-head { padding: var(--s3) var(--s4); }
  .hero { padding: var(--s5); border-radius: var(--radius-lg); }
  .page-head .actions { margin-left: 0; width: 100%; }
  .page-head .actions .btn { flex: 1; }
  .table-cards thead { display: none; }
  .table-cards tr { display: block; padding: var(--s3) var(--s4); border-bottom: 1px solid var(--border); }
  .table-cards td { display: flex; justify-content: space-between; gap: var(--s3); padding: 6px 0; border: 0; text-align: right; }
  .table-cards td::before { content: attr(data-label); font-size: 12px; font-weight: 700; color: var(--muted); text-align: left; text-transform: uppercase; letter-spacing: .04em; }
  .table-cards td.td-main { display: block; text-align: left; }
  .table-cards td.td-main::before { display: none; }
  .msg { max-width: 94%; }
  .step { font-size: 10.5px; }
  .step::before { width: 28px; height: 28px; }
  .step::after { top: 13px; }
  .kanban { grid-template-columns: repeat(3, 84vw); scroll-snap-type: x mandatory; }
  .k-col { scroll-snap-align: start; }
  .modal-backdrop { align-items: flex-end; padding: 0; }
  .modal { border-radius: var(--radius-xl) var(--radius-xl) 0 0; max-height: 92vh; }
  .decision .btn { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
}
@media print {
  .sidebar, .topbar, .tabbar, .fab-wa, .no-print { display: none !important; }
  .main { margin: 0; }
  body { background: #fff; }
  .card { box-shadow: none; break-inside: avoid; }
}

@media (max-width: 720px) { .hide-sm { display: none !important; } }
