/* UI03: readable at normal browser zoom; grow type gently with the viewport. */
.execution-status{position:sticky;top:0;z-index:4;margin:0 0 20px;padding:14px 16px;border:1px solid #d5e3f4;border-radius:12px;background:#f9fcff;box-shadow:0 4px 16px #17385c08}
.muse-workbench main:has(>.execution-status:not([hidden])){scroll-padding-top:176px}
.execution-heading{display:flex;align-items:center;gap:14px;min-width:0;margin-bottom:10px;font-size:16px;color:#2b4666}
.execution-heading>strong{flex:none}.execution-heading>span{color:#617b9a;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
.execution-stages{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.execution-stage{min-width:0;padding:10px 12px;border:1px solid #e0e8f2;border-radius:8px;background:#fff;color:#7c8da4}
.execution-stage-title{display:flex;align-items:center;flex-wrap:wrap;gap:5px 7px;font-size:16px;line-height:1.5}
.execution-stage-title>b{font-weight:600}.execution-stage-title>span{margin-left:auto;font-size:14px;white-space:nowrap}
.execution-dot{width:8px;height:8px;border-radius:50%;background:#b7c4d5;flex:none}
.execution-detail{margin-top:5px;font-size:14px;line-height:1.6;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.execution-stage[data-state="RUNNING"]{border-color:#83b2fa;background:#edf5ff;color:#1466d6}.execution-stage[data-state="RUNNING"] .execution-dot{background:#2177e8;animation:execution-pulse 1.2s ease-in-out infinite}
.execution-stage[data-state="DONE"]{border-color:#b5dfd0;color:#28765e;background:#f4fbf7}.execution-stage[data-state="DONE"] .execution-dot{background:#3f9c76}
.execution-stage[data-state="WAITING"],.execution-stage[data-state="UNKNOWN"]{border-color:#e9d8ad;color:#8d6c27;background:#fffcf4}.execution-stage:is([data-state="WAITING"],[data-state="UNKNOWN"]) .execution-dot{background:#c99732}
.execution-stage[data-state="FAILED"]{border-color:#ecc4c0;color:#b34b47;background:#fff7f6}.execution-stage[data-state="FAILED"] .execution-dot{background:#ce5a55}
[data-module][data-execution-state="RUNNING"]::after{content:"";width:7px;height:7px;border-radius:50%;background:currentColor;display:inline-block;margin-left:5px;animation:execution-pulse 1.2s ease-in-out infinite}
@keyframes execution-pulse{50%{opacity:.3;box-shadow:0 0 0 4px #2679e51a}}
@media(prefers-reduced-motion:reduce){.execution-dot,[data-module][data-execution-state="RUNNING"]::after{animation:none!important}}
@media(max-width:1100px){.execution-status{padding:10px 12px}.execution-stages{gap:7px}.execution-stage{padding:8px}.execution-stage-title{font-size:15px}.execution-stage-title>span{flex-basis:100%;margin-left:15px}.execution-heading{gap:10px}}
:root {
  --reading-text: clamp(18px, calc(14px + .3125vw), 22px);
  --reading-secondary: clamp(16px, calc(12px + .3125vw), 20px);
  --reading-control: clamp(17px, calc(14px + .234375vw), 20px);
  --reading-title: clamp(30px, calc(24px + .625vw), 40px);
  --reading-section: clamp(22px, calc(18px + .3125vw), 28px);
}
.muse-workbench, .muse-profit { font-size: var(--reading-text); line-height: 1.65; }
.muse-workbench main :where(p,label,input,select,textarea,summary,td,th,dt,dd),
.muse-profit main :where(p,label,input,select,textarea,summary,td,th,dt,dd) {
  font-size: var(--reading-text) !important;
  line-height: 1.65;
}
.muse-workbench main :where(h1), .muse-profit main :where(h1) {
  font-size: var(--reading-title) !important; line-height: 1.3;
}
.muse-workbench main :where(h2), .muse-profit main :where(h2) {
  font-size: var(--reading-section) !important; line-height: 1.4;
}
.muse-workbench main :where(h3), .muse-profit main :where(h3) {
  font-size: var(--reading-text) !important; line-height: 1.5;
}
.muse-workbench main :where(button,.button), .muse-profit main :where(button,.btn) {
  font-size: var(--reading-control) !important; line-height: 1.5; min-height: 44px;
}
/* Compact sidebar matches the Owner's latest reference; main content stays large. */
.muse-workbench:not(.muse-sidebar-collapsed) .sidebar,
.muse-profit:not(.muse-sidebar-collapsed) .muse-profit-sidebar {
  padding: 26px 10px;
  background: linear-gradient(#102b4d,#0b2039);
}
.muse-workbench .sidebar nav a,
.muse-profit .muse-profit-sidebar nav a {
  font-size: 14px !important; font-weight: 600; line-height: 22px;
  min-height: 48px; gap: 10px; color: #c1d4ef !important;
}
.muse-workbench .sidebar nav a:hover,
.muse-profit .muse-profit-sidebar nav a:hover {
  color: #fff !important; background: #ffffff0b;
}
.muse-workbench .sidebar nav a.active,
.muse-profit .muse-profit-sidebar nav a.active {
  color: #fff !important; background: #2d7fe8;
  box-shadow: 0 7px 18px #001b3a35;
}
.muse-workbench .sidebar .ref-nav-label, .muse-profit-sidebar .ref-nav-label {
  font-size: inherit !important; line-height: 22px; white-space: nowrap;
  text-wrap: nowrap; word-break: normal; overflow-wrap: normal;
}
.muse-workbench .sidebar nav a span,
.muse-profit .muse-profit-sidebar nav a span {
  color: inherit; opacity: 1;
}
.muse-workbench:not(.muse-sidebar-collapsed) .sidebar>.brand,
.muse-profit:not(.muse-sidebar-collapsed) .muse-profit-sidebar>.muse-brand {
  position: static; display: block; background: none; box-shadow: none;
  margin: 0 14px 26px; padding: 0 0 18px;
  border-bottom: 1px solid #ffffff13;
  font-size: 18px !important; font-weight: 700; line-height: 26px;
  color: #9db3cd;
}
.muse-workbench:not(.muse-sidebar-collapsed) .sidebar>.brand .brand-icon,
.muse-workbench .sidebar .brand small,
.muse-workbench .sidebar .side-caption,
.muse-profit:not(.muse-sidebar-collapsed) .muse-profit-sidebar>.muse-brand>span {
  display: none;
}
.muse-workbench .sidebar .side-bottom,
.muse-workbench .sidebar .side-bottom small,
.muse-workbench .ref-context-services a {
  font-size: 12px; color: #9db3cd;
}
.muse-workbench .ref-plan-login { margin-left: auto; font-size: var(--reading-control); min-height: 44px; }
.muse-workbench .ref-plan-return { font-size: var(--reading-control); }
.muse-workbench .ref-context-nav a>.ref-nav-icon,
.muse-workbench .sidebar nav a>.ref-nav-icon,
.muse-profit-sidebar nav a>.ref-nav-icon { display: grid; font-size: 12px; }
.muse-workbench .muse-modules a, .muse-profit .muse-modules a,
.muse-workbench .topbar .button, .muse-profit .top .btn {
  font-size: var(--reading-control) !important; line-height: 1.35;
  min-height: 36px; padding: 6px 10px !important;
}
.muse-workbench .topbar>.muse-modules, .muse-profit .muse-modules {
  height: 44px; min-height: 44px; padding: 3px;
  width: max-content; min-width: 0; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none;
}
.muse-modules::-webkit-scrollbar { display: none; }
.muse-workbench .muse-modules a, .muse-profit .muse-modules a { flex-shrink: 0; }
.muse-workbench .topbar .muse-fullscreen, .muse-profit .top .muse-fullscreen {
  font-size: var(--reading-control) !important;
}
.muse-workbench .breadcrumb, .muse-workbench .breadcrumb strong,
.muse-profit .muse-profit-breadcrumb, .muse-profit .muse-profit-breadcrumb strong {
  font-size: var(--reading-control); line-height: 1.45;
}
/* Keep the existing login action visible; it was hidden by the reference layout. */
.muse-workbench .top-actions #open-login:not([hidden]),
.muse-workbench .top-actions #logout:not([hidden]) { display: inline-flex; }
.muse-workbench .top-actions #open-login:not([hidden]), .muse-profit #profit-login:not([hidden]) {
  display: inline-flex; align-items: center; justify-content: center;
  background: #176bdc; color: #fff; border-color: #176bdc;
}
.muse-workbench .topbar>.muse-modules, .muse-profit .muse-modules {
  flex: 1 1 auto;
}
.muse-workbench .topbar>.button, .muse-profit .top>.btn { flex: 0 0 auto; }
.muse-workbench .muse-fullscreen, .muse-profit .muse-fullscreen { display: inline-flex !important; align-items: center; justify-content: center; }
.muse-login-side>.muse-fullscreen { position:absolute; right:80px; top:15px; }
.muse-workbench .ref-plan-brand { gap:10px; flex-wrap:wrap; height:auto!important; min-height:44px; }
.muse-viewport-note { z-index:10000; }
.muse-viewport-note p { margin:0 0 12px; }
.profit-login-dialog {
  width:min(560px,90vw); max-width:90vw; max-height:calc(100dvh - 40px);
  overflow:auto; border:1px solid #c7d9f0; border-radius:20px;
  padding:28px; color:#24374c; background:#fbfdff; box-shadow:0 18px 60px #0e2b5140;
  font-size:var(--reading-text);
}
.profit-login-dialog::backdrop { background:#0c213d80; backdrop-filter:blur(3px); }
.profit-login-heading { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.profit-login-heading h2 { margin:0 auto 0 0; font-size:var(--reading-section); }
.profit-login-dialog p { line-height:1.65; font-size:var(--reading-secondary); }
.muse-profit .profit-login-dialog .grid.three { grid-template-columns:1fr; gap:16px; }
.muse-profit .profit-login-dialog label { display:block; margin-bottom:6px; font-size:var(--reading-text); }
.muse-profit .profit-login-dialog input { width:100%; min-height:50px; font:inherit; padding:10px 12px; }
.profit-login-dialog .btn,.profit-login-dialog .button { min-height:44px; font-size:var(--reading-control); white-space:nowrap; }
.profit-login-feedback { color:#905419; }
.muse-workbench main .muted, .muse-workbench main small,
.muse-profit main .muted, .muse-profit main small,
.muse-workbench .pill, .muse-profit .small,
.muse-workbench main .empty, .muse-workbench .history-row,
.muse-workbench .muse-plan-footer small, .muse-workbench .ref-recommendation,
.muse-workbench .ref-recommendation>span {
  font-size: var(--reading-secondary) !important; line-height: 1.7; color: #536780;
}
.muse-workbench .page-heading p, .muse-profit .heading p,
.muse-workbench .notice, .muse-workbench .notice>p,
.muse-workbench .notice>strong, .muse-profit .notice,
.muse-profit main>.notice>p, .muse-profit main>.notice>strong {
  font-size: var(--reading-text) !important; line-height: 1.7;
}
.muse-workbench .notice>p, .muse-profit main>.notice>p { color: #526782; }
.muse-workbench .stats article>span, .muse-workbench .stats small {
  font-size: var(--reading-secondary) !important; line-height: 1.65;
}
.muse-workbench .stats strong { font-size: clamp(34px,2.1vw,42px) !important; line-height: 1.15; }
.muse-workbench[data-ref-view="radar"] .stats strong { margin: 12px 0 8px; }
.muse-workbench[data-ref-view="radar"] .stats article { min-height: 164px; }
.muse-workbench .ref-rule-tabs { flex-wrap: wrap; align-items: flex-end; }
.muse-workbench .ref-rule-tabs button { padding: 10px 15px; }
.muse-workbench .ref-rule-tabs label { min-width: 180px; max-width: 100%; margin-bottom: 0; }
.muse-workbench #rule-list.empty, .muse-workbench #selection-list.empty { padding: 0; }
.muse-workbench #rule-list.empty>.empty, .muse-workbench #selection-list.empty>.empty { margin: 0; padding: 24px 0; }
.muse-workbench main input:not([type=checkbox]):not([type=radio]),
.muse-workbench main select, .muse-profit main input:not([type=checkbox]):not([type=radio]),
.muse-profit main select { height: auto; min-height: 50px; padding: 10px 12px; }
.muse-workbench main textarea, .muse-profit main textarea { min-height: 100px; }
.muse-workbench .record .record-top, .muse-workbench .panel-heading,
.muse-workbench .muse-local-tabs { flex-wrap: wrap; }
.muse-workbench .muse-plan-card, .muse-workbench .muse-period,
.muse-workbench .muse-account-banner { height: auto !important; }
.muse-workbench .muse-plan-card { min-height: 250px; }
.muse-workbench .muse-plan-card p, .muse-workbench .ref-material-options small,
.muse-workbench .muse-account-banner p, .muse-workbench .muse-account-banner span {
  font-size: var(--reading-secondary) !important; line-height: 1.7;
}
.muse-workbench .muse-plan-card h2, .muse-workbench .muse-period h2 {
  font-size: var(--reading-section) !important; line-height: 1.4 !important;
}
.muse-workbench .muse-steps, .muse-profit .muse-steps {
  flex-wrap: wrap; row-gap: 16px;
}
.muse-workbench .muse-steps a, .muse-profit .muse-steps a,
.muse-workbench .ref-chip-options button, .muse-workbench .muse-local-tabs a {
  font-size: var(--reading-control) !important; line-height: 1.5;
}
.muse-workbench .ref-material-options>b, .muse-profit .ref-erp-strip b {
  font-size: var(--reading-text);
}
.muse-workbench .muse-summary :where(p,dt,dd,button,.button),
.muse-workbench .muse-summary .notice p {
  font-size: var(--reading-control) !important; line-height: 1.65;
}
.muse-workbench .muse-summary dl>div { gap: 14px; align-items: start; }
.muse-workbench .muse-summary dd { max-width: 68%; }
.muse-workbench .muse-summary-hero h3 { height: auto; line-height: 1.5; }
.muse-workbench .muse-login-card label, .muse-workbench .muse-login-card input,
.muse-workbench .muse-login-card button, .muse-workbench .muse-login-card>p {
  font-size: var(--reading-text) !important; line-height: 1.6;
}
.muse-workbench .muse-login-help, .muse-workbench .muse-login-note,
.muse-workbench .ref-owner-otp summary {
  font-size: var(--reading-secondary) !important; line-height: 1.7;
}
.muse-workbench .muse-login-card input { height: auto; min-height: 54px; padding: 10px 14px; }
.muse-workbench .muse-login-card #login-feedback { font-size: var(--reading-secondary); line-height: 1.7; }
.muse-profit .metric span, .muse-profit .metric em,
.muse-profit .row-head strong, .muse-profit .result-note,
.muse-workbench .ref-security-stats span, .muse-workbench .ref-security-stats small,
.muse-workbench .support-message strong, .muse-workbench .support-message p {
  font-size: var(--reading-secondary) !important; line-height: 1.7;
}
.muse-profit .metric strong { font-size: clamp(28px,2vw,40px); line-height: 1.4; }
.muse-workbench .muse-account-banner strong { font-size: var(--reading-text); line-height: 1.6; }
.muse-workbench footer { font-size: var(--reading-secondary); padding: 8px 20px; }
/* Short actions size to their own wording. Wrap whole controls, never the label. */
.muse-profit .ref-profit-actions {
  width: auto; max-width: 100%; min-width: 0; gap: 8px;
  flex-wrap: wrap; align-items: center;
}
.muse-profit .ref-profit-actions>.btn {
  flex: 0 0 auto; width: auto; min-width: max-content;
  min-height: 46px; height: auto; padding: 10px 12px;
  white-space: nowrap; word-break: keep-all; overflow-wrap: normal;
  line-height: 1.5;
}
.muse-profit main .btn, .muse-workbench .actions .button,
.muse-workbench .ref-heading-actions .button,
.muse-workbench .ref-account-actions button,
.muse-workbench .ref-security-actions .button,
.muse-workbench .muse-dialog-footer .button,
.muse-workbench .ref-chip-options button {
  white-space: nowrap; word-break: keep-all; overflow-wrap: normal;
}
.muse-workbench .ref-heading-actions, .muse-workbench .ref-account-actions,
.muse-workbench .ref-security-actions { max-width: 100%; flex-wrap: wrap; }
.muse-workbench .ref-heading-actions>.button,
.muse-workbench .ref-account-actions>button,
.muse-workbench .ref-security-actions>.button { flex: 0 0 auto; }
.muse-workbench .muse-plan-footer, .muse-workbench .muse-dialog-footer { flex-wrap: wrap; }
.muse-workbench .muse-plan-footer>.button,
.muse-workbench .muse-dialog-footer>.button { white-space: nowrap; flex: 0 0 auto; }
.muse-workbench .actions .download-action {
  max-width: 100%; white-space: normal; word-break: normal; overflow-wrap: anywhere;
}
@media(max-width:1360px) {
  .muse-workbench .breadcrumb, .muse-profit .muse-profit-breadcrumb { display: none; }
  .muse-workbench .topbar>.muse-modules, .muse-profit .muse-modules { margin-right: auto; }
  .muse-workbench .top-actions #actor-name, .muse-workbench .top-actions .muse-service-link,
  .muse-workbench .muse-modules>span, .muse-profit .muse-modules>span { display: none; }
}
@media(max-width:1100px) {
  .muse-workbench .ref-material-options { grid-template-columns: 1fr; }
  .muse-workbench .muse-account-banner { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .muse-workbench .muse-period { grid-template-columns: 1fr; gap: 12px; }
  .muse-workbench .topbar>.muse-modules, .muse-profit .muse-modules { flex: 1; }
}
/* Top-level destinations stay in the header; sidebars contain module tools only. */
.muse-workbench .sidebar>nav[aria-label="主导航"],
.muse-workbench .sidebar .side-bottom,
.muse-workbench .ref-plan-brand,
.muse-workbench .muse-common-services,
.muse-workbench .muse-service-link,
.muse-workbench .top-actions #actor-name {
  display: none !important;
}
.muse-workbench[data-nav-scope="module"] .ref-context-nav {
  display: flex; flex-direction: column; gap: 7px;
}
.module-nav-group { display: flex; flex-direction: column; gap: 7px; }
.muse-workbench .ref-context-nav [hidden],
.muse-workbench .ref-account-navigation [hidden] { display: none !important; }
.muse-workbench:is([data-nav-scope="overview"],[data-nav-scope="personal"],[data-nav-scope="source"]) .app-shell {
  display: block !important;
}
.muse-workbench:is([data-nav-scope="overview"],[data-nav-scope="personal"],[data-nav-scope="source"]) .sidebar,
.muse-workbench:is([data-nav-scope="overview"],[data-nav-scope="personal"],[data-nav-scope="source"]) .muse-menu {
  display: none !important;
}
.muse-workbench .topbar { display: flex !important; }
.muse-workbench .breadcrumb, .muse-profit .muse-profit-breadcrumb { display: none; }
.muse-workbench .topbar>.muse-modules, .muse-profit .top>.muse-modules {
  flex: 1 !important; width: auto !important; min-width: 0;
  justify-content: flex-start; margin: 0; overflow-x: auto;
}
.muse-modules>span { display: none !important; }
.muse-workbench .muse-modules a, .muse-profit .muse-modules a {
  font-size: 14px !important; padding: 7px 10px !important;
}
.muse-workbench .top-actions #open-login:not([hidden]),
.muse-workbench .top-actions #logout:not([hidden]) { display: inline-flex !important; }
.ref-account-navigation { display: none; }
.muse-workbench[data-nav-scope="personal"] .ref-account-navigation {
  display: flex; flex-wrap: wrap; gap: 8px; padding: 14px;
  margin: 0 0 24px; background: #fff; border: 1px solid var(--muse-line);
  border-radius: 14px;
}
.muse-workbench .ref-account-navigation .button { font-size: 15px !important; }
.ref-account-navigation .ref-nav-icon { display: none; }
.ref-account-navigation .button.active { background: var(--blue); border-color: var(--blue); color: #fff; }
.ref-account-navigation .ref-nav-label { display: inline; color: inherit; }
.muse-workbench [data-panel="account"] .ref-account-actions {
  display: flex; justify-content: flex-end; gap: 8px; margin: 0 0 16px;
}
.muse-workbench #workflow-header-start { white-space: nowrap; flex: 0 0 auto; }
.erp-upstream-flow { margin-bottom: 22px; }
.erp-upstream-flow .actions { gap: 12px; flex-wrap: wrap; }
.erp-upstream-flow .pill { white-space: nowrap; }
.erp-product-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.erp-product-actions a { white-space: nowrap; }
.erp-product-actions a:not(.primary) { background: #f4f8ff; border-color: #c9ddfb; color: #1558ad; }
@media(max-width:1280px) {
  .muse-workbench .topbar, .muse-profit .top {
    height: auto !important; min-height: 104px !important;
    flex-wrap: wrap !important; padding: 6px 16px !important; overflow: visible;
  }
  .muse-workbench .topbar>.muse-modules, .muse-profit .top>.muse-modules {
    order: 2 !important; flex: 1 0 100% !important; width: 100% !important;
    max-width: 100%;
  }
  .muse-workbench .top-actions { margin-left: auto; }
  .muse-workbench .topbar>.muse-fullscreen { order: 1; }
  .muse-profit .top>a[href$="#account"] { margin-left: auto; }
}
/* The shared product entry keeps complete labels and wraps whole controls. */
.erp-flow-config{margin-top:22px;grid-template-columns:repeat(3,minmax(0,1fr));align-items:end}
.flow-run-panel{padding:24px 28px;margin:0 0 24px;background:linear-gradient(115deg,#f8fbff,#edf5ff);border:1px solid #bdd5f7;border-radius:16px}
.flow-run-controls{display:flex;align-items:end;flex-wrap:wrap;gap:14px;margin:16px 0}
.flow-run-controls label{min-width:240px;max-width:100%;flex:0 1 460px}
.flow-run-stages{display:flex;flex-wrap:wrap;gap:10px}
.flow-run-stages .button,.erp-product-actions .button{white-space:nowrap;word-break:keep-all}
@media(max-width:1100px){.erp-flow-config{grid-template-columns:repeat(2,minmax(0,1fr))}.erp-flow-config label:last-child{grid-column:1/-1}}
@media(max-width:700px){.erp-flow-config{grid-template-columns:1fr}.flow-run-panel{padding:20px}}

/* Global destinations stay beside the account; the header does not follow sidebar width. */
:root{--workspace-header-height:56px}
.muse-workbench .app-shell{padding-top:var(--workspace-header-height)}
.muse-profit{padding-top:var(--workspace-header-height)}
.muse-workbench .topbar,.muse-profit .top{
  position:fixed!important;inset:0 0 auto 0;z-index:40;width:100%;
  height:var(--workspace-header-height)!important;min-height:var(--workspace-header-height)!important;
  display:flex!important;align-items:center;flex-wrap:nowrap!important;gap:12px!important;
  padding:6px 24px!important;overflow:visible;
}
.muse-workbench .sidebar,.muse-profit .muse-profit-sidebar{
  top:var(--workspace-header-height);height:calc(100dvh - var(--workspace-header-height));
}
.muse-workbench:is([data-nav-scope="overview"],[data-nav-scope="personal"],[data-nav-scope="source"]) .topbar>.muse-menu{
  display:inline-flex!important;visibility:hidden;pointer-events:none;
}
.muse-workbench .topbar>.muse-modules,.muse-profit .top>.muse-modules{
  order:0!important;flex:0 0 auto!important;width:max-content!important;max-width:100%;
}
.muse-header-actions{
  display:flex!important;align-items:center;flex:0 0 auto;flex-wrap:nowrap!important;
  gap:8px!important;margin-left:auto!important;min-width:0;
}
.muse-workbench .top-actions>.muse-header-links,.muse-header-links{
  display:flex!important;align-items:center;gap:6px;flex:0 0 auto;
}
.muse-workbench .muse-header-links>.button,.muse-profit .muse-header-links>.btn,
.muse-workbench .muse-header-actions>.button:not([hidden]),.muse-profit .muse-header-actions>.btn:not([hidden]){
  display:inline-flex!important;align-items:center;justify-content:center;white-space:nowrap;
  font-size:14px!important;line-height:1.35;min-height:36px;padding:6px 10px!important;
}
.muse-header-links a.active{background:#e8f2ff!important;border-color:#97bdf3!important;color:#145fbe!important}
.muse-header-actions :is(#open-login,#logout,#profit-login,#profit-header-logout,.muse-fullscreen){min-width:78px}
.muse-profit .muse-header-actions #profit-header-logout{background:#edf3fc;border-color:#cfe0fb;color:#657991}
/* Reserve the account slot until its real session is known; avoid login/logout flicker. */
[data-session-pending] :is(#open-login,#logout,#profit-login,#profit-header-logout){visibility:hidden}
/* Native document snapshots bridge the separately loaded profit editor without a white flash. */
@view-transition{navigation:auto}
::view-transition-group(root),::view-transition-old(root),::view-transition-new(root){animation:none}
.muse-workbench .topbar>.muse-menu,.muse-profit .top>.muse-menu{
  display:inline-flex!important;align-items:center;justify-content:center;flex:0 0 40px;
  width:40px;height:36px;min-height:36px;padding:6px!important;font-size:14px!important;line-height:1.35;
}
@media(max-width:1023px){
  :root{--workspace-header-height:104px}
  .muse-workbench .topbar,.muse-profit .top{flex-wrap:wrap!important;align-content:center!important;padding:6px 16px!important;gap:6px 10px!important}
  .muse-workbench .topbar>.muse-modules,.muse-profit .top>.muse-modules{
    order:2!important;flex:1 0 100%!important;width:100%!important;
  }
}

/* Latest reference: full-height brand sidebar, then menu, breadcrumb and module switcher. */
.muse-workbench,.muse-profit{--workspace-sidebar-size:var(--desktop-sidebar)}
.muse-workbench.muse-sidebar-collapsed,.muse-profit.muse-sidebar-collapsed{--workspace-sidebar-size:var(--desktop-sidebar-small)}
.muse-workbench .app-shell,.muse-workbench[data-nav-scope] .app-shell{
  display:grid!important;grid-template-columns:var(--workspace-sidebar-size) minmax(0,1fr)!important;padding-top:0;
}
.muse-workbench .app-body{padding-top:var(--workspace-header-height)}
.muse-workbench .sidebar,.muse-workbench[data-nav-scope] .sidebar{
  display:flex!important;flex-direction:column;top:0;height:100dvh;
  width:var(--workspace-sidebar-size);min-width:0;max-width:100%;
}
.muse-profit{padding-left:var(--workspace-sidebar-size)!important}
.muse-profit .muse-profit-sidebar{top:0;height:100dvh;width:var(--workspace-sidebar-size)!important}
/* Keep full menu labels at their existing type size in the compact expanded rail. */
.muse-workbench:not(.muse-sidebar-collapsed) .sidebar nav a,
.muse-profit:not(.muse-sidebar-collapsed) .muse-profit-sidebar nav a{
  padding:10px 6px!important;gap:6px;
}
.muse-workbench .topbar,.muse-profit .top{
  left:var(--workspace-sidebar-size);width:calc(100% - var(--workspace-sidebar-size));
}
.muse-workbench[data-nav-scope] .topbar>.muse-menu{
  visibility:visible;pointer-events:auto;
}
.muse-workbench .breadcrumb,.muse-profit .muse-profit-breadcrumb{
  display:block!important;flex:1 1 auto;min-width:0;font-size:14px!important;
  color:#71839c;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;
}
.muse-workbench .breadcrumb strong,.muse-profit .muse-profit-breadcrumb strong{
  font-size:15px!important;font-weight:700;color:#263546;
}
.muse-workbench .breadcrumb>span,.muse-profit .muse-profit-breadcrumb>span{display:inline!important;font-size:14px}
@media(max-width:1280px){
  :root{--workspace-header-height:104px}
  .muse-workbench .topbar,.muse-profit .top{
    display:grid!important;grid-template-columns:40px minmax(0,1fr) auto;grid-template-rows:36px 44px;
    align-content:center!important;padding:6px 16px!important;gap:6px 10px!important;
  }
  .muse-workbench .topbar>.muse-menu,.muse-profit .top>.muse-menu{grid-column:1;grid-row:1}
  .muse-workbench .breadcrumb,.muse-profit .muse-profit-breadcrumb{grid-column:2;grid-row:1}
  .muse-header-actions{grid-column:3;grid-row:1}
  .muse-workbench .topbar>.muse-modules,.muse-profit .top>.muse-modules{
    grid-column:1/-1;grid-row:2;order:2!important;flex:1 0 100%!important;width:100%!important;
  }
}
.muse-workbench .page-heading{flex-wrap:wrap}
.muse-workbench .page-heading>div:first-child{flex:1 1 380px;min-width:0}
@media(max-width:1000px){
  :root{--workspace-header-height:148px}
  .muse-workbench .topbar,.muse-profit .top{grid-template-rows:36px 36px 44px}
  .muse-workbench .breadcrumb,.muse-profit .muse-profit-breadcrumb{grid-column:2/-1}
  .muse-header-actions{grid-column:1/-1;grid-row:2;justify-self:end}
  .muse-workbench .topbar>.muse-modules,.muse-profit .top>.muse-modules{grid-row:3}
}
.muse-workbench[data-owner-management="paused"] #owner-nav{display:none!important}
/* Each page displays all twenty rows in normal document flow. */
#erp-tools{display:block;height:auto;padding:0;overflow:visible;scroll-margin-top:calc(var(--workspace-header-height) + 12px)}
#erp-tools>.panel-heading{padding:20px 24px 16px;margin:0;border-bottom:1px solid #e3ebf7;gap:16px}
#erp-tools>.panel-heading h2{margin:0}
#erp-tools>.panel-heading p{margin:6px 0 0;font-size:var(--reading-secondary)!important}
#erp-list{min-height:0;height:auto;max-height:none;overflow:visible;padding:0 20px;gap:0}
#erp-list>.erp-collection-item{display:grid;grid-template-columns:22px 88px minmax(0,1fr) 142px;align-items:center;gap:16px;min-width:0;padding:18px 0;margin:0;background:#fff;border:0;border-bottom:1px solid #e3ebf7;border-radius:0}
#erp-list>.erp-collection-item:last-child{border-bottom:0}
.erp-collection-item>input[type="checkbox"]{width:18px;height:18px;margin:0;accent-color:#1769df}
#erp-root .erp-product-thumbnail{position:relative;display:grid;place-items:center;width:88px;height:88px;min-height:0;padding:0;border:1px solid #dce6f2;border-radius:9px;background:#f5f8fc;overflow:hidden;cursor:pointer}
.erp-product-thumbnail img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;background:#fff}
.erp-image-fallback{font-size:13px;line-height:1.6;color:#8495ab;text-align:center;padding:6px}
.erp-product-info{min-width:0}
#erp-root .erp-product-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:100%;width:100%;min-height:0;padding:0;border:0;background:none;text-align:left;font-weight:600;font-size:var(--reading-text)!important;line-height:1.5;color:#283d55;cursor:pointer}
#erp-root .erp-product-title:hover{color:#1769df}
.erp-product-meta{display:flex;align-items:center;gap:5px 14px;flex-wrap:wrap;margin-top:8px;color:#7a8ba2;font-size:var(--reading-secondary);line-height:1.5}
.erp-source-label{color:#2e7d9b}
.erp-product-time{font-size:14px}
.erp-row-actions{display:flex;align-items:stretch;flex-direction:column;gap:7px}
#erp-root .erp-row-actions>.button{white-space:nowrap;padding:7px 10px;min-height:38px;font-size:var(--reading-secondary)!important}
#erp-root .erp-match-menu{padding:0;margin:0;font-size:15px;min-width:0}
#erp-root .erp-match-menu>summary{margin:0;padding:4px 8px;text-align:center;font-size:15px!important;list-style:none;color:#526e91}
.erp-match-menu>summary::-webkit-details-marker{display:none}
.erp-match-options{display:flex;flex-direction:column;gap:8px;padding:10px;border:1px solid #dce6f2;border-radius:8px;background:#f7faff}
.erp-match-options>a{font-size:14px;white-space:nowrap}
#erp-root .erp-match-copy{border:0;background:none;color:#1769df;text-align:left;padding:0;min-height:28px;font-size:14px!important}
#erp-root .erp-match-options>.muted{font-size:12px!important}
#erp-tools>.erp-list-toolbar{position:sticky;bottom:0;z-index:2;display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;padding:14px 20px;margin:0;border-top:1px solid #dce6f2;background:#f9fbff}
.erp-pagination{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px}
#erp-page{white-space:nowrap;color:#526b8c;font-size:var(--reading-secondary)}
#erp-selected{margin:0;font-size:var(--reading-secondary)!important}
@media(max-width:1100px){#erp-tools>.erp-list-toolbar{justify-content:flex-end}.erp-pagination{margin-right:auto}#erp-selected{display:none}}
.erp-upstream-flow>summary{margin:0;font-weight:600;color:#345a88}
.erp-upstream-flow[open]>summary{margin-bottom:14px}
.product-center-sources{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap}
.product-center-sources h2{margin-bottom:8px}
.product-center-sources p{margin:0}
.product-center-sources label{margin:0;min-width:240px;flex:0 1 320px}
.radar-collection-availability>div{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.radar-collection-availability p{margin:8px 0 0}
/* Setup choices and the full product page use normal document flow. */
.muse-workbench[data-ref-view="erp"] .app-body>main{display:block;height:auto;min-height:calc(100dvh - var(--workspace-header-height));padding:20px 28px 16px}
.muse-workbench[data-ref-view="erp"] .page-heading{flex:none;margin:0 0 12px;gap:10px}
.muse-workbench[data-ref-view="erp"] .page-heading .eyebrow{display:none}
.muse-workbench[data-ref-view="erp"] .page-heading h1{font-size:28px!important;margin:0}
.muse-workbench[data-ref-view="erp"] .page-heading p{font-size:var(--reading-secondary)!important;margin:5px 0 0}
.muse-workbench[data-ref-view="erp"] section[data-panel="erp"]{display:block;min-height:0}
.muse-workbench[data-ref-view="erp"] .app-body>footer{display:none}
#erp-root{display:flex;flex-direction:column;min-height:0;gap:10px}
#erp-root>.panel,#erp-root>.notice{margin:0;flex:none}
#erp-root>.product-center-sources{padding:0;border:0;background:none;box-shadow:none;gap:10px}
#erp-root>.product-center-sources h2{font-size:var(--reading-text)!important;margin:0}
#erp-root>.product-center-sources p{display:none}
#erp-root>.product-center-sources label{flex-direction:row;align-items:center;gap:10px;flex:0 1 auto;min-width:0;font-size:var(--reading-secondary)!important}
#erp-provider{width:200px;padding:7px 10px;font-size:var(--reading-secondary)!important}
#erp-root>.erp-upstream-flow{padding:9px 14px}
#erp-root>.erp-upstream-flow>summary{font-size:var(--reading-secondary)!important}
#erp-note{padding:9px 14px;font-size:var(--reading-secondary)!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
#erp-root>#erp-tools{flex:none;min-height:0;height:auto}
#erp-root>#erp-imported{padding:9px 14px}
#erp-imported>summary{margin:0;font-size:var(--reading-secondary)!important}
#erp-imported[open]>summary{margin-bottom:14px}
#erp-result:empty{display:none}
@media(max-width:1100px){
  .muse-workbench[data-ref-view="erp"] .page-heading p,#erp-tools>.panel-heading p{display:none}
  #erp-tools>.panel-heading{padding:14px 18px}
  #erp-list{padding:0 14px}
  #erp-list>.erp-collection-item{grid-template-columns:18px 72px minmax(0,1fr) 126px;min-width:0;gap:10px;padding:13px 0}
  #erp-root .erp-product-thumbnail{width:72px;height:72px}
  .erp-product-time{display:none}
}
@media(max-height:740px){
  .muse-workbench[data-ref-view="erp"] .app-body>main{padding-top:12px;padding-bottom:12px}
  .muse-workbench[data-ref-view="erp"] .page-heading p{display:none}
  #erp-tools>.panel-heading{padding:12px 18px}
  #erp-tools>.panel-heading p{display:none}
}

/* Keep the shared manual entry at the right of product and Radar actions. */
.record .actions>.product-manual-action{margin-left:auto;white-space:nowrap;color:#1769df;border-color:#b7d0f5;background:#f5f9ff}
#manual-form{scroll-margin-top:80px}
#erp-root .erp-row-actions>.erp-manual-action{color:#1769df;border-color:#b7d0f5;background:#f5f9ff}
