/* Khaemenes High · canonical photo-editor control refinements · 2026-11-06.
 * Grade 09-12 only. Keep photo preview, learner storage, frames and swatch
 * background ownership with each grade's existing gradeXX-look-chooser.js.
 */
html:root:root body #grade09LookPanel .grade09-look-controls{
 min-width:0;display:flex;flex-direction:column;align-items:stretch;gap:0;
}
html:root:root body #grade09LookPanel .grade09-look-controls h3{
 margin:16px 0 10px!important;
 font:400 19px/1.4 Cinzel,Georgia,serif!important;
 text-align:left!important;
}
html:root:root body #grade09LookPanel .grade09-look-controls h3:first-child{margin-top:0!important}
html:root:root body #grade09LookPanel .grade09-look-options{
 box-sizing:border-box;display:grid!important;
 grid-template-columns:repeat(auto-fill,minmax(47px,1fr))!important;
 gap:9px!important;align-items:stretch!important;
 width:100%;min-width:0;margin:0 0 11px!important;
}
html:root:root body #grade09LookPanel .grade09-look-options button{
 box-sizing:border-box!important;display:flex!important;align-items:center!important;
 justify-content:center!important;
 width:100%!important;min-width:0!important;
 height:48px!important;min-height:48px!important;max-height:none!important;
 margin:0!important;padding:5px!important;
 border:1px solid #b48b45!important;border-radius:7px!important;
 background:#243038!important;background-image:none!important;
 color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;
 font:400 25px/1.3 "Apple Color Emoji","Segoe UI Emoji",Nunito,Arial,sans-serif!important;
 text-decoration:none!important;text-transform:none!important;
 box-shadow:0 2px 5px rgba(15,31,37,.12)!important;
 transition:box-shadow .15s ease,transform .15s ease;
 cursor:pointer;
}
html:root:root body #grade09LookPanel .grade09-look-options button:is(:hover,:focus-visible){
 border-color:#dfc485!important;box-shadow:0 0 0 2px #f1dab3!important;
 transform:translateY(-1px);
}
html:root:root body #grade09LookPanel .grade09-look-options button[aria-pressed="true"]{
 outline:3px solid #fff8e9!important;outline-offset:-5px!important;
 border:2px solid #243038!important;
 box-shadow:0 0 0 3px #b48b45!important;
}
html:root:root body #grade09LookPanel .grade09-look-options.frame-choices{
 grid-template-columns:repeat(auto-fit,minmax(min(100%,105px),1fr))!important;
}
html:root:root body #grade09LookPanel .grade09-look-options.frame-choices button{
 width:100%!important;min-width:0!important;min-height:48px!important;
 height:auto!important;padding:9px 10px!important;
 font:400 16px/1.3 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
 overflow-wrap:anywhere!important;text-align:center!important;
}
html:root:root body #grade09LookPanel .grade09-look-options.colors{
 grid-template-columns:repeat(auto-fill,minmax(44px,1fr))!important;
}
html:root:root body #grade09LookPanel .grade09-look-options.colors button{
 width:100%!important;min-width:0!important;min-height:47px!important;height:47px!important;
 border:2px solid #243038!important;
}
html:root:root body #grade09LookPanel .grade09-look-options.colors button[data-color]{
 color:transparent!important;-webkit-text-fill-color:transparent!important;
 box-shadow:inset 0 0 0 1px rgba(255,255,255,.35)!important;
}
html:root:root body #grade09LookPanel .grade09-look-photo{
 display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;
 align-items:end!important;gap:10px!important;margin:9px 0 0!important;
}
html:root:root body #grade09LookPanel .grade09-look-photo label{
 grid-column:1/-1!important;margin:0!important;
 font:400 16px/1.5 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
}
html:root:root body #grade09LookPanel .grade09-look-photo input[type="file"]{
 box-sizing:border-box!important;max-width:100%!important;min-width:0!important;
 min-height:48px!important;padding:6px!important;
 border:1px solid #b48b45!important;border-radius:7px!important;
 background:#fff8e9!important;color:#243038!important;
 -webkit-text-fill-color:#243038!important;
 font:400 16px/1.5 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
}
html:root:root body #grade09LookPanel #grade09RemovePhoto{
 box-sizing:border-box!important;min-height:48px!important;
 padding:10px 14px!important;
 border:1px solid #b48b45!important;border-radius:7px!important;
 background:#243038!important;background-image:none!important;
 color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;
 font:400 16px/1.35 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
}
html:root:root body #grade09LookPanel #grade09RemovePhoto:is(:hover,:focus-visible){
 background:#36504a!important;color:#fff8e9!important;-webkit-text-fill-color:#fff8e9!important;
}
html:root:root body #grade09LookPanel #grade09RemovePhoto:disabled{
 opacity:.58;cursor:not-allowed;
}
html:root:root body #grade09LookPanel :is(button,input):focus-visible{
 outline:3px solid #b48b45!important;outline-offset:3px!important;
}
html:root:root body #grade09LookPanel #grade09LookStatus{
 min-height:24px;margin:10px 0!important;
 font:400 16px/1.5 "Brandon Grotesque",Nunito,Arial,sans-serif!important;
}
@media(max-width:660px){
 html:root:root body #grade09LookPanel .grade09-look-photo{
  grid-template-columns:minmax(0,1fr)!important;
 }
 html:root:root body #grade09LookPanel .grade09-look-photo label{grid-column:auto!important}
 html:root:root body #grade09LookPanel .grade09-look-options{
  grid-template-columns:repeat(auto-fill,minmax(44px,1fr))!important;gap:8px!important;
 }
 html:root:root body #grade09LookPanel .grade09-look-options.frame-choices{
  grid-template-columns:repeat(2,minmax(0,1fr))!important;
 }
}
@media(prefers-reduced-motion:reduce){
 html:root:root body #grade09LookPanel .grade09-look-options button{transition:none!important;transform:none!important}
}

/* LARGER PROFILE PHOTO PREVIEW */
html:root:root body #grade09LookPanel .grade09-look-preview{
 display:flex!important;
 flex-direction:column!important;
 align-items:center!important;
 justify-content:center!important;
 text-align:center!important;
}
html:root:root body #grade09LookPanel #grade09LookPreview{
 width:190px!important;
 height:190px!important;
 min-width:154px!important;
 min-height:154px!important;
 margin:8px auto 14px!important;
 font-size:58px!important;
}
html:root:root body #grade09LookPanel #grade09LookPreview img{
 width:100%!important;
 height:100%!important;
 object-fit:cover!important;
 display:block!important;
}
@media(max-width:660px){
 html:root:root body #grade09LookPanel #grade09LookPreview{
  width:170px!important;
  height:170px!important;
 }
}
