/* Inaportnet Tools — gaya aplikasi.
   Arah desain: peta laut. Latar kabut laut yang lembut, panel gelap dengan garis kontur kedalaman,
   satu warna sinyal (oranye pelampung) hanya untuk aksi utama dan penanda aktif. */
:root, html[data-theme="light"] {
  color-scheme: light;
  --bg: #eef2f1; --surface: #ffffff; --surface-2: #f3f6f6;
  --ink: #1b2a30; --muted: #64757c; --line: #e0e7e7;
  --sea: #1f7f8c; --sea-ink: #ffffff; --sea-soft: rgba(31,127,140,.09);
  --brand: #17727f; --brand-2: #2a9aa0;
  --signal: #e4673e; --signal-ink: #fff4ef; --on-accent: #ffffff;
  --ok: #23845a; --warn: #b8741c; --err: #c8473c; --info: #17727f;
  --log-bg: #0f181c; --log-ink: #cfdade;
  --r-lg: 24px; --r-md: 15px; --r-sm: 11px;
  --shadow: 0 1px 2px rgba(16,40,48,.04), 0 12px 32px -20px rgba(16,40,48,.28);
  --shadow-lg: 0 26px 60px -30px rgba(16,40,48,.38);
  --app-glow-1: rgba(42,154,160,.16); --app-glow-2: rgba(228,103,62,.08);
  --font: "Segoe UI Variable Display", "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --contours: url("contours.svg");
  --card: var(--surface);
}
html[data-theme="dark"] {
  color-scheme: dark;
  --bg: #111719; --surface: #182024; --surface-2: #1e272c;
  --ink: #dde4e7; --muted: #92a1a8; --line: #29343a;
  --sea: #237f8c; --sea-ink: #e9f0f1; --sea-soft: rgba(111,195,200,.11);
  --brand: #72c6cb; --brand-2: #4fb0b0;
  --signal: #ee7a52; --signal-ink: #fff4ef; --on-accent: #eef4f5;
  --ok: #65c193; --warn: #e3a65e; --err: #ef8a7f; --info: #72c6cb;
  --log-bg: #0a0f11; --log-ink: #c3ced4;
  --shadow: 0 1px 0 rgba(255,255,255,.02) inset, 0 14px 32px -18px rgba(0,0,0,.65);
  --shadow-lg: 0 26px 60px -26px rgba(0,0,0,.75);
  --app-glow-1: rgba(35,127,140,.16); --app-glow-2: rgba(238,122,82,.06);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); transition: background-color .25s, color .25s; color: var(--ink); font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--brand); text-underline-offset: 3px; }
h1, h2, h3 { letter-spacing: -.02em; line-height: 1.2; }
code { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: .9em; background: var(--sea-soft); padding: 1px 7px; border-radius: 7px; }
small { font-size: 12.5px; }
.muted { color: var(--muted); }
.hidden { display: none !important; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.ic { flex: none; vertical-align: -3px; }
:focus-visible { outline: 3px solid color-mix(in srgb, var(--brand) 55%, transparent); outline-offset: 2px; }

/* ---------- form ---------- */
.form { display: grid; gap: 16px; }
.form label, .filters label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.form label.check, label.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
input[type=text], input[type=password], input[type=email], input[type=number], input[type=date], input[type=month], input:not([type]), select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 11px 14px;
  background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 400; transition: border-color .15s, box-shadow .15s, background .15s;
}
input:hover, select:hover, textarea:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); background: var(--surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
input[type=checkbox], input[type=radio] { accent-color: var(--sea); width: 17px; height: 17px; }
select option { color: var(--ink); background: var(--surface); }
input.otp { font: 600 26px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .35em; text-align: center; padding: 14px; }
.hint { color: var(--muted); font-size: 13px; margin: 0; }
.form + .hint.center, .form ~ p.hint { margin-top: 16px; }
.form.inline { grid-template-columns: minmax(180px, 280px) auto; align-items: end; }
.form.row3 { grid-template-columns: repeat(3, 1fr); align-items: end; }
fieldset.roles { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px 20px; background: var(--surface-2); }
fieldset.roles legend { font-size: 13.5px; font-weight: 600; padding: 0 6px; }

/* ---------- tombol ---------- */
.btn {
  border: 1px solid var(--line); border-radius: 12px; padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer;
  background: var(--surface); color: var(--ink); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; justify-content: center;
  transition: transform .12s, box-shadow .15s, background .15s, border-color .15s;
}
.btn:hover { border-color: color-mix(in srgb, var(--brand) 55%, var(--line)); box-shadow: 0 6px 16px -8px rgba(11,79,96,.4); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn.primary { background: var(--sea); color: var(--on-accent); border-color: transparent; }
.btn.primary:hover { background: color-mix(in srgb, var(--sea) 88%, #fff); }
.btn.signal { background: var(--signal); color: var(--signal-ink); border-color: transparent; }
.btn.signal:hover { background: color-mix(in srgb, var(--signal) 90%, #fff); box-shadow: 0 10px 22px -10px rgba(255,106,61,.8); }
.btn.danger { color: var(--err); }
.btn.danger:hover { border-color: var(--err); box-shadow: none; }
.btn.sm { padding: 5px 12px; font-size: 13px; border-radius: 10px; }
.btn.block { width: 100%; padding: 13px; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
form.inl { display: inline; margin: 0; }
.acts { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- pesan & lencana ---------- */
.alert { padding: 12px 16px; border-radius: 14px; margin-bottom: 16px; font-size: 14px; background: var(--sea-soft); border: 1px solid transparent; }
.alert.ok { background: color-mix(in srgb, var(--ok) 11%, var(--surface)); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.alert.err { background: color-mix(in srgb, var(--err) 10%, var(--surface)); color: var(--err); border-color: color-mix(in srgb, var(--err) 25%, transparent); }
.alert.warn { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); color: var(--warn); border-color: color-mix(in srgb, var(--warn) 28%, transparent); }
.alert.info { color: var(--info); }
.alert code.tmp { font-size: 16px; user-select: all; background: var(--surface); color: var(--ink); padding: 4px 10px; border: 1px solid var(--line); border-radius: 9px; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--muted) 14%, transparent); color: var(--muted); }
.badge.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); }
.badge.err { background: color-mix(in srgb, var(--err) 13%, transparent); color: var(--err); }
.badge.warn { background: color-mix(in srgb, var(--warn) 15%, transparent); color: var(--warn); }
.badge.info { background: var(--sea-soft); color: var(--brand); }

/* ---------- halaman masuk: gelap, sunyi, tanpa penjelasan ---------- */
body.auth {
  --ink: #e4f1f3; --muted: #7d98a3; --line: rgba(190,235,240,.2); --surface: rgba(255,255,255,.04); --surface-2: rgba(255,255,255,.05);
  --brand: #7fd6dc; --sea-soft: rgba(127,214,220,.1); --err: #ff8b7e; --ok: #6fd7a6; --warn: #f3b25f;
  min-height: 100vh; margin: 0; background: #04090c; color: var(--ink); overflow-x: hidden;
}
.auth-bg { position: fixed; inset: -10%; z-index: 0; background: var(--contours) center / cover no-repeat; opacity: .9; animation: drift 90s ease-in-out infinite alternate; }
.auth-veil { position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background: radial-gradient(60% 55% at 50% 46%, rgba(4,9,12,.05) 0%, rgba(4,9,12,.78) 70%, #04090c 100%); }
@keyframes drift { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.12) translate(-2.5%, 1.5%); } }
.auth-main { position: relative; z-index: 1; min-height: 100vh; display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: 100%; max-width: 320px; }
.auth-card.wide { max-width: 410px; }
.beacon { position: relative; width: 12px; height: 12px; margin: 0 auto 46px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 22px 4px rgba(255,106,61,.55); }
.beacon::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 1px solid rgba(255,106,61,.5); animation: ping 3.6s ease-out infinite; }
@keyframes ping { 0% { transform: scale(.55); opacity: .9; } 70%, 100% { transform: scale(2.4); opacity: 0; } }
.auth-card h1 { font-size: 26px; margin: 0 0 6px; letter-spacing: -.03em; }
.auth-sub { color: var(--muted); margin: 0 0 24px; font-size: 14.5px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.auth-card .form { gap: 22px; }
.auth-card .form input:not([type=checkbox]) { border-radius: 0; background: transparent; box-shadow: none; }
.auth-card .form.bare input { border: 0; border-bottom: 1px solid var(--line); padding: 12px 2px; font-size: 17px; letter-spacing: .02em; color: var(--ink); text-align: center; transition: border-color .25s; }
.auth-card .form.bare input::placeholder { color: rgba(190,235,240,.32); letter-spacing: .14em; font-size: 13px; }
.auth-card .form.bare input:hover { border-color: rgba(190,235,240,.4); }
.auth-card .form.bare input:focus { border-color: var(--signal); box-shadow: 0 1px 0 0 var(--signal); background: transparent; }
.auth-card .form.bare input.otp { font-size: 26px; letter-spacing: .5em; padding-left: .5em; }
.auth-card .form.bare input:-webkit-autofill { -webkit-text-fill-color: var(--ink); transition: background-color 9999s; }
.go { justify-self: center; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(190,235,240,.3); background: transparent; color: var(--ink); cursor: pointer; display: grid; place-items: center; margin-top: 8px; transition: background .2s, border-color .2s, transform .2s, box-shadow .2s; }
.go:hover, .go:focus-visible { background: var(--signal); border-color: var(--signal); color: var(--on-accent); box-shadow: 0 0 28px -4px rgba(255,106,61,.8); transform: translateY(-2px); }
.auth-card .alert { background: transparent; border: 0; padding: 0; margin: 0 0 18px; text-align: center; font-size: 13.5px; color: var(--err); animation: shake .4s; }
.auth-card .alert.ok, .auth-card .alert.warn { color: var(--muted); }
@keyframes shake { 20% { transform: translateX(-5px); } 60% { transform: translateX(5px); } 100% { transform: none; } }
.quiet { display: flex; justify-content: center; gap: 18px; margin-top: 30px; font-size: 12.5px; }
.auth-card .quiet a { color: rgba(190,235,240,.38); text-decoration: none; transition: color .2s; }
.auth-card .quiet a:hover, .auth-card .quiet a:focus-visible { color: var(--ink); }
/* halaman aktivasi (butuh petunjuk): tetap gelap tetapi memakai teks */
.auth-card:not(.bare-card) .form input:not([type=checkbox]) { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.auth-card:not(.bare-card) .btn.primary { background: var(--signal); }
.auth-card .btn { background: transparent; color: var(--ink); border-color: var(--line); }
.auth-card .btn.primary { color: var(--on-accent); border-color: transparent; }
.auth-card a { color: var(--brand); }
.auth-card .hint { color: var(--muted); }
.auth-card .hint.center { margin-top: 18px; }
.sb-logo { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; color: var(--on-accent); background: var(--sea); flex: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,.18); }
.sb-logo svg { width: 22px; height: 22px; }
.qrbox { display: grid; place-items: center; margin: 4px 0 16px; }
.qrbox canvas { background: #e8edef; filter: brightness(.94); border-radius: 18px; padding: 10px; border: 1px solid var(--line); box-shadow: var(--shadow); max-width: 100%; height: auto; }
details.manual { margin-bottom: 16px; font-size: 14px; }
details.manual summary { cursor: pointer; color: var(--brand); font-weight: 600; }
.key { display: block; font-size: 15px; letter-spacing: .06em; padding: 10px 12px; word-break: break-all; user-select: all; margin: 8px 0; border-radius: 10px; }
.codes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 8px 0 16px; }
.codes code { text-align: center; padding: 10px; font-size: 15px; letter-spacing: .05em; border: 1px dashed var(--line); background: var(--surface-2); border-radius: 11px; }
.row { display: flex; gap: 8px; margin-bottom: 16px; }

/* ---------- kerangka ---------- */
.shell { display: flex; gap: 16px; padding: 16px; min-height: 100vh; }
.side {
  width: 256px; flex: none; position: sticky; top: 16px; height: calc(100vh - 32px);
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow);
}
.sb-brand { display: flex; gap: 12px; align-items: center; padding: 20px 18px 14px; text-decoration: none; color: var(--ink); }
.sb-brand b { display: block; line-height: 1.2; font-size: 15.5px; letter-spacing: -.01em; }
.sb-brand small { color: var(--muted); }
.sb-nav { flex: 1; overflow-y: auto; padding: 6px 12px; display: grid; align-content: start; gap: 4px; }
.nav-link, .nav-group summary {
  display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 13px; color: var(--muted);
  text-decoration: none; cursor: pointer; font-weight: 600; list-style: none; transition: background .15s, color .15s;
}
.nav-group summary::-webkit-details-marker { display: none; }
.nav-link:hover, .nav-group summary:hover { background: var(--sea-soft); color: var(--ink); }
.nav-link.on { background: var(--sea); color: var(--on-accent); }
.nav-link.on::after { content: ""; flex: none; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 0 3px rgba(255,106,61,.25); }
.nav-group summary span { flex: 1; }
.nav-group .chev { display: inline-flex; transition: transform .18s; opacity: .6; }
.nav-group[open] .chev { transform: rotate(90deg); }
.nav-group[open] > summary { color: var(--ink); }
.nav-sub { display: grid; gap: 3px; margin: 4px 0 6px 20px; padding-left: 12px; border-left: 2px solid var(--line); }
.nav-sub .nav-link { font-size: 14px; padding: 8px 12px; font-weight: 500; }
.nav-sub .nav-link.on { font-weight: 600; }
.sb-foot { padding: 14px 20px; font-size: 12.5px; color: var(--muted); }
.side { transition: width .24s ease, margin .24s ease, opacity .18s ease, border-width .24s; overflow: hidden; }
.side > * { min-width: 254px; }
html.side-collapsed .side { width: 0; margin-right: -16px; opacity: 0; border-width: 0; pointer-events: none; }
.main { flex: 1; min-width: 0; }
.topbar {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 20px; margin-bottom: 20px; position: sticky; top: 16px; z-index: 20;
  background: color-mix(in srgb, var(--surface) 78%, transparent); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4);
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.tb-title { font-weight: 700; font-size: 17px; letter-spacing: -.01em; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.burger { display: inline-grid; place-items: center; width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; border-radius: 12px; flex: none; transition: background .15s, border-color .15s; }
.burger:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); background: var(--sea-soft); }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; align-items: center; gap: 10px; cursor: pointer; padding: 4px 10px 4px 4px; border-radius: 999px; transition: background .15s; }
.usermenu summary:hover { background: var(--sea-soft); }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--on-accent); font-weight: 700; background: var(--sea); box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--signal) 70%, transparent); }
.who { display: grid; line-height: 1.25; }
.who b { font-size: 14px; }
.who small { color: var(--muted); }
.um-pop { position: absolute; right: 0; top: calc(100% + 10px); min-width: 220px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 6px; display: grid; }
.um-pop a, .um-out { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 11px; color: var(--ink); text-decoration: none; border: 0; background: transparent; font: inherit; font-weight: 500; cursor: pointer; width: 100%; text-align: left; }
.um-pop a:hover, .um-out:hover { background: var(--sea-soft); }
.um-pop form { margin: 0; }
.content { max-width: 1480px; padding: 0 2px 24px; }
.scrim { display: none; }

