* { box-sizing: border-box; margin: 0; padding: 0; }
:root { color-scheme: dark; }
html, body { width: 600px; height: 600px; overflow: hidden; }
body { background: #0c0d10; color: #fff; font-family: -apple-system, Segoe UI, Roboto, sans-serif; }
.screen { width: 600px; height: 600px; display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ---- lock ---- */
.lock-wrap { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; text-align: center; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 800; margin-bottom: 18px; }
.brand .logo { font-size: 30px; }
.hint { color: #b0b3b8; font-size: 16px; margin: 6px 0; }
.url { color: #e2375a; font-weight: 700; }
.combo { display: flex; gap: 10px; margin: 22px 0 10px; }
.combo-cell { width: 56px; height: 72px; display: flex; align-items: center; justify-content: center;
  font-size: 40px; font-weight: 800; background: #16181d; border-radius: 12px; border: 2px solid transparent; font-variant-numeric: tabular-nums; }
.combo-cell.active { border-color: #e2375a; background: #20232a; }
.lock-hint { color: #777; font-size: 13px; margin-top: 8px; }
.lock-msg { color: #ff6b6b; font-size: 14px; margin-top: 10px; min-height: 18px; }

/* ---- glance ---- */
.g-top { padding: 22px 24px 6px; text-align: center; }
.g-read { display: flex; align-items: baseline; justify-content: center; gap: 10px; }
.g-value { font-size: 120px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.g-value.ok { color: #34c759; } .g-value.low { color: #ff4d4f; } .g-value.high { color: #ffa726; }
.g-unit { font-size: 26px; color: #b0b3b8; font-weight: 600; }
.g-arrow { font-size: 56px; font-weight: 800; }
.g-arrow.ok { color: #34c759; } .g-arrow.low { color: #ff4d4f; } .g-arrow.high { color: #ffa726; }
.g-sub { text-align: center; color: #c7cad0; font-size: 18px; margin-top: 8px; }
.g-graph { flex: 1; margin: 10px 16px 0; min-height: 0; }
.g-graph svg { display: block; width: 100%; height: 100%; }
.g-foot { text-align: center; color: #777; font-size: 13px; padding: 2px 0 10px; }

/* ---- toast ---- */
.toast { position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%) translateY(20px);
  background: #1c1e22; color: #fff; padding: 10px 18px; border-radius: 10px; font-size: 15px;
  opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none; }
.toast.visible { opacity: 1; transform: translateX(-50%) translateY(0); }
