/* Lacak Resi Express - design system bersama
   Tidak ada dependensi build. Dipakai semua halaman di /public. */

:root {
  --bg: #0a0f19;
  --bg-raise: #0e1522;
  --surface: #121a2a;
  --surface-2: #172134;
  --line: #222f47;
  --line-strong: #31415f;
  --text: #e8ecf4;
  --muted: #94a1b8;
  --dim: #6c7a94;
  --accent: #ffb020;
  --accent-strong: #ffc247;
  --accent-ink: #1b1303;
  --accent-soft: rgba(255, 176, 32, .12);
  --accent-line: rgba(255, 176, 32, .38);
  --ok: #3dd598;
  --ok-soft: rgba(61, 213, 152, .13);
  --warn: #f5b84a;
  --warn-soft: rgba(245, 184, 74, .14);
  --bad: #ff7a85;
  --bad-soft: rgba(255, 122, 133, .13);
  --info: #6cb4ff;
  --info-soft: rgba(108, 180, 255, .14);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r-lg: 16px;
  --r-md: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 12px 32px -16px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-strong); }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; }
b, strong { font-weight: 700; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

.hidden { display: none !important; }
.inline-flex { display: inline-flex; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Ikon */
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ic-lg { width: 1.5rem; height: 1.5rem; }
.ic-sm { width: 1rem; height: 1rem; }

/* Layout */
.wrap { width: 100%; max-width: 72rem; margin: 0 auto; padding: 0 1.25rem; }
.wrap-narrow { max-width: 56rem; }
.page { padding-block: 1.5rem 3rem; }
.stack-gap > * + * { margin-top: 1.25rem; }

/* Topbar */
.topbar { position: sticky; top: 0; z-index: 30; background: rgba(10, 15, 25, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .8rem; flex-wrap: wrap; }
.topbar-actions { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .75rem; color: var(--text); min-width: 0; }
.brand:hover { color: var(--text); }
.brand-mark { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: 11px; background: var(--accent); color: var(--accent-ink); flex: none; }
.brand-mark .ic { width: 1.3rem; height: 1.3rem; stroke-width: 2.2; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text b { font-size: 1.02rem; font-weight: 800; letter-spacing: -.01em; }
.brand-text small { color: var(--muted); font-size: .76rem; }
.account { text-align: right; line-height: 1.3; margin-right: .25rem; }
.account p:first-child { font-size: .86rem; font-weight: 700; }
.account p + p { font-size: .76rem; color: var(--muted); }

/* Tombol */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.5rem; padding: .5rem .95rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); font-size: .84rem; font-weight: 600; line-height: 1.2; white-space: nowrap; transition: border-color .15s, background .15s, color .15s, transform .1s; text-decoration: none; }
.btn:hover { border-color: var(--accent-line); color: var(--accent-strong); background: var(--surface-2); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[disabled] { opacity: .45; pointer-events: none; }
.btn-primary, .btn-accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.btn-primary:hover, .btn-accent:hover { background: var(--accent-strong); border-color: var(--accent-strong); color: var(--accent-ink); }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #03170f; font-weight: 700; }
.btn-ok:hover { background: #62e3ae; border-color: #62e3ae; color: #03170f; }
.btn-danger:hover { border-color: var(--bad); color: var(--bad); background: var(--bad-soft); }
.btn-danger-solid { background: var(--bad); border-color: var(--bad); color: #2a0509; font-weight: 700; }
.btn-danger-solid:hover { background: #ff97a0; border-color: #ff97a0; color: #2a0509; }
.btn-block { width: 100%; min-height: 2.9rem; font-size: .95rem; }
.btn-sm { min-height: 2.1rem; padding: .35rem .7rem; font-size: .78rem; border-radius: 10px; }
.btn-link { background: none; border: 0; min-height: 0; padding: .15rem .3rem; color: var(--accent); font-weight: 700; }
.btn-link:hover { background: none; color: var(--accent-strong); text-decoration: underline; }
.btn-link.is-danger { color: var(--bad); }
.btn-link.is-muted { color: var(--muted); }
.btn-link:disabled { opacity: .4; pointer-events: none; }
.icon-btn { display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem; border-radius: 10px; border: 0; background: transparent; color: var(--muted); }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

/* Card */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); }
.panel { padding: 1.5rem; }
.panel-title { display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; font-weight: 700; }
.panel-title .ic { color: var(--accent); }
.panel-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.panel-actions { display: flex; flex-wrap: wrap; gap: .5rem; }

/* Tab */
.tabs { display: flex; gap: .25rem; padding: .3rem; margin-bottom: 1.25rem; background: var(--bg-raise); border: 1px solid var(--line); border-radius: 14px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; flex: 1 0 auto; padding: .6rem 1rem; border: 0; border-radius: 10px; background: transparent; color: var(--muted); font-size: .86rem; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--surface-2); color: var(--accent-strong); box-shadow: 0 0 0 1px var(--line-strong) inset; }
.tabs-sm { margin-bottom: 1rem; }
.tabs-sm .tab { padding: .45rem .8rem; font-size: .82rem; }
.tab-badge { margin-left: .15rem; padding: .05rem .5rem; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .72rem; font-weight: 800; }

/* Form */
.field label, .label { display: block; margin-bottom: .45rem; color: var(--muted); font-size: .8rem; font-weight: 600; }
.input, .select, .textarea { width: 100%; min-height: 2.9rem; padding: .65rem .9rem; background: var(--bg-raise); border: 1px solid var(--line-strong); border-radius: var(--r-md); color: var(--text); font-size: .94rem; transition: border-color .15s, box-shadow .15s; }
.input::placeholder, .textarea::placeholder { color: var(--dim); }
.input:hover, .select:hover, .textarea:hover { border-color: #3d5075; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.select { appearance: none; -webkit-appearance: none; padding-right: 2.4rem; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2394a1b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='m6 9 6 6 6-6'/></svg>"); background-repeat: no-repeat; background-position: right .8rem center; background-size: 1.1rem; }
.select option { background: var(--surface); color: var(--text); }
.textarea { min-height: 7rem; resize: vertical; line-height: 1.5; }
.input-mono { font-family: var(--mono); letter-spacing: .02em; }
.input-sm { min-height: 2.5rem; padding: .5rem .8rem; font-size: .88rem; }
.input-auto { width: auto; min-width: 11rem; }
.input-icon { position: relative; }
.input-icon > .ic { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--dim); pointer-events: none; }
.input-icon > .input { padding-left: 2.5rem; }
.pw { position: relative; }
.pw .input { padding-right: 3rem; }
.pw .icon-btn { position: absolute; right: .3rem; top: 50%; transform: translateY(-50%); }
.form-row { display: grid; gap: 1rem; grid-template-columns: 1fr; align-items: end; }
.form-stack > * + * { margin-top: 1rem; }
.hint { margin-top: .85rem; color: var(--muted); font-size: .8rem; line-height: 1.5; }
.check { display: flex; align-items: flex-start; gap: .65rem; color: var(--muted); font-size: .82rem; line-height: 1.55; cursor: pointer; }
.check input { width: 1.1rem; height: 1.1rem; margin-top: .15rem; flex: none; accent-color: var(--accent); }
.check a { font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }

/* Alert, notice */
.alert { display: flex; align-items: flex-start; gap: .65rem; padding: .8rem 1rem; border-radius: var(--r-md); border: 1px solid; font-size: .88rem; line-height: 1.5; }
.alert .ic { margin-top: .12rem; }
.alert-bad { background: var(--bad-soft); border-color: rgba(255, 122, 133, .35); color: #ffc2c7; }
.alert-center { justify-content: center; text-align: center; align-items: center; }
.notice { padding: .7rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--bg-raise); color: var(--text); font-size: .86rem; }
.text-bad { color: var(--bad); }
.text-ok { color: var(--ok); }
.text-warn { color: var(--warn); }
.text-muted { color: var(--muted); }
.text-dim { color: var(--dim); }
.text-xs { font-size: .78rem; }
.fine { font-size: .74rem; color: var(--dim); }

/* Badge, chip */
.badge { display: inline-flex; align-items: center; gap: .35rem; padding: .18rem .6rem; border-radius: 6px; font-size: .74rem; font-weight: 700; line-height: 1.5; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge-ok { background: var(--ok-soft); color: var(--ok); }
.badge-warn { background: var(--warn-soft); color: var(--warn); }
.badge-bad { background: var(--bad-soft); color: var(--bad); }
.badge-info { background: var(--info-soft); color: var(--info); }
.badge-accent { background: var(--accent-soft); color: var(--accent-strong); }
.badge-mute { background: var(--surface-2); color: var(--muted); }
.badge-indigo { background: rgba(150, 146, 255, .15); color: #b4b0ff; }
.chip { display: inline-flex; align-items: center; padding: .25rem .65rem; border-radius: 999px; border: 1px solid var(--accent-line); background: var(--accent-soft); color: var(--accent-strong); font-size: .74rem; font-weight: 700; letter-spacing: .02em; }
.chip-filter { gap: .35rem; padding: .2rem .35rem .2rem .8rem; }
.chip-filter .icon-btn { width: 1.6rem; height: 1.6rem; color: inherit; }

/* Tabel */
.table-wrap { overflow-x: auto; margin-inline: -.25rem; padding-inline: .25rem; }
.table { width: 100%; border-collapse: collapse; text-align: left; font-size: .86rem; }
.table th { padding: .7rem 1rem; color: var(--muted); font-size: .76rem; font-weight: 600; white-space: nowrap; border-bottom: 1px solid var(--line-strong); }
.table td { padding: .8rem 1rem; vertical-align: top; border-bottom: 1px solid var(--line); }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(255, 255, 255, .02); }
.table .num { text-align: right; }
.cell-strong { font-weight: 600; color: var(--text); }
.cell-sub { margin-top: .1rem; font-size: .76rem; color: var(--muted); }
.cell-courier { margin-top: .15rem; font-family: var(--font); font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--dim); }
.cell-actions { display: flex; flex-wrap: wrap; gap: .4rem; }
.cell-empty { padding: 2.2rem 1rem !important; text-align: center; color: var(--muted); }
.cell-clip { max-width: 20rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.waybill-cell { font-family: var(--mono); font-weight: 700; color: var(--accent-strong); }

.pager { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: 1rem; color: var(--muted); font-size: .8rem; }
.pager .pager-btns { display: flex; gap: .5rem; }
.pager .btn { min-height: 2.2rem; padding: .3rem .8rem; font-size: .8rem; }

/* Hasil lacak */
.res-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .85rem; padding-bottom: 1.1rem; border-bottom: 1px solid var(--line); }
.res-id { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; min-width: 0; }
.waybill { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: .01em; word-break: break-all; }
.res-side { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.status-pill { display: inline-flex; align-items: center; padding: .3rem .8rem; border-radius: 999px; background: var(--ok-soft); color: var(--ok); border: 1px solid rgba(61, 213, 152, .35); font-size: .78rem; font-weight: 800; letter-spacing: .02em; }
.info-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; margin-top: 1.25rem; }
.info { padding: 1rem 1.1rem; border-radius: var(--r-md); background: var(--bg-raise); border: 1px solid var(--line); }
.info-label { display: block; margin-bottom: .35rem; color: var(--muted); font-size: .76rem; font-weight: 600; }
.info-main { font-weight: 700; font-size: 1rem; }
.info-main.is-accent { color: var(--accent-strong); }
.info-line { display: flex; align-items: flex-start; gap: .45rem; margin-top: .35rem; color: var(--muted); font-size: .82rem; }
.info-line .ic { margin-top: .2rem; color: var(--dim); }
.info-phone { margin-top: .75rem; padding-top: .75rem; border-top: 1px solid var(--line); display: flex; align-items: center; gap: .45rem; font-family: var(--mono); font-size: .82rem; color: var(--ok); }

.timeline { position: relative; margin: 1.5rem 0 0 .6rem; padding-left: 1.75rem; }
.tl-item { position: relative; padding-bottom: 1.35rem; }
.tl-item:not(:last-child)::before { content: ""; position: absolute; left: calc(-1.1rem - 1px); top: calc(.35rem + 12px); bottom: -.35rem; width: 2px; background: var(--line-strong); }
.tl-item:last-child { padding-bottom: 0; }
.tl-dot { position: absolute; left: calc(-1.1rem - 6px); top: .35rem; width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); box-shadow: 0 0 0 4px var(--surface); }
.tl-dot.is-latest { background: var(--accent); box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent-soft); }
.tl-date { margin-bottom: .35rem; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.tl-desc { padding: .75rem .9rem; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-raise); color: #c3cde0; font-size: .88rem; line-height: 1.55; }
.tl-desc.is-latest { color: var(--text); font-weight: 600; border-color: var(--accent-line); background: var(--accent-soft); }

.loading { padding: 3rem 1rem; text-align: center; color: var(--muted); }
.spinner { width: 2.6rem; height: 2.6rem; margin: 0 auto .9rem; border-radius: 50%; border: 3px solid var(--line-strong); border-top-color: var(--accent); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Modal / sheet */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(4, 8, 15, .72); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .15s ease-out; }
.sheet { width: 100%; max-width: 28rem; max-height: calc(100vh - 2rem); max-height: calc(100dvh - 2rem); overflow-y: auto; padding: 1.5rem; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 20px; box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .9); animation: rise .2s ease-out; }
.sheet-sm { max-width: 24rem; }
.sheet-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; }
.sheet-title { font-size: 1.1rem; font-weight: 800; }
.sheet-sub { margin-top: .2rem; color: var(--muted); font-size: .86rem; }
.sheet-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: 1.25rem; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.presets { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; margin-bottom: .75rem; }
.preset { padding: .7rem .8rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg-raise); color: var(--text); font-size: .92rem; font-weight: 700; text-align: left; transition: border-color .15s, background .15s; }
.preset small { display: block; margin-top: .1rem; color: var(--muted); font-size: .72rem; font-weight: 500; }
.preset:hover { border-color: var(--accent-line); }
.preset.is-selected { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); }

