/* Reuse r11 shell.css header/nav/card palette and dimensions.
   Scope to the outer shell and record cards: no beta stage/settings/keypad selectors. */
body>.site-header{display:flex;justify-content:space-between;flex-wrap:wrap;gap:12px;padding:20px max(20px,calc((100% - 1060px)/2));background:white;border-bottom:1px solid #deebf3;font-weight:700}
body>.site-header a{text-decoration:none}
body>.dev-note{font-size:12px;text-align:center;padding:8px;background:#fff4d8;color:#66501f}
body>nav[aria-label="メニュー"]{display:flex;flex-wrap:wrap;align-items:center;gap:8px 20px;max-width:1060px;margin:0 auto;padding:10px 20px}
body>nav[aria-label="メニュー"]>a{display:inline-flex;align-items:center;min-height:44px;font-size:16px;color:#17699a;text-underline-offset:.22em}
.record-card{border:1px solid #dce8ef;background:#fbfdff;border-radius:14px;padding:20px;margin:14px 0;min-width:0;overflow-wrap:anywhere;font-size:16px;line-height:1.8}
.record-card h2{color:#176448}
.record-card h3{font-size:22px;margin:0 0 12px;line-height:1.4}
.record-card .record-score{font-size:24px;font-weight:700;line-height:1.5;margin:12px 0}
.record-card .record-best{font-size:16px;line-height:1.8;margin:12px 0}
.record-card .saved{color:#16714b;font-weight:700}
.record-card details{font-size:16px;overflow-wrap:anywhere}
.record-card summary{cursor:pointer;min-height:44px;padding:10px 0;line-height:1.5}
.record-card details>.record-card{border:1px solid #dce8ef}
@media(max-width:640px){
 body>.site-header{font-size:14px;padding:16px}
 body>nav[aria-label="メニュー"]{gap:4px 16px;padding:8px 16px}
 .record-card{padding:14px}
}

/* Existing note/text sizing, scoped to result information and history only. */
.result-details .attempt-summary,.record-card .attempt-summary{font-weight:700;font-size:18px;line-height:1.5;margin:8px 0}
.result-details .answer-comparison,.record-card .answer-comparison{font-size:14px;line-height:1.6;margin:6px 0;overflow-wrap:anywhere}
.record-card.record-compact{padding:12px 14px}
.record-card.record-compact h3{font-size:18px;margin:0 0 6px}
.record-card.record-compact p{margin:4px 0}
.record-card .record-date{font-size:14px}

/* r14: approved success/achievement emphasis; beta layout and controls unchanged. */
.record-card .record-correct,.result-details .record-correct{color:#c62828;font-weight:800}
.result-details .record-correct{font-size:22px;line-height:1.4;margin:8px 0}
.record-card .record-clear{color:#16714b;font-weight:800}
.record-card .record-best{color:#a06b1b;font-weight:800}
.record-card.record-compact .answer-comparison{font-size:14px}

/* r15: student history only. Shared teacher cards and beta practice stay unchanged. */
.student-history-toolbar{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:4px 12px;margin:4px 0 10px}
.student-history-toolbar h1{font-size:22px;line-height:1.3;margin:0;color:#183c61}
.student-history-toolbar button{min-height:44px;font-size:14px;padding:8px 12px;line-height:1.4}
.student-history{color:#183c61;font-size:15px;line-height:1.4;font-variant-numeric:tabular-nums}
.student-history .rh-list{background:#fff;border:1px solid #dce8ef;border-radius:10px;overflow:hidden}
.student-history .rh-row{min-height:52px;box-sizing:border-box;display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:0 4px;align-items:center;padding:4px 8px;background:#fff;min-width:0}
.student-history .rh-row+.rh-row{border-top:1px solid #dce8ef}
.student-history .rh-main{min-width:0}
.student-history .rh-line{display:grid;grid-template-columns:2.8rem minmax(0,1fr) minmax(0,1.1fr) 3.2rem;align-items:center;gap:4px;line-height:1.4;font-size:14px}
.student-history .rh-date{font-size:14px;color:#526579}
.student-history .rh-mode,.student-history .rh-condition{overflow-wrap:anywhere}
.student-history .rh-outcome{color:#526579;font-weight:600;text-align:right}
.student-history .rh-correct{color:#17699a;font-weight:800;text-align:right}
.student-history .rh-circle{color:#c62828;font-weight:800}
.student-history .rh-outcome .rh-circle{margin-right:2px}
.student-history .rh-marks{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));text-align:center;gap:2px;font-size:16px;line-height:1.35;margin-top:2px}
.student-history .rh-mark-muted{color:#657384;font-size:14px}
.student-history .rh-mark-pending{color:#657384;font-size:12px;overflow-wrap:anywhere}
.student-history .rh-awards{display:flex;flex-wrap:wrap;gap:2px 10px;font-size:13px;line-height:1.4;margin:2px 0 0}
.student-history .rh-clear{color:#16714b;font-weight:800}
.student-history .rh-best{color:#8a611a;font-weight:800}
.student-history .rh-pending{color:#526579}
.student-history .rh-answer{color:#526579;font-size:13px;line-height:1.4;margin:2px 0 0;overflow-wrap:anywhere}
.student-history .rh-reached{font-size:13px;line-height:1.4;margin:2px 0 0;color:#183c61}
.student-history .rh-toggle{width:44px;min-width:44px;min-height:44px;height:44px;padding:0;margin:0;border:1px solid transparent;border-radius:8px;background:transparent;color:#183c61;font:700 24px/1 sans-serif;box-shadow:none;cursor:pointer}
.student-history .rh-toggle:hover{background:#f2f8ff}
.student-history .rh-toggle:focus-visible{outline:3px solid #17699a;outline-offset:-3px}
.student-history .rh-detail{grid-column:1/-1;border-top:1px solid #dce8ef;padding:8px 2px;font-size:13px;line-height:1.5;overflow-wrap:anywhere}
.student-history .rh-detail[hidden]{display:none}
.student-history .rh-detail p{font-size:13px;line-height:1.5;margin:3px 0}
.student-history .rh-round+.rh-round{border-top:1px solid #dce8ef;padding-top:6px;margin-top:6px}
.student-history .rh-detail .record-correct{color:#17699a;font-weight:700}
.student-history .rh-growth{margin-bottom:8px;border:1px solid #dce8ef;border-radius:10px}
.student-history .rh-growth .rh-main{display:flex;flex-wrap:wrap;gap:2px 12px;align-items:center}
.student-history .rh-totals{font-size:13px;color:#526579}
.student-history .rh-footnote{font-size:12px;line-height:1.4;color:#526579;margin:8px 0 0}

.teacher-credentials{margin:1rem 0;padding:1rem;border:1px solid #b8d5ca;border-radius:12px;background:#f5faf7}.teacher-credentials summary{cursor:pointer;font-weight:700}.teacher-credentials label{display:flex;gap:.5rem;align-items:flex-start}.teacher-credentials input[type=checkbox]{width:auto;flex:0 0 auto}.credential-actions{display:flex;flex-wrap:wrap;gap:.75rem}.teacher-credentials button{white-space:normal;min-height:44px}.teacher-credentials textarea{display:block;box-sizing:border-box;width:100%;max-width:100%;margin:.75rem 0;overflow-wrap:anywhere}

/* r100: only teacher queue / dedicated trial route. */
.teacher-approval-summary{border:2px solid #b7cdc1;border-radius:12px;background:#f5faf7;padding:12px 18px;margin:12px 0;color:#203c2f}
.teacher-approval-summary.needs-approval{border:3px solid #b52030;background:#fff4f4;color:#861c26}
.teacher-approval-summary strong{font-size:1.3em}.teacher-approval-summary p{margin:4px 0}
.teacher-trial-link{display:inline-block;padding:10px 14px;margin:0 12px 12px 0;border:2px solid #36775e;border-radius:8px}
.teacher-trial-banner{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:12px 18px;background:#fff4d6;color:#503c0d}
.teacher-trial-banner a{padding:5px 12px;border:1px solid currentColor;border-radius:6px}.teacher-trial-note{padding:12px;border:2px solid #9d7723;border-radius:8px}

/* r114 candidate: growth roster and personal milestones; no player styles. */
.growth-ranking{color:#203d43;line-height:1.65;overflow-wrap:anywhere}
.growth-ranking select{max-width:100%;min-height:44px;font-size:16px}
.growth-ranking .record-card{display:flex;flex-wrap:wrap;gap:12px}
.growth-ranking .record-card label{display:flex;flex:1 1 180px;flex-direction:column;min-width:0}
.stepup-roster{margin:22px 0 32px;padding:20px;border:1px solid #b8d1bd;border-radius:18px;background:linear-gradient(135deg,#fcfbf3,#f2f7f3)}
.journey-eyebrow{font-size:13px;letter-spacing:.08em;font-weight:700;color:#527359;margin:0 0 4px}
.stepup-roster h2,.personal-achievements h2{margin:0 0 8px;color:#244d42;font-size:24px}
.stepup-self{padding:12px 16px;background:#e7f3ed;border:2px solid #397c66;border-radius:12px;margin:16px 0}
.stepup-self h3{margin:0;font-size:18px}.stepup-self p{margin:6px 0}
.stepup-roster button{min-height:44px;padding:10px 14px;white-space:normal;font-size:16px}
.journey-help summary,.personal-progress-disclosure>summary{cursor:pointer;min-height:44px;padding:10px 4px;box-sizing:border-box;font-weight:700}
.journey-help p,.journey-muted,.stepup-goal{font-size:14px;color:#53646b}
.stepup-section{margin-top:20px}.stepup-section>h3{border-bottom:2px solid #c5d7c5;padding:0 0 8px;margin:0 0 10px;font-size:20px}
.stepup-level{display:grid;grid-template-columns:130px minmax(0,1fr);gap:12px;padding:12px;margin:8px 0;border:1px solid #d3dfd5;border-radius:10px;background:#fff}
.stepup-level h4{font-size:16px;margin:4px 0;color:#375e50}
.stepup-level.is-master,.personal-best-card.is-master{border-color:#c5a85f;background:#fff9e8}
.stepup-level.is-master h4{color:#775915}
.stepup-peers{list-style:none;padding:0;margin:0;display:flex;flex-wrap:wrap;gap:8px}
.stepup-person{display:flex;align-items:center;gap:8px;background:#f1f5f3;border:1px solid #d8e3dc;padding:6px 10px;border-radius:8px;max-width:100%;box-sizing:border-box;overflow-wrap:anywhere}
.stepup-person.is-self{background:#e7f3ed;border:2px solid #287154;font-weight:700}
.stepup-person:focus{outline:3px solid #b88722;outline-offset:2px}.self-mark{font-size:12px;white-space:nowrap;background:#27674f;color:#fff;border-radius:4px;padding:2px 5px}
.ranking-self-summary{border:2px solid #397c66;border-radius:12px;padding:12px 16px;background:#f1f8f3;margin:12px 0}.ranking-self-summary h3{margin:0}
.ranking-self-row{border-left:4px solid #397c66;padding-left:12px;background:#edf6ef;font-weight:700}
.personal-achievements{margin:12px 0 16px;padding:16px;border-radius:14px;background:#f5f8f3;border:1px solid #c6d9ca}
.personal-best-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:10px}
.personal-best-card{padding:12px;border:1px solid #d4ded7;border-radius:10px;background:#fff;min-width:0;overflow-wrap:anywhere}
.personal-best-card h3{font-size:15px;margin:0 0 8px;color:#53646b}.personal-best-card strong{font-size:20px;color:#2e5849}
.personal-progress-disclosure{padding:8px 12px;margin:8px 0 16px;border:1px solid #c6d9ca;border-radius:12px;background:#fff}
.personal-progress-card{padding:12px;margin:10px 0;border:1px solid #d8e2dc;border-radius:10px;background:#fafcf9;overflow-wrap:anywhere}
.personal-progress-card h3{font-size:18px;margin:0 0 10px}.personal-progress-card p{font-size:14px;line-height:1.6}
.personal-comparison{display:grid;grid-template-columns:minmax(130px,1.5fr) 1fr 1fr;gap:10px;padding:10px 0;border-top:1px solid #dde5df;font-variant-numeric:tabular-nums;font-size:15px}
.personal-progress progress{display:block;width:100%;height:18px;accent-color:#397c66}
.milestone-note{border-left:4px solid #bd9a42;padding:8px 12px;background:#fff9e8;color:#6c511d;font-weight:700}
@media(max-width:520px){.stepup-roster{padding:14px 12px}.stepup-level{grid-template-columns:1fr;gap:6px}.stepup-level h4{margin:0}.personal-best-grid{grid-template-columns:1fr 1fr}.personal-best-card{padding:10px}.personal-best-card strong{font-size:18px}.personal-comparison{grid-template-columns:1fr 1fr;font-size:14px}.personal-comparison strong{grid-column:1/-1}.stepup-self{padding:10px}.personal-achievements{padding:12px}.growth-ranking .record-card{padding:12px}}

/* r160: explanation only; numeric credit is supplied by the existing server. */
.daily-feedback{margin:12px 0;padding:12px;border:1px solid #92aaa4;border-left:4px solid #416e60;border-radius:10px;background:#f5f8f6;color:#233c35;font-size:16px;line-height:1.55;text-align:left;overflow-wrap:anywhere}
.daily-feedback h3{margin:0 0 6px;font-size:1rem}.daily-feedback p{margin:6px 0}.daily-feedback small{font-size:14px;color:#465b54}.daily-feedback summary{min-height:44px;cursor:pointer;align-content:center;font-weight:600}.daily-next-practice{text-align:left;margin:12px 0}.daily-next-practice button{min-height:44px;max-width:100%;white-space:normal}.daily-next-practice h2{font-size:18px}.daily-next-practice p,.daily-next-practice small{font-size:16px;line-height:1.5}
