/* =========================================================
   Pulso — Design System
   DNA: fundo neutro profundo, cards de vidro com borda em
   gradiente, cards sólidos de cor viva, cantos 24px, Geist.
   ========================================================= */
@import url("../assets/css2_86e10c4bcbd4.css");
@import url("../assets/css2_62759cd015bd.css");

:root {
  --bg: #0a0a0a;
  --bg-2: #111113;
  --bg-3: #18181b;
  --panel: #141416;
  --line: rgba(255, 255, 255, 0.08);
  --line-2: rgba(255, 255, 255, 0.14);
  --text: #fafafa;
  --text-2: #d4d4d4;
  --muted: #a3a3a3;
  --subtle: #737373;

  --cyan: #06b6d4;
  --cyan-2: #22d3ee;
  --cyan-3: #a5f3fc;
  --sky: #0284c7;
  --sky-2: #38bdf8;
  --emerald: #059669;
  --emerald-2: #34d399;
  --yellow: #facc15;
  --yellow-2: #fde047;
  --purple: #a855f7;
  --purple-2: #c084fc;
  --rose: #f43f5e;
  --rose-2: #fb7185;
  --orange: #f97316;
  --orange-2: #fb923c;
  --amber: #fbbf24;

  --primary: var(--cyan);
  --primary-2: var(--cyan-2);

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 24px;
  --r-pill: 999px;

  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 80px -20px rgba(0, 0, 0, 0.8);
  --glass: linear-gradient(135deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.01));
  --glass-border: linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.02));

  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --sidebar-w: 264px;
  --topbar-h: 64px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }
::selection { background: rgba(34, 211, 238, 0.35); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan-2); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.1); border-radius: 99px; border: 3px solid transparent; background-clip: content-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, 0.2); }

.iconify { width: 1em; height: 1em; flex-shrink: 0; display: inline-block; vertical-align: -0.125em; }
span.iconify:empty { display: inline-block; }

/* ---------- Typography ---------- */
.eyebrow { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.14em; color: var(--muted); }
.h1 { font-size: clamp(24px, 2.4vw, 30px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.15; }
.h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.2; }
.h3 { font-size: 16px; font-weight: 600; letter-spacing: -0.01em; }
.h4 { font-size: 14px; font-weight: 600; }
.big-num { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.text-2 { color: var(--text-2); }
.small { font-size: 12px; }
.xs { font-size: 11px; }
.mono { font-family: var(--mono); }
.tnum { font-variant-numeric: tabular-nums; }
.strong { font-weight: 600; }
.medium { font-weight: 500; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.up { color: var(--emerald-2); }
.down { color: var(--rose-2); }
.link { color: var(--cyan-2); }
.link:hover { text-decoration: underline; }
.text-cyan { color: var(--cyan-2); } .text-emerald { color: var(--emerald-2); } .text-yellow { color: var(--yellow); }
.text-purple { color: var(--purple-2); } .text-rose { color: var(--rose-2); } .text-sky { color: var(--sky-2); } .text-orange { color: var(--orange-2); }

/* ---------- Layout utilities ---------- */
.row { display: flex; align-items: center; }
.col { display: flex; flex-direction: column; }
.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.center { justify-content: center; align-items: center; }
.start { align-items: flex-start; }
.end { justify-content: flex-end; }
.grow { flex: 1 1 auto; min-width: 0; }
.shrink-0 { flex-shrink: 0; }
.gap-1 { gap: 4px; } .gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-5 { gap: 20px; } .gap-6 { gap: 24px; }
.mt-1 { margin-top: 4px; } .mt-2 { margin-top: 8px; } .mt-3 { margin-top: 12px; } .mt-4 { margin-top: 16px; } .mt-5 { margin-top: 20px; } .mt-6 { margin-top: 24px; } .mt-8 { margin-top: 32px; }
.mb-1 { margin-bottom: 4px; } .mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 12px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.ml-auto { margin-left: auto; }
.w-full { width: 100%; }
.relative { position: relative; }
.hide-sm { }
.grid { display: grid; gap: 16px; }
.g-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-12 { grid-template-columns: repeat(12, minmax(0, 1fr)); }
.span-2 { grid-column: span 2; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; }
.span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; } .span-8 { grid-column: span 8; } .span-12 { grid-column: 1 / -1; }
.divider { height: 1px; background: var(--line); border: 0; margin: 16px 0; }
.vr { width: 1px; align-self: stretch; background: var(--line); }

@media (max-width: 1180px) {
  .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-12 > [class*="span-"] { grid-column: span 12; }
  .g-12 > .span-md-6 { grid-column: span 6; }
}
@media (max-width: 760px) {
  .g-2, .g-3, .g-4 { grid-template-columns: minmax(0, 1fr); }
  .g-4.keep-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-12 > .span-md-6 { grid-column: span 12; }
  .hide-sm { display: none !important; }
}

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--glass);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  isolation: isolate;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: inherit;
  background: var(--glass-border);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  z-index: -1;
}
.card-pad { padding: 20px; }
.card-pad-lg { padding: 24px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.card-sm { border-radius: var(--r-md); }
.card-flat { background: rgba(255, 255, 255, 0.025); border: 1px solid var(--line); border-radius: var(--r-md); }
.card-hover { transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.25s; }
.card-hover:hover { transform: translateY(-2px); background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02)); box-shadow: var(--shadow-lg); }
.card-click { cursor: pointer; }

