:root{
  --bg:#F3F5F1; --card:#FFFFFF; --ink:#0E1A13; --muted:#56635A; --line:#E2E8E2;
  --green:#0B7A47; --green-soft:#E3F1E8; --mint:#6EE7A8; --dark:#0E1A13; --dark2:#1B2A21; --dark3:#2A3A30; --dark-muted:#B9C7BD;
  --orange:#F08A3E; --orange-ink:#A9440A; --orange-deep:#7A2F05; --orange-soft:#FDEBDD;
  --red-soft:#FCE4E2; --red-ink:#9B1C12;
  --r:20px; color-scheme:light;
}
*{box-sizing:border-box}
html,body{margin:0;background:var(--bg);color:var(--ink);font-family:'Plus Jakarta Sans',system-ui,-apple-system,'Segoe UI',sans-serif;-webkit-text-size-adjust:100%}
body{min-height:100vh}
button,input,select{font-family:inherit;font-size:inherit;color:inherit}
button{cursor:pointer}
[hidden]{display:none!important}
.wrap{max-width:480px;margin:0 auto;min-height:100vh;position:relative;padding:env(safe-area-inset-top,0) 0 0}
.page{padding:24px max(18px,env(safe-area-inset-left)) 120px max(18px,env(safe-area-inset-right));display:flex;flex-direction:column;gap:14px}
.top{display:flex;align-items:center;justify-content:space-between;gap:12px}
.top small{display:block;font-size:13px;color:var(--muted);font-weight:500}
.top h1{margin:2px 0 0;font-size:22px;font-weight:800;letter-spacing:-.3px}
.card{background:var(--card);border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:12px}
.card h2{margin:0;font-size:16px;font-weight:700}
.row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.muted{color:var(--muted)}
.hero{background:var(--dark);color:#fff;border-radius:24px;padding:22px;display:flex;flex-direction:column;gap:12px}
.hero .lbl{font-size:13px;color:var(--dark-muted);font-weight:500}
.hero .big{font-size:38px;font-weight:800;letter-spacing:-1px;line-height:1.05;word-break:break-word}
.hero .big.minus{color:#FFB4A8}
.bar{height:8px;border-radius:4px;background:var(--dark3);overflow:hidden}
.bar>i{display:block;height:100%;border-radius:4px;background:var(--mint)}
.grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.mini{background:var(--dark2);border-radius:16px;padding:12px 14px;display:flex;flex-direction:column;gap:4px;min-width:0}
.mini span{font-size:12px;color:var(--dark-muted)}
.mini b{font-size:19px;font-weight:800}
.mini b.mint{color:var(--mint)}
.alert{border-radius:var(--r);padding:14px 16px;display:flex;gap:12px;align-items:flex-start;font-size:14px;line-height:1.45}
.alert.awas{background:var(--orange-soft);color:var(--orange-deep)}
.alert.bahaya{background:var(--red-soft);color:var(--red-ink)}
.alert.info{background:var(--green-soft);color:#064a2b}
.alert svg{flex-shrink:0;margin-top:2px}
.donut-row{display:flex;align-items:center;gap:18px}
.legend{display:flex;flex-direction:column;gap:12px;min-width:0;flex:1}
.legend .dot{width:10px;height:10px;border-radius:5px;display:inline-block;margin-right:8px}
.legend b{display:block;font-size:17px;font-weight:800;padding-left:18px}
.track{height:8px;border-radius:4px;background:#F1EEEA}
.track>i{display:block;height:100%;border-radius:4px;background:var(--orange)}
.track.g{background:var(--green-soft);height:12px;border-radius:6px}
.track.g>i{background:var(--green);border-radius:6px}
.item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #EEF1ED;background:none;border-left:0;border-right:0;border-top:0;width:100%;text-align:left}
.item:last-child{border-bottom:0}
.item .k{display:flex;flex-direction:column;gap:2px;min-width:0}
.item .k b{font-size:14px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.item .k span{font-size:12px;font-weight:600}
.item .v{font-size:14px;font-weight:700;white-space:nowrap}
.t-pen{color:var(--green)} .t-tdk{color:var(--orange-ink)} .t-in{color:var(--green)} .t-ab{color:var(--muted)}
.empty{font-size:14px;color:var(--muted);padding:6px 0;line-height:1.5}
.btn{min-height:48px;border-radius:14px;border:0;background:var(--green);color:#fff;font-weight:700;font-size:15px;padding:0 18px;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.btn.dark{background:var(--dark)}
.btn.ghost{background:#fff;color:var(--ink);border:1px solid #C9D3CA}
.btn.danger{background:#fff;color:var(--red-ink);border:1px solid #F1B8B2}
.btn.block{width:100%}
.btn:disabled{opacity:.55}
.link{background:none;border:0;color:var(--green);font-weight:700;padding:8px 0;min-height:44px}
.field{display:flex;flex-direction:column;gap:6px}
.field label{font-size:13px;font-weight:600;color:var(--muted)}
.input{height:50px;border-radius:14px;border:1px solid #D5DDD5;background:#fff;padding:0 16px;font-size:16px;width:100%}
.input:focus{outline:2px solid var(--green);outline-offset:0;border-color:transparent}
.err{color:var(--red-ink);font-size:14px;font-weight:600;min-height:20px}
nav.tab{position:fixed;left:50%;transform:translateX(-50%);bottom:0;width:100%;max-width:480px;background:#fff;border-top:1px solid var(--line);display:grid;grid-template-columns:repeat(5,minmax(0,1fr));padding:8px 8px max(12px,env(safe-area-inset-bottom));z-index:20}
nav.tab button{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;min-height:50px;font-size:11px;font-weight:600;color:var(--muted);justify-content:center}
nav.tab button[aria-current="page"]{color:var(--green);font-weight:800}
nav.tab .plus{width:56px;height:56px;border-radius:28px;background:var(--green);color:#fff;margin:-26px auto 0;box-shadow:0 6px 18px rgba(11,122,71,.35);display:flex;align-items:center;justify-content:center}
.sheet-bg{position:fixed;inset:0;background:rgba(14,26,19,.45);z-index:40;display:flex;align-items:flex-end;justify-content:center}
.sheet{background:var(--bg);width:100%;max-width:480px;border-radius:24px 24px 0 0;max-height:92vh;overflow:auto;padding:18px max(18px,env(safe-area-inset-left)) max(22px,env(safe-area-inset-bottom)) max(18px,env(safe-area-inset-right));display:flex;flex-direction:column;gap:14px}
.sheet .grab{width:44px;height:5px;border-radius:3px;background:#C9D3CA;margin:0 auto 2px}
.sheet h3{margin:0;font-size:18px;font-weight:800}
.ketik{display:flex;gap:8px}
.ketik .input{border-radius:25px}
.send{width:50px;height:50px;border-radius:25px;border:0;background:var(--green);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.sec{font-size:12px;font-weight:800;letter-spacing:.6px;color:var(--muted);margin-top:2px}
.tiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.tile{background:#fff;border:1px solid #E1E7E1;border-radius:16px;min-height:76px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:700;padding:8px 4px;text-align:center;line-height:1.2}
.tile i{width:30px;height:30px;border-radius:15px;display:flex;align-items:center;justify-content:center;font-style:normal}
.tile.out i{background:var(--orange-soft)} .tile.need i{background:var(--green-soft)} .tile.in i{background:#E6EEFA} .tile.sv i{background:#EFE8FB}
.chips{display:flex;flex-wrap:wrap;gap:8px}
.chip{min-height:44px;padding:0 16px;border-radius:22px;border:1px solid #C9D3CA;background:#fff;font-weight:700;font-size:15px}
.ask{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ask button{min-height:64px;border-radius:16px;font-size:15px;font-weight:800;border:0}
.ask .a1{background:var(--green);color:#fff} .ask .a2{background:var(--orange-soft);color:var(--orange-deep)}
.done{background:#fff;border-radius:18px;padding:16px;display:flex;flex-direction:column;gap:6px}
.done .tag{font-size:12px;font-weight:800;letter-spacing:.4px}
.done .what{font-size:18px;font-weight:800}
.seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;background:#E7ECE6;padding:4px;border-radius:14px}
.seg button{min-height:42px;border:0;border-radius:11px;background:none;font-weight:700;font-size:14px}
.seg button[aria-pressed="true"]{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.08)}
.seg.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.per{display:flex;align-items:center;justify-content:space-between;background:#fff;border-radius:16px;padding:4px}
.per button{width:44px;height:44px;border:0;background:none;border-radius:12px;font-size:20px;font-weight:800}
.per button:disabled{opacity:.25}
.per b{font-size:14px}
.day{font-size:12px;font-weight:800;color:var(--muted);letter-spacing:.4px;margin:6px 0 -4px}
.brand{display:flex;align-items:center;gap:10px}
.logo{width:40px;height:40px;border-radius:20px;background:var(--dark);display:flex;align-items:center;justify-content:center;color:var(--mint);font-weight:800;font-size:18px}
.auth{padding:48px max(22px,env(safe-area-inset-left)) 40px;display:flex;flex-direction:column;gap:18px}
.auth h1{font-size:30px;line-height:1.15;margin:8px 0 0;letter-spacing:-.6px}
.auth p{margin:0;color:var(--muted);line-height:1.5}
.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:96px;background:var(--dark);color:#fff;padding:12px 18px;border-radius:14px;font-size:14px;font-weight:600;z-index:60;max-width:90vw}
.loading{padding:60px 20px;text-align:center;color:var(--muted)}
.paywall{background:var(--dark);color:#fff;border-radius:var(--r);padding:18px;display:flex;flex-direction:column;gap:8px;font-size:14px;line-height:1.5}
.paywall b{font-size:16px}
.cmp{font-size:14px;line-height:1.5}
