/* Workspace material layer. Load after workspace-redesign.css and compact navigation. */

body.workspace-redesign {
  --wg-canvas: #e8ebf0;
  --wg-paper: #ffffff;
  --wg-ink: #202126;
  --wg-muted: #59616d;
  --wg-line: #d5d9e0;
  --wg-line-strong: #c6ccd5;
  --wg-blue: #0067df;
  --wg-blue-hover: #0058bf;
  --wg-glass-fallback: #fbfbfc;
  --wg-glass: rgba(255, 255, 255, 0.76);
  --wg-glass-edge: rgba(255, 255, 255, 0.9);
  --wg-material-shadow: rgba(32, 33, 38, 0.12);
  --wg-placeholder: #626b77;
  --ws-ink: var(--wg-ink);
  --ws-muted: var(--wg-muted);
  --ws-blue: var(--wg-blue);
  --ws-blue-dark: var(--wg-blue-hover);
  --ws-canvas: var(--wg-canvas);
  --ws-rail: var(--wg-glass-fallback);
  --ws-paper: var(--wg-paper);
  --ws-line: var(--wg-line);
  --ws-line-strong: var(--wg-line-strong);
  --ws-focus: var(--wg-blue);
  background: var(--wg-canvas);
  color: var(--wg-ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  overflow-x: clip;
}

body.workspace-redesign .workspace-shell,
body.workspace-redesign .workspace-shell .main {
  min-width: 0;
  background: var(--wg-canvas);
}

body.workspace-redesign .workspace-shell .sidebar,
body.workspace-redesign .workspace-shell .topbar,
body.workspace-redesign .workspace-shell .workspace-toolbar,
body.workspace-redesign .workspace-shell .toolbar {
  background: var(--wg-glass-fallback);
  border-color: var(--wg-line);
}

body.workspace-redesign .workspace-shell .sidebar {
  border-right-color: var(--wg-line);
  box-shadow: 1px 0 14px rgba(24, 49, 84, 0.035);
}

body.workspace-redesign .workspace-shell .topbar {
  border-bottom-color: var(--wg-line);
  box-shadow: 0 1px 12px rgba(24, 49, 84, 0.035);
}

body.workspace-redesign .workspace-shell .page-heading h1,
body.workspace-redesign .workspace-shell .panel h2,
body.workspace-redesign .workspace-shell .people-panel h2 {
  color: var(--wg-ink);
}

body.workspace-redesign .workspace-shell .page-heading p,
body.workspace-redesign .workspace-shell .muted,
body.workspace-redesign .workspace-shell .form-note,
body.workspace-redesign .workspace-shell .context-help,
body.workspace-redesign .workspace-shell .registry-scroll-cue {
  color: var(--wg-muted);
}

body.workspace-redesign .workspace-shell .nav-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  color: #40516b;
  font-weight: 600;
}

body.workspace-redesign .workspace-shell .nav-link span {
  flex: 0 1 auto;
  min-width: 0;
  text-align: left;
}

body.workspace-redesign .workspace-shell .nav-link.queue-link b {
  flex: 0 0 auto;
  margin-left: auto;
}

body.workspace-redesign .workspace-shell .nav-link:hover {
  color: #124f9f;
  background: rgba(223, 237, 255, 0.78);
}

body.workspace-redesign .workspace-shell .nav-link[aria-current="page"],
body.workspace-redesign .workspace-shell .nav-link.active,
body.workspace-redesign .workspace-shell .nav-link.is-active {
  color: #0b4faa;
  background: rgba(230, 240, 255, 0.92);
  border-color: #c8daf1;
  box-shadow: none;
}

body.workspace-redesign .workspace-shell .registry-queues a,
body.workspace-redesign .workspace-shell .filter-chips a {
  color: #4b5d78;
}

body.workspace-redesign .workspace-shell .registry-queues a.is-active,
body.workspace-redesign .workspace-shell .filter-chips a:hover {
  color: #0a56bc;
  background: #e8f1ff;
  border-color: #c8dafa;
}

body.workspace-redesign .workspace-shell .workspace-toolbar,
body.workspace-redesign .workspace-shell .toolbar {
  padding: 13px;
  border: 1px solid var(--wg-line);
  border-radius: 12px;
  box-shadow: 0 5px 16px rgba(24, 49, 84, 0.035);
}

body.workspace-redesign .workspace-shell .filter-form > label,
body.workspace-redesign .workspace-shell .more-filter-grid > label,
body.workspace-redesign .workspace-shell .chat-actions label {
  color: #485a74;
  font-size: 12px;
  font-weight: 650;
}

