@font-face {
  font-family: "Montserrat";
  src: url("/static/brand/fonts/montserrat/Montserrat-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/brand/fonts/montserrat/Montserrat-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/brand/fonts/montserrat/Montserrat-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-style: normal;
}

@font-face {
  font-family: "Montserrat";
  src: url("/static/brand/fonts/montserrat/Montserrat-Bold.ttf") format("truetype");
  font-weight: 700;
  font-style: normal;
}

@font-face {
  font-family: "Agatho";
  src: url("/static/brand/fonts/agatho/AGATHO_REGULAR.OTF") format("opentype");
  font-weight: 400;
  font-style: normal;
}

:root {
  --pp-blue-zodiac: #0b2444;
  --pp-azure: #0f7fef;
  --pp-eerie-black: #1e1e1e;
  --pp-white-smoke: #f9f9f9;
  --pp-border: #d7dee8;
  --pp-panel-bg: #ffffff;
  --pp-muted: #5a6678;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  background: var(--pp-white-smoke);
  color: var(--pp-eerie-black);
  line-height: 1.45;
}

h1,
h2,
h3 {
  font-family: "Agatho", "Iowan Old Style", "Times New Roman", serif;
  font-weight: 400;
  color: var(--pp-blue-zodiac);
  margin-top: 0;
}

a {
  color: var(--pp-azure);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.topbar,
.panel,
.kpi-grid {
  margin: 16px;
}

.view-tabs {
  margin: 0 16px 4px;
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  background: #fff;
}

.view-tab {
  padding: 6px 10px;
  border-radius: 8px;
  color: #436489;
  font-size: 12px;
  font-weight: 600;
}

.view-tab:hover {
  text-decoration: none;
  background: #f5f9ff;
}

.view-tab.is-active {
  background: #eaf2fc;
  color: #24486f;
}

.topbar-view-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 3px;
  border: 1px solid rgba(221, 233, 250, 0.4);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.14);
}

.topbar-view-tabs .view-tab {
  color: #dce9fb;
  padding: 5px 10px;
}

.topbar-view-tabs .view-tab:hover {
  background: rgba(255, 255, 255, 0.16);
}

.topbar-view-tabs .view-tab.is-active {
  background: #ffffff;
  color: #123f70;
}

.topbar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  background: var(--pp-blue-zodiac);
  color: #ffffff;
  padding: 9px 12px;
  min-height: 72px;
  border-radius: 10px;
}

.topbar h1 {
  color: #ffffff;
  margin-bottom: 1px;
  font-size: 22px;
}

.topbar p {
  margin: 0;
  color: #d9e7fb;
  font-size: 11px;
}

.topbar-title {
  min-width: 220px;
}

.reviewer-switcher {
  display: inline-flex;
  align-items: center;
}

.reviewer-switcher label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #d9e7fb;
  font-size: 12px;
  font-weight: 600;
}

.reviewer-switcher select {
  min-width: 110px;
  padding: 5px 8px;
  font-size: 12px;
  border-radius: 7px;
}

.topbar-actions {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.review-kpi-grid {
  grid-template-columns: repeat(5, 1fr);
}

.kpi-grid article,
.panel,
.login-card {
  background: var(--pp-panel-bg);
  border: 1px solid var(--pp-border);
  border-radius: 10px;
  padding: 14px;
}

.kpi-grid article h3 {
  margin-bottom: 6px;
}

.kpi-grid article p {
  margin: 0;
  color: var(--pp-blue-zodiac);
  font-weight: 600;
  font-size: 24px;
}

.operations-kpi-grid article p.ops-kpi-meta {
  font-size: 12px;
  line-height: 1.4;
  color: #355579;
  font-weight: 500;
}

.panel ul {
  margin: 0;
  padding-left: 18px;
}

.panel li {
  margin-bottom: 6px;
}

.alerts-list {
  list-style: none;
  padding-left: 0;
}

.ops-alert-group-title {
  margin: 0 0 8px;
  font-size: 13px;
  color: #2f4f78;
}

.alert-row {
  border: 1px solid var(--pp-border);
  background: #f5f8fc;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 8px;
}

.alert-row-critical {
  border-color: #dcb8b8;
  background: #fff2f2;
}

.alert-meta {
  display: inline-block;
  margin-left: 8px;
  color: var(--pp-muted);
  font-size: 12px;
}

.alerts-history {
  margin-top: 8px;
  font-size: 13px;
}

.alerts-empty {
  border: 1px dashed #d7dee8;
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--pp-muted);
  background: #fbfcff;
}

.alerts-history summary {
  cursor: pointer;
  color: var(--pp-blue-zodiac);
  font-weight: 600;
}

.source-health-list {
  display: grid;
  gap: 8px;
}

.source-health-item {
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  background: #fcfdff;
  padding: 8px 10px;
}

.source-health-item-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}

.source-health-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.source-health-metrics div {
  display: grid;
  gap: 2px;
}

.source-health-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--pp-muted);
}

