/* 6S Mobile — tampilan aplikasi auditor, token warna sama dengan s6-ui (gaya CCMS/Heelstrap). */
:root, [data-bs-theme="light"] {
  --bg: #eef2f7; --card: #ffffff; --panel: #f5f8fc; --line: #e3e9f1; --line-2: #d3dce8;
  --tx1: #0f1b2d; --tx2: #46566e; --tx3: #7a8aa1;
  --accent: #1596b4; --accent-2: #1f6fd0; --accent-rgb: 21,150,180;
  --good: #0f9a8b; --warn: #e0a000; --crit: #e04848; --vol: #2f7fdc; --violet: #6d5bd0;
  --good-rgb: 15,154,139; --warn-rgb: 224,160,0; --crit-rgb: 224,72,72;
  --txt-good: #0b7a6d; --txt-bad: #c43030; --txt-warn: #8a5d00;
  --shadow: 0 1px 2px rgba(15,27,45,.04), 0 6px 18px rgba(15,27,45,.06);
  --top: rgba(255,255,255,.92);
}
[data-bs-theme="dark"] {
  --bg: #070d18; --card: #0f1828; --panel: #131f33; --line: #1c2a40; --line-2: #26374f;
  --tx1: #e7eef8; --tx2: #a9b7cb; --tx3: #7487a1;
  --accent: #22c0dc; --accent-2: #3b8cf0; --accent-rgb: 34,192,220;
  --good: #16a394; --warn: #fab219; --crit: #ef5a5a; --vol: #3987e5; --violet: #8b7cf6;
  --good-rgb: 22,163,148; --warn-rgb: 250,178,25; --crit-rgb: 239,90,90;
  --txt-good: #4fd1bf; --txt-bad: #ff8a8a; --txt-warn: #ffc94d;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 8px 24px rgba(0,0,0,.35);
  --top: rgba(10,17,30,.9);
}
* { box-sizing: border-box; }
html { font-size: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--tx1); font: 400 .9rem/1.5 "Segoe UI", system-ui, -apple-system, Roboto, sans-serif; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: none; }
img { max-width: 100%; }
button, a, input, select, textarea { outline: none; -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; }
.m-wrap { max-width: 560px; margin: 0 auto; }

