/* Dasar bersama untuk tiga concept project. Tiap demo punya warna merek fiktifnya sendiri lewat --brand. */
*,*::before,*::after{box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{margin:0;font:400 15px/1.5 'Inter',system-ui,-apple-system,'Segoe UI',Roboto,sans-serif;color:#1B1D21;background:var(--bg,#F6F7F9)}
h1,h2,h3,h4,p{margin:0}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer}
img{max-width:100%;display:block}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
:focus-visible{outline:3px solid var(--brand);outline-offset:2px;border-radius:4px}

/* label demo: selalu terlihat */
.demo-bar{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:8px 16px;background:#16181B;color:#EDEAE3;font-size:13px}
.demo-bar b{background:#EEF09A;color:#16181B;padding:3px 8px;border-radius:4px;font-weight:600}
.demo-bar a{color:#EEF09A;margin-left:auto;text-underline-offset:3px;padding:6px 0}
@media (max-width:560px){ .demo-bar a{margin-left:0} }

/* komponen umum */
.b{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;padding:0 18px;border-radius:10px;border:1.5px solid transparent;font-weight:600;background:none;text-decoration:none;transition:background-color .15s,border-color .15s}
.b--pri{background:var(--brand);color:#fff}
.b--pri:hover{background:var(--brand-2)}
.b--pri:disabled{background:#C9CDD3;cursor:not-allowed}
.b--out{border-color:#C9CDD3;background:#fff}
.b--out:hover{border-color:#8B9098}
.b--sm{min-height:36px;padding:0 12px;font-size:14px;border-radius:8px}
.b--block{width:100%}
.inp{width:100%;min-height:44px;padding:10px 12px;border:1.5px solid #CDD1D7;border-radius:10px;background:#fff}
.inp:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px var(--ring)}
.inp[aria-invalid="true"]{border-color:#B3261E}
.lbl{display:block;font-weight:600;font-size:14px;margin-bottom:6px}
.fld{margin-bottom:14px}
.fld-err{color:#B3261E;font-size:13px;margin-top:4px;font-weight:500}
.fld-err:empty{display:none}
.muted{color:#5F646C}
.pill{display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 9px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap}
.pill::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}

dialog{border:0;padding:0;border-radius:16px;max-width:min(680px,calc(100vw - 24px));width:100%;box-shadow:0 30px 80px -20px rgba(0,0,0,.4);color:inherit}
dialog::backdrop{background:rgba(17,19,23,.55)}
.dlg-x{position:absolute;right:10px;top:10px;width:44px;height:44px;border-radius:50%;border:0;background:rgba(255,255,255,.9);font-size:22px;line-height:1}
.toast{position:fixed;left:50%;bottom:20px;transform:translateX(-50%);background:#1B1D21;color:#fff;padding:12px 18px;border-radius:10px;font-size:14px;z-index:90;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.toast[hidden]{display:none}
@media (prefers-reduced-motion:reduce){ *{transition:none!important;animation:none!important} }
