/* Character Customize: avatar on the left, category menus and a Wear/Remove item grid on the right. */
.cc-page{max-width:1150px}
.cc-top{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 20px;margin:4px 0 16px}
.cc-top h1{margin:0;font-size:30px;font-weight:600}
.cc-shop{display:flex;align-items:center;gap:12px;margin:0;font-size:14px;color:#50596a}
.cc-get{display:inline-block;padding:7px 16px;border-radius:4px;background:#00a2ff;color:#fff;font-weight:700;font-size:14px;text-decoration:none;border:0;cursor:pointer}
.cc-get:hover{background:#0089d9}
.cc-status{padding:14px;background:#fff;border:1px solid #d5dbe4;border-radius:6px}
.cc-feedback,.cc-tryon{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin:0 0 14px;padding:10px 14px;border-radius:6px;background:#fff6dd;border:1px solid #efd58a;color:#5b4a13;font-size:14px}
.cc-tryon{background:#e6f4ff;border-color:#9fd2fb;color:#123c5c}
.cc-feedback[hidden],.cc-tryon[hidden]{display:none}
.cc-feedback button{padding:5px 12px;border-radius:4px;border:1px solid #c9b163;background:#fff;cursor:pointer;font-weight:600}
.cc-layout{display:grid;grid-template-columns:320px minmax(0,1fr);gap:18px;align-items:start}
.cc-layout[hidden]{display:none}
.cc-avatar,.cc-wardrobe{background:#fff;border:1px solid #d5dbe4;border-radius:6px;padding:14px 16px}
.cc-avatar h2{margin:0 0 10px;font-size:20px;font-weight:600}
.cc-canvas-wrap{position:relative;border-radius:6px;background:linear-gradient(#f3f6fa,#dfe5ee);overflow:hidden}
.cc-canvas-wrap canvas{display:block;width:100%;aspect-ratio:1/1.1;cursor:grab}
.cc-view-tools{position:absolute;right:8px;bottom:8px;display:flex;gap:6px}
.cc-view-tools button{min-width:36px;height:32px;padding:0 10px;border-radius:4px;border:1px solid #c3ccd8;background:#fff;font-weight:700;cursor:pointer;color:#222}
.cc-view-tools button[aria-pressed=true]{background:#232527;color:#fff;border-color:#232527}
.cc-slider{display:grid;gap:6px;margin:14px 0 4px;font-size:14px;font-weight:600}
.cc-slider span{display:flex;justify-content:space-between}
.cc-slider input{width:100%;accent-color:#00a2ff}
.cc-fit{display:grid;gap:8px;margin:12px 0 0;padding:10px 12px;border:1px solid #d5dbe4;border-radius:6px}
.cc-fit[hidden]{display:none}
.cc-fit legend{padding:0 4px;font-weight:700;font-size:14px}
.cc-fit label{display:grid;grid-template-columns:70px 44px 1fr;align-items:center;gap:6px;font-size:13px}
.cc-fit input{width:100%;accent-color:#00a2ff}
.cc-fit-actions{display:flex;gap:8px;justify-content:flex-end}
.cc-fit-actions button{padding:5px 12px;border-radius:4px;border:1px solid #c3ccd8;background:#fff;cursor:pointer;font-weight:600}
.cc-save{margin:12px 0 0;font-size:13px;color:#50596a}
.cc-redraw{margin:8px 0 0;font-size:13px;color:#50596a}
.cc-redraw button{padding:0;border:0;background:none;color:#0074bd;text-decoration:underline;cursor:pointer;font:inherit}
.cc-menus{display:flex;flex-wrap:wrap;gap:2px;margin:-14px -16px 0;padding:0 8px;border-bottom:1px solid #d5dbe4;background:#f2f4f7;border-radius:6px 6px 0 0}
.cc-menu{position:relative}
.cc-menu-button{padding:12px 12px 10px;border:0;border-bottom:3px solid transparent;background:none;font-size:15px;font-weight:600;color:#39414d;cursor:pointer}
.cc-menu.is-open .cc-menu-button{border-bottom-color:#00a2ff;color:#111}
.cc-submenu{position:absolute;left:0;top:100%;z-index:20;display:none;min-width:170px;padding:6px 0;background:#fff;border:1px solid #d5dbe4;border-radius:4px;box-shadow:0 6px 18px #0002}
.cc-menu.is-dropped .cc-submenu{display:grid}
@media(hover:hover){.cc-menu:hover .cc-submenu{display:grid}}
.cc-submenu button{padding:9px 16px;border:0;background:none;text-align:left;font-size:14px;cursor:pointer;color:#222}
.cc-submenu button:hover,.cc-submenu button.is-current{background:#e9f5ff;color:#0074bd}
.cc-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px;margin:14px 0 12px}
.cc-crumb{margin:0;font-size:18px;font-weight:600}
.cc-bar input{width:220px;max-width:100%;padding:7px 10px;border-radius:4px;border:1px solid #c3ccd8;font-size:14px}
.cc-bar input[hidden]{display:none}
.cc-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(128px,1fr));gap:12px}
.cc-card{position:relative;display:flex;flex-direction:column;gap:6px;padding:8px;border:1px solid #dfe4eb;border-radius:6px;background:#fff;min-width:0}
.cc-card.is-worn{border-color:#00a2ff;box-shadow:0 0 0 1px #00a2ff}
.cc-thumb{display:grid;place-items:center;aspect-ratio:1/1;border-radius:4px;background:#eef1f5;overflow:hidden}
.cc-thumb img,.cc-thumb canvas{width:100%;height:100%;object-fit:contain;display:block}
.cc-emoji{font-size:44px}
.cc-name{font-size:13px;font-weight:600;color:#1c2330;overflow:hidden;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;line-height:1.25;min-height:2.5em;text-decoration:none}
a.cc-name:hover{text-decoration:underline}
.cc-tag{align-self:flex-start;padding:1px 7px;border-radius:9px;background:#e7ebf1;color:#4b5566;font-size:11px;font-weight:700}
.cc-actions{display:flex;flex-wrap:wrap;gap:6px;margin-top:auto}
.cc-actions button,.cc-wearing{flex:1;padding:6px 4px;border-radius:4px;font-size:13px;font-weight:700;cursor:pointer;text-align:center}
.cc-wear{border:1px solid #0074bd;background:#00a2ff;color:#fff}
.cc-wear:hover{background:#01a24c}
.cc-remove{border:1px solid #c3ccd8;background:#fff;color:#39414d}
.cc-remove:hover{background:#f1f3f6}
.cc-fit-button{flex:0 0 auto!important;padding:6px 8px!important;border:1px solid #c3ccd8;background:#f6f8fa;color:#39414d}
.cc-wearing{border:1px solid #cfe9da;background:#eefaf3;color:#137a44;cursor:default}
.cc-check{position:absolute;top:6px;right:6px;display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#00a2ff;color:#fff;font-size:13px;font-weight:700}
.cc-empty{display:grid;justify-items:center;gap:10px;padding:40px 16px;text-align:center;color:#50596a}
.cc-empty h3{margin:0;color:#1c2330}
.cc-empty p{margin:0}
.cc-pager{display:flex;align-items:center;justify-content:center;gap:12px;margin-top:14px;font-size:14px}
.cc-pager[hidden]{display:none}
.cc-pager button{width:34px;height:32px;border-radius:4px;border:1px solid #c3ccd8;background:#fff;font-size:18px;cursor:pointer}
.cc-pager button:disabled{opacity:.4;cursor:default}
.cc-hint{margin:0 0 10px;font-size:13px;color:#50596a}
.cc-parts{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:12px}
.cc-parts button{display:flex;align-items:center;gap:6px;padding:6px 10px;border-radius:4px;border:1px solid #c3ccd8;background:#fff;cursor:pointer;font-size:13px;font-weight:600}
.cc-parts button.is-current{border-color:#00a2ff;box-shadow:0 0 0 1px #00a2ff;background:#e9f5ff}
.cc-part-swatch{width:14px;height:14px;border-radius:3px;border:1px solid #0003}
.cc-palette{display:grid;grid-template-columns:repeat(auto-fill,minmax(34px,1fr));gap:6px;max-width:460px}
.cc-swatch{aspect-ratio:1/1;border-radius:4px;border:1px solid #0002;cursor:pointer}
.cc-swatch.is-current{outline:3px solid #00a2ff;outline-offset:1px}
.cc-custom{display:flex;align-items:center;gap:8px;margin-top:12px;font-size:13px;font-weight:600}
.cc-scale p{margin:0 0 12px;color:#50596a}
.cc-scale .cc-remove{padding:7px 14px;border-radius:4px;cursor:pointer;font-weight:700}
.cc-create{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}
.cc-create input{flex:1;min-width:150px;padding:7px 10px;border-radius:4px;border:1px solid #c3ccd8}
.cc-create .cc-wear{padding:7px 14px;border-radius:4px;font-weight:700;cursor:pointer}
.cc-character .cc-actions{flex-wrap:wrap}
.cc-character .cc-actions button{flex:1 1 45%}
html[data-theme=dark] .cc-avatar,html[data-theme=dark] .cc-wardrobe,html[data-theme=dark] .cc-status,html[data-theme=dark] .cc-card{background:#1d2733;border-color:#3a4656;color:#e7edf5}
html[data-theme=dark] .cc-menus{background:#18212b;border-color:#3a4656}
html[data-theme=dark] .cc-menu-button{color:#c9d3df}
html[data-theme=dark] .cc-menu.is-open .cc-menu-button{color:#fff}
html[data-theme=dark] .cc-submenu{background:#1d2733;border-color:#3a4656}
html[data-theme=dark] .cc-submenu button{color:#e7edf5}
html[data-theme=dark] .cc-submenu button:hover,html[data-theme=dark] .cc-submenu button.is-current{background:#23374b;color:#7db1ff}
html[data-theme=dark] .cc-thumb{background:#27313d}
html[data-theme=dark] .cc-name,html[data-theme=dark] .cc-empty h3{color:#e7edf5}
html[data-theme=dark] .cc-shop,html[data-theme=dark] .cc-save,html[data-theme=dark] .cc-redraw,html[data-theme=dark] .cc-hint,html[data-theme=dark] .cc-empty,html[data-theme=dark] .cc-scale p{color:#b0bccb}
html[data-theme=dark] .cc-redraw button{color:#7db1ff}
html[data-theme=dark] .cc-remove,html[data-theme=dark] .cc-fit-button,html[data-theme=dark] .cc-parts button,html[data-theme=dark] .cc-pager button,html[data-theme=dark] .cc-fit-actions button,html[data-theme=dark] .cc-bar input,html[data-theme=dark] .cc-create input{background:#27313d;border-color:#46536a;color:#e7edf5}
html[data-theme=dark] .cc-canvas-wrap{background:linear-gradient(#2a3441,#1b232d)}
html[data-theme=dark] .cc-tag{background:#2f3a48;color:#c9d3df}
html[data-theme=dark] .cc-fit{border-color:#3a4656}
@media(max-width:820px){.cc-layout{grid-template-columns:1fr}.cc-canvas-wrap canvas{aspect-ratio:1/.85}}
@media(max-width:480px){.cc-top h1{font-size:24px}.cc-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.cc-menu-button{padding:10px 8px 8px;font-size:14px}.cc-bar input{width:100%}.cc-avatar,.cc-wardrobe{padding:12px}.cc-menus{margin:-12px -12px 0}}

.cc-portrait-control{display:grid;grid-template-columns:90px 1fr 42px;gap:10px;align-items:center;margin:16px 0}.cc-portrait-control input{min-width:0;width:100%}

.cc-canvas-wrap canvas[data-headshot=true]{aspect-ratio:4/3}
.cc-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:10px}
.cc-preview-heading h2{margin:0}
#classic-preview{padding:5px 8px;border:1px solid #c3ccd8;border-radius:3px;background:#fff;color:#39414d;font:inherit;font-size:12px;cursor:pointer}
#classic-preview[aria-pressed=true]{border-color:#0074bd;color:#0065a6;background:#edf7ff}
.cc-classic .cc-avatar{border:0;border-radius:0;background:transparent;padding:0 12px 14px}
.cc-classic .cc-avatar h2{font-size:24px;font-weight:400}
.cc-classic .cc-canvas-wrap{border-radius:0;background:#fff}
.cc-classic .cc-canvas-wrap canvas{aspect-ratio:1/1.1}
.cc-classic .cc-view-tools{position:static;justify-content:flex-end;padding:6px}
.cc-classic-colors{position:relative;margin-top:24px}
.cc-classic-colors[hidden]{display:none}
.cc-classic-colors h2{margin-bottom:10px}
.cc-color-body{display:grid;grid-template-columns:40px 54px 54px 40px;grid-template-rows:48px 100px 100px;gap:8px 4px;width:200px;margin:16px auto 0}
.cc-color-part{border:1px solid #0002;border-radius:0;cursor:pointer;min-width:0;min-height:0;padding:0}
.cc-color-part:hover,.cc-color-part:focus-visible{outline:3px solid #00a2ff;outline-offset:2px}
.cc-color-head{grid-column:2/4;grid-row:1;width:58px;justify-self:center}
.cc-color-torso{grid-column:2/4;grid-row:2}
.cc-color-leftArm{grid-column:4;grid-row:2}
.cc-color-rightArm{grid-column:1;grid-row:2}
.cc-color-leftLeg{grid-column:3;grid-row:3}
.cc-color-rightLeg{grid-column:2;grid-row:3}
.cc-color-picker{margin-top:16px;padding:12px;border:1px solid #9e9e9e;background:#fff}
.cc-color-picker .cc-palette{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}
.cc-color-close{display:block;margin:0 0 10px auto;border:0;background:none;color:#0074bd;text-decoration:underline;cursor:pointer}
html[data-theme=dark] #classic-preview,html[data-theme=dark] .cc-color-picker{background:#1d2733;border-color:#46536a;color:#e7edf5}
html[data-theme=dark] .cc-classic .cc-avatar{background:transparent}
html[data-theme=dark] .cc-classic .cc-canvas-wrap{background:#222b36}
html[data-theme=dark] .cc-color-close{color:#7db1ff}
