/* Personal appearance controls share the setup palette and roster modal tone. */
#appearance-entry[hidden],.appearance-overlay[hidden]{display:none!important}
#appearance-entry{margin-top:12px}
#customize-player{display:flex;align-items:center;gap:12px;width:100%;min-height:64px;padding:11px 12px;text-align:left;border:1px solid #8ca29a55;border-radius:4px;background:#112d35ce;color:#edf1dc;transition:background .18s,border-color .18s}
#customize-player:hover{background:#1a3940;border-color:#b9ce96}
#customize-player:focus-visible{outline:2px solid #dbf77b;outline-offset:3px}
.appearance-entry-copy{display:grid;gap:5px;flex:1;min-width:0}
.appearance-entry-copy small{font-size:8px;text-transform:uppercase;letter-spacing:.12em;color:#afc3bf}
.appearance-entry-copy strong{font-size:13px;font-weight:650;white-space:nowrap}
.appearance-entry-colors{display:flex;gap:4px}
.appearance-entry-colors i{width:14px;height:14px;border:1px solid #e5f0e936;border-radius:50%}
.appearance-entry-action{font-size:9px;color:#d9efac;white-space:nowrap}
.appearance-overlay{position:absolute;inset:0;z-index:65;display:grid;place-items:center;padding:18px;background:#071914b8;backdrop-filter:blur(8px)}
.appearance-dialog{display:flex;flex-direction:column;width:min(724px,100%);max-height:100%;min-height:0;overflow:hidden;padding:26px;border:1px solid #ffffffb3;border-radius:20px;background:#f0f0e6;color:#193d30;box-shadow:0 25px 100px #071d2380;color-scheme:light}
.appearance-dialog button{color:inherit;-webkit-tap-highlight-color:transparent}
.appearance-dialog button:focus-visible{outline:3px solid #3b795d;outline-offset:3px}
.appearance-header{display:flex;flex:none;align-items:center;justify-content:space-between;gap:14px;margin-bottom:22px}
.appearance-kicker{margin:0 0 7px;color:#63806b;font-size:9px;font-weight:700;letter-spacing:.18em}
.appearance-dialog h2{margin:0;color:#193d30;font-size:30px;line-height:1.12;letter-spacing:-.04em;font-weight:700}
#appearance-close{flex:none;width:40px;height:40px;border:1px solid #214a3026;border-radius:50%;background:transparent;font-size:26px;line-height:1}
#appearance-close:hover{background:#dfe5d9}
.appearance-body{display:grid;grid-template-columns:minmax(180px,.88fr) minmax(0,1fr);gap:25px;min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#b4c3b0 transparent;padding:4px}
.appearance-preview{display:flex;flex-direction:column;align-items:center;justify-content:center;align-self:start;margin:0;min-width:0;border:1px solid #31553d12;border-radius:12px;background:radial-gradient(ellipse at 50% 30%,#f6f7ec 0,#e5eadc 90%);overflow:hidden}
.appearance-athlete{display:block;width:100%;height:306px;flex:none}
.appearance-skin{fill:var(--appearance-skin,#e4b995)}
.appearance-shirt{fill:var(--appearance-shirt,#f3f0dc)}
.appearance-pants{fill:var(--appearance-pants,#214b3e)}
.appearance-shoes{fill:var(--appearance-shoes,#f3f0dc)}
.appearance-preview figcaption{display:grid;gap:7px;padding:0 10px 20px;text-align:center}
.appearance-preview-label{font-size:7px;font-weight:700;letter-spacing:.17em;color:#69816a}
#appearance-description{font-size:11px;line-height:1.5;color:#5a735e}
.appearance-options{display:flex;flex-direction:column;justify-content:space-between;gap:20px;min-width:0;padding:5px 0}
.appearance-group{margin:0;padding:0;border:0;min-width:0}
.appearance-group legend{display:flex;align-items:center;justify-content:space-between;width:100%;padding:0;margin:0 0 10px;font-size:12px;font-weight:700;letter-spacing:-.01em}
.appearance-group legend span{color:#6f806d;font-size:10px;font-weight:400}
.appearance-swatches{display:grid;grid-template-columns:repeat(6,minmax(40px,1fr));gap:5px}
.appearance-swatches button{display:flex;align-items:center;justify-content:center;width:100%;min-width:40px;height:44px;padding:5px;border:1px solid transparent;border-radius:7px;background:transparent;transition:background .15s,border-color .15s}
.appearance-swatches button:hover{background:#dfe5d9}
.appearance-swatches button[aria-pressed=true]{border-color:#52755a;background:#e0e7d9}
.appearance-swatch{display:grid;place-items:center;width:28px;height:28px;flex:none;border-radius:50%;background:var(--swatch);box-shadow:inset 0 0 0 1px #193d3026}
.appearance-swatch svg{width:17px;height:17px;opacity:0;fill:none;stroke:#fff;stroke-width:2.5;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 1px #17352e99)}
[aria-pressed=true] .appearance-swatch svg{opacity:1}
[data-appearance-value=ivory] .appearance-swatch svg,[data-appearance-value=light] .appearance-swatch svg{stroke:#193d30;filter:none}
.appearance-group-skin .appearance-swatches{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.appearance-group-skin button{gap:7px;height:47px;padding:7px}
.appearance-group-skin .appearance-swatch{width:25px;height:25px}
.appearance-tone-label{font-size:10px}
.appearance-footer{display:flex;flex:none;align-items:center;justify-content:space-between;gap:16px;padding-top:18px;margin-top:20px;border-top:1px solid #31553d20}
.appearance-footer p{margin:0;color:#6b806a;font-size:11px}
#appearance-apply{display:flex;align-items:center;justify-content:space-between;gap:30px;min-width:176px;min-height:44px;padding:12px 16px;border:1px solid #254e3d;border-radius:7px;background:#254e3d;color:#f1f4e7;font-size:12px;font-weight:650}
#appearance-apply:hover{background:#33664a}
#appearance-apply span{font-size:18px;line-height:1}
@media(max-width:600px){
  .appearance-overlay{padding:12px}
  .appearance-dialog{padding:18px;border-radius:16px}
  .appearance-header{margin-bottom:14px;gap:8px}
  .appearance-dialog h2{font-size:25px}
  .appearance-kicker{font-size:7px;letter-spacing:.14em}
  .appearance-body{grid-template-columns:1fr;gap:17px;padding:4px}
  .appearance-preview{flex-direction:row;justify-content:center;min-height:154px}
  .appearance-athlete{width:128px;height:156px}
  .appearance-preview figcaption{gap:8px;max-width:155px;text-align:left;padding:0 12px 0 0}
  .appearance-preview-label{font-size:7px;letter-spacing:.08em;line-height:1.5}
  #appearance-description{font-size:10px}
  .appearance-options{gap:14px;padding:0}
  .appearance-group legend{margin-bottom:6px;font-size:12px}
  .appearance-swatches{gap:4px}
  .appearance-swatches button,.appearance-group-skin button{height:40px}
  .appearance-group-skin button{gap:7px}
  .appearance-group-skin .appearance-swatch{width:24px;height:24px}
  .appearance-footer{margin-top:15px;padding-top:13px;gap:10px}
  .appearance-footer p{font-size:10px}
  #appearance-apply{min-width:154px;min-height:44px}
}
@media(max-width:360px){
  .appearance-dialog{padding:14px}
  .appearance-dialog h2{font-size:22px}
  .appearance-body{padding:3px}
  .appearance-preview{min-height:135px}
  .appearance-athlete{height:140px;width:110px}
  .appearance-preview figcaption{max-width:135px}
  .appearance-group-skin button{gap:5px;padding:4px}
  .appearance-tone-label{font-size:9px}
  .appearance-swatches{gap:3px}
  .appearance-entry-colors{gap:3px}
  .appearance-entry-colors i{width:12px;height:12px}
  #customize-player{gap:8px}
}
@media(max-height:480px) and (min-width:601px){
  .appearance-overlay{padding:10px}
  .appearance-dialog{padding:16px 20px}
  .appearance-header{margin-bottom:12px}
  .appearance-kicker{font-size:7px;margin-bottom:5px}
  .appearance-dialog h2{font-size:25px}
  .appearance-body{grid-template-columns:minmax(140px,.7fr) minmax(0,1fr);gap:24px}
  .appearance-athlete{height:200px}
  .appearance-preview figcaption{padding-bottom:12px}
  .appearance-preview-label{display:none}
  .appearance-options{gap:14px}
  .appearance-group legend{margin-bottom:6px}
  .appearance-swatches button,.appearance-group-skin button{height:40px}
  .appearance-footer{margin-top:12px;padding-top:12px}
}
@media(prefers-reduced-motion:reduce){#customize-player,.appearance-swatches button{transition:none}}
