/* Lobo Padel Academy — tampilan app.
   Aturan: tanpa garis aksen berwarna di tepi kartu (pakai latar & judul), target
   sentuh >= 44px, input >= 16px, kontras teks >= 4.5:1, fokus keyboard terlihat,
   status selalu berlabel (bukan warna saja). Tema ikut perangkat (terang/gelap). */
:root {
  --bg: #eef0f3; --surface: #ffffff; --surface-2: #f3f5f7; --surface-3: #e5e8ed;
  --ink: #111418; --muted: #586170; --line: #dde1e7;
  --brand: #111418; --brand-ink: #ffffff; --brand-soft: #e7eaee;
  --accent: #c6ec3a; --accent-ink: #1a2200;
  --hero: #15191d; --hero-ink: #ffffff;
  --ok: #17703f; --ok-soft: #e3f3e8; --warn: #8a5a00; --warn-soft: #fbf0d6;
  --danger: #b42318; --danger-soft: #fbe6e3; --info: #1d4e89; --info-soft: #e3ecf8;
  --focus: #2563eb; --shadow: 0 1px 2px rgba(17, 20, 24, .05), 0 8px 24px rgba(17, 20, 24, .06);
  --r: 18px; --r-sm: 12px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1113; --surface: #181b1f; --surface-2: #20242a; --surface-3: #2a2f36;
    --ink: #eef1f4; --muted: #a3acb8; --line: #2e333a;
    --brand: #eef1f4; --brand-ink: #111418; --brand-soft: #262b31;
    --accent: #c6ec3a; --accent-ink: #1a2200;
    --hero: #1d2227; --hero-ink: #ffffff;
    --ok: #63d394; --ok-soft: #1b3324; --warn: #f0c060; --warn-soft: #3a2f16;
    --danger: #ff8a7a; --danger-soft: #3d1f1b; --info: #8fb8f2; --info-soft: #1c2a3d;
    --focus: #8ab4ff; --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; min-height: 100vh;
}
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.25; margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ikon { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.muted { color: var(--muted); }
.kecil { font-size: 14px; }
.tebal { font-weight: 650; }
.angka { font-variant-numeric: tabular-nums; }

/* ---------- kerangka */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; overflow-y: auto; background: var(--surface); border-right: 1px solid var(--line); padding: 20px 14px; display: flex; flex-direction: column; gap: 4px; }
.merek { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; }
.merek-tanda { width: 38px; height: 38px; border-radius: 10px; background: var(--ink); color: var(--bg); display: grid; place-items: center; font-weight: 800; letter-spacing: .02em; }
.merek-nama { font-weight: 800; letter-spacing: .04em; font-size: 14px; line-height: 1.2; }
.merek-sub { font-size: 12px; color: var(--muted); }
.nav-item { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 0 12px; border-radius: var(--r-sm); text-decoration: none; color: var(--ink); font-weight: 550; }
.nav-item:hover { background: var(--surface-2); }
.nav-item[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.nav-item .lencana { margin-left: auto; }
.sidebar-bawah { margin-top: auto; padding-top: 16px; border-top: 1px solid var(--line); }
.pengguna { display: flex; gap: 10px; align-items: center; padding: 8px 10px; }
.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
.utama-kol { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .judul-top { font-weight: 700; font-size: 17px; margin-right: auto; }
.isi { padding: 24px; max-width: 1180px; width: 100%; margin: 0 auto; }
.bottombar { display: none; }

@media (max-width: 899px) {
  .shell { grid-template-columns: 1fr; }
  .sidebar { display: none; }
  .topbar { padding: 8px 12px; }
  .isi { padding: 16px 16px 96px; }
  .bottombar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .bottombar a, .bottombar button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 54px; font-size: 11.5px; font-weight: 600; color: var(--muted); text-decoration: none; background: none; border: 0; border-radius: 10px; position: relative; }
  .bottombar [aria-current="page"] { color: var(--accent-ink); background: var(--accent); }
  .bottombar .lencana { position: absolute; top: 4px; right: 18%; }
}

/* ---------- komponen dasar */
.judul-hal { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 18px; }
.judul-hal h1 { font-size: 26px; letter-spacing: -.01em; }
.judul-hal .sub { color: var(--muted); margin-top: 4px; }
.judul-hal .aksi { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.kartu { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); }
.kartu + .kartu { margin-top: 16px; }
.grid-2 > .kartu + .kartu, .grid-3 > .kartu + .kartu, .bento > * + * { margin-top: 0; }
.kartu h2 { font-size: 17px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.kartu h2 .aksi { margin-left: auto; font-size: 14px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 899px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.tumpuk > * + * { margin-top: 16px; }
.grid-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; }
.kpi .lbl { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .nil { font-size: 24px; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi .ket { font-size: 13px; color: var(--muted); }
.tombol { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; }
.tombol:hover { background: var(--surface-2); }
.tombol.utama { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.tombol.utama:hover { filter: brightness(1.08); }
.tombol.bahaya { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.tombol.teks { background: none; border-color: transparent; color: var(--brand); padding: 0 10px; }
.tombol.kecil { min-height: 36px; padding: 0 12px; font-size: 14px; }
@media (pointer: coarse) { .tombol.kecil { min-height: 44px; } }
.tombol[disabled], .tombol[aria-busy="true"] { opacity: .55; cursor: not-allowed; }
.ikon-tombol { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 0; background: none; color: var(--ink); cursor: pointer; position: relative; }
.ikon-tombol:hover { background: var(--surface-2); }
.lencana { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--danger); color: #fff; font-size: 12px; font-weight: 700; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 650; background: var(--surface-2); color: var(--ink); white-space: nowrap; }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.bahaya { background: var(--danger-soft); color: var(--danger); }
.chip.info { background: var(--info-soft); color: var(--info); }
.chip.merek { background: var(--brand-soft); color: var(--brand); }
.titik { width: 10px; height: 10px; border-radius: 50%; display: inline-block; flex: none; }

/* daftar baris */
.daftar { display: flex; flex-direction: column; }
.baris { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.baris:first-child { border-top: 0; }
.baris .utama-teks { min-width: 0; flex: 1; }
.baris .judul-baris { font-weight: 650; }
.baris .ket { font-size: 14px; color: var(--muted); }
.baris .aksi-baris { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 640px) { .baris { flex-wrap: wrap; } .baris .aksi-baris { width: 100%; justify-content: flex-start; } }
.waktu-blok { width: 64px; flex: none; text-align: center; border-radius: 10px; background: var(--surface-2); padding: 6px 4px; }
.waktu-blok .j { font-weight: 750; font-variant-numeric: tabular-nums; }
.waktu-blok .t { font-size: 12px; color: var(--muted); }
.kosong { text-align: center; padding: 28px 12px; color: var(--muted); }
.kosong .ikon { width: 32px; height: 32px; margin-bottom: 8px; }
.kosong p { margin: 4px 0; }
.galat-panel { background: var(--danger-soft); color: var(--danger); border-radius: var(--r); padding: 16px; display: flex; gap: 12px; align-items: flex-start; }
.galat-panel .tombol { margin-top: 10px; }
.pesan { border-radius: var(--r-sm); padding: 12px 14px; font-size: 15px; display: flex; gap: 10px; align-items: flex-start; }
.pesan.info { background: var(--info-soft); color: var(--info); }
.pesan.warn { background: var(--warn-soft); color: var(--warn); }
.pesan.bahaya { background: var(--danger-soft); color: var(--danger); }
.pesan.ok { background: var(--ok-soft); color: var(--ok); }
.memuat { display: grid; gap: 12px; }
.kerangka { height: 72px; border-radius: var(--r); background: linear-gradient(90deg, var(--surface-2), var(--surface-3), var(--surface-2)); background-size: 200% 100%; animation: kilau 1.2s infinite linear; }
@keyframes kilau { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .kerangka { animation: none; } }
.putar { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: putar .8s linear infinite; }
@keyframes putar { to { transform: rotate(360deg); } }

/* tabel */
.tabel-bungkus { overflow-x: auto; }
table.tabel { width: 100%; border-collapse: collapse; font-size: 15px; }
.tabel th { text-align: left; font-size: 13px; color: var(--muted); font-weight: 650; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tabel td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tabel .num { text-align: right; font-variant-numeric: tabular-nums; }

/* form */
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 6px; }
.field > span, .field > label { font-weight: 650; font-size: 14px; }
.field .bantu { font-size: 13px; color: var(--muted); font-weight: 400; }
.input, select.input, textarea.input { width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 16px; }
textarea.input { min-height: 96px; resize: vertical; line-height: 1.5; }
.input:focus { outline: 3px solid color-mix(in srgb, var(--focus) 45%, transparent); border-color: var(--focus); }
.dua-kolom { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 560px) { .dua-kolom { grid-template-columns: 1fr; } }
.cek { display: flex; gap: 10px; align-items: center; min-height: 44px; }
.cek input { width: 20px; height: 20px; accent-color: var(--brand); }
.pilih-chip { display: flex; flex-wrap: wrap; gap: 8px; }
.pilih-chip button { min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.pilih-chip button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
@media (pointer: coarse) { .pilih-chip button { min-height: 44px; } }
.galat-isian { color: var(--danger); font-size: 14px; }
.pemain-pilih { max-height: 260px; overflow-y: auto; border: 1px solid var(--line); border-radius: 10px; }
.pemain-pilih label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border-top: 1px solid var(--line); cursor: pointer; }
.pemain-pilih label:first-child { border-top: 0; }
.pemain-pilih input { width: 20px; height: 20px; accent-color: var(--brand); }

/* modal */
.modal-latar { position: fixed; inset: 0; z-index: 60; background: rgba(10, 14, 12, .45); display: grid; place-items: center; padding: 16px; }
.modal { width: min(620px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--surface); border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, .3); }
.modal.lebar { width: min(860px, 100%); }
.modal-kepala { position: sticky; top: 0; background: var(--surface); display: flex; align-items: center; gap: 8px; padding: 14px 14px 10px 20px; border-bottom: 1px solid var(--line); z-index: 1; }
.modal-kepala h2 { font-size: 18px; margin-right: auto; }
.modal-isi { padding: 18px 20px; }
.modal-kaki { position: sticky; bottom: 0; background: var(--surface); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; padding: 12px 20px; border-top: 1px solid var(--line); }
@media (max-width: 640px) {
  .modal-latar { padding: 0; place-items: end stretch; }
  .modal, .modal.lebar { width: 100%; max-height: 92vh; border-radius: 18px 18px 0 0; }
  .modal-kaki { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .modal-kaki .tombol { flex: 1; }
}
.toast-wadah { position: fixed; z-index: 80; left: 50%; transform: translateX(-50%); bottom: 24px; display: grid; gap: 8px; width: min(520px, calc(100% - 32px)); }
@media (max-width: 899px) { .toast-wadah { bottom: 84px; } }
.toast { background: var(--ink); color: var(--bg); border-radius: 12px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 550; display: flex; gap: 10px; align-items: center; }
.toast.bahaya { background: var(--danger); color: #fff; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
.login .kartu { width: min(420px, 100%); padding: 28px; }
.login h1 { font-size: 24px; margin: 18px 0 6px; }
.sandi-bungkus { position: relative; }
.sandi-bungkus .ikon-tombol { position: absolute; right: 0; top: 0; }
.sandi-bungkus .input { padding-right: 48px; }
.kotak-sandi { font: 600 22px/1.3 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .04em; background: var(--surface-2); border-radius: 12px; padding: 14px; text-align: center; user-select: all; word-break: break-all; }

/* sesi berikutnya (pemain) */
.sorot { background: var(--hero); color: var(--hero-ink); border-radius: 22px; padding: 22px; }
.sorot .lbl { opacity: .85; font-weight: 650; font-size: 14px; }
.sorot .besar { font-size: 26px; font-weight: 800; margin: 6px 0 2px; letter-spacing: -.01em; }
.sorot .tombol { background: rgba(255, 255, 255, .16); color: inherit; border-color: transparent; }

/* ---------- kalender */
.kal-alat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.kal-alat .rentang { font-weight: 700; margin: 0 6px; }
.kal-grid { display: grid; grid-template-columns: 56px repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.kal-kepala { display: contents; }
.kal-kepala > div { padding: 8px 6px; text-align: center; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; font-weight: 650; }
.kal-kepala > div.hari-ini { background: var(--accent); color: var(--accent-ink); }
.kal-jam-kol { position: relative; }
.kal-jam-kol div { height: 52px; font-size: 12px; color: var(--muted); text-align: right; padding: 2px 6px 0 0; border-top: 1px solid var(--line); }
.kal-kol { position: relative; border-left: 1px solid var(--line); }
.kal-kol .slot { height: 52px; border-top: 1px solid var(--line); }
.kal-kol .slot.bisa:hover { background: var(--surface-2); cursor: copy; }
.kal-acara { position: absolute; left: 3px; right: 3px; border-radius: 8px; padding: 4px 6px; font-size: 12.5px; line-height: 1.25; overflow: hidden; cursor: pointer; border: 0; text-align: left; color: #0f1512; }
.kal-acara .t { font-weight: 700; }
.kal-acara.batal { opacity: .55; text-decoration: line-through; }
.kal-acara.agenda { background: repeating-linear-gradient(135deg, var(--surface-3), var(--surface-3) 6px, var(--surface-2) 6px, var(--surface-2) 12px); color: var(--ink); }
.kal-sekarang { position: absolute; left: 0; right: 0; height: 2px; background: var(--danger); z-index: 2; pointer-events: none; }
.kal-hari-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-bottom: 12px; }
.kal-hari-strip button { min-height: 56px; border: 1px solid var(--line); background: var(--surface); border-radius: 12px; font-weight: 650; display: grid; place-items: center; line-height: 1.1; cursor: pointer; }
.kal-hari-strip button span { font-size: 12px; color: var(--muted); font-weight: 600; }
.kal-hari-strip button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.kal-hari-strip button[aria-pressed="true"] span { color: inherit; }
.kal-hari-strip .ada::after { content: ""; display: block; width: 5px; height: 5px; border-radius: 50%; background: currentColor; margin: 2px auto 0; }
.kal-hp { display: none; }
@media (max-width: 760px) { .kal-grid { display: none; } .kal-hp { display: block; } }

/* nilai keterampilan di formulir */
.skill-grup { border: 1px solid var(--line); border-radius: 12px; }
.skill-grup + .skill-grup { margin-top: 10px; }
.skill-grup summary { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 14px; font-weight: 700; cursor: pointer; list-style: none; }
.skill-grup summary::-webkit-details-marker { display: none; }
.skill-grup summary .jml { margin-left: auto; font-weight: 600; font-size: 13px; color: var(--muted); }
.skill-baris { display: grid; grid-template-columns: minmax(140px, 1fr) auto; gap: 10px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.skill-baris .nm { font-weight: 600; }
.skill-baris .lalu { font-size: 13px; color: var(--muted); }
.skala { display: flex; flex-wrap: wrap; gap: 4px; }
.skala button { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-weight: 750; cursor: pointer; }
.skala button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.skala button.hapus { color: var(--muted); font-weight: 600; }
@media (max-width: 560px) { .skill-baris { grid-template-columns: 1fr; } .skala button { flex: 1 0 44px; } }
.baris-isian { display: grid; grid-template-columns: 1fr 110px 110px 44px; gap: 8px; align-items: center; }
.baris-isian.tujuan { grid-template-columns: 1fr 120px 44px; }
@media (max-width: 560px) { .baris-isian, .baris-isian.tujuan { grid-template-columns: 1fr 1fr; } .baris-isian > :first-child { grid-column: 1 / -1; } }

/* ---------- laporan (dokumen) — tetap "kertas putih" di tema gelap */
.dok-alat { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.dok { background: #fff; color: #161616; max-width: 860px; margin: 0 auto; padding: 40px 44px; border-radius: 6px; box-shadow: var(--shadow); font-size: 14.5px; line-height: 1.5; }
.dok * { color: inherit; }
.dok-kepala { display: flex; align-items: flex-start; gap: 16px; padding-bottom: 14px; border-bottom: 3px solid #161616; }
.dok-logo { display: flex; align-items: center; gap: 12px; }
.dok-logo img { max-height: 72px; max-width: 150px; object-fit: contain; }
.dok-logo .x { font-size: 18px; color: #666; }
.dok-wordmark { font-weight: 900; font-size: 26px; letter-spacing: .02em; line-height: 1; }
.dok-wordmark small { display: block; font-size: 10px; letter-spacing: .18em; font-weight: 800; margin-top: 4px; }
.dok-mitra { font-size: 12px; font-weight: 600; max-width: 120px; line-height: 1.2; color: #333; }
.dok-judul { margin-left: auto; text-align: right; }
.dok-judul h1 { font-size: 30px; font-weight: 800; letter-spacing: -.01em; }
.dok-judul .tgl { font-weight: 700; font-size: 16px; margin-top: 4px; }
.dok-judul .no { color: #666; font-size: 14px; }
.dok h2 { font-size: 18px; font-weight: 800; margin: 22px 0 8px; display: flex; align-items: center; gap: 8px; }
.dok h2 .ikon { width: 18px; height: 18px; }
.dok-tabel { width: 100%; border-collapse: collapse; background: #f4f4f4; }
.dok-tabel td { padding: 8px 12px; border-top: 1px solid #fff; vertical-align: top; }
.dok-tabel td.k { font-weight: 700; color: #555 !important; width: 17%; }
.dok-tabel td.v { width: 33%; }
.dok ul { margin: 6px 0 0; padding-left: 20px; }
.dok li { margin: 3px 0; }
.dok-ringkas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.dok-ringkas div { background: #f4f4f4; border-radius: 10px; padding: 10px 12px; }
.dok-ringkas .l { font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #666 !important; }
.dok-ringkas .n { font-size: 20px; font-weight: 800; margin-top: 2px; }
.dok-ringkas .s { font-size: 12px; color: #555 !important; }
.dok-skor { width: 100%; border-collapse: collapse; }
.dok-skor td { padding: 6px 4px; border-bottom: 1px solid #ececec; vertical-align: middle; }
.dok-skor tr.grup td { padding-top: 12px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #666 !important; border-bottom: 0; }
.dok-skor .nm { width: 34%; font-weight: 600; }
.bar5 { display: flex; gap: 3px; width: 150px; }
.bar5 i { flex: 1; height: 10px; border-radius: 3px; background: #e6e6e6; }
.bar5 i.on { background: #161616; }
.dok-skor .lv { width: 18%; font-size: 13px; color: #444 !important; }
.tren { display: inline-block; min-width: 62px; text-align: center; font-size: 12px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #eee; }
.tren.naik { background: #dff3e6; color: #11663a !important; }
.tren.turun { background: #fbe4e1; color: #a3261a !important; }
.tren.baru { background: #e5ecf8; color: #1d4e89 !important; }
.dok-grafik { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: center; }
.dok-grafik svg { width: 100%; height: auto; }
.dok-blok { border-radius: 10px; padding: 12px 16px; margin-top: 14px; break-inside: avoid; }
.dok-blok h3 { font-size: 16px; font-weight: 800; margin-bottom: 4px; }
.dok-blok.hindari { background: #fde9e7; }
.dok-blok.hindari h3 { color: #b42318 !important; }
.dok-blok.rencana { background: #efefef; }
.dok-blok.pr { background: #e6f4ec; }
.dok-blok.pr h3 { color: #11663a !important; }
.dok-blok.sorotan { background: #fff5d6; font-size: 16px; font-weight: 600; }
.dok-blok.wali { background: #eaf0fb; }
.dok-tujuan { display: grid; gap: 10px; margin-top: 6px; }
.dok-tujuan .bar { height: 10px; border-radius: 999px; background: #e6e6e6; overflow: hidden; margin-top: 4px; }
.dok-tujuan .bar i { display: block; height: 100%; background: #161616; }
.dok-kaki { margin-top: 28px; padding-top: 10px; border-top: 1px solid #ddd; font-size: 12px; color: #777 !important; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.dok-bagian { break-inside: avoid; }
.dok-zona { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.dok-zona figure { margin: 0; text-align: center; }
.dok-zona svg { width: 100%; max-width: 230px; height: auto; }
.dok-zona figcaption { font-size: 12px; font-weight: 700; margin-top: 4px; }
.dok-catatan { font-size: 12px; color: #555 !important; margin-top: 6px; }
.dok-tabel-data { width: 100%; border-collapse: collapse; font-size: 14px; }
.dok-tabel-data th { text-align: left; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #666 !important; padding: 6px 8px; border-bottom: 2px solid #161616; }
.dok-tabel-data td { padding: 7px 8px; border-bottom: 1px solid #e6e6e6; }
@media (max-width: 700px) {
  .dok { padding: 22px 16px; font-size: 14px; }
  .dok-kepala { flex-wrap: wrap; }
  .dok-judul { margin-left: 0; text-align: left; width: 100%; }
  .dok-tabel td { display: block; width: auto !important; }
  .dok-tabel td.k { padding-bottom: 0; }
  .dok-ringkas { grid-template-columns: 1fr 1fr; }
  .dok-grafik { grid-template-columns: 1fr; }
  .dok-zona { grid-template-columns: 1fr 1fr; gap: 10px; }
  .bar5 { width: 90px; }
}

/* ---------- tambahan umum */
[hidden] { display: none !important; }
button.nav-item { background: none; border: 0; width: 100%; cursor: pointer; text-align: left; font: inherit; }
.baris[data-aksi], .baris[href] { cursor: pointer; text-decoration: none; color: inherit; border-radius: 10px; }
.baris[data-aksi]:hover, .baris[href]:hover { background: var(--surface-2); }
.dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; font-size: 15px; margin: 0; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 0; } .dl dd { margin-bottom: 8px; } }
.alat { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 14px; }
.alat .input[type="search"] { max-width: 320px; }
.alat .kanan { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.tip { position: fixed; z-index: 90; pointer-events: none; background: var(--ink); color: var(--bg); font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 8px; max-width: 260px; box-shadow: var(--shadow); }
.aksi-lekat { position: sticky; bottom: 0; z-index: 15; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; padding: 14px 0 12px; margin-top: 8px; background: linear-gradient(transparent, var(--bg) 35%); }
.aksi-lekat .status-simpan { margin-right: auto; font-size: 14px; color: var(--muted); }
@media (max-width: 899px) { .aksi-lekat { bottom: calc(62px + env(safe-area-inset-bottom)); } .aksi-lekat .tombol { flex: 1 1 auto; } .aksi-lekat .status-simpan { width: 100%; } }
.bagian-form { scroll-margin-top: 70px; }
.bagian-form h2 .no { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--surface-3); font-size: 13px; }
.isian-ganda { display: grid; gap: 8px; }
.teks-kecil-ref { font-size: 13.5px; color: var(--muted); white-space: pre-line; }

/* ---------- dashboard bento */
.bento { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; grid-auto-flow: row dense; }
.bento > * { min-width: 0; }
.b-2 { grid-column: span 2; } .b-3 { grid-column: span 3; } .b-4 { grid-column: span 4; } .b-r2 { grid-row: span 2; }
@media (max-width: 1100px) { .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); } .b-3, .b-4 { grid-column: span 2; } }
@media (max-width: 640px) { .bento { grid-template-columns: minmax(0, 1fr); gap: 12px; } .b-2, .b-3, .b-4 { grid-column: auto; } .b-r2 { grid-row: auto; } }
.ubin { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; min-height: 140px; }
.ubin-kepala { display: flex; align-items: flex-start; gap: 8px; }
.ubin-kepala h2 { font-size: 16px; line-height: 1.3; }
.ubin-kepala .sub { font-size: 13px; color: var(--muted); }
.ubin-kepala .aksi { margin-left: auto; flex: none; }
.angka-besar { font-size: 34px; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.ubin .ket { font-size: 13px; color: var(--muted); }
.ubin .bawah { margin-top: auto; }
.hero { position: relative; overflow: hidden; border-radius: 22px; min-height: 300px; padding: 22px; color: var(--hero-ink); background: var(--hero); display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; isolation: isolate; }
.hero-foto { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.hero.ada-foto::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(10, 12, 14, .1) 20%, rgba(10, 12, 14, .86) 78%); }
.hero-garis { position: absolute; right: -40px; top: -30px; width: 290px; height: auto; z-index: -1; opacity: .16; }
.hero h1 { font-size: 28px; letter-spacing: -.02em; }
@media (max-width: 640px) { .hero { min-height: 220px; padding: 18px; } .hero-garis { width: 150px; right: -46px; top: -36px; opacity: .1; } .hero h1 { font-size: 24px; } }
.hero .hero-sub { color: rgba(255, 255, 255, .84); margin-top: 4px; }
.hero-angka { display: flex; flex-wrap: wrap; gap: 8px; }
.hero-angka div { background: rgba(255, 255, 255, .12); border-radius: 14px; padding: 8px 14px; min-width: 92px; }
.hero-angka b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.hero-angka span { font-size: 12.5px; color: rgba(255, 255, 255, .86); }
.hero-aksi { display: flex; flex-wrap: wrap; gap: 8px; }
.hero .tombol { background: rgba(255, 255, 255, .14); color: #fff; border-color: transparent; }
.hero .tombol:hover { background: rgba(255, 255, 255, .22); }
.hero .tombol.aksen, .sorot .tombol.aksen { background: var(--accent); color: var(--accent-ink); }
.hero .chip { background: rgba(255, 255, 255, .14); color: #fff; }
.lap-daftar { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }
.lap-kartu { background: var(--surface-2); border-radius: 16px; padding: 12px; display: grid; grid-template-columns: 46px 1fr; gap: 12px; align-items: center; }
.lap-kartu svg { width: 46px; height: auto; display: block; }
.lap-kartu .nm { font-weight: 750; }
.lap-kartu .st { font-size: 13px; color: var(--muted); }
.lini-waktu { position: relative; height: 10px; border-radius: 999px; background: var(--surface-3); margin-top: 8px; overflow: hidden; }
.lini-waktu i { position: absolute; top: 0; bottom: 0; border-radius: 999px; background: var(--ink); }
.lini-waktu i.tutup { background: repeating-linear-gradient(135deg, var(--danger) 0 3px, transparent 3px 6px); border-radius: 0; }
.lini-waktu b { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--danger); }
.lini-skala { display: flex; justify-content: space-between; font-size: 11px; color: var(--muted); margin-top: 2px; }
.grafik { width: 100%; height: auto; display: block; overflow: visible; }
.grafik text { fill: var(--muted); font-size: 11px; font-family: inherit; }
.grafik .sumbu { stroke: var(--line); stroke-width: 1; }
.grafik .garis { fill: none; stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
.grafik .garis.batal { stroke: var(--danger); stroke-width: 2; stroke-dasharray: 4 4; }
.grafik .area { fill: color-mix(in srgb, var(--ink) 8%, transparent); }
.grafik .titik { fill: var(--surface); stroke: var(--ink); stroke-width: 2; }
.grafik .titik.aksen { fill: var(--accent); }
.grafik .batang { fill: var(--ink); }
.grafik .batang.aksen { fill: var(--accent); }
.grafik .batang.redup { fill: var(--surface-3); }
.grafik [data-tip] { cursor: default; }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 12px; height: 4px; border-radius: 2px; background: var(--ink); display: inline-block; }
.legenda i.batal { background: var(--danger); }
.legenda i.aksen { background: var(--accent); height: 10px; }
.daftar-bar { display: grid; gap: 12px; }
.daftar-bar .item { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; font-size: 14px; }
.daftar-bar .item b { font-variant-numeric: tabular-nums; }
.daftar-bar .trek { grid-column: 1 / -1; height: 8px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.daftar-bar .trek i { display: block; height: 100%; border-radius: 999px; background: var(--ink); }
.daftar-bar .item:first-child .trek i { background: var(--accent); }
.batang-arsir { height: 30px; border-radius: 10px; background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, var(--surface) 4px 8px); overflow: hidden; border: 1px solid var(--line); }
.batang-arsir i { display: block; height: 100%; background: var(--ink); }
.donat-bungkus { display: grid; grid-template-columns: minmax(110px, 150px) minmax(0, 1fr); gap: 18px; align-items: center; }
@media (max-width: 420px) { .donat-bungkus { grid-template-columns: 1fr; justify-items: center; } }
.donat-legenda { display: grid; gap: 6px; font-size: 13.5px; width: 100%; }
.donat-legenda div { display: flex; align-items: center; gap: 8px; }
.donat-legenda b { margin-left: auto; font-variant-numeric: tabular-nums; }
.donat-legenda .titik { width: 10px; height: 10px; }

/* ---------- peta zona lapangan (formulir & laporan) */
.zona-alat { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.zona-svg { width: 100%; max-width: 300px; margin: 0 auto; display: block; touch-action: manipulation; user-select: none; }
.zona-svg .zona { cursor: pointer; }
.zona-svg .zona:focus { outline: none; }
.zona-svg .zona:focus-visible .bingkai { stroke: var(--focus); stroke-width: 3; }
.zona-ringkas { text-align: center; font-size: 13.5px; color: var(--muted); }

/* ---------- dokumen: warna tetap (kertas putih) + foto + sertifikat */
.dok { --ink: #161616; --muted: #555555; --line: #e3e3e3; --surface: #ffffff; --surface-2: #f4f4f4; --surface-3: #e6e6e6; --accent: #c6ec3a; --accent-ink: #1a2200; --danger: #b42318; --ok: #17703f; }
.dok .grafik text { fill: #555; }
.dok a { color: #0b4f8a; }
.dok-foto { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.dok-foto figure { margin: 0; break-inside: avoid; }
.dok-foto img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 8px; display: block; }
.dok-foto figcaption { font-size: 12px; color: #555 !important; margin-top: 4px; }
@media (max-width: 700px) { .dok-foto { grid-template-columns: 1fr 1fr; } }
.dok-blok.sorotan .ikon, .dok h3 .ikon { width: 16px; height: 16px; vertical-align: -3px; }
.sertifikat { position: relative; overflow: hidden; text-align: center; padding: 56px 48px; }
.sertifikat-isi { display: grid; gap: 10px; justify-items: center; position: relative; }
.sertifikat-label { font-size: 13px; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; margin-top: 18px; }
.sertifikat-nama { font-size: 40px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.sertifikat-level { display: inline-flex; align-items: center; gap: 12px; font-size: 32px; font-weight: 900; }
.sertifikat-level small { font-size: 13px; font-weight: 700; color: #555 !important; letter-spacing: .12em; text-transform: uppercase; }
.sertifikat-level .bola { width: 26px; height: 26px; border-radius: 50%; background: #c6ec3a; box-shadow: inset -4px -4px 0 rgba(0, 0, 0, .12); }
.sertifikat-desk { max-width: 560px; margin: 4px 0 0; color: #333 !important; }
.sertifikat-syarat { max-width: 620px; margin: 0; font-size: 12.5px; color: #555 !important; }
.sertifikat-ttd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; width: 100%; margin-top: 40px; align-items: end; }
.sertifikat-ttd > div { display: grid; gap: 2px; justify-items: center; font-size: 13px; }
.sertifikat-ttd span { color: #666 !important; font-size: 12px; }
.garis-ttd { width: 80%; height: 1px; background: #161616; margin-bottom: 6px; }
.tgl-sert { font-weight: 700; }
.sertifikat-cap { position: absolute; inset: 0; display: grid; place-items: center; font-size: 96px; font-weight: 900; color: rgba(180, 35, 24, .16) !important; transform: rotate(-18deg); pointer-events: none; z-index: 1; }
@media (max-width: 700px) { .sertifikat { padding: 32px 16px; } .sertifikat-nama { font-size: 28px; } .sertifikat-level { font-size: 24px; } .sertifikat-ttd { grid-template-columns: 1fr; } }
.daftar-bar.syarat .item .trek i, .daftar-bar.syarat .item:first-child .trek i { background: var(--muted); }
.daftar-bar.syarat .item.ok .trek i { background: var(--ok); }
.skill-grup summary > .ikon:last-child { margin-left: 8px; transition: transform .15s; }
.skill-grup[open] summary > .ikon:last-child { transform: rotate(180deg); }
.skill-grup summary .jml + .ikon { margin-left: 8px; }
label[aria-busy="true"] { opacity: .6; pointer-events: none; }

@media print {
  @page { size: A4; margin: 12mm; }
  body { background: #fff; }
  .sidebar, .topbar, .bottombar, .dok-alat, .no-print, .toast-wadah { display: none !important; }
  .shell { display: block; }
  .isi { padding: 0; max-width: none; }
  .dok { box-shadow: none; padding: 0; max-width: none; border-radius: 0; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .sertifikat { page: sertifikat; padding: 24mm 18mm; }
}
@page sertifikat { size: A4 landscape; margin: 10mm; }
