/* AMgrLZ 핸드폰 화면 — 매니저와 같은 어두운 색 (BG #1e1f24, 노랑 #ffd400, 초록 #3ddc97) */
:root {
  --bg: #1e1f24; --panel: #26272d; --row: #2b2c33; --line: #34353d;
  --text: #e8e8ea; --sub: #9a9ba3; --yellow: #ffd400; --green: #3ddc97; --red: #ff6b6b; --btn: #3a3b43;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 15px/1.45 "Malgun Gothic", "Apple SD Gothic Neo", system-ui, sans-serif; }
header { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px; background: var(--panel); border-bottom: 1px solid var(--line); }
h1 { font-size: 18px; margin: 0; color: var(--yellow); }
.sub { color: var(--sub); font-size: 13px; }
#clock { flex: 1; }
main { padding: 12px 16px 40px; max-width: 720px; margin: 0 auto; }
#login { padding: 40px 16px; max-width: 360px; margin: 0 auto; }
#login-form { display: grid; gap: 10px; }
input { font: inherit; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--row); color: var(--text); }
button { font: inherit; border: 0; border-radius: 8px; padding: 9px 12px; background: var(--btn); color: var(--text); cursor: pointer; min-height: 40px; }
button:disabled { opacity: .35; cursor: default; }
button.primary { background: var(--yellow); color: #111; font-weight: 700; }
button.go { background: var(--green); color: #111; font-weight: 700; }
button.danger { background: #4a2b2e; color: var(--red); }
button.ghost { background: transparent; color: var(--sub); min-height: 32px; padding: 4px 8px; }
.err { color: var(--red); min-height: 1.2em; margin: 0; }
.pc { margin: 6px 0 18px; }
.pc-head { display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; }
.pc-head b { font-size: 16px; }
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; background: var(--red); }
.dot.on { background: var(--green); }
.card { background: var(--row); border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; }
.card-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; }
.card-top .num { color: var(--yellow); font-weight: 700; }
.card-top .name { font-weight: 700; }
.state { margin: 6px 0 2px; }
.ok { color: var(--green); } .warn { color: var(--yellow); } .bad { color: var(--red); } .off { color: var(--sub); }
.prog { color: var(--sub); font-size: 13px; overflow-wrap: anywhere; }
.btns { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.btns .wide { grid-column: span 3; }
#toast { position: fixed; left: 16px; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; text-align: center; }
dialog { width: min(96vw, 520px); max-height: 94vh; padding: 10px; border: 1px solid var(--line); border-radius: 12px;
  background: var(--panel); color: var(--text); }
dialog::backdrop { background: rgba(0, 0, 0, .7); }
.shot-head { display: flex; align-items: center; gap: 6px; }
.shot-head span { flex: 1; font-weight: 700; }
#shot-img { display: block; width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; background: #000; }
.empty { color: var(--sub); text-align: center; padding: 30px 0; }
