/* Gaya "clay" -- diturunkan dari papan /boat-availability/ tconnect-platform
   (templates/boat_rents/papan_kepala.html). Prototipe statis, belum ada server. */
:root {
  color-scheme: light;
  --bg: #f1eefa; --surface: #fffdf9; --ink: #382d49; --muted: #756b82; --garis: #ece6f4; --kepala: #f7f3fd; --isian: #f4f0fb;
  --brand: #ff7a59; --tombol: #483655; --tombol-t: #ffffff; --pilih: #cbb8ff; --pilih-t: #2d2140;
  --tersedia: #98d9bb; --tersedia-t: #1d4a35; --sebagian: #f3cf65; --sebagian-t: #5a4205;
  --penuh: #ff9c9c; --penuh-t: #6a1a1a; --tutup: #d9d2e6; --tutup-t: #5f5570;
  --open-bg: #eee4ff; --open-t: #5b3fa0; --private-bg: #ffe2d2; --private-t: #a2482d;
  --unit-bg: #f3eff8; --unit-t: #5f5570; --share-bg: #fff0bb; --share-t: #7a5a0c;
  --hari-ini: #ff7a59; --akhir-pekan: #dd5437; --tirai: rgba(40, 28, 56, .38);
  --tahan: #ffc98a; --tahan-2: #ffe4c2; --tahan-t: #6e3a00;
  --minta: #bfe3ff; --minta-t: #10466e;
  --bayang: 0 18px 44px rgba(89, 66, 112, .14);
  --bayang-kecil: 0 8px 18px rgba(83, 60, 101, .13), inset 0 -3px 7px rgba(78, 52, 96, .1), inset 0 3px 7px rgba(255, 255, 255, .78);
  --ubin: inset 0 -3px 6px rgba(0, 0, 0, .1), inset 0 3px 6px rgba(255, 255, 255, .55), 0 4px 10px rgba(83, 60, 101, .12);
  --cekung: inset 0 2px 6px rgba(83, 60, 101, .12);
  --glow-1: #c6a5ff; --glow-2: #ff9b75;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #17131f; --surface: #221c2e; --ink: #efe9f7; --muted: #a99fbb; --garis: #332a42; --kepala: #2a2238; --isian: #2c2439;
    --tombol: #cbb8ff; --tombol-t: #231a33; --pilih: #7d5fd0; --pilih-t: #ffffff;
    --tersedia: #3f9a72; --tersedia-t: #eafff4; --sebagian: #c79a22; --sebagian-t: #1f1500;
    --penuh: #c24b4b; --penuh-t: #fff0f0; --tutup: #4a4058; --tutup-t: #d8cfe6;
    --open-bg: #3d2d66; --open-t: #ddd0ff; --private-bg: #5c2f22; --private-t: #ffd3c2;
    --unit-bg: #302841; --unit-t: #cfc5de; --share-bg: #5a4610; --share-t: #ffe7a0; --tirai: rgba(0, 0, 0, .55);
    --tahan: #9a6220; --tahan-2: #6f4413; --tahan-t: #ffe6c7;
    --minta: #1f4f73; --minta-t: #d6ecff;
    --bayang: 0 18px 44px rgba(0, 0, 0, .4);
    --bayang-kecil: 0 8px 18px rgba(0, 0, 0, .35), inset 0 -3px 7px rgba(0, 0, 0, .3), inset 0 3px 7px rgba(255, 255, 255, .06);
    --ubin: inset 0 -3px 6px rgba(0, 0, 0, .28), inset 0 3px 6px rgba(255, 255, 255, .14), 0 4px 10px rgba(0, 0, 0, .3);
    --cekung: inset 0 2px 6px rgba(0, 0, 0, .35);
    --glow-1: #5b3fa0; --glow-2: #8a3d27;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #17131f; --surface: #221c2e; --ink: #efe9f7; --muted: #a99fbb; --garis: #332a42; --kepala: #2a2238; --isian: #2c2439;
  --tombol: #cbb8ff; --tombol-t: #231a33; --pilih: #7d5fd0; --pilih-t: #ffffff;
  --tersedia: #3f9a72; --tersedia-t: #eafff4; --sebagian: #c79a22; --sebagian-t: #1f1500;
  --penuh: #c24b4b; --penuh-t: #fff0f0; --tutup: #4a4058; --tutup-t: #d8cfe6;
  --open-bg: #3d2d66; --open-t: #ddd0ff; --private-bg: #5c2f22; --private-t: #ffd3c2;
  --unit-bg: #302841; --unit-t: #cfc5de; --share-bg: #5a4610; --share-t: #ffe7a0; --tirai: rgba(0, 0, 0, .55);
  --tahan: #9a6220; --tahan-2: #6f4413; --tahan-t: #ffe6c7;
  --minta: #1f4f73; --minta-t: #d6ecff;
  --bayang: 0 18px 44px rgba(0, 0, 0, .4);
  --bayang-kecil: 0 8px 18px rgba(0, 0, 0, .35), inset 0 -3px 7px rgba(0, 0, 0, .3), inset 0 3px 7px rgba(255, 255, 255, .06);
  --ubin: inset 0 -3px 6px rgba(0, 0, 0, .28), inset 0 3px 6px rgba(255, 255, 255, .14), 0 4px 10px rgba(0, 0, 0, .3);
  --cekung: inset 0 2px 6px rgba(0, 0, 0, .35);
  --glow-1: #5b3fa0; --glow-2: #8a3d27;
}

