:root { color-scheme: light; font-family: -apple-system, BlinkMacSystemFont, "Hiragino Sans", "Yu Gothic", sans-serif; color: #22324a; background: #f4f6fa; font-size: 16px; --blue: #245bb5; --line: #dce2ed; }
* { box-sizing: border-box; }
body { margin: 0; }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button { min-height: 44px; border-radius: 9px; border: 1px solid var(--line); padding: 10px 15px; color: inherit; background: white; }
button:hover:not(:disabled) { border-color: var(--blue); background: #f0f5ff; }
button:disabled { cursor: default; opacity: .45; }
:focus-visible { outline: 3px solid #c98400; outline-offset: 3px; }
h1, h2, h3, p { margin: 0; }
.site-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; border-bottom: 1px solid var(--line); padding: 22px max(24px, calc((100vw - 1320px) / 2)); background: #fff; }
.eyebrow { display: block; font-size: .75rem; letter-spacing: .1em; font-weight: 700; color: #62748e; margin-bottom: 8px; }
h1 { font-size: 1.5rem; letter-spacing: .02em; }
.badge { font-size: .8rem; border: 1px solid var(--line); border-radius: 30px; padding: 8px 12px; white-space: nowrap; }
.layout { display: grid; grid-template-columns: 272px minmax(0, 1fr); gap: 32px; max-width: 1320px; margin: 0 auto; padding: 30px 24px; align-items: start; }
.settings { padding: 22px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.settings h2 { font-size: 1.05rem; margin-bottom: 22px; }
label { display: block; font-size: .875rem; font-weight: 600; margin: 20px 0 8px; }
select, input[type="number"] { width: 100%; min-height: 44px; border: 1px solid #becbdd; border-radius: 8px; padding: 10px; background: #fff; color: inherit; }
input:disabled { background: #f0f2f6; color: #667; }
.help { font-size: .8rem; line-height: 1.7; color: #69778c; margin-top: 9px; }
.setting-divider { border-top: 1px solid var(--line); margin-top: 24px; }
.check-label { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-bottom: 0; }
input[type="checkbox"] { width: 20px; height: 20px; accent-color: var(--blue); flex: none; }
.lesson-heading h2 { font-size: 1.6rem; }
.test-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.test-picker button { display: flex; align-items: center; justify-content: center; gap: 14px; padding: 15px; }
.test-picker strong { font-size: 1.15rem; }
.test-picker span { font-size: .875rem; }
.test-picker button[aria-pressed="true"] { border-color: var(--blue); background: #eaf1ff; color: #19458e; box-shadow: inset 0 0 0 1px var(--blue); }
.test-help { min-height: 48px; font-size: .875rem; line-height: 1.6; padding: 12px 0; }
.viewer { overflow: hidden; border: 1px solid var(--line); background: white; border-radius: 14px; }
.viewer-labels, .viewer-footer { display: flex; justify-content: space-between; gap: 12px; padding: 12px 20px; font-size: .875rem; }
.viewer-labels { font-weight: 700; }
.viewer-labels small { font-weight: 400; color: #69778c; margin-left: 8px; }
.viewer-footer { background: #f9fafc; border-top: 1px solid var(--line); }
#eyeCanvas { display: block; width: 100%; height: auto; }
.loading { display: grid; place-items: center; padding: 80px 20px; color: #69778c; }
.playback { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 16px 0; }
.primary { color: #fff; background: var(--blue); border-color: var(--blue); min-width: 110px; }
.primary:hover:not(:disabled) { background: #18488f; color: white; }
.progress-label { margin-left: auto; font-size: .875rem; color: #62748e; font-variant-numeric: tabular-nums; }
.timeline { display: flex; gap: 7px; overflow-x: auto; padding: 3px 3px 8px; }
.timeline button { flex: 1 0 90px; font-size: .75rem; line-height: 1.5; padding: 9px 6px; }
.timeline button span { display: block; font-size: .9rem; font-weight: 700; margin-bottom: 4px; }
.timeline [aria-current="step"] { border-color: var(--blue); color: #16448c; background: #eaf1ff; }
.timeline-help { font-size: .75rem; color: #69778c; margin: 2px 0 18px; line-height: 1.6; }
.observation { border-left: 4px solid var(--blue); border-radius: 0 10px 10px 0; background: #eaf1ff; padding: 18px 22px; min-height: 146px; }
.observation h3 { font-size: 1.1rem; margin-bottom: 10px; }
.observation p { line-height: 1.8; }
.key-points { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 24px 0; }
.key-points p { font-size: .875rem; line-height: 1.8; }
.key-points strong { color: #254e85; }
.notes { border-top: 1px solid var(--line); padding-top: 18px; font-size: .875rem; line-height: 1.8; }
summary { cursor: pointer; min-height: 44px; font-weight: 600; }
.notes p { margin-top: 14px; }
a { color: #245bb5; text-decoration-thickness: 1px; text-underline-offset: 3px; }
.error { color: #9b263c; background: #fff0f2; padding: 12px; margin-top: 12px; border-radius: 8px; }
footer { max-width: 1320px; margin: 0 auto; padding: 16px 24px 28px; font-size: .8rem; color: #69778c; }
@media (max-width: 880px) {
  .layout { grid-template-columns: 1fr; gap: 24px; }
  .settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; }
  .settings > * { grid-column: 1 / -1; }
  .key-points { gap: 12px; }
}
@media (max-width: 520px) {
  .site-header { padding: 18px 16px; align-items: flex-start; flex-direction: column; gap: 12px; }
  .layout { padding: 20px 14px; }
  .test-picker button { flex-direction: column; gap: 5px; }
  .viewer-labels, .viewer-footer { padding: 10px 12px; font-size: .75rem; }
  .viewer-labels small { display: none; }
  .key-points { grid-template-columns: 1fr; }
  .observation { padding: 16px; }
  .playback button { padding: 9px 11px; font-size: .875rem; }
}
