/* スマホの頁の見た目。色・欄の段（小 25px／基本 30px／大 39px）・ボタンの種類（pri / sec / dgr）はもりあげログ本体（ml-field.css）にそろえた。
   ★ CSP で style 属性（style="…"）は効かないので、見た目はここに書く */
:root {
  --bg: #0c0e13; --panel: #161922; --line: #262b36; --text: #e8ecf2; --sub: #9aa4b2; --accent: #2fd0a0; --bad: #ff9b9b;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: system-ui, -apple-system, "Hiragino Kaku Gothic ProN", "Yu Gothic", sans-serif; font-size: 15px; }
body { display: flex; flex-direction: column; min-height: 100%; }
.hide { display: none !important; }
.bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; padding-top: max(8px, env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--panel); flex: 0 0 auto; }
.bar .ttl { font-weight: 700; white-space: nowrap; }
.bar .st { flex: 1; font-size: 12px; color: var(--sub); line-height: 1.4; min-width: 0; }
.bar .st.bad { color: var(--bad); }
.home, .cam { padding: 16px; max-width: 560px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
h2 { font-size: 16px; margin: 0; }
.hint { font-size: 12px; color: var(--sub); line-height: 1.6; margin: 0; }
.err { font-size: 13px; color: var(--bad); line-height: 1.6; margin: 0; min-height: 0; }
.err:empty { display: none; }
/* 欄の名前と中身は、狭いので上下に並べる */
.fr { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--sub); }
.fr.chk { flex-direction: row; align-items: center; gap: 8px; color: var(--text); }
.fr.chk input { width: 20px; height: 20px; accent-color: var(--accent); }
.in { height: 39px; border-radius: 8px; border: 1px solid var(--line); background: #0f1218; color: var(--text); padding: 0 10px; font-size: 16px; width: 100%; }
.grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 480px) { .grid { grid-template-columns: 1fr 1fr; } }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 30px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #1d2230; color: var(--text); font-size: 14px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn.sm { height: 25px; padding: 0 10px; font-size: 12px; }
.btn.lg { height: 39px; font-size: 15px; }
.btn.wide { width: 100%; }
.btn.pri { background: var(--accent); border-color: var(--accent); color: #062019; font-weight: 700; }
.btn.sec { background: transparent; }
.btn.dgr { background: transparent; border-color: #6b3434; color: var(--bad); font-weight: 700; }
.btn:disabled { opacity: .5; cursor: default; }
.menu { display: flex; flex-direction: column; gap: 12px; }
.big { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--panel); color: var(--text); text-decoration: none; font: inherit; text-align: left; cursor: pointer; width: 100%; }
.big .bt { font-size: 17px; font-weight: 700; }
.big .bd { font-size: 12px; color: var(--sub); line-height: 1.5; }
.foot { font-size: 12px; color: var(--sub); }
.foot summary { cursor: pointer; padding: 6px 0; }
.foot .btn { margin-top: 8px; }
.remote { flex: 1 1 auto; width: 100%; border: 0; display: block; min-height: 0; background: var(--bg); }
.pv { width: 100%; max-height: 50vh; background: #000; border-radius: 12px; object-fit: contain; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