/* ---------- dasar = HP ---------- */
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.5 "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
       overflow-x: hidden; -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.glow { position: fixed; width: 320px; aspect-ratio: 1; border-radius: 50%; filter: blur(80px); opacity: .22; pointer-events: none; z-index: -1; }
.glow.satu { top: 4%; right: -140px; background: var(--glow-1); }
.glow.dua { bottom: 4%; left: -160px; background: var(--glow-2); }
.wadah { width: calc(100% - 24px); margin: 0 auto; }

header.atas { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0 8px; }
.merek { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.merek .logo { width: 42px; height: 42px; flex: none; border-radius: 14px; background: var(--surface); box-shadow: var(--bayang-kecil); display: grid; place-items: center; }
.merek .logo svg { width: 30px; height: 30px; }
.merek b { font-family: Manrope, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -.02em; line-height: 1.1; }
.merek small { display: block; font-size: 11px; font-weight: 700; color: var(--muted); }
.merek .teks { display: none; }
.kepala-tombol { display: flex; gap: 8px; align-items: center; }

.pahlawan { padding: 8px 0 6px; }
h1 { font-family: Manrope, sans-serif; font-weight: 800; letter-spacing: -.04em; line-height: 1.05; margin: 0; font-size: 1.8rem; }
.lead { margin: 8px 0 0; color: var(--muted); font-size: 14px; max-width: 640px; }
.alis { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 8px; padding: 6px 12px; border-radius: 999px; background: var(--open-bg);
        color: var(--open-t); font-size: 12px; font-weight: 700; box-shadow: var(--bayang-kecil); }
.alis::before { content: ""; width: 7px; height: 7px; flex: none; border-radius: 50%; background: #4ba879; box-shadow: 0 0 0 4px rgba(75, 168, 121, .18);
                animation: denyut 2.2s ease-in-out infinite; }

.klay { border: 0; cursor: pointer; background: var(--surface); color: var(--ink); box-shadow: var(--bayang-kecil); font-weight: 700;
        display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 16px; min-height: 44px; padding: 0 14px;
        text-decoration: none; transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); white-space: nowrap; }
.klay:active { transform: translateY(2px) scale(.95); }
.klay svg { width: 18px; height: 18px; flex: none; }
.klay.gelap { background: var(--tombol); color: var(--tombol-t);
              box-shadow: 0 12px 24px rgba(61, 42, 71, .28), inset 0 -5px 9px rgba(17, 10, 22, .25), inset 0 5px 9px rgba(255, 255, 255, .16); }
.klay.oranye { background: var(--brand); color: #fff;
               box-shadow: 0 12px 24px rgba(255, 122, 89, .32), inset 0 -5px 9px rgba(120, 30, 10, .22), inset 0 5px 9px rgba(255, 255, 255, .25); }
.klay.kecil { min-height: 34px; padding: 0 11px; border-radius: 12px; font-size: 12.5px; }
.klay[disabled] { opacity: .5; cursor: not-allowed; }
.klay .label-panjang { display: none; }
.tema span { display: none; }
.lencana { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255, 122, 89, .25); }

