/* Layout: celular primeiro. Barra de abas embaixo com "+" central ao alcance do polegar; no notebook vira menu lateral. */
:root{
  --bg:#FFFFFF; --surface:#FFFFFF; --surface2:#F4F1FB; --fg:#1E1A2E; --muted:#6E6886; --line:#ECE8F5;
  --accent:#6B3FD4; --accent-fg:#FFFFFF; --accent-soft:#EFE9FC;
  --in:#1F8A5B; --in-soft:#E3F4EB; --out:#C4493A; --out-soft:#FBE7E4; --warn:#8A5A00; --warn-soft:#FBF1DC;
  --p1:#6B3FD4; --p1s:#EFE9FC; --p2:#C2418A; --p2s:#FBE6F1; --p3:#2C7BC0; --p3s:#E4F0FA; --p4:#1F8A5B; --p4s:#E3F4EB;
  --shadow:0 2px 6px rgba(60,30,130,.06),0 10px 30px rgba(60,30,130,.08);
  --f-head:"Manrope",system-ui,sans-serif; --f-body:"Figtree",system-ui,-apple-system,"Segoe UI",sans-serif;
  --r:18px; --nav-h:68px;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){
  --bg:#141120; --surface:#1C182B; --surface2:#262138; --fg:#EEEAF8; --muted:#A39DBA; --line:#2C2640;
  --accent:#A487F2; --accent-fg:#160F2C; --accent-soft:#2C2350;
  --in:#62CC97; --in-soft:#173428; --out:#F08A7C; --out-soft:#3A1F1C; --warn:#E5B85C; --warn-soft:#382D15;
  --p1:#A487F2; --p1s:#2C2350; --p2:#EE93C4; --p2s:#3A1F30; --p3:#86BDF0; --p3s:#1D2C40; --p4:#62CC97; --p4s:#173428;
  --shadow:0 2px 6px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.3); color-scheme:dark}}
:root[data-theme="dark"]{
  --bg:#141120; --surface:#1C182B; --surface2:#262138; --fg:#EEEAF8; --muted:#A39DBA; --line:#2C2640;
  --accent:#A487F2; --accent-fg:#160F2C; --accent-soft:#2C2350;
  --in:#62CC97; --in-soft:#173428; --out:#F08A7C; --out-soft:#3A1F1C; --warn:#E5B85C; --warn-soft:#382D15;
  --p1:#A487F2; --p1s:#2C2350; --p2:#EE93C4; --p2s:#3A1F30; --p3:#86BDF0; --p3s:#1D2C40; --p4:#62CC97; --p4s:#173428;
  --shadow:0 2px 6px rgba(0,0,0,.3),0 10px 30px rgba(0,0,0,.3); color-scheme:dark}
*{box-sizing:border-box}
html,body{height:100%}
body{background:var(--bg);color:var(--fg);font-family:var(--f-body);font-size:15px;line-height:1.45;-webkit-tap-highlight-color:transparent}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;border:0;background:none;padding:0}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:8px}
h1,h2,h3{font-family:var(--f-head);margin:0;text-wrap:balance;letter-spacing:-.01em}
.num{font-variant-numeric:tabular-nums}
svg.i{width:20px;height:20px;flex:none;stroke:currentColor;fill:none;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}

/* shell */
.app{min-height:100%}
main{padding-left:max(16px,env(safe-area-inset-left,0px));padding-right:max(16px,env(safe-area-inset-right,0px));padding-block:12px calc(var(--nav-h) + 28px + env(safe-area-inset-bottom,0px));max-width:720px;margin:0 auto}
.side{display:none}
.tabbar{position:fixed;left:0;right:0;bottom:0;z-index:20;background:var(--surface);border-top:1px solid var(--line);
  padding:6px max(8px,env(safe-area-inset-right,0px)) calc(6px + env(safe-area-inset-bottom,0px)) max(8px,env(safe-area-inset-left,0px));
  display:grid;grid-template-columns:repeat(5,1fr);align-items:end;height:calc(var(--nav-h) + env(safe-area-inset-bottom,0px))}
.tab{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:11.5px;font-weight:600;color:var(--muted);padding:6px 0;border-radius:10px}
.tab.on{color:var(--accent)}
.fab{justify-self:center;width:58px;height:58px;border-radius:20px;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;box-shadow:var(--shadow);transform:translateY(-14px)}
.fab svg.i{width:28px;height:28px;stroke-width:2.4}
@media (min-width:960px){
  .tabbar{display:none}
  .side{display:flex;flex-direction:column;gap:4px;position:fixed;top:0;bottom:0;left:0;width:240px;background:var(--surface);border-right:1px solid var(--line);padding:24px 16px}
  .side .brand{font-family:var(--f-head);font-weight:800;font-size:17px;padding:0 10px 18px}
  .side .brand small{display:block;font-family:var(--f-body);font-weight:500;color:var(--muted);font-size:12.5px}
  .side .tab{flex-direction:row;gap:12px;font-size:14.5px;padding:11px 12px;justify-content:flex-start}
  .side .tab.on{background:var(--accent-soft)}
  .side .new{margin-top:14px}
  main{margin-left:calc(240px + max(24px,(100vw - 240px - 720px)/2));margin-right:auto;padding-block:28px 48px}
}

/* top */
.top{display:flex;align-items:center;gap:12px;margin:4px 0 16px}
.top .grow{flex:1;min-width:0}
.eyebrow{font-size:12.5px;color:var(--muted);font-weight:600;letter-spacing:.02em}
.title{font-size:25px;font-weight:800}
.demo{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--warn);background:var(--warn-soft);padding:4px 8px;border-radius:999px;white-space:nowrap}
.iconbtn{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:var(--surface);border:1px solid var(--line);flex:none}

/* blocks */
.stack{display:flex;flex-direction:column;gap:14px}
.card{background:var(--surface);border:1px solid var(--line);border-radius:var(--r);padding:16px}
.sec{display:flex;align-items:baseline;justify-content:space-between;margin:10px 2px -4px}
.sec h2{font-size:16px;font-weight:700}
.link{color:var(--accent);font-weight:600;font-size:14px}
.muted{color:var(--muted)}
.small{font-size:13px}
.row{display:flex;align-items:center;gap:10px}
.row .grow{flex:1;min-width:0}

.btn{text-decoration:none;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:48px;padding:0 16px;border-radius:12px;font-weight:700;font-size:15px}
.btn.pri{background:var(--accent);color:var(--accent-fg)}
.btn.sec2{background:var(--surface2);color:var(--fg)}
.btn.ghost{border:1px solid var(--line);background:var(--surface);color:var(--fg)}
.btn.full{width:100%}
.btn[disabled]{opacity:.5;cursor:not-allowed}
.btns{display:grid;grid-template-columns:1fr 1fr;gap:10px}

