/* Editor controls use intrinsic, bounded sizes in every client. */
.wardrobe-workspace{height:auto!important;max-height:none!important;min-width:0;padding-bottom:12px!important}
.wardrobe-workspace .wardrobe-top{display:grid!important;grid-template-columns:1fr;gap:14px;margin-bottom:14px}
.wardrobe-workspace .wardrobe-steps{display:grid!important;grid-template-columns:1fr 1fr;gap:8px;float:none;width:100%;max-width:560px}
.wardrobe-steps>button{display:flex!important;align-items:center;justify-content:flex-start;gap:10px;min-width:0;min-height:60px;padding:10px 13px;border:1px solid #65616d55;border-radius:16px;color:#c2bdc9;background:linear-gradient(145deg,#252432,#191b25);text-align:left;font:600 14px/1.3 system-ui}
.wardrobe-steps>button>svg{width:23px;height:23px;flex:none}.wardrobe-steps>button>span{display:grid;gap:3px;white-space:normal}.wardrobe-steps small{font-size:10px;color:#a49eae;font-weight:400}
.wardrobe-steps>button[aria-pressed=true]{color:#f8e4ae;border-color:#d7b574;background:linear-gradient(130deg,#5b4b32,#302a24);box-shadow:inset 0 0 0 1px #e5c57c35,0 5px 18px #05050c25}
.wardrobe-steps>button[aria-pressed=true] small{color:#dfcfb4}
.wardrobe-workspace .wardrobe-layout{height:auto!important;min-height:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto!important;gap:14px!important;align-items:start}
.wardrobe-workspace #avatar-preview{height:clamp(300px,60svh,640px)!important;min-height:0!important;position:relative;overflow:hidden}
.wardrobe-workspace .wardrobe-editor{height:auto!important;min-height:0!important;max-height:none;padding:14px!important;overflow:visible;min-width:0;box-sizing:border-box;display:block!important}
.wardrobe-workspace #appearance-form{height:clamp(310px,58svh,610px)!important;max-height:none!important;min-height:0!important;padding:8px 4px 52px!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y}
.wardrobe-workspace .items-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));height:auto!important;max-height:none!important;overflow:visible!important;padding:2px 0 10px!important;gap:9px!important}
.wardrobe-workspace .item-card{height:auto!important;max-height:none!important;min-height:175px!important;flex-basis:auto!important}
.wardrobe-workspace #wardrobe-items{height:auto!important;flex:none!important;max-height:clamp(310px,60svh,620px);overflow-y:auto;overscroll-behavior:contain;touch-action:pan-y;padding:0 2px 14px;scroll-padding-bottom:18px;min-height:0}
.wardrobe-workspace .slot-tabs{display:flex!important;flex-wrap:nowrap!important;gap:6px;overflow-x:auto;overscroll-behavior-x:contain;max-width:100%;padding:4px 0 10px;scrollbar-width:thin;min-height:44px}
.wardrobe-workspace .slot-tabs button{flex:0 0 auto;min-height:42px;padding:8px 13px!important;font-size:13px!important;white-space:nowrap}
.wardrobe-workspace .wardrobe-inventory-heading{align-items:center;gap:8px}.wardrobe-inventory-heading small{font-size:10px!important}
.wardrobe-workspace .wardrobe-filter-panel{margin:8px 0!important}.wardrobe-filter-panel>summary{min-height:44px;padding:8px 12px!important;font-size:13px!important}.wardrobe-filter-panel>summary b{display:none}
.wardrobe-workspace .editor-save{position:static!important;bottom:auto!important;display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:7px!important;padding:8px!important;margin-top:12px!important;max-height:none!important;min-height:0;box-sizing:border-box;z-index:auto;backdrop-filter:none}
.wardrobe-workspace .editor-save>.button{grid-area:auto!important;min-height:44px!important;height:44px;padding:8px 12px!important;min-width:0!important;font-size:12px!important;white-space:nowrap}
.wardrobe-workspace .editor-save [hidden]{display:none!important}.wardrobe-workspace .editor-save>.text-button{grid-column:1/-1!important;grid-row:auto!important;min-height:28px!important;padding:3px!important;margin:0!important;font-size:11px!important}
.wardrobe-workspace .palette{display:flex!important;flex-wrap:wrap;gap:8px!important;justify-content:flex-start;align-content:flex-start;padding:0!important;min-width:0}
.wardrobe-workspace .palette>legend{float:none;width:100%;margin:0 0 10px!important}
.wardrobe-workspace .palette>label{position:relative!important;display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;min-height:44px!important;max-height:44px!important;padding:0!important;margin:0!important;border:0!important;background:none!important;border-radius:50%!important;box-sizing:border-box}
.wardrobe-workspace .palette input{position:absolute!important;inset:0;opacity:0!important;width:44px!important;height:44px!important;margin:0!important;cursor:pointer}
.wardrobe-workspace .palette label>span{display:block!important;position:relative;width:36px!important;height:36px!important;flex:0 0 36px!important;aspect-ratio:1;border-radius:50%!important;box-sizing:border-box;background:var(--swatch)!important;border:2px solid #ffffff35!important;pointer-events:none}
.wardrobe-workspace .palette input:checked+span{border:3px solid #ebcb86!important;outline:2px solid #b48b4b;outline-offset:2px;box-shadow:0 0 12px #d9ad5433!important}
.wardrobe-workspace .palette input:checked+span:after{content:'✓';position:absolute;right:-4px;bottom:-3px;width:17px;height:17px;display:grid;place-items:center;background:#ead196;color:#221b13;border:1px solid #221b13;border-radius:50%;font:bold 12px/1 system-ui}
.wardrobe-workspace .palette input:focus-visible+span{outline:3px solid #fff0bb;outline-offset:3px}
.pet-colors button{flex:0 0 44px!important;width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;border-radius:50%!important;aspect-ratio:1;box-sizing:border-box}
.avatar-camera-controls{width:min(312px,calc(100% - 24px))!important;max-width:312px!important;display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:6px!important;padding:5px!important;box-sizing:border-box}
.avatar-camera-controls button{min-width:0!important;width:auto!important;max-width:none!important;min-height:44px!important;height:44px!important;padding:5px 6px!important;display:flex!important;align-items:center;justify-content:center;gap:6px;font-size:12px!important;line-height:1!important;box-sizing:border-box}
.avatar-camera-controls svg{width:16px!important;height:16px!important;flex:0 0 16px!important}.avatar-camera-controls .camera-label-full{display:none!important}.avatar-camera-controls .camera-label-short{display:inline!important;white-space:nowrap}
.avatar-camera-controls button[aria-pressed=true]{border-color:#ebcb86!important;color:#fff0c6!important;background:linear-gradient(130deg,#74603a,#4e422c)!important;box-shadow:inset 0 0 0 1px #ebcb8644}
.hero-portrait{position:relative;overflow:hidden;isolation:isolate}.hero-portrait-image{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:50% 36%!important;max-width:none!important}
.identity-photo,.site-rating-photo{flex:none!important;aspect-ratio:1!important}.identity-photo img,.site-rating-photo img{position:absolute;inset:0;width:100%!important;height:100%!important;object-fit:cover;max-width:none}
.pet-stat-strokes{background:linear-gradient(135deg,#8c536b25,#292335)!important;border-color:#b1748b55!important}.pet-stat-strokes .pet-stat-icon{color:#efa6c1}
.pet-guest-v37 .pet-public-bond{display:flex!important;gap:7px;align-items:center;margin:8px 0 0;padding:7px 9px;border:1px solid #d2b47725;border-radius:11px;background:#d2b47709;font-size:12px;color:#dfc694}.pet-guest-v37 .pet-public-bond>svg{width:16px;height:16px}.pet-guest-v37 .pet-public-bond>span>b{display:none}.pet-guest-v37 .pet-public-bond>span{display:block!important}.pet-guest-v37 .pet-public-bond>span>span{display:block!important;font-size:12px!important;line-height:1.4}
.problem-entry{display:flex;justify-content:center;margin:16px 0 8px}.problem-entry>button{display:flex;gap:8px;align-items:center;min-height:44px;padding:9px 16px;border:1px solid #bda16655;border-radius:13px;color:#dfc592;background:linear-gradient(130deg,#332e24,#20212d);font:500 13px system-ui;cursor:pointer}
.problem-dialog,.fate-dialog{box-sizing:border-box;width:min(94vw,480px);max-height:88dvh;overflow:auto;border:1px solid #bca16a66;border-radius:23px;padding:23px;background:linear-gradient(150deg,#2b2733,#151823);color:#e9e4e1;box-shadow:0 28px 90px #0009}
.problem-dialog::backdrop,.fate-dialog::backdrop{background:#070910b8;backdrop-filter:blur(4px)}.problem-dialog form{display:grid;gap:10px}.problem-dialog h2{margin:0 0 5px;font-size:24px}.problem-dialog label{display:grid;gap:6px;font-size:13px}.problem-dialog textarea,.problem-dialog select{box-sizing:border-box;width:100%;min-width:0;padding:11px;border:1px solid #6b6275;border-radius:11px;background:#151824;color:#f0ece6;font:14px/1.5 system-ui}.problem-dialog textarea{min-height:100px;resize:vertical}.problem-dialog small{font-size:11px;line-height:1.6;color:#b6afbf}.problem-dialog .button-row{display:flex;gap:8px}.problem-dialog .button{min-height:44px;font-size:13px;flex:1}.problem-file{padding:10px;border:1px dashed #a48b6655;border-radius:12px}.problem-file input{max-width:100%;font-size:12px}.problem-error{font-size:12px;color:#f3a9b2;min-height:18px}
.problem-list{display:grid;gap:14px}.problem-report{padding:20px}.problem-report header{display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:space-between}.problem-report p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.problem-report small{overflow-wrap:anywhere;color:#ada7b6}.problem-report select{min-height:44px;max-width:100%;background:#20202b;color:#e9dcc1;border:1px solid #baa06466;border-radius:10px;padding:8px}.problem-report img{max-width:100%;max-height:500px;object-fit:contain;border-radius:12px}.problem-report[data-status=fixed]{border-color:#70b59460}.problem-report[data-status=working]{border-color:#d2b46a80}
.fate-dialog{text-align:center;padding:30px}.fate-seal{width:88px;height:88px;display:grid;place-items:center;margin:5px auto 18px;border:2px solid #e0bd6d;border-radius:24px;background:radial-gradient(circle,#ae854538,#191a24);box-shadow:0 0 45px #dfbb682b;font:600 42px Georgia;color:#f8dea4;transform:rotate(-8deg)}.fate-dialog h2{font-size:28px;color:#f0d398}.fate-dialog p{color:#c6bfcf;font-size:14px;line-height:1.7}.fate-dialog .button{width:100%;min-height:44px}
@media(max-width:700px){.wardrobe-workspace .wardrobe-layout,.wardrobe-workspace[data-wardrobe-step=appearance] .wardrobe-layout{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-template-rows:auto auto!important;gap:12px!important}.wardrobe-workspace #avatar-preview{height:clamp(260px,43svh,420px)!important}.wardrobe-workspace .editor-save{grid-template-columns:auto minmax(0,1fr)!important}.wardrobe-workspace .editor-save [data-feature=remove-current-item]{grid-column:2!important;grid-row:2!important;min-height:36px!important;height:36px!important;font-size:11px!important}.wardrobe-workspace .editor-save>.text-button{grid-column:1!important;grid-row:2!important;font-size:10px!important;white-space:normal}.wardrobe-workspace .wardrobe-top h1{font-size:30px}.wardrobe-workspace .wardrobe-steps{max-width:none}.wardrobe-steps>button{padding:9px 10px;gap:8px;font-size:13px}.wardrobe-steps small{font-size:9px}.wardrobe-workspace .items-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.wardrobe-workspace #wardrobe-items{max-height:54svh;min-height:270px}.wardrobe-workspace #appearance-form{height:48svh!important;min-height:300px!important}}
@media(orientation:landscape) and (max-height:600px) and (min-width:600px){.wardrobe-workspace .wardrobe-layout,.wardrobe-workspace[data-wardrobe-step=appearance] .wardrobe-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important;grid-template-rows:auto!important}.wardrobe-workspace #avatar-preview{height:340px!important}.wardrobe-workspace #appearance-form{height:340px!important}.wardrobe-workspace #wardrobe-items{max-height:300px}}
@media(prefers-reduced-motion:reduce){.fate-seal{transform:none}.wardrobe-workspace *{scroll-behavior:auto!important}}
