:root {
  --green: #1d5236;
  --green-2: #2f6b45;
  --green-soft: #e3ecdf;
  --orange: #e09a2f;
  --orange-soft: #fbecd2;
  --cream: #f6f0e2;
  --paper: #fffdf8;
  --ink: #23261f;
  --muted: #6d6f64;
  --line: #e4dccb;
  --line-strong: #d3c7ae;
  --card: rgba(255, 253, 248, 0.92);
  --shadow: 0 10px 30px rgba(45, 38, 20, 0.16);
  --ok: #2f7d4f;
  --wait: #b7791f;
  --todo: #8a8b83;
  --display: 'Alfa Slab One', 'Rockwell', Georgia, serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --serif-i: 'Lora', Georgia, serif;
  --topbar: 56px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--topbar) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--cream); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
button { font: inherit; color: inherit; }
.muted { color: var(--muted); }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- topbar */
.topbar { position: sticky; top: 0; z-index: 50; height: var(--topbar); display: flex; align-items: center; gap: 16px; padding: 0 20px; background: var(--green); color: #fff; box-shadow: 0 2px 12px rgba(0,0,0,.18); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.brand-mark { width: 34px; height: 34px; flex: none; border-radius: 9px; display: grid; place-items: center; background: #f4efe2; color: var(--green); font-family: var(--display); font-size: 19px; box-shadow: inset 0 0 0 2px var(--orange); }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; min-width: 0; }
.brand-text b { font-family: var(--display); font-weight: 400; font-size: 17px; letter-spacing: .02em; white-space: nowrap; }
.brand-text i { font-family: var(--serif-i); font-size: 12px; color: #f3c877; white-space: nowrap; }
.nav { margin-left: auto; display: flex; gap: 4px; }
.nav a { text-decoration: none; font-size: 14px; font-weight: 500; padding: 7px 12px; border-radius: 99px; color: #e8f0e9; }
.nav a:hover { background: rgba(255,255,255,.12); color: #fff; }
.nav-mobile { display: none; margin-left: auto; font-size: 13px; font-weight: 600; text-decoration: none; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.14); white-space: nowrap; }

/* ---------------------------------------------------------------- hero / 3D */
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; background: #1f2a2e; }
/* 3D menempel penuh ke layar (termasuk di balik notch / home bar); panel HUD menjauh dari area aman */
.hero { position: fixed; top: 0; left: 0; right: 0; width: 100%; height: var(--app-h, 100%); overflow: hidden; background: linear-gradient(#86a9c4 0%, #c3d4df 50%, #8d918c 100%); }
/* mode aplikasi iOS (Tambahkan ke Layar Utama): elemen fixed dipotong iOS di batas tinggi yang salah,
   jadi 3D ditempel ke halaman (absolute) setinggi layar fisik */
html.ios-app, html.ios-app body { height: var(--app-h, 100%); }
html.ios-app .hero { position: absolute; }
[hidden] { display: none !important; }
.brand-float { position: absolute; left: 18px; top: 14px; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.45), 0 2px 12px rgba(0,0,0,.25); }
.brand-float .brand-mark { width: 40px; height: 40px; font-size: 22px; text-shadow: none; box-shadow: inset 0 0 0 2px var(--orange), 0 3px 10px rgba(0,0,0,.25); }
.brand-float .brand-text b { font-size: 21px; }
.brand-float .brand-text i { font-size: 13.5px; color: #ffd98f; }
#scene, #labels { position: absolute; inset: 0; }
#scene canvas { display: block; width: 100%; height: 100%; touch-action: none; outline: none; }
/* z-index 0 = stacking context sendiri → z-index per label dari CSS2DRenderer tidak lagi mengalahkan kartu .hud */
#labels { pointer-events: none; z-index: 0; }
#labels > div { pointer-events: none; }
.hud { position: absolute; top: env(safe-area-inset-top, 0px); right: env(safe-area-inset-right, 0px); bottom: env(safe-area-inset-bottom, 0px); left: env(safe-area-inset-left, 0px); pointer-events: none; }
.hud-tools { position: absolute; top: 16px; right: 338px; display: flex; flex-direction: row-reverse; gap: 8px; }
.tool-btn { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; cursor: pointer; color: var(--green); padding: 0; }
.tool-btn svg { width: 20px; height: 20px; }
.tool-btn[hidden] { display: none; }
#hud-btn .ic-eye-off { display: none; }
#hud-btn[aria-pressed="true"] .ic-eye { display: none; }
#hud-btn[aria-pressed="true"] .ic-eye-off { display: block; }
/* tombol mata: sembunyikan panel info & tab tampilan */
.hud.panels-off .hud-status, .hud.panels-off #chat-card, .hud.panels-off #progress-card, .hud.panels-off .hud-views { display: none !important; }
.hud.panels-off .hud-tools { right: 16px; }
.fs-btn .ic-exit { display: none; }
.fs-btn[aria-pressed="true"] .ic-enter { display: none; }
.fs-btn[aria-pressed="true"] .ic-exit { display: block; }
.toast { position: absolute; left: 50%; bottom: 84px; transform: translateX(-50%); width: min(420px, calc(100% - 24px)); padding: 12px 14px; font-size: 13.5px; line-height: 1.45; z-index: 6; }
.hud > * { pointer-events: auto; }
.card { background: var(--card); border: 1px solid rgba(211, 199, 174, .8); border-radius: 14px; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

.hud-status { position: absolute; left: 16px; top: 72px; padding: 10px 14px; max-width: min(440px, calc(100% - 360px)); }
.status-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clock { font-weight: 600; font-size: 14px; font-variant-numeric: tabular-nums; }
.status-title { font-family: var(--display); font-size: 18px; color: var(--green); margin-top: 3px; line-height: 1.2; }
.status-title .muted { font-family: var(--sans); font-size: 13px; font-weight: 500; }
.status-launch { font-size: 13px; font-weight: 600; color: #7a4a0e; margin-top: 3px; }
.status-launch b { color: #c0392b; font-weight: 800; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 99px; letter-spacing: .01em; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip-work { background: #e3f1e6; color: #22713f; }
.chip-break { background: var(--orange-soft); color: #a3620d; }
.chip-end { background: #e8e8f0; color: #545a78; }
.chip-night { background: #1f2a44; color: #dfe6ff; }
.wx { font-size: 13px; font-weight: 600; color: #34454f; white-space: nowrap; }

.hud-progress { position: absolute; right: 16px; top: 16px; width: 310px; padding: 12px 14px 12px; }
.progress-head { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; width: 100%; font-weight: 700; font-size: 14px; }
.progress-head b { margin-left: auto; font-size: 20px; color: var(--green); font-variant-numeric: tabular-nums; }
.progress-head .caret { display: none; }
.overall-bar { height: 8px; border-radius: 99px; background: #ebe4d3; margin: 8px 0 10px; overflow: hidden; }
.overall-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--green-2), #58a36f); border-radius: 99px; transition: width .6s ease; }
.jobs { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.job { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; font-size: 12.5px; }
.job .name { display: flex; align-items: center; gap: 6px; min-width: 0; }
.job .name small { color: var(--muted); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.job .pct { font-weight: 700; font-variant-numeric: tabular-nums; }
.job .bar { grid-column: 1 / -1; height: 5px; background: #ede6d6; border-radius: 99px; overflow: hidden; }
.job .bar i { display: block; height: 100%; background: var(--c, var(--green-2)); border-radius: 99px; transition: width .6s ease; }
.job .who { width: 8px; height: 8px; border-radius: 50%; background: var(--c); flex: none; }

.hud-chat { position: absolute; left: 16px; bottom: 76px; width: 360px; display: flex; flex-direction: column; max-height: min(330px, calc(100% - 210px)); }
.chat-head { all: unset; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--line); }
.chat-head .ticker { display: none; }
.chat-head .caret { margin-left: auto; display: none; }
.dot.live { width: 8px; height: 8px; border-radius: 50%; background: #d9453b; box-shadow: 0 0 0 0 rgba(217,69,59,.5); animation: pulse 1.8s infinite; flex: none; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(217,69,59,.45); } 70% { box-shadow: 0 0 0 8px rgba(217,69,59,0); } 100% { box-shadow: 0 0 0 0 rgba(217,69,59,0); } }
.chat-list { list-style: none; margin: 0; padding: 8px 12px 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; font-size: 13px; line-height: 1.4; overscroll-behavior: contain; }
.chat-list li { display: grid; grid-template-columns: 38px 1fr; gap: 6px; animation: rise .35s ease; }
.chat-list .t { color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.chat-list b { font-weight: 700; color: var(--c); margin-right: 4px; }
.chat-list .sys { color: var(--muted); font-style: italic; }
@keyframes rise { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.hud-views { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; gap: 6px; padding: 6px; background: var(--card); border: 1px solid rgba(211,199,174,.8); border-radius: 99px; box-shadow: var(--shadow); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); max-width: calc(100% - 24px); overflow-x: auto; scrollbar-width: none; }
.hud-views::-webkit-scrollbar { display: none; }
.hud-views button { border: 0; background: transparent; padding: 9px 14px; border-radius: 99px; font-size: 13.5px; font-weight: 600; cursor: pointer; white-space: nowrap; color: #3d3f36; }
.hud-views button:hover { background: #f0e9d9; }
.hud-views button[aria-pressed="true"] { background: var(--green); color: #fff; }
.hud-views button:focus-visible { outline: 2px solid var(--orange); outline-offset: 1px; }
.hud-hint { position: absolute; right: 16px; bottom: 78px; font-size: 12px; color: #3f4a44; background: rgba(255,253,248,.7); padding: 5px 10px; border-radius: 99px; max-width: 300px; transition: opacity .6s; }
.hud-hint.gone { opacity: 0; pointer-events: none; }

.person-card { position: absolute; right: 16px; top: 50%; transform: translateY(-40%); width: 270px; padding: 14px 16px 16px; }
.person-card[hidden] { display: none; }
.person-card .x { position: absolute; right: 8px; top: 6px; border: 0; background: none; font-size: 22px; cursor: pointer; color: var(--muted); line-height: 1; padding: 4px 6px; }
.pc-name { display: flex; align-items: center; gap: 8px; font-size: 17px; }
.pc-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--c); }
.pc-role { color: var(--muted); font-size: 13px; margin: 1px 0 10px 19px; }
.pc-label { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: 8px; }
.pc-doing { font-weight: 600; font-size: 14px; }
.pc-said { font-size: 13.5px; font-style: italic; color: #3b3d35; }
.btn-small { margin-top: 12px; border: 0; background: var(--green); color: #fff; padding: 8px 14px; border-radius: 99px; font-weight: 600; font-size: 13px; cursor: pointer; }

.fade { position: absolute; inset: 0; background: #16201a; opacity: 0; pointer-events: none; transition: opacity .9s ease; display: grid; place-items: center; color: #f2e6c9; font-family: var(--display); font-size: clamp(22px, 4vw, 38px); text-align: center; padding: 20px; }
.fade.on { opacity: .92; }
.fade small { display: block; font-family: var(--sans); font-size: 15px; color: #c9d6cc; margin-top: 8px; }
.loading { position: absolute; inset: 0; display: flex; flex-direction: column; gap: 14px; align-items: center; justify-content: center; background: linear-gradient(#c7d3db, #e8ece9); color: var(--green); font-weight: 600; transition: opacity .6s; z-index: 5; }
.loading.done { opacity: 0; pointer-events: none; }
.loading.fail { background: var(--cream); padding: 24px; text-align: center; }
.loading.fail img { max-width: min(720px, 100%); border-radius: 12px; box-shadow: var(--shadow); }
.spinner { width: 34px; height: 34px; border-radius: 50%; border: 3px solid #cfd9cf; border-top-color: var(--green); animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.scroll-cue { display: none; }

/* labels in 3D */
.lbl { display: flex; flex-direction: column; align-items: center; gap: 5px; transform: translateY(-6px); }
.bubble { max-width: 230px; padding: 7px 11px; border-radius: 13px; background: #fff; color: #2b2a28; font-size: 12.5px; line-height: 1.35; box-shadow: 0 5px 16px rgba(40,30,15,.22); position: relative; border: 1px solid #eadfce; text-align: left; animation: pop .25s ease; }
.bubble::after { content: ""; position: absolute; left: clamp(12px, calc(50% - var(--dx, 0px)), calc(100% - 12px)); bottom: -6px; width: 10px; height: 10px; background: #fff; border-right: 1px solid #eadfce; border-bottom: 1px solid #eadfce; transform: translateX(-50%) rotate(45deg); }
.bubble.boss { background: #fff6e6; border-color: #f1d49c; } .bubble.boss::after { background: #fff6e6; border-color: #f1d49c; }
.bubble.hide { display: none; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.lbl.tuck .tag { opacity: 0; }
.tag { transition: opacity .25s; padding: 2px 9px; border-radius: 99px; font-size: 11.5px; font-weight: 700; color: #fff; background: var(--c); box-shadow: 0 2px 8px rgba(0,0,0,.2); white-space: nowrap; }
.tag small { font-weight: 500; opacity: .88; }
#labels.far .tag { display: none; }
#labels.far .bubble { font-size: 11.5px; max-width: 190px; }
#labels.lbl-small .bubble { font-size: 11px; max-width: 170px; padding: 6px 9px; }
/* drone (dan denah di HP): balon jadi titik kecil "•••" di atas kepala yang bicara; teksnya tetap di log obrolan */
#labels.dots .lbl .bubble { font-size: 0; line-height: 0; max-width: none; width: 30px; height: 17px; padding: 0; border-radius: 9px; box-shadow: 0 2px 7px rgba(40,30,15,.28); }
#labels.dots .lbl .bubble::before { content: "\2022\2022\2022"; display: block; font-size: 11px; line-height: 16px; letter-spacing: 1px; text-align: center; color: #7a6f60; }
#labels.dots .lbl .bubble::after { width: 6px; height: 6px; bottom: -4px; }

/* ---------------------------------------------------------------- content */
main { padding-bottom: 40px; }
.intro { padding-top: 56px; padding-bottom: 12px; }
.eyebrow { font-size: 12.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .09em; color: var(--orange); margin: 0 0 8px; }
h1, h2 { font-family: var(--display); font-weight: 400; color: var(--green); line-height: 1.12; margin: 0; letter-spacing: .005em; }
h1 { font-size: clamp(30px, 4.6vw, 48px); max-width: 17ch; }
h2 { font-size: clamp(25px, 3.4vw, 36px); }
h3 { font-size: 19px; margin: 0; }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.lead { font-size: 18px; max-width: 62ch; color: #3c3f36; margin: 16px 0 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 28px 0 14px; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 14px; padding: 16px; }
.stat b { display: block; font-family: var(--display); font-weight: 400; font-size: 28px; color: var(--green); line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
.note { font-size: 13.5px; color: var(--muted); background: #efe7d4; border-radius: 10px; padding: 10px 14px; display: inline-block; }

section.wrap { margin-top: 56px; }
.sec-head { margin-bottom: 22px; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.step { display: grid; grid-template-columns: 48px 1fr; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 20px 22px; }
.step.current { border-color: #b9d3bf; box-shadow: 0 0 0 3px #e3efe5; }
.step-num { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-family: var(--display); font-size: 20px; background: var(--green-soft); color: var(--green); }
.step[data-status="progress"] .step-num { background: var(--orange-soft); color: #9c5a07; }
.step[data-status="todo"] .step-num { background: #ecebe5; color: #707168; }
.step-body { min-width: 0; }
.step-body > p { margin: 8px 0 12px; color: #3b3e35; max-width: 75ch; }
.step-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.when { margin-left: auto; font-size: 13px; color: var(--muted); font-weight: 500; }
.badge { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; }
.badge.done { background: #e1f0e4; color: var(--ok); }
.badge.progress { background: var(--orange-soft); color: #9c5a07; }
.badge.todo { background: #ecebe5; color: #5e5f57; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 12px 0; }
.mini { background: #faf6ec; border: 1px solid var(--line); border-radius: 12px; padding: 14px; min-width: 0; }
.kv { background: #faf6ec; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.kv span { display: block; font-size: 12px; color: var(--muted); }
.kv b { font-size: 14.5px; }
.timeline-mini { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14px; }
.timeline-mini li > b:first-child { display: inline-block; min-width: 86px; color: var(--green); }
.checks { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 7px; font-size: 14.5px; }
.checks li { position: relative; padding-left: 28px; }
.checks li::before { position: absolute; left: 0; top: 1px; width: 19px; height: 19px; border-radius: 6px; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.checks li.ok::before { content: "✓"; background: #dfeee2; color: var(--ok); }
.checks li.wait::before { content: "…"; background: var(--orange-soft); color: var(--wait); }
.checks li.todo::before { content: ""; background: #fff; border: 1.5px solid #cfcab9; width: 16px; height: 16px; }
.table-scroll { overflow-x: auto; margin: 12px 0 0; border-radius: 12px; border: 1px solid var(--line); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; background: #fff; }
.mini .tbl { background: transparent; }
.tbl th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; background: #f5efe1; padding: 9px 12px; white-space: nowrap; }
.tbl td { padding: 8px 12px; border-top: 1px solid #efe8d8; vertical-align: top; }
.mini .tbl td { padding: 5px 0; }
.mini .tbl td:last-child { text-align: right; white-space: nowrap; padding-left: 10px; font-variant-numeric: tabular-nums; }
.tbl tfoot td { font-weight: 700; background: #f8f3e7; }
.mini .tbl tfoot td { background: transparent; border-top: 1.5px solid #d9cfb8; }
.tbl.wide { min-width: 620px; }
.tbl .r { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.s { font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; white-space: nowrap; }
.s.ok { background: #e1f0e4; color: var(--ok); }
.s.wait { background: var(--orange-soft); color: #9c5a07; }
.s.todo { background: #ecebe5; color: #5e5f57; }
.jobs-page { background: #faf6ec; border: 1px solid var(--line); border-radius: 12px; padding: 14px; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.jobs-page .job { font-size: 14px; }

/* gantt */
.gantt { background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 18px 18px 14px; overflow-x: auto; }
.g-grid { display: grid; grid-template-columns: 190px repeat(14, minmax(34px, 1fr)); align-items: center; row-gap: 8px; min-width: 720px; position: relative; }
.g-h { font-size: 11px; color: var(--muted); font-weight: 700; text-align: center; }
.g-h.now { color: var(--orange); }
.g-name { font-size: 13.5px; font-weight: 600; padding-right: 10px; }
.g-bar { height: 20px; border-radius: 6px; background: var(--c); position: relative; }
.g-bar.done { --c: #7fb28d; }
.g-bar.progress { --c: var(--orange); }
.g-bar.todo { --c: #cfc9b8; }
.g-now { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--orange); opacity: .8; pointer-events: none; }
.g-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--muted); margin-top: 12px; flex-wrap: wrap; }
.g-legend span::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; background: var(--c); }

/* menu */
.menu-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 16px; background: #fbf8f1; border: 3px solid var(--orange); border-radius: 18px; padding: 22px; box-shadow: inset 0 0 0 6px #fff; }
.menu-col h3 { margin-bottom: 10px; }
.menu-col h3 span { display: inline-block; background: var(--orange); color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; padding: 4px 12px; border-radius: 6px; }
.menu-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.menu-col li { display: flex; align-items: baseline; gap: 8px; font-size: 15px; }
.menu-col li span { flex: 1; display: flex; align-items: baseline; gap: 8px; }
.menu-col li span::after { content: ""; flex: 1; border-bottom: 1.5px dotted #cdbf9f; transform: translateY(-4px); }
.menu-col li b { color: var(--green); font-variant-numeric: tabular-nums; }
.fav { font-style: normal; font-size: 10.5px; font-weight: 800; text-transform: uppercase; background: var(--orange); color: #fff; padding: 1px 6px; border-radius: 4px; letter-spacing: .04em; }
.menu-note { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.gallery figure { margin: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.gallery .g-wide { grid-column: span 3; }
.gallery img { display: block; width: 100%; height: auto; }
.gallery figcaption { font-size: 13px; color: var(--muted); padding: 8px 12px; }

.foot { margin-top: 40px; background: var(--green); color: #e5ede6; padding: 26px 0; font-size: 14px; }
.foot-in { display: flex; gap: 20px; justify-content: space-between; align-items: center; flex-wrap: wrap; }
.foot b { font-family: var(--display); font-weight: 400; font-size: 18px; color: #fff; }
.foot i { font-family: var(--serif-i); color: #f3c877; }
.foot .muted { color: #b8cabd; max-width: 56ch; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 980px) {
  .nav { display: none; }
  .nav-mobile { display: inline-block; }
  .hud-status { max-width: calc(100% - 32px); }
  .hud-progress { top: auto; bottom: 76px; right: 16px; width: 290px; }
  .hud-tools { right: 16px; }
  .hud-chat { width: min(360px, calc(100% - 340px)); }
  .hud-hint { display: none; }
}
@media (max-width: 760px) {
  :root { --topbar: 52px; }
  .topbar { padding: 0 12px; gap: 10px; }
  .brand-text b { font-size: 15px; }
  .brand-text i { font-size: 11px; }
  .brand-float { left: 12px; top: 10px; gap: 8px; }
  .hud-tools { top: 8px; right: 10px; gap: 6px; }
  .hud.panels-off .hud-tools { right: 10px; }
  .tool-btn { width: 38px; height: 38px; border-radius: 11px; }
  .toast { bottom: 118px; }
  .brand-float .brand-mark { width: 32px; height: 32px; font-size: 18px; }
  .brand-float .brand-text b { font-size: 16px; }
  .brand-float .brand-text i { font-size: 11.5px; }
  .hud-status { left: 10px; top: 56px; right: auto; max-width: calc(100% - 178px); padding: 7px 10px; }
  .status-row { gap: 4px 8px; }
  .clock { font-size: 12.5px; line-height: 1.3; }
  .chip { font-size: 11px; padding: 2px 8px; }
  .wx { font-size: 12px; }
  .status-title { display: none; }
  .status-launch { font-size: 11.5px; margin-top: 2px; }
  .hide-m { display: none; }

  .hud-progress { left: auto; right: 10px; top: 56px; bottom: auto; width: 158px; max-width: calc(100% - 20px); padding: 8px 11px; }
  .progress-head { font-size: 13px; }
  .progress-head b { font-size: 16px; }
  .progress-head .caret { display: inline; font-size: 12px; color: var(--muted); }
  .hud-progress .overall-bar { margin: 6px 0 0; height: 6px; }
  .hud-progress .jobs { display: none; }
  .hud-progress[data-open="true"] { width: calc(100% - 20px); }
  .hud-progress[data-open="true"] .jobs { display: grid; margin-top: 10px; }
  .hud-progress[data-open="true"] .overall-bar { margin-bottom: 4px; }

  .hud-chat { left: 10px; right: 10px; width: auto; bottom: 64px; max-height: none; }
  .chat-head { padding: 8px 12px; border-bottom: 0; font-size: 12.5px; }
  .chat-head > span:nth-child(2) { display: none; }
  .chat-head .ticker { display: block; flex: 1; min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .chat-head .ticker b { color: var(--c); }
  .chat-head .caret { display: inline; margin-left: 0; color: var(--muted); }
  .hud-chat .chat-list { display: none; }
  .hud-chat[data-open="true"] .chat-list { display: flex; max-height: 34svh; border-top: 1px solid var(--line); }

  .hud-views { bottom: 10px; left: 10px; right: 10px; transform: none; max-width: none; border-radius: 16px; padding: 5px; }
  .hud-views button { padding: 8px 12px; font-size: 13px; }
  .person-card { left: 10px; right: 10px; width: auto; top: auto; bottom: 110px; transform: none; }

  /* HP: panel transparan, info tetap terbaca (teks terang + bayangan gelap) */
  .hud-status, .hud-progress, .hud-chat, .hud-views { background: transparent; border-color: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .hud-status, .hud-progress, .hud-chat, .hud-views button { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.55); }
  .hud-status .clock, .hud-status .wx, .progress-head, .progress-head b, .job .pct, .job .name, .chat-head, .chat-list { color: #fff; }
  .status-launch { color: #ffd98f; }
  .status-launch b { color: #ff9a8a; }
  .chip { text-shadow: none; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
  .progress-head .caret, .chat-head .caret, .job .name small, .chat-list .t, .chat-list .sys { color: rgba(255,255,255,.82); }
  .hud-progress .overall-bar, .job .bar { background: rgba(255,255,255,.28); }
  .chat-head .ticker b, .chat-list b { color: #ffe3b8; color: color-mix(in srgb, var(--c) 38%, #fff); }
  .hud-chat[data-open="true"] .chat-list { border-top-color: rgba(255,255,255,.3); }
  .hud-views { padding: 2px 0; }
  .hud-views button { color: #fff; }
  .hud-views button:hover { background: rgba(255,255,255,.14); }
  .hud-views button[aria-pressed="true"] { background: var(--green); color: #fff; text-shadow: none; box-shadow: 0 2px 8px rgba(0,0,0,.35); }
  .bubble { max-width: 160px; font-size: 11.5px; padding: 6px 9px; }
  #labels.far .bubble { max-width: 140px; font-size: 11px; }
  .tag { font-size: 10.5px; padding: 2px 7px; }
  .tag small { display: none; }

  .wrap { padding: 0 16px; }
  .intro { padding-top: 36px; }
  .lead { font-size: 16.5px; }
  .stats { grid-template-columns: 1fr 1fr; gap: 10px; }
  .stat b { font-size: 24px; }
  section.wrap { margin-top: 44px; }
  .step { grid-template-columns: 1fr; padding: 16px; gap: 10px; }
  .step-num { width: 36px; height: 36px; font-size: 17px; border-radius: 10px; }
  .when { margin-left: 0; width: 100%; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr 1fr; }
  .jobs-page { grid-template-columns: 1fr; }
  .menu-grid { grid-template-columns: 1fr; padding: 16px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .g-wide { grid-column: auto; }
  .tbl { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .dot.live, .spinner { animation: none; }
}