/* topbar — gaya ESS (navy gelap, judul putih tebal, tombol persegi navy; sama di tema terang & gelap) */
:root { --nav-bg: #0f172a; --nav-soft: #1e293b; --nav-line: #334155; --nav-tx: #64748b; --nav-tx2: #cbd5e1; --nav-on: #2dd4bf; }
.m-top { position: sticky; top: 0; z-index: 70; display: flex; align-items: center; gap: .7rem; height: 64px; padding: 0 16px; padding-top: env(safe-area-inset-top); background: var(--nav-bg); color: #fff; box-shadow: 0 4px 16px rgba(15,23,42,.18); }
.m-top .logo { width: 36px; height: 36px; border-radius: 10px; background: #fff; padding: 3px; }
.m-top .t { min-width: 0; flex: 1; line-height: 1.15; }
.m-top .t b { display: block; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
.m-top .t small { display: block; color: #94a3b8; font-size: .72rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.m-top-r { display: flex; align-items: center; gap: 10px; }
.m-top-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 10px; background: var(--nav-soft); color: var(--nav-tx2); font-size: 18px; cursor: pointer; transition: background .2s; }
.m-top-btn:hover, .m-pop.buka .m-top-btn { background: var(--nav-line); color: #fff; }
.m-top-av { font-size: .85rem; font-weight: 800; color: #fff; background: linear-gradient(135deg, #0d9488, #0f766e); }
.m-badge { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 4px; display: grid; place-items: center; border-radius: 999px; background: #dc2626; color: #fff; font-size: 11px; font-weight: 800; line-height: 1; }
.m-pop { position: relative; }
.m-pop-box { position: absolute; right: 0; top: 52px; width: 340px; max-width: calc(100vw - 24px); max-height: 70vh; overflow: auto; display: none; z-index: 80; border: 1px solid var(--line); border-radius: 14px; background: var(--card); color: var(--tx1); box-shadow: 0 8px 25px rgba(15,23,42,.18); }
.m-pop.buka .m-pop-box { display: block; }
.m-pop-h { padding: 14px 16px; border-bottom: 1px solid var(--line); font-weight: 800; font-size: 14px; }
.m-pop-h small { display: block; color: var(--tx3); font-weight: 400; font-size: .72rem; }
.m-pop-kosong { padding: 24px 16px; text-align: center; color: var(--tx3); font-size: 13px; }
.m-pop-i { display: flex; gap: 10px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--tx1); }
.m-pop-i.baru { background: rgba(13,148,136,.08); }
.m-pop-i .ic { flex: 0 0 auto; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; }
.m-pop-i .tx { min-width: 0; }
.m-pop-i b { display: block; font-size: 13.5px; }
.m-pop-i small { display: block; color: var(--tx2); font-size: 12px; overflow-wrap: anywhere; }
.m-pop-i small.ct { color: var(--tx3); font-style: italic; }
.m-pop-i small.tm { margin-top: 4px; color: var(--tx3); font-size: 11px; }
.m-pop-f { display: block; padding: 12px; text-align: center; font-weight: 700; font-size: 13px; color: #0d9488; }
.m-pop-akun { width: 260px; }
.m-pop-row { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: 12px 16px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--tx1); font: inherit; font-size: 13.5px; text-align: left; cursor: pointer; }
.m-pop-row:last-child { border-bottom: 0; }
.m-pop-row i { color: var(--tx3); font-size: 1rem; }
.m-pop-out, .m-pop-out i { color: var(--crit); }
[data-bs-theme="dark"] .m-pop-f { color: var(--nav-on); }
.m-icon-btn { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid var(--line-2); border-radius: 11px; background: var(--card); color: var(--tx2); font-size: 1rem; }
.m-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 11px; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 700; font-size: .85rem; }

.m-content { padding: 16px 16px 100px; }
.m-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin-bottom: 14px; box-shadow: var(--shadow); }
.m-eyebrow { color: var(--tx3); font-size: .68rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.m-title { margin: 0 0 4px; font-size: 1.2rem; font-weight: 700; color: var(--tx1); }
.m-sub { margin: 0; color: var(--tx2); font-size: .82rem; }
.m-row { display: flex; align-items: center; gap: .5rem; color: var(--tx2); font-size: .82rem; }
.m-row .bi { color: var(--accent); }

/* KPI */
.m-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.m-kpis.k4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.m-kpi { position: relative; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); color: inherit; display: block; }
.m-kpi::before { content: ""; position: absolute; left: 12px; right: 12px; top: -1px; height: 2px; border-radius: 2px; background: var(--c, var(--accent)); }
.m-kpi b { display: block; font-size: 1.5rem; font-weight: 700; line-height: 1.1; color: var(--c, var(--tx1)); font-variant-numeric: tabular-nums; }
.m-kpi span { color: var(--tx3); font-size: .7rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }

/* menu grid */
.m-menu { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.m-tile { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: var(--tx1); font-weight: 600; font-size: .88rem; }
.m-tile i { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--c, var(--accent)); color: #fff; font-size: 1.25rem; }
.m-tile small { display: block; color: var(--tx3); font-weight: 400; font-size: .72rem; margin-top: -6px; }
.m-tile:active { transform: scale(.98); }

/* chip */
.m-chip { display: inline-flex; align-items: center; gap: .3rem; height: 24px; padding: 0 .6rem; border: 1px solid; border-radius: 999px; font-size: .66rem; font-weight: 700; letter-spacing: .06em; white-space: nowrap; }
.m-chip.open, .m-chip.tidak { color: var(--txt-bad); border-color: rgba(var(--crit-rgb), .45); background: rgba(var(--crit-rgb), .1); }
.m-chip.progress, .m-chip.delegasi { color: var(--txt-warn); border-color: rgba(var(--warn-rgb), .5); background: rgba(var(--warn-rgb), .12); }
.m-chip.close, .m-chip.hadir, .m-chip.jadwal { color: var(--txt-good); border-color: rgba(var(--good-rgb), .45); background: rgba(var(--good-rgb), .1); }
.m-chip.belum { color: var(--tx3); border-color: var(--line-2); border-style: dashed; background: var(--panel); }
.m-kat { display: inline-flex; align-items: center; height: 22px; padding: 0 .55rem; border-radius: 6px; background: rgba(var(--accent-rgb), .12); color: var(--accent); font-size: .66rem; font-weight: 700; letter-spacing: .06em; }

/* tombol */
.m-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; width: 100%; height: 50px; padding: 0 16px; border: 1px solid transparent; border-radius: 13px; font: 700 .9rem "Segoe UI", system-ui, sans-serif; cursor: pointer; }
.m-btn.pri { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 8px 20px rgba(var(--accent-rgb), .28); }
.m-btn.sec { background: var(--panel); border-color: var(--line-2); color: var(--tx1); }
.m-btn:disabled { opacity: .6; }
.m-btn-row { display: flex; gap: 10px; margin-top: 18px; }
.m-btn-row .m-btn.sec { flex: 1; }
.m-btn-row .m-btn.pri { flex: 2; }

/* form */
.m-field { margin-bottom: 14px; }
.m-field > label { display: block; margin-bottom: 6px; color: var(--tx3); font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.m-input, .m-select, .m-textarea { width: 100%; min-height: 50px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--card); color: var(--tx1); font: 400 .92rem "Segoe UI", system-ui, sans-serif; }
.m-textarea { min-height: 130px; resize: vertical; }
.m-input:focus, .m-select:focus, .m-textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb), .12); }
.m-err { display: flex; gap: .5rem; align-items: flex-start; margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(var(--crit-rgb), .45); border-left: 3px solid var(--crit); border-radius: 10px; background: rgba(var(--crit-rgb), .08); color: var(--txt-bad); font-size: .82rem; }
.m-ok { display: flex; gap: .5rem; align-items: center; margin-bottom: 14px; padding: 10px 12px; border: 1px solid rgba(var(--good-rgb), .45); border-left: 3px solid var(--good); border-radius: 10px; background: rgba(var(--good-rgb), .08); color: var(--txt-good); font-size: .82rem; }

/* wizard */
.m-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 16px; }
.m-step { text-align: center; color: var(--tx3); font-size: .64rem; font-weight: 600; }
.m-step i { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 auto 4px; border: 2px solid var(--line-2); border-radius: 10px; background: var(--card); font-style: normal; font-size: .78rem; font-weight: 700; }
.m-step.done i { border-color: var(--accent); color: var(--accent); }
.m-step.active { color: var(--tx1); }
.m-step.active i { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 5px 14px rgba(var(--accent-rgb), .3); }

