.academy-tooth-selector{min-width:0;max-width:100%;margin:0;padding:clamp(14px,2vw,22px);border:1px solid rgba(16,99,80,.18);border-radius:18px;background:rgba(255,255,255,.72);overflow:hidden}.academy-tooth-selector>legend{padding:0 8px;font-weight:800;color:#123e35}.academy-tooth-selector-heading{display:flex;align-items:start;justify-content:space-between;gap:16px;margin-bottom:14px}.academy-tooth-selector-heading h3{margin:0 0 4px;font-size:1rem}.academy-tooth-selector-heading p{margin:0;color:#536b65;font-size:.88rem}.academy-tooth-clear{border:0;background:transparent;color:#8b2d2d;cursor:pointer}.academy-tooth-quadrants{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;min-width:0}.academy-tooth-quadrant{min-width:0;max-width:100%;padding:10px;border:1px solid rgba(16,99,80,.12);border-radius:14px;background:rgba(245,251,249,.86);overflow:hidden}.academy-tooth-quadrant>header{display:flex;justify-content:space-between;gap:8px;margin-bottom:8px;color:#254c43;font-size:.78rem}.academy-tooth-scroll{min-width:0;max-width:100%;overflow:visible}.academy-tooth-row{display:grid;grid-template-columns:repeat(8,minmax(38px,1fr));gap:5px;min-width:0}.academy-tooth-choice{position:relative;min-width:0}.academy-tooth-button{display:grid;place-items:center;align-content:center;gap:1px;width:100%;min-width:0;min-height:58px;padding:5px 2px;border:1px solid #b8cec8;border-radius:10px;background:#fff;color:#173f36;cursor:pointer;transition:border-color .16s ease,background .16s ease,box-shadow .16s ease,transform .16s ease}.academy-tooth-button strong{font-size:1.05rem;line-height:1}.academy-tooth-button small{font-size:.58rem;line-height:1.2;white-space:nowrap;color:#647a75}.academy-tooth-button b{position:absolute;inset:3px 3px auto auto;display:none;font-size:.65rem}.academy-tooth-button:hover{border-color:#2d8b72;transform:translateY(-1px)}.academy-tooth-button:focus-visible{outline:3px solid rgba(18,135,103,.28);outline-offset:2px}.academy-tooth-button.is-selected{border-color:#107756;background:#e1f6ee;color:#075943;box-shadow:0 5px 14px rgba(16,119,86,.14)}.academy-tooth-button.is-selected b{display:block}.academy-tooth-hidden{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}.academy-tooth-overflow-note{display:none;margin:8px 0 0;color:#667b75;font-size:.76rem}.academy-tooth-selector .sc-tooth-selection-status{margin-top:12px}.academy-tooth-selector.has-error{border-color:#b42318}[dir=ltr] .academy-tooth-selector .academy-tooth-quadrant>header{direction:ltr}[dir=ltr] .academy-tooth-selector .academy-tooth-button b{inset:3px auto auto 3px}
@media(max-width:767px){.academy-tooth-quadrants{grid-template-columns:1fr}.academy-tooth-row{grid-template-columns:repeat(8,minmax(0,1fr))}.academy-tooth-button{min-height:56px}.academy-tooth-selector-heading{align-items:center}.academy-tooth-selector-heading p{font-size:.8rem}}
@media(max-width:340px){.academy-tooth-scroll{overflow-x:auto;overscroll-behavior-inline:contain;padding:3px 2px 8px;scrollbar-width:thin}.academy-tooth-row{grid-template-columns:repeat(8,40px);width:max-content}.academy-tooth-overflow-note{display:block}.academy-tooth-selector{padding:12px}}
@media(prefers-reduced-motion:reduce){.academy-tooth-button{transition:none}.academy-tooth-button:hover{transform:none}}
@media(min-width:768px){.academy-tooth-quadrants{position:relative;direction:ltr;grid-template-areas:"upper-patient-right upper-patient-left" "lower-patient-right lower-patient-left";column-gap:20px;row-gap:12px}.academy-tooth-quadrants::before{content:"";position:absolute;inset:4px auto 4px 50%;width:2px;transform:translateX(-1px);border-radius:2px;background:linear-gradient(180deg,transparent,rgba(16,99,80,.32) 12%,rgba(16,99,80,.32) 88%,transparent);pointer-events:none}.academy-tooth-quadrant.is-upper-right{grid-area:upper-patient-right}.academy-tooth-quadrant.is-upper-left{grid-area:upper-patient-left}.academy-tooth-quadrant.is-lower-right{grid-area:lower-patient-right}.academy-tooth-quadrant.is-lower-left{grid-area:lower-patient-left}.academy-tooth-quadrant>header{direction:rtl}.academy-tooth-quadrant.is-upper-right .academy-tooth-row,.academy-tooth-quadrant.is-lower-right .academy-tooth-row{direction:rtl}.academy-tooth-quadrant.is-upper-left .academy-tooth-row,.academy-tooth-quadrant.is-lower-left .academy-tooth-row{direction:ltr}.academy-tooth-button{direction:ltr}[dir=ltr] .academy-tooth-selector .academy-tooth-quadrant>header{direction:ltr}}

.academy-tooth-button.is-used-by-other-treatment:disabled{border-color:rgba(99,116,111,.22);background:rgba(236,241,239,.82);color:#82908c;cursor:not-allowed;opacity:.72;box-shadow:none;transform:none}.academy-tooth-button.is-used-by-other-treatment:disabled small{color:#8b9693}.academy-tooth-button.is-used-by-other-treatment:disabled:hover{border-color:rgba(99,116,111,.22);transform:none}