.source-health-value {
  font-size: 12px;
  color: #294363;
  font-weight: 600;
}

.source-health-summary {
  margin: 8px 0 0;
  font-size: 12px;
  color: #355579;
  line-height: 1.45;
}

.ops-source-trend {
  margin-top: 8px;
  display: inline-flex;
  gap: 4px;
}

.ops-source-trend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cad7e9;
}

.ops-source-trend-dot.is-success {
  background: #1f6c2c;
}

.ops-source-trend-dot.is-timeout {
  background: #bb5f11;
}

.ops-source-trend-dot.is-failed {
  background: #a12f2f;
}

.source-health-details {
  margin-top: 8px;
}

.source-health-details summary {
  cursor: pointer;
  color: var(--pp-blue-zodiac);
  font-size: 12px;
  font-weight: 600;
}

.empty-muted {
  margin: 0;
  color: var(--pp-muted);
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid var(--pp-border);
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
}

.status-success {
  background: #edf8ef;
  border-color: #b6dbbe;
  color: #1f6c2c;
}

.status-healthy {
  background: #edf8ef;
  border-color: #b6dbbe;
  color: #1f6c2c;
}

.status-failed,
.status-auth-required {
  background: #fff2f2;
  border-color: #dcb8b8;
  color: #8a1f1f;
}

.status-running {
  background: #eef5ff;
  border-color: #bad4ff;
  color: #104c9f;
}

.status-queued {
  background: #f8f2e8;
  border-color: #e4d0a3;
  color: #7a5312;
}

.status-idle {
  background: #f4f5f7;
  border-color: #d7dee8;
  color: #5a6678;
}

.status-stale {
  background: #fff7ea;
  border-color: #e9cc99;
  color: #7a5312;
}

.queued-note {
  color: var(--pp-muted);
  font-size: 12px;
  margin-left: 6px;
}

.runs-hint {
  margin: 0 0 10px;
  font-size: 12px;
  color: var(--pp-muted);
}

.ops-health-strip-panel {
  padding-top: 10px;
  padding-bottom: 10px;
}

.ops-health-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.ops-health-card {
  border: 1px solid #dbe5f2;
  border-radius: 8px;
  background: #fbfdff;
  padding: 8px;
}

.ops-health-card.is-failed,
.ops-health-card.is-auth-required,
.ops-health-card.is-stale {
  border-color: #e3c2c2;
  background: #fff8f8;
}

.ops-health-card.is-healthy {
  border-color: #c7decf;
  background: #f5fbf6;
}

.ops-health-head {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  align-items: center;
  margin-bottom: 6px;
}

.ops-health-metrics {
  display: grid;
  gap: 2px;
  font-size: 11px;
  color: #4b607c;
}

.recent-runs-scroll {
  max-height: 240px;
  overflow-y: auto;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
}

.recent-runs-scroll table {
  margin: 0;
}

.recent-runs-scroll thead th {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  white-space: nowrap;
}

.ops-duration-cell {
  display: grid;
  gap: 4px;
}

.ops-duration-bar {
  height: 6px;
  border-radius: 999px;
  background: #e7edf6;
  overflow: hidden;
}

.ops-duration-bar > span {
  display: block;
  height: 100%;
  width: 0;
  background: #8bbfa0;
}

.ops-duration-bar.is-warn > span {
  background: #d5ad55;
}

.ops-duration-bar.is-danger > span {
  background: #c97777;
}

.ops-failure-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid #d9e2ef;
  border-radius: 999px;
  padding: 1px 8px;
  font-size: 11px;
  color: #36557b;
  background: #f4f8fd;
  vertical-align: middle;
}

.ops-failure-chip-timeout_budget {
  background: #fff7ec;
  border-color: #ebd2aa;
  color: #8a5a15;
}

.ops-failure-chip-auth_required,
.ops-failure-chip-connector_error,
.ops-failure-chip-failed {
  background: #fff3f3;
  border-color: #e6c2c2;
  color: #8a2f2f;
}

.recent-runs-scroll::-webkit-scrollbar {
  width: 10px;
}

.recent-runs-scroll::-webkit-scrollbar-thumb {
  background: #c8d4e6;
  border-radius: 999px;
}

.recent-runs-scroll::-webkit-scrollbar-thumb:hover {
  background: #afc2dd;
}

.split {
  --detail-pane-width: clamp(500px, 44vw, 900px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) 10px minmax(380px, var(--detail-pane-width));
  gap: 12px;
  margin: 16px;
  align-items: stretch;
  transition: grid-template-columns 180ms ease;
}

#review-workspace.split {
  margin-top: 8px;
}

.split.has-detail {
  grid-template-columns: minmax(0, 1fr) 10px minmax(380px, var(--detail-pane-width));
}

@media (min-width: 1800px) {
  .split {
    --detail-pane-width: clamp(560px, 40vw, 980px);
  }
}

.inbox-workspace {
  min-width: 0;
  overflow: hidden;
  position: relative;
  z-index: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  border-bottom: 1px solid var(--pp-border);
  text-align: left;
  padding: 9px 8px;
  font-size: 13px;
}

