:root{--blue: #2563eb;--blue-600: #1d4ed8;--blue-400: #60a5fa;--blue-tint: #eff6ff;--ink: #0f172a;--ink-2: #334155;--muted: #64748b;--line: #e6ebf4;--line-strong: #cfd9ea;--card: #ffffff;--page: #f7f9fc;--error: #dc2626;--warn-ink: #a15c00;--warn-bg: #fffaeb;--warn-line: #fde9b8;--ok: #16a34a;--radius-lg: 24px;--radius: 16px;--radius-sm: 12px;--shadow-card: 0 1px 2px rgba(15, 23, 42, .04), 0 20px 44px -30px rgba(15, 23, 42, .28);--shadow-blue: 0 14px 30px -14px rgba(37, 99, 235, .7);--ease: cubic-bezier(.22, .61, .36, 1)}*{box-sizing:border-box}html{font-size:16px;-webkit-text-size-adjust:100%}body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,PingFang SC,Hiragino Sans GB,Microsoft YaHei,Noto Sans SC,sans-serif;color:var(--ink);background:var(--page);line-height:1.5;-webkit-font-smoothing:antialiased}body:before{content:"";position:fixed;inset:0 0 auto 0;height:620px;z-index:-1;background:radial-gradient(820px 420px at 50% -8%,#dbe9ff,#dbe9ff00 72%),linear-gradient(180deg,#f2f7ff,#f7f9fc 60%);pointer-events:none}#root{min-height:100svh}.app{max-width:1120px;margin:0 auto;padding:0 clamp(14px,3.4vw,32px) 40px;display:flex;flex-direction:column;min-height:100svh}.topbar{padding:18px 0 10px}.topbar-inner{display:flex;align-items:center;justify-content:space-between;gap:12px}.brand{display:flex;align-items:center;gap:11px;min-width:0}.brand-mark{flex:0 0 auto;width:42px;height:42px;display:grid;place-items:center;border-radius:13px;color:#fff;background:linear-gradient(135deg,#4f8df7,#2563eb);box-shadow:var(--shadow-blue)}.brand-mark svg{width:23px;height:23px}.brand-text{display:flex;flex-direction:column;min-width:0}.title{margin:0;font-size:clamp(1.1rem,3.2vw,1.32rem);font-weight:800;letter-spacing:-.01em;color:var(--ink)}.brand-sub{font-size:.72rem;font-weight:500;letter-spacing:.08em;color:var(--muted)}.back{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;font-size:.9rem;font-weight:600;font-family:inherit;border:1px solid var(--line);border-radius:999px;background:#ffffffe6;color:var(--ink-2);cursor:pointer;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);transition:border-color .18s,color .18s,background .18s}.back:hover:not(:disabled){border-color:var(--line-strong);color:var(--blue);background:#fff}.back:disabled{opacity:.42;cursor:default}.stepper{display:flex;align-items:center;gap:6px;margin-top:16px;padding:6px;border:1px solid rgba(226,232,244,.9);border-radius:999px;background:#ffffffb8;-webkit-backdrop-filter:blur(8px);backdrop-filter:blur(8px);overflow-x:auto;scrollbar-width:none}.stepper::-webkit-scrollbar{display:none}.step-item{flex:1 0 auto;display:inline-flex;align-items:center;gap:7px;padding:6px 12px;border-radius:999px;font-size:.82rem;font-weight:600;color:var(--muted);white-space:nowrap}.step-item .step-dot{display:grid;place-items:center;width:20px;height:20px;border-radius:50%;font-size:.7rem;font-weight:700;background:#eaeff8;color:var(--muted)}.step-item.done{color:var(--ink-2)}.step-item.done .step-dot{background:#dcfce7;color:#15803d}.step-item.active{color:var(--blue-600);background:var(--blue-tint)}.step-item.active .step-dot{background:var(--blue);color:#fff}.hero{display:flex;flex-direction:column;align-items:center;gap:14px;padding:clamp(16px,3.6vw,34px) 0 clamp(4px,1.4vw,12px);text-align:center}.hero-badge{display:inline-flex;align-items:center;gap:7px;padding:6px 14px 6px 11px;border:1px solid #e0eafb;border-radius:999px;background:#fff;font-size:.78rem;font-weight:600;color:var(--ink-2);box-shadow:0 10px 24px -20px #2563ebb3}.hero-badge svg{width:15px;height:15px;color:var(--blue)}.hero-title{margin:0;font-size:clamp(1.65rem,5.4vw,2.6rem);line-height:1.22;font-weight:800;letter-spacing:-.025em;color:var(--ink)}.hero-title em{font-style:normal;background:linear-gradient(112deg,#2563eb 10%,#60a5fa 92%);-webkit-background-clip:text;background-clip:text;color:transparent}.hero-sub{margin:0;max-width:32em;font-size:clamp(.9rem,2.5vw,1.02rem);line-height:1.7;color:var(--muted)}.hero-points{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 20px;margin:2px 0 0;padding:0;list-style:none}.hero-points li{display:inline-flex;align-items:center;gap:6px;font-size:.83rem;font-weight:500;color:var(--ink-2)}.hero-points svg{width:15px;height:15px;color:var(--ok)}.stage{display:flex;flex-direction:column;gap:16px;flex:1}.card{background:var(--card);border:1px solid rgba(226,232,244,.9);border-radius:var(--radius-lg);padding:clamp(16px,3vw,26px);box-shadow:var(--shadow-card)}.card-head{display:flex;align-items:flex-start;gap:12px;margin-bottom:14px}.card-icon{flex:0 0 auto;display:grid;place-items:center;width:40px;height:40px;border-radius:13px;background:var(--blue-tint);color:var(--blue)}.card-icon svg{width:21px;height:21px}.card-head-text{min-width:0}.card h2{margin:0 0 2px;font-size:clamp(1.02rem,2.8vw,1.18rem);font-weight:700;letter-spacing:-.01em;color:var(--ink)}.card h2.mt{margin-top:22px}.sub{margin:2px 0 0;color:var(--muted);font-size:.85rem;line-height:1.6}.hint{margin:10px 0 0;padding:10px 12px;border:1px solid var(--warn-line);border-radius:var(--radius-sm);background:var(--warn-bg);color:var(--warn-ink);font-size:.84rem;line-height:1.55}.error{margin:10px 0 0;padding:10px 12px;border:1px solid #fbd5d5;border-radius:var(--radius-sm);background:#fef4f4;color:var(--error);font-size:.85rem}.row{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:14px 0 0}.row:first-child{margin-top:0}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:0 18px;font-family:inherit;font-size:.95rem;font-weight:600;border:1px solid var(--line);border-radius:14px;background:#fff;color:var(--ink-2);cursor:pointer;transition:transform .15s var(--ease),box-shadow .18s,background .18s,border-color .18s,color .18s}.btn svg{width:18px;height:18px}.btn:hover:not(:disabled){border-color:var(--line-strong);background:#f8fbff;color:var(--ink)}.btn:active:not(:disabled){transform:translateY(1px)}.btn.primary{border-color:transparent;background:linear-gradient(135deg,#3b82f6,#2563eb);color:#fff;box-shadow:var(--shadow-blue)}.btn.primary:hover:not(:disabled){background:linear-gradient(135deg,#2c74ee,#1d4ed8);color:#fff}.btn.primary:active:not(:disabled){background:linear-gradient(135deg,#2563eb,#1b46c4)}.btn.danger{border-color:#f6d4d4;background:#fff7f7;color:var(--error)}.btn.danger:hover:not(:disabled){background:#fdeeee;border-color:#f2bcbc}.btn.active{border-color:#b9d2fb;background:var(--blue-tint);color:var(--blue-600)}.btn.wide{width:100%;min-height:52px;margin-top:18px;font-size:1rem;letter-spacing:.02em}.btn:disabled{opacity:.45;cursor:default;box-shadow:none}.source{display:flex;flex-direction:column;gap:16px}.upload-zone{position:relative;display:flex;flex-direction:column;align-items:center;gap:6px;padding:clamp(22px,5vw,34px) 18px;border:1.5px dashed #b9d1f7;border-radius:20px;background:linear-gradient(180deg,#f8fbff,#f2f7ff);text-align:center;cursor:pointer;transition:border-color .18s,background .18s,box-shadow .18s}.upload-zone:hover,.upload-zone:focus-within{border-color:var(--blue);background:#eef5ff;box-shadow:0 0 0 4px #2563eb14}.uz-icon{display:grid;place-items:center;width:54px;height:54px;margin-bottom:4px;border-radius:17px;background:#fff;color:var(--blue);box-shadow:0 14px 28px -20px #2563ebe6}.uz-icon svg{width:26px;height:26px}.uz-title{font-size:1rem;font-weight:700;color:var(--ink)}.uz-sub{margin:0;font-size:.82rem;color:var(--muted)}.file{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;opacity:0;cursor:pointer}.cam-controls{display:flex;flex-wrap:wrap;gap:10px}.cam-controls select{flex:1 1 150px;min-width:0;min-height:46px;padding:0 34px 0 14px;font-family:inherit;font-size:.92rem;color:var(--ink-2);border:1px solid var(--line);border-radius:14px;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 12px center / 16px no-repeat;-moz-appearance:none;appearance:none;-webkit-appearance:none;cursor:pointer}.cam-controls select:focus-visible{outline:2px solid var(--blue);outline-offset:1px}.cam-wrap{position:relative;width:100%;margin-top:14px;border-radius:20px;overflow:hidden;background:#0b1220;box-shadow:0 24px 48px -34px #0f172ae6}.cam{display:block;width:100%;aspect-ratio:3 / 4;object-fit:cover;background:#0b1220}.cam.mirrored{transform:scaleX(-1)}.cam-switch{position:absolute;top:12px;left:12px;z-index:2;display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:#0f172a73;color:#fff;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .18s}.cam-switch:hover{background:#0f172ab3}.cam-switch svg{width:20px;height:20px}.ref-guide{position:absolute;top:0;right:0;bottom:0;left:0;width:100%;height:100%;pointer-events:none;opacity:0;transition:opacity .3s ease}.ref-guide.always,.ref-guide.visible{opacity:1}.ref-guide ellipse,.ref-guide path{fill:none;stroke:#ffffffe6;stroke-width:3;stroke-dasharray:10 7;vector-effect:non-scaling-stroke;filter:drop-shadow(0 0 1px rgba(0,0,0,.6))}.capture{position:fixed;top:0;right:0;bottom:0;left:0;z-index:40;display:flex;flex-direction:column;background:#0b1220;animation:capture-in .22s var(--ease)}@keyframes capture-in{0%{opacity:0}}.capture-stage{display:flex;flex:1;flex-direction:column;align-items:center;justify-content:center;gap:10px;min-height:0;padding:12px 12px 0}.capture .cam-wrap{width:100%;max-width:min(100%,calc((100svh - 240px)*.75));margin:0}.capture .cam-hint{margin:0;color:#ffffffb8;font-size:.82rem;text-align:center}.capture-bar{display:flex;flex:none;align-items:center;justify-content:center;gap:32px;padding:18px 20px calc(22px + env(safe-area-inset-bottom))}.capture-shutter{display:grid;place-items:center;width:72px;height:72px;padding:0;border:4px solid #fff;border-radius:50%;background:transparent;cursor:pointer;transition:transform .16s var(--ease)}.capture-shutter span{width:56px;height:56px;border-radius:50%;background:#fff;transition:transform .16s var(--ease)}.capture-shutter:active span{transform:scale(.88)}.capture-shutter:disabled{border-color:#ffffff59;cursor:default}.capture-shutter:disabled span{background:#ffffff59}.capture-close{position:absolute;top:12px;right:12px;z-index:2;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid rgba(255,255,255,.35);border-radius:50%;background:#0f172a73;color:#fff;font-size:1.5rem;line-height:1;cursor:pointer;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px);transition:background .18s}.capture-close:hover{background:#0f172ab3}.canvas-wrap{position:relative;width:100%;max-width:min(520px,calc((100svh - 300px) * var(--ar, .714)));line-height:0}.cam-hint{margin:10px 0 0;color:var(--muted);font-size:.84rem;text-align:center}.feature-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:10px}.feature{display:flex;flex-direction:column;gap:6px;padding:14px;border:1px solid rgba(226,232,244,.9);border-radius:18px;background:#fff;box-shadow:var(--shadow-card)}.feature-icon{display:grid;place-items:center;width:34px;height:34px;border-radius:11px;background:var(--blue-tint);color:var(--blue)}.feature-icon svg{width:18px;height:18px}.feature h3{margin:2px 0 0;font-size:.92rem;font-weight:700;color:var(--ink)}.feature p{margin:0;font-size:.8rem;line-height:1.55;color:var(--muted)}.editor{display:flex;flex-direction:column;gap:16px}.editor-preview{position:relative;display:flex;flex-direction:column;align-items:center;gap:12px;padding:clamp(12px,2.6vw,22px);border:1px solid rgba(226,232,244,.9);border-radius:var(--radius-lg);background:linear-gradient(180deg,#fff,#f8fbff);box-shadow:var(--shadow-card)}.editor-canvas{width:100%;border-radius:18px;background:#0b0e14;box-shadow:0 26px 50px -34px #0f172abf;touch-action:none;cursor:grab;-webkit-user-select:none;user-select:none}.editor-canvas:active{cursor:grabbing}.badge{position:absolute;top:22px;left:22px;display:inline-flex;align-items:center;gap:8px;padding:6px 12px;border-radius:999px;background:#0f172a9e;color:#fff;font-size:.78rem;line-height:1.4;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}.badge:before{content:"";width:11px;height:11px;border:2px solid rgba(255,255,255,.35);border-top-color:#fff;border-radius:50%;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.zoombar{display:flex;align-items:center;gap:4px;padding:4px;border:1px solid var(--line);border-radius:999px;background:#fff;box-shadow:0 10px 24px -20px #0f172a99}.zbtn{width:44px;min-height:40px;padding:0;font-family:inherit;font-size:1.15rem;line-height:1;color:var(--ink-2);border:0;border-radius:999px;background:transparent;cursor:pointer;transition:background .15s,color .15s}.zbtn:hover{background:#f1f5fd;color:var(--blue)}.zoom-value{min-width:52px;text-align:center;font-size:.8rem;font-weight:600;font-variant-numeric:tabular-nums;color:var(--muted)}.editor-controls{display:flex;flex-direction:column;gap:20px;padding:clamp(16px,3vw,22px);border:1px solid rgba(226,232,244,.9);border-radius:var(--radius-lg);background:#fff;box-shadow:var(--shadow-card)}.field{display:flex;flex-direction:column;gap:10px}.label{display:flex;align-items:center;gap:8px;font-size:.86rem;font-weight:700;color:var(--ink-2)}.label:before{content:"";width:4px;height:13px;border-radius:2px;background:linear-gradient(180deg,#60a5fa,#2563eb)}.spec{display:flex;flex-direction:column;gap:10px}.tabs{display:flex;gap:4px;padding:4px;border-radius:14px;background:#f1f5fb}.tab{flex:1;min-height:40px;font-family:inherit;font-size:.9rem;font-weight:600;color:var(--muted);border:0;border-radius:11px;background:transparent;cursor:pointer;transition:background .16s,color .16s,box-shadow .16s}.tab:hover{color:var(--ink-2)}.tab.active{background:#fff;color:var(--blue-600);box-shadow:0 2px 8px -4px #0f172a59}.spec-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(156px,1fr));gap:8px;max-height:320px;overflow-y:auto;padding:2px}.spec-item{position:relative;display:flex;align-items:center;gap:9px;padding:8px 9px;border:1px solid var(--line);border-radius:14px;background:#fff;cursor:pointer;transition:border-color .16s,background .16s,box-shadow .16s}.spec-item:hover{border-color:#c5d9f8;background:#fafcff}.spec-item.active{border-color:var(--blue);background:#f5f9ff;box-shadow:0 0 0 3px #2563eb1a}.spec-item input{position:absolute;opacity:0;pointer-events:none}.spec-thumb{position:relative;flex:0 0 auto;align-self:center;min-height:26px;border-radius:4px;border:1px solid #cfe0fb;background:linear-gradient(180deg,#eaf3ff,#d9e9ff);overflow:hidden}.spec-thumb:after{content:"";position:absolute;left:50%;top:20%;width:34%;aspect-ratio:1;transform:translate(-50%);border-radius:50%;background:#fff}.spec-thumb:before{content:"";position:absolute;left:50%;bottom:-14%;width:72%;aspect-ratio:1;transform:translate(-50%);border-radius:50%;background:#fff}.spec-item.active .spec-thumb{border-color:#9dc2f8;background:linear-gradient(180deg,#dcebff,#c3dcff)}.spec-body{display:flex;flex-direction:column;gap:1px;min-width:0}.spec-name{font-size:.87rem;font-weight:600;color:var(--ink);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.spec-meta{font-size:.72rem;color:var(--muted);font-variant-numeric:tabular-nums}.spec-note{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:.72rem;line-height:1.4;color:var(--warn-ink)}.swatch-row{display:flex;flex-wrap:wrap;align-items:center;gap:14px}.swatches{display:flex;flex-wrap:wrap;gap:12px;padding:4px 2px}.swatch{position:relative;width:44px;height:44px;padding:0;border:3px solid #fff;border-radius:14px;cursor:pointer;box-shadow:0 0 0 1px var(--line),0 4px 10px -8px #0f172a99;transition:box-shadow .16s,transform .16s}.swatch:hover{transform:translateY(-2px)}.swatch.active{box-shadow:0 0 0 2px var(--blue),0 10px 20px -12px #2563ebcc}.swatch.active:after{content:"✓";position:absolute;right:-7px;bottom:-7px;width:19px;height:19px;border:2px solid #fff;border-radius:50%;background:var(--blue);color:#fff;font-size:10px;font-weight:700;line-height:15px;text-align:center}.toggle{display:flex;flex-direction:row;align-items:flex-start;gap:12px;padding:13px 14px;border:1px solid var(--line);border-radius:var(--radius);background:#fbfcff;font-size:.88rem;line-height:1.55;color:var(--ink-2);cursor:pointer}.toggle:hover{border-color:#d5e2f7}.toggle input[type=checkbox]{-moz-appearance:none;appearance:none;-webkit-appearance:none;flex:0 0 auto;width:44px;height:26px;margin:0;border-radius:999px;background:#d7dfec;position:relative;cursor:pointer;transition:background .2s}.toggle input[type=checkbox]:after{content:"";position:absolute;top:3px;left:3px;width:20px;height:20px;border-radius:50%;background:#fff;box-shadow:0 1px 3px #0f172a59;transition:transform .2s var(--ease)}.toggle input[type=checkbox]:checked{background:var(--blue)}.toggle input[type=checkbox]:checked:after{transform:translate(18px)}.toggle input[type=checkbox]:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.toggle .err{display:block;margin-top:2px;color:var(--error);font-size:.8rem}.results{display:flex;flex-direction:column;gap:16px}.results .radio-pill{display:inline-flex;cursor:pointer}.radio-pill{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid var(--line);border-radius:999px;background:#fff;font-size:.88rem;font-weight:600;color:var(--ink-2);transition:border-color .16s,background .16s,color .16s}.radio-pill:hover{border-color:#c5d9f8}.radio-pill.active{border-color:var(--blue);background:var(--blue-tint);color:var(--blue-600)}.radio-pill input{position:absolute;opacity:0;pointer-events:none}.sheet-preview{display:block;width:100%;margin:14px auto 0;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 18px 40px -32px #0f172ab3}.ad{min-height:0}.ad:not([hidden]){min-height:90px;margin:12px 0}.toast{position:fixed;bottom:28px;left:50%;transform:translate(-50%);max-width:min(90vw,480px);padding:12px 18px;border:1px solid rgba(255,255,255,.12);border-radius:14px;background:#0f172ae6;color:#fff;font-size:.88rem;line-height:1.5;box-shadow:0 20px 40px -20px #0f172acc;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);z-index:50;animation:toast-in .24s var(--ease)}@keyframes toast-in{0%{opacity:0;transform:translate(-50%,8px)}}.footer{margin-top:28px;padding-top:18px;border-top:1px solid var(--line);display:flex;flex-wrap:wrap;gap:6px 16px;justify-content:center;font-size:.78rem;color:var(--muted)}.footer strong{color:var(--ink-2);font-weight:600}@media (min-width: 1024px){.stage{align-items:stretch}.source-layout{display:grid;grid-template-columns:1.45fr 1fr;gap:16px;align-items:start}.feature-grid{grid-template-columns:1fr}.editor{flex-direction:row;align-items:flex-start}.editor-preview{flex:0 0 60%;max-width:60%;position:sticky;top:16px}.editor-controls{flex:1 1 auto;min-width:0}.spec-list{max-height:360px}}@media (prefers-reduced-motion: reduce){*,*:before,*:after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
