/* ADCN 第二階段手機頁：延續 v10.4 極簡風格（深色首頁＋執行中純黑省電畫面） */
:root {
  --bg: #0b1418; --bg-card: #122025; --bg-soft: #1a2b31; --line: #2a424a;
  --text: #e7f2f4; --muted: #8aa3ab; --accent: #3ee0c0; --bad: #ef6b6b;
  --font: -apple-system, BlinkMacSystemFont, "PingFang TC", "Noto Sans TC", "Helvetica Neue", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); }
body { padding: calc(12px + env(safe-area-inset-top)) 14px calc(24px + env(safe-area-inset-bottom)); max-width: 560px; margin: 0 auto; }
.home-header { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 2px 14px; }
.home-brand { font-weight: 800; font-size: 1.3rem; letter-spacing: 0.08em; }
.home-version { color: var(--muted); font-size: 0.85rem; }
.card { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 14px; }
label { display: block; font-size: 0.82rem; color: var(--muted); margin: 12px 0 6px; }
label:first-child { margin-top: 0; }
input[type="text"], input[type="password"] { width: 100%; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--text); font-size: 1rem; }
button { appearance: none; border: 0; border-radius: 12px; padding: 12px 16px; font-size: 1rem; font-weight: 600; background: var(--accent); color: #06221c; cursor: pointer; min-height: 44px; }
button.secondary { background: var(--bg-soft); color: var(--text); border: 1px solid var(--line); }
button.stop { background: #3a1414; color: #ffb3b3; border: 1px solid #5a2020; }
button:disabled { opacity: 0.5; }
.row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.key-collapsed { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; color: var(--muted); font-size: 0.9rem; }
.home-start { margin-top: 18px; }
.btn-start-lg { width: 100%; min-height: 72px; font-size: 1.4rem; border-radius: 16px; }
.msg { min-height: 1.2em; margin: 10px 0 0; font-size: 0.88rem; color: var(--bad); }
.legal-line { margin: 14px 0 0; font-size: 0.72rem; color: var(--muted); text-align: center; }
.legal-line a { color: var(--muted); }
.more-panel summary { cursor: pointer; color: var(--muted); font-size: 0.95rem; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin: 14px 0 0; font-size: 0.85rem; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-all; }
.note { color: var(--muted); font-size: 0.78rem; line-height: 1.5; }
.log { font-size: 0.72rem; color: var(--muted); padding-left: 18px; max-height: 220px; overflow: auto; }
/* 執行中：純黑省電畫面 */
.run-screen { position: fixed; inset: 0; background: #000; z-index: 50; display: flex; align-items: center; justify-content: center; }
.run-screen[hidden] { display: none; }
.run-inner { text-align: center; color: #555; transition: transform 1s; }
.run-item { margin-bottom: 26px; }
.run-item .k { font-size: 0.8rem; color: #444; }
.run-item .v { font-size: 2.2rem; color: #666; font-variant-numeric: tabular-nums; }
.run-hint { font-size: 0.7rem; color: #444; margin: 22px 0 0; }
.run-status { font-size: 0.68rem; color: #3a3a3a; min-height: 1em; margin: 6px 0 0; }
#key-editor label { margin-top: 12px; }
