.app-shell.has-mop-workbench { grid-template-columns: 280px minmax(0,1fr) 88px; }
.app-shell.sidebar-collapsed.has-mop-workbench { grid-template-columns: 76px minmax(0,1fr) 88px; }
.app-shell.has-mop-workbench.mop-workbench-open { grid-template-columns: 280px minmax(0,1fr) 440px; }
.app-shell.sidebar-collapsed.has-mop-workbench.mop-workbench-open { grid-template-columns: 76px minmax(0,1fr) 440px; }
.mop-workbench { --mw-warning: #cf6419; --mw-warning-bg: color-mix(in srgb,var(--mw-warning) 10%,var(--surface)); display:flex; min-width:0; min-height:0; height:100dvh; border-left:1px solid var(--line); background:var(--surface); color:var(--text); z-index:35; font:inherit; }
.mop-workbench { --mw-overdue:#c41e2f; }
[data-theme="dark"] .mop-workbench { --mw-warning:#ffb063; --mw-overdue:#ff6c82; }
.mop-workbench button { font:inherit; cursor:pointer; color:inherit; }
.mop-workbench button:focus-visible,.mop-workbench a:focus-visible { outline:2px solid #69b9df; outline-offset:-2px; }
.mop-workbench svg { width:20px; height:20px; flex:0 0 20px; }
.mw-rail { display:flex; flex-direction:column; align-items:center; flex:0 0 87px; gap:6px; padding:18px 7px 12px; overflow-y:auto; scrollbar-width:thin; }
.mw-toggle { border:1px solid var(--line-strong); border-radius:12px; padding:8px; background:var(--surface-soft); width:40px; height:38px; display:grid; place-items:center; margin-bottom:14px; }
.is-open .mw-toggle svg { transform:rotate(180deg); }
.mw-rail-caption { color:var(--text-muted); font-size:8px; font-weight:800; letter-spacing:.08em; }
.mw-rail-metric { display:flex; flex-direction:column; align-items:center; width:100%; min-height:80px; gap:4px; border:1px solid transparent; border-radius:12px; padding:9px 2px; background:transparent; }
.mw-rail-metric:hover { background:var(--surface-strong); border-color:var(--line); }
.mw-rail-metric svg { color:var(--text-soft); }
.mw-rail-metric strong { font-size:19px; font-weight:850; line-height:1.1; overflow-wrap:anywhere; font-variant-numeric:tabular-nums; }
.mw-rail-metric small { font-size:9px; line-height:1.2; color:var(--text-soft); text-align:center; }
.mw-rail-metric.has-issues { background:color-mix(in srgb,var(--text) 4%,var(--surface)); }
.mw-rail-metric.is-urgent { background:var(--mw-warning-bg); }
.mw-rail-metric.is-urgent strong,.mw-rail-metric.is-urgent svg { color:var(--mw-warning); }
.mw-rail-divider { width:38px; height:1px; background:var(--line); margin:10px 0 7px; flex-shrink:0; }
.mw-rail-total { display:grid; gap:4px; text-align:center; border-top:1px solid var(--line); padding:13px 0 3px; width:100%; margin-top:auto; }
.mw-rail-total strong { font-size:23px; font-variant-numeric:tabular-nums; }
.mw-rail-total small { font-size:9px; line-height:1.3; color:var(--text-muted); }
.mw-rail-error { background:var(--mw-warning-bg); border:1px solid var(--mw-warning); border-radius:50%; color:var(--mw-warning)!important; width:24px; height:24px; }
.mw-detail { flex:1 1 auto; min-width:0; display:flex; flex-direction:column; overflow:hidden; border-left:1px solid var(--line); }
.mw-detail[hidden] { display:none; }
.mw-heading { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:22px 18px 16px; }
.mw-eyebrow { font-size:9px; font-weight:850; letter-spacing:.13em; color:var(--text-muted); }
.mw-heading h2 { margin:5px 0 0; font-size:24px; line-height:1.1; letter-spacing:-.04em; }
.mw-refresh { border:1px solid var(--line); border-radius:10px; width:32px; height:32px; font-size:22px!important; background:var(--surface-soft); }
.mw-refresh:disabled { opacity:.5; cursor:wait; }
.mw-traffic { margin:0 16px 18px; padding:13px; border:1px solid var(--line); border-radius:14px; background:var(--surface-soft); }
.mw-traffic-heading { display:flex; align-items:center; justify-content:space-between; margin-bottom:10px; }
.mw-traffic h3,.mw-issues-heading h3 { font-size:12px; margin:0; font-weight:800; }
.mw-traffic-heading>span { color:var(--text-muted); font-size:9px; }
.mw-traffic>div:not(:first-child) { display:flex; align-items:center; justify-content:space-between; padding:8px 0; gap:7px; }
.mw-traffic>div+div+div { border-top:1px solid var(--line); }
.mw-traffic>div>span { display:flex; align-items:center; gap:7px; font-size:11px; color:var(--text-soft); }
.mw-traffic strong { font-size:22px; font-weight:850; font-variant-numeric:tabular-nums; }
.mw-traffic strong small { font-size:11px; font-weight:500; color:var(--text-muted); }
.mw-traffic svg { width:16px; height:16px; flex-basis:16px; }
.mw-issues-heading { display:flex; align-items:center; justify-content:space-between; padding:0 18px 12px; gap:8px; }
.mw-issues-heading>strong { border-radius:7px; padding:4px 8px; font-size:12px; background:var(--surface-strong); }
.mw-tabs { display:flex; gap:4px; padding:0 14px 12px; border-bottom:1px solid var(--line); }
.mw-tabs button { border:1px solid var(--line); background:transparent; padding:8px 7px; border-radius:10px; font-size:10px; flex:1 1 0; min-width:0; display:flex; flex-direction:column; align-items:center; justify-content:space-between; gap:6px; line-height:1.2; }
.mw-tabs button[aria-selected="true"] { background:var(--text); color:var(--surface); border-color:var(--text); }
.mw-tabs b { font-size:15px; }
.mw-list-head { padding:12px 18px 10px; }
.mw-list-head p { font-size:11px; line-height:1.5; color:var(--text-muted); margin:0; }
.mw-list-head>span { font-size:10px; color:var(--text-soft); display:block; margin-top:7px; }
.mw-deal-list { flex:1 1 auto; min-height:0; overflow:auto; padding:2px 12px 12px; scrollbar-width:thin; }
.mw-deal { display:flex; flex-direction:column; gap:6px; padding:13px; background:var(--surface-soft); border:1px solid var(--line); border-radius:12px; margin-bottom:8px; text-decoration:none; color:var(--text); min-width:0; }
.mw-deal:hover { border-color:var(--line-strong); background:var(--surface-strong); }
.mw-deal.is-urgent { border-left:3px solid var(--mw-warning); padding-left:11px; }
.mw-deal.is-overdue { border-left-color:var(--mw-overdue); background:color-mix(in srgb,var(--mw-overdue) 5%,var(--surface-soft)); }
.mw-deal.is-overdue:hover { background:color-mix(in srgb,var(--mw-overdue) 9%,var(--surface-soft)); }
.mw-deal-top { display:flex; gap:8px; align-items:center; justify-content:space-between; color:var(--text-muted); font-size:10px; }
.mw-deal-top b { background:var(--mw-warning-bg); border-radius:5px; color:var(--mw-warning); padding:3px 5px; font-size:9px; font-weight:700; }
.mw-deal>strong { font-size:13px; line-height:1.4; overflow-wrap:anywhere; }
.mw-client { font-size:10px; color:var(--text-muted); }
.mw-reason { font-size:11px; color:var(--text-soft); }
.mw-deal.is-overdue .mw-reason { color:var(--mw-overdue); font-weight:750; }
.mw-deal p { margin:0; font-size:11px; color:var(--text-muted); line-height:1.4; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; overflow-wrap:anywhere; }
.mw-open-link { font-size:10px; color:var(--text-soft); padding-top:5px; display:flex; justify-content:space-between; }
.mw-load-more { display:block; width:100%; border:1px solid var(--line); border-radius:10px; padding:10px; font-size:11px!important; background:var(--surface-soft); }
.mw-empty { padding:30px 12px; text-align:center; color:var(--text-muted); font-size:12px; line-height:1.6; }
.mw-all-clear>span { display:block; color:var(--success); font-size:28px; margin-bottom:8px; }
.mw-footer { display:flex; justify-content:space-between; gap:8px; border-top:1px solid var(--line); padding:12px 14px; color:var(--text-muted); font-size:9px; }
.mw-stale { display:block; font-size:10px; padding:9px 16px; background:var(--mw-warning-bg); color:var(--mw-warning); }
@media(max-width:1100px) {
  .app-shell.has-mop-workbench.mop-workbench-open { grid-template-columns:280px minmax(0,1fr) 88px; }
  .app-shell.sidebar-collapsed.has-mop-workbench.mop-workbench-open { grid-template-columns:76px minmax(0,1fr) 88px; }
  .mop-workbench.is-open { position:fixed; top:0; right:0; width:min(440px,calc(100vw - 76px)); height:100dvh; box-shadow:-18px 0 40px rgba(0,0,0,.2); z-index:65; }
}
@media(max-width:900px) {
  .app-shell.has-mop-workbench,.app-shell.sidebar-collapsed.has-mop-workbench,.app-shell.has-mop-workbench.mop-workbench-open,.app-shell.sidebar-collapsed.has-mop-workbench.mop-workbench-open { grid-template-columns:minmax(0,1fr); padding-right:72px; }
  .mop-workbench { position:fixed; top:0; right:0; width:72px; }
  .mw-rail { flex-basis:71px; padding-inline:4px; }
  .mw-rail-metric { min-height:74px; }
  .mop-workbench.is-open { width:min(410px,100vw); }
}
@media(prefers-reduced-motion:reduce) { .app-shell.has-mop-workbench { transition:none; } }