body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.workspace-redesign .workspace-shell select,
body.workspace-redesign .workspace-shell textarea {
  color: var(--wg-ink);
  background: #fff;
  border-color: #cbd6e4;
  border-radius: 7px;
  box-shadow: inset 0 1px 1px rgba(24, 49, 84, 0.025);
}

body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"])::placeholder,
body.workspace-redesign .workspace-shell textarea::placeholder {
  color: #6d7d94;
  opacity: 1;
}

body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]):hover,
body.workspace-redesign .workspace-shell select:hover,
body.workspace-redesign .workspace-shell textarea:hover {
  border-color: #aebfd4;
}

body.workspace-redesign .workspace-shell .button,
body.workspace-redesign .workspace-shell button:not(.text-action),
body.workspace-redesign .workspace-shell input[type="submit"] {
  border-radius: 7px;
  font-weight: 650;
}

body.workspace-redesign .workspace-shell button.text-action {
  border-radius: 6px;
  font-weight: 650;
}

body.workspace-redesign .workspace-shell .button.primary,
body.workspace-redesign .workspace-shell .filter-form button[type="submit"] {
  color: #fff;
  background: var(--wg-blue);
  border-color: var(--wg-blue);
}

body.workspace-redesign .workspace-shell .button.primary:hover,
body.workspace-redesign .workspace-shell .filter-form button[type="submit"]:hover {
  background: var(--wg-blue-hover);
  border-color: var(--wg-blue-hover);
}

body.workspace-redesign .workspace-shell .button.subtle,
body.workspace-redesign .workspace-shell .button.ghost,
body.workspace-redesign .workspace-shell .filter-form > a.button {
  color: #245793;
  background: #fff;
  border-color: #c2d0e2;
}

body.workspace-redesign .workspace-shell .button.subtle:hover,
body.workspace-redesign .workspace-shell .button.ghost:hover,
body.workspace-redesign .workspace-shell .filter-form > a.button:hover {
  color: #0a56bc;
  background: #edf5ff;
  border-color: #a9c4e7;
}

body.workspace-redesign .workspace-shell button:disabled,
body.workspace-redesign .workspace-shell .button[aria-disabled="true"],
body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"]):disabled,
body.workspace-redesign .workspace-shell select:disabled,
body.workspace-redesign .workspace-shell textarea:disabled {
  color: #728095;
  background: #eef2f6;
  border-color: #d9e1ea;
  cursor: not-allowed;
  opacity: 0.72;
}

body.workspace-redesign .workspace-shell .claims-search {
  display: grid;
  grid-template-areas:
    "main actions"
    "filters filters";
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 14px;
  align-items: end;
}

body.workspace-redesign .workspace-shell .claims-search-main {
  grid-area: main;
  min-width: 0;
}

body.workspace-redesign .workspace-shell .claims-search-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

body.workspace-redesign .workspace-shell .claims-search > details.more-filters {
  grid-area: filters;
  width: auto;
  margin: 0;
}

body.workspace-redesign .workspace-shell .claims-search > details.more-filters:not([open]) > .more-filter-grid {
  display: none;
}

body.workspace-redesign .workspace-shell .claims-grid {
  min-width: 0;
}

body.workspace-redesign .workspace-shell .claims-grid-head,
body.workspace-redesign .workspace-shell .registry-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin: 17px 0 9px;
}

body.workspace-redesign .workspace-shell .claims-grid-scroll,
body.workspace-redesign .workspace-shell .registry-wrap,
body.workspace-redesign .workspace-shell .table-wrap,
body.workspace-redesign .workspace-shell .people-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  background: var(--wg-paper);
  border-color: var(--wg-line);
  box-shadow: 0 2px 10px rgba(24, 49, 84, 0.03);
  -webkit-overflow-scrolling: touch;
}

body.workspace-redesign .workspace-shell .workspace-registry,
body.workspace-redesign .workspace-shell .people-spreadsheet,
body.workspace-redesign .workspace-shell .registry {
  color: #26344d;
  background: var(--wg-paper);
}

body.workspace-redesign .workspace-shell .workspace-registry th,
body.workspace-redesign .workspace-shell .people-spreadsheet th,
body.workspace-redesign .workspace-shell .registry th {
  color: #43536d;
  background: #f1f4f8;
  border-bottom-color: var(--wg-line-strong);
  font-size: 12px;
  font-weight: 680;
}

body.workspace-redesign .workspace-shell .workspace-registry td,
body.workspace-redesign .workspace-shell .people-spreadsheet td,
body.workspace-redesign .workspace-shell .registry td {
  background: var(--wg-paper);
  border-bottom-color: #e5eaf1;
}

