.dashboard-grid:has(.editor-workbench){display:block}.dashboard-grid:has(.editor-workbench) .dashboard-topbar,.dashboard-grid:has(.editor-workbench)>.sidebar{display:none}.dashboard-grid:has(.editor-workbench) .dashboard-content{padding:0;max-width:none}.editor-workbench{height:100dvh;display:flex;flex-direction:column;min-width:0;background:var(--bg)}.workbench-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:12px 16px;border-bottom:1px solid var(--border,#333)}.workbench-toolbar .select{width:auto;max-width:240px;min-width:100px}.workbench-toolbar>span{font-size:12px;opacity:.8}.workbench-device-scope{display:flex;flex-wrap:wrap;align-items:center;gap:5px;margin:0;padding:4px 7px 5px;border:1px solid var(--line);border-radius:10px;font-size:11px}.workbench-device-scope legend{padding:0 4px;font-weight:700}.workbench-device-scope label{display:inline-flex;align-items:center;gap:3px;white-space:nowrap;cursor:pointer}.workbench-device-scope input{accent-color:var(--brand)}.workbench-device-scope button[aria-pressed=true]{color:var(--brand);border-color:var(--brand);background:var(--brand-soft)}.workbench-preview-zoom{display:flex;align-items:center;gap:8px}.workbench-preview-zoom label{display:flex;align-items:center;gap:6px;font-size:11px}.workbench-preview-zoom input{width:110px;accent-color:var(--brand)}.workbench-preview-zoom output{min-width:35px;font-size:11px;font-weight:700}.editor-library-toolbar{display:flex;flex-wrap:wrap;gap:8px;padding:8px 16px;border-bottom:1px solid var(--border,#333)}.editor-library-dialog{width:min(1100px,calc(100vw - 28px));max-height:calc(100dvh - 28px);overflow:auto;padding:24px}.editor-library-dialog>header{display:flex;justify-content:space-between;align-items:flex-start;gap:16px}.editor-library-dialog>header h2{margin:0 0 5px}.editor-library-dialog>header p{margin:0 0 16px;color:var(--muted)}.editor-library-dialog .search-box{width:100%}.editor-library-categories{display:flex;overflow:auto;gap:7px;padding:16px 0}.editor-library-categories button{flex:none;padding:9px 13px;border:1px solid var(--line);border-radius:999px}.editor-library-categories button.active{color:var(--brand);border-color:var(--brand);background:var(--brand-soft)}.editor-project-basket{border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:16px}.editor-project-basket summary{cursor:pointer;font-weight:700}.editor-project-basket-list{display:grid;gap:8px;margin-top:12px}.editor-project-basket-list>div{display:flex;align-items:center;gap:8px;min-width:0}.editor-project-basket-list>div>span:nth-child(2){flex:1;min-width:0;overflow-wrap:anywhere}.editor-project-basket-list button{border:1px solid var(--line);border-radius:8px;padding:7px 9px}.editor-library-mini{display:block;flex:none;width:25px;height:25px;border-radius:6px;border:1px solid var(--line)}.editor-library-results{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:12px;margin-top:16px}.editor-library-card{display:flex;flex-direction:column;min-width:0;overflow:hidden;border:1px solid var(--line);border-radius:14px}.editor-library-art{position:relative;height:110px;display:grid;place-items:center;overflow:hidden}.editor-library-art>span{z-index:1;font-size:12px;font-weight:800}.editor-library-card-body{padding:12px;display:grid;gap:5px}.editor-library-card-body small{color:var(--muted)}.editor-library-card-body p{margin:0;color:var(--muted);font-size:12px;line-height:1.4}.editor-library-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;padding:10px;margin-top:auto}.editor-library-actions .button{white-space:normal;font-size:11px}.editor-library-custom-color{display:flex;flex-wrap:wrap;align-items:end;gap:8px;margin-top:16px}.editor-library-custom-color .field{margin:0}.workbench-range{display:grid;gap:5px;margin:12px 0;font-size:12px}.workbench-range>span{display:flex;justify-content:space-between;gap:8px}.workbench-range input{width:100%;accent-color:var(--brand)}.workbench-layout{flex:1;min-height:0;display:grid;grid-template-columns:240px minmax(0,1fr) 300px}.workbench-layout.is-preview{grid-template-columns:minmax(0,1fr)}.workbench-left,.workbench-right{overflow-y:auto;padding:16px;min-width:0;border-right:1px solid var(--border,#333)}.workbench-right{border-left:1px solid var(--border,#333);border-right:0}.workbench-left h3,.workbench-right h3{font-size:13px;margin:20px 0 12px}.workbench-left .field,.workbench-right .field{margin-top:14px;min-width:0;font-size:12px}.workbench-right input[type=file]{width:100%;font-size:12px}.workbench-right fieldset{padding:0;border:0;min-width:0}.workbench-row{display:flex;align-items:center;gap:6px;width:100%;min-height:40px;padding:7px;border-radius:8px;font-size:12px}.workbench-row>button:first-child{text-align:left;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workbench-row.active{background:#7562ef26;color:#998aff}.workbench-add{display:grid;grid-template-columns:1fr 1fr;gap:6px}.workbench-color{display:flex;gap:8px;align-items:center}.workbench-color>input[type=color]{flex:0 0 36px;width:36px;height:36px;padding:0;border:0;background:none}.workbench-product{border:1px solid var(--border,#333);border-radius:8px;padding:10px;margin:10px 0}.workbench-product summary{cursor:pointer;overflow-wrap:anywhere;font-weight:600}.workbench-product p,.workbench-right>p{font-size:12px;line-height:1.6;margin:12px 0;overflow-wrap:anywhere}.workbench-product a{color:var(--accent,#8c7cff);text-decoration:underline}.workbench-product>button{margin:8px 0}.product-disclosure{width:100%;display:grid;grid-template-columns:52px minmax(0,1fr) 18px;align-items:center;gap:10px;text-align:left;padding:0;background:none;color:inherit}.product-disclosure>span:nth-child(2){min-width:0;display:grid;gap:3px}.product-disclosure b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.product-disclosure small{color:var(--muted);font-size:11px}.product-disclosure[aria-expanded=true]>svg{transform:rotate(180deg)}.product-row-thumb{width:52px;height:52px;overflow:hidden;border-radius:9px;background:var(--surface-soft);display:grid;place-items:center;font-size:10px}.product-row-thumb img{width:100%;height:100%}.product-expanded{padding-top:12px}.product-crop-controls{display:grid;gap:8px;margin:16px 0}.product-crop-controls>b{font-size:12px}.product-crop-controls>small{color:var(--muted);line-height:1.5}.product-crop-frame{height:180px;overflow:hidden;border:1px solid var(--line);border-radius:12px;background:var(--surface-soft);display:grid;place-items:center;touch-action:none;cursor:grab}.product-crop-frame:active{cursor:grabbing}.product-crop-frame img{width:100%;height:100%;pointer-events:none}.product-crop-frame>span{padding:12px;text-align:center;color:var(--muted);font-size:12px}.product-crop-controls input[type=range]{width:100%;accent-color:var(--brand)}.product-layout-controls h4{margin:0 0 8px}.product-layout-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px}.product-layout-mode{display:flex;gap:6px;margin:10px 0}.product-layout-mode button[aria-pressed=true]{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}.product-placement-controls{border-top:1px solid var(--line);padding-top:8px}.product-layout-grid .workbench-range{min-width:0}.product-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}.product-assignment{display:flex;align-items:center;gap:9px;margin:8px 0;font-size:13px}.workbench-left>.button{width:100%;white-space:normal}.workbench-right .settings-tabs{display:flex;gap:4px}.workbench-right .settings-tabs button{flex:1;padding:10px 5px}.workbench-swatch{padding:10px 0;border-bottom:1px solid var(--border,#333)}.workbench-swatch button{border:1px solid var(--border,#333);border-radius:8px;padding:8px;font-size:12px}.builder-cta:disabled{opacity:.5;cursor:not-allowed}.workbench-canvas{overflow:auto;min-width:0;padding:20px 0;background:#222331}.workbench-canvas>div{margin:0 auto}.builder-site{position:relative;min-height:900px;overflow:clip;container-type:inline-size}.builder-site-nav{display:flex;flex-wrap:wrap;justify-content:space-between;gap:20px;align-items:center;padding:24px 40px;background:var(--site-surface)}.builder-site-nav>div{display:flex;flex-wrap:wrap;gap:20px;font-size:14px}.builder-site-nav a,.builder-site-nav button{color:inherit}.editor-library-art.glass-style-preview{position:relative;isolation:isolate;overflow:hidden;background:#101a45!important;color:#fff!important}.editor-library-art.glass-style-preview .living-gradient-background{position:absolute;inset:0}.editor-library-art.glass-style-preview:after{content:"Стиль";position:absolute;inset:auto 12px 10px;z-index:1;font:700 19px Georgia,serif;color:#fff}.builder-cart-trigger{padding:10px 16px;border:1px solid color-mix(in srgb,var(--site-accent) 35%,transparent);border-radius:12px;background:color-mix(in srgb,var(--site-accent) 10%,var(--site-surface));font-weight:750}.builder-section{position:relative;isolation:isolate;overflow:hidden;box-sizing:border-box;scroll-margin-top:20px}.builder-section.selected{outline:3px solid #8c7cff;outline-offset:-3px;overflow:visible;z-index:3}.builder-section-content{position:relative;z-index:1;padding:560px 8% 80px}.builder-section h2{line-height:1.12;margin:0 0 20px;overflow-wrap:anywhere;letter-spacing:-.035em}.builder-section p{line-height:1.6;white-space:pre-wrap;margin:0 0 28px;overflow-wrap:anywhere}.builder-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.builder-background-mover{position:absolute;inset:0;z-index:7;display:grid;place-items:center;cursor:grab;touch-action:none;background:#1112}.builder-background-mover:active{cursor:grabbing}.builder-background-mover span{pointer-events:none;padding:9px 14px;border-radius:999px;background:#111c;color:white;font-size:14px;font-weight:700}.section-background-media-actions{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:8px 0 12px}.section-background-media-actions small{flex-basis:100%;color:var(--muted)}.section-background-media-actions button[aria-pressed=true]{border-color:var(--brand);color:var(--brand);background:var(--brand-soft)}.builder-cta{display:inline-flex;align-items:center;justify-content:center;padding:16px 28px;background:var(--site-accent);color:white;border-radius:12px;text-decoration:none;cursor:pointer;line-height:1.4}.builder-layer{z-index:2}.builder-layer.editable:hover{outline:2px dashed #8c7cff;outline-offset:-2px}.builder-layer.editable.selected{outline:3px solid #6f5cff;outline-offset:-3px;box-shadow:0 0 0 1px #fff8}.builder-layer[data-cropping=true]{cursor:grab!important}.builder-layer[data-cropping=true]:active{cursor:grabbing!important}.element-motion,.visual-composition{width:100%;height:100%}.visual-composition{display:flex;flex-direction:column;min-width:0;overflow:hidden;border-radius:inherit;background:inherit;color:inherit;box-shadow:0 18px 45px #080c2650}.visual-window{border:1px solid #ffffff40}.visual-window-bar{flex:none;height:38px;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 14px;border-bottom:1px solid #ffffff38;background:#ffffff17;font-size:12px;font-weight:600}.visual-window-dots{color:#ff998c;letter-spacing:2px;white-space:nowrap}.visual-media-frame{position:relative;flex:1;min-height:0;overflow:hidden;background:linear-gradient(130deg,#1c3666,#5154bb 55%,#9b55b8)}.visual-media-frame img,.visual-media-frame video{display:block;width:100%;height:100%;pointer-events:none}.visual-media-placeholder{position:absolute;inset:0;overflow:hidden;background:radial-gradient(circle at 80% 24%,#b689ec 0,transparent 34%),radial-gradient(circle at 20% 90%,#46c5de 0,transparent 46%),linear-gradient(145deg,#162744,#47418d)}.visual-media-placeholder span{position:absolute;width:38%;aspect-ratio:1;border:1px solid #ffffff66;border-radius:28%;transform:rotate(24deg);left:12%;top:16%;box-shadow:0 16px 28px #10133344}.visual-media-placeholder span:nth-child(2){left:54%;top:38%;width:28%;transform:rotate(-18deg)}.visual-media-placeholder span:nth-child(3){left:42%;top:-34%;width:48%;transform:rotate(46deg)}.visual-copy{flex:none;display:flex;flex-direction:column;align-items:flex-start;gap:5px;min-width:0;padding:16px 20px 20px;background:inherit;color:inherit;text-align:left}.visual-copy strong{font:inherit;font-weight:inherit;line-height:1.15;overflow-wrap:anywhere}.visual-copy p{margin:0;font-size:.62em;line-height:1.45;opacity:.78;white-space:normal;overflow-wrap:anywhere}.visual-copy a{display:inline-flex;align-items:center;justify-content:space-between;gap:12px;width:auto;max-width:100%;margin-top:7px;padding:7px 11px;border:1px solid #ffffff65;border-radius:999px;font-size:.55em;font-weight:700;text-decoration:none;color:inherit}.visual-copy a:hover{background:#ffffff24}.visual-badge{display:inline-flex;max-width:100%;padding:4px 8px;border:1px solid #ffffff55;border-radius:999px;background:#ffffff16;font-size:.48em;font-weight:700}[data-motion=appear]{animation:visual-appear var(--visual-duration,4s) var(--visual-easing,ease) both}[data-motion=float]{animation:visual-float var(--visual-duration,4s) var(--visual-easing,ease-in-out) infinite alternate}[data-motion=glow]{animation:visual-glow var(--visual-duration,4s) var(--visual-easing,ease-in-out) infinite alternate}@keyframes visual-appear{0%{opacity:0;transform:translateY(16px) scale(.98)}to{opacity:1;transform:translateY(0) scale(1)}}@keyframes visual-float{0%{transform:translateY(0)}to{transform:translateY(-10px)}}@keyframes visual-glow{0%{filter:drop-shadow(0 0 0 #837dff00)}to{filter:drop-shadow(0 0 18px #837dff88)}}@media (prefers-reduced-motion:reduce){[data-motion=appear],[data-motion=float],[data-motion=glow]{animation:none!important;transform:none!important;filter:none!important}}.visual-layer-settings{display:grid;gap:10px;padding:12px 0;border-bottom:1px solid #8883}.visual-layer-settings h4{margin:0}.photo-crop-controls{display:grid;gap:12px;padding:14px;margin:12px 0;border:1px solid #8c7cff88;border-radius:14px;background:#8c7cff11}.photo-crop-controls h4,.photo-crop-controls p{margin:0}.photo-crop-actions{display:flex;flex-wrap:wrap;gap:8px}.builder-layer-resize{position:absolute;z-index:5;width:18px;height:18px;padding:0;border:2px solid white;border-radius:5px;background:#6f5cff;box-shadow:0 2px 9px #18182755;touch-action:none}.builder-layer-resize.edge-nw{top:-9px;left:-9px;cursor:nwse-resize}.builder-layer-resize.edge-n{top:-9px;left:calc(50% - 9px);cursor:ns-resize}.builder-layer-resize.edge-ne{top:-9px;right:-9px;cursor:nesw-resize}.builder-layer-resize.edge-e{top:calc(50% - 9px);right:-9px;cursor:ew-resize}.builder-layer-resize.edge-se{bottom:-9px;right:-9px;cursor:nwse-resize}.builder-layer-resize.edge-s{bottom:-9px;left:calc(50% - 9px);cursor:ns-resize}.builder-layer-resize.edge-sw{bottom:-9px;left:-9px;cursor:nesw-resize}.builder-layer-resize.edge-w{top:calc(50% - 9px);left:-9px;cursor:ew-resize}.builder-section-resize{position:absolute;left:10%;right:10%;bottom:4px;z-index:8;height:12px;border:0;border-radius:999px;background:#6f5cff;box-shadow:0 2px 10px #18182744;cursor:ns-resize;opacity:.85}.builder-products{display:grid;grid-template-columns:repeat(var(--product-columns-desktop,4),minmax(0,1fr));gap:var(--product-gap,18px);text-align:left}.builder-products article{min-width:0;min-height:var(--product-card-min-height,330px);border-radius:18px;background:var(--site-surface);color:var(--site-text);overflow:hidden;padding:var(--product-card-padding,16px);display:flex;flex-direction:column}.builder-products.is-free{position:absolute;inset:0;display:block;z-index:3;pointer-events:none}.builder-products.is-free article{position:absolute;pointer-events:auto;height:auto;min-height:180px;box-shadow:0 14px 40px #1112;overflow:visible}.builder-products.is-free article.selected{outline:3px solid #6f5cff;outline-offset:2px}.builder-products.is-free .product-image-frame{height:min(var(--product-image-height,190px),calc(var(--card-width) * .55))}.builder-products.is-free .product-open h3{margin:8px 0 4px;line-height:1.2}.builder-products.is-free .product-open strong{margin:auto 0 8px}.builder-products.is-free .product-cart-button{line-height:1.2;white-space:normal;overflow-wrap:anywhere}.product-card-move{top:-18px;right:0;border:0;border-radius:999px;color:#fff;padding:5px 10px;font-size:12px;font-weight:700;cursor:move}.product-card-move,.product-card-resize{position:absolute;z-index:5;background:#6f5cff;touch-action:none}.product-card-resize{right:-8px;bottom:-8px;width:20px;height:20px;border:2px solid white;border-radius:5px;box-shadow:0 2px 9px #18182755;cursor:nwse-resize}.product-open{display:flex;flex:1;flex-direction:column;align-items:stretch;text-align:left;width:100%;min-width:0}.product-image-frame{display:block;width:100%;height:var(--product-image-height,190px);flex:none;overflow:hidden;border-radius:12px;background:#8882}.product-image-frame .product-placeholder,.product-image-frame img{display:block;width:100%;height:100%}.product-placeholder{width:100%;height:100%;display:grid;place-items:center;background:#8882}.product-open h3{font-size:var(--product-name-size,20px);margin:16px 0 8px;overflow-wrap:anywhere}.product-open strong{display:block;margin:auto 0 14px;font-size:var(--product-price-size,22px)}.product-cart-button{width:100%;padding:var(--product-button-padding-y,12px) var(--product-button-padding-x,20px);border-radius:var(--product-button-radius,12px);font-size:var(--product-button-font-size,15px)}@container (max-width: 900px){.builder-products{grid-template-columns:repeat(var(--product-columns-tablet,4),minmax(0,1fr))}}@container (max-width: 520px){.builder-products{grid-template-columns:repeat(var(--product-columns-mobile,2),minmax(0,1fr))}}.builder-overlay{position:fixed;inset:0;z-index:100;overflow-y:auto;padding:32px;background:#111a;color:#181827}.builder-dialog{position:fixed;inset:0;margin:auto;border:0;padding:0;width:min(900px,calc(100vw - 32px));max-height:calc(100dvh - 32px);overflow:auto;font-size:16px}.builder-cart-dialog{inset:0 0 0 auto;width:min(520px,100vw);height:100dvh;max-height:100dvh;margin:0 0 0 auto;overflow:hidden}.builder-dialog::backdrop{background:#111a}.builder-dialog .builder-product-detail{background:var(--site-surface);color:var(--site-text)}.builder-dialog .builder-product-detail .input,.builder-dialog .builder-product-detail .textarea{background:var(--site-surface);color:var(--site-text);border:1px solid #8888}.builder-dialog button:focus-visible,.builder-dialog textarea:focus-visible{outline:3px solid var(--site-accent);outline-offset:3px}.builder-product-detail{max-width:900px;margin:auto;background:white;padding:32px;border-radius:20px}.builder-product-detail>img{max-height:500px;width:100%;object-fit:contain;margin:24px 0}.builder-product-detail h1{font-size:36px;margin:24px 0}.builder-product-detail p{white-space:pre-wrap;margin:16px 0}.builder-product-detail .field{margin:24px 0}.builder-cart-drawer{min-height:100dvh;padding:28px;background:var(--site-surface);color:var(--site-text);display:flex;flex-direction:column}.builder-cart-drawer>header{position:relative;display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding-bottom:20px;border-bottom:1px solid #8884}.builder-cart-drawer h1{margin:3px 0 0;font-size:32px}.builder-cart-drawer .dialog-close{position:static;width:40px;height:40px;border-radius:50%;background:#8882;font-size:24px}.builder-cart-row{display:grid;grid-template-columns:88px minmax(0,1fr) auto;align-items:center;gap:14px;border-bottom:1px solid #8883;padding:18px 0}.builder-cart-row>.cart-thumb,.builder-cart-row>img{width:88px;height:88px;border-radius:12px;object-fit:cover;background:#8882;display:grid;place-items:center}.builder-cart-row>div{display:grid;gap:5px;min-width:0}.builder-cart-row b{overflow-wrap:anywhere}.builder-cart-row span{color:color-mix(in srgb,var(--site-text) 70%,transparent)}.cart-quantity{display:inline-flex;width:fit-content;align-items:center;gap:12px;padding:4px;border:1px solid #8884;border-radius:10px}.cart-quantity button{width:28px;height:28px;border-radius:7px;background:#8882}.cart-remove{color:#c3344b;font-size:13px}.builder-cart-drawer footer{margin-top:auto;padding-top:24px}.cart-total{display:flex;justify-content:space-between;gap:16px;font-size:20px}.builder-cart-drawer footer .builder-cta{width:100%}.cart-empty{margin:auto;color:color-mix(in srgb,var(--site-text) 60%,transparent)}.editor-empty{padding:8px 20px}.export-code-dialog{position:relative;width:min(960px,100%);max-height:calc(100dvh - 40px);display:flex;flex-direction:column}.export-code-dialog>p{margin-top:4px}.export-code{width:100%;min-height:min(58dvh,620px);resize:vertical;padding:16px;border:1px solid var(--line);border-radius:12px;background:#0e1019;color:#e9e9f2;font:12px/1.55 ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;white-space:pre;tab-size:2}.export-code-dialog>div:last-child{flex-wrap:wrap}.wizard-freeform{display:grid;gap:2px}.wizard-hints{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0}.wizard-hints button{min-height:34px;padding:7px 12px;border:1px solid var(--line);border-radius:20px;background:var(--surface-soft);color:var(--muted);font:inherit;font-size:12px;font-weight:750;cursor:pointer}.wizard-hints button.selected,.wizard-hints button:hover{border-color:var(--brand);color:var(--brand)}.wizard-hints button.selected{background:var(--brand-soft)}.section-count-editor{display:grid;gap:2px}.wizard-review-fields{display:grid;gap:20px}.review-edit-note{margin:0;padding:12px 14px;border-radius:12px;background:var(--brand-soft);color:var(--brand);font-size:12px;font-weight:750;line-height:1.5}.wizard-review-edit-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;align-items:start}.wizard-review-edit-grid .field{min-width:0}.wizard-review-edit-grid .textarea{min-height:112px}.review-format-grid{align-items:end}.review-color{min-height:48px;margin-top:0}@media (max-width:700px){.wizard-review-edit-grid{grid-template-columns:1fr}}@media (max-width:1100px){.workbench-layout{grid-template-columns:190px minmax(0,1fr) 260px}.workbench-toolbar{padding:8px}}@media (max-width:760px){.editor-workbench{height:auto;min-height:100dvh}.workbench-layout{display:flex;flex-wrap:wrap;overflow:visible}.workbench-left{width:100%;max-height:240px}.workbench-canvas{width:100%;max-height:70vh;min-height:320px}.workbench-right{width:100%;overflow:visible}.workbench-toolbar .select{max-width:160px}.product-layout-grid{grid-template-columns:1fr}}.code-studio{display:flex;flex-direction:column;gap:14px;min-width:0;width:100%;color:var(--text)}.code-studio-actions,.code-studio-footer,.code-studio-header,.code-studio-identity,.code-studio-toolbar{display:flex;align-items:center;gap:10px;min-width:0;flex-wrap:wrap}.code-studio-header{justify-content:space-between}.code-studio-identity{flex:1 1 240px}.code-studio-identity h1{font-size:1.1rem;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;max-width:100%}.chat-project-summary .button,.code-studio .button,.code-studio-switch button{white-space:nowrap;flex-shrink:0;min-height:42px;height:auto;padding:10px 14px;line-height:1.2;font-size:.8rem;display:inline-flex;align-items:center;justify-content:center;gap:7px}.code-studio-toolbar{padding:10px;border:1px solid var(--line);background:var(--surface);border-radius:16px;box-shadow:0 8px 35px #17133105}.code-studio-switch{display:inline-flex;padding:3px;border-radius:12px;background:var(--surface-soft);flex-shrink:0}.code-studio-switch button{border:0;border-radius:9px;background:transparent;color:var(--muted);cursor:pointer;font:inherit;font-size:.8rem;padding:9px 14px;min-height:38px}.code-studio-switch button[aria-pressed=true]{background:var(--surface);color:var(--brand);box-shadow:0 2px 8px #17133110}.code-studio-device{min-width:0}.code-studio-device .select{width:auto;max-width:100%;font-size:.78rem;min-height:42px;padding:9px}.code-studio-status{font-size:.72rem;color:var(--muted);flex:1 1 180px;overflow-wrap:anywhere}.code-studio-toolbar .field-error{flex:1 1 200px;font-size:.75rem;margin:0}.code-studio-stage{background:var(--surface-soft);border:1px solid var(--line);border-radius:18px;padding:12px;display:flex;justify-content:center;min-width:0;overflow:hidden}.code-studio-stage iframe{display:block;flex-shrink:0;min-width:0;height:max(520px,calc(100dvh - 300px));border:0;border-radius:9px;background:#fff;box-shadow:0 10px 35px #17133112;transition:width .2s ease}.code-studio-files{display:grid;grid-template-columns:180px minmax(0,1fr);border:1px solid var(--line);border-radius:18px;overflow:hidden;min-width:0;background:var(--surface)}.code-studio-files nav{display:flex;flex-direction:column;align-items:stretch;gap:5px;padding:10px;background:var(--surface-soft);overflow:auto;min-width:0}.code-studio-files nav button{display:flex;align-items:center;gap:7px;text-align:left;border:0;border-radius:9px;padding:12px 8px;background:transparent;color:var(--muted);font:inherit;font-size:.75rem;cursor:pointer;white-space:nowrap}.code-studio-files nav button[aria-pressed=true]{color:var(--brand);background:var(--brand-soft)}.code-studio-source{min-width:0;display:flex;flex-direction:column}.code-studio-source>label{padding:12px 16px;display:flex;justify-content:space-between;gap:10px;border-bottom:1px solid var(--line);font-size:.8rem}.code-studio-source>label span{color:var(--muted);font-size:.7rem}.code-studio-source textarea{display:block;width:100%;min-width:0;min-height:max(500px,calc(100dvh - 310px));resize:vertical;border:0;padding:18px;background:var(--surface);color:var(--text);font:400 .78rem/1.7 ui-monospace,SFMono-Regular,Menlo,monospace;tab-size:2;white-space:pre;overflow:auto}.code-studio-source textarea[readonly]{background:color-mix(in srgb,var(--surface-soft) 45%,var(--surface));color:var(--muted)}.code-studio-placeholder{min-height:440px;max-width:600px;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:28px;gap:14px}.code-studio-placeholder h2,.code-studio-placeholder p{margin:0}.code-studio-placeholder p{color:var(--muted);font-size:.85rem;line-height:1.6}.code-studio-notice{padding:12px 15px;margin:0;background:var(--brand-soft);border-radius:12px;color:var(--muted);font-size:.78rem;line-height:1.5}.code-studio-footer{justify-content:flex-end}.site-palette-picker{min-width:0;margin:0;padding:15px;border:1px solid var(--line);border-radius:14px}.site-palette-picker legend{padding:0 6px;font-size:.8rem;font-weight:800}.site-palette-picker>small{display:block;color:var(--muted);font-size:.7rem;margin-top:10px;line-height:1.5}.site-palette-options{display:grid;grid-template-columns:repeat(auto-fit,minmax(105px,1fr));gap:8px}.site-palette-options>label{min-width:0;position:relative;border:1px solid var(--line);border-radius:12px;padding:10px;display:flex;flex-direction:column;gap:8px;cursor:pointer;background:var(--surface)}.site-palette-options>label.selected{border-color:var(--brand);box-shadow:0 0 0 1px var(--brand);background:var(--brand-soft)}.site-palette-options input{position:absolute;top:8px;right:8px;accent-color:var(--brand)}.site-palette-options b{font-size:.7rem}.palette-swatches{display:flex;height:24px;width:70px;border-radius:7px;overflow:hidden;border:1px solid #00000012}.palette-swatches i{flex:1}.palette-auto{height:24px;font-size:22px;color:var(--brand)}.site-palette-custom{display:grid;grid-template-columns:repeat(auto-fit,minmax(110px,1fr));gap:10px;margin-top:15px}.site-palette-custom label{display:grid;gap:6px;font-size:.75rem}.site-palette-custom input{width:100%;height:36px;border:1px solid var(--line);padding:3px;border-radius:8px;background:var(--surface)}.site-palette-custom small{color:var(--muted);font-size:.7rem}.chat-project-summary{display:flex;align-items:center;gap:8px 12px;flex-wrap:wrap;border:1px solid var(--line);border-radius:14px;padding:10px 12px;margin-bottom:10px;background:var(--surface)}.chat-project-summary>div{display:flex;align-items:center;gap:8px;min-width:0;flex:1 1 160px}.chat-project-summary strong{font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.chat-project-summary small{font-size:.65rem;color:var(--muted)}.chat-project-summary details{flex-basis:100%;min-width:0}.chat-project-summary summary{font-size:.7rem;cursor:pointer;color:var(--muted)}.chat-project-summary .button{min-height:36px;padding:8px 10px;font-size:.7rem}.chat-project-summary .site-palette-picker{margin-top:10px}.site-generation-progress{border:1px solid var(--line);border-radius:20px;padding:22px;background:var(--surface);width:min(100%,540px);min-width:0}.generation-heading{display:flex;align-items:center;gap:12px}.generation-heading strong{font-size:.9rem}.site-generation-progress>p{font-size:.85rem;margin:14px 0}.site-generation-progress>ol{list-style:none;padding:0;margin:12px 0;display:grid;gap:10px}.site-generation-progress li{display:flex;align-items:center;gap:10px;font-size:.76rem}.site-generation-progress li>span{border:1px solid var(--line);border-radius:50%;width:24px;height:24px;display:grid;place-items:center;flex-shrink:0;font-size:.65rem}.site-generation-progress .done{color:#17845c}.site-generation-progress .current{font-weight:800;color:var(--brand)}.site-generation-progress .pending{color:var(--muted);opacity:.65}.site-generation-progress details{margin-top:10px;font-size:.65rem;color:var(--muted);overflow-wrap:anywhere}.site-generation-progress summary{cursor:pointer}.site-generation-progress>small{font-size:.66rem;color:var(--muted)}.generation-dots{display:flex;gap:4px}.generation-dots i{width:6px;height:6px;border-radius:50%;background:var(--brand);animation:generation-dot 1.2s ease-in-out infinite}.generation-dots i:nth-child(2){animation-delay:.15s}.generation-dots i:nth-child(3){animation-delay:.3s}.generation-meter{height:4px;background:var(--line);border-radius:4px;overflow:hidden;margin:15px 0 10px}.generation-meter i{display:block;height:100%;background:var(--brand);transition:width .2s}@keyframes generation-dot{0%,70%,to{opacity:.3;transform:translateY(0)}35%{opacity:1;transform:translateY(-3px)}}.freeform-next-actions .button,.freeform-wizard .wizard-actions>.button{white-space:nowrap;min-height:42px;line-height:1.2;height:auto}.freeform-wizard .wizard-actions{gap:12px;flex-wrap:wrap;align-items:center}.freeform-next-actions{flex-wrap:wrap;min-width:0}.project-actions{flex-wrap:wrap}.project-actions .button{white-space:nowrap;flex:1 1 140px;min-height:38px}.chat-composer-wrap{min-width:0}.chat-main{grid-template-rows:auto minmax(0,1fr) auto}.chat-topbar,.chat-topbar-title{min-width:0}.chat-model-switch{max-width:100%;min-width:0;overflow-x:auto;flex-wrap:nowrap}.chat-model-switch button{white-space:nowrap;flex-shrink:0}.code-studio button:focus-visible,.code-studio textarea:focus-visible,.site-palette-picker input:focus-visible{outline:3px solid var(--brand);outline-offset:2px}@media(max-width:720px){.code-studio-header,.code-studio-toolbar{gap:8px}.code-studio-actions{width:100%}.code-studio .button{font-size:.72rem;padding:10px}.code-studio-status{flex-basis:100%}.code-studio-files{grid-template-columns:minmax(0,1fr)}.code-studio-files nav{flex-direction:row;border-bottom:1px solid var(--line)}.code-studio-source>label span{display:none}.code-studio-stage{padding:5px}.code-studio-stage iframe{min-height:480px;height:calc(100dvh - 280px)}.code-studio-footer{justify-content:flex-start}.site-generation-progress{padding:16px}.chat-project-summary>div>small{display:none}.chat-project-summary .button{font-size:.65rem}.freeform-next-actions{width:100%;justify-content:flex-start}.freeform-wizard .wizard-actions .button{font-size:.72rem;max-width:100%;padding:10px}.site-palette-options{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(prefers-reduced-motion:reduce){.generation-dots i{animation:none}.code-studio-stage iframe,.generation-meter i{transition:none}}.chat-main{grid-template-rows:minmax(0,1fr) auto}.projects-page{container:projects/inline-size;min-width:0}.projects-heading-actions{display:flex;flex-wrap:nowrap;gap:12px;align-items:center}.projects-heading-actions .button{white-space:nowrap;font-size:.8rem;min-height:44px;padding-inline:14px}.projects-page .project-card{container:project-card/inline-size;min-width:0;display:flex;flex-direction:column}.projects-page .project-cover{flex-shrink:0}.projects-page .project-card-body{display:flex;flex:1;flex-direction:column}.projects-page .project-card-body .card-head>div{min-width:0;overflow-wrap:anywhere}.projects-page .project-card-body .badge{white-space:nowrap;flex-shrink:0}.projects-page .project-card-controls{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"meta tools" "links links";gap:14px 12px;margin-top:auto;padding-top:15px;align-items:center}.projects-page .project-meta{grid-area:meta;margin:0;flex-wrap:wrap;align-items:center}.projects-page .project-meta span{white-space:nowrap}.projects-page .project-utility-actions{grid-area:tools;display:flex;flex-wrap:nowrap;align-items:center;gap:8px;justify-self:end}.projects-page .project-utility-actions .icon-button{width:36px;height:36px;flex:0 0 36px}.projects-page .project-actions{grid-area:links;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.projects-page .project-actions .button{min-width:0;min-height:40px;padding-inline:9px;gap:6px;font-size:.78rem;white-space:nowrap}@container project-card (max-width: 339px){.projects-page .project-card-body h3{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.projects-page .project-card-controls{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"links links" "meta tools";gap:12px 8px;margin-top:0}.projects-page .project-meta{flex-wrap:nowrap;min-width:0;gap:4px}.projects-page .project-meta span{padding-inline:5px;flex:0 0 auto}.projects-page .project-meta span:last-child{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}.projects-page .project-utility-actions{justify-self:end;gap:4px}.projects-page .project-utility-actions .icon-button{width:28px;height:28px;flex-basis:28px}.projects-page .project-utility-actions svg{width:14px;height:14px}.projects-page .project-actions{grid-template-columns:minmax(0,1fr)}}@media (pointer:coarse){@container project-card (max-width: 339px){.projects-page .project-card-controls{grid-template-columns:minmax(0,1fr);grid-template-areas:"links" "meta" "tools"}.projects-page .project-utility-actions{justify-self:center;gap:8px}.projects-page .project-utility-actions .icon-button{width:44px;height:44px;flex-basis:44px}.projects-page .project-utility-actions svg{width:16px;height:16px}}}@container project-card (min-width: 450px){.projects-page .project-card-controls{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"meta meta" "links tools"}}@container projects (max-width: 1050px){@container project-card (min-width: 340px) and (max-width: 449px){.projects-page .project-meta span{font-size:.7rem;padding:6px 8px}}}@container projects (max-width: 1050px){.projects-heading-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:min(420px,100%);flex-shrink:0;gap:12px}.projects-heading-actions .project-restore-action{grid-column:1/-1}}@container projects (max-width: 720px){.projects-page .page-head{align-items:flex-start;flex-direction:column}}@container projects (max-width: 380px){.projects-heading-actions{width:100%;gap:12px 10px}.projects-heading-actions .button{font-size:.7rem;padding-inline:8px;gap:6px}}