th {
  color: var(--pp-blue-zodiac);
  font-weight: 600;
}

.clickable {
  cursor: pointer;
}

.clickable:hover {
  background: #f8fbff;
}

.is-selected {
  background: #eef5ff;
  box-shadow: inset 3px 0 0 #83b2f3;
}

.split.no-detail {
  grid-template-columns: 1fr;
}

.split.no-detail #detail-splitter,
.split.no-detail #deal-detail-wrap,
#deal-detail-wrap.is-hidden {
  display: none;
}

#detail-splitter {
  align-self: stretch;
  width: 10px;
  border-radius: 999px;
  cursor: col-resize;
  position: relative;
  background: linear-gradient(
    to right,
    transparent 0,
    transparent 42%,
    #d5e3f3 42%,
    #d5e3f3 58%,
    transparent 58%,
    transparent 100%
  );
  user-select: none;
}

#detail-splitter:hover,
#detail-splitter:focus {
  background: linear-gradient(
    to right,
    transparent 0,
    transparent 38%,
    #95b7de 38%,
    #95b7de 62%,
    transparent 62%,
    transparent 100%
  );
  outline: none;
}

body.is-resizing-detail {
  cursor: col-resize;
}

#deal-detail-wrap {
  min-width: 0;
  align-self: stretch;
  height: auto;
  max-height: none;
  overflow: auto;
  position: relative;
  z-index: 2;
  background: var(--pp-panel-bg);
}

#deals-table-wrap {
  min-width: 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-gutter: stable both-edges;
}

.split.has-detail #deals-table-wrap .deals-table {
  min-width: 1180px;
}

.is-unseen-for-me {
  box-shadow: inset 3px 0 0 #c99134;
  background: #fffdf8;
}

.deals-table {
  table-layout: fixed;
  width: 100%;
}

.deals-table th,
.deals-table td {
  vertical-align: top;
  padding: 6px 8px;
  font-size: 12px;
}

.deal-title-cell {
  min-width: 300px;
  max-width: 420px;
}

.deal-archive-reason {
  margin-top: 4px;
  font-size: 11px;
  line-height: 1.3;
  color: var(--pp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.deal-location-cell {
  min-width: 130px;
  max-width: 180px;
}

.deal-listed-cell {
  min-width: 96px;
  max-width: 120px;
  color: #355579;
  font-size: 11px;
  line-height: 1.3;
}

.deal-listed-cell.listed-fallback {
  color: #61758e;
  font-style: italic;
}

.deal-money-cell {
  min-width: 112px;
  max-width: 148px;
  text-align: center;
}

.deal-money-cell .cell-clamp-2 {
  display: block;
  text-align: center;
  word-break: normal;
}

.deals-table th.title-col {
  min-width: 320px;
}

.deals-table th.source-col {
  min-width: 74px;
  max-width: 96px;
  text-align: center;
}

.deals-table th.location-col {
  min-width: 128px;
}

.deals-table th.listed-col {
  min-width: 90px;
  white-space: nowrap;
}

.deals-table th.revenue-col,
.deals-table th.ebitda-col {
  min-width: 112px;
  text-align: center;
}

.deals-table th.margin-col {
  min-width: 78px;
  text-align: center;
}

.deals-table th.updated-col {
  min-width: 74px;
  text-align: center;
  white-space: nowrap;
}

.deals-table th.team-col {
  min-width: 98px;
  text-align: center;
}

.deals-table th.status-col {
  min-width: 104px;
  text-align: center;
}

.deals-table th[data-col-key] {
  position: relative;
  border-right: 1px solid #edf2f9;
}

.draggable-col-header {
  cursor: move;
  user-select: none;
}

.draggable-col-header.is-dragging {
  opacity: 0.55;
}

.draggable-col-header.drop-target {
  outline: 2px solid #95b8e6;
  outline-offset: -2px;
}

.is-col-hidden {
  display: none;
}

.col-resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  width: 7px;
  height: 100%;
  cursor: col-resize;
  z-index: 3;
  opacity: 0.2;
  background: linear-gradient(180deg, rgba(86, 117, 154, 0.08), rgba(86, 117, 154, 0.2));
  transition: opacity 120ms ease, background-color 120ms ease;
}

.deals-table th[data-col-key]:hover .col-resize-handle,
.deals-table th[data-col-key]:focus-within .col-resize-handle,
.col-resize-handle:hover {
  opacity: 1;
  background: rgba(15, 127, 239, 0.3);
}

.deals-table.is-resizing {
  user-select: none;
}

.deals-table.is-resizing .col-resize-handle {
  opacity: 1;
  background: rgba(15, 127, 239, 0.42);
}

.deal-margin-cell {
  min-width: 74px;
  text-align: center;
}

.margin-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  padding: 1px 6px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  background: #f6f8fc;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
}

.margin-pill.margin-weak {
  color: #8e3d40;
  border-color: #e2c3c5;
  background: #f9eeee;
}

