/* Shared workspace frame for the shop dashboard and migrated tools. */
.workbench-page{--wb-canvas:#f5f7fb;--wb-surface:#fff;--wb-line:#dfe6ef;--wb-text:#26394f;--wb-muted:#7a8798;--wb-blue:#255fc7;--wb-active:#eaf1fc;--wb-hover:#f3f6fa;margin:0;background:var(--wb-canvas);color:var(--wb-text);font:14px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI","PingFang SC","Microsoft YaHei",sans-serif;min-height:100vh;overflow:visible}
.workbench-page *{box-sizing:border-box}.workbench-page [hidden]{display:none!important}.workbench-layout{display:block;min-height:100vh}
.workbench-page .sidebar{position:fixed;inset:0 auto 0 0;width:230px;height:100vh;background:var(--wb-surface);border-right:1px solid var(--wb-line);padding:30px 16px;display:flex;flex-direction:column;overflow:auto;z-index:5}
.workbench-page .brand{display:flex;align-items:center;gap:11px;margin:0 14px 24px;color:#193653;font-size:20px;font-weight:650;text-decoration:none;line-height:1.5}.workbench-page .brand img{width:34px;height:34px}.workbench-page .brand small{display:block;float:none;padding:0;font-size:11px;font-weight:400;color:#718197;letter-spacing:2px;margin-top:3px}
.workbench-page .sidebar-bottom{margin-top:auto;padding:34px 14px 0;color:#7e8c9f;font-size:12px}.workbench-page .sidebar-bottom a{display:block;margin-top:10px;color:#285fba}.workbench-page .sidebar-bottom button{display:block;margin-top:8px}
.workbench-page #groupNav{display:flex;flex-direction:column;gap:6px;margin:18px 0 0;padding:0}.workbench-page #groupNav a{display:flex;align-items:center;justify-content:flex-start;gap:12px;padding:12px 14px;color:#617084;border:0;border-radius:8px;font-size:14px;line-height:21px;text-decoration:none;min-height:45px;background:transparent;box-shadow:none}.workbench-page #groupNav a:hover{background:var(--wb-hover)}.workbench-page #groupNav a.active{background:var(--wb-active);color:var(--wb-blue);font-weight:600}
.workbench-page .group-icon{display:inline-grid;place-items:center;width:22px;flex:0 0 22px;color:#859ab5}.workbench-page #groupNav .active .group-icon{color:var(--wb-blue)}.workbench-page .group-icon svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.workbench-page .workbench-main{display:block;position:static;margin-left:230px;padding:38px 44px 22px;max-width:1800px;min-width:0;min-height:100vh;height:auto;background:var(--wb-canvas);overflow:visible}
.workbench-page .workbench-header{display:flex;align-items:center;justify-content:space-between;margin:0 0 20px;gap:16px}.workbench-page .eyebrow{font-size:10px;color:#6584a8;letter-spacing:2px;font-weight:650}.workbench-page .workbench-header h1{margin:5px 0 6px;font-size:24px;line-height:1.5;letter-spacing:-.5px;color:var(--wb-text);font-weight:700}.workbench-page .heading-divider{color:#b3bfd0;margin:0 14px;font-weight:400}.workbench-page #featureTitle{font-size:21px;color:#4e6a8c}.workbench-page .workbench-header p{margin:0;color:var(--wb-muted);font-size:14px;line-height:1.5}
.workbench-page .plugin-tools{display:flex;align-items:center;gap:9px;flex-wrap:wrap;justify-content:flex-end;font-size:11px}.workbench-page .plugin-tools a{color:#285fba;text-decoration:none}.workbench-page .plugin-tools button{font-size:11px;padding:5px;min-height:30px}.workbench-page .badge{display:inline-block;padding:7px 11px;background:#e9edf3;border:0;border-radius:20px;font-size:12px;color:#67778c;white-space:nowrap}.workbench-page .badge.connected{background:#e7f3ee;color:#277357}
.workbench-page .feature-tabs{display:flex;overflow-x:auto;gap:5px;background:var(--wb-surface);border:1px solid var(--wb-line);border-radius:10px;padding:8px;margin:0 0 16px;scrollbar-width:thin}.workbench-page .feature-tabs a{padding:10px 16px;white-space:nowrap;border-radius:6px;color:#6b7b8e;font-size:13px;line-height:19.5px;text-decoration:none}.workbench-page .feature-tabs a:hover{background:var(--wb-hover)}.workbench-page .feature-tabs .active{color:var(--wb-blue);background:#edf3fd;font-weight:600}
.workbench-page .text-button{border:0;background:transparent;padding:5px;color:#7b8797;font:inherit;font-size:12px;cursor:pointer}.workbench-page :is(a,button,select,input,summary):focus-visible{outline:3px solid #91b7f0;outline-offset:3px}.workbench-page a:hover{text-decoration:underline}.workbench-page button:disabled{cursor:not-allowed;opacity:.5}
@media(max-width:1100px){.workbench-page .sidebar{width:200px}.workbench-page .workbench-main{margin-left:200px;padding:28px 22px}.workbench-page .workbench-header{flex-wrap:wrap;gap:12px}.workbench-page .plugin-tools{justify-content:flex-start}.workbench-page .workbench-header h1{font-size:22px}.workbench-page #featureTitle{font-size:19px}}
@media(max-width:720px){.workbench-page .sidebar{position:static;width:auto;height:auto;padding:15px;display:block}.workbench-page .brand{width:100%;margin:0 0 14px}.workbench-page .sidebar-bottom{display:none}.workbench-page .workbench-main{margin:0;padding:24px 16px}.workbench-page #groupNav{flex-direction:row;overflow-x:auto;width:100%;margin:0;gap:3px}.workbench-page #groupNav a{flex-shrink:0;padding:8px 10px;font-size:12px;min-height:34px}.workbench-page .group-icon{display:none}.workbench-page .feature-tabs a{padding:9px 12px}.workbench-page .heading-divider{margin:0 8px}.workbench-page #featureTitle{font-size:18px}.workbench-page .workbench-header h1{line-height:1.8}.workbench-page .plugin-tools{gap:6px}}
/* Shop keeps the existing desktop theme preference, with the same frame geometry. */
:root[data-desktop-theme=dark] .workbench-page{--wb-canvas:#17191c;--wb-surface:#202327;--wb-line:#373d44;--wb-text:#edf0f3;--wb-muted:#a8b1bd;--wb-blue:#79b5ff;--wb-active:#263e5b;--wb-hover:#292d32}
:root[data-desktop-theme=dark] .workbench-page :is(.brand,#featureTitle,#groupNav a,.feature-tabs a){color:var(--wb-text)}
:root[data-desktop-theme=dark] .workbench-page .feature-tabs .active{background:var(--wb-active);color:var(--wb-blue)}
@media(prefers-reduced-motion:reduce){.workbench-page *{scroll-behavior:auto!important;transition:none!important}}

@media(prefers-color-scheme:dark){
  :root[data-desktop-theme=system] .workbench-page{--wb-canvas:#17191c;--wb-surface:#202327;--wb-line:#373d44;--wb-text:#edf0f3;--wb-muted:#a8b1bd;--wb-blue:#79b5ff;--wb-active:#263e5b;--wb-hover:#292d32}
  :root[data-desktop-theme=system] .workbench-page :is(.brand,#featureTitle,#groupNav a,.feature-tabs a){color:var(--wb-text)}
  :root[data-desktop-theme=system] .workbench-page .feature-tabs .active{background:var(--wb-active);color:var(--wb-blue)}
}

.workbench-page .sidebar-bottom>span{display:block;border:0;border-radius:0;background:transparent;padding:0;min-height:0;color:#7e8c9f;font-size:12px;font-weight:400}

/* One compact progress language for every migrated tool. Detailed coverage belongs to results/export. */
.workbench-page :is(.ka-run,.vq-state,.em-run,.ly-status,.kt-run-state,.mw-run-state,.bi-run,.of-run,.rg-run,.tr-state,.ze-state,.is-state,.tf-run,.progress-section){font-size:13px;line-height:1.5;gap:10px;padding:10px 12px;border-radius:8px}
.workbench-page :is(#ssprogressBox .lookup-stages,#ssprogressText,#emStages,#lyStages,#trRankProgress){display:none!important}
.workbench-page #shopSyncProgress{display:block;padding:10px 12px;border:1px solid var(--wb-line);border-radius:8px;background:var(--wb-surface)}
.workbench-page #shopSyncProgress li{display:flex;align-items:center;gap:12px;padding:0;border:0;background:none}
.workbench-page #shopSyncProgress progress{width:min(240px,40vw);height:6px;accent-color:var(--wb-blue)}

.workbench-page :is(#kaStatus,#vqStatus,#emStatus,#lyStatus,#ktStatus,#mwStatus,#biStatus,#ofStatus,#rgStatus,#trStatus,#zeStatus,#isStatus,#tfStatus,#ssprogressPhase){font-size:13px;font-weight:600;color:var(--wb-text)}
.workbench-page :is(#kaCount,#vqCount,#ktProgress,#mwProgress,#biProgress,#ofProgress,#rgProgress,#trProgress,#zeProgress,#isProgress,#tfProgress,#ssprogressCount){font-size:12px;color:var(--wb-muted)}

/* Icons remain visible in every category and match the plugin's compact line style. */
.workbench-page .feature-tabs a{display:inline-flex;align-items:center;gap:8px;flex:0 0 auto;border:1px solid transparent;position:relative}
.workbench-page .feature-icon{display:inline-flex;flex:0 0 18px;color:var(--wb-muted)}
.workbench-page .feature-icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}
.workbench-page .feature-tabs .active{border-color:var(--wb-line);color:var(--wb-blue);background:var(--wb-active)}
.workbench-page .feature-tabs .active .feature-icon{color:currentColor}
.workbench-page .feature-tabs .active::after{content:"";position:absolute;bottom:-1px;left:16px;right:16px;height:2px;border-radius:2px;background:currentColor}

/* Tier labels are decorative; each link also names its tier for assistive UI.
   Use ::before so an active feature keeps its existing ::after underline. */
.workbench-page .wb-nav-label{min-width:0}
.workbench-page #groupNav .wb-nav-label{flex:1}
.workbench-page #groupNav a[data-required-plan=premium]{gap:8px}
.workbench-page :is(#groupNav,.feature-tabs) a[data-required-plan=premium]::before{content:"Pre";order:2;display:inline-flex;box-sizing:border-box;align-items:center;justify-content:center;flex:0 0 auto;align-self:center;min-width:27px;padding:1px 4px;border:1px solid var(--wb-pre-border,#e4c075);border-radius:5px;background:var(--wb-pre-bg,#fff1cc);color:var(--wb-pre-text,#89520d);font-size:10px;font-weight:750;line-height:16px;letter-spacing:.2px;white-space:nowrap}