/* ---------- kartu & tata letak ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; box-shadow: var(--shadow); margin-bottom: 18px; }
.card h2 { margin: 0 0 6px; font-size: 18px; }
.card .sub { color: var(--muted); margin: 0 0 16px; font-size: 14.5px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; margin-bottom: 18px; }
.grid2 > .card { margin-bottom: 0; }
.kv { display: grid; grid-template-columns: 130px 1fr; gap: 10px 14px; margin: 14px 0 0; }
.kv dt { color: var(--muted); font-size: 14px; }
.kv dd { margin: 0; }
.filters { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; align-items: end; }
.filters .actions { grid-column: 1 / -1; }

/* ---------- dashboard ---------- */
.welcome {
  position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: flex-end; gap: 18px; flex-wrap: wrap;
  padding: 32px 34px; margin-bottom: 18px; border-radius: 26px; color: #d3dfe2;
  background: radial-gradient(110% 120% at 90% 0%, #14697c 0%, transparent 62%), linear-gradient(160deg, #0b4f60 0%, #072c38 100%);
  box-shadow: var(--shadow-lg);
}
.welcome::before { content: ""; position: absolute; inset: 0; background: var(--contours) 70% 30% / 130% auto no-repeat; opacity: .85; }
.welcome > * { position: relative; }
.welcome h2 { margin: 0; font-size: clamp(26px, 3vw, 36px); letter-spacing: -.03em; }
.welcome p { margin: 6px 0 0; color: #9db4ba; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 18px 20px; box-shadow: var(--shadow); }
.stat span { display: block; color: var(--muted); font-size: 14px; font-weight: 500; }
.stat b { display: block; font-size: 34px; line-height: 1.15; letter-spacing: -.03em; margin-top: 6px; font-variant-numeric: tabular-nums; }
.dbars { display: flex; gap: 8px; align-items: flex-end; height: 170px; padding-top: 10px; }
.dbar { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; min-width: 0; }
.dbar i { display: block; width: 100%; max-width: 38px; border-radius: 10px; background: var(--sea); min-height: 4px; opacity: .88; transition: opacity .15s; }
.dbar:hover i { opacity: 1; background: var(--signal); }
.dbar span { font-size: 12px; color: var(--muted); }

/* ---------- tabel ---------- */
.tablewrap { overflow-x: auto; margin: 0 -6px; padding: 0 6px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; color: var(--muted); font-size: 13px; font-weight: 600; padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 13px 12px; border-bottom: 1px solid color-mix(in srgb, var(--line) 70%, transparent); vertical-align: top; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--sea-soft); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl.compact td, .tbl.compact th { padding: 8px 10px; }
.tbl tr.off { opacity: .5; }
.indent { color: var(--muted); margin-left: 10px; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.pg { min-width: 38px; text-align: center; padding: 7px 12px; border: 1px solid var(--line); border-radius: 11px; text-decoration: none; color: var(--ink); background: var(--surface); font-weight: 600; }
.pg.on { background: var(--sea); border-color: var(--sea); color: var(--on-accent); }
.pg.dis { opacity: .45; }
.footnote { text-align: center; color: var(--muted); font-size: 13px; margin: 28px 0 4px; }

/* ---------- responsif ---------- */
@media (max-width: 960px) {
  .grid2, .form.row3, .form.inline { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .shell { padding: 10px; gap: 0; }
  .side { position: fixed; left: 10px; top: 10px; bottom: 10px; height: auto; z-index: 40; transform: translateX(calc(-100% - 20px)); transition: transform .22s ease; box-shadow: var(--shadow-lg); }
  html.side-collapsed .side { width: 256px; margin-right: 0; opacity: 1; border-width: 1px; pointer-events: auto; }
  body.side-open .side { transform: none; }
  body.side-open .scrim { display: block; position: fixed; inset: 0; background: rgba(6,24,32,.5); backdrop-filter: blur(2px); z-index: 30; }
  .topbar { top: 10px; padding: 8px 10px; }
  .who { display: none; }
  .welcome { padding: 24px 22px; border-radius: 22px; }
  .card { padding: 20px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- cari data kapal ---------- */
.with-ic { display: flex; align-items: center; gap: 10px; }
.kfilter { display: grid; grid-template-columns: 1fr 1fr auto; gap: 16px; align-items: end; margin-top: 14px; }
.kfilter label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.kfilter .btn { height: 46px; }
.khead { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.khead h2 { margin: 0; }
.kmeta { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; font-size: 14px; }
.kper { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.kper select { width: auto; padding: 6px 28px 6px 10px; border-radius: 10px; }
.ktable { max-height: 68vh; overflow: auto; border: 1px solid var(--line); border-radius: 16px; margin: 0; padding: 0; }
.kt { font-size: 14px; }
.kt th { position: sticky; top: 0; z-index: 1; background: var(--surface-2); color: var(--ink); text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.kt td { padding: 11px 14px; white-space: nowrap; }
.kt td.num { text-align: right; font-variant-numeric: tabular-nums; }
.kempty { padding: 44px 20px; text-align: center; color: var(--muted); }
#kResult.loading .ktable { opacity: .5; transition: opacity .15s; pointer-events: none; }
button.pg { font: inherit; font-weight: 600; cursor: pointer; }
button.pg:hover { border-color: var(--brand); }
@media (max-width: 820px) { .kfilter { grid-template-columns: 1fr; } }
.kt th { text-align: center; font-weight: 700; line-height: 1.25; background: #2f3d4c; color: #eef2f5; border-right: 1px solid rgba(255,255,255,.08); }
.kt th:nth-child(3), .kt th:nth-child(4), .kt th:last-child { white-space: normal; }
.kt th.kz, .kt td.kz { width: 64px; padding: 8px 6px; text-align: center; }
.kzoom { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; }
.kzoom:hover, .kzoom:focus-visible { border-color: var(--sea); color: var(--signal); }
.kmodal { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.62); display: grid; place-items: center; padding: 16px; }
.kbox { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; width: min(760px, 100%); max-height: 88vh; overflow: auto; padding: 22px; box-shadow: 0 24px 80px rgba(0,0,0,.5); }
.kboxh { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; margin-bottom: 14px; }
.kboxh h3 { margin: 0 0 2px; font-size: 18px; }
.kdl { display: grid; grid-template-columns: minmax(130px, 200px) 1fr; margin: 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.kdl dt, .kdl dd { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; overflow-wrap: anywhere; }
.kdl dt { color: var(--muted); font-weight: 600; background: var(--surface-2); }
.kdl dt.ex { font-style: italic; }
@media (max-width: 560px) { .kdl { grid-template-columns: 1fr; } .kdl dt { border-bottom: 0; padding-bottom: 2px; } }

/* ---------- cari buku pelaut ---------- */
.pfilter { display: grid; grid-template-columns: repeat(5, 1fr) auto; gap: 14px; align-items: end; margin-top: 14px; }
.pfilter label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.pfilter .btn { height: 46px; }
.kt.pt td.mono { font-variant-numeric: tabular-nums; letter-spacing: .02em; }
.pst { font-weight: 600; }
.pst.ok { color: var(--ok); } .pst.warn { color: var(--warn); } .pst.off { color: var(--muted); }
.pnote { font-size: 12.5px; margin: 14px 2px 0; }
@media (max-width: 1100px) { .pfilter { grid-template-columns: 1fr 1fr; } .pfilter .btn { grid-column: 1 / -1; } }
@media (max-width: 560px) { .pfilter { grid-template-columns: 1fr; } }

/* ---------- dashboard: kartu alat & aktivitas ---------- */
.tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tool { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; text-decoration: none; color: var(--ink); box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
.tool:hover, .tool:focus-visible { border-color: var(--sea); transform: translateY(-2px); }
.tool-ic { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--sea); color: var(--on-accent); }
.tool-body { flex: 1; min-width: 0; display: grid; gap: 2px; }
.tool-body b { font-size: 15px; line-height: 1.25; }
.tool-body small { color: var(--muted); font-size: 12.5px; }
.tool-n { text-align: right; font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1; }
.tool-n small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); margin-top: 4px; }
h3.sub { font-size: 14px; color: var(--muted); font-weight: 600; margin: 22px 0 10px; }
.tbars { display: grid; gap: 10px; }
.tbar { display: grid; grid-template-columns: minmax(120px, 230px) 1fr minmax(110px, auto); gap: 14px; align-items: center; font-size: 14px; }
.tbar-track { height: 10px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.tbar-track i { display: block; height: 100%; background: var(--sea); border-radius: 99px; }
.tbar em { font-style: normal; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.tbar em small { font-weight: 400; color: var(--muted); }
.srcline { display: flex; gap: 14px; flex-wrap: wrap; margin: 8px 0; font-size: 14px; }
.warn-t { color: var(--warn); }
@media (max-width: 640px) { .tbar { grid-template-columns: 1fr; gap: 4px; } .tbar em { text-align: left; } }
.sum { display: flex; gap: 38px; flex-wrap: wrap; margin-bottom: 8px; }
.sum b { display: block; font-size: 30px; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.sum span { color: var(--muted); font-size: 13.5px; }
.feed { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; }
.feed li { display: flex; gap: 14px; align-items: baseline; padding: 11px 2px; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.feed li:last-child { border-bottom: 0; }
.feed-t { color: var(--muted); font-variant-numeric: tabular-nums; font-size: 13px; min-width: 88px; }

/* ---------- halaman masuk v2: misterius tapi hidup ---------- */
.sb-logo svg { width: 26px; height: 26px; }
.auth-glow { position: fixed; inset: -30%; z-index: 0; pointer-events: none; filter: blur(60px); opacity: .55;
  background: radial-gradient(28% 24% at 38% 44%, rgba(31,110,124,.55), transparent 70%),
              radial-gradient(22% 20% at 64% 58%, rgba(238,122,82,.22), transparent 70%);
  animation: aurora 26s ease-in-out infinite alternate; }
@keyframes aurora { 0% { transform: translate(0,0) rotate(0deg); } 50% { transform: translate(3%, -2%) rotate(8deg); } 100% { transform: translate(-3%, 2%) rotate(-6deg); } }
.auth-grain { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.auth-bare .auth-card { max-width: 340px; padding: 40px 34px 34px; border-radius: 28px; position: relative;
  background: linear-gradient(160deg, rgba(18,26,30,.62), rgba(8,13,16,.5));
  border: 1px solid rgba(190,235,240,.09); box-shadow: 0 40px 120px -40px rgba(0,0,0,.9), inset 0 1px 0 rgba(255,255,255,.04);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); animation: rise .9s cubic-bezier(.2,.7,.2,1) both; }
.auth-bare .auth-card::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(140deg, rgba(127,214,220,.35), transparent 35%, transparent 65%, rgba(238,122,82,.3));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.985); } to { opacity: 1; transform: none; } }
.sigil { position: relative; width: 104px; height: 104px; margin: 0 auto 18px; display: grid; place-items: center; }
.sigil .mark { width: 58px; height: 58px; color: #cfe9ec; filter: drop-shadow(0 0 18px rgba(127,214,220,.35)); animation: breathe 5s ease-in-out infinite; }
.sigil .mark svg { width: 100%; height: 100%; display: block; }
.sigil .orbit { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(127,214,220,.28); animation: spin 38s linear infinite; }
.sigil .orbit.o2 { inset: 10px; border: 1px solid transparent; border-top-color: rgba(238,122,82,.75); border-right-color: rgba(238,122,82,.18); animation-duration: 7s; }
.sigil .orbit.o2::after { content: ""; position: absolute; top: 7px; right: 9px; width: 5px; height: 5px; border-radius: 50%; background: var(--signal); box-shadow: 0 0 12px 2px rgba(238,122,82,.8); }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes breathe { 0%, 100% { opacity: .82; transform: scale(1); } 50% { opacity: 1; transform: scale(1.04); } }
.cipher { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 0 0 30px; font: 500 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .22em; color: rgba(190,235,240,.38); }
.cipher i { width: 22px; height: 1px; background: linear-gradient(90deg, transparent, rgba(238,122,82,.7), transparent); }
.auth-bare .form.bare input { text-align: left; padding-left: 4px; }
.auth-bare .form.bare input::placeholder { letter-spacing: .3em; text-transform: uppercase; font-size: 11px; }
.auth-bare .form.bare input.otp { text-align: center; }
.auth-bare .go { margin-top: 14px; width: 56px; height: 56px; position: relative; }
.auth-bare .go::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 1px solid rgba(238,122,82,.0); transition: border-color .3s, inset .3s; }
.auth-bare .go:hover::before, .auth-bare .go:focus-visible::before { border-color: rgba(238,122,82,.45); inset: -9px; }
.auth-foot { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 1; display: flex; justify-content: center; align-items: center; gap: 12px;
  font: 500 11px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: .2em; color: rgba(190,235,240,.28); }
.auth-foot .dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(111,215,166,.7); box-shadow: 0 0 8px rgba(111,215,166,.8); animation: breathe 2.4s ease-in-out infinite; }
.auth:not(.auth-bare) .sigil { width: 70px; height: 70px; margin-bottom: 26px; }
.auth:not(.auth-bare) .sigil .mark { width: 38px; height: 38px; }
@media (max-width: 420px) { .auth-bare .auth-card { padding: 34px 22px 28px; } }
@media (prefers-reduced-motion: reduce) {
  .auth-bg, .auth-glow, .sigil .orbit, .sigil .mark, .auth-bare .auth-card, .auth-foot .dot { animation: none !important; }
}


/* ---------- tema terang/gelap & tampilan lebih lembut ---------- */
body.app { background:
  radial-gradient(900px 520px at 100% -10%, var(--app-glow-1), transparent 70%),
  radial-gradient(700px 480px at -10% 110%, var(--app-glow-2), transparent 70%), var(--bg); background-attachment: fixed; }
.side { background: color-mix(in srgb, var(--surface) 88%, transparent); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.card, .stat, .tool { transition: box-shadow .2s, transform .2s, border-color .2s, background-color .25s; }
.card:hover { box-shadow: var(--shadow-lg); }
.nav-link, .nav-group summary { border-radius: 14px; }
.nav-link.on { background: linear-gradient(135deg, var(--sea), color-mix(in srgb, var(--sea) 70%, var(--brand-2))); box-shadow: 0 10px 22px -14px var(--sea); }
.tool-ic { background: linear-gradient(135deg, var(--sea), color-mix(in srgb, var(--sea) 65%, var(--brand-2))); }
html[data-theme="light"] .welcome, :root:not([data-theme]) .welcome { box-shadow: 0 24px 50px -28px rgba(15,80,95,.55); }
.theme-tg { display: inline-grid; place-items: center; width: 40px; height: 40px; flex: none; cursor: pointer; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); transition: background .15s, border-color .15s, transform .2s; }
.theme-tg:hover { border-color: color-mix(in srgb, var(--brand) 50%, var(--line)); background: var(--sea-soft); }
.theme-tg:active { transform: rotate(-20deg) scale(.95); }
.theme-tg .moon, html[data-theme="dark"] .theme-tg .sun { display: none; }
html[data-theme="dark"] .theme-tg .moon { display: block; }
html[data-theme="light"] .kt th, :root:not([data-theme]) .kt th { background: #2f4652; }
html[data-theme="light"] .qrbox canvas { filter: none; background: #fff; }

/* ---------- halaman masuk v3: ruang arsip barbershop (tetap misterius) ---------- */
body.auth {
  --ink: #efe4d2; --muted: #a8977f; --line: rgba(239,228,210,.18); --brand: #d8b57a; --sea-soft: rgba(216,181,122,.1);
  --signal: #c9a46a; --on-accent: #1a120d; --err: #f08d78; --ok: #9fcf9a; --warn: #e8b86a;
  --brass: #c9a46a; --oxblood: #8e2f2a; --navy: #1f3b57; --cream: #efe4d2;
  background: #120d0a; color: var(--ink);
}
body.auth .auth-bg { background: url("barber-pattern.svg") 0 0 / 300px 300px repeat; opacity: .085; inset: -320px; animation: slide 120s linear infinite; }
@keyframes slide { to { transform: translate(300px, 300px); } }
body.auth .auth-glow { opacity: .9; filter: blur(70px);
  background: radial-gradient(26% 30% at 50% 38%, rgba(201,164,106,.24), transparent 70%),
              radial-gradient(18% 22% at 30% 70%, rgba(142,47,42,.22), transparent 70%),
              radial-gradient(18% 22% at 72% 68%, rgba(31,59,87,.28), transparent 70%); }
body.auth .auth-veil { background: radial-gradient(55% 60% at 50% 42%, rgba(18,13,10,0) 0%, rgba(18,13,10,.7) 65%, #0b0806 100%); }
body.auth .auth-grain { opacity: .1; }
.auth-bare .auth-card { background: linear-gradient(165deg, rgba(36,26,20,.72), rgba(16,11,8,.62)); border-color: rgba(201,164,106,.14); padding-top: 34px; overflow: hidden; }
.auth-bare .auth-card::before { background: linear-gradient(150deg, rgba(201,164,106,.55), transparent 30%, transparent 70%, rgba(142,47,42,.45)); }
.pole { height: 6px; margin: -34px -34px 30px; opacity: .9;
  background: repeating-linear-gradient(-45deg, var(--oxblood) 0 10px, var(--cream) 10px 20px, var(--navy) 20px 30px, var(--cream) 30px 40px);
  background-size: 56.57px 6px; animation: pole 2.6s linear infinite; box-shadow: 0 6px 18px -6px rgba(142,47,42,.6); }
@keyframes pole { to { background-position: 56.57px 0; } }
@media (max-width: 420px) { .pole { margin: -34px -22px 26px; } }
.auth-bare .sigil { width: 128px; height: 128px; margin-bottom: 14px; }
.sigil .ring { position: absolute; inset: 0; width: 100%; height: 100%; animation: spin 60s linear infinite; }
.sigil .ring text { fill: rgba(216,181,122,.62); font: 600 9.2px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; letter-spacing: 1.6px; }
body.auth .sigil .orbit { border-color: rgba(201,164,106,.25); }
body.auth .sigil .orbit.o2 { inset: 22px; border-top-color: rgba(201,164,106,.8); border-right-color: rgba(201,164,106,.15); }
body.auth .sigil .orbit.o2::after { background: var(--oxblood); box-shadow: 0 0 12px 2px rgba(220,80,70,.7); top: 6px; right: 8px; }
body.auth .sigil .mark { color: var(--cream); filter: drop-shadow(0 0 16px rgba(201,164,106,.35)); width: 52px; height: 52px; }
.auth-bare .cipher { font-family: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; color: rgba(216,181,122,.6); font-style: italic; }
.auth-bare .cipher i { background: linear-gradient(90deg, transparent, rgba(201,164,106,.8), transparent); width: 28px; }
body.auth .form.bare input { border-bottom-color: rgba(239,228,210,.16); }
body.auth .form.bare input::placeholder { color: rgba(239,228,210,.34); }
body.auth .form.bare input:focus { border-color: var(--brass); box-shadow: 0 1px 0 0 var(--brass); }
body.auth .go { border-color: rgba(201,164,106,.4); color: var(--cream); }
body.auth .go:hover, body.auth .go:focus-visible { background: var(--brass); border-color: var(--brass); color: #1a120d; box-shadow: 0 0 28px -4px rgba(201,164,106,.75); transform: translateY(-2px) rotate(-12deg); }
.auth-bare .go::before { border-color: transparent; }
.auth-bare .go:hover::before, .auth-bare .go:focus-visible::before { border-color: rgba(201,164,106,.45); }
body.auth .auth-foot { color: rgba(216,181,122,.34); }
body.auth .auth-foot .dot { background: #c9a46a; box-shadow: 0 0 8px rgba(201,164,106,.9); }
body.auth:not(.auth-bare) .auth-card { background: rgba(28,20,15,.7); border: 1px solid rgba(201,164,106,.14); border-radius: 24px; padding: 30px; -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
body.auth:not(.auth-bare) .btn.primary { background: var(--brass); color: #1a120d; }
@media (prefers-reduced-motion: reduce) { .pole, .sigil .ring { animation: none !important; } }
/* tema terang: banner sambutan lebih cerah */
html[data-theme="light"] .welcome, html[data-theme="light"] .ipn .ipn-hero {
  color: #ffffff;
  background: radial-gradient(90% 140% at 95% -10%, rgba(255,255,255,.22) 0%, transparent 55%), linear-gradient(135deg, #2397a2 0%, #1d7a8c 55%, #22607e 100%);
}
html[data-theme="light"] .welcome p, html[data-theme="light"] .ipn .ipn-hero p { color: rgba(255,255,255,.82); }
html[data-theme="light"] .welcome::before, html[data-theme="light"] .ipn .ipn-hero::before { opacity: .5; }

/* ---------- halaman masuk v4: barbershop, latar terang lembut ---------- */
body.auth {
  color-scheme: light;
  --ink: #2b2018; --muted: #8a7663; --line: rgba(60,40,25,.16); --brand: #8e5f2a; --sea-soft: rgba(168,131,74,.12);
  --signal: #a8834a; --on-accent: #fffaf2; --err: #b33a2e; --ok: #3d7f4f; --warn: #a66a12;
  --brass: #a8834a; --oxblood: #9a3a33; --navy: #2a4a6b; --cream: #fbf6ee;
  background: #f4ece1; color: var(--ink);
}
body.auth .auth-bg { opacity: .2; }
body.auth .auth-glow { opacity: .8; filter: blur(80px);
  background: radial-gradient(30% 32% at 50% 36%, rgba(255,255,255,.95), transparent 70%),
              radial-gradient(22% 26% at 26% 72%, rgba(154,58,51,.10), transparent 70%),
              radial-gradient(22% 26% at 76% 70%, rgba(42,74,107,.12), transparent 70%); }
body.auth .auth-veil { background: radial-gradient(60% 65% at 50% 42%, rgba(244,236,225,0) 0%, rgba(244,236,225,.55) 70%, #ece1d1 100%); }
body.auth .auth-grain { opacity: .05; mix-blend-mode: multiply; }
.auth-bare .auth-card { background: linear-gradient(170deg, rgba(255,252,247,.86), rgba(250,244,235,.78)); border-color: rgba(120,90,60,.14);
  box-shadow: 0 40px 90px -45px rgba(90,60,30,.45), 0 2px 0 rgba(255,255,255,.7) inset; }
.auth-bare .auth-card::before { background: linear-gradient(150deg, rgba(168,131,74,.55), transparent 30%, transparent 70%, rgba(154,58,51,.35)); }
.pole { box-shadow: 0 6px 16px -8px rgba(154,58,51,.45); }
.sigil .ring text { fill: #8a6a3e; }
body.auth .sigil .orbit { border-color: rgba(168,131,74,.35); }
body.auth .sigil .orbit.o2 { border-top-color: rgba(168,131,74,.9); border-right-color: rgba(168,131,74,.2); }
body.auth .sigil .orbit.o2::after { background: var(--oxblood); box-shadow: 0 0 10px 1px rgba(154,58,51,.5); }
body.auth .sigil .mark { color: #2b2018; filter: drop-shadow(0 6px 10px rgba(90,60,30,.18)); }
.auth-bare .cipher { color: #9a7a4d; }
.auth-bare .cipher i { background: linear-gradient(90deg, transparent, rgba(168,131,74,.9), transparent); }
body.auth .form.bare input { color: var(--ink); border-bottom-color: rgba(60,40,25,.2); }
body.auth .form.bare input::placeholder { color: rgba(60,40,25,.42); }
body.auth .form.bare input:hover { border-color: rgba(60,40,25,.35); }
body.auth .form.bare input:focus { border-color: var(--brass); box-shadow: 0 1px 0 0 var(--brass); }
body.auth .form.bare input:-webkit-autofill { -webkit-text-fill-color: var(--ink); }
body.auth .go { border-color: rgba(168,131,74,.55); color: #6b4a22; background: rgba(255,255,255,.5); }
body.auth .go:hover, body.auth .go:focus-visible { background: var(--brass); border-color: var(--brass); color: #fffaf2; box-shadow: 0 12px 26px -10px rgba(168,131,74,.8); }
.auth-note { margin: 22px 0 0; text-align: center; font-size: 12.5px; color: var(--muted); }
body.auth .auth-foot { color: rgba(90,65,40,.5); }
body.auth .auth-foot .dot { background: #3d9a5b; box-shadow: 0 0 8px rgba(61,154,91,.7); }
body.auth .auth-card .alert { color: var(--err); }
body.auth .auth-card .alert.ok, body.auth .auth-card .alert.warn { color: var(--muted); }
body.auth .auth-card .quiet a { color: rgba(60,40,25,.45); }
body.auth .auth-card .quiet a:hover { color: var(--ink); }
body.auth:not(.auth-bare) .auth-card { background: rgba(255,252,247,.88); border-color: rgba(120,90,60,.14); box-shadow: 0 30px 70px -40px rgba(90,60,30,.4); }
body.auth:not(.auth-bare) .form input:not([type=checkbox]) { background: #fff; color: var(--ink); }
body.auth:not(.auth-bare) .btn.primary { background: var(--brass); color: #fffaf2; }
body.auth .btn { color: var(--ink); }
body.auth .qrbox canvas { filter: none; background: #fff; }
@media (max-width: 420px) { .auth-foot { letter-spacing: .08em; font-size: 10.5px; gap: 8px; } }

/* ---------- Crew List ---------- */
.ctabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 18px; padding: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); width: fit-content; max-width: 100%; }
.ctabs a { padding: 9px 18px; border-radius: 13px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; display: inline-flex; align-items: center; gap: 6px; }
.ctabs a:hover { background: var(--sea-soft); color: var(--ink); }
.ctabs a.on { background: linear-gradient(135deg, var(--sea), color-mix(in srgb, var(--sea) 70%, var(--brand-2))); color: var(--on-accent); box-shadow: 0 8px 18px -12px var(--sea); }
.ctabs .ctab-up { margin-left: 8px; border: 1px dashed var(--line); }
.cfilters { grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.cfilters label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 600; }
.cfilters label.wide { grid-column: 1 / -1; }
.cempty { text-align: center; padding: 48px 26px; }
.cprof-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cprof-head h2 { margin: 0; font-size: 22px; }
.cprof-head p { margin: 2px 0 0; }
.cprof-av { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 24px; font-weight: 700; color: var(--on-accent);
  background: linear-gradient(135deg, var(--sea), color-mix(in srgb, var(--sea) 60%, var(--brand-2))); flex: none; }
.cprof-act { margin-left: auto; display: flex; gap: 8px; }
.cprof-kv { grid-template-columns: 150px 1fr; margin-top: 20px; }
.cprof .sum { margin-top: 18px; }
.ctimeline { position: relative; display: grid; gap: 4px; margin-top: 10px; }
.ct-item { display: flex; gap: 14px; position: relative; padding: 8px 0 8px 4px; }
.ct-item i { width: 12px; height: 12px; border-radius: 50%; background: var(--sea); flex: none; margin-top: 5px; box-shadow: 0 0 0 4px var(--sea-soft); position: relative; z-index: 1; }
.ct-item:not(:last-child)::before { content: ""; position: absolute; left: 9.5px; top: 22px; bottom: -10px; width: 2px; background: var(--line); }
.ct-item div { display: grid; gap: 2px; }
.ct-item span { font-size: 13.5px; }
.cgrid { align-items: start; }
.cvoy { display: grid; gap: 10px; }
.cv-item { padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.cv-top { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13.5px; }
.cv-chg { margin-left: auto; font-size: 13px; }
.cv-chg .up { color: var(--ok); } .cv-chg .down { color: var(--err); }
.cv-names { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
td.mono, .mono { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; font-size: 12.8px; }
.cpre { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.cpre div { padding: 14px 16px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--line); }
.cpre b { display: block; font-size: 26px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.cpre span { font-size: 13px; color: var(--muted); }
.cpre .ok b { color: var(--ok); } .cpre .info b { color: var(--brand); } .cpre .err b { color: var(--err); }
.cinfo { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.chip { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--sea-soft); color: var(--brand); font-size: 13px; font-weight: 600; }
.cpre-act { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.cpre-act form { margin: 0; }
.cupload { display: grid; gap: 14px; }
.cdrop { position: relative; display: block; border: 2px dashed color-mix(in srgb, var(--brand) 35%, var(--line)); border-radius: 18px; padding: 28px 18px; text-align: center; cursor: pointer; transition: border-color .15s, background .15s; }
.cdrop:hover { border-color: var(--brand); background: var(--sea-soft); }
.cdrop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.cdrop span { display: grid; gap: 6px; justify-items: center; color: var(--ink); }
.cjobs { display: grid; gap: 8px; }
.cjob { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; margin: 0; }
.cjob div { flex: 1; min-width: 0; display: grid; }
.cjob b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tbl form.inline, td form.inline { display: inline; margin: 0; }
@media (max-width: 640px) { .cprof-act { margin-left: 0; } .cprof-kv { grid-template-columns: 1fr; } }
.btn.ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cprog { display: grid; gap: 8px; margin: 4px 0 12px; font-size: 13.5px; color: var(--muted); }
.cprog .bar { height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.cprog .bar i { display: block; height: 100%; width: 0; background: var(--sea); border-radius: 99px; transition: width .2s; }
/* crew list: pilih banyak pelabuhan & urutkan kolom */
.cport { display: grid; gap: 6px; font-size: 14px; font-weight: 600; position: relative; }
.cport .clab { font-size: 14px; }
.cmulti summary { list-style: none; cursor: pointer; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface-2); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmulti summary::-webkit-details-marker { display: none; }
.cmulti summary::after { content: "▾"; float: right; color: var(--muted); }
.cmulti[open] summary { border-color: var(--brand); }
.cmulti-pop { position: absolute; z-index: 30; left: 0; top: calc(100% + 6px); width: max(100%, 280px); max-height: 320px; overflow: auto; padding: 8px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow-lg); display: grid; gap: 2px; }
.cchk { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 9px; font-weight: 500; cursor: pointer; }
.cchk:hover { background: var(--sea-soft); }
.cchk input { width: 16px; height: 16px; accent-color: var(--sea); }
.cchk code { margin-left: auto; font-size: 11.5px; }
th.sortable a { color: inherit; text-decoration: none; white-space: nowrap; }
th.sortable a:hover { color: var(--brand); }
th.sortable.on a { color: var(--brand); }
th.sortable .arr { font-size: 10px; }
.filters .cmulti-pop label.cchk, .cfilters .cmulti-pop label.cchk { display: flex; flex-direction: row; align-items: center; gap: 10px; margin: 0; font-size: 14px; }
.cmulti-pop label.cchk input[type=checkbox] { width: 16px; height: 16px; min-width: 16px; padding: 0; margin: 0; flex: none; }
.crewauto { display: inline-flex; align-items: center; padding: 8px 14px; border-radius: 12px; font-size: 14px; font-weight: 600;
  color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--ok) 25%, transparent); }

/* Cek Silang Manifest */
.ctabs a.on small { color: inherit; opacity: .8; }
.tbl td .btn.sm { white-space: nowrap; }

/* ---- Menu Manifest ---- */
.mbar { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 24px; padding: 16px 20px; }
.mbar-form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; }
.mfield { display: grid; gap: 5px; position: relative; font-size: 13px; font-weight: 600; color: var(--muted); }
.mfield > span { font-size: 12.5px; letter-spacing: .01em; }
.mfield select, .mfield .cmulti summary { min-width: 190px; color: var(--ink); }
.mbar .btn { height: 44px; }
.mstatus { display: flex; flex-wrap: wrap; gap: 8px; }
.mpill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); text-decoration: none; }
.mpill b { color: var(--ink); }
.mpill.ok { color: var(--ok); background: color-mix(in srgb, var(--ok) 10%, var(--surface)); border-color: color-mix(in srgb, var(--ok) 25%, transparent); }
.mpill.bad { color: var(--warn); background: color-mix(in srgb, var(--warn) 10%, var(--surface)); border-color: color-mix(in srgb, var(--warn) 30%, transparent); }
.mwarn { display: flex; gap: 10px; align-items: flex-start; }
.mwarn .ic { flex: none; margin-top: 2px; }
.mwarn a { color: inherit; font-weight: 700; }
.mstats .stat small { display: block; margin-top: 4px; font-size: 13px; }
.mstats .stat b { font-size: 30px; }
.msec { font-size: 18px; margin: 6px 0 12px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; }
.msec small { font-size: 13px; font-weight: 500; }
.msmall { font-size: 13px; margin: 8px 0 14px; }
.mcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.mcard { --tone: var(--info); position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 18px 16px; border-radius: var(--r-lg); background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .15s, border-color .15s, box-shadow .15s; }
.mcard.err { --tone: var(--err); } .mcard.warn { --tone: var(--warn); } .mcard.info { --tone: var(--sea); }
.mcard::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 4px; border-radius: 0 4px 4px 0; background: var(--tone); }
.mcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--tone) 45%, var(--line)); box-shadow: var(--shadow-lg); }
.mcard b { font-size: 34px; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; margin-top: 6px; }
.mcard strong { font-size: 15px; }
.mcard p { margin: 2px 0 8px; font-size: 13px; color: var(--muted); line-height: 1.45; flex: 1; }
.mcard .mgo { font-size: 13px; font-weight: 700; color: var(--tone); }
.mlt { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; font-weight: 800; font-size: 14px;
  background: color-mix(in srgb, var(--tone, var(--sea)) 14%, transparent); color: var(--tone, var(--sea)); }
.mlt.sm { width: 22px; height: 22px; font-size: 12px; border-radius: 7px; }
.mbarpct { display: inline-block; width: 64px; height: 7px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; vertical-align: middle; }
.mbarpct.big { width: 100%; height: 10px; }
.mbarpct i { display: block; height: 100%; border-radius: 99px; background: var(--ok); }
.mbarpct i.warn { background: var(--warn); } .mbarpct i.err { background: var(--err); }
.mcomp { display: grid; grid-template-columns: 1fr 140px auto; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mcomp:last-of-type { border-bottom: 0; }
.mcomp > div { display: grid; gap: 2px; }
.mcomp small { font-size: 12.5px; }
.mcomp.solo { grid-template-columns: 1fr; border: 0; padding: 4px 0 12px; }
.mseg { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.mseg a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line);
  text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; box-shadow: var(--shadow); }
.mseg a em { font-style: normal; font-size: 12.5px; color: var(--muted); font-weight: 600; background: var(--surface-2); padding: 1px 8px; border-radius: 99px; }
.mseg a:hover { border-color: var(--brand); }
.mseg a.on { background: var(--brand); border-color: var(--brand); color: var(--on-accent, #fff); }
.mseg a.on em { background: color-mix(in srgb, #fff 22%, transparent); color: inherit; }
.mseg a.on .mlt { background: color-mix(in srgb, #fff 22%, transparent); color: inherit; }
.mhead { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; }
.mhead h2 { margin-bottom: 4px; }
.mhead h2 small { font-size: 14px; font-weight: 500; }
.mfilter { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 10px 0 4px; }
.mfilter input, .mfilter select { width: auto; min-width: 170px; padding-top: 9px; padding-bottom: 9px; }
.mfilter input[name=q] { flex: 1 1 220px; }
.msub { display: flex; gap: 6px; flex-wrap: wrap; margin: 14px 0 4px; border-bottom: 1px solid var(--line); }
.msub a { padding: 9px 12px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: 14px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.msub a.on { color: var(--ink); border-bottom-color: var(--brand); }
.msub a em { font-style: normal; font-size: 12.5px; color: var(--muted); }
.mlink { font-size: 12.5px; font-weight: 600; margin-left: 6px; white-space: nowrap; }
.msteps { margin: 10px 0 0; padding-left: 22px; display: grid; gap: 6px; font-size: 14.5px; }
.msteps.big { counter-reset: s; list-style: none; padding: 0; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; }
.msteps.big li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; }
.msteps.big li::before { content: counter(s); flex: none; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--sea-soft); color: var(--brand); font-weight: 800; }
.mkv { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 8px; }
.mkv div { background: var(--surface-2); border-radius: var(--r-sm); padding: 10px 12px; }
.mkv span { display: block; font-size: 12.5px; color: var(--muted); }
.mkv b { font-size: 20px; font-variant-numeric: tabular-nums; }
.mholes summary { cursor: pointer; font-weight: 600; font-size: 14px; margin: 6px 0; }
.mholes p { word-break: break-word; font-size: 12.5px; max-height: 220px; overflow: auto; background: var(--surface-2); padding: 10px; border-radius: var(--r-sm); }
@media (max-width: 640px) {
  .mbar { padding: 14px; }
  .mbar-form, .mfield { width: 100%; }
  .mfield select, .mfield .cmulti summary { min-width: 0; width: 100%; }
  .mbar .btn { width: 100%; }
  .mcomp { grid-template-columns: 1fr 80px auto; }
  .mfilter input, .mfilter select { min-width: 0; flex: 1 1 100%; }
}
.mcard .mnote { font-style: normal; font-weight: 600; color: var(--ink); }
.tbl td.mmsi { max-width: 260px; word-break: break-word; }

/* ---- Dashboard ---- */
:root, html[data-theme="light"] { --c1: #00879c; --c2: #e4673e; --c1-soft: rgba(0,135,156,.14); }
html[data-theme="dark"] { --c1: #14a0ad; --c2: #e06a3d; --c1-soft: rgba(20,160,173,.18); }
.dhero { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; padding: 24px 28px;
  border-radius: var(--r-lg); color: #fff; box-shadow: var(--shadow); position: relative; overflow: hidden;
  background: linear-gradient(120deg, #135f6b 0%, #1f7f8c 55%, #2a9aa0 100%); }
.dhero::after { content: ""; position: absolute; inset: 0; background: var(--contours) right center / 620px auto no-repeat; opacity: .16; pointer-events: none; }
.dhero > * { position: relative; z-index: 1; }
.dhero h2 { margin: 2px 0 4px; font-size: 28px; letter-spacing: -.02em; color: #fff; }
.dh-date { margin: 0; font-size: 13px; font-weight: 600; opacity: .8; text-transform: uppercase; letter-spacing: .06em; }
.dh-sub { margin: 0; opacity: .85; }
.dkpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 16px 20px; box-shadow: var(--shadow); display: grid; gap: 2px; }
.kpi-l { font-size: 13.5px; color: var(--muted); font-weight: 600; }
.kpi b { font-size: 32px; letter-spacing: -.03em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.kpi small { font-size: 12.5px; }
.kpi-tr { font-weight: 700; }
.kpi-tr.up { color: var(--ok); } .kpi-tr.down { color: var(--err); }
.dgrid { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; align-items: stretch; }
.dgrid > .card { margin: 0; }
.dcard.wide:only-child, .dgrid > .dcard:only-child { grid-column: 1 / -1; }
.dc-head { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.dc-head h2 { margin: 0; font-size: 17px; }
.dc-head > .muted { font-size: 13px; }
.dc-foot { margin: 12px 0 0; font-size: 13.5px; font-weight: 600; }
.dempty { padding: 24px 0; text-align: center; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.ch-grid { stroke: var(--line); stroke-width: 1; }
.ch-grid.base { stroke: color-mix(in srgb, var(--muted) 45%, var(--line)); }
.ch-ax { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.ch-area { fill: var(--c1-soft); }
.ch-line { fill: none; stroke: var(--c1); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.ch-hit rect { fill: transparent; }
.ch-hit .ch-cross { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; opacity: 0; }
.ch-hit .ch-dot { fill: var(--c1); stroke: var(--surface); stroke-width: 2; opacity: 0; }
.ch-hit.on .ch-cross, .ch-hit.on .ch-dot { opacity: 1; }
.ch-hit .ch-slot { fill: transparent; }
.ch-hit.on .ch-slot { fill: var(--sea-soft); }
.chart .c1 { fill: var(--c1); } .chart .c2 { fill: var(--c2); }
.ch-tip { position: fixed; z-index: 100; pointer-events: none; max-width: 300px; padding: 7px 11px; border-radius: 10px; font-size: 12.5px; font-weight: 600;
  background: var(--ink); color: var(--surface); box-shadow: var(--shadow-lg); }
.legend { display: inline-flex; gap: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.lg.c1 { background: var(--c1); } .lg.c2 { background: var(--c2); }
.hbars { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.hbars li > a, .hbars li > div { display: grid; grid-template-columns: minmax(0, 46%) 1fr auto; align-items: center; gap: 10px; padding: 7px 8px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.hbars li > a:hover, .hbars li.on > * { background: var(--sea-soft); }
.hb-l { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hb-l small { display: block; font-weight: 500; color: var(--muted); }
.hb-t { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.hb-t i { display: block; height: 100%; border-radius: 0 4px 4px 0; }
.hb-t i.c1 { background: var(--c1); } .hb-t i.c2 { background: var(--c2); }
.hbars b { font-size: 13.5px; font-variant-numeric: tabular-nums; min-width: 32px; text-align: right; }
.dq-g { margin: 14px 0 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.dq-g:first-of-type { margin-top: 2px; }
.dquick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.dq { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: var(--ink);
  font-weight: 600; font-size: 14px; background: var(--surface); transition: border-color .15s, transform .15s, background .15s; }
.dq:hover { border-color: var(--brand); background: var(--sea-soft); transform: translateY(-1px); }
.dq-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--sea-soft); color: var(--brand); }
.dq em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--c2); color: #fff; }
.dfeed { list-style: none; margin: 0; padding: 0; display: grid; }
.dfeed li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.dfeed li:last-child { border-bottom: 0; }
.df-ic { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); color: var(--brand); }
.dfeed b { display: block; font-size: 14px; }
.dfeed small { font-size: 12.5px; }
@media (max-width: 980px) { .dgrid { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .dhero { padding: 20px; } .dhero h2 { font-size: 23px; } .dhero .btn { width: 100%; }
  .dkpi { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 14px; } .kpi b { font-size: 24px; }
  .ch-ax { font-size: 19px; }
  .hbars li > a, .hbars li > div { grid-template-columns: minmax(0, 48%) 1fr auto; }
}

/* Lengkapi otomatis */
.afcard .mkv { margin: 14px 0 6px; }
.afcard .mkv small { display: block; font-size: 12px; }
.afform { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; padding: 14px; margin: 12px 0; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--surface-2); }
.afform .mfield select, .afform .mfield input { min-width: 130px; background: var(--surface); }
.afsw { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; height: 44px; padding-right: 8px; }
.afsw input { width: 20px; height: 20px; }
.afact { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 8px; }

/* Kelola Menu: akses per role */
.rchecks { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.roles .check.dis { opacity: .75; }
.roles .hint { margin: 10px 0 0; font-size: 13px; }
.rbadges { display: flex; flex-wrap: wrap; gap: 4px; }
.rb { font-size: 11.5px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: var(--muted); background: var(--surface-2); text-decoration: line-through; opacity: .7; }
.rb.on { color: var(--ok); background: color-mix(in srgb, var(--ok) 13%, transparent); text-decoration: none; opacity: 1; }

/* Analisa Muatan */
.mpair { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.mpair:last-of-type { border-bottom: 0; }
.mpair > a { display: grid; text-decoration: none; color: var(--ink); }
.mpair > a small { font-size: 12px; }
.mp-bars { display: grid; gap: 5px; }
.mp-bars span { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 8px; }
.mp-bars i { display: block; height: 10px; border-radius: 0 4px 4px 0; min-width: 2px; }
.mp-bars i.c1 { background: var(--c1); } .mp-bars i.c2 { background: var(--c2); }
.mp-bars em { font-style: normal; font-size: 12.5px; font-weight: 700; font-variant-numeric: tabular-nums; min-width: 70px; text-align: right; }
.mp-bars span { grid-template-columns: minmax(0, 1fr) auto; }
.kpi.sm b { font-size: 26px; }

/* Rentang bulan */
.mquick { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; width: 100%; order: 3; }
.mquick a { padding: 4px 11px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); text-decoration: none; color: var(--ink); font-weight: 600; }
.mquick a:hover { border-color: var(--brand); color: var(--brand); }
.mmon { display: inline-flex; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--sea-soft); padding: 1px 8px; border-radius: 99px; margin-top: 3px; }
.mcmp td a { text-decoration: none; font-weight: 600; }
.mcmp tr.mtot td { border-top: 2px solid var(--line); }
.mcmp small.kpi-tr { margin-left: 6px; font-size: 11.5px; }

/* Bilah periode (menu Manifest): jendela pilihan bulan seperti pilihan pelabuhan */
.mbar.card { display: block; padding: 16px 20px; }
.mrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; }
.mrow .mfield { min-width: 260px; }
.mrow .mfield .cmulti summary { min-width: 0; width: 100%; color: var(--ink); font-weight: 600; }
.mrow .btn { height: 44px; }
.mrow .mstatus { margin-left: auto; }
.mfield-per .cmulti summary::before { content: ""; display: inline-block; width: 15px; height: 15px; margin-right: 8px; vertical-align: -2px; border: 1.8px solid var(--muted); border-radius: 4px; border-top-width: 4px; }
.mpick-pop { width: 360px !important; max-height: none !important; padding: 14px !important; display: grid; gap: 12px; }
.mper-hint { margin: 0; font-size: 13px; color: var(--muted); }
.mper-hint.on { color: var(--brand); font-weight: 700; }
.myear { display: grid; gap: 6px; }
.myear-n { font-size: 13px; color: var(--muted); letter-spacing: .04em; }
.mmonths { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mm { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 10px; padding: 9px 4px; font: inherit; font-size: 13.5px; font-weight: 600;
  cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: background .12s, border-color .12s, color .12s; }
.mm:hover:not(:disabled) { border-color: var(--brand); }
.mm:disabled { cursor: not-allowed; color: color-mix(in srgb, var(--muted) 55%, transparent); background: var(--surface-2); border-style: dashed; }
.mm.in, .mm.preview { background: var(--sea-soft); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); color: var(--brand); }
.mm.start, .mm.end, .mm.pending { background: var(--brand); border-color: var(--brand); color: var(--on-accent, #fff); }
.mpick-pop .mquick { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 10px; border-top: 1px solid var(--line); width: auto; order: 0; }
@media (max-width: 640px) {
  .mrow .mfield, .mrow .btn { width: 100%; min-width: 0; }
  .mrow .mstatus { margin-left: 0; }
  .mpick-pop { width: min(360px, calc(100vw - 48px)) !important; }
}
.mempty { text-align: center; display: grid; justify-items: center; gap: 6px; padding: 38px 24px; }
.mempty p { max-width: 640px; margin: 4px 0; }
.mper-ic.big { width: 64px; height: 64px; border-radius: 20px; }

/* ---- AIS Kapal ---- */
.aisbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 18px; }
.aisbar-l, .aisbar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.aisbar-l small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.aisbar-l b { font-size: 22px; font-variant-numeric: tabular-nums; }
.aisbar-r input { width: 280px; }
.aisbar-r select { width: auto; }
.aisnote { font-size: 13px; }
.aislayout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; margin-bottom: 18px; }
.aislayout > .card { margin: 0; }
.aismapcard { padding: 12px; }
.aismap { position: relative; height: 620px; border-radius: 16px; overflow: hidden; background: #d4dadc; touch-action: none; user-select: none; cursor: grab; }
.aismap.tall { height: 480px; }
.aismap.drag { cursor: grabbing; }
.am-tiles, .am-tiles img { position: absolute; left: 0; top: 0; }
.am-tiles img { width: 256px; height: 256px; max-width: none; }
html[data-theme="dark"] .am-tiles { filter: invert(.92) hue-rotate(180deg) brightness(.95) contrast(.9); }

.am-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.am-zoom { position: absolute; right: 12px; top: 12px; display: grid; gap: 4px; }
.am-zoom button { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 20px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); }
.am-tip { position: absolute; pointer-events: none; padding: 5px 9px; border-radius: 8px; background: var(--ink); color: var(--surface); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.am-attr { position: absolute; right: 0; bottom: 0; padding: 2px 8px; font-size: 11px; background: rgba(255,255,255,.8); color: #333; border-top-left-radius: 8px; }
.am-attr a { color: #333; }
.aislegend { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; padding: 12px 6px 4px; font-size: 13px; font-weight: 600; }
.aislegend label { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; }
.aislegend em { font-style: normal; color: var(--muted); font-weight: 600; }
.aislegend .muted { font-weight: 500; font-size: 12.5px; }
.sw { width: 12px; height: 12px; border-radius: 50%; display: inline-block; border: 1.5px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.sw-kargo { background: #3b73d9; } .sw-tanker { background: #d0573a; } .sw-penumpang { background: #8e5bd6; } .sw-tug { background: #1f9a6e; } .sw-lain { background: #8a929a; }
.aisside h2 { margin-top: 0; }
.aisside h3 { margin: 0 0 8px; font-size: 18px; }
.aisdl { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 7px 10px; margin: 0; font-size: 14px; }
.aisdl dt { color: var(--muted); font-weight: 600; }
.aisdl dd { margin: 0; overflow-wrap: anywhere; }
.aisact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.aisbox { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.kpi-st .badge { font-size: 14px; padding: 4px 12px; }
.mseg.sm a { padding: 6px 11px; font-size: 13px; box-shadow: none; }
@media (max-width: 1100px) { .aislayout { grid-template-columns: minmax(0, 1fr); } .aismap { height: 480px; } }
@media (max-width: 640px) { .aisbar-r input { width: 100%; } .aisbox { grid-template-columns: repeat(2, minmax(0, 1fr)); } .aismap { height: 420px; } }

/* =====================================================================
   Tampilan HP (≤ 640px) — dirapikan untuk semua menu
   ===================================================================== */
fieldset { min-width: 0; }
.msteps.big li { display: block; position: relative; padding-left: 42px; min-height: 30px; padding-top: 3px; }
.msteps.big li::before { position: absolute; left: 0; top: 0; }
@media (max-width: 960px) {
  .grid2, .form.row3, .form.inline { grid-template-columns: minmax(0, 1fr); }
}
.cf-toggle { display: none; }
@media (max-width: 640px) {
  body { font-size: 14.5px; }
  .shell { padding: 8px; }
  .content { padding: 0 0 24px; }
  .topbar { margin-bottom: 14px; padding: 6px 8px; border-radius: 16px; gap: 8px; }
  .tb-title { font-size: 16px; }
  .burger { width: 38px; height: 38px; }
  .card { padding: 16px; border-radius: 20px; margin-bottom: 14px; }
  .card h2 { font-size: 17px; }
  .card .sub { font-size: 13.5px; margin-bottom: 12px; }
  .grid2, .dgrid { gap: 14px; margin-bottom: 14px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .stat { padding: 14px; border-radius: 16px; }
  .stat b { font-size: 24px; }
  .stat span { font-size: 13px; }
  .mcards { grid-template-columns: minmax(0, 1fr) !important; gap: 10px; }
  .mcard b { font-size: 30px; }
  .mseg { gap: 6px; }
  .mseg a { padding: 7px 11px; font-size: 13.5px; }
  .ctabs { width: 100%; }
  .ctabs a { padding: 8px 12px; font-size: 14px; }
  .ctabs .ctab-up { margin-left: 0; }
  .mhead > .btn, .mhead > form { width: 100%; }
  .mhead > .btn { justify-content: center; }
  .actions .btn { flex: 1 1 auto; }
  .pager .pg { min-width: 34px; padding: 6px 10px; }
  .footnote { font-size: 12px; }
  .msteps.big { grid-template-columns: minmax(0, 1fr); }
  .aisbox { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .aisbar-l b { font-size: 20px; }
  .aisbar-r, .aisbar-r input, .aisbar-r select { width: 100%; }
  .aisdl { grid-template-columns: 96px minmax(0, 1fr); font-size: 13.5px; }
  .kpi { padding: 12px 14px; }

  /* filter panjang (Database Crew List) dilipat, dibuka dengan tombol */
  .cf-toggle { display: flex; width: 100%; justify-content: space-between; margin-bottom: 12px; }
  .cf-toggle em { font-style: normal; font-size: 12.5px; font-weight: 700; padding: 1px 9px; border-radius: 99px; background: var(--sea-soft); color: var(--brand); }
  form.cf-closed { display: none !important; }

  /* tabel → kartu per baris */
  .tablewrap:has(> table.tcard) { overflow: visible; margin: 0; padding: 0; }
  table.tcard, table.tcard tbody, table.tcard tr, table.tcard td { display: block; width: 100%; }
  table.tcard thead { display: none; }
  table.tcard tbody tr { border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; margin-bottom: 10px; background: var(--surface); }
  table.tcard tbody tr:hover { background: var(--surface); }
  table.tcard td { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 4px 0 !important; border: 0 !important;
    text-align: right; font-size: 14px; max-width: none !important; white-space: normal; overflow-wrap: anywhere; }
  table.tcard td::before { content: attr(data-label); flex: none; max-width: 46%; text-align: left; color: var(--muted); font-size: 12.5px; font-weight: 600; }
  table.tcard td:not([data-label])::before, table.tcard td[data-label=""]::before { display: none; }
  table.tcard td:first-child { display: block; text-align: left; font-size: 15px; padding: 0 0 8px !important; margin-bottom: 4px; border-bottom: 1px solid var(--line) !important; }
  table.tcard td:first-child::before { display: none; }
  table.tcard td.tc-empty { display: none; }
  table.tcard td.num { font-variant-numeric: tabular-nums; }
  table.tcard td.acts, table.tcard td:last-child:has(> .btn, > form) { justify-content: flex-end; flex-wrap: wrap; }
  table.tcard td.acts::before { display: none; }
  table.tcard tr.mtot { background: var(--sea-soft); }
  table.tcard .mbarpct { width: 90px; }
}
@media (max-width: 640px) {
  table.tcard .tc-v { display: block; min-width: 0; }
  table.tcard .tc-v small, table.tcard .tc-v br + * { display: inline; }
  .mrow details.cmulti, .mbar details.cmulti { display: block; width: 100%; }
  .mrow .cmulti summary { padding-right: 34px; }
  .mpick-pop { left: 0; right: auto; }
}
.mper-form .mrow { flex: 1 1 100%; width: 100%; }
@media (max-width: 640px) { .mper-form .mrow .mfield { flex: 1 1 100%; } }
@media (max-width: 640px) { table.tcard td.acts { display: flex; } }

/* Backup & Pulihkan */
.kpi b.kpi-sm { font-size: 20px; line-height: 1.3; }
.bklist { margin: 6px 0 14px; padding-left: 4px; list-style: none; display: grid; gap: 8px; font-size: 14px; }
.bklist li { padding-left: 4px; }
.bkinfo { white-space: pre-wrap; font-size: 12.5px; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 12px; overflow-x: auto; margin: 0 0 12px; }
.bkrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 12px; }
@media (max-width: 640px) { .bkrow { grid-template-columns: minmax(0, 1fr); } }
.afj { display: flex; gap: 6px 14px; flex-wrap: wrap; height: 44px; align-items: center; }
.afj label.check { font-size: 14px; color: var(--ink); font-weight: 600; }
@media (max-width: 640px) { .afj { height: auto; } }
.afj input[type=checkbox] { min-width: 0 !important; width: 17px; flex: none; }
.afstat { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 4px 0 6px; font-size: 14px; }
.afstat > div { display: inline-flex; align-items: center; gap: 8px; }

/* Kelola Menu: struktur seret-lepas */
.mtree, .mkids { list-style: none; margin: 0; padding: 0; }
.mtree { display: grid; gap: 8px; }
.mkids { display: grid; gap: 6px; margin: 6px 0 2px 34px; padding-left: 12px; border-left: 2px solid var(--line); min-height: 6px; }
.mitem { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.mkids > .mitem { border-radius: 12px; }
.mitem.mgroup { background: var(--surface-2); padding-bottom: 8px; }
.mitem.off .mname b { opacity: .55; }
.mrow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; gap: 8px 12px; align-items: center; padding: 8px 10px; }
.mname { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; }
.mname small { flex-basis: 100%; padding-left: 21px; }
.mrow .rbadges { max-width: 230px; }
.mrow .acts { justify-content: flex-end; }
.mgrip { width: 34px; height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-size: 20px; line-height: 1; cursor: grab; touch-action: none; }
.mgrip:hover { background: var(--sea-soft); color: var(--brand); }
.mgrip-demo { display: inline-block; padding: 0 5px; border-radius: 6px; background: var(--sea-soft); color: var(--brand); font-weight: 700; }
.mmove { display: inline-flex; gap: 4px; }
.mmove .btn { padding: 4px 9px; }
.mitem.dragging { position: fixed; z-index: 90; pointer-events: none; box-shadow: var(--shadow-lg); opacity: .96; cursor: grabbing; }
.mitem.dragging.collapsed > .mkids { display: none; }
.mph { border: 2px dashed color-mix(in srgb, var(--brand) 55%, var(--line)); border-radius: 14px; background: var(--sea-soft); }
.mtree.sorting .mkids.mdrop { background: color-mix(in srgb, var(--sea-soft) 60%, transparent); border-left-color: var(--brand); min-height: 26px; border-radius: 0 10px 10px 0; }
.mitem.moved { animation: mflash .9s ease; }
@keyframes mflash { 0% { box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 45%, transparent); } 100% { box-shadow: none; } }
.msave { font-size: 13px; font-weight: 600; }
.msave.ok { color: var(--ok); } .msave.err { color: var(--err); }
body:has(.mitem.dragging) { user-select: none; }
/* tata letak baris mengikuti lebar kartu (bukan lebar layar) */
.mtree { container-type: inline-size; }
.mrow { grid-template-columns: auto minmax(0, 1fr); align-items: start; }
.mrow .mgrip { grid-row: span 3; align-self: center; }
.mrow .mname, .mrow .rbadges, .mrow .acts { grid-column: 2; justify-content: flex-start; max-width: none; }
@container (min-width: 560px) {
  .mrow { grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; row-gap: 6px; }
  .mrow .mgrip { grid-row: span 2; }
  .mrow .mname { grid-column: 2 / 4; }
  .mrow .rbadges { grid-column: 2; }
  .mrow .acts { grid-column: 3; justify-content: flex-end; }
}
@container (min-width: 820px) {
  .mrow { grid-template-columns: auto minmax(0, 1fr) auto auto; }
  .mrow .mgrip { grid-row: auto; }
  .mrow .mname { grid-column: 2; }
  .mrow .rbadges { grid-column: 3; max-width: 240px; }
  .mrow .acts { grid-column: 4; }
}
}
@media (max-width: 640px) { .mkids { margin-left: 14px; padding-left: 8px; } .mrow { padding: 8px 6px; } }
.mrow .acts { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mrow .acts .btn, .mrow .acts form { flex: none; width: auto; }
.mgrid { grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.6fr); }
@media (max-width: 1100px) { .mgrid { grid-template-columns: minmax(0, 1fr); } }
.cchk-all { border-bottom: 1px solid var(--line); padding-bottom: 8px !important; margin-bottom: 4px !important; }

/* CCTV */
.cctvbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 18px; padding: 14px 18px; }
.cctvbar-l, .cctvbar-r { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.cctvbar-l small { display: block; font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.cctvbar-l b { font-size: 20px; }
.cctv-live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 800; letter-spacing: .08em; color: var(--err); background: color-mix(in srgb, var(--err) 11%, transparent); padding: 3px 10px; border-radius: 99px; }
.cctv-live i { width: 8px; height: 8px; border-radius: 50%; background: var(--err); animation: cblink 1.4s ease-in-out infinite; }
@keyframes cblink { 50% { opacity: .25; } }
.cctv-lay { display: inline-flex; gap: 4px; }
.cctvgrid { --cols: 2; display: grid; grid-template-columns: repeat(var(--cols), minmax(0, 1fr)); gap: 16px; margin-bottom: 16px; }
.cctvcard { margin: 0; padding: 14px; }
.cctv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.cctv-head h2 { margin: 0; font-size: 16px; }
.cctv-acts { display: flex; gap: 6px; flex: none; }
.cctv-acts .btn { padding: 6px 9px; }
.cctv-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: #0b1114; }
.cctv-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #0b1114; }
.cctv-frame:fullscreen { border-radius: 0; aspect-ratio: auto; }
.cctv-paused { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; color: #b9c6cb; font-size: 13.5px; background: #0b1114; }
@media (max-width: 760px) { .cctvgrid { grid-template-columns: minmax(0, 1fr) !important; } .cctv-lay { display: none; } .cctvcard { padding: 10px; } }
@media (prefers-reduced-motion: reduce) { .cctv-live i { animation: none; } }
.cctv-paused[hidden] { display: none; }
.cctv-g { margin: 14px 0 4px; align-items: center; } .cctv-g h3 { margin: 0; font-size: 15px; display: flex; align-items: center; gap: 6px; }
.cctv-n { font-size: 13px; }

/* Data kapal (Kemenhub) di rincian kapal */
.vesbox { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
.vesbox h2 { margin: 0 0 10px; }
.vesbox [data-ves].vesbusy { opacity: .55; pointer-events: none; }
.vesbox .vesh { margin: 18px 0 8px; font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.vesroute { display: grid; gap: 8px; margin-bottom: 10px; }
.vesport { display: grid; gap: 2px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 14px; position: relative; }
.vesport b { font-size: 15px; padding-right: 48px; }
.vesport > small { display: block; }
.vestag { position: absolute; top: 9px; right: 10px; font: 600 11px/1 ui-monospace, monospace; padding: 4px 6px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }
.vesbar { height: 6px; border-radius: 99px; background: var(--line); overflow: hidden; margin: 0 12px; }
.vesbar i { display: block; height: 100%; background: var(--sea); border-radius: inherit; }
.vesfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 0; }

/* Mode & pemasangan skrip data kapal Kemenhub */
.vesmode { border: 1px solid var(--line); border-radius: 14px; padding: 10px 14px 12px; background: var(--surface-2); display: grid; gap: 10px; }
.vesmode legend { font-size: 13.5px; font-weight: 600; padding: 0 6px; }
.vesmode .radio { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-weight: 500; font-size: 14px; cursor: pointer; }
.vesmode .radio input { margin-top: 3px; }
.vesinstall { margin-top: 18px; padding: 14px 16px; border: 1px dashed var(--line); border-radius: 14px; background: var(--surface-2); }
.vesinstall h3 { margin: 0 0 6px; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.vessteps { margin: 8px 0 12px; padding-left: 20px; display: grid; gap: 5px; font-size: 14px; }
.vessteps b { font-weight: 600; }
.veswait { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 14px; padding: 6px 0; }
.spin { width: 15px; height: 15px; border: 2px solid var(--line); border-top-color: var(--sea); border-radius: 50%; animation: vesspin .8s linear infinite; flex: none; }
@keyframes vesspin { to { transform: rotate(360deg); } }

/* Rekaman CCTV */
.recgen { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.recform .reccam { }
.recrow { margin: 4px 0 10px; }
.recurl { display: flex; gap: 8px; }
.recurl input { flex: 1; min-width: 0; }
.rectime { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 320px; }
.recdays { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 12px 0 4px; }
.recdays-l { color: var(--muted); font-weight: 600; font-size: 14px; }
.recday { position: relative; cursor: pointer; }
.recday input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.recday span { display: inline-block; padding: 6px 11px; border: 1px solid var(--line); border-radius: 99px; font-size: 13px; font-weight: 600; color: var(--muted); }
.recday input:checked + span { background: var(--sea); color: var(--on-accent, #fff); border-color: var(--sea); }
.reclist { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 12px; }
.reclist h3 { margin: 0 0 8px; font-size: 15px; }
.recday-g { margin: 12px 0 4px; font-size: 14px; }
.rectbl td { vertical-align: middle; }
.rectbl tr.reclive { background: var(--sea-soft); }
.recsave { position: sticky; bottom: 0; padding: 12px 0; background: linear-gradient(transparent, var(--bg) 40%); display: flex; justify-content: flex-end; }
.recplayer { border: none; border-radius: 16px; padding: 0; max-width: min(900px, 94vw); width: 900px; background: #0b0f11; color: #fff; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.recplayer::backdrop { background: rgba(0,0,0,.6); }
.recplayer-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; }
.recplayer video { width: 100%; display: block; max-height: 74vh; background: #000; border-radius: 0 0 16px 16px; }
@media (max-width: 560px) { .rectime { grid-template-columns: 1fr; } }
.kacts { display: flex; flex-wrap: wrap; gap: 8px; }

/* Per Kapal (SL vs Manifest): warna seri ke-3 + angka peringatan */
:root, html[data-theme="light"] { --c3: #2e9e5b; }
html[data-theme="dark"] { --c3: #3fb873; }
.chart .c3 { fill: var(--c3); }
.lg.c3 { background: var(--c3); }
.kpi b.warnnum { color: var(--warn); }
.kfilter input { min-width: 180px; }