/* Bilah navigasi bulan */
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 8px; padding: 10px 0; margin: 4px 0 4px;
       background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.navbulan { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; }
.navbulan .klay { width: 44px; padding: 0; flex: none; }
.navbulan .klay span { display: none; }
.navbulan strong { flex: 1; min-width: 0; text-align: center; font-family: Manrope, sans-serif; font-weight: 800; font-size: 15px; letter-spacing: -.02em;
                   white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.legenda { display: flex; gap: 6px; overflow-x: auto; padding: 4px 2px 12px; margin: 0 -2px; scrollbar-width: none; }
.legenda::-webkit-scrollbar { display: none; }
.legenda span { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px;
                font-weight: 700; background: var(--surface); box-shadow: var(--bayang-kecil); }
.legenda span::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: var(--c); box-shadow: var(--ubin); }
.legenda span.garis::before { background: repeating-linear-gradient(135deg, var(--tahan) 0 3px, var(--tahan-2) 3px 6px); }

/* Filter: HP = lembar dari bawah */
.tirai { position: fixed; inset: 0; background: var(--tirai); z-index: 40; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.lembar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 41; background: var(--surface); border-radius: 28px 28px 0 0;
          box-shadow: 0 -18px 44px rgba(40, 28, 56, .22); padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
          transform: translateY(105%); transition: transform .38s cubic-bezier(.2, 1.1, .3, 1); max-height: 88vh; overflow-y: auto; }
.lembar::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--garis); margin: 0 auto 12px; }
body.filter-buka .tirai { opacity: 1; visibility: visible; }
body.filter-buka .lembar { transform: none; }
.lembar-kepala { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.lembar-kepala h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 18px; font-weight: 800; }
.filter { display: grid; gap: 12px; }
.bidang { display: flex; flex-direction: column; gap: 6px; font-size: 12px; font-weight: 700; color: var(--muted); min-width: 0; position: relative; }
.bidang input, .bidang textarea, .pilih select { border: 0; border-radius: 16px; min-height: 48px; padding: 0 14px; background: var(--isian); box-shadow: var(--cekung);
                width: 100%; font-size: 15px; font-weight: 600; color: var(--ink); outline: 0; }
