.hm-template-backdrop{position:fixed;inset:0;background:#000b;z-index:1500;display:flex;align-items:center;justify-content:center;padding:24px;backdrop-filter:blur(8px)}.hm-template-modal{background:#171a23;color:#e9edf5;border:1px solid #363b4b;border-radius:20px;width:min(1050px,100%);max-height:92vh;display:flex;flex-direction:column;box-shadow:0 24px 100px #0008;outline:none;font-family:inherit}.hm-template-modal>header{display:flex;align-items:center;justify-content:space-between;padding:20px 26px;border-bottom:1px solid #303545;flex-shrink:0}.hm-template-modal header small{font-size:10px;color:#a99be3;letter-spacing:2px}.hm-template-modal h2{font-size:22px;line-height:1.5;margin:4px 0 10px}.hm-template-modal header h2{margin:4px 0 0}.hm-template-scroll{padding:24px 26px;overflow:auto;overscroll-behavior:contain}.hm-template-modal button,.hm-t-admin button,.hm-template-entry button{font:inherit;cursor:pointer}.hm-t-close{border:0;background:transparent;color:#bcc4d9;font-size:28px!important;padding:0 10px}.hm-t-actions{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:14px 0 20px}.hm-t-primary,.hm-t-secondary{border-radius:9px;padding:10px 15px;font-size:13px!important;font-weight:600;line-height:1.4}.hm-t-primary{background:#d9ff41;color:#151b02;border:1px solid #d9ff41}.hm-t-secondary{background:#252a36;color:#e3e8f3;border:1px solid #3a4051}.hm-template-backdrop button:disabled,.hm-t-admin button:disabled{opacity:.5;cursor:default}.hm-t-note{background:#262735;border:1px solid #3a3b52;border-radius:10px;padding:13px 16px;font-size:12px;line-height:1.85;color:#b8c0d1}.hm-t-note button{margin-left:12px}.hm-t-error{background:#50242c;color:#ffb7c4;border-radius:8px;padding:12px;line-height:1.6;font-size:13px}.hm-t-muted{color:#9ba6bc;font-size:12px;line-height:1.8}.hm-t-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.hm-template-card{min-width:0}.hm-template-card>button{background:transparent;border:0;text-align:left;padding:0;width:100%;color:inherit}.hm-template-cover{height:195px;position:relative;overflow:hidden;border-radius:12px;background:#252c39}.hm-template-cover img,.hm-template-cover video{position:absolute;width:100%;height:100%;object-fit:cover;inset:0}.hm-template-cover>span,.hm-template-cover>b{position:absolute;color:#fff;background:#111a;padding:5px 8px;font-size:10px;border-radius:5px;left:10px;top:10px}.hm-template-cover>b{top:auto;bottom:10px;font-weight:400}.hm-template-card h3{font-size:14px;margin:11px 0 5px;line-height:1.5}.hm-template-card p{font-size:11px;color:#9aa5b8;margin:0}.hm-t-own{border:1px solid #343949;padding:12px;border-radius:14px;background:#1d2230}.hm-t-own>p{font-size:12px;color:#b4c0d4;line-height:1.6}.hm-t-own .hm-t-actions{margin-bottom:0}.hm-t-own .hm-t-secondary{padding:7px 10px}.hm-t-form{border:1px solid #414958;background:#1c2230;padding:22px;border-radius:14px}.hm-t-form h3{margin-top:0}.hm-t-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.hm-template-modal label,.hm-t-admin label{display:block;font-size:12px;color:#b9c4d8;line-height:1.8;margin-bottom:13px}.hm-template-modal input:not([type=checkbox]),.hm-template-modal select,.hm-template-modal textarea,.hm-t-admin select,.hm-t-admin textarea{display:block;width:100%;box-sizing:border-box;background:#0f141f;border:1px solid #3b4455;color:#ecf1fa;border-radius:8px;padding:10px 12px;font:inherit;font-size:13px;line-height:1.6;margin-top:5px}.hm-template-modal input:focus,.hm-template-modal select:focus,.hm-template-modal textarea:focus{outline:2px solid #a394e1;outline-offset:2px}.hm-t-actions input{flex:1;max-width:360px;min-width:150px}.hm-t-actions label{margin:0}.hm-t-form-cover{width:160px;height:110px;object-fit:cover;border-radius:10px;margin-bottom:14px}.hm-t-ref-list{display:flex;flex-wrap:wrap;gap:10px;max-height:260px;overflow:auto}.hm-template-modal .hm-t-check{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid #343b49;border-radius:9px;line-height:1.6}.hm-t-check img,.hm-t-thumbs img{width:62px;height:62px;object-fit:cover;border-radius:8px}.hm-t-check input{accent-color:#d9ff41;flex-shrink:0}.hm-t-check span{overflow-wrap:anywhere}.hm-t-thumbs{display:flex;gap:10px;flex-wrap:wrap;margin:15px 0}.hm-t-hero{width:100%;max-height:300px;object-fit:contain;background:#101520;border-radius:12px}.hm-template-modal pre{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;line-height:1.8;background:#101521;padding:16px;border-radius:10px;color:#d8e2f4}.hm-t-meta{display:flex;gap:10px;flex-wrap:wrap}.hm-t-meta span{background:#282e3d;border-radius:6px;padding:7px 10px;font-size:12px}.hm-template-entry{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 18px;border:1px solid #303744;background:linear-gradient(110deg,#202336,#151b22);border-radius:12px;margin:20px 0 24px}.hm-template-entry strong{font-size:14px}.hm-template-entry p{margin:5px 0 0;font-size:12px;color:#9eaac1}.hm-t-admin{padding:20px 0}.hm-t-admin>h2{font-size:22px}.hm-template-modal :focus-visible,.hm-template-entry :focus-visible{outline:2px solid #d9ff41;outline-offset:3px}@media(max-width:700px){.hm-template-backdrop{padding:10px}.hm-template-modal{max-height:95dvh;border-radius:14px}.hm-template-modal>header{padding:15px}.hm-template-scroll{padding:16px}.hm-t-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hm-template-cover{height:155px}.hm-t-form{padding:14px}.hm-t-fields{grid-template-columns:1fr}.hm-template-entry{flex-wrap:wrap;padding:14px}.hm-template-entry .hm-t-primary{margin-left:auto}.hm-template-modal h2{font-size:19px}.hm-t-own{padding:9px}.hm-t-own .hm-t-actions{gap:5px}.hm-t-own .hm-t-secondary{font-size:11px!important}.hm-t-check{max-width:100%}}@media(prefers-reduced-motion:reduce){.hm-template-backdrop{backdrop-filter:none}}

.hm-use-track>.hm-template-card{flex:0 0 calc((100% - 80px)/6);min-width:174px;scroll-snap-align:start}.hm-use-track .hm-template-cover{height:auto;aspect-ratio:3/4}.hm-use-commerce .hm-template-cover{aspect-ratio:4/5}.hm-use-edit .hm-template-cover{aspect-ratio:1}.hm-mobile-template-card{width:156px;flex-shrink:0;color:#e6e9ef}.hm-mobile-template-card .hm-template-cover{height:188px}.hm-mobile-template-card .hm-template-card h3{font-size:12px}
