/*
 * Mockup frame and side panel shared by the Contact Us mockup: the phone frame
 * that fits a desktop window, and the "Catatan Mockup" panel (sheet on a
 * phone). Moved here from the IoT Charging prototype when it was removed
 * (8 Oct 2026). Classes only: CESA's CSP forbids style="" attributes.
 */
.sim[hidden],.sim-fab[hidden]{display:none!important}
.block{display:block}.wrap{flex-wrap:wrap}.mt0{margin-top:0}.jend{justify-content:flex-end}
.c-err2{color:#FF8A93}

/* ---------- side panel (Catatan Mockup) ---------- */
.sim{position:fixed;z-index:60;background:#141515;color:#EDEDED;border:1px solid #2A2C2B;font-size:13px;line-height:18px;display:flex;flex-direction:column;gap:10px;overflow-y:auto;padding:14px}
@media (min-width:1180px){
  .sim{top:24px;right:24px;bottom:24px;width:360px;border-radius:16px}
  .sim .simclose{display:none}
}
.sim.sheet-mode{left:0;right:0;bottom:0;max-height:78vh;border-radius:16px 16px 0 0;padding-bottom:calc(14px + env(safe-area-inset-bottom));box-shadow:0 -10px 30px rgba(0,0,0,.5)}
.sim-fab{position:fixed;right:16px;bottom:calc(88px + env(safe-area-inset-bottom));z-index:55;height:44px;padding:0 16px;border-radius:22px;background:#141515;color:var(--green);border:1.5px solid var(--green);font-size:13px;font-weight:700;box-shadow:var(--glow)}
.simhead{display:flex;align-items:center;justify-content:space-between}
.simtitle{display:flex;align-items:center;gap:8px;font-weight:700;font-size:15px;color:#fff}
.simsec{background:#1F2120;border-radius:10px;padding:12px;display:flex;flex-direction:column;gap:8px}
.simsec.grow{flex:1;min-height:140px}
.simk{font-size:11px;letter-spacing:1px;text-transform:uppercase;color:#9E9F9F;font-weight:500}
.simv{font-weight:700;color:#fff}
.simn{font-size:12px;line-height:16px;color:#9E9F9F}
.simrow{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.simbit{display:flex;justify-content:space-between;align-items:center;padding:8px 10px;border-radius:8px;font-size:12px}
.simbit code{font-family:ui-monospace,Consolas,monospace}
.simbit.on{background:rgba(51,255,201,.12);color:var(--green)}
.simbit.off{background:rgba(234,61,73,.15);color:#FF8A93}
.simact{display:flex;flex-direction:column;gap:4px}
.sbtn{display:flex;align-items:center;gap:8px;width:100%;min-height:38px;padding:8px 12px;border-radius:8px;background:#2A2C2B;color:#fff;font-weight:700;font-size:13px}
.sbtn.go{background:var(--green);color:var(--tp)}
.sbtn.warn{background:#FFD748;color:var(--tp)}
.sbtn.ghost{background:transparent;border:1px dashed #898A8D;color:#EDEDED}
.sbtn.sm{width:auto;min-height:30px;padding:4px 10px;font-weight:500;font-size:12px}
.sbtn:disabled{background:#2A2C2B;color:#6B6C6C;cursor:not-allowed}
.snum{width:20px;height:20px;border-radius:50%;background:rgba(0,0,0,.2);display:flex;align-items:center;justify-content:center;font-size:11px;flex:none;font-stretch:100%}
.sbtn:disabled .snum{background:#1F2120}
.simsel{width:100%;height:36px;border-radius:8px;background:#2A2C2B;color:#fff;border:1px solid #3A3C3B;font:inherit;font-size:12px;padding:0 8px}
.simsel:disabled{color:#6B6C6C}
.simlog{display:flex;flex-direction:column;gap:6px;font-size:11px;line-height:15px}
.simlog>div{display:flex;gap:8px;color:#C9CACA}
.simlog>div span{color:#6B6C6C;flex:none;font-family:ui-monospace,Consolas,monospace}
.simlog>div.bit{color:var(--green)}
.simlog>div.bill{color:#FFD748}
.warnbox{margin-top:12px;display:flex;gap:10px;align-items:flex-start;background:var(--warn2);color:var(--warnink);border:1px solid #E9C95A;border-radius:8px;padding:12px 14px}

/* ---------- desktop: the phone frame fits the window ----------
 * charging.css draws a 390×844 phone on desktop and lets the page scroll, so a
 * laptop at 125% display scaling (≈730 px of viewport) had to zoom out. Here the
 * frame is capped to the window height and scrolls inside, like a real phone;
 * the sticky footers stick to the bottom of the frame. Phones are unchanged. */
@media (min-width:600px){
  html,body{height:100%;overflow:hidden}
  #app{padding:16px 0;min-height:0;height:100%}
  #app>.screen{min-height:0;height:min(844px,calc(100vh - 32px));height:min(844px,calc(100dvh - 32px));overflow-y:auto;overscroll-behavior:contain;scrollbar-width:none}
  #app>.screen::-webkit-scrollbar{display:none}
  #app>.screen>*{flex-shrink:0}
}
@media (min-width:1180px){.sim{top:16px;bottom:16px}}
