/* Khenambay — gaya tampilan. Token warna sama dengan prototipe Figma/FigCraft. */
@font-face { font-family: PJS; src: url(fonts/pjs-400.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: PJS; src: url(fonts/pjs-500.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: PJS; src: url(fonts/pjs-600.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: PJS; src: url(fonts/pjs-700.woff2) format('woff2'); font-weight: 700; font-display: swap; }
@font-face { font-family: PJS; src: url(fonts/pjs-800.woff2) format('woff2'); font-weight: 800; font-display: swap; }

:root {
  --ink: #0B1F24; --ink2: #123A40; --muted: #5F7175; --line: #E1E8E6; --bg: #F3F6F5; --card: #fff;
  --teal: #0E6C72; --teal2: #19A39B; --cyan: #5FD6CF; --soft: #EAF1EF;
  --amber: #F2B33D; --amberS: #FDF1D8; --amberD: #8A5A08; --coral: #E8645A; --coralS: #FBE3E0; --red: #B3362E;
  --green: #2E9E62; --greenS: #DDF3E6;
  --ikan: #1C8AB3; --kebun: #C26A2C; --wisata: #D04A72; --tani: #8A9A1F; --lain: #6B7A80; --ternak: #B07A3A; --industri: #5B6FB5;
  --hero: linear-gradient(150deg, #071A1E 0%, #0E4F55 55%, #13817F 100%);
  --tealg: linear-gradient(135deg, #0E6C72, #19A39B);
  --r: 18px; --sh: 0 10px 28px -10px rgba(11, 31, 36, .18); --sh2: 0 18px 50px -16px rgba(11, 31, 36, .35);
  --safe-b: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: PJS, system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--teal); }
h1, h2, h3 { margin: 0; letter-spacing: -.02em; line-height: 1.2; }
h1 { font-size: 26px; font-weight: 800; } h2 { font-size: 19px; font-weight: 800; } h3 { font-size: 16px; font-weight: 700; }
p { margin: 0; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .small { font-size: 13px; } .xs { font-size: 12px; } .mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px; }
.row { display: flex; align-items: center; gap: 10px; } .between { justify-content: space-between; } .wrap { flex-wrap: wrap; } .grow { flex: 1; min-width: 0; }
.stack { display: grid; gap: 12px; } .stack-s { display: grid; gap: 6px; } .stack-l { display: grid; gap: 18px; }
.label { font-size: 11.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* ---------- topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: rgba(255,255,255,.92);
  backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-width: 0; }
.brand img { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 2px; box-shadow: 0 2px 8px rgba(0,0,0,.08); object-fit: contain; }
.brand span { display: grid; line-height: 1.15; } .brand b { font-size: 17px; font-weight: 800; } .brand small { font-size: 11.5px; color: var(--muted); }
.top-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.on { background: var(--greenS); color: var(--green); } .pill.off { background: var(--amberS); color: var(--amberD); } .pill.wait { background: var(--soft); color: var(--muted); }
.icon-btn { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); }
.icon-btn:hover { background: var(--soft); }
.dot-count { position: absolute; top: -6px; right: -6px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--amber); color: var(--ink); font-size: 11px; font-weight: 800; display: grid; place-items: center; }
.banner { background: var(--amberS); color: #6B4A0A; padding: 10px 16px; font-size: 13.5px; text-align: center; border-bottom: 1px solid #F3DDA8; }

/* ---------- layout ---------- */
main { outline: none; }
.page { max-width: 640px; margin: 0 auto; padding: 16px 16px calc(110px + var(--safe-b)); display: grid; gap: 16px; }
.page.wide { max-width: 1100px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: 0 6px 18px -12px rgba(11,31,36,.18); }
.card.flat { box-shadow: none; }
.card.hero { background: var(--hero); color: #fff; border: 0; position: relative; overflow: hidden; }
.card.hero .muted { color: rgba(255,255,255,.72); }
.card.amber { background: var(--amberS); border-color: #F3DDA8; } .card.coral { background: var(--coralS); border-color: #F1C6C1; } .card.soft { background: var(--soft); border-color: transparent; }
.head { display: flex; align-items: flex-start; gap: 12px; }
.back { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; border: 1px solid var(--line); color: var(--ink); text-decoration: none; flex: none; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font-weight: 700; font-size: 15px; background: var(--tealg); color: #fff; text-decoration: none; box-shadow: 0 10px 22px -10px rgba(14,108,114,.7); }
.btn:hover { filter: brightness(1.05); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.ghost { background: #fff; color: var(--ink); border-color: var(--line); box-shadow: none; }
.btn.dark { background: var(--ink); box-shadow: none; } .btn.amber { background: var(--amber); color: var(--ink); box-shadow: none; }
.btn.danger { background: #fff; color: var(--red); border-color: #F1C6C1; box-shadow: none; }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; } .btn.block { width: 100%; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; } .chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 99px; border: 1px solid var(--line); background: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.chip[aria-pressed="true"], .chip.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.chip.soft { background: var(--soft); border-color: var(--soft); color: var(--ink2); }
.chip i { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.field { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink2); }
.field input, .field select, .field textarea, .input { width: 100%; min-height: 48px; padding: 11px 14px; border-radius: 14px; border: 1px solid var(--line); background: #fff; font-size: 15px; font-weight: 500; color: var(--ink); }
.field textarea { min-height: 96px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus { outline: none; border-color: var(--teal2); box-shadow: 0 0 0 3px rgba(25,163,155,.18); }
.hint { font-size: 12px; color: var(--muted); font-weight: 500; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; color: var(--ink2); }
.check input { width: 20px; height: 20px; accent-color: var(--teal); margin: 1px 0 0; flex: none; }
.toggle { position: relative; width: 48px; height: 28px; flex: none; } .toggle input { opacity: 0; position: absolute; inset: 0; margin: 0; cursor: pointer; }
.toggle span { position: absolute; inset: 0; border-radius: 14px; background: var(--line); transition: .2s; pointer-events: none; }
.toggle span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.2); transition: .2s; }
.toggle input:checked + span { background: var(--teal); } .toggle input:checked + span::after { left: 23px; }

/* ---------- badges, meters ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.b-g { background: var(--greenS); color: var(--green); } .b-a { background: var(--amberS); color: var(--amberD); } .b-r { background: var(--coralS); color: var(--red); } .b-t { background: var(--soft); color: var(--teal); } .b-n { background: #EEF1F1; color: var(--muted); }
.meter { display: flex; gap: 4px; } .meter i { flex: 1; height: 6px; border-radius: 3px; background: var(--line); }
.meter.l1 i:nth-child(-n+1), .meter.l2 i:nth-child(-n+2), .meter.l3 i:nth-child(-n+3) { background: var(--amber); }
.meter.l4 i:nth-child(-n+4) { background: var(--teal2); } .meter.l5 i { background: var(--green); }
.track { height: 8px; border-radius: 5px; background: var(--line); overflow: hidden; } .track > i { display: block; height: 100%; background: var(--tealg); border-radius: 5px; transition: width .5s; }
.secdot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

/* ---------- role picker ---------- */
.start { min-height: 100vh; background: var(--hero); color: #fff; display: grid; place-items: center; padding: 28px 18px; }
.start-in { width: 100%; max-width: 520px; display: grid; gap: 22px; }
.start .logo { display: flex; align-items: center; gap: 12px; } .start .logo img { width: 58px; height: 58px; border-radius: 16px; background: #fff; padding: 4px; }
.start .logo b { font-size: 26px; font-weight: 800; display: block; } .start .logo small { color: rgba(255,255,255,.72); }
.start h1 { font-size: 34px; } .start p.lead { color: rgba(255,255,255,.78); }
.role { display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px; border-radius: 22px; background: #fff; color: var(--ink); border: 0; text-align: left; box-shadow: 0 14px 30px -14px rgba(0,0,0,.5); transition: transform .15s; }
.role:hover { transform: translateY(-2px); }
.role .ic { width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; background: var(--soft); color: var(--teal); flex: none; }
.role b { font-size: 16px; display: block; } .role small { color: var(--muted); font-size: 13px; }
.cenra-hello { display: flex; align-items: flex-end; gap: 10px; } .cenra-hello img { width: 104px; flex: none; animation: bob 3s ease-in-out infinite; }
.bubble { background: #fff; color: var(--ink); border-radius: 18px 18px 18px 6px; padding: 12px 14px; font-weight: 600; font-size: 14px; box-shadow: var(--sh); }
@keyframes bob { 50% { transform: translateY(-6px) rotate(-2deg); } }

/* ---------- home pendata ---------- */
.hero-band { background: var(--hero); color: #fff; border-radius: 0 0 30px 30px; margin: -16px -16px 0; padding: 20px 18px 22px; display: grid; gap: 16px; }
.avatar-txt { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--amber), var(--coral)); color: #fff; font-weight: 800; flex: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; padding: 14px 6px; }
.stats button { background: none; border: 0; color: #fff; display: grid; justify-items: center; gap: 2px; padding: 4px; border-radius: 12px; }
.stats button:hover { background: rgba(255,255,255,.08); } .stats b { font-size: 26px; font-weight: 800; } .stats small { font-size: 11.5px; opacity: .75; }
.stats .warn b { color: var(--amber); }
.item { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); width: 100%; text-align: left; color: var(--ink); text-decoration: none; }
button.item:hover, a.item:hover { border-color: var(--teal2); }
.item .ic { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.item b { display: block; font-size: 14.5px; } .item small { color: var(--muted); font-size: 12.5px; }

/* ---------- wizard ---------- */
.steps { display: flex; gap: 6px; } .steps i { flex: 1; height: 6px; border-radius: 4px; background: var(--line); } .steps i.on { background: var(--tealg); }
.gps { position: relative; height: 220px; border-radius: 20px; overflow: hidden; background: #CFE7EC; }
.gps svg.map { width: 100%; height: 100%; }
.pulse { position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px; border-radius: 50%; background: var(--teal); border: 4px solid #fff; box-shadow: 0 4px 12px rgba(0,0,0,.25); }
.pulse::before, .pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--teal2); animation: ping 1.8s ease-out infinite; }
.pulse::after { animation-delay: .9s; } .pulse.locked::before, .pulse.locked::after { display: none; } .pulse.locked { background: var(--green); }
@keyframes ping { to { transform: scale(5); opacity: 0; } }
.acc { position: absolute; left: 12px; bottom: 12px; right: 12px; background: rgba(255,255,255,.95); border-radius: 14px; padding: 10px 12px; font-size: 13px; }
.sector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.sector { display: grid; gap: 8px; padding: 14px; border-radius: 16px; border: 2px solid var(--line); background: #fff; text-align: left; font-weight: 700; }
.sector .ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; }
.sector[aria-pressed="true"] { border-color: var(--teal); background: var(--soft); }
.mic { width: 84px; height: 84px; border-radius: 50%; border: 0; background: var(--tealg); color: #fff; display: grid; place-items: center; margin: 0 auto; box-shadow: 0 14px 30px -12px rgba(14,108,114,.8); }
.mic svg { width: 34px; height: 34px; } .mic.rec { background: var(--coral); animation: recp 1.2s infinite; }
@keyframes recp { 50% { box-shadow: 0 0 0 16px rgba(232,100,90,.18); } }
.wave { display: flex; gap: 4px; justify-content: center; height: 34px; align-items: center; } .wave i { width: 4px; border-radius: 2px; background: var(--teal2); animation: wv 1s ease-in-out infinite; }
@keyframes wv { 0%, 100% { height: 6px; } 50% { height: 30px; } }
.ai-box { background: var(--hero); color: #fff; border-radius: 20px; padding: 16px; display: grid; gap: 10px; }
.ai-box .muted { color: rgba(255,255,255,.7); }
.photos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo { position: relative; aspect-ratio: 3/4; border-radius: 14px; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; } .photo button { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(11,31,36,.7); color: #fff; }
.photo.add { display: grid; place-items: center; border: 2px dashed var(--teal2); color: var(--teal); font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; }
.actionbar { position: sticky; bottom: calc(76px + var(--safe-b)); z-index: 5; display: flex; gap: 10px; padding: 12px 0 0; background: linear-gradient(transparent, var(--bg) 30%); }
body.no-nav .actionbar { bottom: calc(12px + var(--safe-b)); }

/* ---------- map ---------- */
.mapbox { position: relative; border-radius: 22px; overflow: hidden; background: #CFE7EC; border: 1px solid var(--line); }
.mapbox svg { width: 100%; height: auto; display: block; }
.mapbox .pin { cursor: pointer; } .mapbox .pin:hover circle, .mapbox .pin:focus circle { stroke: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 10px; font-size: 12px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 5px; }

/* ---------- opportunity cards ---------- */
.opp { display: flex; gap: 12px; padding: 12px; border-radius: 18px; background: #fff; border: 1px solid var(--line); align-items: center; }
.opp .ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; flex: none; }
.opp .open { all: unset; cursor: pointer; flex: 1; min-width: 0; display: grid; gap: 5px; }
.opp .open:focus-visible { outline: 3px solid var(--cyan); border-radius: 8px; }
.opp b { font-size: 15px; font-weight: 800; }
.save { width: 38px; height: 38px; border-radius: 11px; border: 0; background: var(--bg); color: #8A9A9D; display: grid; place-items: center; flex: none; }
.save[aria-pressed="true"] { background: var(--soft); color: var(--teal); } .save[aria-pressed="true"] svg { fill: currentColor; }
.kv { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .kv div { background: var(--bg); border-radius: 14px; padding: 10px 12px; } .kv small { display: block; color: var(--muted); font-size: 12px; } .kv b { font-size: 16px; }
.photo-hero { height: 150px; border-radius: 20px; background: linear-gradient(135deg, #0E4F55, #1C8AB3); display: flex; align-items: flex-end; padding: 14px; gap: 6px; flex-wrap: wrap; }
.photo-hero .badge { background: rgba(255,255,255,.22); color: #fff; }

/* ---------- chat ---------- */
.chat { display: grid; gap: 12px; align-content: start; }
.msg { max-width: 86%; padding: 11px 14px; border-radius: 18px; font-size: 14px; line-height: 1.5; }
.msg.me { justify-self: end; background: var(--tealg); color: #fff; border-bottom-right-radius: 6px; }
.msg-ai { display: flex; gap: 8px; align-items: flex-end; max-width: 94%; }
.msg-ai .av { width: 34px; height: 34px; border-radius: 50%; background: #FFF3C4; overflow: hidden; flex: none; display: grid; place-items: end center; }
.msg-ai .av img { width: 40px; }
.msg.ai { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; display: grid; gap: 8px; }
.msg.ai ul, .msg.ai ol { margin: 0; padding-left: 18px; } .msg.ai .src { font-size: 11.5px; color: var(--muted); }
.mini-opp { display: flex; gap: 8px; align-items: center; padding: 8px 10px; border-radius: 12px; background: var(--bg); border: 0; width: 100%; text-align: left; font-size: 13px; }
.mini-opp b { font-size: 13px; } .mini-opp:hover { background: var(--soft); }
.typing { display: inline-flex; gap: 4px; padding: 14px; } .typing i { width: 8px; height: 8px; border-radius: 50%; background: var(--teal2); animation: tp 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes tp { 50% { opacity: .25; transform: translateY(-3px); } }

/* ---------- Cenra ---------- */
.cenra-fab { position: fixed; right: 16px; bottom: calc(92px + var(--safe-b)); z-index: 40; border: 0; background: none; padding: 0; display: flex; align-items: center; gap: 10px; }
body.no-nav .cenra-fab { bottom: calc(18px + var(--safe-b)); }
.cenra-fab .ring { width: 66px; height: 66px; border-radius: 50%; background: linear-gradient(160deg, #13817F, #0E4F55); border: 3px solid #fff; overflow: hidden; display: grid; place-items: end center;
  box-shadow: 0 12px 26px -8px rgba(14,108,114,.6); animation: bob 3.4s ease-in-out infinite; }
.cenra-fab .ring img { width: 76px; max-width: none; }
.cenra-fab .tip { background: #fff; padding: 8px 13px; border-radius: 99px; font-weight: 700; font-size: 13px; box-shadow: var(--sh); white-space: nowrap; }
.cenra-fab .online { position: absolute; right: 2px; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--green); border: 3px solid #fff; }
.cenra-fab.min .tip { display: none; }
.cenra-wrap, .sheet-wrap { position: fixed; inset: 0; z-index: 60; }
.cenra-dim, .sheet-dim { position: absolute; inset: 0; background: rgba(11,31,36,.45); animation: fade .25s; }
.cenra-panel, .sheet { position: absolute; left: 0; right: 0; bottom: 0; max-height: 92vh; height: 92vh; background: #fff; border-radius: 28px 28px 0 0; display: flex; flex-direction: column;
  gap: 12px; padding: 10px 18px calc(16px + var(--safe-b)); box-shadow: 0 -20px 50px -20px rgba(0,0,0,.4); animation: up .32s cubic-bezier(.2,.9,.3,1.1); }
.sheet { height: auto; } #sheet-body { overflow-y: auto; display: grid; gap: 14px; padding-bottom: 4px; }
.handle { width: 40px; height: 5px; border-radius: 3px; background: var(--line); margin: 0 auto; flex: none; }
@keyframes up { from { transform: translateY(40px); opacity: 0; } } @keyframes fade { from { opacity: 0; } }
.cenra-head { display: flex; align-items: center; gap: 12px; }
.cenra-head > div { flex: 1; display: grid; } .cenra-head b { font-size: 18px; font-weight: 800; } .cenra-head small { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.cenra-head .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: #FFF3C4; overflow: hidden; display: grid; place-items: end center; flex: none; }
.avatar img { width: 54px; max-width: none; }
.seg { display: flex; gap: 4px; padding: 4px; background: var(--bg); border-radius: 14px; flex: none; }
.seg button { flex: 1; height: 38px; border: 0; border-radius: 11px; background: none; font-weight: 700; color: var(--muted); }
.seg button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: 0 4px 10px -4px rgba(0,0,0,.15); }
.cenra-body { flex: 1; overflow-y: auto; display: grid; align-content: start; gap: 12px; padding: 2px; }
.greet { display: flex; align-items: flex-end; gap: 10px; } .greet img { width: 84px; flex: none; }
.greet .bubble { background: var(--amberS); box-shadow: none; }
.faq { border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.faq summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 13px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--bg); color: var(--teal); font-weight: 800; flex: none; }
.faq[open] { background: var(--soft); border-color: var(--teal2); } .faq[open] summary { font-weight: 800; } .faq[open] summary::after { content: '–'; background: var(--teal); color: #fff; }
.faq .ans { display: flex; gap: 10px; align-items: flex-end; padding: 0 14px 12px; font-size: 13.5px; color: var(--ink2); }
.faq .ans img { width: 46px; flex: none; } .faq .fb { display: flex; gap: 8px; align-items: center; padding: 0 14px 14px; font-size: 12px; color: var(--muted); }
.quick { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: none; }
.quick button { flex: none; }
.cenra-input { display: flex; gap: 8px; align-items: center; flex: none; }
.cenra-input input { flex: 1; min-width: 0; height: 48px; border-radius: 16px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; font-size: 15px; }
.cenra-input .send { width: 48px; height: 48px; border-radius: 16px; border: 0; background: var(--tealg); color: #fff; display: grid; place-items: center; }
#cenra-mic.rec { background: var(--coralS); color: var(--red); border-color: #F1C6C1; }
.cenra-tip { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 18px; background: var(--amberS); }
.cenra-tip .avatar { width: 44px; height: 44px; } .cenra-tip .avatar img { width: 50px; }
.cenra-tip b { color: var(--amberD); font-size: 12px; display: block; } .cenra-tip p { font-size: 13px; color: var(--ink2); }
.cenra-tip.dark { background: var(--hero); } .cenra-tip.dark b { color: var(--cyan); } .cenra-tip.dark p { color: rgba(255,255,255,.85); }

/* ---------- bottom nav ---------- */
.bottomnav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 35; display: flex; justify-content: space-around; background: #fff; border-top: 1px solid var(--line);
  padding: 8px 6px calc(10px + var(--safe-b)); box-shadow: 0 -6px 20px -12px rgba(0,0,0,.15); }
.bottomnav a { flex: 1; max-width: 120px; display: grid; justify-items: center; gap: 3px; padding: 4px; border-radius: 12px; text-decoration: none; color: #8A9A9D; font-size: 11.5px; font-weight: 600; position: relative; }
.bottomnav a[aria-current="page"] { color: var(--teal); font-weight: 800; }
.bottomnav a .dot-count { top: -2px; right: 18%; }

/* ---------- toasts ---------- */
.toasts { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { display: flex; gap: 10px; align-items: center; background: var(--ink); color: #fff; padding: 12px 16px; border-radius: 14px; font-size: 14px; box-shadow: var(--sh2); animation: up .3s; pointer-events: auto; }
.toast.ok::before { content: '✓'; width: 24px; height: 24px; border-radius: 50%; background: var(--green); display: grid; place-items: center; font-weight: 800; flex: none; }
.toast.warn::before { content: '!'; width: 24px; height: 24px; border-radius: 50%; background: var(--amber); color: var(--ink); display: grid; place-items: center; font-weight: 800; flex: none; }

/* ---------- admin ---------- */
.admin { display: grid; grid-template-columns: 250px 1fr; min-height: calc(100vh - 61px); }
.side { background: var(--hero); color: #fff; padding: 22px 14px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 61px; height: calc(100vh - 61px); }
.side a { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; color: #C9DCDC; text-decoration: none; font-weight: 600; font-size: 14px; }
.side a:hover { background: rgba(255,255,255,.07); } .side a[aria-current="page"] { background: rgba(255,255,255,.13); color: #fff; } .side a[aria-current="page"] svg { color: var(--cyan); }
.side a .badge { margin-left: auto; background: var(--amber); color: var(--ink); }
.side .me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 13px; }
.side .me .avatar-txt { width: 36px; height: 36px; font-size: 12px; }
.amain { padding: 26px 30px 120px; display: grid; gap: 18px; align-content: start; min-width: 0; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; display: grid; gap: 4px; text-align: left; color: var(--ink); }
.kpi:hover { border-color: var(--teal2); } .kpi b { font-size: 32px; font-weight: 800; letter-spacing: -.03em; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 16px; align-items: start; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); background: var(--bg); padding: 10px 14px; font-weight: 700; }
.table td { padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: middle; }
.table tr.click { cursor: pointer; } .table tr.click:hover td { background: #F6FAF9; }
.table-wrap { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: auto; }
.checks { display: grid; gap: 8px; }
.chk { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.07); }
.chk .d { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 12px; flex: none; }
.chk.ok .d { background: var(--green); color: #fff; } .chk.bad .d { background: var(--amber); color: var(--ink); } .chk.bad { background: rgba(255,255,255,.14); }
.chk b { display: block; font-size: 13.5px; } .chk small { color: rgba(255,255,255,.72); font-size: 12px; }
.levels { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.levels button { border: 0; border-radius: 12px; background: var(--bg); padding: 10px 4px; display: grid; gap: 2px; justify-items: center; }
.levels button b { font-size: 17px; } .levels button small { font-size: 10.5px; color: var(--muted); font-weight: 600; }
.levels button[aria-pressed="true"] { background: var(--ink); color: #fff; } .levels button[aria-pressed="true"] small { color: var(--cyan); }
.kanban { display: grid; grid-template-columns: repeat(5, minmax(180px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.kcol { background: #E8EFED; border-radius: 18px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 300px; }
.kcard { background: #fff; border-radius: 14px; padding: 12px; border: 1px solid var(--line); display: grid; gap: 6px; font-size: 13px; }
.kcard.sug { border-color: var(--amber); }
.kcard .mv { display: flex; gap: 6px; } .kcard .mv button { flex: 1; border: 1px solid var(--line); background: var(--bg); border-radius: 8px; padding: 4px; font-size: 12px; font-weight: 700; }
.drop { border: 2px dashed var(--teal2); border-radius: 20px; padding: 26px; display: grid; justify-items: center; gap: 8px; text-align: center; background: var(--soft); cursor: pointer; }
.drop.over { background: #DDF0EE; }
.docview { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; max-height: 420px; overflow: auto; font-size: 12.5px; white-space: pre-wrap; line-height: 1.6; }
.docview mark { background: rgba(242,179,61,.45); border-radius: 3px; padding: 0 2px; }
.conf { font-weight: 700; font-size: 11.5px; }

@media (max-width: 960px) {
  .admin { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; overflow-x: auto; padding: 10px; gap: 4px; }
  .side a { flex: none; padding: 9px 12px; } .side .me, .side .sname { display: none; }
  .amain { padding: 18px 16px 120px; }
  .kpis { grid-template-columns: 1fr 1fr; } .two { grid-template-columns: 1fr; }
}
@media (min-width: 900px) {
  .cenra-panel { left: auto; right: 24px; top: 24px; bottom: 24px; width: 430px; height: auto; max-height: none; border-radius: 26px; }
  .cenra-panel .handle { display: none; }
  .sheet { left: 50%; right: auto; width: 560px; transform: translateX(-50%); bottom: 24px; border-radius: 26px; animation: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.spin svg { animation: rot .9s linear infinite; } @keyframes rot { to { transform: rotate(360deg); } }
[hidden] { display: none !important; }
a.chip { text-decoration: none; color: var(--ink); } a.chip.on { color: #fff; }
.page { padding-bottom: calc(180px + var(--safe-b)); }
body.has-action .cenra-fab { bottom: calc(158px + var(--safe-b)); } body.has-action .cenra-fab .tip { display: none; }
body.has-action.no-nav .cenra-fab { bottom: calc(88px + var(--safe-b)); }

/* ---------- peta 3D ---------- */
.map3d { position: relative; height: min(62vh, 460px); border-radius: 22px; overflow: hidden; background: #D7ECF0; border: 1px solid var(--line); }
.map3d.admin { height: min(70vh, 640px); }
.map3d-fallback svg { width: 100%; height: 100%; display: block; }
.map3d.ready .map3d-fallback, .map3d.ready .map3d-load { display: none; }
.map3d-load { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 8px; background: rgba(215,236,240,.85); font-weight: 700; color: var(--ink2); font-size: 14px; }
.map3d-load img { width: 70px; animation: bob 1.4s infinite; }
.map3d-root { position: absolute; inset: 0; }
.map3d-root canvas { display: block; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.map3d-labels { position: absolute !important; inset: 0; pointer-events: none; }
.map3d-ui { position: absolute; right: 10px; top: 10px; display: grid; gap: 6px; z-index: 3; }
.map3d-ui button { width: 40px; height: 40px; border-radius: 12px; border: 0; background: rgba(255,255,255,.95); font-size: 18px; font-weight: 800; color: var(--ink); box-shadow: 0 4px 12px rgba(0,0,0,.15); }
.map3d-ui button.wide { font-size: 12.5px; }
.map3d-hint { position: absolute; left: 10px; bottom: 10px; z-index: 3; background: rgba(11,31,36,.72); color: #fff; font-size: 11.5px; padding: 6px 10px; border-radius: 99px; pointer-events: none; }
.map3d.full { position: fixed; inset: 0; z-index: 80; height: auto; border-radius: 0; border: 0; }
.map3d-tag { background: rgba(255,255,255,.93); padding: 3px 8px; border-radius: 6px; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #3B4B4E; box-shadow: 0 2px 6px rgba(0,0,0,.18); white-space: nowrap; border: 1px solid rgba(0,0,0,.06); }
.map3d-tag.water { background: none; box-shadow: none; border: 0; color: #1F6E86; font-style: italic; text-transform: none; font-size: 12.5px; letter-spacing: 0; text-shadow: 0 1px 0 rgba(255,255,255,.7); }
.map3d-tip { background: var(--ink); color: #fff; padding: 6px 10px; border-radius: 10px; font-size: 12.5px; font-weight: 700; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.25); }
.map3d-count { display: inline-block; background: var(--teal); color: #fff; font-weight: 800; font-size: 11px; padding: 1px 7px; border-radius: 99px; margin-left: 2px; letter-spacing: 0; }
.map3d-count.low { background: var(--coral); color: #fff; }
.icon-btn.user span { font-weight: 800; font-size: 13px; color: var(--teal); }
@media (max-width: 520px) { .map3d-tag:not(.water) { font-size: 8px; padding: 2px 5px; } }
.map3d-tag.ground { background: rgba(255,255,255,.78); font-size: 8.5px; padding: 2px 6px; box-shadow: none; }

/* ---------- Peta asli (satelit / jalan) ---------- */
.realmap-canvas { position: absolute; inset: 0; z-index: 0; isolation: isolate; background: #1d2b2f; }
.map3d.real { background: #1d2b2f; }
.map3d.real.ready:not(.tiles) .map3d-load { display: grid; background: rgba(215,236,240,.55); pointer-events: none; z-index: 2; }
.leaflet-container { font-family: inherit; }
.leaflet-control-attribution { font-size: 10px; background: rgba(255,255,255,.8) !important; }
.leaflet-bar a { width: 36px !important; height: 36px !important; line-height: 36px !important; font-size: 18px !important; }
.leaflet-bar { border: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,.2) !important; }
.mapseg { position: absolute; left: 10px; top: 10px; z-index: 4; display: flex; padding: 3px; gap: 2px; background: rgba(255,255,255,.96); border-radius: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.18); }
.mapseg button { border: 0; background: none; padding: 0 11px; height: 34px; border-radius: 9px; font: inherit; font-size: 13px; font-weight: 700; color: var(--ink2); cursor: pointer; }
.mapseg button[aria-pressed="true"] { background: var(--teal); color: #fff; }
.map3d-ui button svg { width: 20px; height: 20px; }
.map3d-ui button.on { background: #1A73E8; color: #fff; }
.map3d-live { position: absolute; left: 50%; transform: translateX(-50%); top: 56px; z-index: 4; display: flex; align-items: center; gap: 7px; background: rgba(11,31,36,.82); color: #fff; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; white-space: nowrap; }
.map3d-live i { width: 9px; height: 9px; border-radius: 50%; background: #4CD964; box-shadow: 0 0 0 0 rgba(76,217,100,.7); animation: livepulse 1.6s infinite; }
.map3d-note { position: absolute; left: 10px; right: 60px; top: 56px; z-index: 4; background: rgba(255,248,232,.96); color: #6B4A00; font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 10px; box-shadow: 0 4px 12px rgba(0,0,0,.12); }
.rm-pin-wrap { background: none; border: 0; }
.rm-pin { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--c); border: 3px solid #fff; box-shadow: 0 3px 10px rgba(0,0,0,.45); cursor: pointer; position: relative; }
.rm-pin.pulse::after { content: ""; position: absolute; inset: -9px; border-radius: 50%; border: 3px solid var(--c); opacity: .7; animation: ring 1.8s infinite; }
.rm-bubble { display: grid; place-content: center; width: 100%; height: 100%; border-radius: 50%; background: var(--c); opacity: .93; border: 3px solid #fff; color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 3px 12px rgba(0,0,0,.45); cursor: pointer; }
.rm-bubble.low { border-color: var(--coral); }
.rm-bubble.sel { border-color: #0B1F24; outline: 3px solid #fff; }
.leaflet-tooltip.rm-label { background: rgba(255,255,255,.9); border: 0; box-shadow: 0 1px 4px rgba(0,0,0,.25); padding: 1px 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: #233; }
.leaflet-tooltip.rm-label::before { display: none; }
.rm-me { display: block; width: 18px; height: 18px; margin: 2px; border-radius: 50%; background: #1A73E8; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(26,115,232,.55), 0 2px 6px rgba(0,0,0,.4); animation: mepulse 2s infinite; }
@keyframes livepulse { 0% { box-shadow: 0 0 0 0 rgba(76,217,100,.7); } 70% { box-shadow: 0 0 0 8px rgba(76,217,100,0); } 100% { box-shadow: 0 0 0 0 rgba(76,217,100,0); } }
@keyframes mepulse { 0% { box-shadow: 0 0 0 0 rgba(26,115,232,.5), 0 2px 6px rgba(0,0,0,.4); } 70% { box-shadow: 0 0 0 14px rgba(26,115,232,0), 0 2px 6px rgba(0,0,0,.4); } 100% { box-shadow: 0 0 0 0 rgba(26,115,232,0), 0 2px 6px rgba(0,0,0,.4); } }
@media (max-width: 520px) { .mapseg button { padding: 0 9px; font-size: 12.5px; } }
@keyframes ring { 0% { transform: scale(.7); opacity: .8; } 100% { transform: scale(1.5); opacity: 0; } }
.pc-ill svg{width:140px;height:auto} .role.pc-only{opacity:.8}
