:root{
  color-scheme:light;
  --ink:#2d2640;--muted:#6f6886;--line:#e7e1f3;--card:#fff;
  --pur:#4f3f94;--pur-2:#6e5fb0;--brand-org:#e0812a;--pur-bg:#e8e2fa;--org:#c46a12;--org-bg:#fde9d5;
  --grn:#21704a;--grn-bg:#e2f4ea;--red:#a33a3a;--red-bg:#fbe3e3;
  --side:248px;--bottom:64px;
  --r:16px;--shadow:0 2px 10px rgba(91,76,156,.06);
  --safe-b:env(safe-area-inset-bottom,0px);
}
*{box-sizing:border-box}
[hidden]{display:none !important}
html{background:#ebe3fa;-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{margin:0;font:15px/1.45 Figtree,system-ui,sans-serif;color:var(--ink);
  background:linear-gradient(160deg,#fbe8da,#f6e6ee 45%,#ebe3fa) fixed;min-height:100vh;overflow-x:clip}
h1,h2,h3{font-family:'Bricolage Grotesque',Figtree,sans-serif;margin:0;line-height:1.2}
.muted{color:var(--muted)}
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--r);padding:16px;box-shadow:var(--shadow)}
label{display:block;font-weight:600;font-size:13px;color:var(--muted);margin:12px 0 5px}
input,select,textarea{width:100%;font:inherit;font-size:16px;color:var(--ink);background:#fff;border:1.5px solid var(--line);border-radius:12px;padding:10px 12px;min-height:44px}
textarea{min-height:76px;resize:vertical}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--pur-2);box-shadow:0 0 0 3px rgba(110,95,176,.15)}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;border:0;border-radius:12px;padding:10px 16px;font:600 15px Figtree,sans-serif;cursor:pointer;background:var(--pur-bg);color:var(--pur);text-decoration:none;min-height:44px;transition:transform .1s,filter .15s}
.btn:active{transform:scale(.97)}
.btn:hover{filter:brightness(.97)}
.btn.primary{background:var(--pur);color:#fff}
.btn.ok{background:var(--grn-bg);color:var(--grn)}
.btn.no{background:var(--red-bg);color:var(--red)}
.btn.ghost{background:transparent;border:1.5px solid var(--line);color:var(--muted)}
.btn.sm{min-height:34px;padding:6px 12px;font-size:13px;border-radius:10px}
.btn.block{width:100%;margin-top:16px}
.btn[disabled]{opacity:.5;pointer-events:none}
.err{color:var(--red);min-height:1.2em;margin:10px 0 0;font-size:14px}
.note{background:var(--org-bg);color:#8a4a0c;border-radius:10px;padding:8px 12px;font-size:13px;margin-top:10px}

/* login */
.login-wrap{position:relative;min-height:100vh;display:grid;place-items:center;padding:24px 16px;overflow:hidden}
.login{position:relative;width:100%;max-width:380px;text-align:left;padding:28px 22px 22px;border-radius:24px;box-shadow:0 24px 60px -30px rgba(79,63,148,.35)}
.lockup{display:flex;align-items:center;gap:12px;margin-bottom:6px}
.lockup .mark{height:52px;width:auto;flex:none}
.lockup .word{display:block;font:800 52px/0.9 'Bricolage Grotesque',sans-serif;letter-spacing:-.04em;color:var(--pur)}
.lockup .by{display:block;font:600 11px Figtree,sans-serif;letter-spacing:.22em;color:var(--brand-org);margin:6px 0 0 3px}
.tagline{font:600 15px Figtree,sans-serif;color:var(--muted);margin:14px 0 4px}

/* layout */
.app{min-height:100vh}
.side{display:none}
.main{min-width:0;padding-bottom:calc(var(--bottom) + var(--safe-b) + 8px)}
.top{position:sticky;top:0;z-index:10;display:flex;align-items:center;gap:8px;padding:12px 16px;padding-top:calc(12px + env(safe-area-inset-top,0px));
  background:rgba(251,240,240,.82);backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-bottom:1px solid rgba(231,225,243,.7)}
.top h2{font-size:20px;color:var(--pur);flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.top-act{display:flex;gap:6px}
.icon-btn{width:40px;height:40px;border-radius:12px;border:0;background:transparent;display:grid;place-items:center;cursor:pointer;color:var(--pur)}
.icon-btn svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.icon-btn:hover{background:var(--pur-bg)}
.demo-bar{background:var(--org-bg);color:#8a4a0c;font-size:12px;font-weight:600;text-align:center;padding:4px}
.page{padding:16px;max-width:980px;margin:0 auto}
.frame{display:block;width:100%;border:0;height:calc(100vh - 65px - var(--bottom) - var(--safe-b));height:calc(100dvh - 65px - var(--bottom) - var(--safe-b));background:#fff}

.bottom{position:fixed;left:0;right:0;bottom:0;z-index:15;display:flex;justify-content:space-around;background:rgba(255,255,255,.94);
  backdrop-filter:blur(10px);-webkit-backdrop-filter:blur(10px);border-top:1px solid var(--line);padding:6px 4px calc(6px + var(--safe-b))}
.nav-i{flex:1;min-width:0;display:flex;flex-direction:column;align-items:center;gap:2px;border:0;background:none;cursor:pointer;
  font:600 11px Figtree,sans-serif;color:var(--muted);padding:4px 2px;border-radius:12px;position:relative;text-decoration:none}
.nav-i svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.nav-i span.t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.nav-i.on{color:var(--pur)}
.nav-i.on svg{stroke-width:2.3}
.dot{position:absolute;top:0;right:calc(50% - 20px);min-width:18px;height:18px;border-radius:9px;background:var(--org);color:#fff;font:700 11px/18px Figtree;text-align:center;padding:0 5px}

@media (min-width:900px){
  .app{display:grid;grid-template-columns:var(--side) 1fr}
  .side{display:flex;flex-direction:column;position:sticky;top:0;height:100vh;padding:20px 14px;background:rgba(255,255,255,.7);border-right:1px solid var(--line)}
  .brand{display:flex;align-items:center;gap:9px;color:var(--pur);padding:0 8px 18px}
  .brand .mark{height:30px;width:auto}
  .brand .word{font:800 30px/1 'Bricolage Grotesque',sans-serif;letter-spacing:-.04em}
  #nav-side{display:flex;flex-direction:column;gap:4px;flex:1}
  #nav-side .nav-i{flex:none;flex-direction:row;gap:12px;font-size:15px;padding:10px 12px;justify-content:flex-start}
  #nav-side .nav-i.on{background:var(--pur-bg)}
  #nav-side .dot{position:static;margin-left:auto}
  .side-foot{border-top:1px solid var(--line);padding-top:12px;display:flex;align-items:center;gap:8px}
  .me{flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;font:14px Figtree,sans-serif;color:var(--ink);background:none;border:0;padding:6px 8px;border-radius:10px;cursor:pointer;text-align:left}
  .me:hover{background:var(--pur-bg)}
  .me span{font-size:12px}
  .bottom,.only-m{display:none !important}
  .main{padding-bottom:0}
  .frame{height:calc(100vh - 65px)}
  .top{background:rgba(251,244,246,.82)}
}

/* content blocks */
.hello{margin:4px 0 16px}
.hello h1{font-size:26px;color:var(--pur)}
.grid{display:grid;gap:12px;grid-template-columns:1fr}
@media (min-width:600px){.grid.two{grid-template-columns:1fr 1fr}.grid.three{grid-template-columns:repeat(3,1fr)}}
.stat{display:flex;align-items:center;gap:14px;cursor:pointer;text-align:left;width:100%;font:inherit;color:inherit}
.stat .n{font:700 30px 'Bricolage Grotesque',sans-serif;color:var(--pur);min-width:44px}
.stat .l{font-weight:600}
.stat .s{font-size:13px;color:var(--muted)}
.stat.warn .n{color:var(--org)}
.sec-t{font:700 15px Figtree,sans-serif;color:var(--muted);text-transform:uppercase;letter-spacing:.06em;margin:22px 0 10px;font-size:12px}
.tiles{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.tile{text-decoration:none;display:flex;flex-direction:column;align-items:flex-start;gap:10px;padding:14px;border-radius:var(--r);background:#fff;border:1px solid var(--line);
  cursor:pointer;font:600 15px Figtree,sans-serif;color:var(--ink);text-align:left;box-shadow:var(--shadow)}
.tile svg{width:28px;height:28px;fill:none;stroke:var(--pur);stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round;padding:5px;background:var(--pur-bg);border-radius:10px;box-sizing:content-box}
.tile:active{transform:scale(.98)}
pre.status{white-space:pre-wrap;font:14px/1.5 Figtree,sans-serif;margin:0}

.list{display:flex;flex-direction:column;gap:10px}
.item{display:flex;flex-direction:column;gap:6px}
.item .row{display:flex;align-items:flex-start;gap:8px}
.item .ttl{font-weight:600;flex:1;min-width:0;overflow-wrap:anywhere}
.item .meta{font-size:13px;color:var(--muted)}
.item .acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:4px}
.chip{display:inline-flex;align-items:center;border-radius:999px;padding:2px 10px;font-size:12px;font-weight:600;background:var(--pur-bg);color:var(--pur);white-space:nowrap}
.chip.org{background:var(--org-bg);color:var(--org)}
.chip.grn{background:var(--grn-bg);color:var(--grn)}
.chip.red{background:var(--red-bg);color:var(--red)}
.chip.gry{background:#efedf3;color:var(--muted)}
.empty{text-align:center;color:var(--muted);padding:26px 10px}
.tabs{display:flex;gap:6px;margin-bottom:12px}
.tabs button{flex:1}

.check{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid var(--line);cursor:pointer;width:100%;text-align:left;font:inherit;color:inherit;min-height:52px}
.check .box{width:26px;height:26px;border-radius:8px;border:2px solid #cfc6ea;flex:none;display:grid;place-items:center}
.check.on .box{background:var(--grn);border-color:var(--grn)}
.check.on .box::after{content:'';width:12px;height:7px;border:solid #fff;border-width:0 0 2.5px 2.5px;transform:rotate(-45deg) translate(1px,-1px)}
.check.on .txt{color:var(--muted);text-decoration:line-through}
.check .by{margin-left:auto;font-size:12px;color:var(--muted);white-space:nowrap}
.progress{height:8px;background:var(--pur-bg);border-radius:4px;overflow:hidden;margin:6px 0 12px}
.progress i{display:block;height:100%;background:var(--grn);border-radius:4px;transition:width .3s}

.day-h{font-weight:700;color:var(--pur);margin:14px 0 6px}
.sewa{display:grid;grid-template-columns:auto 1fr;gap:4px 12px;align-items:start}
.sewa .time{font:700 16px 'Bricolage Grotesque',sans-serif;color:var(--ink);white-space:nowrap}
.sewa.batal{opacity:.55}
.sewa.batal .time{text-decoration:line-through}

.sheet{position:fixed;inset:0;z-index:40;background:rgba(45,38,64,.35);display:flex;align-items:flex-end;justify-content:center}
.sheet-card{width:100%;max-width:480px;border-radius:20px 20px 0 0;padding:20px 16px calc(20px + var(--safe-b));max-height:90vh;overflow:auto}
.sheet-card h3{font-size:19px;color:var(--pur)}
.sheet-card .acts{display:flex;gap:8px;margin-top:16px}
.sheet-card .acts .btn{flex:1}
@media (min-width:600px){.sheet{align-items:center}.sheet-card{border-radius:20px}}

.toast{position:fixed;left:50%;transform:translateX(-50%);bottom:calc(var(--bottom) + var(--safe-b) + 14px);z-index:50;background:#2d2640;color:#fff;
  padding:10px 16px;border-radius:12px;font-weight:600;font-size:14px;box-shadow:0 8px 24px rgba(0,0,0,.2);max-width:calc(100% - 32px)}
@media (min-width:900px){.toast{bottom:24px}}
.skel{height:64px;border-radius:var(--r);background:linear-gradient(90deg,#f3eff9,#fbf9fe,#f3eff9);background-size:200% 100%;animation:sk 1.2s infinite}
@keyframes sk{to{background-position:-200% 0}}

/* help cat (sama dengan Dashboard FC/FO) */
.help{position:fixed;right:16px;bottom:calc(var(--bottom) + var(--safe-b) + 14px);z-index:20;display:flex;align-items:center;gap:10px;text-decoration:none;color:#5b4c9c;
  opacity:.45;transform:scale(.86);transform-origin:bottom right;transition:opacity .2s,transform .2s}
.help:hover,.help:focus-visible{opacity:1;transform:none}
.help .lbl{background:#fff;border:1px solid #d8cff3;border-radius:999px;padding:7px 14px;font:600 .85rem Figtree,sans-serif;opacity:0;transform:translateX(8px);transition:opacity .2s,transform .2s;pointer-events:none;white-space:nowrap}
.help .cat{width:54px;height:54px;border-radius:50%;background:#fff;border:1.5px solid #d8cff3;box-shadow:0 10px 24px -12px rgb(110 95 176 / .55);display:grid;place-items:center}
.help .cat svg{width:40px;height:40px}
.help:hover .lbl,.help:focus-visible .lbl{opacity:1;transform:none}
.help:hover .cat{animation:catHop 1s ease-in-out infinite}
@keyframes catHop{0%,100%{transform:translateY(0) rotate(0)}20%{transform:translateY(-7px) rotate(-10deg)}40%{transform:translateY(0)}60%{transform:translateY(-4px) rotate(9deg)}80%{transform:translateY(0)}}
.help .badge{position:absolute;right:-2px;top:-4px;background:#6e5fb0;color:#fff;font:700 .62rem Figtree,sans-serif;border-radius:999px;padding:2px 6px}
.help .wrapcat{position:relative}
.app-frame-on .help{display:none}
body:has(#sheet:not([hidden])) .help{display:none}
@media (min-width:900px){.help{right:22px;bottom:22px}.help .cat{width:62px;height:62px}.help .cat svg{width:46px;height:46px}}
@media (prefers-reduced-motion:reduce){*{animation:none !important;transition:none !important}}
