*{box-sizing:border-box}body{margin:0;font-family:Inter,system-ui,Arial,sans-serif;color:#36222d;background:#fcf7f9}.app{max-width:1180px;margin:auto}header{padding:27px 24px 15px;display:flex;align-items:center;justify-content:space-between}.brand{font-size:24px;font-weight:800;color:#8a315f}.brand b{color:#2f2630}header small{color:#8b7882}nav{display:grid;grid-template-columns:repeat(4,1fr);background:#fff;border-radius:18px;padding:7px;box-shadow:0 5px 25px #7e496112;margin:0 20px 26px}button{font:inherit;cursor:pointer}nav button{border:0;background:transparent;padding:13px 5px;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:8px;color:#7e6e77}nav button.active{background:#82365e;color:#fff}main{display:grid;grid-template-columns:1.08fr .92fr;gap:22px;margin:0 20px}.panel,.preview{background:#fff;border:1px solid #f1e4eb;border-radius:24px;padding:27px}.eyebrow{font-size:11px;letter-spacing:2px;font-weight:800;color:#b87b98}h1{font-size:30px;margin:12px 0}p{color:#8c7b85;line-height:1.5}.panel label{display:block;font-size:14px;font-weight:750;margin:22px 0 10px}.choices{display:flex;flex-wrap:wrap;gap:8px}.choices button,.actions button,.outline{border:1px solid #ebdce4;border-radius:12px;background:#fff;padding:10px 14px;color:#654458}.choices button.selected{background:#8a365f;color:#fff;border-color:#8a365f}.upload{border:2px dashed #d9a5bf;background:#fff7fb;border-radius:15px;padding:18px;width:100%;color:#87365e;display:flex;align-items:center;justify-content:center;gap:10px}.hint{font-size:12px;color:#a28d99}.colors{display:flex;gap:15px;padding:5px}.colors button{width:30px;height:30px;border-radius:50%;border:2px solid white}.range{display:flex;align-items:center;gap:15px;margin:12px 0}.range span{width:85px;font-size:12px}.range input{flex:1;accent-color:#8a365f}.actions{display:flex;gap:12px;margin-top:22px}.actions button,.outline{display:flex;gap:8px;align-items:center;justify-content:center}.actions .primary{background:#8a365f;color:#fff;flex:1}.success{color:#278058;font-size:13px}.preview{text-align:center}.preview .eyebrow{text-align:left}.paper{margin:20px auto;background:linear-gradient(145deg,#fff7fb,#f9eaf1);border-radius:20px;max-width:360px;padding:10px;aspect-ratio:320/490}.paper svg{width:100%;height:100%}.model-meta{font-weight:750;margin:16px}.outline{width:100%;max-width:360px;margin:auto}.preview .hint{max-width:360px;margin:14px auto}.coming{margin:40px 20px;background:#fff;border-radius:22px;padding:50px;text-align:center}footer{text-align:center;color:#b19aa7;font-size:12px;padding:35px}@media (max-width:750px){header{display:block}header small{display:block;margin-top:5px}nav{margin:0 10px 15px}nav button{flex-direction:column;font-size:10px;gap:5px}main{grid-template-columns:1fr;margin:0 10px}.panel,.preview{padding:19px}h1{font-size:25px}}.photo-paper{position:relative;display:flex;align-items:center;justify-content:center;overflow:hidden}.real-model{display:block;width:auto;max-width:96%;height:100%;max-height:460px;object-fit:contain}.photo-note{position:absolute;bottom:8px;left:8px;right:8px;background:#fff9;border-radius:8px;padding:8px;font-size:11px;color:#6d294b;text-align:center}.photo-paper canvas{display:block;width:auto;max-width:100%;height:100%;object-fit:contain}.range span{width:150px;flex-shrink:0}.range input:disabled{opacity:.4}.remove{border:0;background:none;color:#87365e;margin-top:9px;display:flex;align-items:center;gap:6px}.error{color:#aa2348}.photo-paper{padding:14px}.preview .paper{height:490px;aspect-ratio:auto}.photo-paper canvas{max-height:100%}.face-picker{margin-top:12px;padding:12px;background:#fff7fb;border:1px solid #efd6e3;border-radius:14px}.source-wrap{position:relative;display:inline-block;cursor:crosshair;margin:12px auto;max-width:100%;line-height:0}.source-wrap img{display:block;max-width:100%;max-height:310px;width:auto;height:auto;border-radius:10px}.face-target{position:absolute;transform:translate(-50%,-50%);border:2px solid #e3438a;border-radius:50%;box-shadow:0 0 0 2px #fff8;pointer-events:none}.face-picker .range span{width:150px}.skin-toggle{display:flex!important;align-items:center;gap:10px;font-size:13px;line-height:1.5;cursor:pointer}.skin-toggle input{width:18px;height:18px;accent-color:#b5658b;flex-shrink:0}@media (min-width:751px){main{align-items:start;grid-template-columns:minmax(0,1.15fr) minmax(320px,.85fr)}.preview{position:sticky;top:12px;max-height:calc(100vh - 24px);overflow:auto}.preview .paper{height:min(62vh,490px)}.panel{min-width:0}}@media (max-width:750px){main{display:flex;flex-direction:column}.preview{order:-1;position:sticky;top:0;z-index:10;border-radius:0 0 20px 20px;padding:8px 12px;background:#fffdfef5;box-shadow:0 8px 24px #49253b20}.preview .paper{height:min(36vh,270px);margin:4px auto}.preview .eyebrow,.preview .hint,.preview .model-meta{display:none}.preview .outline{padding:6px}.panel{order:1}.panel label{margin-top:16px}}@media (min-width:850px){.preview{position:sticky;top:16px;align-self:start;max-height:calc(100vh - 32px);overflow:auto}.preview .paper{max-height:65vh;display:flex;justify-content:center}.preview canvas{max-height:65vh;width:auto;max-width:100%;object-fit:contain}}.wardrobe-text{width:100%;padding:12px;border:1px solid #e6c9d8;border-radius:10px;background:#fff;font:inherit}.outfit-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:15px 0}.outfit-tile{border:1px solid #ead5e0;border-radius:15px;padding:8px;min-width:0}.outfit-active{outline:2px solid #8a365f}.outfit-pick{display:flex;flex-direction:column;align-items:center;width:100%;background:#fff;border:0;gap:6px;padding:4px;color:#36222d}.outfit-pick img{height:145px;width:100%;object-fit:contain;background:#fff6fa;border-radius:8px}.outfit-pick strong{font-size:13px}.outfit-pick small{color:#987c8c}.outfit-actions{display:flex;flex-wrap:wrap;gap:4px;margin-top:8px}.outfit-actions button{font-size:11px;border:1px solid #ead5e0;border-radius:7px;background:#fff;padding:6px;color:#82365e}@media (max-width:500px){.outfit-grid{grid-template-columns:1fr}}.wardrobe-preview{min-width:0}.wardrobe-viewport{width:100%;height:min(68vh,690px);overflow:auto;overscroll-behavior:contain;background:linear-gradient(45deg,#f6edf2 25%,transparent 25%),linear-gradient(-45deg,#f6edf2 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#f6edf2 75%),linear-gradient(-45deg,transparent 75%,#f6edf2 75%);background-size:20px 20px;background-position:0 0,0 10px,10px -10px,-10px 0;border:1px solid #e6cfdb;border-radius:14px}.wardrobe-stage{width:100%;min-width:0}.wardrobe-stage canvas{max-height:none!important;max-width:none!important;object-fit:initial!important}.zoom-controls{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px;margin:12px 0}.zoom-controls button{background:#fff;border:1px solid #ead3df;border-radius:9px;padding:8px 12px;color:#82365e}.zoom-controls span{font-size:13px;font-weight:700}.wardrobe-preview .hint{max-width:100%}.wardrobe-preview{position:static!important;max-height:none!important;overflow:visible!important}@media (max-width:750px){.wardrobe-preview{position:relative!important;order:-1}.wardrobe-viewport{height:55vh}}@media (min-width: 751px){main:has(.wardrobe-preview){align-items:start}.wardrobe-preview{position:sticky!important;top:12px;align-self:start;max-height:calc(100dvh - 24px)!important;overflow:hidden!important;display:flex;flex-direction:column}.wardrobe-preview .wardrobe-viewport{flex:1 1 auto;min-height:160px;height:auto;max-height:none;overflow:auto}.wardrobe-preview .hint{flex-shrink:0}}@media (max-width: 750px){main:has(.wardrobe-preview){display:flex;flex-direction:column}.wardrobe-preview{position:sticky!important;top:0;z-index:15;max-height:56dvh!important;overflow:hidden!important;background:#fffdfef5;box-shadow:0 8px 24px #49253b20}.wardrobe-preview .wardrobe-viewport{height:34dvh;overflow:auto}.wardrobe-preview .hint{display:none}}.book-layout{align-items:start}.book-preview{position:sticky;top:16px;align-self:start;min-width:0}.book-print-sheet img{-webkit-user-select:none;user-select:none;-webkit-user-drag:none}@media (max-width:850px){.book-preview{position:static}}.book-layout .outfit-grid{grid-template-columns:repeat(auto-fill,minmax(130px,1fr));align-items:start}.book-layout .outfit-tile{min-width:0;max-width:210px;overflow:hidden;display:flex;flex-direction:column;align-items:stretch;gap:8px}.book-layout .outfit-tile>img{display:block;width:100%;height:155px;max-width:100%;max-height:155px;object-fit:contain;background:#fff8fb;border-radius:10px}.book-layout .outfit-tile>button{border:1px solid #ead5e0;border-radius:8px;background:#fff;padding:8px;color:#82365e}.book-layout .book-print-sheet{width:100%;max-width:100%}@media (max-width:750px){.book-layout .outfit-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (pointer: coarse){button,select,input[type=file]{min-height:44px}.choices button,.actions button,.zoom-controls button{min-height:48px;padding:10px 13px}input[type=range]{min-height:40px;accent-color:#a22e75}.wardrobe-edit-viewport canvas{touch-action:none}.outfit-actions button{min-height:44px}}@media (min-width: 768px) and (max-width: 1200px){.wardrobe-preview{min-width:0}.wardrobe-viewport{-webkit-overflow-scrolling:touch}}header{gap:16px;padding-top:24px;padding-bottom:20px}.brand{display:flex;align-items:center;gap:12px;font-size:inherit;letter-spacing:0}.brand-mark{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:linear-gradient(145deg,#432c47,#8b4b69);color:#fff;box-shadow:0 8px 18px #4d2a4230;flex-shrink:0}.brand-type{display:flex;flex-direction:column;gap:3px}.brand-type strong{font-size:22px;letter-spacing:1.1px;color:#35243c;line-height:1}.brand-type strong span{color:#a36883}.brand-type em{font-size:11px;letter-spacing:.35px;font-weight:500;font-style:normal;color:#987a8b}.header-version{font-size:12px;text-align:right;letter-spacing:.5px}.studio-error{margin:20px;background:#fff;border:1px solid #eed5df;border-radius:22px;padding:36px;max-width:760px;box-shadow:0 12px 40px #673b5312}.studio-error h2{margin:12px 0}.studio-error .error-symbol{width:44px;height:44px;display:grid;place-items:center;background:#fff1f5;border-radius:50%;color:#a32c59;font-weight:800;font-size:24px}.studio-error details{margin:18px 0;color:#705d6a}.studio-error pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px;max-height:180px;overflow:auto;background:#faf4f7;padding:12px;border-radius:10px}.studio-error button.primary{background:#82365e;color:#fff;border:0;border-radius:12px;padding:13px 18px}@media (max-width:750px){.brand-type strong{font-size:19px}.header-version{display:none!important}.studio-error{margin:10px;padding:20px}}.header-tools{display:flex;align-items:center;gap:18px}.language-switch{display:flex;gap:3px;background:#f0e5eb;border:1px solid #e8d6e0;border-radius:12px;padding:4px;flex-shrink:0}.language-switch button{border:0;background:transparent;color:#795b6c;border-radius:9px;font-size:12px;font-weight:800;letter-spacing:.5px;padding:10px 13px;min-height:40px}.language-switch button.chosen{background:#633e58;color:#fff;box-shadow:0 3px 10px #3b1b3125}.language-switch button:focus-visible{outline:3px solid #d49cba;outline-offset:2px}@media (max-width:750px){header{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap}.header-tools{margin-left:auto}.language-switch button{padding:9px 11px}.brand-type strong{font-size:18px}}.online-panel input,.online-panel select{display:block;width:100%;max-width:480px;padding:12px;margin:8px 0 15px;border:1px solid #e5cdda;border-radius:12px;background:#fff;color:#3b2635;font:inherit}.online-panel button,.online-item button{min-height:44px}.online-panel form{margin-top:20px}.online-assets{display:grid;grid-template-columns:repeat(auto-fill,minmax(145px,1fr));gap:12px;margin-top:18px}.online-item{border:1px solid #ead4df;border-radius:13px;padding:12px;display:flex;flex-direction:column;gap:8px;min-width:0;overflow-wrap:anywhere}.online-item img{width:100%;height:130px;object-fit:contain}.online-item small{color:#916a80}.online-item button{border:1px solid #e3cbd7;border-radius:10px;background:#fff;color:#84365d}@media (max-width:800px){.online-assets{grid-template-columns:repeat(2,minmax(0,1fr))}}
