:root {
  /* Warna mengikuti gmt.id: navy, emas, hijau, langit, latar kertas. */
  --navy-950: #071a35; --navy-900: #0e2547; --navy-800: #16355f; --navy-700: #1b3a6b;
  --gold: #f5b800; --gold-bright: #ffc61a; --gmt-green: #6db33f; --sky: #2fa8e0;
  --bg: #f4f7fb; --panel: #ffffff; --panel-2: #eef2f8; --ink: #102847; --muted: #52627a; --faint: #9aa6b8;
  --line: rgba(14, 37, 71, .12); --line-strong: rgba(14, 37, 71, .24);
  --accent: #1b3a6b; --accent-ink: #ffffff; --accent-soft: #e5ecf6;
  --ok: #2f7d1f; --ok-bg: #e7f4df; --warn: #7a5300; --warn-bg: #fff3cc; --warn-edge: #f5b800;
  --bad: #b42318; --bad-bg: #fde4e1; --bad-edge: #e0493b; --focus: #2fa8e0;
  --cross: rgba(47, 168, 224, .09);
  --radius: 10px; --radius-sm: 6px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 system-ui, "Segoe UI", sans-serif; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg.ico { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- kerangka ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px;
  padding: 0 16px; background: var(--navy-900); color: #fff; border-bottom: 3px solid var(--gold); }
.top .pill { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); color: #d7e0ee; }
.top .pill.ok { background: rgba(109,179,63,.18); color: #b8e39a; }
.top .pill.warn { background: rgba(245,184,0,.18); color: var(--gold-bright); }
.top .user { color: #b9c6da; }
.top .user b { color: #fff; }
.top .btn.ghost { color: var(--gold-bright); }
.top h1 { font-size: 16px; margin: 0; letter-spacing: -.01em; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 28px; height: 28px; background: #fff; border-radius: 50%; padding: 2px; }
.brand span { display: grid; line-height: 1.1; }
.brand small { font-size: 10px; font-weight: 500; letter-spacing: .04em; color: #9fb0c8; text-transform: uppercase; }
.login .brand { color: var(--ink); }
.login .brand img { width: 40px; height: 40px; padding: 0; }
.login .brand small { color: var(--muted); }
.status { display: flex; gap: 6px; flex-wrap: wrap; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border-radius: 999px; font-size: 12px;
  background: var(--panel-2); border: 1px solid var(--line); color: var(--muted); }
.pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.pill.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }

.layout { display: grid; grid-template-columns: 248px minmax(0, 1fr); height: calc(100vh - 48px); }
.side { display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); padding: 12px; overflow: auto; }
.side .jobs { flex: 1; align-content: start; }
.account { position: sticky; bottom: -12px; margin: 12px -12px -12px; padding: 10px 14px 12px; background: var(--panel); border-top: 1px solid var(--line); display: grid; gap: 2px; }
.account .who { font-weight: 700; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account .acts { display: flex; gap: 4px; margin-left: -6px; }
.account .linkbtn { font-weight: 500; color: var(--muted); }
.account .linkbtn:hover { color: var(--navy-700); }
.drop { position: relative; display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius); cursor: pointer; transition: border-color .15s, background .15s; }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--accent-soft); }
.drop strong { display: block; font-size: 13px; }
.drop span { color: var(--muted); font-size: 12px; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop svg.ico { width: 20px; height: 20px; color: var(--accent); }
.filters { display: flex; gap: 2px; margin: 12px 0 8px; padding: 2px; background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; }
.filters button { flex: 1; padding: 4px 6px; border: 0; background: none; border-radius: 6px; cursor: pointer; font-size: 12px; color: var(--muted); }
.filters button:hover { color: var(--ink); }
.filters button.on { background: var(--panel); color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.12); }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.jobs button { width: 100%; text-align: left; padding: 8px 10px; border: 1px solid transparent; border-radius: 8px;
  background: none; cursor: pointer; display: grid; gap: 3px; }
.jobs button:hover { background: var(--panel-2); }
.jobs button.sel { border-color: var(--accent); background: var(--accent-soft); }
.jobs .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jobs .meta { color: var(--muted); font-size: 12px; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.badge { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--line); white-space: nowrap; }
.badge.needs_review { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.approved { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.error { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.badge.processing { background: var(--accent-soft); color: var(--accent); border-color: transparent; }

.detail { overflow: auto; min-width: 0; }
.empty { color: var(--muted); padding: 32px; max-width: 46ch; }
.empty strong { display: block; color: var(--ink); font-size: 15px; margin-bottom: 4px; }

/* ---------- ruang kerja: foto | data ---------- */
.work { display: grid; grid-template-columns: minmax(340px, 1fr) minmax(0, 1.15fr); min-height: 100%; }
.photo { position: sticky; top: 0; height: calc(100vh - 48px); display: flex; flex-direction: column;
  background: #e3e6eb; border-right: 1px solid var(--line); }
.photo .tools { display: flex; gap: 4px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--panel); }
.photo .tools .spacer { flex: 1; }
.photo .tools .zoomval { color: var(--muted); font-size: 12px; min-width: 40px; text-align: center; font-variant-numeric: tabular-nums; }
.iconbtn { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: var(--radius-sm); border: 1px solid transparent;
  background: none; color: var(--ink); cursor: pointer; text-decoration: none; }
.iconbtn:hover { background: var(--panel-2); border-color: var(--line); }
.photo .frame { position: relative; flex: 1; min-height: 0; overflow: hidden; cursor: grab; touch-action: none; user-select: none; }
.photo .frame.grabbing { cursor: grabbing; }
.photo .frame img { pointer-events: none; position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; will-change: transform; }
.photo .holder { position: relative; margin: 0 auto; }
.photo img { position: absolute; left: 50%; top: 50%; max-width: none; transform-origin: center; }

.data { padding: 16px 20px 40px; min-width: 0; }
.head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.head h2 { font-size: 17px; margin: 0 0 4px; letter-spacing: -.01em; }
.head .sub { color: var(--muted); font-size: 12px; overflow-wrap: anywhere; }

.steps { display: flex; gap: 0; margin: 0 0 16px; padding: 0; list-style: none; font-size: 12px; }
.steps li { flex: 1; display: flex; align-items: center; gap: 8px; padding: 8px 10px; color: var(--muted);
  border-bottom: 2px solid var(--line); }
.steps li b { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11px;
  background: var(--panel-2); border: 1px solid var(--line-strong); color: var(--muted); }
.steps li.now { color: var(--ink); font-weight: 600; border-color: var(--gold); }
.steps li.now b { background: var(--gold); border-color: var(--gold); color: var(--navy-900); }
.steps li.done { color: var(--ok); border-color: var(--ok); }
.steps li.done b { background: var(--ok); border-color: var(--ok); color: var(--panel); }

.section { margin-bottom: 20px; }
.section > h3 { font-size: 13px; margin: 0 0 8px; display: flex; align-items: baseline; gap: 8px; }
.section > h3 .aside { font-weight: 400; color: var(--muted); font-size: 12px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 12px; }
.field { display: grid; gap: 3px; font-size: 12px; color: var(--muted); }
.field.req > span::after { content: " *"; color: var(--bad); }
.field input, .field select { padding: 6px 8px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  background: var(--panel); min-height: 32px; }
.field input:disabled, .field select:disabled { background: var(--panel-2); color: var(--muted); border-color: var(--line); }
.field input.empty-req { border-color: var(--bad-edge); background: var(--bad-bg); }

/* ---------- ringkasan cek ---------- */
.check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 8px 12px; margin-bottom: 8px;
  border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); font-size: 13px; }
.check .total { font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.check .ok { color: var(--ok); font-weight: 600; }
.check .count { display: inline-flex; align-items: center; gap: 6px; }
.check .count i { width: 10px; height: 10px; border-radius: 3px; }
.check .spacer { flex: 1; }
.kbd { font: 11px/1 ui-monospace, Consolas, monospace; padding: 2px 5px; border: 1px solid var(--line-strong); border-bottom-width: 2px;
  border-radius: 4px; color: var(--muted); background: var(--panel-2); }

/* ---------- tabel ritase ---------- */
.tablewrap { overflow: auto; max-width: 100%; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
table.rit { border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; width: max-content; min-width: 100%; }
.rit th, .rit td { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 0; text-align: center; height: 34px; }
.rit tr > :last-child { border-right: 0; }
.rit thead th { position: sticky; top: 0; z-index: 2; background: var(--panel-2); font-size: 12px; color: var(--muted); font-weight: 600; }
.rit th:first-child, .rit td:first-child { position: sticky; left: 0; z-index: 1; background: var(--panel); text-align: left; }
.rit thead th:first-child { z-index: 3; background: var(--panel-2); padding: 0 10px; }
.rit tfoot th, .rit tfoot td { background: var(--panel-2); }
.rit tfoot th { font-size: 12px; color: var(--muted); font-weight: 600; padding: 0 10px; white-space: nowrap; text-align: left; }
.rit tbody tr:last-child td { border-bottom: 2px solid var(--line-strong); }
.rit input { width: 44px; height: 100%; padding: 0 4px; border: 0; background: transparent; text-align: center; border-radius: 0; }
.rit input:focus-visible { outline: 2px solid var(--focus); outline-offset: -2px; background: var(--panel); }
.rit input:disabled { color: inherit; }
.rit input.unit { width: 96px; text-align: left; padding-left: 10px; font-weight: 600; }
.rit input.drv { width: 120px; text-align: left; padding-left: 8px; font-size: 12px; color: var(--muted); }
.rit th.driver { text-align: left; padding: 0 8px; }
.rit input.hour { width: 48px; font-size: 12px; font-weight: 600; color: var(--muted); }
.rit td.zero input { color: var(--faint); }
.rit td.num input { font-weight: 700; }
.rit td.calc { padding: 0 8px; min-width: 44px; font-weight: 700; }
.rit td.calc.muted { color: var(--faint); font-weight: 400; }
.rit th.sum, .rit td.sum { border-left: 2px solid var(--line-strong); }
/* crosshair: bantu mata mencocokkan baris & kolom ke foto */
.rit td.xrow, .rit td.xcol { background-image: linear-gradient(var(--cross), var(--cross)); }
.rit th.xcol { color: var(--accent); background: var(--accent-soft); }
.rit tr.xrow input.unit { color: var(--accent); }
/* status sel */
.rit td.uncertain { background: var(--warn-bg); box-shadow: inset 0 0 0 2px var(--warn-edge); }
.rit td.uncertain input { color: var(--warn); font-weight: 700; }
.rit td.missing { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad-edge); }
.rit td.mismatch { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad-edge); }
.rit td.mismatch input, .rit td.mismatch { color: var(--bad); font-weight: 700; }
.rit td.flash { animation: flash .9s ease-out; }
@keyframes flash { from { box-shadow: inset 0 0 0 3px var(--focus); } }
.rit .del { display: inline-grid; place-items: center; width: 32px; height: 32px; border: 0; background: none; cursor: pointer; color: var(--faint); border-radius: var(--radius-sm); }
.rit .del:hover { color: var(--bad); background: var(--bad-bg); }
.below { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; margin-top: 8px; font-size: 12px; color: var(--muted); }
.legend { display: flex; gap: 14px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i, .check .count i { display: inline-block; }
.sw-warn { background: var(--warn-bg); box-shadow: inset 0 0 0 2px var(--warn-edge); }
.sw-bad { background: var(--bad-bg); box-shadow: inset 0 0 0 2px var(--bad-edge); }
.legend i { width: 12px; height: 12px; border-radius: 3px; }

/* ---------- temuan & catatan ---------- */
.issues { margin: 0; padding: 0; list-style: none; display: grid; gap: 4px; }
.issues li { display: flex; gap: 8px; align-items: baseline; padding: 6px 10px; border-radius: var(--radius-sm); background: var(--bad-bg); color: var(--bad); font-size: 13px; }
.issues li button { margin-left: auto; border: 0; background: none; color: inherit; text-decoration: underline; cursor: pointer; font-size: 12px; white-space: nowrap; }
.issues.none li { background: var(--ok-bg); color: var(--ok); }
details.notes { font-size: 13px; color: var(--muted); }
details.notes summary { cursor: pointer; color: var(--ink); font-weight: 600; font-size: 13px; padding: 4px 0; }
details.notes ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- aksi ---------- */
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 7px 14px; border-radius: 8px;
  border: 1px solid var(--line-strong); background: var(--panel); cursor: pointer; font-weight: 600; transition: background .15s, border-color .15s; }
.btn:hover:not(:disabled) { border-color: var(--ink); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--accent); }
.btn.good { background: var(--ok); color: var(--panel); border-color: var(--ok); }
.btn.good:hover:not(:disabled) { filter: brightness(1.08); border-color: var(--ok); }
.btn.ghost { border-color: transparent; background: none; color: var(--accent); padding-inline: 8px; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.busy { cursor: progress; }
.btn.busy::before { content: ""; width: 12px; height: 12px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.hint { color: var(--muted); font-size: 12px; }
.hint.warn { color: var(--warn); }
.panel { padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.panel.cta { border-color: var(--accent); }
.panel .check-line { display: flex; gap: 8px; align-items: center; font-size: 13px; margin: 10px 0 0; }
.panel .check-line input { width: 16px; height: 16px; }
.result { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; display: grid; gap: 2px; }
.result li { display: flex; gap: 8px; padding: 4px 8px; border-radius: var(--radius-sm); font-variant-numeric: tabular-nums; }
.result li.terkirim, .result li.terisi, .result li.sudah { color: var(--ok); }
.result li.gagal { color: var(--bad); background: var(--bad-bg); }
.scan { display: grid; gap: 10px; justify-items: start; }

.toast { position: fixed; bottom: 18px; left: 50%; transform: translate(-50%, 8px); background: var(--ink); color: var(--panel);
  padding: 9px 14px; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease-out, transform .2s ease-out;
  max-width: min(560px, 90vw); box-shadow: 0 6px 20px rgba(0,0,0,.25); z-index: 10; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .work { grid-template-columns: minmax(0, 1fr); }
  .photo { position: relative; height: 52vh; border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; height: auto; }
  .side { border-right: 0; border-bottom: 1px solid var(--line); max-height: 38vh; }
  .detail { overflow: visible; }
  .photo { height: 46vh; }
  .data { padding: 14px 14px 32px; }
  .steps li { padding: 6px 4px; }
  .steps li span { display: none; }
  .steps li.now span { display: inline; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
.gap-top { margin-top: 10px; }

/* ---------- login ---------- */
.login-page { display: grid; place-items: center; min-height: 100vh; padding: 16px; background: linear-gradient(180deg, var(--navy-900) 0 38%, var(--bg) 38%); }
.login { width: min(360px, 100%); background: var(--panel); border: 1px solid var(--line); border-top: 4px solid var(--gold); border-radius: 12px; padding: 28px 24px;
  box-shadow: 0 8px 28px rgba(22, 27, 38, .08); display: grid; gap: 14px; }
.login h1 { margin: 0; font-size: 20px; letter-spacing: -.01em; }
.login .hint { margin: -8px 0 0; }
.login form { display: grid; gap: 12px; }
.pw { position: relative; display: block; }
.pw input { width: 100%; padding-right: 40px; }
.eye { position: absolute; right: 2px; top: 50%; transform: translateY(-50%); width: 34px; height: 30px; display: grid; place-items: center;
  border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: var(--radius-sm); }
.eye:hover { color: var(--ink); background: var(--panel-2); }
.login-error { margin: 0; min-height: 1.2em; color: var(--bad); font-size: 13px; }
.btn.wide { width: 100%; justify-content: center; }
.hint.small { font-size: 11px; margin: 0; }
.user { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.user b { color: var(--ink); }
.dlg:focus, .dlg:focus-visible { outline: none; }
.tiltbox { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding-left: 8px; border-left: 1px solid var(--line); }
.tilt { width: 140px; accent-color: var(--navy-700); }
.tiltval { min-width: 44px; text-align: right; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.iconbtn.sm { width: 26px; height: 26px; }
.linkbtn { border: 0; background: none; color: var(--navy-700); font-size: 12px; font-weight: 600; cursor: pointer; padding: 4px 6px; border-radius: var(--radius-sm); }
.linkbtn:hover { background: var(--panel-2); }
@media (max-width: 760px) { .tilt { width: 90px; } }
.field select.empty-req { border-color: var(--bad-edge); background: var(--bad-bg); }
.field.wide { grid-column: span 2; gap: 4px; }
.field-note { color: var(--warn); }
@media (max-width: 760px) { .field.wide { grid-column: auto; } }
.badge.archived { background: var(--ok-bg); color: var(--ok); border-color: transparent; }
.badge.unsent { background: var(--bad-bg); color: var(--bad); border-color: transparent; }
.filters button[data-count]:not([data-count=""])::after { content: " " attr(data-count); color: var(--faint); font-weight: 500; }
.btn.sm { min-height: 30px; padding: 4px 12px; font-size: 13px; }
.photo .tools .btn.sm { margin-right: 6px; }
.howto { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: var(--ink); }
.panel.archived { border-color: var(--ok); background: var(--ok-bg); }
.panel.archived p { margin: 0 0 4px; }
/* Toolbar foto boleh turun baris di panel sempit; tombol tidak terlipat. */
.photo .tools { flex-wrap: wrap; row-gap: 4px; }
.photo .tools .btn { white-space: nowrap; }
.btn { white-space: nowrap; }
.tilt { width: 110px; }

/* ---------- Pengaturan (khusus pemilik) ---------- */
.account .acts { flex-wrap: wrap; }
.linkbtn .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }
.linkbtn.danger { color: var(--bad); }
.linkbtn.danger:hover { background: var(--bad-bg); }
dialog.adm { width: min(1100px, calc(100vw - 32px)); height: min(820px, calc(100vh - 32px)); max-width: none; max-height: none; padding: 0;
  border: 0; border-radius: 12px; background: var(--bg); color: var(--ink); box-shadow: 0 24px 64px rgba(7, 26, 53, .35);
  display: none; flex-direction: column; overflow: hidden; }
dialog.adm[open] { display: flex; }
dialog.adm::backdrop { background: rgba(7, 26, 53, .45); }
.adm-head { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: var(--navy-900); color: #fff; border-bottom: 3px solid var(--gold); }
.adm-head h2 { margin: 0; font-size: 17px; }
.adm-head .hint { color: #9fb0c8; }
.adm-close { margin-left: auto; color: #fff; }
.adm-close:hover { background: rgba(255, 255, 255, .1); border-color: transparent; }
.adm-tabs { display: flex; gap: 2px; padding: 0 12px; background: var(--panel); border-bottom: 1px solid var(--line); overflow-x: auto; overflow-y: hidden; flex: none; scrollbar-width: none; }
.adm-tabs button { border: 0; background: none; padding: 11px 14px; font: inherit; font-weight: 600; color: var(--muted); cursor: pointer;
  border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.adm-tabs button:hover { color: var(--ink); }
.adm-tabs button.on { color: var(--ink); border-bottom-color: var(--gold); }
.adm-body { flex: 1; overflow: auto; padding: 18px; display: grid; gap: 16px; align-content: start; }
.adm-sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 12px; }
.adm-sec h3 { margin: 0; font-size: 15px; }
.adm-sec h3 .hint { font-weight: 400; }
.adm-sec > .hint { margin: 0; }
.adm-sechead { display: grid; gap: 4px; }
.adm-sechead p { margin: 0; }
.adm-sechead.row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.adm-empty { padding: 8px 0; margin: 0; }
.adm-tablewrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.adm-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.adm-table th { text-align: left; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted);
  background: var(--panel-2); padding: 8px 10px; border-bottom: 1px solid var(--line); position: sticky; top: 0; white-space: nowrap; }
.adm-table td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.adm-table tr:last-child td { border-bottom: 0; }
.adm-table tbody tr:hover { background: var(--panel-2); }
.adm-user { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.adm-acts { display: flex; gap: 2px; flex-wrap: wrap; }
.adm-detail { color: var(--muted); }
.nowrap { white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--faint); }
.dot.on { background: var(--gmt-green); box-shadow: 0 0 0 3px rgba(109, 179, 63, .2); }
.adm-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: end; max-width: 720px; }
.adm-form.cols3 { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; max-width: none; }
.adm-form .login-error { grid-column: 1 / -1; }
.adm-formact { display: flex; gap: 8px; }
.adm-form:not(.cols3) .adm-formact { grid-column: 1 / -1; }
.adm-search { min-width: min(360px, 100%); }
.adm-search input { width: 100%; }
.adm-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.adm-card { display: grid; gap: 4px; padding: 14px 16px; border: 1px solid var(--line); border-top: 4px solid var(--navy-700); border-radius: var(--radius); }
.adm-card .lbl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.adm-card b { font-size: 26px; color: var(--navy-700); letter-spacing: -.01em; }
.adm-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; font-size: 13px; }
.adm-dl dt { color: var(--muted); }
.adm-dl dd { margin: 0; }
.adm-dl code { font-size: 13px; letter-spacing: .05em; }
dialog.adm-mini { border: 0; border-radius: 12px; padding: 20px; width: min(380px, calc(100vw - 32px)); box-shadow: 0 20px 50px rgba(7, 26, 53, .3); }
dialog.adm-mini form { display: grid; gap: 12px; }
dialog.adm-mini h2 { margin: 0; font-size: 16px; }
@media (max-width: 760px) {
  dialog.adm { width: 100vw; height: 100vh; border-radius: 0; }
  .adm-body { padding: 12px; }
  .adm-form, .adm-form.cols3 { grid-template-columns: 1fr; }
}
.adm-choices { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.adm-choice { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: var(--radius); cursor: pointer; }
.adm-choice:hover { border-color: var(--accent); }
.adm-choice.on { border-color: var(--accent); background: var(--accent-soft); }
.adm-choice input { margin-top: 3px; accent-color: var(--navy-700); }
.adm-choice > span { display: grid; gap: 2px; }
.adm-sec .hint.warn { margin: 0; }
