/*
 * Enterprise 10 component reset
 * Last-loaded contract for the scoring surfaces:
 * Timeline, Conversations, Conversation Detail, Compose, and Mobile Timeline.
 */

:root {
  --hvx10-ink: #0f172a;
  --hvx10-muted: #64748b;
  --hvx10-faint: #94a3b8;
  --hvx10-line: rgba(15, 23, 42, 0.09);
  --hvx10-line-strong: rgba(15, 23, 42, 0.14);
  --hvx10-surface: #ffffff;
  --hvx10-soft: #f8fafc;
  --hvx10-accent: #2563eb;
  --hvx10-accent-soft: rgba(37, 99, 235, 0.08);
  --hvx10-risk: #b42318;
  --hvx10-risk-soft: #fff4f2;
  --hvx10-watch: #8a5a12;
  --hvx10-watch-soft: #fffbeb;
}

/* Score-loop correction 4: remove leftover noise and enforce conventional action states. */
html body.tenant-app-body[data-app-surface="workspace"] #app-timeline-case-health,
html body.tenant-app-body[data-app-surface="workspace"] #app-timeline-resolution-state,
html body.tenant-app-body[data-app-surface="workspace"] #app-timeline-sync-state,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline [data-timeline-resolution-action] {
  display: none !important;
}

html body .hvx10-mail-bulk-row.is-idle button {
  display: none !important;
}

