/* Efekty PMO: sistema visual. Base operacional, clara, com a marca Efekty
   (grafite + azul metálico) e cores por empresa. Sem sombras, sem cartões empilhados. */
:root {
  --paper: #F8F8F6;
  --paper-2: #F1F1EE;
  --ink: #17191C;
  --ink-2: #4A4D52;
  --ink-3: #7A7E85;
  --line: #DEDFDA;
  --line-2: #C9CBC5;
  --blue: #2E82DE;
  --blue-soft: #E3EEFA;
  --navy: #0D2B55;
  --green: #1D9E75;
  --green-soft: #E2F3EC;
  --amber: #B7791F;
  --amber-soft: #F8EDD8;
  --red: #C0392B;
  --red-soft: #F8E1DE;
  --violet: #6D4FC2;
  --violet-soft: #ECE7F8;
  --co-efekty: #2E82DE;
  --co-berio: #1D9E75;
  --co-bmn: #0D2B55;
  --co-grupo: #17191C;
  --radius: 6px;
  --sidebar-w: 224px;
  --font: ui-sans-serif, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --paper: #141619; --paper-2: #1C1F23; --ink: #ECEDEA; --ink-2: #C3C6C9; --ink-3: #8C9096; --line: #2B2F34; --line-2: #3A3F45;
    --blue-soft: #1B2E45; --green-soft: #15302A; --amber-soft: #3A2E17; --red-soft: #3B1F1C; --violet-soft: #26203A; --navy: #0A1D3A;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #141619; --paper-2: #1C1F23; --ink: #ECEDEA; --ink-2: #C3C6C9; --ink-3: #8C9096; --line: #2B2F34; --line-2: #3A3F45;
  --blue-soft: #1B2E45; --green-soft: #15302A; --amber-soft: #3A2E17; --red-soft: #3B1F1C; --violet-soft: #26203A; --navy: #0A1D3A;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--paper); color: var(--ink); font-family: var(--font); font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
/* Controles nativos: fundo e texto sempre dos tokens; a lista do select herda via color-scheme */
select, input:not([type=checkbox]):not([type=radio]), textarea { background: var(--paper); color: var(--ink); }
select option { background: var(--paper); color: var(--ink); }
h1, h2, h3, h4 { margin: 0; font-weight: 650; letter-spacing: -0.01em; line-height: 1.2; }
h1 { font-size: 22px; } h2 { font-size: 17px; } h3 { font-size: 14px; }
p { margin: 0 0 8px; }
small, .muted { color: var(--ink-3); }
.mono { font-family: var(--mono); font-size: 12px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* Shell ----------------------------------------------------------------- */
.boot { padding: 40px; color: var(--ink-3); }
.app { min-height: 100%; }
.shell { display: grid; grid-template-columns: var(--sidebar-w) 1fr; min-height: 100vh; }
.sidebar { background: var(--navy); color: #E8EEF7; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { padding: 18px 18px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid rgba(255,255,255,.12); }
.brand .logo { width: 28px; height: 28px; border-radius: 6px; background: #17191C; display: grid; place-items: center; font-weight: 800; color: #F8F8F6; font-size: 15px; position: relative; }
.brand .logo::after { content: ""; position: absolute; top: 3px; right: 3px; width: 6px; height: 6px; border-radius: 50%; background: var(--blue); }
.brand b { font-size: 15px; letter-spacing: -0.01em; }
.brand small { display: block; color: rgba(232,238,247,.6); font-size: 11px; }
.nav { padding: 10px 10px; display: flex; flex-direction: column; gap: 1px; }
.nav .group { color: rgba(232,238,247,.5); font-size: 11px; padding: 12px 8px 4px; }
.nav a { color: #E8EEF7; padding: 7px 10px; border-radius: 5px; display: flex; align-items: center; gap: 9px; font-size: 13.5px; }
.nav a:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.nav a.active { background: rgba(255,255,255,.14); font-weight: 600; }
.nav a .n { margin-left: auto; font-size: 11px; background: rgba(255,255,255,.14); padding: 1px 6px; border-radius: 10px; }
.nav a .n.alert { background: var(--red); color: #fff; }
.sidebar .foot { margin-top: auto; padding: 12px 18px; font-size: 12px; color: rgba(232,238,247,.6); border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sidebar .foot button { background: none; border: 1px solid rgba(255,255,255,.25); color: inherit; border-radius: 4px; padding: 3px 8px; cursor: pointer; font-size: 12px; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 24px; display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; }
.scope { display: flex; gap: 4px; background: var(--paper-2); border: 1px solid var(--line); border-radius: 999px; padding: 3px; max-width: 100%; min-width: 0; flex: 0 1 auto; overflow-x: auto; scrollbar-width: none; }
.scope::-webkit-scrollbar { display: none; }
.scope button { border: 0; background: transparent; padding: 5px 12px; white-space: nowrap; flex: none; border-radius: 999px; cursor: pointer; display: flex; align-items: center; gap: 7px; font-size: 13px; color: var(--ink-2); }
.scope button.active { background: var(--ink); color: var(--paper); }
.scope .dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.search { margin-left: auto; position: relative; min-width: 160px; flex: 0 1 340px; }
.search input { width: 100%; padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper-2); }
.search .results { position: absolute; top: 38px; left: 0; right: 0; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--radius); max-height: 360px; overflow: auto; z-index: 30; }
.search .results a { display: flex; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.search .results a:hover { background: var(--paper-2); text-decoration: none; }
.content { padding: 22px 24px 60px; max-width: 1480px; width: 100%; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.page-head p { color: var(--ink-3); margin: 4px 0 0; max-width: 70ch; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }
.menu-btn { display: none; }

/* Botoes e formularios --------------------------------------------------- */
.btn { border: 1px solid var(--line-2); background: var(--paper); color: var(--ink); border-radius: var(--radius); padding: 7px 12px; cursor: pointer; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn:hover { background: var(--paper-2); }
.btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.btn.primary:hover { background: #2570C4; }
.btn.danger { color: var(--red); border-color: var(--red); }
.btn.sm { padding: 4px 9px; font-size: 12px; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn:disabled { opacity: .5; cursor: default; }
.field { display: flex; flex-direction: column; gap: 4px; }
.field label { font-size: 12px; color: var(--ink-2); }
.field input, .field select, .field textarea { padding: 7px 10px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); width: 100%; }
.field textarea { min-height: 72px; resize: vertical; }
.field .hint { font-size: 11px; color: var(--ink-3); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.form-grid .span-2 { grid-column: span 2; }
.form-grid .span-all { grid-column: 1 / -1; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.filters select, .filters input { padding: 6px 9px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--paper); font-size: 13px; }
.filters .count { color: var(--ink-3); font-size: 12px; margin-left: auto; }

/* Badges ------------------------------------------------------------------ */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 500; background: var(--paper-2); color: var(--ink-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.blue { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge.green { background: var(--green-soft); color: var(--green); border-color: transparent; }
.badge.amber { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.badge.red { background: var(--red-soft); color: var(--red); border-color: transparent; }
.badge.violet { background: var(--violet-soft); color: var(--violet); border-color: transparent; }
.badge.navy { background: var(--navy); color: #fff; border-color: transparent; }
.badge.ink { background: var(--ink); color: var(--paper); border-color: transparent; }
.badge.outline { background: transparent; }
.co-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; flex: none; }
.code { font-family: var(--mono); font-size: 12px; color: var(--ink-2); }
.prio { width: 10px; height: 10px; border-radius: 2px; display: inline-block; }
.prio.critica { background: var(--red); } .prio.alta { background: var(--amber); } .prio.media { background: var(--blue); } .prio.baixa { background: var(--line-2); }

/* Tabelas ------------------------------------------------------------------ */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; color: var(--ink-2); font-size: 12px; padding: 9px 10px; border-bottom: 1px solid var(--line-2); background: var(--paper-2); white-space: nowrap; position: sticky; top: 0; }
.tbl th.sortable { cursor: pointer; }
.tbl th.sortable:hover { color: var(--ink); }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tr.clickable { cursor: pointer; }
.tbl tr.clickable:hover td { background: var(--paper-2); }
.tbl td.num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .title { font-weight: 500; }
.tbl .sub { color: var(--ink-3); font-size: 12px; }

/* Paineis e KPIs ----------------------------------------------------------- */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 20px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--paper); }
.kpi .v { font-size: 24px; font-weight: 650; letter-spacing: -0.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpi .v.red { color: var(--red); } .kpi .v.amber { color: var(--amber); } .kpi .v.green { color: var(--green); } .kpi .v.blue { color: var(--blue); }
.kpi .l { font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.kpi .s { font-size: 11px; color: var(--ink-3); }
.kpi.clickable { cursor: pointer; } .kpi.clickable:hover { border-color: var(--blue); }
.nodata { color: var(--ink-3); font-style: italic; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.split-21 { display: grid; grid-template-columns: 2fr 1fr; gap: 18px; align-items: start; }
.panel { border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); min-width: 0; }
.panel > header { padding: 10px 14px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.panel > header h2 { font-size: 14px; }
.panel .body { padding: 10px 14px; }
.panel .list { list-style: none; margin: 0; padding: 0; }
.panel .list li { padding: 8px 14px; border-bottom: 1px solid var(--line); display: flex; gap: 10px; align-items: flex-start; }
.panel .list li:last-child { border-bottom: 0; }
.panel .list li.clickable { cursor: pointer; } .panel .list li.clickable:hover { background: var(--paper-2); }
.panel .list .t { flex: 1; min-width: 0; }
.panel .list .t .sub { color: var(--ink-3); font-size: 12px; }
.empty { padding: 24px 14px; color: var(--ink-3); text-align: center; }
.empty b { display: block; color: var(--ink-2); font-weight: 600; margin-bottom: 4px; }
.section { margin-bottom: 24px; }
.section > h2 { margin-bottom: 10px; }
.health { display: flex; align-items: center; gap: 14px; }
.ring { width: 64px; height: 64px; flex: none; }
.ring text { font-weight: 700; font-size: 16px; fill: var(--ink); }
.health .label { font-weight: 600; }
.health .reasons { color: var(--ink-3); font-size: 12px; }
.bar { height: 6px; background: var(--paper-2); border-radius: 3px; overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--blue); }
.bar > i.red { background: var(--red); } .bar > i.amber { background: var(--amber); } .bar > i.green { background: var(--green); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.stack { display: flex; flex-direction: column; gap: 10px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.spark { display: flex; align-items: flex-end; gap: 3px; height: 36px; }
.spark i { display: block; width: 10px; background: var(--blue); border-radius: 2px 2px 0 0; min-height: 2px; }

/* Portfolio / company cards ---------------------------------------------------- */
.co-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.co-card { border: 1px solid var(--line); border-top: 4px solid var(--co, var(--blue)); border-radius: var(--radius); background: var(--paper); padding: 14px 16px; cursor: pointer; }
.co-card:hover { border-color: var(--co, var(--blue)); }
.co-card h2 { display: flex; align-items: center; gap: 8px; }
.co-card .mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 12px; }
.co-card .mini div { font-size: 12px; color: var(--ink-3); }
.co-card .mini b { display: block; font-size: 18px; color: var(--ink); font-variant-numeric: tabular-nums; }

/* Kanban --------------------------------------------------------------------- */
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: start; }
.kcol { background: var(--paper-2); border-radius: var(--radius); border: 1px solid var(--line); min-height: 200px; }
.kcol > header { padding: 8px 10px; font-size: 12.5px; font-weight: 600; display: flex; justify-content: space-between; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--paper-2); }
.kcol .cards { padding: 8px; display: flex; flex-direction: column; gap: 8px; min-height: 60px; }
.kcol.over { outline: 2px dashed var(--blue); outline-offset: -4px; }
.kcard { background: var(--paper); border: 1px solid var(--line); border-left: 3px solid var(--co, var(--line-2)); border-radius: 5px; padding: 8px 10px; cursor: pointer; font-size: 13px; }
.kcard:hover { border-color: var(--blue); }
.kcard .t { font-weight: 500; margin: 3px 0 5px; }
.kcard .m { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 11.5px; color: var(--ink-3); }
.kcard.dragging { opacity: .5; }

/* Drawer / modal --------------------------------------------------------------- */
.overlay { position: fixed; inset: 0; background: rgba(23,25,28,.35); z-index: 40; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(760px, 100vw); background: var(--paper); border-left: 1px solid var(--line-2); z-index: 41; display: flex; flex-direction: column; }
.drawer > header { padding: 14px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-start; gap: 12px; }
.drawer > header h2 { font-size: 16px; }
.drawer > .body { padding: 16px 20px 40px; overflow-y: auto; flex: 1; }
.drawer .close { margin-left: auto; }
.modal { position: fixed; inset: 0; z-index: 42; display: grid; place-items: center; padding: 20px; }
.modal .box { background: var(--paper); border: 1px solid var(--line-2); border-radius: 8px; width: min(720px, 100%); max-height: 90vh; overflow: auto; }
.modal .box > header { padding: 14px 18px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; }
.modal .box > .body { padding: 16px 18px; }
.modal .box > footer { padding: 12px 18px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 8px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 14px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 8px 12px; cursor: pointer; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--blue); font-weight: 600; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 6px 12px; font-size: 13px; }
.dl dt { color: var(--ink-3); } .dl dd { margin: 0; }
.timeline { list-style: none; margin: 0; padding: 0; border-left: 2px solid var(--line); margin-left: 6px; }
.timeline li { padding: 6px 0 6px 14px; position: relative; font-size: 13px; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: 11px; width: 10px; height: 10px; border-radius: 50%; background: var(--paper); border: 2px solid var(--blue); }
.timeline .when { color: var(--ink-3); font-size: 12px; }
.comment { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 12px; margin-bottom: 8px; }
.comment .who { font-size: 12px; color: var(--ink-3); margin-bottom: 4px; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 16px; border-radius: 999px; z-index: 60; font-size: 13px; }
.toast.err { background: var(--red); }
.login { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.login .box { width: min(400px, 100%); border: 1px solid var(--line); border-radius: 8px; padding: 26px; background: var(--paper); }
.login .box h1 { margin-bottom: 4px; }
.login .box form { display: flex; flex-direction: column; gap: 12px; margin-top: 18px; }
.err { color: var(--red); font-size: 13px; }

/* Gantt ------------------------------------------------------------------------- */
.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.gantt .head, .gantt .grow { display: grid; grid-template-columns: 300px 1fr; }
.gantt .head { position: sticky; top: 0; background: var(--paper-2); border-bottom: 1px solid var(--line-2); z-index: 2; font-size: 11px; }
.gantt .lbl { padding: 6px 10px; border-right: 1px solid var(--line); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gantt .lbl.group { font-weight: 600; background: var(--paper-2); }
.gantt .grow { border-bottom: 1px solid var(--line); }
.gantt .grow:hover { background: var(--paper-2); cursor: pointer; }
.gantt .track { position: relative; height: 30px; }
.gantt .gbar { position: absolute; top: 8px; height: 14px; border-radius: 3px; background: var(--blue); opacity: .9; }
.gantt .gbar.done { background: var(--green); } .gantt .gbar.late { background: var(--red); } .gantt .gbar.blocked { background: var(--amber); } .gantt .gbar.ms { background: var(--violet); width: 14px; transform: rotate(45deg); border-radius: 2px; }
.gantt .today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--red); opacity: .6; }
.gantt .months { display: flex; }
.gantt .months span { flex: none; padding: 5px 6px; border-right: 1px solid var(--line); }
.gantt .dep { position: absolute; height: 1px; background: var(--ink-3); opacity: .5; }

/* Pipeline (lojas) --------------------------------------------------------------- */
.pipe { display: flex; flex-wrap: wrap; gap: 6px; }
.step { border: 1px solid var(--line); border-radius: 5px; padding: 6px 10px; font-size: 12px; background: var(--paper); display: flex; align-items: center; gap: 6px; cursor: pointer; }
.step .st { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.step.concluido .st { background: var(--green); } .step.em_andamento .st { background: var(--blue); } .step.bloqueado .st { background: var(--red); } .step.a_verificar .st { background: var(--amber); } .step.nao_aplicavel { opacity: .5; }
.stage-lbl { font-size: 11px; color: var(--ink-3); width: 100%; margin-top: 6px; }

/* Matriz de riscos ----------------------------------------------------------------- */
.risk-matrix { display: grid; grid-template-columns: auto repeat(5, 1fr); gap: 3px; max-width: 440px; }
.risk-matrix .cell { aspect-ratio: 1.6; display: grid; place-items: center; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--paper-2); cursor: pointer; }
.risk-matrix .cell.l1 { background: var(--green-soft); } .risk-matrix .cell.l2 { background: var(--amber-soft); } .risk-matrix .cell.l3 { background: var(--red-soft); color: var(--red); }
.risk-matrix .ax { font-size: 11px; color: var(--ink-3); display: grid; place-items: center; }

/* Responsivo ------------------------------------------------------------------------ */
@media (max-width: 960px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: var(--sidebar-w); transform: translateX(-100%); transition: transform .2s; z-index: 50; }
  .sidebar.open { transform: none; }
  .menu-btn { display: inline-flex; }
  .content { padding: 16px 16px 60px; }
  .topbar { padding: 10px 16px; flex-wrap: wrap; }
  .grid-2, .grid-3, .split-21 { grid-template-columns: 1fr; }
  .search { flex-basis: calc(100% - 48px); margin-left: 0; }
  .dl { grid-template-columns: 1fr; }
  .form-grid .span-2 { grid-column: span 1; }
  .gantt .head, .gantt .grow { grid-template-columns: 160px 1fr; }
}
@media print {
  .sidebar, .topbar, .page-head .actions, .filters { display: none !important; }
  .shell { grid-template-columns: 1fr; }
  .content { padding: 0; max-width: none; }
}

/* Sino de notificacoes (topbar) */
.bell { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); background: var(--paper-2); text-decoration: none; font-size: 15px; flex: none; }
.bell:hover { text-decoration: none; background: var(--paper); }
.bell .n { position: absolute; top: -5px; right: -6px; background: var(--red); color: #fff; font-size: 10px; font-weight: 600; padding: 1px 5px; border-radius: 10px; min-width: 16px; text-align: center; }
/* Notificacoes e agenda */
.notif-list { display: flex; flex-direction: column; gap: 6px; }
.notif { display: flex; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; }
.notif.unread { border-left: 3px solid var(--violet, #6D4FC2); background: var(--paper-2); }
.notif .when { font-size: 11px; color: var(--ink-3); white-space: nowrap; }
.notif .t { font-weight: 600; font-size: 13px; }
.notif .b { font-size: 12px; color: var(--ink-2); }
.prefs-grid { display: grid; grid-template-columns: 1fr auto auto; gap: 6px 16px; align-items: center; font-size: 13px; }
.prefs-grid .hd { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-3); }
.feed-url { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.feed-url code { flex: 1; min-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; padding: 6px 8px; background: var(--paper-2); border-radius: 6px; }
.agenda-item { display: grid; grid-template-columns: 92px 1fr auto; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.agenda-item .d { font-variant-numeric: tabular-nums; color: var(--ink-2); }
@media (max-width: 720px) { .agenda-item { grid-template-columns: 1fr; gap: 2px; } .prefs-grid { grid-template-columns: 1fr auto auto; } }
/* Pendencias por area */
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; padding: 12px; }
.area-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; background: var(--paper); }
.area-card:hover { border-color: var(--ink-3); }
.area-card .n { font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.area-card .red { color: var(--red); } .area-card .amber { color: var(--amber, #B7791F); }
.panel > .body.list-wrap { padding: 0; }
/* Acoes rapidas do painel da tarefa */
.quick { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; background: var(--paper-2); }
.quick .qf { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--ink-3); }
.quick .qf > span { text-transform: uppercase; letter-spacing: .04em; font-size: 10px; }
.quick .qf select, .quick .qf input { font-size: 13px; }
.quick .qf input[type=date] { margin-bottom: 3px; }
/* Configuracoes: tema */
.theme-opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.theme-opt { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); cursor: pointer; text-align: left; font-size: 12px; }
.theme-opt.active { border-color: var(--blue); box-shadow: 0 0 0 2px var(--blue-soft); }
.theme-opt .swatch { width: 100%; height: 34px; border-radius: 4px; border: 1px solid var(--line-2); }
.theme-opt .swatch.light { background: linear-gradient(90deg, #FBFBF9 50%, #0F2447 50%); }
.theme-opt .swatch.dark { background: linear-gradient(90deg, #141619 50%, #0A1D3A 50%); }
.theme-opt .swatch.system { background: linear-gradient(90deg, #FBFBF9 50%, #141619 50%); }
@media (max-width: 720px) { .theme-opts { grid-template-columns: 1fr; } }
/* Aba "Com o Claude" */
.pb-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; }
.pb-warn { border: 1px solid var(--amber, #B7791F); background: var(--amber-soft); border-radius: var(--radius); padding: 8px 10px; font-size: 13px; }
.pb-section { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.pb-section h3 { margin-bottom: 6px; }
.pb-section.green { border-left: 3px solid var(--green); } .pb-section.blue { border-left: 3px solid var(--blue); } .pb-section.amber { border-left: 3px solid var(--amber, #B7791F); } .pb-section.violet { border-left: 3px solid var(--violet); }
.pb-list { margin: 0; padding-left: 20px; font-size: 13px; } .pb-list li { margin: 3px 0; }
.pb-prompt { white-space: pre-wrap; font-family: var(--font); font-size: 13px; line-height: 1.5; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; max-height: 420px; overflow: auto; margin: 0; }
/* Guia em markdown */
.md h1 { font-size: 22px; margin-bottom: 10px; } .md h2 { font-size: 17px; margin: 22px 0 8px; } .md h3 { margin: 14px 0 6px; }
.md p { margin: 8px 0; font-size: 14px; line-height: 1.55; } .md ul, .md ol { padding-left: 22px; margin: 6px 0; } .md li { margin: 4px 0; line-height: 1.5; }
.md pre { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-family: var(--mono); font-size: 12px; white-space: pre-wrap; }
.md code { background: var(--paper-2); padding: 1px 5px; border-radius: 4px; font-family: var(--mono); font-size: 12px; }