.pay-box { padding: .9rem; border-radius: var(--r-md); border: 1px solid var(--line-strong); background: var(--bg-raise); }
.pay-box > * + * { margin-top: .75rem; }
.pay-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.pay-row .mono { font-weight: 700; letter-spacing: .02em; }
.pending-card { padding: 1rem; border-radius: var(--r-md); border: 1px solid rgba(245, 184, 74, .35); background: var(--warn-soft); }
.pending-amount { display: flex; align-items: center; gap: .75rem; margin-top: .3rem; }
.pending-amount .mono { font-size: 1.5rem; font-weight: 800; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.list-row { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .65rem 0; border-bottom: 1px solid var(--line); font-size: .86rem; }
.section-label { margin-bottom: .5rem; color: var(--muted); font-size: .78rem; font-weight: 700; }
.pane-gap > * + * { margin-top: 1.25rem; }

/* Toast */
.toast { position: fixed; right: 1rem; bottom: 1rem; z-index: 60; max-width: min(24rem, calc(100vw - 2rem)); padding: .75rem 1rem; border-radius: var(--r-md); border: 1px solid; font-size: .86rem; font-weight: 500; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, .8); animation: rise .2s ease-out; }
.toast-ok { background: #0c2a21; border-color: rgba(61, 213, 152, .4); color: #8ff0c8; }
.toast-bad { background: #34101a; border-color: rgba(255, 122, 133, .4); color: #ffc2c7; }

.foot { padding: 1.5rem 0 2.5rem; text-align: center; color: var(--dim); font-size: .78rem; }
.foot a { color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.foot a:hover { color: var(--accent-strong); }

/* Auth */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr; }
.auth-aside { display: none; }
.auth-main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 2rem 1.25rem; }
.auth-box { width: 100%; max-width: 26rem; }
.auth-brand { display: flex; justify-content: center; margin-bottom: 1.75rem; }
.auth-head h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.auth-head p { margin-top: .4rem; color: var(--muted); font-size: .92rem; }
.auth-card { margin-top: 1.5rem; padding: 1.5rem; }
.auth-alt { margin-top: 1.25rem; text-align: center; color: var(--muted); font-size: .88rem; }
.auth-alt a { font-weight: 700; }
.auth-legal { margin-top: 1.25rem; text-align: center; font-size: .78rem; }
.auth-legal a { color: var(--dim); text-decoration: underline; text-underline-offset: 3px; }
.auth-legal a:hover { color: var(--accent-strong); }

.aside-in { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 2rem; height: 100%; padding: 3rem; }
.aside-copy h2 { max-width: 20ch; font-size: 2.25rem; font-weight: 800; letter-spacing: -.03em; line-height: 1.12; }
.aside-copy > p { margin-top: 1rem; max-width: 40ch; color: var(--muted); font-size: 1rem; }
.feature-list { margin: 1.75rem 0 0; padding: 0; list-style: none; display: grid; gap: .9rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .75rem; color: #c3cde0; font-size: .92rem; }
.feature-list .ic { margin-top: .15rem; color: var(--accent); }
.sample { max-width: 24rem; padding: 1.1rem 1.2rem; border-radius: var(--r-lg); background: rgba(18, 26, 42, .8); border: 1px solid var(--line-strong); }
.sample-head { display: flex; align-items: center; justify-content: space-between; gap: .75rem; }
.sample-head .mono { font-weight: 700; font-size: .9rem; }
.sample .timeline { margin-top: 1.1rem; }
.sample .tl-desc { font-size: .8rem; padding: .55rem .7rem; }
.sample .tl-item:not(:last-child) { padding-bottom: 1rem; }

@media (min-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
  .auth-aside { display: block; position: relative; background: radial-gradient(120% 90% at 0% 0%, #17223a 0%, var(--bg-raise) 55%, var(--bg) 100%); border-right: 1px solid var(--line); overflow: hidden; }
  .auth-aside::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 44px 44px; opacity: .22; mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent); -webkit-mask-image: radial-gradient(70% 60% at 30% 40%, #000, transparent); pointer-events: none; }
  .aside-in { z-index: 1; }
  .auth-brand-mobile { display: none; }
}

/* Dokumen (syarat) */
.doc-layout { display: grid; gap: 2rem; grid-template-columns: 1fr; }
.doc-toc { font-size: .86rem; }
.doc-toc .section-label { margin-bottom: .6rem; }
.doc-toc ol { margin: 0; padding-left: 1.2rem; display: grid; gap: .45rem; color: var(--dim); }
.doc-toc a { color: var(--muted); }
.doc-toc a:hover { color: var(--accent-strong); }
.doc-summary { padding: 1.25rem 1.4rem; border-left: 3px solid var(--accent); }
.doc-summary h2 { margin: 0 0 .7rem; font-size: 1rem; font-weight: 800; }
.doc { max-width: 44rem; }
.doc .h2 { margin: 2.5rem 0 .8rem; padding-top: .25rem; font-size: 1.2rem; font-weight: 800; letter-spacing: -.01em; scroll-margin-top: 5.5rem; }
.doc .h2:first-child { margin-top: 0; }
.doc .p { margin-bottom: .85rem; color: #c3cde0; font-size: .94rem; line-height: 1.75; }
.doc .ul { margin: 0 0 .85rem; padding-left: 1.2rem; display: grid; gap: .55rem; color: #c3cde0; font-size: .94rem; line-height: 1.75; }
.doc .ul li::marker { color: var(--accent); }
.doc b { color: var(--text); }
.doc a { text-decoration: underline; text-underline-offset: 3px; }
.doc .tip { margin: 0 0 .85rem; padding: .85rem 1rem; border-radius: var(--r-md); border: 1px solid var(--accent-line); background: var(--accent-soft); color: #e6d3a6; font-size: .9rem; line-height: 1.65; }
.doc .ul.flush { margin-bottom: 0; }

/* Admin */
.stat-grid { display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 1.5rem; }
.stat { padding: 1.1rem 1.2rem; min-width: 0; }
.stat-label { color: var(--muted); font-size: .8rem; font-weight: 600; }
.stat-value { margin-top: .35rem; font-size: clamp(1.2rem, 5.2vw, 1.85rem); overflow-wrap: anywhere; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-sub { margin-top: .2rem; min-height: 1.1em; color: var(--dim); font-size: .76rem; }
.stat-value.is-accent { color: var(--accent-strong); }
.stat-value.is-warn { color: var(--warn); }
.stat-value.is-ok { color: var(--ok); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.toolbar .grow { flex: 1 1 14rem; max-width: 24rem; }
.toolbar p { flex: 1 1 18rem; margin: 0; }
.page-title { display: flex; align-items: center; gap: .75rem; font-size: 1.5rem; font-weight: 800; letter-spacing: -.02em; }
.page-title .ic { color: var(--accent); width: 1.7rem; height: 1.7rem; }

@media (min-width: 640px) {
  .form-row.cols-3 { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) auto; }
  .info-grid { grid-template-columns: 1fr 1fr; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toast { right: 1.5rem; bottom: 1.5rem; }
}
@media (min-width: 900px) {
  .doc-layout { grid-template-columns: 15rem minmax(0, 1fr); gap: 3rem; }
  .doc-toc { position: sticky; top: 5.5rem; align-self: start; }
}

/* Mobile */
@media (max-width: 720px) {
  body { font-size: 14.5px; }
  .wrap { padding: 0 1rem; }
  .page { padding-block: 1.1rem 2.5rem; }
  .panel { padding: 1.1rem; }
  .brand-text small { display: none; }
  .topbar-in { gap: .6rem; }
  .topbar-actions { display: contents; }
  .brand { margin-right: auto; }
  .account { order: 3; flex-basis: 100%; display: flex; align-items: baseline; justify-content: space-between; gap: .75rem; text-align: left; margin: 0; padding-top: .55rem; border-top: 1px solid var(--line); }
  .btn .lbl { display: none; }
  .topbar-actions .btn { padding-inline: .7rem; min-width: 2.5rem; }
  .tab { padding: .6rem .7rem; gap: .35rem; font-size: .82rem; }
  .tabs:not(.tabs-sm) .tab .ic { display: none; }
  .tabs-sm .tab { flex: 1 1 0; }
  .hide-sm { display: none; }
  .waybill { font-size: 1.15rem; }
  .modal { align-items: flex-end; padding: 0; }
  .sheet { max-width: none; max-height: 92vh; max-height: 92dvh; border-radius: 22px 22px 0 0; border-bottom: 0; padding-bottom: calc(1.5rem + env(safe-area-inset-bottom, 0px)); animation: sheet-up .25s ease-out; }
  .sheet-sm { max-width: none; }
  .toast { left: 1rem; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom, 0px)); max-width: none; }
  .pager { flex-wrap: wrap; justify-content: center; }
  .auth-main { justify-content: flex-start; padding-top: 2.5rem; }
}
@keyframes sheet-up { from { transform: translateY(24px); opacity: 0; } to { transform: none; opacity: 1; } }

/* Tabel jadi kartu di layar sempit */
@media (max-width: 860px) {
  .table.stack thead { display: none; }
  .table.stack, .table.stack tbody { display: block; }
  .table.stack tr { display: block; margin-bottom: .75rem; padding: .3rem 1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg-raise); }
  .table.stack tbody tr:hover { background: var(--bg-raise); }
  .table.stack td { display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); text-align: right; }
  .table.stack td:last-child { border-bottom: 0; }
  .table.stack td::before { content: attr(data-label); flex: none; color: var(--muted); font-size: .76rem; font-weight: 600; text-align: left; }
  .table.stack td[colspan] { display: block; text-align: center; border-bottom: 0; }
  .table.stack td[colspan]::before { display: none; }
  .table.stack .cell-actions { justify-content: flex-end; }
  .table.stack .cell-clip { max-width: none; white-space: normal; overflow: visible; text-overflow: clip; }
  .table-wrap { margin-inline: 0; padding-inline: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .spinner { animation: spin 1.6s linear infinite !important; animation-duration: 1.6s !important; }
}

/* Utilitas kecil */
.mt-1 { margin-top: .35rem; }
.mt-2 { margin-top: .75rem; }
.mt-3 { margin-top: 1rem; }
.mb-3 { margin-bottom: 1rem; }
.flex-1 { flex: 1; }
.right { text-align: right; flex: none; }
.nowrap { white-space: nowrap; }
.actions { display: flex; gap: .5rem; }
.cv { min-width: 0; }
.fw-bold { font-weight: 700; }
.min-0 { min-width: 0; }
.link-ok { color: var(--ok); font-size: .8rem; font-weight: 700; }
.link-ok:hover { color: #62e3ae; }
.qris { display: block; width: 12rem; max-width: 100%; margin: 0 auto; padding: .5rem; border-radius: 10px; background: #fff; }
.err-msg { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: .5rem; }
.form-row > .hint { grid-column: 1 / -1; margin: 0; }
.bulk-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.waybill-cell.is-plain { color: var(--text); }
.bulk-note { margin-top: .85rem; color: var(--muted); font-size: .8rem; min-height: 1.1em; }
@media (min-width: 640px) {
  .bulk-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
}

.hint + .table-wrap { margin-top: .5rem; }
.pane-gap > .section-label + * { margin-top: 0; }
.pane-gap > * + * { margin-top: 1rem; }
