/* Central TLZ — identidade: preto, verde neon, Syne + Montserrat */
:root {
  --bg: #0A0A0A;
  --bg-2: #111111;
  --line: rgba(255,255,255,0.08);
  --line-2: rgba(255,255,255,0.14);
  --glass: rgba(255,255,255,0.035);
  --text: #FFFFFF;
  --text-2: #DCDCDE;
  --muted: #A6A6A6;
  --dim: #8C8C8C;
  --neon: #5EFF13;
  --neon-2: #46DD00;
  --neon-soft: rgba(94,255,19,0.10);
  --warn: #FFC24B;
  --bad: #FF6B6B;
  --info: #7CC4FF;
  --r: 20px;
  --font: Montserrat, system-ui, sans-serif;
  --display: Syne, Montserrat, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; -webkit-font-smoothing: antialiased; }
a { color: var(--neon); }
a:hover { color: #8CFF5A; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.5px; }
h1 { font-size: 38px; line-height: 1.1; font-weight: 700; }
h2 { font-size: 20px; font-weight: 700; }
h3 { font-size: 16px; font-weight: 700; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }
.center { text-align: center; }
.neon { color: var(--neon); }
.right { text-align: right; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
:focus-visible { outline: 2px solid var(--neon); outline-offset: 2px; }

/* ---------- Efeitos ---------- */
.glass { background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.glow-card { box-shadow: 0 0 0 1px rgba(94,255,19,.35), 0 0 40px rgba(94,255,19,.12), inset 0 1px 0 rgba(255,255,255,.06); }
.orb { position: fixed; border-radius: 50%; pointer-events: none; filter: blur(80px); z-index: 0; }
.orb-a { width: 560px; height: 560px; top: -240px; right: -140px; background: rgba(94,255,19,0.10); }
.orb-b { width: 440px; height: 440px; bottom: -220px; left: 160px; background: rgba(70,221,0,0.07); }
.glow-text { color: var(--neon); text-shadow: 0 0 24px rgba(94,255,19,.45); }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 18px; border-radius: 12px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px; text-decoration: none; white-space: nowrap; transition: box-shadow .2s, transform .2s, border-color .2s, background .2s, opacity .2s; min-height: 44px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-glow { background: var(--neon); color: #0A0A0A; box-shadow: 0 0 0 1px rgba(94,255,19,.6), 0 0 24px rgba(94,255,19,.45), 0 0 60px rgba(94,255,19,.15); }
.btn-glow:hover:not(:disabled) { color: #0A0A0A; box-shadow: 0 0 0 1px #8CFF5A, 0 0 32px rgba(94,255,19,.7), 0 0 90px rgba(94,255,19,.25); transform: translateY(-1px); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border: 1px solid var(--line-2); }
.btn-ghost:hover:not(:disabled) { color: var(--text); border-color: rgba(94,255,19,.5); box-shadow: 0 0 18px rgba(94,255,19,.15); }
.btn-danger { background: rgba(255,107,107,.1); color: var(--bad); border: 1px solid rgba(255,107,107,.35); }
.btn-danger:hover:not(:disabled) { color: var(--bad); box-shadow: 0 0 18px rgba(255,107,107,.2); }
.btn-icon { padding: 10px; min-width: 44px; }
.btn-sm { padding: 8px 12px; min-height: 36px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; }
.pill { padding: 9px 16px; border-radius: 99px; min-height: 40px; }
.pill.on { background: var(--neon-soft); color: var(--neon); border-color: rgba(94,255,19,.45); box-shadow: 0 0 16px rgba(94,255,19,.12); }

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 14px; }
.form label, .lbl { display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); font-weight: 500; }
.field { width: 100%; background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; color: var(--text); padding: 13px 15px; font: 500 14px var(--font); transition: border-color .2s, box-shadow .2s; min-height: 46px; }
.field::placeholder { color: var(--dim); }
.field:focus { outline: none; border-color: var(--neon); box-shadow: 0 0 0 3px rgba(94,255,19,.15), 0 0 20px rgba(94,255,19,.2); }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
select.field option { background: #161616; color: #fff; }
textarea.field { min-height: 90px; resize: vertical; line-height: 1.5; }
fieldset { border: 1px solid var(--line); border-radius: 16px; padding: 18px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
legend { padding: 0 8px; font-family: var(--display); font-weight: 700; font-size: 15px; color: var(--text); }
.check { flex-direction: row !important; align-items: center; gap: 10px !important; color: var(--text-2) !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--neon); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.chips-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chips-pick label { flex-direction: row; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 99px; border: 1px solid var(--line-2); background: rgba(255,255,255,.03); color: var(--text-2); cursor: pointer; font-size: 13px; }
.chips-pick input { accent-color: var(--neon); }
.chips-pick label:has(input:checked) { border-color: rgba(94,255,19,.5); background: var(--neon-soft); color: var(--neon); }

/* ---------- Alertas ---------- */
.alert { padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.alert.bad { color: #FFB3B3; background: rgba(255,107,107,.08); border-color: rgba(255,107,107,.3); }
.alert.warn { color: #FFE0A3; background: rgba(255,194,75,.07); border-color: rgba(255,194,75,.25); }
.alert.ok { color: #C9FFAE; background: var(--neon-soft); border-color: rgba(94,255,19,.3); }

/* ---------- Tela de login / instalação ---------- */
body.auth { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 16px; position: relative; overflow-x: hidden; }
.auth-bg { position: fixed; bottom: -90px; left: -20px; font-family: var(--display); font-weight: 800; font-size: clamp(200px, 30vw, 420px); letter-spacing: -0.05em; line-height: 1; color: rgba(255,255,255,0.025); pointer-events: none; }
.auth-card { position: relative; z-index: 1; width: 100%; max-width: 440px; border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 22px; box-shadow: 0 30px 80px rgba(0,0,0,0.6), inset 0 1px 0 rgba(255,255,255,0.08); }
.auth-card.install { max-width: 560px; }
.auth-card h1 { font-size: 32px; margin-bottom: 6px; }
.auth-card p { margin: 0; }
.auth-logo { height: 56px; width: auto; align-self: flex-start; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.checks .ok { color: var(--neon); } .checks .bad { color: var(--bad); }

/* ---------- Estrutura do app ---------- */
.shell { position: relative; min-height: 100vh; display: grid; grid-template-columns: 252px minmax(0, 1fr); }
.side { position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; gap: 26px; padding: 26px 16px; border-right: 1px solid rgba(255,255,255,0.06); background: rgba(10,10,10,0.6); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; padding: 0 8px; }
.brand img { height: 44px; width: auto; display: block; }
.brand .dot { margin-left: auto; width: 8px; height: 8px; border-radius: 50%; background: var(--neon); box-shadow: 0 0 12px var(--neon); }
.nav { display: flex; flex-direction: column; gap: 4px; }
.nav .sec { padding: 18px 12px 8px; font-size: 11px; font-weight: 600; letter-spacing: 2px; color: var(--dim); }
.nav .sec:first-child { padding-top: 0; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; transition: background .2s, color .2s; }
.nav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav a.on { color: var(--text); background: rgba(94,255,19,.08); box-shadow: inset 0 0 0 1px rgba(94,255,19,.28), 0 0 24px rgba(94,255,19,.08); }
.nav a.on svg { color: var(--neon); filter: drop-shadow(0 0 6px rgba(94,255,19,.7)); }
.nav .soon { margin-left: auto; font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--dim); }
.nav a.disabled { pointer-events: none; opacity: .7; }
.me { margin-top: auto; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; }
.avatar { width: 38px; height: 38px; flex: none; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--neon); background: var(--neon-soft); box-shadow: 0 0 0 1px rgba(94,255,19,0.5), 0 0 16px rgba(94,255,19,0.25); }
.me .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.me .who b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me .who span { font-size: 12px; color: var(--muted); }
.me .acts { margin-left: auto; display: flex; }
.me .acts button { background: none; border: 0; color: var(--muted); padding: 8px; cursor: pointer; border-radius: 8px; display: flex; }
.me .acts button:hover { color: var(--neon); }
.main { position: relative; z-index: 1; padding: 34px 44px 64px; display: flex; flex-direction: column; gap: 26px; width: 100%; max-width: 1400px; min-width: 0; }
.topbar { display: none; }

.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.page-head .t { display: flex; flex-direction: column; gap: 8px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: 2px; color: var(--neon); text-transform: uppercase; }
.actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.month { display: flex; align-items: center; gap: 2px; padding: 4px; border-radius: 12px; }
.month button { background: transparent; border: 0; color: var(--muted); padding: 10px; border-radius: 8px; cursor: pointer; display: flex; }
.month button:hover { color: var(--neon); background: rgba(255,255,255,.04); }
.month span { font-size: 14px; font-weight: 600; padding: 0 6px; min-width: 120px; text-align: center; }

.grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.split-side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.card { border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.kpi { border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .v { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 13px; color: var(--muted); }
.kpi.stage .l { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; }

.bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,0.06); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--neon); box-shadow: 0 0 12px rgba(94,255,19,0.55); }
.bar.thin { height: 6px; }
.bar.bad i { background: var(--bad); box-shadow: 0 0 10px rgba(255,107,107,.5); }
.bar.warn i { background: var(--warn); box-shadow: 0 0 10px rgba(255,194,75,.5); }

.bars { display: flex; flex-direction: column; gap: 12px; }
.bars .b { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 104px; align-items: center; gap: 14px; }
.bars .n { font-size: 13px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bars .val { font-size: 13px; font-weight: 600; text-align: right; }

.chart { width: 100%; height: auto; display: block; }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.alerts { display: flex; flex-direction: column; gap: 10px; }
.al { display: flex; gap: 12px; padding: 14px; border-radius: 14px; text-decoration: none; color: var(--text); border: 1px solid; transition: transform .15s; }
.al:hover { color: var(--text); transform: translateX(2px); }
.al.bad { background: rgba(255,107,107,0.07); border-color: rgba(255,107,107,0.3); }
.al.bad svg { color: var(--bad); }
.al.warn { background: rgba(255,194,75,0.06); border-color: rgba(255,194,75,0.25); }
.al.warn svg { color: var(--warn); }
.al svg { flex: none; margin-top: 2px; }
.al b { display: block; font-size: 14px; margin-bottom: 3px; }
.al span { font-size: 13px; color: var(--muted); line-height: 1.5; }

/* ---------- Tabelas ---------- */
.tbl { border-radius: var(--r); overflow: hidden; }
.tbl .th, .tbl .tr { display: grid; gap: 14px; align-items: center; padding: 13px 22px; }
.tbl .th { font-size: 11px; font-weight: 600; letter-spacing: 1.2px; color: var(--dim); text-transform: uppercase; border-bottom: 1px solid rgba(255,255,255,0.06); }
.tbl .tr { border-bottom: 1px solid rgba(255,255,255,0.04); transition: background .15s; }
.tbl .tr:last-child { border-bottom: 0; }
.tbl .tr:hover { background: rgba(255,255,255,.025); }
.tbl .tr.sel { background: rgba(94,255,19,.05); }
.tbl .tr.click { cursor: pointer; }
.tbl .cell-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tbl .cell-main b { font-size: 14px; font-weight: 600; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.35; }
.tbl .cell-main span { font-size: 12px; color: var(--muted); }
.tbl .money { font-size: 14px; font-weight: 600; white-space: nowrap; }
.tbl .c { display: flex; justify-content: center; }
.tbl .tfoot { display: flex; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.tbl .tfoot b { color: var(--text); }
.lbl-m { display: none; }
.checks-row { display: contents; }

.empty { padding: 40px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 14px; align-items: center; }
.empty h3 { color: var(--text); }

.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.08); font-size: 12px; color: var(--text-2); white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.chips .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; white-space: nowrap; justify-self: start; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.ok { color: var(--neon); background: rgba(94,255,19,.1); }
.badge.warn { color: var(--warn); background: rgba(255,194,75,.1); }
.badge.bad { color: var(--bad); background: rgba(255,107,107,.1); }
.badge.info { color: var(--info); background: rgba(124,196,255,.1); }
.badge.mute { color: var(--muted); background: rgba(255,255,255,.06); }

.chk { width: 30px; height: 30px; border-radius: 8px; border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.03); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; color: #0A0A0A; transition: all .2s; }
.chk svg { opacity: 0; transition: opacity .15s; }
.chk:hover { border-color: rgba(94,255,19,.6); }
.chk.on { background: var(--neon); border-color: var(--neon); box-shadow: 0 0 14px rgba(94,255,19,.55); }
.chk.on svg { opacity: 1; }

.tg { width: 46px; height: 28px; border-radius: 99px; border: 1px solid rgba(255,255,255,.16); background: rgba(255,255,255,.06); position: relative; cursor: pointer; padding: 0; transition: all .2s; flex: none; }
.tg span { position: absolute; top: 4px; left: 4px; width: 18px; height: 18px; border-radius: 50%; background: var(--dim); transition: all .2s; }
.tg.on { background: rgba(94,255,19,.18); border-color: rgba(94,255,19,.7); box-shadow: 0 0 16px rgba(94,255,19,.3); }
.tg.on span { left: 22px; background: var(--neon); box-shadow: 0 0 10px rgba(94,255,19,.9); }
.tg:disabled { opacity: .5; cursor: not-allowed; }

.tabs { display: inline-flex; align-self: flex-start; gap: 4px; padding: 4px; border-radius: 14px; flex-wrap: wrap; }
.tabs button { padding: 10px 18px; border-radius: 10px; background: transparent; color: var(--muted); border: 0; cursor: pointer; font-weight: 600; font-size: 14px; min-height: 40px; }
.tabs button[aria-selected="true"] { background: var(--neon-soft); color: var(--neon); box-shadow: inset 0 0 0 1px rgba(94,255,19,.4); }

.search { position: relative; display: flex; align-items: center; }
.search svg { position: absolute; left: 14px; color: var(--dim); pointer-events: none; }
.search .field { padding-left: 40px; width: 260px; }

/* ficha */
.ficha { border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; gap: 18px; position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.kv { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid rgba(255,255,255,0.06); font-size: 13px; }
.kv span { color: var(--muted); }
.kv b { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.kv b.vazio { color: var(--dim); font-weight: 500; }
.box-neon { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: 14px; background: rgba(94,255,19,0.05); border: 1px solid rgba(94,255,19,0.2); }
.box-bad { background: rgba(255,107,107,0.06); border-color: rgba(255,107,107,0.3); }
.pre { white-space: pre-wrap; font-size: 13px; color: var(--text-2); line-height: 1.55; margin: 0; }

/* pessoas */
.person { border-radius: var(--r); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.person-h { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.areas { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.area { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); font-size: 13px; font-weight: 600; }


/* ---------- Compromissos (lista) ---------- */
.agd { display: flex; flex-direction: column; gap: 18px; }
.agd-g { display: flex; flex-direction: column; gap: 6px; }
.agd-d { font-size: 12px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--muted); padding-bottom: 4px; }
.agd-i { display: grid; grid-template-columns: 92px 4px minmax(0, 1fr); gap: 14px; align-items: center; text-align: left; width: 100%; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); cursor: pointer; transition: border-color .2s, background .2s, transform .15s; }
.agd-i:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); background: color-mix(in srgb, var(--c) 7%, transparent); transform: translateX(2px); }
.agd-h { font-size: 13px; font-weight: 600; color: var(--text-2); white-space: nowrap; display: flex; flex-direction: column; gap: 2px; }
.agd-h small { font-size: 11px; font-weight: 500; color: var(--dim); }
.agd-bar { width: 4px; height: 100%; min-height: 34px; border-radius: 4px; background: var(--c); box-shadow: 0 0 10px var(--c); }
.agd-t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.agd-t b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.agd-t span { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Calendário ---------- */
.cal { border-radius: var(--r); overflow: hidden; }
.cal-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.cal-head span { padding: 12px 12px; font-size: 11px; font-weight: 600; letter-spacing: 1.5px; text-transform: uppercase; color: var(--dim); }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-auto-rows: minmax(128px, auto); }
.cal-day { border-right: 1px solid rgba(255,255,255,0.05); border-bottom: 1px solid rgba(255,255,255,0.05); padding: 8px; display: flex; flex-direction: column; gap: 6px; cursor: pointer; transition: background .15s, box-shadow .15s; min-width: 0; }
.cal-day:nth-child(7n) { border-right: 0; }
.cal-day:hover { background: rgba(255,255,255,0.025); }
.cal-day.out { background: rgba(0,0,0,0.25); }
.cal-day.out .cal-n { color: #5c5c5c; }
.cal-day.drop { background: var(--neon-soft); box-shadow: inset 0 0 0 1px rgba(94,255,19,.5); }
.cal-dn { display: flex; align-items: center; justify-content: space-between; min-height: 26px; }
.cal-n { font-size: 13px; font-weight: 600; color: var(--text-2); padding: 0 4px; }
.cal-day.today .cal-n { background: var(--neon); color: #0A0A0A; border-radius: 99px; min-width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; box-shadow: 0 0 16px rgba(94,255,19,.6); }
.cal-add { opacity: 0; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); color: var(--text); width: 26px; height: 26px; border-radius: 8px; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: opacity .15s; }
.cal-day:hover .cal-add, .cal-add:focus-visible { opacity: 1; }
.cal-add:hover { color: var(--neon); border-color: rgba(94,255,19,.5); }
.cal-evs { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-ev { display: flex; align-items: center; gap: 6px; width: 100%; text-align: left; padding: 4px 8px; border-radius: 7px; font-size: 12px; font-weight: 500; color: var(--text); border: 0; cursor: pointer; background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: inset 2px 0 0 var(--c); min-height: 24px; transition: background .15s, box-shadow .15s; }
.cal-ev:hover { background: color-mix(in srgb, var(--c) 24%, transparent); box-shadow: inset 2px 0 0 var(--c), 0 0 14px color-mix(in srgb, var(--c) 30%, transparent); }
.cal-ev.full { background: color-mix(in srgb, var(--c) 26%, transparent); }
.cal-ev.cont { border-top-left-radius: 0; border-bottom-left-radius: 0; opacity: .85; }
.cal-ev.drag { opacity: .35; }
.cal-hr { color: var(--c); font-weight: 600; flex: none; }
.cal-tt { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.cal-more { background: none; border: 0; color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; padding: 2px 8px; cursor: pointer; }
.cal-more:hover { color: var(--neon); }
.cal-list { display: none; }
.cal-leg { margin-top: -8px; }
.cat-pick label { position: relative; }
.cat-pick input { position: absolute; opacity: 0; pointer-events: none; }
.cat-pick label i { width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 8px var(--c); }
.cat-pick label:has(input:checked) { border-color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--text); }
.cat-pick label:has(input:focus-visible) { outline: 2px solid var(--neon); outline-offset: 2px; }
@media (max-width: 860px) {
  .cal { display: none; }
  .hide-sm { display: none !important; }
  .cal-list { display: flex; }
  .agd-i { grid-template-columns: 64px 4px minmax(0, 1fr); gap: 10px; }
}


/* ---------- Avatar com foto / Minha conta ---------- */
.avatar { flex: none; display: inline-flex; align-items: center; justify-content: center; }
img.av-img { object-fit: cover; padding: 0; background: #111; }
.me-btn { display: flex; align-items: center; gap: 12px; background: none; border: 0; color: inherit; padding: 0; cursor: pointer; text-align: left; min-width: 0; flex: 1; }
.me-btn:hover .who b { color: var(--neon); }
.foto-box { display: flex; align-items: center; gap: 18px; }
.foto-box label.btn { align-self: flex-start; }

/* ---------- Segmentado ---------- */
.seg { display: inline-flex; padding: 4px; border-radius: 12px; gap: 2px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 9px; border: 0; background: transparent; color: var(--muted); font-weight: 600; font-size: 13px; cursor: pointer; min-height: 38px; }
.seg button[aria-pressed="true"] { background: var(--neon-soft); color: var(--neon); box-shadow: inset 0 0 0 1px rgba(94,255,19,.4); }
.sel-sm { width: auto; min-height: 40px; padding-top: 8px; padding-bottom: 8px; font-size: 13px; border-radius: 99px; }

/* ---------- Painel: progresso e meu dia ---------- */
.dash-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 16px; align-items: stretch; }
.prog-body { display: flex; align-items: center; gap: 22px; }
.ring { width: 180px; height: 180px; flex: none; }
.ring-arc { transition: stroke-dashoffset 1s ease; animation: ringIn 1.2s ease; }
@keyframes ringIn { from { stroke-dashoffset: 440; } }
.ring-v { font-family: var(--display); font-weight: 700; font-size: 26px; fill: #FFFFFF; letter-spacing: -0.5px; }
.ring-l { font-size: 11px; font-weight: 600; letter-spacing: 1.5px; fill: var(--muted); text-transform: uppercase; }
.prog-side { flex: 1; min-width: 0; }
.prog-leg { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.prog-leg li { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 13px; color: var(--text-2); }
.prog-leg i { width: 10px; height: 10px; border-radius: 3px; }
.prog-leg b { font-size: 14px; }
.prog-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; border-top: 1px solid var(--line); padding-top: 14px; }
.prog-stats div { display: flex; flex-direction: column; gap: 2px; }
.prog-stats b { font-family: var(--display); font-size: 22px; }
.prog-stats span { font-size: 12px; color: var(--muted); }
.card-h h2 { display: flex; align-items: center; gap: 10px; }
.card-h h2 svg { color: var(--neon); }
.md-cols { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.vazio { margin: 0; padding: 14px; border-radius: 12px; border: 1px dashed var(--line-2); }

/* ---------- Linhas de tarefa ---------- */
.tks { display: flex; flex-direction: column; gap: 6px; }
.tk { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto 28px; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.06); transition: opacity .3s, transform .3s, border-color .2s; }
.tk:hover { border-color: rgba(255,255,255,0.14); }
.tk.bad { border-color: rgba(255,107,107,.28); }
.tk.done b { text-decoration: line-through; color: var(--muted); }
.tk.saindo, .rd.saindo { opacity: .35; transform: translateX(8px); }
.tk-main { display: flex; flex-direction: column; gap: 3px; min-width: 0; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; }
.tk-main b { font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-main:hover b { color: var(--neon); }
.tk-main span { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12px; color: var(--muted); min-height: 14px; }
.tk-main em { font-style: normal; color: var(--dim); }
.pr { font-style: normal; font-size: 11px; font-weight: 700; letter-spacing: .3px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); padding: 2px 8px; border-radius: 99px; }
.tk-prazo { font-size: 12px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.tk-prazo.bad { color: var(--bad); }
.tk-prazo.warn { color: var(--warn); }

/* ---------- Radar de urgências ---------- */
.radar.alerta { border-color: rgba(255,107,107,.45); box-shadow: 0 0 0 1px rgba(255,107,107,.2), 0 0 50px rgba(255,107,107,.12); }
.radar.alerta .card-h h2 svg { color: var(--bad); filter: drop-shadow(0 0 6px rgba(255,107,107,.7)); animation: pulso 2s infinite; }
.radar.atencao { border-color: rgba(255,194,75,.35); }
.radar.atencao .card-h h2 svg { color: var(--warn); }
@keyframes pulso { 50% { opacity: .45; } }
.radar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 10px; }
.rd { display: grid; grid-template-columns: 30px minmax(0, 1fr) 28px; gap: 12px; align-items: center; padding: 14px; border-radius: 14px; border: 1px solid; transition: opacity .3s, transform .3s; }
.rd.bad { background: rgba(255,107,107,0.07); border-color: rgba(255,107,107,0.35); }
.rd.warn { background: rgba(255,194,75,0.06); border-color: rgba(255,194,75,0.3); }
.rd-main { display: flex; flex-direction: column; gap: 3px; background: none; border: 0; padding: 0; color: inherit; text-align: left; cursor: pointer; min-width: 0; }
.rd-when { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.rd.bad .rd-when { color: var(--bad); } .rd.warn .rd-when { color: var(--warn); }
.rd-main b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd-meta { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.radar-ok { display: flex; align-items: center; gap: 10px; color: var(--neon); font-size: 14px; padding: 6px 2px; }

/* ---------- Frase do dia ---------- */
.quote { margin-top: 10px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,0.05); text-align: center; font-size: 13px; font-style: italic; color: var(--dim); line-height: 1.6; }
.quote span { font-style: normal; color: #6f6f6f; white-space: nowrap; }

/* ---------- Quadro (kanban) ---------- */
.kb { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; align-items: start; }
.kb-col { border-radius: 18px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); padding: 12px; display: flex; flex-direction: column; gap: 10px; min-height: 220px; transition: background .15s, box-shadow .15s; }
.kb-col.drop { background: var(--neon-soft); box-shadow: inset 0 0 0 1px rgba(94,255,19,.5); }
.kb-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; padding: 2px 4px; }
.kb-h i { width: 8px; height: 8px; border-radius: 50%; }
.kb-h b { color: var(--dim); font-weight: 600; }
.kb-add { margin-left: auto; background: none; border: 1px solid transparent; color: var(--muted); border-radius: 8px; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.kb-add:hover { color: var(--neon); border-color: rgba(94,255,19,.4); }
.kb-list { display: flex; flex-direction: column; gap: 8px; }
.kb-card { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 14px; background: rgba(22,22,22,.9); border: 1px solid rgba(255,255,255,0.08); cursor: grab; transition: border-color .2s, box-shadow .2s, transform .15s; }
.kb-card:hover { border-color: rgba(94,255,19,.4); box-shadow: 0 0 22px rgba(94,255,19,.08); transform: translateY(-1px); }
.kb-card.drag { opacity: .35; }
.kb-card.done b { text-decoration: line-through; color: var(--muted); }
.kb-card b { font-size: 14px; line-height: 1.4; }
.kb-top { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.kb-top .chip { padding: 2px 8px; font-size: 11px; }
.kb-top:empty { display: none; }
.kb-cli { font-size: 12px; color: var(--muted); }
.kb-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kb-vazio { font-size: 12px; color: var(--dim); text-align: center; padding: 18px 8px; border: 1px dashed var(--line-2); border-radius: 12px; }
.tl-grp { gap: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@media (max-width: 1100px) {
  .dash-top { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .md-cols { grid-template-columns: minmax(0, 1fr); }
  .prog-body { flex-direction: column; }
  .tk { grid-template-columns: 30px minmax(0, 1fr) 28px; }
  .tk .tk-prazo { grid-column: 2; grid-row: 2; }
  .kb { grid-template-columns: repeat(4, 82vw); scroll-snap-type: x mandatory; }
  .kb-col { scroll-snap-align: start; }
  .seg button { padding: 8px 10px; }
}

/* ---------- Trava do Financeiro ---------- */
.lock-wrap { display: flex; justify-content: center; padding: 60px 0; }
.lock { width: 100%; max-width: 400px; border-radius: 24px; padding: 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.lock-ic { width: 60px; height: 60px; border-radius: 18px; display: flex; align-items: center; justify-content: center; color: var(--neon); background: var(--neon-soft); box-shadow: 0 0 0 1px rgba(94,255,19,.4), 0 0 30px rgba(94,255,19,.25); }

/* ---------- Modal e avisos ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: flex-start; justify-content: center; padding: 48px 16px; overflow-y: auto; z-index: 100; animation: fade .15s ease; }
.modal { width: 100%; max-width: 720px; border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 18px; background: rgba(20,20,20,.92); box-shadow: 0 0 0 1px rgba(94,255,19,.25), 0 30px 90px rgba(0,0,0,.7), 0 0 60px rgba(94,255,19,.08); animation: up .2s ease; }
.modal.sm { max-width: 460px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; padding-top: 4px; }
.modal-f .left { margin-right: auto; }
.x { background: none; border: 0; color: var(--muted); cursor: pointer; padding: 8px; border-radius: 8px; display: flex; }
.x:hover { color: var(--text); background: rgba(255,255,255,.06); }
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 200; }
.toast { padding: 13px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; background: rgba(20,20,20,.95); border: 1px solid rgba(94,255,19,.4); box-shadow: 0 0 24px rgba(94,255,19,.2); animation: up .2s ease; max-width: 360px; }
.toast.bad { border-color: rgba(255,107,107,.5); box-shadow: 0 0 24px rgba(255,107,107,.2); }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(8px); } }
.skeleton { height: 120px; border-radius: var(--r); background: linear-gradient(90deg, rgba(255,255,255,.03), rgba(255,255,255,.06), rgba(255,255,255,.03)); background-size: 200% 100%; animation: sk 1.2s infinite; }
@keyframes sk { to { background-position: -200% 0; } }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--text-2); line-height: 1.55; }
code, .code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; color: var(--text-2); word-break: break-all; }

/* ---------- Celular ---------- */
@media (max-width: 1100px) {
  .grid4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split, .split-side { grid-template-columns: minmax(0, 1fr); }
  .ficha { position: static; max-height: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 280px; transform: translateX(-100%); transition: transform .25s ease; }
  .shell.menu .side { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.8); }
  .shell.menu::after { content: ""; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 15; }
  .topbar { display: flex; position: sticky; top: 0; z-index: 10; align-items: center; justify-content: space-between; padding: 12px 16px; background: rgba(10,10,10,.85); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); }
  .topbar img { height: 34px; }
  .main { padding: 22px 16px 80px; gap: 20px; }
  h1 { font-size: 30px; }
  .grid3 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .tbl .th { display: none; }
  .tbl .tr { grid-template-columns: minmax(0, 1fr) auto !important; padding: 16px; gap: 10px; }
  .tbl .tr > * { grid-column: 1 / -1; }
  .tbl .tr > .m-right { grid-column: 2; grid-row: 1; justify-self: end; }
  .tbl .tr > .cell-main { grid-column: 1; grid-row: 1; }
  .lbl-m { display: inline; color: var(--dim); font-size: 11px; font-weight: 600; letter-spacing: 1px; margin-right: 6px; }
  .tbl .c { justify-content: flex-start; }
  .checks-row { display: flex !important; gap: 22px; flex-wrap: wrap; }
  .checks-row .c { align-items: center; }
  .tbl .tr > .btn-icon { grid-column: 2; justify-self: end; grid-row: 3; }
  .tbl .tr > span:has(.badge) { grid-column: 1; grid-row: 3; align-self: center; }
  .bars .b { grid-template-columns: minmax(0, 1fr) 90px; }
  .bars .b .bar { grid-column: 1 / -1; grid-row: 2; }
  .search .field { width: 100%; }
  .search { flex: 1; }
  .modal { padding: 22px; }
  .toasts { left: 16px; right: 16px; }
}
@media (max-width: 520px) {
  .grid4 { gap: 10px; }
  .kpi { padding: 16px; gap: 6px; }
  .kpi .v { font-size: 19px; }
  .kpi .l, .kpi .s { font-size: 12px; }
  .auth-card { padding: 28px 22px; }
  .page-head .actions { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
