/* 0.11: task-first navigation, a quieter canvas, and controls shown when useful. */
body[data-mode="editor"]{--ws-bg:#121917;--ws-panel:#1b2421;--ws-raised:#242f2b;--ws-border:#36433d;--ws-muted:#a7b6ad;--ws-text:#f0f4f1}
.brand-mark{background:none!important;border-radius:0!important;width:46px!important;height:46px!important}
.brand-mark img{display:block;width:100%;height:100%;object-fit:contain}
.brand>span:last-child{display:flex;flex-direction:column;gap:2px;line-height:1.25}
.brand small{font-size:10px;letter-spacing:1.2px;color:var(--muted);font-weight:400}
body[data-mode="editor"] .topbar{width:168px;height:58px;padding:0 16px;background:var(--ws-panel)}
body[data-mode="editor"] .brand{gap:8px;font-size:19px}
.workspace-refined .editor-top{height:58px;padding-left:170px;gap:10px}
.workspace-refined .editor-title #editor-name{width:180px;font-size:13px}
.workspace-refined .editor-save-state{font-size:11px;max-width:180px}
.workspace-refined .editor-body{grid-template-columns:60px minmax(0,1fr) 280px}
.workspace-refined .editor-commandbar{height:42px;padding:4px 12px;gap:6px}
.workspace-refined .workspace-inspector-tabs{height:42px}
.workspace-refined .workspace-category-shortcut{color:var(--ws-muted)}
.workspace-refined #workspace-nav-team{display:none}
.workspace-refined .editor-viewport{background:radial-gradient(#2b3931 .7px,transparent .7px) 0 0/24px 24px var(--ws-bg)}
.workspace-refined .editor-artboard{box-shadow:0 14px 56px #0005}
.workspace-refined #workspace-selection-name{font-size:11px;max-width:130px}
/* 320px 级窄屏放不下 5 个上下文按钮：精修 / 替换 退回属性面板与工具搜索，其余视口保持可见。 */
@media (max-width:360px){.workspace-refined #workspace-mask,.workspace-refined #workspace-photo-replace{display:none}}
.workspace-refined .workspace-font-row{display:grid;grid-template-columns:minmax(0,1fr) 74px;gap:10px;margin:12px 0}
.workspace-refined .workspace-font-row label{margin:0}
.workspace-refined #text-properties>.property-grid{grid-template-columns:minmax(0,1fr);margin:12px 0 8px}
.workspace-refined #text-properties>label:has(#property-bold){display:inline-flex;margin-bottom:6px}
.workspace-refined #property-text{min-height:64px;resize:vertical}
.workspace-refined .workspace-auto-hint{margin:0 0 12px;line-height:1.6;font-size:10px}
.workspace-refined .layer-actions{margin-bottom:10px}
.workspace-refined .layer-actions button{min-height:32px;padding:5px 8px}
.workspace-refined .layer-row{background:#222d28;border-color:transparent;padding:4px;margin-bottom:4px}
.workspace-refined .layer-row.selected{background:#30442d;border-color:#5d7a49}
.workspace-refined .layer-row .layer-select{text-align:left;font-weight:500}
.workspace-refined .layer-row .layer-drag{color:var(--ws-muted)}
.workspace-refined.workspace-panels-collapsed .editor-body{grid-template-columns:60px minmax(0,1fr)}
.workspace-refined.workspace-panels-collapsed .workspace-inspector{display:none}
.workspace-refined #workspace-panels-toggle{display:inline-flex;align-items:center;gap:5px;margin-left:auto;min-height:30px}
.workspace-refined #editor-offline{margin-left:auto}
.workspace-refined .editor-tools{padding-top:12px;gap:6px;overflow:visible}
.workspace-refined .editor-tools>button{width:48px;margin:0 auto;min-height:48px;flex:none;display:flex;align-items:center;justify-content:center;flex-direction:column}
.workspace-refined .editor-tools>button>.workspace-icon{width:20px;height:20px}
.workspace-refined #workspace-assets{margin-top:14px;border-top:1px solid var(--ws-border);border-radius:0;padding-top:12px}
.workspace-refined .editor-tools>#mobile-properties,.workspace-refined .editor-tools>#mobile-workflows{display:none}
.workspace-refined .workspace-shape-options{position:fixed;margin:0;padding:8px;width:190px;border:1px solid var(--ws-border);border-radius:12px;background:var(--ws-panel);box-shadow:0 16px 40px #0006;color:var(--ws-text);z-index:10}
.workspace-refined .workspace-shape-options button{display:flex;align-items:center;gap:12px;min-height:44px;width:100%;padding:9px 12px;background:transparent;border:0;text-align:left}
.workspace-refined .workspace-shape-options button[aria-pressed="true"]{background:#334b2c;color:#d1f5a1}
.workspace-refined .workspace-shape-options button>span:first-child{display:flex}
.workspace-refined dialog.workspace-file-menu{position:fixed;inset:auto;width:340px;margin:0;padding:18px;border-radius:14px;max-height:calc(100dvh - 100px);overflow:auto}
.workspace-refined .workspace-file-menu h2{font-size:16px;padding-right:36px;margin-bottom:18px}
.workspace-refined .workspace-file-menu h3{font-size:10px;color:var(--ws-muted);margin:12px 8px 6px;letter-spacing:.5px}
.workspace-refined .workspace-file-menu section+section{border-top:1px solid var(--ws-border);margin-top:8px;padding-top:4px}
.workspace-refined .workspace-file-menu section>button{display:flex;align-items:center;gap:10px;width:100%;padding:10px 8px;min-height:42px;background:transparent;border:0;text-align:left}
.workspace-refined .workspace-file-menu button small{margin-left:auto;font-size:10px;color:var(--ws-muted)}
.workspace-refined[data-workspace-document="false"] .editor-title,.workspace-refined[data-workspace-document="false"] .editor-save-state,
.workspace-refined[data-workspace-document="false"] .editor-actions,.workspace-refined[data-workspace-document="false"] .editor-commandbar,
.workspace-refined[data-workspace-document="false"] .editor-viewbar{display:none}
.workspace-refined[data-workspace-document="false"] .editor-top{justify-content:flex-end}
.workspace-refined[data-workspace-document="false"] .editor-top>#workspace-project-menu{margin-right:4px}
.workspace-refined[data-workspace-document="false"] .editor-viewport{background:radial-gradient(ellipse at 50% 30%,#293e2b75,transparent 55%),radial-gradient(#2a3932 .6px,transparent .6px) 0 0/24px 24px var(--ws-bg)}
.workspace-refined .editor-empty{padding:26px;overflow:auto;max-width:820px;margin:auto}
.workspace-refined .editor-empty-icon{width:64px;height:64px;border-radius:19px;margin-bottom:20px}
.workspace-refined .editor-empty-icon .workspace-icon{width:30px;height:30px}
.workspace-refined .editor-empty h2{font-size:32px;font-weight:600;letter-spacing:-.8px}
.workspace-refined .editor-empty>p{font-size:13px;margin-bottom:18px}
.workspace-refined .workspace-start-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));width:min(600px,100%);gap:12px;margin-top:28px}
.workspace-refined .workspace-start-options button{flex-direction:column;align-items:flex-start;gap:10px;padding:18px;background:#202c26;border-color:#35453a;border-radius:12px;font-size:13px;text-align:left;min-height:110px}
.workspace-refined .workspace-start-options button .workspace-icon{color:var(--accent)}
.workspace-refined .workspace-start-options small{font-size:11px;color:var(--ws-muted);line-height:1.5}
.workspace-refined .editor-empty .format-note{font-size:10px;margin-top:16px}
.workspace-refined .workspace-recents{width:min(660px,100%);margin-top:24px;text-align:left;border-top:1px solid var(--ws-border);padding-top:16px}
.workspace-refined .workspace-recents header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.workspace-refined .workspace-recents h3{font-size:12px;font-weight:500;margin:0;color:var(--ws-muted)}
.workspace-refined .workspace-recents header button{background:transparent;border:0;padding:5px 0;font-size:11px;color:var(--ws-muted)}
.workspace-refined .workspace-recent-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.workspace-refined .workspace-recent-project{display:flex;align-items:center;gap:10px;min-width:0;text-align:left;padding:10px;background:var(--ws-panel)}
.workspace-refined .workspace-recent-project img,.workspace-refined .workspace-recent-placeholder{width:46px;height:42px;object-fit:contain;border-radius:5px;flex:none;background:#17201c;display:grid;place-items:center}
.workspace-refined .workspace-recent-project>span:last-child{min-width:0;display:flex;flex-direction:column;gap:5px}
.workspace-refined .workspace-recent-project strong{font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}
.workspace-refined .workspace-recent-project small{font-size:10px;color:var(--ws-muted)}
.workspace-refined .workspace-tool-categories{gap:6px;flex-wrap:wrap;margin-bottom:8px}
.workspace-refined .workspace-tool-categories button{padding:7px 10px;min-height:34px}
.workspace-refined .workspace-tool-count{font-size:11px;margin:6px 0 14px!important;color:var(--ws-muted)}
.workspace-refined .workspace-tool-group h3{font-size:11px;margin:0 0 10px;display:flex;gap:6px;align-items:center}
.workspace-refined .workspace-tool-command{background:#242f2a;border-color:#37443b;min-height:66px;border-radius:10px}
.workspace-refined .workspace-tool-command:disabled{opacity:.65}
.workspace-refined .workspace-tool-command small{font-size:11px;color:var(--ws-muted);line-height:1.5}
.workspace-refined .workspace-tool-list{max-height:min(52dvh,520px)}
.workspace-refined .workspace-empty-result{padding:30px 12px;text-align:center}
.workspace-refined .workspace-empty-result strong{font-size:15px}
.workspace-refined .workspace-empty-result p{margin:12px 0}
.workspace-refined .workspace-canvas-presets{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:18px 0}
.workspace-refined .workspace-canvas-presets button{display:flex;align-items:center;flex-direction:column;gap:10px;padding:18px 10px;min-height:126px;border-color:var(--ws-border)}
.workspace-refined .workspace-canvas-presets strong{font-weight:500}
.workspace-refined .workspace-canvas-presets small{font-size:11px;color:var(--ws-muted)}
.workspace-refined #template-list{grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.workspace-refined .template-card{position:relative;background:#222d27;border:1px solid var(--ws-border);border-radius:12px;overflow:hidden;padding:0}
.workspace-refined .template-card>button:first-child{display:flex;flex-direction:column;width:100%;border:0;border-radius:0;background:transparent;padding:10px;gap:10px;text-align:left;white-space:normal}
.workspace-refined .template-card>button:first-child img{width:100%;height:128px;object-fit:contain;border-radius:7px;background:#eff2ec}
.workspace-refined .template-card>button:first-child span{font-size:11px;line-height:1.6;font-weight:500;min-height:36px}
.workspace-refined .template-card>button:last-child{display:block;min-height:32px;padding:6px 12px;margin:0 10px 10px;background:transparent;border-color:#40513f;font-size:11px}
.workspace-refined #templates-dialog{width:min(1000px,calc(100vw - 32px))}
.workspace-refined .workspace-template-empty{grid-column:1/-1;padding:28px;text-align:center;color:var(--ws-muted)}
.workspace-refined .library-card{display:grid;grid-template-columns:64px minmax(0,1fr) auto auto;gap:12px;align-items:center;padding:12px;background:#222e27;border-color:#37463b;border-radius:10px}
.workspace-refined .library-card img{width:64px;height:60px;object-fit:contain;border-radius:7px;background:#15221b}
.workspace-refined .library-info{grid-column:2;min-width:0}
.workspace-refined .library-info strong{font-size:12px;display:block;overflow-wrap:anywhere}
.workspace-refined .library-info p{font-size:10px;line-height:1.6;margin:6px 0 0;color:var(--ws-muted)}
.workspace-refined .library-more{padding:0;border:0;position:relative}
.workspace-refined .library-more>summary{list-style:none;padding:9px 10px;border:1px solid var(--ws-border);border-radius:8px;font-size:12px;cursor:pointer}
.workspace-refined .library-more>summary::-webkit-details-marker{display:none}
.workspace-refined .library-more>div{position:absolute;right:0;top:38px;min-width:132px;z-index:3;border:1px solid var(--ws-border);border-radius:9px;background:var(--ws-panel);box-shadow:0 10px 28px #0006;padding:5px}
.workspace-refined .library-more>div button{display:block;width:100%;padding:9px 10px;text-align:left;background:transparent;border:0;font-size:12px;min-height:38px}
.workspace-refined .library-more>div button:last-child{color:#efb5a5}
.workspace-refined #library-dialog{min-height:360px}
.workspace-refined #library-projects{margin:18px 0 22px}
.workspace-refined .workspace-batch-steps{display:flex;list-style:none;gap:16px;padding:0;margin:4px 0 18px;color:var(--ws-muted);font-size:11px}
.workspace-refined .workspace-batch-steps li[aria-current="step"]{color:var(--accent)}
.workspace-refined .workspace-batch-formats,.workspace-refined .workspace-batch-sizes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;border:0;padding:0;margin:18px 0}
.workspace-refined .workspace-batch-sizes{grid-template-columns:repeat(4,minmax(0,1fr))}
.workspace-refined .workspace-batch-formats legend,.workspace-refined .workspace-batch-sizes legend{font-size:12px;margin-bottom:10px;color:var(--ws-muted)}
.workspace-refined .workspace-batch-formats button{text-align:left;padding:12px;min-height:62px}
.workspace-refined .workspace-batch-formats strong,.workspace-refined .workspace-batch-formats small{display:block}
.workspace-refined .workspace-batch-formats small{font-size:10px;color:var(--ws-muted);margin-top:6px}
.workspace-refined :is(.workspace-batch-formats,.workspace-batch-sizes) button[aria-pressed="true"]{border-color:#bade88;background:#34492c;color:#d2f4a7}
.workspace-refined #queue-dialog{width:min(760px,calc(100vw - 32px))}
.workspace-refined #queue-dialog>.dialog-actions{position:sticky;bottom:-26px;z-index:2;background:var(--ws-panel);border-top:1px solid var(--ws-border);padding:12px 0;margin:12px 0 0;box-shadow:0 -10px 20px var(--ws-panel)}
.workspace-refined #queue-items{padding-left:0;list-style:none;display:grid;gap:8px;margin:16px 0}
.workspace-refined #queue-items:empty{display:none}
.workspace-refined #queue-items li{padding:12px;border:1px solid var(--ws-border);border-radius:9px;background:#212e27;font-size:12px;line-height:1.6}
.workspace-refined #queue-items li button{margin:8px 6px 0 0;min-height:34px;font-size:11px}
.workspace-refined #queue-items li[data-status="成功"]{border-left:3px solid #c5f582}
.workspace-refined #queue-items li[data-status="失败"]{border-left:3px solid #eda38a}
.workspace-refined dialog.workspace-dialog{border-color:#425047;background:var(--ws-panel);border-radius:16px;box-shadow:0 32px 100px #0006}
.workspace-refined dialog.workspace-dialog::backdrop{background:#08120ccc;backdrop-filter:blur(4px)}
.workspace-refined .workspace-dialog-close{width:36px;height:36px}
@media(max-width:1100px){
  .workspace-refined .editor-body{grid-template-columns:58px minmax(0,1fr) 252px}
  .workspace-refined .editor-title #editor-name{width:130px}
}
@media(max-width:760px){
  body[data-mode="editor"] .topbar{width:52px;height:56px;padding:0 8px}
  body[data-mode="editor"] .brand-mark{width:36px!important;height:36px!important}
  body[data-mode="editor"] .brand>span:last-child{display:none}
  .workspace-refined .editor-top{height:56px;padding:0 8px 0 52px;gap:2px}
  .workspace-refined .editor-title #editor-name{width:100%;font-size:12px}
  .workspace-refined .editor-actions{gap:3px}
  .workspace-refined #editor-import{display:none}
  .workspace-refined .editor-actions button{min-height:40px;padding:8px}
  .workspace-refined .editor-commandbar,.workspace-refined[data-workspace-selection="image"] .editor-commandbar{height:42px;flex-wrap:nowrap;padding:4px 7px}
  .workspace-refined[data-workspace-selection="image"] .workspace-context{flex-basis:auto;margin-left:auto}
  .workspace-refined[data-workspace-selection="image"] #workspace-selection-name{display:none}
  .workspace-refined #workspace-tools-toggle{border:0;background:transparent;font-size:11px;padding:6px}
  .workspace-refined .workspace-context button{min-height:32px}
  .workspace-refined .editor-tools{display:flex;justify-content:space-between;min-height:60px;gap:0;padding:4px 3px calc(4px + env(safe-area-inset-bottom,0px));overflow:visible}
  .workspace-refined .editor-tools>button{display:flex;width:44px;min-width:44px;min-height:52px;margin:0;flex:1;max-width:56px;padding:5px 2px;font-size:9px}
  .workspace-refined .editor-tools>button[data-tool="hand"],.workspace-refined .editor-tools>#workspace-assets{display:none}
  .workspace-refined .editor-tools>#mobile-properties,.workspace-refined .editor-tools>#mobile-workflows{display:flex}
  .workspace-refined .mobile-editor-panels{display:none!important}
  .workspace-refined #workspace-panels-toggle{display:none}
  .workspace-refined .workspace-inspector,.workspace-refined.mobile-inspector-open .workspace-inspector{bottom:calc(60px + env(safe-area-inset-bottom,0px) + max(0px,100dvh - var(--editor-visible-height,100dvh) - var(--editor-visible-top,0px)));border-color:#435446}
  .workspace-refined.mobile-inspector-open .workspace-inspector{display:block}
  .workspace-refined .workspace-inspector-tabs{height:48px}
  .workspace-refined .workspace-inspector-tabs button{min-height:44px}
  .workspace-refined .workspace-inspector-pane{padding:14px}
  .workspace-refined .editor-empty{padding:20px 16px;justify-content:center}
  .workspace-refined .editor-empty-icon{width:56px;height:56px;margin-bottom:16px}
  .workspace-refined .editor-empty h2{font-size:24px;letter-spacing:-.5px}
  .workspace-refined .editor-empty>p{font-size:12px;margin-bottom:16px}
  .workspace-refined .workspace-start-options{gap:8px;margin-top:22px;grid-template-columns:repeat(3,minmax(0,1fr))}
  .workspace-refined .workspace-start-options button{padding:14px 8px;gap:8px;font-size:11px;min-height:92px}
  .workspace-refined .workspace-start-options small{display:none}
  .workspace-refined .workspace-recent-list{grid-template-columns:minmax(0,1fr)}
  .workspace-refined .workspace-recent-project{min-height:60px}
  .workspace-refined .workspace-recents{margin-top:18px}
  .workspace-refined .workspace-tool-categories{flex-wrap:wrap;gap:6px;margin:12px 0}
  .workspace-refined .workspace-tool-categories button{min-height:40px;padding:7px 9px;font-size:11px}
  .workspace-refined .workspace-tool-categories .workspace-icon{display:none}
  .workspace-refined .workspace-tool-list{max-height:50dvh}
  .workspace-refined .workspace-tool-command{min-height:68px}
  .workspace-refined #template-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .workspace-refined .template-card>button:first-child{padding:7px;gap:6px}
  .workspace-refined .template-card>button:first-child img{height:92px}
  .workspace-refined .template-card>button:first-child span{font-size:10px;min-height:48px}
  .workspace-refined .template-card>button:last-child{min-height:40px;margin:0 7px 7px;font-size:11px}
  .workspace-refined .workspace-batch-sizes{grid-template-columns:repeat(2,minmax(0,1fr))}
  .workspace-refined .workspace-batch-sizes button{min-height:44px}
  .workspace-refined .workspace-batch-steps{gap:10px;font-size:10px}
  .workspace-refined .library-card{grid-template-columns:50px minmax(0,1fr) auto;gap:8px;padding:10px}
  .workspace-refined .library-card img{width:50px;height:50px}
  .workspace-refined .library-card>button{grid-column:2;grid-row:2;justify-self:start;min-height:40px}
  .workspace-refined .library-more{grid-column:3;grid-row:2}
  .workspace-refined .library-more>summary{min-height:40px}
  .workspace-refined .library-more>div{top:40px}
  .workspace-refined .library-more>div button{min-height:44px}
  .workspace-refined .workspace-canvas-presets{gap:6px}
  .workspace-refined .workspace-canvas-presets button{padding:16px 6px;font-size:11px;min-height:118px}
  .workspace-refined .workspace-canvas-presets small{font-size:9px}
  .workspace-refined .workspace-dialog-close{width:44px;height:44px;top:10px;right:10px}
}
@media(prefers-reduced-motion:reduce){.workspace-refined *{scroll-behavior:auto!important}}

/* ---- UI/UX 审查修复：统一模式外观、对比度与点击目标 ---- */
/* 预览模式与编辑模式共用圆角（按钮 9px、面板 10px）与 58px 顶栏。 */
body[data-mode="preview"] .button{border-radius:9px;min-height:36px}
body[data-mode="preview"] .button.primary,body[data-mode="preview"] .header-actions .button{min-height:40px}
body[data-mode="preview"] .mode-switch{border-radius:10px}
body[data-mode="preview"] .mode-switch button{border-radius:8px;min-height:32px}
body[data-mode="preview"] .viewer{border-radius:10px}
body[data-mode="preview"] .topbar{min-height:58px}
.draft-hint{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap;margin:0 auto 18px;padding:10px 14px;border:1px solid var(--ws-border-strong);border-radius:10px;background:var(--ws-raised);color:var(--ws-text);font-size:13px;max-width:100%}
/* 禁用态：不再依赖透明度，文字与背景保持 4.5:1 以上。 */
body button:disabled,body .button:disabled{opacity:1;color:#9aa6b3}
body .button.primary:disabled,body button.primary:disabled{background:#3a4a2c;border-color:#3a4a2c;color:#c5d6aa}
.workspace-refined :is(button,.button,.primary):disabled{opacity:1;color:#9aa6b3}
.workspace-refined :is(.button.primary,button.primary):disabled{background:#3a4a2c;border-color:#3a4a2c;color:#c5d6aa}
.workspace-refined .workspace-tool-command:disabled{opacity:1}
.workspace-refined .workspace-tool-command:disabled small{color:#9aa6b3}
/* 素材授权链接纳入品牌色。 */
.industry-license-link{color:#c5f582;text-underline-offset:3px}
/* 桌面紧凑工具栏：交互目标不小于 32px。 */
.workspace-refined .editor-viewbar button{min-height:32px;min-width:32px}
.workspace-refined #workspace-panels-toggle{min-height:32px}
.workspace-refined .workspace-inspector-pane summary{min-height:32px;box-sizing:border-box;padding:6px 0}
.workspace-refined input[type="range"]{min-height:32px}
.workspace-refined label:has(>input[type="checkbox"],>input[type="radio"]),.workspace-refined .mobile-memory-mode{min-height:32px!important}
.workspace-refined .workspace-context button{min-height:32px}
/* 手机与触屏：至少 44px。 */
@media (pointer:coarse),(max-width:760px){
  body[data-mode="preview"] :is(.button,.mode-switch button,.toolbar .button){min-height:44px!important;min-width:44px!important}
  .workspace-refined :is(button,.button,summary,select,[role="tab"]){min-height:44px!important}
  .workspace-refined :is(.editor-top,.editor-commandbar,.editor-viewbar) :is(button,.button,input:not([type="hidden"])){min-height:44px!important;min-width:44px!important}
  .workspace-refined .editor-commandbar,.workspace-refined[data-workspace-selection="image"] .editor-commandbar{height:52px}
  .workspace-refined .workspace-context button,.workspace-refined #workspace-inspector-close{min-height:44px!important;min-width:44px!important}
  .workspace-refined .workspace-inspector-pane summary{min-height:44px!important;display:flex;align-items:center}
  .workspace-refined :is(input:not([type="hidden"],[type="checkbox"],[type="radio"],[type="range"],[type="file"]),textarea){min-height:44px!important}
  .workspace-refined input[type="range"]{min-height:44px!important}
  .workspace-refined label:has(>input[type="checkbox"],>input[type="radio"]),.workspace-refined .mobile-memory-mode{min-height:44px!important;display:flex;align-items:center;gap:8px}
  .workspace-refined input[type="checkbox"],.workspace-refined input[type="radio"]{width:22px;height:22px}
  .workspace-refined .layer-row button{min-height:44px!important;min-width:44px!important}
  .workspace-refined .layer-row input.layer-multi{appearance:none;-webkit-appearance:none;width:44px;height:44px;margin:0;position:relative;min-height:44px!important}
  .workspace-refined .layer-row input.layer-multi::before{content:"";position:absolute;inset:11px;border:2px solid #8794a3;border-radius:4px;box-sizing:border-box}
  .workspace-refined .layer-row input.layer-multi:checked::before{background:#c5f582;border-color:#c5f582}
  body[data-mode="editor"] .topbar .brand,body[data-mode="editor"] .brand-mark{min-width:44px!important;min-height:44px!important}
  .industry-license-link{display:inline-flex;align-items:center;min-height:44px!important}
}
/* 手机面板抽屉：不遮住画布，标签栏固定，可用「收起」关闭。 */
@media (max-width:760px){
  .workspace-refined .workspace-inspector,.workspace-refined.mobile-inspector-open .workspace-inspector{max-height:max(180px,min(42dvh,calc(var(--editor-visible-height,100dvh) - 300px)));min-height:0}
  .workspace-refined .workspace-inspector-tabs{position:sticky;top:0;z-index:2;background:var(--ws-panel)}
  #queue-dialog #queue-items{max-height:34dvh}
  #queue-dialog #queue-status,#queue-dialog .dialog-actions{position:sticky;bottom:0;background:var(--ws-panel,#1b2421);z-index:2;padding-block:8px}
}
.workspace-refined .workspace-file-menu .workspace-file-legal{display:inline-block;margin-right:14px;width:auto;min-height:44px;margin:10px 8px 0;padding:0;border:0;background:none;color:var(--ws-muted);font-size:11px;text-decoration:underline;cursor:pointer}