/* Solid tone cards (cards vivos do tema) */
.tone { border: 1px solid rgba(255, 255, 255, 0.16); border-radius: var(--r-xl); box-shadow: var(--shadow); position: relative; overflow: hidden; }
.tone-cyan { background: var(--cyan); box-shadow: 0 20px 40px -18px rgba(8, 145, 178, 0.6); }
.tone-emerald { background: var(--emerald); box-shadow: 0 20px 40px -18px rgba(6, 95, 70, 0.6); }
.tone-sky { background: var(--sky); box-shadow: 0 20px 40px -18px rgba(7, 89, 133, 0.6); }
.tone-purple { background: #9333ea; box-shadow: 0 20px 40px -18px rgba(88, 28, 135, 0.6); }
.tone-yellow { background: var(--yellow); color: #422006; box-shadow: 0 20px 40px -18px rgba(113, 63, 18, 0.6); }
.tone-rose { background: #e11d48; box-shadow: 0 20px 40px -18px rgba(136, 19, 55, 0.6); }
.tone-orange { background: #ea580c; box-shadow: 0 20px 40px -18px rgba(124, 45, 18, 0.6); }
.tone .eyebrow { color: rgba(255, 255, 255, 0.78); }
.tone-yellow .eyebrow { color: rgba(66, 32, 6, 0.75); }
.tone .muted { color: rgba(255, 255, 255, 0.8); }
.tone-yellow .muted { color: rgba(66, 32, 6, 0.78); }

/* Icon tiles */
.ic {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 36px; height: 36px; border-radius: 14px; font-size: 18px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); color: var(--text);
}
.ic-sm { width: 28px; height: 28px; border-radius: 10px; font-size: 15px; }
.ic-lg { width: 44px; height: 44px; border-radius: 16px; font-size: 22px; }
.ic-cyan { background: var(--cyan); border-color: rgba(165, 243, 252, 0.6); color: #fff; }
.ic-emerald { background: var(--emerald); border-color: rgba(110, 231, 183, 0.6); color: #fff; }
.ic-sky { background: #0ea5e9; border-color: rgba(125, 211, 252, 0.7); color: #fff; }
.ic-purple { background: rgba(168, 85, 247, 0.85); border-color: rgba(216, 180, 254, 0.7); color: #fff; }
.ic-yellow { background: var(--yellow); border-color: rgba(254, 240, 138, 0.8); color: #422006; }
.ic-rose { background: var(--rose); border-color: rgba(253, 164, 175, 0.7); color: #fff; }
.ic-orange { background: var(--orange); border-color: rgba(253, 186, 116, 0.7); color: #fff; }
.ic-glass { background: rgba(255, 255, 255, 0.15); border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--r-pill);
  font-size: 13px; font-weight: 500; white-space: nowrap; line-height: 1;
  background: #262626; color: var(--text); border: 1px solid var(--line);
  transition: background 0.2s, border-color 0.2s, transform 0.15s, box-shadow 0.2s, opacity 0.2s;
  user-select: none;
}
.btn:hover { background: #333; border-color: rgba(255, 255, 255, 0.2); }
.btn:active { transform: scale(0.98); }
.btn .iconify { font-size: 16px; }
.btn-primary { background: var(--cyan); color: #fff; border-color: rgba(165, 243, 252, 0.45); box-shadow: 0 8px 24px -10px rgba(6, 182, 212, 0.8); }
.btn-primary:hover { background: #0bc5e6; border-color: rgba(165, 243, 252, 0.7); }
.btn-white { background: #fff; color: #0a0a0a; border-color: #fff; }
.btn-white:hover { background: #e5e5e5; border-color: #e5e5e5; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); border-color: transparent; color: var(--text); }
.btn-outline { background: transparent; border-color: var(--line-2); }
.btn-outline:hover { background: rgba(255, 255, 255, 0.05); }
.btn-danger { background: rgba(244, 63, 94, 0.14); color: var(--rose-2); border-color: rgba(244, 63, 94, 0.35); }
.btn-danger:hover { background: var(--rose); color: #fff; border-color: var(--rose); }
.btn-success { background: var(--emerald); color: #fff; border-color: rgba(110, 231, 183, 0.5); }
.btn-success:hover { background: #10b981; }
.btn-glass { background: rgba(255, 255, 255, 0.15); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.btn-glass:hover { background: rgba(255, 255, 255, 0.24); border-color: rgba(255, 255, 255, 0.45); }
.btn-sm { height: 30px; padding: 0 11px; font-size: 12px; }
.btn-xs { height: 24px; padding: 0 9px; font-size: 11px; gap: 4px; }
.btn-xs .iconify { font-size: 13px; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 14px; }
.btn-icon { width: 36px; padding: 0; }
.btn-icon.btn-sm { width: 30px; }
.btn-icon.btn-xs { width: 24px; }
.btn[disabled], .btn.is-disabled { opacity: 0.45; pointer-events: none; }
.btn.is-loading { pointer-events: none; color: transparent !important; position: relative; }
.btn.is-loading::after {
  content: ""; position: absolute; width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; animation: spin 0.7s linear infinite;
}
.btn-white.is-loading::after { border-color: rgba(0, 0, 0, 0.2); border-top-color: #000; }
.btn-group { display: inline-flex; gap: 6px; flex-wrap: wrap; }

/* ---------- Badges / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px;
  border-radius: var(--r-pill); font-size: 11px; font-weight: 500; white-space: nowrap;
  background: rgba(255, 255, 255, 0.07); color: var(--text-2); border: 1px solid var(--line);
}
.badge .iconify { font-size: 12px; }
.badge-dot::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-cyan { background: rgba(6, 182, 212, 0.14); color: var(--cyan-2); border-color: rgba(34, 211, 238, 0.3); }
.badge-emerald { background: rgba(16, 185, 129, 0.14); color: var(--emerald-2); border-color: rgba(52, 211, 153, 0.3); }
.badge-yellow { background: rgba(250, 204, 21, 0.14); color: var(--yellow-2); border-color: rgba(250, 204, 21, 0.3); }
.badge-purple { background: rgba(168, 85, 247, 0.16); color: var(--purple-2); border-color: rgba(192, 132, 252, 0.3); }
.badge-rose { background: rgba(244, 63, 94, 0.14); color: var(--rose-2); border-color: rgba(251, 113, 133, 0.3); }
.badge-sky { background: rgba(56, 189, 248, 0.14); color: var(--sky-2); border-color: rgba(56, 189, 248, 0.3); }
.badge-orange { background: rgba(249, 115, 22, 0.14); color: var(--orange-2); border-color: rgba(251, 146, 60, 0.3); }
.badge-neutral { background: rgba(255, 255, 255, 0.06); color: var(--muted); }
.badge-solid { background: #fff; color: #0a0a0a; border-color: #fff; }
.badge.is-live::before { animation: pulse-dot 1.8s infinite; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 12px; border-radius: var(--r-pill);
  font-size: 12px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text-2);
}
.chip button { display: inline-flex; color: var(--subtle); font-size: 14px; }
.chip button:hover { color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); flex-shrink: 0; }
.dot-cyan { background: var(--cyan-2); } .dot-emerald { background: var(--emerald-2); } .dot-yellow { background: var(--yellow); }
.dot-purple { background: var(--purple-2); } .dot-rose { background: var(--rose-2); } .dot-sky { background: var(--sky-2); } .dot-orange { background: var(--orange-2); }
.dot-pulse { box-shadow: 0 0 0 0 currentColor; animation: pulse-dot 1.8s infinite; }
.kbd { display: inline-flex; align-items: center; height: 20px; padding: 0 6px; border-radius: 6px; font-size: 11px; font-family: var(--mono); color: var(--muted); background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.label { font-size: 12px; font-weight: 500; color: var(--text-2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.hint { font-size: 11px; color: var(--subtle); }
.error-text { font-size: 11px; color: var(--rose-2); }
.input, .select, .textarea {
  width: 100%; height: 38px; padding: 0 12px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line-2); color: var(--text);
  font-size: 13px; outline: none; transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.input::placeholder, .textarea::placeholder { color: var(--subtle); }
.input:hover, .select:hover, .textarea:hover { border-color: rgba(255, 255, 255, 0.22); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--cyan-2); background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15); }
.input.is-invalid { border-color: var(--rose-2); box-shadow: 0 0 0 3px rgba(244, 63, 94, 0.15); }
.textarea { height: auto; min-height: 92px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a3a3a3' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
}
.select option { background: #18181b; color: var(--text); }
.input-sm, .select-sm { height: 32px; font-size: 12px; border-radius: 10px; }
.input-icon { position: relative; display: flex; align-items: center; }
.input-icon > .iconify { position: absolute; left: 12px; font-size: 16px; color: var(--subtle); pointer-events: none; }
.input-icon > .input { padding-left: 36px; }
.input-color { width: 38px; height: 38px; padding: 3px; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: rgba(255, 255, 255, 0.04); cursor: pointer; }
.input-color::-webkit-color-swatch-wrapper { padding: 0; }
.input-color::-webkit-color-swatch { border: 0; border-radius: 8px; }
.form-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.form-grid .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }

.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; color: var(--text-2); user-select: none; }
.check input {
  appearance: none; -webkit-appearance: none; width: 16px; height: 16px; margin: 0; border-radius: 5px; flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.28); background: rgba(255, 255, 255, 0.04); cursor: pointer; display: grid; place-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.check input::after { content: ""; width: 8px; height: 5px; border: 2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) scale(0); transition: transform 0.15s; margin-top: -2px; }
.check input:checked { background: var(--cyan); border-color: var(--cyan-2); }
.check input:checked::after { transform: rotate(-45deg) scale(1); }
.check input:indeterminate { background: var(--cyan); border-color: var(--cyan-2); }
.check input:indeterminate::after { width: 8px; height: 0; border-left: 0; transform: none; margin: 0; }
.check input[type="radio"] { border-radius: 50%; }
.check input[type="radio"]::after { width: 6px; height: 6px; border: 0; border-radius: 50%; background: #fff; transform: scale(0); margin: 0; }
.check input[type="radio"]:checked::after { transform: scale(1); }

.switch { position: relative; display: inline-flex; width: 40px; height: 24px; flex-shrink: 0; cursor: pointer; }
.switch input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.switch span { position: absolute; inset: 0; border-radius: 99px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.2); transition: background 0.2s; pointer-events: none; }
.switch span::after { content: ""; position: absolute; left: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.25s var(--ease); }
.switch input:checked + span { background: var(--emerald); border-color: rgba(110, 231, 183, 0.6); }
.switch input:checked + span::after { transform: translateX(16px); }
.switch input:focus-visible + span { outline: 2px solid var(--cyan-2); outline-offset: 2px; }

input[type="range"].range { width: 100%; accent-color: var(--cyan); }

/* Segmented control */
.seg { display: inline-flex; padding: 3px; gap: 2px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); }
.seg button { height: 28px; padding: 0 12px; border-radius: var(--r-pill); font-size: 12px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: background 0.2s, color 0.2s; white-space: nowrap; }
.seg button:hover { color: var(--text); }
.seg button.active { background: #fff; color: #0a0a0a; }

/* Tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; height: 40px; padding: 0 12px; font-size: 13px; font-weight: 500; color: var(--muted); display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; transition: color 0.2s; }
.tab:hover { color: var(--text); }
.tab.active { color: var(--text); }
.tab.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--cyan-2); }
.tab .count { font-size: 11px; color: var(--subtle); background: rgba(255, 255, 255, 0.06); padding: 1px 7px; border-radius: 99px; }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--r-md); }
.table { font-size: 13px; }
.table th {
  text-align: left; font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--subtle);
  padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: rgba(255, 255, 255, 0.015);
}
.table th.sortable { cursor: pointer; user-select: none; }
.table th.sortable:hover { color: var(--text-2); }
.table td { padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.05); vertical-align: middle; }
.table tbody tr { transition: background 0.15s; }
.table tbody tr:hover { background: rgba(255, 255, 255, 0.03); }
.table tbody tr.is-selected { background: rgba(34, 211, 238, 0.06); }
.table tbody tr:last-child td { border-bottom: 0; }
.table .num { text-align: right; font-variant-numeric: tabular-nums; }
.table tr.clickable { cursor: pointer; }
.table .w-check { width: 36px; padding-right: 0; }

/* ---------- Progress ---------- */
.progress { height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: inherit; background: var(--cyan-2); transition: width 0.8s var(--ease); }
.progress.emerald > span { background: var(--emerald-2); } .progress.yellow > span { background: var(--yellow); }
.progress.purple > span { background: var(--purple-2); } .progress.rose > span { background: var(--rose-2); } .progress.sky > span { background: var(--sky-2); }
.progress.lg { height: 10px; }

/* ---------- Avatars ---------- */
.avatar {
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 32px; height: 32px; border-radius: 50%; font-size: 12px; font-weight: 600; color: #fff;
  background: #333; border: 1px solid rgba(255, 255, 255, 0.18); overflow: hidden; letter-spacing: 0.02em;
}
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar-xs { width: 22px; height: 22px; font-size: 9px; }
.avatar-sm { width: 26px; height: 26px; font-size: 10px; }
.avatar-lg { width: 48px; height: 48px; font-size: 16px; }
.avatar-xl { width: 72px; height: 72px; font-size: 24px; }
.avatar-stack { display: inline-flex; }
.avatar-stack .avatar { margin-left: -8px; border: 2px solid var(--bg); }
.avatar-stack .avatar:first-child { margin-left: 0; }

/* ---------- Page structure (app) ---------- */
.app-bg {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(6, 182, 212, 0.13), transparent 60%),
    radial-gradient(700px 500px at -10% 30%, rgba(168, 85, 247, 0.08), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(5, 150, 105, 0.08), transparent 60%),
    var(--bg);
}
.app { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); min-height: 100vh; }

.sidebar {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px;
  padding: 16px 14px; border-right: 1px solid var(--line); background: rgba(10, 10, 10, 0.72);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); z-index: 40; overflow-y: auto;
}
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 14px; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; color: #fff;
  background: linear-gradient(135deg, var(--cyan-2), var(--cyan) 45%, #0e7490); border: 1px solid rgba(165, 243, 252, 0.5);
  box-shadow: 0 8px 20px -8px rgba(6, 182, 212, 0.9);
}
.brand-mark svg { width: 20px; height: 20px; }
.brand-name { font-size: 18px; font-weight: 600; letter-spacing: -0.03em; }
.workspace {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; margin-bottom: 8px; border-radius: 14px;
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); width: 100%; text-align: left; transition: background 0.2s;
}
.workspace:hover { background: rgba(255, 255, 255, 0.07); }
.nav-group { margin-top: 10px; }
.nav-label { padding: 6px 10px; font-size: 10px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.16em; color: var(--subtle); }
.nav-link {
  position: relative; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 12px;
  font-size: 13px; font-weight: 500; color: var(--muted); transition: background 0.2s, color 0.2s;
}
.nav-link .iconify { font-size: 18px; }
.nav-link:hover { background: rgba(255, 255, 255, 0.05); color: var(--text); }
.nav-link.active { background: rgba(255, 255, 255, 0.08); color: var(--text); }
.nav-link.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--cyan-2); box-shadow: 0 0 12px var(--cyan-2); }
.nav-link.active .iconify { color: var(--cyan-2); }
.nav-link .nav-count { margin-left: auto; font-size: 11px; color: var(--subtle); }
.nav-link .nav-new { margin-left: auto; }
.sidebar-foot { margin-top: auto; padding-top: 12px; }
.plan-card { padding: 14px; border-radius: 18px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--topbar-h); display: flex; align-items: center; gap: 12px;
  padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(10, 10, 10, 0.7);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); min-width: 0; }
.crumbs a:hover { color: var(--text); }
.crumbs .iconify { font-size: 14px; color: var(--subtle); }
.crumbs strong { color: var(--text); font-weight: 500; }
.search-trigger {
  display: flex; align-items: center; gap: 10px; height: 36px; width: 280px; max-width: 100%; padding: 0 8px 0 12px; border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); color: var(--subtle); font-size: 13px; transition: background 0.2s, border-color 0.2s;
}
.search-trigger:hover { background: rgba(255, 255, 255, 0.07); border-color: var(--line-2); }
.search-trigger .kbd { margin-left: auto; }
.icon-btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 50%;
  color: var(--text-2); font-size: 19px; border: 1px solid transparent; transition: background 0.2s, border-color 0.2s;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.06); border-color: var(--line); color: var(--text); }
.icon-btn .ping { position: absolute; top: 7px; right: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--rose); border: 2px solid var(--bg); }
.menu-toggle { display: none; }
.sync-state { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.sync-state .iconify { font-size: 15px; }
.app-notice { margin: 16px 28px 0; align-items: center; }
@media (max-width: 760px) { .app-notice { flex-wrap: wrap; } }
.app-notice > .iconify { font-size: 20px; flex-shrink: 0; }
@media (max-width: 1024px) { .app-notice { margin: 12px 16px 0; } }

.view { padding: 28px; width: 100%; max-width: 1480px; margin: 0 auto; flex: 1; }
.view.full { max-width: none; padding: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head .h1 { margin-top: 6px; }
.page-head p.muted { margin-top: 6px; max-width: 640px; }
.page-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.toolbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }

.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.6); z-index: 39; opacity: 0; pointer-events: none; transition: opacity 0.3s; }

@media (max-width: 1024px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform 0.35s var(--ease); background: rgba(12, 12, 13, 0.97); }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .scrim { opacity: 1; pointer-events: auto; }
  .menu-toggle { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .search-trigger { width: 40px; padding: 0; justify-content: center; }
  .search-trigger span:not(.iconify), .search-trigger .kbd { display: none; }
  .view { padding: 20px 16px 40px; }
}
@media (max-width: 560px) {
  .crumbs .crumb-parent { display: none; }
  .topbar .hide-xs { display: none !important; }
}

/* ---------- KPI / stat ---------- */
.kpi { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; min-height: 132px; justify-content: space-between; }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.trend { display: inline-flex; align-items: center; gap: 3px; height: 22px; padding: 0 8px; border-radius: 99px; font-size: 11px; font-weight: 500; background: #262626; border: 1px solid var(--line); }
.trend.up { color: var(--emerald-2); }
.trend.down { color: var(--rose-2); }
.tone .trend { background: rgba(255, 255, 255, 0.16); border-color: rgba(255, 255, 255, 0.3); color: #fff; }

/* ---------- Lists ---------- */
.list-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); }
.list-row:last-child { border-bottom: 0; }
.list-row.clickable { cursor: pointer; margin: 0 -10px; padding: 12px 10px; border-radius: 12px; border-bottom-color: transparent; }
.list-row.clickable:hover { background: rgba(255, 255, 255, 0.04); }

/* ---------- Empty / skeleton ---------- */
.empty { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 48px 20px; gap: 10px; }
.empty .ic { margin-bottom: 6px; }
.empty p { max-width: 380px; color: var(--muted); font-size: 13px; }
.empty-art { position: relative; width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: 8px; }
.empty-art::before { content: ""; position: absolute; inset: 0; border-radius: 28px; background: radial-gradient(circle at 30% 30%, rgba(34, 211, 238, 0.25), transparent 70%); border: 1px dashed rgba(255, 255, 255, 0.15); animation: float 5s ease-in-out infinite; }
.empty-art .iconify { font-size: 40px; color: var(--cyan-2); position: relative; }
.skel { position: relative; overflow: hidden; background: rgba(255, 255, 255, 0.06); border-radius: 10px; }
.skel::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.07), transparent); animation: shimmer 1.3s infinite; }
.skel-line { height: 12px; }
.skel-title { height: 26px; width: 40%; }
.skel-card { height: 132px; border-radius: var(--r-xl); }
.skel-block { height: 300px; border-radius: var(--r-xl); }
.spinner { width: 20px; height: 20px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.15); border-top-color: var(--cyan-2); animation: spin 0.7s linear infinite; }

/* ---------- Overlays: modal / drawer ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px;
  background: rgba(0, 0, 0, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  animation: fade-in 0.2s ease both;
}
.overlay.closing { animation: fade-out 0.18s ease both; }
.modal {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100vh - 40px); display: flex; flex-direction: column;
  background: linear-gradient(180deg, #19191c, #121214); border: 1px solid var(--line-2); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); animation: pop-in 0.3s var(--ease) both; overflow: hidden;
}
.overlay.closing .modal { animation: pop-out 0.18s ease both; }
.modal-sm { max-width: 420px; } .modal-lg { max-width: 760px; } .modal-xl { max-width: 1040px; }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 20px 22px 0; }
.modal-head .h3 { font-size: 17px; }
.modal-body { padding: 18px 22px; overflow-y: auto; }
.modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, 0.02); flex-wrap: wrap; }
.overlay.is-drawer { justify-content: flex-end; padding: 0; }
.overlay.is-drawer .modal { max-width: 480px; height: 100vh; max-height: 100vh; border-radius: 24px 0 0 24px; animation: slide-in-right 0.35s var(--ease) both; }
.overlay.is-drawer.closing .modal { animation: slide-out-right 0.2s ease both; }
.overlay.is-drawer .modal-body { flex: 1; }
@media (max-width: 560px) {
  .overlay { padding: 0; align-items: flex-end; }
  .modal { max-height: 92vh; border-radius: 24px 24px 0 0; animation: sheet-up 0.35s var(--ease) both; }
  .overlay.is-drawer .modal { max-width: 100%; border-radius: 24px 24px 0 0; height: 92vh; animation: sheet-up 0.35s var(--ease) both; }
}

/* Dropdown menu */
.menu {
  position: fixed; z-index: 120; min-width: 200px; padding: 6px; border-radius: 16px;
  background: #18181b; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: pop-in 0.16s var(--ease) both;
}
.menu-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 10px; font-size: 13px; color: var(--text-2); text-align: left; }
.menu-item:hover, .menu-item:focus-visible { background: rgba(255, 255, 255, 0.07); color: var(--text); outline: none; }
.menu-item .iconify { font-size: 16px; color: var(--muted); }
.menu-item.danger { color: var(--rose-2); }
.menu-item.danger .iconify { color: var(--rose-2); }
.menu-item.danger:hover { background: rgba(244, 63, 94, 0.12); }
.menu-sep { height: 1px; background: var(--line); margin: 6px 4px; }
.menu-label { padding: 6px 10px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--subtle); }

