/* ═══════════════════════════════════════════════════════════════
   CRM — interface (mesma linguagem do Vinci, do Meet e do Cine Studio:
   preto e branco, serifada editorial nos títulos, vermelho de assinatura)
   ═══════════════════════════════════════════════════════════════ */
:root {
  --bg: #f6f6f4; --surface: #ffffff; --surface-2: #f1f1ef; --surface-3: #e8e8e5;
  --text: #0a0a0a; --muted: #62625e; --dim: #9b9b96;
  --line: color-mix(in srgb, var(--text) 9%, transparent); --line-2: color-mix(in srgb, var(--text) 17%, transparent);
  --accent: #0a0a0a; --accent-ink: #ffffff;
  --red: #e5383b; --red-soft: color-mix(in srgb, var(--red) 12%, transparent);
  --ok: #12a150; --warn: #d98a00; --info: #2f6fed;
  --serif: 'Instrument Serif', 'Times New Roman', serif; --sans: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif; --mono: 'Space Grotesk', Inter, sans-serif;
  --shadow: 0 24px 48px -24px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.04);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.05), 0 4px 14px -8px rgba(0,0,0,.12);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --side: 248px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0b; --surface: #131315; --surface-2: #19191c; --surface-3: #232327;
  --text: #f4f4f2; --muted: #a2a29d; --dim: #6c6c68; --accent: #f4f4f2; --accent-ink: #0a0a0a;
  --shadow: 0 24px 48px -24px rgba(0,0,0,.85); --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -10px rgba(0,0,0,.7);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0b; --surface: #131315; --surface-2: #19191c; --surface-3: #232327;
    --text: #f4f4f2; --muted: #a2a29d; --dim: #6c6c68; --accent: #f4f4f2; --accent-ink: #0a0a0a;
    --shadow: 0 24px 48px -24px rgba(0,0,0,.85); --shadow-sm: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px -10px rgba(0,0,0,.7);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }
p { margin: 0; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.num, .tab-num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
.ic { display: inline-grid; place-items: center; width: var(--s, 18px); height: var(--s, 18px); flex: none; }
.ic svg { width: 100%; height: 100%; }
.red { color: var(--red); }
.ok { color: var(--ok); }
.up { color: var(--ok); }
.down { color: var(--red); }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ───── marca ───── */
.brand { display: inline-flex; align-items: baseline; font: 700 22px/1 var(--mono); letter-spacing: -.045em; text-decoration: none; color: inherit; user-select: none; }
.brand i { font-style: normal; color: var(--red); }
.brand.xl { font-size: 30px; }

/* ───── botões e campos ───── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); font-weight: 600; font-size: 13.5px; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s, transform .15s var(--ease), opacity .2s; position: relative; }
.btn:hover { border-color: var(--text); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .45; pointer-events: none; }
.btn .ic { --s: 17px; }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { opacity: .88; }
.btn.red { background: var(--red); border-color: var(--red); color: #fff; }
.btn.red:hover { opacity: .9; }
.btn.danger { background: transparent; border-color: color-mix(in srgb, var(--red) 50%, transparent); color: var(--red); }
.btn.danger:hover { background: var(--red); color: #fff; }
.btn.won { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn.lg { height: 48px; padding: 0 24px; font-size: 15px; }
.btn.icon { width: 38px; padding: 0; }
.btn.loading { color: transparent !important; }
.btn.loading::after { content: ''; position: absolute; width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-color: var(--muted) transparent var(--muted) transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.icon-btn { width: 36px; height: 36px; display: inline-grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: inherit; padding: 0; flex: none; transition: background .2s; position: relative; }
.icon-btn:hover { background: var(--surface-3); }
.icon-btn.sm { width: 30px; height: 30px; }
.icon-btn.sm .ic { --s: 16px; }
.link { border: 0; background: none; padding: 0; color: var(--muted); font-weight: 500; text-decoration: none; cursor: pointer; }
.link:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.input, .select { width: 100%; height: 40px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); outline: none; transition: border-color .2s, box-shadow .2s; min-width: 0; }
.select { padding-right: 30px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 14px; }
textarea.input { height: auto; padding: 10px 12px; resize: vertical; line-height: 1.45; }
.input:focus, .select:focus { border-color: var(--text); box-shadow: 0 0 0 3px color-mix(in srgb, var(--text) 8%, transparent); }
.input.sm, .select.sm { height: 32px; font-size: 13px; border-radius: 9px; }
.input.num { text-align: right; font-variant-numeric: tabular-nums; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field .label { font-size: 12px; font-weight: 600; color: var(--muted); }
.field .hint { color: var(--dim); font-size: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px 14px; }
.span2 { grid-column: span 2; }
.span3 { grid-column: 1 / -1; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.nowrap { flex-wrap: nowrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.check { display: flex; gap: 10px; align-items: center; font-size: 13.5px; cursor: pointer; }
.check input { accent-color: var(--text); width: 16px; height: 16px; margin: 0; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); }
.seg button { border: 0; background: none; height: 30px; padding: 0 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .2s, color .2s; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow-sm); }
.seg button:hover:not(.on) { color: var(--text); }

/* ───── combo (busca com sugestões) ───── */
.combo { position: relative; }
.combo-drop { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 30; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 4px; display: none; max-height: 260px; overflow: auto; }
.combo-drop.open { display: block; }
.combo-item { width: 100%; display: flex; flex-direction: column; align-items: flex-start; border: 0; background: none; text-align: left; padding: 8px 10px; border-radius: 8px; }
.combo-item.add { flex-direction: row; align-items: center; gap: 6px; color: var(--muted); font-weight: 600; }
.combo-item small { color: var(--muted); font-size: 12px; }
.combo-item:hover, .combo-item.on { background: var(--surface-2); }

/* ───── avatar ───── */
.avatar { --h: 220; width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; background: hsl(var(--h) 30% 40%); color: #fff; font-weight: 600; font-size: 12px; letter-spacing: .02em; user-select: none; }
.avatar.xs { width: 22px; height: 22px; font-size: 9.5px; }
.avatar.sm { width: 26px; height: 26px; font-size: 10.5px; }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 64px; height: 64px; font-size: 22px; }
.who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }

