.learning-panel { margin-block: 14px; padding: clamp(13px, 3vw, 22px); border: 1px solid #383f50; border-radius: 14px; background: #161a24; }
.learning-panel h2 { margin-block: 0 9px; font-size: 1.2rem; }
.learning-panel label { color: #cbd2df; font-size: .88rem; }
.learning-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-block: 8px; }
.learning-actions input { flex: 1 1 170px; width: min(100%, 24rem); }
.learning-actions :is(a, button, input), #compare-share, .compare-results button { min-height: 44px; min-width: 44px; }
.learning-actions a { display: inline-flex; align-items: center; }
.learning-note { color: #c8d0de; overflow-wrap: anywhere; }
.learning-guide { line-height: 1.65; }
.learning-guide p { max-width: 75ch; margin-block: .8rem; }
.compare-results { list-style: none; display: flex; flex-wrap: wrap; gap: 5px; padding: 0; }
.compare-chip { border-color: var(--compare-color); color: var(--compare-color); }
.compare-summary { padding: 12px 14px; border-inline-start: 3px solid var(--glow); background: #1c202b; }
.compare-scroll { width: 100%; overflow-x: auto; overscroll-behavior-inline: contain; border: 1px solid #3a4151; border-radius: 12px; }
.compare-values { width: 100%; table-layout: fixed; border-collapse: collapse; min-width: 304px; }
.compare-values[data-count="3"] { min-width: 420px; }
.compare-values[data-count="4"] { min-width: 530px; }
.compare-values :is(th, td) { text-align: left; padding: 8px; border-bottom: 1px solid #343949; vertical-align: top; overflow-wrap: anywhere; font-size: .88rem; }
.compare-values tr > :first-child { width: 23%; }
.compare-values thead { background: #1d222f; }
.compare-values thead a { display: flex; align-items: center; min-height: 44px; }
.compare-values img { display: block; width: min(100%, 125px); height: auto; aspect-ratio: 125 / 84; object-fit: contain; }
.compare-symbol { color: var(--compare-color); font-size: 1.2rem; font-weight: 700; }
.compare-bar { display: block; width: var(--bar); height: 4px; border-radius: 5px; margin-block-start: 5px; background: var(--compare-color); }
.compare-values small { display: block; margin-top: 2px; color: #d0d8e8; }
.compare-values td[data-extreme="highest"] { background: color-mix(in srgb, var(--compare-color) 11%, transparent); }
.compare-values td[data-extreme="lowest"] > small { color: var(--compare-color); }

.worksheet-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.worksheet-card { padding: 12px; border: 1px solid #414959; border-radius: 10px; }
.worksheet-card h3 { margin: 0; font-size: 1rem; }
.worksheet-links a { padding-inline: 8px; border-radius: 6px; background: #252c3c; }
.worksheet-links[hidden] { display: none; }
.classroom-links a { min-height: 44px; display: inline-flex; align-items: center; margin-inline-end: .35em; }
.projector { margin: 0; border: none; padding: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; background: #10141c; color: #fff; }
.projector::backdrop { background: #10141c; }
.projector-stage { width: 100%; height: 100%; background: #10141c; color: #fff; display: flex; flex-direction: column; padding: 8px; }
.projector-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 0 3px 8px; }
.projector-head h2 { margin: 0; font-size: clamp(1rem, 3vw, 1.6rem); }
.projector-head button { min-height: 44px; min-width: 44px; }
.projector-scroll { flex: 1; min-height: 0; overflow: auto; }
.projector-grid { display: grid; grid-template-columns: repeat(18, minmax(50px, 1fr)); grid-auto-rows: clamp(46px, 8.4dvh, 120px); gap: 3px; min-width: min-content; padding: 4px; }
.projector-tile {
  display: grid; place-content: center; text-align: center; padding: 2px;
  color: #fff; background: color-mix(in srgb, var(--family) 16%, #141924); border: 1px solid var(--family); border-radius: 4px;
}
.projector-tile strong { color: var(--family); font-size: clamp(1.17rem, 2.2vw, 2.2rem); line-height: 1; }
.projector-tile span, .projector-tile small { font-size: .69rem; overflow-wrap: anywhere; line-height: 1.05; }
.projector-tile:focus-visible { z-index: 1; outline: 3px solid #fff; outline-offset: 2px; }
#projector-status { margin: 3px; color: #d8e3ef; }
