/* Script workspace adaptation of design-system/DESIGN.md. Original fields/actions and black month surface remain authoritative. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] :is(.v2-stage,.v2-main,.v2-header,#appView){background:var(--v2-canvas,#f5f5f5)!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #v2Header.v2-header h1{font-size:18px!important;font-weight:600!important;line-height:28px!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #v2Header.v2-header button{background:transparent!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app:is([data-v2-route="script-editor"],[data-v2-route="script-table"]) :is(.v2-stage,.v2-main,.v2-header,#appView){background:var(--v2-canvas,#f5f5f5)!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app:is([data-v2-route="script-editor"],[data-v2-route="script-table"]) #v2Header.v2-header h1{font-size:18px!important;font-weight:600!important;line-height:28px!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app:is([data-v2-route="script-editor"],[data-v2-route="script-table"]) #v2Header.v2-header button{background:transparent!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .scripts-library{gap:12px!important;padding:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .scripts-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;min-height:44px!important;margin:0!important;padding:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .scripts-head h2{font-size:18px!important;line-height:28px!important;font-weight:600!important;margin:0!important;padding:0!important;color:#171717!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .scripts-head p{font-size:12px!important;line-height:20px!important;color:#737373!important;margin:4px 0 0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-add-button{flex:none!important;width:auto!important;border:0!important;border-radius:999px!important;background:#18191c!important;color:#fff!important;box-shadow:none!important;display:flex!important;align-items:center!important;justify-content:center!important;gap:6px!important;position:relative!important;box-sizing:border-box;min-width:44px!important;min-height:var(--mf-control-main)!important;height:auto!important;padding:0 12px!important;line-height:20px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-add-button::after{content:"";position:absolute;inset:calc((var(--mf-control-main) - var(--mf-control-hit))/2) 0;border-radius:inherit;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-category-row{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto;scrollbar-width:none;gap:4px!important;margin:0!important;padding:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-category-row>button{flex:none!important;min-height:44px!important;padding:10px 16px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#61666b!important;font-size:13px!important;line-height:24px!important;font-weight:400!important;box-shadow:none!important;transition:none!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-category-row>button.active{background:#18191c!important;color:#fff!important;font-weight:500!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-library-list{display:grid!important;grid-template-columns:minmax(0,1fr)!important;gap:16px!important;margin:0!important;padding:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-library-card.ui-library-item{padding:0!important;margin:0!important;min-width:0!important;overflow:hidden!important;border:0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 12px #00000006!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-library-main{display:block!important;width:100%!important;min-width:0!important;padding:20px!important;text-align:left!important;border:0!important;border-radius:0!important;background:transparent!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-kind{display:inline-flex!important;margin:0 0 10px!important;border:0!important;border-radius:999px!important;background:#f5f5f6!important;color:#61666b!important;font-size:11px!important;font-weight:400!important;align-items:center!important;min-height:var(--mf-control-status)!important;padding:0 8px!important;line-height:18px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-library-main>strong{display:block!important;margin:0!important;font-size:18px!important;line-height:28px!important;font-weight:600!important;color:#171717!important;overflow-wrap:anywhere!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-library-main>p{display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;overflow:hidden!important;white-space:normal!important;margin:10px 0 0!important;font-size:14px!important;line-height:24px!important;color:#737373!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-card-meta{display:flex!important;align-items:center!important;justify-content:space-between!important;flex-wrap:wrap!important;gap:4px 12px!important;margin:16px 0 0!important;padding:0!important;border:0!important;color:#868a91!important;font-size:11px!important;line-height:20px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-card-meta b{font:inherit!important;color:#292d2d!important;white-space:nowrap!important;font-size:12px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-final-entry{position:relative!important;isolation:isolate;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;width:calc(100% - 40px)!important;margin:0 20px 16px!important;padding:0 14px!important;height:44px!important;min-height:44px!important;border:0!important;border-radius:999px!important;background:transparent!important;color:#fff!important;box-shadow:none!important;white-space:nowrap!important;}
/* 36px visible pill inside the existing 44px touch target. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-final-entry::before{content:"";position:absolute;inset:4px 0;border-radius:inherit;background:#18191c;pointer-events:none;z-index:-1;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-final-entry>span{display:flex!important;align-items:center!important;gap:8px!important;min-width:0;white-space:nowrap!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-final-entry :is(b,small){display:inline!important;margin:0!important;font-size:12px!important;line-height:20px!important;font-weight:400!important;color:#fff!important;white-space:nowrap!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-final-entry b{font-weight:600!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-final-entry svg{flex:none;width:16px!important;height:16px!important;color:#fff!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .empty-state{margin:0!important;padding:32px 20px!important;border:0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 12px #00000006!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .empty-state h3{font-size:17px!important;line-height:28px!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .empty-state p{font-size:14px!important;line-height:24px!important;color:#61666b!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-editor-page{gap:16px!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-editor-nav{min-height:44px!important;margin:0!important;padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important;display:flex!important;position:static!important;gap:0!important;flex:none!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-editor-nav>div{display:flex!important;gap:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-editor-nav>div button{min-height:44px!important;padding:10px 8px!important;border:0!important;border-radius:999px!important;background:transparent!important;font-size:12px!important;font-weight:500!important;box-shadow:none!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-document{padding:0!important;margin:0!important;display:flex!important;flex-direction:column!important;gap:16px!important;background:transparent!important;border:0!important;box-shadow:none!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view :is(.script-title-card,.script-body-card){padding:20px!important;border:0!important;border-radius:16px!important;background:#fff!important;box-shadow:0 3px 12px #00000006!important;margin:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-head{display:flex!important;align-items:flex-start!important;justify-content:space-between!important;gap:2px!important;margin:0!important;flex-direction:column!important;min-width:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-head :is(label,.save-state){font-size:11px!important;line-height:18px!important;font-weight:400!important;color:#737373!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view input.script-title{font-size:22px!important;line-height:34px!important;min-height:44px!important;margin:16px 0 20px!important;padding:0!important;border:0!important;border-radius:8px!important;background:transparent!important;box-shadow:none!important;color:#0f1115!important;font-weight:600!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view input.script-title:focus{background:#f5f5f5!important;outline:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-actions{gap:8px!important;margin:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-actions button{min-height:var(--mf-control-wide)!important;padding:10px 8px!important;border:1px solid #e9e9ec!important;border-radius:999px!important;background:#fff!important;color:#292d2d!important;font-size:13px!important;font-weight:500!important;line-height:22px!important;box-shadow:none!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-actions button.is-primary{background:#18191c!important;color:#fff!important;border-color:transparent!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-origin-note{margin:0!important;padding:0 20px!important;color:#868a91!important;font-size:12px!important;line-height:20px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-body-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 16px!important;padding:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-body-head h3{font-size:18px!important;line-height:28px!important;font-weight:600!important;margin:0!important;color:#171717!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-body-head>span{font-size:12px!important;line-height:20px!important;color:#868a91!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part{margin:0!important;padding:20px 0!important;border:0!important;border-top:1px solid #eeeef0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part:first-child{padding-top:0!important;border-top:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part:last-child{padding-bottom:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head{display:grid!important;grid-template-columns:auto minmax(0,1fr) auto!important;gap:4px 8px!important;align-items:center!important;margin:0 0 12px!important;padding:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head>h4{grid-column:1!important;grid-row:1!important;margin:0!important;font-size:15px!important;line-height:24px!important;font-weight:600!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head>span{grid-column:2!important;grid-row:1!important;font-size:11px!important;line-height:20px!important;color:#868a91!important;white-space:normal!important;text-align:left!important;justify-self:start!important;margin:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head>button{grid-column:3!important;grid-row:1!important;min-height:44px!important;padding:10px 12px!important;border:0!important;border-radius:var(--mf-pill-radius-s)!important;background:#f5f5f5!important;color:#202121!important;font-size:13px!important;line-height:24px!important;font-weight:500!important;box-shadow:none!important;min-width:56px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-block{font-size:16px!important;line-height:29px!important;padding:0!important;margin:0!important;border:0!important;box-shadow:none!important;overflow-wrap:anywhere!important;color:#292d2d!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-block:focus{background:transparent!important;border-radius:8px!important;outline:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-confirm-footer{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:8px!important;margin:0!important;padding:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-confirm-footer>button{min-width:0!important;min-height:44px!important;padding:10px 4px!important;border:1px solid #e2e2e2!important;border-radius:12px!important;background:#f5f5f5!important;color:#202121!important;font-size:12px!important;line-height:20px!important;font-weight:500!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog :is(.workspace-sheet-header,h2){margin:0!important;font-size:17px!important;line-height:28px!important;font-weight:600!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet>button[data-action]{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:4px!important;width:100%!important;min-height:68px!important;margin:0!important;padding:12px 0!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#0f1115!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog button>b{font-size:15px!important;line-height:26px!important;font-weight:500!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog button>span{font-size:12px!important;line-height:20px!important;color:#868a91!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"] :is(.workspace-sheet-header,h2){margin:0!important;font-size:17px!important;line-height:28px!important;font-weight:600!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"] >button[data-action]{display:flex!important;flex-direction:column!important;align-items:flex-start!important;justify-content:center!important;gap:4px!important;width:100%!important;min-height:68px!important;margin:0!important;padding:12px 0!important;border:0!important;border-radius:12px!important;background:transparent!important;color:#0f1115!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"] button>b{font-size:15px!important;line-height:26px!important;font-weight:500!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"] button>span{font-size:12px!important;line-height:20px!important;color:#868a91!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet{padding:16px 20px 20px!important;border:1px solid #e2e2e2!important;border-radius:24px!important;gap:8px!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog form{display:flex!important;align-items:flex-end!important;gap:8px!important;margin:8px 0 0!important;padding-top:16px!important;border-top:1px solid #e2e2e2!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog form label{flex:1!important;min-width:0!important;font-size:12px!important;line-height:20px!important;color:#61666b!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog input{width:100%!important;min-width:0!important;min-height:44px!important;margin-top:8px!important;padding:10px 12px!important;border:1px solid #e2e2e2!important;border-radius:12px!important;background:#f5f5f5!important;color:#0f1115!important;box-shadow:none!important;font-size:16px!important;line-height:24px!important;outline:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog form button{flex:none!important;min-height:44px!important;padding:10px 14px!important;border:0!important;border-radius:12px!important;background:#202121!important;color:#fff!important;font-size:13px!important;font-weight:500!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-category-row>button:focus-visible{outline:2px solid #b9b9b9!important;outline-offset:-2px!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-library-main:focus-visible{outline:2px solid #b9b9b9!important;outline-offset:-2px!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-actions button:focus-visible{outline:2px solid #b9b9b9!important;outline-offset:-2px!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head>button:focus-visible{outline:2px solid #b9b9b9!important;outline-offset:-2px!important}
@media(hover:hover) and (pointer:fine){html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-library-main:hover{background:#fafafa!important}html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet>button:hover{background:#f6f6f6!important}}

/* DESIGN 2.2: one toolbar in the title surface, independent reading sections. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-add-button svg{width:18px!important;height:18px!important;flex:none!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view .script-add-button span{font-size:13px!important;font-weight:500!important;line-height:22px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:8px!important;min-width:0!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-actions button:first-child{background:#18191c!important;color:#fff!important;border-color:transparent!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-confirm-footer button{min-height:48px!important;border-radius:999px!important;background:#fff!important;border:1px solid #e3e4e8!important;color:#292d2d!important;font-size:12px!important;padding:8px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-confirm-footer button:first-child{grid-column:1/-1!important;border:0!important;background:#18191c!important;color:#fff!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-confirm-footer{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-optimize:disabled{background:#ededee!important;color:#92969b!important;opacity:1!important;}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet{padding:16px 20px 24px!important;border:0!important;border-radius:24px 24px 0 0!important;background:#fff!important;box-shadow:none!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;min-width:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"]{padding:16px 20px 24px!important;border:0!important;border-radius:24px 24px 0 0!important;background:#fff!important;box-shadow:none!important;max-height:calc(100dvh - 32px)!important;overflow-y:auto!important;min-width:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important;padding:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet-close{display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:999px!important;background:#f5f5f6!important;color:#61666b!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet-close svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"] .workspace-sheet-header{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;margin:0 0 12px!important;padding:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"] .workspace-sheet-close{display:flex!important;align-items:center!important;justify-content:center!important;flex:none!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;padding:0!important;border:0!important;border-radius:999px!important;background:#f5f5f6!important;color:#61666b!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .workspace-sheet[aria-label="导出脚本"] .workspace-sheet-close svg{width:18px!important;height:18px!important;fill:none!important;stroke:currentColor!important;stroke-width:1.7!important;stroke-linecap:round!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet>button[data-action]{padding:14px 0!important;min-height:72px!important;border-radius:12px!important;border:0!important;border-bottom:1px solid #f2f2f3!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog form button{border-radius:999px!important;min-width:64px!important;background:#18191c!important}
@media(max-width:350px){html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head{grid-template-columns:minmax(0,1fr) auto!important}html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head>span{grid-column:1!important;grid-row:2!important}html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-part-head>button{grid-column:2!important;grid-row:1/3!important}html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-toolbar{gap:4px!important}}

html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #newScriptTypeDialog{width:calc(100% - 24px)!important;max-width:420px!important;min-width:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="scripts"] #appView.ui-view #newScriptTypeDialog .workspace-sheet{width:100%!important;box-sizing:border-box!important;border-radius:24px!important}

html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #scriptExportDialog{width:calc(100% - 24px)!important;max-width:420px!important;min-width:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view #scriptExportDialog .workspace-sheet{width:100%!important;box-sizing:border-box!important;border-radius:24px!important}

/* Keep title and save state compact without truncating script titles or body. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-card{padding:16px!important;box-shadow:none!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-toolbar{flex-wrap:wrap;row-gap:0!important}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-head{display:flex;align-items:center;gap:12px;flex:1;min-width:0}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title-head .save-state{white-space:normal;font-size:12px}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-title{margin:4px 0 0!important;min-height:44px!important}


/* Text selection is a range, not the focus background of the entire paragraph. */
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-block::selection,
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view .script-block *::selection{background:#b9cce3;color:#18191b}
html[data-visual-mode="minimal"] body.theme-liquid.v2-app[data-v2-route="script-editor"] #appView.ui-view ::highlight(script-edit-selection){background:#b9cce3;color:#18191b}
