/* Shared adult/child editor: whole looks and individual parts have distinct controls. */
.character-editor{--editor-ink:#225e47;--editor-line:#dbe5d8;color:var(--editor-ink);font-family:"Segoe UI",Tahoma,Arial,sans-serif}
.editor-layout{display:grid;grid-template-columns:200px minmax(0,1fr);grid-template-areas:"preview tabs" "preview content";column-gap:26px;align-items:start}.editor-preview{grid-area:preview}.editor-tabs{grid-area:tabs}.editor-detail-pane{grid-area:content}
.editor-preview{display:flex;flex-direction:column;align-items:center;gap:14px;padding:8px 0;text-align:center}
.editor-stage{width:100%;height:270px;display:flex;align-items:center;justify-content:center;background:radial-gradient(ellipse at 50% 80%,#e6b54c30,transparent 60%),#f8e9bd;border:1px solid #e1cea0;border-radius:80px 80px 24px 24px}
.editor-stage .editor-avatar{height:250px;width:200px;aspect-ratio:120/150}
.editor-preview-caption strong{font-size:18px;overflow-wrap:anywhere}
.character-editor .editor-preview-caption p{font-size:13px;line-height:1.5;color:#63745c;margin:7px 0 0}
.character-editor button{font-family:inherit;cursor:pointer;touch-action:manipulation}
.character-editor button:focus-visible{outline:3px solid #168693;outline-offset:3px}
.editor-controls{display:contents}
.character-editor .editor-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;background:#e7ecda;padding:5px;border-radius:15px;margin:0 0 18px}
.character-editor .editor-tabs button{min-width:0;min-height:44px;border:0;background:transparent;color:#52674b;font-size:14px;font-weight:600;border-radius:11px;padding:9px 8px;line-height:1.25;box-shadow:none}
.character-editor .editor-tabs button[aria-pressed=true]{background:#fffdf2;color:#245740;box-shadow:0 2px 5px #225e4714}
.editor-detail-pane{max-height:390px;overflow:auto;scrollbar-width:thin;padding:3px 4px 8px}
.character-editor .editor-section-note{font-size:14px;line-height:1.5;color:#586c50;margin:0 0 18px}
.editor-group{margin:0 0 22px}.editor-group:last-child{margin-bottom:0}
.character-editor .editor-group h3{font-size:15px;margin:0 0 12px;letter-spacing:0}
.editor-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}
.character-editor .editor-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;border:2px solid transparent;border-radius:15px;background:#f0f1e2;padding:12px 7px;box-shadow:none;min-height:76px;color:var(--editor-ink);font-size:13px;font-weight:600;line-height:1.35;text-align:center;transition:border-color .15s,background .15s}
.character-editor .editor-option:hover{border-color:#acc29c}
.character-editor .editor-option[aria-pressed=true]{border-color:#598448;background:#e3eecf}
.editor-option .traveler-sprite{width:76px;height:95px;aspect-ratio:120/150;flex:none}
.head-options .editor-option .traveler-sprite{width:86px;height:68px;aspect-ratio:120/82}
.outfit-options .editor-option .traveler-sprite{width:85px;height:85px;aspect-ratio:1}
.editor-option .option-check{position:absolute;right:6px;top:3px;font-size:16px;font-weight:800;color:#286d45}
.editor-option .editor-swatch{width:32px;height:32px;border-radius:50%;border:1px solid #00000020;box-shadow:inset 0 1px 1px #ffffff55;flex:none}
.character-editor .color-option{min-height:82px;font-size:12px;gap:8px;padding:12px 5px}
.preset-options .editor-option .traveler-sprite{width:95px;height:120px}
.preset-options .editor-option{justify-content:flex-start;min-height:174px}
.character-editor .editor-random{font-size:14px;color:var(--editor-ink);border:1px solid #cbd7be;background:#fffdf2;box-shadow:none;min-height:44px;border-radius:12px;padding:10px 14px;margin-top:2px}
.editor-hat-note{padding:14px;margin-bottom:20px;background:#fff0c9;border:1px solid #e8d6a5;border-radius:14px}
.character-editor .editor-hat-note p{margin:0 0 10px;font-size:13px;line-height:1.5;color:#665d3c}
.character-editor .editor-hat-note button{border:1px solid #dac28b;border-radius:10px;min-height:44px;background:#fffaf0;color:#5b5736;padding:8px 12px;box-shadow:none;font-size:13px}
.editor-footer{display:flex;align-items:center;gap:12px;flex-wrap:wrap;border-top:1px solid var(--editor-line);margin-top:20px;padding-top:16px}
.character-editor .editor-footer p{font-size:13px;line-height:1.5;margin:0;color:#586c50;flex:1 1 170px}
.editor-actions{display:flex;align-items:center;gap:8px;margin-left:auto}
.character-editor .editor-footer .primary{border:0;border-bottom:4px solid #075549;border-radius:12px;background:#0c756a;color:#fff;min-width:130px;min-height:48px;padding:12px 20px;font-size:16px;box-shadow:none}
.character-editor .editor-footer .primary:disabled{opacity:.5;cursor:default}
.character-editor .editor-cancel,.character-editor .editor-reset{background:transparent;border:1px solid var(--editor-line);border-radius:11px;min-height:44px;color:#52694a;box-shadow:none;font-size:13px;padding:10px 12px}
.character-editor .editor-reset{border-color:transparent;text-decoration:underline;text-underline-offset:3px}
.child-game .character-editor-panel{max-width:850px;padding:22px}
.character-editor-panel .game-panel-top{margin-bottom:18px}
.child-game .character-editor .editor-footer{position:sticky;bottom:0;background:#fffaf0;padding:15px 0 0;z-index:3}
.parent-character-summary{display:flex;align-items:center;gap:20px;margin:20px 0}.parent-character-summary .traveler-sprite{width:76px;height:95px;aspect-ratio:120/150}
.family-app .character-settings-card{max-width:900px}.family-app .character-settings-card .character-editor{margin-top:24px}
.editor-gender-options{display:flex;gap:8px}.character-editor .editor-gender-options button{flex:1;min-height:44px;border:1px solid #c9d8c1;border-radius:12px;background:#f3f5ea;color:#365e47;font-size:14px;padding:9px}.character-editor .editor-gender-options button[aria-pressed=true]{background:#dfeccd;border:2px solid #478259;padding:8px}
.character-editor .editor-choice-note{font-size:13px;line-height:1.5;margin:9px 0 17px;color:#62745a}
.vector-island .map-traveler-button{width:clamp(44px,10%,66px);padding:0;border:0;min-height:0;background:transparent!important;box-shadow:none;border-radius:12px;aspect-ratio:120/150}.map-traveler-button .traveler-sprite{aspect-ratio:120/150}.map-traveler-button:focus-visible{outline:3px solid #287eaf;outline-offset:3px}.map-traveler-button:after{content:'✎';position:absolute;bottom:0;right:-4px;display:grid;place-items:center;width:21px;height:21px;border-radius:50%;border:1px solid #dbe5d8;background:white;color:#225e47;font-size:13px}
@media(max-width:650px){
 .editor-layout{grid-template-columns:105px minmax(0,1fr);grid-template-areas:"preview tabs" "content content";gap:15px 12px}
 .editor-preview{flex-direction:column;gap:5px;padding:0;text-align:center;position:sticky;top:54px;z-index:2;background:#fffaf0;min-height:154px;box-shadow:0 0 0 12px #fffaf0}
 .editor-stage{height:112px;width:105px;flex:none;border-radius:38px 38px 16px 16px}
 .editor-stage .editor-avatar{height:108px;width:87px}.editor-preview-caption strong{display:block;font-size:13px;line-height:1.3;max-width:105px}
 .character-editor .editor-preview-caption p{display:none}
 .character-editor .editor-tabs{margin-bottom:0;align-self:start;position:sticky;top:54px;z-index:2;min-height:154px;box-shadow:0 0 0 12px #fffaf0}.character-editor .editor-tabs button{font-size:12px;min-height:56px;padding:9px 4px}
 .editor-detail-pane{max-height:none;min-height:0;overflow:visible;padding:3px}
 .editor-options{gap:6px}.character-editor .editor-option{font-size:12px;padding:10px 4px}
 .head-options .editor-option .traveler-sprite{width:72px;height:58px}
 .outfit-options .editor-option .traveler-sprite{width:74px;height:74px}
 .preset-options .editor-option .traveler-sprite{width:72px;height:91px}.preset-options .editor-option{min-height:145px}
 .character-editor .editor-section-note{font-size:13px;margin-bottom:15px}
 .character-editor .color-option{font-size:12px;min-height:82px}
 .editor-footer{gap:8px;margin-top:18px}.character-editor .editor-footer p{flex-basis:100%}
 .editor-actions{flex:1;justify-content:flex-end}.character-editor .editor-footer .primary{min-width:112px}
 .character-editor .editor-reset{font-size:12px;padding:8px 0}
 .child-game .character-editor-panel{inset:8px;width:calc(100% - 16px);padding:18px 15px;transform:none}
 .character-editor-panel .game-panel-top{padding-bottom:12px;margin-bottom:16px}.character-editor-panel .game-panel-top h2{font-size:24px}
 .child-game .character-editor .editor-tabs{position:sticky;top:54px;z-index:2}
}
@media(max-width:360px){.editor-layout{grid-template-columns:88px minmax(0,1fr);column-gap:9px}.editor-stage{width:88px;height:106px}.editor-stage .editor-avatar{height:102px;width:82px}.editor-preview-caption strong{font-size:12px;max-width:88px}.character-editor .editor-tabs button{font-size:11px}.head-options .editor-option .traveler-sprite{width:62px;height:52px}.outfit-options .editor-option .traveler-sprite{width:65px;height:65px}.preset-options .editor-option .traveler-sprite{width:64px;height:80px}.character-editor .editor-option{font-size:11px}.character-editor .editor-footer .primary{min-width:95px;padding:11px 14px}.character-editor .editor-cancel{padding:9px}.editor-actions{gap:5px}}
@media(max-height:650px) and (min-width:651px){.editor-stage{height:220px}.editor-stage .editor-avatar{height:210px;width:168px}.editor-detail-pane{max-height:260px}}
@media(prefers-reduced-motion:reduce){.character-editor .editor-option{transition:none}}
.character-editor .editor-exit-dialog{position:fixed;inset:0;margin:auto;box-sizing:border-box;width:min(390px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #d8dfc4;border-radius:26px;padding:27px 24px 18px;background:#fffaf0;color:#225e47;box-shadow:0 24px 100px #052f4266;text-align:center}.editor-exit-dialog::backdrop{background:#123d42b3;backdrop-filter:blur(5px)}.editor-exit-symbol{display:grid;place-items:center;width:52px;height:52px;margin:0 auto 15px;border-radius:18px;background:#f8e6ab;color:#9e6a1d;font-size:32px}.character-editor .editor-exit-dialog h2{font-size:25px;line-height:1.2;margin:0 0 12px;letter-spacing:-.4px}.character-editor .editor-exit-dialog p{font-size:15px;line-height:1.55;margin:0 0 22px;color:#596c58}.editor-exit-actions{display:flex;flex-direction:column;gap:10px}.character-editor .editor-exit-actions button{width:100%;min-height:48px;margin:0;padding:12px 14px;border:1px solid #cbdac3;border-radius:14px;background:#edf2e1;color:#285b43;box-shadow:none;font:600 15px/1.35 inherit;font-family:inherit;font-size:15px;line-height:1.35}.character-editor .editor-exit-actions .primary{background:#2b794d;border-color:#2b794d;border-bottom:4px solid #17482f;color:white;font-weight:700}.character-editor .editor-exit-actions .editor-discard{background:transparent;border-color:transparent;color:#617057;font-size:14px;font-weight:500}.character-editor .editor-exit-actions button:disabled{opacity:.5;cursor:wait}.character-editor .editor-exit-dialog .editor-save-status{font-size:14px;background:#edf2e1;border-radius:10px;padding:10px;margin-bottom:16px}

/* Keep item thumbnails and the first line of each caption on common baselines. */
.character-editor .editor-options .editor-option{min-width:0;justify-content:flex-start}
.character-editor .editor-option .traveler-sprite{max-width:100%}
.character-editor .editor-option>span:not(.traveler-sprite,.editor-swatch,.option-check){overflow-wrap:anywhere}
.child-game .character-editor .editor-options .editor-option{font-size:14px}
@media(max-width:650px){
 .character-editor .editor-tabs{grid-template-columns:1fr;min-height:0;gap:3px;padding:3px}
 .character-editor .editor-tabs button{min-height:44px;padding:4px}
 .child-game .character-editor .editor-options .editor-option{font-size:12px}
}

.child-game .character-editor .editor-section-note{font-size:14px}
