/* Compact builder: keep the footer accessible without oversized cards. */
body:has([data-step="0"]:not([hidden])) .privacy-note,body:has([data-step="0"]:not([hidden])) .step-heading{display:none}
#themeChoices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;padding-top:18px}
#themeChoices .theme-option{position:relative;isolation:isolate;min-width:0;width:100%;aspect-ratio:3/4.5;padding:0;overflow:hidden;background:linear-gradient(145deg,#eee9db,#bac8b3);border-radius:12px;display:flex;align-items:center;justify-content:center}
#themeChoices .theme-option:nth-child(1){background:#e8f0f3 url('template/floral-background-clean.png') center/cover}
#themeChoices .theme-option:nth-child(3){background:linear-gradient(145deg,#f5e9e4,#c9959d)}
#themeChoices .theme-option:nth-child(4){background:linear-gradient(145deg,#364154,#101822)}
#themeChoices .theme-option:nth-child(5){background:linear-gradient(145deg,#d5e9e6,#5393a6)}
#themeChoices .theme-option:nth-child(6){background:linear-gradient(145deg,#f4eee1,#6a6964)}
#themeChoices .theme-option:after{content:'';position:absolute;inset:45% 0 0;background:linear-gradient(transparent,#0009);pointer-events:none}
#themeChoices .theme-option .envelope{width:66%;max-width:150px;transform:rotate(-5deg);margin-top:-24px;box-shadow:8px 12px 25px #0003}
#themeChoices .theme-option h2{position:absolute;bottom:10px;left:12px;margin:0;color:white;font:italic 18px Georgia,serif;z-index:4;text-align:left;pointer-events:none}
#themeChoices .theme-option p{display:none}
#themeChoices .theme-demo{position:absolute;bottom:45px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#ffffff40;color:white;border:1px solid #ffffff70;backdrop-filter:blur(8px);font-size:11px}
#themeChoices .theme-option.selected{outline:3px solid #879173;outline-offset:-3px}
#themeChoices .theme-option .envelope{display:none}
.theme-background-preview{position:absolute;inset:0;width:100%;height:100%;background:inherit}
.golden-hour-card-preview{position:absolute;inset:0;width:100%;height:100%;border:0;pointer-events:none;object-fit:cover;background:#e7a45d}
#themeChoices .theme-option:has(h2:nth-child(1)){background-size:cover;background-position:center}
#themeChoices .theme-option:nth-child(1){background-image:linear-gradient(145deg,#dfeef2,#7da9bc)}
#themeChoices .theme-option:nth-child(2){background-image:linear-gradient(145deg,#d8ddc1,#77834f)}
#themeChoices .theme-option:nth-child(3){background-image:linear-gradient(145deg,#f4dce0,#b87482)}
#themeChoices .theme-option:nth-child(4){background-image:linear-gradient(145deg,#59647b,#171b2d)}
#themeChoices .theme-option:nth-child(5){background-image:linear-gradient(145deg,#d8eee9,#5796a7)}
#themeChoices .theme-option:nth-child(6){background-image:linear-gradient(145deg,#f1e9d9,#77736b)}
#themeChoices .theme-option:nth-child(7){background-image:linear-gradient(145deg,#f7d99a,#c06d3c 52%,#573b46)}
.builder-header{padding:12px 22px 10px}
.builder-top{margin-bottom:12px}
.builder-top>a{font-size:19px}
#steps{grid-template-columns:repeat(7,minmax(0,1fr))}
.step-button{gap:4px;min-height:44px}
.step-button b{width:28px;height:28px}
.step-button:not(:last-child):after{top:14px}
#builder{max-width:940px;padding:0 22px 88px}
.privacy-note{margin:10px 0;font-size:10px}
.step-heading{margin:18px auto;max-width:690px}
.step-heading h1{font-size:29px;margin:8px 0}
.step-heading p{margin:8px 0;font-size:13px}
.theme-grid{gap:14px!important}
.theme-option{padding:10px}
.theme-option .envelope{max-width:112px;min-width:0}
.theme-option .envelope-seal{width:48px;height:48px}
.theme-option .wax-monogram{font-size:21px}
.theme-option .wax-wreath{font-size:12px}
.theme-option h2{font-size:20px;margin:10px 0 4px}
.theme-option p{font-size:11px;line-height:1.4;margin:5px 0 8px}
.theme-option>.theme-demo{padding:8px 14px;min-height:36px}
.envelope-settings{margin:18px auto;gap:14px}
.section-grid,.language-grid{gap:9px;max-width:570px;margin:16px auto}
.choice{min-height:76px;padding:10px 8px}
.choice b{font-size:22px;margin-bottom:3px}
.custom-block{max-width:570px;margin:18px auto}
.extra-list{max-width:670px}
.extra-row{padding:12px 16px;margin:8px 0;gap:12px;border-radius:10px}
.extra-row strong{font-size:13px}
.extra-row small{font-size:11px}
.notice{padding:10px 14px}
.info-form label{margin:12px 0}
input,select,textarea{padding:10px}
.summary-card{padding:14px 18px;margin:9px 0}
.summary-card h2{font-size:20px}
.builder-footer{padding:10px 22px}
.builder-footer button{min-height:44px;padding:10px 18px}
@media(max-width:650px){
 #themeChoices{grid-template-columns:repeat(2,minmax(0,1fr))}
 .builder-header{padding:10px 14px}.builder-top>a{font-size:16px}
 #builder{padding:0 14px 86px}.step-heading h1{font-size:25px}
 .theme-grid{gap:10px!important}.theme-option .envelope{max-width:92px}
 .theme-option>.theme-demo{min-height:44px}.choice{min-height:76px}
 .builder-footer{padding:10px 14px}.builder-top .exit{min-width:44px;min-height:44px}
}
@media(max-width:650px){#steps{overflow-x:auto;grid-template-columns:repeat(7,minmax(68px,1fr));padding:4px 2px 8px}.step-button span{font-size:9px}}
