/* Senyap — gaya. Warna di :root; ubah di sini untuk mengganti tema. */
:root {
  --bg: #edf1f4; --card: #ffffff; --ink: #0f1b2d; --mute: #5a687c; --line: #d9e0e8;
  --accent: #2457f5; --accent-ink: #ffffff; --accent-soft: #e4ebff;
  --pln: #0e7c86; --alva: #b45309; --casan: #7e22ce;
  --ok: #16794a; --ok-bg: #e3f5ec; --warn: #8a5a00; --warn-bg: #fff3d6; --bad: #b42318; --bad-bg: #fde8e6;
  --shadow: 0 1px 2px rgba(15,27,45,.08), 0 6px 18px rgba(15,27,45,.07);
  --r: 16px;
  --tab-h: 62px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1220; --card: #141d2f; --ink: #e8edf5; --mute: #9aa8bd; --line: #26324a;
    --accent: #6f93ff; --accent-ink: #0b1220; --accent-soft: #1b2748;
    --pln: #36c2cd; --alva: #f0a24a; --casan: #c58bff;
    --ok: #62d49a; --ok-bg: #12301f; --warn: #f2c35b; --warn-bg: #33270a; --bad: #ff8a80; --bad-bg: #3a1714;
    --shadow: 0 1px 2px rgba(0,0,0,.4), 0 6px 18px rgba(0,0,0,.3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.5 "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 12px);
}
[hidden] { display: none !important; }
a { color: var(--accent); }
h1 { font-size: 24px; line-height: 1.2; margin: 20px 0 4px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 17px; margin: 22px 0 4px; font-weight: 800; }
h2.mini { font-size: 15px; margin: 18px 0 8px; }
h3 { font-size: 15px; margin: 4px 0; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 16px 24px; }
.sub { color: var(--mute); margin: 0 0 14px; }
.hint, .foot, .count { color: var(--mute); font-size: 13px; margin: 8px 0; }
.foot { margin-top: 20px; }
.item-sub { color: var(--mute); font-size: 13px; }

/* kartu & form */
.card { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; margin: 12px 0; }
.form .field { margin: 0 0 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 10px; }
label, legend { display: block; font-size: 13px; font-weight: 600; margin: 0 0 4px; color: var(--mute); padding: 0; }
fieldset { border: 0; padding: 0; margin: 0 0 12px; min-width: 0; }
input[type=text], input[type=number], input[type=search], select, textarea {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink);
  background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px;
}
input[type=search] { background: var(--card); margin-top: 6px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 400; color: var(--ink); }
.check input { width: 22px; height: 22px; accent-color: var(--accent); }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* tombol */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 46px; padding: 0 18px;
  font: 600 15px inherit; font-family: inherit; color: var(--ink); background: var(--card); border: 1.5px solid var(--line);
  border-radius: 12px; cursor: pointer; text-decoration: none;
}
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.ghost { background: transparent; }
.btn.wide { width: 100%; }
.btn.small { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.disabled { opacity: .55; cursor: default; }
.btn:disabled { opacity: .6; }
#more { display: flex; margin: 16px auto; }

/* chip & tag */
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 10px 0; }
.chip {
  min-height: 40px; padding: 0 14px; font: 600 14px inherit; font-family: inherit; color: var(--ink);
  background: var(--card); border: 1.5px solid var(--line); border-radius: 999px; cursor: pointer;
}
.chip[aria-pressed=true] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.on-map { min-height: 32px; font-size: 12px; background: color-mix(in srgb, var(--card) 92%, transparent); cursor: default; pointer-events: none; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--bg); color: var(--mute); }
.tag.src-pln { color: var(--pln); } .tag.src-alva { color: var(--alva); } .tag.src-casan { color: var(--casan); }
.tag.warn { background: var(--warn-bg); color: var(--warn); }
.tag.bad { background: var(--bad-bg); color: var(--bad); }
.why { margin: 6px 0 0; font-size: 13px; color: var(--bad); }
.dot {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%;
  font: 800 12px/1 "Plus Jakarta Sans", sans-serif; font-style: normal; color: #fff; background: var(--mute);
}
.dot.src-pln { background: var(--pln); } .dot.src-alva { background: var(--alva); } .dot.src-casan { background: var(--casan); }
@media (prefers-color-scheme: dark) { .dot { color: #0b1220; } }

/* callout */
.callout { padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); font-size: 14px; margin: 10px 0; }
.callout.ok { background: var(--ok-bg); color: var(--ok); }
.callout.warn { background: var(--warn-bg); color: var(--warn); }
.callout.bad { background: var(--bad-bg); color: var(--bad); }
.callout a { color: inherit; font-weight: 700; }

/* daftar titik */
.list { list-style: none; margin: 10px 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.list > li { min-width: 0; }
.item { background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 12px 14px; }
.item.dim { opacity: .62; }
.item-main { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; min-height: 44px; }
.item-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.item-name { font-weight: 700; line-height: 1.3; }
.item-txt .item-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-d { flex: none; font-weight: 700; font-size: 13px; color: var(--accent); }
.item-act { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }

/* beranda: peta */
.hero { position: relative; }
.map { width: 100%; background: #dfe6ec; touch-action: none; position: relative; overflow: hidden; }
.map-hero { height: min(62vh, 520px); min-height: 360px; }
.map-trip { height: 280px; border-radius: 14px; margin: 10px 0 14px; }
.map-top { position: absolute; left: 12px; right: 12px; top: calc(12px + env(safe-area-inset-top)); display: flex; justify-content: space-between; align-items: center; z-index: 5; pointer-events: none; }
.brand, .pill { pointer-events: auto; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); color: var(--ink); }
.brand { color: var(--accent); pointer-events: none; }
.brand-name { font-weight: 800; letter-spacing: -.01em; color: var(--ink); font-size: 17px; }
.pill { border: 0; font: 700 14px inherit; font-family: inherit; cursor: pointer; }
.ic { display: inline-flex; width: 20px; height: 20px; } .ic svg { width: 100%; height: 100%; }
.map-chips { position: absolute; left: 12px; top: calc(116px + env(safe-area-inset-top)); z-index: 5; display: flex; flex-direction: column; gap: 6px; align-items: flex-start; pointer-events: none; }
.legend { display: flex; gap: 10px; padding: 6px 10px; border-radius: 12px; background: color-mix(in srgb, var(--card) 92%, transparent); font-size: 12px; font-weight: 600; }
.legend span { display: inline-flex; align-items: center; gap: 4px; }
.legend .dot { width: 18px; height: 18px; font-size: 10px; }
.sheet { position: absolute; left: 10px; right: 10px; bottom: 10px; z-index: 8; background: var(--card); border-radius: 18px; box-shadow: var(--shadow), 0 -2px 24px rgba(0,0,0,.12); padding: 14px 16px; max-width: 520px; margin: 0 auto; }
.sheet-h { display: flex; gap: 10px; align-items: flex-start; padding-right: 36px; }
.sheet-x { position: absolute; right: 6px; top: 6px; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 0; color: var(--mute); cursor: pointer; }
.sheet-x svg { width: 22px; height: 22px; }
.strip { display: flex; align-items: center; gap: 14px; margin: 14px 0 0; padding: 10px 14px; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); }
.strip-art { width: 84px; flex: none; color: var(--mute); } .strip-art svg { display: block; width: 100%; height: auto; }

/* mesin peta */
.pm-tiles { position: absolute; inset: 0; overflow: hidden; }
.pm-tile { position: absolute; left: 0; top: 0; max-width: none; user-select: none; -webkit-user-drag: none; opacity: 0; transition: opacity .2s; }
.pm-tile.ok { opacity: 1; } .pm-tile.old { z-index: -1; }
.pm-svg, .pm-pins, .pm-extra { position: absolute; inset: 0; overflow: visible; pointer-events: none; }
.pm-svg { width: 100%; height: 100%; }
.pm-route { fill: none; stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.pm-route.dashed { stroke-dasharray: 2 10; }
.pm-route.alt { stroke: var(--mute); opacity: .55; stroke-width: 6; }
.pm-pin, .pm-cl, .pm-mark, .pm-me { position: absolute; left: 0; top: 0; pointer-events: auto; }
.pm-pin {
  width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; border: 2.5px solid #fff; color: #fff;
  font: 800 12px "Plus Jakarta Sans", sans-serif; display: grid; place-items: center; padding: 0; cursor: pointer;
  background: var(--mute); box-shadow: 0 2px 6px rgba(0,0,0,.35);
}
.pm-pin.src-pln { background: #0e7c86; } .pm-pin.src-alva { background: #b45309; } .pm-pin.src-casan { background: #7e22ce; }
.pm-pin.dim { opacity: .4; }
.pm-pin.sel { width: 38px; height: 38px; margin: -19px 0 0 -19px; z-index: 3; box-shadow: 0 0 0 4px rgba(36,87,245,.35), 0 2px 8px rgba(0,0,0,.4); }
.pm-cl {
  --s: 34px; width: var(--s); height: var(--s); margin: calc(var(--s) / -2) 0 0 calc(var(--s) / -2); border-radius: 50%;
  background: #0f1b2d; color: #fff; border: 3px solid rgba(255,255,255,.9); font: 800 13px "Plus Jakarta Sans", sans-serif; cursor: pointer; padding: 0;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.pm-mark { width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; display: grid; place-items: center; font: 800 13px "Plus Jakarta Sans", sans-serif; color: #fff; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.35); z-index: 4; }
.pm-mark-start { background: #16794a; } .pm-mark-end { background: #b42318; } .pm-mark-stop { background: var(--accent); color: var(--accent-ink); }
.pm-me { width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; background: #2457f5; border: 3px solid #fff; box-shadow: 0 0 0 8px rgba(36,87,245,.25); z-index: 5; }
.pm-zoom { position: absolute; right: 10px; bottom: 34px; display: flex; flex-direction: column; gap: 6px; z-index: 6; }
.sheet:not([hidden]) ~ .pm-zoom { bottom: 10px; }
.pm-btn { width: 44px; height: 44px; border-radius: 12px; border: 0; background: var(--card); color: var(--ink); font: 600 22px/1 sans-serif; box-shadow: var(--shadow); cursor: pointer; }
.pm-btn:disabled { opacity: .4; }
.pm-attr { position: absolute; left: 6px; bottom: 4px; font-size: 11px; background: rgba(255,255,255,.8); color: #333; padding: 1px 6px; border-radius: 6px; z-index: 6; text-decoration: none; }
.pm-hint { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); background: rgba(15,27,45,.8); color: #fff; padding: 8px 14px; border-radius: 10px; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 7; }
.pm-hint.show { opacity: 1; }
.pm.grabbing { cursor: grabbing; }

/* motor */
.garage { display: flex; flex-direction: column; align-items: center; background: linear-gradient(180deg, var(--accent-soft), var(--card)); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px 14px 16px; text-align: center; margin-top: 10px; }
.art { width: min(100%, 360px); color: var(--mute); } .art svg, .art img { display: block; width: 100%; height: auto; border-radius: 12px; }
.garage-name { font-size: 20px; font-weight: 800; margin-top: 8px; min-height: 28px; }
.garage .chips { justify-content: center; margin: 4px 0 0; }
.sum { text-align: center; } .sum-n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }

/* perjalanan */
.res-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.res-badge { padding: 4px 12px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.res-badge.ok { background: var(--ok-bg); color: var(--ok); } .res-badge.bad { background: var(--bad-bg); color: var(--bad); }
.bl { width: 100%; height: auto; margin: 10px 0 4px; }
.bl-grid { stroke: var(--line); stroke-width: 1; } .bl-res { stroke: var(--bad); stroke-width: 1.2; stroke-dasharray: 4 4; }
.bl-line { fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linejoin: round; stroke-linecap: round; }
.bl-dot { fill: var(--card); stroke: var(--accent); stroke-width: 2.5; }
.bl-t { font: 600 9.5px "Plus Jakarta Sans", sans-serif; fill: var(--mute); }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 14px; }
.steps li { display: flex; gap: 12px; }
.step-n { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--accent); color: var(--accent-ink); }
.step-n.a { background: var(--ok); color: #fff; } .step-n.b { background: var(--bad); color: #fff; }

/* aksesoris */
.grid-acc { list-style: none; margin: 10px 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.acc { display: flex; gap: 14px; min-width: 0; background: var(--card); border-radius: var(--r); box-shadow: var(--shadow); padding: 14px; }
.acc-ic { flex: none; width: 52px; height: 52px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.acc-ic svg { width: 28px; height: 28px; }
.acc-b p { margin: 2px 0 10px; color: var(--mute); font-size: 14px; }

/* menu bawah */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: grid; grid-template-columns: repeat(5, 1fr); background: var(--card); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs a { min-height: var(--tab-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; text-decoration: none; color: var(--mute); font-size: 11px; font-weight: 600; }
.tabs svg { width: 24px; height: 24px; }
.tabs a.on { color: var(--accent); }
#toast { position: fixed; left: 50%; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom) + 14px); transform: translate(-50%, 20px); max-width: min(92vw, 420px); background: #0f1b2d; color: #fff; padding: 10px 16px; border-radius: 12px; font-size: 14px; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 760px) {
  .tabs { max-width: 560px; left: 50%; right: auto; transform: translateX(-50%); border-radius: 18px 18px 0 0; border: 1px solid var(--line); border-bottom: 0; width: 100%; }
  .map-hero { border-radius: 0 0 20px 20px; }
}
@media (max-width: 380px) { .grid3 { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* peta: kunci sentuh di HP (usapan menggulir halaman sampai peta diketuk) */
.map.locked { touch-action: pan-y; }
.pm-lock { position: absolute; left: 50%; bottom: 36px; transform: translateX(-50%); background: rgba(15,27,45,.78); color: #fff; font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 999px; pointer-events: none; z-index: 6; white-space: nowrap; }
.sheet:not([hidden]) ~ .pm-lock { display: none; }
.pm-mark-via { background: #6b7a90; }

/* rute: titik singgah & detail */
.wp { display: flex; align-items: flex-end; gap: 10px; }
.wp .field { flex: 1; min-width: 0; }
.wp-l { flex: none; width: 30px; height: 30px; margin-bottom: 8px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: #6b7a90; }
.wp-a { background: var(--ok); } .wp-z { background: var(--bad); }
.wp-x { flex: none; width: 44px; height: 44px; margin-bottom: 4px; background: none; border: 0; color: var(--mute); display: grid; place-items: center; cursor: pointer; }
.wp-x svg { width: 20px; height: 20px; }
#t-add { margin-bottom: 4px; }
.opts { margin: 14px 0; padding: 0; }
.opts summary { cursor: pointer; font-weight: 700; min-height: 44px; display: flex; align-items: center; }
.tag.rec { background: var(--accent-soft); color: var(--accent); }
.pm-pin.rec { box-shadow: 0 0 0 4px rgba(36,87,245,.45), 0 2px 6px rgba(0,0,0,.35); }
.item.flash { outline: 3px solid var(--accent); }
.item > .item-sub { white-space: normal; }

/* login */
.wrap.narrow { max-width: 440px; }
.auth-logo { display: flex; align-items: center; gap: 8px; color: var(--accent); margin: 32px 0 6px; }
.auth-logo svg { width: 30px; height: 30px; }
.center { text-align: center; }
.pw { display: flex; gap: 8px; }
.pw input { flex: 1; min-width: 0; }
.pw-t { flex: none; min-height: 46px; padding: 0 12px; background: var(--card); color: var(--accent); border: 1.5px solid var(--line); border-radius: 12px; font: 600 13px inherit; font-family: inherit; cursor: pointer; }
input[type=email], input[type=password] { width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; color: var(--ink); background: var(--bg); border: 1.5px solid var(--line); border-radius: 12px; }
input[readonly] { opacity: .75; }
.linkbtn { background: none; border: 0; padding: 0; min-height: 44px; color: var(--accent); font: 700 inherit; font-family: inherit; text-decoration: underline; cursor: pointer; }
body.on-auth { padding-bottom: 24px; }

/* pencarian alamat */
.wp-quick { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.chip.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.tag.ok { background: var(--ok-bg); color: var(--ok); }
.sug { list-style: none; margin: 8px 0 0; padding: 0; background: var(--card); border: 1.5px solid var(--line); border-radius: 12px; overflow: hidden; }
.sug li + li { border-top: 1px solid var(--line); }
.sug-b { display: flex; flex-direction: column; align-items: flex-start; width: 100%; min-height: 48px; padding: 8px 12px; background: none; border: 0; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.sug-b span, .sug-msg { color: var(--mute); font-size: 13px; }
.sug-msg { padding: 10px 12px; }
.wp-in { min-width: 0; }
.pw input[type=search] { margin-top: 0; background: var(--bg); }
.wp { align-items: flex-start; }
.wp-l { margin: 26px 0 0; }
.wp-x { margin: 22px 0 0; }

/* Polytron + peta Google */
.dot.src-polytron { background: #e8590c; } .pm-pin.src-polytron { background: #e8590c; } .tag.src-polytron { color: #e8590c; }
.map.gm { touch-action: auto; }
.legend { flex-wrap: wrap; }

.sug-msg.gerr { background: var(--warn-bg); color: var(--warn); }

/* fitur tambahan */
textarea { resize: vertical; }
.item-meta { margin: 8px 0 0; font-size: 12px; color: var(--mute); }
.btn.lapor { margin-left: auto; color: var(--mute); border-color: transparent; background: transparent; }
.btn.lapor:hover { color: var(--bad); }
.mode { margin: 10px 0; }
.mode .hint { margin: 6px 0 0; color: inherit; opacity: .85; }
.alts { margin: 6px 0 2px; }
.tip { background: var(--accent-soft); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.tip-t { margin: 0 0 10px; font-weight: 600; font-size: 15px; min-height: 2.8em; }
.tip-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.tip .hint { margin: 8px 0 0; }
.dots { display: flex; }
.dotb { width: 22px; height: 28px; padding: 0; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; }
.dotb::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--mute); opacity: .35; }
.dotb[aria-current] ::before, .dotb[aria-current]::before { opacity: 1; background: var(--accent); }
.bawa { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.bawa li { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 12px; background: var(--bg); }
.bawa li > div { min-width: 0; }
.bawa p { margin: 2px 0 0; }
.modal { position: fixed; inset: 0; z-index: 80; display: flex; align-items: flex-end; justify-content: center; background: rgba(8,14,26,.55); padding: 0; }
.modal[hidden] { display: none; }
.modal-box { width: 100%; max-width: 520px; background: var(--card); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; }
.modal-box h2 { margin: 0 0 4px; font-size: 18px; }
@media (min-width: 640px) { .modal { align-items: center; } .modal-box { border-radius: 20px; } }
.radio { display: flex; align-items: center; gap: 10px; min-height: 44px; font-size: 15px; font-weight: 400; color: var(--ink); }
.radio input { width: 20px; height: 20px; accent-color: var(--accent); }
.hem-n { font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ok); }
.hem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 12px 0 4px; }
.hem-grid > div { background: var(--bg); border-radius: 12px; padding: 10px 12px; }
.hem-grid b { display: block; font-size: 17px; }

/* beranda: cari SPKLU */
.map-btns { display: flex; gap: 8px; pointer-events: none; }
.pill.round { width: 42px; padding: 0; justify-content: center; text-decoration: none; color: var(--ink); }
.pill[hidden] { display: none; }
.map-search { position: absolute; left: 12px; right: 12px; top: calc(62px + env(safe-area-inset-top)); z-index: 7; max-width: 520px; }
.hs-box { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 6px 0 14px; border-radius: 14px; background: var(--card); box-shadow: var(--shadow); color: var(--mute); }
.hs-box:focus-within { outline: 2px solid var(--accent); outline-offset: 1px; }
.hs-box input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; color: var(--ink); font: 500 16px inherit; font-family: inherit; outline: none; -webkit-appearance: none; appearance: none; }
.hs-box input::-webkit-search-cancel-button { display: none; }
.hs-x { flex: none; width: 40px; height: 40px; border: 0; background: none; color: var(--mute); cursor: pointer; display: grid; place-items: center; }
.hs-x .ic { width: 18px; height: 18px; }
.hs-list { list-style: none; margin: 6px 0 0; padding: 4px; background: var(--card); border-radius: 14px; box-shadow: var(--shadow), 0 8px 28px rgba(0,0,0,.14); max-height: min(52vh, 360px); overflow-y: auto; overscroll-behavior: contain; }
.hs-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 10px; border: 0; border-radius: 10px; background: none; text-align: left; font: inherit; color: var(--ink); cursor: pointer; }
.hs-row:hover, .hs-row.act { background: var(--accent-soft); }
.hs-row.area { flex-direction: column; align-items: flex-start; justify-content: center; gap: 0; color: var(--accent); }
.hs-b { display: flex; flex-direction: column; min-width: 0; }
.hs-t { font-weight: 700; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-s { font-size: 12.5px; color: var(--mute); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hs-row .dot { flex: none; }
.hs-none { padding: 12px; font-size: 13px; color: var(--mute); }
.masa-bar { display: block; margin: 12px 0 0; padding: 11px 14px; border-radius: 12px; font-size: 14px; font-weight: 600; text-decoration: none; }
.masa-bar.warn { background: var(--warn-bg); color: var(--warn); }
.masa-bar.bad { background: var(--bad-bg); color: var(--bad); }
.masa-bar[hidden] { display: none; }

/* profil */
.prof-head { display: flex; align-items: center; gap: 14px; }
.avatar { flex: none; width: 52px; height: 52px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 800; font-size: 22px; }
.prof-id { min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.prof-mail { font-weight: 700; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.card + .card, .card + .btn { margin-top: 12px; }
.masa-n { font-size: 40px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.masa[data-state="segera"] .masa-n { color: var(--warn); }
.masa[data-state="habis"] .masa-n { color: var(--bad); }
.masa-sub { color: var(--mute); font-size: 14px; margin: 2px 0 12px; }
.bar { height: 10px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--accent); transition: width .5s; }
.masa[data-state="segera"] .bar i { background: var(--warn); }
.masa[data-state="habis"] .bar i { background: var(--bad); }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 4px; }
.kv dt { font-size: 12px; color: var(--mute); font-weight: 600; }
.kv dd { margin: 2px 0 0; font-weight: 700; font-size: 14px; }
.row-link { display: flex; align-items: center; justify-content: space-between; min-height: 48px; text-decoration: none; color: var(--ink); font-weight: 600; }
.row-link + .row-link { border-top: 1px solid var(--line); }
.row-link::after { content: "›"; color: var(--mute); font-size: 20px; }

/* aksesoris berfoto */
.acc-ph { position: relative; flex: none; width: 88px; height: 88px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; overflow: hidden; }
.acc-ph .acc-ic { width: 40px; height: 40px; background: none; border-radius: 0; }
.acc-ph .acc-ic svg { width: 36px; height: 36px; }
.acc-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: var(--card); }
.acc-b { min-width: 0; flex: 1; }
.acc-b .tags { display: flex; gap: 6px; flex-wrap: wrap; }
.acc-b h3 { margin: 6px 0 2px; font-size: 15px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc-b p { margin: 0 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.acc-price { font-weight: 800; margin: 0 0 8px; }
.acc-price span { font-weight: 500; color: var(--mute); font-size: 13px; }