/* next appointment */
.next{background:var(--accent);color:var(--accent-fg);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:12px;box-shadow:var(--shadow)}
.next .when{font-weight:700;font-size:13.5px;opacity:.9;display:flex;gap:6px;align-items:center}
.next h3{font-size:22px}
.next .meta{font-size:14px;opacity:.9}
.next .plan{background:rgba(255,255,255,.14);border-radius:12px;padding:10px 12px;font-size:14px}
:root[data-theme="dark"] .next .plan{background:rgba(0,0,0,.14)}
.next .plan b{display:block;font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;opacity:.85;margin-bottom:2px}
.next .btn.pri{background:var(--accent-fg);color:var(--accent)}
.next .desm{color:var(--accent-fg);font-weight:600;font-size:14px;text-decoration:underline;text-underline-offset:3px;opacity:.9;align-self:center;padding:4px}
.next .btn.ghost{background:transparent;border-color:currentColor;color:var(--accent-fg)}

.quick{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.qa{background:var(--surface);border:1px solid var(--line);border-radius:14px;padding:12px 8px;display:flex;flex-direction:column;align-items:center;gap:6px;font-weight:600;font-size:13px;text-align:center}
.qa .ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center}
.ic.out{background:var(--out-soft);color:var(--out)} .ic.in{background:var(--in-soft);color:var(--in)} .ic.acc{background:var(--accent-soft);color:var(--accent)}

/* timeline */
.tl{display:flex;flex-direction:column;gap:8px}
.slot{display:grid;grid-template-columns:64px 1fr;gap:10px;align-items:stretch}
.slot .t{font-weight:700;font-size:13.5px;padding-top:12px;text-align:right}
.slot .t span{display:block;font-weight:500;color:var(--muted);font-size:12px}
.appt{border-radius:12px;padding:12px 14px;display:flex;align-items:center;gap:10px;text-align:left;width:100%;border-left:4px solid var(--pc);background:var(--pcs)}
.appt .grow{min-width:0}
.appt b{display:block;font-size:15px}
.appt .s{font-size:13px;color:var(--muted)}
.appt.done{opacity:.6}
.free{border:1.5px dashed var(--line);border-radius:12px;padding:10px 14px;color:var(--muted);font-size:13.5px;display:flex;justify-content:space-between;align-items:center;gap:8px;width:100%;text-align:left}
.free b{color:var(--fg);font-weight:600}
.free .add{color:var(--accent);font-weight:700;white-space:nowrap}
.pc1{--pc:var(--p1);--pcs:var(--p1s)} .pc2{--pc:var(--p2);--pcs:var(--p2s)} .pc3{--pc:var(--p3);--pcs:var(--p3s)} .pc4{--pc:var(--p4);--pcs:var(--p4s)}

.chip{display:inline-flex;align-items:center;gap:6px;font-size:12px;font-weight:700;padding:4px 9px;border-radius:999px;white-space:nowrap}
.chip.ok{background:var(--in-soft);color:var(--in)} .chip.today{background:var(--accent-soft);color:var(--accent)} .chip.fut{background:var(--surface2);color:var(--muted)} .chip.warn{background:var(--warn-soft);color:var(--warn)} .chip.out{background:var(--out-soft);color:var(--out)}

.alert{display:flex;gap:12px;align-items:flex-start;background:var(--warn-soft);color:var(--fg);border-radius:14px;padding:12px 14px}
.alert svg{color:var(--warn);margin-top:2px}

