/* V163: classic layout for 17 cards; seven justified figures. Historical cards and Deck stay unchanged. */
.app-shell-swipe .exercise-card.college-card .exercise-panel{overflow-y:auto;overflow-x:hidden;justify-content:center;align-items:stretch;touch-action:pan-y;scrollbar-width:thin;padding:14px 16px!important;color:#17365c}
.app-shell-swipe .exercise-card.college-card .exercise-panel>*{flex-shrink:0;min-width:0;max-width:100%}
.app-shell-swipe .exercise-card.college-card .exercise-panel>p{font-size:12px!important;line-height:1.4;text-align:center;letter-spacing:.06em}
.app-shell-swipe .exercise-card.college-card .exercise-panel h1{font-family:inherit;letter-spacing:-.015em;font-size:clamp(19px,2.8dvh,24px)!important;line-height:1.4!important;margin:8px 0 14px!important;text-align:center;max-height:none;overflow:visible;overflow-wrap:break-word}
.app-shell-swipe .exercise-card.college-card .exercise-panel label,.college-answer-label{margin:0 0 8px;color:#425d7a;font-size:12px!important;font-weight:800;text-transform:uppercase;text-align:center}
.app-shell-swipe .exercise-card.college-card .exercise-panel input:not([type=hidden]){min-height:48px;font-size:18px!important}
.app-shell-swipe .exercise-card.college-card .exercise-panel .card-reward{margin-top:12px;font-size:12px}
.app-shell-swipe .exercise-card.college-card.swipe-density-compact .exercise-panel{padding:10px 12px!important}
.college-scroll-cue{display:none;position:absolute;z-index:4;right:10px;bottom:7px;border-radius:999px;padding:5px 9px;background:#ffffffed;color:#173d64;box-shadow:0 2px 6px #05142a30;font-size:12px;font-weight:750;pointer-events:none}
.exercise-card.college-wave[data-swipe-fit=scroll] .college-scroll-cue{display:block}
.college-visual{border:1px solid #ccdeed;border-radius:16px;background:linear-gradient(150deg,#f6fbff,#edf6fd);padding:12px;margin:0 0 14px;color:#173d64;box-shadow:inset 0 1px #fff}
.college-viz-row{display:flex;justify-content:center;align-items:center;gap:8px;flex-wrap:wrap;min-width:0}
.college-viz-tag,.college-viz-chip{display:inline-flex;flex-direction:column;gap:4px;padding:9px 12px;border:1px solid #c8dcec;border-radius:12px;background:#fff;color:#173d64;font-size:16px;line-height:1.35;white-space:normal;max-width:100%}
.college-viz-tag strong{font-size:12px;color:#425d7a;letter-spacing:.02em}
.college-viz-chip{font-weight:700;text-align:center}
.college-viz-arrow{color:#1875bd;font-size:24px;font-weight:800}
.college-answer-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.college-answer-options.tap-target{grid-template-columns:repeat(3,minmax(0,1fr))}
.college-answer-options.plateau{grid-template-columns:1fr}
.college-answer-option{min-width:0;min-height:48px;border:1.5px solid #bacfe3;border-radius:13px;padding:11px 12px;background:#fff;color:#173d64;font-family:inherit;font-size:16px;font-weight:750;line-height:1.35;text-align:center;box-shadow:0 2px 6px #24547f0b;cursor:pointer;overflow-wrap:break-word;touch-action:manipulation}
.college-answer-option .college-fraction-cells{margin:0 0 8px}
.college-answer-option:hover,.college-answer-option:focus-visible{border-color:#126ad2;outline:3px solid #68b5f0;outline-offset:2px}
.college-answer-option[aria-pressed=true]{border-color:#126ad2;color:#0e4c94;background:#e5f3ff;box-shadow:inset 0 0 0 1px #126ad2}
.college-answer-option:disabled{opacity:.65;cursor:default}
.college-number-line{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));align-items:end;height:78px;padding:22px 0 0;position:relative}
.college-number-line::before{content:"";position:absolute;bottom:32px;left:4%;right:4%;height:3px;border-radius:3px;background:#3789c6}
.college-tick{min-width:0;display:flex;flex-direction:column;align-items:center;position:relative;font-weight:800;color:#284d72}
.college-tick i{width:2px;height:15px;background:#3789c6}
.college-tick small{height:27px;margin-top:4px;font-size:11px;white-space:nowrap}
.college-tick.marked::before{content:"▼";position:absolute;bottom:47px;color:#a84e19;font-size:19px}
.college-tick.marked i{background:#a84e19;width:3px}
.college-ratio{display:grid;gap:12px;justify-items:center}
.college-ratio-model{display:flex;flex-wrap:wrap;justify-content:center;gap:8px}
.college-ratio-set{display:flex;flex-direction:column;align-items:center;gap:6px;padding:9px;border:1px solid #c8dcec;border-radius:12px;background:#fff;color:#173d64}
.college-ratio-set b{font-size:14px;line-height:1.3}
.college-ratio-dots{display:flex;flex-wrap:wrap;justify-content:center;gap:4px;max-width:190px}
.college-ratio-set i{display:block;width:13px;height:13px;border-radius:50%;background:#bd4450}
.college-ratio-set.tone-1 i{background:#187bd0}
.college-ratio-set.tone-2 i{background:#b18113}
.college-ratio-new{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;font-size:14px;font-weight:750}
.college-ratio-new>b{flex-basis:100%;text-align:center}
.college-fraction-comparison{display:flex;align-items:stretch;justify-content:center;gap:9px}
.college-fraction-set,.college-rate-set{min-width:0;display:flex;flex:1 1 0;flex-direction:column;align-items:stretch;gap:8px;padding:10px;border:1px solid #c8dcec;border-radius:12px;background:#fff;font-size:14px;text-align:center;line-height:1.35}
/* The full bar always represents the same whole: no maximum cell width, no wrapping. */
.college-fraction-cells{display:flex;width:100%;gap:0;justify-content:center;flex-wrap:nowrap;border:1px solid #819dbb;border-radius:5px;overflow:hidden}
.college-fraction-cells i{display:block;flex:1 1 0;min-width:0;height:24px;background:#e7edf5;border-right:1px solid #819dbb}
.college-fraction-cells i:last-child{border-right:0}
.college-fraction-cells i.selected{background:#187bd0}
.college-fraction-plates{padding:0;border:0;background:none;box-shadow:none}
.college-fraction-plates .college-fraction-set{width:100%;padding:11px 12px;border-width:1.5px;font-size:16px}
.college-answer-options.plateau .college-answer-option{display:flex;flex-direction:column;gap:0;align-items:stretch}
.college-rate-set .college-fraction-cells i{height:22px}
.college-bar-svg{display:block;width:100%;max-width:350px;height:174px;margin:auto}
.college-bar-svg text{fill:#234669;font:750 13px system-ui,sans-serif}
.college-poster-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.college-mini-chart{min-width:0;display:flex;flex-direction:column;align-items:center;margin:0;padding:8px 4px;border:1px solid #c8dcec;border-radius:12px;background:#fff;color:#173d64;text-align:center}
.college-mini-chart figcaption{font-size:15px;font-weight:800}
.college-mini-chart svg{display:block;width:100%;height:auto;overflow:visible}
.college-mini-chart text{fill:#173d64;font:750 16px system-ui,sans-serif}
.college-mini-chart small{font-size:12px;font-weight:750;line-height:1.4}
.college-score{padding:9px 12px;border:1px solid #bfd9ef;border-radius:10px;background:#fff;color:#173d64;font-size:16px;font-weight:850}
.college-score:last-child{background:#ffefd9;border-color:#d5a255}
.college-geometry{display:flex;justify-content:center;align-items:center;min-height:120px}
.college-geometry svg{width:min(260px,100%);height:auto;max-height:155px;overflow:visible}
.college-geometry text{fill:#173d64;font:800 14px system-ui,sans-serif}
.college-machine .college-viz-row{flex-direction:column;gap:4px}
.college-machine .college-viz-chip{width:100%;max-width:340px;padding:8px 10px}
.college-machine .college-viz-arrow{transform:rotate(90deg);line-height:16px;font-size:20px}
@media(max-width:360px){.college-visual{padding:10px}.college-fraction-plates{padding:0}.college-answer-options:not(.tap-target){grid-template-columns:1fr}.college-poster-pair{grid-template-columns:1fr}.college-mini-chart svg{max-width:220px}}
@media(forced-colors:active){.college-answer-option[aria-pressed=true]{outline:3px solid Highlight}.college-fraction-cells i.selected{background:Highlight;forced-color-adjust:none}.college-ratio-set i{forced-color-adjust:none}}
@media(prefers-reduced-motion:reduce){.college-answer-option{transition:none!important}}
/* Figure cards need reading space; text-only cards retain the classic centered composition. */
.app-shell-swipe .exercise-card.college-wave .exercise-panel{justify-content:flex-start}
.app-shell-swipe .exercise-card.college-card[data-swipe-fit=scroll] .exercise-panel{justify-content:flex-start}
.app-shell-swipe .exercise-card.college-wave .exercise-panel h1{text-align:left}
.college-answer-options:not(.tap-target):not(.plateau):not(.mirror)>.college-answer-option:last-child:nth-child(odd){grid-column:1/-1}
.college-answer-options.mirror{grid-template-columns:1fr}
.college-answer-options.mirror .college-answer-option{display:grid;grid-template-columns:minmax(0,1fr) 76px;align-items:center;padding:8px}
.college-answer-options.mirror .college-geometry{min-height:0}
.college-answer-options.mirror svg{max-height:138px}
.college-mirror-figure text{font-size:16px}
.moki-step .college-visual{margin-top:14px;margin-bottom:0}
.moki-step .college-fraction-cells{box-sizing:border-box}
