.sp-layout{display:grid;grid-template-columns:minmax(0,1fr) 300px;gap:19px;align-items:start}.sp-upload{grid-column:1}.sp-how{grid-column:2;grid-row:1/3}.sp-results{grid-column:1}.sp-drop{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:11px;border:2px dashed #c8bdeb;background:linear-gradient(145deg,#faf8ff,#f4f0ff);border-radius:16px;min-height:192px;text-align:center;cursor:pointer;color:#443b78;padding:18px}.sp-drop:hover{border-color:#8068e0;background:#f0ebff}.sp-drop span:not(.sp-symbol){font-size:12px;color:#77718d}.sp-symbol{font-size:35px;color:#7862d8}.sp-drop input{position:absolute;width:1px;height:1px;opacity:0}.sp-muted{font-size:12px;color:#78728e;line-height:1.6}.sp-main{width:100%;margin:12px 0}.sp-info{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0;color:#655c84;font-size:11px}.sp-info span{padding:7px 10px;background:#f3f0fa;border-radius:7px}.sp-progress{padding:13px 0}.sp-progress-track{height:10px;border-radius:20px;background:#e6e0f1;overflow:hidden}.sp-progress-track span{display:block;width:0;height:100%;background:linear-gradient(90deg,#745de5,#b79afe);transition:width .4s}.sp-progress p{font-size:12px;color:#766897}.sp-head{display:flex;justify-content:space-between;gap:15px;align-items:start;flex-wrap:wrap}.sp-head h2{margin-bottom:3px}.sp-tabs{display:flex;gap:5px;overflow-x:auto;margin:18px 0 13px;padding-bottom:4px}.sp-tab{border:1px solid #e2dcef;border-radius:10px;background:#f7f4ff;color:#665b8c;padding:10px 12px;cursor:pointer;white-space:nowrap;font-size:12px;font-weight:700}.sp-tab.active{color:white;background:#735ee1;border-color:#735ee1}.sp-results textarea{width:100%;min-height:330px;resize:vertical;border:1px solid #ddd5ed;border-radius:12px;padding:15px;font:14px/1.7 system-ui;color:#332b4d;box-sizing:border-box}.sp-results[hidden],.sp-progress[hidden]{display:none!important}.sp-how p{font-size:13px;line-height:1.75;color:#726a83}@media(max-width:820px){.sp-layout{display:flex;flex-direction:column}.sp-layout>*{width:100%;box-sizing:border-box}.sp-how{order:3}}.sp-source-tabs{display:flex;gap:5px;margin-bottom:15px;padding:5px;background:#f3effc;border:1px solid #e5def0;border-radius:12px;max-width:390px}
.sp-source-button{flex:1;padding:11px 13px;background:transparent;border:0;border-radius:9px;color:#635a84;cursor:pointer;font-size:13px;font-weight:750}
.sp-source-button.active{color:#fff;background:#7159df;box-shadow:0 3px 9px #4b329728}
.sp-source-button:focus-visible{outline:2px solid #7259e8;outline-offset:2px}
#speechLinkPanel[hidden],#speechFilePanel[hidden]{display:none!important}
.sp-url-label{display:block;color:#49405e;font-size:13px;font-weight:750;margin:12px 0 9px}
.sp-url-input{box-sizing:border-box;display:block;width:100%;border:1px solid #cec3e5;border-radius:11px;padding:15px 16px;background:#fff;color:#302748;font:14px/1.35 system-ui;outline-color:#755ee6}
.sp-url-input::placeholder{color:#9a92a9;font-size:12px}
#speechLinkPanel .sp-muted{margin:10px 0 0;line-height:1.65}

.sp-recognition-models{border-top:1px solid #e6e1ef;margin:13px 0;padding-top:13px;color:#514964}
.sp-recognition-models p{margin:5px 0;font-size:12px;line-height:1.6}
.sp-recognition-models strong{font-weight:750;color:#30284f}
.sp-recognition-models a{color:#6551bd;text-decoration:underline;text-underline-offset:2px}
.sp-recognition-models .sp-muted{font-size:11px;color:#766f83}

/* Personal exports, explicit per-document sharing and a single ZIP action. */
.sp-files-panel{margin:23px 0 8px;padding:19px;border:1px solid #e4def2;border-radius:15px;background:linear-gradient(135deg,#fefeff,#faf8ff)}
.sp-files-panel[hidden],.sp-share-dialog [hidden]{display:none!important}
.sp-files-heading h3{font-size:18px;color:#332b51;margin:0 0 6px}
.sp-files-heading p{font-size:12px;color:#76718c;line-height:1.65;margin:0 0 15px}
.sp-files-list{display:flex;flex-direction:column;gap:8px}
.sp-file-row,.sp-bundle-row{display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;background:#fff;border:1px solid #ebe6f4;border-radius:11px;padding:13px 14px}
.sp-file-identity,.sp-bundle-row>div:first-child{display:flex;flex:1;flex-direction:column;min-width:200px;gap:5px}
.sp-file-row strong,.sp-bundle-row strong{font-size:13px;color:#352e4c}
.sp-file-row small,.sp-bundle-row small{font-size:11px;color:#837b93;line-height:1.5}
.sp-files-actions{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.sp-files-actions select{max-width:135px;min-width:107px;padding:9px 7px;border:1px solid #ded6eb;background:#fff;border-radius:8px;font:600 11px system-ui;color:#51476c}
.sp-file-primary,.sp-file-secondary{display:inline-block;text-align:center;cursor:pointer;border:1px solid #e0d9ef;border-radius:8px;padding:9px 12px;font:700 11px system-ui;text-decoration:none;transition:background .14s,transform .14s}
.sp-file-primary{background:#705ce1;color:#fff;border-color:#705ce1}
.sp-file-primary:hover{background:#5e49c8;transform:translateY(-1px)}
.sp-file-secondary{background:#faf9fe;color:#624eb8}
.sp-file-secondary:hover{background:#ede8fc;transform:translateY(-1px)}
.sp-file-primary:disabled,.sp-file-secondary:disabled{opacity:.55;cursor:wait;transform:none}
.sp-file-missing{font-size:11px;color:#967a90}
.sp-bundle-row{margin-top:12px;padding:16px;background:#f0eafd;border-color:#d7c9f4}
.sp-bundle-row .sp-files-actions{flex:0 0 auto}
.sp-files-note{font-size:11px;color:#756e86;line-height:1.6;margin:13px 0 6px}
.sp-files-note a{color:#684fba;text-underline-offset:2px}
.sp-files-status{font-size:12px;color:#6350b2;margin:9px 0 0;line-height:1.5;min-height:17px}
.sp-files-status.error{color:#bb3b54}
.sp-share-dialog{width:min(460px,calc(100vw - 30px));max-height:90vh;overflow:auto;box-sizing:border-box;border:1px solid #e2daf0;border-radius:16px;background:#fff;padding:23px;box-shadow:0 26px 70px #1d163966;color:#33294c}
.sp-share-dialog::backdrop{background:#17122b9c}
.sp-share-head{display:flex;align-items:center;justify-content:space-between;gap:10px}
.sp-share-head h3{margin:0;font-size:18px;line-height:1.3}
.sp-share-head button{border:0;background:#f3effb;border-radius:8px;color:#6357a5;width:32px;height:32px;font-size:21px;cursor:pointer}
.sp-share-dialog label{display:block;font-size:12px;font-weight:750;margin:17px 0 7px;color:#55476c}
.sp-share-dialog input{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #dad1ec;border-radius:9px;font:13px system-ui;color:#312747}
.sp-share-dialog #speechShareCreate{margin:14px 0 4px;width:100%;font-size:13px;padding:12px}
.sp-share-dialog #speechShareUpgrade p{line-height:1.7;font-size:13px;color:#5a526c}
.sp-share-upgrade-link{margin:13px 0}
.sp-share-url-row{display:flex;gap:7px;align-items:center}
.sp-share-url-row input{min-width:0;flex:1;font-size:11px}
.sp-share-qr{margin-top:15px;display:flex;gap:12px;align-items:center}
.sp-share-qr canvas{width:120px;height:120px;max-width:33%;object-fit:contain;border:1px solid #e9e2f2;padding:5px;background:#fff;border-radius:10px}
.sp-share-qr p{font-size:12px;color:#746986;line-height:1.5}
@media(max-width:610px){.sp-files-panel{padding:12px}.sp-file-row,.sp-bundle-row{align-items:flex-start}.sp-file-identity,.sp-bundle-row>div:first-child{min-width:100%}.sp-files-actions{width:100%}.sp-files-actions .sp-file-primary,.sp-files-actions .sp-file-secondary{flex:1}.sp-files-actions select{max-width:none;flex:1}.sp-share-dialog{padding:17px}}

/* Structured reader: editorial typography, living table of contents. */
.sp-viewbar{display:flex;align-items:center;flex-wrap:wrap;gap:9px;padding:9px 0 12px}
.sp-viewbar strong{font-size:13px;color:#382c65}
.sp-viewbar span{font-size:11px;color:#887f9d;flex:1}
.sp-viewbar button{padding:7px 11px;font-size:11px}
.sp-view-contents{margin:0 0 17px;padding:17px 19px;border:1px solid #e2d9f2;border-radius:13px;background:linear-gradient(135deg,#f9f6ff,#fff);max-height:265px;overflow:auto}
.sp-view-contents[hidden],.sp-view-pretty[hidden],.sp-results textarea[hidden]{display:none!important}
.sp-view-contents>strong{display:block;font-size:15px;color:#3d3068;margin-bottom:9px}
.sp-view-contents ol{list-style:decimal;padding-left:21px;margin:0;display:flex;flex-direction:column;gap:8px}
.sp-view-contents li{font-size:12px;line-height:1.5}
.sp-view-contents li.nested{margin-left:12px}
.sp-view-contents a{color:#5940a7;font-weight:650;text-decoration:none;overflow-wrap:anywhere}
.sp-view-contents a:hover{text-decoration:underline}
.sp-view-pretty{min-height:350px;max-height:820px;overflow-y:auto;border:1px solid #e2dbea;border-radius:14px;padding:25px 30px;background:#fff;box-shadow:inset 0 2px 10px #584b8505;color:#302a47;line-height:1.74;font:14px/1.74 'DejaVu Sans',system-ui,sans-serif}
.sp-view-pretty .sp-pretty-kicker{font-size:10px;font-weight:800;letter-spacing:.1em;color:#8169d4;margin-bottom:16px}
.sp-view-pretty h1{font-size:clamp(19px,2.4vw,26px);line-height:1.35;letter-spacing:-.025em;color:#2c2351;margin:18px 0 17px;font-weight:800}
.sp-view-pretty h2{font-size:19px;line-height:1.4;font-weight:800;color:#6043af;margin:25px 0 10px;padding-bottom:8px;border-bottom:1px solid #e8e0f4;scroll-margin-top:22px}
.sp-view-pretty h3{font-size:16px;font-weight:800;color:#44366c;margin:22px 0 8px;scroll-margin-top:22px}
.sp-view-pretty h4{font-size:14px;font-weight:800;color:#554b72;margin:15px 0 7px;scroll-margin-top:22px}
.sp-view-pretty p{margin:0 0 11px}
.sp-view-pretty .sp-pretty-list{padding-left:24px;margin:8px 0 17px}
.sp-view-pretty li{margin:0 0 6px}
.sp-view-pretty strong{color:#30264b}
.sp-view-pretty em{color:#6c6182}
@media(max-width:680px){.sp-view-pretty{padding:16px 14px;max-height:72vh}.sp-view-contents{max-height:200px;padding:14px}}