.bidang textarea { padding: 12px 14px; min-height: 80px; resize: vertical; }
.bidang input:focus, .bidang textarea:focus, .pilih select:focus { box-shadow: var(--cekung), 0 0 0 3px color-mix(in srgb, var(--pilih) 75%, transparent); }
.pilih { position: relative; }
.pilih select { appearance: none; -webkit-appearance: none; padding-right: 38px; cursor: pointer; }
.pilih::after { content: ""; position: absolute; right: 17px; top: 50%; width: 8px; height: 8px; border-right: 2.4px solid var(--muted); border-bottom: 2.4px solid var(--muted);
                transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* Papan */
.panel { background: var(--surface); border-radius: 24px; box-shadow: var(--bayang); padding: 8px; margin-bottom: 14px; }
.gulir { overflow: auto; max-height: calc(100dvh - 150px); border-radius: 18px; overscroll-behavior: contain; }
table.papan { border-collapse: separate; border-spacing: 0; font-size: 12px; }
table.papan th, table.papan td { padding: 0; }
table.papan thead th { position: sticky; top: 0; z-index: 2; background: var(--surface); font-weight: 800; min-width: 42px; text-align: center;
           padding: 6px 1px 8px; font-family: Manrope, sans-serif; font-size: 12.5px; }
table.papan thead th > span { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 9px; }
table.papan thead th small { display: block; font-family: "DM Sans", sans-serif; font-weight: 600; font-size: 10px; color: var(--muted); }
table.papan thead th.akhir-pekan small { color: var(--akhir-pekan); }
table.papan thead th.hari-ini > span { background: var(--hari-ini); color: #fff; box-shadow: var(--ubin); }
.nama { position: sticky; left: 0; z-index: 1; background: var(--surface); min-width: 118px; max-width: 132px; padding: 6px 8px; text-align: left; font-weight: 500; }
table.papan thead th.nama { z-index: 3; color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; vertical-align: bottom; }
tr.kapal th, tr.kapal td { background: var(--kepala); }
tr.kapal th.nama { font-family: Manrope, sans-serif; font-weight: 800; font-size: 13px; letter-spacing: -.02em; line-height: 1.25; padding: 10px 8px 8px;
                   border-radius: 14px 0 0 14px; }
tr.kapal td:last-child { border-radius: 0 14px 14px 0; }
tr.kapal th.nama small { display: block; margin-top: 2px; font-family: "DM Sans", sans-serif; font-weight: 700; font-size: 10.5px; color: var(--muted); letter-spacing: 0; }
tr.kapal th.nama small::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 5px; vertical-align: 1px; }
.jenis { display: inline-block; font-size: 9.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 7px; border-radius: 999px; }
.jenis.open { background: var(--open-bg); color: var(--open-t); }
.jenis.private { background: var(--private-bg); color: var(--private-t); }
.jenis .panjang { display: none; }
.kabin { display: block; font-weight: 700; font-size: 12px; line-height: 1.25; margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.unit { display: inline-block; margin-top: 3px; font-size: 10.5px; font-weight: 700; padding: 1px 7px; border-radius: 7px; background: var(--unit-bg); color: var(--unit-t); }
.unit.share { background: var(--share-bg); color: var(--share-t); }
td.sel { text-align: center; height: 42px; padding: 4px; font-variant-numeric: tabular-nums; }
td.sel > span { display: grid; place-items: center; height: 32px; min-width: 32px; border-radius: 10px; font-weight: 800; font-size: 12.5px; }
td.sel > span b { font-weight: 800; line-height: 1; }
td.sel > span svg.org { width: 10px; height: 10px; opacity: .8; margin-top: 1px; }
td.sel > span:has(svg.org) { align-content: center; }
td.tersedia > span { background: var(--tersedia); color: var(--tersedia-t); box-shadow: var(--ubin); }
td.sebagian > span { background: var(--sebagian); color: var(--sebagian-t); box-shadow: var(--ubin); }
td.penuh > span { background: var(--penuh); color: var(--penuh-t); box-shadow: var(--ubin); }
td.tutup > span { background: var(--tutup); color: var(--tutup-t); box-shadow: var(--ubin); }
td.lewat > span { opacity: .5; filter: saturate(.6); }
td.sel > span .ini { font-size: 11px; letter-spacing: -.03em; line-height: 1; }
td.sel > span sup { font-size: 8.5px; font-weight: 800; margin-left: 1px; opacity: .85; }
td.sel.hold > span { background: repeating-linear-gradient(135deg, var(--tahan) 0 5px, var(--tahan-2) 5px 10px); color: var(--tahan-t);
                     box-shadow: var(--ubin); outline: 2px dashed color-mix(in srgb, var(--tahan-t) 45%, transparent); outline-offset: -3px; }
td.sel[data-t] { cursor: pointer; }
body.pemilik td.sel.kosong-sel { cursor: default; }

.tahan { background: var(--surface); border-radius: 22px; box-shadow: var(--bayang); padding: 12px 14px; margin-bottom: 12px; }
.tahan h2 { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; display: flex; align-items: center; gap: 8px; }
.tahan h2::before { content: ""; width: 12px; height: 12px; border-radius: 4px; background: repeating-linear-gradient(135deg, var(--tahan) 0 3px, var(--tahan-2) 3px 6px); }
.tahan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 188px; overflow: auto; }
.tahan li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 14px; background: var(--isian); }
.ini-b { font-weight: 800; font-size: 12px; padding: 3px 8px; border-radius: 9px; background: var(--tersedia); color: var(--tersedia-t); white-space: nowrap; }
.ini-b.hold { background: var(--tahan); color: var(--tahan-t); }
.ini-b.tutup { background: var(--tutup); color: var(--tutup-t); }
.ini-b.minta { background: var(--minta); color: var(--minta-t); }
.tahan .ket { min-width: 0; font-size: 12px; line-height: 1.3; }
.tahan .ket b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tahan .ket small { color: var(--muted); }
.tahan .sisa { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; }
.tahan .sisa small { font-size: 10.5px; color: var(--muted); line-height: 1; }
.mundur { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 13px; color: var(--tahan-t); background: var(--tahan-2);
          padding: 4px 9px; border-radius: 10px; white-space: nowrap; }