/* unggah foto */
.m-drop { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; min-height: 220px; padding: 18px; border: 2px dashed var(--line-2); border-radius: 14px; background: var(--panel); color: var(--tx3); text-align: center; cursor: pointer; overflow: hidden; }
.m-drop > .bi { font-size: 2.6rem; color: var(--accent); }
.m-drop b { color: var(--tx1); }
.m-drop img { display: none; max-height: 320px; border-radius: 10px; }
.m-drop.has-img { padding: 8px; border-style: solid; }
.m-drop.has-img img { display: block; }
.m-drop.has-img > .bi, .m-drop.has-img > b, .m-drop.has-img > small { display: none; }
.m-drop input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

/* pilih kartu (kategori) */
.m-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.m-pick label { position: relative; display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1.5px solid var(--line); border-radius: 14px; background: var(--card); cursor: pointer; }
.m-pick label i { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: var(--c, var(--accent)); color: #fff; font-size: 1.15rem; }
.m-pick label b { font-size: .86rem; }
.m-pick label small { color: var(--tx3); font-size: .7rem; line-height: 1.35; }
.m-pick input { position: absolute; opacity: 0; }
.m-pick input + span { display: none; }
.m-pick input:checked + span { display: grid !important; position: absolute; top: 10px; right: 10px; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: .75rem; }
.m-pick label:has(input:checked) { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }
.m-pick label.on { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-rgb), .15); }

