/* KEYHASP app — sistem visual v2: hitam pekat, bingkai spec bergaris rambut, cyan hanya untuk status hidup. */
:root {
  --bg: #040506;
  --raised: #0a0c0e;
  --raised-2: #0f1215;
  --hair: rgba(255, 255, 255, .07);
  --hair-strong: rgba(255, 255, 255, .12);
  --text: #f3f5f7;
  --muted: #8a929b;
  --faint: #59616a;
  --cyan: #19e6ff;
  --cyan-dim: rgba(25, 230, 255, .14);
  --warn: #ffb547;
  --danger: #ff5d5d;
  --ok: var(--cyan);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --font: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --sidebar: 232px;
  --gutter: 40px;
  --silver: linear-gradient(180deg, #fff 30%, #9aa3ad);
  --surface: linear-gradient(180deg, var(--raised), rgba(4, 5, 6, .6));
  --hi: inset 0 1px 0 rgba(255, 255, 255, .05);
  --plus: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='9' height='9'%3E%3Cpath d='M4.5 0v9M0 4.5h9' stroke='rgba(255,255,255,.34)' stroke-width='1'/%3E%3C/svg%3E");
  --seam: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 18'%3E%3Cpath d='M3 0V6H8V12H3V18' fill='none' stroke='%2319e6ff' stroke-width='1.4'/%3E%3C/svg%3E");
  /* kompatibilitas nama lama */
  --text-2: var(--muted);
  --text-3: var(--faint);
  --line: var(--hair);
  --line-strong: var(--hair-strong);
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); }
body {
  font-family: var(--font); font-weight: 400; font-size: 14px; line-height: 1.5;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; min-height: 100vh; overflow-x: hidden;
  font-feature-settings: "ss01";
}
::selection { background: rgba(25, 230, 255, .25); }
h1, h2, h3 { margin: 0; font-weight: 500; letter-spacing: -.015em; }
h1 { font-size: 28px; line-height: 1.15; font-weight: 400; letter-spacing: -.025em; }
h2 { font-size: 15px; }
h3 { font-size: 15px; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
.mono { font-family: var(--mono); font-weight: 400; font-size: .9em; letter-spacing: 0; }
.tnum { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.grow { flex: 1 1 auto; min-width: 0; }
.r { text-align: right; justify-content: flex-end; }
.link { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .2); text-underline-offset: 3px; cursor: pointer; font: inherit; font-size: 12.5px; }
.link:hover { color: var(--text); }
[hidden] { display: none !important; }
:focus-visible { outline: 1px solid rgba(25, 230, 255, .7); outline-offset: 2px; }

.label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-weight: 500; }
.ref { font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); white-space: nowrap; }
.eyebrow { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; font-weight: 500; }

/* ---- bingkai spec: garis rambut + tanda + di tiap sudut ---- */
.spec { position: relative; border: 1px solid var(--hair); }
.spec::before {
  content: ""; position: absolute; inset: -4px; pointer-events: none; z-index: 1;
  background: var(--plus) left top / 9px 9px no-repeat, var(--plus) right top / 9px 9px no-repeat,
    var(--plus) left bottom / 9px 9px no-repeat, var(--plus) right bottom / 9px 9px no-repeat;
}

