.tpl-picker{margin:20px 0;padding:18px;background:var(--panel,#fffdf7);border:1px solid #cdbc94;border-radius:14px;min-width:0}.tpl-picker label{font-size:18px}.tpl-picker select{font-size:18px;width:100%;max-width:100%}.tpl-hint{color:#496258;line-height:1.8}.tpl-preview p{font-size:16px;line-height:1.8;white-space:pre-line}.tpl-summary{display:flex;gap:12px;justify-content:space-between;flex-wrap:wrap;margin:14px 0}.tpl-summary strong{font-size:20px}.tpl-summary span{color:#796128}.tpl-warning{padding:12px;background:#f7efdc;color:#5b481e;border-radius:9px;margin:12px 0!important}.tpl-stages{max-height:340px;overflow:auto;border:1px solid #d9dfd5;border-radius:10px;padding:0 14px;overscroll-behavior:contain}.tpl-stages details{padding:12px 0;border-bottom:1px solid #d9dfd5}.tpl-stages summary{font-weight:700;font-size:17px;cursor:pointer;min-height:40px}.tpl-stages summary small{display:block;font-weight:400}.tpl-stages article{padding:14px 8px;border-top:1px dashed #d9dfd5}.tpl-stages h4{margin:0 0 8px}.tpl-stages small{font-size:14px}.tpl-library-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,260px),1fr));gap:16px}.tpl-library-card{border:1px solid var(--line,#d9dfd5);border-top:4px solid #b79652;border-radius:14px;padding:20px;background:var(--card,#fffdf8);min-width:0}.tpl-library-card h3{font-size:20px;margin:12px 0}.tpl-library-card p{font-size:16px;line-height:1.8}.tpl-library-card .actions{margin-top:16px;flex-wrap:wrap}.tpl-library-category{color:#8d702f;font-weight:700}.tpl-library-card .pill{display:inline-block;margin-bottom:10px}.tpl-readonly-dialog{box-sizing:border-box;max-width:780px;width:94vw;max-height:90dvh;overflow:auto;padding:24px;border:1px solid #c5b17d;border-radius:18px;background:var(--panel,var(--card,#fffdf8));color:var(--ink,var(--text,#103f35))}.tpl-readonly-dialog .tpl-stages{max-height:55dvh}.tpl-readonly-dialog::backdrop{background:#102c3a99}.tpl-extra-fields{display:grid;gap:10px;grid-column:1/-1;padding:12px;border:1px dashed #cdbc94;border-radius:10px}.tpl-extra-fields label{min-width:0}.tpl-extra-fields input,.tpl-extra-fields select,.tpl-extra-fields textarea{font-size:17px}@media(max-width:600px){.tpl-picker,.tpl-readonly-dialog{padding:16px}.tpl-summary{display:block}.tpl-summary span{display:block;margin-top:6px}.tpl-library-card{padding:16px}.tpl-stages{padding-inline:10px}.tpl-library-card .actions button{min-height:48px}}