/* Popover panel (notificações etc.) */
.popover { position: fixed; z-index: 110; width: 380px; max-width: calc(100vw - 24px); border-radius: 20px; background: #161618; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); animation: pop-in 0.2s var(--ease) both; overflow: hidden; }

/* Toasts */
.toasts { position: fixed; right: 20px; bottom: 20px; z-index: 200; display: flex; flex-direction: column; gap: 10px; pointer-events: none; }
.toast {
  pointer-events: auto; display: flex; align-items: center; gap: 12px; min-width: 280px; max-width: 420px; padding: 12px 14px 12px 12px;
  border-radius: 16px; background: #1c1c1f; border: 1px solid var(--line-2); box-shadow: var(--shadow-lg); font-size: 13px;
  animation: toast-in 0.35s var(--ease) both;
}
.toast.out { animation: toast-out 0.25s ease both; }
.toast .ic { width: 30px; height: 30px; font-size: 16px; border-radius: 10px; }
@media (max-width: 560px) { .toasts { left: 12px; right: 12px; bottom: 12px; } .toast { min-width: 0; max-width: none; } }

/* Tooltip */
[data-tip] { position: relative; }
[data-tip]:hover::after {
  content: attr(data-tip); position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 60;
  padding: 5px 9px; border-radius: 8px; background: #fff; color: #0a0a0a; font-size: 11px; font-weight: 500; white-space: nowrap; pointer-events: none;
  animation: fade-in 0.15s ease both;
}

/* Command palette */
.cmdk { max-width: 620px; align-self: flex-start; margin-top: 10vh; }
.cmdk-input { display: flex; align-items: center; gap: 12px; padding: 16px 18px; border-bottom: 1px solid var(--line); }
.cmdk-input input { flex: 1; background: none; border: 0; outline: none; font-size: 16px; }
.cmdk-input .iconify { font-size: 20px; color: var(--muted); }
.cmdk-list { max-height: 420px; overflow-y: auto; padding: 8px; }
.cmdk-group { padding: 8px 10px 4px; font-size: 10px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--subtle); }
.cmdk-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px; border-radius: 12px; text-align: left; font-size: 13px; color: var(--text-2); }
.cmdk-item.active, .cmdk-item:hover { background: rgba(255, 255, 255, 0.07); color: var(--text); }
.cmdk-item .ic { width: 30px; height: 30px; font-size: 15px; border-radius: 10px; }
.cmdk-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 11px; color: var(--subtle); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: 100%; overflow: visible; }
.chart .grid-line { stroke: rgba(255, 255, 255, 0.06); stroke-width: 1; }
.chart .axis-label { fill: var(--subtle); font-size: 10px; font-family: var(--font); }
.chart .hover-line { stroke: rgba(255, 255, 255, 0.25); stroke-dasharray: 3 3; }
.chart-tip {
  position: absolute; z-index: 5; pointer-events: none; padding: 8px 10px; border-radius: 12px; min-width: 120px;
  background: rgba(24, 24, 27, 0.96); border: 1px solid var(--line-2); box-shadow: var(--shadow); font-size: 12px;
  transform: translate(-50%, -110%); transition: opacity 0.12s; white-space: nowrap;
}
.chart-tip .tip-row { display: flex; align-items: center; gap: 8px; justify-content: space-between; }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.bars-css { display: grid; align-items: end; gap: 6px; height: 120px; }
.bars-css > div { border-radius: 99px; background: rgba(255, 255, 255, 0.12); transition: height 0.8s var(--ease); min-height: 4px; }