.margin-pill.margin-neutral {
  color: #546474;
  border-color: #d1dae5;
  background: #f5f7fa;
}

.margin-pill.margin-good {
  color: #2f6a3f;
  border-color: #b9d8c0;
  background: #ecf6ef;
}

.margin-pill.margin-strong {
  color: #1f5f36;
  border-color: #9dc8a9;
  background: #e6f3ea;
}

.margin-estimated {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-align: center;
}

.margin-empty {
  display: inline-block;
  font-size: 11px;
  color: #73839a;
  text-align: center;
}

.margin-estimated.margin-weak {
  color: #8e3d40;
}

.margin-estimated.margin-neutral {
  color: #546474;
}

.margin-estimated.margin-good {
  color: #2f6a3f;
}

.margin-estimated.margin-strong {
  color: #1f5f36;
}

.cell-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
  max-height: calc(1.25em * 2);
  word-break: break-word;
}

.title-emphasis {
  font-weight: 650;
}

.ki-prefilter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 16px;
  padding: 0 4px;
  margin-left: 5px;
  border-radius: 4px;
  border: 1px solid #c4c9e8;
  color: #3d4a8e;
  background: linear-gradient(180deg, #f0f2ff 0%, #e8ebfa 100%);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1;
  vertical-align: middle;
}

.minority-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  margin-left: 5px;
  border-radius: 999px;
  border: 1px solid #e2b8be;
  color: #8e3d40;
  background: #f9eeee;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.source-badge {
  display: block;
  max-width: 100%;
  padding: 2px 5px;
  border-radius: 999px;
  border: 1px solid #c7d4e7;
  background: #f4f8ff;
  color: #2f4a72;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.source-badge-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: inherit;
  min-width: 0;
  max-width: 100%;
}

.source-badge-link:hover {
  text-decoration: none;
}

.table-meta,
.filter-meta {
  margin: 0 0 10px;
  color: var(--pp-muted);
  font-size: 12px;
}

.review-mode-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 6px 0 6px;
}

.review-lens-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 0 0 8px;
}

.controls-layer-label {
  margin: 2px 0 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #5b7090;
}

.controls-layer-divider {
  height: 1px;
  margin: 8px 0 10px;
  background: #e6edf7;
}

.review-mode-btn {
  background: #f7faff;
  color: #2f4e72;
  border: 1px solid #c8d7eb;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 14px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.review-mode-btn.is-active {
  background: #c5dcfb;
  border-color: #4f77ab;
  color: #0b325f;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #6f98ca;
}

.review-lens-btn {
  background: #f7fbff;
  color: #3f5d84;
  border: 1px solid #cfddee;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 11px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.review-lens-btn.is-active {
  background: #dbe8fa;
  border-color: #6f93c2;
  color: #143a66;
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #8aabd1;
}

.review-mode-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #d6dfec;
  color: #365a83;
  font-size: 12px;
  font-weight: 700;
  padding: 0 6px;
}

.review-mode-btn.is-active .review-mode-count,
.review-lens-btn.is-active .review-mode-count {
  background: #f2f7ff;
  border-color: #6f97c7;
  color: #0f3a6c;
}

.filters-top-row {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  align-items: end;
  gap: 12px;
}

.reset-filters-btn {
  padding: 4px 8px;
  font-size: 11px;
  line-height: 1.2;
}

.controls-panel {
  margin-bottom: 8px;
}

.inbox-workspace.controls-panel {
  margin-bottom: 0;
  padding-top: 14px;
}

.inbox-workspace-title {
  margin: 0 0 14px;
  font-size: 21px;
  line-height: 1.1;
}

.controls-filter-chips {
  margin: 0 0 8px;
}

.team-flag-banner {
  margin: 0 0 8px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid #d6e0ef;
  background: #f4f8ff;
  color: #34577f;
  font-size: 12px;
}

.controls-filter-chips.is-empty {
  display: none;
}

.active-filter-chip.removable {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chip-remove {
  font-size: 12px;
  color: #5c728f;
}

.advanced-group {
  border: 1px solid #e3eaf4;
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 7px;
}

.advanced-group h4 {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #5f7490;
}

.table-load-more {
  margin-top: 10px;
  display: flex;
  justify-content: center;
}

.table-head-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.inbox-table-toolbar {
  margin: 8px 0 6px;
}

.table-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

.table-toolbar-summary {
  margin: 0;
  color: #7a899e;
  font-size: 11px;
  white-space: nowrap;
  margin-left: auto;
  text-align: right;
}

.filter-apply-status {
  font-size: 11px;
  color: #6d819b;
  min-width: 54px;
}

.filter-apply-status.is-active {
  color: #2f5a88;
}

.table-head-controls {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.table-refresh-form {
  margin: 0;
}

.table-search-form,
.table-sort-form,
.table-reload-form {
  margin: 0;
}

#toolbar-search-input {
  min-width: 260px;
  padding: 6px 10px;
  font-size: 13px;
  font-weight: 500;
  border-color: #c7d8ec;
  background: #fbfdff;
}

.review-refresh-indicator {
  font-size: 12px;
  color: #627892;
  min-width: 115px;
}

.review-refresh-indicator.state-running {
  color: #2f5a88;
}

.review-refresh-indicator.state-updated {
  color: #2a6a3a;
}

.table-sort-form select {
  min-width: 170px;
}

.table-reload-form .subtle-btn {
  padding: 5px 9px;
  line-height: 1.2;
}

.toolbar-filter-toggle {
  padding: 5px 10px;
  line-height: 1.2;
}

#advanced-filters-panel {
  margin: 0 0 10px;
}

