.template-designer{display:grid;grid-template-columns:minmax(260px,340px) minmax(0,1fr);gap:20px}.template-designer fieldset{margin:0;border:0;padding:0;display:grid;gap:12px;min-width:0}.template-designer label{display:grid;gap:5px;font-size:12px}.template-designer .template-pair{display:grid;grid-template-columns:1fr 1fr;gap:10px}.template-designer label.template-check{display:flex;align-items:center;gap:8px}.template-designer input[type=checkbox]{width:auto;min-height:18px}.template-designer input[type=color]{width:100%;padding:3px;height:36px}.template-designer iframe{width:100%;height:690px;max-height:76dvh;border:1px solid #cfdee5;border-radius:8px;background:white}.template-designer .template-preview{min-width:0;background:#eef3f6;padding:14px;border-radius:10px}.template-designer .template-preview p{margin:0 0 10px}.template-designer .template-actions{display:flex;gap:8px;flex-wrap:wrap}.template-designer small{color:#526b7a}.template-designer #templateVisualControls{border:1px solid #ccdce3;padding:10px;border-radius:8px;display:grid;gap:8px}.template-designer [hidden]{display:none!important}@media(max-width:850px){.template-designer{grid-template-columns:1fr}.template-designer iframe{height:620px}.template-designer .template-preview{padding:5px}}

#templateThermalControls{display:grid;gap:10px;padding:10px;border:1px solid #ccdce3;border-radius:8px}

.template-extras{display:grid;gap:9px}.template-extras h3{margin:4px 0;font-size:14px}.template-extra-editor{display:grid;gap:8px;padding:10px;margin-top:10px;border:1px solid #ccdce3;border-radius:8px}.template-extra-title{display:flex;align-items:center;gap:5px;flex-wrap:wrap}.template-extra-title strong{flex:1}.template-extra-title button{padding:5px 8px;min-height:30px;font-size:11px}

.template-simple [data-template-advanced]{display:none!important}.template-style-choices{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:8px}.template-style-choices button{background:white;color:#155e75;border:1px solid #cbdde5;padding:12px 8px;border-radius:8px}.template-style-choices button[aria-pressed=true]{background:#155e75;color:white;border-color:#155e75}#templateAdvancedToggle{justify-self:start;min-height:34px;padding:6px 0!important;background:transparent!important;color:#155e75!important;border:0!important;text-decoration:underline}.template-simple .template-extra-title{gap:8px}.template-simple #templateThermalControls{border:0;padding:0}.template-simple .template-extras h3{font-size:13px}.template-simple .template-extra-title strong{font-size:12px}
