.template-dialog{width:min(1040px,calc(100vw - 32px));max-height:90dvh;overflow:auto;border:1px solid var(--color-template-dialog-border);border-radius:22px;padding:28px;background:var(--color-template-dialog-surface);color:var(--color-template-dialog-text);box-shadow:0 24px 90px var(--color-template-dialog-box-shadow);margin:auto}.template-dialog::backdrop{background:var(--color-template-dialog-surface-2);-webkit-backdrop-filter:blur(3px);backdrop-filter:blur(3px)}.template-dialog>header{display:flex;align-items:center;justify-content:space-between;gap:20px}.template-dialog h2{font-size:25px;margin:4px 0 20px}.template-dialog header>button{font-size:24px;width:38px;height:38px}.template-eyebrow{font-size:11px;letter-spacing:.12em;color:var(--color-template-eyebrow-text)}.template-dialog button{cursor:pointer;border:1px solid var(--color-template-dialog-border-2);border-radius:10px;padding:9px 14px;background:white;color:var(--color-template-dialog-text-2)}.template-dialog button:disabled{cursor:default;opacity:.5}.template-dialog .app-primary{background:var(--color-template-dialog-surface-3);color:white;border-color:var(--color-template-dialog-surface-3)}.template-dialog input,.template-dialog select{box-sizing:border-box;width:100%;padding:11px;border:1px solid var(--color-template-dialog-border-3);border-radius:10px;background:white;color:inherit}.template-steps{display:flex;gap:8px;margin:0 0 22px}.template-steps span{flex:1 1;padding:10px;background:var(--color-template-steps-surface);border-radius:10px;color:var(--color-template-steps-text)}.template-steps .current{background:var(--color-template-steps-surface-2);color:var(--color-template-steps-text-2)}.template-steps b{display:inline-grid;place-items:center;width:26px;height:26px;border-radius:50%;background:white;margin-right:8px}.template-chips,.template-slots,.template-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.template-tabs [aria-pressed=true]{background:var(--color-template-tabs-surface);color:var(--color-brand-studio-surface)}.template-list{display:grid;grid-template-columns:1fr 1fr;gap:14px}.template-choice{border:1px solid var(--color-template-choice-border);border-radius:14px;background:var(--color-brand-studio-surface);padding:18px}.template-choice h3{margin:0 0 6px;font-size:16px}.template-choice footer{display:flex;gap:8px;flex-wrap:wrap}.template-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;min-height:55px}.template-excerpt,.template-full{white-space:pre-wrap}.template-chips span{font-size:12px;background:var(--color-template-chips-surface);border-radius:6px;padding:4px 7px}.template-muted{color:var(--color-template-steps-text);font-size:12px;line-height:1.5}.template-data-grid{display:grid;grid-template-columns:1fr 1.4fr;gap:24px}.template-field{padding:12px 0;border-bottom:1px solid var(--color-template-field-border-bottom);display:flex;flex-direction:column;gap:6px}.template-field>span{font-size:12px;color:var(--color-template-steps-text)}.template-master{background:var(--color-brand-studio-surface);border:1px solid var(--color-template-master-border);border-radius:12px;padding:12px;margin:12px 0}.template-master h4{margin:0 0 6px}.template-slots button{min-width:76px;color:var(--color-template-slots-text)}.template-message{background:var(--color-template-message-surface);border-radius:16px;padding:26px;white-space:pre-wrap;font-size:16px;line-height:1.65}.template-sources div{display:flex;gap:18px;padding:8px 0;border-bottom:1px solid var(--color-template-sources-border-bottom)}.template-sources dt{min-width:100px}.template-sources dd{margin:0}.template-sources small{color:var(--color-template-steps-text)}.template-bottom{display:flex;gap:8px;border-top:1px solid var(--color-template-bottom-border-top);margin-top:24px;padding-top:16px}.template-dialog .manual-search select{min-height:42px;height:auto}.template-dialog .manual-search .booking-fields{display:grid;gap:12px}.template-dialog [role=alert]{color:var(--color-template-dialog-text-3);background:var(--color-template-dialog-surface-4);border-radius:10px;padding:12px}.template-field-settings{display:grid;grid-template-columns:1fr 1.5fr 80px;gap:10px;align-items:center;margin:8px 0}.template-owner-preview{white-space:pre-wrap;padding:18px;border-radius:12px;background:var(--color-template-message-surface);line-height:1.6}@media(max-width:700px){.template-dialog{padding:16px}.template-data-grid,.template-list{grid-template-columns:1fr}.template-steps span{font-size:12px}.template-steps b{margin-right:3px}.template-sources div{flex-direction:column;gap:2px}}.template-dialog [hidden]{display:none!important}.template-selected-service{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:12px;background:var(--color-template-selected-service-surface);border:1px solid var(--color-template-selected-service-border);border-radius:12px}.template-selected-service button{font-size:12px;flex-shrink:0}.template-visibility{display:flex;flex-wrap:wrap;gap:12px;margin:16px 0;border:1px solid var(--color-template-visibility-border);border-radius:12px;padding:14px}.template-visibility label{display:flex;align-items:center;gap:6px}.template-visibility input[type=checkbox]{width:18px;height:18px}.template-visibility small{flex-basis:100%}.template-dialog textarea.template-message{box-sizing:border-box;width:100%;min-height:180px;resize:vertical;line-height:1.65}.template-basket{background:var(--color-template-basket-surface);padding:16px;border-radius:12px;margin-top:12px}.template-basket>div{display:flex;justify-content:space-between;gap:12px;margin:8px 0}.template-slots button[aria-pressed=true]{background:var(--color-template-slots-surface);color:white}.template-favorites,.template-range{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.template-favorites small,.template-range strong{flex-basis:100%}.template-slot-evidence{padding:8px 0;border-bottom:1px solid var(--color-template-slot-evidence-border-bottom)}.template-condition-checks{border:1px solid var(--color-template-condition-checks-border);border-radius:12px;padding:16px;margin:16px 0}.template-condition-checks label{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}.template-condition-checks select{padding:8px}