.mundur.habis { color: var(--penuh-t); background: var(--penuh); }

.gelembung { position: fixed; z-index: 60; width: min(310px, calc(100vw - 24px)); background: var(--surface); color: var(--ink);
             border-radius: 18px; box-shadow: var(--bayang); padding: 12px 14px; font-size: 12.5px; animation: munculPop .22s ease both; }
.gelembung h3 { margin: 0 0 8px; font-family: Manrope, sans-serif; font-size: 13px; font-weight: 800; }
.gelembung ul { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 6px; }
.gelembung li { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.gelembung .sisa-info { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1.5px solid var(--garis); }
.gelembung .sisa-info b { font-size: 13px; }
.kosong { padding: 36px 16px; text-align: center; color: var(--muted); font-weight: 600; }

.cari { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; }
.cari-kotak { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 8px 0 16px; border-radius: 18px;
              background: var(--surface); box-shadow: var(--bayang-kecil); cursor: text; }
.cari-kotak:focus-within { box-shadow: var(--bayang-kecil), 0 0 0 3px color-mix(in srgb, var(--pilih) 75%, transparent); }
.cari-kotak > svg { width: 18px; height: 18px; flex: none; color: var(--muted); }
.cari-kotak input { flex: 1; min-width: 0; min-height: 48px; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: 16px; font-weight: 600; }
.cari-kotak input::placeholder { color: var(--muted); font-weight: 500; }
.cari-hitung { flex: none; padding: 8px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap;
               background: var(--pilih); color: var(--pilih-t); box-shadow: var(--ubin); }
mark.sorot { display: inline-block; color: #3b1a0e; padding: 0 4px; margin: 0 1px; border-radius: 8px; line-height: 1.35;
             background: linear-gradient(180deg, #ffc2ad 0%, #ff946f 100%); box-shadow: inset 0 -2px 4px rgba(150, 50, 20, .22), inset 0 2px 3px rgba(255, 255, 255, .7); }
footer.kaki { padding: 2px 4px 28px; color: var(--muted); font-size: 12.5px; }

/* Dialog (lembar bawah di HP, kartu tengah di desktop) */
.dlg-tirai { position: fixed; inset: 0; z-index: 70; background: var(--tirai); display: grid; align-items: end; justify-items: stretch; animation: pudar .2s ease; }
.dlg { background: var(--surface); border-radius: 28px 28px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow-y: auto;
       box-shadow: 0 -18px 44px rgba(40, 28, 56, .22); animation: naikBawah .38s cubic-bezier(.2, 1.1, .3, 1); }
.dlg::before { content: ""; display: block; width: 44px; height: 5px; border-radius: 99px; background: var(--garis); margin: 0 auto 12px; }
.dlg-kepala { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; }
.dlg-kepala h2 { margin: 0; font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.dlg-kepala p { margin: 2px 0 0; color: var(--muted); font-size: 13px; font-weight: 600; }
.dlg form { display: grid; gap: 12px; }
.dlg .baris2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.dlg .aksi { display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.dlg .aksi .klay { flex: 1; }
.segmen { display: flex; flex-wrap: wrap; gap: 8px; }
.segmen label { position: relative; }
.segmen input { position: absolute; opacity: 0; pointer-events: none; }
.segmen span { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 14px; background: var(--isian);
               box-shadow: var(--cekung); font-weight: 700; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.segmen input:checked + span { background: var(--pilih); color: var(--pilih-t); box-shadow: var(--ubin); }
.segmen input:focus-visible + span { outline: 2px solid var(--brand); }
.daftar-sel { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.daftar-sel li { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 16px; background: var(--isian); }
.daftar-sel li .tengah { flex: 1; min-width: 0; font-size: 12.5px; line-height: 1.3; }
.daftar-sel li .tengah b { display: block; font-size: 13px; }
.daftar-sel li .tengah small { color: var(--muted); }
.subjudul { margin: 6px 0 8px; font-family: Manrope, sans-serif; font-size: 14px; font-weight: 800; }
.catatan-kecil { margin: 0; color: var(--muted); font-size: 12px; }

.toast { position: fixed; left: 50%; bottom: 22px; z-index: 90; transform: translateX(-50%); background: var(--tombol); color: var(--tombol-t);
         padding: 12px 18px; border-radius: 16px; font-weight: 700; font-size: 13.5px; box-shadow: 0 16px 34px rgba(40, 28, 56, .3);
         max-width: calc(100vw - 32px); animation: munculPop .25s ease both; }

/* ---------- dasbor pemilik ---------- */
.chip-mode { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 11.5px; font-weight: 800;
             background: var(--private-bg); color: var(--private-t); box-shadow: var(--bayang-kecil); }
.tab-bar { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; margin: 6px -2px 6px; scrollbar-width: none; }
.tab-bar::-webkit-scrollbar { display: none; }
.tab-bar button { flex: none; border: 0; cursor: pointer; min-height: 42px; padding: 0 15px; border-radius: 15px; font-weight: 800; font-size: 13.5px;
                  background: var(--surface); color: var(--ink); box-shadow: var(--bayang-kecil); display: inline-flex; align-items: center; gap: 8px; }
.tab-bar button[aria-selected="true"] { background: var(--tombol); color: var(--tombol-t);
                  box-shadow: 0 10px 20px rgba(61, 42, 71, .26), inset 0 -4px 8px rgba(17, 10, 22, .25), inset 0 4px 8px rgba(255, 255, 255, .16); }
.tab-bar .angka { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 99px; background: var(--brand); color: #fff; font-size: 11px; display: inline-grid; place-items: center; }
.statistik { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 4px 0 12px; }
.stat { background: var(--surface); border-radius: 22px; box-shadow: var(--bayang); padding: 14px; display: grid; gap: 4px; }
.stat small { color: var(--muted); font-weight: 700; font-size: 12px; }
.stat b { font-family: Manrope, sans-serif; font-size: 26px; font-weight: 800; letter-spacing: -.03em; line-height: 1.1; }
.stat .tanda { width: 34px; height: 34px; border-radius: 12px; display: grid; place-items: center; box-shadow: var(--ubin); margin-bottom: 4px; }
.stat .tanda svg { width: 18px; height: 18px; }
.kartu { background: var(--surface); border-radius: 24px; box-shadow: var(--bayang); padding: 16px; margin-bottom: 14px; }
.kartu h2 { margin: 0 0 4px; font-family: Manrope, sans-serif; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.kartu > p { margin: 0 0 12px; color: var(--muted); font-size: 13px; }
.saring { display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 12px; scrollbar-width: none; }
.saring::-webkit-scrollbar { display: none; }
.saring button { flex: none; border: 0; cursor: pointer; min-height: 36px; padding: 0 13px; border-radius: 12px; font-weight: 700; font-size: 12.5px;
                 background: var(--isian); color: var(--ink); box-shadow: var(--cekung); }
.saring button[aria-pressed="true"] { background: var(--pilih); color: var(--pilih-t); box-shadow: var(--ubin); }
.daftar-booking { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.daftar-booking li { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; padding: 12px; border-radius: 18px; background: var(--isian); }
.daftar-booking .isi { min-width: 0; font-size: 12.5px; line-height: 1.35; }
.daftar-booking .isi b { font-size: 13.5px; }
.daftar-booking .isi small { color: var(--muted); display: block; }
.daftar-booking .tombol { grid-column: 1 / -1; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.daftar-booking .tombol .mundur { margin-right: auto; }
.grid-kapal { display: grid; gap: 12px; }
.grid-kapal .kartu { margin: 0; }
.kepala-kapal { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; margin-bottom: 10px; }
.kepala-kapal h3 { margin: 0; font-family: Manrope, sans-serif; font-weight: 800; font-size: 16px; letter-spacing: -.02em; }
.kepala-kapal .chips { display: flex; gap: 5px; flex-wrap: wrap; margin-top: 5px; }
.tabel-kabin { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tabel-kabin th { text-align: left; color: var(--muted); font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 0 6px 6px; }
.tabel-kabin td { padding: 7px 6px; border-top: 1.5px solid var(--garis); }
.tabel-kabin td.kanan, .tabel-kabin th.kanan { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.status-sheet { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: var(--isian); margin-bottom: 12px; }
.status-sheet .bulat { width: 44px; height: 44px; flex: none; border-radius: 15px; display: grid; place-items: center; background: #1fa463; color: #fff; box-shadow: var(--ubin); }
.status-sheet .bulat svg { width: 22px; height: 22px; }
.status-sheet div { min-width: 0; }
.status-sheet b { display: block; }
.status-sheet small { color: var(--muted); }
.peta-warna { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.peta-warna li { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; font-size: 13px; padding: 6px 4px; }
.peta-warna i { width: 22px; height: 22px; border-radius: 7px; box-shadow: var(--ubin); border: 1px solid var(--garis); }
.riwayat { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.riwayat li { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; padding: 8px 10px; border-radius: 14px; background: var(--isian); font-size: 12.5px; }
.riwayat time { color: var(--muted); font-weight: 700; font-size: 11.5px; white-space: nowrap; padding-top: 1px; }

/* ---------- halaman masuk ---------- */
.masuk-wadah { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.masuk-kartu { width: min(420px, 100%); background: var(--surface); border-radius: 32px; box-shadow: var(--bayang); padding: 22px; }
.masuk-laut { position: relative; height: 140px; border-radius: 24px; overflow: hidden; margin-bottom: 18px;
              background: linear-gradient(180deg, color-mix(in srgb, var(--pilih) 55%, var(--surface)) 0%, var(--isian) 70%); }
.masuk-laut .mt { position: absolute; top: 16px; right: 24px; width: 28px; height: 28px; border-radius: 50%; background: var(--brand); opacity: .85;
                  box-shadow: 0 0 0 7px color-mix(in srgb, var(--brand) 22%, transparent); }
.masuk-laut .kp { position: absolute; left: 50%; bottom: 14px; width: 140px; margin-left: -70px; transform-origin: 50% 85%; animation: goyang 2.6s ease-in-out infinite; }
.masuk-laut .ombak { position: absolute; left: 0; bottom: 0; width: 200%; height: 38px; animation: ombak 3.2s linear infinite; }
.masuk-laut .ombak.dua { bottom: -6px; opacity: .55; animation-duration: 5s; animation-direction: reverse; }
.masuk-kartu h1 { font-size: 1.6rem; }
.masuk-kartu form { display: grid; gap: 12px; margin-top: 16px; }
.masuk-kartu .bawah { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 14px; font-size: 13px; }
.masuk-kartu a.tautan { color: var(--open-t); font-weight: 700; text-decoration: none; }
.pita-proto { display: inline-flex; gap: 6px; align-items: center; padding: 6px 12px; border-radius: 12px; background: var(--share-bg); color: var(--share-t);
              font-size: 12px; font-weight: 700; margin-top: 12px; }

/* ---------- tablet & desktop ---------- */
@media (min-width: 768px) {
  body { font-size: 15px; }
  .wadah { width: min(calc(100% - 40px), 1400px); }
  .glow { width: 420px; }
  header.atas { padding: 26px 0 10px; }
  .merek .teks { display: block; }
  h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); }
  .lead { font-size: 15.5px; }
  .tema span, .klay .label-panjang { display: inline; }
  .klay .label-pendek { display: none; }
  .klay { padding: 0 18px; }
  #buka-filter { display: none; }
  .tirai { display: none; }
  .lembar { position: relative; z-index: 30; transform: none; border-radius: 28px; box-shadow: var(--bayang); padding: 18px 20px; margin: 6px 0 14px; max-height: none; overflow: visible; }
  .lembar::before, .lembar-kepala { display: none; }
  .filter { grid-template-columns: 200px 200px minmax(220px, 1fr); align-items: end; gap: 14px; }
  .bar { position: static; background: none; backdrop-filter: none; -webkit-backdrop-filter: none; padding: 6px 0 6px; }
  .navbulan { flex: none; }
  .navbulan .klay { width: auto; padding: 0 16px; }
  .navbulan .klay span { display: inline; }
  .navbulan strong { flex: none; font-size: 18px; margin: 0 6px; }
  .legenda { overflow: visible; flex-wrap: wrap; }
  .legenda span { font-size: 12.5px; padding: 6px 12px; }
  .panel { border-radius: 30px; padding: 16px; }
  .gulir { max-height: calc(100vh - 160px); border-radius: 22px; }
  table.papan { font-size: 12.5px; }
  table.papan thead th { min-width: 46px; font-size: 13px; padding: 8px 2px 10px; }
  table.papan thead th > span { width: 28px; height: 28px; border-radius: 10px; }
  table.papan thead th small { font-size: 10.5px; }
  .nama { min-width: 230px; max-width: 270px; padding: 8px 14px; }
  tr.kapal th.nama { font-size: 15px; padding: 14px 14px 10px; border-radius: 16px 0 0 16px; }
  tr.kapal td:last-child { border-radius: 0 16px 16px 0; }
  tr.kapal th.nama small { font-size: 11.5px; }
  .jenis { font-size: 10.5px; padding: 3px 9px; margin-right: 6px; vertical-align: 1px; }
  .jenis .panjang { display: inline; }
  .jenis .pendek { display: none; }
  .kabin { display: inline; font-size: 13px; }
  .unit { display: table; font-size: 11.5px; padding: 2px 9px; border-radius: 8px; }
  td.sel { height: 46px; padding: 5px; }
  td.sel > span { height: 36px; min-width: 36px; border-radius: 12px; font-size: 13px; }
  .dlg-tirai { align-items: center; justify-items: center; padding: 24px; }
  .dlg { width: min(520px, 100%); border-radius: 30px; padding: 22px 24px; animation: munculPop .26s cubic-bezier(.3, 1.4, .5, 1); }
  .dlg::before { display: none; }
  .statistik { grid-template-columns: repeat(4, 1fr); gap: 14px; }
  .stat { padding: 18px; }
  .stat b { font-size: 30px; }
  .daftar-booking li { grid-template-columns: auto 1fr auto; }
  .daftar-booking .tombol { grid-column: auto; }
  .grid-kapal { grid-template-columns: repeat(2, 1fr); }
  .dua-kolom { display: grid; grid-template-columns: 1.1fr .9fr; gap: 14px; align-items: start; }
  .kartu { padding: 20px 22px; border-radius: 28px; }
}
@media (min-width: 1200px) { .grid-kapal { grid-template-columns: repeat(3, 1fr); } }

/* ---------- animasi clay ---------- */
@keyframes clayNaik { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes munculPop { from { opacity: 0; transform: translateY(-6px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes naikBawah { from { transform: translateY(100%); } to { transform: none; } }
@keyframes pudar { from { opacity: 0; } to { opacity: 1; } }
@keyframes clayBump { 0% { transform: none; } 40% { transform: scale(1.14) rotate(-3deg); } 70% { transform: scale(.96) rotate(2deg); } 100% { transform: scale(1.06); } }
@keyframes clayPop { 0% { transform: none; } 30% { transform: scale(.88); } 65% { transform: scale(1.08); } 100% { transform: none; } }
@keyframes putar { from { transform: rotate(0); } to { transform: rotate(360deg); } }
@keyframes denyut { 0%, 100% { box-shadow: 0 0 0 4px rgba(75, 168, 121, .18); } 50% { box-shadow: 0 0 0 8px rgba(75, 168, 121, .05); } }
@keyframes goyang { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-5px) rotate(3deg); } }
@keyframes ombak { from { transform: translateX(0); } to { transform: translateX(-50%); } }
header.atas, .pahlawan, .bar, .legenda, .panel, .tab-bar, .statistik, .kartu, footer.kaki { animation: clayNaik .6s cubic-bezier(.2, .9, .3, 1.2) both; }
.pahlawan { animation-delay: .04s; } .bar { animation-delay: .08s; } .legenda { animation-delay: .12s; } .panel { animation-delay: .16s; }
td.sel > span.ketuk { animation: clayPop .4s ease; }
@media (hover: hover) {
  td.sel > span:hover { animation: clayBump .45s ease forwards; filter: saturate(1.15) brightness(1.04); position: relative; z-index: 1; }
  .klay:hover { transform: translateY(-2px); }
  .legenda span { transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
  .legenda span:hover { transform: translateY(-3px) rotate(-2deg); }
  tbody tr:not(.kapal):hover th.nama .kabin { color: var(--brand); }
}
.pop { animation: clayPop .45s ease; }
.klay.putar svg { animation: putar .8s linear infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
