/* Scoped to this visual picker. Original routes and search remain intact. */
body[data-teacher-tap] .tt-picker{box-sizing:border-box;max-width:1080px;margin:16px auto 24px;padding:22px;background:#fffdf7;border:1px solid #e4e7da;border-radius:22px;color:#173e35}
.tt-picker *{box-sizing:border-box}.tt-top{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.tt-back{display:inline-flex;align-items:center;justify-content:center;min-width:90px;min-height:44px;gap:8px;border:1px solid #b7cbbb;border-radius:24px;color:#254f40;background:white;text-decoration:none;font-size:24px;font-weight:700}.tt-back span{font-size:14px}.tt-state{font-size:15px;font-weight:700;line-height:1.6}.tt-state>span{color:#8e9f90;margin:0 8px}.tt-picker .tt-label{margin:14px 0 10px;padding:0;border:0;font-size:17px;line-height:1.4;color:#254f40}.tt-grades{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px}.tt-picker .tt-grade{position:relative;display:flex;align-items:baseline;justify-content:center;gap:4px;min-height:100px;padding:10px 6px;border:2px solid #c5d6bf;border-radius:15px;background:#fff;color:#24513e;text-decoration:none;box-shadow:0 4px 0 #e2e8d7}.tt-grade strong{font:800 56px/1.25 ui-rounded,-apple-system,BlinkMacSystemFont,sans-serif}.tt-grade>span:not(.tt-check){font-size:14px;font-weight:700}.tt-picker .tt-grade.is-selected{background:#245f49;color:white;border-color:#245f49;box-shadow:0 4px 0 #153f30}.tt-check{position:absolute;right:8px;top:6px;display:grid;place-items:center;width:24px;height:24px;border-radius:50%;background:#245f49;color:white;font-size:16px;font-style:normal}.tt-grade .tt-check{background:white;color:#245f49;width:19px;height:19px;top:5px;right:6px;font-size:13px}.tt-subjects{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tt-picker .tt-subject{display:grid;position:relative;grid-template-columns:1fr 24px;align-items:center;overflow:hidden;border:2px solid #e1e3da;border-radius:16px;background:white;color:#294d42;text-decoration:none;box-shadow:0 4px 0 #e6e7de}.tt-subject img{display:block;width:100%;height:120px;object-fit:contain;grid-column:1/-1;background:#fff}.tt-subject>span{padding:10px 12px;font-size:19px;font-weight:750;line-height:1.3}.tt-arrow{font-size:21px;padding-right:8px}.tt-picker .tt-subject.is-selected{border-color:#245f49;box-shadow:0 4px 0 #245f49}.tt-picker a:hover{filter:brightness(.97);transform:translateY(-1px)}.tt-picker a:focus-visible,.tt-search summary:focus-visible{outline:3px solid #c87919;outline-offset:4px}.tt-picker a:active{transform:translateY(2px);box-shadow:none}
body[data-teacher-tap] .teacher-top{padding-bottom:0;margin-bottom:0}body[data-teacher-tap] .teacher-top p:last-child{display:none}body[data-teacher-tap] .teacher-shortcuts{display:none}body[data-teacher-tap] .tt-intro{margin-top:12px;padding-top:0}body[data-teacher-tap] .tt-intro h1{font-size:clamp(22px,3.5vw,30px);line-height:1.5;margin:12px 0}.tt-reference,.tt-search{max-width:1080px;margin:14px auto;padding:12px 16px;border:1px solid #dce2d9;border-radius:12px;background:#fff;color:#28493f}.tt-reference summary,.tt-search summary{cursor:pointer;min-height:32px;line-height:32px;font-size:15px;font-weight:650}.tt-reference[open]>summary,.tt-search[open]>summary{margin-bottom:12px}.tt-search>summary{font-size:16px}.tt-search .catalog{padding:0;margin:0}.tt-search .catalog h2{font-size:20px}.tt-search .filters{margin-top:12px}.tt-reference .intro{padding:0}.tt-reference>section{margin:8px 0}.tt-search{margin-top:24px}body[data-teacher-tap] .breadcrumbs{margin-bottom:8px}body[data-teacher-tap] .compact-image-brand img{max-height:68px;width:auto;max-width:100%}body[data-teacher-tap] .compact-image-brand{max-width:220px}body[data-teacher-tap] .tt-picker .tt-subject img:not([src]){display:none}
@media(max-width:650px){body[data-teacher-tap] .tt-picker{padding:14px;margin:12px 0 18px;border-radius:17px}.tt-top{margin-bottom:10px}.tt-state{font-size:13px}.tt-state>span{margin:0 4px}.tt-grades{grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.tt-picker .tt-grade{min-height:83px;padding:9px 4px}.tt-grade strong{font-size:46px}.tt-grade>span:not(.tt-check){font-size:12px}.tt-subjects{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tt-subject img{height:95px}.tt-subject>span{font-size:17px;padding:8px 10px}.tt-picker .tt-label{font-size:15px;margin-top:15px}.tt-back{min-width:78px;min-height:44px}.tt-reference,.tt-search{padding:10px 12px}.tt-picker .tt-subject{border-radius:13px}.tt-picker .tt-grade.is-selected .tt-check{right:5px}}
@media(prefers-reduced-motion:no-preference){.tt-picker a{transition:transform .12s ease,background-color .12s ease}}

.tt-picker .tt-grade.is-unavailable{opacity:.35;box-shadow:none;background:#eee;cursor:not-allowed}

.tt-change>summary{display:flex;gap:12px;align-items:center;min-height:76px;cursor:pointer;list-style:none}.tt-change>summary::-webkit-details-marker{display:none}.tt-change>summary img{width:88px;height:66px;object-fit:contain;background:white;border-radius:10px}.tt-current-grade{display:flex;align-items:baseline;gap:4px;font-size:13px;font-weight:700}.tt-current-grade strong{font-size:48px;line-height:1.2;color:#245f49}.tt-current-subject{font-weight:750;font-size:21px}.tt-change-label{margin-left:auto;font-size:13px;font-weight:650}.tt-change>summary:focus-visible{outline:3px solid #c87919;outline-offset:3px}.tt-change[open]>summary{border-bottom:1px solid #dce2d9;padding-bottom:12px;margin-bottom:12px}@media(max-width:360px){.tt-change>summary{gap:7px}.tt-change>summary img{width:58px;height:58px}.tt-current-subject{font-size:18px}.tt-current-grade strong{font-size:42px}.tt-change-label{font-size:12px}}
/* F04: native disclosure hit area must be at least 44px tall. */
.tt-search>summary{box-sizing:border-box;min-height:44px;line-height:44px}
