.template-library-filters{align-items:end;flex-wrap:wrap;gap:12px}
.template-library-search{min-width:220px}
.template-library-pagination{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px;padding:16px 20px}
.template-library-status{padding:12px 20px}
.template-details-overlay{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:24px;background:rgba(0,0,0,.45)}
.template-details-dialog{width:min(960px,100%);max-height:calc(100vh - 48px);overflow:auto;background:var(--surface,#fff);color:var(--ink,#222);border-radius:12px;box-shadow:0 12px 48px rgba(0,0,0,.18)} /* taste-skill-ignore: shadow belongs to the actual floating details dialog. */
.template-details-dialog .panel-head{position:sticky;top:0;z-index:1;background:inherit;gap:16px}
.template-details-body{display:grid;gap:16px}
.template-details-body h3{margin:0;font-size:16px}
.template-details-body p{margin:0;line-height:1.6}
.template-details-metadata{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:0}
.template-details-metadata dt{color:var(--muted);font-size:12px;margin-bottom:4px}
.template-details-metadata dd{margin:0;overflow-wrap:anywhere}
.template-details-section{display:grid;gap:10px}
.template-details-users{padding:0;margin:0;list-style:none}
.template-details-users li{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;overflow-wrap:anywhere}
.template-details-actions{max-width:none;padding-top:12px}
.template-details-dialog .table-wrap{margin:0}
.template-details-dialog .template-zoom{z-index:61}
@media(max-width:700px){.template-library-filters label{flex:1 1 140px;min-width:0}
.template-library-search{min-width:0}
.template-library-filters input,.template-library-filters select{width:100%;box-sizing:border-box}
.template-library-pagination{justify-content:space-between;padding:12px;gap:8px}
.template-library-pagination span{font-size:12px}
.template-details-overlay{padding:12px}
.template-details-dialog{max-height:calc(100vh - 24px)}
.template-details-metadata{grid-template-columns:repeat(2,minmax(0,1fr))}
.template-details-dialog .panel-head{align-items:flex-start}
.template-details-users li{align-items:flex-start;flex-wrap:wrap}}
.app-shell .template-details-dialog{background:#fffdf9;color:#332923}
