:root{
  color-scheme:light;
  --ink:#111;--ink-2:#242424;--muted:#707070;--subtle:#929292;
  --paper:#fff;--canvas:#f3f3f2;--line:#dededb;--line-dark:#2b2b2b;
  --night:#080808;--night-2:#111;--night-3:#191919;--accent:#b8ff3d;
  --radius:10px;--space:16px;
  font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
*{box-sizing:border-box}
html{min-width:320px;background:var(--canvas)}
body{margin:0;min-width:320px;min-height:100vh;background:var(--canvas);color:var(--ink);font-size:14px;line-height:1.45}
button,input,textarea,select{font:inherit}
button{cursor:pointer}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #a8e934;outline-offset:2px}
.topbar{position:relative;z-index:10;display:flex;align-items:center;gap:24px;height:64px;padding:0 clamp(18px,3vw,48px);background:var(--night);border-bottom:1px solid #262626;color:#f7f7f7}
.brand{display:flex;align-items:center;gap:12px;min-width:190px;color:inherit;text-decoration:none}
.brand img{width:40px;height:40px;object-fit:contain;border-radius:9px;background:#050505}
.brand strong{display:block;font-size:15px;line-height:1.2;font-weight:700}
.brand small{display:block;margin-top:3px;color:#9b9b9b;font-size:9px;letter-spacing:.17em;text-transform:uppercase}
.topbar-context{display:flex;align-items:center;gap:13px;min-width:0;margin-left:auto;margin-right:12px}
.topbar-context__project{overflow:hidden;max-width:32vw;color:#f2f2f2;font-weight:650;text-overflow:ellipsis;white-space:nowrap}
.topbar-context__status{display:inline-flex;align-items:center;gap:7px;color:#a8a8a8;font-size:12px}
.topbar-context__status:before{content:"";width:7px;height:7px;border-radius:50%;background:#929292}
.account-button{min-height:38px;padding:0 15px;border:1px solid #353535;border-radius:8px;background:#141414;color:#f5f5f5;font-weight:600}
.account-button:hover{background:#202020;border-color:#555}
.shell{display:flex;flex-direction:column;width:100%;max-width:none;height:calc(100dvh - 94px);min-height:0;margin:0;padding:0 clamp(14px,2vw,30px) 16px}
.intro{display:none}
.builder-flow{position:relative;display:flex;align-items:center;flex:0 0 78px;min-width:0;margin:0;padding:11px clamp(2px,1vw,14px);border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent;box-shadow:none}
.builder-flow__steps{display:flex;align-items:center;width:100%;gap:0}
.builder-flow__step{position:relative;display:flex;flex:1;align-items:center;gap:10px;min-width:0;min-height:48px;padding:4px 12px;border:0;border-radius:0;background:transparent;color:#767676;text-align:left}
.builder-flow__step:not(:last-child):after{position:absolute;top:15px;left:58px;right:7px;height:1px;background:#d6d6d3;content:""}
.builder-flow__step>strong{z-index:1;display:grid;place-items:center;flex:0 0 30px;height:30px;border:1px solid #c4c4c1;border-radius:50%;background:var(--canvas);color:#666;font-size:11px;font-weight:700}
.builder-flow__step>span{z-index:1;display:flex;flex-direction:column;gap:1px;min-width:0;background:var(--canvas);padding-right:5px}
.builder-flow__step b{color:#585858;font-size:12px;font-weight:650}
.builder-flow__step small{color:#8b8b8b;font-size:10px;white-space:nowrap}
.builder-flow__step.is-active>strong,.builder-flow__step[aria-current=step]>strong{border-color:#111;background:#111;color:#fff}
.builder-flow__step.is-active b,.builder-flow__step[aria-current=step] b{color:#111}
.builder-flow__step.is-complete>strong{border-color:#222;background:#222;color:#fff}
.builder-flow__progress{position:absolute;right:12px;bottom:3px;color:#8a8a8a;font-size:10px}
.builder-quickstart{display:grid;grid-template-columns:minmax(190px,.8fr) minmax(0,2fr) auto;align-items:center;gap:18px;margin:0 0 10px;padding:0 2px 10px;border-bottom:1px solid var(--line);background:transparent;color:var(--ink)}
.builder-quickstart__intro{min-width:0}.builder-quickstart__intro .eyebrow{margin:0 0 3px;color:#777;font-size:9px;font-weight:700;letter-spacing:.08em}.builder-quickstart__intro h3{margin:0;color:#171717;font-size:13px;line-height:1.25}.builder-quickstart__intro>p:last-child{display:none}
.builder-quickstart__steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0;padding:0;list-style:none}
.builder-quickstart__steps li{display:flex;align-items:center;gap:8px;min-width:0;padding:3px 8px;border-left:1px solid #e8e8e6;color:#555}
.builder-quickstart__number{display:grid;place-items:center;flex:0 0 22px;height:22px;border:1px solid #d3d3d0;border-radius:50%;color:#686868;font-size:10px;font-weight:650}
.builder-quickstart__steps li>div{display:grid;gap:1px;min-width:0}.builder-quickstart__steps strong{overflow:hidden;color:#292929;font-size:10px;font-weight:650;text-overflow:ellipsis;white-space:nowrap}.builder-quickstart__steps small{display:none}
.builder-quickstart__steps li.is-done .builder-quickstart__number{border-color:#222;background:#222;color:#fff}.builder-quickstart__steps li.is-done strong{color:#111}
.builder-quickstart__footer{display:flex;align-items:center;gap:9px;white-space:nowrap}.builder-quickstart__footer>span{color:#777;font-size:9px}.builder-quickstart__button{min-height:30px;padding:5px 9px;border:1px solid #d4d4d1;border-radius:5px;background:#fff;color:#222;font-size:10px;font-weight:600}.builder-quickstart__button:hover{border-color:#888;background:#f7f7f6}
.builder-stage{display:grid;grid-template-columns:minmax(355px,.62fr) minmax(0,1fr);gap:16px;flex:1;min-height:0;margin:14px 0 0;align-items:stretch}
.editor-pane{min-width:0;min-height:0;overflow:auto;overscroll-behavior:contain;border:1px solid var(--line);border-radius:12px;background:var(--paper);scrollbar-color:#b8b8b5 #f1f1ef;scrollbar-width:thin}
.editor-pane>.template-panel,.editor-pane>.editor,.editor-pane>.review-panel,.editor-pane>.publish-panel{margin:0;padding:22px 22px 20px;border:0;border-radius:0;background:transparent;color:var(--ink);box-shadow:none}
.editor-pane>.template-panel,.editor-pane>.editor,.editor-pane>.review-panel{border-bottom:1px solid #e9e9e7}
.editor-pane .section-title{display:block;margin:0 0 14px}
.editor-pane .section-title .eyebrow,.editor-pane .eyebrow{margin:0 0 5px;color:#6b6b6b;font-size:10px;font-weight:700;letter-spacing:.08em}
.editor-pane .section-title h2,.review-panel h2,.publish-panel h2{margin:0;color:#111;font-size:22px;line-height:1.2;letter-spacing:-.025em}
.editor-pane .section-description,.review-panel__heading p:last-child,.publish-panel__heading p:last-child{max-width:45ch;margin:7px 0 0;color:#737373;font-size:12px;line-height:1.5}
.section-help,.step-badge{display:none}
.template-categories{display:flex;gap:6px;overflow-x:auto;margin:13px 0 12px;padding:2px 0 7px;scrollbar-width:thin}
.template-filter{flex:0 0 auto;min-height:30px;padding:5px 10px;border:1px solid #dededb;border-radius:6px;background:#fff;color:#595959;font-size:11px;font-weight:550;white-space:nowrap}
.template-filter:hover{border-color:#a5a5a0;color:#111}
.template-filter.is-active{border-color:#171717;background:#171717;color:#fff}
.template-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.template-card{position:relative;display:flex;flex-direction:column;min-width:0;padding:0;overflow:hidden;border:1px solid #dededb;border-radius:8px;background:#fff;color:#151515;text-align:left;transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease}
.template-card:hover{transform:translateY(-1px);border-color:#999;box-shadow:0 5px 14px #0000000c}
.template-card.selected{border:2px solid #202020;box-shadow:0 0 0 1px #202020}
.template-thumbnail{position:relative;display:block;width:100%;aspect-ratio:1.52;overflow:hidden;background:#eee}
.thumbnail-browser{position:absolute;inset:0 0 auto;z-index:1;display:flex;align-items:center;gap:4px;height:17px;padding:0 7px;background:#222;color:#f6f6f6}
.thumbnail-browser i{width:4px;height:4px;border-radius:50%;background:#aaa}
.thumbnail-browser b{overflow:hidden;margin-left:4px;color:#ddd;font-size:6px;font-weight:600;text-overflow:ellipsis;white-space:nowrap}
.thumbnail-browser>span{margin-left:auto;color:#c2c2c2;font-size:5px;white-space:nowrap}
.thumbnail-page{position:absolute;inset:17px 0 0;display:flex;flex-direction:column;gap:5px;padding:10px 11px;background:linear-gradient(120deg,#fff 0%,#fafafa 62%,color-mix(in srgb,var(--template-accent) 15%,#fff) 100%);color:#111}
.thumbnail-page small{overflow:hidden;color:#777;font-size:6px;letter-spacing:.08em;text-overflow:ellipsis;text-transform:uppercase;white-space:nowrap}
.thumbnail-page strong{display:-webkit-box;max-width:88%;overflow:hidden;font-size:clamp(9px,1vw,13px);font-weight:750;line-height:1.04;-webkit-box-orient:vertical;-webkit-line-clamp:3}
.thumbnail-page>span{display:-webkit-box;max-width:80%;overflow:hidden;color:#686868;font-size:6px;line-height:1.25;-webkit-box-orient:vertical;-webkit-line-clamp:2}
.thumbnail-page em{display:inline-flex;align-items:center;min-height:15px;max-width:max-content;margin-top:auto;padding:0 7px;border-radius:3px;background:#111;color:#fff;font-size:6px;font-style:normal}
.template-card-copy{display:flex;flex-direction:column;gap:2px;min-width:0;padding:8px 10px 9px}
.template-card-copy strong{overflow:hidden;color:#161616;font-size:12px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.template-card-copy small{color:#777;font-size:10px}
.template-selected-mark{position:absolute;top:22px;right:7px;display:none;place-items:center;width:20px;height:20px;border-radius:50%;background:#161616;color:#fff;font-size:11px}
.template-card.selected .template-selected-mark{display:grid}
.template-variants{margin-top:15px;padding-top:12px;border-top:1px solid #e8e8e6}
.template-variants-label{margin:0 0 8px;color:#292929;font-size:11px;font-weight:700}
.template-variants-label span{color:#828282;font-weight:450}
.template-variant-list{display:flex;flex-wrap:wrap;gap:6px}
.template-variant{display:flex;flex-direction:column;gap:1px;padding:7px 9px;border:1px solid #dededb;border-radius:6px;background:#fff;color:#222;text-align:left}
.template-variant strong{font-size:10px;font-weight:650}
.template-variant small{color:#777;font-size:9px}
.template-variant.is-active{border-color:#222;background:#f2f2f0}
.template-footer-cta{display:none}
.editor-pane>.editor{padding-top:20px}
.editor .form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.editor label,.auth-field{display:flex;flex-direction:column;gap:5px;min-width:0;margin:0 0 13px;color:#444;font-size:11px;font-weight:600}
.builder-modebar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:12px 0 8px;padding:9px 0;border-block:1px solid #e8e8e6;background:transparent;color:#333}
.builder-modebar__copy{display:flex;align-items:center;gap:9px;min-width:0}.builder-modebar__copy>div{min-width:0}.builder-modebar__copy strong,.builder-modebar__copy span{display:block}.builder-modebar__copy strong{color:#222;font-size:11px;font-weight:650}.builder-modebar__copy span{margin-top:2px;color:#777;font-size:10px;line-height:1.35}.builder-modebar__dot{width:7px;height:7px;flex:0 0 auto;border-radius:50%;background:#888}.builder-modebar__toggle{flex:0 0 auto;min-height:30px;padding:5px 9px;border:1px solid #d5d5d2;border-radius:5px;background:#fff;color:#333;font-size:10px;font-weight:600;white-space:nowrap}
.editor input:not([type=file]):not([type=color]),.editor textarea,.editor select,.auth-field input{width:100%;min-width:0;min-height:38px;padding:9px 10px;border:1px solid #d8d8d5;border-radius:6px;background:#fff;color:#161616;font-size:12px;font-weight:450}
.editor textarea{min-height:82px;resize:vertical;line-height:1.45}
.editor input[type=color]{width:52px;height:36px;padding:3px;border:1px solid #d8d8d5;border-radius:6px;background:#fff}
.editor input[type=file]{max-width:100%;font-size:11px}
.editor .label-note{color:#858585;font-size:10px;font-weight:450}
.editor .split{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.editor .subheading{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:19px 0 9px;padding-top:14px;border-top:1px solid #e8e8e6}
.editor .subheading strong{color:#222;font-size:12px}
.editor .subheading span{color:#858585;font-size:10px}
.editor .dropzone{display:flex;flex-direction:column;align-items:center;gap:6px;padding:19px 12px;border:1px dashed #c9c9c5;border-radius:7px;background:#fafaf9;color:#494949;text-align:center}
.editor .dropzone span{color:#777;font-size:11px}
.editor .dropzone button,.editor button:not(.primary),.publish-panel button,.publish-result button,.button-link{min-height:34px;padding:7px 11px;border:1px solid #d4d4d1;border-radius:6px;background:#fff;color:#242424;font-size:11px;font-weight:600}
.editor .dropzone button{margin-top:3px}
.section-row{display:grid;grid-template-columns:30px minmax(0,1fr) max-content;gap:8px;align-items:start;margin:8px 0;padding:10px 0;border-bottom:1px solid #e9e9e7;background:transparent}
.section-number{color:#868686;font-size:10px;font-weight:700}
.section-row>div{display:grid;gap:7px;min-width:0}
.section-row button{padding:5px!important}
.asset-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-top:8px}
.asset{position:relative;min-width:0;aspect-ratio:1.4;overflow:hidden;border-radius:6px;background:#eee}
.asset img,.logo-preview img{width:100%;height:100%;object-fit:cover}
.asset button{position:absolute;top:4px;right:4px}
.logo-preview{display:flex;align-items:center;gap:10px;max-width:240px;margin:5px 0 12px}
.logo-preview img{width:52px;height:52px;object-fit:contain;border:1px solid #ddd;border-radius:6px}
.ai-box{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:end;margin-top:18px;padding-top:15px;border-top:1px solid #e8e8e6}
.ai-box label{margin:0}
.ai-button{background:#fff!important}
.actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}
.actions button{min-height:38px;padding:8px 13px;border:1px solid #222;border-radius:6px;background:#fff;color:#171717;font-size:11px;font-weight:650}
.actions button.primary{background:#111;color:#fff}
.actions-hint{margin:8px 0 0;color:#777;font-size:10px;line-height:1.45}
.status{min-height:18px;margin:8px 0 0;color:#5a5a5a;font-size:11px}
.status.error,.auth-status.error{color:#b42318}
.builder-draft-recovery{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:11px 12px;border:1px solid #dededb;border-radius:7px;background:#f7f7f6;color:#333;font-size:11px;line-height:1.4}
.builder-draft-recovery[hidden]{display:none}.builder-draft-recovery strong,.builder-draft-recovery span{display:block}.builder-draft-recovery strong{color:#171717;font-size:12px}.builder-draft-recovery span{margin-top:3px;color:#777}
.builder-draft-recovery__button{flex:0 0 auto;min-height:34px;padding:7px 10px;border:1px solid #ccc;border-radius:5px;background:#fff;color:#222;font-size:11px;white-space:nowrap}.builder-draft-recovery__button:hover{background:#eee}
.review-panel,.publish-panel{padding:21px 22px 22px;border:0;border-bottom:1px solid #e9e9e7;background:#fff;color:#111}
.review-panel__heading,.publish-panel__heading{margin-bottom:12px}
.review-panel .preflight-panel{margin:0;padding:12px 0;border:0;border-radius:0;background:transparent;box-shadow:none}
.preflight-panel ul{display:grid;grid-template-columns:1fr;gap:7px;margin:10px 0;padding:0;list-style:none}
.preflight-panel>strong{display:block;color:#242424;font-size:13px;font-weight:650}.preflight-score{display:block;margin-top:3px;color:#777;font-size:10px}
.preflight-panel li{min-width:0;padding:0;border-bottom:1px solid #eee;color:#424242;font-size:11px}
.preflight-item{display:grid;grid-template-columns:8px minmax(0,1fr) auto;grid-template-rows:auto auto;grid-template-areas:"mark kind action" "mark title action";align-items:center;column-gap:9px;width:100%;min-width:0;margin:0;padding:9px 2px;border:0;border-radius:4px;background:transparent;color:#333;text-align:left;line-height:1.35}
.preflight-item::before{grid-area:mark;width:7px;height:7px;border-radius:50%;background:#999;content:""}.preflight-warn .preflight-item::before{background:#a67b31}.preflight-info .preflight-item::before{background:#929292}
.preflight-kind{grid-area:kind;color:#777;font-size:9px;font-weight:600}.preflight-item>span:nth-child(2){grid-area:title;min-width:0;color:#292929;font-size:11px}.preflight-action{grid-area:action;color:#555;font-size:10px;font-weight:600}.preflight-item:hover{background:#f7f7f6}
.publish-result{display:grid;grid-template-columns:minmax(0,1fr) 120px;gap:14px;margin-top:14px;padding:14px;border:1px solid #dededb;border-radius:8px;background:#fafaf9;color:#181818}
.publish-result h2{font-size:18px}
.publish-links{display:flex;flex-wrap:wrap;gap:7px;align-items:center}
.publish-links a{overflow-wrap:anywhere;color:#333;font-size:11px}
.qr-card img{width:100px;height:100px;object-fit:contain;background:#fff}
.qr-status{color:#777;font-size:10px}
.preview-panel{position:sticky;top:12px;display:flex;flex-direction:column;min-width:0;min-height:0;max-height:none;overflow:hidden;margin:0;padding:12px;border:1px solid #d7d7d4;border-radius:12px;background:#fff;color:#111;box-shadow:0 2px 10px #00000008}
.preview-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0;padding:4px 5px 10px}
.preview-head .eyebrow{margin:0 0 2px;color:#777;font-size:9px;font-weight:700;letter-spacing:.08em}
.preview-head h2{margin:0;color:#161616;font-size:17px;line-height:1.2}
.preview-head>span{color:#777;font-size:10px}
.preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:40px;margin:0 0 9px;padding:0 3px}
.preview-devices{display:flex;gap:4px;padding:3px;border:1px solid #e1e1de;border-radius:7px;background:#f5f5f4}
.preview-device{min-height:28px;padding:5px 10px;border:0;border-radius:5px;background:transparent;color:#555;font-size:10px}
.preview-device.is-active{background:#171717;color:#fff}
.preview-live{display:flex;align-items:center;gap:6px;color:#757575;font-size:10px}
.preview-live:before{content:"";width:6px;height:6px;border-radius:50%;background:#a7d94a}
.preview-frame{position:relative;display:flex;flex:1;flex-direction:column;min-width:0;min-height:220px;overflow:hidden;border:1px solid #252525;border-radius:9px;background:#fff;box-shadow:0 4px 16px #00000012}
.preview-frame:before{display:block;flex:0 0 24px;height:24px;padding:0 10px;background:#202020;color:#ccc;content:"●  ●  ●";font-size:8px;line-height:24px;letter-spacing:3px}
.site-preview{flex:1;min-width:0;min-height:0;overflow:auto;background:#fff;scrollbar-color:#bbb #f5f5f5;scrollbar-width:thin}
.preview-site{min-height:100%;background:#fff;color:#111}
.preview-site nav{display:flex;align-items:center;gap:12px;min-height:48px;padding:10px 6%;border-bottom:1px solid #e6e6e6;background:#fff;color:#111;font-size:10px}
.preview-site nav>a{margin-left:auto}
.preview-site header{padding:clamp(28px,5vh,58px) 7%;background:color-mix(in srgb,var(--site-brand,#b8ff3d) 9%,#fff)}
.preview-site h1{max-width:780px;margin:10px 0 14px;font-size:clamp(24px,3vw,48px);line-height:1.03;letter-spacing:-.035em}
.preview-site header p,.content-block p{max-width:660px;color:#666;font-size:12px;line-height:1.55}
.preview-content{padding:22px 7%}
.content-block{display:flex;gap:12px;padding:16px 0;border-top:1px solid #e8e8e8}
.content-block h2{font-size:15px}
.content-block p{max-width:660px;color:#666;font-size:12px;line-height:1.55}
.block-tools{display:grid;grid-template-columns:minmax(0,1fr) auto auto;gap:8px;align-items:end;margin-top:14px}
.block-tools label{margin:0}.block-tools select{margin-top:6px}
.section-move{display:flex;align-items:start;gap:4px}.section-move button{padding:6px 8px;font-size:10px}.section-move button:disabled{opacity:.35;cursor:not-allowed}
.public-social{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.public-social a{padding:7px 9px;border:1px solid #ddd;border-radius:5px;color:inherit;font-size:11px;text-decoration:none}
.ai-shortcuts{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}.ai-shortcuts button{padding:6px 8px;font-size:10px}
.advanced-fields{margin-top:16px;padding-top:8px;border-top:1px solid #e8e8e6}.advanced-fields textarea{min-height:48px}
.import-box{margin-top:14px;padding-top:12px;border-top:1px solid #e8e8e6}.import-box label{margin:0}.import-box textarea{min-height:68px}
.block-hint{display:block;margin-top:9px;color:#777;font-size:10px}
.block-number{color:#666;font-weight:750}
.preview-cta{display:inline-flex;align-items:center;min-height:32px;padding:7px 12px;border:1px solid #181818;border-radius:5px;background:#111;color:#fff;text-decoration:none;font-size:10px}
.contact-facts{display:flex;gap:10px;flex-wrap:wrap;color:#666;font-size:10px}
.preview-site>footer{display:flex;justify-content:space-between;gap:10px;padding:17px 7%;background:#f4f4f3;color:#666;font-size:10px}
.preview-panel.is-tablet .preview-frame{max-width:820px;margin-inline:auto}
.preview-panel.is-mobile .preview-frame{width:min(390px,100%);margin-inline:auto}
.preview-panel.is-mobile .preview-site h1{font-size:26px}
.preview-panel.is-mobile .preview-site nav{min-height:42px}
.preview-panel.is-mobile .preview-site nav>a{display:none}
.topbar-context__status[data-state=saved]:before{background:#8ac926}
.account-dialog{width:min(980px,calc(100vw - 32px));max-width:980px;max-height:min(860px,calc(100dvh - 28px));padding:0;overflow:auto;border:1px solid #d6d6d3;border-radius:12px;background:#fff;color:#171717;box-shadow:0 24px 80px #0005}
.account-dialog::backdrop{background:#050505b8;backdrop-filter:blur(3px)}
.account-dialog .dialog-card{position:relative;display:grid;grid-template-columns:minmax(240px,.76fr) minmax(0,1.24fr);gap:0;min-height:520px;padding:0;border:0;border-radius:0;background:#fff;color:#161616}
.auth-promo{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:38px 30px;background:#111;color:#f5f5f5}
.auth-promo h2{margin:0;color:#fff;font-size:27px;line-height:1.12;letter-spacing:-.03em}
.auth-promo p{margin:0;color:#bcbcbc;font-size:12px;line-height:1.6}
.auth-promo ul{display:grid;gap:12px;margin:4px 0 0;padding:0;list-style:none}
.auth-promo li{display:flex;align-items:center;gap:10px;color:#ddd;font-size:11px}
.auth-promo li:before{display:grid;place-items:center;width:25px;height:25px;border:1px solid #555;border-radius:50%;color:var(--accent);content:"✓"}
.auth-dialog__benefits{display:flex;flex-direction:column;justify-content:center;gap:16px;padding:38px 30px;background:#111;color:#f5f5f5}
.auth-dialog__brand{display:flex;align-items:center;gap:10px;margin-bottom:16px}.auth-dialog__brand-mark,.account-context__mark{display:grid;place-items:center;width:38px;height:38px;border-radius:8px;background:#050505;color:#fff;font-weight:750}
.auth-dialog__brand strong,.auth-dialog__brand small,.account-context strong,.account-context small{display:block}.auth-dialog__brand small,.account-context small{margin-top:2px;color:#999;font-size:9px;letter-spacing:.12em;text-transform:uppercase}
.auth-dialog__benefits h3{margin:0;color:#fff;font-size:27px;line-height:1.12;letter-spacing:-.03em}.auth-dialog__benefits h3 span{color:#ccc}
.auth-dialog__benefits>p{margin:0;color:#bcbcbc;font-size:12px;line-height:1.6}
.auth-benefit{display:flex;align-items:center;gap:10px;color:#ddd;font-size:11px}.auth-benefit__icon{display:grid;place-items:center;width:25px;height:25px;border:1px solid #555;border-radius:50%;color:#ddd}
.auth-dialog__body{grid-column:2;display:flex;flex-direction:column;min-width:0;padding:32px 32px 24px}
.account-context{display:none}
.account-dialog .auth-dialog__body>.eyebrow{margin:0 0 5px;color:#666;font-size:10px;font-weight:700;letter-spacing:.08em}
.account-dialog .auth-dialog__body>h2{margin:0 0 5px;color:#151515;font-size:25px}
.account-dialog .auth-dialog__body>p:not(.eyebrow):not(.auth-status){color:#737373;font-size:12px}
.auth-tabs{display:flex;gap:5px;margin:14px 0;padding:4px;border:1px solid #e2e2df;border-radius:7px;background:#f6f6f5}
.auth-tab{flex:1;min-width:0;min-height:34px;padding:6px;border:0;border-radius:5px;background:transparent;color:#555;font-size:10px;font-weight:600}
.auth-tab.is-active{background:#fff;color:#111;box-shadow:0 1px 3px #0001}
.account-dialog .dialog-card> .eyebrow,.account-dialog .dialog-card>h2,.account-dialog .dialog-card>p:not(.auth-status),.account-dialog .auth-fields,.account-dialog .auth-note,.account-dialog .auth-actions,.account-dialog .auth-status,.account-dialog .saved-projects{grid-column:2;margin-right:32px;margin-left:32px}
.account-dialog .dialog-card>.eyebrow{margin-top:34px;margin-bottom:5px;color:#666;font-size:10px;font-weight:700;letter-spacing:.08em}
.account-dialog .dialog-card>h2{margin-top:0;margin-bottom:5px;color:#151515;font-size:25px}
.account-dialog .dialog-card>p:not(.eyebrow):not(.auth-status){color:#737373;font-size:12px}
.dialog-close{position:absolute;z-index:2;top:12px;right:14px;display:grid;place-items:center;width:34px;height:34px;border:1px solid #ddd;border-radius:50%;background:#fff;color:#333;font-size:20px}
.auth-fields{display:grid;gap:9px}
.auth-field{margin:0}
.auth-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.auth-actions button{min-height:38px;padding:8px 12px;border:1px solid #ccc;border-radius:6px;background:#fff;color:#222;font-size:11px;font-weight:650}
.auth-actions button.primary{border-color:#111;background:#111;color:#fff}
.auth-note{color:#777;font-size:10px}
.auth-status{color:#555;font-size:11px}
.saved-projects{min-width:0;margin-top:12px;margin-bottom:30px;padding-top:12px;border-top:1px solid #e8e8e6}
.saved-heading{display:flex;justify-content:space-between;gap:12px;align-items:baseline}
.saved-heading h3{margin:0;font-size:14px}
.saved-heading span{color:#777;font-size:10px}
.saved-heading>button{flex:0 0 auto;min-height:30px;padding:5px 9px;border:1px solid #d1d1cc;border-radius:5px;background:#fff;color:#252525;font-size:10px;font-weight:600}.saved-heading>button:hover{border-color:#888;background:#f7f7f6}
.project-overview{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin:12px 0;padding:8px 0;border-block:1px solid #e7e7e4}
.project-stat{display:flex;align-items:baseline;gap:9px;min-width:0;padding:2px 12px;border:0;border-right:1px solid #e8e8e6;border-radius:0;background:transparent}.project-stat:first-child{padding-left:2px}.project-stat:last-child{border-right:0}.project-stat strong{color:#111;font-size:20px;font-weight:650;line-height:1}.project-stat span{overflow:hidden;color:#777;font-size:10px;text-overflow:ellipsis;white-space:nowrap}
.project-tools{display:flex;align-items:center;gap:9px;min-width:0;margin:10px 0}.project-search{flex:1 1 220px;width:min(100%,360px);min-width:0;min-height:36px;padding:8px 10px;border:1px solid #d7d7d3;border-radius:5px;background:#fff;color:#222;font-size:11px}.project-search:focus{border-color:#888;outline:2px solid #00000010}.project-filters{display:flex;flex:0 0 auto;gap:3px;padding:3px;border:1px solid #e0e0dc;border-radius:6px;background:#f5f5f4}.project-filter{min-height:28px;padding:5px 8px;border:1px solid transparent;border-radius:4px;background:transparent;color:#626262;font-size:10px;font-weight:550;white-space:nowrap}.project-filter.is-active{border-color:#222;background:#222;color:#fff}
#projectList{display:grid;gap:8px;margin-top:10px}
.project-card{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:11px 0;border-bottom:1px solid #eee;background:transparent;color:#222}
.project-card>div{display:grid;gap:4px;min-width:0}
.project-card strong{overflow:hidden;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.project-card small,.project-meta small{color:#777;font-size:10px}
.project-actions{display:flex;flex-wrap:wrap;gap:5px}
.project-actions button,.project-card button,.project-open-link{min-height:30px;padding:5px 8px;border:1px solid #d5d5d2;border-radius:5px;background:#fff;color:#333;font-size:10px;text-decoration:none}
.project-status{color:#666;font-size:10px}
.project-status.is-published{color:#386a12}
.empty-state{padding:14px 0;color:#777;font-size:12px}
footer{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:30px;padding:0 2vw;color:#777;font-size:10px}
footer nav{color:#777}
footer a{color:#666;text-decoration:none}
footer a:hover{text-decoration:underline}
@media(max-width:1050px){
  .builder-stage{grid-template-columns:minmax(320px,.78fr) minmax(0,1fr)}
  .builder-flow__step small{display:none}
  .builder-flow__step:not(:last-child):after{right:4px;left:54px}
}
@media(max-width:760px){
  body{min-height:100vh;height:auto;overflow:auto}
  .topbar{height:60px;padding:0 14px;gap:8px}
  .brand{min-width:0;gap:8px}.brand img{width:34px;height:34px}.brand strong{font-size:13px}.brand small{font-size:8px}
  .topbar-context{flex:1;margin:0 4px;justify-content:flex-end}.topbar-context__project{display:none}.topbar-context__status{max-width:42vw;overflow:hidden;font-size:9px;text-overflow:ellipsis;white-space:nowrap}
  .account-button{min-height:34px;padding:0 9px;font-size:10px}
  .shell{height:auto;min-height:calc(100vh - 60px);padding:0 10px 12px}
  .builder-flow{flex-basis:58px;overflow-x:auto;padding:5px 0}
  .builder-flow__steps{min-width:490px}
  .builder-flow__step{justify-content:center;gap:6px;padding:4px 5px}
  .builder-flow__step>strong{flex-basis:25px;height:25px;font-size:9px}
  .builder-flow__step>span{padding-right:2px}.builder-flow__step b{font-size:10px}
  .builder-flow__step:not(:last-child):after{top:12px;left:42px}
  .builder-flow__progress{display:none}
  .builder-quickstart{grid-template-columns:minmax(0,1fr);gap:7px;margin-bottom:8px;padding-bottom:8px}
  .builder-quickstart__intro{display:none}
  .builder-quickstart__steps{gap:2px}
  .builder-quickstart__steps li{flex-direction:column;align-items:flex-start;gap:4px;padding:3px 7px;border-right:1px solid #e8e8e6;border-left:0}
  .builder-quickstart__steps li:last-child{border-right:0}
  .builder-quickstart__steps strong{font-size:9px;white-space:normal;line-height:1.2}
  .builder-quickstart__footer{justify-content:space-between}
  .builder-modebar{align-items:flex-start}.builder-modebar__copy span{max-width:30ch}
  .project-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:7px}.project-search{width:100%}.project-filters{justify-content:flex-start;overflow-x:auto}.project-filter{flex:0 0 auto}
  .builder-stage{display:flex;flex-direction:column;gap:12px;margin-top:10px}
  .editor-pane{max-height:none;overflow:visible}
  .editor-pane>.template-panel,.editor-pane>.editor,.editor-pane>.review-panel,.editor-pane>.publish-panel{padding:17px 14px}
  .editor-pane .section-title h2,.review-panel h2,.publish-panel h2{font-size:20px}
  .preview-panel{position:relative;top:auto;min-height:520px;padding:9px}
  .preview-frame{min-height:390px}
  .preview-live{display:none}
  .template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
  .template-card-copy{padding:7px}.template-card-copy strong{font-size:11px}
  .account-dialog{width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .account-dialog .dialog-card{grid-template-columns:1fr;min-height:0}
  .auth-promo{gap:9px;padding:22px 20px}.auth-promo h2{font-size:20px}.auth-promo ul{grid-template-columns:1fr 1fr;gap:6px}.auth-promo li{font-size:9px}.auth-promo li:before{width:20px;height:20px}
  .auth-dialog__benefits{gap:9px;padding:22px 20px}.auth-dialog__benefits h3{font-size:20px}.auth-benefit{font-size:9px}.auth-benefit__icon{width:20px;height:20px}
  .auth-dialog__body{grid-column:1;padding:20px}.auth-dialog__brand{display:none}
  .account-dialog .dialog-card>.eyebrow,.account-dialog .dialog-card>h2,.account-dialog .dialog-card>p:not(.auth-status),.account-dialog .auth-fields,.account-dialog .auth-note,.account-dialog .auth-actions,.account-dialog .auth-status,.account-dialog .saved-projects{grid-column:1;margin-right:20px;margin-left:20px}
  .account-dialog .dialog-card>.eyebrow{margin-top:20px}
  .account-dialog .dialog-card>h2{font-size:21px}
  .dialog-close{top:9px;right:9px}
  footer{flex-wrap:wrap;justify-content:flex-start;padding:8px 4px;font-size:9px}
  .builder-draft-recovery{align-items:stretch;flex-direction:column}.builder-draft-recovery__button{width:100%}
}
@media(max-width:390px){
  .editor .form-grid,.editor .split{grid-template-columns:1fr}
  .template-grid{grid-template-columns:1fr 1fr}
  .template-filter{min-height:28px;padding-inline:8px;font-size:10px}
  .section-row{grid-template-columns:25px minmax(0,1fr) max-content;gap:6px}
  .section-move{gap:2px}
  .section-move button{padding:4px 5px;font-size:10px}
  .publish-result{grid-template-columns:minmax(0,1fr) 82px}
  .qr-card img{width:76px;height:76px}
}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important}}

/* Reference direction: LDM Studio's editor shell. These rules replace the old
   stacked builder composition while keeping the existing semantic hooks. */
:root{--ref-black:#080808;--ref-surface:#111;--ref-surface-2:#171717;--ref-border:#282828;--ref-text:#f5f5f5;--ref-muted:#929292;--ref-lime:#c9f45b;--ref-paper:#f7f7f5}
html{background:var(--ref-black)}
body{background:var(--ref-black);color:var(--ref-text)}
body:not(.is-space-view) .topbar{height:64px;padding:0 28px;background:#080808;border-bottom:1px solid #242424}
body:not(.is-space-view) .brand{min-width:204px;gap:10px}
body:not(.is-space-view) .brand img{width:36px;height:36px;border:1px solid #292929;border-radius:8px}
body:not(.is-space-view) .brand strong{font-size:13px;letter-spacing:-.02em}
body:not(.is-space-view) .brand small{font-size:8px;letter-spacing:.19em}
body:not(.is-space-view) .topbar-context{display:flex;align-items:center;gap:12px;margin-left:auto;margin-right:18px}
body:not(.is-space-view) .topbar-context__project{max-width:220px;font-size:11px;font-weight:700}
body:not(.is-space-view) .topbar-context__status{font-size:10px;color:#8e8e8e}
body:not(.is-space-view) .topbar-context__status:before{width:6px;height:6px;background:#9bbd50}
body:not(.is-space-view) .topbar-actions{display:flex;align-items:center;gap:8px}
body:not(.is-space-view) .topbar-actions .help-button,.topbar-quiet-action{min-height:34px;padding:7px 10px;border:1px solid transparent;border-radius:7px;background:transparent;color:#b9b9b9;font-size:10px;font-weight:600}
body:not(.is-space-view) .topbar-actions .help-button:hover,.topbar-quiet-action:hover{border-color:#353535;background:#151515;color:#fff}
body:not(.is-space-view) .topbar-next-action{min-height:34px;padding:7px 12px;border:1px solid var(--ref-lime);border-radius:7px;background:var(--ref-lime);color:#0b0b0b;font-size:10px;font-weight:800}
body:not(.is-space-view) .topbar-next-action:hover{background:#e1ff91;border-color:#e1ff91}
body:not(.is-space-view) .account-button{min-height:34px;padding:7px 12px;border-color:#363636;border-radius:7px;background:#151515;color:#f5f5f5;font-size:10px}
body:not(.is-space-view) .local-mode-badge{margin:0;color:#9d9d9d;font-size:9px}
body:not(.is-space-view) .shell{height:calc(100dvh - 64px);padding:0;overflow:hidden;background:var(--ref-black)}
body:not(.is-space-view) .intro{display:none}
body:not(.is-space-view) .builder-stage{display:grid;grid-template-columns:196px minmax(0,1fr);gap:0;height:100%;min-height:0;margin:0;background:var(--ref-black)}
.builder-sidebar{display:flex;flex-direction:column;min-width:0;padding:18px 12px 16px;border-right:1px solid #242424;background:#0b0b0b}
.builder-sidebar__brand{display:flex;align-items:center;gap:9px;padding:0 7px 22px;border-bottom:1px solid #222}
.builder-sidebar__brand img{width:29px;height:29px;object-fit:contain;border:1px solid #2d2d2d;border-radius:7px;background:#000}
.builder-sidebar__brand strong,.builder-sidebar__brand small{display:block}.builder-sidebar__brand strong{color:#eee;font-size:11px;line-height:1.1}.builder-sidebar__brand small{margin-top:3px;color:#777;font-size:7px;letter-spacing:.16em;text-transform:uppercase}
.builder-sidebar__project{display:grid;gap:4px;padding:18px 9px 12px}.builder-sidebar__project span{color:#707070;font-size:8px;letter-spacing:.08em;text-transform:uppercase}.builder-sidebar__project strong{overflow:hidden;color:#e8e8e8;font-size:11px;text-overflow:ellipsis;white-space:nowrap}
.builder-sidebar__nav{min-height:0}.builder-sidebar__footer{display:flex;align-items:center;gap:7px;margin-top:auto;padding:13px 9px 0;border-top:1px solid #222;color:#777;font-size:9px}.builder-sidebar__local-dot{width:6px;height:6px;border-radius:50%;background:#9fca50}
.builder-sidebar .builder-flow{display:block;position:static;width:auto;height:auto;margin:0;padding:4px 0;border:0;background:transparent}
.builder-sidebar .builder-flow__steps{display:grid;gap:5px;width:auto}
.builder-sidebar .builder-flow__step{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:9px;width:100%;min-height:54px;padding:7px 8px;border:1px solid transparent;border-radius:8px;background:transparent;color:#858585;text-align:left}
.builder-sidebar .builder-flow__step:hover{border-color:#303030;background:#131313;color:#eee}
.builder-sidebar .builder-flow__step.is-active,.builder-sidebar .builder-flow__step[aria-current=step]{border-color:#3c4d26;background:#151b12;color:#f7f7f7;box-shadow:inset 2px 0 var(--ref-lime)}
.builder-sidebar .builder-flow__step.is-complete{color:#c9c9c9}
.builder-sidebar .builder-flow__step>strong{display:grid;place-items:center;width:25px;height:25px;border:1px solid #555;border-radius:50%;background:transparent;color:#bbb;font-size:9px}
.builder-sidebar .builder-flow__step.is-active>strong,.builder-sidebar .builder-flow__step[aria-current=step]>strong{border-color:var(--ref-lime);background:var(--ref-lime);color:#111}
.builder-sidebar .builder-flow__step.is-complete>strong{border-color:#757575;background:#323232;color:#fff}
.builder-sidebar .builder-flow__step>span{display:flex;flex-direction:column;gap:3px;min-width:0;padding:0;background:transparent}.builder-sidebar .builder-flow__step b{color:inherit;font-size:11px;font-weight:700}.builder-sidebar .builder-flow__step small{overflow:hidden;color:#6f6f6f;font-size:8px;text-overflow:ellipsis;white-space:nowrap}.builder-sidebar .builder-flow__step.is-active small{color:#a6b490}
.builder-sidebar .builder-flow__step:not(:last-child):after{top:39px;left:20px;right:auto;width:1px;height:17px;background:#353535}
.builder-sidebar .builder-flow__progress,.builder-sidebar .builder-quickstart{display:none}
.builder-main{display:grid;grid-template-columns:minmax(360px,.78fr) minmax(0,1.46fr);min-width:0;min-height:0;background:#0d0d0d}
.editor-pane{min-width:0;min-height:0;overflow:auto;border:0;border-right:1px solid #252525;border-radius:0;background:#101010;color:#f1f1f1;scrollbar-color:#4a4a4a #101010}
.editor-pane>.template-panel,.editor-pane>.editor,.editor-pane>.review-panel,.editor-pane>.publish-panel{margin:0;padding:22px 24px;border:0;border-bottom:1px solid #252525;border-radius:0;background:#101010;color:#f4f4f4;box-shadow:none}
.editor-pane .section-title{margin:0 0 17px}.editor-pane .section-title .eyebrow,.editor-pane .eyebrow{color:#9fac87;font-size:9px;letter-spacing:.14em}.editor-pane .section-title h2,.review-panel h2,.publish-panel h2{color:#f5f5f5;font-size:24px;font-weight:760;letter-spacing:-.04em}.editor-pane .section-description,.review-panel__heading p:last-child,.publish-panel__heading p:last-child{color:#858585;font-size:11px;line-height:1.5}
.template-categories{gap:5px;margin:16px 0 14px;padding:0;overflow-x:auto}.template-filter{min-height:29px;padding:6px 10px;border-color:#2d2d2d;border-radius:6px;background:#171717;color:#aaa;font-size:9px}.template-filter:hover{border-color:#666;color:#fff}.template-filter.is-active{border-color:#f0f0f0;background:#f0f0f0;color:#111}
.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.template-card{border-color:#2d2d2d;border-radius:8px;background:#151515;color:#eee;box-shadow:none}.template-card:hover{border-color:#6a6a6a;background:#191919;box-shadow:none}.template-card.selected{border:1px solid var(--ref-lime);box-shadow:0 0 0 1px #c9f45b33}.template-thumbnail{aspect-ratio:1.46;background:#1a1a1a}.template-card-copy{padding:9px 10px 10px}.template-card-copy strong{color:#f0f0f0;font-size:11px}.template-card-copy small{color:#858585;font-size:9px}.template-selected-mark{top:8px;right:8px;width:18px;height:18px;background:var(--ref-lime);color:#111;font-size:10px}
.thumbnail-browser{height:16px;background:#080808}.thumbnail-page{inset:16px 0 0;padding:10px;background:linear-gradient(135deg,#f7f7f6 0%,#e8e8e6 61%,color-mix(in srgb,var(--template-accent) 20%,#eee) 100%)}.thumbnail-page strong{color:#111;font-size:clamp(9px,1vw,13px)}.thumbnail-page small{color:#666}.thumbnail-page>span{color:#555}.thumbnail-page em{background:#111}
.template-card[data-template-id=food] .thumbnail-page{background:linear-gradient(135deg,#21150f,#8a4c2b 55%,#d68e5a);color:#fff}.template-card[data-template-id=food] .thumbnail-page strong,.template-card[data-template-id=food] .thumbnail-page small,.template-card[data-template-id=food] .thumbnail-page>span{color:#fff}.template-card[data-template-id=auto] .thumbnail-page,.template-card[data-template-id=services] .thumbnail-page{background:linear-gradient(135deg,#111,#28302d 60%,#8f9a91)}.template-card[data-template-id=auto] .thumbnail-page strong,.template-card[data-template-id=services] .thumbnail-page strong,.template-card[data-template-id=auto] .thumbnail-page small,.template-card[data-template-id=services] .thumbnail-page small,.template-card[data-template-id=auto] .thumbnail-page>span,.template-card[data-template-id=services] .thumbnail-page>span{color:#fff}
.template-variants{margin-top:17px;padding-top:14px;border-color:#292929}.template-variants-label{color:#cfcfcf;font-size:10px}.template-variants-label span{color:#777}.template-variant-list{gap:5px}.template-variant{padding:7px 8px;border-color:#2d2d2d;border-radius:6px;background:#151515;color:#ddd}.template-variant strong{font-size:9px}.template-variant small{color:#777;font-size:8px}.template-variant.is-active{border-color:#c9f45b;background:#182013;color:#f5f5f5}
.editor-pane>.editor{padding-top:20px}.editor label,.auth-field{color:#c9c9c9;font-size:10px}.editor .label-note{color:#777;font-size:9px}.editor input:not([type=file]):not([type=color]),.editor textarea,.editor select,.auth-field input{min-height:36px;padding:8px 10px;border-color:#303030;border-radius:6px;background:#171717;color:#f3f3f3;font-size:11px}.editor textarea{min-height:76px}.editor input::placeholder,.editor textarea::placeholder,.auth-field input::placeholder{color:#666}.editor input[type=color]{height:34px;border-color:#303030;background:#171717}.editor .subheading{margin-top:18px;padding-top:14px;border-color:#292929}.editor .subheading strong{color:#e4e4e4;font-size:11px}.editor .subheading span{color:#777;font-size:9px}.editor .dropzone{padding:17px 10px;border-color:#4a4a4a;border-radius:7px;background:#151515;color:#ccc}.editor .dropzone span{color:#777;font-size:10px}.editor .dropzone button,.editor button:not(.primary),.publish-panel button,.publish-result button,.button-link{min-height:32px;padding:7px 10px;border-color:#3a3a3a;border-radius:6px;background:#1a1a1a;color:#e1e1e1;font-size:10px}.editor .dropzone button:hover,.editor button:not(.primary):hover{border-color:#777;background:#222}
.section-row{margin:7px 0;padding:9px 0;border-color:#292929}.section-number{color:#727272;font-size:9px}.section-row input{min-height:32px!important}.section-row button{border-color:#333!important;background:#181818!important;color:#aaa!important}.asset{background:#222}.logo-preview img{border-color:#333}.builder-modebar{border-color:#292929;color:#cfcfcf}.builder-modebar__copy strong{color:#e5e5e5;font-size:10px}.builder-modebar__copy span{color:#777;font-size:9px}.builder-modebar__toggle{border-color:#3b3b3b;background:#171717;color:#ddd;font-size:9px}.builder-local-note{color:#777!important;font-size:9px!important}.builder-draft-recovery{border-color:#383838;background:#171717;color:#bbb}.builder-draft-recovery strong{color:#eee}.builder-draft-recovery span{color:#777}.simple-content-hint{border-color:#363636!important;background:#151515!important;color:#aaa!important}.simple-content-hint strong{color:#eee!important}
.actions{gap:6px;margin-top:16px}.actions button{min-height:35px;padding:8px 11px;border-color:#4a4a4a;border-radius:6px;background:#181818;color:#e5e5e5;font-size:10px}.actions button.primary{border-color:var(--ref-lime);background:var(--ref-lime);color:#101010}.actions-hint{color:#777;font-size:9px}.status{color:#aaa;font-size:10px}.status.error{color:#ff8f8f}
.review-panel .preflight-panel{padding:0;background:transparent}.preflight-panel>strong{color:#eee;font-size:12px}.preflight-score{color:#777}.preflight-item{border-bottom:1px solid #292929;color:#ddd;padding:11px 2px}.preflight-item>span:nth-child(2){color:#ddd}.preflight-kind{color:#777}.preflight-action{color:#aaa}.preflight-item:hover{background:#171717}.preflight-item::before{background:#888}.preflight-warn .preflight-item::before{background:#d99a3e}
.publish-panel{background:#101010}.publish-result{border-color:#363636;border-radius:8px;background:#151515;color:#eee}.publish-result h2{color:#fff}.publish-links a{color:#c9f45b}.qr-card img{background:#fff}
.preview-panel{position:relative;top:auto;display:flex;min-width:0;min-height:0;max-height:none;overflow:hidden;padding:18px;background:#0d0d0d;border:0;border-radius:0;color:#f5f5f5;box-shadow:none}.preview-head{padding:1px 2px 12px}.preview-head .eyebrow{color:#9fac87}.preview-head h2{color:#f5f5f5;font-size:18px}.preview-head>span{color:#777;font-size:9px}.preview-toolbar{margin-bottom:12px}.preview-devices{border-color:#303030;background:#171717}.preview-device{color:#999;font-size:9px}.preview-device.is-active{background:#f3f3f1;color:#111}.preview-live{color:#999;font-size:9px}.preview-live:before{background:var(--ref-lime)}.preview-frame{min-height:0;border-color:#303030;border-radius:9px;background:#050505;box-shadow:0 16px 36px #0008}.preview-frame:before{flex-basis:22px;height:22px;background:#181818;line-height:22px}.site-preview{background:#dededb}.preview-site{background:#f8f8f6;color:#111}.preview-site nav{min-height:50px;padding:10px 6%;border-color:#dededb;background:#fff;color:#111}.preview-site nav>a{padding:6px 10px;border-radius:5px;background:#111;color:#fff;text-decoration:none;font-size:9px}.preview-site header{min-height:260px;padding:clamp(38px,8vh,88px) 8%;background:linear-gradient(110deg,#f4f4f1 0%,#eef0f8 67%,#d8dcec 100%)}.preview-site header small{color:#767676;font-size:8px;letter-spacing:.1em;text-transform:uppercase}.preview-site h1{max-width:76%;margin:11px 0 14px;font-size:clamp(26px,3vw,48px);line-height:1.02}.preview-site header p,.content-block p{max-width:560px;color:#555;font-size:11px;line-height:1.55}.preview-cta{padding:9px 12px;border-radius:5px;background:#111;color:#fff;font-size:9px;text-decoration:none}.preview-gallery{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;padding:12px 8%;background:#fff}.preview-gallery img{width:100%;aspect-ratio:1.3;object-fit:cover;border-radius:4px}.preview-content{padding:20px 8%;background:#fff}.content-block{border-color:#e5e5e5}.content-block h2{color:#111}.content-block p{color:#666}.preview-site>footer{padding:18px 8%;background:#111;color:#ddd;font-size:10px}
.preview-panel.is-tablet .preview-frame{max-width:760px;margin-inline:auto}.preview-panel.is-mobile .preview-frame{max-width:390px;margin-inline:auto}.preview-panel.is-mobile .preview-site h1{max-width:100%;font-size:28px}.preview-panel.is-mobile .preview-site header{min-height:270px;padding:44px 9%}.preview-panel.is-mobile .preview-site nav{padding-inline:7%}.preview-panel.is-mobile .preview-gallery{grid-template-columns:1fr 1fr}
.auth-dialog{padding:14px;background:#000b}.account-dialog .dialog-card{display:grid;grid-template-columns:minmax(220px,.78fr) minmax(340px,1fr);width:min(800px,calc(100vw - 32px));max-height:min(720px,calc(100dvh - 32px));overflow:hidden;border:1px solid #343434;border-radius:14px;background:#111;color:#f3f3f3;box-shadow:0 28px 90px #000c}.auth-dialog__benefits{grid-column:1;padding:34px 28px;background:linear-gradient(145deg,#111,#0b0b0b);border-right:1px solid #2b2b2b}.auth-dialog__brand{display:flex;align-items:center;gap:9px}.auth-dialog__brand-mark{display:grid;place-items:center;width:30px;height:30px;border:1px solid #303030;border-radius:7px;background:#000;color:#fff;font-size:8px}.auth-dialog__brand strong,.auth-dialog__brand small{display:block}.auth-dialog__brand strong{font-size:11px}.auth-dialog__brand small{margin-top:2px;color:#777;font-size:7px;letter-spacing:.16em;text-transform:uppercase}.auth-dialog__benefits h3{margin:100px 0 13px;color:#f5f5f5;font-size:26px;line-height:1.05;letter-spacing:-.05em}.auth-dialog__benefits h3 span{color:var(--ref-lime)}.auth-dialog__benefits>p{color:#999;font-size:11px;line-height:1.55}.auth-benefit{display:flex;align-items:center;gap:9px;margin-top:18px;color:#bbb;font-size:10px}.auth-benefit__icon{display:grid;place-items:center;width:22px;height:22px;border:1px solid #4f672b;border-radius:50%;color:var(--ref-lime)}.auth-dialog__body{grid-column:2;min-width:0;overflow:auto;padding:32px}.account-dialog .dialog-card>.eyebrow,.account-dialog .dialog-card>h2,.account-dialog .dialog-card>p:not(.auth-status),.account-dialog .auth-fields,.account-dialog .auth-note,.account-dialog .auth-actions,.account-dialog .auth-status,.account-dialog .saved-projects{grid-column:2;margin-right:32px;margin-left:32px}.account-dialog .dialog-card>.eyebrow{margin-top:30px;color:#a3bd76}.account-dialog .dialog-card>h2{margin-top:7px;color:#fff;font-size:24px;letter-spacing:-.04em}.account-dialog .dialog-card>p:not(.auth-status){color:#999;font-size:11px}.auth-tabs{display:flex;gap:3px;margin:18px 0 16px;padding:0;border:0;border-bottom:1px solid #2d2d2d;border-radius:0;background:transparent}.auth-tab{min-height:32px;padding:7px 11px;border:0;border-bottom:2px solid transparent;background:transparent;color:#888;font-size:10px}.auth-tab.is-active{border-color:var(--ref-lime);background:#1a1a1a;color:#fff}.auth-field span{color:#bbb}.auth-actions{display:grid;gap:7px}.auth-actions button{min-height:38px;border-color:#363636;border-radius:6px;background:#181818;color:#e9e9e9;font-size:10px}.auth-actions button.primary{border-color:var(--ref-lime);background:var(--ref-lime);color:#101010}.auth-note{color:#777!important;font-size:9px!important}.auth-status{color:#c9f45b;font-size:10px}.auth-status.error{color:#ff9d9d}.saved-projects{border-top:1px solid #2b2b2b}.saved-heading h3{color:#eee}.saved-heading>span{color:#777}.dialog-close{top:13px;right:15px;border-color:#444!important;background:#181818!important;color:#fff!important}
.account-dialog .auth-dialog__body>h2{color:#fff}.account-dialog .auth-dialog__body>.eyebrow{color:#9fac87}
.account-dialog{width:min(800px,calc(100vw - 32px));max-width:none;border:0;background:transparent;overflow:visible}
.account-dialog::backdrop{background:#050505e6;backdrop-filter:blur(4px)}
@media(max-width:1100px){.builder-main{grid-template-columns:minmax(320px,.9fr) minmax(0,1.2fr)}.builder-sidebar{width:180px}.builder-stage{grid-template-columns:180px minmax(0,1fr)}}
@media(max-width:760px){body:not(.is-space-view) .topbar{height:58px;padding:0 14px}.topbar-context__status,.topbar-quiet-action{display:none}body:not(.is-space-view) .topbar-context{margin-right:4px}.topbar-next-action{display:none!important}.builder-stage{display:flex;flex-direction:column;height:auto;min-height:calc(100dvh - 58px)}.builder-sidebar{display:block;padding:9px 10px;border-right:0;border-bottom:1px solid #242424}.builder-sidebar__brand,.builder-sidebar__project,.builder-sidebar__footer{display:none}.builder-sidebar .builder-flow{overflow-x:auto}.builder-sidebar .builder-flow__steps{display:flex;min-width:520px;gap:4px}.builder-sidebar .builder-flow__step{display:grid;grid-template-columns:24px minmax(0,1fr);flex:1;min-height:43px;padding:5px 6px}.builder-sidebar .builder-flow__step>strong{width:22px;height:22px;font-size:8px}.builder-sidebar .builder-flow__step b{font-size:9px}.builder-sidebar .builder-flow__step small{font-size:7px}.builder-sidebar .builder-flow__step:not(:last-child):after{display:none}.builder-main{display:flex;flex-direction:column;min-height:0}.editor-pane{max-height:none;overflow:visible;border-right:0}.editor-pane>.template-panel,.editor-pane>.editor,.editor-pane>.review-panel,.editor-pane>.publish-panel{padding:18px 14px}.template-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.template-card-copy{padding:7px}.template-card-copy strong{font-size:10px}.preview-panel{min-height:510px;padding:11px}.preview-frame{min-height:405px}.account-dialog .dialog-card{grid-template-columns:1fr;width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}.auth-dialog__benefits{display:none}.auth-dialog__body{grid-column:1;padding:22px 20px}.account-dialog .dialog-card>.eyebrow,.account-dialog .dialog-card>h2,.account-dialog .dialog-card>p:not(.auth-status),.account-dialog .auth-fields,.account-dialog .auth-note,.account-dialog .auth-actions,.account-dialog .auth-status,.account-dialog .saved-projects{grid-column:1;margin-right:20px;margin-left:20px}.account-dialog .dialog-card>.eyebrow{margin-top:22px}.account-dialog .dialog-card>h2{font-size:22px}}

/* Mi espacio: área autenticada independiente; reutiliza el listado real del diálogo. */
#spaceView[hidden],.shell[hidden],body>footer[hidden]{display:none!important}
.space-view{min-height:calc(100dvh - 64px);padding:clamp(24px,4vw,58px) clamp(16px,4vw,64px);background:#f5f5f3;color:#111}
body.is-space-view .topbar-context{display:none!important}
body.is-space-view .topbar-actions .help-button{min-height:34px;padding:7px 10px;border:1px solid transparent;border-radius:6px;background:transparent;color:#d5d5d5;font-size:11px}
body.is-space-view .topbar-actions .help-button:hover{border-color:#444;background:#171717;color:#fff}
.space-view__inner{width:min(100%,1480px);margin:0 auto}
.space-view__header{display:flex;align-items:flex-end;justify-content:space-between;gap:28px;padding-bottom:24px;border-bottom:1px solid #dededb}
.space-view__header .eyebrow{margin:0 0 9px;color:#737370;font-size:10px;font-weight:700;letter-spacing:.12em}
.space-view__header h1{margin:0;color:#111;font-size:clamp(30px,4vw,42px);letter-spacing:-.045em;line-height:1.05}
.space-view__description{margin:9px 0 0;color:#656562;font-size:14px;line-height:1.5}
.space-view__account{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:4px 16px;min-width:240px;padding:10px 0 2px 18px;border-left:1px solid #dededb}
.space-view__account-label{grid-column:1/-1;color:#777;font-size:10px}
.space-view__account strong{overflow:hidden;color:#222;font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.space-view__account button{grid-column:2;grid-row:2;min-height:32px;padding:6px 10px;border:1px solid #d1d1ce;border-radius:6px;background:#fff;color:#333;font-size:10px}
.space-view__account button:hover{border-color:#888;background:#fafaf9}
.space-view__projects{padding-top:22px}
body.is-space-view .saved-projects{margin:0;padding:0;border:0}
body.is-space-view .saved-heading{align-items:center;margin-bottom:4px}
body.is-space-view .saved-heading h3{font-size:18px;letter-spacing:-.02em}
body.is-space-view .saved-heading>span{margin-left:auto;color:#666;font-size:11px}
body.is-space-view .saved-heading>button{min-height:36px;padding:8px 12px;border-color:#171717;border-radius:6px;background:#171717;color:#fff;font-size:11px}
body.is-space-view .project-overview{grid-template-columns:repeat(3,minmax(0,1fr));max-width:600px;margin:16px 0 20px;padding:12px 0;border-block:1px solid #dededb}
body.is-space-view .project-stat{gap:7px;padding:4px 16px;border-right:1px solid #dededb;background:transparent}
body.is-space-view .project-stat:first-child{padding-left:0}
body.is-space-view .project-stat strong{font-size:25px}
body.is-space-view .project-stat span{font-size:11px}
body.is-space-view .project-tools{justify-content:space-between;margin:16px 0}
body.is-space-view .project-search{width:min(100%,520px);min-height:42px;border-color:#d4d4d0;border-radius:7px;font-size:12px}
body.is-space-view .project-filters{padding:3px;border-color:#dededb;border-radius:7px;background:#eeefec}
body.is-space-view .project-filter{min-height:32px;padding-inline:12px;font-size:11px}
body.is-space-view .project-filter.is-active{border-color:#111;background:#111}
body.is-space-view #projectList{grid-template-columns:repeat(auto-fill,minmax(min(100%,360px),1fr));gap:14px;margin-top:18px}
body.is-space-view .project-card{grid-template-columns:116px minmax(0,1fr);align-content:start;gap:9px 14px;min-height:142px;padding:12px;border:1px solid #dededb;border-radius:9px;background:#fff;box-shadow:0 2px 8px #00000008}
body.is-space-view .project-card__thumb{grid-column:1;grid-row:1/3;min-height:90px;border:0;border-radius:5px;background:#f0f0ee}
body.is-space-view .project-card__thumb img{height:100%;min-height:90px;object-fit:cover}
body.is-space-view .project-card>div{grid-column:2;grid-row:1;align-self:center}
body.is-space-view .project-card strong{font-size:14px}
body.is-space-view .project-meta{gap:5px 8px}
body.is-space-view .project-status{padding:3px 7px;border-radius:99px;background:#f0f0ee;color:#444;font-size:10px}
body.is-space-view .project-status.is-published{background:#edf4e7;color:#365d20}
body.is-space-view .project-card small,body.is-space-view .project-meta small{font-size:10px}
body.is-space-view .project-meta .project-updated{flex-basis:100%;color:#777}
body.is-space-view .project-actions{grid-column:2;grid-row:2;align-self:end;gap:6px}
body.is-space-view .project-actions button,body.is-space-view .project-actions a{min-height:31px;padding:6px 9px;border-radius:5px;font-size:10px}
body.is-space-view .project-actions button:first-of-type{border-color:#171717;background:#171717;color:#fff}
body.is-space-view .project-open-link{display:inline-flex;align-items:center}
body.is-space-view .project-filter-empty{grid-column:1/-1}
@media(max-width:760px){
  .space-view{min-height:calc(100dvh - 60px);padding:24px 14px 36px}
  .space-view__header{align-items:flex-start;flex-direction:column;gap:18px;padding-bottom:18px}
  .space-view__header h1{font-size:32px}
  .space-view__description{font-size:12px}
  .space-view__account{grid-template-columns:minmax(0,1fr) auto;width:100%;min-width:0;padding:12px 0 0;border-top:1px solid #dededb;border-left:0}
  .space-view__projects{padding-top:16px}
  body.is-space-view .saved-heading{align-items:flex-start;flex-wrap:wrap}
  body.is-space-view .saved-heading>span{order:3;width:100%;margin:0}
  body.is-space-view .saved-heading>button{margin-left:auto}
  body.is-space-view .project-overview{margin:14px 0;padding:10px 0}
  body.is-space-view .project-stat{gap:4px;padding-inline:8px}
  body.is-space-view .project-stat strong{font-size:21px}
  body.is-space-view .project-stat span{font-size:10px}
  body.is-space-view .project-tools{display:grid;grid-template-columns:minmax(0,1fr);gap:9px}
  body.is-space-view .project-search{width:100%}
  body.is-space-view .project-filters{width:max-content;max-width:100%;overflow-x:auto}
  body.is-space-view #projectList{grid-template-columns:minmax(0,1fr);gap:10px;margin-top:12px}
  body.is-space-view .project-card{grid-template-columns:88px minmax(0,1fr);min-height:116px;gap:8px 10px;padding:9px}
  body.is-space-view .project-card__thumb{min-height:78px}
  body.is-space-view .project-card__thumb img{min-height:78px}
}

/* Mobile editor guard: the desktop shell selectors above intentionally carry
   body-level specificity, so the small-screen layout must override them at
   the same specificity. Keep the editor single-column and viewport-bound. */
@media(max-width:760px){
  body:not(.is-space-view) .shell{height:auto;min-height:calc(100dvh - 58px);overflow:visible}
  body:not(.is-space-view) .builder-stage{display:flex;grid-template-columns:none;width:100%;height:auto;min-height:calc(100dvh - 58px);margin:0;flex-direction:column;overflow:visible}
  body:not(.is-space-view) .builder-sidebar{width:100%;box-sizing:border-box;flex:0 0 auto}
  body:not(.is-space-view) .builder-sidebar__nav{width:100%;min-width:0;overflow:hidden}
  body:not(.is-space-view) .builder-main{display:flex;grid-template-columns:none;width:100%;min-width:0;flex:0 0 auto;flex-direction:column;overflow:visible}
  body:not(.is-space-view) .editor-pane,body:not(.is-space-view) .preview-panel{width:100%;box-sizing:border-box;min-width:0}
  body:not(.is-space-view) .editor-pane{max-height:none;overflow:visible}
  body:not(.is-space-view) .preview-panel{min-height:510px;overflow:hidden}
  body:not(.is-space-view) .topbar{width:100%;box-sizing:border-box;overflow:hidden}
  body:not(.is-space-view) .brand{min-width:0;max-width:calc(100% - 72px)}
  body:not(.is-space-view) .topbar-context{display:none}
  body:not(.is-space-view) .topbar-actions{min-width:0;gap:4px}
  body:not(.is-space-view) .topbar-actions .topbar-quiet-action,body:not(.is-space-view) .topbar-actions .topbar-next-action,body:not(.is-space-view) .topbar-actions .account-button{display:none}
  body:not(.is-space-view) .topbar-actions .help-button{min-width:0;padding-inline:6px}
}
