@font-face { font-family: 'Plus Jakarta Sans'; src: url('/fonts/jakarta.woff2') format('woff2'); font-weight: 200 800; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Fraunces'; src: url('/fonts/fraunces-italic.woff2') format('woff2'); font-weight: 100 900; font-style: italic; font-display: swap; }
:root {
  --bg: #f6f5f1;
  --surface: #ffffff;
  --surface-2: #faf9f6;
  --surface-3: #f0eee8;
  --border: #e6e2d8;
  --border-strong: #d4cfc2;
  --text: #1c1d24;
  --text-2: #565866;
  --text-3: #8a8c99;
  --side: #15172a;
  --side-2: #1f2238;
  --side-text: #c9cbe0;
  --accent: #1d4ed8;
  --accent-soft: color-mix(in srgb, var(--accent) 12%, transparent);
  --gold: #b8913a;
  --ok: #059669;
  --warn: #d97706;
  --danger: #dc2626;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(20, 20, 40, .05), 0 4px 16px rgba(20, 20, 40, .05);
  --shadow-lg: 0 10px 40px rgba(15, 15, 35, .18);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif: 'Fraunces', Georgia, serif;
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0e1016;
  --surface: #161922;
  --surface-2: #1b1f2a;
  --surface-3: #222736;
  --border: #2a2f3d;
  --border-strong: #394052;
  --text: #ecedf3;
  --text-2: #a9adbd;
  --text-3: #767b8e;
  --side: #0a0b10;
  --side-2: #161922;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, .5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font); background: var(--bg); color: var(--text); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
img { max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; letter-spacing: -.01em; }
h1 { font-family: var(--serif); font-weight: 600; font-size: 26px; letter-spacing: -.02em; }
h2 { font-size: 17px; }
h3 { font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.spacer { flex: 1; }

/* ---------- layout ---------- */
.app { display: grid; grid-template-columns: 236px 1fr; height: 100vh; }
.side { background: var(--side); color: var(--side-text); display: flex; flex-direction: column; padding: 18px 12px; gap: 4px; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--gold), #e5c879); display: grid; place-items: center; color: #15172a; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.brand b { font-family: var(--serif); font-size: 18px; font-weight: 600; display: block; line-height: 1.1; }
.brand span { font-size: 11px; color: #8e91ad; letter-spacing: .04em; }
.nav-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .09em; color: #6f7290; padding: 14px 12px 6px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; color: var(--side-text); text-decoration: none; font-weight: 500; position: relative; }
.nav a:hover { background: var(--side-2); color: #fff; }
.nav a.active { background: var(--side-2); color: #fff; }
.nav a.active::before { content: ''; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold); }
.nav a .count { margin-left: auto; background: var(--gold); color: #15172a; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; }
.nav svg { width: 18px; height: 18px; flex-shrink: 0; opacity: .85; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid #262944; display: flex; align-items: center; gap: 10px; padding-left: 6px; }
.side-foot .who { flex: 1; min-width: 0; }
.side-foot .who b { color: #fff; font-weight: 600; font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot .who span { font-size: 11.5px; color: #8e91ad; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-foot button { background: none; border: 0; color: #8e91ad; cursor: pointer; padding: 6px; border-radius: 6px; }
.side-foot button:hover { background: var(--side-2); color: #fff; }

.main { display: flex; flex-direction: column; min-width: 0; overflow: hidden; }
.topbar { display: flex; align-items: center; gap: 12px; padding: 18px 28px 14px; }
.topbar .title { flex: 1; min-width: 0; }
.topbar .title p { margin: 3px 0 0; color: var(--text-2); font-size: 13px; }
.content { flex: 1; overflow: auto; padding: 4px 28px 28px; }
.btn.menu-btn { display: none; }
#page-actions { order: 3; }
.topbar .bell { order: 4; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: 9px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; transition: background .12s, border-color .12s, transform .05s; text-decoration: none; color: var(--text); }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.gold { background: var(--gold); border-color: var(--gold); color: #fff; }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); color: #fff; border-color: var(--danger); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--surface-3); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn.icon { width: 36px; padding: 0; }
.btn.sm.icon { width: 30px; }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.input, select.input, textarea.input { width: 100%; height: 38px; border: 1px solid var(--border-strong); background: var(--surface); border-radius: 9px; padding: 0 12px; outline: none; transition: border-color .12s, box-shadow .12s; }
textarea.input { height: auto; min-height: 90px; padding: 10px 12px; resize: vertical; }
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.input.sm { height: 32px; font-size: 13px; padding: 0 10px; }
label.field { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 12.5px; color: var(--text-2); }
label.field .hint { font-weight: 400; font-size: 12px; color: var(--text-3); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.seg { display: inline-flex; background: var(--surface-3); border-radius: 10px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; cursor: pointer; font-weight: 600; font-size: 12.5px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg .dot { width: 8px; height: 8px; border-radius: 50%; }
.chipset { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-toggle { border: 1px solid var(--border-strong); background: var(--surface); border-radius: 99px; padding: 5px 12px 5px 6px; cursor: pointer; display: inline-flex; align-items: center; gap: 7px; font-weight: 600; font-size: 12.5px; }
.chip-toggle.nopad { padding-left: 12px; }
.chip-toggle.on { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.switch { position: relative; width: 40px; height: 22px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--border-strong); border-radius: 99px; cursor: pointer; transition: .15s; }
.switch span::after { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }

/* ---------- cards ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.card.pad { padding: 18px; }
.card-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-body { padding: 18px; }
.empty { text-align: center; color: var(--text-3); padding: 40px 20px; }
.empty svg { width: 36px; height: 36px; opacity: .5; margin-bottom: 6px; }
.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--surface-3); color: var(--text-2); white-space: nowrap; }
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge.danger { background: color-mix(in srgb, var(--danger) 13%, transparent); color: var(--danger); }
.badge.accent { background: var(--accent-soft); color: var(--accent); }
.co { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px 2px 6px; border-radius: 6px; white-space: nowrap; }
.co i { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.avatar { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 11px; flex-shrink: 0; background-size: cover; background-position: center; border: 2px solid var(--surface); }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; }
.avatar.xl { width: 72px; height: 72px; font-size: 24px; }
.avatars { display: flex; }
.avatars .avatar + .avatar { margin-left: -8px; }

/* ---------- toast / modal ---------- */
.toasts { position: fixed; bottom: 20px; right: 20px; display: flex; flex-direction: column; gap: 8px; z-index: 1000; }
.toast { background: var(--side); color: #fff; padding: 12px 16px; border-radius: 10px; box-shadow: var(--shadow-lg); font-weight: 500; max-width: 380px; animation: tin .2s ease; }
.toast.error { background: var(--danger); }
.toast.ok { background: var(--ok); }
@keyframes tin { from { opacity: 0; transform: translateY(8px); } }
.fx-backdrop { position: fixed; inset: 0; background: rgba(14, 14, 28, .45); backdrop-filter: blur(3px); z-index: 500; display: flex; align-items: flex-start; justify-content: center; padding: 40px 16px; overflow-y: auto; animation: fin .15s ease; }
@keyframes fin { from { opacity: 0; } }
.fx-dlg { background: var(--surface); border-radius: 16px; width: 100%; max-width: 640px; box-shadow: var(--shadow-lg); animation: min .18s ease; }
.fx-dlg.wide { max-width: 980px; }
.fx-dlg.narrow { max-width: 440px; }
@keyframes min { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.fx-dlg-head { display: flex; align-items: center; gap: 10px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.fx-dlg-head h2 { flex: 1; }
.fx-dlg-body { padding: 20px 22px; }
.fx-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 22px; border-top: 1px solid var(--border); background: var(--surface-2); border-radius: 0 0 16px 16px; }

/* ---------- login ---------- */
.login-wrap { min-height: 100vh; display: grid; grid-template-columns: 1.1fr 1fr; }
.login-art { background: radial-gradient(1200px 600px at -10% 110%, #2b2f5c 0%, transparent 60%), radial-gradient(800px 500px at 110% -10%, #5b4520 0%, transparent 55%), var(--side); color: #fff; padding: 56px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.login-art h1 { font-size: 44px; line-height: 1.05; max-width: 480px; color: #fff; }
.login-art h1 em { color: #e5c879; font-style: italic; }
.login-art p { color: #a9acc8; max-width: 420px; font-size: 15px; }
.login-cos { display: flex; gap: 10px; flex-wrap: wrap; }
.login-cos span { border: 1px solid #34385c; padding: 7px 14px; border-radius: 99px; font-size: 13px; color: #d7d9ee; }
.login-form { display: flex; align-items: center; justify-content: center; padding: 40px; }
.login-form form { width: 100%; max-width: 360px; display: flex; flex-direction: column; gap: 14px; }
.login-form h2 { font-family: var(--serif); font-size: 28px; font-weight: 600; }

/* ---------- kanban ---------- */
.toolbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.bday-strip { display: flex; gap: 10px; overflow-x: auto; padding: 2px 2px 12px; margin-bottom: 4px; }
.bday-card { flex-shrink: 0; display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 8px 12px 8px 8px; min-width: 230px; position: relative; overflow: hidden; }
.bday-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); }
.bday-card .ph { width: 44px; height: 44px; border-radius: 10px; background: var(--surface-3) center/cover; flex-shrink: 0; display: grid; place-items: center; font-weight: 700; color: var(--text-3); }
.bday-card b { font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.bday-card .when { font-size: 11.5px; font-weight: 700; color: var(--gold); }
.bday-card.today { background: linear-gradient(120deg, color-mix(in srgb, var(--gold) 16%, var(--surface)), var(--surface)); }
.board { display: flex; gap: 14px; align-items: flex-start; min-height: calc(100vh - 230px); padding-bottom: 10px; overflow-x: auto; }
.col { width: 296px; flex-shrink: 0; background: var(--surface-3); border-radius: 14px; display: flex; flex-direction: column; max-height: calc(100vh - 200px); }
.col-head { display: flex; align-items: center; gap: 8px; padding: 12px 14px 8px; }
.col-head .bar { width: 10px; height: 10px; border-radius: 3px; }
.col-head b { font-size: 13px; }
.col-head .n { color: var(--text-3); font-weight: 700; font-size: 12px; }
.col-head .tag { font-size: 10px; font-weight: 700; color: var(--text-3); border: 1px dashed var(--border-strong); padding: 0 6px; border-radius: 5px; }
.col-body { padding: 4px 10px 12px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; flex: 1; border-radius: 0 0 14px 14px; transition: background .12s; }
.col-body.over { background: var(--accent-soft); }
.kcard { background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 11px 12px; cursor: pointer; box-shadow: 0 1px 1px rgba(0, 0, 0, .03); transition: border-color .12s, box-shadow .12s, transform .12s; position: relative; }
.kcard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.kcard.dragging { opacity: .45; transform: rotate(1.5deg); }
.kcard.attention { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 3px var(--accent-soft); }
.kcard .cos { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 6px; }
.kcard h4 { font-size: 13.5px; font-weight: 650; line-height: 1.3; margin-bottom: 6px; word-break: break-word; }
.kcard .persp { font-size: 11.5px; color: var(--text-2); margin-bottom: 8px; }
.kcard .persp b { color: var(--text); font-weight: 600; }
.kcard .meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 11.5px; color: var(--text-3); }
.kcard .meta svg { width: 13px; height: 13px; }
.kcard .meta span { display: inline-flex; align-items: center; gap: 3px; }
.kcard .foot { display: flex; align-items: center; justify-content: space-between; margin-top: 9px; }
.kcard .prio { position: absolute; top: 10px; right: 10px; width: 8px; height: 8px; border-radius: 50%; }
.kcard .callout { margin-top: 8px; font-size: 11.5px; font-weight: 600; padding: 5px 8px; border-radius: 7px; background: var(--accent-soft); color: var(--accent); display: flex; align-items: center; gap: 5px; }
.kcard .callout.warn { background: color-mix(in srgb, var(--warn) 13%, transparent); color: var(--warn); }
.kcard .callout.gold { background: color-mix(in srgb, var(--gold) 15%, transparent); color: var(--gold); }
.prio-baixa { background: #94a3b8; } .prio-media { background: #3b82f6; } .prio-alta { background: #f59e0b; } .prio-urgente { background: #dc2626; box-shadow: 0 0 0 3px rgba(220, 38, 38, .2); }
.due { font-weight: 700; }
.due.late { color: var(--danger); } .due.soon { color: var(--warn); } .due.today { color: var(--accent); }

/* ---------- demand detail ---------- */
.detail { display: grid; grid-template-columns: 1fr 300px; gap: 0; }
.detail .main-col { padding: 20px 22px; border-right: 1px solid var(--border); min-width: 0; }
.detail .side-col { padding: 20px; background: var(--surface-2); border-radius: 0 0 16px 0; display: flex; flex-direction: column; gap: 16px; }
.kv { display: flex; flex-direction: column; gap: 4px; }
.kv > span:first-child { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--text-3); }
.section-t { font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--text-3); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.desc { white-space: pre-wrap; word-break: break-word; }
.files { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.file { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; background: var(--surface); position: relative; text-decoration: none; color: var(--text); display: block; }
.file .th { height: 86px; background: var(--surface-3) center/cover; display: grid; place-items: center; color: var(--text-3); font-weight: 700; font-size: 12px; }
.file .nm { font-size: 11.5px; padding: 6px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file .x { position: absolute; top: 4px; right: 4px; background: rgba(0, 0, 0, .6); color: #fff; border: 0; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; display: none; }
.file:hover .x { display: block; }
.links a { display: block; word-break: break-all; font-size: 13px; padding: 3px 0; }
.approval-box { border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--border)); background: var(--accent-soft); border-radius: 12px; padding: 14px; }
.approval-box .url { display: flex; gap: 6px; margin-top: 8px; }
.approval-box .url input { font-size: 12px; }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline .ev { display: flex; gap: 10px; font-size: 13px; }
.timeline .ev .t { color: var(--text-3); font-size: 11.5px; }
.comment { background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px; }
.comment b { font-size: 12.5px; }
.status-pill { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12px; padding: 4px 10px; border-radius: 99px; }
.st-producao { background: #dbeafe; color: #1d4ed8; } .st-ajustes { background: #fef3c7; color: #b45309; } .st-aprovacao { background: #ede9fe; color: #6d28d9; } .st-aprovada { background: #d1fae5; color: #047857; } .st-concluida { background: #e2e8f0; color: #475569; }
[data-theme="dark"] .st-producao { background: #1e3a8a55; color: #93c5fd; } [data-theme="dark"] .st-ajustes { background: #78350f55; color: #fcd34d; } [data-theme="dark"] .st-aprovacao { background: #4c1d9555; color: #c4b5fd; } [data-theme="dark"] .st-aprovada { background: #064e3b55; color: #6ee7b7; } [data-theme="dark"] .st-concluida { background: #33415555; color: #cbd5e1; }
.dropzone { border: 2px dashed var(--border-strong); border-radius: 12px; padding: 18px; text-align: center; color: var(--text-2); cursor: pointer; transition: .12s; }
.dropzone:hover, .dropzone.over { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }
.pick-people { display: flex; flex-wrap: wrap; gap: 6px; }
.pick-people .chip-toggle .avatar { width: 22px; height: 22px; font-size: 9px; border: 0; }

/* ---------- calendar ---------- */
.cal { display: grid; grid-template-columns: repeat(7, 1fr); border-top: 1px solid var(--border); border-left: 1px solid var(--border); background: var(--surface); border-radius: 12px; overflow: hidden; }
.cal .dow { padding: 8px 10px; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; font-weight: 700; color: var(--text-3); border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--surface-2); }
.cal .day { min-height: 118px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 6px; display: flex; flex-direction: column; gap: 3px; cursor: pointer; transition: background .1s; min-width: 0; }
.cal .day:hover { background: var(--surface-2); }
.cal .day.out { background: var(--surface-2); }
.cal .day.out .num { color: var(--text-3); opacity: .6; }
.cal .num { font-weight: 700; font-size: 12.5px; padding: 2px 4px; display: flex; align-items: center; justify-content: space-between; }
.cal .day.today .num b { background: var(--accent); color: #fff; border-radius: 6px; padding: 0 6px; }
.cal .ev { font-size: 11.5px; padding: 3px 6px; border-radius: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; border-left: 3px solid; cursor: pointer; }
.cal .ev.bd { border-left-color: var(--gold) !important; background: color-mix(in srgb, var(--gold) 12%, transparent) !important; color: var(--text) !important; }
.cal .more { font-size: 11px; color: var(--text-3); padding-left: 6px; font-weight: 600; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; color: var(--text-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }

/* ---------- birthdays ---------- */
.bgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.bperson { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.bperson .ph { aspect-ratio: 1 / 1; background: var(--surface-3) center/cover; position: relative; display: grid; place-items: center; font-family: var(--serif); font-size: 42px; color: var(--text-3); }
.bperson .ph .date { position: absolute; left: 10px; bottom: 10px; background: rgba(15, 15, 30, .78); color: #fff; font-family: var(--font); font-size: 12px; font-weight: 700; padding: 4px 9px; border-radius: 8px; backdrop-filter: blur(4px); }
.bperson .ph .soon { position: absolute; right: 10px; top: 10px; background: var(--gold); color: #fff; font-family: var(--font); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 8px; }
.bperson .info { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; flex: 1; }
.bperson .info b { font-size: 14px; }
.bperson .acts { display: flex; gap: 4px; padding: 0 8px 10px; }
.month-h { font-family: var(--serif); font-size: 20px; font-weight: 600; margin: 22px 0 12px; display: flex; align-items: center; gap: 10px; }
.month-h small { font-family: var(--font); font-size: 12px; color: var(--text-3); font-weight: 600; }

/* ---------- dashboards ---------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 14px 16px; }
.kpi .l { font-size: 11.5px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; }
.kpi .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .s { font-size: 12px; color: var(--text-2); margin-top: 2px; }
.charts { display: grid; grid-template-columns: 2fr 1fr; gap: 14px; margin-bottom: 16px; }
.chart-box { position: relative; height: 260px; }
table.t { width: 100%; border-collapse: collapse; font-size: 13px; }
table.t th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--border); white-space: nowrap; cursor: pointer; user-select: none; background: var(--surface-2); position: sticky; top: 0; }
table.t th.num, table.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
table.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.t tr:hover td { background: var(--surface-2); }
.table-wrap { overflow: auto; max-height: 560px; border-radius: 0 0 12px 12px; }
.sdot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-right: 6px; }
.demo-banner { display: flex; align-items: center; gap: 10px; background: color-mix(in srgb, var(--gold) 13%, var(--surface)); border: 1px solid color-mix(in srgb, var(--gold) 40%, var(--border)); color: var(--text); padding: 10px 14px; border-radius: 12px; margin-bottom: 14px; font-size: 13px; }
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.post { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.post .ph { aspect-ratio: 4 / 5; background: var(--surface-3) center/cover; position: relative; display: flex; align-items: flex-end; padding: 12px; color: #fff; font-weight: 700; font-size: 15px; line-height: 1.25; }
.post .ph .type { position: absolute; top: 10px; left: 10px; background: rgba(0, 0, 0, .55); padding: 3px 8px; border-radius: 7px; font-size: 11px; }
.post .ph .rank { position: absolute; top: 10px; right: 10px; background: var(--gold); padding: 3px 9px; border-radius: 7px; font-size: 12px; }
.post .body { padding: 12px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.post .cap { font-size: 12.5px; color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.post .nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.post .nums div { background: var(--surface-2); border-radius: 8px; padding: 6px 8px; }
.post .nums b { display: block; font-size: 14px; font-variant-numeric: tabular-nums; }
.post .nums span { font-size: 10.5px; color: var(--text-3); font-weight: 600; text-transform: uppercase; }
.post .reasons { display: flex; flex-direction: column; gap: 4px; }
.post .reasons span { font-size: 11.5px; color: var(--ok); font-weight: 600; display: flex; gap: 5px; }
.post.cand { border-color: color-mix(in srgb, var(--gold) 55%, var(--border)); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 15%, transparent); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bars .b { display: grid; grid-template-columns: 120px 1fr 64px; gap: 10px; align-items: center; font-size: 12.5px; }
.bars .track { height: 10px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bars .fill { height: 100%; background: var(--accent); border-radius: 99px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; padding: 10px 14px; font-weight: 600; color: var(--text-2); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.on { color: var(--text); border-bottom-color: var(--accent); }
.notif-panel { position: absolute; right: 28px; top: 64px; width: 380px; max-height: 70vh; overflow: auto; z-index: 300; }
.notif { padding: 12px 16px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 13px; display: flex; gap: 10px; }
.notif:hover { background: var(--surface-2); }
.notif.unread { background: var(--accent-soft); }
.notif .t { font-size: 11.5px; color: var(--text-3); margin-top: 2px; }
.bell { position: relative; }
.bell .dot { position: absolute; top: 5px; right: 6px; min-width: 16px; height: 16px; padding: 0 4px; font-size: 10px; font-weight: 700; border-radius: 99px; background: var(--danger); color: #fff; display: grid; place-items: center; }
.colcfg { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); }
.colcfg input[type=color] { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; }
.colcfg .drag { cursor: grab; color: var(--text-3); }

@media (max-width: 1100px) {
  .charts { grid-template-columns: 1fr; }
  .detail { grid-template-columns: 1fr; }
  .detail .main-col { border-right: 0; }
  .detail .side-col { border-radius: 0 0 16px 16px; }
}
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 250px; z-index: 400; transform: translateX(-100%); transition: transform .2s; }
  .side.open { transform: none; box-shadow: var(--shadow-lg); }
  .btn.menu-btn { display: inline-flex; }
  .topbar .bell { order: 2; }
  #page-actions { order: 5; width: 100%; }
  .topbar { padding: 14px 16px 10px; flex-wrap: wrap; }
  .content { padding: 4px 16px 20px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .login-wrap { grid-template-columns: 1fr; }
  .login-art { display: none; }
  .cal .day { min-height: 74px; }
  .cal .ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; }
  .notif-panel { right: 8px; left: 8px; width: auto; }
  h1 { font-size: 22px; }
}
table.t tr.selrow td { background: var(--accent-soft); }
table.t tfoot td { position: sticky; bottom: 0; background: var(--surface-2); border-top: 1px solid var(--border-strong); }
table.t td .switch { width: 34px; height: 19px; }
table.t td .switch span::after { width: 13px; height: 13px; }
table.t td .switch input:checked + span::after { transform: translateX(15px); }
.info-box { display: flex; gap: 12px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; margin-top: 12px; border: 1px solid var(--border); background: var(--surface-2); }
.info-box.star { border-color: color-mix(in srgb, #eab308 45%, var(--border)); background: color-mix(in srgb, #eab308 10%, var(--surface)); align-items: center; }
.info-box.bday { border-color: color-mix(in srgb, var(--gold) 45%, var(--border)); background: color-mix(in srgb, var(--gold) 9%, var(--surface)); }
.info-box .bph { width: 92px; height: 92px; border-radius: 10px; background: var(--surface-3) center/cover; flex-shrink: 0; display: grid; place-items: center; font-family: var(--serif); font-size: 32px; color: var(--text-3); text-decoration: none; }
.kcard .callout.star { background: color-mix(in srgb, #eab308 14%, transparent); color: #a16207; }
[data-theme="dark"] .kcard .callout.star { color: #fde047; }
.cal .ev.cm { border-left-color: #eab308 !important; background: color-mix(in srgb, #eab308 10%, transparent) !important; color: var(--text-2) !important; font-weight: 500; }
.dayitem { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; cursor: pointer; background: var(--surface); }
.dayitem:hover { border-color: var(--border-strong); background: var(--surface-2); }
.cal .num b { cursor: pointer; border-radius: 6px; padding: 0 6px; }
.cal .num b:hover { background: var(--accent-soft); color: var(--accent); }
.cal .more { cursor: pointer; }
.cal .more:hover { color: var(--accent); }
.sched { display: grid; grid-template-columns: 1.15fr 1fr; gap: 22px; }
.smedia { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.smi { border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.smi.off { opacity: .45; }
.smi .smh { display: flex; align-items: center; }
.smi input[type=range] { width: 100%; accent-color: var(--accent); }
.smi .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--text-3); }
.pst { display: inline-flex; align-items: center; gap: 5px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.pst-rascunho { background: var(--surface-3); color: var(--text-2); }
.pst-agendado { background: #dbeafe; color: #1d4ed8; }
.pst-publicando { background: #fef3c7; color: #b45309; }
.pst-publicado { background: #d1fae5; color: #047857; }
.pst-erro, .pst-perdido { background: #fee2e2; color: #b91c1c; }
[data-theme="dark"] .pst-agendado { background: #1e3a8a55; color: #93c5fd; } [data-theme="dark"] .pst-publicando { background: #78350f55; color: #fcd34d; } [data-theme="dark"] .pst-publicado { background: #064e3b55; color: #6ee7b7; } [data-theme="dark"] .pst-erro, [data-theme="dark"] .pst-perdido { background: #7f1d1d55; color: #fca5a5; }
.cal .ev.pev { display: flex; align-items: center; gap: 4px; }
.cal .ev.pev img { width: 16px; height: 16px; border-radius: 3px; object-fit: cover; flex-shrink: 0; }
.ppreview { display: flex; gap: 8px; overflow-x: auto; }
.ppreview img, .ppreview video { height: 180px; border-radius: 8px; border: 1px solid var(--border); }
@media (max-width: 900px) { .sched { grid-template-columns: 1fr; } }
.cal .ev.pev { flex-direction: row; align-items: center; }
.grid2 > *, .grid3 > * { min-width: 0; }
.balances { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin-bottom: 16px; }
.bal { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.bal.low { border-color: color-mix(in srgb, var(--danger) 45%, var(--border)); background: color-mix(in srgb, var(--danger) 5%, var(--surface)); }
.bal .l { font-size: 11px; font-weight: 700; color: var(--text-3); text-transform: uppercase; letter-spacing: .06em; margin-top: 8px; }
.bal .v { font-size: 22px; font-weight: 750; font-variant-numeric: tabular-nums; }
.bal .track { background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.bal .fill { height: 100%; border-radius: 99px; }
.igprev { border: 1px solid var(--border); border-radius: 12px; background: var(--surface); max-width: 380px; overflow: hidden; }
.igprev .hd { display: flex; align-items: center; gap: 8px; padding: 10px 12px; font-weight: 700; font-size: 13px; }
.igprev .hd i { width: 28px; height: 28px; border-radius: 50%; background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); display: inline-block; }
.igprev .im { background: #000 center/cover; width: 100%; }
.igprev .cp { padding: 10px 12px 12px; font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.igprev .cp .tag { color: #4f7cff; }
.igprev .more { color: var(--text-3); cursor: pointer; }
.board { scroll-behavior: auto; }
.slides { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.slides:empty { display: none; }
.slide { border: 1px solid var(--border); border-radius: 10px; padding: 8px; background: var(--surface); display: flex; flex-direction: column; gap: 6px; }
.slide .sl-top { display: flex; align-items: center; font-size: 12.5px; }
.slide .sl-img { aspect-ratio: 3 / 4; border-radius: 8px; background: var(--surface-3) center/cover; display: grid; place-items: center; color: var(--text-3); font-weight: 700; }
.slide .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file { position: relative; }
.file .tile-label { position: absolute; top: 6px; left: 6px; background: rgba(15, 15, 30, .78); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; }
.kpi .v { overflow-wrap: anywhere; }
.kpis .kpi .v { font-size: clamp(18px, 1.55vw, 24px); }

/* ---------- Vestibular ---------- */
.search-in { position: relative; display: flex; align-items: center; }
.search-in svg { position: absolute; left: 10px; width: 15px; height: 15px; color: var(--text-3); pointer-events: none; }
.search-in .input { padding-left: 32px; }
.vstage { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 700; padding: 2px 9px 2px 7px; border-radius: 99px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); white-space: nowrap; }
.vstage::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.mdots { display: inline-flex; gap: 3px; }
.md { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--surface-3); border: 1px solid var(--border-strong); vertical-align: middle; }
.md.ok { background: var(--ok); border-color: var(--ok); }
.md.simulado { background: color-mix(in srgb, var(--accent) 55%, transparent); border-color: var(--accent); }
.md.pend { background: transparent; border: 2px solid var(--warn); }
.md.importado { background: var(--text-3); border-color: var(--text-3); opacity: .55; }
.md.erro { background: var(--danger); border-color: var(--danger); }
.md.na { opacity: .35; }
select.tri { border: 1px solid var(--border-strong); border-radius: 7px; background: var(--surface); padding: 3px 4px; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; color: var(--text-2); }
select.tri.y { background: color-mix(in srgb, var(--ok) 13%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 45%, transparent); color: var(--ok); }
select.tri.n { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 40%, transparent); color: var(--danger); }
table.vt td { padding: 8px 10px; }
table.vt tr.selrow td { background: var(--accent-soft); }
.vname { font-weight: 650; color: var(--text); text-decoration: none; }
.vname:hover { color: var(--accent); text-decoration: underline; }
.bulkbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); }
.vficha { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; max-height: calc(100vh - 190px); overflow: auto; }
.vficha section { display: flex; flex-direction: column; gap: 10px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.vficha section:last-child { border-bottom: 0; }
.vficha h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); }
.vtimeline { display: flex; flex-direction: column; gap: 12px; }
.vt-i { display: flex; gap: 10px; align-items: flex-start; opacity: .5; }
.vt-i.on { opacity: 1; }
.vt-i > i { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--c); margin-top: 3px; flex: none; }
.vt-i.on > i { background: var(--c); }
.vt-i code { font-size: 11.5px; }
.vhist { display: flex; flex-direction: column; gap: 8px; max-height: 260px; overflow: auto; }
.vfunnel { display: flex; flex-direction: column; gap: 10px; }
.vf-row { display: grid; grid-template-columns: 140px 1fr 48px; gap: 10px; align-items: center; font-size: 13px; }
.vf-row b { text-align: right; font-variant-numeric: tabular-nums; }
.vf-track { height: 22px; background: var(--surface-3); border-radius: 6px; overflow: hidden; }
.vf-track div { height: 100%; border-radius: 6px; }
.vpend { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--border); }
.vpend a { font-size: 13px; color: var(--warn); text-decoration: none; }
.vpend a.zero { color: var(--text-3); pointer-events: none; }
.vpend a b { font-size: 15px; }
.corr-list { display: flex; flex-direction: column; gap: 10px; }
.corr { display: grid; grid-template-columns: minmax(180px, 1.3fr) minmax(150px, 1fr) 110px 110px minmax(160px, 1.4fr) 90px; gap: 12px; align-items: center; padding: 12px 16px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.corr.done { border-left: 4px solid var(--ok); }
.corr.dq { border-left: 4px solid var(--danger); }
.corr .lbl { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-3); margin-bottom: 3px; }
.corr .st { font-size: 12px; text-align: right; }
.progress { height: 8px; background: var(--surface-3); border-radius: 99px; overflow: hidden; }
.progress > div { height: 100%; background: var(--ok); border-radius: 99px; }
.essay-view { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; }
.essay-view .pages { display: flex; flex-direction: column; gap: 10px; max-height: calc(100vh - 230px); overflow: auto; background: var(--surface-3); border-radius: 10px; padding: 10px; }
.essay-view .pages img { width: 100%; border-radius: 6px; background: #fff; }
.essay-view .pages iframe { width: 100%; height: calc(100vh - 260px); border: 0; border-radius: 6px; background: #fff; }
@media (max-width: 900px) {
  .vficha, .essay-view { grid-template-columns: 1fr; }
  .corr { grid-template-columns: 1fr 1fr; }
  .vf-row { grid-template-columns: 100px 1fr 40px; }
}
.demo-banner svg { width: 18px; height: 18px; flex: none; }
.dropzone > svg { width: 20px; height: 20px; flex: none; }
.dropzone.small { padding: 10px; font-size: 12.5px; }
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; }
.vcard { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--shadow); }
.vcard.off { opacity: .75; }
.vcard h3 { font-size: 16px; cursor: pointer; }
.vcard h3:hover { color: var(--accent); }
.vcard-n { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.vcard-n div { background: var(--surface-2); border-radius: 8px; padding: 7px 8px; }
.vcard-n b { display: block; font-size: 17px; font-variant-numeric: tabular-nums; }
.vcard-n span { font-size: 10.5px; color: var(--text-3); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.vback { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); text-decoration: none; font-weight: 600; margin: -6px 0 10px; }
.vback svg { width: 15px; height: 15px; }
.vback:hover { color: var(--accent); }
.umods { display: flex; flex-direction: column; gap: 10px; padding: 12px 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface-2); }
.modgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 6px 14px; }
.modchk { display: flex; align-items: center; gap: 8px; font-size: 13px; cursor: pointer; padding: 3px 0; }
.vcbox:empty { display: none; }
.vcbox { border-top: 1px solid var(--border); padding-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.ctabs { display: flex; gap: 8px; flex-wrap: wrap; }
.ctabs button { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font: inherit; color: var(--text); min-width: 180px; text-align: left; }
.ctabs button span { font-size: 12px; color: var(--warn); font-weight: 600; }
.ctabs button.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent-soft); }
.ctabs button span.ok { color: var(--ok); }

/* ---------- Kanban: colunas fixas, links rápidos e anotações ---------- */
.col.pinned { position: sticky; z-index: 3; box-shadow: 0 0 0 1px var(--border); }
.col.pinned.pin-last { box-shadow: 0 0 0 1px var(--border), 10px 0 14px -10px rgba(0, 0, 0, .25); }
.col-head { position: relative; }
.col-menu { margin-left: auto; border: 0; background: transparent; color: var(--text-3); font-size: 18px; line-height: 1; padding: 0 4px 4px; border-radius: 6px; cursor: pointer; }
.col-menu:hover { background: var(--surface); color: var(--text); }
.col-head .tag svg { vertical-align: -1px; margin-right: 2px; }
.col-foot { padding: 0 10px 10px; }
.addit { width: 100%; display: flex; align-items: center; gap: 6px; border: 0; background: transparent; padding: 8px; border-radius: 8px; color: var(--text-2); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.addit svg { width: 15px; height: 15px; }
.addit:hover { background: var(--surface); color: var(--text); }
.qadd { display: flex; flex-direction: column; gap: 6px; }
.qadd textarea { height: auto; padding: 8px 10px; resize: vertical; }
.qlink { display: flex; align-items: center; gap: 10px; padding: 9px 10px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--lc, var(--border)); border-radius: 10px; text-decoration: none; color: var(--text); position: relative; }
.qlink:hover { border-color: var(--border-strong); border-left-color: var(--lc, var(--accent)); box-shadow: var(--shadow); }
.qlink .fav { width: 26px; height: 26px; border-radius: 7px; background: var(--surface-3); display: grid; place-items: center; flex: none; overflow: hidden; font-size: 14px; }
.qlink .fav img { width: 18px; height: 18px; }
.qlink b { display: block; font-size: 13px; font-weight: 650; line-height: 1.25; word-break: break-word; }
.qlink .dom { display: block; font-size: 11.5px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 190px; }
.qlink .qacts { display: none; gap: 2px; }
.qlink:hover .qacts { display: flex; }
.qacts button { border: 0; background: var(--surface-3); width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; cursor: pointer; color: var(--text-2); }
.qacts button:hover { color: var(--accent); }
.qacts svg { width: 14px; height: 14px; }
.ncard { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 9px 10px; cursor: pointer; position: relative; }
.ncard:hover { border-color: var(--border-strong); box-shadow: var(--shadow); }
.ncard .nlabel { display: block; width: 36px; height: 6px; border-radius: 99px; margin: 0 0 7px 26px; }
.ncard input[type=checkbox] { margin-top: 2px; width: 16px; height: 16px; accent-color: var(--ok); cursor: pointer; flex: none; }
.ncard .nt { font-size: 13px; line-height: 1.35; white-space: pre-wrap; word-break: break-word; }
.ncard.done .nt { text-decoration: line-through; color: var(--text-3); }
.ncard .nmeta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; font-size: 11.5px; color: var(--text-3); }
.ncard .nmeta span, .ncard .nmeta a { display: inline-flex; align-items: center; gap: 3px; color: inherit; text-decoration: none; }
.ncard .nmeta a:hover { color: var(--accent); }
.ncard .nmeta svg { width: 12px; height: 12px; }
.ncard .nmeta .late { color: var(--danger); font-weight: 700; }
.ncard .nmeta .soon { color: var(--warn); font-weight: 700; }
.qlink.dragging, .ncard.dragging { opacity: .4; }
.drop-mark { height: 3px; border-radius: 99px; background: var(--accent); margin: -2px 0; }
.col-add { background: transparent; border: 2px dashed var(--border-strong); padding: 14px; gap: 6px; align-items: stretch; width: 230px; }
.col-add .btn { justify-content: flex-start; }
.colpop { position: fixed; z-index: 60; width: 260px; padding: 6px; display: flex; flex-direction: column; gap: 1px; box-shadow: var(--shadow-lg); }
.colpop button, .colpop .cp-color { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 8px 10px; border-radius: 7px; font: inherit; font-size: 13px; color: var(--text); cursor: pointer; text-align: left; }
.colpop button:hover, .colpop .cp-color:hover { background: var(--surface-3); }
.colpop button.danger { color: var(--danger); }
.colpop svg { width: 15px; height: 15px; color: var(--text-3); }
.colpop .cp-color input { margin-left: auto; width: 34px; height: 22px; border: 0; padding: 0; background: none; }
.swatch { width: 30px; height: 22px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface); cursor: pointer; font-size: 12px; color: var(--text-3); }
.swatch.on { outline: 2px solid var(--text); outline-offset: 2px; }
pre.code { background: var(--surface-3); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; font-size: 12px; overflow-x: auto; margin: 6px 0; white-space: pre; font-family: ui-monospace, Consolas, monospace; }
.cal .ev.pl { border-left: 3px dashed var(--pc) !important; background: color-mix(in srgb, var(--pc) 7%, transparent) !important; color: var(--text-2) !important; font-weight: 500; }
.cal .ev.pl.done { opacity: .55; text-decoration: line-through; }
.plan-strip { background: var(--surface); border: 1px dashed var(--border-strong); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; }
.plan-strip b svg { vertical-align: -2px; }
.plan-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 4px 9px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--pc) 40%, var(--border)); background: color-mix(in srgb, var(--pc) 8%, var(--surface)); cursor: pointer; }
.plan-chip i { font-style: normal; color: var(--text-3); font-size: 11px; }
.plan-chip.done { opacity: .55; text-decoration: line-through; }
.plan-chip:hover { border-color: var(--pc); }
.stepn { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; background: var(--surface-3); color: var(--text-2); flex: none; }
.stepn.ok { background: var(--ok); color: #fff; }
.stagecfg { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface-2); }
.printonly { display: none; }
@media print {
  .side, .topbar #page-actions, .topbar .bell, .menu-btn, .noprint, #toasts, .demo-banner { display: none !important; }
  .printonly { display: block; }
  .app { display: block !important; }
  .main, .content { overflow: visible !important; height: auto !important; padding: 0 !important; }
  body { background: #fff !important; }
  .card, .kpi { break-inside: avoid; box-shadow: none !important; }
  .table-wrap { max-height: none !important; overflow: visible !important; }
  .rep .grid2 { grid-template-columns: 1fr; }
  .rep canvas { max-width: 100% !important; }
  a { color: inherit; text-decoration: none; }
}

/* agendamento: horários múltiplos e prévia no tamanho da Meta */
.slot { display: flex; align-items: center; gap: 6px; }
.slot .input { flex: 1; min-width: 0; }
.sprev { display: flex; justify-content: center; padding: 14px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 12px; }
.sprev canvas, .sprev video { display: block; width: 100%; height: auto; }
.sprev .mw { position: relative; background: #000; }
.pvig { width: 100%; max-width: 340px; }
.pvig .act { display: flex; gap: 4px; padding: 8px 12px 0; font-size: 18px; }
.pvig .cp .more, .pvfb .cp .more { color: var(--text-3); }
.pvn { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.88); color: #111; font-size: 18px; line-height: 1; cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.3); }
.pvn:disabled { display: none; }
.pvn.l { left: 8px; } .pvn.r { right: 8px; }
.pvdots { display: flex; justify-content: center; gap: 4px; padding-top: 8px; }
.pvdots i { width: 6px; height: 6px; border-radius: 50%; background: var(--border-strong, #c7ccd6); }
.pvdots i.on { background: #3b82f6; }
.pvstory { position: relative; width: 100%; max-width: 250px; aspect-ratio: 9/16; background: #000; border-radius: 16px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.pvstory canvas, .pvstory video { width: 100%; height: 100%; object-fit: contain; }
.pvstory .bars { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 3px; z-index: 2; }
.pvstory .bars i { flex: 1; height: 2px; border-radius: 2px; background: rgba(255,255,255,.4); }
.pvstory .bars i.on { background: #fff; }
.pvstory .hd { position: absolute; top: 16px; left: 10px; right: 10px; display: flex; align-items: center; gap: 6px; color: #fff; font-weight: 700; font-size: 12px; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,.5); }
.pvstory .hd i { width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(135deg,#f58529,#dd2a7b,#8134af); border: 2px solid #fff; }
.pvstory .hd span { font-weight: 400; opacity: .8; }
.pvstory .rcap { position: absolute; left: 10px; right: 40px; bottom: 14px; color: #fff; font-size: 12px; text-shadow: 0 1px 3px rgba(0,0,0,.6); }
.pvstory .rcap .tag { color: #fff; font-weight: 700; }
.pvfb { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; font-size: 13px; }
.pvfb .hd { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }
.pvfb .hd i { width: 34px; height: 34px; border-radius: 50%; background: #1877f2; }
.pvfb .hd b { display: block; } .pvfb .hd span { color: var(--text-3); font-size: 11px; }
.pvfb .cp { padding: 0 12px 10px; white-space: pre-wrap; word-break: break-word; }
.pvfb .cp .tag { color: #1877f2; }
.pvfb .ft { display: flex; justify-content: space-around; padding: 8px; border-top: 1px solid var(--border); margin-top: 8px; color: var(--text-3); }
.igprev img.imx, .igprev video.imx { display: block; width: 100%; height: auto; max-height: 520px; object-fit: contain; background: #000; }
.dropzone.busy { opacity: .6; pointer-events: none; cursor: progress; }
