:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;color:#111;background:#f7f3ec}*{box-sizing:border-box}body{margin:0;min-height:100vh}.app{min-height:100vh;background:radial-gradient(circle at 20% 0%,#fff 0,#f6efe4 34%,#e8ded0)}button,input{font:inherit}button{cursor:pointer}.topbar{height:64px;display:flex;align-items:center;justify-content:space-between;padding:0 24px;border-bottom:1px solid rgba(0,0,0,.09);position:sticky;top:0;z-index:20;background:#ffffffb8;-webkit-backdrop-filter:blur(18px);backdrop-filter:blur(18px)}.menuButton{display:flex;align-items:center;gap:8px;border:1px solid #111;border-radius:999px;background:#111;color:#fff;padding:10px 16px}.brandLock{letter-spacing:.02em;text-transform:uppercase;font-size:13px}.gateway{font-size:12px;color:#666}.drawerBackdrop{position:fixed;top:0;right:0;bottom:0;left:0;background:#0000004d;z-index:50}.drawer{width:min(360px,86vw);height:100%;background:#fff;padding:28px;box-shadow:0 20px 80px #00000040;display:flex;flex-direction:column;gap:12px}.drawer .close{margin-left:auto;border:1px solid #ddd;border-radius:999px;background:#fff;width:40px;height:40px}.drawer h2{font-size:30px;letter-spacing:-.04em}.drawer button:not(.close){border:1px solid #ddd;border-radius:18px;background:#f7f7f7;padding:16px;text-align:left}.welcome{min-height:calc(100vh - 64px);display:grid;grid-template-columns:.95fr 1.05fr;gap:36px;padding:48px}.welcomeCopy{align-self:center;max-width:720px}.eyebrow{font-size:11px;letter-spacing:.18em;text-transform:uppercase;color:#777}.welcome h1{font-size:clamp(44px,6vw,86px);line-height:.88;letter-spacing:-.07em;margin:16px 0}.welcome p{font-size:18px;line-height:1.7;color:#57534e;max-width:620px}.primary,.renderButton{border:0;border-radius:999px;background:#111;color:#fff;padding:16px 22px;display:inline-flex;gap:10px;align-items:center;font-weight:700}.studio{display:grid;grid-template-columns:minmax(460px,1fr) minmax(560px,680px);gap:0;height:calc(100vh - 64px)}.leftCanvas{border-right:1px solid rgba(0,0,0,.08);padding:28px;display:flex}.rightPanel{padding:24px;overflow:auto;background:#ffffff8c}.stageTabs{display:grid;grid-template-columns:repeat(5,1fr);gap:10px;margin-bottom:18px}.stageTabs button{border:1px solid rgba(0,0,0,.12);background:#fff;border-radius:999px;padding:12px;font-weight:800}.stageTabs .active{background:#111;color:#fff}.panel{background:#ffffffb8;border:1px solid rgba(0,0,0,.08);border-radius:32px;padding:24px;box-shadow:0 24px 80px #00000012}.panel h2{font-size:34px;letter-spacing:-.05em;margin:8px 0}.panel p{color:#666;line-height:1.55}.panel label{display:block;margin:18px 0 8px;font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:#777}.panel input{width:100%;border:1px solid #ddd;background:#fff;border-radius:18px;padding:15px 16px;font-size:18px;font-weight:700}.chipRow,.pillRow{display:flex;gap:10px;flex-wrap:wrap;margin-top:16px}.chipRow button,.pill{border:1px solid #ddd;background:#fff;border-radius:999px;padding:10px 14px}.pill.active,.chipRow button:hover{background:#111;color:#fff}.circleCarousel{display:flex;gap:12px;overflow-x:auto;padding:10px 0 18px;scroll-snap-type:x mandatory}.circleOption{min-width:88px;height:100px;border:1px solid #ddd;background:#fff;border-radius:999px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;scroll-snap-align:start}.circleOption span{font-size:24px}.circleOption small{font-size:11px;max-width:72px;line-height:1.1}.circleOption.active{background:#111;color:#fff;border-color:#111}.materialGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.material{border:1px solid #ddd;background:#fff;border-radius:20px;padding:12px;min-height:92px}.material span{display:block;width:48px;height:48px;border-radius:50%;margin:0 auto 8px;box-shadow:inset 0 0 12px #fffc,0 8px 18px #0000001f}.material small{font-size:11px}.material.active{border:2px solid #111}.dotGrid{display:flex;gap:10px;flex-wrap:wrap}.dot{width:34px;height:34px;border-radius:50%;border:2px solid #fff;box-shadow:0 0 0 1px #ddd}.dot.active{box-shadow:0 0 0 3px #111}.capGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.capCard{border:1px solid #ddd;border-radius:22px;background:#fff;padding:14px;text-align:left;display:flex;flex-direction:column;gap:8px;min-height:128px}.capCard b{font-size:24px}.capCard span{font-weight:800}.capCard small{color:#777;font-size:11px}.capCard.active{background:#111;color:#fff}.capCard.active small{color:#ddd}.accentGrid{display:flex;gap:10px;flex-wrap:wrap}.accent{border:1px solid #ddd;border-radius:999px;background:#fff;padding:8px 12px;display:flex;align-items:center;gap:9px}.accent span{width:26px;height:26px;border-radius:50%;box-shadow:inset 0 0 9px #fff9}.accent em{font-style:normal;font-size:12px}.accent.active{background:#111;color:#fff}.styleGrid{display:grid;grid-template-columns:repeat(2,1fr);gap:12px}.styleCard{border:1px solid #ddd;background:#fff;border-radius:22px;padding:12px;text-align:left}.styleCard span{display:block;height:70px;border-radius:16px;margin-bottom:10px}.styleCard b{display:block}.styleCard small{color:#777}.styleCard.active{border:2px solid #111}.summaryLine{margin:20px 0;padding:16px;border:1px dashed #aaa;border-radius:18px;background:#fff;color:#444}.renderButton{width:100%;justify-content:center;margin-bottom:10px}.renderButton:disabled{opacity:.6}.saveButton{width:100%;border:1px solid #111;background:#fff;color:#111;border-radius:999px;padding:14px;display:flex;align-items:center;justify-content:center;gap:8px;font-weight:800}.canvasWrap{position:relative;flex:1;min-height:560px;border-radius:38px;background:var(--studio-bg);overflow:hidden;box-shadow:inset 0 0 0 1px #00000014,0 25px 90px #0000001a}.renderedImage{width:100%;height:100%;object-fit:cover;display:block}.localPreview{position:absolute;top:0;right:0;bottom:0;left:0;display:flex;align-items:center;justify-content:center}.studioBg{position:absolute;top:0;right:0;bottom:0;left:0;background:radial-gradient(circle at 50% 15%,rgba(255,255,255,.9),transparent 45%),var(--studio-bg)}.productShape{position:relative;z-index:1;width:210px;height:420px;display:flex;flex-direction:column;align-items:center;filter:drop-shadow(0 45px 45px rgba(0,0,0,.22));transition:.35s}.productShape.vol15{height:330px;width:230px}.productShape.vol50{height:500px;width:205px}.productShape.vol100{height:540px;width:235px}.productShape.volLarge{height:560px;width:260px}.capPreview{width:82px;height:68px;background:var(--accent-bg);border-radius:18px 18px 10px 10px;margin-bottom:-2px;box-shadow:inset 0 6px 12px #ffffff61}.capPreview span{display:block;width:100%;height:100%;background:repeating-linear-gradient(90deg,rgba(0,0,0,.18),rgba(0,0,0,.18) 4px,transparent 4px,transparent 9px);border-radius:inherit}.bottlePreview{width:100%;flex:1;background:linear-gradient(90deg,rgba(255,255,255,.28),transparent 18%,var(--vessel),transparent 82%,rgba(255,255,255,.35)),var(--material-bg);border-radius:52px 52px 38px 38px;position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.55)}.liquidTexture{position:absolute;top:18%;right:10%;bottom:4%;left:10%;border-radius:40px;background:linear-gradient(180deg,#ffffff2e,#0000000d);mix-blend-mode:screen}.labelPreview{position:absolute;left:16%;right:16%;top:41%;min-height:32%;background:#ffffffdb;border-radius:14px;padding:25% 10% 14%;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;color:#111;gap:8px}.labelPreview strong{font-size:clamp(8px,1.1vw,13px);letter-spacing:.12em;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.labelPreview b{font-size:clamp(16px,1.9vw,30px);letter-spacing:-.05em;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.labelPreview small{font-size:10px;letter-spacing:.06em;white-space:nowrap;max-width:100%;overflow:hidden;text-overflow:ellipsis}.productShape.perfume .bottlePreview{border-radius:24px 24px 64px 64px}.productShape.perfume .capPreview{width:92px;height:88px;border-radius:8px}.productShape.jar{height:290px;width:360px}.productShape.jar .capPreview{width:260px;height:58px;border-radius:30px 30px 12px 12px}.productShape.jar .bottlePreview{border-radius:42px;height:210px}.productShape.jar .labelPreview{top:34%;left:24%;right:24%;min-height:38%}.productShape.tube{width:250px;height:470px}.productShape.tube .capPreview{order:2;margin-top:-8px;width:160px;border-radius:12px 12px 30px 30px}.productShape.tube .bottlePreview{border-radius:90px 90px 28px 28px}.productShape.mini{width:180px;height:310px}.canvasCaption{position:absolute;bottom:22px;left:22px;right:22px;text-align:center;color:#00000073;font-size:12px;letter-spacing:.08em;text-transform:uppercase}.loaderOverlay{position:absolute;top:0;right:0;bottom:0;left:0;z-index:5;background:#ffffffb8;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px}.loaderOverlay b{font-size:28px;letter-spacing:-.04em}.loaderOverlay span{color:#666}.docs,.error,.jsonOut{margin-top:16px;border-radius:22px;padding:18px}.docs{background:#111;color:#fff}.docs h3{display:flex;align-items:center;gap:8px}.docs p{color:#ddd}.error{background:#fee2e2;color:#991b1b}.jsonOut{background:#0b1020;color:#c4fcd3;overflow:auto;font-size:12px}@media (max-width:1050px){.studio,.welcome{grid-template-columns:1fr;height:auto}.rightPanel{order:2}.leftCanvas{min-height:600px;border-right:0;border-bottom:1px solid #ddd}.materialGrid,.capGrid,.styleGrid{grid-template-columns:repeat(2,1fr)}}.gateway.ok{border-color:#22c55e73;color:#86efac;background:#16a34a1f}.gateway.bad{border-color:#ef444473;color:#fecaca;background:#dc26261f}.secondaryWelcome{margin-left:12px;display:inline-flex;gap:8px;align-items:center;border:1px solid rgba(255,255,255,.2);background:#ffffff14;color:#fff;border-radius:999px;padding:12px 16px;font-weight:800;letter-spacing:.02em}.globalRender{width:100%;margin:14px 0 18px;display:flex;gap:10px;align-items:center;justify-content:center;border:0;border-radius:18px;padding:16px 18px;background:linear-gradient(135deg,#facc15,#f97316);color:#111;font-weight:950;letter-spacing:.06em;box-shadow:0 18px 60px #f9731647;cursor:pointer}.globalRender:disabled{opacity:.6;cursor:not-allowed}
