/* Layout: mobile-first, uma coluna de cartões; navegação fixa embaixo no celular e no topo no computador; formulários em diálogo. Paleta teal clínico + menta. */
:root{
  /* Superfícies 60% · Marca 30% (primária #0F4C5C, destaque #1B998B) · Status 10% */
  --bg:#F8FAFC; --surface:#FFFFFF; --line:#E2E8F0; --fg:#0F172A; --muted:#475569;
  --accent:#0F4C5C; --accent-soft:#E2EEF1; --onaccent:#FFFFFF; --accent2:#1B998B; --accent2-soft:#D5F0EC;
  --hero:#0F4C5C;--marca:#0F4C5C; --onhero:#FFFFFF; --hero-muted:#A7D8D1;
  --ok:#10B981; --ok-soft:#D1FAE5; --ok-ink:#065F46; --warn:#F59E0B; --warn-soft:#FEF3C7; --warn-ink:#92400E; --bad:#E05A47; --bad-soft:#FEE2E2; --bad-ink:#991B1B;
  --shadow:0 1px 2px rgba(15,23,42,.05), 0 1px 3px rgba(15,23,42,.04);
  --display:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif; --body:"Inter",system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;
  --navh:64px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  /* Grafite suave: fundo grafite (não preto), cartões um tom acima, teal luminoso, status suavizados para a noite */
  --bg:#1C1F22; --surface:#25292D; --line:#373C41; --fg:#E3E6E8; --muted:#A5ADB3;
  --accent:#4FC9C0; --accent-soft:#1F3735; --onaccent:#11201F; --accent2:#45CDBF; --accent2-soft:#1E3836;
  --hero:#185F6C;--marca:#E3E6E8; --onhero:#F2F5F6; --hero-muted:#B4DCD7;
  --ok:#5CC79A; --ok-soft:#1F342B; --ok-ink:#93D9B8; --warn:#DDB25A; --warn-soft:#3A3222; --warn-ink:#E8C882; --bad:#E3897F; --bad-soft:#3E2828; --bad-ink:#EFAAA2;
  --shadow:0 1px 2px rgba(0,0,0,.22); color-scheme:dark;}}
:root[data-theme="dark"]{
  /* Grafite suave: fundo grafite (não preto), cartões um tom acima, teal luminoso, status suavizados para a noite */
  --bg:#1C1F22; --surface:#25292D; --line:#373C41; --fg:#E3E6E8; --muted:#A5ADB3;
  --accent:#4FC9C0; --accent-soft:#1F3735; --onaccent:#11201F; --accent2:#45CDBF; --accent2-soft:#1E3836;
  --hero:#185F6C;--marca:#E3E6E8; --onhero:#F2F5F6; --hero-muted:#B4DCD7;
  --ok:#5CC79A; --ok-soft:#1F342B; --ok-ink:#93D9B8; --warn:#DDB25A; --warn-soft:#3A3222; --warn-ink:#E8C882; --bad:#E3897F; --bad-soft:#3E2828; --bad-ink:#EFAAA2;
  --shadow:0 1px 2px rgba(0,0,0,.22); color-scheme:dark;}
