.template-panel{padding:32px!important;scroll-margin-top:28px}.template-heading{display:flex;justify-content:space-between;align-items:flex-start;gap:24px}.template-heading h2{font-size:clamp(22px,2.4vw,32px);line-height:1.4;margin:12px 0}.template-heading p,.template-source p,.template-publish p{color:#8eabb7;font-size:14px;line-height:1.8;margin:8px 0}.template-flow{display:flex;align-items:center;gap:24px;padding:21px 0;margin:12px 0 28px;border-bottom:1px solid #223c47;color:#b6ccd3;font-size:13px}.template-flow b{color:#78ddd3;margin-right:8px;font-size:11px}.template-flow i{font-style:normal;color:#476976}.template-columns{display:grid;grid-template-columns:minmax(250px,.85fr) minmax(340px,1.25fr);gap:30px}.template-source{padding-right:28px;border-right:1px solid #223c47}.template-columns h3{font-size:20px;margin:10px 0 20px}.template-actions{display:flex;gap:10px;flex-wrap:wrap}.template-actions .button{font-size:13px;padding:12px 18px}.template-upload{position:relative;display:grid;justify-items:start;gap:8px;margin-top:20px;padding:24px;border:1px dashed #3d6570;border-radius:16px;background:linear-gradient(130deg,#132e36aa,#0a1b2400)}.template-upload p{margin:0}.template-upload small{color:#7797a5;font-size:11px;line-height:1.7}.template-upload-icon{font-size:30px;color:#78ddd3}.template-file-label{position:relative;overflow:hidden;cursor:pointer;font-size:13px}.template-file-label input{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}.template-source-advanced{margin-top:20px;padding:16px;border:1px solid #28424d;border-radius:12px;background:#0b1d26}.template-source-advanced summary{cursor:pointer;color:#b6d6dc;font-size:13px}.template-source-advanced[open] summary{margin-bottom:14px}.template-source-advanced .form-stack{margin-top:16px}.template-preview{min-width:0}.template-preview-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.template-preview-heading select{max-width:160px;background:#0b1f2b;border:1px solid #355563;border-radius:8px;color:#b7d5df;padding:9px}.template-metrics{display:grid;grid-template-columns:repeat(3,1fr);padding:18px 0;margin-bottom:16px;background:#0a1b24;border:1px solid #223c47;border-radius:12px}.template-metrics div{display:grid;gap:4px;justify-items:center;border-right:1px solid #223c47}.template-metrics div:last-child{border:0}.template-metrics strong{font-size:25px;font-weight:600;color:#b8fff0}.template-metrics span{font-size:11px;color:#88a6b5}.template-tables{max-height:345px;overflow:auto;scrollbar-width:thin;scrollbar-color:#376374 transparent}.template-tables details{padding:12px 4px;border-bottom:1px solid #203743}.template-tables summary{cursor:pointer;font-size:14px;color:#e0edf2}.template-tables summary small{float:right;font-size:11px;color:#8eabb7;padding-right:10px}.template-field-list{display:flex;flex-wrap:wrap;gap:6px;margin-top:12px}.template-field-list span{display:inline-block;font-size:11px;color:#aec8d1;background:#102a35;border-radius:5px;padding:5px 8px}.template-notes{margin:20px 0;color:#94acb9;font-size:12px;line-height:1.8}.template-notes summary{cursor:pointer;color:#a9cbd5}.template-notes ul{padding-left:20px}.template-publish{display:flex;gap:16px;align-items:center;justify-content:space-between;border-top:1px solid #28424d;padding-top:20px}.template-publish strong{color:#d7efee;font-size:14px}.template-publish p{font-size:12px;max-width:340px}.template-publish .button{flex-shrink:0;font-size:13px;padding:12px 20px}.template-qr{padding:18px;margin-top:16px;border:1px solid #355563;border-radius:12px;text-align:center}.template-qr img{width:176px;height:176px;padding:8px;background:white;border-radius:8px}.template-panel button:disabled{opacity:.5;cursor:default}.template-panel #template-feedback{margin:18px 0 0;overflow-wrap:anywhere}.template-panel #template-source-state{overflow-wrap:anywhere}@media(max-width:1050px){.template-columns{grid-template-columns:1fr}.template-source{padding:0 0 26px;border-right:0;border-bottom:1px solid #223c47}.template-heading{flex-wrap:wrap}.template-flow{gap:10px;font-size:11px}.template-panel{padding:22px!important}}@media(max-width:520px){.template-flow{flex-wrap:wrap}.template-publish{align-items:stretch;flex-direction:column}.template-preview-heading{align-items:flex-start;flex-direction:column}.template-preview-heading select{margin-bottom:15px}}

.template-upload .template-source-summary{font-size:12px;line-height:1.8;padding:10px 12px;border-radius:8px;background:rgba(120,110,190,.08);overflow-wrap:anywhere}.template-sheet-source form{width:100%;margin:10px 0}.template-sheet-source small{line-height:1.8}.template-source-check{margin-top:18px;font-size:13px}.template-heading-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px}.template-heading-actions .button{font-size:13px;padding:12px 18px}
.template-live-previews{display:grid;gap:24px;margin-top:24px;min-width:0}.template-live-preview{min-width:0;border:1px solid #dfe3ed;border-radius:14px;padding:20px;background:#fff}.template-preview-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px}.template-preview-toolbar h3{margin:0;font-size:17px;color:#33415b}.template-live-tabs{display:flex;gap:7px;overflow:auto;padding:16px 0 4px;scrollbar-width:thin}.template-live-tabs button{white-space:nowrap;border:1px solid #e2e4ef;border-radius:7px;background:#fafaff;color:#68758b;padding:9px 12px;font-size:12px;cursor:pointer}.template-live-tabs button[aria-pressed=true]{background:#ede9ff;border-color:#b6a9ef;color:#5643a6}.template-live-state{font-size:12px;color:#6e7a8f;line-height:1.7;margin:12px 0}.template-live-grid{max-height:390px;overflow:auto;border:1px solid #e6e8ef;border-radius:8px;scrollbar-width:thin;min-height:100px}.template-live-grid table{border-collapse:separate;border-spacing:0;min-width:100%;font-size:12px;color:#35425b}.template-live-grid th,.template-live-grid td{padding:10px 12px;text-align:left;border-right:1px solid #edf0f5;border-bottom:1px solid #edf0f5;min-width:110px;max-width:320px;white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top}.template-live-grid thead th{position:sticky;top:0;z-index:1;background:#f1effa;color:#51466e;white-space:nowrap}.template-live-grid tbody th{min-width:36px;width:36px;background:#f7f8fb;color:#9199aa;font-weight:400;text-align:center}.template-live-grid tbody tr:nth-child(even) td{background:#fafbfe}.template-live-grid p{padding:20px;color:#7b8497;font-size:13px}.template-update-guide{margin:24px 0;padding:18px 20px;background:#f5f3fc;border-radius:12px;color:#51476c}.template-update-guide p{font-size:13px;line-height:1.9;margin:8px 0 0}.template-live-preview[aria-busy=true] .template-live-grid{opacity:.55}.template-completion[data-error=true]{border-color:#ecd2cb;background:#fdf5f2}@media(max-width:780px){.template-live-preview{padding:14px}.template-preview-toolbar h3{font-size:15px}}
.template-completion{margin:20px 0;padding:18px 20px;border:1px solid #ecdfc9;border-radius:12px;background:#fcf8f1}.template-completion[data-ready="true"]{border-color:#d9e7dc;background:#f4faf5}.template-completion strong{font-size:17px;color:#8a6836}.template-completion[data-ready="true"] strong{color:#466b50}.template-completion p{margin:7px 0 0;line-height:1.8;font-size:13px}.template-overview-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.template-overview-grid .template-upload{margin:0;padding:22px;align-content:start;border-style:solid;min-width:0}.template-source-heading{display:flex;justify-content:space-between;align-items:center;gap:12px;width:100%}.template-source-heading strong{font-size:13px}.template-overview-grid h3{margin:8px 0;font-size:19px;line-height:1.5;overflow-wrap:anywhere}.template-overview-grid .template-actions{margin-top:10px}.template-sheet-tabs{width:100%;font-size:12px;margin-top:10px;color:#6f7c91}.template-sheet-tabs summary{cursor:pointer;color:#6e5bd1}.template-sheet-tabs ul{padding-left:18px;line-height:1.9}.template-version-details{margin-top:16px;padding:16px;border:1px solid #e3e6ef;border-radius:12px;background:#fafaff}.template-version-details > summary{font-size:13px;color:#6e5bd1;cursor:pointer}.template-version-details .template-preview{margin-top:20px}.template-source-advanced .form-stack + .form-stack{margin-top:20px;padding-top:20px;border-top:1px solid #e3e6ef}@media(max-width:780px){.template-overview-grid{grid-template-columns:1fr}.template-completion{padding:16px}.template-overview-grid .template-upload{padding:18px}}
