/* Shared UI contract. Module styles consume these tokens after the legacy layer. */
body.platform-workspace-theme {
  --workspace-sidebar: 224px;
  --gh-canvas: #ffffff;
  --gh-surface: #ffffff;
  --gh-surface-muted: #f5f5f5;
  --gh-surface-hover: #ededed;
  --gh-border: #e5e5e5;
  --gh-border-strong: #c9c9c9;
  --gh-text: #252525;
  --gh-muted: #666666;
  --gh-sidebar: #f7f7f7;
  --gh-selected: #eaeaea;
  --gh-action: #262626;
  --gh-action-hover: #404040;
  --gh-primary: #1769df;
  --gh-primary-strong: #1257bb;
  --gh-primary-soft: #edf4ff;
  --gh-success: #187247;
  --gh-warning: #805b12;
  --gh-danger: #b3261e;
  --gh-radius: 6px;
  --gh-radius-panel: 8px;
  --gh-control-height: 36px;
  --gh-control-compact: 32px;
  --gh-page-gutter: 28px;
  --gh-font-title: 24px;
  --gh-font-section: 18px;
  --gh-font-body: 14px;
  --gh-font-label: 13px;
  --gh-font-caption: 12px;
  --gh-space-1: 4px;
  --gh-space-2: 8px;
  --gh-space-3: 12px;
  --gh-space-4: 16px;
  --gh-space-6: 24px;
  --gh-space-8: 32px;
  --gh-shadow: none;
  --bg: var(--gh-canvas);
  --text: var(--gh-text);
  --muted: var(--gh-muted);
  --panel: var(--gh-surface);
  --panel-strong: var(--gh-surface-muted);
  --line: var(--gh-border);
  --shadow: none;
  --glow: none;
  --danger: var(--gh-danger);
  --warning: var(--gh-warning);
  color-scheme: light;
  margin: 0;
  background: var(--gh-canvas);
  padding-left: var(--workspace-sidebar);
  color: var(--gh-text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: var(--gh-font-body);
  line-height: 1.5;
}
.platform-workspace-theme *, .platform-workspace-theme *::before, .platform-workspace-theme *::after { box-sizing: border-box; letter-spacing: 0; }
.platform-workspace-theme [hidden] { display: none !important; }
.platform-workspace-theme :is(button, input, select, textarea) { font: inherit; letter-spacing: 0; }
.platform-workspace-theme :is(h1, h2, h3, h4, button, input, select, textarea) { text-shadow: none; }
.platform-workspace-theme :is(h1, h2, h3, h4) { color: var(--gh-text); font-family: inherit; font-weight: 600; line-height: 1.4; }
.platform-workspace-theme :is(button, a, summary, input, select, textarea):focus-visible { outline: 2px solid var(--gh-primary); outline-offset: 3px; }
.platform-workspace-theme :is(input, textarea)::placeholder { color: var(--gh-muted); font-weight: 400; opacity: 1; }
.platform-workspace-theme :is(input, select, textarea):disabled { color: var(--gh-muted); background: var(--gh-surface-muted); cursor: not-allowed; }
.platform-workspace-theme [aria-invalid="true"] { border-color: var(--gh-danger); }
.platform-workspace-theme :is(table, .task-state, .decision-save-state) { font-variant-numeric: tabular-nums; }
.platform-workspace-theme :is(button, a) { -webkit-tap-highlight-color: transparent; }
.platform-workspace-theme button:not(:disabled), .platform-workspace-theme summary { cursor: pointer; }
.platform-workspace-theme button:disabled { cursor: not-allowed; opacity: .45; }
.platform-workspace-theme .lucide { width: 18px; height: 18px; flex: 0 0 auto; vertical-align: middle; }
.platform-workspace-theme .workspace-icon { display: inline-flex; align-items: center; justify-content: center; width: var(--gh-control-height); height: var(--gh-control-height); min-width: var(--gh-control-height); min-height: var(--gh-control-height); padding: 0; background: transparent; border: 1px solid transparent; border-radius: var(--gh-radius); color: var(--gh-text); box-shadow: none; flex-shrink: 0; }
.platform-workspace-theme .workspace-icon:hover:not(:disabled) { background: var(--gh-surface-hover); }
.workspace-skip-link { position: fixed; top: 8px; left: 12px; z-index: 200; transform: translateY(-160%); background: var(--gh-action); color: #fff; padding: 10px 16px; border-radius: var(--gh-radius); text-decoration: none; }
.workspace-skip-link:focus { transform: translateY(0); }
.workspace-sidebar { position: fixed; inset: 0 auto 0 0; width: var(--workspace-sidebar); z-index: 80; display: flex; flex-direction: column; gap: 20px; padding: 12px 10px 10px; background: var(--gh-sidebar); border-right: 1px solid var(--gh-border); overflow: auto; scrollbar-width: thin; }
.workspace-brand-row { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-left: 8px; flex: 0 0 auto; }
.workspace-brand { font-size: 18px; font-weight: 650; color: var(--gh-text); text-decoration: none; }
.workspace-sidebar nav { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.workspace-sidebar nav > a, .workspace-history-list > a { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 8px 10px; border-radius: 6px; color: var(--gh-text); text-decoration: none; font-size: var(--gh-font-label); }
.workspace-sidebar a:hover { background: var(--gh-surface-hover); }
.workspace-sidebar a.is-active { color: var(--gh-text); background: var(--gh-selected); }
.workspace-sidebar nav > .workspace-child-link { padding-left: 26px; }
.workspace-version { display: block; padding: 0 8px; color: var(--gh-muted); font-size: 11px; line-height: 1.5; overflow-wrap: anywhere; }
.workspace-entry-version { display: none; }
.account-entry-mode .workspace-entry-version { display: block; padding: 12px 24px; text-align: center; }
.files-breadcrumb { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; color: var(--gh-muted); font-size: var(--gh-font-caption); }
.files-breadcrumb a { color: inherit; }
.product-purchase-message { color: var(--gh-muted); font-size: var(--gh-font-label); line-height: 1.6; overflow-wrap: anywhere; }
.product-purchase-message:empty { display: none; }
.product-purchase-message[role="alert"] { color: var(--gh-danger); }
.workspace-sidebar a > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.workspace-history { flex: 1 0 auto; min-height: 60px; }
.platform-workspace-theme .workspace-history h2 { margin: 4px 10px 8px; font-size: var(--gh-font-caption); font-weight: 500; color: var(--gh-muted); }
.workspace-history-list > a { align-items: flex-start; font-size: var(--gh-font-label); }
.workspace-history-list > a > span { white-space: nowrap; }
.workspace-history-list small { display: block; color: var(--gh-muted); font-size: var(--gh-font-caption); margin-top: 4px; }
.workspace-history-empty { margin: 12px 10px; color: var(--gh-muted); font-size: var(--gh-font-caption); }
.workspace-sidebar details > summary { list-style: none; display: flex; align-items: center; gap: 10px; padding: 10px; font-size: var(--gh-font-label); color: var(--gh-muted); border-radius: 6px; }
.workspace-sidebar details > summary::-webkit-details-marker { display: none; }
.workspace-sidebar details > summary > svg:last-child:not(:first-child) { width: 14px; margin-left: auto; }
.workspace-sidebar details[open] > summary > svg:last-child:not(:first-child) { transform: rotate(180deg); }
.workspace-sidebar details nav a { min-height: 34px; padding-block: 7px; font-size: var(--gh-font-label); }
.workspace-account { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--gh-border); padding-top: 10px; gap: 4px; flex: 0 0 auto; margin-top: auto; }
.workspace-new-task { margin-bottom: 16px; }
.workspace-finder-toggle { margin-left: auto; }
.platform-workspace-theme .workspace-finder { width: min(600px, calc(100vw - 32px)); max-height: min(720px, calc(100dvh - 48px)); padding: 20px; color: var(--gh-text); border: 1px solid var(--gh-border-strong); border-radius: 8px; background: var(--gh-canvas); overflow: auto; }
.platform-workspace-theme .workspace-finder[open] { display: flex; flex-direction: column; }
.workspace-finder > :not(nav) { flex-shrink: 0; }
.workspace-finder::backdrop { background: #00000040; }
.workspace-finder header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.platform-workspace-theme .workspace-finder h2 { margin: 0; font-size: 18px; }
.platform-workspace-theme .workspace-finder input { width: 100%; min-height: 44px; margin-top: 16px; padding: 10px 12px; border: 1px solid var(--gh-border-strong); border-radius: 6px; background: var(--gh-surface); color: var(--gh-text); }
.workspace-finder-status { margin: 12px 0 8px; color: var(--gh-muted); font-size: 12px; }
.workspace-finder-results { display: flex; flex-direction: column; gap: 2px; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.workspace-finder-results a { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 10px; border-radius: 6px; color: var(--gh-text); text-decoration: none; }
.workspace-finder-results a:hover, .workspace-finder-results a:focus { background: var(--gh-surface-muted); }
.workspace-finder-results a span { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.workspace-finder-results small { color: var(--gh-muted); font-size: 12px; flex-shrink: 0; }
.workspace-account-link { display: flex; align-items: center; gap: 8px; padding: 8px; text-decoration: none; color: var(--gh-text); min-width: 0; font-size: var(--gh-font-label); }
.workspace-account-link span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-account-menu > summary { padding: 8px !important; }
.workspace-account-controls { position: absolute; bottom: 70px; left: 12px; right: 12px; background: #fff; border: 1px solid var(--gh-border); border-radius: 8px; padding: 12px; box-shadow: 0 6px 24px #00000012; }
.workspace-account-controls .header-actions, .workspace-account-controls .seller-account { display: grid !important; gap: 10px; width: 100%; }
.workspace-account-controls .topnav, .workspace-account-controls #themeToggle { display: none !important; }
.workspace-account-controls .auth-status { white-space: normal; }
.workspace-account-controls .language-switch { display: flex; align-items: center; gap: 8px; }
.workspace-account-controls .language-switch select { min-width: 70px; padding: 6px; }
.workspace-account-controls button { background: #fff; color: var(--gh-text); border: 1px solid var(--gh-border); border-radius: 5px; padding: 6px 10px; }
.platform-workspace-theme.workspace-sidebar-compact { --workspace-sidebar: 64px; }
.workspace-sidebar-compact .workspace-sidebar { padding-inline: 8px; }
.workspace-sidebar-compact .workspace-version { display: none; }
.workspace-sidebar-compact .workspace-brand-row { padding: 0; justify-content: center; }
.workspace-sidebar-compact :is(.workspace-brand, .workspace-sidebar a > span, .workspace-history, .workspace-tools, .workspace-admin, .workspace-account-menu, .workspace-merchant-nav) { display: none; }
.workspace-sidebar-compact .workspace-sidebar nav > a { justify-content: center; padding: 11px; }
.workspace-sidebar-compact .workspace-account { margin-top: auto; justify-content: center; }
.workspace-sidebar-backdrop, .workspace-mobile-menu { display: none !important; }
.platform-workspace-theme .workspace-topbar { position: sticky; top: 0; width: 100%; min-height: 56px; height: auto; display: flex; align-items: center; gap: 12px; padding: 8px 24px; border: 0; border-bottom: 1px solid var(--gh-border); background: var(--gh-canvas); box-shadow: none; z-index: 10; color: var(--gh-text); }
.workspace-topbar > :is(.brand, .topnav, .platform-global-search, .seller-brand, .seller-top-links, .mi-utility-bar, .mi-primary-catalog-nav) { display: none !important; }
.workspace-page-label { font-size: var(--gh-font-label); font-weight: 500; color: var(--gh-text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.platform-workspace-theme .workspace-topbar .seller-global-search { margin-left: auto; width: min(480px, 60%); }
.platform-workspace-theme > main, .platform-workspace-theme main:is(.decision-app, .workspace-home-main, .component-library-main, .substrate-main, .supply-main, .validation-main, .academy-main, .semantic-hub-main, .enterprise-review-main, .account-shell) { width: 100%; max-width: 1600px; min-width: 0; margin: 0 auto; padding: 24px var(--gh-page-gutter) 40px; }
.platform-workspace-theme main > :is(.page-head, .decision-page-head, .account-page-head, .seller-pagebar) { min-height: 0; margin: 0 0 24px; padding: 0; border: 0; background: none; align-items: center; }
.platform-workspace-theme :is(.page-head, .decision-page-head, .seller-pagebar, .account-page-head) h1 { font-size: var(--gh-font-title); font-weight: 600; line-height: 1.3; margin: 0; }
.platform-workspace-theme :is(.page-head, .decision-page-head) > div > :is(.eyebrow, .page-subtitle, p), .platform-workspace-theme :is(.eyebrow, .account-page-head > div > span, .account-panel-title > span, .seller-pagebar > div > span) { display: none; }
.platform-workspace-theme :is(.page-actions, .decision-head-actions, .seller-page-actions) { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.platform-workspace-theme :is(.button, .small-button) { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: var(--gh-control-height); padding: 8px 12px; border: 1px solid var(--gh-border-strong); border-radius: var(--gh-radius); box-shadow: none; font-size: var(--gh-font-label); font-weight: 500; line-height: 1.35; text-decoration: none; white-space: normal; }
.platform-workspace-theme .button.primary { background: var(--gh-action); border-color: var(--gh-action); color: #fff; }
.platform-workspace-theme .button.primary:hover:not(:disabled) { background: var(--gh-action-hover); border-color: var(--gh-action-hover); }
.platform-workspace-theme :is(.button.secondary, .small-button) { background: #fff; color: var(--gh-text); }
.platform-workspace-theme :is(.button.secondary, .small-button):hover:not(:disabled) { background: var(--gh-surface-muted); border-color: var(--gh-border-strong); }
.platform-workspace-theme :is(input:not([type="checkbox"]):not([type="radio"]), select, textarea) { max-width: 100%; border-radius: 6px; box-shadow: none; background: #fff; color: var(--gh-text); border-color: var(--gh-border-strong); }
.platform-workspace-theme :is(input:not([type]), input[type="text"], input[type="search"], input[type="number"], input[type="email"], input[type="password"], input[type="url"], input[type="tel"], input[type="date"], input[type="datetime-local"], select) { min-width: 0; min-height: var(--gh-control-height); height: var(--gh-control-height); padding: 7px 10px; border: 1px solid var(--gh-border-strong); font-size: var(--gh-font-body); font-weight: 400; line-height: 1.4; }
.platform-workspace-theme textarea { padding: 10px 12px; font-size: var(--gh-font-body); font-weight: 400; line-height: 1.6; }
.platform-workspace-theme input:is([type="checkbox"], [type="radio"]) { width: 16px; height: 16px; min-height: 16px; margin: 0; accent-color: var(--gh-action); flex: 0 0 auto; }
.platform-workspace-theme :is(h2, h3) { letter-spacing: 0; }
.platform-workspace-theme h1 { font-size: var(--gh-font-title); }
.platform-workspace-theme h2 { font-size: var(--gh-font-section); }
.platform-workspace-theme h3 { font-size: 16px; }
.platform-workspace-theme :is(.component-object-list, .component-object-detail, .enterprise-panel, .panel-block, .semantic-panel, .substrate-panel, .supply-panel, .validation-panel, .commerce-admin-panel, .operations-panel, .academy-panel) { min-width: 0; border-radius: 0; background: #fff; box-shadow: none; }
.platform-workspace-theme :is(.component-object-list, .enterprise-panel, .substrate-panel, .supply-panel, .validation-panel, .commerce-admin-panel, .academy-panel) { border: 0; padding: 16px 0; }
.platform-workspace-theme :is(.component-library-layout, .authority-governance-layout, .substrate-layout, .validation-layout, .supply-layout, .semantic-layout, .enterprise-review-grid) { gap: 24px; min-width: 0; }
.platform-workspace-theme :is(.component-object-detail, .authority-gate-panel) { border-width: 0 0 0 1px; border-color: var(--gh-border); padding: 18px; }
.platform-workspace-theme :is(.component-object-metrics, .substrate-metrics, .supply-metrics, .validation-metrics, .enterprise-review-metrics, .semantic-metrics, .academy-metrics) { margin: 0; border: 0; gap: 0; background: none; }
.workspace-overview { border-block: 1px solid var(--gh-border); margin: 0 0 18px; }
.workspace-overview > summary { padding: 10px 2px; font-size: var(--gh-font-caption); color: var(--gh-muted); }
.workspace-overview > :not(summary) { padding-block: 8px; }
.platform-workspace-theme :is([role="tablist"], .component-object-tabs, .seller-status-tabs, .operations-workspace-tabs, .academy-tabs, .substrate-tabs) { gap: 6px; box-shadow: none; background: transparent; border-radius: 0; flex-wrap: wrap; }
.platform-workspace-theme :is([role="tablist"], .component-object-tabs, .seller-status-tabs) > button { min-height: var(--gh-control-height); padding: 8px 12px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--gh-muted); font-size: var(--gh-font-label); font-weight: 500; }
.platform-workspace-theme :is([role="tablist"], .component-object-tabs, .seller-status-tabs) > :is(.is-active, .active, [aria-selected="true"]) { border-bottom-color: var(--gh-text); background: none; color: var(--gh-text); }
.platform-workspace-theme table { width: 100%; border-collapse: collapse; font-size: var(--gh-font-body); }
.platform-workspace-theme table th { color: var(--gh-muted); background: var(--gh-surface-muted); font-size: var(--gh-font-caption); font-weight: 500; padding: 12px; text-align: left; }
.platform-workspace-theme table td { padding: 12px; border-bottom: 1px solid var(--gh-border); overflow-wrap: anywhere; }
.platform-workspace-theme :is(.component-object-table-wrap, .commerce-admin-table-wrap, .decision-bom-wrap) { overflow: auto; border: 0; border-radius: 0; }
.platform-workspace-theme table tr:is(.is-focused, .is-selected) { background: var(--gh-surface-muted); }
.platform-workspace-theme :is(.component-object-toolbar, .commerce-admin-toolbar) { border: 0; border-bottom: 1px solid var(--gh-border); background: none; padding: 12px 0; border-radius: 0; }
.platform-workspace-theme dialog { max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overflow: auto; padding: 24px; border: 1px solid var(--gh-border); border-radius: 8px; color: var(--gh-text); background: #fff; box-shadow: 0 16px 64px #0002; }
.platform-workspace-theme dialog::backdrop { background: #20242c60; }
.platform-workspace-theme :is(.decision-list-empty, .component-object-empty, .empty-state) { background: transparent; padding: 24px; color: var(--gh-muted); border: 0; font-size: var(--gh-font-label); }
/* Commerce retains its category, configuration and checkout controls. */
.platform-workspace-theme .mi-site-header { flex-wrap: wrap; padding: 14px 24px; }
.platform-workspace-theme .mi-masthead { display: flex; flex: 1; gap: 14px; min-height: 0; margin: 0; padding: 0; max-width: none; }
.platform-workspace-theme :is(.mi-wordmark, .mi-hot-keywords, .mi-quick-rail, .mi-shop-footer, .mi-bulk-order) { display: none !important; }
.platform-workspace-theme .mi-search-stack { flex: 1; }
.platform-workspace-theme .mi-header-search { width: 100%; min-height: 38px; height: auto; border: 1px solid var(--gh-border-strong); border-radius: 6px; background: #fff; box-shadow: none; }
.platform-workspace-theme .mi-header-search button { background: var(--gh-text); color: #fff; border: 0; }
.platform-workspace-theme .mi-header-cart { min-width: auto; padding: 8px 12px; background: #fff; color: var(--gh-text); border: 1px solid var(--gh-border); border-radius: 6px; font-size: var(--gh-font-label); }
.platform-workspace-theme.cad-marketplace-page > main { width: 100%; max-width: 1700px; padding: 20px 24px; }
.platform-workspace-theme :is(.mi-category-layout, .mi-catalog-layout, .cad-market-layout, .commerce-layout) { width: 100%; min-width: 0; gap: 20px; }
.platform-workspace-theme :is(.mi-category-sidebar, .mi-category-filter-sidebar, .mi-filter-sidebar, .cad-filter-panel) { background: #fff; border-color: var(--gh-border); box-shadow: none; }
.platform-workspace-theme :is(.cad-part-card, .cad-preview-panel, .mi-product-card, .mi-product-configurator, .commerce-product-card) { border-color: var(--gh-border); border-radius: 6px; box-shadow: none; background: #fff; }
.platform-workspace-theme :is(.mi-category-hero, .mi-catalog-hero, .mi-page-head, .cad-catalog-head) { background: #fff; color: var(--gh-text); border: 0; padding-block: 12px; box-shadow: none; }
.platform-workspace-theme .seller-layout { display: block; min-height: 0; padding: 0; }
.platform-workspace-theme .commerce-admin-sidebar { display: none; }
.platform-workspace-theme .seller-main { width: 100%; max-width: 1600px; min-width: 0; padding: 24px 28px; margin: 0 auto; }
.workspace-merchant-nav nav section > span, .workspace-merchant-nav nav button small { display: none; }
.workspace-merchant-nav nav button { background: none; border: 0; padding: 8px 10px; text-align: left; color: var(--gh-muted); width: 100%; border-radius: 5px; }
.workspace-merchant-nav nav button { font-size: var(--gh-font-label); min-height: var(--gh-control-height); }
.workspace-merchant-nav nav button.is-active { background: var(--gh-selected); color: var(--gh-text); }
.workspace-merchant-nav + .workspace-history { display: none; }
.platform-workspace-theme :is(.seller-welcome p, .seller-welcome > div > span, .seller-workflow, .seller-section > header span, .commerce-admin-panel-head > div > :is(span, p)) { display: none; }
.platform-workspace-theme :is(.seller-section, .commerce-admin-worklist, .seller-performance) { border: 0; border-bottom: 1px solid var(--gh-border); background: #fff; border-radius: 0; box-shadow: none; }
.platform-workspace-theme .seller-todo-grid { gap: 0; border-block: 1px solid var(--gh-border); }
.platform-workspace-theme .seller-todo-grid > button { border: 0; border-radius: 0; border-right: 1px solid var(--gh-border); background: #fff; box-shadow: none; }
.platform-workspace-theme .seller-todo-grid small { display: none; }
.platform-workspace-theme .seller-todo-grid > button:hover { background: var(--gh-surface-muted); }
.platform-workspace-theme .seller-todo-grid strong { color: var(--gh-text); font-weight: 600; }
.platform-workspace-theme .seller-todo-grid span { font-size: var(--gh-font-label); font-weight: 500; }
.platform-workspace-theme .commerce-admin-metrics :is(span, small) { font-size: var(--gh-font-caption); }
.platform-workspace-theme .seller-global-search { gap: 0; border: 1px solid var(--gh-border-strong); border-radius: var(--gh-radius); overflow: hidden; background: var(--gh-surface); }
.platform-workspace-theme .seller-global-search input { border: 0; background: transparent; }
.platform-workspace-theme .seller-global-search button { display: grid; place-items: center; width: var(--gh-control-height); min-width: var(--gh-control-height); padding: 0; border: 0; border-radius: 0; color: var(--gh-text); background: var(--gh-surface-muted); }
.platform-workspace-theme .seller-global-search button:hover { background: var(--gh-surface-hover); }
.platform-workspace-theme .account-shell { max-width: 1050px; }
.platform-workspace-theme .account-auth-workspace { display: block; max-width: 540px; margin: 20px auto; border: 0; background: transparent; box-shadow: none; }
.platform-workspace-theme .account-auth-tabs { display: flex; flex-direction: row; border: 0; border-bottom: 1px solid var(--gh-border); padding: 0; }
.platform-workspace-theme .account-auth-tabs button { flex: 1; border: 0; border-radius: 0; padding: 12px; background: #fff; }
.platform-workspace-theme .account-auth-tabs button.active { border-bottom: 2px solid #1769df; color: #1769df; }
.platform-workspace-theme .account-auth-tabs button span { display: none; }
.platform-workspace-theme .account-auth-stage { padding: 24px 0; border: 0; }
.platform-workspace-theme .account-panel-title h2 { font-size: 20px; }
.platform-workspace-theme .account-register-mode button > span { display: none; }
.platform-workspace-theme .account-login-register { background: #fff; border-top: 1px solid var(--gh-border); border-radius: 0; padding: 16px 0; }
.platform-workspace-theme :is(.operations-center-layout, .semantic-hub-layout, .nas-dsm-layout) { min-width: 0; }
.platform-workspace-theme .academy-main :is(.academy-topic-card, .academy-assessment-card) { border-radius: 6px; box-shadow: none; }
.platform-workspace-theme .cad-viewer { border-radius: 0; }
.platform-workspace-theme :is(.cad-viewer-actions, .cad-viewer-presets) { max-width: 100%; border: 1px solid var(--gh-border-strong); border-radius: var(--gh-radius); background: var(--gh-surface); box-shadow: none; }
.platform-workspace-theme .cad-viewer-actions { flex-wrap: wrap; }
.platform-workspace-theme .cad-viewer-controls button { width: var(--gh-control-height); min-width: var(--gh-control-height); height: var(--gh-control-height); padding: 0; color: var(--gh-text); font-family: inherit; font-size: var(--gh-font-caption); font-weight: 500; line-height: 1.4; border-right: 1px solid var(--gh-border); }
.platform-workspace-theme .cad-viewer-presets button { width: auto; padding-inline: 10px; font-family: inherit; font-size: var(--gh-font-caption); font-weight: 500; }
.platform-workspace-theme .cad-viewer-controls button:hover { background: var(--gh-surface-muted); color: var(--gh-text); }
.platform-workspace-theme .cad-viewer-controls button:focus-visible { outline: 2px solid var(--gh-primary); outline-offset: -3px; }
.platform-workspace-theme .cad-viewer-controls button:is(.is-active, [aria-pressed="true"]) { background: var(--gh-action); color: #fff; }
@media (max-width: 1150px) {
  body.platform-workspace-theme { --workspace-sidebar: 184px; --gh-page-gutter: 20px; }
  .platform-workspace-theme > main, .platform-workspace-theme main:is(.decision-app, .workspace-home-main, .component-library-main, .substrate-main, .supply-main, .validation-main, .academy-main, .semantic-hub-main, .enterprise-review-main) { padding-inline: 20px; }
  .platform-workspace-theme :is(.component-library-layout, .authority-governance-layout, .enterprise-review-grid) { grid-template-columns: minmax(0, 1fr); }
  .platform-workspace-theme .component-object-detail { border: 0; border-top: 1px solid var(--gh-border); }
}
@media (max-width: 800px) {
  body.platform-workspace-theme, body.platform-workspace-theme.workspace-sidebar-compact { padding-left: 0; --workspace-sidebar: 248px; --gh-page-gutter: 16px; --gh-control-height: 44px; --gh-control-compact: 36px; --gh-font-title: 21px; }
  body.workspace-navigation-open { overflow: hidden; }
  .workspace-sidebar nav > a, .workspace-sidebar details > summary { min-height: var(--gh-control-height); }
  .workspace-sidebar { transform: translateX(-100%); }
  .workspace-navigation-open .workspace-sidebar { transform: translateX(0); }
  .workspace-mobile-menu { display: inline-flex !important; }
  .workspace-navigation-open .workspace-sidebar-backdrop { display: block !important; position: fixed; inset: 0; width: 100%; border: 0; background: #20242c66; z-index: 75; }
  .workspace-sidebar-compact .workspace-brand { display: block; }
  .workspace-sidebar-compact .workspace-version { display: block; }
  .workspace-sidebar-compact :is(.workspace-history, .workspace-tools, .workspace-admin, .workspace-account-menu, .workspace-merchant-nav, .workspace-sidebar a > span) { display: revert; }
  .workspace-sidebar-compact .workspace-sidebar nav > a { justify-content: flex-start; }
  .platform-workspace-theme .workspace-topbar { padding: 10px 16px; min-height: 54px; gap: 8px; }
  .platform-workspace-theme > main, .platform-workspace-theme main:is(.decision-app, .workspace-home-main, .component-library-main, .substrate-main, .supply-main, .validation-main, .academy-main, .semantic-hub-main, .enterprise-review-main, .account-shell, .seller-main) { padding: 20px 16px 32px; }
  .platform-workspace-theme :is(.page-head, .decision-page-head, .seller-pagebar, .account-page-head) h1 { font-size: 21px; }
  .platform-workspace-theme :is(.page-head, .decision-page-head, .seller-pagebar) { flex-wrap: wrap; gap: 12px; }
  .platform-workspace-theme .workspace-topbar .seller-global-search { width: 100%; max-width: 320px; }
  .platform-workspace-theme .mi-site-header > .workspace-page-label { display: none; }
  .platform-workspace-theme .mi-header-search select, .platform-workspace-theme .mi-header-cart { display: none; }
  .platform-workspace-theme .mi-masthead { min-width: 0; }
  .platform-workspace-theme :is(.mi-masthead, .mi-search-stack, .mi-header-search input) { min-width: 0; }
  .platform-workspace-theme .account-form-grid { grid-template-columns: 1fr; }
  .platform-workspace-theme .account-register-mode { grid-template-columns: 1fr 1fr; }
  .platform-workspace-theme .seller-todo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platform-workspace-theme .seller-page-actions { justify-content: flex-start; }
  .platform-workspace-theme dialog { padding: 18px; }
}
.platform-workspace-theme .workspace-home-main { max-width: 1040px; padding-top: 40px; }
.home-start { max-width: 730px; margin: 0 auto; }
.home-start h1 { font-size: var(--gh-font-title); font-weight: 600; margin: 0 0 24px; }
.home-composer { border: 1px solid var(--gh-border-strong); border-radius: var(--gh-radius-panel); padding: 16px; background: var(--gh-surface); }
.home-composer:focus-within { border-color: var(--gh-muted); box-shadow: 0 0 0 1px var(--gh-border); }
.home-composer textarea { display: block; width: 100%; border: 0 !important; padding: 4px; resize: vertical; min-height: 90px; max-height: 320px; outline: none; font-size: 15px !important; }
.home-composer-tools { display: flex; align-items: center; gap: 8px; }
.home-input-mode { display: flex; gap: 2px; background: var(--gh-surface-muted); padding: 3px; border-radius: var(--gh-radius); }
.home-input-mode button { border: 0; background: none; border-radius: 4px; font-size: var(--gh-font-label); min-height: var(--gh-control-compact); padding: 5px 10px; color: var(--gh-muted); }
.home-input-mode button.is-active { background: var(--gh-surface); color: var(--gh-text); }
.home-send { margin-left: auto; border: 0; background: var(--gh-action); color: #fff; border-radius: 50%; width: var(--gh-control-height); height: var(--gh-control-height); flex-shrink: 0; padding: 0; display: flex; align-items: center; justify-content: center; }
.home-send:hover:not(:disabled) { background: var(--gh-action-hover); }
#homeFilename { color: var(--gh-muted); font-size: var(--gh-font-caption); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 240px; }
.home-message { min-height: 20px; color: var(--gh-muted); font-size: var(--gh-font-caption); }
.home-message[data-error="true"] { color: var(--gh-danger); }
.home-attachment { display: flex; align-items: center; gap: 8px; margin: 4px 0 12px; padding: 8px 0; min-width: 0; }
.home-attachment > .lucide { flex-shrink: 0; width: 20px; }
.home-attachment #homeFilename { max-width: none; flex: 1; }
.home-attachment .workspace-icon { flex: 0 0 32px; }
.home-recent-controls { display: flex; align-items: center; gap: 8px; }
.home-composer #homeInputMode { width: auto; min-width: 0; max-width: calc(100% - 104px); border: 0; font-size: var(--gh-font-label); background: var(--gh-surface-muted); padding: 7px; }
.home-send:disabled { opacity: .4; cursor: wait; }
.home-catalog-link { display: inline-flex; gap: 8px; align-items: center; color: var(--gh-muted); font-size: var(--gh-font-label); text-decoration: none; }
.home-shortcuts { display: flex; flex-wrap: wrap; gap: 12px 24px; padding-block: 4px 16px; border-bottom: 1px solid var(--gh-border); }
.home-catalog-link:hover { color: var(--gh-text); text-decoration: underline; }
.home-task-count { margin-left: 8px; font-size: 12px; color: var(--gh-muted); }
.home-more { margin-top: 16px; }
.home-recent-section { max-width: 730px; margin: 32px auto 0; }
.home-recent-section > header { display: flex; align-items: center; justify-content: space-between; }
.home-recent-section > header { flex-wrap: wrap; gap: 8px; }
.home-recent-section h2 { font-size: var(--gh-font-label); color: var(--gh-muted); font-weight: 500; }
.home-task-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 140px 140px; gap: 12px; margin: 16px 0 4px; }
.home-task-toolbar label { min-width: 0; }
.home-task-toolbar input, .home-task-toolbar select { width: 100%; min-width: 0; height: 36px; font-size: var(--gh-font-body); font-weight: 400; }
.home-task-search { position: relative; }
.home-task-search > svg { position: absolute; left: 10px; top: 9px; width: 18px; height: 18px; color: var(--gh-muted); pointer-events: none; }
.platform-workspace-theme .home-task-search input[type="search"] { padding-left: 36px; }
.home-task-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--gh-border); }
.home-task-copy { min-width: 0; }
.home-task-title { color: var(--gh-text); text-decoration: none; }
.home-task-title:hover { text-decoration: underline; }
.home-recent-list strong { display: block; font-size: var(--gh-font-body); font-weight: 500; overflow-wrap: anywhere; }
.home-task-detail { margin: 6px 0 0; font-size: var(--gh-font-label); color: var(--gh-muted); overflow-wrap: anywhere; }
.home-task-row[data-stage="resolve"] .home-task-detail { color: var(--gh-warning); }
.home-task-actions { display: flex; align-items: center; gap: 8px; }
.home-task-next { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 36px; padding: 0 8px; color: var(--gh-text); text-decoration: none; font-weight: 500; border-radius: 6px; }
.home-task-next:hover { background: var(--gh-surface-muted); }
.home-task-next svg { width: 18px; height: 18px; flex: 0 0 18px; }
.home-recent-list small { display: block; color: var(--gh-muted); font-size: var(--gh-font-caption); margin-top: 4px; }
#homeLoadMessage { color: var(--gh-muted); font-size: var(--gh-font-label); }
.workspace-form-recovery { display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--gh-muted); font-size: var(--gh-font-label); margin-top: 12px; }
.workspace-form-recovery[data-error="true"] { color: var(--gh-danger, #b3261e); }
@media (max-width: 800px) {
  .platform-workspace-theme .workspace-home-main { padding-top: 32px; }
  .home-task-toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
  .home-task-search { grid-column: 1 / -1; }
  .home-task-toolbar input, .home-task-toolbar select, .home-task-next { min-height: 44px; }
  .home-task-search > svg { top: 13px; }
  .home-task-row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .home-task-actions { justify-content: flex-end; }
}
@media (max-width: 420px) { .home-task-toolbar { grid-template-columns: minmax(0, 1fr); } }
@media (prefers-reduced-motion: reduce) { .workspace-sidebar { transition: none; } }
.platform-workspace-theme .workspace-account-controls .mi-account-summary { display: grid; gap: 10px; }
.workspace-account-controls .mi-account-summary > span { display: none; }
.workspace-account-controls .mi-account-entry { display: flex; gap: 8px; text-decoration: none; }
.workspace-account-controls .mi-account-entry small { display: block; }
.platform-workspace-theme .workspace-shape-filter { margin-bottom: 20px; border-bottom: 1px solid var(--gh-border); }
.workspace-shape-filter > summary { padding: 10px 0; font-size: var(--gh-font-caption); color: var(--gh-muted); }
.platform-workspace-theme .misumi-catalog-shell { grid-template-columns: 190px minmax(0,1fr); border: 0; border-radius: 0; gap: 24px; background: #fff; box-shadow: none; }
.platform-workspace-theme .misumi-catalog-sidebar { border: 0; border-right: 1px solid var(--gh-border); border-radius: 0; background: #fff; padding-right: 18px; }
.platform-workspace-theme :is(.misumi-category-panel,.misumi-filter-panel) { background: #fff; border: 0; padding: 0 0 16px; }
.platform-workspace-theme .misumi-panel-heading { background: #fff; border: 0; padding: 12px 0; }
.platform-workspace-theme .misumi-panel-heading > div > span { display: none; }
.platform-workspace-theme .misumi-panel-heading h2 { font-size: var(--gh-font-body); }
.platform-workspace-theme .misumi-result-list { padding: 0; gap: 0; background: #fff; }
.platform-workspace-theme .misumi-result-toolbar { padding: 0 0 12px; background: #fff; }
.platform-workspace-theme .misumi-result-toolbar p { max-width: 340px; font-size: var(--gh-font-caption); }
.platform-workspace-theme .misumi-product-row { border: 0; border-bottom: 1px solid var(--gh-border); border-radius: 0; background: #fff; padding: 20px 0; }
.platform-workspace-theme .misumi-product-main h2 { color: var(--gh-text); font-size: 17px; }
.platform-workspace-theme .workspace-cart-drawer { position: fixed; inset: 0 0 0 auto; width: min(370px,100%); z-index: 110; max-height: 100dvh; overflow: auto; display: block; background: #fff; border-left: 1px solid var(--gh-border); border-radius: 0; padding-top: 45px; box-shadow: -12px 0 40px #0001; }
.workspace-cart-close { position: absolute; top: 8px; right: 12px; }
.platform-workspace-theme .nas-dsm-shell { display: block; border: 0; background: none; box-shadow: none; }
.platform-workspace-theme .nas-dsm-sidebar { padding: 0; margin-bottom: 16px; background: #fff; border: 0; }
.platform-workspace-theme :is(.nas-device-identity,.nas-sidebar-health) { display: none; }
.platform-workspace-theme .nas-dsm-navigation { display: flex; flex-wrap: wrap; border-bottom: 1px solid var(--gh-border); gap: 12px; padding: 0; }
.platform-workspace-theme .nas-dsm-navigation button { display: inline-flex; width: auto; background: none; color: var(--gh-muted); padding: 10px 8px; border-radius: 0; border: 0; border-bottom: 2px solid transparent; box-shadow: none; }
.platform-workspace-theme .nas-dsm-navigation button.is-active { color: var(--gh-text); border-bottom-color: var(--gh-text); background: none; }
.platform-workspace-theme .nas-dsm-navigation button > span { display: none; }
.platform-workspace-theme .nas-dsm-navigation b { font-size: var(--gh-font-label); font-weight: 500; }
.platform-workspace-theme .nas-dsm-head h1 { font-size: 24px; }
.platform-workspace-theme .nas-dsm-head { border: 0; padding: 0 0 16px; background: transparent; }
.platform-workspace-theme .nas-overview-grid { background: transparent; padding: 0; }
.platform-workspace-theme :is(.nas-view-heading > div > span, .nas-surface > header > div > span) { display: none; }
.platform-workspace-theme :is(.nas-dsm-kicker,.nas-dsm-head > div > p) { display: none; }
.platform-workspace-theme .nas-dsm-workspace { background: #fff; padding: 0; }
.platform-workspace-theme :is(.nas-surface,.nas-sync-workspace,.nas-protection-banner,.fnos-connection-panel) { background: #fff; border-radius: 0; box-shadow: none; border: 0; border-bottom: 1px solid var(--gh-border); }
.platform-workspace-theme :is(.nas-overview-grid,.nas-enterprise-layout,.nas-protection-layout) { gap: 24px; }
.platform-workspace-theme :is(.panel,.panel-block,.operations-workspace,.operations-control-metrics,.operations-module-card,.metrics,.nas-metric-strip) { border-radius: 0; box-shadow: none; background: #fff; }
@media (max-width: 1180px) {
  .platform-workspace-theme .misumi-catalog-shell { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .platform-workspace-theme .misumi-catalog-sidebar { border: 0; }
}
@media (max-width: 800px) {
  .platform-workspace-theme :is(.nas-overview-grid,.nas-enterprise-layout,.nas-protection-layout) { grid-template-columns: minmax(0,1fr); }
  .platform-workspace-theme .nas-dsm-head { display: flex; flex-wrap: wrap; gap: 12px; }
  .platform-workspace-theme .nas-dsm-head h1 { font-size: 21px; }
}
.platform-workspace-theme .sr-only { left: 0; top: 0; }
.platform-workspace-theme :is(.substrate-table-wrap,.validation-table-wrap) { position: relative; max-width: 100%; }
.platform-workspace-theme :is(.page-head,.decision-page-head,.nas-dsm-head) { text-align: left; justify-content: space-between; }
.platform-workspace-theme .component-library-layout[data-object-view-panel="catalog"] { grid-template-columns: minmax(0,1fr); }
.platform-workspace-theme .component-library-layout.has-object-inspector { grid-template-columns: minmax(0,1fr) 360px; }
.platform-workspace-theme #objectDetail { position: sticky; top: 0; max-height: 100dvh; overflow: auto; padding-top: 42px; }
.object-inspector-close { position: absolute; top: 4px; right: 8px; }
.object-inspector-section { padding: 12px 0; border-top: 1px solid var(--gh-border); }
.object-inspector-section > summary { font-size: var(--gh-font-label); color: var(--gh-muted); }
.platform-workspace-theme .seller-welcome { padding: 8px 0; border: 0; background: none; min-height: 0; }
.platform-workspace-theme .seller-section-head > span { display: none; }
.platform-workspace-theme .mi-header-search { display: flex; align-items: stretch; }
.platform-workspace-theme .mi-header-search input { flex: 1; min-width: 0; width: auto; }
.platform-workspace-theme .mi-header-search select { flex: 0 1 110px; width: 110px; }
.platform-workspace-theme .mi-header-search button { flex: 0 0 44px; width: 44px; min-width: 44px; padding: 8px; }
@media (max-width: 1180px) {
  .platform-workspace-theme .component-library-layout.has-object-inspector { grid-template-columns: minmax(0,1fr); }
  .platform-workspace-theme #objectDetail:not([hidden]) { position: fixed; inset: 0 0 0 auto; width: min(400px,100%); z-index: 100; background: #fff; box-shadow: -12px 0 40px #0001; }
}
html.workspace-booting body { visibility: hidden; }
html.workspace-booting { background: #fff; }
.procurement-followup, .procurement-next-step { padding: 16px; border-top: 1px solid #e5e5e5; }
.procurement-followup h3 { font-size: 15px; margin: 0 0 12px; }
.procurement-followup label { display: grid; gap: 6px; font-size: 13px; min-width: 0; }
.procurement-followup input, .procurement-followup textarea { box-sizing: border-box; width: 100%; min-width: 0; border: 1px solid #d4d4d4; border-radius: 6px; padding: 10px; background: #fff; color: #202020; font: inherit; }
.procurement-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 12px; }
.procurement-followup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.procurement-thread article { border-bottom: 1px solid #ededed; padding: 10px 0; overflow-wrap: anywhere; }
.procurement-thread p { white-space: pre-wrap; margin: 6px 0; }
.procurement-thread small { color: #666; }
.procurement-next-step { font-size: 14px; }
#commerceProductAttachments { overflow-wrap: anywhere; }
@media (max-width: 480px) { .procurement-contact-fields { grid-template-columns: 1fr; } }
