/* The hero demo uses the same paper, sage, and violet palette as the site. */
.marketing-hero .hero-grid{grid-template-columns:.82fr 1.18fr;gap:48px}
.marketing-hero .hero-copy h1{font-size:clamp(48px,4.8vw,64px)}
.editor-panel{--selection:#8871bb;box-shadow:0 18px 50px #2731240a;overflow:visible}
.editor-panel button{transition:background .15s,color .15s}
.editor-panel button:disabled{opacity:.3;cursor:default}
.editor-panel svg{width:16px;height:16px;flex-shrink:0}
.studio-header{display:flex;justify-content:space-between;align-items:center;gap:16px;padding:17px 18px;border-bottom:1px solid var(--line);border-radius:4px 4px 0 0;background:#fcfdfb}
.studio-title,.studio-actions{display:flex;align-items:center;gap:12px}
.studio-mark{font-size:26px;color:#7964ac;line-height:1}
.studio-title>div{display:flex;flex-direction:column;gap:5px}
.studio-eyebrow{font-size:8px;letter-spacing:.12em;color:#8b9285}
#template-name{font-size:12px;color:var(--ink)}
.draft-badge{font-size:9px;color:#7f8877;border:1px solid #dfe5d7;padding:4px 6px;border-radius:3px;margin-left:5px}
.studio-actions{gap:10px}.icon-button{display:grid;place-items:center;width:27px;height:28px;border-radius:3px;color:#78816f}
.icon-button:hover{background:#e1e8d9}
.editor-workspace{display:grid;grid-template-columns:132px minmax(0,1fr);min-width:0}
.block-library{border-right:1px solid var(--line);padding:20px 12px;background:#fafbf8;min-width:0}
.library-heading{font-size:11px;font-weight:500;letter-spacing:-.01em}
.library-description{font-size:9px;color:#8b9285;line-height:1.6;margin-top:5px}
.library-grid{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:20px}
.library-block{height:64px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;border:1px solid #dde3d7;border-radius:3px;background:#fff;color:#6f7867;cursor:grab;font-size:9px}
.library-block svg{width:20px;height:20px;color:#555f4c}
.library-block:hover{background:#f1edf8;border-color:#bbacd1;color:#6b5596}.library-block:active{cursor:grabbing}
.library-hint{font-size:9px;line-height:1.7;color:#92998b;margin-top:24px}
.library-hint>span{display:block;font-size:22px;line-height:1;margin-bottom:9px;color:#a8b29d}
.editor-stage{min-width:0;background:#edf0e9}
.canvas-toolbar{height:40px;display:flex;align-items:center;justify-content:space-between;gap:10px;padding:0 18px;border-bottom:1px solid #dfe4d9;background:#f3f5f0;color:#9aa18f}
.canvas-label,.canvas-scale{font:8px ui-monospace,monospace;letter-spacing:.07em}
.editor-panel .device-controls{gap:3px}.editor-panel .device-controls button{display:grid;place-items:center;width:28px;height:26px;padding:0;border-radius:3px;color:#8a9380}
.editor-panel .device-controls button[aria-pressed=true]{background:#e1e7d9;color:#4f5c44}
.editor-panel .device-controls svg{width:14px;height:14px}
.editor-panel .editor-canvas{height:398px;min-height:0;overflow:auto;align-items:flex-start;padding:22px 26px;background-color:#edf0e9;background-image:radial-gradient(#bdc7b4 0.55px,transparent .55px);background-size:9px 9px;scrollbar-width:thin;scrollbar-color:#cad3c0 transparent}
.editor-panel .email-preview{max-width:340px;box-shadow:0 5px 15px #34402a06;flex:0 1 340px;border-color:#dfe4d9;transition:max-width .25s}
.editor-panel .email-preview.compact{max-width:230px}
.editor-panel .email-brand{padding:13px 20px;font-size:11px}
.editor-panel .email-art{height:83px}
.editor-panel .email-art svg{height:125px;width:195px;flex-shrink:0}
.email-block{position:relative;min-width:0;cursor:pointer;outline:1px solid transparent;outline-offset:5px;transition:outline-color .15s;overflow-wrap:anywhere}
.email-block:not(.block-image){margin:18px 20px}
.email-block:hover{outline-color:#baacd0}
.email-block.is-selected{outline-color:var(--selection);z-index:2}
.email-block.is-selected::before,.email-block.is-selected::after{content:'';position:absolute;width:4px;height:4px;background:#fff;border:1px solid var(--selection);pointer-events:none;left:-8px;top:-8px}
.email-block.is-selected::after{top:auto;left:auto;bottom:-8px;right:-8px}
.email-block:focus-visible{outline-color:var(--selection);outline-offset:5px}
.email-block [contenteditable]{cursor:text;min-width:1ch;outline:none;white-space:pre-wrap;overflow-wrap:anywhere}
.email-block .email-tag{font-size:7px;letter-spacing:.08em;color:var(--email-ink);margin-bottom:7px}
.email-block h2{font-size:28px;line-height:1.15;letter-spacing:-.05em;min-height:1em}
.email-block p:not(.email-tag){font-size:10px;color:#768070;line-height:1.7;min-height:1em}
.email-block .email-cta{margin:0;font-size:9px;padding:10px 12px;line-height:1.3;min-height:1em}
.block-divider hr{border:0;border-top:1px solid #d8dfcf;margin:16px 0}
.block-spacer>div{height:24px;background:repeating-linear-gradient(135deg,transparent 0,transparent 4px,#e8ecdf60 4px,#e8ecdf60 5px)}
.block-tools{position:absolute;right:-6px;bottom:calc(100% + 6px);display:flex;align-items:center;gap:1px;background:#8871bb;color:white;border:1px solid #8871bb;border-radius:3px 3px 0 0;box-shadow:0 -3px 8px #53416d08;white-space:nowrap;z-index:4}
.block-tools-label{font-size:8px;padding:0 8px 0 7px;letter-spacing:.02em}
.block-tools button{display:grid;place-items:center;padding:0;width:24px;height:24px;color:#fff;cursor:pointer}
.block-tools button:hover{background:#715c9f}.block-tools button:disabled{opacity:.35}
.block-tools svg{width:12px;height:12px}
.editor-panel .block-drop-zone{display:flex;align-items:center;justify-content:center;gap:8px;color:#8e7aaf;font-size:9px;border:1px dashed #c5b8d9;background:#f9f7fc;margin:15px 14px 14px;width:calc(100% - 28px);height:29px;border-radius:2px}
.block-drop-zone>span{font-size:16px;line-height:1}.block-drop-zone:hover{background:#f0ebf8}
.editor-panel.is-dragging .email-preview{outline:2px dashed #aa95c8;outline-offset:4px}.email-block.drop-target{box-shadow:0 7px 0 -5px #8871bb}
.style-inspector{border-top:1px solid var(--line);padding:12px 16px;display:flex;align-items:center;gap:13px;background:#fcfdfb;min-width:0}
.inspector-heading{display:flex;align-items:center;gap:7px;font-size:10px;color:#66547f;min-width:69px}
.inspector-dot{width:5px;height:5px;background:#a48cc3;border-radius:50%}
.font-setting{display:flex;align-items:center;gap:2px;border:1px solid #dbe1d3;padding:5px 6px;border-radius:3px;font-size:9px;color:#909984}
.font-setting input{font:10px ui-monospace,monospace;border:0;background:none;width:28px;padding:0;color:#5e6852;-moz-appearance:textfield}
.font-setting input::-webkit-inner-spin-button{appearance:none}.font-setting input:focus-visible{outline:1px solid var(--accent);outline-offset:3px}
.alignment-controls{display:flex;gap:2px;border-right:1px solid var(--line);padding-right:13px}.alignment-controls button{width:25px;height:25px;display:grid;place-items:center;border-radius:2px;color:#8b957e;padding:0}
.alignment-controls svg{width:13px;height:13px}.alignment-controls button[aria-pressed=true]{background:#ece6f5;color:#7f66a7}
.editor-panel .color-controls{margin-left:auto;gap:8px;font-size:9px;color:#88937c}.editor-panel .color-controls>span{margin-right:3px}
.editor-panel .color-controls button{width:17px;height:17px}
.studio-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e5e9df;padding:10px 16px;font-size:8px;color:#8a9580;background:#fafbf8;border-radius:0 0 4px 4px}
#editor-hint{color:#8a77a9}.builder-caption{font-size:10px}
@media(max-width:1100px){.marketing-hero .hero-grid{gap:35px;grid-template-columns:.85fr 1.15fr}.marketing-hero .hero-copy h1{font-size:54px}.editor-workspace{grid-template-columns:112px minmax(0,1fr)}.block-library{padding-inline:10px}.library-grid{gap:6px}.editor-panel .editor-canvas{padding:20px}.style-inspector{gap:9px;padding-inline:12px}.alignment-controls{padding-right:9px}.inspector-heading{min-width:61px}.studio-header{padding-inline:14px}.draft-badge{display:none}}
@media(min-width:701px) and (max-width:1000px){.marketing-hero .hero-grid{grid-template-columns:1fr;gap:42px}.marketing-hero .hero-copy{max-width:580px}.marketing-hero .hero-copy h1{font-size:58px}.marketing-hero .hero-actions{flex-direction:row;align-items:center}.marketing-hero .editor-wrap{max-width:680px;width:100%;justify-self:center}.editor-workspace{grid-template-columns:145px minmax(0,1fr)}.block-library{padding:23px 15px}.library-block{height:73px}.editor-panel .editor-canvas{height:410px;padding:22px 30px}.style-inspector{gap:17px}.studio-header{padding:17px 18px}.draft-badge{display:block}}
@media(max-width:700px){.marketing-hero .hero-grid{grid-template-columns:1fr;gap:34px}.marketing-hero .hero-copy h1{font-size:clamp(44px,10vw,62px)}.studio-header{padding:13px 12px;gap:8px}.studio-title{gap:8px}.studio-mark{font-size:23px}.studio-actions{gap:5px}.studio-reset{width:24px}#template-name{font-size:11px}.studio-eyebrow{font-size:7px}.editor-workspace{grid-template-columns:1fr}.block-library{border-right:0;border-bottom:1px solid var(--line);padding:12px;background:#fafbf8}.library-heading{font-size:9px}.library-description,.library-hint{display:none}.library-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin-top:10px}.library-block{height:48px;gap:6px;font-size:7px}.library-block svg{width:17px;height:17px}.canvas-toolbar{height:34px;padding-inline:16px}.canvas-label,.canvas-scale{font-size:7px}.editor-panel .editor-canvas{height:389px;padding:22px 25px}.editor-panel .email-preview{max-width:340px}.editor-panel .email-preview.compact{max-width:220px}.email-block:not(.block-image){margin:18px}.style-inspector{gap:9px;flex-wrap:wrap;padding:11px 12px}.inspector-heading{min-width:58px;font-size:9px}.font-setting{padding:5px}.alignment-controls{gap:0;padding-right:7px;border-right:0}.alignment-controls button{width:21px;height:24px}.editor-panel .color-controls{gap:7px}.editor-panel .color-controls>span{display:none}.editor-panel .color-controls button{height:15px;width:15px;border-width:2px}.block-tools-label{font-size:7px}.block-tools button{width:22px;height:22px}.studio-footer{padding:10px 12px;font-size:7px}.builder-caption{font-size:9px}.email-block h2{font-size:27px}}
@media(max-width:360px){.marketing-hero .hero-copy h1{font-size:42px}.studio-reset{display:none}.studio-title{gap:6px}.studio-mark{font-size:20px}.library-grid{gap:4px}.block-library{padding:10px}.library-block{font-size:6px}.editor-panel .editor-canvas{padding:22px 16px}.email-block:not(.block-image){margin-inline:15px}.style-inspector{gap:8px}.inspector-heading{min-width:52px}.alignment-controls{padding-right:0}.font-setting input{width:23px}.font-setting{padding:4px}.editor-panel .color-controls{gap:6px}.block-tools-label{padding-inline:5px}.block-tools button{width:20px}.builder-caption>span:first-child{max-width:160px;line-height:1.6}}
