:root{
  --bg:#f4f6f5;--surf:#fff;--surf2:#f7f9f8;--surf3:#eef2f0;--bd:#dde3e0;--bd2:#c9d1cd;
  --t1:#16211c;--t2:#4b5a53;--t3:#7a8882;--green:#0f9d58;--green2:#0b7f47;--greenT:#e3f4ea;--greenB:#9fd8b5;
  --onAccent:#fff;--red:#d93838;--redT:#fde8e8;
  /* regra de cor: precisa de atenção = laranja · feito = verde · esperando = cinza */
  --new:#e8710a;--newT:#fff1e3;--newB:#f5b46e;--wait:#7a8882;--waitT:#eef1f0;
  --sh:0 1px 3px rgba(0,0,0,.08);
}
@media (prefers-color-scheme:dark){:root{
  --bg:#0f1412;--surf:#18201c;--surf2:#1d2622;--surf3:#232e29;--bd:#2c3833;--bd2:#3a4842;
  --t1:#e8efeb;--t2:#aebbb4;--t3:#83918a;--green:#34c77b;--green2:#5fd99a;--greenT:#173326;--greenB:#24543b;
  --onAccent:#06150d;--red:#ff6b6b;--redT:#3a1f1f;--new:#ff9a3d;--newT:#3a2512;--newB:#7a4a1c;--wait:#83918a;--waitT:#202825;--sh:none;
}}
*{box-sizing:border-box;-webkit-tap-highlight-color:transparent}
html,body{margin:0;background:var(--bg);color:var(--t1);font:15px/1.45 system-ui,-apple-system,"Segoe UI",Roboto,sans-serif;overscroll-behavior-y:contain;word-break:keep-all;overflow-wrap:break-word}
button,input,select{font:inherit;color:inherit}
button{white-space:nowrap}
.wrap{max-width:480px;margin:0 auto;min-height:100vh;padding:0 14px 100px}
header{display:grid;grid-template-columns:1fr auto 1fr;align-items:center;gap:8px;padding:12px 0 8px;position:sticky;top:0;background:var(--bg);z-index:10}
.logo{width:30px;height:30px;border-radius:9px;flex:none;background:var(--green);color:var(--onAccent);display:grid;place-items:center;font-weight:800}
header h1{font-size:21px;margin:0;text-align:center;font-weight:800;white-space:nowrap}
.brand{display:flex;align-items:center;gap:6px;min-width:0;font-size:12px;color:var(--t3);font-weight:700}
.brand span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lang{justify-self:end;border:1px solid var(--bd);background:var(--surf);border-radius:10px;padding:6px 8px;min-height:44px}
.demo{background:var(--newT);border:1.5px solid var(--new);border-radius:12px;padding:10px 12px;font-size:13px;display:flex;gap:10px;align-items:center;margin:6px 0 10px}
.demo span{flex:1;min-width:0}.demo button{flex:none}
.month{display:flex;align-items:center;justify-content:space-between;margin:4px 0 10px}
.month b{font-size:16px}
.ib{width:44px;height:44px;border-radius:12px;border:1px solid var(--bd);background:var(--surf);font-size:18px;cursor:pointer}
.card{background:var(--surf);border:1px solid var(--bd);border-radius:16px;padding:14px;margin-bottom:12px;box-shadow:var(--sh)}
.card.attn{background:var(--newT);border:1.5px solid var(--new)}
.card.done{border:1.5px solid var(--greenB)}
.hero .lbl{color:var(--t2);font-size:13px}
.hero .big{font-size:34px;font-weight:800;letter-spacing:-.5px;margin:2px 0}
.hero .big.neg{color:var(--red)}
.hero .day{font-size:14px;color:var(--t2)}
.hero .day b{color:var(--green)}
.grid4{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:12px}
.mini{background:var(--surf2);border-radius:12px;padding:8px 10px}
.mini span{display:block;font-size:12px;color:var(--t3)}
.mini b{font-size:15px}
.in{color:var(--green)}.out{color:var(--red)}.warn{color:var(--new)}
.quick{display:flex;gap:8px}
.quick input{flex:1;min-width:0;height:50px;border-radius:12px;border:1.5px solid var(--bd2);background:var(--surf);padding:0 12px}
.quick input:focus{outline:2px solid var(--green);border-color:transparent}
.quick.pulse input{border-color:var(--new);animation:pulse 1.4s ease-in-out infinite}
@keyframes pulse{0%,100%{box-shadow:0 0 0 0 rgba(232,113,10,.45)}50%{box-shadow:0 0 0 6px rgba(232,113,10,0)}}
.here{display:none;font-size:13px;font-weight:700;color:var(--new);margin:0 0 6px 2px;animation:bob 1s ease-in-out infinite}
.here.on{display:block}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(3px)}}
@media (prefers-reduced-motion:reduce){.quick.pulse input,.here{animation:none}}
.btn{height:48px;min-width:48px;padding:0 16px;border-radius:12px;border:0;background:var(--green);color:var(--onAccent);font-weight:700;cursor:pointer}
.btn.sec{background:var(--surf3);color:var(--t1)}
.btn.orange{background:var(--new);color:#fff}
.btn.danger{background:var(--redT);color:var(--red)}
.btn.sm{height:36px;padding:0 12px;font-size:13px}
.hint{font-size:12px;color:var(--t3);margin-top:6px}
.err{font-size:13px;color:var(--red);margin-top:6px;display:none}
.err.on{display:block}
.chips{display:flex;gap:6px;margin:8px 0 0;flex-wrap:wrap}
.chip{border:1px solid var(--bd);background:var(--surf);border-radius:999px;padding:6px 12px;min-height:36px;cursor:pointer;font-size:13px}
.chip.on{background:var(--greenT);border-color:var(--greenB);color:var(--green2);font-weight:700}
h2{font-size:15px;margin:18px 2px 4px;display:flex;align-items:center;justify-content:space-between;gap:8px}
.sub{font-size:12px;color:var(--t3);margin:0 2px 8px}
.list{background:var(--surf);border:1px solid var(--bd);border-radius:16px;overflow:hidden}
.row{display:flex;align-items:center;gap:10px;padding:10px 12px;border-top:1px solid var(--bd);min-height:58px;cursor:pointer;width:100%;background:none;border-left:0;border-right:0;border-bottom:0;text-align:left;white-space:normal}
.row:first-child{border-top:0}
.row.todo{background:var(--newT);box-shadow:inset 4px 0 0 var(--new)}
.row.paid{box-shadow:inset 4px 0 0 var(--green)}
.row.waiting{box-shadow:inset 4px 0 0 var(--wait)}
.dot{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;font-weight:800;font-size:13px;color:#fff;flex:none}
.row .txt{flex:1;min-width:0}
.row .txt b{display:block;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.row .txt span{font-size:12px;color:var(--t3)}
.row .amt{font-weight:700;white-space:nowrap}
.tag{font-size:10px;border-radius:6px;padding:1px 5px;background:var(--surf3);color:var(--t2);margin-left:4px;vertical-align:1px;font-weight:700}
.tag.new{background:#c25e00;color:#fff}.tag.ok{background:var(--green);color:var(--onAccent)}.tag.wait{background:var(--waitT);color:var(--wait)}
.empty{padding:16px;color:var(--t3);font-size:13px;text-align:center}
.ck{min-width:44px;height:44px;border-radius:10px;border:2px solid var(--new);background:var(--surf);display:flex;flex-direction:column;align-items:center;justify-content:center;flex:none;cursor:pointer;font-size:10px;font-weight:700;color:var(--new);line-height:1.1;padding:2px}
.ck i{font-style:normal;font-size:16px}
.ck.on{background:var(--green);border-color:var(--green);color:var(--onAccent)}
.ck.wait{border-color:var(--bd2);color:var(--wait)}
.edit{height:36px;padding:0 10px;border-radius:10px;border:1px solid var(--bd2);background:var(--surf);font-size:12px;font-weight:600;color:var(--t2);cursor:pointer;flex:none}
.cat-link{color:var(--new);font-weight:700}
.bars{display:flex;align-items:flex-end;gap:8px;height:150px;padding:8px 2px 0}
.bar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;gap:4px}
.bar i{display:block;width:100%;border-radius:8px 8px 4px 4px;background:var(--green);min-height:3px}
.bar i.hi{background:var(--new)}.bar i.vhi{background:var(--red)}
.bar small{font-size:11px;color:var(--t3);text-transform:capitalize}
.bar em{font-style:normal;font-size:11px;font-weight:700}
.prog{height:12px;background:var(--surf3);border-radius:99px;overflow:hidden;margin:8px 0 4px}
.prog i{display:block;height:100%;background:var(--green);border-radius:99px}
.note{font-size:13px;color:var(--t2)}
.sw{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px}
.tog{width:50px;height:30px;border-radius:99px;background:var(--bd2);position:relative;border:0;cursor:pointer;flex:none}
.tog::after{content:"";position:absolute;top:3px;left:3px;width:24px;height:24px;border-radius:50%;background:#fff;transition:.15s}
.tog.on{background:var(--green)}.tog.on::after{left:23px}
.guide .steps{margin:8px 0 10px;padding:0;list-style:none}
.guide li{display:flex;gap:8px;align-items:flex-start;font-size:13px;padding:4px 0;color:var(--t2)}
.guide li b{width:22px;height:22px;border-radius:50%;display:grid;place-items:center;font-size:12px;flex:none;background:var(--waitT);color:var(--wait)}
.guide li.ok b{background:var(--green);color:var(--onAccent)}
.guide li.now{color:var(--t1);font-weight:700}
.guide li.now b{background:var(--new);color:#fff}
.guide .acts{align-items:center}
.linkbtn{background:none;border:0;color:var(--t3);font-size:13px;text-decoration:underline;cursor:pointer;padding:8px}
.status{display:inline-block;font-size:12px;font-weight:700;border-radius:8px;padding:2px 8px;margin-left:6px;vertical-align:2px}
.status.new{background:var(--new);color:#fff}.status.ok{background:var(--green);color:var(--onAccent)}
nav{position:fixed;left:0;right:0;bottom:0;background:var(--surf);border-top:1px solid var(--bd);display:flex;justify-content:center;padding-bottom:env(safe-area-inset-bottom);z-index:20}
nav .in2{display:flex;max-width:480px;width:100%}
nav button{flex:1;border:0;background:none;padding:8px 0 10px;min-height:58px;font-size:12px;color:var(--t3);cursor:pointer;display:flex;flex-direction:column;align-items:center;gap:2px;position:relative}
nav button svg{width:22px;height:22px}
nav button.on{color:var(--green);font-weight:700}
nav button.on::before{content:"";position:absolute;top:0;left:22%;right:22%;height:3px;border-radius:0 0 3px 3px;background:var(--green)}
nav button .bdg{position:absolute;top:6px;left:calc(50% + 8px);min-width:18px;height:18px;border-radius:9px;background:var(--new);color:#fff;font-size:11px;font-weight:800;display:none;place-items:center;padding:0 4px}
nav button .bdg.on{display:grid}
.tab{display:none}.tab.on{display:block}
.scrim{position:fixed;inset:0;background:rgba(0,0,0,.4);display:none;z-index:50}
.sheet.on+.scrim{display:block}
.scrim.on{display:block}
.sheet{position:fixed;left:0;right:0;bottom:0;max-width:480px;margin:0 auto;background:var(--surf);border-radius:20px 20px 0 0;padding:16px 16px calc(16px + env(safe-area-inset-bottom));z-index:51;transform:translateY(105%);transition:transform .2s;max-height:88vh;overflow:auto}
.sheet.on{transform:none}
.sheet h3{margin:0 0 12px;font-size:17px}
.fld{margin-bottom:10px}
.fld label{display:block;font-size:13px;color:var(--t2);margin-bottom:4px}
.fld input,.fld select{width:100%;height:46px;border-radius:12px;border:1px solid var(--bd2);background:var(--surf);padding:0 12px}
.fld .err{margin-top:4px}
.two{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.acts{display:flex;gap:8px;margin-top:6px}.acts .btn{flex:1}
.toast{position:fixed;left:50%;bottom:86px;transform:translateX(-50%);background:var(--t1);color:var(--bg);padding:10px 14px;border-radius:12px;font-size:13px;opacity:0;pointer-events:none;transition:.2s;z-index:60;max-width:90%;white-space:normal}
.toast.on{opacity:1}
#dkStrip{margin-top:16px}
/* ===== 정식판 v1 ===== */
.logo img{width:100%;height:100%;border-radius:9px;display:block}
.logo{background:none}
.row .edit{margin-left:2px}
.sheet .q{font-size:16px;font-weight:600;margin:4px 0 14px;line-height:1.5}
.sheet .confirm{background:var(--redT);border-radius:12px;padding:12px;margin-top:10px}
.sheet .confirm p{margin:0 0 10px;font-weight:600;color:var(--red)}
.upd{position:fixed;left:0;right:0;bottom:calc(58px + env(safe-area-inset-bottom));z-index:40;display:none;justify-content:center;padding:0 10px 8px}
.upd.on{display:flex}
.upd .in3{max-width:460px;width:100%;background:var(--new);color:#fff;border-radius:14px;padding:12px;display:flex;align-items:center;gap:10px;box-shadow:0 4px 14px rgba(0,0,0,.25)}
.upd b{flex:1;font-size:15px;line-height:1.35}
.upd .btn{background:#fff;color:#a34c00}
.upd .x{background:none;border:0;color:#fff;font-size:13px;text-decoration:underline;cursor:pointer;min-height:44px;padding:0 4px}
.off{display:none;background:var(--waitT);color:var(--t2);border-radius:10px;padding:8px 12px;font-size:13px;margin:0 0 10px}
.off.on{display:block}
.foot{text-align:center;font-size:12px;color:var(--t3);margin:18px 0 0}
.foot a{color:var(--t3);display:inline-block;min-height:44px;line-height:44px;padding:0 8px}
.langs{display:grid;grid-template-columns:1fr 1fr;gap:8px}
.langs .btn{width:100%}
.danger-link{background:none;border:0;color:var(--red);font-size:13px;text-decoration:underline;cursor:pointer;min-height:44px;padding:0 4px;margin-top:6px}
.btn.red{background:var(--red);color:#fff}