/* ---------- Misc ---------- */
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: rgba(6, 182, 212, 0.08); border: 1px solid rgba(34, 211, 238, 0.22); font-size: 13px; color: var(--text-2); }
.callout.warn { background: rgba(250, 204, 21, 0.08); border-color: rgba(250, 204, 21, 0.25); }
.callout.danger { background: rgba(244, 63, 94, 0.08); border-color: rgba(244, 63, 94, 0.25); }
.callout.success { background: rgba(16, 185, 129, 0.08); border-color: rgba(52, 211, 153, 0.25); }
.code {
  font-family: var(--mono); font-size: 12px; line-height: 1.6; padding: 14px 16px; border-radius: var(--r-md); background: #0d0d0f;
  border: 1px solid var(--line); color: #e4e4e7; overflow-x: auto; white-space: pre;
}
.steps { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.step { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--subtle); }
.step .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 600; border: 1px solid var(--line-2); }
.step.active { color: var(--text); }
.step.active .n { background: var(--cyan); border-color: var(--cyan-2); color: #fff; }
.step.done .n { background: var(--emerald); border-color: var(--emerald-2); color: #fff; }
.step-sep { width: 24px; height: 1px; background: var(--line-2); }
.pill-toggle { display: inline-flex; align-items: center; gap: 6px; }
.drag-handle { cursor: grab; color: var(--subtle); }
.drag-handle:active { cursor: grabbing; }
.is-dragging { opacity: 0.5; }
.drop-target { outline: 2px dashed var(--cyan-2); outline-offset: 2px; }

/* ---------- Animations ---------- */
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes pop-out { to { opacity: 0; transform: translateY(6px) scale(0.98); } }
@keyframes slide-in-right { from { transform: translateX(100%); } to { transform: none; } }
@keyframes slide-out-right { to { transform: translateX(100%); } }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: none; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(16px) scale(0.96); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateX(30px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-6px) rotate(3deg); } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
@keyframes draw { from { stroke-dashoffset: var(--len, 1000); } to { stroke-dashoffset: 0; } }

.view-enter > * { animation: rise 0.5s var(--ease) both; }
.view-enter > *:nth-child(2) { animation-delay: 0.04s; }
.view-enter > *:nth-child(3) { animation-delay: 0.08s; }
.view-enter > *:nth-child(4) { animation-delay: 0.12s; }
.view-enter > *:nth-child(5) { animation-delay: 0.16s; }
.view-enter > *:nth-child(n+6) { animation-delay: 0.2s; }
.stagger > * { animation: rise 0.5s var(--ease) both; }
.stagger > *:nth-child(2) { animation-delay: 0.05s; } .stagger > *:nth-child(3) { animation-delay: 0.1s; }
.stagger > *:nth-child(4) { animation-delay: 0.15s; } .stagger > *:nth-child(5) { animation-delay: 0.2s; }
.stagger > *:nth-child(6) { animation-delay: 0.25s; } .stagger > *:nth-child(n+7) { animation-delay: 0.3s; }

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