/* jadwal & temuan */
.m-jadwal { position: relative; display: block; padding: 16px 16px 16px 20px; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: inherit; overflow: hidden; }
.m-jadwal::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.m-jadwal .no { margin: 6px 0 8px; font-size: 1.02rem; font-weight: 700; color: var(--tx1); }
.m-jadwal .go { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line); color: var(--accent); font-weight: 700; font-size: .84rem; }
.m-filter { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px 14px; padding: 2px 16px 6px; scrollbar-width: none; }
.m-filter::-webkit-scrollbar { display: none; }
.m-filter a { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; height: 36px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--card); color: var(--tx2); font-size: .8rem; font-weight: 600; }
.m-filter a b { min-width: 20px; padding: 0 .35rem; border-radius: 999px; background: rgba(var(--accent-rgb), .12); font-size: .68rem; text-align: center; }
.m-filter a.on { border-color: transparent; background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.m-filter a.on b { background: rgba(255,255,255,.25); }
.m-tm { display: block; margin-bottom: 12px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); box-shadow: var(--shadow); color: inherit; overflow: hidden; }
.m-tm .img { position: relative; aspect-ratio: 16 / 10; background: var(--panel); }
.m-tm .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.m-tm .img .m-chip { position: absolute; top: 10px; left: 10px; background-color: var(--card); }
.m-tm .b { padding: 12px 14px 14px; }
.m-tm .d { margin: 6px 0 8px; color: var(--tx1); font-weight: 600; font-size: .88rem; line-height: 1.45; }
.m-tm .f { display: flex; justify-content: space-between; gap: .5rem; color: var(--tx3); font-size: .74rem; }
.m-empty { padding: 34px 16px; text-align: center; color: var(--tx3); }
.m-empty .bi { display: block; font-size: 2.6rem; margin-bottom: 8px; opacity: .6; }
.m-empty b { display: block; color: var(--tx1); font-size: 1rem; margin-bottom: 4px; }

