.template-section{padding-top:100px;padding-bottom:100px;scroll-margin-top:80px}.template-section>.section-heading{margin-bottom:38px}.template-picker{display:grid;grid-template-columns:minmax(230px,300px) minmax(0,1fr);gap:32px;text-align:left;color:#243936;font-family:'DM Sans',sans-serif}.template-label{font-size:10px;font-weight:700;letter-spacing:1.8px;text-transform:uppercase;color:#677671;margin-bottom:13px}.template-themes{display:grid;gap:9px;margin-bottom:28px}.template-themes button{position:relative;display:flex;align-items:center;gap:13px;text-align:left;padding:7px;border:1px solid #d9e0da;border-radius:9px;background:#fff;color:inherit;cursor:pointer}.template-themes img{width:76px;height:60px;object-fit:cover;border-radius:5px}.template-themes strong{display:block;font-size:15px}.template-themes small{display:block;font-size:11px;color:#6b7974;margin-top:5px}.template-themes i{display:none;margin-left:auto;margin-right:8px;font-style:normal}.template-themes [aria-pressed=true]{border-color:#235c50;box-shadow:0 0 0 1px #235c50;background:#f3f8f3}.template-themes [aria-pressed=true] i{display:block}.template-sizes{display:grid;grid-template-columns:repeat(3,1fr);gap:7px}.template-sizes button{display:grid;gap:6px;text-align:left;padding:13px 10px;border:1px solid #d9e0da;background:white;border-radius:7px;color:inherit;cursor:pointer}.template-sizes strong{font-size:12px}.template-sizes span{font-size:13px}.template-sizes small{font-size:11px;color:#64736e}.template-sizes [aria-pressed=true]{background:#e6eee8;border-color:#235c50;box-shadow:0 0 0 1px #235c50}.template-description{font-size:13px;line-height:1.65;min-height:43px;margin:20px 0!important;color:#62716b}.template-apply{padding:14px 18px;background:#214d42;color:#fff;border:1px solid #214d42;border-radius:6px;font:600 14px 'DM Sans',sans-serif;width:100%;cursor:pointer}.template-apply:hover{background:#153a31}.template-apply:disabled{opacity:.5;cursor:default}.template-note{font-size:11px!important;line-height:1.6!important;color:#69786f;margin:12px 0 0!important}.template-preview{min-width:0;align-self:start;border:1px solid #dce4dd;border-radius:12px;overflow:hidden;background:#f4f6f0}.template-preview-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:22px 24px}.template-preview-heading>div>span{font-size:9px;letter-spacing:1.8px;color:#63756b;font-weight:700}.template-name{font-size:25px!important;letter-spacing:-.8px!important;margin:5px 0 0!important;font-weight:500!important}.template-summary{font-size:12px;text-align:right;color:#50665a}.template-map{aspect-ratio:1.36}.template-map .world-room{cursor:default}.template-map .world-door{display:none}.template-map .world-room-label{font-size:clamp(9px,1.6cqw,12px)}.template-preview-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 20px}.template-preview-bottom>span{font-size:10px;color:#63756b}.template-floors{display:flex;gap:5px}.template-floors button{padding:9px 12px;border:1px solid transparent;border-radius:5px;background:transparent;font:500 12px 'DM Sans',sans-serif;color:#50665a;cursor:pointer}.template-floors [aria-pressed=true]{background:#fff;border-color:#c8d5cc;color:#214d42}.template-picker button:focus-visible{outline:3px solid #8d65d3;outline-offset:3px}.template-dialog{width:min(1160px,96vw)!important;max-width:1160px!important;padding:30px!important}.template-dialog #modalbody>h2{margin-bottom:6px}.template-dialog #modalbody>p{margin-bottom:26px}.template-dialog .template-picker{gap:24px}.template-launch{border:1px solid #d9e0da;background:white;border-radius:6px;padding:8px 12px;font:500 12px 'DM Sans',sans-serif;color:#294a40;cursor:pointer}.floor-options{display:flex;gap:8px;flex-wrap:wrap}.floor-options button{padding:15px;border:1px solid #d9e0da;border-radius:7px;background:#f2f6ef;cursor:pointer;color:#294a40}
@media(max-width:850px){.template-picker{grid-template-columns:1fr}.template-themes{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin-bottom:20px}.template-themes button{display:block;padding:5px}.template-themes img{width:100%;height:auto;aspect-ratio:1.36}.template-themes button>span{display:block;padding:7px 3px}.template-themes strong{font-size:12px}.template-themes small{font-size:10px;line-height:1.4}.template-themes i{display:none!important}.template-description{min-height:0}.template-preview-heading{padding:16px}.template-dialog{padding:22px!important}.template-launch{font-size:11px;padding:7px}.template-preview-bottom{padding:12px}.template-preview-bottom>span{display:none}.template-section{padding-top:60px;padding-bottom:60px}} 

/* Show the actual room count immediately instead of hiding extra floors. */
.template-floor-toolbar{padding:0 20px 16px;flex-wrap:wrap}.template-floor-card{min-width:0;margin:0}.template-floor-heading{display:flex;align-items:center;gap:8px;padding:12px 14px;background:#e8eee6;font-size:12px;color:#294a40}.template-floor-heading>span{color:#66766a;font-size:10px}.template-floor-heading button{margin-left:auto;border:0;background:transparent;color:#28594a;font:600 11px 'DM Sans',sans-serif;cursor:pointer;padding:6px}.template-overview{display:grid;grid-template-columns:repeat(var(--preview-floors),minmax(0,1fr));gap:12px;padding:0 16px 16px}.template-overview .template-floor-card{border:1px solid #d4dfd2;border-radius:7px;overflow:hidden}.template-overview .template-floor-heading{flex-wrap:wrap;padding:10px}.template-overview .world-room-label{font-size:clamp(6px,2.5cqw,9px);padding:3px 4px}.template-preview-bottom .template-view-caption{display:block;font-size:12px}.template-preview-bottom{border-top:1px solid #dce4dd}
@media(max-width:600px){.template-overview{grid-template-columns:1fr;gap:16px}.template-overview .world-room-label{font-size:9px}.template-floor-toolbar{padding-inline:12px}.template-floor-toolbar button{padding:9px}.template-preview-bottom .template-view-caption{font-size:11px}}
