.sp-editor {--sp-ink:#202531;--sp-dim:#58616c;--sp-line:#dce0e4;--sp-paper:#fff;--sp-accent:var(--accent,#354fd7);color:var(--sp-ink);background:var(--sp-paper);border:1px solid var(--sp-line);border-radius:18px;padding:clamp(16px,3vw,34px);margin:24px auto;max-width:1120px;scroll-margin-top:16px;font:inherit;text-align:left}
.sp-editor[hidden]{display:none!important}.sp-editor *,.sp-dialog *{box-sizing:border-box}.sp-editor button,.sp-editor input,.sp-editor select,.sp-dialog button{font:inherit;color:inherit}.sp-editor button,.sp-dialog button,.sp-download{border:1px solid var(--sp-line,#dce0e4);border-radius:8px;padding:8px 12px;background:#fff;cursor:pointer;font-size:.88rem;text-decoration:none;min-height:40px;color:var(--sp-ink,#232735)}.sp-editor button:hover,.sp-dialog button:hover{background:#f1f4f6}.sp-editor button:disabled,.sp-dialog button:disabled{opacity:.45;cursor:default}.sp-editor .sp-accent,.sp-editor .sp-download{background:var(--sp-accent);border-color:transparent;color:#fff;font-weight:650}.sp-editor .sp-download{display:inline-flex;align-items:center;line-height:1.4}.sp-editor button:focus-visible,.sp-editor a:focus-visible,.sp-editor input:focus-visible,.sp-editor select:focus-visible,.sp-dialog button:focus-visible{outline:3px solid #5377e0;outline-offset:2px}
.sp-title,.sp-pass,.sp-controls,.sp-toolbar,.sp-options,.sp-export,.sp-next,.sp-bill-actions,.sp-dialog header,.sp-dialog footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.sp-title,.sp-dialog header{justify-content:space-between}.sp-title h2{font-size:clamp(1.4rem,3vw,2rem);line-height:1.15;letter-spacing:-.04em;margin:0;color:inherit}.sp-title p,.sp-pass p{margin:4px 0;color:var(--sp-dim);font-size:.91rem}.sp-editor fieldset{border:0;margin:0;padding:0;min-width:0}.sp-toolbar{margin:22px 0 12px}.sp-editor label,.sp-editor small,.sp-dialog small{color:var(--sp-dim);font-size:.85rem}.sp-editor input:not([type=checkbox]),.sp-editor select{display:block;width:100%;min-width:0;margin-top:4px;border:1px solid #cdd2d8;border-radius:7px;min-height:40px;padding:6px 10px;background:#fff;color:var(--sp-ink);font-size:1rem}.sp-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(150px,100%),1fr));gap:12px}.sp-group,.sp-options,.sp-boundaries{margin:14px 0}.sp-options input,.sp-warning input{margin:0 5px 0 0;vertical-align:middle;accent-color:var(--sp-accent)}
.sp-section{padding:14px 0;border-top:1px solid var(--sp-line)}.sp-section h3,.sp-boundaries h3{margin:0 0 10px;font-size:1.05rem}.sp-section h3 small{font-weight:400;margin-left:6px}.sp-list{list-style:none;padding:0;margin:8px 0}.sp-row{border-top:1px solid var(--sp-line);padding:9px 0;display:flex;align-items:center;gap:12px}.sp-editor .sp-thumb{padding:3px;width:52px;height:62px;flex:none;overflow:hidden;display:grid;place-items:center;background:#edf0f2}.sp-thumb canvas{display:block;max-width:100%;max-height:54px;object-fit:contain}.sp-file{flex:1;min-width:75px}.sp-file b,.sp-file small,.sp-dialog small{display:block;overflow-wrap:anywhere}.sp-file b{font-size:.92rem}.sp-controls{gap:4px}.sp-controls button{width:36px;min-height:36px;padding:2px;font-weight:650;font-size:1.1rem}.sp-assignment{max-width:160px}.sp-boundaries{background:#f4f6f7;border-radius:10px;padding:16px}.sp-boundaries p{display:flex;justify-content:space-between;gap:12px;margin:6px 0}.sp-boundaries span{overflow-wrap:anywhere}.sp-boundaries small{white-space:nowrap}.sp-progress,.sp-errors,.sp-warning{font-size:.92rem;margin:12px 0 0}.sp-progress:empty{display:none}.sp-errors,.sp-warning{display:block;border-radius:8px;padding:12px;background:#fff4df;color:#694210}.sp-errors ul{margin:4px 0}.sp-errors li{overflow-wrap:anywhere}.sp-export,.sp-next{margin-top:12px}.sp-pass{padding:16px;background:#f3f5fa;border-radius:10px;margin:18px 0;justify-content:space-between}.sp-pass>div:first-child{flex:1 1 225px}.sp-pass details summary{cursor:pointer;font-size:.88rem;text-decoration:underline}.sp-pass details form{margin-top:8px}.sp-pass details form button{margin-top:6px}.sp-full{flex-basis:100%}.sp-recover code{overflow-wrap:anywhere}.sp-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.sp-dialog{width:min(850px,94vw);max-width:94vw;max-height:92dvh;border:0;border-radius:12px;padding:0;color:#202531;background:white}.sp-dialog::backdrop{background:#152033b0}.sp-dialog header,.sp-dialog footer{padding:12px 16px}.sp-dialog header>div{min-width:0;flex:1;overflow-wrap:anywhere}.sp-dialog footer{justify-content:center}.sp-preview{max-height:68dvh;min-height:95px;overflow:auto;background:#e9ecef;padding:10px;text-align:center}.sp-preview canvas{width:auto;height:auto;max-width:100%;display:block;margin:auto}.sp-preview p:empty{display:none}
@media(max-width:620px){.sp-editor{border-radius:12px}.sp-row{gap:8px;flex-wrap:wrap}.sp-file{flex-basis:calc(100% - 75px)}.sp-controls{margin-left:auto}.sp-controls button{width:40px;min-height:40px}.sp-editor .sp-assignment{max-width:calc(100% - 182px);flex:1}.sp-boundaries{padding:10px}.sp-pass{padding:12px}.sp-editor .sp-toolbar{gap:7px}}
