/* 登録なしの診断（#/start）と先行登録（#/signup）。色は app.css の変数を使う */
.anon .gtabs { display: flex; gap: 8px; margin: 10px 0; }
.anon .gtab { flex: 1; padding: 10px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-paper); font-weight: 700; }
.anon .gtab.on { background: var(--p-accent); color: var(--p-accent-ink); border-color: var(--p-accent); }
.anon .ulist { display: flex; flex-direction: column; gap: 8px; }
.anon .uopt { text-align: left; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-paper); }
.anon .uopt b { display: block; font-size: 15px; }
.anon .uopt span { display: block; color: var(--p-sub); font-size: 12.5px; }
.anon .prog { display: flex; justify-content: space-between; color: var(--p-sub); font-size: 13px; }
.anon .sec { margin: 14px 0 4px; font-size: 14px; color: var(--p-accent); }
.anon .t3 { margin: 0 0 8px; padding-left: 1.4em; }
.anon .hidn { background: var(--p-soft); border-radius: 8px; padding: 10px 12px; font-size: 14px; margin: 12px 0 0; }
.anon .cta p { font-size: 14.5px; }
.anon .perk { background: var(--p-ok-soft); border-radius: 8px; padding: 10px 12px; font-size: 14.5px; }
.anon .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.anon .chips.col { flex-direction: column; }
.anon .chip { padding: 12px 14px; border-radius: 10px; border: 1px solid var(--p-line); background: var(--p-paper); text-align: left; font-size: 15px; }
.anon .chip.on { background: var(--p-accent); color: var(--p-accent-ink); border-color: var(--p-accent); font-weight: 700; }
.anon .chk { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; }
.anon .chk input { width: 22px; height: 22px; margin: 2px 0 0; flex: none; }
/* 子ども画面の .phead（写真つき見出し）・.today（紺の札）と名前がかぶるので、診断書では元の見た目に戻す */
.anon .phead { aspect-ratio: auto; max-height: none; width: auto; border-radius: 0; background: none; overflow: visible; position: static; border-bottom: 2px solid var(--p-ink); padding-bottom: 8px; margin-bottom: 10px; }
.anon .phead div { position: static; width: auto; padding: 0; background: none; display: block; }
.anon .phead b { display: block; font-size: 20px; line-height: 1.4; }
.anon .phead span { display: block; margin-top: 2px; }
.anon .phead b, .anon .phead span { word-break: auto-phrase; overflow-wrap: anywhere; }
section.today { margin: 14px 0 0; background: var(--p-soft); color: var(--p-ink); border-radius: 10px; padding: 10px 14px; display: block; box-shadow: none; }
section.today h4 { margin: 0 0 6px; color: var(--p-accent); }
.anon h3, .anon .ch h3 { word-break: auto-phrase; }
.anon .evt td, .anon .evt th { overflow-wrap: anywhere; }
/* 子ども画面の .chips（横にすべる列）と名前がかぶるので戻す。選択肢は押しやすい高さに */
.anon .chips { padding: 0; overflow: visible; flex: initial; }
.anon .chip { flex: 1 1 auto; font-size: 15px; font-weight: 400; min-height: 44px; box-shadow: none; color: var(--p-ink); }
.anon .chip.on { color: var(--p-accent-ink); font-weight: 700; }
.anon .chips.col .chip { flex: none; }
/* 5問の画面：.k2（子ども画面）の中でしか効かない問題カード・テンキーを、この画面用に */
.anon .prog { padding: 4px 0 8px; }
.anon .qcard { margin: 4px 0 12px; background: #fff; border-radius: 18px; box-shadow: 0 2px 0 var(--p-line); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 22px 14px; min-height: 130px; text-align: center; }
.anon .qtext { font-size: 22px; font-weight: 700; line-height: 1.6; }
.anon .ansbox { margin: 0 0 10px; border-radius: 14px; min-height: 54px; font-size: 26px; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; background: #fff; border: 2px solid var(--p-accent); }
.anon .ansbox.empty { color: var(--p-sub); font-size: 15px; font-weight: 400; border-style: dashed; border-color: var(--p-line); }
.anon .pad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.anon .pad button { height: 50px; border-radius: 12px; border: 1px solid var(--p-line); background: #fff; color: var(--p-ink); font: inherit; font-size: 22px; font-weight: 700; }
.anon .pad button:active { background: var(--p-soft); }
.anon .pad button.ok { background: var(--p-accent); color: var(--p-accent-ink); border: none; font-size: 15px; }
.anon .pad button.dunno { font-size: 13px; color: var(--p-sub); }
.anon .hint { font-size: 12px; color: var(--p-sub); text-align: center; margin: 8px 0; }
.anon .choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.anon .choice { border: 1px solid var(--p-line); background: #fff; color: var(--p-ink); border-radius: 14px; min-height: 62px; font: inherit; font-size: 18px; font-weight: 700; padding: 6px; }
.anon .choice.dunno { grid-column: 1 / -1; min-height: 44px; font-size: 14px; color: var(--p-sub); }
.anon .qcard { flex: none; height: auto; min-height: 120px; max-height: none; }
/* 診断書の見出し・原因の文：文節の途中で折り返さない（guardian.js・anon.js 共通） */
.ch h3, .dl dd, .finding p, .hidn { word-break: auto-phrase; line-break: strict; }
.ch h3 { text-wrap: balance; }
.dl dd, .finding p { text-wrap: pretty; }
.anon .gfold { margin: 8px 0; border: 1px solid var(--p-line); border-radius: 10px; background: var(--p-paper); }
.anon .gfold > summary { cursor: pointer; padding: 12px 14px; font-weight: 800; font-size: 15px; display: flex; justify-content: space-between; align-items: center; }
.anon .gfold > summary small { color: var(--p-sub); font-weight: 400; font-size: 12px; }
.anon .gfold[open] > summary { border-bottom: 1px solid var(--p-line); }
.anon .gfold .ulist { padding: 8px; }
.anon .gfold .ulist { gap: 6px; }
.anon .gfold .uopt { padding: 8px 12px; }
/* 学年の中は「教科書の章」ごとにたたむ（最初は章の見出しだけ）。単元は2列のタイル */
.anon .sfold { margin: 6px 8px; border: 1px solid var(--p-line); border-radius: 8px; background: #fff; }
.anon .sfold > summary { cursor: pointer; padding: 10px 12px; font-weight: 700; font-size: 14.5px; display: flex; justify-content: space-between; align-items: center; min-height: 24px; }
.anon .sfold > summary small { color: var(--p-sub); font-weight: 400; font-size: 12px; }
.anon .sfold[open] > summary { border-bottom: 1px solid var(--p-line); }
.anon .sfold .ulist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px; }
.anon .sfold .uopt { padding: 8px 10px; min-height: 44px; display: flex; align-items: center; }
.anon .sfold .uopt b { font-size: 13.5px; line-height: 1.35; word-break: auto-phrase; overflow-wrap: anywhere; }
.anon .gfold { padding-bottom: 2px; }
