/* ===== iPhone 単独版の追加分（base.css = iPhone 版の共通スタイル） ===== */

/* 初回セットアップ */
.setup { position: fixed; inset: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: calc(var(--st) + 28px) 18px calc(var(--sb) + 30px); text-align: center; }
.setup h1 { font-size: 22px; margin: 14px 0 6px; }
.setup-lead { color: var(--muted); font-size: 14px; margin: 0 0 16px; }
.choice { text-align: left; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 16px; padding: 14px; margin-bottom: 14px; display: grid; gap: 8px; }
.choice > * { min-width: 0; }
.choice[data-engine="gemini"] { border-color: var(--line); box-shadow: 0 0 14px rgba(94,234,255,.12); }
.choice h2 { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.choice p { margin: 0; font-size: 14px; }
.choice .pros, .choice .how { margin: 0; padding-left: 1.2em; font-size: 13px; color: var(--muted); }
.choice .how b { color: var(--text); }
.choice input, .choice select { width: 100%; padding: 11px 12px; border-radius: 12px; border: 1px solid var(--line); background: rgba(94,234,255,.05); font-size: 16px; -webkit-user-select: text; user-select: text; }
.choice .btn { width: 100%; }
.btn.ghost { background: none; border-color: var(--line-soft); color: var(--muted); }
.tag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--cyan); color: #00222a; }
.tag.gray { background: rgba(127,179,194,.25); color: var(--text); }
.msg { min-height: 1.2em; color: var(--warn); font-size: 13px !important; }
.progress { height: 8px; border-radius: 4px; background: rgba(94,234,255,.1); overflow: hidden; }
.progress i { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 10px var(--cyan); transition: width .3s; }

/* 設定 */
.sec-title { font-size: 13px; color: var(--cyan); margin: 18px 0 6px; font-weight: 600; letter-spacing: .05em; }
.sec-title:first-child { margin-top: 4px; }
.field { display: grid; gap: 4px; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.field input, .field select, .field textarea { width: 100%; min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(94,234,255,.05); color: var(--text); font-size: 16px; resize: none; }
.sheet-body > .btn { width: 100%; margin-top: 8px; }
.info { margin: 0 0 6px; }

/* ToDo とメモ */
.todo-list { list-style: none; margin: 0; padding: 0; }
.todo { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-bottom: 1px solid var(--line-soft); }
.todo input { width: 22px; height: 22px; margin-top: 1px; accent-color: var(--cyan); }
.todo-body { display: grid; min-width: 0; }
.todo-body small { color: var(--muted); font-size: 12px; white-space: pre-wrap; word-break: break-word; }
.todo.done b { text-decoration: line-through; color: var(--muted); }
.note { border: 1px solid var(--line-soft); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: rgba(255,255,255,.02); }
.note b { display: block; }
.note time { font-size: 11px; color: var(--muted); }
.note p { margin: 6px 0; font-size: 14px; white-space: pre-wrap; word-break: break-word; }
.note-row { display: flex; gap: 8px; justify-content: flex-end; }
.mini { font-size: 12px; padding: 4px 10px; border-radius: 8px; border: 1px solid var(--line-soft); background: none; color: var(--muted); }
.p-action > .btn { width: 100%; margin-top: 8px; }

/* v0.7.1：AI の切り替えと Claude 連携 */
.eng-box { display: grid; gap: 8px; margin: 4px 0 8px; padding: 12px; border: 1px solid var(--line-soft); border-radius: 14px; background: rgba(94,234,255,.03); }
.eng-box[hidden], .claude-bar[hidden], .setup .back[hidden] { display: none; }
.eng-box .btn { width: 100%; }
.eng-box .field { margin-bottom: 0; }
.eng-box .how { margin: 0; padding-left: 1.2em; font-size: 12px; color: var(--muted); display: grid; gap: 4px; }
.eng-box .how b { color: var(--text); }
.eng-box .hint { margin: 0; }
.claude-bar { display: flex; gap: 8px; margin-top: 10px; }
.claude-bar .btn { flex: 1; padding: 10px 8px; font-size: 14px; }
.claude-bar.attn #claudeImport { border-color: var(--cyan); box-shadow: 0 0 12px rgba(94,234,255,.35); }
button.badge { background: none; font: inherit; font-size: 11px; }
.setup .back { width: 100%; margin-top: 4px; }
