:root{
  --ink:#151515;
  --muted:#6f6b64;
  --gold:#d5a13e;
  --gold-dark:#8d5d14;
  --cream:#f6f2ea;
  --paper:#fff;
  --line:#dfd8cc;
  --green:#166534;
  --danger:#a61b1b;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:#efebe4;color:var(--ink);font-family:Pretendard,"Noto Sans KR","Apple SD Gothic Neo",Arial,sans-serif}
button,input,textarea,select{font:inherit}
button,a{touch-action:manipulation}
a{color:inherit;text-decoration:none}
button{cursor:pointer}
.sd-site-header{position:sticky;top:0;z-index:40;display:flex;min-height:72px;align-items:center;justify-content:space-between;gap:24px;padding:14px max(24px,calc((100% - 1320px)/2));background:#10100f;color:#fff;border-bottom:1px solid #3a3328}
.sd-brand{font-size:1.12rem;font-weight:950;letter-spacing:.08em;white-space:nowrap}
.sd-brand b{color:var(--gold);font-size:.68rem;margin-left:5px;letter-spacing:.12em}
.sd-site-header nav{display:flex;align-items:center;justify-content:flex-end;gap:22px;font-size:.88rem;font-weight:750}
.sd-site-header nav a:hover,.sd-site-header nav a:focus-visible{color:var(--gold);outline:none}
.sd-phone{border:1px solid #5d4b30;border-radius:999px;padding:9px 14px;color:#f4ca7b}
.sd-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(360px,.95fr);min-height:560px;background:radial-gradient(circle at 82% 25%,#4f3b1f 0,#1d1a16 28%,#10100f 72%);color:#fff;overflow:hidden}
.sd-hero-copy{align-self:center;width:min(710px,100%);padding:72px 48px 72px max(30px,calc((100vw - 1320px)/2))}
.sd-eyebrow{display:inline-flex;align-items:center;gap:10px;color:#e9bc65;font-size:.77rem;font-weight:900;letter-spacing:.17em}
.sd-eyebrow::before{content:"";width:34px;height:2px;background:var(--gold)}
.sd-hero h1{margin:18px 0 20px;font-size:clamp(2.5rem,4.6vw,4.7rem);line-height:1.07;letter-spacing:-.055em}
.sd-hero-copy>p{max-width:650px;margin:0;color:#c9c5be;font-size:1.05rem;line-height:1.78;word-break:keep-all}
.sd-hero-actions{display:flex;flex-wrap:wrap;gap:10px;margin:30px 0}
.sd-primary-link,.sd-secondary-link{display:inline-flex;min-height:48px;align-items:center;justify-content:center;border-radius:9px;padding:12px 19px;font-weight:900}
.sd-primary-link{background:linear-gradient(135deg,#e2b45a,#b87c1c);color:#15110b}
.sd-secondary-link{border:1px solid #655b4c;background:#ffffff0d;color:#fff}
.sd-primary-link:hover,.sd-primary-link:focus-visible{filter:brightness(1.08);outline:2px solid #fff;outline-offset:2px}
.sd-secondary-link:hover,.sd-secondary-link:focus-visible{border-color:var(--gold);color:var(--gold);outline:none}
.sd-price-lead{display:flex;align-items:baseline;flex-wrap:wrap;gap:9px;color:#d3cdc3}
.sd-price-lead small{font-size:.78rem}
.sd-price-lead strong{color:#fff;font-size:1.65rem}
.sd-price-lead span{font-size:.78rem}
.sd-hero-art{position:relative;display:grid;place-items:center;min-height:520px;padding:48px}
.sd-hero-art::before,.sd-hero-art::after{content:"";position:absolute;border-radius:50%;border:1px solid #d8a44642}
.sd-hero-art::before{width:510px;height:510px}
.sd-hero-art::after{width:390px;height:390px;background:#d6a0440d}
.sd-stand{position:relative;z-index:1;display:grid;place-items:center;width:260px;filter:drop-shadow(0 30px 32px #0008)}
.sd-banner-demo{position:relative;z-index:2;width:230px;height:430px;padding:37px 26px;background:linear-gradient(155deg,#fff 0 42%,#e6b653 42% 100%);color:#111;overflow:hidden}
.sd-banner-demo::before{content:"";position:absolute;right:-48px;top:80px;width:160px;height:160px;border:26px solid #171717;border-radius:50%;opacity:.08}
.sd-banner-demo small{font-size:.58rem;font-weight:900;letter-spacing:.18em}
.sd-banner-demo strong{display:block;margin-top:34px;font-size:2.25rem;line-height:1.08;letter-spacing:-.07em}
.sd-banner-demo strong em{font-style:normal;color:#b27314}
.sd-banner-demo span{position:absolute;left:26px;bottom:27px;font-size:.55rem;font-weight:900;letter-spacing:.13em}
.sd-stand>i{width:4px;height:90px;background:#d4d0ca}
.sd-stand>b{display:block;width:160px;height:16px;border-radius:50%;background:#24211d;box-shadow:0 7px 0 #080808}
.sd-step-strip{display:grid;grid-template-columns:repeat(4,1fr);max-width:1320px;margin:-26px auto 36px;position:relative;z-index:3;border:1px solid var(--line);border-radius:13px;background:#fff;box-shadow:0 18px 48px #3e2c111a;overflow:hidden}
.sd-step-strip div{display:flex;align-items:center;gap:12px;min-height:72px;padding:15px 22px;border-right:1px solid var(--line)}
.sd-step-strip div:last-child{border-right:0}
.sd-step-strip b{color:#b77b1e;font-size:1.18rem}
.sd-step-strip span{font-size:.9rem;font-weight:850}
.sd-studio{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:24px;width:min(960px,calc(100% - 32px));margin:0 auto 88px}
.sd-preview-panel,.sd-control-panel{min-width:0}
.sd-preview-panel{position:relative;border:1px solid #2c2924;border-radius:18px;background:#141311;color:#fff;padding:22px;box-shadow:0 22px 60px #2f210f26}
.sd-panel-title{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:18px}
.sd-panel-title small,.sd-how-heading small{color:var(--gold);font-size:.68rem;font-weight:900;letter-spacing:.16em}
.sd-panel-title h2{margin:3px 0 0;font-size:1.5rem}
.sd-side-tabs{display:flex;border:1px solid #4b463e;border-radius:9px;padding:3px;background:#0a0a09}
.sd-side-tabs button{min-width:58px;border:0;border-radius:6px;background:transparent;color:#aaa;padding:7px 10px;font-size:.8rem;font-weight:800}
.sd-side-tabs button.active{background:var(--gold);color:#17120a}
.sd-canvas-stage{display:grid;place-items:center;min-height:520px;max-height:690px;border:1px solid #38342e;border-radius:14px;background:repeating-conic-gradient(#24221e 0 25%,#201e1b 0 50%) 50%/20px 20px;padding:18px;overflow:hidden}
#designCanvas{display:block;max-width:100%;max-height:650px;background:#fff;box-shadow:0 12px 40px #0009}
.sd-preview-meta{display:flex;justify-content:space-between;gap:16px;margin-top:14px;color:#a9a49d;font-size:.76rem}
.sd-preview-meta span:first-child{color:#e9bc65;font-weight:850}
.sd-preview-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:14px}
.sd-preview-actions button,.sd-text-button{border:1px solid #4a453d;border-radius:8px;background:#23211e;color:#e6e2dc;padding:9px 12px;font-size:.8rem;font-weight:800}
.sd-preview-actions button:hover,.sd-preview-actions button:focus-visible,.sd-text-button:hover,.sd-text-button:focus-visible{border-color:var(--gold);color:#f5c66e;outline:none}
.sd-control-panel{display:grid;gap:18px}
.sd-control-section{min-width:0;border:1px solid var(--line);border-radius:18px;background:#fff;padding:24px;box-shadow:0 12px 36px #3e2c1110}
.sd-section-heading{display:flex;align-items:flex-start;gap:13px;margin-bottom:20px}
.sd-section-heading>b{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:50%;background:#171717;color:var(--gold);font-size:.86rem}
.sd-section-heading h2{margin:0;font-size:1.28rem}
.sd-section-heading p{margin:4px 0 0;color:var(--muted);font-size:.83rem;line-height:1.5}
.sd-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:18px}
.sd-type-card{display:flex;min-height:74px;align-items:center;gap:11px;border:1px solid var(--line);border-radius:11px;background:#fff;padding:11px;text-align:left}
.sd-type-card i{position:relative;display:block;flex:0 0 32px;width:32px;height:46px;border:2px solid #7b7266;background:#f1e8d9}
.sd-type-card i::after{content:"";position:absolute;left:50%;bottom:-8px;width:36px;height:7px;border-radius:50%;background:#bcb3a5;transform:translateX(-50%)}
.sd-type-card[data-sides="2"] i{box-shadow:5px 0 0 #cf9d42}
.sd-type-card span{min-width:0}
.sd-type-card b{display:block;font-size:.88rem;line-height:1.3}
.sd-type-card small{display:block;margin-top:3px;color:var(--muted);font-size:.69rem;line-height:1.35}
.sd-type-card.active{border-color:#b77b1e;background:#fff8e9;box-shadow:0 0 0 1px #b77b1e}
.sd-type-card.active i{border-color:#171717;background:var(--gold)}
.sd-type-card:focus-visible{outline:2px solid #171717;outline-offset:2px}
.sd-control-section>label,.sd-classic-editor-controls>label,.sd-select-grid>label,.sd-color-grid>label{display:grid;gap:7px;margin:0 0 14px;color:#3e3932;font-size:.83rem;font-weight:850}
.sd-select-grid{display:grid;grid-template-columns:1fr 1fr;gap:11px}
.sd-control-section input,.sd-control-section textarea,.sd-control-section select{width:100%;min-width:0;border:1px solid #d8d1c6;border-radius:9px;background:#fff;padding:12px;color:#181818}
.sd-control-section input:focus,.sd-control-section textarea:focus,.sd-control-section select:focus{border-color:#ad741c;outline:2px solid #e9c98666}
.sd-control-section textarea{resize:vertical;line-height:1.55}
.sd-quantity{position:relative}
.sd-quantity>span{display:flex;gap:6px;margin-bottom:0}
.sd-quantity>span button{flex:1;border:1px solid var(--line);border-radius:8px;background:#f8f5ef;padding:8px;font-size:.78rem;font-weight:800}
.sd-quantity>span button:hover,.sd-quantity>span button:focus-visible{border-color:#b77b1e;background:#fff5df;outline:none}
.sd-selected-summary{margin:4px 0 12px;border-radius:9px;background:#f7f3ec;padding:12px;color:#625b52;font-size:.78rem;line-height:1.55}
.sd-price-box{display:grid;grid-template-columns:1fr auto;gap:5px 18px;border-radius:13px;background:#151515;color:#fff;padding:19px}
.sd-price-box>div{grid-row:1/3}
.sd-price-box span{display:block;font-size:.82rem;font-weight:850}
.sd-price-box small{display:block;margin-top:6px;color:#9d9890;font-size:.68rem}
.sd-price-box strong{align-self:end;color:#f0bd5c;font-size:1.8rem;text-align:right;letter-spacing:-.04em}
.sd-price-box em{color:#aaa;font-size:.75rem;font-style:normal;text-align:right}
.sd-ai-assistant{margin-bottom:20px;border:1px solid #d7bb84;border-radius:14px;background:linear-gradient(145deg,#fffaf0,#f6eee0);padding:18px}
.sd-ai-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:14px}
.sd-ai-heading strong{display:block;font-size:1.08rem}
.sd-ai-heading small{display:block;margin-top:5px;color:var(--muted);font-size:.76rem;line-height:1.5}
.sd-ai-heading>span{flex:0 0 auto;border-radius:999px;background:#171717;color:#f0bd5c;padding:6px 10px;font-size:.68rem;font-weight:900}
.sd-ai-assistant>label{display:grid;gap:7px;color:#3e3932;font-size:.83rem;font-weight:850}
.sd-ai-assistant textarea{margin:0}
.sd-ai-help{display:block;margin:8px 0 12px;color:#756e64;font-size:.7rem;line-height:1.55}
.sd-ai-generate{width:100%;min-height:48px;border:0;border-radius:9px;background:linear-gradient(135deg,#171717,#3b3328);color:#f3c66e;font-weight:950}
.sd-ai-generate:hover,.sd-ai-generate:focus-visible{filter:brightness(1.12);outline:2px solid #bd8125;outline-offset:2px}
.sd-ai-status{min-height:0;margin:10px 0 0;color:#6e6252;font-size:.78rem;font-weight:800;line-height:1.5}
.sd-ai-status.error{color:var(--danger)}
.sd-ai-status.success{color:var(--green)}
.sd-ai-suggestions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;margin-top:13px}
.sd-ai-card{display:grid;grid-template-rows:320px auto;min-width:0;border:1px solid #d8cfbf;border-radius:11px;background:#fff;padding:8px;text-align:left}
.sd-ai-card-preview{display:grid;place-items:center;border-radius:7px;background:repeating-conic-gradient(#ebe6dd 0 25%,#e4ded4 0 50%) 50%/16px 16px;overflow:hidden}
.sd-ai-card canvas{display:block;max-width:94%;max-height:306px;filter:drop-shadow(0 5px 8px #0004)}
.sd-ai-card span{display:block;margin-top:8px;color:#2e2922;font-size:.75rem;font-weight:950}
.sd-ai-card small{display:block;margin-top:3px;color:var(--muted);font-size:.65rem;font-weight:750}
.sd-ai-card:hover,.sd-ai-card:focus-visible{border-color:#ad741c;outline:none;box-shadow:0 0 0 1px #ad741c}
.sd-ai-card.active{border-color:#171717;background:#fff4dc;box-shadow:0 0 0 2px #d19a3b}
.sd-size-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:2px 0 14px}
.sd-size-grid label{display:grid;gap:7px;border:1px solid #e0d9ce;border-radius:10px;background:#faf7f2;padding:11px;color:#4b443b;font-size:.76rem;font-weight:850}
.sd-size-grid label>span{display:flex;justify-content:space-between;gap:8px}
.sd-size-grid output{color:#9a6515;font-weight:950}
.sd-size-grid input[type="range"]{height:22px;border:0;background:transparent;padding:0;accent-color:#b77b1e}
.sd-template-toolbar{display:grid;gap:9px;margin-bottom:12px}
.sd-industry-filters{display:flex;gap:6px;overflow-x:auto;padding:2px 1px 7px;scrollbar-width:thin;scrollbar-color:#cbb58e transparent}
.sd-industry-filters button{flex:0 0 auto;border:1px solid var(--line);border-radius:999px;background:#f8f5ef;padding:8px 12px;color:#5d554b;font-size:.74rem;font-weight:850;white-space:nowrap}
.sd-industry-filters button:hover,.sd-industry-filters button:focus-visible{border-color:#a96d12;color:#7c4e09;outline:none}
.sd-industry-filters button.active{border-color:#171717;background:#171717;color:#f0bd5c}
.sd-template-count{color:var(--muted);font-size:.7rem;text-align:right}
.sd-template-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:16px}
.sd-template-card{min-width:0;border:1px solid var(--line);border-radius:10px;background:#fff;padding:7px;overflow:hidden;text-align:left}
.sd-template-card i{position:relative;display:block;height:62px;border-radius:6px;background:var(--thumb-bg,#171717);margin-bottom:7px;overflow:hidden}
.sd-template-card i::before,.sd-template-card i::after{content:"";position:absolute;background:var(--thumb-accent,#d8a342)}
.sd-template-card[data-layout="opening"] i::before{inset:58% 0 0;clip-path:polygon(0 35%,100% 0,100% 100%,0 100%)}
.sd-template-card[data-layout="event"] i::before{width:24px;height:24px;right:10px;top:8px;border-radius:50%;box-shadow:-37px 13px 0 color-mix(in srgb,var(--thumb-accent) 35%,transparent)}
.sd-template-card[data-layout="event"] i::after{left:10%;right:10%;height:3px;bottom:11px}
.sd-template-card[data-layout="menu"] i::before{inset:0 auto 0 0;width:20%}
.sd-template-card[data-layout="menu"] i::after{left:20%;right:0;bottom:0;height:35%;opacity:.24}
.sd-template-card[data-layout="diagonal"] i::before{inset:57% 0 0;clip-path:polygon(0 48%,100% 0,100% 100%,0 100%)}
.sd-template-card[data-layout="diagonal"] i::after{width:42%;height:45%;right:-8%;top:-12%;transform:rotate(22deg);opacity:.24}
.sd-template-card[data-layout="split"] i::before{inset:0 0 0 65%;opacity:.55}
.sd-template-card[data-layout="split"] i::after{left:10%;right:10%;height:3px;bottom:10px}
.sd-template-card[data-layout="wave"] i::before{left:-10%;right:-10%;bottom:-28px;height:58px;border-radius:50% 50% 0 0}
.sd-template-card[data-layout="wave"] i::after{width:28px;height:28px;right:8px;top:5px;border-radius:50%;opacity:.2}
.sd-template-card[data-layout="arch"] i::before{width:58px;height:34px;left:50%;top:8px;border:3px solid var(--thumb-accent);border-bottom:0;border-radius:38px 38px 0 0;transform:translateX(-50%);background:transparent}
.sd-template-card[data-layout="arch"] i::after{width:24px;height:3px;left:50%;bottom:10px;transform:translateX(-50%)}
.sd-template-card[data-layout="blocks"] i::before{width:38%;height:42%;right:0;top:0;opacity:.35}
.sd-template-card[data-layout="blocks"] i::after{width:26%;height:34%;left:0;bottom:0}
.sd-template-card[data-layout="stripes"] i::before{width:12px;height:95px;right:25px;top:-18px;transform:rotate(24deg);box-shadow:20px 0 0 color-mix(in srgb,var(--thumb-accent) 45%,transparent),-20px 0 0 color-mix(in srgb,var(--thumb-accent) 45%,transparent)}
.sd-template-card[data-layout="rays"] i::before{width:42px;height:42px;left:50%;top:-18px;border-radius:50%;transform:translateX(-50%);box-shadow:0 0 0 12px color-mix(in srgb,var(--thumb-accent) 18%,transparent)}
.sd-template-card[data-layout="rays"] i::after{left:15%;right:15%;height:3px;bottom:10px}
.sd-template-card[data-layout="border"] i::before{inset:7px;border:2px solid var(--thumb-accent);background:transparent}
.sd-template-card>span{display:block;overflow:hidden;text-overflow:ellipsis;color:#2e2a25;font-size:.72rem;font-weight:900;white-space:nowrap}
.sd-template-card>small{display:block;margin-top:2px;color:var(--muted);font-size:.62rem;font-weight:700}
.sd-template-card.active{border-color:#a96d12;background:#fff6e5;box-shadow:0 0 0 1px #a96d12}
.sd-template-card:focus-visible{outline:2px solid #171717;outline-offset:1px}
.sd-editing-side{margin-bottom:14px;border-left:3px solid var(--gold);background:#fff8e9;padding:10px 12px;color:#80510d;font-size:.79rem;font-weight:850}
.sd-color-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}
.sd-color-grid input[type="color"]{height:48px;padding:5px;cursor:pointer}
.sd-file-control{border:1px dashed #c9b899;border-radius:10px;background:#fbf7ef;padding:13px}
.sd-file-control small{color:var(--muted);font-weight:500}
.sd-file-control input{background:#fff}
#imageControls{border-left:3px solid #d3a14c;padding:12px 0 0 13px}
#imageControls input[type="range"]{padding:10px 0;border:0}
.sd-order-section{border-top:4px solid #171717}
.sd-privacy{display:flex!important;grid-template-columns:auto 1fr!important;align-items:flex-start;gap:9px!important;color:var(--muted)!important;font-weight:650!important;line-height:1.45}
.sd-privacy input{width:18px!important;height:18px;margin:2px 0 0;padding:0}
.sd-privacy a{color:#875710;text-decoration:underline}
.sd-submit{width:100%;min-height:54px;border:0;border-radius:10px;background:linear-gradient(135deg,#dfae50,#ad7017);color:#16110a;font-weight:950;box-shadow:0 10px 24px #b67d2233}
.sd-submit:hover,.sd-submit:focus-visible{filter:brightness(1.06);outline:2px solid #171717;outline-offset:2px}
.sd-submit:disabled{cursor:wait;filter:grayscale(.5);opacity:.65}
.sd-result{min-height:0;margin:12px 0 0;font-size:.86rem;font-weight:850;line-height:1.55}
.sd-result.success{border-radius:9px;background:#e8f7ed;color:var(--green);padding:12px}
.sd-result.error{border-radius:9px;background:#fff0f0;color:var(--danger);padding:12px}
.sd-how{background:#fff;padding:90px max(24px,calc((100% - 1320px)/2))}
.sd-how-heading{max-width:700px}
.sd-how-heading h2{margin:8px 0;font-size:clamp(2rem,4vw,3.2rem);letter-spacing:-.05em}
.sd-how-heading p{color:var(--muted);line-height:1.7}
.sd-how-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:34px}
.sd-how-grid article{min-height:210px;border:1px solid var(--line);border-radius:14px;background:var(--cream);padding:22px}
.sd-how-grid article b{color:#b87a1b;font-size:1.5rem}
.sd-how-grid article h3{margin:28px 0 9px;font-size:1.03rem}
.sd-how-grid article p{margin:0;color:var(--muted);font-size:.86rem;line-height:1.7}
.sd-file-guide{display:grid;grid-template-columns:280px 1fr;gap:28px;margin-top:18px;border-radius:14px;background:#171717;color:#fff;padding:25px}
.sd-file-guide h3{margin:0;font-size:1.25rem}
.sd-file-guide ul{margin:0;padding-left:21px;color:#c7c2ba;font-size:.86rem;line-height:1.75}
.sd-footer{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#0d0d0c;color:#9d9890;padding:36px max(24px,calc((100% - 1320px)/2));font-size:.82rem}
.sd-footer b{color:#fff}
.sd-footer p{margin:6px 0 0}
.sd-footer>div:last-child{display:flex;gap:16px}
.sd-footer a:hover{color:var(--gold)}
[hidden]{display:none!important}

/* v1.9.81 exact 60x180 hero sample and stable Korean headline wrapping */
.sd-hero{grid-template-columns:minmax(0,1fr) minmax(400px,1fr);min-height:680px}
.sd-hero-copy{box-sizing:border-box;width:100%;max-width:none;min-width:0;padding:64px clamp(32px,4vw,68px) 64px clamp(38px,7vw,116px)}
.sd-hero h1{max-width:none;font-size:clamp(2.45rem,3.9vw,4rem);line-height:1.12;letter-spacing:-.045em;word-break:keep-all;overflow-wrap:normal;text-wrap:auto;white-space:nowrap}
.sd-hero-copy>p{max-width:610px}
.sd-hero-art{min-height:680px;padding:30px 48px}
.sd-stand{width:200px}
.sd-banner-demo{box-sizing:border-box;width:160px;height:auto;aspect-ratio:1/3;padding:38px 20px}
.sd-banner-demo strong{margin-top:30px;font-size:1.65rem;line-height:1.13;letter-spacing:-.05em;word-break:keep-all}
.sd-banner-demo span{left:20px;bottom:24px;font-size:.48rem}
.sd-stand>i{height:72px}
.sd-stand>b{width:126px;height:14px}

@media(max-width:1050px){
  .sd-hero{grid-template-columns:1fr minmax(310px,.7fr)}
  .sd-studio{grid-template-columns:minmax(0,1fr);width:min(900px,calc(100% - 32px))}
  .sd-how-grid{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:820px){
  .sd-site-header{position:relative;align-items:flex-start;padding:16px 18px}
  .sd-site-header nav{flex-wrap:wrap;gap:10px 15px;font-size:.8rem}
  .sd-site-header nav a:first-child,.sd-site-header nav a:nth-child(2){display:none}
  .sd-hero{grid-template-columns:1fr;min-height:0}
  .sd-hero-copy{padding:54px 25px 25px}
  .sd-hero-art{min-height:400px;padding:26px 30px 54px}
  .sd-stand{transform:scale(.83)}
  .sd-step-strip{grid-template-columns:repeat(2,1fr);margin:-22px 16px 30px}
  .sd-step-strip div:nth-child(2){border-right:0}
  .sd-step-strip div:nth-child(-n+2){border-bottom:1px solid var(--line)}
  .sd-studio{grid-template-columns:1fr;width:min(720px,calc(100% - 24px))}
  .sd-preview-panel{position:relative;top:auto}
  .sd-canvas-stage{min-height:430px;max-height:600px}
  #designCanvas{max-height:560px}
  .sd-file-guide{grid-template-columns:1fr;gap:10px}
}
@media(max-width:560px){
  .sd-site-header{min-height:64px}
  .sd-brand{font-size:1rem}
  .sd-brand b{display:block;margin:2px 0 0}
  .sd-site-header nav a:not(.sd-phone){display:none}
  .sd-phone{padding:8px 11px}
  .sd-hero-copy{padding:45px 20px 18px}
  .sd-hero h1{font-size:2.45rem}
  .sd-hero-copy>p{font-size:.93rem}
  .sd-hero-actions{display:grid;grid-template-columns:1fr 1fr}
  .sd-primary-link,.sd-secondary-link{padding:11px 10px;font-size:.84rem}
  .sd-hero-art{min-height:330px;padding:10px 20px 44px}
  .sd-hero-art::before{width:330px;height:330px}
  .sd-hero-art::after{width:260px;height:260px}
  .sd-stand{transform:scale(.68);margin:-40px 0}
  .sd-step-strip div{min-height:61px;padding:12px 14px}
  .sd-step-strip span{font-size:.78rem}
  .sd-studio{width:calc(100% - 16px);gap:10px;margin-bottom:60px}
  .sd-preview-panel,.sd-control-section{border-radius:13px;padding:15px}
  .sd-panel-title{margin-bottom:12px}
  .sd-canvas-stage{min-height:360px;max-height:500px;padding:10px}
  #designCanvas{max-height:470px}
  .sd-preview-meta{display:grid;gap:4px}
  .sd-preview-actions{justify-content:stretch}
  .sd-preview-actions button{flex:1}
  .sd-type-grid{grid-template-columns:1fr 1fr;gap:6px}
  .sd-type-card{min-height:66px;padding:9px 8px}
  .sd-type-card i{flex-basis:26px;width:26px;height:38px}
  .sd-type-card i::after{width:30px}
  .sd-type-card small{display:none}
  .sd-select-grid{grid-template-columns:1fr}
  .sd-ai-suggestions{display:flex;overflow-x:auto;padding-bottom:7px;scroll-snap-type:x mandatory}
  .sd-ai-card{flex:0 0 86%;scroll-snap-align:start}
  .sd-size-grid{grid-template-columns:1fr 1fr}
  .sd-template-grid{grid-template-columns:repeat(2,1fr)}
  .sd-template-grid button i{height:50px}
  .sd-color-grid{grid-template-columns:repeat(3,1fr)}
  .sd-color-grid>label{font-size:.72rem}
  .sd-price-box{padding:16px}
  .sd-price-box strong{font-size:1.55rem}
  .sd-how{padding:65px 16px}
  .sd-how-grid{grid-template-columns:1fr}
  .sd-how-grid article{min-height:0}
  .sd-how-grid article h3{margin-top:18px}
  .sd-footer{display:block;padding:30px 18px}
  .sd-footer>div:last-child{margin-top:18px;flex-wrap:wrap}
}
@media(max-width:370px){
  .sd-hero h1{font-size:2.1rem}
  .sd-type-grid{grid-template-columns:1fr}
  .sd-step-strip{grid-template-columns:1fr}
  .sd-step-strip div{border-right:0!important;border-bottom:1px solid var(--line)}
  .sd-step-strip div:last-child{border-bottom:0}
}



/* v1.9.62 layered AI editor */
.sd-ai-options{display:grid;grid-template-columns:minmax(0,1fr) minmax(250px,1fr);gap:12px;align-items:end;margin-top:11px}
.sd-ai-options>label{display:grid;gap:7px;color:#3e3932;font-size:.8rem;font-weight:850}
.sd-ai-options select{margin:0}
.sd-ai-process{display:flex;align-items:center;justify-content:center;gap:7px;min-height:47px;border:1px solid #e0d4c0;border-radius:9px;background:#fff;padding:8px;color:#62584b;font-size:.7rem}
.sd-ai-process b{white-space:nowrap}.sd-ai-process span{color:#b77b1e;font-size:1rem}
.sd-ai-usage{margin:9px 0 0;color:#766b5c;font-size:.7rem;line-height:1.5}.sd-ai-usage a{color:#875710;font-weight:900;text-decoration:underline}
.sd-ai-generate:disabled{cursor:wait;filter:saturate(.45);opacity:.78}
.sd-ai-status a{color:#875710;font-weight:950;text-decoration:underline}
.sd-ai-card small{line-height:1.35}
.sd-open-editor{border-color:#d5a34c!important;background:#f1bd5d!important;color:#1a140b!important;box-shadow:0 7px 18px #0004}
.sd-open-editor:hover,.sd-open-editor:focus-visible{filter:brightness(1.08);color:#090704!important}

body.sd-editor-open{overflow:hidden}
.sd-editor-modal{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:rgba(10,9,8,.86);padding:12px;backdrop-filter:blur(7px)}
.sd-editor-shell{display:grid;grid-template-rows:auto minmax(0,1fr) auto;width:min(1500px,98vw);height:min(940px,96vh);overflow:hidden;border:1px solid #49433a;border-radius:18px;background:#efede9;box-shadow:0 34px 100px #000b}
.sd-editor-header{display:flex;align-items:center;gap:18px;min-height:76px;border-bottom:1px solid #37332e;background:#171614;color:#fff;padding:13px 18px}
.sd-editor-header>div:first-child{margin-right:auto}.sd-editor-header small{display:block;color:#e8b95d;font-size:.62rem;font-weight:900;letter-spacing:.14em}.sd-editor-header h2{margin:3px 0 0;font-size:1.16rem}
.sd-editor-history{display:flex;gap:7px}.sd-editor-history button,.sd-editor-close{border:1px solid #49443d;border-radius:8px;background:#26231f;color:#e6e1d9;padding:9px 12px;font-size:.74rem;font-weight:850}
.sd-editor-history button:disabled{opacity:.35}.sd-editor-history button:not(:disabled):hover,.sd-editor-history button:not(:disabled):focus-visible{border-color:#d5a34c;color:#f2c56d;outline:none}
.sd-editor-close{display:grid;place-items:center;width:40px;height:40px;padding:0;border-radius:50%;font-size:1.5rem;line-height:1}
.sd-editor-workspace{display:grid;grid-template-columns:170px minmax(0,1fr) 310px;min-height:0}
.sd-editor-elements{min-width:0;overflow:auto;border-right:1px solid #d0cbc3;background:#f8f6f2;padding:15px 11px}
.sd-editor-elements h3{margin:2px 7px 13px;color:#625b52;font-size:.75rem}
.sd-editor-elements button{display:flex;align-items:center;gap:10px;width:100%;border:1px solid transparent;border-radius:9px;background:transparent;padding:9px;color:#4e4840;text-align:left;font-size:.77rem;font-weight:850}
.sd-editor-elements button i{display:grid;place-items:center;flex:0 0 34px;height:34px;border-radius:8px;background:#e8e3db;color:#5a5145;font-size:.9rem;font-style:normal;font-weight:950}
.sd-editor-elements button:hover,.sd-editor-elements button:focus-visible{border-color:#c8b28d;background:#fff;outline:none}
.sd-editor-elements button.active{border-color:#b77b1e;background:#fff7e7;color:#754807;box-shadow:0 0 0 1px #dfb96f}
.sd-editor-elements button.active i{background:#171614;color:#f1bd5d}
.sd-editor-center{display:grid;grid-template-rows:minmax(0,1fr) auto;min-width:0;min-height:0;background:#24211e;padding:18px}
.sd-editor-stage{display:grid;place-items:center;min-width:0;min-height:0;overflow:hidden;border:1px solid #403b35;border-radius:12px;background:repeating-conic-gradient(#302d29 0 25%,#292622 0 50%) 50%/22px 22px;padding:14px}
#editorCanvas{display:block;max-width:100%;max-height:calc(96vh - 160px);background:#fff;box-shadow:0 14px 48px #000b;cursor:move;touch-action:none;user-select:none}
.sd-editor-center>p{margin:10px 0 0;color:#bbb3a8;font-size:.7rem;line-height:1.45;text-align:center}
.sd-editor-properties{min-width:0;overflow:auto;border-left:1px solid #d0cbc3;background:#fff;padding:18px}
.sd-editor-property-title{margin-bottom:15px;border-bottom:1px solid #ece8e2;padding-bottom:13px}.sd-editor-property-title small{color:#8a8175;font-size:.65rem;font-weight:850}.sd-editor-property-title h3{margin:3px 0 0;font-size:1.08rem}
.sd-editor-property-group{display:grid;gap:13px}
.sd-editor-property-group>label,.sd-editor-property-grid>label{display:grid;gap:7px;color:#4a443d;font-size:.76rem;font-weight:850}
.sd-editor-property-group label>span{display:flex;justify-content:space-between;gap:10px}.sd-editor-property-group output{color:#96600f;font-weight:950}
.sd-editor-property-group input,.sd-editor-property-group textarea,.sd-editor-property-group select{width:100%;min-width:0;border:1px solid #d7d0c6;border-radius:8px;background:#fff;padding:10px;color:#181716}
.sd-editor-property-group input:focus,.sd-editor-property-group textarea:focus,.sd-editor-property-group select:focus{border-color:#ad741c;outline:2px solid #e9c98666}
.sd-editor-property-group textarea{resize:vertical;line-height:1.5}.sd-editor-property-group input[type="range"]{height:24px;border:0;padding:0;accent-color:#b77b1e}.sd-editor-property-group input[type="color"]{height:44px;padding:4px}
.sd-editor-property-grid{display:grid;grid-template-columns:1fr 1fr;gap:9px}
.sd-editor-subtle{border:1px solid #d5cec3;border-radius:8px;background:#f7f4ef;color:#625a50;padding:10px;font-size:.73rem;font-weight:850}.sd-editor-subtle:hover,.sd-editor-subtle:focus-visible{border-color:#a96d12;color:#7a4a03;outline:none}.sd-editor-subtle:disabled{opacity:.42}
.sd-editor-upload{border:1px dashed #c4aa7c;border-radius:9px;background:#fff9ee;padding:11px}
.sd-editor-final-status{border:1px solid #e2c98f;border-radius:9px;background:#fff8e8;padding:11px;color:#66470f;font-size:.72rem;font-weight:800;line-height:1.5}
.sd-editor-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:66px;border-top:1px solid #cac4bb;background:#f8f6f2;padding:11px 18px}
.sd-editor-footer-state{display:grid;gap:3px}.sd-editor-footer-state span{color:#71695f;font-size:.76rem;font-weight:850}.sd-editor-footer-state small{color:#996313;font-size:.7rem;font-weight:950}
.sd-editor-footer-actions{display:flex;align-items:center;justify-content:flex-end;gap:9px}
.sd-editor-footer button{min-width:210px;border:0;border-radius:9px;background:linear-gradient(135deg,#e0ac4b,#b06f12);color:#16110a;padding:13px 20px;font-weight:950;box-shadow:0 8px 22px #b67d2233}
.sd-editor-footer .sd-editor-finalize{min-width:300px;border:1px solid #d5a34c;background:#1e1b17;color:#f2c66f;box-shadow:0 8px 22px #1113}.sd-editor-footer .sd-editor-finalize:disabled{cursor:wait;opacity:.66}
.sd-editor-footer button:hover,.sd-editor-footer button:focus-visible{filter:brightness(1.06);outline:2px solid #171717;outline-offset:2px}

@media(max-width:980px){
  .sd-ai-options{grid-template-columns:1fr}
  .sd-editor-modal{padding:0}
  .sd-editor-shell{width:100vw;height:100dvh;border:0;border-radius:0}
  .sd-editor-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(260px,1fr) minmax(200px,32vh)}
  .sd-editor-elements{display:flex;gap:6px;overflow-x:auto;border-right:0;border-bottom:1px solid #d0cbc3;padding:8px}
  .sd-editor-elements h3{display:none}.sd-editor-elements button{flex:0 0 auto;width:auto;padding:7px 10px}.sd-editor-elements button i{flex-basis:28px;height:28px}
  .sd-editor-center{padding:9px}.sd-editor-stage{padding:8px}#editorCanvas{max-height:48vh}
  .sd-editor-properties{border-top:1px solid #d0cbc3;border-left:0;padding:13px 15px}
  .sd-editor-property-title{margin-bottom:10px;padding-bottom:8px}.sd-editor-property-group{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px 12px}.sd-editor-property-group>label:first-child{grid-column:1/-1}.sd-editor-property-group>.sd-editor-subtle{align-self:end}.sd-editor-final-status{grid-column:1/-1}
  .sd-editor-footer-actions{flex:1}.sd-editor-footer .sd-editor-finalize{min-width:260px}
}
@media(max-width:560px){
  .sd-ai-process{justify-content:flex-start;overflow-x:auto}
  .sd-editor-header{min-height:62px;gap:8px;padding:9px 10px}.sd-editor-header small{display:none}.sd-editor-header h2{font-size:.93rem}
  .sd-editor-history{gap:4px}.sd-editor-history button{padding:7px 8px;font-size:.64rem}.sd-editor-close{width:34px;height:34px;font-size:1.25rem}
  .sd-editor-workspace{grid-template-rows:auto minmax(220px,1fr) minmax(220px,35vh)}
  .sd-editor-elements button{gap:6px;padding:6px 8px;font-size:.68rem}.sd-editor-elements button i{display:none}
  .sd-editor-center>p{margin-top:6px;font-size:.62rem}#editorCanvas{max-height:43vh}
  .sd-editor-properties{padding:11px}.sd-editor-property-title{display:flex;align-items:baseline;justify-content:space-between}.sd-editor-property-title h3{font-size:.92rem}
  .sd-editor-property-group{grid-template-columns:1fr 1fr}.sd-editor-property-group>label:first-child,.sd-editor-property-group>label:nth-child(2){grid-column:1/-1}
  .sd-editor-footer{min-height:56px;padding:8px 10px}.sd-editor-footer-state{display:none}.sd-editor-footer-actions{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.9fr);width:100%;gap:6px}.sd-editor-footer button,.sd-editor-footer .sd-editor-finalize{min-width:0;width:100%;padding:10px 7px;font-size:.68rem;line-height:1.3}
}

/* v1.9.65 member design library */
.sd-preview-actions .sd-save-design{background:#8a5a13;color:#fff;border-color:#8a5a13}
.sd-save-status{min-height:22px;margin:12px 0 0;color:#6d6559;font-size:.84rem;line-height:1.5}
.sd-save-status.success{color:#246537;font-weight:800}
.sd-save-status.error{color:#9b2f2f;font-weight:800}
@media(max-width:620px){.sd-preview-actions{display:grid;grid-template-columns:1fr}.sd-preview-actions button{width:100%}}


.sd-ai-public-note{margin:10px 0;padding:10px 12px;border-radius:9px;background:#f4ecdc;color:#67512e;font-size:.8rem;line-height:1.55}



/* v1.9.68 login-only mixed AI design modes */
.sd-ai-input-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.sd-ai-input-grid>label{display:grid;grid-template-rows:auto minmax(118px,auto) auto;gap:7px;color:#3e3932;font-size:.83rem;font-weight:850}
.sd-ai-input-grid textarea{height:100%;resize:vertical}
.sd-ai-input-grid small{color:#756e64;font-size:.68rem;font-weight:700;line-height:1.45}
.sd-ai-input-grid.is-single{grid-template-columns:1fr}
.sd-ai-input-grid.is-single>label{grid-template-rows:auto minmax(190px,auto) auto}
.sd-ai-options.is-single{grid-template-columns:1fr}

.sd-ai-login-gate{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 14px;border:1px solid #c99a46;border-radius:11px;background:#fff8e9;padding:13px 14px}
.sd-ai-login-gate strong,.sd-ai-login-gate span{display:block}
.sd-ai-login-gate strong{color:#2d2418;font-size:.88rem}
.sd-ai-login-gate span{margin-top:4px;color:#73644e;font-size:.72rem;line-height:1.45}
.sd-ai-login-gate a{flex:0 0 auto;border-radius:8px;background:#171717;color:#f2c66f;padding:10px 13px;font-size:.76rem;font-weight:950;text-decoration:none}
.sd-ai-assistant.is-locked .sd-ai-input-grid,.sd-ai-assistant.is-locked .sd-ai-options,.sd-ai-assistant.is-locked .sd-ai-process{opacity:.58}
.sd-ai-assistant textarea:disabled,.sd-ai-assistant select:disabled{cursor:not-allowed;background:#eeeae3;color:#8c8478}
.sd-ai-mode-guide{display:grid;grid-template-columns:1fr;gap:7px}
.sd-ai-mode-guide span{display:grid;gap:2px;min-height:47px;border:1px solid #e0d4c0;border-radius:9px;background:#fff;padding:8px 10px;color:#6c6254;font-size:.66rem;line-height:1.35}
.sd-ai-mode-guide b{color:#2c2419;font-size:.7rem}
.sd-ai-process{margin-top:12px}
.sd-ai-card-preview{position:relative}
.sd-ai-mode-badge{position:absolute;top:8px;left:8px;border-radius:999px;background:#171717e8;color:#f4ca78;padding:5px 8px;font-size:.62rem;font-weight:950;box-shadow:0 2px 7px #0005}
.sd-ai-card.mode-background .sd-ai-mode-badge{background:#fff1d7ed;color:#6d4510}
.sd-ai-card.mode-complete{border-color:#c4a362}
.sd-ai-generate:disabled{cursor:not-allowed}
.sd-ai-generate[aria-busy="true"]{cursor:wait}
@media(max-width:760px){
  .sd-ai-input-grid{grid-template-columns:1fr}
  .sd-ai-login-gate{align-items:stretch;flex-direction:column}
  .sd-ai-login-gate a{text-align:center}
  .sd-ai-mode-guide{grid-template-columns:1fr}
}

/* v1.9.71: three design paths, address lookup and preview protection */
.sd-path-picker{max-width:1180px;margin:26px auto 34px;padding:0 24px}.sd-path-heading{text-align:center;margin-bottom:18px}.sd-path-heading small{font-weight:900;letter-spacing:.14em;color:#9b6a17}.sd-path-heading h2{font-size:clamp(1.7rem,4vw,2.8rem);margin:6px 0}.sd-path-heading p{color:#6d655b;margin:0}.sd-path-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.sd-path-card{position:relative;min-height:245px;padding:24px;border:1px solid #ded5c9;border-radius:22px;background:#fff;color:#17130f;text-decoration:none;box-shadow:0 12px 30px rgba(39,29,16,.07);overflow:hidden;transition:.2s transform,.2s border-color}.sd-path-card:hover,.sd-path-card.active{transform:translateY(-3px);border-color:#bd8422}.sd-path-card>span{position:absolute;right:18px;top:10px;font-size:4rem;font-weight:950;color:rgba(42,32,20,.06)}.sd-path-card>small{display:block;font-weight:800;color:#99701f}.sd-path-card h3{font-size:1.75rem;margin:24px 0 10px}.sd-path-card p{min-height:70px;color:#6c645a;line-height:1.6}.sd-path-card>b{color:#8a5b0d}.sd-path-card.ai{background:linear-gradient(145deg,#18140e,#332513);color:#fff}.sd-path-card.ai p{color:#e7ddcf}.sd-path-card.ai>span{color:rgba(255,255,255,.08)}.sd-path-card.ai>small,.sd-path-card.ai>b{color:#f3c66d}.sd-mode-home .sd-step-strip,.sd-mode-home .sd-studio,.sd-mode-home .sd-how{display:none}.sd-mode-classic .sd-ai-assistant{display:none}.sd-mode-ai .sd-template-toolbar,.sd-mode-ai #templateGrid{display:none}.sd-mode-ai .sd-path-picker,.sd-mode-classic .sd-path-picker{margin-bottom:12px}.sd-order-address{display:grid;gap:12px}.sd-postcode-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;align-items:end}.sd-postcode-row button{height:46px;padding:0 18px;border:0;border-radius:10px;background:#2a2118;color:#fff;font-weight:800}.sd-address-save{display:grid;grid-template-columns:auto minmax(150px,1fr) auto;gap:10px;align-items:end;padding:12px;border:1px solid #e4dacb;border-radius:12px;background:#fbf7f0}.sd-address-save small{grid-column:1/-1;color:#6d655b}.sd-ai-usage b{font-size:1.2em;color:#9b650c}.sd-preview-stage,.sd-ai-card-preview,#designEditorModal canvas{user-select:none;-webkit-user-select:none;-webkit-user-drag:none}.design-protection-toast,.address-search-toast{position:fixed;z-index:99999;left:50%;bottom:24px;transform:translate(-50%,20px);max-width:calc(100vw - 30px);padding:12px 18px;border-radius:999px;background:#17120d;color:#fff;font-weight:800;box-shadow:0 12px 35px rgba(0,0,0,.25);opacity:0;pointer-events:none;transition:.2s}.design-protection-toast.show,.address-search-toast.show{opacity:1;transform:translate(-50%,0)}
@media(max-width:780px){.sd-path-grid{grid-template-columns:1fr}.sd-path-card{min-height:auto}.sd-path-card p{min-height:auto}.sd-address-save{grid-template-columns:1fr}.sd-postcode-row{grid-template-columns:1fr auto}}



/* v1.9.74 MiriCanvas-inspired direct editing controls */
.sd-editor-header{border-color:#ddd7ce;background:#fff;color:#1c1915}
.sd-editor-header small{color:#a96e15}.sd-editor-history button,.sd-editor-close{border-color:#d9d2c7;background:#f7f5f1;color:#514a42}
.sd-editor-history button:not(:disabled):hover,.sd-editor-history button:not(:disabled):focus-visible{border-color:#b77b1e;background:#fff9ed;color:#7e4f08}
.sd-editor-close{background:#26231f;color:#fff;border-color:#26231f}
.sd-editor-workspace{grid-template-columns:190px minmax(0,1fr) 320px}
.sd-editor-elements{background:#fff}.sd-editor-elements .sd-editor-add{margin-bottom:10px;border-color:#d9a94f;background:#fff7e7;color:#704509}
.sd-editor-elements .sd-editor-add i{background:#e3ad48;color:#21180d}
.sd-editor-center{grid-template-rows:auto minmax(0,1fr) auto;background:#eef0f3;padding:12px}
.sd-editor-canvas-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.sd-editor-tool-group,.sd-editor-zoom{display:flex;align-items:center;gap:6px}
.sd-editor-canvas-toolbar button{min-height:34px;border:1px solid #d3d5d9;border-radius:8px;background:#fff;color:#403c36;padding:7px 11px;font-size:.72rem;font-weight:850;box-shadow:0 2px 8px rgba(25,30,36,.06)}
.sd-editor-canvas-toolbar button:hover,.sd-editor-canvas-toolbar button:focus-visible{border-color:#b77b1e;color:#7a4b05;outline:none}.sd-editor-canvas-toolbar button:disabled{cursor:not-allowed;opacity:.42}
.sd-editor-zoom output{min-width:66px;color:#625b52;font-size:.68rem;font-weight:900;text-align:center}.sd-editor-zoom button:first-child,.sd-editor-zoom button:nth-of-type(2){width:34px;padding:6px;font-size:1rem}
.sd-editor-stage{display:block;overflow:auto;border-color:#d3d6da;background:repeating-conic-gradient(#e5e7ea 0 25%,#f0f1f3 0 50%) 50%/22px 22px;padding:0;scrollbar-color:#aaa #eceef0}
.sd-editor-canvas-scroll{display:grid;place-items:center;min-width:100%;min-height:100%;width:max-content;height:max-content;box-sizing:border-box;padding:16px}
#editorCanvas{max-width:none;max-height:none;flex:none;box-shadow:0 12px 40px rgba(33,37,42,.28)}
.sd-editor-center>p{color:#655f57}
.sd-editor-position-tools{display:grid;gap:7px;margin:-3px 0 14px;border-bottom:1px solid #ece8e2;padding:0 0 14px}.sd-editor-position-tools>span{color:#71695f;font-size:.7rem;font-weight:900}
.sd-editor-position-tools>div{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.sd-editor-position-tools button{border:1px solid #d8d1c7;border-radius:7px;background:#f8f6f2;color:#544d45;padding:7px 4px;font-size:.68rem;font-weight:850}
.sd-editor-position-tools button:hover,.sd-editor-position-tools button:focus-visible{border-color:#b77b1e;background:#fff7e7;color:#754807;outline:none}
@media(max-width:980px){
  .sd-editor-workspace{grid-template-columns:1fr;grid-template-rows:auto minmax(280px,1fr) minmax(210px,32vh)}
  .sd-editor-center{padding:8px}.sd-editor-canvas-toolbar{margin-bottom:7px}.sd-editor-canvas-toolbar button{padding:6px 9px}
  .sd-editor-position-tools{grid-template-columns:auto 1fr 1fr;align-items:center}.sd-editor-position-tools>div{min-width:180px}
}
@media(max-width:560px){
  .sd-editor-header{min-height:58px}.sd-editor-history button{padding:7px}.sd-editor-history button{font-size:0}.sd-editor-history button::first-letter{font-size:.86rem}
  .sd-editor-workspace{grid-template-rows:auto minmax(290px,1fr) minmax(245px,36vh)}
  .sd-editor-elements{padding:7px}.sd-editor-elements button{padding:7px 9px}
  .sd-editor-canvas-toolbar{gap:5px}.sd-editor-tool-group,.sd-editor-zoom{gap:4px}.sd-editor-canvas-toolbar button{min-height:32px;padding:5px 7px;font-size:.64rem}.sd-editor-zoom output{min-width:52px;font-size:.6rem}.sd-editor-zoom #editorZoomFit{display:none}
  .sd-editor-canvas-scroll{padding:10px}.sd-editor-center>p{font-size:.61rem}
  .sd-editor-position-tools{display:grid;grid-template-columns:1fr;margin-bottom:10px}.sd-editor-position-tools>span{display:none}.sd-editor-position-tools>div{min-width:0}
}

/* v1.9.76: visible AI production progress and recovery dialog */
.sd-canvas-stage{position:relative;isolation:isolate}
.sd-ai-preview-loading{position:absolute;z-index:8;inset:0;display:grid;place-items:center;border-radius:13px;background:linear-gradient(145deg,rgba(7,63,67,.90),rgba(8,122,117,.88));padding:22px;color:#fff;backdrop-filter:blur(8px)}
.sd-ai-preview-loading[hidden]{display:none}
.sd-ai-loading-card{display:grid;justify-items:center;width:min(390px,92%);border:1px solid rgba(255,255,255,.34);border-radius:22px;background:rgba(255,255,255,.96);padding:30px 26px;color:#17313a;text-align:center;box-shadow:0 24px 70px rgba(2,32,36,.32)}
.sd-ai-loading-card small{margin-top:16px;color:#087a75;font-size:.66rem;font-weight:950;letter-spacing:.18em}
.sd-ai-loading-card strong{max-width:100%;margin-top:8px;font-size:clamp(1.35rem,4vw,2rem);line-height:1.3;word-break:keep-all;text-wrap:balance}
.sd-ai-loading-card p{min-height:46px;margin:9px 0 0;color:#526a71;font-size:.84rem;line-height:1.6}
.sd-ai-loading-card em{margin-top:14px;color:#087a75;font-size:.72rem;font-style:normal;font-weight:900;line-height:1.5;word-break:keep-all}
.sd-ai-loading-estimate{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:5px 10px;width:100%;margin-top:14px;padding:10px 12px;border-radius:12px;background:#e4f4f1;color:#245951;font-size:.78rem;line-height:1.4}
.sd-ai-loading-estimate b{color:#087a75;font-size:.96rem;white-space:nowrap}
.sd-ai-loading-card .sd-ai-loading-hint{min-height:0;margin:9px 0 0;font-size:.68rem;line-height:1.55;word-break:keep-all}
.sd-ai-loading-spinner{width:52px;height:52px;border:5px solid #d8f1ef;border-top-color:#0f9f98;border-radius:50%;animation:sd-ai-spin .85s linear infinite}
.sd-ai-loading-steps{display:flex;gap:7px;margin-top:9px}
.sd-ai-loading-steps i{width:34px;height:5px;border-radius:999px;background:#d7e7e8;animation:sd-ai-step 1.5s ease-in-out infinite}
.sd-ai-loading-steps i:nth-child(2){animation-delay:.18s}.sd-ai-loading-steps i:nth-child(3){animation-delay:.36s}
@keyframes sd-ai-spin{to{transform:rotate(360deg)}}
@keyframes sd-ai-step{0%,100%{background:#d7e7e8;transform:scaleX(.72)}50%{background:#0f9f98;transform:scaleX(1)}}

.sd-ai-failure-dialog{width:min(500px,calc(100vw - 28px));max-height:calc(100vh - 28px);border:1px solid #cde3e4;border-radius:22px;background:#fff;padding:0;color:#17313a;box-shadow:0 30px 90px rgba(13,62,68,.28);overflow:auto}
.sd-ai-failure-dialog::backdrop{background:rgba(12,43,48,.55);backdrop-filter:blur(6px)}
.sd-ai-failure-shell{position:relative;padding:28px}
.sd-ai-failure-close{position:absolute;right:15px;top:15px;width:38px;height:38px;border:1px solid #d7e5e7;border-radius:50%;background:#fff;color:#36525a;font-size:1.35rem}
.sd-ai-failure-icon{display:grid;place-items:center;width:48px;height:48px;border-radius:15px;background:#fff0ed;color:#b24432;font-size:1.5rem;font-weight:950}
.sd-ai-failure-shell>small{display:block;margin-top:16px;color:#087a75;font-size:.66rem;font-weight:950;letter-spacing:.16em}
.sd-ai-failure-shell h2{margin:6px 42px 0 0;font-size:1.45rem}
.sd-ai-failure-shell>p{color:#5b7076;line-height:1.6}
.sd-ai-failure-credit{border:1px solid #bfe5e2;border-radius:12px;background:#effaf9;padding:11px 13px}
.sd-ai-failure-credit b{color:#ed6847;font-size:1.3rem}
.sd-ai-coupon-form{display:grid;gap:8px;margin-top:16px;border-top:1px solid #e1ebed;padding-top:16px}
.sd-ai-coupon-form label{font-size:.8rem;font-weight:900}
.sd-ai-coupon-form>div{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}
.sd-ai-coupon-form input{min-width:0;height:45px;border:1px solid #d3e3e6;border-radius:10px;padding:0 12px;text-transform:uppercase}
.sd-ai-coupon-form button{border:0;border-radius:10px;background:#087a75;color:#fff;padding:0 17px;font-weight:900}
#aiCouponStatus{min-height:20px;margin:0;color:#9b3829;font-size:.74rem;font-weight:850}
#aiCouponStatus.success{color:#216344}
.sd-ai-failure-actions{display:grid;grid-template-columns:1fr 1fr;gap:8px;margin-top:15px}
.sd-ai-failure-actions a,.sd-ai-failure-actions button{display:grid;place-items:center;min-height:45px;border-radius:10px;padding:9px 12px;font-size:.78rem;font-weight:900;text-align:center;text-decoration:none}
.sd-ai-failure-actions a{background:#ffe66c;color:#332b0e}
.sd-ai-failure-actions button{border:1px solid #cddfe2;background:#fff;color:#24434b}
.sd-ai-failure-help{margin-bottom:0!important;font-size:.7rem}
@media(max-width:560px){
  body.sd-ai-generating .sd-preview-panel.is-mobile-open .sd-canvas-stage{min-height:480px}
  .sd-ai-loading-card{padding:24px 16px}
  .sd-ai-failure-shell{padding:22px 18px}
  .sd-ai-failure-actions,.sd-ai-coupon-form>div{grid-template-columns:1fr}
  .sd-ai-coupon-form button{height:44px}
}
@media(prefers-reduced-motion:reduce){
  .sd-ai-loading-spinner,.sd-ai-loading-steps i{animation-duration:2.4s}
}


/* v1.9.77: direct text and image object editing */
.sd-editor-elements .sd-editor-add.image{border-color:#82cfc8;background:#effaf9;color:#116e69}
.sd-editor-elements .sd-editor-add.image i{background:#15958e;color:#fff}
#editorAiBackgroundButton i{background:#dff4f2;color:#087a75;font-size:.68rem}
.sd-editor-property-help{display:block;border-radius:8px;background:#f1f7f7;padding:9px 10px;color:#587078;font-size:.68rem;line-height:1.55}
.sd-editor-transform-actions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}
.sd-editor-transform-actions button{min-height:38px;border:1px solid #cfdcde;border-radius:8px;background:#f7fbfb;color:#35555b;padding:7px 5px;font-size:.66rem;font-weight:900}
.sd-editor-transform-actions button:hover,.sd-editor-transform-actions button:focus-visible,.sd-editor-transform-actions button[aria-pressed="true"]{border-color:#0e8e87;background:#e6f7f5;color:#08645f;outline:none}
.sd-editor-subtle.danger{border-color:#efd0ca;background:#fff7f5;color:#a34335}
.sd-editor-subtle.danger:hover,.sd-editor-subtle.danger:focus-visible{border-color:#cc6d5e;color:#8f2f22}
.sd-editor-property-grid input[type="range"]{margin-top:2px}
#editorCanvas[data-editor-mode="rotate"]{cursor:grabbing}
#editorCanvas[data-editor-selected="aiBackground"]{cursor:move}
@media(max-width:980px){
  .sd-editor-transform-actions,.sd-editor-property-help{grid-column:1/-1}
  #editorTextProperties .sd-editor-property-grid,#editorImageProperties .sd-editor-property-grid,#editorAiBackgroundProperties .sd-editor-property-grid{grid-column:1/-1}
}
@media(max-width:560px){
  .sd-editor-properties{overscroll-behavior:contain}
  .sd-editor-transform-actions{grid-template-columns:repeat(3,minmax(0,1fr))}
  .sd-editor-property-help{font-size:.64rem}
}


/* v1.9.78: two free-form AI directions */
.sd-ai-suggestions{grid-template-columns:repeat(2,minmax(0,1fr))}
.sd-ai-label-line{display:flex;align-items:center;gap:7px}.sd-ai-priority{display:inline-flex;align-self:center;margin-left:0;border-radius:999px;background:#fff0cf;color:#8b5708;padding:3px 7px;font-size:.62rem;font-weight:950;vertical-align:middle}
.sd-ai-card.mode-complete{border-color:#bda36d;background:linear-gradient(180deg,#fff,#fffbf3)}
@media(max-width:760px){.sd-ai-suggestions{display:flex}.sd-ai-priority{margin-left:4px}}


/* v1.9.84: editable two + integrated two */
.sd-ai-suggestions{display:grid;grid-template-columns:1fr;gap:14px}
.sd-ai-type-group{display:grid;gap:9px;border:1px solid #ded4c4;border-radius:13px;background:#fffaf2;padding:11px}
.sd-ai-type-group.type-integrated{border-color:#b9d8d4;background:#f4fbfa}
.sd-ai-type-heading{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:1px 2px}
.sd-ai-type-heading strong{color:#2b241b;font-size:.86rem;font-weight:950}
.sd-ai-type-heading small{color:#756b5e;font-size:.67rem;font-weight:750;text-align:right}
.sd-ai-type-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.sd-ai-card.mode-editable{border-color:#bda36d;background:linear-gradient(180deg,#fff,#fffbf3)}
.sd-ai-card.mode-integrated{border-color:#7fbeb7;background:linear-gradient(180deg,#fff,#f1fbfa)}
.sd-ai-card.mode-integrated .sd-ai-mode-badge{background:#075f5aeb;color:#e9fffb}
.sd-control-section input:disabled,.sd-control-section textarea:disabled,.sd-control-section select:disabled{cursor:not-allowed;opacity:.62}
@media(max-width:760px){
  .sd-ai-suggestions{display:grid;overflow:visible;padding-bottom:0}
  .sd-ai-type-heading{display:grid;gap:3px}
  .sd-ai-type-heading small{text-align:left}
  .sd-ai-type-grid{display:flex;overflow-x:auto;padding-bottom:7px;scroll-snap-type:x mandatory}
  .sd-ai-type-grid .sd-ai-card{flex:0 0 86%;scroll-snap-align:start}
}
/* v1.9.85: editable layout layers */
.sd-editor-elements .sd-editor-add.shape{border-color:#a6c7f0;background:#f1f7ff;color:#245b99}
.sd-editor-elements .sd-editor-add.shape i{background:#397fc6;color:#fff}
.sd-editor-decoration-layers{display:contents}
.sd-editor-decoration-layers[hidden]{display:none}
.sd-editor-elements button[data-editor-decoration] i{background:#e9f1fb;color:#27669f}
.sd-editor-shape-order{display:grid;grid-template-columns:1fr 1fr;gap:7px}
.sd-editor-shape-order button{min-height:40px;border:1px solid #cbd8e6;border-radius:8px;background:#f4f8fc;color:#315b7e;padding:8px 6px;font-size:.68rem;font-weight:900}
.sd-editor-shape-order button:hover,.sd-editor-shape-order button:focus-visible{border-color:#397fc6;background:#edf5ff;outline:none}
.sd-editor-shape-order button:disabled{cursor:not-allowed;opacity:.42}
#editorCanvas[data-editor-selected^="decoration:"]{cursor:move}
@media(max-width:980px){
  #editorShapeProperties .sd-editor-property-grid,#editorShapeProperties .sd-editor-shape-order{grid-column:1/-1}
}
@media(max-width:560px){
  #editorShapeProperties{grid-template-columns:1fr 1fr}
  #editorShapeProperties>label:first-child,#editorShapeProperties>label:nth-child(3),#editorShapeProperties>label:nth-child(4),#editorShapeProperties>.sd-editor-property-grid,#editorShapeProperties>.sd-editor-shape-order,#editorShapeProperties>.sd-editor-property-help{grid-column:1/-1}
}

/* v1.9.87: MiriCanvas-style persistent preview */
.sd-preview-head-actions{display:flex;align-items:center;gap:8px}
.sd-mobile-preview-toggle,.sd-mobile-preview-close{display:none}
@media(min-width:1051px){
  .sd-studio{grid-template-columns:minmax(0,1fr) minmax(390px,470px);width:min(1320px,calc(100% - 40px));gap:24px}
  .sd-preview-panel{position:sticky;top:88px;align-self:start;max-height:calc(100vh - 104px);overflow:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#5c554b #1b1916}
  .sd-preview-panel .sd-canvas-stage{min-height:clamp(420px,56vh,620px);max-height:min(66vh,690px)}
  .sd-preview-panel #designCanvas{max-height:min(61vh,650px)}
}
@media(max-width:1050px){
  .sd-preview-panel{display:none}
  .sd-mobile-preview-toggle{position:fixed;right:18px;bottom:max(18px,env(safe-area-inset-bottom));z-index:9000;display:flex;align-items:center;gap:10px;min-height:58px;border:1px solid #167f7a;border-radius:18px;background:linear-gradient(145deg,#087a75,#075b57);color:#fff;padding:9px 15px 9px 12px;box-shadow:0 14px 38px rgba(4,73,70,.34);font-weight:900}
  .sd-mobile-preview-toggle i{display:block;width:22px;height:38px;border:2px solid #fff;border-radius:3px;background:linear-gradient(160deg,#f4c666 0 35%,#fff 35% 62%,#35b8ae 62%);box-shadow:0 2px 7px rgba(0,0,0,.24)}
  .sd-mobile-preview-toggle span{display:grid;gap:1px;text-align:left}.sd-mobile-preview-toggle b{font-size:.82rem}.sd-mobile-preview-toggle small{color:#c9f5f1;font-size:.62rem;font-weight:750}
  .sd-mobile-preview-toggle:focus-visible{outline:3px solid #f1bd57;outline-offset:3px}
  .sd-preview-panel.is-mobile-open{position:fixed;inset:0;z-index:9500;display:flex;flex-direction:column;width:100%;height:100vh;height:100dvh;max-height:none;margin:0;border:0;border-radius:0;background:#12110f;padding:16px 16px max(16px,env(safe-area-inset-bottom));box-shadow:none;overflow:auto;overscroll-behavior:contain}
  .sd-preview-panel.is-mobile-open .sd-panel-title{position:sticky;top:-16px;z-index:4;align-items:center;margin:-16px -16px 12px;padding:14px 16px 12px;background:rgba(18,17,15,.97);border-bottom:1px solid #35312b;backdrop-filter:blur(10px)}
  .sd-preview-panel.is-mobile-open .sd-preview-head-actions{align-items:center}
  .sd-preview-panel.is-mobile-open .sd-mobile-preview-close{display:flex;align-items:center;gap:6px;min-height:40px;border:1px solid #4a453d;border-radius:10px;background:#27241f;color:#fff;padding:7px 10px;font-size:.76rem;font-weight:900}
  .sd-mobile-preview-close b{font-size:1.25rem;line-height:1}
  .sd-preview-panel.is-mobile-open .sd-canvas-stage{flex:1;min-height:58vh;max-height:none;padding:12px}
  .sd-preview-panel.is-mobile-open #designCanvas{max-width:100%;max-height:calc(100dvh - 250px)}
  .sd-preview-panel.is-mobile-open .sd-preview-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));justify-content:stretch}
  .sd-preview-panel.is-mobile-open .sd-preview-actions button{width:100%}
  body.sd-preview-modal-open{overflow:hidden}
  body.sd-preview-modal-open .sd-mobile-preview-toggle,body.sd-editor-open .sd-mobile-preview-toggle{display:none}
}
@media(max-width:560px){
  .sd-mobile-preview-toggle{right:12px;bottom:max(12px,env(safe-area-inset-bottom));min-height:54px;border-radius:16px;padding:8px 13px 8px 10px}
  .sd-mobile-preview-toggle i{width:20px;height:34px}
  .sd-preview-panel.is-mobile-open{padding:12px 12px max(12px,env(safe-area-inset-bottom))}
  .sd-preview-panel.is-mobile-open .sd-panel-title{top:-12px;margin:-12px -12px 10px;padding:11px 12px 10px}
  .sd-preview-panel.is-mobile-open .sd-panel-title h2{font-size:1.18rem}
  .sd-preview-panel.is-mobile-open .sd-canvas-stage{min-height:55vh;padding:8px}
  .sd-preview-panel.is-mobile-open #designCanvas{max-height:calc(100dvh - 232px)}
}

/* v1.9.89: optional AI reference image */
.sd-ai-reference{display:grid;gap:11px;margin:12px 0 3px;border:1px solid #c8ddd9;border-radius:12px;background:rgba(255,255,255,.78);padding:13px}
.sd-ai-reference-heading{display:grid;grid-template-columns:minmax(0,1fr) minmax(190px,230px);align-items:end;gap:12px}
.sd-ai-reference-heading strong,.sd-ai-reference-heading small{display:block}
.sd-ai-reference-heading strong{color:#203c40;font-size:.84rem}
.sd-ai-reference-heading strong em{display:inline-flex;margin-left:5px;border-radius:999px;background:#dff4f1;color:#08776f;padding:3px 7px;font-size:.6rem;font-style:normal;font-weight:950;vertical-align:middle}
.sd-ai-reference-heading>div>small{margin-top:4px;color:#65797a;font-size:.68rem;line-height:1.45}
.sd-ai-reference-heading>label{display:grid;gap:5px;color:#426166;font-size:.66rem;font-weight:900}
.sd-ai-reference-heading select{height:42px;margin:0;background:#fff}
.sd-ai-reference-picker{position:relative;display:block;margin:0;border:1px dashed #65aaa3;border-radius:10px;background:#f4fbfa;cursor:pointer;overflow:hidden}
.sd-ai-reference-picker input{position:absolute;width:1px;height:1px;margin:-1px;opacity:0;overflow:hidden}
.sd-ai-reference-picker>span{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:48px;padding:10px 13px;color:#245a59}
.sd-ai-reference-picker b{font-size:.78rem}.sd-ai-reference-picker small{color:#6a7d7e;font-size:.66rem;font-weight:700}
.sd-ai-reference-picker:hover,.sd-ai-reference-picker:focus-within{border-color:#087c75;background:#eaf8f6;box-shadow:0 0 0 2px rgba(8,124,117,.12)}
.sd-ai-reference-picker:has(input:disabled){cursor:not-allowed;opacity:.58}
.sd-ai-reference-preview{display:grid;grid-template-columns:68px minmax(0,1fr) auto;align-items:center;gap:11px;border:1px solid #d9e6e4;border-radius:10px;background:#fff;padding:8px}
.sd-ai-reference-preview[hidden]{display:none}
.sd-ai-reference-preview img{width:68px;height:68px;border-radius:8px;background:repeating-conic-gradient(#eee 0 25%,#e5e5e5 0 50%) 50%/12px 12px;object-fit:contain}
.sd-ai-reference-preview div{min-width:0}.sd-ai-reference-preview b,.sd-ai-reference-preview small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sd-ai-reference-preview b{color:#253d40;font-size:.76rem}.sd-ai-reference-preview small{margin-top:4px;color:#748486;font-size:.64rem}
.sd-ai-reference-preview button{min-width:58px;height:36px;border:1px solid #e8c9c2;border-radius:8px;background:#fff6f4;color:#a14738;font-size:.68rem;font-weight:900}
.sd-ai-reference>p{margin:0;color:#687a7c;font-size:.66rem;line-height:1.5}
@media(max-width:620px){
  .sd-ai-reference-heading{grid-template-columns:1fr}
  .sd-ai-reference-picker>span{align-items:flex-start;flex-direction:column;gap:3px}
  .sd-ai-reference-preview{grid-template-columns:58px minmax(0,1fr) auto}
  .sd-ai-reference-preview img{width:58px;height:58px}
}
/* v1.9.90: focused AI flow and meaningful preview */
.sd-classic-editor-controls{display:contents}
.sd-mode-ai .sd-classic-editor-controls{display:none}
.sd-ai-suggestions{scroll-margin-top:88px}
@media(min-width:1051px){
  body.sd-mode-ai:not(.sd-ai-preview-ready):not(.sd-ai-generating) .sd-studio{grid-template-columns:minmax(0,1fr);width:min(960px,calc(100% - 40px))}
  body.sd-mode-ai:not(.sd-ai-preview-ready):not(.sd-ai-generating) .sd-preview-panel{display:none}
}
@media(max-width:1050px){
  body.sd-mode-ai:not(.sd-ai-preview-ready):not(.sd-ai-generating) .sd-mobile-preview-toggle{display:none}
}
