.template-preview-backdrop{overscroll-behavior:contain;padding:16px;padding:max(16px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(16px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));z-index:44;background:#1111113d;justify-content:safe center;align-items:safe center;display:flex;position:fixed;inset:0;overflow:auto}.template-preview-modal{background:var(--paper);border:1px solid var(--soft-line);overflow-wrap:anywhere;border-radius:10px;gap:16px;width:min(1180px,100vw - 32px);max-height:calc(100dvh - 32px);padding:24px 26px 22px;display:grid;overflow:auto;box-shadow:0 22px 70px #1111113d}.template-preview-description{background:var(--soft-fill);white-space:pre-wrap;border-radius:8px;margin:0;padding:10px 12px;line-height:1.35}.template-preview-tags{flex-wrap:wrap;gap:6px;display:flex}.template-preview-tags span{background:var(--soft-fill);border-radius:6px;padding:3px 8px;font-size:.7rem}.template-preview-content{gap:12px;display:grid}.template-preview-content.template-preview-week-layout{grid-auto-columns:minmax(190px,1fr);grid-auto-flow:column;max-height:calc(100dvh - 220px);padding-bottom:8px;overflow:auto}.template-preview-content.template-preview-week-layout .template-preview-section{background:var(--paper);border:1px solid var(--soft-line);border-radius:8px;min-width:190px;padding:12px}.template-preview-section{align-content:start;gap:8px;display:grid}.template-preview-section h3{opacity:.62;margin:0;font-size:.78rem}.template-preview-block{background:var(--block-bg,var(--paper));border:1px solid var(--soft-line);border-radius:8px;gap:5px;padding:11px 12px;display:grid}.template-preview-block small{opacity:.52;text-transform:uppercase;font-size:.62rem;font-weight:850}.template-preview-block p,.template-preview-empty{opacity:.72;white-space:pre-wrap;margin:0;line-height:1.35}.template-preview-empty{opacity:.52}
.template-add-block-row{background:var(--paper);border:1px dashed var(--line);border-radius:6px;min-height:34px;padding:0 9px;font-size:.78rem;font-weight:750}.template-add-block-row:hover,.template-add-block-row:focus-visible{background:var(--soft-fill);border-color:var(--ink);color:var(--ink);outline:0}
@media (max-width:980px){.template-editor-heading{flex-direction:column;align-items:stretch}.template-editor-actions{justify-content:start}}@media (max-width:720px){.template-manager-backdrop{padding:0}.template-manager-modal{border:0;border-radius:0;width:100vw;height:100dvh}.template-manager-shell{grid-template-rows:minmax(260px,.45fr) minmax(0,1fr);grid-template-columns:1fr}.template-manager-sidebar{border-bottom:1px solid #11111124;border-right:0}.template-block-editor-grid,.template-video-row{grid-template-columns:1fr}.template-tag-meta-field{grid-column:auto}.template-editor-fields{grid-template-columns:1fr}.template-content-editor-week{grid-auto-flow:row;overflow-x:hidden}.template-content-editor-week .template-day-editor{min-width:0}.template-block-editor-backdrop{padding:0}.template-block-editor-modal{border-radius:0;width:100%;height:100%;max-height:none}.template-manager-footer{align-items:stretch}.template-manager-footer button{width:100%}.edit-template-modal .save-template-actions{grid-template-columns:1fr 1fr 1fr;justify-content:stretch}}@media (max-height:760px){.template-preview-backdrop{align-items:flex-start}.template-preview-modal{gap:14px;padding:16px 18px}.template-library-modal{padding:16px 18px}.template-toolbar,.insert-template-modal .template-toolbar,.weekly-template-modal .template-toolbar{gap:10px;margin:12px 0 8px}.template-save-preview{padding:10px}.template-save-type-option{min-height:58px;padding:9px}}@media (max-height:620px){.template-preview-modal{gap:10px;padding:12px 14px}.template-modal-header p{margin-bottom:3px}.template-library-modal{padding:12px 14px}.template-modal-header{gap:10px}.template-table-head,.template-row{min-height:36px}}