/* ───── avisos, menus e janelas ───── */
.toasts { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 900; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: min(560px, calc(100vw - 24px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 14px; padding: 11px 12px 11px 18px; border-radius: 14px; background: #17181c; color: #f1f1f1; box-shadow: 0 18px 40px -14px rgba(0,0,0,.5); font-size: 13.5px; opacity: 0; transform: translateY(10px) scale(.98); transition: opacity .25s, transform .3s var(--ease); max-width: 100%; }
.toast.in { opacity: 1; transform: none; }
.toast.error { background: #3a1214; }
.toast.ok span::before { content: '✓  '; color: #6ee7a8; }
.toast span { flex: 1; min-width: 0; }
.toast button { border: 0; background: none; color: #fff; text-decoration: underline; text-underline-offset: 3px; font-weight: 600; padding: 4px 6px; white-space: nowrap; }
.menu { position: fixed; z-index: 800; min-width: 220px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); overflow: auto; padding: 6px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); opacity: 0; transform: translateY(4px); transition: opacity .15s, transform .2s var(--ease); }
.menu.in { opacity: 1; transform: none; }
.menu-item { width: 100%; display: flex; align-items: center; gap: 11px; padding: 8px 11px; border: 0; border-radius: 9px; background: none; color: inherit; text-align: left; font-size: 13.5px; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.on { font-weight: 600; }
.menu-item.on::after { content: '✓'; margin-left: auto; }
.menu-item.danger { color: var(--red); }
.menu-item:disabled { opacity: .5; cursor: default; }
.menu-item .mi { display: grid; place-items: center; opacity: .75; }
.menu-item .mi .ic { --s: 17px; }
.menu-item small { margin-left: auto; color: var(--dim); }
.menu-sep { height: 1px; background: var(--line); margin: 5px 6px; }
.menu-title { padding: 8px 11px 4px; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); }
.modal-back { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; padding: 16px; background: rgba(8,9,12,.45); backdrop-filter: blur(5px); opacity: 0; transition: opacity .2s; }
.modal-back.in { opacity: 1; }
.modal { width: min(500px, 100%); max-height: calc(100dvh - 32px); display: flex; flex-direction: column; border-radius: 20px; background: var(--surface); color: var(--text); box-shadow: var(--shadow); transform: translateY(10px) scale(.985); transition: transform .3s var(--ease); }
.modal-back.in .modal { transform: none; }
.modal.wide { width: min(760px, 100%); }
.modal.xwide { width: min(1040px, 100%); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 18px 6px 24px; }
.modal-head h3 { font-family: var(--serif); font-size: 28px; line-height: 1.1; }
.modal-body { padding: 10px 24px 8px; overflow: auto; }
.modal-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; flex-wrap: wrap; }
.modal-foot .left { margin-right: auto; }

/* ═════════════════ estrutura ═════════════════ */
.app { height: 100dvh; display: grid; grid-template-columns: var(--side) minmax(0, 1fr); }
.side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--surface); min-height: 0; z-index: 50; }
.side-head { height: 64px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px 0 22px; flex: none; }
.side-org { margin: 0 12px 6px; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); display: flex; align-items: center; gap: 10px; min-width: 0; }
.side-org b { font-size: 13px; }
.side-org small { display: block; color: var(--muted); font-size: 11.5px; }
.nav { flex: 1; overflow: auto; padding: 8px 10px 14px; display: flex; flex-direction: column; gap: 2px; }
.nav-sec { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--dim); padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 12px; height: 38px; padding: 0 12px; border-radius: 10px; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 13.5px; transition: background .15s, color .15s; position: relative; }
.nav a .ic { --s: 18px; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--surface-3); color: var(--text); font-weight: 600; }
.nav a.on::before { content: ''; position: absolute; left: -10px; top: 9px; bottom: 9px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.nav a .count { margin-left: auto; font-size: 11.5px; font-weight: 600; color: var(--red); font-variant-numeric: tabular-nums; }
.side-foot { padding: 10px 12px 14px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.side-foot .who { flex: 1; cursor: pointer; padding: 6px; border-radius: 10px; }
.side-foot .who:hover { background: var(--surface-2); }
.side-foot .who b { display: block; font-size: 13px; }
.side-foot .who small { display: block; color: var(--muted); font-size: 11.5px; }
.main { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.top { height: 64px; flex: none; display: flex; align-items: center; gap: 12px; padding: 0 clamp(14px, 2.4vw, 32px); border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--bg) 85%, transparent); backdrop-filter: blur(12px); z-index: 20; }
.top .burger { display: none; }
.search-btn { flex: 1; max-width: 520px; height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--dim); font-size: 13.5px; text-align: left; transition: border-color .2s; }
.search-btn:hover { border-color: var(--line-2); }
.search-btn kbd { margin-left: auto; font: 600 11px var(--mono); color: var(--dim); border: 1px solid var(--line-2); border-radius: 6px; padding: 2px 6px; }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.dot-badge { position: absolute; top: 6px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: var(--red); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--bg); }
.view { flex: 1; overflow: auto; min-height: 0; position: relative; }
.page { padding: clamp(18px, 2.6vw, 34px) clamp(14px, 2.6vw, 34px) 60px; max-width: 1480px; margin: 0 auto; animation: pageIn .35s var(--ease); }
.page.full { max-width: none; }
@keyframes pageIn { from { opacity: 0; transform: translateY(6px); } }
.page-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; }
.page-head h1 { font-family: var(--serif); font-size: clamp(32px, 3.4vw, 46px); line-height: 1; letter-spacing: -.01em; }
.page-head h1 em { color: var(--muted); }
.page-head p { color: var(--muted); margin-top: 6px; }
.page-head .actions { margin-left: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 16px; }
.toolbar .input, .toolbar .select { width: auto; }
.toolbar .grow { flex: 1; min-width: 200px; max-width: 360px; }
.scrim { display: none; }