#advanced-filters-panel > summary {
  display: none;
}

.quick-status-form {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.quick-status-select {
  min-width: 82px;
  padding: 3px 6px;
  font-size: 11px;
  border-radius: 7px;
}

.quick-status-save {
  padding: 3px 7px;
  font-size: 12px;
  line-height: 1.2;
}

.quick-status-saved {
  color: #1f6c2c;
  font-size: 12px;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.quick-status-saved.show {
  opacity: 1;
}

.quick-action-cell {
  width: 104px;
  text-align: center;
}

.team-review-cell {
  width: 100px;
  text-align: center;
}

.team-review-signals {
  display: inline-flex;
  gap: 3px;
  align-items: center;
  justify-content: center;
}

.team-review-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  border: 1px solid #d6deea;
  color: #4b607c;
  background: #f2f5fa;
}

.review-unseen {
  background: #f2f5fa;
  border-color: #d8e0ed;
  color: #6b7e95;
}

.review-open {
  background: #f2f5fa;
  border-color: #d8e0ed;
  color: #6b7e95;
}

.review-pass {
  background: #f7ecec;
  border-color: #dec0c0;
  color: #7d3939;
}

.review-negative {
  background: #f7ecec;
  border-color: #dec0c0;
  color: #7d3939;
}

.review-interested {
  background: #f6f0e4;
  border-color: #e1cfaa;
  color: #745927;
}

.review-neutral {
  background: #f6f0e4;
  border-color: #e1cfaa;
  color: #745927;
}

.review-priority {
  background: #e7f3ea;
  border-color: #a7caae;
  color: #245f36;
}

.review-positive {
  background: #e7f3ea;
  border-color: #a7caae;
  color: #245f36;
}

.external-link-cell {
  width: 32px;
  text-align: center;
}

.external-link-icon {
  display: inline-block;
  width: 18px;
  height: 18px;
  line-height: 18px;
  text-align: center;
  border-radius: 4px;
  color: #5b7698;
  font-size: 13px;
}

.external-link-icon:hover {
  background: #eef4fc;
  text-decoration: none;
}

.updated-older {
  color: #73839a;
}

.deal-updated-cell {
  text-align: center;
  white-space: nowrap;
}

.check-freshness-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid #d6deea;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.3;
}

.check-freshness-pill.check-green {
  color: #1f5f36;
  border-color: #a8d0b6;
  background: #e8f5ec;
}

.check-freshness-pill.check-yellow {
  color: #7a6115;
  border-color: #e2d08f;
  background: #fdf7e2;
}

.check-freshness-pill.check-red {
  color: #8f3a3f;
  border-color: #e0b7bc;
  background: #fbeaec;
}

.deals-table .quick-action-cell .status-pill {
  margin: 0 auto;
}

.columns-menu {
  position: relative;
}

.columns-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #cfdced;
  border-radius: 8px;
  background: #f8fbff;
  color: #35577f;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.columns-menu summary::after {
  content: "▾";
  color: #5d7799;
  font-size: 11px;
}

.columns-menu[open] summary::after {
  content: "▴";
}

.columns-menu summary:hover {
  background: #edf5ff;
}

.columns-menu summary::-webkit-details-marker {
  display: none;
}

.columns-menu-panel {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 190px;
  padding: 10px;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 33, 58, 0.14);
}

.columns-menu-panel label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: #2c4c72;
}

.columns-menu-panel label.is-hidden {
  display: none;
}

.table-head-controls-primary {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.table-head-controls-secondary {
  position: relative;
}

.toolbar-more-menu {
  position: relative;
}

.toolbar-more-menu > summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid #d5e1f0;
  border-radius: 8px;
  background: #f7faff;
  color: #46688f;
  padding: 5px 9px;
  font-size: 12px;
  cursor: pointer;
}

.toolbar-more-menu > summary::after {
  content: "▾";
  font-size: 11px;
}

.toolbar-more-menu[open] > summary::after {
  content: "▴";
}

.toolbar-more-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 35;
  min-width: 220px;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #dbe6f4;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 33, 58, 0.12);
}

.toolbar-more-panel .table-reload-form .subtle-btn,
.toolbar-more-panel #reset-table-layout-btn {
  width: 100%;
}

.toolbar-more-panel .review-refresh-state-wrap {
  min-width: 0;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}