body.workspace-redesign .workspace-shell .workspace-registry tbody tr:hover td,
body.workspace-redesign .workspace-shell .people-spreadsheet tbody tr:hover td,
body.workspace-redesign .workspace-shell .registry tbody tr:hover td {
  background: #f6f9fd;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell] {
  position: relative;
}

body.workspace-redesign .workspace-shell .claims-grid-display {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

body.workspace-redesign .workspace-shell .claims-grid-display:hover,
body.workspace-redesign .workspace-shell .claims-grid-display:focus-visible {
  color: #0a5cc8;
  text-decoration: underline;
  outline: none;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell]:not(.is-editing) .claims-grid-editor {
  display: none;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-editing .claims-grid-display {
  display: none;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-editing .claims-grid-editor {
  display: block;
}

/* The incumbent registry styles every small as display:block. Preserve the
   enhancement's hidden fallback rather than showing a false no-JS warning. */
body.workspace-redesign .workspace-shell [data-grid-edit-unavailable][hidden] {
  display: none;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-editing {
  background: #f0f6ff;
  box-shadow: inset 0 0 0 1px #a9c8f1;
}

body.workspace-redesign .workspace-shell [data-grid-edit-control] {
  min-height: 30px;
  max-width: 100%;
  padding: 5px 7px;
  color: #223a5d;
  background: #fff;
  border: 1px solid #afc4de;
  border-radius: 6px;
  font: inherit;
  font-size: 12px;
}

body.workspace-redesign .workspace-shell [data-grid-edit-control]:focus-visible {
  outline: 2px solid var(--wg-blue);
  outline-offset: 1px;
}

body.workspace-redesign .workspace-shell [data-grid-edit-state] {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  color: #5d6b82;
  font-size: 11px;
  line-height: 1.2;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-saving [data-grid-edit-state] {
  color: #315f9c;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-saved [data-grid-edit-state] {
  color: #15725d;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-error [data-grid-edit-state],
body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-conflict [data-grid-edit-state] {
  color: #a52e43;
}

body.workspace-redesign .workspace-shell .workspace-registry a,
body.workspace-redesign .workspace-shell .people-spreadsheet a {
  color: #0a5cc8;
}

body.workspace-redesign .workspace-shell .workspace-registry .pill,
body.workspace-redesign .workspace-shell .people-spreadsheet .pill,
body.workspace-redesign .workspace-shell .workspace-registry .material-state {
  box-shadow: none;
}

body.workspace-redesign .workspace-shell .people-panel,
body.workspace-redesign .workspace-shell .panel,
body.workspace-redesign .workspace-shell .settings-hub-group {
  background: var(--wg-paper);
  border-color: var(--wg-line);
  box-shadow: 0 2px 10px rgba(24, 49, 84, 0.03);
}

body.workspace-redesign .workspace-shell .settings-hub {
  gap: 22px 30px;
}

body.workspace-redesign .workspace-shell .settings-hub-group h2,
body.workspace-redesign .workspace-shell .settings-hub-link strong {
  color: #263b5b;
}

body.workspace-redesign .workspace-shell .settings-hub-link {
  min-height: 46px;
  color: #205897;
  border-bottom-color: #e4eaf2;
}

body.workspace-redesign .workspace-shell .settings-hub-link small,
body.workspace-redesign .workspace-shell .settings-hub-group > p,
body.workspace-redesign .workspace-shell .settings-hub-intro {
  color: #5d6b82;
}

body.workspace-redesign .workspace-shell .chat-thread-list,
body.workspace-redesign .workspace-shell .chat-conversation,
body.workspace-redesign .workspace-shell .chat-message,
body.workspace-redesign .workspace-shell .chat-compose,
body.workspace-redesign .workspace-shell .chat-note,
body.workspace-redesign .workspace-shell .chat-attachments {
  border-color: var(--wg-line);
  box-shadow: none;
}

body.workspace-redesign .workspace-shell .chat-thread-list,
body.workspace-redesign .workspace-shell .chat-conversation,
body.workspace-redesign .workspace-shell .chat-message,
body.workspace-redesign .workspace-shell .chat-compose,
body.workspace-redesign .workspace-shell .chat-attachments {
  background: var(--wg-paper);
}

body.workspace-redesign .workspace-shell .chat-thread:hover,
body.workspace-redesign .workspace-shell .chat-thread.is-active,
body.workspace-redesign .workspace-shell .chat-message-outgoing {
  background: #edf5ff;
}

body.workspace-redesign .workspace-shell .chat-thread.is-active {
  box-shadow: inset 2px 0 var(--wg-blue);
}

body.workspace-redesign .workspace-shell .chat-note,
body.workspace-redesign .workspace-shell .chat-message-internal {
  background: #fff9ec;
}

body.workspace-redesign .workspace-shell :focus-visible {
  outline: 2px solid var(--wg-blue);
  outline-offset: 2px;
}

body.workspace-redesign .workspace-shell ::selection {
  color: #10213d;
  background: #cfe3ff;
}

@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  body.workspace-redesign .workspace-shell .sidebar,
  body.workspace-redesign .workspace-shell .topbar,
  body.workspace-redesign .workspace-shell .workspace-toolbar,
  body.workspace-redesign .workspace-shell .toolbar {
    background: var(--wg-glass);
    backdrop-filter: blur(24px) saturate(1.06);
    -webkit-backdrop-filter: blur(24px) saturate(1.06);
  }
}

@media (max-width: 1280px) {
  body.workspace-redesign .workspace-shell .main {
    padding-right: 26px;
    padding-left: 26px;
  }

  body.workspace-redesign .workspace-shell .topbar {
    margin-right: -26px;
    margin-left: -26px;
    padding-right: 26px;
    padding-left: 26px;
  }
}

@media (max-width: 900px) {
  body.workspace-redesign .workspace-shell .sidebar,
  body.workspace-redesign .workspace-shell .topbar,
  body.workspace-redesign .workspace-shell .workspace-toolbar,
  body.workspace-redesign .workspace-shell .toolbar {
    background: var(--wg-glass-fallback);
  }

  body.workspace-redesign .workspace-shell .claims-search,
  body.workspace-redesign .workspace-shell .claims-grid-head,
  body.workspace-redesign .workspace-shell .registry-head {
    grid-template-columns: 1fr;
    display: grid;
  }

  body.workspace-redesign .workspace-shell .claims-search {
    grid-template-areas:
      "main"
      "actions"
      "filters";
  }

  body.workspace-redesign .workspace-shell .claims-search-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 768px) {
  body.workspace-redesign .workspace-shell {
    overflow-x: clip;
    max-width: 100%;
  }

  body.workspace-redesign .workspace-shell .main {
    min-width: 0;
    padding-right: 14px;
    padding-left: 14px;
  }

  body.workspace-redesign .workspace-shell .topbar {
    margin-right: -14px;
    margin-left: -14px;
    padding-right: 14px;
    padding-left: 14px;
  }

  body.workspace-redesign .workspace-shell .workspace-toolbar,
  body.workspace-redesign .workspace-shell .toolbar {
    padding: 11px;
    border-radius: 10px;
  }

  body.workspace-redesign .workspace-shell .claims-search-actions > * {
    flex: 1 1 140px;
  }

  body.workspace-redesign .workspace-shell .registry-head {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  body.workspace-redesign .workspace-shell .registry-export {
    flex-direction: column;
    align-items: stretch;
    max-width: none;
  }

  body.workspace-redesign .workspace-shell .registry-export small {
    max-width: none;
  }

  body.workspace-redesign .workspace-shell .main > nav.registry-queues {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  body.workspace-redesign .workspace-shell .context-help {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 390px) {
  body.workspace-redesign .workspace-shell .main {
    padding-right: 10px;
    padding-left: 10px;
  }

  body.workspace-redesign .workspace-shell .topbar {
    margin-right: -10px;
    margin-left: -10px;
    padding-right: 10px;
    padding-left: 10px;
  }

  body.workspace-redesign .workspace-shell .claims-search-actions > * {
    flex-basis: 100%;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.workspace-redesign .workspace-shell .sidebar,
  body.workspace-redesign .workspace-shell .topbar,
  body.workspace-redesign .workspace-shell .workspace-toolbar,
  body.workspace-redesign .workspace-shell .toolbar {
    background: var(--wg-glass-fallback);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

/* Neutral material overrides for the incumbent compact-navigation layer.
   They intentionally do not affect details' open/closed layout or menu JS. */
body.workspace-redesign .workspace-shell .sidebar {
  background: var(--wg-glass-fallback);
  border-right-color: var(--wg-line);
  box-shadow: inset -1px 0 0 var(--wg-glass-edge), 10px 0 28px rgba(32, 33, 38, 0.07);
}

body.workspace-redesign .workspace-shell .topbar {
  background: var(--wg-glass-fallback);
  border-bottom-color: var(--wg-line);
  box-shadow: inset 0 1px 0 var(--wg-glass-edge), 0 10px 28px rgba(32, 33, 38, 0.06);
}

body.workspace-redesign .workspace-shell .workspace-toolbar,
body.workspace-redesign .workspace-shell .toolbar {
  background: var(--wg-glass-fallback);
  border-color: var(--wg-line);
  box-shadow: inset 0 1px 0 var(--wg-glass-edge), 0 8px 22px rgba(32, 33, 38, 0.06);
}

body.workspace-redesign .workspace-shell .sidebar .brand,
body.workspace-redesign .workspace-shell .workspace-navigation > summary {
  color: var(--wg-ink);
}

body.workspace-redesign .workspace-shell .sidebar .brand-mark {
  color: #fff;
  background: var(--wg-blue);
}

body.workspace-redesign .workspace-shell .workspace-navigation > summary,
body.workspace-redesign .workspace-shell .workspace-navigation:not([open]) > summary {
  background: var(--wg-glass-fallback);
  border-color: var(--wg-line);
  box-shadow: inset 0 1px 0 var(--wg-glass-edge), 0 8px 22px rgba(32, 33, 38, 0.08);
}

body.workspace-redesign .workspace-shell .workspace-navigation .nav-link {
  color: #3f454e;
}

body.workspace-redesign .workspace-shell .workspace-navigation .nav-link:hover {
  color: var(--wg-ink);
  background: rgba(0, 103, 223, 0.08);
}

body.workspace-redesign .workspace-shell .workspace-navigation .nav-link[aria-current="page"],
body.workspace-redesign .workspace-shell .workspace-navigation .nav-link.active {
  color: #0058bf;
  background: rgba(0, 103, 223, 0.12);
  border-color: #a9cffd;
}

body.workspace-redesign .workspace-shell .workspace-navigation .nav-link b {
  color: #1559ad;
  background: rgba(0, 103, 223, 0.1);
  border-color: #b9d8ff;
}

body.workspace-redesign .workspace-shell .workspace-navigation .nav-link[aria-current="page"] b,
body.workspace-redesign .workspace-shell .workspace-navigation .nav-link.active b {
  color: #fff;
  background: var(--wg-blue);
  border-color: var(--wg-blue);
}

body.workspace-redesign .workspace-shell .filter-form > label,
body.workspace-redesign .workspace-shell .more-filter-grid > label,
body.workspace-redesign .workspace-shell .chat-actions label {
  color: #4c535e;
}

body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"]),
body.workspace-redesign .workspace-shell select,
body.workspace-redesign .workspace-shell textarea,
body.workspace-redesign .workspace-shell [data-grid-edit-control] {
  color: var(--wg-ink);
  background: var(--wg-paper);
  border-color: #b6bec9;
  box-shadow: inset 0 1px 1px rgba(32, 33, 38, 0.035);
}

body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="file"])::placeholder,
body.workspace-redesign .workspace-shell textarea::placeholder {
  color: var(--wg-placeholder);
}

body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"]):invalid,
body.workspace-redesign .workspace-shell textarea:invalid,
body.workspace-redesign .workspace-shell select:invalid,
body.workspace-redesign .workspace-shell input:not([type="checkbox"]):not([type="radio"])[aria-invalid="true"],
body.workspace-redesign .workspace-shell textarea[aria-invalid="true"],
body.workspace-redesign .workspace-shell select[aria-invalid="true"],
body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-error [data-grid-edit-control],
body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-conflict [data-grid-edit-control] {
  border-color: #a52e43;
  box-shadow: inset 0 0 0 1px rgba(165, 46, 67, 0.18);
}

body.workspace-redesign .workspace-shell .workspace-registry,
body.workspace-redesign .workspace-shell .people-spreadsheet,
body.workspace-redesign .workspace-shell .registry,
body.workspace-redesign .workspace-shell .workspace-registry td,
body.workspace-redesign .workspace-shell .people-spreadsheet td,
body.workspace-redesign .workspace-shell .registry td {
  color: #30343b;
  background: var(--wg-paper);
  border-color: #e1e4e8;
}

body.workspace-redesign .workspace-shell .workspace-registry th,
body.workspace-redesign .workspace-shell .people-spreadsheet th,
body.workspace-redesign .workspace-shell .registry th {
  color: #4d5561;
  background: #f3f4f6;
  border-color: var(--wg-line-strong);
}

body.workspace-redesign .workspace-shell .workspace-registry tbody tr:hover td,
body.workspace-redesign .workspace-shell .people-spreadsheet tbody tr:hover td,
body.workspace-redesign .workspace-shell .registry tbody tr:hover td {
  background: #f7f9fc;
}

body.workspace-redesign .workspace-shell [data-claims-grid-cell].is-editing {
  background: #f2f7ff;
  box-shadow: inset 0 0 0 1px #9bc8ff;
}

@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  body.workspace-redesign .workspace-shell .sidebar,
  body.workspace-redesign .workspace-shell .topbar,
  body.workspace-redesign .workspace-shell .workspace-toolbar,
  body.workspace-redesign .workspace-shell .toolbar {
    background: var(--wg-glass);
    backdrop-filter: blur(24px) saturate(1.06);
    -webkit-backdrop-filter: blur(24px) saturate(1.06);
  }
}

@media (max-width: 900px) {
  body.workspace-redesign .workspace-shell .sidebar {
    border-bottom-color: var(--wg-line);
    box-shadow: inset 0 1px 0 var(--wg-glass-edge), 0 8px 22px rgba(32, 33, 38, 0.07);
  }

  body.workspace-redesign .workspace-shell .workspace-navigation nav {
    background: var(--wg-glass-fallback);
    border-color: var(--wg-line);
    box-shadow: inset 0 1px 0 var(--wg-glass-edge), 0 8px 22px rgba(32, 33, 38, 0.08);
  }
}

@supports ((backdrop-filter: blur(24px)) or (-webkit-backdrop-filter: blur(24px))) {
  @media (max-width: 900px) {
    body.workspace-redesign .workspace-shell .workspace-navigation nav {
      background: var(--wg-glass);
      backdrop-filter: blur(24px) saturate(1.06);
      -webkit-backdrop-filter: blur(24px) saturate(1.06);
    }
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.workspace-redesign .workspace-shell .sidebar,
  body.workspace-redesign .workspace-shell .topbar,
  body.workspace-redesign .workspace-shell .workspace-toolbar,
  body.workspace-redesign .workspace-shell .toolbar,
  body.workspace-redesign .workspace-shell .workspace-navigation nav {
    background: var(--wg-glass-fallback);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

body.workspace-redesign [data-claim-card-save] fieldset {
  border: 0;
  padding: 0;
  margin: 0;
  min-inline-size: 0;
}

body.workspace-redesign [data-card-save-state] {
  overflow-wrap: anywhere;
}

body.workspace-redesign .workspace-shell .tariff-freshness {
  margin: 0 0 12px;
  color: #43546e;
  font-size: 14px;
  line-height: 1.45;
}

body.workspace-redesign .workspace-shell .tariff-freshness-stale,
body.workspace-redesign .workspace-shell .tariff-freshness-unverified {
  color: #744b12;
}

body.workspace-redesign .workspace-shell .tariff-freshness-cell {
  display: grid;
  gap: 2px;
  min-width: 132px;
  color: #314a70;
  text-decoration: none;
}

body.workspace-redesign .workspace-shell .tariff-freshness-cell strong {
  color: inherit;
  font-size: 13px;
  font-weight: 650;
}

body.workspace-redesign .workspace-shell .tariff-freshness-cell small {
  color: inherit;
  font-size: 12px;
  line-height: 1.35;
}

body.workspace-redesign .workspace-shell .tariff-freshness-cell:hover {
  color: var(--wg-blue);
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.workspace-redesign .workspace-shell .tariff-freshness-cell.tariff-freshness-stale,
body.workspace-redesign .workspace-shell .tariff-freshness-cell.tariff-freshness-unverified {
  color: #744b12;
}

/* Tables stay inside panels; chat author lines read consistently. */
body.workspace-redesign .workspace-shell .panel,
body.workspace-redesign .workspace-shell .workspace-toolbar {
  box-sizing: border-box;
  min-width: 0;
  max-width: 100%;
}

body.workspace-redesign .workspace-shell .people-table-wrap,
body.workspace-redesign .workspace-shell .registry-wrap,
body.workspace-redesign .workspace-shell .claims-grid-scroll {
  overflow-x: auto;
  overscroll-behavior-x: contain;
}

body.workspace-redesign .workspace-shell .people-spreadsheet.staff-spreadsheet {
  min-width: 1040px;
}

body.workspace-redesign .workspace-shell .registry-scroll-cue,
body.workspace-redesign .workspace-shell .people-panel > .registry-scroll-cue {
  display: block;
  margin-top: 10px;
  margin-bottom: 8px;
  color: var(--wg-muted);
  font-size: 12px;
  line-height: 1.4;
}

body.workspace-redesign .workspace-shell .workspace-registry th:nth-child(13) {
  min-width: 7.5rem;
  max-width: 8.5rem;
}

body.workspace-redesign .workspace-shell .workspace-registry .empty-inline {
  padding: 22px 18px;
  text-align: left;
  line-height: 1.45;
}

body.workspace-redesign .workspace-shell .people-panel > .registry-scroll-cue {
  margin-right: 17px;
  margin-left: 17px;
}

body.workspace-redesign .workspace-shell .claims-grid-scroll,
body.workspace-redesign .workspace-shell .registry-wrap,
body.workspace-redesign .workspace-shell .table-wrap,
body.workspace-redesign .workspace-shell .people-table-wrap {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

body.workspace-redesign .workspace-shell .chat-workspace {
  min-width: 0;
  max-width: 100%;
}

body.workspace-redesign .workspace-shell .chat-conversation {
  min-width: 0;
}

body.workspace-redesign .workspace-shell .chat-history {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

body.workspace-redesign .workspace-shell .chat-message {
  display: flex;
  flex-direction: column;
  width: min(100%, 560px);
  max-width: 100%;
  box-sizing: border-box;
}

body.workspace-redesign .workspace-shell .chat-message-incoming {
  align-self: flex-start;
}

body.workspace-redesign .workspace-shell .chat-message-outgoing {
  align-self: flex-end;
}

body.workspace-redesign .workspace-shell .chat-message-internal {
  align-self: stretch;
  width: 100%;
  max-width: 100%;
}

body.workspace-redesign .workspace-shell .chat-message header {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 10px;
  width: 100%;
  text-align: left;
}

body.workspace-redesign .workspace-shell .chat-message header strong {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
}

body.workspace-redesign .workspace-shell .chat-message header span {
  flex: 0 0 auto;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
}

body.workspace-redesign .workspace-shell .chat-message-body,
body.workspace-redesign .workspace-shell .chat-message footer {
  text-align: left;
}

/* Chats: filter checkboxes, empty states, inner padding */
body.workspace-redesign .workspace-shell .chat-toolbar .filter-form {
  gap: 10px 14px;
}

body.workspace-redesign .workspace-shell .chat-toolbar .check {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 0;
  padding: 4px 0;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.35;
  white-space: normal;
}

body.workspace-redesign .workspace-shell .chat-toolbar .check input[type="checkbox"] {
  box-sizing: border-box;
  width: 15px;
  height: 15px;
  margin: 0;
  flex: 0 0 auto;
  accent-color: var(--wg-blue);
}

body.workspace-redesign .workspace-shell .chat-conversation-empty,
body.workspace-redesign .workspace-shell .chat-conversation > .chat-empty,
body.workspace-redesign .workspace-shell .chat-thread-list .chat-empty {
  padding: 20px 18px;
  margin: 0;
  color: var(--wg-muted);
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
}

body.workspace-redesign .workspace-shell .chat-conversation-empty {
  display: flex;
  align-items: flex-start;
  justify-content: flex-start;
  min-height: 280px;
  padding: 22px 20px;
}

body.workspace-redesign .workspace-shell .chat-thread-items .chat-empty {
  padding: 16px 14px;
}

/* Loose blocks in .main — same horizontal rhythm as .registry-scroll-cue (17px). */
body.workspace-redesign .workspace-shell {
  --wg-page-inset: 17px;
}

body.workspace-redesign .workspace-shell .main > .control-strip,
body.workspace-redesign .workspace-shell .main > section.workspace-toolbar,
body.workspace-redesign .workspace-shell .main > section.toolbar,
body.workspace-redesign .workspace-shell .main > .context-help,
body.workspace-redesign .workspace-shell .main > .registry-head,
body.workspace-redesign .workspace-shell .main > .export-jobs,
body.workspace-redesign .workspace-shell .main > .filter-chips,
body.workspace-redesign .workspace-shell .main > .registry-scroll-cue,
body.workspace-redesign .workspace-shell .main > .pagination,
body.workspace-redesign .workspace-shell .main > nav.registry-queues,
body.workspace-redesign .workspace-shell .main > .table-wrap.registry-wrap,
body.workspace-redesign .workspace-shell .main > .registry-wrap,
body.workspace-redesign .workspace-shell .main > .claims-grid-scroll {
  box-sizing: border-box;
  width: calc(100% - 2 * var(--wg-page-inset));
  max-width: 100%;
  margin-right: var(--wg-page-inset);
  margin-left: var(--wg-page-inset);
}

body.workspace-redesign .workspace-shell .main > nav.registry-queues {
  box-sizing: border-box;
  padding: 8px 10px;
  background: var(--wg-paper);
  border: 1px solid var(--wg-line);
  border-radius: 10px;
}

body.workspace-redesign .workspace-shell .main > section.workspace-toolbar,
body.workspace-redesign .workspace-shell .main > section.toolbar {
  box-sizing: border-box;
}

body.workspace-redesign .workspace-shell .context-help {
  margin-bottom: 14px;
  padding: 0;
  line-height: 1.45;
  max-width: 72ch;
}

body.workspace-redesign .workspace-shell .settings-back {
  display: inline-flex;
  margin: 0 0 14px;
  padding: 6px 0;
}

body.workspace-redesign .workspace-shell .main > .notice {
  margin-bottom: 14px;
}

body.workspace-redesign .workspace-shell .help-intro {
  margin-bottom: 16px;
  padding: 0 var(--wg-page-inset, 17px);
}

body.workspace-redesign .workspace-shell .main > .settings-hub-intro {
  max-width: 980px;
  margin-right: auto;
  margin-bottom: 14px;
  margin-left: auto;
  padding: 0 22px;
  line-height: 1.5;
}

body.workspace-redesign .workspace-shell .main > .settings-hub {
  box-sizing: border-box;
  max-width: 980px;
  margin-right: auto;
  margin-bottom: 24px;
  margin-left: auto;
  padding: 22px 24px 26px;
  background: var(--wg-paper);
  border: 1px solid var(--wg-line);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(24, 49, 84, 0.04);
}

body.workspace-redesign .workspace-shell .main > .settings-hub .settings-hub-group:first-child {
  padding-top: 0;
  border-top: 0;
}

body.workspace-redesign .workspace-shell .main > .settings-hub .settings-hub-group h2 {
  margin-bottom: 8px;
}

body.workspace-redesign .workspace-shell .main > .settings-hub .settings-hub-links {
  gap: 4px;
}

body.workspace-redesign .workspace-shell .main > .settings-hub .settings-hub-link {
  padding: 10px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
}

body.workspace-redesign .workspace-shell .main > .settings-hub .settings-hub-link:hover {
  border-color: #d4e3f5;
}

body.workspace-redesign .workspace-shell .claims-search > details.more-filters {
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  padding-top: 10px;
  margin-top: 2px;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--wg-line);
  border-radius: 0;
}

body.workspace-redesign .workspace-shell .claims-search > details.more-filters > summary {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 4px 2px 8px;
  color: #245b99;
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  list-style: none;
}

body.workspace-redesign .workspace-shell .claims-search > details.more-filters > summary::-webkit-details-marker {
  display: none;
}

body.workspace-redesign .workspace-shell .claims-search .more-filter-grid {
  padding-top: 4px;
  padding-bottom: 2px;
}

body.workspace-redesign .workspace-shell .empty-inline {
  padding: 18px 14px;
}

@media (prefers-reduced-motion: reduce) {
  body.workspace-redesign .workspace-shell *,
  body.workspace-redesign .workspace-shell *::before,
  body.workspace-redesign .workspace-shell *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto;
    transition-duration: 0.01ms !important;
  }
}

@media (forced-colors: active) {
  body.workspace-redesign,
  body.workspace-redesign .workspace-shell,
  body.workspace-redesign .workspace-shell .main {
    color: CanvasText;
    background: Canvas;
  }

  body.workspace-redesign .workspace-shell .sidebar,
  body.workspace-redesign .workspace-shell .topbar,
  body.workspace-redesign .workspace-shell .workspace-toolbar,
  body.workspace-redesign .workspace-shell .toolbar,
  body.workspace-redesign .workspace-shell .workspace-navigation > summary,
  body.workspace-redesign .workspace-shell .workspace-navigation nav,
  body.workspace-redesign .workspace-shell input,
  body.workspace-redesign .workspace-shell select,
  body.workspace-redesign .workspace-shell textarea,
  body.workspace-redesign .workspace-shell .workspace-registry th,
  body.workspace-redesign .workspace-shell .workspace-registry td,
  body.workspace-redesign .workspace-shell .people-spreadsheet th,
  body.workspace-redesign .workspace-shell .people-spreadsheet td {
    color: CanvasText;
    background: Canvas;
    border-color: CanvasText;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link[aria-current="page"],
  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link.active,
  body.workspace-redesign .workspace-shell .button.primary,
  body.workspace-redesign .workspace-shell .filter-form button[type="submit"] {
    color: HighlightText;
    background: Highlight;
    border-color: Highlight;
  }

  body.workspace-redesign .workspace-shell :focus-visible {
    outline-color: Highlight;
  }
}

body.workspace-redesign .workspace-shell .people-spreadsheet .expert-org-picker__trigger {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  min-height: 28px;
  max-height: none;
  padding: 3px 22px 3px 7px;
  color: #203f68;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.2;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 12 12'%3E%3Cpath fill='%23587498' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E") no-repeat right 7px center;
  border: 1px solid #cbdced;
  border-radius: 5px;
  box-shadow: inset 0 1px 1px rgba(24, 49, 84, 0.025);
  cursor: pointer;
}

body.workspace-redesign .workspace-shell .people-spreadsheet .expert-org-picker__trigger:hover {
  color: #203f68;
  background-color: #fff;
  border-color: #9bbce1;
}

body.workspace-redesign .workspace-shell .people-spreadsheet .expert-org-picker__check {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  min-width: 14px;
  min-height: 0;
  max-width: 14px;
  margin: 0;
  padding: 0;
  flex: 0 0 14px;
  accent-color: var(--ws-blue, #0067df);
}