/* auditor (attendance) */
.m-aud { margin-bottom: 12px; padding: 14px; border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: 14px; background: var(--card); box-shadow: var(--shadow); }
.m-aud.hadir { border-left-color: var(--good); } .m-aud.tidak { border-left-color: var(--crit); } .m-aud.delegasi { border-left-color: var(--warn); }
.m-aud-h { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.m-aud-h .av { width: 44px; height: 44px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 13px; background: rgba(var(--accent-rgb), .14); color: var(--accent); font-weight: 700; }
.m-aud-h .n { min-width: 0; flex: 1; }
.m-aud-h .n b { display: block; font-size: .9rem; }
.m-aud-h .n small { color: var(--tx3); font-size: .74rem; }
.m-aud-act { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.m-aud-act button { height: 42px; border: 1px solid var(--line-2); border-radius: 11px; background: var(--panel); color: var(--tx2); font: 700 .78rem "Segoe UI", system-ui, sans-serif; }
.m-aud-act button.h.on { background: var(--good); border-color: var(--good); color: #fff; }
.m-aud-act button.t.on { background: var(--crit); border-color: var(--crit); color: #fff; }
.m-aud-act button.d.on { background: var(--warn); border-color: var(--warn); color: #1d1500; }

/* detail */
.m-kv { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px 10px; margin: 0; }
.m-kv i { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 10px; background: rgba(var(--accent-rgb), .12); color: var(--accent); }
.m-kv div small { display: block; color: var(--tx3); font-size: .68rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.m-kv div b { font-weight: 600; font-size: .86rem; overflow-wrap: anywhere; }
.m-tl { list-style: none; margin: 0; padding: 0; }
.m-tl li { position: relative; padding: 0 0 16px 22px; }
.m-tl li::before { content: ""; position: absolute; left: 5px; top: 6px; bottom: -4px; width: 2px; background: var(--line-2); }
.m-tl li:last-child::before { display: none; }
.m-tl li::after { content: ""; position: absolute; left: 0; top: 4px; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); }
.m-tl .dt { color: var(--tx3); font-size: .72rem; }
.m-tl .x { margin: 2px 0 8px; font-size: .86rem; overflow-wrap: anywhere; }
.m-tl img { border-radius: 10px; border: 1px solid var(--line); }

/* navigasi bawah */
/* navigasi bawah — gaya ESS (navy, abu-abu, aktif teal terang, lebar maks 520px) */
.m-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; height: 70px; max-width: 520px; margin: 0 auto; padding-bottom: env(safe-area-inset-bottom); box-sizing: content-box; background: var(--nav-bg); border-top: 1px solid var(--nav-soft); box-shadow: 0 -4px 20px rgba(15,23,42,.25); }
.m-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--nav-tx); font-size: 11px; font-weight: 700; transition: color .2s; }
.m-nav a i { font-size: 19px; }
.m-nav a:hover { color: var(--nav-tx2); }
.m-nav a.on { color: var(--nav-on); }

/* login */
.m-login { min-height: 100vh; display: flex; flex-direction: column; justify-content: center; padding: 28px 20px; }
.m-login .brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 24px; text-align: center; }
.m-login .brand img { width: 64px; height: 64px; padding: 6px; border-radius: 18px; background: #fff; box-shadow: var(--shadow), 0 0 0 1px var(--line-2); }
.m-login .brand b { font-size: 1.35rem; letter-spacing: .08em; }
.m-login .brand small { color: var(--tx3); }
.m-pw { position: relative; }
.m-pw button { position: absolute; right: 6px; top: 6px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--tx3); }
.m-foot { margin-top: 22px; text-align: center; color: var(--tx3); font-size: .74rem; }
@media (min-width: 600px) { .m-login { max-width: 440px; margin: 0 auto; } }
/* pemilih bahasa */
.m-lang { display: inline-flex; padding: 3px; gap: 2px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); }
.m-lang a { min-width: 28px; height: 30px; display: inline-grid; place-items: center; padding: 0 5px; border-radius: 7px; color: var(--tx3); font-size: .66rem; font-weight: 700; letter-spacing: .06em; }
.m-lang a.on { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; }
.m-login .m-lang { margin: 0 auto 16px; }
html[lang="ja"] body { font-family: "Segoe UI", "Yu Gothic UI", "Meiryo", "Hiragino Sans", "Noto Sans JP", sans-serif; }
@media (max-width: 380px) { .m-top .t small { display: none; } }
/* tindak lanjut departemen di detail temuan */
.m-tl-head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.m-tl-chip { display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 7px; font-size: .72rem; font-weight: 700; }
.m-tl-balas { background: rgba(var(--crit-rgb), .12); color: var(--crit); }
.m-tl-kerja { background: rgba(var(--warn-rgb), .16); color: var(--txt-warn); }
.m-tl-verif { background: rgba(109,91,208,.14); color: var(--violet); }
.m-tl-close { background: rgba(var(--good-rgb), .12); color: var(--good); }
.m-tl-ulang { background: rgba(109,91,208,.14); color: var(--violet); }
.m-tl-sisa { color: var(--tx3); font-size: .74rem; }
.m-tl-sisa.telat { color: var(--crit); font-weight: 700; }
/* dropdown topbar menempel ke tepi kanan layar (lonceng tidak di pojok -> kotak 340px tidak terpotong di kiri) */
.m-pop-box { position: fixed; top: calc(68px + env(safe-area-inset-top)); right: 12px; }
@media (min-width: 600px) { .m-pop-box { right: max(12px, calc((100vw - 560px) / 2)); } }
.m-pop.buka .m-top-av { background: linear-gradient(135deg, #0d9488, #0f766e); filter: brightness(1.15); }
/* bahasa & tema langsung di topbar (gaya tombol navy ESS) */
.m-lang-top { border-color: var(--nav-line); background: var(--nav-soft); }
.m-lang-top a { color: #94a3b8; }
.m-lang-top a.on { background: linear-gradient(135deg, #0d9488, #0f766e); color: #fff; }
@media (max-width: 420px) {
  .m-top { gap: .45rem; padding: 0 10px; }
  .m-top-r { gap: 6px; }
  .m-top-btn { width: 36px; height: 36px; font-size: 16px; }
  .m-top .logo { width: 32px; height: 32px; }
  .m-top .t small { display: none; }
  .m-lang-top a { min-width: 24px; height: 28px; padding: 0 3px; font-size: .62rem; }
  .m-pop-box { top: calc(68px + env(safe-area-inset-top)); }
}
/* pita hari libur (Kalender Kerja 6S) */
.m-libur { position: sticky; top: calc(64px + env(safe-area-inset-top)); z-index: 65; padding: 8px 16px; background: #fef2f2; border-bottom: 1px solid #fecaca; color: #b91c1c; font-size: .8rem; text-align: center; }
[data-bs-theme="dark"] .m-libur { background: #3b1414; border-color: #5c1d1d; color: #fca5a5; }
.m-foto-info { display: block; margin-top: 8px; color: var(--good); font-size: .76rem; font-weight: 600; text-align: center; }