.filters-structured {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.filters-structured label {
  display: grid;
  gap: 5px;
}

.filters-secondary {
  grid-column: 1 / -1;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 7px 9px;
  background: #fbfcff;
}

.filters-secondary summary {
  cursor: pointer;
  color: var(--pp-blue-zodiac);
  font-size: 12px;
  font-weight: 600;
}

.filters-secondary-grid {
  margin-top: 8px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tags-filter {
  grid-column: 1 / -1;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 7px 9px 8px;
  margin: 0;
  background: #fbfcff;
}

.tags-filter-secondary {
  margin-top: -3px;
}

.tags-filter-secondary summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--pp-blue-zodiac);
  font-weight: 600;
  margin-bottom: 6px;
}

.tags-filter legend {
  color: var(--pp-muted);
  font-size: 12px;
  padding: 0 6px;
}

.tag-options {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.tag-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--pp-border);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  color: #2f4a72;
  background: #f4f8ff;
}

.tag-option input {
  margin: 0;
  padding: 0;
}

.tag-option span {
  white-space: nowrap;
}

.filter-empty {
  color: var(--pp-muted);
  font-size: 12px;
}

.filter-actions {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.filter-actions button {
  background: #ffffff;
  color: var(--pp-blue-zodiac);
  border-color: var(--pp-border);
}

.filter-actions button:hover {
  background: #f6f9ff;
}

label {
  font-size: 13px;
  color: var(--pp-muted);
  font-weight: 500;
}

input,
select,
textarea,
button {
  font-family: inherit;
  font-size: 13px;
  padding: 8px 10px;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 1px solid var(--pp-azure);
  border-color: var(--pp-azure);
}

button {
  background: var(--pp-blue-zodiac);
  color: #ffffff;
  border-color: var(--pp-blue-zodiac);
  font-weight: 600;
}

button:hover {
  background: #102f58;
}

.review-mode-btn {
  background: #f7faff;
  color: #2f4e72;
  border-color: #c8d7eb;
}

.review-mode-btn:hover {
  background: #eef4ff;
}

.review-lens-btn:hover {
  background: #f3f7fe;
}

.operations-action-bar {
  margin-top: 12px;
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(0, 1fr) minmax(0, auto);
  gap: 8px;
  align-items: end;
}

.operations-action-bar form {
  display: flex;
  gap: 6px;
  align-items: end;
}

.operations-action-bar.compact {
  margin-top: 10px;
}

.ops-action-primary button {
  min-width: 130px;
}

.ops-pages-input {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: var(--pp-muted);
}

.ops-pages-input input {
  width: 88px;
}

.operations-helper-text {
  margin: 8px 0 0;
  color: var(--pp-muted);
  font-size: 12px;
  line-height: 1.35;
}

.ops-action-secondary button {
  background: var(--pp-azure);
  border-color: var(--pp-azure);
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.diag-grid > div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 8px;
  background: #fbfcff;
}

button[disabled] {
  opacity: 0.7;
  cursor: not-allowed;
}

.is-loading .spinner {
  width: 10px;
  height: 10px;
  margin-right: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.45);
  border-top-color: #ffffff;
  display: inline-block;
  animation: spin 0.9s linear infinite;
}

.spinner {
  display: none;
}

.is-loading .spinner {
  display: inline-block;
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.auth-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: linear-gradient(140deg, #0b2444 0%, #102f58 50%, #0b2444 100%);
  padding: 20px;
}

.login-card {
  width: min(460px, 100%);
  border: 0;
}

.login-card h1 {
  margin-bottom: 8px;
}

.login-card p {
  margin-top: 0;
  margin-bottom: 16px;
  color: var(--pp-muted);
}

.login-card form {
  display: grid;
  gap: 8px;
}

.login-oauth {
  margin-bottom: 12px;
}

.google-signin-btn {
  display: block;
  width: 100%;
  box-sizing: border-box;
  text-align: center;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #dadce0;
  background: #fff;
  color: #3c4043;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.google-signin-btn:hover {
  background: #f8f9fa;
}

.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 16px;
  font-size: 12px;
  color: var(--pp-muted);
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.login-divider span {
  flex-shrink: 0;
}

.brand-lockup {
  display: flex;
  align-items: center;
  min-height: 40px;
}

.login-lockup {
  margin-bottom: 16px;
}

.brand-logo {
  display: block;
  height: auto;
  width: 132px;
  max-width: 100%;
}

.topbar .brand-logo {
  width: auto;
  height: 64px;
  max-width: none;
}

.brand-logo-inverse {
  filter: brightness(0) invert(1);
}

.topbar-meta {
  opacity: 0.88;
}

.topbar-meta-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.18);
  color: #eef5ff;
}

.review-mode-btn-archive {
  opacity: 0.72;
}

.review-lens-btn-priority {
  border-color: #d7b66a;
  color: #5a4210;
}

.review-lens-btn-priority.is-active {
  background: #fff4d7;
  border-color: #c99a2e;
}

.review-bucket-helper {
  margin: 6px 0 8px;
  color: #65758b;
  font-size: 11px;
}

