:root{
  color-scheme: light;
  --bg:#fff7f7; --card:#fff; --line:#f1dfe1; --text:#2a1216; --muted:#6b5a5d;
  --red:#e53945; --red-dk:#b81f2c; --dark:#2a1216; --yellow:#ffd23f; --green:#22a55a;
  --font:"Plus Jakarta Sans","Segoe UI",system-ui,-apple-system,Arial,sans-serif;
}
*{box-sizing:border-box}
body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font);font-size:16px;line-height:1.55;padding-bottom:60px}
h1,h2,h3{margin:0;line-height:1.2;letter-spacing:-.01em}
p{margin:0}
[hidden]{display:none !important}
:focus-visible{outline:3px solid var(--yellow);outline-offset:2px;border-radius:8px}

.hero{position:relative;background:var(--red);color:#fff;text-align:center;padding:30px 22px 38px;border-radius:0 0 28px 28px}
.brand{font-size:11px;font-weight:800;letter-spacing:.18em;opacity:.85;margin-bottom:10px}
.hero h1{font-size:clamp(26px,7vw,36px);font-weight:800}
.hero p{margin:12px auto 0;max-width:36ch;font-size:15.5px;opacity:.95}
.hbtn{position:absolute;top:14px;right:14px;font:inherit;font-weight:800;font-size:13px;color:#fff;background:rgba(255,255,255,.22);border:0;border-radius:99px;padding:9px 14px;cursor:pointer}
.hbtn:hover{background:rgba(255,255,255,.35)}

.wrap{max-width:680px;margin:0 auto;padding:22px 16px 0;display:flex;flex-direction:column;gap:14px}
.card{background:var(--card);border:1.5px solid var(--line);border-radius:18px;padding:18px;display:flex;flex-direction:column;gap:14px}
.card h2{font-size:19px;font-weight:800}
.card .sub{color:var(--muted);font-size:14.5px}

.field{display:flex;flex-direction:column;gap:6px;font-weight:700;font-size:15px}
.field input,.field select{font:inherit;font-weight:600;font-size:16px;padding:12px 14px;border:2px solid var(--line);border-radius:12px;background:#fff;color:var(--text);width:100%}
.field input:focus,.field select:focus{outline:none;border-color:var(--red)}
.field small{font-weight:500;color:var(--muted);font-size:13px;word-break:break-word}
.hp{position:absolute;left:-9999px;width:1px;height:1px;opacity:0}

.btn{font:inherit;font-weight:800;font-size:16px;background:var(--red);color:#fff;border:0;border-radius:14px;padding:13px 16px;cursor:pointer;text-align:center;text-decoration:none;display:block;width:100%}
.btn:hover{background:var(--red-dk)}
.btn:disabled{opacity:.6;cursor:wait}
.btn.out{background:#fff;color:var(--text);border:2px solid var(--text)}
.btn.out:hover{background:var(--bg)}
.btn.sm{font-size:14px;padding:9px 12px;border-radius:11px;width:auto;display:inline-block}
.btn.sm.out{border-width:1.5px}
.btn.dng{background:#fff;color:var(--red-dk);border:1.5px solid #f0a9af}
.btn.dng:hover{background:#fff1f1}
.row{display:flex;flex-wrap:wrap;gap:8px}

.box{border-radius:12px;padding:12px 14px;font-size:15px;background:#f7eeef}
.box.good{background:#e9f7ef}
.box.warn{background:#fff1f1;border:1.5px solid #f6b8bd;color:var(--red-dk)}
.box.warn b{display:block;margin-bottom:2px}

.tabs{display:flex;gap:6px;background:#fff;border:1.5px solid var(--line);border-radius:14px;padding:5px}
.tabs button{flex:1;font:inherit;font-weight:800;font-size:14.5px;background:none;border:0;border-radius:10px;padding:10px 6px;cursor:pointer;color:var(--muted)}
.tabs button[aria-selected="true"]{background:var(--red);color:#fff}
.tabs .n{display:inline-block;min-width:20px;padding:0 6px;margin-left:4px;border-radius:99px;background:var(--yellow);color:var(--red-dk);font-size:12px}

.it{background:#fff;border:1.5px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:8px}
.it .t{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.it .t b{font-size:17px;font-weight:800;word-break:break-word}
.it .m{font-size:14px;color:var(--muted);display:flex;flex-direction:column;gap:2px;word-break:break-word}
.it .m a{color:var(--red-dk);font-weight:700}
.badge{font-size:12px;font-weight:800;border-radius:99px;padding:3px 10px;white-space:nowrap;background:#f7eeef;color:var(--text)}
.badge.baru{background:var(--yellow);color:var(--red-dk)}
.badge.ok{background:#e9f7ef;color:#16743d}
.badge.no{background:#fff1f1;color:var(--red-dk)}
.empty{text-align:center;color:var(--muted);padding:22px 10px}

.code{display:flex;align-items:center;gap:10px;background:#fff8d6;border:1.5px dashed #e8b900;border-radius:12px;padding:10px 12px}
.code code{flex:1;font-family:ui-monospace,Menlo,Consolas,monospace;font-size:15px;font-weight:700;word-break:break-all}

.modal{position:fixed;inset:0;z-index:50;background:rgba(20,8,10,.6);display:grid;place-items:center;padding:14px;overflow:auto}
.sheet{background:#fff;border-radius:20px;padding:18px;width:100%;max-width:440px;display:flex;flex-direction:column;gap:12px;position:relative;max-height:94vh;overflow:auto}
.sheet h3{font-size:19px;font-weight:800;padding-right:34px}
.sheet .x{position:absolute;top:10px;right:10px;width:36px;height:36px;border-radius:50%;border:0;background:var(--bg);font-size:22px;line-height:1;cursor:pointer;color:var(--text)}
.err{color:var(--red-dk);font-weight:700;font-size:14.5px}
.toast{position:fixed;left:50%;top:18px;transform:translateX(-50%);background:var(--dark);color:#fff;font-weight:700;font-size:14px;padding:10px 18px;border-radius:99px;z-index:60;box-shadow:0 8px 20px rgba(0,0,0,.25);max-width:90vw;text-align:center}
.foot{font-size:12.5px;color:var(--muted);padding:6px 2px 0;text-align:center}