*{box-sizing:border-box}
body{background:var(--bg);color:var(--fg);font-family:var(--body);font-size:15px;line-height:1.5;font-optical-sizing:auto;-webkit-font-smoothing:antialiased}
.num{font-variant-numeric:tabular-nums;font-feature-settings:"tnum"}
.wrap{max-width:860px;margin:0 auto;padding-block:16px calc(var(--navh) + 96px + env(safe-area-inset-bottom,0px));padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));display:flex;flex-direction:column;gap:16px}
header.top{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
header.top .dir{display:flex;align-items:center;gap:10px}
h1{font-family:var(--display);font-weight:700;font-size:1.32rem;margin:0;letter-spacing:-.015em}
h2{font-family:var(--display);font-weight:620;font-size:1.02rem;margin:0;text-wrap:balance;letter-spacing:-.005em;line-height:1.35}
.marca{display:flex;align-items:center;gap:10px}
.logo{width:40px;height:40px;flex:none;display:block}
h1 .a{color:var(--accent2)} h1 .m{color:var(--marca)}
.tagline{font-size:.82rem;color:var(--muted);font-weight:500;margin-top:1px}
.sync{display:flex;align-items:center;gap:6px;font-size:.78rem;color:var(--muted);margin-top:2px}
.sync i{width:8px;height:8px;border-radius:50%;background:var(--muted);display:inline-block}
.sync.ok i{background:var(--ok)} .sync.busy i{background:var(--warn)} .sync.err i{background:var(--bad)}
.sync.err{color:var(--bad-ink)}
button,select,input,textarea{font:inherit;color:inherit}
nav.tabs{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);display:grid;grid-auto-flow:column;grid-auto-columns:1fr;padding-bottom:env(safe-area-inset-bottom,0px);padding-left:env(safe-area-inset-left,0px);padding-right:env(safe-area-inset-right,0px)}
nav.tabs button{border:0;background:transparent;color:var(--muted);font:500 .72rem var(--body);height:var(--navh);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer}
nav.tabs svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
nav.tabs button[aria-selected="true"]{color:var(--accent);font-weight:700}
nav.tabs button svg{padding:3px 14px;box-sizing:content-box;border-radius:14px}
nav.tabs button[aria-selected="true"] svg{background:var(--accent-soft)}
nav.tabs button[aria-selected="true"] svg{stroke-width:2.3}
.tema{display:flex;border:1px solid var(--line);border-radius:10px;overflow:hidden;background:var(--surface)}
.tema button{border:0;background:transparent;color:var(--muted);width:40px;height:40px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.tema button svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.tema button[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}
@media (min-width:760px){
  nav.tabs{position:static;border:1px solid var(--line);border-radius:10px;display:flex;padding:4px;gap:2px}
  nav.tabs button{height:auto;flex-direction:row;font-size:.88rem;padding:8px 12px;border-radius:7px}
  nav.tabs button[aria-selected="true"]{background:var(--accent);color:var(--onaccent)}
  nav.tabs svg{width:16px;height:16px;padding:0!important;background:none!important}
  .wrap{padding-bottom:48px}
  .fab{bottom:24px!important}
}
.fab{position:fixed;right:max(16px,calc(env(safe-area-inset-right,0px) + 16px));bottom:calc(var(--navh) + 14px + env(safe-area-inset-bottom,0px));z-index:21;height:52px;padding:0 20px 0 16px;border-radius:26px;border:0;background:var(--accent);color:var(--onaccent);font:600 .95rem var(--body);display:flex;align-items:center;gap:8px;box-shadow:0 6px 18px rgba(0,0,0,.22);cursor:pointer}
.fab svg{width:20px;height:20px;stroke:currentColor;stroke-width:2.4;fill:none;stroke-linecap:round}
.btn{border:1px solid var(--line);background:var(--surface);padding:8px 14px;min-height:40px;border-radius:10px;cursor:pointer;font-weight:600;font-size:.88rem;white-space:nowrap;display:inline-flex;align-items:center;justify-content:center;gap:6px}
.btn:hover{border-color:var(--accent)}
.btn.primary{background:var(--accent);border-color:var(--accent);color:var(--onaccent)}
.btn.ghost{border-color:transparent;background:transparent;color:var(--accent)}
.btn.danger{color:var(--bad-ink)}
@media (pointer:coarse){.btn{min-height:44px}}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.card{border-radius:12px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.card.info{background:var(--accent-soft)}
.card.warn{background:var(--warn-soft);color:var(--warn-ink)}
.card .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.toolbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;justify-content:space-between}
.view{display:flex;flex-direction:column;gap:18px}
.mes{display:inline-flex;align-items:center;background:var(--surface);border:1px solid var(--line);border-radius:10px}
.mes button{border:0;background:transparent;width:44px;height:44px;cursor:pointer;color:var(--accent);font-size:1.3rem;display:flex;align-items:center;justify-content:center}
.mes span{min-width:120px;text-align:center;font-weight:700;font-family:var(--display)}
.alertas{display:flex;flex-direction:column;gap:8px}
.alertas:empty{display:none}
.alerta{display:flex;align-items:center;justify-content:space-between;gap:10px;border-radius:12px;padding:8px 8px 8px 14px;font-size:.92rem}
.alerta.bad{background:var(--bad-soft);color:var(--bad-ink)} .alerta.warn{background:var(--warn-soft);color:var(--warn-ink)}
.alerta strong{font-weight:700}
.alerta .btn{background:transparent;border-color:currentColor;color:inherit}
.hero{background:var(--hero);color:var(--onhero);border-radius:20px;padding:20px;box-shadow:0 10px 24px -12px rgba(15,76,92,.55);display:flex;flex-direction:column;gap:12px}
.var{display:inline-flex;align-items:center;gap:4px;font-size:.78rem;font-weight:600;padding:3px 9px;border-radius:99px;background:rgba(255,255,255,.14);color:var(--onhero);width:max-content;font-variant-numeric:tabular-nums}
.hero .lbl{font-size:.72rem;text-transform:uppercase;letter-spacing:.08em;color:var(--hero-muted);font-weight:600}
.hero .big{font-family:var(--display);font-size:clamp(1.6rem,8.4vw,2.1rem);line-height:1.15;font-weight:700;letter-spacing:-.015em;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;display:block}
.conta{display:flex;flex-direction:column;gap:6px;font-size:.9rem}
.conta .ln{display:flex;justify-content:space-between;gap:12px;align-items:center}
.conta .ln>span:last-child{font-variant-numeric:tabular-nums;white-space:nowrap}
.conta .neg>span:last-child{color:var(--bad-ink)}
.hero .conta .neg>span:last-child{color:var(--hero-muted)}
.conta .tot{border-top:1px solid var(--line);padding-top:8px;font-weight:700}
.hero .conta .tot{border-color:rgba(255,255,255,.18)}
.info-btn{width:22px;height:22px;border-radius:50%;border:1px solid currentColor;background:transparent;color:inherit;opacity:.75;font:600 .72rem var(--body);cursor:pointer;margin-left:6px;vertical-align:middle;padding:0;position:relative}
.info-btn::before{content:"";position:absolute;inset:-11px}
.explica{font-size:.82rem;line-height:1.5;margin:0;padding:9px 11px;border-radius:9px;background:rgba(127,127,127,.12)}
.stats{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.stat{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.stat .lbl{font-size:.68rem;text-transform:uppercase;letter-spacing:.07em;display:block;color:var(--muted);font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stat .val{font-family:var(--display);font-size:clamp(1rem,4.4vw,1.2rem);font-weight:650;letter-spacing:-.01em;font-variant-numeric:tabular-nums;white-space:nowrap;overflow:hidden;display:block;line-height:1.25}
@media (max-width:359px){.stat{padding:12px 12px}.stats{gap:10px}section.panel{padding:14px 14px}}
.stat .sub{font-size:.78rem;color:var(--muted);line-height:1.4}
section.panel{background:var(--surface);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:16px;padding:16px 18px;display:flex;flex-direction:column;gap:10px;min-width:0}
.pill{display:inline-block;font-size:.74rem;font-weight:600;padding:3px 9px;border-radius:99px;white-space:nowrap}
.pill.ok{background:var(--ok-soft);color:var(--ok-ink)} .pill.bad{background:var(--bad-soft);color:var(--bad-ink)}
.pill.warn{background:var(--warn-soft);color:var(--warn-ink)} .pill.neutral{background:var(--accent-soft);color:var(--accent)}
.pill::before{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:currentColor;margin-right:6px;vertical-align:1px;opacity:.85}
.pill.ex::before{display:none}
.pill.ex{background:transparent;border:1px dashed var(--muted);color:var(--muted);font-weight:500}
.empty{color:var(--muted);font-size:.9rem;padding:8px 0;display:flex;flex-direction:column;gap:10px;align-items:flex-start}
.list{display:flex;flex-direction:column}
.item{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:14px 0;border-bottom:1px solid var(--line)}
.item:last-child{border-bottom:0}
.item .l{min-width:0;display:flex;flex-direction:column;gap:4px;flex:1}
.item .r{text-align:right;display:flex;flex-direction:column;gap:6px;align-items:flex-end}
#lista-atrasados .item{flex-wrap:wrap} #lista-atrasados .item .r{flex:1 1 100%;flex-direction:row;justify-content:space-between;align-items:center}
.item .v{font-weight:600;font-variant-numeric:tabular-nums;white-space:nowrap}
.item .pills{display:flex;gap:4px;flex-wrap:wrap}
.item.clicavel{cursor:pointer;position:relative;padding-right:20px}
.item.clicavel::after{content:"";position:absolute;right:4px;top:22px;width:7px;height:7px;border-right:2px solid var(--muted);border-top:2px solid var(--muted);transform:rotate(45deg);opacity:.6}
.meta{color:var(--muted);font-size:.82rem;line-height:1.45}
.actions{display:flex;gap:6px;flex-wrap:wrap;justify-content:flex-end}
.mesbar{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:10px;align-items:center;padding:8px 0;border-bottom:1px solid var(--line)}
.mesbar:last-child{border-bottom:0}
.mesbar .trk{height:10px;border-radius:5px;background:var(--line);position:relative;overflow:hidden}
.mesbar .trk .f{position:absolute;left:0;top:0;bottom:0;background:var(--accent2);border-radius:5px}
.mesbar .trk .i{position:absolute;left:0;top:0;bottom:0;background:var(--warn);border-radius:5px}
.mesbar.atual .m{font-weight:700;color:var(--accent)}
.legenda{display:flex;gap:14px;font-size:.78rem;color:var(--muted)}
.legenda i{display:inline-block;width:10px;height:10px;border-radius:3px;margin-right:5px;vertical-align:-1px}
select,input,textarea{background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px 11px;width:100%;min-width:0;font-size:16px;min-height:44px}
.toolbar select{width:auto;font-size:.9rem}
input.valor{font-size:1.25rem;font-weight:600;font-variant-numeric:tabular-nums}
dialog{border:1px solid var(--line);border-radius:16px;background:var(--surface);color:var(--fg);padding:0;width:min(560px,calc(100vw - 20px));max-height:calc(100dvh - 24px)}
dialog::backdrop{background:rgba(6,18,15,.5)}
dialog form{padding:18px;display:flex;flex-direction:column;gap:14px}
.fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
@media (max-width:480px){.fields{grid-template-columns:minmax(0,1fr)}}
.fields .full{grid-column:1/-1}
label{display:flex;flex-direction:column;gap:5px;font-size:.82rem;color:var(--muted);font-weight:500}
label.check{flex-direction:row;align-items:center;gap:10px;color:var(--fg);min-height:44px}
label.check input{width:22px;height:22px;min-height:0}
.campo{display:flex;flex-direction:column;gap:6px}
.campo>span{font-size:.82rem;color:var(--muted);font-weight:500}
.chips{display:flex;flex-wrap:wrap;gap:6px}
.chips button{border:1px solid var(--line);background:var(--surface);border-radius:99px;padding:0 14px;min-height:40px;cursor:pointer;font-size:.88rem;font-weight:500}
.chips button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--onaccent)}
details.mais{border:1px solid var(--line);border-radius:12px}
details.mais summary{padding:0 14px;cursor:pointer;font-weight:600;color:var(--accent);list-style:none;display:flex;justify-content:space-between;min-height:48px;align-items:center}
details.mais summary::-webkit-details-marker{display:none}
details.mais summary::after{content:"+";font-size:1.2rem}
details.mais[open] summary::after{content:"–"}
details.mais .corpo{padding:0 14px 14px;display:flex;flex-direction:column;gap:14px}
fieldset{border:1px solid var(--line);border-radius:10px;padding:10px 12px 12px;margin:0}
legend{font-size:.72rem;text-transform:uppercase;letter-spacing:.07em;color:var(--muted);font-weight:600;padding:0 4px}
.dlg-actions{display:flex;justify-content:space-between;gap:8px;flex-wrap:wrap;align-items:center}
.hint{font-size:.78rem;color:var(--muted);margin:0;font-weight:400}
.passos{display:flex;gap:6px}
.passos i{flex:1;height:4px;border-radius:2px;background:var(--line)}
.passos i.on{background:var(--accent)}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--navh) + 80px + env(safe-area-inset-bottom,0px));background:var(--fg);color:var(--bg);padding:6px 6px 6px 16px;min-height:44px;border-radius:12px;font-size:.88rem;z-index:50;width:max-content;max-width:calc(100vw - 32px);display:flex;align-items:center;gap:10px;box-shadow:0 8px 24px rgba(0,0,0,.25)}
.toast.sem{padding-right:16px}
.toast button{border:0;background:transparent;color:var(--hero-muted);font-weight:700;padding:0 12px;min-height:36px;cursor:pointer;text-transform:uppercase;letter-spacing:.04em;font-size:.8rem}
:root:not([data-theme="dark"]) .toast button{color:#5EEAD4}
@media (min-width:760px){.toast{bottom:32px}}
.pergunta{background:var(--surface);border:1px solid var(--accent);border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:10px}
.pergunta:empty{display:none}
.pergunta .eyebrow{font-size:.7rem;text-transform:uppercase;letter-spacing:.08em;color:var(--accent);font-weight:700}
.pergunta .q{font-family:var(--display);font-weight:700;font-size:1.02rem}
.pergunta .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.meta-item{display:flex;flex-direction:column;gap:6px;padding:12px 0;border-bottom:1px solid var(--line)}
.meta-item:last-child{border-bottom:0}
.meta-item .top{display:flex;justify-content:space-between;gap:10px;align-items:flex-start}
.prog{height:10px;border-radius:5px;background:var(--accent2-soft);overflow:hidden}
.prog>span{display:block;height:100%;background:var(--accent2);border-radius:5px}
.fixa{display:grid;grid-template-columns:auto minmax(0,1fr) 130px;gap:10px;align-items:center;padding:6px 0;border-bottom:1px solid var(--line)}
.fixa:last-child{border-bottom:0}
.fixa input[type=checkbox]{width:22px;height:22px;min-height:0}
.fixa input.valor{font-size:1rem;padding:8px}
.perm{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid var(--line)}
.perm:last-child{border-bottom:0}
.switch{position:relative;width:48px;height:28px;flex:none}
.switch input{position:absolute;inset:0;opacity:0;margin:0;width:100%;height:100%;cursor:pointer;min-height:0}
.switch span{position:absolute;inset:0;border-radius:14px;background:var(--line);pointer-events:none;transition:background .15s}
.switch span::after{content:"";position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:var(--surface);box-shadow:0 1px 3px rgba(0,0,0,.25);transition:transform .15s}
.switch input:checked+span{background:var(--accent)}
.switch input:checked+span::after{transform:translateX(20px)}
.switch input:focus-visible+span{outline:2px solid var(--accent);outline-offset:2px}
nav.tabs button[hidden]{display:none!important}
.olho{border:1px solid var(--line);background:var(--surface);color:var(--muted);width:40px;height:40px;border-radius:10px;cursor:pointer;display:flex;align-items:center;justify-content:center}
.olho svg{width:19px;height:19px;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.olho[aria-pressed="true"]{background:var(--accent-soft);color:var(--accent)}
body.ocultar :is(.agenda .vv,.ag-res strong,.hero .big,.hero .conta .ln>span:last-child,.stat .val,.item .v,.item .r .meta,.caixa .num,#lanc-total,.meta-item .meta strong){filter:blur(7px);user-select:none}
.cal{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.cal .dow{font-size:.72rem;color:var(--muted);text-align:center;font-weight:600;padding:2px 0}
.cal button{min-height:40px;border:1px solid var(--line);background:var(--surface);border-radius:10px;cursor:pointer;font-weight:600;font-size:.9rem;position:relative;font-variant-numeric:tabular-nums}
.cal button[aria-pressed="true"]{background:var(--accent);border-color:var(--accent);color:var(--onaccent)}
.cal button.tem::after{content:"";position:absolute;left:50%;bottom:4px;width:5px;height:5px;margin-left:-2.5px;border-radius:50%;background:var(--accent2)}
.cal button.hoje{border-color:var(--accent2)}
.cal-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.cal-top strong{font-family:var(--display);text-transform:capitalize}
.cal-top .mes button{min-width:40px}
.linkbtn{background:none;border:0;color:var(--accent);font-weight:600;font-size:.86rem;cursor:pointer;padding:6px 0;text-align:left;align-self:flex-start}
.agenda{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px}
.agenda .dow{font-size:.7rem;color:var(--muted);text-align:center;font-weight:600;padding:2px 0}
.agenda button{min-height:60px;border:1px solid var(--line);background:var(--surface);color:var(--fg);border-radius:10px;padding:5px 1px 4px;display:flex;flex-direction:column;align-items:center;gap:3px;cursor:pointer;font-variant-numeric:tabular-nums;min-width:0}
.agenda button .n{font-weight:700;font-size:.88rem;line-height:1}
.agenda button .pts{display:flex;gap:2px;min-height:7px}
.agenda button .vv{font-size:.62rem;color:var(--muted);white-space:nowrap}
.agenda button.sel{border-color:var(--accent);box-shadow:inset 0 0 0 1px var(--accent);background:var(--accent-soft)}
.agenda button.hoje .n{color:var(--accent2)}
.agenda button.passado{opacity:.85}
.pts i,.leg i{width:7px;height:7px;border-radius:50%;display:inline-block}
.i-ag{border:1.5px solid var(--accent2);background:transparent;box-sizing:border-box} .i-cf{background:var(--warn)} .i-re{background:var(--accent)} .i-ok{background:var(--ok)} .i-at{background:var(--bad)}
.leg{display:flex;flex-wrap:wrap;gap:4px 12px;font-size:.76rem;color:var(--muted);margin-top:10px}
.leg span{display:inline-flex;align-items:center;gap:5px}
.ag-res{display:flex;flex-wrap:wrap;gap:4px 14px;font-size:.86rem;color:var(--muted);margin-bottom:10px}
.ag-res strong{color:var(--fg);font-variant-numeric:tabular-nums;white-space:nowrap}
.ag-res>span{white-space:nowrap}
.rep{border:1px dashed var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px}
.rep .chips button{padding:0 10px;min-width:44px}
.seg{display:inline-flex;border:1px solid var(--line);border-radius:8px;overflow:hidden}
.seg button{border:0;background:var(--surface);color:var(--muted);font:600 .74rem var(--body);padding:4px 10px;cursor:pointer;min-height:28px}
.seg button[aria-pressed="true"]{background:var(--accent);color:var(--onaccent)}
.legal{font-size:.88rem;line-height:1.55;display:flex;flex-direction:column;gap:2px}
.legal h3{font-family:var(--display);font-size:1.05rem;margin:6px 0 4px}
.legal h4{font-size:.92rem;margin:12px 0 2px}
.legal p,.legal ul{margin:4px 0}
.legal ul{padding-left:18px}
.aceite{display:flex;flex-direction:column;gap:10px;border:1px solid var(--line);border-radius:12px;padding:12px}
.aceite .check{align-items:flex-start;font-size:.88rem;line-height:1.4}
.aceite a{color:var(--accent);font-weight:600}
.esc-lista{display:flex;flex-direction:column;gap:8px}
.esc-row{display:grid;grid-template-columns:auto minmax(0,1fr);gap:6px 10px;border:1px solid var(--line);border-radius:12px;padding:10px;align-items:start}
.esc-row>input[type=checkbox]{width:22px;height:22px;min-height:0;margin-top:11px;accent-color:var(--accent)}
.esc-campos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.esc-row .orig{grid-column:2;font-size:.78rem;color:var(--muted);overflow-wrap:anywhere}
.esc-row.off .esc-campos{opacity:.5}
.esc-row.erro{border-color:var(--bad-ink)}
a.btn{text-decoration:none;color:inherit}
.busca{flex:1 1 100%}
.busca input{min-height:42px}
.evo-leitura{font-size:.86rem;color:var(--muted);min-height:1.3em;margin:0}
.evo-leitura strong{color:var(--fg)}
.evo svg{display:block;width:100%;height:auto;overflow:visible}
.evo .bar{fill:var(--accent2)}
.evo .bar.fut{fill:var(--line)}
.evo .bar.sel{fill:var(--accent)}
.evo .eixo{fill:var(--muted);font-size:10px}
.evo .eixo.sel{fill:var(--fg);font-weight:700}
.evo .grade{stroke:var(--line);stroke-width:1}
.evo .hit{fill:transparent;cursor:pointer}
.evo .rot{fill:var(--fg);font-size:10.5px;font-weight:600}
.sin{display:inline-block;font-size:.58em;font-weight:700;letter-spacing:.02em;padding:.18em .45em;border-radius:6px;background:var(--accent2);color:var(--onaccent);vertical-align:.28em}
.recibo{display:flex;flex-direction:column;gap:8px;border:1px dashed var(--line);border-radius:12px;padding:10px 12px}
.recibo .lbl{font-size:.82rem;color:var(--muted);font-weight:500}
.recibo img{max-width:100%;max-height:180px;border-radius:8px;display:block;border:1px solid var(--line)}
.recibo .row{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.metames .prog{margin:4px 0;display:flex}
.metames .prog>span{border-radius:0}
.metames .prog>span.ag{background:var(--accent2);opacity:.4}
a.btn.ghost{color:var(--accent)}
.lemb .item{align-items:center}
.lemb .ic{flex:none;width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft,rgba(46,196,182,.14));color:var(--accent);font-weight:700;font-size:.8rem}
.lemb .l{flex:1;min-width:0}
.sem-sub{font-size:.82rem;color:var(--muted);margin:0}
.caixa{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:6px 14px;font-size:.88rem;align-items:center}
.caixa .h{font-size:.72rem;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;font-weight:600}
.caixa .num{text-align:right;white-space:nowrap}
.caixa .in{color:var(--ok-ink)} .caixa .out{color:var(--bad-ink)}
@media (prefers-reduced-motion:reduce){*{transition:none!important}}
