.workbench { color: #172033; display: grid; gap: 14px; min-width: 0; overflow-wrap: anywhere; width: 100%; }
.workbench button, .workbench select { font: inherit; }
.workbench button { background: #fff; border: 1px solid #8daeca; border-radius: 7px; color: #173e62; cursor: pointer; font-weight: 800; min-height: 40px; padding: 8px 13px; }
.workbench button:hover:not(:disabled) { background: #edf6fe; border-color: #1f5e95; }
.workbench button:disabled { background: #e5e7eb; border-color: #b9c2cd; color: #52606d; cursor: not-allowed; }
.workbench button:focus-visible, .workbench select:focus-visible { outline: 3px solid #163b5c; outline-offset: 2px; }
.workbench-heading, .workbench-meta, .workbench-list, .workbench-alert, .workbench-state, .workbench-empty { background: #fff; border: 1px solid #c5d5e4; border-radius: 9px; box-shadow: 0 4px 14px rgba(23, 59, 92, .05); }
.workbench-heading { align-items: center; border-top: 4px solid #2e75b6; display: flex; gap: 18px; justify-content: space-between; padding: 17px 19px; }
.workbench-heading > div, .workbench-item-main { min-width: 0; }
.workbench-heading p { color: #52606d; font-size: 12px; font-weight: 700; margin: 0 0 4px; }
.workbench-heading h3 { color: #173e62; font-size: 24px; margin: 0; }
.workbench-heading span { color: #374151; display: block; font-weight: 700; line-height: 1.5; margin-top: 7px; }
.workbench-scope-label { color: #374151; display: grid; flex: 0 0 150px; font-size: 13px; font-weight: 800; gap: 6px; }
.workbench-scope-label select { background: #fff; border: 1px solid #9eb6ca; border-radius: 6px; color: #172033; font-weight: 700; min-height: 42px; padding: 7px 9px; width: 100%; }
.workbench-meta { align-items: center; background: #f4f8fc; color: #374151; display: flex; flex-wrap: wrap; gap: 5px 14px; padding: 10px 14px; }
.workbench-meta strong { color: #173e62; }
.workbench-meta span { font-size: 13px; font-weight: 700; }
.workbench-buckets { display: grid; gap: 9px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.workbench-buckets button { align-items: center; display: flex; justify-content: space-between; min-width: 0; text-align: left; }
.workbench-buckets button span { min-width: 0; }
.workbench-buckets button strong { background: #e7f0f8; border-radius: 999px; color: #173e62; display: inline-grid; min-width: 27px; place-items: center; }
.workbench-buckets button.is-selected { background: #1f5e95; border-color: #1f5e95; color: #fff; }
.workbench .workbench-buckets button.is-selected:hover:not(:disabled) { background: #1f5e95; border-color: #1f5e95; color: #fff; }
.workbench-buckets button.is-selected strong { background: #fff; color: #173e62; }
.workbench-alert, .workbench-state, .workbench-empty { line-height: 1.55; margin: 0; padding: 12px 13px; }
.workbench-alert { background: #fff4f5; border-color: #c96369; border-left: 5px solid #9c0006; color: #790008; font-weight: 700; }
.workbench-alert button { border-color: #9c0006; color: #790008; margin-left: 8px; min-height: 34px; padding: 5px 9px; }
.workbench-state { background: #f4f8fc; color: #173e62; font-weight: 800; text-align: center; }
.workbench-empty { background: #f8fbfe; border-style: dashed; color: #374151; text-align: center; }
.workbench-list { display: grid; gap: 10px; padding: 14px; }
.workbench-item { align-items: center; background: #f8fbfe; border: 1px solid #cbd8e5; border-left: 4px solid #2e75b6; display: grid; gap: 13px; grid-template-columns: minmax(0, 1fr) minmax(165px, .3fr); padding: 12px; }
.workbench-company-list { display: grid; gap: 7px; list-style: none; margin: 0; padding: 0; }
.workbench-company-list li { display: grid; gap: 2px; }
.workbench-company-list strong { color: #173e62; font-size: 16px; }
.workbench-company-list span, .workbench-facts, .workbench-item-action p { color: #374151; font-size: 13px; line-height: 1.5; }
.workbench-facts { display: flex; flex-wrap: wrap; gap: 3px 13px; margin-top: 10px; }
.workbench-item-action { align-items: flex-start; display: grid; gap: 8px; justify-items: start; }
.workbench-item-action p { margin: 0; }
.workbench-item-action button { min-width: 126px; }
.workbench-primary { background: #1f5e95 !important; border-color: #1f5e95 !important; color: #fff !important; }
.workbench-primary:hover:not(:disabled) { background: #163b5c !important; border-color: #163b5c !important; }
.workbench-review { color: #790008 !important; font-weight: 800; }
.workbench-history-only { color: #374151; font-weight: 800; }
.workbench-pager { align-items: center; color: #52606d; display: flex; flex-wrap: wrap; font-size: 13px; font-weight: 700; gap: 8px; justify-content: flex-end; }
.workbench-pager button { min-height: 36px; }

@media (max-width: 760px) {
  .workbench { gap: 10px; }
  .workbench button { min-height: 44px; }
  .workbench-heading { align-items: stretch; flex-direction: column; gap: 12px; padding: 14px 13px; }
  .workbench-heading h3 { font-size: 22px; }
  .workbench-scope-label { flex-basis: auto; width: 100%; }
  .workbench-meta { align-items: flex-start; display: grid; gap: 3px; padding: 10px 12px; }
  .workbench-buckets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .workbench-buckets button { min-height: 54px; }
  .workbench-list { padding: 10px; }
  .workbench-item { align-items: stretch; gap: 11px; grid-template-columns: 1fr; padding: 10px; }
  .workbench-item-action { align-items: stretch; justify-items: stretch; }
  .workbench-item-action button { width: 100%; }
  .workbench-pager { justify-content: stretch; }
  .workbench-pager span { width: 100%; }
  .workbench-pager button { flex: 1; }
}
