.template-preview{aspect-ratio:3/2;width:100%;height:100%;display:block;position:relative;overflow:hidden}.template-preview .template-preview-poster,.template-preview .template-preview-video{object-fit:contain;width:100%;height:100%;display:block}.template-preview-video{opacity:0;background:#f1eef7;position:absolute;inset:0}.template-preview-video.is-ready{opacity:1}.template-preview .template-preview-status{z-index:1;color:#49415f;text-align:center;background:#ffffffeb;border-radius:7px;justify-content:center;align-items:center;gap:6px;padding:7px 9px;font-size:11px;line-height:1.45;display:flex;position:absolute;inset:auto 8px 8px}.template-preview-error{overflow-wrap:anywhere}
.template-dialog{border:1px solid var(--line);width:min(580px,100vw - 32px);max-height:calc(100dvh - 32px);color:var(--ink);background:var(--panel,white);border-radius:18px;margin:auto;padding:24px;box-shadow:0 20px 80px #18213b38}.template-dialog::backdrop{background:#18213b66}.template-dialog h2{margin:0;font-size:20px}.template-subtitle,.template-choices small{color:var(--muted)}.template-subtitle{margin:2px 0 16px;font-size:13px}.template-choices{border:0;gap:6px;margin:0;padding:0;display:grid}.template-choices label{border:1px solid var(--line);cursor:pointer;border-radius:10px;align-items:center;gap:10px;min-height:52px;padding:7px 10px;display:flex}.template-choices label:has(:checked){border-color:var(--accent);background:var(--soft)}.template-choices input{flex-shrink:0}.template-choices strong,.template-choices small{display:block}.template-choices strong{font-size:14px}.template-choices small{font-size:12px}.template-choices label>small:last-child{white-space:nowrap;margin-left:auto}.template-chip{border:2px solid;border-radius:5px;flex-shrink:0;width:17px;height:22px}.template-choice-art{background:#f1eef7;border-radius:7px;flex-shrink:0;width:132px;overflow:hidden}.template-choice-art .template-preview-status{inset-inline:3px;padding:3px;font-size:10px;bottom:3px}.template-choices label>span:last-of-type{min-width:0}@media (max-width:520px){.template-choice-art{width:96px}.template-choices label{flex-wrap:wrap;gap:8px}.template-choices label>small:last-child{margin-left:0}}.template-warning{margin:16px 0;font-size:13px;line-height:1.65}.template-name{gap:6px;font-size:14px;display:grid}.template-name input{border:1px solid var(--line);border-radius:7px;padding:8px}.template-include{align-items:center;gap:8px;font-size:13px;display:flex}.account-access{flex-wrap:wrap;align-items:end;gap:10px;padding:12px 0;display:flex}.account-access p{flex-basis:100%;margin:0;font-size:13px}.account-access label{gap:5px;font-size:13px;display:grid}.account-access input{min-width:0;max-width:100%;padding:7px 10px}.account-signed-in{flex-wrap:wrap;align-items:center;gap:12px;display:flex}