/* ───── cartões e números ───── */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; min-width: 0; }
.card.flat { padding: 0; overflow: hidden; }
.card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.card-head h3 { font-size: 15px; font-weight: 600; }
.card-head .sub { color: var(--muted); font-size: 12.5px; }
.card-head .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.cards { display: grid; gap: 14px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; position: relative; overflow: hidden; min-width: 0; }
.kpi .k-label { color: var(--muted); font-size: 12.5px; font-weight: 500; display: flex; align-items: center; gap: 6px; }
.kpi .k-val { font: 600 clamp(22px, 2vw, 28px)/1.1 var(--mono); letter-spacing: -.03em; margin: 10px 0 6px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kpi .k-foot { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.kpi .delta { font-weight: 600; display: inline-flex; align-items: center; gap: 2px; }
.kpi .delta .ic { --s: 13px; }
.kpi.hero { background: #0b0b0d; color: #f4f4f2; border-color: #0b0b0d; }
:root[data-theme="dark"] .kpi.hero { background: #f4f4f2; color: #0a0a0a; border-color: #f4f4f2; }
.kpi.hero .k-label, .kpi.hero .k-foot { color: color-mix(in srgb, currentColor 65%, transparent); }
.kpi .bar { height: 5px; border-radius: 3px; background: color-mix(in srgb, currentColor 12%, transparent); margin-top: 12px; overflow: hidden; }
.kpi .bar i { display: block; height: 100%; background: var(--red); border-radius: 3px; transition: width 1.2s var(--ease); }
.dash-grid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 14px; }
.dash-grid > .wide { grid-column: 1 / -1; }
.chart { position: relative; width: 100%; }
.chart canvas { width: 100%; display: block; }
.chart-tip { position: absolute; pointer-events: none; background: #111; color: #fff; padding: 7px 10px; border-radius: 9px; font-size: 12px; white-space: nowrap; transform: translate(-50%, -110%); opacity: 0; transition: opacity .15s; z-index: 2; }
.chart-tip.in { opacity: 1; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }

/* ───── listas ───── */
.list { display: flex; flex-direction: column; }
.li { display: flex; align-items: center; gap: 12px; padding: 11px 4px; border-bottom: 1px solid var(--line); min-width: 0; }
.li:last-child { border-bottom: 0; }
.li.click { cursor: pointer; border-radius: 10px; padding-left: 8px; padding-right: 8px; }
.li.click:hover { background: var(--surface-2); }
.li .grow { flex: 1; min-width: 0; }
.li .t { font-weight: 600; font-size: 13.5px; }
.li .s { color: var(--muted); font-size: 12.5px; }
.li .v { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.empty { text-align: center; padding: 44px 20px; color: var(--muted); }
.empty .ic { --s: 34px; color: var(--dim); margin-bottom: 10px; }
.empty h4 { font-family: var(--serif); font-size: 26px; color: var(--text); margin-bottom: 6px; }
.empty p { max-width: 420px; margin: 0 auto 16px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.open { color: var(--info); }
.status.won { color: var(--ok); }
.status.lost { color: var(--red); }
.tagline { color: var(--muted); font-size: 12px; }

/* ───── tabela ───── */
.table-wrap { overflow: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--dim); padding: 12px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; position: sticky; top: 0; background: var(--surface); z-index: 1; cursor: default; user-select: none; }
.tbl th.sort { cursor: pointer; }
.tbl th.sort:hover { color: var(--text); }
.tbl th.asc::after { content: ' ↑'; } .tbl th.desc::after { content: ' ↓'; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .12s; }
.tbl tbody tr:hover { background: var(--surface-2); }
.tbl .r { text-align: right; }
.tbl td.t { font-weight: 600; }
.tbl td .s { color: var(--muted); font-size: 12px; font-weight: 400; }
.tbl-foot { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12.5px; }

/* ═════════════════ funil (kanban) ═════════════════ */
.board-wrap { height: 100%; display: flex; flex-direction: column; min-height: 0; }
.board-head { padding: 18px clamp(14px, 2.4vw, 32px) 12px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.board-head h1 { font-family: var(--serif); font-size: clamp(30px, 3vw, 40px); line-height: 1; margin-right: 8px; }
.board-sum { color: var(--muted); font-size: 13px; }
.board-sum b { color: var(--text); font-variant-numeric: tabular-nums; }
.board { flex: 1; min-height: 0; display: flex; gap: 12px; overflow-x: auto; padding: 4px clamp(14px, 2.4vw, 32px) 18px; scroll-snap-type: x proximity; }
.col { flex: 0 0 292px; display: flex; flex-direction: column; min-height: 0; background: var(--surface-2); border-radius: 16px; border: 1px solid var(--line); scroll-snap-align: start; transition: background .2s; }
.col.drop { background: color-mix(in srgb, var(--text) 6%, var(--surface-2)); }
.col-head { padding: 13px 14px 10px; }
.col-head .row1 { display: flex; align-items: center; gap: 8px; }
.col-head b { font-size: 13.5px; }
.col-head .n { color: var(--dim); font-size: 12px; font-weight: 600; }
.col-head .tot { font: 600 13px var(--mono); margin-top: 4px; font-variant-numeric: tabular-nums; display: flex; align-items: baseline; gap: 6px; }
.col-head .tot small { color: var(--dim); font: 500 11.5px var(--sans); }
.col-head .prob { height: 3px; border-radius: 2px; background: var(--line); margin-top: 10px; overflow: hidden; }
.col-head .prob i { display: block; height: 100%; background: var(--text); opacity: .7; }
.col-body { flex: 1; overflow-y: auto; padding: 2px 10px 10px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.col-add { margin: 0 10px 10px; border: 1px dashed var(--line-2); background: none; border-radius: 10px; height: 36px; color: var(--muted); font-weight: 600; font-size: 12.5px; display: flex; align-items: center; justify-content: center; gap: 6px; }
.col-add:hover { color: var(--text); border-color: var(--text); }
.dcard { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 11px 12px; cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; touch-action: manipulation; box-shadow: 0 1px 1px rgba(0,0,0,.03); transition: box-shadow .2s, transform .2s var(--ease), opacity .2s; position: relative; }
.dcard:hover { box-shadow: var(--shadow-sm); }
.dcard.hot::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--red); }
.dcard .t { font-weight: 600; font-size: 13px; line-height: 1.35; }
.dcard .c { color: var(--muted); font-size: 12px; margin-top: 2px; }
.dcard .f { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.dcard .v { font: 600 13px var(--mono); font-variant-numeric: tabular-nums; }
.dcard .flags { margin-left: auto; display: flex; align-items: center; gap: 6px; color: var(--dim); font-size: 11.5px; }
.dcard .flags .late { color: var(--red); font-weight: 600; }
.dcard .flags .rot { color: var(--warn); font-weight: 600; }
.dcard .flags .ic { --s: 14px; }
.dcard.ghost { opacity: .35; }
.dcard.drag { position: fixed; z-index: 700; pointer-events: none; transform: rotate(2.5deg) scale(1.03); box-shadow: 0 24px 50px -18px rgba(0,0,0,.45); cursor: grabbing; }
.ph { border: 2px dashed var(--line-2); border-radius: 12px; background: color-mix(in srgb, var(--text) 3%, transparent); flex: none; }
.dropbar { position: fixed; left: 50%; bottom: 22px; transform: translate(-50%, 140%); z-index: 690; display: flex; gap: 10px; transition: transform .35s var(--ease); }
.dropbar.in { transform: translate(-50%, 0); }
.dz { width: 200px; height: 64px; border-radius: 16px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; color: #fff; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); transition: transform .2s var(--ease), filter .2s; border: 2px solid transparent; }
.dz.won { background: var(--ok); } .dz.lost { background: var(--red); } .dz.del { background: #26272b; }
.dz.over { transform: scale(1.07); border-color: #fff; }

/* ═════════════════ painel lateral de detalhes ═════════════════ */
.drawer-back { position: fixed; inset: 0; z-index: 500; background: rgba(8,9,12,.32); opacity: 0; transition: opacity .25s; }
.drawer-back.in { opacity: 1; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 510; width: min(1020px, 100vw); background: var(--bg); box-shadow: -30px 0 60px -30px rgba(0,0,0,.4); transform: translateX(100%); transition: transform .38s var(--ease); display: flex; flex-direction: column; }
.drawer.in { transform: none; }
.dr-head { padding: 18px 24px 16px; border-bottom: 1px solid var(--line); background: var(--surface); }
.dr-top { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; margin-bottom: 10px; }
.dr-top .right { margin-left: auto; display: flex; gap: 6px; align-items: center; }
.dr-title { display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.dr-title h2 { font-family: var(--serif); font-size: clamp(28px, 3vw, 38px); line-height: 1.05; flex: 1; min-width: 240px; outline: none; border-radius: 6px; }
.dr-title h2[contenteditable]:hover { background: var(--surface-2); }
.dr-title .val { font: 600 26px var(--mono); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.dr-meta { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; color: var(--muted); font-size: 13px; align-items: center; }
.dr-meta > * { display: inline-flex; align-items: center; gap: 6px; }
.stages { display: flex; gap: 3px; margin-top: 16px; }
.stages button { flex: 1; min-width: 0; height: 30px; border: 0; background: var(--surface-3); color: var(--muted); font-size: 11.5px; font-weight: 600; padding: 0 8px; clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%, 9px 50%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .2s, color .2s; }
.stages button:first-child { clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 50%, calc(100% - 9px) 100%, 0 100%); border-radius: 8px 0 0 8px; }
.stages button:last-child { clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, 9px 50%); border-radius: 0 8px 8px 0; }
.stages button.done { background: var(--text); color: var(--bg); }
.stages button.cur { background: var(--red); color: #fff; }
.stages button:hover:not(.cur) { filter: brightness(.94); }
.dr-body { flex: 1; overflow: auto; display: grid; grid-template-columns: 340px minmax(0, 1fr); align-items: start; }
.dr-side { padding: 18px 20px 40px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 16px; min-height: 100%; }
.dr-main { padding: 18px 24px 40px; min-width: 0; }
.box { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; }
.box h4 { font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); font-weight: 600; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.box h4 .right { margin-left: auto; text-transform: none; letter-spacing: 0; }
.kv { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 4px 10px; font-size: 13px; align-items: center; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.kv dd .inl { width: 100%; border: 1px solid transparent; background: none; border-radius: 7px; padding: 4px 6px; margin-left: -6px; text-align: left; min-height: 28px; display: block; color: inherit; }
.kv dd .inl:hover { border-color: var(--line-2); }
.kv dd .inl.empty-v { color: var(--dim); }
.kv dd input.inl, .kv dd select.inl { border-color: var(--text); outline: none; background: var(--surface); }
.quick { display: flex; gap: 6px; flex-wrap: wrap; }
.quick a, .quick button { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: 12.5px; font-weight: 600; text-decoration: none; color: var(--text); }
.quick a:hover, .quick button:hover { border-color: var(--text); }
.quick .ic { --s: 14px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 12px; font-weight: 600; font-size: 13px; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tabs button.on { color: var(--text); border-bottom-color: var(--red); }
.tabs button small { color: var(--dim); font-weight: 600; }
.composer { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 20px; }
.composer textarea { border: 0; padding: 4px; min-height: 64px; box-shadow: none !important; background: none; }
.composer .row { justify-content: flex-end; }
.act-types { display: flex; gap: 4px; flex-wrap: wrap; }
.act-types button { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 11px; border-radius: 999px; border: 1px solid var(--line); background: none; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.act-types button.on { border-color: var(--text); color: var(--text); background: var(--surface-2); }
.act-types .ic { --s: 15px; }
.timeline { position: relative; padding-left: 26px; }
.timeline::before { content: ''; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 1px; background: var(--line-2); }
.tl { position: relative; padding: 0 0 18px; }
.tl .dot { position: absolute; left: -26px; top: 0; width: 21px; height: 21px; border-radius: 50%; background: var(--surface); border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--muted); }
.tl .dot .ic { --s: 12px; }
.tl.won .dot { background: var(--ok); border-color: var(--ok); color: #fff; }
.tl.lost .dot { background: var(--red); border-color: var(--red); color: #fff; }
.tl .head { font-size: 13px; color: var(--muted); }
.tl .head b { color: var(--text); font-weight: 600; }
.tl .when { color: var(--dim); font-size: 12px; margin-left: 6px; }
.tl .note { margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 13px; white-space: pre-wrap; font-size: 13.5px; position: relative; }
.tl .note .del { position: absolute; top: 4px; right: 4px; opacity: 0; }
.tl .note:hover .del { opacity: 1; }
.tl-day { font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 4px 0 12px -26px; }

/* ───── atividades ───── */
.act { display: flex; align-items: flex-start; gap: 12px; padding: 11px 10px; border-radius: 12px; transition: background .12s; }
.act:hover { background: var(--surface-2); }
.act .chk { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 1.6px solid var(--line-2); background: none; display: grid; place-items: center; color: transparent; padding: 0; margin-top: 1px; transition: all .2s; }
.act .chk:hover { border-color: var(--ok); color: var(--ok); }
.act.done .chk { background: var(--ok); border-color: var(--ok); color: #fff; }
.act.done .t { text-decoration: line-through; color: var(--dim); }
.act .chk .ic { --s: 13px; }
.act .ti { width: 30px; height: 30px; border-radius: 9px; background: var(--surface-2); display: grid; place-items: center; flex: none; color: var(--muted); }
.act .ti .ic { --s: 16px; }
.act .grow { flex: 1; min-width: 0; cursor: pointer; }
.act .t { font-weight: 600; font-size: 13.5px; }
.act .s { color: var(--muted); font-size: 12.5px; display: flex; gap: 10px; flex-wrap: wrap; margin-top: 1px; }
.act .when { font-size: 12.5px; font-weight: 600; white-space: nowrap; color: var(--muted); }
.act .when.late { color: var(--red); }
.act .when.today { color: var(--text); }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); margin: 18px 10px 6px; }
.group-title.late { color: var(--red); }
.group-title span { color: var(--dim); font-weight: 600; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); }
.cal .dow { padding: 10px; font-size: 11.5px; font-weight: 600; color: var(--dim); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 116px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; cursor: pointer; }
.cal .day:nth-child(7n) { border-right: 0; }
.cal .day.out { background: var(--surface-2); color: var(--dim); }
.cal .day .dn { font-size: 12px; font-weight: 600; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; }
.cal .day.today .dn { background: var(--red); color: #fff; }
.cal .ev { font-size: 11.5px; padding: 3px 6px; border-radius: 6px; background: var(--surface-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 2px solid var(--text); }
.cal .ev.done { opacity: .5; text-decoration: line-through; }
.cal .ev.late { border-left-color: var(--red); }
.cal .more { font-size: 11px; color: var(--muted); padding-left: 4px; }

/* ═════════════════ ranking ═════════════════ */
.rank-page { padding: 0; max-width: none; }
.rank-stage { position: relative; height: min(64vh, 620px); min-height: 420px; background: radial-gradient(120% 90% at 50% 0%, #1b1c22 0%, #08080a 60%, #050506 100%); overflow: hidden; color: #f4f4f2; }
.rank-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.rank-hud { position: absolute; left: 0; right: 0; top: 0; padding: 22px clamp(16px, 3vw, 36px); display: flex; align-items: flex-start; gap: 14px; flex-wrap: wrap; z-index: 2; pointer-events: none; }
.rank-hud > * { pointer-events: auto; }
.rank-hud h1 { font-family: var(--serif); font-size: clamp(34px, 4vw, 54px); line-height: 1; }
.rank-hud h1 em { color: rgba(255,255,255,.5); }
.rank-hud p { color: rgba(255,255,255,.6); margin-top: 6px; font-size: 13.5px; }
.rank-hud .ctr { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.rank-hud .seg { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.1); }
.rank-hud .seg button { color: rgba(255,255,255,.6); }
.rank-hud .seg button.on { background: #fff; color: #0a0a0a; }
.rank-hud .select { background-color: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); color: #fff; height: 36px; width: auto; }
.rank-hud .select option { color: #000; }
.rank-hud .btn { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #fff; height: 36px; }
.rank-hud .btn:hover { border-color: #fff; }
.pod-labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.pod-label { position: absolute; transform: translate(-50%, -100%); text-align: center; opacity: 0; transition: opacity .6s; width: 220px; }
.pod-label.in { opacity: 1; }
.pod-label b { display: block; font-size: 15px; font-weight: 600; text-shadow: 0 2px 12px rgba(0,0,0,.6); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pod-label span { display: block; font: 600 22px var(--mono); letter-spacing: -.03em; margin-top: 2px; text-shadow: 0 2px 16px rgba(0,0,0,.7); font-variant-numeric: tabular-nums; }
.pod-label small { display: block; color: rgba(255,255,255,.55); font-size: 12px; margin-top: 2px; }
.pod-label.p1 span { font-size: 28px; color: #ffd76a; }
.rank-totals { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; gap: clamp(16px, 4vw, 54px); justify-content: center; padding: 16px; background: linear-gradient(0deg, rgba(5,5,6,.9), rgba(5,5,6,0)); flex-wrap: wrap; }
.rank-totals div { text-align: center; }
.rank-totals small { color: rgba(255,255,255,.55); font-size: 12px; display: block; }
.rank-totals b { font: 600 20px var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.rank-body { padding: 24px clamp(14px, 2.6vw, 34px) 60px; max-width: 1480px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 14px; }
.lb { display: flex; flex-direction: column; gap: 6px; }
.lb-row { display: grid; grid-template-columns: 44px minmax(0, 1.4fr) minmax(0, 1fr) 120px; align-items: center; gap: 14px; padding: 12px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); opacity: 0; transform: translateY(14px); animation: lbIn .6s var(--ease) forwards; position: relative; overflow: hidden; }
.lb-row.me { border-color: var(--text); }
@keyframes lbIn { to { opacity: 1; transform: none; } }
.lb-pos { font: 700 20px var(--mono); text-align: center; color: var(--dim); font-variant-numeric: tabular-nums; }
.lb-row:nth-child(1) .lb-pos { color: #d4a514; } .lb-row:nth-child(2) .lb-pos { color: #9aa3ad; } .lb-row:nth-child(3) .lb-pos { color: #b87333; }
.lb-who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.lb-who b { display: block; font-size: 14px; }
.lb-who small { display: block; color: var(--muted); font-size: 12px; }
.lb-mov { font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; }
.lb-mov .ic { --s: 12px; }
.lb-bar { height: 8px; border-radius: 4px; background: var(--surface-3); overflow: hidden; }
.lb-bar i { display: block; height: 100%; width: 0; border-radius: 4px; background: var(--text); transition: width 1.4s var(--ease); }
.lb-row:nth-child(1) .lb-bar i { background: linear-gradient(90deg, #b8860b, #ffd76a); }
.lb-goal { font-size: 11.5px; color: var(--muted); margin-top: 5px; }
.lb-val { text-align: right; font: 600 16px var(--mono); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lb-val small { display: block; font: 500 11.5px var(--sans); color: var(--muted); letter-spacing: 0; }
.tv .side, .tv .top { display: none; }
.tv .app { grid-template-columns: 1fr; }
.tv .rank-stage { height: 100dvh; }
.tv .rank-body { display: none; }

/* ───── metas ───── */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.goal-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; }
.goal-card .head { display: flex; align-items: center; gap: 12px; }
.goal-card .head b { display: block; } .goal-card .head small { color: var(--muted); font-size: 12px; }
.ring { position: relative; width: 112px; height: 112px; flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .bg { stroke: var(--surface-3); }
.ring .fg { stroke: var(--text); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--ease); }
.ring.hit .fg { stroke: var(--ok); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .lbl b { font: 700 22px var(--mono); letter-spacing: -.03em; display: block; }
.ring .lbl small { color: var(--muted); font-size: 11px; }
.goal-lines { flex: 1; display: flex; flex-direction: column; gap: 10px; font-size: 12.5px; }
.goal-lines .gl-top { display: flex; justify-content: space-between; color: var(--muted); }
.goal-lines .gl-top b { color: var(--text); font-variant-numeric: tabular-nums; }
.mini-bar { height: 5px; border-radius: 3px; background: var(--surface-3); overflow: hidden; margin-top: 4px; }
.mini-bar i { display: block; height: 100%; background: var(--text); border-radius: 3px; transition: width 1.2s var(--ease); }
.mini-bar.hit i { background: var(--ok); }

/* ───── relatórios ───── */
.rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 160px) minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; padding: 5px 0; }
.hbar .track { height: 10px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.hbar .track i { display: block; height: 100%; border-radius: 5px; background: var(--text); transition: width 1s var(--ease); }
.hbar .track i.red { background: var(--red); }
.hbar .v { font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.funnel-viz { display: flex; flex-direction: column; gap: 6px; align-items: center; }
.fz { height: 46px; border-radius: 10px; background: var(--text); color: var(--bg); display: flex; align-items: center; justify-content: space-between; padding: 0 16px; font-size: 13px; font-weight: 600; min-width: 220px; transition: width 1s var(--ease); }
.fz small { opacity: .7; font-weight: 500; }

/* ───── equipe e configurações ───── */
.set-grid { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; align-items: start; }
.set-nav { display: flex; flex-direction: column; gap: 2px; position: sticky; top: 0; }
.set-nav button { text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 10px; font-weight: 500; color: var(--muted); }
.set-nav button.on { background: var(--surface-3); color: var(--text); font-weight: 600; }
.stage-ed { display: grid; grid-template-columns: 26px minmax(0, 1fr) 110px 110px 36px; gap: 8px; align-items: center; padding: 6px 0; }
.stage-ed .grip { cursor: grab; color: var(--dim); display: grid; place-items: center; }
.chips-ed { display: flex; flex-wrap: wrap; gap: 6px; }
.chips-ed span { display: inline-flex; align-items: center; gap: 4px; padding: 5px 6px 5px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.chips-ed span button { border: 0; background: none; color: var(--dim); padding: 2px; border-radius: 6px; display: grid; }
.chips-ed span button:hover { color: var(--red); }
.linkbox { display: flex; gap: 8px; padding: 10px; border-radius: 12px; background: var(--surface-2); align-items: center; }
.linkbox code { flex: 1; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ───── busca rápida ───── */
.spot { position: fixed; inset: 0; z-index: 650; background: rgba(8,9,12,.4); backdrop-filter: blur(4px); display: flex; justify-content: center; padding: 10vh 16px 16px; opacity: 0; transition: opacity .15s; }
.spot.in { opacity: 1; }
.spot-box { width: min(640px, 100%); max-height: 70vh; display: flex; flex-direction: column; background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; align-self: flex-start; }
.spot-in { display: flex; align-items: center; gap: 12px; padding: 0 18px; border-bottom: 1px solid var(--line); }
.spot-in input { flex: 1; height: 58px; border: 0; outline: none; background: none; font-size: 16px; }
.spot-res { overflow: auto; padding: 6px; }
.spot-sec { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--dim); padding: 10px 12px 4px; }
.spot-item { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 0; background: none; border-radius: 10px; text-align: left; }
.spot-item.on, .spot-item:hover { background: var(--surface-2); }
.spot-item .ic { color: var(--muted); }
.spot-item .grow { flex: 1; min-width: 0; }
.spot-item b { display: block; font-size: 13.5px; font-weight: 600; }
.spot-item small { display: block; color: var(--muted); font-size: 12px; }

/* ───── notificações ───── */
.notif { width: 380px; max-height: 70vh; display: flex; flex-direction: column; padding: 0; }
.notif-head { display: flex; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.notif-head b { font-size: 14px; }
.notif-list { overflow: auto; padding: 6px; }
.notif-item { display: flex; gap: 10px; padding: 10px; border-radius: 10px; cursor: pointer; font-size: 13px; }
.notif-item:hover { background: var(--surface-2); }
.notif-item.unread { background: color-mix(in srgb, var(--red) 6%, transparent); }
.notif-item small { color: var(--dim); display: block; font-size: 11.5px; margin-top: 2px; }

/* ───── comemoração de venda ───── */
.celebrate { position: fixed; inset: 0; z-index: 950; pointer-events: none; }
.celebrate canvas { width: 100%; height: 100%; display: block; }
.cele-card { position: fixed; left: 50%; top: 18%; z-index: 951; transform: translate(-50%, -20px) scale(.9); opacity: 0; background: #0b0b0d; color: #fff; border-radius: 22px; padding: 22px 30px; text-align: center; box-shadow: 0 30px 80px -20px rgba(0,0,0,.6); transition: all .5s var(--ease); pointer-events: none; min-width: 300px; max-width: calc(100vw - 32px); }
.cele-card.in { opacity: 1; transform: translate(-50%, 0) scale(1); }
.cele-card small { color: rgba(255,255,255,.6); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 600; }
.cele-card h3 { font-family: var(--serif); font-size: 34px; line-height: 1.1; margin: 6px 0 4px; }
.cele-card b { font: 700 30px var(--mono); color: #ffd76a; letter-spacing: -.03em; }
.cele-card p { color: rgba(255,255,255,.7); font-size: 13px; margin-top: 4px; }

/* ───── carregamento ───── */
.skel { background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: sk 1.2s linear infinite; border-radius: 10px; }
@keyframes sk { to { background-position: -200% 0; } }
.boot { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg); z-index: 1000; transition: opacity .3s; }
.boot.out { opacity: 0; pointer-events: none; }
.boot .brand { font-size: 40px; animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

/* ═════════════════ responsivo ═════════════════ */
@media (max-width: 1180px) {
  .dash-grid, .rank-body { grid-template-columns: minmax(0, 1fr); }
  .dr-body { grid-template-columns: minmax(0, 1fr); }
  .dr-side { border-right: 0; min-height: 0; padding-bottom: 0; }
}
@media (max-width: 900px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(290px, 86vw); transform: translateX(-102%); transition: transform .3s var(--ease); box-shadow: var(--shadow); }
  .app.nav-open .side { transform: none; }
  .app.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(0,0,0,.35); }
  .top .burger { display: inline-grid; }
  .search-btn kbd { display: none; }
  .rep-grid { grid-template-columns: minmax(0, 1fr); }
  .set-grid { grid-template-columns: minmax(0, 1fr); }
  .set-nav { flex-direction: row; overflow-x: auto; position: static; }
  .set-nav button { white-space: nowrap; }
  .lb-row { grid-template-columns: 34px minmax(0, 1fr) 96px; }
  .lb-row .lb-prog { display: none; }
  .col { flex-basis: 84vw; }
  .grid3 { grid-template-columns: 1fr 1fr; }
  .stage-ed { grid-template-columns: 22px minmax(0, 1fr) 76px 76px 32px; }
  .dz { width: 130px; height: 56px; font-size: 13px; }
}
@media (max-width: 560px) {
  .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .span2 { grid-column: auto; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi { padding: 14px; border-radius: 14px; }
  .kpi .k-val { font-size: 19px; }
  .page-head .actions { margin-left: 0; width: 100%; }
  .modal { border-radius: 18px; }
  .modal-head { padding-left: 18px; } .modal-body { padding: 8px 18px; } .modal-foot { padding: 12px 18px 18px; }
  .dr-head { padding: 14px 16px; } .dr-main { padding: 16px; } .dr-side { padding: 16px; }
  .tbl .hide-sm { display: none; }
  .notif { width: calc(100vw - 16px); }
  .rank-stage { min-height: 460px; }
  .pod-label { width: 120px; }
  .pod-label b { font-size: 12.5px; } .pod-label span { font-size: 16px; } .pod-label.p1 span { font-size: 19px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
