.surgery-template-toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 12px;margin-bottom:14px;border:1px solid #b8c7f1;background:#f2f5ff;border-radius:10px}.surgery-template-toolbar span{font-size:12px;color:#566788}.surgery-template-launch{color:#3e46a5!important;border-color:#a6b3e2!important;background:#fff!important}.surgery-template-overlay{position:fixed;inset:0;background:rgba(19,31,52,.5);z-index:1400;display:flex;justify-content:center;align-items:center;padding:16px}.surgery-template-overlay[hidden]{display:none}.surgery-template-panel{background:var(--white,#fff);color:var(--gray-800,#243043);width:min(700px,100%);max-height:90dvh;overflow:auto;border-radius:14px;padding:20px;box-shadow:0 10px 38px #10234033;overscroll-behavior:contain}.surgery-template-panel header{display:flex;align-items:center;justify-content:space-between;gap:10px}.surgery-template-panel h3{margin:0}.surgery-template-panel button{margin:6px 8px 6px 0}.surgery-template-panel details{margin-top:18px;border-top:1px solid #dde4ef;padding-top:14px}.surgery-template-panel summary{font-weight:600;cursor:pointer;padding:6px 0;color:#3e46a5}.surgery-template-panel input:not([type=checkbox]),.surgery-template-panel textarea,.surgery-template-panel select{width:100%;margin:8px 0}.surgery-template-note{font-size:13px;line-height:1.65;color:#586579;margin:10px 0}.surgery-template-status{font-size:13px;line-height:1.5;color:#345ba5;min-height:20px}.surgery-template-status.is-error{color:#b42318}.surgery-template-section{border:1px solid #dde4ef;border-radius:8px;padding:10px;margin:10px 0;background:#fafbfe}.surgery-template-section label,.surgery-template-confirm{display:flex;align-items:flex-start;gap:9px;line-height:1.6;font-size:13px}.surgery-template-section input[type=checkbox],.surgery-template-confirm input{flex:0 0 auto;width:18px;height:18px;margin-top:2px;accent-color:#4e55af}.surgery-template-section pre{font:inherit;font-size:13px;white-space:pre-wrap;overflow-wrap:anywhere;color:#4c5b71;margin:8px 0 0 27px}.surgery-template-confirm{margin:14px 0}@media(max-width:600px){.surgery-template-overlay{padding:8px}.surgery-template-panel{padding:14px;max-height:94dvh}.surgery-template-toolbar span{display:block}.surgery-template-panel .btn{min-height:40px}}@media(prefers-reduced-motion:reduce){.surgery-template-overlay *{scroll-behavior:auto!important}}
@supports not (height:100dvh){.surgery-template-panel{max-height:90vh!important}}
