/* ConverTudoPDF Studio — one layout system, no external font dependencies. */
:root{--studio-ink:#172b35;--studio-muted:#667981;--studio-line:#dce4e8;--studio-bg:#edf1f4;--studio-accent:#176c67;--studio-soft:#e7f3f0;--studio-focus:#318e9a}
body{font-family:ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif}
.button{border-radius:10px;letter-spacing:.05px}.button.primary{background:#176c67;box-shadow:0 3px 8px #173d3512}.button.primary:hover{background:#11544f}
.header{height:78px}.hero h1{letter-spacing:-2.4px}.tool-card{border-radius:16px;box-shadow:0 2px 5px #102f2910;transition:transform .18s,box-shadow .18s}.tool-card:hover{box-shadow:0 12px 30px #193e3515;transform:translateY(-3px)}
.business-page{background:#f8fafb}.price-card,.account-card{border-color:var(--studio-line);box-shadow:0 8px 26px #233f3510}.price-card.featured{background:#f0f8f5;border-color:#176c67}
body.tool-screen{overflow:hidden;color:var(--studio-ink)}
.tool-screen #home,.tool-screen>.header,.tool-screen>.business-page,.tool-screen>.sponsor-banner{display:none!important}
.workspace.workspace-page,.workspace.editor-workspace.workspace-page{position:fixed;inset:0;margin:0;width:100%;max-width:none;height:100dvh;max-height:none;border:0;border-radius:0;padding:0;background:var(--studio-bg);color:var(--studio-ink)}
.workspace-page[open]{display:flex;flex-direction:column}
.workspace-page .workspace-head{flex:none;display:flex;justify-content:space-between;gap:20px;align-items:center;padding:12px 24px;background:#fff;border-bottom:1px solid var(--studio-line);min-height:78px}
.workspace-page .workspace-title{min-width:0;gap:14px}.workspace-page #workspace-icon{width:42px;height:46px;display:grid;place-items:center;border-radius:12px;background:var(--studio-soft);color:var(--studio-accent);flex:none}
.workspace-page .workspace-title h2{margin:2px 0;font-size:16px;font-weight:650;line-height:1.35;letter-spacing:-.25px;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.workspace-page .workspace-title p{font-size:11px;color:var(--studio-muted);margin:3px 0 0}
.studio-product{display:block;font-size:9px;font-weight:750;letter-spacing:1.1px;color:var(--studio-accent)}
.studio-header-actions{display:flex;align-items:center;gap:10px;flex:none}.studio-header-actions button{font-size:12px;font-weight:600;white-space:nowrap;border-radius:8px;min-height:39px;padding:9px 13px}
.studio-header-actions #run-tool{background:var(--studio-accent);color:#fff;box-shadow:0 3px 9px #133d3320;gap:16px;padding:11px 19px}.studio-header-actions #run-tool:hover{background:#11544f}.studio-header-actions #run-tool:disabled{opacity:.45}
.workspace-page #workspace-close{width:auto;height:auto;font-size:12px;color:#536873;border:1px solid var(--studio-line);border-radius:8px;line-height:1.4}.studio-change-file{color:#526873}.studio-font-check{color:var(--studio-accent);background:var(--studio-soft)}
.workspace:not(.editor-workspace) .studio-font-check,.workspace:not(.editor-workspace) .studio-change-file{display:none}
.workspace-page .workspace-body{flex:1;overflow:auto;min-height:0;padding:24px 32px}
.workspace-page.editor-workspace .workspace-body{padding:0;display:flex;flex-direction:column;overflow:auto}
.workspace-page .workspace-footer{flex:none;display:flex;align-items:center;gap:12px;justify-content:space-between;padding:10px 22px;background:white;border-top:1px solid var(--studio-line);min-height:48px}
.workspace-page .workspace-footer:has(.editor-extra){display:grid;grid-template-columns:minmax(100px,1fr) auto}
.studio-status{color:var(--studio-muted);font-size:11px;line-height:1.5;overflow:hidden;text-overflow:ellipsis}.studio-status[data-kind=error]{color:#a14032}.studio-status[data-kind=success]{color:#21735e}
.workspace-page .private-note{font-size:11px;color:var(--studio-muted)}.workspace-footer:has(.editor-extra) .private-note{display:none}
.workspace-page .dropzone{width:min(780px,calc(100% - 48px));margin:48px auto;padding:52px 36px;border:1.5px dashed #9eb8b8;border-radius:20px;background:#fff;box-shadow:0 12px 45px #223b4510}
.workspace-page .dropzone h3{font-size:24px;letter-spacing:-.6px;margin-top:20px}.workspace-page .dropzone p{color:var(--studio-muted);font-size:14px}.workspace-page .dropzone small{color:#7b8a91;font-size:11px}
.workspace-page .upload-illustration{width:62px;height:62px;margin:auto;background:var(--studio-soft);color:var(--studio-accent);font-size:28px;border-radius:18px;display:grid;place-items:center}
.workspace-page:has(.editor-layout) .dropzone,.workspace-page:has(.editor-layout) #selected-files,.workspace-page:has(.editor-layout) #options:empty{display:none}
.workspace-page .document-area{padding:0;flex:1;min-height:0;display:flex;flex-direction:column}.workspace-page .document-area[hidden]{display:none}
.workspace-page #options:not(:empty){padding:16px 24px;background:#fff}.workspace-page #selected-files{max-width:900px;margin:0 auto;width:100%}
.editor-toolbar{flex:none;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:9px 18px 9px 86px;background:#fff;border-bottom:1px solid var(--studio-line);gap:8px;z-index:4}
.editor-tool-commands,.editor-tool-settings{display:flex;align-items:center;gap:7px;flex-wrap:wrap}
.editor-tool-commands{flex:none}.editor-tool-settings{flex:1;justify-content:flex-end;min-height:32px}
.editor-toolbar button,.editor-toolbar select{display:inline-flex;align-items:center;justify-content:center;gap:7px;border:1px solid transparent;border-radius:7px;background:transparent;font-size:11px;color:#536873;padding:8px 10px;min-height:34px}
.editor-toolbar button:hover,.editor-toolbar select:hover{background:#eef3f5;color:#173d42}.editor-tool-settings>button{border-color:var(--studio-line);background:#fff}.editor-tool-settings>button:first-child{color:var(--studio-accent);background:var(--studio-soft);border-color:#d0e6df}
.editor-tool-settings .editor-notice{font-size:10px;color:#829198;max-width:250px}.editor-tool-settings input:not([type=color]){border:1px solid var(--studio-line);background:#f8fafb;padding:8px 11px;border-radius:7px;font-size:12px;max-width:220px;min-width:100px}
.editor-tool-settings input[type=color]{width:34px;height:32px;border:1px solid var(--studio-line);background:white;border-radius:6px;padding:3px}
.studio-page-picker{max-width:155px;border:1px solid var(--studio-line)!important;background:#f8fafb!important}.editor-tool-settings .stamp-preset{font-size:10px;font-weight:750;letter-spacing:.25px;border-color:currentColor;padding:7px 10px}
.editor-layout{display:grid;grid-template-columns:72px 150px minmax(260px,1fr) 288px;gap:0;align-items:stretch;flex:1;min-height:420px}
.studio-tool-rail{background:#fff;border-right:1px solid var(--studio-line);display:flex;flex-direction:column;align-items:center;gap:7px;padding:15px 6px}
.studio-tool-rail button{width:60px;min-height:65px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:7px;padding:8px 3px;border-radius:10px;border:1px solid transparent;font-size:9px;font-weight:600;line-height:1.2;color:#70838b;background:white}
.studio-tool-rail button.active{background:var(--studio-soft);color:var(--studio-accent);border-color:#d4e9e1}.studio-tool-rail button:hover{background:#f0f5f5;color:#225961}.studio-tool-rail svg{width:22px;height:22px}
.editor-pages{background:#f6f8fa;border-right:1px solid var(--studio-line);padding:17px 12px;max-height:calc(100dvh - 195px);overflow:auto;min-width:0}
.editor-pages h3{font-size:11px;font-weight:700;margin:0 0 6px;color:#415a65}.editor-pages>.editor-notice{font-size:9px;line-height:1.5;color:#8999a0;margin:0 0 16px}
.editor-page-tile{position:relative;border:1px solid #dbe3e8;background:white;padding:7px;border-radius:9px;margin-bottom:14px;transition:box-shadow .15s,border-color .15s}.editor-page-tile.active{border-color:#438e93;box-shadow:0 0 0 2px #d4e8e7}
.editor-page-open{width:100%;padding:0;display:block;text-align:center}.editor-page-open img{display:block;width:100%;height:132px;object-fit:contain;margin:4px auto 10px;box-shadow:0 2px 7px #213a4210}.editor-page-open span{font-size:9px;font-weight:600;color:#687e89}
.editor-page-actions{display:flex;justify-content:center;gap:3px;margin-top:8px}.editor-page-actions button{font-size:10px;padding:5px;background:#f0f4f6;color:#5b707c;border-radius:4px;min-width:20px}.editor-page-actions button:disabled{opacity:.25;cursor:not-allowed}
.editor-frame{min-width:0;overflow:auto;min-height:420px;max-height:calc(100dvh - 195px);padding:28px 24px 45px;background:var(--studio-bg);scrollbar-gutter:stable}
.editor-paper{position:relative;margin:0 auto;flex:none;max-width:none;background:white;box-shadow:0 8px 30px #2539431c,0 0 0 1px #d3dce2}
.editor-paper>img{display:block;width:100%;height:auto}.editor-paper>svg{position:absolute;inset:0;width:100%;height:100%;touch-action:none}
.editor-sidebar{min-width:0;background:#fff;border-left:1px solid var(--studio-line);padding:20px 20px 28px;max-height:calc(100dvh - 195px);overflow:auto}
.editor-sidebar>h3{margin:0 0 17px;font-size:12px;color:#29434f;font-weight:700;letter-spacing:.1px}.editor-sidebar>h3:not(:first-child){margin-top:26px;padding-top:18px;border-top:1px solid #edf1f3}
.studio-property-form{display:grid;grid-template-columns:1fr 1fr;gap:13px 12px}.studio-property-form>p,.studio-property-form>.studio-wide,.studio-property-form>button,.studio-property-form>details{grid-column:1/-1}
.editor-sidebar label{display:grid;gap:7px;font-size:10px;font-weight:600;color:#72848d;margin:0;min-width:0}.editor-sidebar input,.editor-sidebar select,.editor-sidebar textarea{min-width:0;width:100%;font-size:12px;font-weight:400;color:#233f4c;background:#f8fafb;border:1px solid #dce5e9;border-radius:7px;padding:10px;min-height:38px}
.editor-sidebar input[type=color]{padding:4px;width:100%;height:39px}.editor-sidebar input[type=checkbox]{width:15px;min-height:15px}.editor-sidebar textarea{min-height:72px;resize:vertical}
.editor-sidebar button{font-size:11px;border:1px solid var(--studio-line);border-radius:7px;background:#fff;padding:9px 11px;color:#4c6775;cursor:pointer;line-height:1.4}
.studio-property-form>button{background:var(--studio-accent);border-color:var(--studio-accent);color:white;font-weight:650;padding:11px;margin-top:4px}.editor-sidebar button:hover{filter:brightness(.97)}
.studio-advanced{border:1px solid #e3e9ed;border-radius:9px;padding:11px}.studio-advanced summary{font-size:11px;color:#71828a;font-weight:600;cursor:pointer}.studio-advanced[open]{display:grid;grid-template-columns:1fr 1fr;gap:11px}.studio-advanced summary{grid-column:1/-1}
.editor-actions{display:flex;flex-wrap:wrap;gap:6px;margin:16px 0}.editor-actions button:first-child{color:#9d4c41}.editor-notice{font-size:10px;font-weight:400;line-height:1.65;color:#87969c;margin:0}
.layer-list{display:grid;gap:5px;max-height:160px;overflow:auto}.layer-list button{display:block;text-align:left;background:#f8fafb;border-color:#e5ebee;padding:9px 10px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}.layer-list button.active{color:var(--studio-accent);border-color:#a3cbc6;background:#edf6f2}
.editor-sidebar>details:not(.studio-advanced){margin-top:20px;border-top:1px solid #edf1f3;padding-top:16px}.editor-sidebar>details summary{font-size:11px;color:#73858d;cursor:pointer}.editor-sidebar>details label{margin-top:13px}.editor-sidebar>.editor-notice:last-child{margin-top:16px}
.studio-font-issue{padding:13px;border:1px solid #efd6ae;border-radius:10px;background:#fffbf2;color:#805b2a;margin:0 0 16px}.studio-font-issue strong{display:block;font-size:11px}.studio-font-issue p{font-size:10px;line-height:1.6;margin:6px 0 10px}.studio-font-issue button{font-size:10px;margin:4px 4px 0 0;border-color:#dec49f;background:#fff9ed;color:#805b2a}
.editor-extra{display:flex;gap:9px;align-items:center;justify-content:flex-end;flex-wrap:wrap;min-width:0}.editor-extra select,.editor-extra button{font-size:10px;min-height:31px;border:1px solid var(--studio-line);border-radius:6px;background:white;padding:6px 9px;color:#5c727e}.editor-extra button{color:var(--studio-accent);font-weight:650;background:var(--studio-soft);border-color:#d4e8e1}
.editor-search{border:1px solid var(--studio-line);border-radius:6px;background:#f8fafb;font-size:10px;padding:8px 10px;width:190px;min-width:80px}.editor-workspace .editor-bottom{display:none}
.source-span{fill:transparent;stroke:#6da2bd;stroke-width:.55;stroke-dasharray:3 3;cursor:text}.source-span:hover{fill:#2596b112;stroke:#167b94;stroke-width:1}.editor-selection{fill:none;stroke:#2584a0;stroke-width:1;stroke-dasharray:4 2;pointer-events:none}
.inline-text-input{position:absolute;z-index:5;padding:0 2px;border:1px dashed #288cac;border-radius:0;outline:none!important;background:#fffffff0;line-height:1.25;resize:none;overflow:auto;box-shadow:0 0 0 1px #ffffff80;min-width:0;min-height:0;touch-action:auto}
.inline-actions{position:absolute;z-index:8;display:flex;gap:2px;background:#fff;border:1px solid #d6e2e9;border-radius:8px;box-shadow:0 5px 18px #26454a20;transform:translateY(9px);padding:4px;white-space:nowrap}.inline-actions button{font-size:10px;padding:7px 10px;color:#446674;border-radius:5px}.inline-actions button:hover{background:#f1f5f5}
.inline-resize{position:absolute;z-index:10;width:13px;height:13px;border:2px solid white;background:#288cac;border-radius:50%;transform:translate(-50%,-50%);cursor:se-resize;touch-action:none}
.editor-layout.hide-pages{grid-template-columns:72px minmax(260px,1fr) 288px}.editor-layout.hide-pages .editor-pages{display:none}.editor-layout.hide-properties{grid-template-columns:72px 150px minmax(260px,1fr)}.editor-layout.hide-properties .editor-sidebar{display:none}.editor-layout.hide-pages.hide-properties{grid-template-columns:72px minmax(260px,1fr)}
.workspace-page #workspace-error{margin:12px 24px;flex:none;font-size:12px;line-height:1.5}.workspace-page .job-result{flex:none;max-width:900px;margin:22px auto;padding:28px;border:1px solid #cee4db;border-radius:16px;background:#f6fcf9}.workspace-page .job-result a{min-height:42px}
.workspace-page button:focus-visible,.workspace-page input:focus-visible,.workspace-page select:focus-visible{outline:2px solid var(--studio-focus);outline-offset:3px}
@media(min-width:1000px){.editor-page-actions{opacity:.15;transition:opacity .15s}.editor-page-tile:hover .editor-page-actions,.editor-page-tile:focus-within .editor-page-actions{opacity:1}}
@media(max-width:1180px){.editor-layout{grid-template-columns:64px 120px minmax(240px,1fr) 250px}.editor-layout.hide-pages{grid-template-columns:64px minmax(240px,1fr) 250px}.editor-layout.hide-properties{grid-template-columns:64px 120px minmax(240px,1fr)}.editor-layout.hide-pages.hide-properties{grid-template-columns:64px minmax(240px,1fr)}.studio-tool-rail button{width:52px}.editor-sidebar{padding:16px}.editor-toolbar{padding-left:76px}.editor-tool-settings .editor-notice{display:none}.editor-page-open img{height:110px}.editor-search{width:150px}.studio-font-check{display:none}}
@media(max-width:900px){.editor-toolbar{padding:8px 12px}.editor-tool-commands{flex:1}.editor-tool-settings{justify-content:flex-start;width:100%}.editor-layout{grid-template-columns:64px minmax(220px,1fr) 250px}.editor-pages{display:none}.editor-layout.hide-properties{grid-template-columns:64px minmax(220px,1fr)}.editor-layout.hide-pages{grid-template-columns:64px minmax(220px,1fr) 250px}.editor-layout.hide-pages.hide-properties{grid-template-columns:64px minmax(220px,1fr)}.editor-frame{padding:20px 16px}.studio-change-file{display:none}.workspace-page .workspace-head{padding:11px 16px;gap:10px}.studio-header-actions{gap:6px}.studio-header-actions #run-tool{padding:9px 13px}.workspace-page .workspace-title h2{max-width:38vw}.workspace-page .workspace-footer:has(.editor-extra){grid-template-columns:1fr;gap:5px;padding:8px 12px}.editor-extra{justify-content:space-between}.studio-status{font-size:10px}.editor-layout:not(.hide-pages) .editor-pages{display:none}}
@media(max-width:650px){.workspace-page .workspace-head{min-height:66px;padding:9px 12px}.workspace-page #workspace-icon{width:32px;height:38px;border-radius:9px}.workspace-page .workspace-title{gap:9px}.studio-product{font-size:8px;letter-spacing:.7px}.workspace-page .workspace-title h2{font-size:12px;max-width:42vw}.workspace-page .workspace-title p{display:none}.studio-header-actions #workspace-close{font-size:0;padding:9px;min-width:35px}.studio-header-actions #workspace-close:before{content:'←';font-size:17px}.studio-header-actions #run-tool{font-size:11px;padding:9px 11px;gap:7px;min-height:37px}.studio-header-actions #run-tool span{display:none}
 .editor-layout,.editor-layout.hide-pages,.editor-layout.hide-properties,.editor-layout.hide-pages.hide-properties{display:grid;grid-template-columns:minmax(0,1fr);min-height:0}.studio-tool-rail{grid-row:1;flex-direction:row;justify-content:flex-start;gap:5px;padding:7px 10px;overflow:auto;border-right:0;border-bottom:1px solid var(--studio-line)}.studio-tool-rail button{min-width:63px;width:auto;min-height:51px;flex:none;font-size:9px;gap:5px;border-radius:8px}.studio-tool-rail svg{height:18px;width:18px}
 .editor-frame{grid-row:2;min-height:320px;height:52dvh;max-height:none;padding:18px 12px 32px}.editor-sidebar{grid-row:3;border:0;border-top:1px solid var(--studio-line);padding:17px;max-height:45dvh}.editor-sidebar:not(.has-selection):not(.needs-attention){display:none}.editor-pages{display:none!important}.editor-layout.hide-properties .editor-sidebar{display:none}.editor-layout.hide-properties .editor-frame{height:60dvh}.editor-tool-commands{gap:2px}.editor-toolbar{padding:6px 10px;gap:5px}.editor-toolbar button{font-size:10px;padding:6px 7px;min-height:32px}.editor-tool-commands button svg{width:15px;height:15px}.editor-tool-commands button:nth-child(2),.editor-tool-commands button:nth-child(3){font-size:0;gap:0;padding:8px}.studio-page-picker{margin-left:auto;max-width:110px;font-size:10px!important}.editor-tool-settings{flex-wrap:nowrap;overflow:auto;gap:6px;max-width:100%;padding-bottom:2px}.editor-tool-settings>*{flex:none}.editor-tool-settings input:not([type=color]){width:150px}.editor-tool-settings .stamp-preset{font-size:9px}.editor-search{width:120px;font-size:10px}.editor-extra{gap:6px}.editor-extra button,.editor-extra select{font-size:10px;padding:6px}.workspace-page .workspace-footer{min-height:42px}.studio-status{max-height:30px;line-height:1.4}.workspace-page .workspace-body{padding:15px}.workspace-page .dropzone{width:calc(100% - 24px);padding:38px 20px;margin:24px auto}.workspace-page .dropzone h3{font-size:21px}.inline-resize{width:22px;height:22px;border-width:3px}.inline-actions button{font-size:11px;min-height:36px}.workspace-page .job-result{margin:15px;padding:22px}.editor-sidebar label{font-size:11px}.editor-sidebar input,.editor-sidebar select{font-size:13px;min-height:42px}}
.editor-toolbar{border:0;border-bottom:1px solid var(--studio-line);border-radius:0}.editor-frame{border:0;text-align:left}.editor-paper{display:block}.studio-property-form .studio-advanced label{margin-top:10px}
.studio-empty-panel{padding:22px 12px;border:1px dashed #dae5e8;background:#fbfcfd;border-radius:12px;text-align:center;color:#789099;margin:6px 0 28px}.studio-empty-panel svg{margin:0 auto 14px;width:28px;height:28px;color:#75a2a3}.studio-empty-panel strong{display:block;font-size:12px;color:#4e6c78;margin-bottom:8px}.studio-empty-panel p{font-size:11px;line-height:1.75;margin:0}.editor-toolbar .editor-tool-settings input.editor-text{width:190px;height:auto;padding:8px 10px;border:1px solid var(--studio-line);background:#f8fafb}
@media(max-width:900px) and (min-width:651px){.editor-layout.show-pages{grid-template-columns:64px 120px minmax(220px,1fr)}.editor-layout.show-pages .editor-pages{display:block!important}.editor-layout.show-pages .editor-sidebar{display:none}.editor-layout.show-properties .editor-sidebar{display:block}}
@media(max-width:650px){.editor-layout.show-pages{grid-template-columns:minmax(0,1fr)}.editor-layout.show-pages .editor-pages{grid-row:2;display:flex!important;gap:10px;max-height:185px;overflow:auto;align-items:start;padding:10px;border-right:0;border-bottom:1px solid var(--studio-line)}.editor-layout.show-pages .editor-pages>h3,.editor-layout.show-pages .editor-pages>.editor-notice{display:none}.editor-layout.show-pages .editor-page-tile{min-width:100px;width:100px;margin:0;flex:none}.editor-layout.show-pages .editor-page-open img{height:88px}.editor-layout.show-pages .editor-frame{grid-row:3;height:45dvh}.editor-layout.show-pages .editor-sidebar{display:none}.editor-layout.show-properties .editor-sidebar{display:block}}
/* V6: viewport height, immediate controls and stable inline text focus. */
.workspace-page .workspace-body{max-height:none!important;height:auto;flex:1 1 0;min-height:0}.workspace-page.editor-workspace .workspace-body{overflow:hidden}.workspace-page.editor-workspace .document-area{min-height:0;max-height:none}.workspace-page.editor-workspace .editor-layout{min-height:0;grid-template-rows:minmax(0,1fr)}.workspace-page.editor-workspace .editor-frame,.workspace-page.editor-workspace .editor-sidebar,.workspace-page.editor-workspace .editor-pages{min-height:0;max-height:none;height:auto}.studio-tool-rail{min-height:0;overflow:auto}.workspace-page .workspace-footer{padding:7px 18px;min-height:42px}.editor-toolbar [data-editor-mode].active{background:#d6eee6;border-color:#78b9a5;color:#125f50;box-shadow:inset 0 0 0 1px #78b9a550;font-weight:700}.stamp-preset.active{background:#edf6ef!important;box-shadow:0 0 0 2px currentColor}.editor-tool-settings input[type=color]{cursor:pointer}.inline-text-input{padding:0;border:0;outline:1px solid #288cac!important;outline-offset:1px;line-height:1.15;overflow:hidden;box-shadow:none}.inline-text-input::-webkit-scrollbar{display:none}.studio-stamp-drag-preview{position:fixed;left:-1000px;top:-1000px;width:190px;height:58px;border:2px solid currentColor;border-radius:3px;background:#fff;display:grid;place-items:center;font:bold 22px Arial;pointer-events:none}.workspace-page .job-result{max-height:32dvh;overflow:auto;flex:0 1 auto;margin:10px 22px}.editor-overlay[data-mode=select],#editor-overlay[data-mode=select]{cursor:default}.workspace-page #workspace-error{margin:6px 18px;padding:10px 14px;max-height:70px;overflow:auto}
@media(max-width:650px){.workspace-page.editor-workspace .editor-layout{grid-template-rows:auto minmax(180px,1fr) auto}.workspace-page.editor-workspace .editor-frame{height:auto;min-height:180px}.workspace-page.editor-workspace .editor-sidebar{max-height:32dvh}.workspace-page.editor-workspace .editor-pages{max-height:170px}.workspace-page .workspace-footer{padding:6px 10px}.workspace-page .studio-status{max-height:28px}.editor-layout.show-pages{grid-template-rows:auto auto minmax(180px,1fr)}.workspace-page.editor-workspace .editor-layout.show-pages .editor-frame{height:auto}.inline-resize{width:22px;height:22px}}

/* V8: results never replace the editing area with a tall card. */
.workspace-page.editor-workspace #job-result:not([hidden]){display:flex;align-items:center;gap:10px;flex-wrap:wrap;flex:0 0 auto;max-width:none;width:auto;max-height:125px;overflow:auto;margin:8px 16px;padding:12px 15px;border-radius:10px;text-align:left}
.workspace-page.editor-workspace #job-result h3{font-size:14px;margin:0;flex:1 1 180px}.workspace-page.editor-workspace #job-result p{display:none}.workspace-page.editor-workspace #job-result .result-icon{width:28px;height:28px;min-width:28px;font-size:18px;margin:0}.workspace-page.editor-workspace #job-result .button{min-height:35px;padding:7px 13px;font-size:12px;margin:0;gap:10px}.studio-result-dismiss{font-size:11px;padding:8px;color:var(--studio-accent);white-space:nowrap}.workspace-page.editor-workspace #job-result .spinner{width:24px;height:24px;margin:0}.workspace-page.editor-workspace #job-result .progress-line{width:90px;margin:0}
@media(max-width:650px){.workspace-page.editor-workspace #job-result:not([hidden]){margin:5px 8px;padding:9px;gap:7px;max-height:125px}.workspace-page.editor-workspace #job-result .result-icon{display:none}.workspace-page.editor-workspace #job-result h3{font-size:12px;flex-basis:100%}.workspace-page.editor-workspace #job-result .button{font-size:11px}}