/* money summary */
.money{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.money div{display:flex;flex-direction:column;gap:2px;min-width:0}
.money small{font-size:12px;color:var(--muted);font-weight:600}
.money b{font-family:var(--f-head);font-size:15.5px;white-space:nowrap}
.pos{color:var(--in)} .neg{color:var(--out)}

/* week strip */
.week{display:grid;grid-template-columns:repeat(7,1fr);gap:4px;background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:6px}
.wd{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 0 7px;border-radius:12px;font-size:11.5px;color:var(--muted);font-weight:600}
.wd b{font-size:17px;color:var(--fg);font-family:var(--f-head)}
.wd.on{background:var(--accent);color:var(--accent-fg)} .wd.on b{color:var(--accent-fg)}
.wd.today:not(.on) b{color:var(--accent)}
.dots{display:flex;gap:3px;height:6px}
.dots i{width:6px;height:6px;border-radius:50%;background:var(--pc)}
.wd.on .dots i{background:var(--accent-fg)}
.weeknav{display:flex;align-items:center;justify-content:space-between;gap:8px}
.weeknav b{font-family:var(--f-head);font-size:15px}

/* patients */
.search{display:flex;align-items:center;gap:8px;background:var(--surface);border:1px solid var(--line);border-radius:12px;padding:0 12px;min-height:46px}
.search input{border:0;background:transparent;outline:0;flex:1;min-width:0;font-size:15px}
.chips{display:flex;gap:8px;overflow-x:auto;padding-bottom:2px;scrollbar-width:none}
.fchip{padding:8px 14px;border-radius:999px;border:1px solid var(--line);background:var(--surface);font-weight:600;font-size:13.5px;white-space:nowrap}
.fchip.on{background:var(--fg);color:var(--bg);border-color:var(--fg)}
.pcard{display:flex;flex-direction:column;gap:12px;text-align:left;width:100%}
.av{width:46px;height:46px;border-radius:14px;display:grid;place-items:center;font-family:var(--f-head);font-weight:800;font-size:16px;background:var(--pcs);color:var(--pc);flex:none}
.bar{height:8px;border-radius:999px;background:var(--surface2);overflow:hidden}
.bar i{display:block;height:100%;background:var(--accent);border-radius:999px}
.kv{display:flex;justify-content:space-between;gap:10px;font-size:13.5px}

/* ficha */
.phead{display:flex;gap:14px;align-items:center}
.phead .av{width:58px;height:58px;font-size:20px;border-radius:18px}
.ring{position:relative;width:84px;height:84px;flex:none}
.ring svg{width:84px;height:84px;transform:rotate(-90deg)}
.ring .lbl{position:absolute;inset:0;display:grid;place-items:center;text-align:center;font-family:var(--f-head);font-weight:800;font-size:20px;line-height:1}
.ring .lbl small{display:block;font-family:var(--f-body);font-size:11px;font-weight:600;color:var(--muted)}
.seg{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;background:var(--surface2);border-radius:12px;padding:4px;gap:4px}
.seg button{padding:10px 6px;border-radius:9px;font-weight:700;font-size:14px;color:var(--muted)}
.seg button.on{background:var(--surface);color:var(--fg);box-shadow:var(--shadow)}
.seg.money2 button.on.in{color:var(--in)} .seg.money2 button.on.out{color:var(--out)}
.field{display:flex;flex-direction:column;gap:6px}
.field>label,.flabel{font-weight:700;font-size:13.5px}
.field .hint{font-size:12.5px;color:var(--muted)}
.inp{width:100%;min-height:48px;border:1px solid var(--line);border-radius:12px;background:var(--surface);padding:10px 12px;font-size:16px}
textarea.inp{min-height:76px;resize:vertical}
.inp:focus{outline:2px solid var(--accent);outline-offset:0;border-color:transparent}
.amount{display:flex;align-items:baseline;gap:6px;border-bottom:2px solid var(--line);padding:4px 0 8px}
.amount span{font-family:var(--f-head);font-weight:700;font-size:22px;color:var(--muted)}
.amount input{border:0;background:transparent;outline:0;font-family:var(--f-head);font-weight:800;font-size:40px;width:100%;min-width:0}
.pick{display:flex;flex-wrap:wrap;gap:8px}
.pick button{padding:10px 14px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);font-weight:600;font-size:14px}
.pick button.on{border-color:var(--accent);background:var(--accent-soft);color:var(--accent)}
.bigpick{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.bigpick button{text-align:left;padding:12px 14px;border-radius:14px;border:1.5px solid var(--line);background:var(--surface);display:flex;flex-direction:column;gap:2px}
.bigpick button b{font-size:15px}
.bigpick button span{font-size:12.5px;color:var(--muted)}
.bigpick button.on{border-color:var(--accent);background:var(--accent-soft)}
.toggle{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px 14px;border-radius:12px;background:var(--surface2);font-weight:600;font-size:14px}
.toggle input{width:22px;height:22px;accent-color:var(--accent);flex:none}
.range{display:flex;align-items:center;gap:12px}
.range input{flex:1;accent-color:var(--accent)}
.range b{font-family:var(--f-head);font-size:20px;min-width:52px;text-align:right}
.mic{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;border:1.5px dashed var(--line);color:var(--muted);font-size:13.5px}
.mic .ic{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;background:var(--surface2)}

.note{display:flex;flex-direction:column;gap:8px}
.note dl{margin:0;display:grid;grid-template-columns:auto 1fr;gap:4px 10px;font-size:14px}
.note dt{color:var(--muted);font-weight:600}
.note dd{margin:0}
.pin{background:var(--accent-soft);border-radius:14px;padding:14px}
.pin b{font-size:11.5px;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}

.sesrow{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.sesrow:first-child{border-top:0}
.sesrow .n{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:800;font-family:var(--f-head);background:var(--surface2);font-size:14px;flex:none}
.sesrow.done .n{background:var(--in-soft);color:var(--in)}
.sesrow.today .n{background:var(--accent);color:var(--accent-fg)}
.sesrow .act{color:var(--accent);font-weight:700;font-size:13.5px;white-space:nowrap}

.tagset{display:flex;flex-wrap:wrap;gap:6px}
.tag{font-size:12.5px;font-weight:600;padding:5px 10px;border-radius:999px;background:var(--surface2)}

/* finance */
.balance{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px}
.balance .big{font-family:var(--f-head);font-weight:800;font-size:34px}
.split{display:flex;height:10px;border-radius:999px;overflow:hidden;gap:2px}
.legend{display:flex;flex-wrap:wrap;gap:6px 14px;font-size:12.5px;color:var(--muted)}
.legend i{display:inline-block;width:9px;height:9px;border-radius:3px;margin-right:5px;vertical-align:0}
.fuel{display:flex;gap:12px;align-items:center}
.tx{display:flex;align-items:center;gap:12px;padding:11px 0;border-top:1px solid var(--line)}
.tx:first-of-type{border-top:0}
.tx .ic{width:38px;height:38px;border-radius:12px;display:grid;place-items:center;flex:none}
.tx b{font-weight:600;font-size:14.5px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tx .amt{font-weight:700;font-family:var(--f-head);white-space:nowrap}
.dayhead{font-size:12.5px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.05em;margin:14px 0 2px}

/* stepper */
.steps{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.steps div{display:flex;flex-direction:column;gap:6px;font-size:12.5px;font-weight:700;color:var(--muted)}
.steps div i{height:5px;border-radius:999px;background:var(--surface2)}
.steps div.on{color:var(--fg)} .steps div.on i{background:var(--accent)}
.check{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.check label{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:12px;border:1.5px solid var(--line);background:var(--surface);font-size:14px;font-weight:600}
.check input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.two{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.parc{display:grid;grid-template-columns:28px 92px 1fr;gap:8px;align-items:center}
.parc .pamt{grid-column:2/4;font-size:13px;color:var(--muted);margin-top:-4px}
.pct{position:relative;display:block}.pct span{position:absolute;right:12px;top:50%;transform:translateY(-50%);color:var(--muted)}.pct input{padding-right:28px}
.preview{background:var(--surface2);border-radius:12px;padding:12px 14px;font-size:13.5px}
.stickybar{position:sticky;bottom:calc(var(--nav-h) + 12px + env(safe-area-inset-bottom,0px));display:grid;grid-template-columns:auto 1fr;gap:10px;margin-top:6px;padding-top:10px;background:linear-gradient(transparent,var(--bg) 30%)}
@media (min-width:960px){.stickybar{bottom:16px}}

/* sheet */
.scrim{position:fixed;inset:0;z-index:40;background:rgba(10,20,16,.45);display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--bg);width:100%;max-width:560px;max-height:92%;overflow:auto;border-radius:22px 22px 0 0;
  padding:10px max(16px,env(safe-area-inset-right,0px)) calc(20px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px));display:flex;flex-direction:column;gap:16px}
.grab{width:42px;height:5px;border-radius:999px;background:var(--line);margin:0 auto}
.sheet .hd{display:flex;align-items:center;gap:10px}
.sheet .hd h2{font-size:19px;flex:1;min-width:0}
@media (min-width:700px){.scrim{align-items:center}.sheet{border-radius:22px;max-height:88%}.grab{display:none}}
.menu{display:flex;flex-direction:column;gap:8px}
.menu button{display:flex;align-items:center;gap:14px;padding:14px;border-radius:14px;background:var(--surface);border:1px solid var(--line);text-align:left}
.menu button b{display:block;font-size:15.5px}
.menu button span{font-size:13px;color:var(--muted)}
.menu .ic{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:none}

.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--nav-h) + 24px + env(safe-area-inset-bottom,0px));z-index:60;background:var(--fg);color:var(--bg);padding:12px 16px;border-radius:12px;font-weight:600;font-size:14px;box-shadow:var(--shadow);max-width:calc(100% - 32px);display:flex;gap:8px;align-items:center}
@media (min-width:960px){.toast{bottom:28px;left:calc(50% + 120px)}}
@media (prefers-reduced-motion:no-preference){.sheet{animation:up .22s ease-out}.toast{animation:fade .2s ease-out}}
@keyframes up{from{transform:translateY(30px);opacity:.4}to{transform:none;opacity:1}}
@keyframes fade{from{opacity:0;transform:translate(-50%,8px)}to{opacity:1;transform:translate(-50%,0)}}
.empty{text-align:center;padding:24px 12px;color:var(--muted)}

/* ---- v3: visual limpo roxo e branco ---- */
.grow{flex:1;min-width:0}
.prow .row{display:flex}
.stack{gap:24px}
.top{margin:8px 0 20px}
.title{font-size:27px}
.eyebrow{font-weight:500;letter-spacing:0}
.demo{font-size:10.5px;padding:2px 7px;vertical-align:1px;color:var(--accent);background:var(--accent-soft)}
.card{border:1px solid var(--line);box-shadow:none;padding:18px}
.iconbtn{border-radius:14px;border-color:var(--line);color:var(--fg);text-decoration:none}
.iconbtn.acc{background:var(--accent);color:var(--accent-fg);border-color:var(--accent)}
.sh{font-size:13px;font-weight:700;color:var(--muted);text-transform:uppercase;letter-spacing:.07em;margin:0 0 10px;font-family:var(--f-body)}
.list{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.list>*{border-top:1px solid var(--line)}
.list>*:first-child{border-top:0}
.appt{display:flex;align-items:center;gap:14px;padding:14px 16px;background:transparent;border:0;border-left:0;border-radius:0;width:100%;text-align:left}
.appt .tm{font-weight:700;font-size:15px;min-width:50px;display:flex;flex-direction:column;line-height:1.2}
.appt .tm small{font-weight:500;color:var(--muted);font-size:12.5px}
.appt .s,.prow .s,.nrow .s,.rem .s{display:block;font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.appt.done{opacity:.55}
.okmark{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent)}
.okmark svg.i{width:16px;height:16px}
.free{display:flex;justify-content:space-between;align-items:center;padding:10px 16px 10px 80px;border:0;border-radius:0;background:var(--surface2);color:var(--muted);font-size:13px}
.free .add{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;color:var(--accent);background:var(--surface)}
.free .add svg.i{width:16px;height:16px}
.next{border-radius:24px;padding:22px;gap:14px;box-shadow:0 12px 30px rgba(107,63,212,.25)}
.next h2{font-size:23px}
.next .plan{background:rgba(255,255,255,.14)}
.desm{color:var(--accent-fg);opacity:.85;font-weight:600;font-size:14px;align-self:center;padding:2px 8px}
.rem{display:flex;align-items:center;gap:12px;padding:14px 16px;text-align:left;width:100%;font-size:14px}
.rem>svg.i:first-child{color:var(--accent)}
.prow{display:flex;align-items:center;gap:14px;padding:16px;text-align:left;width:100%}
.prow .grow{display:flex;flex-direction:column;gap:7px}
.prow .bar{height:6px}
.cnt{font-weight:700;font-size:13.5px;color:var(--accent)}
.av{background:var(--accent-soft);color:var(--accent);border-radius:50%}
.warnt{color:var(--warn);font-weight:600}
.phead .av{border-radius:50%}
.seg{border-radius:14px}
.seg.mini{padding:3px}
.seg.mini button{padding:6px 10px;font-size:12.5px}
.about{display:flex;flex-direction:column;gap:14px}
.nrow{display:flex;align-items:center;gap:12px;padding:14px 16px;text-align:left;width:100%}
.nrow .grow{min-width:0}
.sesrow{padding:12px 16px;border-top:0}
.sesrow .n{border-radius:50%}
.sesrow .n svg.i{width:16px;height:16px}
.sesrow.done .n{background:var(--accent-soft);color:var(--accent)}
.sesrow.done b{color:var(--muted);font-weight:600}
.pin{border-radius:18px}
.balance{background:var(--accent);color:var(--accent-fg);border:0;border-radius:24px;padding:22px;gap:4px;box-shadow:0 12px 30px rgba(107,63,212,.22)}
.balance .big{font-size:36px;margin-bottom:12px}
.balance .two>div{display:flex;flex-direction:column;background:rgba(255,255,255,.14);border-radius:14px;padding:10px 12px}
.balance .two b{font-family:var(--f-head);font-size:17px}
.btn.soft{background:var(--accent-soft);color:var(--accent)}
.det summary{list-style:none;display:flex;align-items:center;gap:10px;cursor:pointer}
.det summary::-webkit-details-marker{display:none}
.det[open] .chev{transform:rotate(90deg)}
.tx{padding:12px 0}
.kv{padding:2px 0}
.tag{background:var(--accent-soft);color:var(--accent)}
.wd.on{background:var(--accent)}
.dots i{background:var(--accent)}
.week{border-radius:18px}
.fab{border-radius:50%;box-shadow:0 8px 20px rgba(107,63,212,.35)}
.tabbar{border-top-color:var(--line)}
.search{border-radius:14px}
.alert{background:var(--accent-soft)}
.alert svg{color:var(--accent)}
.bigpick button.on,.pick button.on{border-color:var(--accent)}

/* ---- v4 ---- */
.hint{font-size:12.5px;color:var(--muted);margin:8px 2px 0}
.swipe{position:relative;overflow:hidden}
.swipe .acts{position:absolute;inset:0 0 0 auto;display:flex;width:176px}
.swipe .sa{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:700;font-size:12.5px}
.swipe .sa.re{background:var(--surface2);color:var(--accent)}
.swipe .sa.ok{background:var(--accent);color:var(--accent-fg)}
.swipe .face{position:relative;background:var(--surface);transition:transform .2s ease;touch-action:pan-y}
.swipe.open .face{transform:translateX(-176px)}
.blk{display:flex;align-items:center;gap:14px;padding:12px 16px;background:repeating-linear-gradient(-45deg,var(--surface2) 0 8px,var(--surface) 8px 16px);color:var(--muted)}
.blk .tm{font-weight:700;font-size:14px;min-width:50px;display:flex;flex-direction:column;line-height:1.2;color:var(--fg)}
.blk .tm small{font-weight:500;color:var(--muted);font-size:12.5px}
.blk .grow{display:flex;align-items:center;gap:8px}
.blk b{color:var(--fg);font-weight:600}
.cntb{min-width:24px;height:24px;border-radius:999px;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;font-size:12.5px;font-weight:700;padding:0 7px}
.chart{width:100%;height:auto;display:block}
.chart text{font-family:var(--f-body)}
.report{white-space:pre-wrap;font-family:var(--f-body);font-size:13px;line-height:1.5;background:var(--surface2);border-radius:14px;padding:14px;margin:0;max-height:260px;overflow:auto}
.kmbox{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:6px 0}
.kmbox div{background:var(--accent-soft);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:2px}
.kmbox b{font-family:var(--f-head);font-size:14.5px;color:var(--accent)}
.kmbox span{font-size:11.5px;color:var(--muted)}
.offline{display:flex;align-items:center;gap:10px;background:var(--fg);color:var(--bg);border-radius:14px;padding:10px 14px;font-size:13.5px;font-weight:600;margin-top:6px}
.bigtext main,.bigtext .sheet{zoom:1.15}
.bigtext .tab{font-size:13px}
.toggle>span{min-width:0}

/* ---- v5: categorias, rosca, ícones ---- */
:root{--c-mercado:#A0892C;--c-moradia:#6B3FD4;--c-contas:#F2A33A;--c-telefone:#2C7BC0;--c-gasolina:#E0703A;--c-carro:#B0613A;--c-equip:#3FA7A0;--c-material:#1F8A5B;--c-impostos:#7A7690;--c-lazer:#E0568E;--c-outros:#A9A3BF}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]){--c-mercado:#D2BA5A;--c-moradia:#A487F2;--c-contas:#F2B45A;--c-telefone:#6AAEE8;--c-gasolina:#F08A5A;--c-carro:#D88A62;--c-equip:#5CC7BF;--c-material:#5CCB92;--c-impostos:#A8A3BE;--c-lazer:#F07FAD;--c-outros:#7E7896}}
:root[data-theme="dark"]{--c-mercado:#D2BA5A;--c-moradia:#A487F2;--c-contas:#F2B45A;--c-telefone:#6AAEE8;--c-gasolina:#F08A5A;--c-carro:#D88A62;--c-equip:#5CC7BF;--c-material:#5CCB92;--c-impostos:#A8A3BE;--c-lazer:#F07FAD;--c-outros:#7E7896}
.cic{width:40px;height:40px;border-radius:13px;display:grid;place-items:center;flex:none;color:var(--cc);background:color-mix(in srgb,var(--cc) 14%,transparent)}
.cic.sm{width:30px;height:30px;border-radius:10px}.cic.sm svg.i{width:16px;height:16px}
.cic.xs{width:22px;height:22px;border-radius:7px;background:transparent}.cic.xs svg.i{width:16px;height:16px}
.cic.lg{width:46px;height:46px;border-radius:15px}
.tx{gap:12px}
.donut-wrap{position:relative;width:min(240px,72vw);margin:10px auto 6px}
.donut{width:100%;height:auto;display:block;overflow:visible}
.seg-c{transition:stroke-dasharray .9s cubic-bezier(.2,.8,.2,1),stroke-width .2s,opacity .2s;cursor:pointer;outline:none}
.has-sel .seg-c{opacity:.3}.has-sel .seg-c.sel{opacity:1;stroke-width:32}
.dcenter{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;pointer-events:none;padding:0 50px}
.dcenter .dl{font-size:12.5px;color:var(--muted);font-weight:600}
.dcenter b{font-family:var(--f-head);font-size:22px;font-weight:800}
.dcenter .dp{font-size:12px;color:var(--muted)}
.dleg{display:flex;flex-direction:column;margin-top:8px}
.dli{display:flex;align-items:center;gap:10px;padding:8px 6px;border-radius:12px;text-align:left;width:100%;font-size:14px;transition:background .15s,opacity .2s}
.dli b{min-width:92px;text-align:right;font-size:14px}
.has-sel .dli{opacity:.45}.has-sel .dli.sel{opacity:1;background:var(--surface2)}
.fvbar{margin-top:14px;padding-top:14px;border-top:1px solid var(--line);display:flex;flex-direction:column;gap:8px}
.dot{display:inline-block;width:9px;height:9px;border-radius:50%;margin-right:6px}
.split2{height:8px;border-radius:999px;background:var(--c-gasolina);overflow:hidden}
.split2 i{display:block;height:100%;background:var(--accent);border-radius:999px 0 0 999px;transition:width .8s ease}
.fxcard{display:flex;align-items:center;gap:14px;text-align:left;width:100%}
.fxcard .s,.fxrow .s{display:block;font-size:13px;color:var(--muted)}
.fxrow{display:flex;align-items:center;gap:12px;padding:12px 14px}
.fxr{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.fxr .chip{border:0;cursor:pointer}
.mini-stat{background:var(--surface2);border-radius:14px;padding:12px;display:flex;flex-direction:column}
.mini-stat span{font-size:12.5px;color:var(--muted);font-weight:600}
.mini-stat b{font-family:var(--f-head);font-size:18px}
.catpick button{display:inline-flex;align-items:center;gap:6px}
.catpick button svg.i{width:17px;height:17px}
.tab svg.i{transition:transform .2s}
.tab.on svg.i{transform:translateY(-1px) scale(1.08)}
.tabbar .tab{position:relative}
.tabbar .tab.on::before{content:"";position:absolute;top:2px;width:44px;height:30px;border-radius:999px;background:var(--accent-soft);z-index:-1}
.tabbar .tab{z-index:0}
.fab svg.i{transition:transform .25s}
.fab.open svg.i{transform:rotate(45deg)}
@media (prefers-reduced-motion:no-preference){
 main>.stack>*{animation:rise .35s ease-out both}
 main>.stack>*:nth-child(2){animation-delay:.04s}main>.stack>*:nth-child(3){animation-delay:.08s}main>.stack>*:nth-child(4){animation-delay:.12s}main>.stack>*:nth-child(n+5){animation-delay:.16s}
 .btn,.qa,.appt,.prow,.rem,.dli,.fxcard{transition:transform .12s ease,background .15s}
 .btn:active,.appt:active,.prow:active,.rem:active,.fxcard:active{transform:scale(.98)}
}
@keyframes rise{from{opacity:.5;transform:translateY(8px)}to{opacity:1;transform:none}}

/* ---- v6: agenda dia/semana/mês e histórico ---- */
.wk{display:flex;flex-direction:column;gap:14px}
.wkday{display:flex;flex-direction:column;gap:8px}
.wkh{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:2px}
.wkd{width:44px;height:44px;border-radius:14px;background:var(--surface2);display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.wkd small{font-size:11px;color:var(--muted);font-weight:600}
.wkd b{font-family:var(--f-head);font-size:17px}
.is-today .wkd{background:var(--accent);color:var(--accent-fg)}.is-today .wkd small{color:var(--accent-fg);opacity:.85}
.cal{background:var(--surface);border:1px solid var(--line);border-radius:18px;padding:10px}
.calh,.calg{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.calh span{text-align:center;font-size:11.5px;color:var(--muted);font-weight:600;padding:4px 0}
.mc{aspect-ratio:1/1.1;max-width:100%;border-radius:12px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:3px;padding-top:7px;position:relative}
.mc b{font-size:14.5px;font-weight:700}
.mc.out{opacity:.35}
.mc.today b{color:var(--accent)}
.mc.on{background:var(--accent);color:var(--accent-fg)}.mc.on b{color:var(--accent-fg)}
.mcnt{display:none}
.mdots{display:flex;gap:3px}.mdots i{width:6px;height:6px;border-radius:50%;background:var(--pc)}
.mc.on .mdots i{background:var(--accent-fg)}
.hbars{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:12px;height:150px}
.hb{display:flex;flex-direction:column;align-items:center;gap:6px;height:100%}
.hbt{flex:1;width:100%;max-width:46px;display:flex;align-items:flex-end;background:var(--surface2);border-radius:12px;overflow:hidden}
.hbt i{display:block;width:100%;background:color-mix(in srgb,var(--accent) 35%,transparent);border-radius:12px;transition:height .7s cubic-bezier(.2,.8,.2,1),background .2s}
.hb.on .hbt i{background:var(--accent)}
.hbv{font-size:11.5px;color:var(--muted);font-weight:600}.hb.on .hbv{color:var(--accent)}
.hbl{font-size:12.5px;font-weight:700;color:var(--muted)}.hb.on .hbl{color:var(--fg)}
.kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.kpi{background:var(--surface);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.kpi span{font-size:12.5px;color:var(--muted);font-weight:600}
.kpi b{font-family:var(--f-head);font-size:21px;font-weight:800;white-space:nowrap}
.kpi em{font-style:normal}
.kpi.wide{grid-column:1/-1;background:var(--accent-soft);border-color:transparent}
.kpi.wide b{color:var(--accent);font-size:24px}
.stq{display:grid;grid-template-columns:1fr 1fr;gap:16px 12px}
.stq div{display:flex;align-items:baseline;gap:8px}
.stq b{font-family:var(--f-head);font-size:24px;font-weight:800}
.stq span{font-size:13px;color:var(--muted);line-height:1.25}
.hrow{display:flex;align-items:center;gap:12px;padding:13px 16px;text-align:left;width:100%}
.hst{display:flex;flex-direction:column;align-items:flex-end;gap:4px}
.av.sm{width:36px;height:36px;font-size:13px}
.hrow .s{display:block;font-size:12.5px;color:var(--muted)}

/* ---- v7 ---- */
.toast .grow{flex:1;min-width:0}
.toast{width:min(360px,calc(100% - 32px))}
.toast .undo{color:var(--accent-soft);font-weight:800;padding:4px 6px;margin-left:6px;text-decoration:underline;text-underline-offset:3px}
.goal{display:flex;flex-direction:column;gap:10px;text-align:left;width:100%}
.goal .gp{font-family:var(--f-head);font-weight:800;font-size:20px;color:var(--accent)}
.goal .s{font-size:13px;color:var(--muted)}
.goal .bar{height:8px}
.rlink{display:inline-flex;align-items:center;gap:5px;text-decoration:none;font-size:13.5px}
.rlink svg.i{width:16px;height:16px}
.exl{display:flex;flex-direction:column;gap:10px}
.exi{display:flex;align-items:center;gap:12px}
.exi .s{display:block;font-size:12.5px;color:var(--muted)}
.exth{width:44px;height:34px;border-radius:10px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:none}
.pick-ex{padding:12px 14px;cursor:pointer}
.pick-ex input{width:20px;height:20px;accent-color:var(--accent);flex:none}
.notif{position:fixed;top:calc(10px + env(safe-area-inset-top,0px));left:50%;transform:translateX(-50%);width:min(380px,calc(100% - 24px));z-index:80;display:flex;gap:12px;align-items:center;padding:12px 14px;border-radius:18px;background:var(--surface);border:1px solid var(--line);box-shadow:0 14px 40px rgba(30,20,60,.25)}
.notif .nic{width:38px;height:38px;border-radius:11px;background:var(--accent);color:var(--accent-fg);display:grid;place-items:center;flex:none}
.notif b{display:block;font-size:12.5px;color:var(--muted);font-weight:600}
.notif span span{font-size:14px}
@media (prefers-reduced-motion:no-preference){.notif{animation:drop .35s cubic-bezier(.2,.8,.2,1)}}
@keyframes drop{from{transform:translate(-50%,-30px);opacity:0}to{transform:translate(-50%,0);opacity:1}}

/* ---- v8: agenda legível ---- */
.mc.has{background:var(--accent-soft)}
.mc.has b{color:var(--accent)}
.mc.on,.mc.on.has{background:var(--accent)}
.mc.on b{color:var(--accent-fg)}
.mc{justify-content:center;gap:2px;padding-top:0}
.mn{min-width:20px;height:18px;border-radius:999px;background:var(--accent);color:var(--accent-fg);font-size:11px;font-weight:800;display:inline-grid;place-items:center;padding:0 5px}
.mc.on .mn{background:var(--accent-fg);color:var(--accent)}
.mc .mdots{display:none}
.clegend{display:flex;align-items:center;gap:8px;font-size:12.5px;color:var(--muted);padding:10px 6px 2px;border-top:1px solid var(--line);margin-top:8px}
.wtable{background:var(--surface);border:1px solid var(--line);border-radius:18px;overflow:hidden}
.wr{display:flex;align-items:center;gap:14px;width:100%;text-align:left;padding:12px 14px;border-top:1px solid var(--line)}
.wr:first-child{border-top:0}
.wdate{width:42px;flex:none;display:flex;flex-direction:column;align-items:center;line-height:1.1}
.wdate small{font-size:11.5px;color:var(--muted);font-weight:700;text-transform:uppercase;letter-spacing:.04em}
.wdate b{font-family:var(--f-head);font-size:20px;font-weight:800}
.is-today .wdate b,.is-today .wdate small{color:var(--accent)}
.is-today{background:color-mix(in srgb,var(--accent) 6%,transparent)}
.wbody{flex:1;min-width:0;display:flex;flex-direction:column;gap:5px}
.wi{display:flex;align-items:center;gap:10px;font-size:14.5px}
.wi .wt{font-weight:700;min-width:44px;color:var(--accent)}
.wi .wn{font-weight:600}
.wi.done{color:var(--muted)}.wi.done .wt{color:var(--muted)}.wi svg.i{width:15px;height:15px;color:var(--in)}
.wfree{color:var(--muted);font-size:14px}
.wblk{display:flex;align-items:center;gap:6px;font-size:12.5px;color:var(--muted)}.wblk svg.i{width:14px;height:14px}
.wcount{min-width:26px;height:26px;border-radius:50%;background:var(--accent-soft);color:var(--accent);font-weight:800;font-size:13px;display:grid;place-items:center}
.empty-d .wcount{background:transparent}
.empty-d{padding-block:9px}.empty-d .wdate b{font-size:16px;color:var(--muted)}
.dstrip{display:grid;grid-template-columns:repeat(7,1fr);gap:4px}
.dsb{display:flex;flex-direction:column;align-items:center;gap:1px;padding:8px 0;border-radius:14px;line-height:1.15}
.dsb small{font-size:11px;color:var(--muted);font-weight:700}
.dsb b{font-family:var(--f-head);font-size:17px}
.dsn{font-size:11px;color:var(--muted);font-weight:700;margin-top:2px}
.dsb.today b{color:var(--accent)}
.dsb.on{background:var(--accent);color:var(--accent-fg)}.dsb.on small,.dsb.on .dsn,.dsb.on b{color:var(--accent-fg)}
.dsum{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.dsum div{background:var(--surface2);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column}
.dsum b{font-family:var(--f-head);font-size:18px;font-weight:800}
.dsum span{font-size:12px;color:var(--muted)}
.rail{display:flex;flex-direction:column}
.rr{display:grid;grid-template-columns:46px 14px 1fr;gap:8px;align-items:stretch}
.rt{font-size:13px;font-weight:700;padding-top:12px;text-align:right;color:var(--muted)}
.rd{position:relative}
.rd::before{content:"";position:absolute;left:6px;top:0;bottom:0;width:2px;background:var(--line)}
.rd::after{content:"";position:absolute;left:2px;top:15px;width:10px;height:10px;border-radius:50%;background:var(--surface);border:2px solid var(--accent)}
.rr:first-child .rd::before{top:15px}.rr:last-child .rd::before{bottom:calc(100% - 20px)}
.rc{padding-bottom:10px;min-width:0}
.ev{display:flex;flex-direction:column;gap:2px;width:100%;text-align:left;padding:12px 14px;border-radius:14px;background:var(--accent-soft);position:relative}
.ev b{font-size:15.5px;display:flex;align-items:center;gap:6px}
.evt{font-size:12.5px;font-weight:700;color:var(--accent)}
.evs{font-size:13px;color:var(--muted)}
.evok{position:absolute;top:12px;right:12px;display:flex;align-items:center;gap:4px;font-size:12px;font-weight:700;color:var(--in)}.evok svg.i{width:14px;height:14px}
.ev.done{background:var(--surface2)}.ev.done .evt{color:var(--muted)}
.ev.blk{background:repeating-linear-gradient(-45deg,var(--surface2) 0 8px,var(--surface) 8px 16px);border:1px solid var(--line)}
.ev.blk{align-items:flex-start;text-align:left}.ev.blk .evt{color:var(--muted)}.ev.blk b svg.i{width:16px;height:16px;color:var(--muted)}
.ev.blk .link{position:absolute;right:14px;top:50%;transform:translateY(-50%)}
.ev.free{flex-direction:row;align-items:center;justify-content:space-between;background:transparent;border:1.5px dashed var(--line);color:var(--fg);font-size:14px;padding:10px 12px}
.fplus{width:28px;height:28px;border-radius:50%;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center}.fplus svg.i{width:16px;height:16px}
.rr:has(.ev.free) .rd::after{border-color:var(--line);background:var(--bg)}

/* ---- v9: caixinhas e acabamento ---- */
.card,.list,.wtable,.cal,.kpi{box-shadow:0 1px 2px rgba(60,30,130,.04),0 6px 18px rgba(60,30,130,.05);border-color:#EEEAF6}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) .card,:root:not([data-theme="light"]) .list,:root:not([data-theme="light"]) .wtable,:root:not([data-theme="light"]) .cal,:root:not([data-theme="light"]) .kpi{border-color:var(--line);box-shadow:none}}
:root[data-theme="dark"] .card,:root[data-theme="dark"] .list,:root[data-theme="dark"] .wtable,:root[data-theme="dark"] .cal,:root[data-theme="dark"] .kpi{border-color:var(--line);box-shadow:none}
.card,.list,.wtable,.cal{border-radius:20px}
.tpill{display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:58px;padding:7px 6px;border-radius:12px;background:var(--accent-soft);line-height:1.15}
.tpill b{font-size:15px;color:var(--accent);font-weight:800}
.tpill small{font-size:11.5px;color:var(--muted);font-weight:600}
.appt.done .tpill{background:var(--surface2)}.appt.done .tpill b{color:var(--muted)}
.evt{display:flex;align-items:center;gap:5px}.evt svg.i{width:13px;height:13px}
.tx .amt{min-width:96px;text-align:right}
.tx b{font-size:14.5px}
.kpi{gap:4px}
.kic{width:30px;height:30px;border-radius:10px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);margin-bottom:6px}
.kic svg.i{width:16px;height:16px}.kic.in{background:var(--in-soft);color:var(--in)}.kic.out{background:var(--out-soft);color:var(--out)}
.kpi b{text-align:left}
.next .when{background:rgba(255,255,255,.16);align-self:flex-start;padding:5px 10px;border-radius:999px;font-size:13px}
.next .when svg.i{width:15px;height:15px}
.rem>svg.i:first-child,.rem>.cic{flex:none}
.boxentry{display:flex;align-items:center;gap:12px;text-align:left;width:100%;padding:14px 16px}
.boxentry .s{display:block;font-size:13px;color:var(--muted)}
.minirings{display:flex;margin-right:2px}
.mr{position:relative;width:34px;height:34px;margin-left:-6px;background:var(--surface);border-radius:50%}
.mr .mri{position:absolute;inset:0;display:grid;place-items:center;color:var(--accent)}.mr .mri svg.i{width:14px;height:14px}
.ring2 .rg{transition:stroke-dasharray 1.1s cubic-bezier(.2,.8,.2,1)}
.ring2.onacc circle:first-child{stroke:rgba(255,255,255,.22)}.ring2.onacc .rg{stroke:#fff}
.boxtotal{display:flex;align-items:center;gap:16px;background:var(--accent);color:var(--accent-fg);border-radius:24px;padding:20px 22px;box-shadow:0 12px 30px rgba(107,63,212,.22)}
.boxtotal>div{flex:1;display:flex;flex-direction:column;gap:2px}.boxtotal .small{opacity:.85}
.boxtotal b{font-family:var(--f-head);font-size:28px;font-weight:800}
.boxgrid{display:grid;grid-template-columns:1fr;gap:14px}
@media (min-width:600px){.boxgrid{grid-template-columns:1fr 1fr}}
.boxcard{display:flex;flex-direction:column;text-align:left;width:100%;background:var(--surface);border:1px solid var(--line);border-radius:20px;overflow:hidden;box-shadow:0 1px 2px rgba(60,30,130,.04),0 6px 18px rgba(60,30,130,.05)}
.cover{position:relative;width:100%;border-radius:16px;overflow:hidden;background:var(--surface2)}
.boxcard .cover{border-radius:0}
.cover svg,.cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;display:block}
.cvi{position:absolute;right:16px;bottom:12px;width:44px;height:44px;border-radius:14px;background:rgba(255,255,255,.22);color:#fff;display:grid;place-items:center;backdrop-filter:blur(4px)}
.cvi svg.i{width:24px;height:24px}
.bcb{display:flex;align-items:center;gap:12px;padding:14px 16px}
.bcb .grow{display:flex;flex-direction:column;gap:3px}
.bcb b{font-size:16px}
.bcb .s{font-size:14px;font-weight:700}
.btype{display:flex;align-items:center;gap:5px;font-size:11.5px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.05em}.btype svg.i{width:13px;height:13px}
.ringwrap{position:relative;width:58px;height:58px;flex:none}
.rpct{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--f-head);font-weight:800;font-size:14px}
.bigring{position:relative;width:170px;height:170px;margin:0 auto}
.brc{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}
.brc b{font-family:var(--f-head);font-size:36px;font-weight:800;color:var(--accent);line-height:1}
.brc span{font-weight:700;margin-top:6px}.brc small{color:var(--muted);font-size:12px}
.bstats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.bstats div{background:var(--surface2);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;min-width:0}
.bstats span{font-size:12px;color:var(--muted);font-weight:600}.bstats b{font-family:var(--f-head);font-size:15px}
.tipbox{display:flex;gap:10px;align-items:flex-start;background:var(--accent-soft);border-radius:14px;padding:12px 14px;font-size:14px}
.tipbox svg.i{color:var(--accent);margin-top:1px}
.addbox{display:flex;flex-direction:column;gap:12px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:16px}
.mbars{display:grid;grid-auto-flow:column;grid-auto-columns:1fr;gap:8px;height:120px;background:var(--surface);border:1px solid var(--line);border-radius:20px;padding:14px}
.mb{display:flex;flex-direction:column;align-items:center;gap:4px;height:100%}
.mbt{flex:1;width:100%;max-width:34px;display:flex;align-items:flex-end}
.mbt i{display:block;width:100%;background:var(--v);border-radius:8px}
.mbv{font-size:11px;color:var(--muted);font-weight:700}.mbl{font-size:12px;font-weight:700;color:var(--muted)}
.blk .tm{min-width:58px;align-items:center;padding:7px 6px;border-radius:12px;background:var(--surface)}

/* ---- v10: versículo do dia ---- */
.verse{position:relative;padding:18px 20px 14px 22px;border-radius:20px;background:linear-gradient(135deg,var(--accent-soft),color-mix(in srgb,var(--accent-soft) 35%,var(--surface)));overflow:hidden}
.vq{position:absolute;top:-14px;right:14px;font-family:"Lora",Georgia,serif;font-size:96px;line-height:1;color:var(--accent);opacity:.14}
.vt{margin:0;font-family:"Lora",Georgia,serif;font-style:italic;font-weight:500;font-size:16.5px;line-height:1.5;color:var(--fg);text-wrap:pretty;position:relative}
.vf{display:flex;align-items:center;justify-content:space-between;margin-top:10px;gap:8px}
.vr{font-size:12px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:var(--accent)}
.va{display:flex;gap:2px}
.vb{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;color:var(--muted)}
.vb svg.i{width:17px;height:17px}
.vb.on{color:var(--accent)}.vb.on svg.i{fill:var(--accent)}
.vb:hover{background:color-mix(in srgb,var(--accent) 10%,transparent)}
/* v11 */
.trv{display:flex;align-items:center;gap:8px;padding:7px 16px 7px 24px;font-size:12.5px;color:var(--muted);background:var(--surface)}
.trv svg.i{width:15px;height:15px}
.trv b{font-weight:700}
.trv.tight{color:var(--warn);background:var(--warn-soft)}
.trv.inrail{padding:0 2px 8px;background:none}
.trv.inrail.tight{background:none}
.paidl{display:flex;flex-direction:column;gap:6px;padding:8px 0 4px;margin-top:4px;border-top:1px dashed var(--line)}
.realh{margin-top:10px;padding:12px 14px;border-radius:12px;background:var(--surface2);display:flex;flex-direction:column;gap:4px}
.realh .kv span{font-weight:600}
.realm{display:flex;flex-direction:column;gap:10px}
.realm .big{display:block;font-family:var(--f-head);font-size:26px;font-weight:800;letter-spacing:-.02em;margin-top:2px}
.carer{display:flex;align-items:center;gap:8px;margin-top:2px}
.carer .iconbtn{width:40px;height:40px}
.link.small{font-size:12.5px}
.money{display:flex;align-items:center;gap:8px;border:1px solid var(--line);border-radius:12px;padding-left:12px;background:var(--surface)}
.money:focus-within{outline:2px solid var(--accent);outline-offset:1px}
.money span{font-weight:700;color:var(--muted)}
.money .inp{border:0;padding-left:0;font-size:20px;font-weight:700;outline:none}
.restbox{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:14px;background:var(--warn-soft)}
.restbox[hidden],.field[hidden]{display:none}
.restbox>b{color:var(--warn)}
.restbox .seg{background:var(--surface)}
.restbox .seg button.on{background:var(--accent);color:var(--accent-fg)}
.card.soft{background:var(--surface2);border-color:transparent}
.attach{display:inline-flex;align-items:center;gap:5px;cursor:pointer}.attach svg.i{width:17px;height:17px}
.docs{display:grid;grid-template-columns:repeat(auto-fill,minmax(96px,1fr));gap:10px}
.doc{display:flex;flex-direction:column;gap:3px;text-align:left;min-width:0}
.doc img,.doc .pdf{width:100%;aspect-ratio:4/5;object-fit:cover;border-radius:12px;border:1px solid var(--line);background:var(--surface2)}
.doc .pdf{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;color:var(--accent)}
.doc .pdf svg.i{width:30px;height:30px}.doc .pdf small{font-weight:700;font-size:11px}
.doc .dn{font-size:12.5px;font-weight:600;line-height:1.25;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.doc .dd{font-size:11.5px;color:var(--muted)}
.docview{width:100%;border-radius:14px;border:1px solid var(--line)}
.pdfbig{display:flex;flex-direction:column;align-items:center;gap:10px;padding:34px 16px;border-radius:14px;background:var(--surface2);color:var(--muted);text-align:center;font-size:14px}
.pdfbig svg.i{width:40px;height:40px;color:var(--accent)}
.sbox{position:relative}.sbox>svg.i{position:absolute;left:14px;top:50%;transform:translateY(-50%);color:var(--muted)}.sbox .inp{padding-left:44px}
#sr .nrow .av.sm{border-radius:50%}
.onb{position:fixed;inset:0;z-index:60;background:var(--bg);overflow-y:auto;padding:max(18px,env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) max(18px,env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.onbin{max-width:460px;margin:0 auto;min-height:100%;display:flex;flex-direction:column;gap:22px}
.onbtop{gap:12px}
.onb .dots{display:flex;gap:6px}.onb .dots i{width:26px;height:6px;border-radius:3px;background:var(--line)}.onb .dots i.on{background:var(--accent)}
.onb h1{font-size:25px;line-height:1.2}
.onb p.muted{margin:-6px 0 0}
.onbic{width:56px;height:56px;border-radius:18px;display:grid;place-items:center;background:var(--accent-soft);color:var(--accent);margin-top:8px}.onbic svg.i{width:28px;height:28px}
.onbbtns{margin-top:auto;display:flex;gap:10px;padding-top:8px}
.onbbtns .btn{flex:1}.onbbtns .btn.grow{flex:2}
/* v12 voz */
.voice{display:flex;flex-direction:column;gap:12px;padding:14px;border-radius:16px;background:var(--accent-soft)}
.vmic{width:52px;height:52px;border-radius:50%;display:grid;place-items:center;background:var(--accent);color:var(--accent-fg);flex:none;box-shadow:var(--shadow);transition:transform .15s}
.vmic svg.i{width:24px;height:24px}
.vmic.on{background:var(--out);animation:vpulse 1.4s ease-in-out infinite}
.vmic.off{background:var(--surface2);color:var(--muted);box-shadow:none;cursor:default}
@keyframes vpulse{0%,100%{box-shadow:0 0 0 0 color-mix(in srgb,var(--out) 45%,transparent)}50%{box-shadow:0 0 0 10px color-mix(in srgb,var(--out) 0%,transparent)}}
@media (prefers-reduced-motion:reduce){.vmic.on{animation:none}}
.voice #vc-box{display:flex;flex-direction:column;gap:10px}.voice #vc-box[hidden]{display:none}
.voice textarea.inp{min-height:96px;background:var(--surface)}
.vpart{font-style:italic;min-height:0}.vpart:empty{display:none}
.vnote{margin:0;padding:10px 12px;border-radius:10px;background:var(--surface);color:var(--fg)}
.inp.filled{border-color:var(--accent);background:color-mix(in srgb,var(--accent-soft) 45%,var(--surface))}
.spin{width:16px;height:16px;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
/* v13 lia */
.lring{width:52px;height:52px;flex:none;display:grid;place-items:center}
.hbtns{gap:6px}.hbtns .iconbtn{width:38px;height:38px;border-radius:12px}.hbtns .iconbtn svg.i{width:19px;height:19px}
.top:has(.hbtns) .title{white-space:nowrap}
.liahead{display:flex;align-items:center;gap:14px;padding:14px;border-radius:16px;background:var(--accent-soft)}
.vmic.big{width:60px;height:60px}.vmic.big svg.i{width:28px;height:28px}
.lask{display:flex;align-items:center}.lask .inp{padding-right:54px}.lask .iconbtn{position:absolute;right:4px;top:50%;transform:translateY(-50%);width:40px;height:40px}
.laex{display:flex;flex-direction:column;gap:8px}
.laex button{text-align:left;padding:11px 14px;border-radius:12px;border:1px solid var(--line);background:var(--surface);font-size:14px;color:var(--fg)}
#la-ex[hidden]{display:none}
.lcard{display:flex;flex-direction:column;gap:14px;padding:16px;border-radius:18px;border:1.5px solid var(--accent);background:var(--surface);box-shadow:var(--shadow)}
.lcard .money .inp{font-size:24px;min-height:44px}
.lcard .seg button{padding:9px 6px}
