.template-heading-tools{display:flex;align-items:center;gap:9px}.template-heading-tools input{width:min(270px,26vw);height:40px;padding:0 13px;border:1px solid #dce3ef;border-radius:10px;background:#fff}.template-heading-tools>button{height:40px;padding:0 15px;border:1px solid #c9dbf9;border-radius:10px;background:#edf4ff;color:#286cdb;font-weight:650;white-space:nowrap}.template-heading-tools>button:hover{background:#e0edff;border-color:#a9c5f3}.template-library-meta{display:flex;align-items:center;justify-content:space-between;gap:14px;margin:12px 0 0}.template-library-meta .help{margin:0}.template-library-meta>span{color:#8d98aa;font-size:10px;white-space:nowrap}.template-library-grid{grid-template-columns:repeat(auto-fill,minmax(225px,1fr));align-items:start;gap:17px;margin-top:13px}.template-card{min-width:0;overflow:hidden;border:1px solid #e4eaf3;border-radius:15px;background:#fff;box-shadow:0 7px 21px #29446c0a;transition:transform .18s ease,border-color .18s ease,box-shadow .18s ease}.template-card:hover{transform:translateY(-3px);border-color:#c9d9f2;box-shadow:0 13px 29px #29446c15}.template-card.is-selected{border-color:#7ba4ef;box-shadow:0 0 0 2px #e6efff,0 10px 25px #29446c10}.template-artwork{position:relative;display:block;width:100%;padding:0;overflow:hidden;background:#eff2f7;text-align:left}.template-artwork img{display:block;width:100%;aspect-ratio:4/5;object-fit:cover;transition:transform .3s ease}.template-artwork:hover img{transform:scale(1.025)}.artwork-zoom{position:absolute;right:12px;bottom:12px;padding:7px 10px;border:1px solid #ffffff70;border-radius:18px;background:#152137b8;color:#fff;font-size:10px;backdrop-filter:blur(7px)}.my-template-badge{position:absolute;left:12px;top:12px;padding:5px 8px;border-radius:14px;background:#ffffffdf;color:#536782;font-size:9px}.template-card-body{padding:13px 14px 14px}.template-card-kicker{display:flex;gap:6px;min-height:20px}.template-card-kicker span{padding:3px 7px;border-radius:12px;background:#f0f4fa;color:#65748b;font-size:9px}.template-card h2{margin:9px 0 3px;color:#313c4e;font-size:14px}.template-card-body>p{min-height:18px;margin:0;color:#8994a5;font-size:10px;line-height:1.6}.template-card-actions{display:flex;gap:7px;margin-top:12px}.template-card-actions button{height:33px;border-radius:8px;font-size:10px}.template-secondary{padding:0 10px;border:1px solid #e1e7f0;background:#fff;color:#596a83}.template-secondary:hover{border-color:#bed0ee;background:#f8faff}.template-apply{flex:1;border:1px solid #d7e5fc;background:#f0f5ff;color:#3072d8;font-weight:650}.template-apply:hover,.template-apply[aria-pressed=true]{border-color:#2875ff;background:#2875ff;color:#fff}.template-dialog,.template-preview-dialog{max-width:calc(100vw - 28px);max-height:calc(100dvh - 28px);padding:0;overflow:auto;border:1px solid #e5eaf2;border-radius:19px;background:#fff;color:#2e384a;box-shadow:0 28px 100px #12203b45}.template-dialog::backdrop,.template-preview-dialog::backdrop{background:#111b2cb5;backdrop-filter:blur(5px)}.template-upload-dialog{width:min(820px,calc(100vw - 28px))}.template-upload-dialog form{padding:22px}.template-upload-dialog .dialog-heading{align-items:flex-start;margin-bottom:18px}.template-upload-dialog .dialog-heading h2{margin:0;color:#303c51;font-size:19px}.template-upload-dialog .dialog-heading p{margin:5px 0 0;color:#8b96a8;font-size:11px}.template-upload-dialog .dialog-heading>button,.template-preview-top button{flex:0 0 auto;width:34px;height:34px;border-radius:50%;background:#f1f4f8;color:#606e81;font-size:22px}.template-upload-layout{display:grid;grid-template-columns:minmax(210px,.84fr) minmax(300px,1.16fr);gap:20px}.template-upload-drop{display:grid;min-height:300px;place-items:center;overflow:hidden;border:1px dashed #aac4ec;border-radius:13px;background:linear-gradient(145deg,#f5f8fe,#eef3fc);cursor:pointer}.template-upload-drop>span{display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;padding:12px;text-align:center}.template-upload-drop>span>b{display:grid;width:48px;height:48px;place-items:center;border-radius:14px;background:#e1edff;color:#3980ed;font-size:29px}.template-upload-drop>span>strong{color:#52647e;font-size:12px}.template-upload-drop>span>small{color:#909caf;font-size:10px}.template-upload-drop #templateUploadPreview{width:100%;height:100%;padding:9px}.template-upload-drop #templateUploadPreview img{display:block;max-width:100%;max-height:340px;object-fit:contain;border-radius:8px}.template-upload-fields{display:grid;gap:11px}.template-upload-fields label{display:grid;gap:5px;color:#65738a;font-size:10px}.template-upload-fields input,.template-upload-fields select,.template-upload-fields textarea{width:100%;margin:0;padding:9px 10px;border:1px solid #dce4ef;border-radius:8px;background:#fff;color:#3c485c;font-size:11px}.template-upload-fields input,.template-upload-fields select{height:36px}.template-upload-fields textarea{height:86px;resize:vertical}.template-upload-privacy{margin:13px 0 0;color:#8d98aa;font-size:10px;line-height:1.6}.template-upload-dialog .dialog-actions{align-items:center}.template-upload-dialog .dialog-actions .primary{width:auto;min-width:145px;padding:0 15px}.template-upload-dialog .dialog-actions .secondary{height:38px}.template-preview-dialog{width:min(1020px,calc(100vw - 28px));overflow:hidden}.template-preview-layout{display:grid;grid-template-columns:minmax(0,1.25fr) minmax(280px,.75fr);min-height:min(620px,calc(100dvh - 30px))}.template-preview-stage{display:grid;min-height:0;place-items:center;padding:24px;background:radial-gradient(ellipse at center,#26334a,#111a29 72%)}.template-preview-stage img{display:block;max-width:100%;max-height:calc(100dvh - 78px);object-fit:contain;border-radius:8px;box-shadow:0 20px 70px #0008}.template-preview-details{display:flex;flex-direction:column;padding:24px 23px;background:#fff}.template-preview-top{display:flex;align-items:center;justify-content:space-between}.template-preview-eyebrow{color:#8794a8;font-size:9px;letter-spacing:1.8px}.template-preview-category{margin:26px 0 7px;color:#3979d8;font-size:10px}.template-preview-details h2{margin:0;color:#2f3b50;font-size:23px}.template-preview-description{margin:13px 0;color:#69788f;font-size:12px;line-height:1.8}.template-preview-tags{color:#8895a7;font-size:10px}.template-preview-callout{display:grid;gap:7px;margin-top:auto;padding:13px;border:1px solid #e4ebf5;border-radius:11px;background:#f8faff}.template-preview-callout strong{color:#526781;font-size:10px}.template-preview-callout span{color:#7d8ba0;font-size:10px;line-height:1.7}.template-preview-actions{display:flex;gap:8px;margin-top:15px}.template-preview-actions .primary{height:42px}.template-preview-actions .template-delete{padding:0 10px;border:1px solid #efd7d7;border-radius:9px;background:#fff7f7;color:#a95757;font-size:10px}.template-preview-actions .primary:disabled{opacity:.5}.template-library-grid:empty{display:none}
@media(max-width:900px){.template-library-grid{grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.template-heading-tools input{width:min(240px,34vw)}.template-preview-layout{grid-template-columns:minmax(0,1fr) minmax(250px,.72fr)}}
@media(max-width:700px){.template-heading-tools{width:100%;align-items:stretch}.template-heading-tools input{width:0;min-width:0;flex:1}.template-heading-tools>button{padding:0 11px}.template-library-meta{align-items:flex-start;flex-direction:column;gap:3px}.template-library-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.template-card-body{padding:10px}.template-card h2{font-size:12px}.template-card-actions{gap:5px}.template-card-actions button{height:31px;font-size:9px}.template-secondary{padding:0 7px}.artwork-zoom{right:7px;bottom:7px;padding:6px 8px}.template-upload-dialog form{padding:16px}.template-upload-layout{grid-template-columns:1fr;gap:13px}.template-upload-drop{min-height:190px}.template-upload-drop #templateUploadPreview img{max-height:210px}.template-preview-dialog{width:calc(100vw - 14px);max-height:calc(100dvh - 14px);overflow:auto}.template-preview-layout{display:flex;flex-direction:column;min-height:0}.template-preview-stage{min-height:40dvh;padding:12px}.template-preview-stage img{max-height:45dvh}.template-preview-details{padding:16px}.template-preview-category{margin:15px 0 6px}.template-preview-details h2{font-size:19px}.template-preview-description{margin:8px 0;font-size:11px}.template-preview-callout{margin-top:10px}.template-preview-actions .primary{height:38px}}
