.new-player-guide-modal.character-appearance-modal { width: min(900px, calc(100vw - 24px)); max-width: 900px; max-height: calc(100dvh - 24px); overflow: auto; padding: 20px; }
.appearance-customizer { color: #eaf0ed; letter-spacing: 0; text-align: left; }
.appearance-customizer h2 { font-size: 22px; margin: 0 0 16px; }
.appearance-layout { display: grid; grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr); gap: 24px; }
.appearance-preview { min-width: 0; }
.appearance-preview-stage { width: 100%; aspect-ratio: 1; overflow: auto; background: #202e2b; border-bottom: 2px solid #7a9689; }
.appearance-preview-stage > canvas { display: block; width: 100%; height: 100%; max-width: none; }
.appearance-tools, .appearance-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.appearance-tools { margin-top: 12px; }
.appearance-customizer button, .appearance-customizer select { min-height: 38px; border: 1px solid #596662; border-radius: 4px; background: #283633; color: #eaf0ed; font: inherit; cursor: pointer; }
.appearance-customizer button:focus-visible { outline: 2px solid #dcc775; outline-offset: 2px; }
.appearance-customizer button:disabled { opacity: .5; cursor: default; }
.appearance-customizer .appearance-tool { display: grid; place-items: center; padding: 8px; width: 38px; flex: 0 0 38px; }
.appearance-tool svg { width: 20px; height: 20px; }
.appearance-customizer .appearance-reset { display: inline-flex; align-items: center; gap: 6px; padding: 8px; }
.appearance-reset svg { width: 18px; height: 18px; }
.character-gender-back { display: grid; place-items: center; width: 42px; height: 42px; padding: 8px; }
.character-gender-back svg { width: 20px; height: 20px; }
.appearance-retry { padding: 6px 12px; }
.appearance-choice > img { width: 72px; height: 72px; max-width: 100%; object-fit: contain; }
.appearance-outfit { display: flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 13px; }
.appearance-status { min-height: 20px; font-size: 13px; color: #c6b97e; margin: 8px 0; }
.appearance-options { min-width: 0; }
.appearance-categories { display: flex; flex-wrap: wrap; gap: 6px; padding-bottom: 12px; border-bottom: 1px solid #4c5956; }
.appearance-categories button { padding: 6px 10px; font-size: 13px; }
.appearance-categories [aria-selected="true"] { border-color: #d1b85e; color: #ecd486; background: #3b3c2a; }
.appearance-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; padding: 12px 0; align-content: start; max-height: 360px; overflow-y: auto; }
.appearance-choice { min-width: 0; padding: 6px; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; }
.appearance-choice > canvas { width: 72px; max-width: 100%; aspect-ratio: 1; }
.appearance-choice > span:last-child { font-size: 12px; line-height: 1.4; word-break: keep-all; overflow-wrap: anywhere; }
.appearance-customizer .appearance-choice[aria-pressed="true"] { border-color: #70b9a9; background: #304c44; }
.appearance-swatch { width: 28px; height: 28px; border: 1px solid #b6c5be; border-radius: 50%; margin: 8px; }
.appearance-footer { border-top: 1px solid #4c5956; padding-top: 14px; margin-top: 12px; }
.appearance-customizer .appearance-confirm { margin-left: auto; padding: 8px 18px; background: #dfc477; color: #192822; font-weight: 700; border-color: #dfc477; }
@media (max-width: 640px) {
  .new-player-guide-modal.character-appearance-modal { padding: 12px; }
  .appearance-layout { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .appearance-preview-stage { width: min(270px, 100%); margin: auto; }
  .appearance-tools { justify-content: center; }
  .appearance-choices { grid-template-columns: repeat(4, minmax(0, 1fr)); max-height: 220px; }
  .appearance-customizer h2 { font-size: 19px; }
}
.cosmetic-panel { display: grid; gap: 8px; padding: 12px 0; }
.cosmetic-panel[hidden] { display: none; }
.cosmetic-slot { display: grid; grid-template-columns: 40px 72px minmax(0, 1fr); align-items: center; gap: 10px; min-width: 0; }
.cosmetic-slot-picture { width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid #46514e; border-radius: 4px; background: #17221f; }
.cosmetic-slot-picture img { max-width: 36px; max-height: 36px; object-fit: contain; }
.cosmetic-slot select { min-width: 0; width: 100%; }
#inventory-skin-toggle { display: inline-flex; align-items: center; gap: 6px; }
#inventory-skin-toggle[hidden] { display: none; }
#inventory-skin-toggle svg { width: 18px; height: 18px; }
#inventory-skin-toggle[aria-expanded="true"] { border-color: #bdcb8b; }
