.fitting-room { margin-block: 28px 48px; }
.room-heading { margin-bottom: 23px; }
.room-navigation { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.room-switcher { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid #41545c; border-radius: 24px; background: #16262e; }
.room-switcher a { display: grid; place-items: center; min-height: 36px; padding: 0 15px; border-radius: 18px; color: #d4e4e2; font-size: .88rem; font-weight: 700; text-decoration: none; }
.room-switcher a:hover { background: #294048; }
.room-switcher a[aria-current="page"] { background: #c6e6db; color: #113a31; }
.room-switcher a:focus-visible { outline: 3px solid #7ff3c8; outline-offset: 2px; }
.apps-back { display: inline-flex; gap: .42em; align-items: center; color: #9cb5c6; font-size: .86rem; font-weight: 700; text-decoration: none; }
.apps-back:hover, .apps-back:focus-visible { color: #68edbb; }
.room-heading h1 { color: #f4f7f8; margin: .26em 0 .15em; font-size: clamp(2.2rem, 5.4vw, 4rem); letter-spacing: -.055em; line-height: 1.02; }
.room-heading p { color: #bccbd5; margin: .65em 0 0; font-size: clamp(.98rem, 1.5vw, 1.12rem); line-height: 1.5; }
.fitting-layout { display: grid; grid-template-columns: minmax(0, 1.76fr) minmax(270px, .84fr); border: 1px solid #354750; background: #101e27; border-radius: 18px; overflow: hidden; }
.viewer { margin: 0; min-width: 0; display: flex; flex-direction: column; }
.studio { isolation: isolate; position: relative; width: 100%; height: clamp(370px, 54vw, 570px); overflow: hidden; background: radial-gradient(ellipse at 48% 26%,#f6f1e6 0%,#e4ddd2 58%,#c0b8ab 100%); }
.studio::before { position: absolute; inset: 76% 0 0; content: ""; background: linear-gradient(180deg,#b6ac9d00,#b6ac9d4d); }
.canvas-slot,.canvas-slot canvas,#character-poster { position: absolute; inset: 0; display: block; height: 100%; width: 100%; }
#character-poster { object-fit: contain; }
#character-poster[hidden],.canvas-slot[hidden],.loading-card[hidden],.loading-card button[hidden] { display: none; }
.canvas-slot canvas { touch-action: none; cursor: grab; }
.canvas-slot canvas:active { cursor: grabbing; }
.loading-card { position: absolute; max-width: min(90%, 380px); left: 50%; bottom: 18px; transform: translateX(-50%); text-align: center; font-weight: 700; font-size: .89rem; line-height: 1.4; border-radius: 10px; color: #122029; background: #fffdf4f2; box-shadow: 0 2px 16px #352e2425; padding: 9px 15px; }
.loading-card button { display: block; padding: .35em .7em; margin: .45em auto 0; border: 1px solid #596c67; border-radius: 5px; background: white; color: #142322; cursor: pointer; }
.view-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 12px; align-items: center; padding: 9px 13px; color: #d2d8d9; background: #1d2b31; }
.view-hint { font-size: .80rem; }
.view-hint span { padding-inline: .15em; color: #99a5a6; }
.camera-actions, .garments { border: 0; margin: 0; padding: 0; min-width: 0; }
.camera-actions { display: flex; align-items: center; gap: 4px; }
.camera-actions button { color: #f3f8f6; background: #26383f; border: 1px solid #41545c; min-width: 36px; min-height: 36px; font-size: 1.14rem; border-radius: 6px; cursor: pointer; }
#front-view { font-size: .78rem; font-weight: 700; padding-inline: .58em; }
.wardrobe-panel { padding: clamp(21px, 3vw, 39px); background: linear-gradient(150deg,#172b35,#111e27 76%); display: flex; flex-direction: column; justify-content: center; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: .7em; margin-bottom: 20px; }
.panel-heading h2 { font-size: clamp(1.45rem, 2.4vw, 2.05rem); letter-spacing: -.035em; margin: 0; color: #f3f6f4; }
.piece-count { color: #a7bfbe; font-size: .86rem; }
.garments { display: grid; gap: 10px; }
.garment { display: grid; grid-template-columns: 46px 1fr 21px; align-items: center; gap: 13px; position: relative; padding: 11px 13px; min-height: 65px; border: 1px solid #44545a; background: #213039; border-radius: 11px; color: #f4f7f4; font: 700 1rem/1.26 Arial,Helvetica,sans-serif; cursor: pointer; }
.garment:hover { border-color: #819995; }
.garment:has(input:checked) { background: #243e3e; border-color: #73c7b0; }
.garment input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.garment:has(input:focus-visible), .fitting-room button:focus-visible, .apps-back:focus-visible, .canvas-slot canvas:focus-visible { outline: 3px solid #7ff3c8; outline-offset: 2px; }
.sample { width: 44px; height: 39px; border-radius: 6px; border: 1px solid #ffffff26; box-shadow: inset -3px -4px 6px #0003; }
.white { background: repeating-linear-gradient(85deg,#e9e5da77 0 1px,transparent 1px 3px),linear-gradient(130deg,#f4f0e8,#d0cfc6); }
.charcoal { background: repeating-linear-gradient(130deg,#7b879232 0 1px,transparent 1px 3px),linear-gradient(135deg,#4a5056,#292d34); }
.corduroy { background: repeating-linear-gradient(90deg,#70472c 0 2px,#93613c 2px 4px,#7f5333 4px 6px); }
.ivory { background: repeating-linear-gradient(38deg,transparent 0 2px,#fff8e94a 2px 3px),linear-gradient(140deg,#fbf4de,#d7c7ac); }
.denim { background: repeating-linear-gradient(132deg,#6a91a3 0 1px,#42647e 1px 3px,#4a7189 3px 4px); }
.leather { background: linear-gradient(130deg,#ad7248 0%,#8a5536 40%,#653b2b 100%); }
.check { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 50%; border: 1.5px solid #819598; }
input:checked ~ .check { color: #092b23; border-color: #92e0c8; background: #92e0c8; }
input:checked ~ .check::after { content: ""; width: 9px; height: 4px; border-left: 2px solid; border-bottom: 2px solid; transform: translateY(-1px) rotate(-45deg); }
.outfit-actions { margin-top: 23px; display: flex; flex-wrap: wrap; gap: 8px; }
.outfit-actions button { min-height: 42px; border: 1px solid transparent; border-radius: 8px; padding: .55em 1em; font: 700 .91rem/1.2 Arial,Helvetica,sans-serif; cursor: pointer; }
.wave-button { background: #95ebbd; color: #10271b; }
.reset-button { color: #edf7f0; background: transparent; border-color: #52656b !important; }
.outfit-actions button:disabled,.camera-actions:disabled button,.garments:disabled .garment { cursor: default; opacity: .52; }
.outfit-status { margin: 15px 0 0; min-height: 2.8em; color: #b6c8c8; font-size: .88rem; line-height: 1.42; }
.wardrobe-panel [hidden] { display: none; }
.outfit-modes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3px; border: 1px solid #485a63; border-radius: 9px; padding: 3px; margin: 0 0 16px; }
.outfit-modes label { position: relative; text-align: center; }
.outfit-modes input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.outfit-modes span { display: grid; place-content: center; min-height: 38px; border-radius: 6px; font-weight: 700; font-size: .87rem; cursor: pointer; color: #cbdbdd; }
.outfit-modes input:checked + span { background: #c6e6db; color: #133b32; }
.outfit-modes input:focus-visible + span, .kit-pieces input:focus-visible { outline: 3px solid #80efcb; outline-offset: 2px; }
.outfit-modes:disabled span { opacity: .55; cursor: default; }
.kit-design { margin: 2px 0 12px; padding-left: 12px; border-left: 5px solid var(--kit-accent); }
.kit-design strong, .kit-design span { display: block; }
.kit-design strong { color: #f7f7f1; font-size: 1.14rem; }
.kit-design span { margin-top: 2px; color: #bdd0d4; font-size: .84rem; }
.sabiorex-kit [data-design="kicker"] { --kit-accent: #5b93ff; }
.sabiorex-kit [data-design="keeper"] { --kit-accent: #bd8967; }
.isabella-kit [data-design="kicker"] { --kit-accent: #f68bb6; }
.isabella-kit [data-design="keeper"] { --kit-accent: #d38bc2; }
.kit-pieces, .drills { border: 0; min-width: 0; padding: 0; margin: 0; }
.kit-pieces { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.kit-pieces label { display: flex; align-items: center; gap: 6px; min-height: 42px; padding: 4px 8px; background: #213039; border: 1px solid #475c65; border-radius: 7px; font-size: .86rem; font-weight: 600; color: #f1f6f5; cursor: pointer; }
.kit-pieces input { accent-color: #91e2b8; width: 16px; height: 16px; }
.drills { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 7px; margin-top: 17px; }
.drills legend { padding: 0 0 6px; color: #d4e3e3; font-size: .86rem; font-weight: 700; }
.drills select, .drills button { min-height: 42px; border: 1px solid #536971; border-radius: 7px; padding: 5px 10px; background: #20343d; color: #eff8f6; font: inherit; font-size: .88rem; }
.drills button { font-weight: 700; cursor: pointer; }
.drills button[aria-pressed="true"] { color: #17372d; background: #b8e7d3; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 730px) {
  .fitting-room { width: min(100% - 24px, 570px); margin-block: 18px 30px; }
  .room-heading { margin-bottom: 15px; }
  .fitting-layout { grid-template-columns: 1fr; border-radius: 13px; }
  .studio { height: clamp(285px, 40svh, 385px); }
  .view-bar { justify-content: center; padding: 7px; gap: 7px; }
  .camera-actions button { min-width: 40px; min-height: 40px; }
  .wardrobe-panel { padding: 18px; }
  .panel-heading { margin-bottom: 12px; }
  .garments { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 6px; }
  .garment { grid-template-columns: 1fr; grid-template-rows: 22px 1fr; gap: 7px; min-height: 75px; padding: 8px; align-items: start; font-size: .82rem; }
  .sample { width: 32px; height: 22px; }
  .check { position: absolute; top: 8px; right: 6px; width: 16px; height: 16px; }
  .outfit-actions { margin-top: 16px; }
  .outfit-status { min-height: 1.4em; margin-top: 10px; }
}
@media (max-width: 340px) {
  .wardrobe-panel { padding: 12px; }
  .sample { width: 25px; }
  .garment { font-size: .76rem; }
}