.review-run-notice {
  margin: 6px 0 8px;
  padding: 6px 9px;
  border: 1px solid #d7e4f3;
  border-radius: 8px;
  background: #f3f8ff;
  color: #315272;
  font-size: 12px;
}

.operations-status-panel {
  border-color: #f0d2b8;
  background: #fff8f1;
}

.operations-status-message {
  margin: 0;
  color: #80451d;
  font-size: 13px;
}

.review-refresh-state-wrap {
  min-width: 190px;
}

.review-refresh-state {
  display: grid;
  gap: 4px;
  min-width: 170px;
}

.review-refresh-chip {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid #cfdcec;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 600;
  background: #f7fbff;
  color: #5a6f8e;
}

.review-refresh-meta {
  font-size: 10px;
  color: #77869a;
}

.review-refresh-running .review-refresh-chip {
  color: #2a4b75;
  border-color: #afc8e8;
  background: #ecf5ff;
  font-weight: 600;
}

.review-refresh-queued .review-refresh-chip {
  color: #5c4a18;
  border-color: #dfcc8f;
  background: #fff8df;
}

.review-refresh-stale .review-refresh-chip {
  color: #8a3a16;
  border-color: #efc9b2;
  background: #fff4ed;
}

.review-refresh-updated .review-refresh-chip {
  color: #276241;
  border-color: #b8dcc6;
  background: #effaf3;
}

.review-refresh-progress {
  height: 6px;
  border-radius: 999px;
  background: #e4ebf5;
  overflow: hidden;
}

.review-refresh-progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #668dc2, #2f5f9e);
  transition: width 0.35s ease;
}

.deals-empty-state {
  padding: 18px;
  color: #6d7d91;
  text-align: center;
}

.header-logout-btn {
  padding: 6px 10px;
  font-size: 12px;
}

.active-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 10px;
}

.active-filter-chip {
  border: 1px solid #d4deeb;
  background: #f4f8ff;
  color: #2f4a72;
  border-radius: 999px;
  font-size: 11px;
  padding: 3px 8px;
}

.source-inline-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 2px;
  color: #315887;
}

.source-inline-link:hover {
  text-decoration: none;
}

.source-link-icon {
  font-size: 11px;
  color: #5d789b;
}

.alert {
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 10px;
  font-size: 13px;
}

.alert.error {
  color: #9b1f1f;
  background: #fff0f0;
  border: 1px solid #f3cccc;
}

.raw {
  max-height: 240px;
  overflow-y: auto;
  white-space: pre-wrap;
  background: #f5f7fb;
  border: 1px solid var(--pp-border);
  border-radius: 8px;
  padding: 10px;
}

.deal-title {
  margin-top: 4px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 14px;
}

.detail-grid p {
  margin: 0;
}

.detail-section {
  border: 0;
  border-bottom: 1px solid #e7edf5;
  padding: 8px 0 10px;
  margin-bottom: 2px;
  background: transparent;
}

.detail-section h3 {
  margin: 0 0 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #e2eaf5;
  font-size: 13px;
  line-height: 1.3;
  color: #2f4f78;
  letter-spacing: 0.01em;
  font-weight: 600;
}

.detail-header {
  padding-top: 2px;
}

.detail-header-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
}

.deal-submeta {
  margin: 2px 0 6px;
  color: var(--pp-muted);
  font-size: 12px;
}

.deal-meta-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin: 2px 0 6px;
}

.deal-meta-row .deal-submeta {
  margin: 0;
}

.deal-submeta-updated {
  white-space: nowrap;
}

.snapshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 4px;
}

.snapshot-item {
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  padding: 6px 8px;
  background: #f9fbfe;
  display: grid;
  gap: 2px;
}