/* glyph seam (motif key-cut) */
.seam-glyph { display: inline-block; width: 8px; height: 15px; background: var(--seam) center / contain no-repeat; flex: none; opacity: .9; }
.seam-glyph.lg { width: 16px; height: 30px; }
.seam-glyph.spin { animation: breathe 1.6s var(--ease) infinite; }
@keyframes breathe { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* ---- brand ---- */
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { width: 22px; height: 22px; background: url('assets/mark.svg?v=20261029022326') center/contain no-repeat; display: inline-block; flex: none; }
.brand-name { font-weight: 600; letter-spacing: .16em; font-size: 15px; text-transform: uppercase; }
.badge-preview { font-size: 9.5px; letter-spacing: .16em; font-weight: 600; text-transform: uppercase; padding: 2px 6px; border: 1px solid rgba(255, 181, 71, .55); color: #ffcf87; border-radius: 3px; margin-left: 2px; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: var(--sidebar) 1fr; min-height: 100vh; }
.sidebar { border-right: 1px solid var(--hair); padding: 26px 18px 22px; display: flex; flex-direction: column; gap: 34px; position: sticky; top: 0; height: 100vh; background: linear-gradient(180deg, #07080a, var(--bg) 40%); }
.sidebar .brand { padding: 0 8px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 9px 10px 9px 12px; border-radius: 8px; color: var(--muted); font-weight: 500; font-size: 13.5px; position: relative; transition: color .24s var(--ease), background .24s var(--ease); }
.nav-item svg { width: 16px; height: 16px; flex: none; }
.nav-item .nav-n { margin-left: auto; font-family: var(--mono); font-size: 10px; color: var(--faint); opacity: .7; }
.nav-item:hover { color: var(--text); background: rgba(255, 255, 255, .025); }
.nav-item.active { color: var(--text); background: linear-gradient(90deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015)); box-shadow: var(--hi); }
.nav-item.active::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 1.5px; background: var(--cyan); box-shadow: 0 0 8px rgba(25, 230, 255, .6); }
.nav-item.active .nav-n { color: var(--muted); }
.sidebar-foot { margin-top: auto; padding: 14px 8px 0; border-top: 1px solid var(--hair); display: flex; flex-direction: column; gap: 6px; }
.sf-row { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.sf-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); flex: none; }
.sf-ref { font-family: var(--mono); font-size: 10px; color: var(--faint); letter-spacing: .06em; }
.main-col { min-width: 0; display: flex; flex-direction: column; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px var(--gutter); min-height: 80px; border-bottom: 1px solid var(--hair); position: sticky; top: 0; background: rgba(4, 5, 6, .86); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); z-index: 10; }
.topbar-left, .topbar-right { display: flex; align-items: center; gap: 10px; min-width: 0; }
.acct-btn { display: flex; align-items: center; gap: 11px; background: none; border: 1px solid transparent; color: var(--text); padding: 6px 10px 6px 6px; border-radius: 10px; cursor: pointer; font: inherit; text-align: left; min-width: 0; transition: border-color .24s var(--ease), background .24s var(--ease); }
.acct-btn:hover { border-color: var(--hair); background: rgba(255, 255, 255, .02); }
.acct-txt { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.acct-name { font-weight: 500; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct-addr { color: var(--muted); font-size: 11.5px; }
.acct-chev { width: 12px; height: 12px; color: var(--faint); flex: none; }
.acct-av { width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; border-radius: 9px; font-size: 11px; font-weight: 600; letter-spacing: .06em; color: var(--text); background: linear-gradient(160deg, #20262c, #0c0f12); border: 1px solid var(--hair-strong); box-shadow: var(--hi); }
.acct-av.sm { width: 26px; height: 26px; border-radius: 7px; font-size: 9.5px; }
.main { padding: 36px var(--gutter) 64px; flex: 1; }

/* ---- modul hasp (tanda tangan produk) ---- */
.hasp-mod { display: flex; align-items: center; gap: 14px; padding: 7px 8px 7px 12px; background: var(--surface); box-shadow: var(--hi); min-width: 0; transition: border-color .4s var(--ease); }
.hasp-mod::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan), transparent); opacity: 0; transition: opacity .6s var(--ease); }
.hasp-mod[data-state="unlatched"]::after { opacity: .9; }
.hasp-mod[data-state="detected"] { border-color: rgba(255, 255, 255, .14); }
.hm-fig { width: 112px; flex: none; }
.hm-text { display: flex; flex-direction: column; gap: 1px; min-width: 150px; }
.hm-label { font-family: var(--mono); font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.hm-word { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 500; white-space: nowrap; }
.hm-word .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--faint); flex: none; transition: background .4s, box-shadow .4s; }
.hm-word.is-on .dot { background: var(--cyan); box-shadow: 0 0 0 3px rgba(25, 230, 255, .12), 0 0 8px rgba(25, 230, 255, .7); }
.hm-word.is-mid .dot { background: var(--cyan); opacity: .55; animation: breathe 2.4s var(--ease) infinite; }
.hm-word.is-off { color: var(--text); }
.hm-sub { display: flex; gap: 8px; font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.hm-elapsed { color: var(--text); font-variant-numeric: tabular-nums; }
.hm-elapsed:empty { display: none; }
.hasp-mod .btn { margin-left: 4px; }
.hasp-mod.is-latching { animation: latchflash .9s var(--ease); }
@keyframes latchflash { 0% { border-color: rgba(255, 255, 255, .7); } 100% { border-color: var(--hair); } }

/* gambar hasp (SVG) — status via data-state di induk */
.hf { display: block; width: 100%; height: auto; overflow: visible; }
.hf-stick { transform: translateX(-22px); transition: transform .7s var(--ease), opacity .6s var(--ease); }
.hf-body { fill: url(#hfBody); stroke: url(#hfEdge); stroke-width: 1; transition: stroke-dasharray .4s; }
.hf-plug { fill: #0c0f12; stroke: rgba(255, 255, 255, .42); stroke-width: 1; }
.hf-pin { fill: rgba(255, 255, 255, .32); }
.hf-seam { fill: none; stroke: rgba(255, 255, 255, .6); stroke-width: 1.2; stroke-linejoin: miter; transition: stroke .5s var(--ease); }
.hf-led { fill: #333a41; transition: fill .4s; }
.hf-house { fill: url(#hfHouse); stroke: rgba(255, 255, 255, .18); stroke-width: 1; }
.hf-slot { fill: #010202; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.hf-vent { stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
.hf-shutter { fill: #f3f5f7; opacity: 0; transition: opacity .4s var(--ease); }
.hf-portled { fill: #333a41; transition: fill .4s; }
.hf-beam { fill: none; stroke: var(--cyan); stroke-width: 1; stroke-dasharray: 44; stroke-dashoffset: 44; opacity: 0; transition: stroke-dashoffset .3s, opacity .3s; }
[data-state="missing"] .hf-stick { opacity: .42; }
[data-state="missing"] .hf-body { stroke-dasharray: 3 2.5; }
[data-state="paired"] .hf-stick { transform: translateX(-8px); opacity: .7; }
[data-state="detected"] .hf-stick, [data-state="unlatched"] .hf-stick { transform: translateX(12px); }
[data-state="detected"] .hf-body, [data-state="unlatched"] .hf-body { stroke: rgba(255, 255, 255, .5); }
[data-state="detected"] .hf-led { fill: var(--cyan); animation: breathe 2.4s var(--ease) infinite; }
[data-state="detected"] .hf-portled { fill: rgba(243, 245, 247, .55); }
[data-state="unlatched"] .hf-led, [data-state="unlatched"] .hf-portled { fill: var(--cyan); filter: drop-shadow(0 0 2.5px rgba(25, 230, 255, .9)); }
[data-state="unlatched"] .hf-seam { stroke: var(--cyan); filter: drop-shadow(0 0 2px rgba(25, 230, 255, .75)); }
[data-state="unlatched"] .hf-beam { stroke-dashoffset: 0; opacity: .85; transition: stroke-dashoffset .8s .45s var(--ease), opacity .3s .45s; }
[data-state="unlatched"] .hf-beam-b { transition-delay: 1.05s, 1.05s; }
[data-state="latched"] .hf-shutter { opacity: 1; }
[data-state="latched"] .hf-portled { fill: #f3f5f7; }
[data-state="latched"] .hf-stick { opacity: .55; }

/* ---- lembar padlock ---- */
.hasp-sheet { border-bottom: 1px solid var(--hair); background: linear-gradient(180deg, rgba(255, 255, 255, .03), transparent); padding: 20px var(--gutter); position: relative; animation: sheetin .5s var(--ease); }
.hasp-sheet::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1.5px; background: var(--cyan); opacity: .7; }
@keyframes sheetin { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.padlock-form { display: grid; grid-template-columns: 1fr minmax(280px, 420px); gap: 10px 32px; align-items: center; max-width: 1160px; }
.padlock-copy { display: flex; flex-direction: column; gap: 5px; }
.padlock-title { font-size: 19px; font-weight: 400; letter-spacing: -.015em; }
.padlock-row { display: flex; gap: 8px; }
.padlock-row .input { flex: 1; }
.padlock-form .form-err { grid-column: 2; }

/* ---- strip PREVIEW + dev tray ---- */
.preview-strip { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 9px var(--gutter); border-bottom: 1px solid var(--hair); background: repeating-linear-gradient(-45deg, rgba(255, 181, 71, .045) 0 1px, transparent 1px 8px); }
.ps-tag { display: inline-flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: #ffcf87; border: 1px solid rgba(255, 181, 71, .5); padding: 3px 9px 3px 8px; border-radius: 3px; background: rgba(4, 5, 6, .8); }
.ps-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--warn); box-shadow: 0 0 6px rgba(255, 181, 71, .7); flex: none; display: inline-block; }
.ps-text { color: var(--muted); font-size: 12.5px; }
.dev-tray { margin-left: auto; display: flex; align-items: stretch; border: 1px solid var(--hair-strong); border-radius: 8px; overflow: hidden; background: rgba(4, 5, 6, .85); }
.dt-label { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 5px 9px; border-right: 1px solid var(--hair); display: flex; align-items: center; }
.dt-btn { font: inherit; font-size: 12px; color: var(--muted); background: none; border: 0; border-left: 1px solid var(--hair); padding: 5px 11px; cursor: pointer; transition: color .2s, background .2s; }
.dt-label + .dt-btn { border-left: 0; }
.dt-btn:hover { color: var(--text); background: rgba(255, 255, 255, .04); }

/* ---- tombol ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: 13.5px; padding: 10px 17px; border-radius: 10px; border: 1px solid transparent; cursor: pointer; white-space: nowrap; transition: background .24s var(--ease), border-color .24s var(--ease), opacity .24s, color .24s; }
.btn svg { width: 14px; height: 14px; flex: none; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
.btn-primary { background: #fff; color: #050607; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .12); }
.btn-primary:not(:disabled):hover { background: #e6e9ec; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--hair-strong); }
.btn-ghost:not(:disabled):hover { background: rgba(255, 255, 255, .04); border-color: rgba(255, 255, 255, .2); }
.btn-latch { background: rgba(255, 255, 255, .03); color: var(--text); border-color: var(--hair-strong); }
.btn-latch:hover { border-color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .06); }
.btn-danger { background: transparent; color: var(--danger); border-color: rgba(255, 93, 93, .38); }
.btn-danger:not(:disabled):hover { background: rgba(255, 93, 93, .08); }
.btn-sm { padding: 7px 12px; font-size: 12.5px; border-radius: 9px; }
.btn-xs { padding: 3px 9px; font-size: 11.5px; border-radius: 7px; }
.btn-lg { padding: 13px 22px; font-size: 14.5px; }
.btn-icon { padding: 10px; width: 41px; }
.btn-block { width: 100%; }

/* ---- form ---- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field > span { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 500; display: flex; justify-content: space-between; align-items: baseline; }
.field > span .link { text-transform: none; letter-spacing: 0; font-size: 12px; }
.input, .select, textarea.input { width: 100%; font: inherit; font-size: 14px; color: var(--text); background: #07090b; border: 1px solid var(--hair-strong); border-radius: 9px; padding: 10px 12px; outline: none; transition: border-color .24s var(--ease), box-shadow .24s var(--ease); }
.input::placeholder { color: var(--faint); }
.input:focus, .select:focus { border-color: rgba(25, 230, 255, .5); box-shadow: 0 0 0 3px rgba(25, 230, 255, .07); }
.input.mono, textarea.input.mono { font-family: var(--mono); font-size: 13px; }
.select { appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%238a929b' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; padding-right: 32px; cursor: pointer; }
.page-actions .select { width: auto; min-width: 180px; padding-top: 9px; padding-bottom: 9px; }
.input-inline { padding: 3px 8px; margin-left: -8px; font-size: 14px; font-weight: 500; background: transparent; border-color: transparent; width: auto; max-width: 100%; }
.input-inline:hover, .input-inline:focus { border-color: var(--hair-strong); background: #07090b; }
.static { padding: 4px 0; }
.from-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.form-err { color: #ffd0d0; font-size: 13px; padding: 10px 12px; border: 1px solid rgba(255, 93, 93, .35); border-left: 2px solid var(--danger); background: rgba(255, 93, 93, .05); border-radius: 8px; }
.form-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.check { display: inline-flex; align-items: center; gap: 9px; font-size: 12.5px; color: var(--muted); cursor: pointer; }
.check input { accent-color: var(--cyan); width: 15px; height: 15px; }
.adv { border-top: 1px solid var(--hair); padding-top: 12px; }
.adv summary { cursor: pointer; color: var(--muted); font-size: 12.5px; list-style: none; }
.adv summary::-webkit-details-marker { display: none; }
.adv summary::before { content: "+"; font-family: var(--mono); margin-right: 8px; color: var(--faint); }
.adv[open] summary::before { content: "−"; }
.adv .field { margin-top: 12px; }

/* ---- halaman ---- */
.page { max-width: 960px; display: flex; flex-direction: column; gap: 26px; margin: 0 auto; animation: pagein .5s var(--ease); }
@keyframes pagein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-wide { max-width: 1160px; }
.page-mid { max-width: 820px; }
.page-narrow { max-width: 640px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.page-head h1 .muted { color: var(--faint); }
.page-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.panel { background: var(--surface); box-shadow: var(--hi); border: 1px solid var(--hair); padding: 22px 24px; display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.panel.danger { border-color: rgba(255, 93, 93, .22); }
.note { padding: 10px 12px; border: 1px solid var(--hair); border-radius: 8px; font-size: 13px; color: var(--muted); }
.note.ok { border-color: rgba(25, 230, 255, .3); color: var(--text); }
.note.bad { border-color: rgba(255, 93, 93, .4); color: var(--text); }
.note a { text-decoration: underline; text-underline-offset: 3px; }
.note-preview { display: flex; align-items: center; gap: 9px; border-style: dashed; border-color: rgba(255, 181, 71, .35); color: #e9d3ae; font-size: 12.5px; padding: 8px 12px; }
.tag { display: inline-block; font-size: 9.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); border: 1px solid var(--hair-strong); border-radius: 3px; padding: 0 5px; margin-left: 8px; vertical-align: 1px; font-weight: 500; line-height: 16px; }
.tag-warn { color: var(--warn); border-color: rgba(255, 181, 71, .45); margin-left: 0; }
.empty { color: var(--faint); padding: 18px 0; text-align: center; font-size: 13px; }
.skeleton { display: block; height: 14px; border-radius: 3px; background: linear-gradient(90deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); background-size: 200% 100%; animation: sk 1.6s var(--ease) infinite; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.progress { height: 1px; background: var(--hair); overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); transition: width .3s var(--ease); }

/* ---- home: portofolio ---- */
.folio { padding: 22px 28px 24px; background: linear-gradient(180deg, rgba(255, 255, 255, .028), rgba(255, 255, 255, 0) 70%); box-shadow: var(--hi); display: flex; flex-direction: column; gap: 20px; }
.folio-top { display: flex; justify-content: space-between; gap: 12px; }
.folio-main { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.total-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.total { font-size: 68px; font-weight: 300; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: 4px; min-height: 72px; }
.total .cents { font-size: .5em; letter-spacing: -.01em; background: linear-gradient(180deg, #a3abb4, #59616a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.total-np { font-size: .6em; }
.total-skel { display: inline-block; width: 280px; max-width: 70vw; height: 54px; border-radius: 4px; background: linear-gradient(90deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, .07), rgba(255, 255, 255, .025)); background-size: 200% 100%; animation: sk 1.6s var(--ease) infinite; }
.tag-preview { font-size: 10px; letter-spacing: .16em; text-transform: uppercase; font-weight: 600; color: #ffcf87; border: 1px dashed rgba(255, 181, 71, .5); padding: 3px 8px; border-radius: 3px; }
.folio-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.fm-sep { width: 1px; height: 11px; background: var(--hair-strong); }
.addr-line { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; color: var(--muted); font-size: 13px; padding-top: 16px; border-top: 1px solid var(--hair); }
.ga { display: inline-flex; flex-wrap: wrap; gap: 0 .5em; font-family: var(--mono); letter-spacing: .01em; }
.ga-x { color: var(--faint); margin-right: -.3em; }
.alloc { display: flex; flex-direction: column; gap: 10px; }
.alloc-head { display: flex; justify-content: space-between; }
.alloc-bar { display: flex; gap: 2px; height: 6px; }
.alloc-bar .seg { min-width: 3px; border-radius: 1px; animation: grow .9s var(--ease) both; transform-origin: left; }
@keyframes grow { from { transform: scaleX(0); } to { transform: none; } }
.alloc-skel { flex: 1; border-radius: 1px; background: linear-gradient(90deg, rgba(255, 255, 255, .03), rgba(255, 255, 255, .08), rgba(255, 255, 255, .03)); background-size: 200% 100%; animation: sk 1.6s var(--ease) infinite; }
.seg-0 { background: #f3f5f7; } .seg-1 { background: #b6bdc5; } .seg-2 { background: #858e97; }
.seg-3 { background: #5e666f; } .seg-4 { background: #444b52; } .seg-5 { background: #31373d; }
.alloc-legend { display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 12.5px; }
.al-item { display: inline-flex; align-items: center; gap: 8px; }
.al-sw { width: 8px; height: 2px; }

/* lencana jaringan */
.nb { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.nb-m { width: 20px; height: 20px; flex: none; display: inline-grid; place-items: center; border-radius: 5px; font-family: var(--mono); font-size: 8.5px; font-weight: 500; letter-spacing: 0; color: hsl(var(--h) 38% 84%); background: linear-gradient(160deg, hsl(var(--h) 40% 50% / .2), hsl(var(--h) 40% 30% / .08)); border: 1px solid hsl(var(--h) 45% 66% / .3); }
.nb-name { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---- tabel ---- */
.holdings { display: flex; flex-direction: column; gap: 12px; }
.sec-head { display: flex; align-items: center; gap: 12px; }
.sec-head h2 { font-size: 16px; font-weight: 500; }
.tbl { display: flex; flex-direction: column; border-top: 1px solid var(--hair-strong); }
.tbl .tr { display: grid; gap: 16px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--hair); font-size: 13.5px; min-width: 0; transition: background .2s; }
.tbl .tr > * { min-width: 0; }
.tbl .tr:not(.th):not(.tr-skel):hover { background: rgba(255, 255, 255, .018); }
.tbl .th { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); font-weight: 500; padding-top: 10px; padding-bottom: 10px; }
.tbl .r { text-align: right; }
.tr-skel { grid-template-columns: 1fr !important; padding: 16px 14px !important; }
.tbl-hold .tr { grid-template-columns: minmax(110px, 1.1fr) minmax(150px, 1.4fr) minmax(90px, 1fr) minmax(80px, .8fr) minmax(90px, 1fr) 150px; }
.td-asset { display: flex; align-items: center; gap: 0; min-width: 0; }
.td-asset .nb { margin-left: 10px; }
.sym { font-weight: 500; letter-spacing: .01em; }
.td-val { font-weight: 500; }
.td-share { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.bar { flex: 1; max-width: 90px; height: 3px; background: rgba(255, 255, 255, .06); position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #9aa3ad, #f3f5f7); animation: grow .9s var(--ease) both; transform-origin: left; }
.pct { width: 44px; text-align: right; font-size: 12.5px; color: var(--muted); }
.tr-zero { color: var(--faint); }
.tr-zero .sym, .tr-zero .td-val { color: var(--muted); font-weight: 400; }
.tr-zero .nb-m { filter: saturate(.3); opacity: .7; }
.tbl-toggle { display: flex; align-items: center; gap: 14px; width: 100%; background: none; border: 0; padding: 14px 0 4px; font: inherit; font-size: 12px; color: var(--muted); cursor: pointer; letter-spacing: .02em; }
.tbl-toggle:hover { color: var(--text); }
.tt-line { flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--hair-strong) 0 4px, transparent 4px 8px); }
.tbl-empty { display: flex; align-items: center; justify-content: center; gap: 12px; color: var(--muted); padding: 30px 14px; font-size: 13px; }
.tbl-foot { display: flex; flex-direction: column; gap: 6px; }
.foot-err { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--muted); }
.foot-err > span:last-child { color: #ffbcbc; }
.tbl-wrap { background: var(--surface); box-shadow: var(--hi); padding: 18px 20px 8px; display: flex; flex-direction: column; gap: 12px; }
.tbl-wrap .tbl { margin: 0 -20px; border-top-color: var(--hair); }
.tbl-wrap .tbl .tr { padding-left: 20px; padding-right: 20px; }
.tbl-wrap .tbl .tr:last-child { border-bottom: 0; }
.apr-note { line-height: 1.5; }

/* tabel ledger */
.tbl-tx .tr { grid-template-columns: 52px minmax(180px, 1.8fr) minmax(130px, 1fr) minmax(110px, .9fr) minmax(110px, 1fr) 84px; }
a.tr { color: inherit; cursor: pointer; }
.row-title { display: block; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-sub { display: block; color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.td-time, .td-hash { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dir { display: inline-block; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; font-weight: 600; width: 38px; text-align: center; padding: 2px 0; border-radius: 4px; border: 1px solid var(--hair-strong); color: var(--muted); }
.dir.in { color: var(--text); border-color: rgba(25, 230, 255, .35); }
.status { font-size: 10.5px; color: var(--faint); text-transform: uppercase; letter-spacing: .1em; display: inline-flex; align-items: center; gap: 6px; }
.status::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.status-ok { color: var(--muted); }
.status-ok::before { background: var(--cyan); }
.status-pending { color: var(--text); }
.status-pending::before { animation: breathe 1.6s infinite; background: var(--text); }
.status-failed, .status-error { color: var(--danger); }

/* tabel approvals */
.tbl-apr .tr { grid-template-columns: minmax(130px, 1fr) minmax(150px, 1.2fr) minmax(120px, 1fr) 110px; }
.td-spender a { color: var(--text); font-size: 12.5px; }
.td-spender a:hover { color: var(--cyan); }

/* ---- daftar (modal akun) ---- */
.list { display: flex; flex-direction: column; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 16px; border-top: 1px solid var(--hair); font: inherit; color: inherit; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; width: 100%; cursor: default; }
.list-row:first-child { border-top: 0; }
a.list-row, button.list-row { cursor: pointer; transition: background .2s; }
a.list-row:hover, button.list-row:hover { background: rgba(255, 255, 255, .03); }
.dot-sm { width: 6px; height: 6px; border-radius: 50%; background: transparent; border: 1px solid var(--hair-strong); flex: none; }
.acct-row.active .dot-sm { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 6px rgba(25, 230, 255, .6); }

/* ---- kv ---- */
.kv { display: grid; grid-template-columns: 84px 1fr; gap: 10px 16px; margin: 0; font-size: 13.5px; padding: 14px 0; border-top: 1px solid var(--hair); border-bottom: 1px solid var(--hair); }
.kv dt { color: var(--faint); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding-top: 2px; }
.kv dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.kv-addr { display: block; font-size: 12.5px; margin-top: 2px; }
dd.kv-addr { margin-top: 0; }
.kv-lite { display: flex; flex-direction: column; font-size: 13.5px; }
.kv-lite > div { display: grid; grid-template-columns: 150px 1fr; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--hair); }
.kv-lite > div:first-child { border-top: 0; }
.kv-lite > div > span:first-child { color: var(--muted); }
.kv-lite strong { font-weight: 500; }

/* ---- send + review desk ---- */
.send-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.review { gap: 14px; }
.review-amt { display: flex; flex-direction: column; gap: 8px; padding-top: 4px; }
.ra-num { font-size: 38px; font-weight: 300; letter-spacing: -.035em; line-height: 1.05; background: var(--silver); -webkit-background-clip: text; background-clip: text; color: transparent; overflow-wrap: anywhere; }
.ra-sym { font-size: .5em; letter-spacing: .02em; }
.ra-sub { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chk-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.chk-sum { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.cs-ok { color: var(--text); } .cs-warn { color: var(--warn); } .cs-block { color: var(--danger); } .cs-note { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; border-top: 1px solid var(--hair); }
.chk { display: grid; grid-template-columns: 22px 20px 1fr auto; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hair); font-size: 13.5px; align-items: start; animation: chkin .45s var(--ease) both; }
@keyframes chkin { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
.chk-n { font-family: var(--mono); font-size: 10.5px; color: var(--faint); padding-top: 3px; }
.chk-ic { width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--hair-strong); color: var(--faint); }
.chk-ic svg { width: 12px; height: 12px; }
.chk-text { color: var(--muted); padding-top: 1px; }
.chk-lvl { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); padding: 2px 6px; border: 1px solid var(--hair); border-radius: 3px; margin-top: 1px; }
.chk-ok .chk-ic { color: var(--cyan); border-color: rgba(25, 230, 255, .4); }
.chk-ok .chk-text { color: var(--text); }
.chk-warn .chk-ic { color: var(--warn); border-color: rgba(255, 181, 71, .5); background: rgba(255, 181, 71, .06); }
.chk-warn .chk-text { color: var(--text); }
.chk-warn .chk-lvl { color: var(--warn); border-color: rgba(255, 181, 71, .35); }
.chk-block .chk-ic { color: var(--danger); border-color: rgba(255, 93, 93, .55); background: rgba(255, 93, 93, .08); }
.chk-block .chk-text { color: #ffd6d6; }
.chk-block .chk-lvl { color: var(--danger); border-color: rgba(255, 93, 93, .4); }
.verdict { display: flex; align-items: center; gap: 12px; font-size: 13.5px; padding: 4px 0; }
.vd-line { width: 26px; height: 1.5px; background: var(--faint); flex: none; }
.verdict.is-run .vd-line { animation: breathe 1.4s infinite; }
.verdict.is-ok .vd-line { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.verdict.is-warn .vd-line { background: var(--warn); }
.verdict.is-block .vd-line { background: var(--danger); }
.verdict.is-block .vd-text { color: #ffd6d6; }
.review-idle { align-items: flex-start; }
.idle-fig { padding: 6px 0 0; }
.idle-lead { font-size: 15px; line-height: 1.5; max-width: 420px; }
.idle-list { list-style: none; margin: 0; padding: 0; width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; border-top: 1px solid var(--hair); }
.idle-list li { display: flex; gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 13px; color: var(--muted); }

/* ---- receive ---- */
.receive { display: grid; grid-template-columns: auto 1fr; gap: 40px; padding: 32px; background: var(--surface); box-shadow: var(--hi); align-items: center; }
.rcv-qr { display: flex; flex-direction: column; gap: 10px; }
.qr-plate { padding: 16px; background: linear-gradient(180deg, #f6f8fa, #dfe4e9); border-radius: 6px; line-height: 0; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 20px 60px -30px rgba(255, 255, 255, .25); }
.qr-plate svg { max-width: 100%; height: auto; display: block; }
.qr-cap { display: flex; justify-content: space-between; }
.rcv-info { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.addr-big { font-size: 20px; line-height: 1.5; color: var(--text); max-width: 460px; }
.addr-big .ga { display: inline-grid; grid-template-columns: repeat(6, auto); justify-content: start; gap: 0 .55em; }
.addr-big .ga-x { grid-row: span 2; margin-right: 0; }
.receive-row { display: flex; gap: 16px; align-items: flex-end; width: 100%; flex-wrap: wrap; }
.receive-row .field { text-align: left; min-width: 200px; }
.receive-row .check { padding-bottom: 11px; }
.rcv-note { display: flex; gap: 10px; align-items: center; padding-top: 16px; border-top: 1px solid var(--hair); }

/* ---- settings ---- */
.set-group { background: var(--surface); box-shadow: var(--hi); display: flex; flex-direction: column; }
.set-group.danger { border: 1px solid rgba(255, 93, 93, .22); background: linear-gradient(180deg, rgba(255, 93, 93, .025), transparent); }
.set-group.danger h2 { color: #ffd6d6; }
.sg-head { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.sg-desc { padding: 12px 20px 0; }
.set-rows { display: flex; flex-direction: column; }
.set-row { display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--hair); }
.set-row:first-child { border-top: 0; }
#acct-list { padding-top: 6px; }
.acct-set.active .acct-av { border-color: rgba(25, 230, 255, .45); }
.sg-foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 20px; border-top: 1px solid var(--hair); }
.sg-foot > .muted { max-width: 520px; }
.set-group.danger .sg-foot { border-top: 0; }

/* ---- frasa ---- */
.words { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin: 0; padding: 1px; counter-reset: w; list-style: none; background: var(--hair); border: 1px solid var(--hair); }
.words li { counter-increment: w; font-family: var(--mono); font-size: 13.5px; padding: 10px 12px; background: var(--raised); }
.words li::before { content: counter(w, decimal-leading-zero); color: var(--faint); font-size: 10.5px; margin-right: 10px; }

/* ---- modal ---- */
.modal-wrap { position: fixed; inset: 0; background: rgba(2, 3, 4, .72); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 50; opacity: 0; transition: opacity .24s var(--ease); }
.modal-wrap.in { opacity: 1; }
.modal { background: linear-gradient(180deg, var(--raised-2), var(--raised)); border: 1px solid var(--hair-strong); border-radius: 14px; width: 100%; max-width: 500px; max-height: calc(100vh - 32px); overflow: auto; padding: 20px 22px; display: flex; flex-direction: column; gap: 16px; transform: translateY(8px) scale(.99); transition: transform .32s var(--ease); box-shadow: var(--hi), 0 40px 80px -30px rgba(0, 0, 0, .8); }
.modal-wrap.in .modal { transform: none; }
.modal-head { display: flex; justify-content: space-between; align-items: center; }
.modal-head h3 { font-weight: 500; font-size: 16px; }
.modal-foot { padding-top: 10px; border-top: 1px solid var(--hair); }
.modal .list { margin: 0 -10px; }
.modal .list-row { padding: 10px; border-radius: 8px; border-top: 0; }
.modal .row-sub { font-size: 11.5px; }

/* ---- toast ---- */
.toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 6px; z-index: 60; pointer-events: none; max-width: calc(100vw - 32px); }
.toast { background: rgba(15, 18, 21, .96); border: 1px solid var(--hair-strong); color: var(--text); padding: 10px 16px; border-radius: 10px; font-size: 13px; opacity: 0; transform: translateY(8px); transition: opacity .3s var(--ease), transform .3s var(--ease); box-shadow: var(--hi), 0 20px 40px -20px rgba(0, 0, 0, .8); }
.toast.in { opacity: 1; transform: none; }
.toast-warn { border-color: rgba(255, 181, 71, .45); }

/* ---- onboarding / perangkat baru ---- */
.onb { min-height: 100vh; display: flex; flex-direction: column; padding: 26px 36px 28px; gap: 12px; background: radial-gradient(ellipse 70% 50% at 50% -8%, rgba(255, 255, 255, .055), transparent 70%), var(--bg); }
.onb-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.onb-stage { flex: 1; display: flex; align-items: center; justify-content: center; padding: 28px 0; }
.onb-card { width: 100%; max-width: 620px; padding: 40px 44px; display: flex; flex-direction: column; gap: 22px; background: linear-gradient(180deg, rgba(255, 255, 255, .025), rgba(255, 255, 255, 0) 60%); box-shadow: var(--hi); }
.onb-card h1 { font-size: 30px; }
.onb-card #onb-body { display: flex; flex-direction: column; gap: 18px; animation: pagein .5s var(--ease); }
.onb-h { font-size: 40px !important; font-weight: 300; letter-spacing: -.035em; line-height: 1.08; color: #fff; }
.onb-h .muted { color: var(--faint); }
.lead { color: var(--muted); font-size: 15px; line-height: 1.6; max-width: 520px; }
.onb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.onb-foot { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--faint); font-size: 12px; text-align: center; }
.onb-fig { margin: 0 0 8px; padding: 22px 26px 12px; border: 1px solid var(--hair); background: radial-gradient(ellipse at 60% 40%, rgba(255, 255, 255, .04), transparent 70%); display: flex; flex-direction: column; gap: 10px; }
.onb-fig .hf { max-width: 420px; margin: 0 auto; }
.onb-fig.sm { padding: 16px 22px; }
.onb-fig.sm .hf { max-width: 260px; }
.of-cap { display: flex; justify-content: space-between; gap: 10px; }
.onb-notes { display: flex; flex-direction: column; border-top: 1px solid var(--hair); margin-top: 6px; }
.on-row { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--hair); font-size: 12.5px; color: var(--muted); }
.on-k { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); padding-top: 1px; }
.onb-boot .onb-stage { flex-direction: column; gap: 20px; }
.boot-line { display: flex; align-items: center; gap: 10px; font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--faint); }
.boot-seam { display: inline-block; width: 8px; height: 15px; background: var(--seam) center / contain no-repeat; animation: breathe 1.4s var(--ease) infinite; }

/* penunjuk langkah bermotif seam */
.seam-steps { display: flex; flex-direction: column; gap: 10px; }
.seam-steps svg { width: 100%; height: 14px; overflow: visible; }
.ss-seg { fill: none; stroke: var(--hair-strong); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: stroke .5s var(--ease); }
.ss-seg.done { stroke: rgba(243, 245, 247, .7); }
.ss-seg.cur { stroke: var(--cyan); filter: drop-shadow(0 0 3px rgba(25, 230, 255, .7)); }
.seam-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(var(--n), 1fr); }
.seam-steps li { font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); display: flex; gap: 8px; align-items: baseline; }
.seam-steps li.done { color: var(--muted); }
.seam-steps li.cur { color: var(--text); }
.ss-n { font-family: var(--mono); font-size: 10px; letter-spacing: 0; color: var(--faint); }
.seam-steps li.cur .ss-n { color: var(--cyan); }

/* ---- responsif ---- */
@media (max-width: 1099px) {
  .send-grid { grid-template-columns: 1fr; }
  .tbl-hold .tr { grid-template-columns: minmax(100px, 1fr) minmax(130px, 1.2fr) minmax(90px, 1fr) minmax(90px, 1fr) 110px; }
  .tbl-hold .td-price, .tbl-hold .th > :nth-child(4) { display: none; }
  .tbl-tx .tr { grid-template-columns: 52px minmax(160px, 1.8fr) minmax(130px, 1fr) minmax(100px, 1fr) 84px; }
  .tbl-tx .td-hash, .tbl-tx .th > :nth-child(4) { display: none; }
  .total { font-size: 56px; min-height: 60px; }
}
@media (max-width: 860px) {
  :root { --sidebar: 0px; --gutter: 16px; }
  .shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); border-right: 0; border-top: 1px solid var(--hair); background: rgba(4, 5, 6, .92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); flex-direction: row; gap: 0; z-index: 20; }
  .sidebar .brand, .sidebar-foot { display: none; }
  .nav { flex-direction: row; width: 100%; justify-content: space-between; gap: 0; }
  .nav-item { flex: 1; flex-direction: column; gap: 4px; font-size: 10px; letter-spacing: .02em; padding: 8px 2px 7px; border-radius: 8px; }
  .nav-item .nav-n { display: none; }
  .nav-item.active { background: none; box-shadow: none; }
  .nav-item.active::before { left: 50%; transform: translateX(-50%); top: -4px; bottom: auto; height: 1.5px; width: 22px; }
  .nav-item svg { width: 19px; height: 19px; }
  .topbar { padding: 10px 12px 10px 10px; min-height: 64px; gap: 8px; }
  .acct-btn { padding: 4px 4px 4px 2px; gap: 8px; }
  .acct-av { width: 30px; height: 30px; font-size: 10px; }
  .acct-chev { display: none; }
  .acct-txt { max-width: 92px; }
  .acct-name { font-size: 13px; }
  .acct-addr { font-size: 10.5px; }
  .hasp-mod { gap: 8px; padding: 6px 6px 6px 8px; }
  .hm-fig { width: 60px; }
  .hm-text { min-width: 0; }
  .hm-label, #hm-detail { display: none; }
  .hm-word { font-size: 12px; gap: 6px; }
  .hm-sub { font-size: 10.5px; }
  .hm-sub:has(.hm-elapsed:empty) { display: none; }
  .hasp-mod .btn { margin-left: 0; padding: 6px 9px; font-size: 12px; }
  .btn-latch svg { display: none; }
  .main { padding: 22px var(--gutter) 100px; }
  .preview-strip { gap: 8px 10px; padding-top: 8px; padding-bottom: 8px; }
  .ps-text { font-size: 11.5px; flex: 1 1 200px; }
  .dev-tray { margin-left: 0; width: 100%; }
  .dt-btn { flex: 1; padding: 6px 4px; font-size: 11.5px; }
  .padlock-form { grid-template-columns: 1fr; }
  .padlock-form .form-err { grid-column: 1; }
  .padlock-title { font-size: 17px; }
  h1 { font-size: 22px; }
  .page { gap: 20px; }
  .page-head { align-items: flex-start; flex-direction: column; }
  .page-actions .select { min-width: 0; flex: 1; }
  .page-actions { width: 100%; }
  .folio { padding: 18px 16px 18px; gap: 16px; }
  .folio-main { flex-direction: column; align-items: stretch; }
  .folio-main .page-actions .btn:not(.btn-icon) { flex: 1; }
  .total { font-size: 46px; min-height: 50px; }
  .total-skel { height: 42px; width: 220px; }
  .folio-top .label { font-size: 10px; }
  .panel { padding: 18px 16px; }
  .kv { grid-template-columns: 70px 1fr; }
  .words { grid-template-columns: repeat(2, 1fr); }
  .kv-lite > div { grid-template-columns: 1fr; gap: 2px; padding: 11px 16px; }
  .ra-num { font-size: 32px; }
  .idle-list { grid-template-columns: 1fr; }
  .chk { grid-template-columns: 20px 1fr auto; gap: 10px; }
  .chk-n { display: none; }

  /* tabel menjadi baris dua tingkat */
  .tbl .th { display: none; }
  .tbl .tr { padding: 12px 4px; gap: 4px 12px; }
  .tbl-wrap { padding: 14px 16px 4px; }
  .tbl-wrap .tbl { margin: 0 -16px; }
  .tbl-wrap .tbl .tr { padding-left: 16px; padding-right: 16px; }
  .tbl-hold .tr { grid-template-columns: 1fr auto; grid-template-areas: "asset val" "net amt"; position: relative; }
  .tbl-hold .td-asset { grid-area: asset; }
  .tbl-hold .td-net { grid-area: net; }
  .tbl-hold .td-net .nb-m { width: 16px; height: 16px; font-size: 7.5px; border-radius: 4px; }
  .tbl-hold .td-net .nb-name { font-size: 12px; }
  .tbl-hold .td-amt { grid-area: amt; font-size: 12.5px; color: var(--muted); }
  .tbl-hold .td-val { grid-area: val; }
  /* bagian porsi = garis terang di atas garis batas baris */
  .tbl-hold .td-share { position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; }
  .tbl-hold .td-share .bar { max-width: none; height: 1px; background: none; }
  .tbl-hold .td-share .pct, .tbl-hold .td-share > .muted { display: none; }
  .tbl-hold .tr-zero .td-share { display: none; }
  .tbl-tx .tr { grid-template-columns: 44px 1fr auto; grid-template-areas: "dir entry amt" "dir time status"; }
  .tbl-tx .td-dir { grid-area: dir; align-self: start; padding-top: 2px; }
  .tbl-tx .td-entry { grid-area: entry; }
  .tbl-tx .td-time { grid-area: time; font-size: 11.5px; }
  .tbl-tx .td-amt { grid-area: amt; }
  .tbl-tx .td-status { grid-area: status; }
  .tbl-tx .dir { width: 34px; }
  .tbl-apr .tr { grid-template-columns: 1fr auto; grid-template-areas: "asset act" "spender act" "allow act"; }
  .tbl-apr .td-asset { grid-area: asset; } .tbl-apr .td-spender { grid-area: spender; }
  .tbl-apr .td-allow { grid-area: allow; text-align: left; } .tbl-apr .td-act { grid-area: act; }

  .receive { grid-template-columns: 1fr; gap: 24px; padding: 20px 16px; justify-items: center; }
  .rcv-qr { width: 100%; max-width: 280px; }
  .rcv-info { width: 100%; }
  .addr-big { font-size: 15.5px; }
  .ga { display: inline-grid; grid-template-columns: repeat(6, auto); justify-content: start; gap: 0 .5em; }
  .ga-x { grid-row: span 2; margin-right: 0; }
  .fm-sep { display: none; }
  .folio-meta { flex-direction: column; align-items: flex-start; gap: 2px; }
  .onb-foot .sf-dot { display: none; }
  .receive-row .field { min-width: 0; width: 100%; }
  .sg-head { padding: 14px 16px; }
  .sg-desc { padding: 12px 16px 0; }
  .set-row { padding: 12px 16px; gap: 12px; }
  .sg-foot { flex-direction: column; align-items: flex-start; padding: 14px 16px; gap: 12px; }
  .toasts { bottom: 88px; }

  .onb { padding: 18px 16px 22px; }
  .onb-top .ref { display: none; }
  .onb-stage { padding: 16px 0; align-items: flex-start; }
  .onb-card { padding: 26px 20px; gap: 18px; }
  .onb-h { font-size: 31px !important; }
  .lead { font-size: 14px; }
  .onb-actions .btn { flex: 1 1 100%; }
  .onb-fig { padding: 16px 14px 10px; }
  .seam-steps li { font-size: 9px; letter-spacing: .1em; flex-direction: column; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
