/* Painel Impulsio — identidade: preto, verde-lima, Space Grotesk + DM Sans */
:root {
  --bg: #0B0B0C;
  --side: #0F1011;
  --s1: #141517;
  --s2: #1A1B1E;
  --s3: #22242A;
  --line: #25272B;
  --line2: #1F2124;
  --fg: #F2F3EE;
  --fg2: #B4B8AE;
  --mut: #8B8F86;
  --lime: #A8C800;
  --lime-t: #C9E84A;
  --lime-bg: #1D2111;
  --lime-bd: #3B4319;
  --lime-d: #5B6A1A;
  --red: #F2646A;  --red-bg: #2A1416;  --red-bd: #5A2427;
  --amb: #F2B54A;  --amb-bg: #2A2210;  --amb-bd: #4A3A18;
  --blu: #6EA8FE;  --blu-bg: #14213A;  --blu-bd: #2A4270;
  --pur: #C58CF5;  --pur-bg: #24173A;
  --pink: #F28CC0; --pink-bg: #331627;
  --teal: #5FD0C0; --teal-bg: #0F2A27;
  --display: 'Space Grotesk', ui-sans-serif, system-ui, sans-serif;
  --body: 'DM Sans', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--body); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--lime-t); text-decoration: none; }
a:hover { color: #E2F78A; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; text-wrap: balance; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.mut { color: var(--mut); }
.fg2 { color: var(--fg2); }
.sm { font-size: 13px; }
.xs { font-size: 12px; }
[hidden] { display: none !important; }

/* ---------- Layout ---------- */
.app { display: flex; min-height: 100vh; }
.side { width: 248px; flex: none; background: var(--side); border-right: 1px solid #1E2023; padding: 22px 14px; display: flex; flex-direction: column; gap: 22px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: baseline; gap: 2px; padding: 0 10px; font-family: var(--display); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; color: var(--fg); }
.brand span.dot { color: var(--lime); }
.brand small { margin-left: 8px; font-family: var(--body); font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--mut); }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label { padding: 0 10px 6px; font-size: 11px; font-weight: 600; letter-spacing: 0.08em; color: var(--mut); }
.nav-item { display: flex; align-items: center; gap: 10px; padding: 8px 10px; min-height: 36px; border-radius: 8px; color: var(--fg2); }
.nav-item:hover { color: var(--fg); background: #16181A; }
.nav-item.on { background: var(--lime-bg); color: var(--lime-t); font-weight: 600; }
.nav-item svg { flex: none; }
.nav-item .grow { flex: 1; }
.nav-item.off { opacity: .45; cursor: default; }
.nav-item.off:hover { background: none; color: var(--fg2); }
.badge { font-family: var(--mono); font-size: 11px; background: var(--red); color: #0B0B0C; border-radius: 9px; padding: 1px 7px; }
.badge.lime { background: var(--lime); }
.soon { font-size: 10px; font-weight: 600; letter-spacing: .06em; color: var(--mut); border: 1px solid var(--line); border-radius: 5px; padding: 1px 5px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 12px 10px 0; border-top: 1px solid var(--line); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--lime); color: #0B0B0C; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; font-size: 13px; flex: none; }

.main { flex: 1; min-width: 0; padding: 28px 40px 64px; }
.wrap { max-width: 1280px; margin: 0 auto; display: flex; flex-direction: column; gap: 22px; }
.topbar { display: none; }

@media (max-width: 900px) {
  .app { flex-direction: column; }
  .side { position: fixed; inset: 0 auto 0 0; z-index: 40; transform: translateX(-100%); transition: transform .2s; height: 100%; box-shadow: 0 0 40px rgba(0,0,0,.6); }
  .app.menu-open .side { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--side); position: sticky; top: 0; z-index: 30; }
  .main { padding: 20px 16px 64px; }
  .scrim { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 35; }
}

/* ---------- Page head ---------- */
.crumbs { display: flex; gap: 8px; font-size: 13px; color: var(--mut); flex-wrap: wrap; }
.crumbs a { color: var(--mut); }
.crumbs a:hover { color: var(--fg); }
.head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.head .t { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; color: var(--mut); text-transform: uppercase; }
.head h1 { font-size: 32px; font-weight: 700; }
.head p { margin: 0; color: var(--mut); max-width: 70ch; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--fg); cursor: pointer; font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: #3A3D42; background: #16181A; color: var(--fg); }
.btn.pri { background: var(--lime); border-color: var(--lime); color: #0B0B0C; font-weight: 600; }
.btn.pri:hover { background: #B8D81A; }
.btn.soft { background: var(--lime-bg); border-color: var(--lime-bd); color: var(--lime-t); font-weight: 600; }
.btn.soft:hover { background: #252B14; }
.btn.blu { background: var(--blu-bg); border-color: var(--blu-bd); color: var(--blu); font-weight: 600; }
.btn.danger { color: var(--red); border-color: var(--red-bd); }
.btn.ghost { border-color: transparent; color: var(--fg2); }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn.xs { height: 28px; padding: 0 10px; font-size: 12px; border-radius: 7px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.icon-btn { width: 36px; height: 36px; padding: 0; }

/* ---------- Cards / KPIs ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.card h2 { font-size: 17px; font-weight: 600; }
.card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.card-h .sub { font-size: 13px; color: var(--mut); }
.card.hl { border-color: var(--lime-bd); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.kpi { background: var(--s1); padding: 16px 18px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.kpi .l { font-size: 12px; color: var(--mut); }
.kpi .v { font-family: var(--display); font-size: 28px; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.kpi .v small { font-size: 16px; color: var(--mut); font-weight: 500; }
.kpi .d { font-size: 12px; color: var(--mut); }
.kpi .d.up { color: var(--lime-t); } .kpi .d.warn { color: var(--amb); } .kpi .d.bad { color: var(--red); }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: stretch; }
.row > * { flex: 1 1 380px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }

.bar { height: 8px; border-radius: 4px; background: var(--s3); overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 4px; background: var(--lime); }
.bar.thin { height: 6px; }
.bar.amb > i { background: var(--amb); }

/* ---------- Pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; background: var(--s3); color: var(--fg2); }
.pill.lime { background: var(--lime-bg); color: var(--lime-t); }
.pill.amb { background: var(--amb-bg); color: var(--amb); }
.pill.red { background: var(--red-bg); color: var(--red); }
.pill.blu { background: var(--blu-bg); color: var(--blu); }
.pill.pur { background: var(--pur-bg); color: var(--pur); }
.pill.teal { background: var(--teal-bg); color: var(--teal); }
.pill.pink { background: var(--pink-bg); color: var(--pink); }
.pill.solid { background: var(--lime); color: #0B0B0C; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; font-size: 13px; border: 1px solid var(--line); color: var(--fg2); background: none; cursor: pointer; }
.chip:hover { color: var(--fg); border-color: #3A3D42; }
.chip.on { background: var(--fg); color: #0B0B0C; border-color: var(--fg); font-weight: 600; }
.chip .n { font-family: var(--mono); font-size: 11px; opacity: .7; }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 12px 14px; white-space: nowrap; font-weight: 500; color: var(--mut); border-bottom: 2px solid transparent; }
.tabs a:hover { color: var(--fg); }
.tabs a.on { color: var(--fg); border-bottom-color: var(--lime); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 12.5px; color: var(--mut); min-width: 0; }
.input, .field input, .field select, .field textarea { height: 40px; border-radius: 9px; border: 1px solid var(--line); background: var(--side); color: var(--fg); padding: 0 12px; width: 100%; font-size: 14px; }
.field textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .field input:focus, .field select:focus, .field textarea:focus { border-color: var(--lime-d); outline: none; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.form .full { grid-column: 1 / -1; }
@media (max-width: 640px) { .form { grid-template-columns: 1fr; } }
.search { display: flex; align-items: center; gap: 8px; background: var(--s1); border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; height: 40px; color: var(--mut); min-width: 0; }
.search input { background: none; border: 0; outline: none; color: var(--fg); width: 100%; min-width: 120px; }
.select { height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--s1); color: var(--fg); padding: 0 10px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.toolbar .l, .toolbar .r { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ---------- Table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--s1); }
table.t { width: 100%; border-collapse: collapse; min-width: 980px; }
table.t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--mut); padding: 11px 14px; background: var(--s2); border-bottom: 1px solid var(--line); white-space: nowrap; text-transform: uppercase; }
table.t td { padding: 12px 14px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
table.t tr:last-child td { border-bottom: 0; }
table.t tbody tr { cursor: pointer; }
table.t tbody tr:hover td { background: #17181B; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }

.ig { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ig-av { width: 36px; height: 36px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 12px; color: var(--pink); background: var(--pink-bg); text-transform: uppercase; }
.ig-av.lg { width: 56px; height: 56px; font-size: 18px; }
.ig .n { display: flex; flex-direction: column; min-width: 0; }
.ig .n b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ig .n span { font-size: 12px; color: var(--mut); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Fila ---------- */
.tasks { display: flex; flex-direction: column; gap: 12px; }
.task { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; display: grid; grid-template-columns: minmax(220px, 1fr) minmax(0, 1.6fr) auto; gap: 18px 24px; align-items: start; }
.task.late { border-color: var(--red-bd); }
.task.done { opacity: .45; pointer-events: none; }
.task .who { display: flex; flex-direction: column; gap: 10px; }
.task .what { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.task .what .titulo { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 600; font-size: 15px; }
.task .instr { color: var(--fg2); font-size: 13px; }
.msg { position: relative; padding: 12px 14px; border-radius: 10px; background: var(--side); border: 1px solid var(--line2); font-size: 13px; line-height: 1.55; color: #D5D8CF; white-space: pre-wrap; }
.task .do { display: flex; flex-direction: column; gap: 8px; min-width: 150px; }
@media (max-width: 1000px) { .task { grid-template-columns: 1fr; } .task .do { flex-direction: row; flex-wrap: wrap; } }
.steps { display: flex; gap: 3px; }
.steps i { flex: 1; height: 4px; border-radius: 2px; background: var(--s3); min-width: 10px; }
.steps i.ok { background: var(--lime); }
.steps i.cur { background: var(--blu); }

/* ---------- Kanban ---------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 8px; }
.col { background: var(--side); border: 1px solid var(--line2); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 8px; min-height: 300px; align-content: start; }
.col-h { display: flex; justify-content: space-between; align-items: baseline; padding: 2px 4px 4px; gap: 8px; }
.col-h b { font-weight: 600; font-size: 13.5px; }
.col-h span { font-family: var(--mono); font-size: 12px; color: var(--mut); }
.kcard { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 9px; background: var(--s1); border: 1px solid var(--line); color: var(--fg); cursor: pointer; text-align: left; }
.kcard:hover { border-color: #3A3D42; color: var(--fg); }
.kcard b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kcard span { font-size: 12px; color: var(--mut); }

/* ---------- Timeline ---------- */
.tl { display: flex; flex-direction: column; }
.tl-i { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto; gap: 12px; }
.tl-i .dot { display: flex; flex-direction: column; align-items: center; }
.tl-i .dot b { width: 14px; height: 14px; border-radius: 50%; margin-top: 3px; border: 2px solid #3A3D42; background: var(--bg); flex: none; }
.tl-i .dot b.ok { background: var(--lime); border-color: var(--lime); }
.tl-i .dot b.cur { border-color: var(--blu); border-width: 3px; }
.tl-i .dot b.skip { background: var(--s3); border-color: var(--s3); }
.tl-i .dot i { flex: 1; width: 2px; background: var(--line); margin: 2px 0; }
.tl-i:last-child .dot i { display: none; }
.tl-i .c { padding-bottom: 16px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ev { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line2); }
.ev:first-child { border-top: 0; }
.ev .when { font-family: var(--mono); font-size: 11.5px; color: var(--mut); width: 92px; flex: none; padding-top: 1px; }

/* ---------- Chart ---------- */
.chart { display: flex; align-items: flex-end; gap: 6px; height: 170px; border-bottom: 1px solid var(--line); position: relative; }
.chart .c { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 2px; position: relative; }
.chart .c i { display: block; width: 100%; max-width: 32px; border-radius: 4px 4px 0 0; background: var(--lime-d); min-height: 2px; }
.chart .c.today i { background: var(--lime); }
.chart .c em { position: absolute; bottom: calc(100% + 4px); font-style: normal; font-family: var(--mono); font-size: 10.5px; color: var(--fg2); }
.chart .c .resp { width: 7px; height: 7px; border-radius: 50%; background: var(--blu); margin-bottom: 3px; }
.chart-x { display: flex; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--mut); }
.chart-x span { flex: 1; text-align: center; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--mut); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 9px; height: 9px; border-radius: 2px; display: inline-block; }

.hbar { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) 72px; gap: 12px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line2); font-size: 13px; }
.hbar:first-of-type { border-top: 0; }

/* ---------- Empty / misc ---------- */
.empty { border: 1px dashed var(--line); border-radius: var(--r); padding: 36px 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; color: var(--mut); }
.empty b { color: var(--fg); font-family: var(--display); font-size: 17px; font-weight: 600; }
.empty p { margin: 0; max-width: 52ch; }
.note { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 10px; font-size: 13px; }
.note.amb { background: var(--amb-bg); border: 1px solid var(--amb-bd); color: #E8D3A8; }
.note.lime { background: var(--lime-bg); border: 1px solid var(--lime-bd); color: #D5D8CF; }
.note.blu { background: var(--blu-bg); border: 1px solid var(--blu-bd); color: #C9DAF8; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line2); }
.kv:first-child { border-top: 0; }
.kv span:first-child { color: var(--mut); }
.loading { padding: 60px; text-align: center; color: var(--mut); }
.spin { width: 22px; height: 22px; border: 2px solid var(--line); border-top-color: var(--lime); border-radius: 50%; animation: spin .7s linear infinite; display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.big-num { font-family: var(--display); font-size: 56px; font-weight: 700; letter-spacing: -0.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.big-num small { font-size: 20px; color: var(--mut); font-weight: 500; letter-spacing: 0; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; }
.vars code { font-family: var(--mono); font-size: 12px; background: var(--s2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; color: var(--fg2); cursor: pointer; }

/* ---------- Modal ---------- */
.overlay { position: fixed; inset: 0; background: rgba(0,0,0,.6); z-index: 60; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { background: var(--s1); border: 1px solid var(--line); border-radius: 16px; width: min(640px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 24px; display: flex; flex-direction: column; gap: 18px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }
.modal.wide { width: min(860px, 100%); }
.modal h2 { font-size: 20px; }
.modal-f { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.modal-f .r { display: flex; gap: 10px; margin-left: auto; }

#toasts { position: fixed; left: 50%; bottom: max(20px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--fg); color: #0B0B0C; padding: 11px 16px; border-radius: 10px; font-weight: 500; box-shadow: 0 10px 30px rgba(0,0,0,.4); pointer-events: auto; display: flex; gap: 12px; align-items: center; }
.toast.err { background: var(--red); }
.toast button { background: none; border: 0; font-weight: 700; cursor: pointer; text-decoration: underline; padding: 0; color: inherit; }

/* ---------- Login ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; background: radial-gradient(900px 500px at 20% 0%, #151a08 0%, transparent 60%), var(--bg); }
.login form { width: min(400px, 100%); background: var(--s1); border: 1px solid var(--line); border-radius: 18px; padding: 32px; display: flex; flex-direction: column; gap: 16px; }
.login .brand { padding: 0; font-size: 28px; }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* Menu sanfona de canais */
.acc-h { width: 100%; background: none; border: 0; font: inherit; cursor: pointer; text-align: left; }
.acc-h.cur { color: var(--fg); }
.acc-h .chev { display: inline-flex; transition: transform .15s; color: var(--mut); }
.acc.open .acc-h .chev { transform: rotate(180deg); }
.acc-b { display: none; flex-direction: column; gap: 1px; margin: 2px 0 6px 18px; padding-left: 8px; border-left: 1px solid var(--line); }
.acc.open .acc-b { display: flex; }
.nav-item.sub { min-height: 32px; padding: 6px 10px; font-size: 13.5px; }

/* Ativos */
.front { text-decoration: none; color: inherit; transition: border-color .15s; }
a.front:hover { border-color: #34383C; color: inherit; }
.card.hl.front:hover { border-color: var(--lime); }
.front.off { opacity: .5; }
.f3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.f3 > div { display: flex; flex-direction: column; }
.f3 b { font-family: var(--display); font-size: 22px; font-weight: 600; }
.tops { display: flex; flex-direction: column; border-top: 1px solid var(--line); font-size: 13px; }
.tops > span { display: flex; justify-content: space-between; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--line2); }
.ell { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.pubs { display: flex; gap: 3px; }
.pubs i { width: 10px; height: 18px; border-radius: 2px; background: var(--s3); }
.pubs i.on { background: var(--lime); }
.pubs.big { gap: 6px; flex-wrap: wrap; }
.pb { width: 44px; height: 56px; border-radius: 8px; border: 1px solid var(--line); background: var(--s2); color: var(--mut); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font: inherit; }
.pb em { font-style: normal; font-family: var(--mono); font-size: 14px; color: var(--fg); min-height: 18px; }
.pb span { font-size: 11px; }
.pb.on { background: var(--lime-bg); border-color: var(--lime-bd); }
.pb.on em { color: var(--lime-t); font-weight: 600; }
.pb.today { outline: 1px solid var(--fg2); }
.chk { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line2); cursor: pointer; }
.chk:first-child { border-top: 0; }
.chk input { accent-color: var(--lime); width: 16px; height: 16px; flex: none; }
.trow { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line2); }
.trow.done .chk span { text-decoration: line-through; color: var(--mut); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; border: 1px dashed #2A2C30; background: none; color: var(--fg); text-align: left; font: inherit; cursor: pointer; opacity: .65; }
.tile.on { background: var(--s2); border: 1px solid #2E3233; opacity: 1; }
.tile:hover { opacity: 1; border-color: #3A3D42; }
.tile .tv { font-family: var(--display); font-size: 18px; font-weight: 600; }
.tile .sdot { width: 8px; height: 8px; border-radius: 50%; background: #3A3D42; }
.tile.on .sdot { background: var(--lime); }
.tile.add { align-items: center; justify-content: center; color: var(--mut); min-height: 84px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(128px, 1fr)); gap: 8px; min-width: 940px; }
.day { display: flex; flex-direction: column; gap: 8px; padding: 10px; border-radius: 10px; min-height: 170px; background: var(--side); border: 1px solid var(--line2); }
.day.today { background: #1A1D10; border-color: #3B4319; }
.day .dh { display: flex; justify-content: space-between; font-size: 12px; }
.ci { display: flex; flex-direction: column; gap: 6px; padding: 9px 10px; border-radius: 8px; background: var(--s1); border: 1px solid var(--line); color: var(--fg); text-align: left; font: inherit; font-size: 13px; line-height: 1.3; cursor: pointer; }
.ci .cm { display: flex; justify-content: space-between; align-items: center; gap: 4px; flex-wrap: wrap; }
.day .add { margin-top: auto; height: 26px; border-radius: 6px; border: 1px dashed var(--line); background: none; color: var(--mut); cursor: pointer; opacity: 0; transition: opacity .15s; }
.day:hover .add, .day .add:focus { opacity: 1; }
.mrow { background: none; border: 0; border-top: 1px solid var(--line2); padding: 12px 0 0; text-align: left; font: inherit; color: inherit; cursor: pointer; width: 100%; }
.meta { display: flex; flex-direction: column; gap: 7px; }
.mbar { position: relative; height: 8px; border-radius: 4px; background: var(--s3); }
.mbar i { position: absolute; left: 0; top: 0; height: 8px; border-radius: 4px; }
.mbar u { position: absolute; top: -3px; width: 2px; height: 14px; border-radius: 1px; background: var(--fg); }
@media (max-width: 820px) { .f3 b { font-size: 18px; } }

/* Tarefas (quadro e detalhe) */
.modal.xl { width: min(1080px, 100%); padding: 0; }
.tdet { display: grid; grid-template-columns: minmax(0, 1fr) 280px; min-height: 60vh; }
.tmain { padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tside { padding: 24px 20px; border-left: 1px solid var(--line); background: var(--side); display: flex; flex-direction: column; gap: 12px; border-radius: 0 16px 16px 0; }
.ttitle { font-family: var(--display); font-size: 22px; font-weight: 700; background: none; border: 1px solid transparent; border-radius: 8px; color: var(--fg); padding: 4px 6px; margin: -4px -6px; resize: none; overflow: hidden; line-height: 1.25; }
.ttitle:hover, .ttitle:focus { border-color: var(--line); outline: none; }
.tsec { display: flex; flex-direction: column; gap: 8px; }
.tsec > b { font-size: 13px; letter-spacing: .02em; }
.tdesc { height: 130px; padding: 10px 12px; line-height: 1.55; resize: vertical; }
.tsec.aval { padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--side); }
.kvs { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 9px; background: var(--side); border: 1px solid var(--line); align-self: flex-start; flex-wrap: wrap; }
.seg button { border: 0; background: none; color: var(--mut); font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 7px; cursor: pointer; }
.seg button.on { background: var(--s3); color: var(--fg); font-weight: 600; }
.tkanban { grid-auto-columns: minmax(220px, 1fr); }
.pkanban { grid-auto-columns: minmax(185px, 1fr); }
.tcol { min-height: 240px; transition: background .15s; }
.tcol.over { background: #16181A; border-color: var(--lime-bd); }
.tcard { border-left: 3px solid transparent; }
.tcard.p-alta { border-left-color: var(--amb); }
.tcard.p-urgente { border-left-color: var(--red); }
.tcard.drag { opacity: .4; }
.tmeta { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.tmeta .xs { display: inline-flex; align-items: center; gap: 4px; color: var(--mut); }
.tag { font-size: 11px; padding: 1px 7px; border-radius: 5px; background: var(--s3); color: var(--fg2); }
.add-t { margin-top: auto; height: 32px; border-radius: 8px; border: 1px dashed var(--line); background: none; color: var(--mut); font: inherit; font-size: 13px; cursor: pointer; }
.add-t:hover { color: var(--fg); border-color: #3A3D42; }
.tlink { width: 100%; background: none; border: 0; border-top: 1px solid var(--line2); color: var(--fg); font: inherit; padding: 9px 0; cursor: pointer; align-items: flex-start; }
.tlink:first-child { border-top: 0; }
.tlink .hdot { margin-top: 6px; }
.tboard .card-h { margin-bottom: 4px; }
@media (max-width: 820px) { .tdet { grid-template-columns: 1fr; } .tside { border-left: 0; border-top: 1px solid var(--line); border-radius: 0 0 16px 16px; } }

/* IA */
.ia-ic { width: 32px; height: 32px; border-radius: 8px; background: var(--lime-bg); color: var(--lime-t); display: inline-flex; align-items: center; justify-content: center; flex: none; }
.ia-f { display: flex; gap: 8px; align-items: flex-start; }
.ia-f textarea { height: 64px; padding: 10px 12px; resize: vertical; }
.ia-out { display: flex; flex-direction: column; gap: 10px; }
.iaq { display: flex; flex-direction: column; gap: 2px; padding-top: 10px; border-top: 1px solid var(--line2); }
.iaa { padding: 14px 16px; border-radius: 12px; background: var(--side); border: 1px solid var(--line2); font-size: 14px; line-height: 1.6; color: #D5D8CF; }
.iaa p { margin: 0 0 8px; } .iaa ul { margin: 4px 0 8px; padding-left: 20px; } .iaa li { margin: 2px 0; } .iaa h4 { margin: 10px 0 6px; font-size: 14px; color: var(--fg); }
.iaa b { color: var(--fg); }

/* Detalhe do site */
.fases { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.fase { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font: inherit; font-size: 13px; border: 1px solid var(--line); color: var(--mut); background: none; cursor: pointer; }
.fase i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.fase.ok { background: var(--lime-bg); border-color: transparent; color: var(--lime-t); }
.fase.cur { background: var(--lime); border-color: var(--lime); color: #0B0B0C; font-weight: 600; }
.fase:hover:not(.cur) { color: var(--fg); border-color: #3A3D42; }
.alerta { display: flex; gap: 14px; align-items: center; padding: 14px 18px; border-radius: 12px; border: 1px solid var(--line); background: var(--s1); flex-wrap: wrap; }
.alerta > i { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.alerta.bad { border-color: #4A2326; background: #1C1213; } .alerta.bad > i { background: var(--red); }
.alerta.amb { border-color: var(--amb-bd); background: #1C1810; } .alerta.amb > i { background: var(--amb); }
.schip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 4px 9px; border-radius: 999px; background: var(--s2); }
.schip i { width: 6px; height: 6px; border-radius: 50%; }
.toprow { display: grid; grid-template-columns: 22px minmax(0, 1fr) 100px 70px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line2); }
.hb { display: grid; grid-template-columns: 150px minmax(0, 1fr) 60px; gap: 12px; align-items: center; }
.hb .hbar { height: 14px; border-radius: 4px; background: var(--s2); overflow: hidden; display: block; }
.hb .hbar i { display: block; height: 100%; border-radius: 4px; background: #5B6A1A; }
.stack-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; gap: 2px; }
.pdot { display: block; border-radius: 50%; background: var(--fg); margin-bottom: 2px; flex: none; }
.edbox { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 10px; background: var(--s2); }
.ed7 { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.ed7 i { aspect-ratio: 1; border-radius: 3px; background: var(--s3); }
.ed7 i.n1 { background: #6E8410; } .ed7 i.n2 { background: var(--lime); } .ed7 i.fut { background: transparent; border: 1px dashed #2E3233; }
.lm-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; }
.integ { display: flex; flex-direction: column; gap: 6px; padding: 14px; border-radius: 10px; border: 1px dashed var(--line); }
.cfg-item { display: flex; gap: 4px; align-items: center; margin-bottom: 6px; }
.cfg-item .input { height: 36px; }
table.mini th, table.mini td { padding: 8px 10px; }
.hb .hbar { padding: 0; border: 0; }
table.t.mini { min-width: 0; }

/* Canais dark */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.dcard { text-decoration: none; color: inherit; gap: 16px; }
a.dcard:hover { border-color: #34383C; color: inherit; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; }
.spark i { display: block; width: 7px; border-radius: 2px; background: var(--lime-bd); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal > span { font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--mut); text-align: center; }
.cday { display: flex; flex-direction: column; gap: 4px; padding: 6px 7px; min-height: 64px; border-radius: 8px; border: 1px solid var(--line2); background: var(--side); color: var(--fg); font: inherit; text-align: left; cursor: pointer; min-width: 0; }
.cday.fora { border-color: transparent; background: none; cursor: default; }
.cday.post { background: #2A1622; border-color: #4A2338; }
.cday.agen { background: #14213A; border-color: #2A4270; }
.cday.vazio { border-style: dashed; }
.cday.hoje { background: #1D2111; border-color: var(--lime); }
.cday .ct { font-size: 11px; line-height: 1.3; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.pkanban.dk { grid-auto-columns: minmax(152px, 1fr); }