.snapshot-label {
  color: var(--pp-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.snapshot-value {
  font-size: 12px;
  color: #223957;
  font-weight: 600;
}

.subtle-link a {
  color: #446893;
  font-size: 12px;
}

.detail-header-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  position: sticky;
  top: 0;
  z-index: 7;
  padding: 4px 0 0;
  margin: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.detail-header-bar h2 {
  margin: 0;
}

.detail-close-btn {
  position: static;
  margin-left: auto;
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid #d3dfef;
  background: #f8fbff;
  color: #456586;
  font-size: 18px;
  line-height: 1;
  padding: 0;
}

.detail-close-btn:hover {
  background: #edf4fd;
}

.description-block {
  white-space: pre-wrap;
  line-height: 1.5;
  color: #1f2f45;
}

.description-structured {
  display: grid;
  gap: 8px;
}

.description-structured h2,
.description-structured h3 {
  margin: 4px 0 2px;
  padding-bottom: 4px;
  border-bottom: 1px solid #dfe8f5;
  font-family: "Montserrat", "Segoe UI", Arial, sans-serif;
  font-size: 19px;
  line-height: 1.22;
  font-weight: 700;
  color: #233f62;
}

.description-structured h2:first-child,
.description-structured h3:first-child {
  margin-top: 0;
}

.description-structured p,
.description-structured ul,
.description-structured ol {
  margin: 0;
  padding: 7px 10px;
  border: 1px solid #e3ebf6;
  border-radius: 8px;
  background: #f8fbff;
  font-size: 13px;
  line-height: 1.38;
}

.description-structured ul,
.description-structured ol {
  padding-left: 26px;
}

.description-structured li + li {
  margin-top: 4px;
}

.fact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px 12px;
}

.fact-item {
  display: grid;
  gap: 2px;
}

.fact-label {
  color: var(--pp-muted);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.fact-value {
  font-size: 13px;
  font-weight: 600;
  color: #223957;
}

.fact-list {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 10px;
  margin: 0 0 8px;
}

.fact-list dt {
  color: var(--pp-muted);
  font-size: 12px;
}

.fact-list dd {
  margin: 0;
}

.long-field {
  margin-top: 8px;
}

.long-field h4 {
  margin: 0 0 4px;
  font-size: 12px;
  color: var(--pp-muted);
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.long-field p {
  margin: 0;
}

.workflow-form {
  display: grid;
  gap: 8px;
  margin-bottom: 8px;
}

.workflow-top {
  display: flex;
  align-items: end;
  gap: 8px;
  justify-content: space-between;
}

.workflow-top label {
  display: grid;
  gap: 5px;
}

.my-decision-label {
  font-weight: 700;
}

.auto-advance-toggle {
  margin: 2px 0 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5a6f89;
  font-size: 12px;
  font-weight: 600;
}

.workflow-notes {
  width: 100%;
  min-height: 130px;
  resize: vertical;
}

.autosave-indicator {
  font-size: 12px;
  color: var(--pp-muted);
  opacity: 0.95;
  transition: color 0.2s ease;
}

.autosave-indicator.show {
  color: #1f6c2c;
}

.save-success {
  margin: 0 0 10px;
  font-size: 12px;
  color: #1f6c2c;
  background: #edf8ef;
  border: 1px solid #b6dbbe;
  border-radius: 8px;
  padding: 8px 10px;
}

.workflow-meta {
  margin: 0 0 6px;
  color: var(--pp-muted);
  font-size: 12px;
}

.team-review-summary-line {
  margin: 8px 0 6px;
  color: #4d6481;
  font-size: 13px;
}

.team-review-people-line {
  margin-top: 4px;
}

.team-review-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.team-review-row {
  border: 1px solid #e2e9f3;
  border-radius: 8px;
  padding: 7px 9px;
  background: #fcfdff;
}

.team-review-person {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.team-review-summary {
  margin-top: 3px;
  color: #51657f;
  font-size: 12px;
  display: inline-flex;
  gap: 5px;
}

.team-review-note {
  margin: 5px 0 0;
  color: #324c6d;
  font-size: 12px;
}

.team-review-form .workflow-notes {
  min-height: 80px;
}

.debug-block summary {
  cursor: pointer;
  color: var(--pp-muted);
  font-weight: 500;
  font-size: 12px;
}

.debug-subsection h4 {
  margin: 8px 0;
  color: var(--pp-muted);
  font-size: 12px;
}

.primary-btn {
  background: var(--pp-blue-zodiac);
  color: #fff;
  border-color: var(--pp-blue-zodiac);
}

.subtle-btn {
  background: #ffffff;
  color: #3c5678;
  border-color: #d0dbea;
}

.subtle-btn:hover {
  background: #f5f8fc;
}

.status-new,
.status-viewed,
.status-shortlisted,
.status-rejected {
  border-width: 1px;
}

.status-new {
  background: #eef3f9;
  border-color: #c9d6e7;
  color: #3f5877;
}

.status-viewed {
  background: #f8f0e2;
  border-color: #e8cf9f;
  color: #7d5920;
}

.status-shortlisted {
  background: #eaf4ee;
  border-color: #b8d6c2;
  color: #2c6240;
}

.status-rejected {
  background: #f8ecec;
  border-color: #dfbebe;
  color: #7d3434;
}

.deals-table .status-pill {
  font-size: 11px;
  padding: 1px 7px;
}

.deals-table .source-badge-link {
  display: block;
  width: 100%;
  gap: 3px;
}

.deals-table .source-link-icon {
  margin-top: 1px;
}

.deals-table td[data-col-key="source"] {
  max-width: 96px;
  min-width: 70px;
  text-align: center;
  overflow: hidden;
}

@media (max-width: 1100px) {
  .kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters {
    grid-template-columns: repeat(2, 1fr);
  }

  .filters-structured {
    grid-template-columns: 1fr 1fr;
  }

  .filters-secondary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .source-health-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .diag-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .operations-action-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .split {
    grid-template-columns: 1fr;
  }

  #detail-splitter {
    display: none;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .fact-list {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .snapshot-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .filters-structured,
  .filters-secondary-grid {
    grid-template-columns: 1fr;
  }

  .source-health-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .diag-grid {
    grid-template-columns: 1fr 1fr;
  }
}