html body .hvx10-mail-bulk-row.is-idle {
  flex: 0 0 190px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics {
  display: none !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner.hvx10-gate-row {
  grid-template-columns: auto minmax(320px, 1fr) auto auto !important;
  min-height: 42px !important;
  overflow: visible !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-copy p {
  max-width: 560px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .mail-compose-send-blocker {
  display: none !important;
}

html body .mail-compose-preflight-console {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  background: #f8fafc !important;
}

html body .mail-compose-preflight-console strong {
  flex: 0 0 auto !important;
}

html body .mail-compose-preflight-console span {
  color: var(--hvx10-muted) !important;
  font-size: 12px !important;
}

@media (max-width: 920px) {
  html body .tenant-mobile-nav-btn {
    position: relative !important;
  }

  html body .tenant-mobile-nav-badge {
    top: 3px !important;
    right: 8px !important;
    transform: none !important;
  }

  html body .tenant-mobile-nav-label {
    font-size: 9px !important;
  }
}

/* REAL EOF correction: active scoring-surface contracts. */
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
  display: grid !important;
  grid-template-columns: 44px 104px 132px minmax(420px, 1fr) 108px 126px 102px !important;
  align-items: stretch !important;
  gap: 0 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 7px 8px !important;
  border-left: 1px solid rgba(15, 23, 42, 0.06) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(1) { grid-column: 1 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(2) { grid-column: 2 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(3) { grid-column: 3 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(4) { grid-column: 4 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(5) { grid-column: 5 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(6) { grid-column: 6 !important; display: flex !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(7) { grid-column: 7 !important; }

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
  min-height: 54px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .tenant-timeline-mobile-card {
  display: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx12-select { grid-column: 1 !important; display: grid !important; place-items: center !important; padding: 0 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-priority { grid-column: 2 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-customer { grid-column: 3 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-work { grid-column: 4 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-owner { grid-column: 5 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-action { grid-column: 6 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > time { grid-column: 7 !important; }

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-cell,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-work {
  min-width: 0 !important;
  padding: 7px 8px !important;
  border-left: 1px solid rgba(15, 23, 42, 0.055) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-select i {
  width: 13px !important;
  height: 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #fff !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row.is-selected .hvx12-select i {
  border-color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row .hvx10-work strong,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row .hvx10-work .meta,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row b,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row .hvx11-action .hvx10-row-action {
  width: 100% !important;
  min-height: 28px !important;
  padding: 4px 6px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
  text-align: left !important;
}

html body .hvx11-mail-header {
  grid-template-columns: 34px 86px 116px 154px minmax(420px, 1fr) 104px !important;
}

html body .hvx11-mail-row .mail-workspace-row-grid {
  grid-template-columns: 86px 116px 154px minmax(420px, 1fr) 104px !important;
}

html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-triage { grid-column: 1 !important; order: 1 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-owner { grid-column: 2 !important; order: 2 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-from { grid-column: 3 !important; order: 3 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-subject { grid-column: 4 !important; order: 4 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-workspace-row-date { grid-column: 5 !important; order: 5 !important; }

html body .hvx11-mail-row .mail-conversation-subject em {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 4px !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 7px !important;
  background: rgba(37, 99, 235, 0.045) !important;
  color: #1e3a8a !important;
  font-style: normal !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner.hvx11-thread-gate {
  grid-template-columns: auto minmax(280px, 1fr) minmax(360px, 1.3fr) auto !important;
  overflow: visible !important;
}

html body .hvx11-thread-actionbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
}

html body .hvx11-response-disabled {
  color: #64748b !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

@media (max-width: 920px) {
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header {
    display: none !important;
  }
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
    display: block !important;
    min-height: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 9px !important;
    margin-bottom: 8px !important;
  }
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .tenant-timeline-mobile-card.hvx10-mobile-row {
    display: grid !important;
    min-height: 76px !important;
    padding: 9px !important;
  }
}

/* TRUE EOF score-loop correction 9: source-level queue contracts beat legacy cascade. */
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
  display: grid !important;
  grid-template-columns: 44px 104px 132px minmax(420px, 1fr) 108px 126px 102px !important;
  align-items: stretch !important;
  gap: 0 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span {
  display: flex !important;
  align-items: center !important;
  min-width: 0 !important;
  padding: 7px 8px !important;
  border-left: 1px solid rgba(15, 23, 42, 0.06) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(1) { grid-column: 1 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(2) { grid-column: 2 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(3) { grid-column: 3 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(4) { grid-column: 4 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(5) { grid-column: 5 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(6) { grid-column: 6 !important; display: flex !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header > span:nth-child(7) { grid-column: 7 !important; }

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
  min-height: 54px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .tenant-timeline-mobile-card {
  display: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx12-select { grid-column: 1 !important; display: grid !important; place-items: center !important; padding: 0 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-priority { grid-column: 2 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-customer { grid-column: 3 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-work { grid-column: 4 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-owner { grid-column: 5 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-action { grid-column: 6 !important; }
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > time { grid-column: 7 !important; }

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-cell,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-work {
  min-width: 0 !important;
  padding: 7px 8px !important;
  border-left: 1px solid rgba(15, 23, 42, 0.055) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-select i {
  width: 13px !important;
  height: 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #fff !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row.is-selected .hvx12-select i {
  border-color: #2563eb !important;
  background: rgba(37, 99, 235, 0.12) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row .hvx10-work strong,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row .hvx10-work .meta,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row b,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row .hvx11-action .hvx10-row-action {
  width: 100% !important;
  min-height: 28px !important;
  padding: 4px 6px !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  border-radius: 7px !important;
  background: #fff !important;
  color: #334155 !important;
  box-shadow: none !important;
  text-align: left !important;
}

html body .hvx11-mail-header {
  grid-template-columns: 34px 86px 116px 154px minmax(420px, 1fr) 104px !important;
}

html body .hvx11-mail-row .mail-workspace-row-grid {
  grid-template-columns: 86px 116px 154px minmax(420px, 1fr) 104px !important;
}

html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-triage { grid-column: 1 !important; order: 1 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-owner { grid-column: 2 !important; order: 2 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-from { grid-column: 3 !important; order: 3 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-subject { grid-column: 4 !important; order: 4 !important; }
html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-workspace-row-date { grid-column: 5 !important; order: 5 !important; }

html body .hvx11-mail-row .mail-conversation-subject em {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 4px !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 7px !important;
  background: rgba(37, 99, 235, 0.045) !important;
  color: #1e3a8a !important;
  font-style: normal !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner.hvx11-thread-gate {
  grid-template-columns: auto minmax(280px, 1fr) minmax(360px, 1.3fr) auto !important;
  overflow: visible !important;
}

html body .hvx11-thread-actionbar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 5px !important;
}

html body .hvx11-response-disabled {
  color: #64748b !important;
  font-size: 11px !important;
  white-space: nowrap !important;
}

@media (max-width: 920px) {
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header {
    display: none !important;
  }
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
    display: block !important;
    min-height: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 9px !important;
    margin-bottom: 8px !important;
  }
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .tenant-timeline-mobile-card.hvx10-mobile-row {
    display: grid !important;
    min-height: 76px !important;
    padding: 9px !important;
  }
}

/* Score-loop correction 5: component-level interaction semantics. */
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-queue-toolbar {
  grid-template-columns: 170px minmax(190px, 1fr) 180px 184px !important;
  align-items: stretch !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-actions {
  display: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics button span {
  font-size: 10px !important;
  color: #64748b !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-header,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row {
  display: grid !important;
  grid-template-columns: 84px 74px 128px minmax(300px, 1fr) 108px 132px 104px !important;
  gap: 0 !important;
  align-items: stretch !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-header {
  min-height: 30px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 8px 8px 0 0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-header span,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx10-cell,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx10-work {
  min-width: 0 !important;
  padding: 9px 10px !important;
  border-left: 1px solid rgba(15, 23, 42, 0.06) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-header span:first-child,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx10-cell:first-of-type {
  border-left: 0 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row {
  min-height: 66px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row.is-selected {
  outline: 1px solid rgba(37, 99, 235, 0.26) !important;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.035), #fff 18%) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .tenant-timeline-mobile-card {
  display: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-priority {
  display: grid !important;
  grid-template-columns: 6px minmax(0, 1fr) !important;
  column-gap: 8px !important;
  align-content: center !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-priority i {
  grid-row: 1 / span 2 !important;
  width: 4px !important;
  border-radius: 4px !important;
  background: #cbd5e1 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline [data-timeline-attention="warning"] .hvx11-priority i,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline [data-timeline-attention="error"] .hvx11-priority i {
  background: #2563eb !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-priority b,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-channel b,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-customer b,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-owner b {
  display: block !important;
  color: #0f172a !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-priority small,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-channel small,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-customer small,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-owner small,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-time small {
  display: block !important;
  color: #64748b !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
  margin-top: 3px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-work {
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-work strong {
  display: block !important;
  color: #0f172a !important;
  font-size: 13px !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-work .meta {
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
  margin: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-work .tenant-row-signals {
  display: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-action {
  display: grid !important;
  align-content: center !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-action .hvx10-row-action {
  width: 100% !important;
  min-height: 34px !important;
  padding: 5px 7px !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 7px !important;
  background: rgba(37, 99, 235, 0.055) !important;
  color: #1e3a8a !important;
  box-shadow: none !important;
  text-align: left !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-action .hvx10-row-action b,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-action .hvx10-row-action small {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-time {
  display: grid !important;
  align-content: center !important;
  color: #0f172a !important;
  font-size: 11px !important;
  font-weight: 650 !important;
  line-height: 1.25 !important;
}

/* Conversations: explicit bulk, columns, and row action model. */
html body .mail-triage-strip.hvx10-mail-toolbar {
  gap: 8px !important;
}

html body .hvx10-mail-bulk-row.is-idle {
  flex: 0 0 226px !important;
}

html body .hvx10-mail-bulk-row.is-idle small {
  max-width: 160px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .hvx10-mail-columns button {
  max-width: none !important;
  white-space: nowrap !important;
}

html body .hvx11-mail-header,
html body .hvx11-mail-row .mail-workspace-row-grid {
  grid-template-columns: 34px 86px 114px 142px minmax(240px, 1fr) 124px 88px !important;
}

html body .hvx11-mail-header {
  color: #64748b !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

html body .hvx11-mail-row {
  min-height: 64px !important;
  border-color: rgba(15, 23, 42, 0.08) !important;
  box-shadow: none !important;
}

html body .hvx11-mail-row::before,
html body .hvx11-mail-row .mail-conversation-triage::before {
  display: none !important;
}

html body .hvx11-mail-row .mail-conversation-triage,
html body .hvx11-mail-row .mail-conversation-owner,
html body .hvx11-mail-row .mail-conversation-from,
html body .hvx11-mail-row .mail-conversation-subject,
html body .hvx11-mail-row .mail-conversation-action,
html body .hvx11-mail-row .mail-workspace-row-date {
  min-width: 0 !important;
  padding: 8px 9px !important;
}

html body .hvx11-mail-row .mail-conversation-triage {
  background: transparent !important;
  border: 0 !important;
}

html body .hvx11-mail-row .mail-conversation-triage strong,
html body .hvx11-mail-row .mail-conversation-owner strong,
html body .hvx11-mail-row .mail-conversation-from strong,
html body .hvx11-mail-row .mail-conversation-subject strong {
  color: #0f172a !important;
  font-size: 12px !important;
  line-height: 1.25 !important;
}

html body .hvx11-mail-row .mail-conversation-triage small,
html body .hvx11-mail-row .mail-conversation-owner small,
html body .hvx11-mail-row .mail-conversation-from small,
html body .hvx11-mail-row .mail-conversation-subject small,
html body .hvx11-mail-row .mail-conversation-action small {
  color: #64748b !important;
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

html body .hvx11-mail-row .mail-conversation-action {
  display: grid !important;
  align-content: center !important;
}

html body .hvx11-mail-row .mail-conversation-action b {
  width: fit-content !important;
  max-width: 100% !important;
  padding: 5px 8px !important;
  border: 1px solid rgba(37, 99, 235, 0.2) !important;
  border-radius: 7px !important;
  background: rgba(37, 99, 235, 0.055) !important;
  color: #1e3a8a !important;
  font-size: 11px !important;
  line-height: 1.15 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .hvx11-row-primary-action {
  display: none !important;
}

html body .hvx11-mail-row .mail-workspace-row-hover-actions {
  right: 8px !important;
  top: calc(100% - 4px) !important;
}

/* Conversation detail: one gate, one triage action bar. */
html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner.hvx11-thread-gate {
  display: grid !important;
  grid-template-columns: auto minmax(260px, 1fr) minmax(440px, auto) auto !important;
  gap: 10px !important;
  align-items: center !important;
}

html body .hvx11-thread-actionbar {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  min-width: 0 !important;
}

html body .hvx11-thread-actionbar button {
  min-height: 30px !important;
  padding: 5px 8px !important;
  border-radius: 7px !important;
  box-shadow: none !important;
  white-space: nowrap !important;
}

html body .hvx11-thread-actionbar button:disabled {
  opacity: 0.45 !important;
  cursor: not-allowed !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-policy-detail {
  max-width: 110px !important;
  font-size: 10.5px !important;
}

/* Compose: validation is a field progression plus deliverability panel. */
html body .mail-compose-modal .mail-compose-card {
  max-width: min(1120px, calc(100vw - 32px)) !important;
}

html body .mail-compose-modal .mail-modal-main {
  gap: 8px !important;
}

html body .mail-compose-preflight-console.hvx11-compose-state {
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 8px !important;
}

html body .mail-compose-preflight-console.hvx11-compose-state strong {
  color: #0f172a !important;
}

html body .hvx11-compose-deliverability {
  display: grid !important;
  grid-template-columns: minmax(180px, 0.8fr) minmax(0, 2fr) !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 8px 10px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 8px !important;
  background: #fff !important;
}

html body .hvx11-compose-deliverability div span {
  display: block !important;
  color: #64748b !important;
  font-size: 10px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
}

html body .hvx11-compose-deliverability div strong {
  color: #0f172a !important;
  font-size: 12px !important;
}

html body .hvx11-compose-deliverability ul {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
  list-style: none !important;
}

html body .hvx11-compose-deliverability li {
  min-width: 0 !important;
  padding: 6px 7px !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 7px !important;
  background: #f8fafc !important;
}

html body .hvx11-compose-deliverability li b,
html body .hvx11-compose-deliverability li span {
  display: block !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .hvx11-compose-deliverability li b {
  color: #0f172a !important;
  font-size: 11px !important;
}

html body .hvx11-compose-deliverability li span {
  color: #64748b !important;
  font-size: 10px !important;
}

html body .hvx11-compose-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

html body .hvx11-compose-steps span {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto !important;
  align-items: center !important;
  gap: 7px !important;
}

html body .hvx11-compose-steps em {
  display: inline-grid !important;
  place-items: center !important;
  width: 18px !important;
  height: 18px !important;
  border-radius: 6px !important;
  background: #e2e8f0 !important;
  color: #334155 !important;
  font-style: normal !important;
  font-size: 10px !important;
  font-weight: 800 !important;
}

html body .mail-compose-field-validation {
  display: block !important;
  margin-top: 4px !important;
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.25 !important;
}

html body .mail-compose-field-validation.is-pending {
  color: #92400e !important;
}

html body .mail-compose-field-validation.is-pass {
  color: #64748b !important;
}

html body .mail-compose-actions.mail-modal-actions {
  position: sticky !important;
  bottom: 0 !important;
  z-index: 5 !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}

/* Mobile IA consistency: neutral operational navigation and compact rows. */
@media (max-width: 920px) {
  html body .tenant-mobile-nav {
    background: rgba(255, 255, 255, 0.96) !important;
    border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 -1px 2px rgba(15, 23, 42, 0.04) !important;
  }

  html body .tenant-mobile-nav-btn {
    color: #475569 !important;
  }

  html body .tenant-mobile-nav-btn.is-active {
    color: #0f172a !important;
    background: rgba(15, 23, 42, 0.04) !important;
  }

  html body .tenant-mobile-nav-badge {
    min-width: 14px !important;
    height: 14px !important;
    padding: 0 3px !important;
    border-radius: 999px !important;
    background: #e2e8f0 !important;
    color: #334155 !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    font-size: 8px !important;
    line-height: 14px !important;
    box-shadow: none !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-header {
    display: none !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row {
    display: block !important;
    min-height: 0 !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    border-radius: 9px !important;
    margin-bottom: 8px !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .tenant-timeline-mobile-card.hvx10-mobile-row {
    display: grid !important;
    min-height: 76px !important;
    padding: 9px !important;
  }

  html body .hvx11-compose-deliverability,
  html body .hvx11-compose-steps {
    grid-template-columns: 1fr !important;
  }

  html body .hvx11-compose-deliverability ul {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Score-loop correction 6: preserve conversation metadata while keeping action semantics. */
html body .hvx11-mail-header {
  grid-template-columns: 34px 86px 116px 154px minmax(320px, 1fr) 104px !important;
}

html body .hvx11-mail-row .mail-workspace-row-grid {
  grid-template-columns: 86px 116px 154px minmax(320px, 1fr) 104px !important;
}

html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-triage {
  grid-column: 1 !important;
  order: 1 !important;
}

html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-owner {
  grid-column: 2 !important;
  order: 2 !important;
}

html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-from {
  grid-column: 3 !important;
  order: 3 !important;
}

html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-conversation-subject {
  grid-column: 4 !important;
  order: 4 !important;
}

html body .hvx11-mail-row .mail-workspace-row-open.mail-workspace-row-grid > .mail-workspace-row-date {
  grid-column: 5 !important;
  order: 5 !important;
}

html body .hvx11-mail-row .mail-conversation-subject em {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  width: fit-content !important;
  max-width: 100% !important;
  margin-top: 4px !important;
  padding: 3px 7px !important;
  border: 1px solid rgba(37, 99, 235, 0.18) !important;
  border-radius: 7px !important;
  background: rgba(37, 99, 235, 0.045) !important;
  color: #1e3a8a !important;
  font-style: normal !important;
  font-size: 10.5px !important;
  line-height: 1.15 !important;
}

html body .hvx11-mail-row .mail-conversation-subject em b,
html body .hvx11-mail-row .mail-conversation-subject em span {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .hvx11-mail-row .mail-conversation-subject em span {
  color: #64748b !important;
  font-weight: 600 !important;
}

html body .hvx11-mail-row .mail-conversation-action {
  display: none !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner.hvx11-thread-gate {
  grid-template-columns: auto minmax(260px, 1fr) minmax(0, 1.6fr) auto !important;
}

html body .hvx11-thread-actionbar {
  flex-wrap: wrap !important;
  justify-content: flex-start !important;
  row-gap: 5px !important;
}

html body .hvx11-thread-actionbar button {
  flex: 0 0 auto !important;
}

html body .hvx11-response-disabled {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 30px !important;
  padding: 0 8px !important;
  color: #64748b !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
}

/* Score-loop correction 7: force Timeline cell placement over legacy queue grids. */
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-header,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row {
  grid-template-columns: 70px 72px 116px minmax(330px, 1fr) 96px 112px 96px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row {
  min-height: 56px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx11-priority {
  grid-column: 1 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx11-channel {
  grid-column: 2 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx11-customer {
  grid-column: 3 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx10-work {
  grid-column: 4 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx10-owner {
  grid-column: 5 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx11-action {
  grid-column: 6 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > time {
  grid-column: 7 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-header span,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx10-cell,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-timeline-row > .hvx10-work {
  padding: 7px 8px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-priority {
  column-gap: 6px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-action .hvx10-row-action {
  min-height: 28px !important;
  padding: 4px 6px !important;
  border-color: rgba(15, 23, 42, 0.1) !important;
  background: #fff !important;
  color: #334155 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-action .hvx10-row-action b {
  color: #0f172a !important;
  font-size: 10.5px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx11-action .hvx10-row-action small {
  color: #64748b !important;
  font-size: 9.5px !important;
}

/* Score-loop correction 8: literal operational queue schema requested by scorer. */
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-header,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
  grid-template-columns: 44px 104px 126px minmax(360px, 1fr) 104px 126px 98px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx12-select {
  grid-column: 1 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-priority {
  grid-column: 2 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-customer {
  grid-column: 3 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-work {
  grid-column: 4 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-owner {
  grid-column: 5 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx11-action {
  grid-column: 6 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > time {
  grid-column: 7 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-select {
  display: grid !important;
  place-items: center !important;
  padding: 0 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-select i {
  width: 13px !important;
  height: 13px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 4px !important;
  background: #fff !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row.is-selected .hvx12-select i {
  border-color: #2563eb !important;
  background: linear-gradient(135deg, #2563eb 0 50%, #fff 50% 56%, #2563eb 56%) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row {
  min-height: 52px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-cell,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx12-timeline-row > .hvx10-work {
  padding-top: 6px !important;
  padding-bottom: 6px !important;
}

/* Global shell controls: remove the remaining consumer-app accent weight. */
.tenant-menu-btn,
#app-workspace-filter-btn,
.tenant-workspace-filter-toggle,
.mail-sidebar-toggle,
.mail-compose-window-btn {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
  color: #334155 !important;
}

.tenant-menu-btn:hover,
#app-workspace-filter-btn:hover,
.tenant-workspace-filter-toggle:hover,
.mail-sidebar-toggle:hover,
.mail-compose-window-btn:hover {
  background: #f8fafc !important;
  border-color: rgba(37, 99, 235, 0.2) !important;
}

.tenant-workspace-search-shell {
  min-height: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}

.tenant-workspace-search-shell input,
.tenant-workspace-search-shell button {
  min-height: 32px !important;
}

/* Timeline: true queue contract, not narrative cards. */
#app-stage-timeline .tenant-commercial-hero,
#app-stage-timeline .tenant-operational-heat,
#app-stage-timeline .tenant-queue-control-strip,
#app-stage-timeline .tenant-case-command-center,
#app-stage-timeline .tenant-density-control,
#app-stage-timeline .tenant-live-presence-strip,
#app-stage-timeline .tenant-action-audit-copy,
#app-stage-timeline .tenant-collab-lock,
#app-stage-timeline .tenant-context-note,
#app-stage-timeline #app-timeline-momentum,
#app-stage-timeline .tenant-timeline-status {
  display: none !important;
}

#app-stage-timeline .tenant-stage-stack,
#app-stage-timeline .tenant-productization-stack {
  gap: 10px !important;
}

#app-stage-timeline .tenant-productization-grid-wide {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 318px !important;
  gap: 10px !important;
  align-items: start !important;
}

#app-stage-timeline .tenant-customer-profile,
#app-stage-timeline .tenant-context-panel {
  background: var(--hvx10-surface) !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

#app-stage-timeline .tenant-customer-profile {
  padding: 12px !important;
}

#app-stage-timeline .tenant-customer-profile > .tenant-section-head {
  padding: 0 0 10px !important;
  margin: 0 0 8px !important;
  border-bottom: 1px solid var(--hvx10-line) !important;
}

#app-stage-timeline .tenant-customer-profile .card-title {
  font-size: 18px !important;
  line-height: 1.2 !important;
}

#app-stage-timeline .tenant-case-anchor,
#app-stage-timeline .tenant-status-stack {
  display: none !important;
}

.hvx10-queue-toolbar {
  display: grid;
  grid-template-columns: 165px minmax(180px, 1fr) 190px 235px 230px;
  gap: 8px;
  align-items: stretch;
  margin: 2px 0 8px;
}

.hvx10-queue-toolbar > * {
  min-width: 0;
  border: 1px solid var(--hvx10-line);
  border-radius: 7px;
  background: #fff;
  padding: 8px 10px;
  box-shadow: none;
}

.hvx10-queue-toolbar span,
.hvx10-queue-toolbar small,
.hvx10-timeline-row small,
.hvx10-thread-detail-shell small,
.hvx10-mail-toolbar small {
  color: var(--hvx10-muted);
  font-size: 11px;
  line-height: 1.25;
}

.hvx10-queue-toolbar strong,
.hvx10-queue-toolbar b {
  display: block;
  color: var(--hvx10-ink);
  font-size: 13px;
  line-height: 1.25;
  font-weight: 700;
}

.hvx10-toolbar-filter {
  text-align: left;
  cursor: pointer;
}

.hvx10-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-content: center;
}

.hvx10-toolbar-actions > span {
  flex: 0 0 100%;
}

.hvx10-toolbar-actions button,
.hvx10-row-action,
.hvx10-mail-toolbar button,
.hvx10-thread-actions button {
  min-height: 28px !important;
  border-radius: 6px !important;
  padding: 5px 8px !important;
  box-shadow: none !important;
}

.hvx10-toolbar-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.hvx10-toolbar-metrics button {
  border: 1px solid var(--hvx10-line);
  border-radius: 6px;
  background: var(--hvx10-soft);
  color: var(--hvx10-ink);
  padding: 6px 4px;
  min-height: 34px;
}

.hvx10-toolbar-metrics .is-attention {
  background: var(--hvx10-risk-soft);
  border-color: rgba(180, 35, 24, 0.18);
  color: var(--hvx10-risk);
}

.tenant-timeline-queue-header.hvx10-timeline-header {
  display: grid !important;
  grid-template-columns: 126px minmax(260px, 1fr) 126px 145px 132px !important;
  gap: 0 !important;
  padding: 7px 10px !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 7px 7px 0 0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

.tenant-timeline-queue-table.hvx10-timeline-table {
  display: block !important;
  border: 1px solid var(--hvx10-line) !important;
  border-top: 0 !important;
  border-radius: 0 0 7px 7px !important;
  overflow: hidden !important;
  background: #fff !important;
}

.tenant-customer-timeline-item.hvx10-timeline-row {
  display: grid !important;
  grid-template-columns: 126px minmax(260px, 1fr) 126px 145px 132px !important;
  gap: 0 !important;
  align-items: stretch !important;
  min-height: 58px !important;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hvx10-line) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.tenant-customer-timeline-item.hvx10-timeline-row:last-child {
  border-bottom: 0 !important;
}

.tenant-customer-timeline-item.hvx10-timeline-row.is-selected {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.055), #fff 38%) !important;
  box-shadow: inset 3px 0 0 var(--hvx10-accent) !important;
}

.hvx10-timeline-row > * {
  min-width: 0;
}

.hvx10-timeline-row .hvx10-cell,
.hvx10-timeline-row time {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  padding: 9px 10px !important;
  border-left: 1px solid rgba(15, 23, 42, 0.055) !important;
  color: var(--hvx10-ink) !important;
  font-size: 12px !important;
}

.hvx10-timeline-row .hvx10-work {
  padding: 8px 12px !important;
}

.hvx10-timeline-row .hvx10-work strong,
.hvx10-mail-row strong {
  font-size: 13px !important;
  line-height: 1.25 !important;
  color: var(--hvx10-ink) !important;
}

.hvx10-timeline-row .hvx10-work p,
.hvx10-mail-row small,
.hvx10-thread-inspector p {
  margin: 2px 0 0 !important;
  color: var(--hvx10-muted) !important;
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.hvx10-row-type {
  display: inline-block;
  max-width: max-content;
  margin-bottom: 3px;
  color: #475569;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.hvx10-token {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  border: 1px solid var(--hvx10-line);
  border-radius: 999px;
  background: #f8fafc;
  color: #334155;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}

.hvx10-token.is-urgent {
  background: var(--hvx10-risk-soft);
  border-color: rgba(180, 35, 24, 0.18);
  color: var(--hvx10-risk);
}

.hvx10-token.is-attention {
  background: var(--hvx10-watch-soft);
  border-color: rgba(138, 90, 18, 0.18);
  color: var(--hvx10-watch);
}

.hvx10-row-action {
  border: 1px solid var(--hvx10-line) !important;
  background: #fff !important;
  color: #1e40af !important;
  font-weight: 700 !important;
}

.hvx10-row-action small {
  display: block;
}

.hvx10-mobile-row {
  display: none;
}

#app-stage-timeline .tenant-context-panel {
  padding: 10px !important;
  position: sticky !important;
  top: 76px !important;
}

#app-stage-timeline .tenant-context-panel .tenant-section-head {
  margin-bottom: 8px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--hvx10-line) !important;
}

#app-stage-timeline .tenant-ai-capsule,
#app-stage-timeline .tenant-operational-memory,
#app-stage-timeline .tenant-operational-inspector-summary,
#app-stage-timeline .tenant-operational-inspector-reason,
#app-stage-timeline .tenant-ai-suggestion-list > article {
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 7px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 8px !important;
  margin: 0 0 8px !important;
}

#app-stage-timeline .tenant-operational-memory {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

#app-stage-timeline .tenant-ai-suggestion-list > article:nth-child(n+4) {
  display: none !important;
}

#app-stage-timeline .tenant-timeline-actions,
#app-stage-timeline .tenant-timeline-more-actions {
  gap: 6px !important;
}

#app-stage-timeline .tenant-timeline-actions button,
#app-stage-timeline .tenant-timeline-more-actions button {
  min-height: 28px !important;
  border-radius: 6px !important;
  padding: 5px 8px !important;
  box-shadow: none !important;
}

/* Filter state machine: Conditions -> Preview -> Apply. */
.tenant-workspace-filter.tenant-filter-enterprise-reset {
  width: min(760px, calc(100vw - 28px)) !important;
  padding: 12px !important;
  border: 1px solid var(--hvx10-line-strong) !important;
  border-radius: 10px !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16) !important;
  background: #fff !important;
}

.tenant-filter-enterprise-reset .tenant-workspace-filter-head {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid var(--hvx10-line) !important;
}

.tenant-filter-enterprise-reset .tenant-filter-live-summary,
.tenant-filter-enterprise-reset .tenant-filter-draft-state,
.tenant-filter-enterprise-reset .tenant-filter-section {
  margin-top: 10px !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 10px !important;
}

.tenant-filter-enterprise-reset .tenant-filter-live-summary {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 8px !important;
  background: #f8fafc !important;
}

.tenant-filter-enterprise-reset .tenant-workspace-filter-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.tenant-filter-enterprise-reset label,
.tenant-filter-enterprise-reset .tenant-filter-builder-row {
  gap: 4px !important;
}

.tenant-filter-enterprise-reset input,
.tenant-filter-enterprise-reset select {
  min-height: 34px !important;
  border-radius: 7px !important;
  border: 1px solid var(--hvx10-line) !important;
}

.tenant-filter-enterprise-reset .tenant-workspace-filter-actions {
  margin-top: 10px !important;
  justify-content: flex-end !important;
  border-top: 1px solid var(--hvx10-line) !important;
  padding-top: 10px !important;
}

.tenant-filter-enterprise-reset #app-filter-clear,
.tenant-filter-enterprise-reset .tenant-filter-reset-action {
  background: transparent !important;
  border-color: transparent !important;
  color: var(--hvx10-muted) !important;
  box-shadow: none !important;
}

/* Conversations: table, not stacked mailbox cards. */
.mail-triage-strip.hvx10-mail-toolbar {
  display: grid !important;
  grid-template-columns: minmax(170px, 1fr) minmax(250px, 1.4fr) minmax(250px, 1.1fr) 185px !important;
  gap: 8px !important;
  margin: 0 0 8px !important;
  padding: 8px !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

.mail-triage-strip.hvx10-mail-toolbar > * {
  min-width: 0;
  border: 1px solid var(--hvx10-line);
  border-radius: 7px;
  background: #f8fafc;
  padding: 7px 8px;
}

.hvx10-mail-filter-row,
.hvx10-mail-bulk-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-content: center;
}

.hvx10-mail-filter-row > span,
.hvx10-mail-bulk-row > span {
  flex: 0 0 100%;
}

.mail-queue-column-header.hvx10-mail-header {
  display: grid !important;
  grid-template-columns: 36px 105px 116px minmax(130px, 1fr) minmax(250px, 1.55fr) 104px !important;
  padding: 7px 10px !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px 8px 0 0 !important;
  background: #f8fafc !important;
  color: #475569 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  text-transform: uppercase !important;
  letter-spacing: 0 !important;
}

.thread-item.mail-workspace-row.hvx10-mail-row {
  display: grid !important;
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  align-items: stretch !important;
  min-height: 56px !important;
  margin: 0 !important;
  border: 1px solid var(--hvx10-line) !important;
  border-top: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: #fff !important;
}

.thread-item.mail-workspace-row.hvx10-mail-row.active {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.055), #fff 36%) !important;
  box-shadow: inset 3px 0 0 var(--hvx10-accent) !important;
}

.mail-workspace-row-grid.hvx10-mail-open {
  display: grid !important;
  grid-template-columns: 105px 116px minmax(130px, 1fr) minmax(250px, 1.55fr) 104px !important;
  gap: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  background: transparent !important;
  border: 0 !important;
}

.mail-workspace-row-grid.hvx10-mail-open > span {
  min-width: 0 !important;
  padding: 8px 10px !important;
  border-left: 1px solid rgba(15, 23, 42, 0.055) !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

.mail-workspace-row-grid.hvx10-mail-open .mail-conversation-subject strong,
.mail-workspace-row-grid.hvx10-mail-open .mail-conversation-subject small {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

.mail-workspace-checkbox {
  margin: auto !important;
  width: 24px !important;
  height: 24px !important;
  border-radius: 6px !important;
}

.mail-workspace-row-hover-actions {
  align-self: center !important;
  padding: 0 8px !important;
  gap: 4px !important;
}

.mail-workspace-row-action {
  min-height: 26px !important;
  border-radius: 6px !important;
  padding: 4px 7px !important;
  box-shadow: none !important;
}

/* Conversation detail: triage header, message stack, inspector. */
.hvx10-thread-detail-shell {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 288px !important;
  gap: 10px !important;
  align-items: start !important;
}

.hvx10-thread-main,
.hvx10-thread-inspector {
  min-width: 0;
}

.mail-thread-operational-bar.hvx10-thread-triage {
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 10px !important;
  margin: 0 0 10px !important;
}

.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner {
  display: grid !important;
  grid-template-columns: minmax(230px, 1fr) minmax(260px, 1.4fr) auto !important;
  gap: 10px !important;
  align-items: center !important;
  padding: 0 0 10px !important;
  border: 0 !important;
  border-bottom: 1px solid var(--hvx10-line) !important;
  background: transparent !important;
}

.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner::before {
  display: none !important;
}

.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-copy p {
  margin: 2px 0 0 !important;
  color: var(--hvx10-muted) !important;
  font-size: 12px !important;
}

.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-meta,
.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-meta span,
.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics span,
.hvx10-thread-inspector span {
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 7px !important;
  background: #f8fafc !important;
  padding: 7px !important;
  min-width: 0 !important;
}

.mail-thread-operational-bar.hvx10-thread-triage b,
.hvx10-thread-inspector b {
  display: block !important;
  color: var(--hvx10-muted) !important;
  font-size: 10px !important;
  text-transform: uppercase !important;
}

.mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics {
  margin-top: 9px !important;
  grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
}

.hvx10-message-stack {
  display: grid !important;
  gap: 10px !important;
}

.mail-message-card {
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

.mail-message-head {
  padding: 10px !important;
  border-bottom: 1px solid var(--hvx10-line) !important;
}

.hvx10-thread-inspector {
  position: sticky;
  top: 12px;
  border: 1px solid var(--hvx10-line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.hvx10-thread-inspector h3 {
  margin: 0 0 8px;
  color: var(--hvx10-ink);
  font-size: 14px;
}

.hvx10-thread-inspector-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 8px;
}

.hvx10-thread-inspector-actions {
  display: grid;
  gap: 6px;
}

/* Compose: governed drawer with compact readiness. */
.mail-compose-modal:not(.hidden) {
  display: flex !important;
  justify-content: flex-end !important;
  align-items: stretch !important;
  background: rgba(15, 23, 42, 0.2) !important;
  backdrop-filter: blur(2px) !important;
}

.mail-compose-modal .mail-compose-card {
  width: min(760px, 100vw) !important;
  max-height: 100vh !important;
  height: 100vh !important;
  margin: 0 !important;
  border-radius: 0 !important;
  border-left: 1px solid var(--hvx10-line-strong) !important;
  box-shadow: -16px 0 44px rgba(15, 23, 42, 0.18) !important;
  overflow: auto !important;
}

.mail-compose-modal .mail-modal-hero {
  position: sticky !important;
  top: 0 !important;
  z-index: 4 !important;
  background: rgba(255, 255, 255, 0.96) !important;
  backdrop-filter: blur(6px) !important;
  border-bottom: 1px solid var(--hvx10-line) !important;
  padding: 12px 14px !important;
}

.mail-compose-modal .mail-modal-layout {
  display: block !important;
}

.mail-compose-preflight-console,
.mail-compose-send-blocker,
.mail-compose-identity-strip,
.mail-compose-policy-stack,
.mail-compose-compliance-summary {
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
  padding: 9px 10px !important;
  margin: 0 0 8px !important;
}

.mail-compose-actions.mail-modal-actions {
  position: sticky !important;
  top: 58px !important;
  z-index: 3 !important;
  margin: 0 0 8px !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  background: #f8fafc !important;
  padding: 8px !important;
}

.mail-compose-grid {
  gap: 8px !important;
}

.mail-compose-grid input,
.mail-compose-grid select,
.mail-compose-grid textarea,
.mail-compose-body-editor {
  border-radius: 7px !important;
  border-color: var(--hvx10-line) !important;
}

/* Mobile timeline IA: compact work list and stable bottom nav. */
@media (max-width: 920px) {
  .tenant-app-body {
    padding-bottom: 70px !important;
  }

  .tenant-mobile-nav {
    display: grid !important;
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    gap: 0 !important;
    height: 58px !important;
    padding: 5px 6px !important;
    border-top: 1px solid var(--hvx10-line) !important;
    background: rgba(255, 255, 255, 0.96) !important;
    box-shadow: 0 -4px 18px rgba(15, 23, 42, 0.08) !important;
  }

  .tenant-mobile-nav-btn {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    min-width: 0 !important;
    gap: 2px !important;
    padding: 3px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: transparent !important;
    color: #475569 !important;
    box-shadow: none !important;
  }

  .tenant-mobile-nav-btn.is-active {
    background: var(--hvx10-accent-soft) !important;
    color: #1e40af !important;
  }

  .tenant-mobile-nav-icon {
    font-size: 10px !important;
    line-height: 1 !important;
    font-weight: 800 !important;
  }

  .tenant-mobile-nav-label {
    max-width: 100% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    font-size: 10px !important;
    line-height: 1.1 !important;
  }

  .tenant-mobile-nav-badge {
    position: absolute !important;
    transform: translate(18px, -11px) !important;
    min-width: 16px !important;
    height: 16px !important;
    padding: 0 4px !important;
    border-radius: 999px !important;
    font-size: 9px !important;
    background: #e2e8f0 !important;
    color: #334155 !important;
  }

  #app-stage-timeline .tenant-productization-grid-wide {
    display: block !important;
  }

  #app-stage-timeline .tenant-customer-profile {
    padding: 8px !important;
    border: 0 !important;
  }

  #app-stage-timeline .tenant-context-panel {
    display: none !important;
  }

  #app-stage-timeline .tenant-customer-profile > .tenant-section-head {
    padding-bottom: 6px !important;
    margin-bottom: 6px !important;
  }

  .hvx10-queue-toolbar {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    margin-bottom: 6px !important;
  }

  .hvx10-queue-toolbar > * {
    padding: 6px !important;
  }

  .hvx10-toolbar-sort,
  .hvx10-toolbar-actions {
    display: none !important;
  }

  .tenant-timeline-queue-header.hvx10-timeline-header {
    display: none !important;
  }

  .tenant-timeline-queue-table.hvx10-timeline-table {
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
  }

  .tenant-customer-timeline-item.hvx10-timeline-row {
    display: block !important;
    min-height: 0 !important;
    margin: 0 0 6px !important;
    border: 1px solid var(--hvx10-line) !important;
    border-radius: 8px !important;
    background: #fff !important;
    box-shadow: none !important;
  }

  .tenant-customer-timeline-item.hvx10-timeline-row > :not(.hvx10-mobile-row) {
    display: none !important;
  }

  .hvx10-mobile-row {
    display: grid !important;
    gap: 4px !important;
    padding: 8px !important;
  }

  .hvx10-mobile-row-head,
  .hvx10-mobile-row-foot {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 8px !important;
  }

  .hvx10-mobile-row strong {
    font-size: 13px !important;
    line-height: 1.25 !important;
    color: var(--hvx10-ink) !important;
  }

  .hvx10-mobile-row small,
  .hvx10-mobile-row-foot span {
    color: var(--hvx10-muted) !important;
    font-size: 11px !important;
    line-height: 1.2 !important;
  }
}

@media (max-width: 1080px) {
  .hvx10-thread-detail-shell {
    display: block !important;
  }

  .hvx10-thread-inspector {
    position: static !important;
    margin-top: 10px !important;
  }

  .mail-triage-strip.hvx10-mail-toolbar,
  .hvx10-queue-toolbar {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Final structural corrections after screenshot scoring. */
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-queue-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  margin: 0 0 6px !important;
  padding: 6px 8px !important;
  min-height: 48px !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  box-shadow: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-queue-toolbar > * {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  max-height: 42px !important;
  border: 0 !important;
  border-left: 1px solid var(--hvx10-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 2px 10px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-queue-toolbar > :first-child {
  border-left: 0 !important;
  flex-basis: 188px !important;
  padding-left: 0 !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-filter {
  flex-basis: 210px !important;
  text-align: left !important;
  background: transparent !important;
  color: var(--hvx10-ink) !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline button.hvx10-toolbar-filter,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics button,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-actions button {
  background: #fff !important;
  color: #334155 !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 6px !important;
  box-shadow: none !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-sort {
  flex-basis: 188px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-actions {
  flex: 1 1 auto !important;
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  align-content: center !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-actions > span {
  flex: 0 0 auto !important;
  margin-right: 2px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics {
  flex: 0 0 210px !important;
  display: flex !important;
  gap: 5px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics button {
  flex: 1 1 0 !important;
  min-height: 32px !important;
  padding: 3px 5px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics button b,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics button span {
  display: inline !important;
  font-size: 11px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-queue-header.hvx10-timeline-header,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-customer-timeline-item.hvx10-timeline-row {
  grid-template-columns: 94px minmax(360px, 1fr) 112px 128px 118px !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-timeline-row .hvx10-work p {
  max-width: 100% !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-row-action {
  width: 100% !important;
  min-height: 30px !important;
}


html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-logged-section,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-energy-compression {
  margin-top: 6px !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 7px 9px !important;
}

/* Conversation toolbar should read as a table toolbar, not a card grid. */
html body .mail-triage-strip.hvx10-mail-toolbar {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  min-height: 48px !important;
  padding: 6px 8px !important;
  background: #fff !important;
}

html body .mail-triage-strip.hvx10-mail-toolbar > * {
  flex: 0 0 auto !important;
  min-height: 34px !important;
  border: 0 !important;
  border-left: 1px solid var(--hvx10-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  padding: 2px 10px !important;
}

html body .mail-triage-strip.hvx10-mail-toolbar > :first-child {
  border-left: 0 !important;
  flex-basis: 190px !important;
  padding-left: 0 !important;
}

html body .hvx10-mail-filter-row {
  flex: 1 1 auto !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

html body .hvx10-mail-filter-row > span,
html body .hvx10-mail-bulk-row > span {
  flex: 0 0 auto !important;
}

html body .hvx10-mail-filter-row button,
html body .hvx10-mail-bulk-row button,
html body .hvx10-mail-columns button {
  background: #fff !important;
  border: 1px solid var(--hvx10-line) !important;
  border-radius: 6px !important;
  color: #334155 !important;
  min-height: 28px !important;
  padding: 4px 7px !important;
  box-shadow: none !important;
}

html body .hvx10-mail-filter-row button.is-active,
html body .hvx10-mail-columns button.is-active {
  border-color: rgba(37, 99, 235, 0.28) !important;
  background: rgba(37, 99, 235, 0.06) !important;
  color: #1e40af !important;
}

html body .hvx10-mail-bulk-row {
  flex: 0 0 300px !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
}

html body .hvx10-mail-columns {
  flex: 0 0 220px !important;
}

/* Conversation detail gate should be compact and singular. */
html body .mail-thread-operational-bar.hvx10-thread-triage {
  padding: 8px 10px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner {
  grid-template-columns: auto minmax(260px, 1fr) auto auto !important;
  min-height: 48px !important;
  padding-bottom: 8px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .hvx10-gate-row {
  display: grid !important;
  align-items: center !important;
  gap: 10px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-meta,
html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics {
  display: flex !important;
  gap: 5px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-actions,
html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-meta {
  display: none !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-policy-detail {
  max-width: 220px !important;
  color: var(--hvx10-muted) !important;
  font-size: 11px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-workflow-primary {
  min-width: 126px !important;
  min-height: 32px !important;
  border-radius: 7px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-meta span,
html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics span {
  flex: 1 1 0 !important;
  min-height: 30px !important;
  padding: 5px 6px !important;
  background: #fff !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics span:nth-child(n+5) {
  display: none !important;
}

html body .hvx10-thread-inspector-actions {
  display: none !important;
}

/* Mobile score surface: no blank placeholder rows, no duplicate inner title. */
@media (max-width: 920px) {
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-customer-profile > .tenant-section-head {
    display: none !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-queue-toolbar {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    gap: 6px !important;
    min-height: 0 !important;
    padding: 6px !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-queue-toolbar > * {
    display: none !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-view,
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-filter,
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics {
    display: block !important;
    border: 1px solid var(--hvx10-line) !important;
    border-radius: 8px !important;
    padding: 6px 7px !important;
    min-height: 40px !important;
    max-height: none !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-filter {
    grid-column: 2 !important;
    width: 92px !important;
    background: #fff !important;
    color: var(--hvx10-ink) !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .hvx10-toolbar-metrics {
    grid-column: 1 / -1 !important;
    display: flex !important;
    gap: 5px !important;
    width: auto !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-queue-row > :not(.tenant-timeline-mobile-card) {
    display: none !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-queue-row > .tenant-timeline-mobile-card.hvx10-mobile-row {
    display: grid !important;
    visibility: visible !important;
    min-height: 78px !important;
    padding: 9px !important;
    opacity: 1 !important;
  }

  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-mobile-card.hvx10-mobile-row strong,
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-mobile-card.hvx10-mobile-row small,
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-mobile-card.hvx10-mobile-row span,
  html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline .tenant-timeline-mobile-card.hvx10-mobile-row b {
    visibility: visible !important;
    opacity: 1 !important;
  }
}

/* Score-loop correction 4: final cascade position. */
html body.tenant-app-body[data-app-surface="workspace"] #app-timeline-case-health,
html body.tenant-app-body[data-app-surface="workspace"] #app-timeline-resolution-state,
html body.tenant-app-body[data-app-surface="workspace"] #app-timeline-sync-state,
html body.tenant-app-body[data-app-surface="workspace"] #app-stage-timeline [data-timeline-resolution-action] {
  display: none !important;
}

html body .hvx10-mail-bulk-row.is-idle button {
  display: none !important;
}

html body .hvx10-mail-bulk-row.is-idle {
  flex: 0 0 190px !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-operational-metrics {
  display: none !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-banner.hvx10-gate-row {
  grid-template-columns: auto minmax(320px, 1fr) auto auto !important;
  min-height: 42px !important;
  overflow: visible !important;
}

html body .mail-thread-operational-bar.hvx10-thread-triage .mail-thread-governance-copy p {
  max-width: 560px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}

html body .mail-compose-send-blocker {
  display: none !important;
}

html body .mail-compose-preflight-console {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-height: 42px !important;
  padding: 8px 10px !important;
  background: #f8fafc !important;
}

html body .mail-compose-preflight-console strong {
  flex: 0 0 auto !important;
}

html body .mail-compose-preflight-console span {
  color: var(--hvx10-muted) !important;
  font-size: 12px !important;
}

@media (max-width: 920px) {
  html body .tenant-mobile-nav-btn {
    position: relative !important;
  }

  html body .tenant-mobile-nav-badge {
    top: 3px !important;
    right: 8px !important;
    transform: none !important;
  }

  html body .tenant-mobile-nav-label {
    font-size: 9px !important;
  }
}
