:root {
  color-scheme: light;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: #161616;
  background: #f6f7f4;
  --unallocated-highlight: #fff7e8;
  --unallocated-chart: #f4dfbb;
  --unallocated-chart-active: #e9c68f;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button {
  font: inherit;
}

.screen {
  width: min(1180px, calc(100vw - 48px));
  margin: 0 auto;
  padding: 44px 0;
}

.eyebrow,
.row-kind {
  margin: 0 0 8px;
  color: #6f736c;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 2.2rem;
  line-height: 1;
}

h2 {
  font-size: 1.08rem;
  line-height: 1.2;
}

.persona-screen {
  align-items: center;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding-top: 44px;
}

.persona-panel {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(24, 26, 22, 0.08);
  max-width: 720px;
  padding: 32px;
  width: 100%;
}

.persona-hero p:last-child {
  color: #4f544d;
  font-size: 1rem;
  line-height: 1.4;
  margin: 12px 0 0;
}

.persona-grid {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.persona-card,
.persona-continue {
  appearance: none;
  border-radius: 8px;
  color: #171717;
  cursor: pointer;
}

.persona-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cdcec8;
  display: flex;
  gap: 14px;
  min-height: 78px;
  padding: 16px;
  text-align: left;
}

.persona-card strong {
  display: block;
  font-size: 1.08rem;
  line-height: 1.2;
}

.persona-card small {
  color: #6f736c;
  display: block;
  font-size: 0.9rem;
  line-height: 1.3;
  margin-top: 4px;
}

.persona-radio {
  align-items: center;
  border: 1.5px solid #9a9d95;
  border-radius: 50%;
  display: flex;
  flex: 0 0 20px;
  height: 20px;
  justify-content: center;
  width: 20px;
}

.persona-radio::after {
  background: #171717;
  border-radius: 50%;
  content: "";
  display: none;
  height: 10px;
  width: 10px;
}

.persona-card.is-selected {
  background: #fff7ef;
  border-color: #171717;
}

.persona-card.is-selected .persona-radio {
  border-color: #171717;
}

.persona-card.is-selected .persona-radio::after {
  display: block;
}

.persona-card:disabled {
  background: #f5f6f3;
  color: #9a9d95;
  cursor: not-allowed;
}

.persona-card:disabled small {
  color: #a1a49d;
}

.persona-card:disabled .persona-radio {
  border-color: #c6c8c0;
}

.persona-card:not(:disabled):hover {
  border-color: #111111;
  box-shadow: 0 10px 30px rgba(20, 24, 18, 0.1);
}

.persona-continue {
  align-items: center;
  background: #171717;
  border: 1px solid #171717;
  color: #ffffff;
  display: flex;
  font-weight: 760;
  justify-content: center;
  margin-top: 24px;
  min-height: 48px;
  padding: 12px 18px;
  text-decoration: none;
  width: 100%;
}

.persona-continue:hover {
  background: #303030;
}

.cost-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 10px;
}

.compact-cost-header {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 26, 22, 0.08);
  display: flex;
  gap: 8px;
  left: 50%;
  min-height: 46px;
  opacity: 0;
  padding: 8px 12px;
  pointer-events: none;
  position: fixed;
  top: 0;
  transform: translate(-50%, -12px);
  transition:
    opacity 160ms ease,
    transform 160ms ease;
  width: min(1180px, calc(100vw - 48px));
  z-index: 20;
}

.compact-cost-header.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 10px);
}

.compact-cost-header .cost-back {
  flex: 0 0 auto;
}

.compact-title,
.compact-section,
.compact-range {
  min-width: 0;
}

.compact-title {
  color: #171717;
  font-size: 0.9rem;
  font-weight: 780;
}

.compact-section,
.compact-range,
.compact-divider {
  color: #6b7069;
  font-size: 0.82rem;
  font-weight: 750;
}

.compact-range {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compact-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 10px;
  margin-left: auto;
}

.role-menu {
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}

.role-chip {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #4f544d;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1;
  padding: 0;
  text-transform: uppercase;
  white-space: nowrap;
}

.role-chip:hover,
.role-chip[aria-expanded='true'] {
  color: #171717;
}

.role-chip-icon {
  border: 1.5px solid currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 17px;
  position: relative;
  width: 17px;
}

.role-chip-icon::before,
.role-chip-icon::after {
  background: currentColor;
  content: '';
  left: 50%;
  position: absolute;
  transform: translateX(-50%);
}

.role-chip-icon::before {
  border-radius: 50%;
  height: 4px;
  top: 4px;
  width: 4px;
}

.role-chip-icon::after {
  border-radius: 999px 999px 0 0;
  height: 4px;
  top: 10px;
  width: 8px;
}

.role-menu-panel {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(24, 26, 22, 0.14);
  min-width: 128px;
  padding: 6px;
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
}

.role-menu-panel[hidden] {
  display: none;
}

.role-menu-item {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #171717;
  cursor: pointer;
  display: block;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 9px 10px;
  text-align: left;
  width: 100%;
}

.role-menu-item:hover,
.role-menu-item:focus-visible {
  background: #f0f2ed;
  outline: 0;
}

.cost-header-top {
  align-items: center;
  display: flex;
  justify-content: flex-end;
  min-height: 18px;
}

.cost-header-main {
  align-items: center;
  display: flex;
  gap: 20px;
  justify-content: space-between;
}

.cost-title-group {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 12px;
  min-width: 0;
}

.cost-title-group h1 {
  min-width: 0;
}

.cost-header-main .table-search {
  flex: 0 1 360px;
  justify-content: flex-end;
}

.cost-back-inline {
  color: #6b7069;
  flex: 0 0 auto;
  height: 64px;
  margin-left: -20px;
  margin-right: -12px;
  padding: 0;
  width: 64px;
}

.cost-back-inline .cost-back-icon {
  border-bottom-width: 2px;
  border-left-width: 2px;
  height: 10px;
  width: 10px;
}

.cost-back {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #4f544d;
  cursor: pointer;
  display: inline-flex;
  gap: 8px;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: center;
  letter-spacing: 0;
  line-height: 1.2;
  padding: 0;
  text-decoration: none;
  text-transform: uppercase;
}

.cost-back:hover {
  color: #171717;
}

.cost-back-icon {
  border-bottom: 1.5px solid currentColor;
  border-left: 1.5px solid currentColor;
  display: inline-block;
  height: 7px;
  transform: rotate(45deg);
  width: 7px;
}

.range-label {
  color: #4f544d;
  font-weight: 700;
}

.overhead-panel {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  margin-bottom: 18px;
  padding: 20px;
  position: relative;
}

.overhead-panel-header {
  align-items: baseline;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 2px;
  row-gap: 6px;
  flex-wrap: wrap;
}

.overhead-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
  text-align: left;
}

.overhead-metric {
  background: #f7f8f5;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  min-width: 0;
  padding: 14px;
  text-align: center;
}

.overhead-metric span {
  color: #6b7069;
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.3;
  text-transform: uppercase;
}

.overhead-metric strong {
  align-items: baseline;
  justify-content: center;
  color: #171717;
  display: flex;
  font-size: 1.45rem;
  gap: 8px;
  line-height: 1.1;
  margin-top: 8px;
}

.overhead-metric strong em {
  color: #6b7069;
  font-size: 0.85rem;
  font-style: normal;
  font-weight: 750;
}

.overhead-metric small {
  color: #5d625a;
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 6px;
}

.overhead-chart {
  display: block;
  height: auto;
  overflow: visible;
  touch-action: none;
  user-select: none;
  width: 100%;
}

.overhead-chart.is-selecting {
  cursor: grabbing;
}

.chart-wrap {
  position: relative;
}

.overhead-panel-header > .cost-composition.is-scope-only {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 0 auto;
}

.overhead-panel-header > .cost-composition.is-scope-only .composition-legend {
  color: #4f544d;
  font-size: 0.78rem;
}

.overhead-panel-header > .cost-composition.is-scope-only .composition-key {
  height: 8px;
  width: 16px;
}

.cost-composition {
  align-items: start;
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr auto;
  margin-top: 10px;
}

.cost-composition.is-scope-only {
  display: flex;
  justify-content: flex-end;
}

.composition-main {
  min-width: 0;
}

.composition-title {
  color: #6b7069;
  font-size: 0.72rem;
  font-weight: 750;
  line-height: 1.2;
  margin: 0 0 6px;
  text-transform: uppercase;
}

.composition-strip {
  background: #eef0eb;
  border-radius: 999px;
  display: flex;
  height: 18px;
  min-width: 0;
  overflow: hidden;
}

.composition-segment {
  align-items: center;
  appearance: none;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 var(--segment-width);
  font-size: 0.64rem;
  font-weight: 750;
  justify-content: center;
  min-width: 2px;
  overflow: hidden;
  padding: 0 5px;
  white-space: nowrap;
}

.composition-segment:hover,
.composition-legend-button:hover {
  filter: saturate(1.15);
}

.composition-segment.is-fixed {
  background: var(--segment-color);
  color: #ffffff;
}

.composition-segment.is-variable {
  background: color-mix(in srgb, var(--segment-color) 38%, white);
  color: #171717;
}

.composition-segment.is-allocated {
  background: var(--segment-color);
  cursor: default;
}

.composition-segment.is-unallocated {
  background: color-mix(in srgb, var(--segment-color) 38%, white);
  cursor: default;
}

.composition-segment.is-muted,
.composition-legend-button.is-muted {
  opacity: 0.28;
}

.composition-segment.is-active {
  box-shadow: inset 0 0 0 2px rgba(23, 23, 23, 0.28);
}

.composition-legends {
  display: grid;
  gap: 5px;
  justify-items: end;
}

.composition-legend {
  align-items: center;
  color: #6b7069;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 8px;
  justify-content: flex-end;
  white-space: nowrap;
}

.composition-legend span {
  align-items: center;
  display: inline-flex;
  gap: 5px;
}

.composition-legend-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: inherit;
  gap: 5px;
  padding: 0;
  text-decoration: none;
  white-space: nowrap;
}

.composition-legend-button.is-active {
  color: #171717;
}

.composition-key {
  background: var(--segment-color, #6b7069);
  border-radius: 999px;
  display: inline-block;
  height: 7px;
  width: 14px;
}

.composition-key.is-vendor,
.composition-key.is-fixed {
  opacity: 1;
}

.composition-key.is-variable {
  background: color-mix(in srgb, #6b7069 38%, white);
}

.composition-key.is-overall {
  background: linear-gradient(90deg, #6b7069 0 48%, #cfd6cd 48% 100%);
}

.composition-key.is-allocated {
  background: #6b7069;
}

.composition-key.is-unallocated {
  background: var(--unallocated-chart);
}

.composition-key.is-alloc-solid {
  background: #6b7069;
}

.composition-key.is-alloc-light {
  background: color-mix(in srgb, #6b7069 38%, white);
}

.chart-baseline {
  stroke: #dedfd9;
  stroke-width: 1;
}

.chart-y-axis,
.chart-y-tick {
  stroke: #dedfd9;
  stroke-width: 1;
}

.chart-axis-label-bg {
  fill: #ffffff;
  pointer-events: none;
}

.chart-hit-area {
  cursor: pointer;
  fill: transparent;
  pointer-events: all;
}

.allocation-segment {
  cursor: pointer;
  transition: fill 120ms ease, opacity 120ms ease;
}

.allocation-segment.is-allocated {
  fill: #6b7069;
}

.allocation-segment.is-unallocated {
  fill: var(--unallocated-chart);
}

.allocation-segment.is-total {
  fill: #6b7069;
}

.allocation-segment.is-selected.is-total {
  fill: #51564f;
}

.allocation-segment.is-selected.is-allocated {
  fill: #51564f;
}

.allocation-segment.is-selected.is-unallocated {
  fill: var(--unallocated-chart-active);
}

.allocation-segment.is-muted {
  opacity: 0.22;
}

.tool-segment {
  cursor: pointer;
  fill: var(--tool-color);
  transition: fill 120ms ease, opacity 120ms ease;
}

.tool-segment.is-unallocated {
  fill: color-mix(in srgb, var(--tool-color) 38%, white);
}

.tool-segment.is-muted {
  opacity: 0.22;
}

.overhead-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  min-height: 32px;
  position: absolute;
  right: 20px;
  top: 20px;
  white-space: nowrap;
}

.range-reset {
  appearance: none;
  background: transparent;
  border: 0;
  color: #6b7069;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.2;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.range-reset:hover {
  color: #171717;
}

.share-link {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #6b7069;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.filter-toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #6b7069;
  cursor: pointer;
  display: inline-flex;
  height: 32px;
  justify-content: center;
  padding: 0;
  width: 32px;
}

.share-link:hover {
  color: #171717;
}

.filter-toggle:hover,
.filter-toggle.is-active {
  color: #171717;
}

.filter-toggle.is-active {
  background: #eef0eb;
  border-radius: 999px;
}

.filter-toggle.is-clear {
  background: transparent;
  color: #6b7069;
}

.filter-toggle.is-clear:hover {
  color: #171717;
}

.share-link svg,
.filter-toggle svg {
  fill: none;
  height: 20px;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
  width: 20px;
}

.share-status {
  color: #6b7069;
  font-size: 0.72rem;
  font-weight: 700;
}

.mean-line {
  stroke: #8c9189;
  stroke-dasharray: 5 5;
  stroke-width: 1.5;
}

.target-line {
  fill: none;
  stroke: #2f6f73;
  stroke-width: 1.5;
}

.trend-line {
  stroke: #b43d2a;
  stroke-linecap: round;
  stroke-width: 2;
}

.axis-label {
  fill: #6b7069;
  font-size: 0.72rem;
  font-weight: 700;
  pointer-events: none;
}

.axis-label-y {
  fill: #8a8f87;
  font-size: 0.64rem;
}

.average-segment-label {
  font-size: 0.64rem;
  font-weight: 780;
  pointer-events: none;
}

.average-total-label {
  fill: #4f544d;
  font-size: 0.64rem;
  font-weight: 780;
  pointer-events: none;
}

.max-day-label {
  fill: #5d625a;
  font-size: 0.64rem;
  font-weight: 780;
  pointer-events: none;
}

.average-segment-label.is-allocated {
  fill: #ffffff;
}

.average-segment-label.is-unallocated {
  fill: #4f544d;
}

.chart-legend {
  align-items: center;
  color: #6b7069;
  display: flex;
  gap: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  justify-content: flex-start;
  left: 0;
  padding: 0 10px;
  position: absolute;
  top: 0;
  z-index: 1;
}

.chart-legend span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.legend-swatch {
  display: block;
  height: 0;
  width: 22px;
}

.mean-swatch {
  border-top: 1.5px dashed #8c9189;
}

.target-swatch {
  border-top: 1.5px solid #2f6f73;
}

.trend-swatch {
  border-top: 2px solid #b43d2a;
}

.summary-band {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr 1.8fr;
  margin-bottom: 18px;
}

.summary-metric,
.summary-callout {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  min-width: 0;
  padding: 18px;
}

.summary-callout {
  background: #fff7ef;
  border-color: #b43d2a;
}

.summary-label {
  align-items: baseline;
  color: #6f736c;
  display: flex;
  font-size: 0.78rem;
  font-weight: 750;
  gap: 6px;
  letter-spacing: 0;
  margin: 0;
}

.chart-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  min-width: 0;
}

.chart-panel-actions {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 120ms ease;
}

.overhead-panel-header:hover .chart-panel-actions,
.overhead-panel-header:focus-within .chart-panel-actions {
  opacity: 1;
  pointer-events: auto;
}

.chart-panel-action {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #5d625a;
  cursor: pointer;
  display: inline-flex;
  height: 28px;
  justify-content: center;
  padding: 0;
  transition: background 120ms ease, color 120ms ease;
  width: 28px;
}

.chart-panel-action:hover {
  background: #eef0eb;
  color: #171717;
}

.chart-panel-share-status {
  min-width: 42px;
}

.summary-scope {
  text-transform: uppercase;
}

.summary-metric strong,
.summary-callout strong {
  display: block;
  font-size: 1.45rem;
  line-height: 1.1;
}

.summary-metric span,
.summary-callout span {
  color: #5d625a;
  display: block;
  font-size: 0.9rem;
  line-height: 1.35;
  margin-top: 8px;
}

.cost-rows {
  display: grid;
  gap: 12px;
}

.cost-row {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  padding: 18px;
}

.primary-row {
  border-color: #111111;
}

.row-meta,
.row-body,
.row-context {
  align-items: center;
  display: flex;
}

.row-meta {
  justify-content: space-between;
  gap: 24px;
}

.row-numbers {
  min-width: 144px;
  text-align: right;
}

.row-numbers span {
  display: block;
  font-size: 1.25rem;
  font-weight: 780;
}

.row-numbers small,
.row-context {
  color: #6b7069;
  font-size: 0.85rem;
}

.row-note {
  color: #555a52;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 8px 0 0;
  max-width: 48rem;
}

.row-body {
  gap: 20px;
  margin-top: 10px;
  width: 100%;
}

.chart {
  display: block;
  flex: 1 1 auto;
  height: 88px;
  max-width: 100%;
  min-width: 0;
  width: 100%;
}

.chart line {
  stroke: #e3e4de;
  stroke-width: 1.5;
}

.chart polyline {
  fill: none;
  stroke: #171717;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.spike-dot {
  fill: #b43d2a;
}

.row-context {
  flex: 0 0 150px;
  flex-direction: column;
  gap: 6px;
  text-align: right;
}

.contributors-section {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  padding: 20px;
}

.contributors-section.is-inline {
  background: transparent;
  border: 0;
  border-top: 1px solid #e7e8e2;
  border-radius: 0;
  margin-top: 18px;
  padding: 18px 0 0;
}

.table-toolbar {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.team-context {
  align-items: center;
  border-bottom: 1px solid #e1e2dc;
  border-top: 1px solid #e1e2dc;
  container-type: inline-size;
  display: grid;
  gap: 0;
  grid-template-columns: var(--context-grid, repeat(var(--context-cols, 4), minmax(0, 1fr)));
  margin-bottom: 14px;
  padding: 10px 0;
}

.team-context.has-action {
  grid-template-columns: auto var(--context-grid, repeat(var(--context-cols, 4), minmax(0, 1fr)));
}

.team-context > div {
  border-right: 1px solid #e1e2dc;
  min-width: 0;
  padding: 0 14px;
}

.team-context > div:first-child {
  padding-left: 0;
}

.team-context > div:last-child {
  border-right: 0;
  padding-right: 0;
}

.team-context > .team-context-action {
  align-items: center;
  border-right: 0;
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-start;
  min-width: 62px;
  padding: 0;
}

.team-context span,
.row-name small {
  color: #6b7069;
  display: block;
  font-size: 0.76rem;
  font-weight: 750;
  line-height: 1.2;
}

.team-context span {
  margin-bottom: 4px;
  text-transform: uppercase;
}

.team-context strong {
  color: #171717;
  display: block;
  font-size: 0.95rem;
  line-height: 1.25;
  overflow-wrap: normal;
  white-space: nowrap;
}

.team-context strong em {
  color: #6b7069;
  font-style: normal;
  font-weight: 500;
}

.team-context strong .people-active-count {
  color: #171717;
  display: inline;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: inherit;
  margin-bottom: 0;
  text-transform: none;
}

.team-context strong .people-active-detail {
  font-size: 0.82rem;
}

.team-context strong .context-cost-amount {
  color: #171717;
  display: inline;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: inherit;
  margin-bottom: 0;
  text-transform: none;
}

.team-context strong .context-cost-change {
  font-size: 0.78rem;
}

.team-context strong .context-allocated-share {
  color: #171717;
  display: inline;
  font-size: 0.98rem;
  font-weight: 720;
  line-height: inherit;
  margin-bottom: 0;
  text-transform: none;
}

@media (min-width: 621px) and (max-width: 1120px) {
  .team-context strong .people-active-detail {
    display: none;
  }

  .team-context strong .context-cost-change {
    display: none;
  }
}

@media (min-width: 721px) and (max-width: 1120px) {
  .team-context {
    grid-template-columns: var(--context-compact-grid, var(--context-grid, repeat(var(--context-cols, 4), minmax(0, 1fr))));
  }

  .team-context.has-action {
    grid-template-columns: auto var(--context-compact-grid, var(--context-grid, repeat(var(--context-cols, 4), minmax(0, 1fr))));
  }
}

.row-name small em {
  color: #6b7069;
  font-style: normal;
  font-weight: 500;
}

/* Spans nested in a row subtitle pick up the 0.9rem cell size from
   `.contributors-row span`; keep them at the subtitle's own size. */
.row-name small span {
  font-size: inherit;
}

.table-toolbar-primary {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  width: 100%;
}

.group-control {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.group-button {
  appearance: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #6b7069;
  cursor: pointer;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1;
  padding: 11px 18px;
  text-transform: uppercase;
}

.group-button:hover,
.group-button.is-active {
  background: #eef0eb;
  color: #171717;
}

.table-toolbar-spacer {
  flex: 0 0 auto;
}

.table-add-button {
  appearance: none;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  flex: 0 0 auto;
  font-size: 1.1rem;
  font-weight: 750;
  line-height: 1;
  padding: 11px 18px;
  text-transform: none;
}

.table-add-button:hover,
.table-add-button[aria-expanded='true'] {
  background: #303030;
}

.cost-header-tools {
  align-items: center;
  display: flex;
  flex: 0 1 620px;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
  min-width: 0;
}

.settings-menu {
  flex: 0 0 auto;
}

.settings-trigger {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 999px;
  color: #6b7069;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 44px;
  justify-content: center;
  padding: 0;
  width: 44px;
}

.settings-trigger:hover,
.settings-trigger[aria-expanded='true'] {
  background: #eef0eb;
  color: #171717;
}

.settings-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.settings-panel {
  min-width: 224px;
}

.settings-menu-item {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #171717;
  cursor: pointer;
  display: flex;
  font: inherit;
  gap: 10px;
  padding: 9px 10px;
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.settings-menu-item {
  font-size: 1.02rem;
  font-weight: 720;
}

.settings-menu-icon {
  align-items: center;
  color: #5d625a;
  display: inline-flex;
  flex: none;
  justify-content: center;
}

.settings-menu-item:hover,
.settings-menu-item:focus-visible {
  background: #f0f2ed;
  outline: 0;
}

.settings-divider {
  background: #e1e2dc;
  height: 1px;
  margin: 5px 4px 8px;
}

.settings-panel-title {
  color: #6b7069;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin: 4px 6px 8px;
  text-transform: uppercase;
}

.settings-row {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 6px 6px 4px;
}

.settings-row-label {
  color: #171717;
  font-size: 0.92rem;
  font-weight: 460;
}

.tool-breakout-toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  padding: 2px;
}

.tool-breakout-switch {
  background: #d8d9d2;
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 auto;
  height: 18px;
  position: relative;
  transition: background 0.15s ease;
  width: 32px;
}

.tool-breakout-switch::after {
  background: #ffffff;
  border-radius: 50%;
  content: '';
  height: 14px;
  left: 2px;
  position: absolute;
  top: 2px;
  transition: transform 0.15s ease;
  width: 14px;
}

.tool-breakout-toggle.is-on .tool-breakout-switch {
  background: #171717;
}

.tool-breakout-toggle.is-on .tool-breakout-switch::after {
  transform: translateX(14px);
}

.table-search {
  align-items: center;
  display: flex;
  flex: 1 1 auto;
  gap: 10px;
  justify-content: flex-end;
  min-width: 0;
}

.table-search-input {
  appearance: none;
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 999px;
  color: #171717;
  flex: 1 1 auto;
  font-size: 1.1rem;
  line-height: 1.2;
  max-width: 460px;
  min-width: 200px;
  padding: 11px 20px;
  width: 100%;
}

.cost-header-tools .table-search-input {
  max-width: none;
}

.table-search-input::placeholder {
  color: #9a9d95;
}

.table-search-input:focus {
  border-color: #171717;
  outline: none;
}

.search-scope {
  align-items: center;
  background: #eef0eb;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 4px;
  padding: 3px;
}

.scope-pill {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #6b7069;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1;
  padding: 7px 12px;
  white-space: nowrap;
}

.scope-pill.is-active {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 26, 22, 0.12);
  color: #171717;
}

.search-results {
  display: grid;
  gap: 24px;
}

.search-section-head {
  align-items: baseline;
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}

.search-section-head h3 {
  color: #171717;
  font-size: 0.9rem;
  font-weight: 780;
  letter-spacing: 0;
  margin: 0;
  text-transform: uppercase;
}

.search-section-count {
  color: #6b7069;
  font-size: 0.82rem;
  font-weight: 750;
}

.search-expand {
  appearance: none;
  background: transparent;
  border: 0;
  color: #6b7069;
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 750;
  margin-top: 8px;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.search-expand:hover {
  color: #171717;
}

.contributors-row.daily-row {
  grid-template-columns: minmax(120px, 1.4fr) 0.9fr 0.9fr;
}

.contributors-row.daily-row span {
  color: #171717;
  font-weight: 700;
}

.daily-date {
  align-items: center;
  display: inline-flex;
  font-weight: 720;
  gap: 8px;
}

.daily-spike {
  background: #fbe3d6;
  border-radius: 999px;
  color: #b43d2a;
  font-size: 0.62rem;
  font-weight: 780;
  letter-spacing: 0.02em;
  padding: 2px 7px;
  text-transform: uppercase;
}

.contributors-row.daily-row.is-spike {
  background: #fff6f2;
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
}

.contributors-empty {
  color: #6b7069;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 16px 0 0;
}

.contributors-table {
  border-top: 0;
}

.spine-panel {
  border-top: 1px solid #d8d9d2;
  margin-top: 28px;
  padding-top: 24px;
}

.spine-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.spine-panel-header h2 {
  max-width: 520px;
}

.spine-panel-tools {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.spine-assumptions-link,
.assumptions-back {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 999px;
  color: #171717;
  display: inline-flex;
  font-size: 0.86rem;
  font-weight: 760;
  min-height: 36px;
  padding: 8px 12px;
  text-decoration: none;
}

.spine-assumptions-link:hover,
.spine-assumptions-link:focus-visible,
.assumptions-back:hover,
.assumptions-back:focus-visible {
  background: #f0f2ed;
  outline: 0;
}

.spine-summary {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  max-width: 560px;
}

.spine-summary span {
  background: #f5f6f3;
  border: 1px solid #d8d9d2;
  border-radius: 999px;
  color: #4f544d;
  font-size: 0.8rem;
  font-weight: 720;
  padding: 7px 10px;
}

.spine-summary strong {
  color: #171717;
}

.spine-section-title {
  color: #4f544d;
  font-size: 0.82rem;
  font-weight: 820;
  letter-spacing: 0;
  margin: 18px 0 8px;
  text-transform: uppercase;
}

.spine-table {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  overflow: hidden;
}

.spine-row {
  align-items: center;
  border-top: 1px solid #ecede8;
  display: grid;
  gap: 12px;
  grid-template-columns:
    minmax(88px, 0.6fr)
    minmax(180px, 1.4fr)
    minmax(170px, 1.2fr)
    minmax(120px, 0.9fr)
    minmax(104px, 0.7fr)
    minmax(88px, 0.55fr);
  min-height: 54px;
  padding: 10px 14px;
}

.spine-engagement-row {
  grid-template-columns:
    minmax(88px, 0.55fr)
    minmax(180px, 1.25fr)
    minmax(170px, 1.15fr)
    minmax(170px, 1.15fr)
    minmax(130px, 0.9fr)
    minmax(104px, 0.65fr);
}

.spine-row:first-child {
  border-top: 0;
}

.spine-row-header {
  background: #f5f6f3;
  color: #6f736c;
  font-size: 0.76rem;
  font-weight: 780;
  min-height: 42px;
  text-transform: uppercase;
}

.spine-row strong,
.spine-row small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.spine-row small {
  color: #6f736c;
  font-size: 0.78rem;
  font-weight: 650;
  margin-top: 3px;
}

.spine-row em {
  background: #fff7e8;
  border-radius: 999px;
  color: #6d4a11;
  display: inline-flex;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 760;
  padding: 5px 8px;
}

.spine-footnote {
  color: #6f736c;
  font-size: 0.86rem;
  margin: 10px 0 0;
}

.cost-assumptions-body {
  background: #f6f7f4;
}

.assumptions-screen {
  margin: 0 auto;
  padding: 36px 0 48px;
  width: min(1180px, calc(100vw - 48px));
}

.assumptions-header {
  align-items: flex-start;
  display: flex;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 22px;
}

.assumptions-header h1 {
  font-size: 2rem;
  line-height: 1.05;
}

.assumptions-header p:not(.eyebrow) {
  color: #4f544d;
  line-height: 1.45;
  margin: 12px 0 0;
  max-width: 720px;
}

.assumption-callout {
  align-items: center;
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  margin-bottom: 14px;
  padding: 14px 16px;
}

.assumption-callout strong {
  flex: 0 0 auto;
}

.assumption-callout span {
  color: #4f544d;
  line-height: 1.4;
}

.assumption-providers {
  display: grid;
  gap: 12px;
}

.assumption-provider,
.assumption-model-group {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  overflow: hidden;
}

.assumption-provider > summary,
.assumption-model-group > summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  list-style: none;
  padding: 16px;
}

.assumption-provider > summary::-webkit-details-marker,
.assumption-model-group > summary::-webkit-details-marker {
  display: none;
}

.assumption-provider > summary::before,
.assumption-model-group > summary::before {
  color: #6b7069;
  content: "+";
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 760;
}

.assumption-provider[open] > summary::before,
.assumption-model-group[open] > summary::before {
  content: "-";
}

.assumption-provider > summary > span:first-child,
.assumption-model-group > summary > span:first-child {
  flex: 1 1 auto;
  min-width: 0;
}

.assumption-provider summary strong,
.assumption-provider summary small {
  display: block;
}

.assumption-provider summary small {
  color: #6f736c;
  line-height: 1.35;
  margin-top: 4px;
}

.assumption-provider-body {
  border-top: 1px solid #ecede8;
  padding: 0 16px 16px;
}

.assumption-source {
  align-items: center;
  color: #6f736c;
  display: flex;
  font-size: 0.88rem;
  gap: 8px;
  padding: 14px 0;
}

.assumption-source a,
.assumption-sources a {
  color: #315b7d;
  font-weight: 720;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.assumption-unit-table,
.assumption-model-table {
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  overflow: hidden;
}

.assumption-unit-row,
.assumption-model-row {
  align-items: center;
  border-top: 1px solid #ecede8;
  display: grid;
  gap: 12px;
  min-height: 48px;
  padding: 10px 12px;
}

.assumption-unit-row {
  grid-template-columns: minmax(180px, 1.3fr) minmax(190px, 1fr) minmax(120px, 0.5fr);
}

.assumption-model-row {
  grid-template-columns:
    minmax(190px, 1.4fr)
    minmax(110px, 0.65fr)
    minmax(120px, 0.7fr)
    minmax(110px, 0.65fr)
    minmax(110px, 0.65fr);
}

.assumption-unit-row:first-child,
.assumption-model-row:first-child {
  border-top: 0;
}

.assumption-row-head {
  background: #f5f6f3;
  color: #6f736c;
  font-size: 0.76rem;
  font-weight: 780;
  text-transform: uppercase;
}

.assumption-unit-row strong,
.assumption-unit-row small,
.assumption-model-row strong {
  display: block;
  min-width: 0;
}

.assumption-unit-row small {
  color: #6f736c;
  font-size: 0.8rem;
  line-height: 1.35;
  margin-top: 3px;
}

.assumption-status {
  background: #edf4ee;
  border-radius: 999px;
  color: #245b2f;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 780;
  justify-self: start;
  padding: 5px 8px;
}

.assumption-status.is-provisional {
  background: #fff7e8;
  color: #6d4a11;
}

.assumption-status.is-mixed {
  background: #eef3f7;
  color: #315b7d;
}

.assumption-model-groups {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.assumption-model-group > summary {
  background: #fbfcfa;
  padding: 12px 14px;
}

.assumption-model-group > summary > span:last-child {
  color: #6f736c;
  font-size: 0.82rem;
  font-weight: 720;
}

.assumption-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

.contributors-row {
  align-items: center;
  border-bottom: 1px solid #e7e8e2;
  border-radius: 6px;
  color: inherit;
  display: grid;
  gap: 14px;
  grid-template-columns: 0.55fr minmax(150px, 1.3fr) minmax(130px, 1fr) 0.75fr 0.75fr 0.65fr;
  min-height: 54px;
  padding: 10px 0;
  text-decoration: none;
}

.contributors-table.is-no-context .contributors-row {
  grid-template-columns: 0.55fr minmax(170px, 1.7fr) 0.75fr 0.75fr 0.65fr;
}

/* Cross-tab: Share | Name | one cell per vendor | Per day | Total | Change.
   The vendor tracks are generated from --cross-tab-cols (set inline from
   vendors.length in costScreen), so the grid stays aligned when vendors are
   added or removed. */
.contributors-table.is-cross-tab .contributors-row {
  grid-template-columns:
    minmax(0, 0.5fr) minmax(120px, 1.4fr)
    repeat(var(--cross-tab-cols, 3), minmax(0, 0.85fr))
    minmax(0, 0.85fr) minmax(0, 0.85fr) minmax(0, 0.7fr);
}

.contributors-row.is-unallocated {
  background: var(--unallocated-highlight);
  margin: 0 -10px;
  padding-left: 10px;
  padding-right: 10px;
}

.contributors-row.is-drillable {
  cursor: pointer;
}

.contributors-row.is-drillable:hover {
  background: #eef4f7;
}

.contributors-row.is-drillable:focus-visible {
  box-shadow: 0 0 0 2px #171717;
  outline: none;
}

.contributors-row-header {
  color: #6b7069;
  font-size: 0.76rem;
  font-weight: 750;
  min-height: 40px;
  text-transform: uppercase;
}

.contributors-row strong {
  font-size: 0.98rem;
}

.row-name {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.contributors-row .row-name > span {
  color: #171717;
  font-size: 0.98rem;
  font-weight: 760;
}

.row-name small {
  color: #6b7069;
  font-weight: 500;
  padding-left: 10px;
  text-transform: none;
}

.contributors-row span {
  color: #5d625a;
  font-size: 0.9rem;
  line-height: 1.3;
}

/* Numeric cells center under their headers. Name cells are <strong>, so body
   rows are untouched; the header's name cell (and the daily table's date
   column) opt back out to stay left-aligned. */
.contributors-row > span {
  text-align: center;
}

.contributors-row-header:not(.daily-row) > span:nth-child(2) {
  text-align: left;
}

.contributors-row.daily-row > span:first-child {
  text-align: left;
}

.contributors-row .row-cost {
  align-items: baseline;
  color: #171717;
  display: inline-flex;
  flex-wrap: wrap;
  font-weight: 720;
  gap: 7px;
  justify-content: center;
}

.row-cost small {
  color: #6b7069;
  font-size: 0.78rem;
  font-weight: 500;
}

.contributors-sort {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-weight: inherit;
  padding: 0;
  text-align: left;
  text-transform: inherit;
}

.contributors-sort:hover {
  color: #171717;
}

.contributors-row:not(.contributors-row-header) > span:nth-child(1),
.contributors-row:not(.contributors-row-header) > span:nth-child(4),
.contributors-row:not(.contributors-row-header) > span:nth-child(5) {
  color: #171717;
  font-weight: 600;
}

/* Cross-tab emphasis applies to body rows only: tool cells read as plain
   values; Share/Total/Change bold. Keyed off data-label rather than column
   position so it stays correct for any vendor count. The header row keeps a
   uniform column style. */
.contributors-table.is-cross-tab .contributors-row:not(.contributors-row-header) > span {
  color: #5d625a;
  font-weight: 400;
}

.contributors-table.is-cross-tab .contributors-row:not(.contributors-row-header) > span[data-label="Share"],
.contributors-table.is-cross-tab .contributors-row:not(.contributors-row-header) > span[data-label="Total"],
.contributors-table.is-cross-tab .contributors-row:not(.contributors-row-header) > span[data-label="Change"] {
  color: #171717;
  font-weight: 720;
}

.contributors-table.is-cross-tab .contributors-row-header span {
  color: #6b7069;
  font-weight: 750;
}

.contributors-footnote {
  color: #6b7069;
  font-size: 0.86rem;
  line-height: 1.35;
  margin: 0;
}

.alert-menu {
  display: inline-flex;
  flex: 0 0 auto;
  position: relative;
}

.alert-badge {
  align-items: center;
  appearance: none;
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 999px;
  color: #6b7069;
  cursor: pointer;
  display: inline-flex;
  height: 40px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  position: relative;
  width: 40px;
}

.alert-badge:hover,
.alert-badge[aria-expanded='true'],
.alert-badge.has-unread {
  background: #eef0eb;
  color: #171717;
}

.alert-badge[aria-expanded='true'] {
  background: #f7f8f5;
  border-color: #171717;
  box-shadow: 0 6px 16px rgba(24, 26, 22, 0.06);
}

.alert-badge.has-unread {
  border-color: #171717;
}

.alert-badge-icon {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  line-height: 0;
}

.alert-badge-icon svg {
  display: block;
}

.alert-badge-count {
  align-items: center;
  background: #b43d2a;
  border: 2px solid #ffffff;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.66rem;
  font-weight: 800;
  height: 19px;
  justify-content: center;
  min-width: 19px;
  padding: 0 5px;
  position: absolute;
  right: -5px;
  top: -5px;
}

.alert-badge-close {
  align-items: center;
  background: transparent;
  color: #5d625a;
  display: inline-flex;
  height: 100%;
  justify-content: center;
  line-height: 1;
  width: 100%;
}

.alert-badge-close svg {
  display: block;
}

.team-context .alert-badge > span {
  margin: 0;
  text-transform: none;
}

.team-context .alert-badge .alert-badge-count {
  color: #ffffff;
  display: inline-flex;
  font-size: 0.66rem;
  line-height: 1;
}

.team-context .alert-badge .alert-badge-icon,
.team-context .alert-badge .alert-badge-close {
  align-items: center;
  display: inline-flex;
  justify-content: center;
}

.team-context .alert-badge .alert-badge-icon {
  line-height: 0;
}

.team-context .alert-badge .alert-badge-close {
  line-height: 1;
}

.alert-tray {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(24, 26, 22, 0.08);
  margin-bottom: 14px;
  padding: 18px;
  position: relative;
  width: 100%;
}

.alert-tray::before {
  background: #171717;
  border-radius: 999px;
  content: '';
  height: 3px;
  left: 18px;
  position: absolute;
  top: -2px;
  width: 40px;
}

.alert-tray-head {
  align-items: flex-start;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.alert-panel-title {
  color: #6b7069;
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.04em;
  margin: 0 0 8px;
  text-transform: uppercase;
}

.alert-secondary,
.alert-row-action-button,
.alert-snooze-button,
.alert-row-result-link,
.alert-builder-danger-actions button,
.alert-rule-actions button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #5d625a;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 560;
  padding: 0;
  text-decoration: none;
}

.alert-secondary:hover,
.alert-row-action-button:hover,
.alert-snooze-button:hover,
.alert-row-result-link:hover,
.alert-builder-danger-actions button:hover,
.alert-rule-actions button:hover {
  color: #171717;
}

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

.alert-row {
  align-items: start;
  background: #ffffff;
  border: 1px solid #e1e2dc;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 10px;
  position: relative;
  transition: background 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.alert-row:hover,
.alert-row:focus-within {
  background: #fff7ef;
  border-color: #d8bd92;
  box-shadow: 0 6px 18px rgba(24, 26, 22, 0.05);
}

.alert-row.is-unread {
  padding-left: 26px;
}

.alert-row.is-unread::before {
  background: #b43d2a;
  border-radius: 999px;
  content: "";
  height: 8px;
  left: 10px;
  position: absolute;
  top: 17px;
  width: 8px;
}

.alert-row-main {
  appearance: none;
  background: transparent;
  border: 0;
  color: inherit;
  cursor: pointer;
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 0;
  text-align: left;
  text-decoration: none;
}

.alert-row-main.is-grouped {
  grid-template-columns: auto minmax(0, 1fr);
}

.alert-row-main.is-grouped .alert-row-kicker,
.alert-row-main.is-grouped strong,
.alert-row-main.is-grouped small {
  grid-column: 2;
}

.alert-caret {
  align-items: center;
  color: #5d625a;
  display: inline-flex;
  font-size: 1.2rem;
  font-weight: 760;
  grid-row: 1 / 4;
  justify-content: center;
  line-height: 1;
  width: 18px;
}

.alert-row-kicker,
.alert-row-main small,
.alert-rule-row small,
.alert-match-row small {
  color: #6b7069;
  font-size: 0.78rem;
  line-height: 1.3;
}

.alert-row-kicker {
  font-weight: 760;
  text-transform: uppercase;
}

.alert-row-main strong,
.alert-rule-row strong,
.alert-match-row strong {
  color: #171717;
  font-size: 0.95rem;
  line-height: 1.25;
}

.alert-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-row-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  opacity: 0;
  position: relative;
  transition: opacity 120ms ease;
}

.alert-row:hover .alert-row-actions,
.alert-row:focus-within .alert-row-actions,
.alert-row-actions:has(.alert-snooze-menu) {
  opacity: 1;
}

.alert-snooze-button {
  border-radius: 999px;
  padding: 0;
}

.alert-snooze-button:hover {
  background: transparent;
}

.alert-snooze-menu {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(24, 26, 22, 0.14);
  display: grid;
  min-width: 110px;
  padding: 5px;
  position: absolute;
  right: 0;
  top: calc(100% + 5px);
  z-index: 60;
}

.alert-snooze-menu button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #171717;
  cursor: pointer;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 720;
  padding: 8px;
  text-align: left;
}

.alert-snooze-menu button:hover {
  background: #f0f2ed;
}

.alert-empty {
  color: #6b7069;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 10px 0 4px;
}

.alert-empty-state {
  align-items: flex-start;
  display: grid;
  gap: 10px;
}

.alert-empty-action {
  appearance: none;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  padding: 9px 14px;
  width: fit-content;
}

.alert-empty-action:hover {
  background: #303030;
}

.alert-empty-link {
  appearance: none;
  background: transparent;
  border: 0;
  color: #5d625a;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 750;
  padding: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
  width: fit-content;
}

.alert-empty-link:hover {
  color: #171717;
}

.alert-tray h2 {
  font-size: 1.25rem;
}

.alert-match-list {
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
}

.alert-match-row {
  align-items: center;
  appearance: none;
  background: #f7f8f5;
  border: 1px solid #e1e2dc;
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding: 10px;
  text-align: left;
  width: 100%;
}

.alert-match-row:hover {
  background: #eef4f7;
}

.alert-match-row > span:first-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.alert-match-value {
  align-items: baseline;
  display: inline-flex;
  flex: 0 0 auto;
  gap: 7px;
}

.alert-match-value strong {
  font-size: 0.94rem;
}

.alert-match-value span {
  color: #6b7069;
  font-size: 0.78rem;
  font-weight: 700;
}

.alert-icon-button {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #171717;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  font: inherit;
  font-size: 1.12rem;
  font-weight: 760;
  height: 24px;
  justify-content: center;
  line-height: 1;
  padding: 0;
  width: 24px;
}

.alert-icon-button:hover {
  color: #5d625a;
}

.alert-tray-head .alert-icon-button,
.alert-builder-head .alert-icon-button {
  margin-right: -6px;
  margin-top: -6px;
}

.alert-builder {
  display: grid;
  gap: 12px;
  width: 100%;
}

.alert-builder-head {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.alert-builder-head h2 {
  margin: 0;
}

.alert-builder-section {
  display: grid;
  gap: 8px;
}

.alert-builder-label {
  color: #6b7069;
  font-size: 0.76rem;
  font-weight: 760;
  line-height: 1.2;
  text-transform: uppercase;
}

.alert-segmented,
.alert-periods {
  align-items: center;
  background: #eef0eb;
  border-radius: 999px;
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  width: fit-content;
}

.alert-segmented button,
.alert-periods button,
.alert-condition-grid button {
  appearance: none;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.alert-segmented button,
.alert-periods button {
  background: transparent;
  border-radius: 999px;
  color: #5d625a;
  font-size: 0.86rem;
  font-weight: 760;
  padding: 8px 12px;
}

.alert-segmented button.is-active,
.alert-periods button.is-active {
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(24, 26, 22, 0.12);
  color: #171717;
}

.alert-select,
.alert-number-field {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  color: #171717;
  font: inherit;
  font-size: 1rem;
  min-height: 44px;
  padding: 0 12px;
  width: 100%;
}

.alert-combobox {
  position: relative;
}

.alert-select.is-open {
  border-radius: 8px 8px 0 0;
}

.alert-picker-list {
  background: #ffffff;
  border: 1px solid #e1e2dc;
  border-radius: 0 0 8px 8px;
  border-top: 0;
  box-shadow: 0 14px 28px rgba(24, 26, 22, 0.12);
  display: grid;
  left: 0;
  max-height: 200px;
  overflow: auto;
  padding: 5px;
  position: absolute;
  right: 0;
  top: 100%;
  z-index: 70;
}

.alert-picker-list button {
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #171717;
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 720;
  padding: 9px 10px;
  text-align: left;
}

.alert-picker-list button.is-any-option {
  border-bottom: 1px solid #e1e2dc;
  color: #555b52;
  font-style: italic;
  margin-bottom: 5px;
  padding-bottom: 12px;
}

.alert-picker-list button:hover,
.alert-picker-list button.is-selected {
  background: #eef0eb;
}

.alert-condition-grid {
  display: inline-grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(180px, 230px));
  width: fit-content;
}

.alert-condition-grid button {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  color: #171717;
  display: grid;
  gap: 4px;
  padding: 12px;
  text-align: left;
}

.alert-condition-grid button.is-active {
  border-color: #171717;
  box-shadow: inset 0 0 0 1px #171717;
}

.alert-condition-grid strong {
  font-size: 0.96rem;
  line-height: 1.25;
}

.alert-condition-grid span {
  color: #6b7069;
  font-size: 0.82rem;
}

.alert-number-field {
  align-items: center;
  display: flex;
  gap: 6px;
  padding: 0 12px;
}

.alert-value-section .alert-number-field {
  width: min(240px, 100%);
}

.alert-number-field input {
  appearance: textfield;
  border: 0;
  flex: 0 1 120px;
  font: inherit;
  font-size: 1rem;
  min-width: 0;
  outline: 0;
  padding: 10px 0;
}

.alert-number-field input::-webkit-inner-spin-button,
.alert-number-field input::-webkit-outer-spin-button {
  appearance: none;
  margin: 0;
}

.alert-builder-inline-field {
  align-items: center;
  color: #5d625a;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.9rem;
  font-weight: 720;
  gap: 8px;
}

.alert-builder-inline-field input {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  color: #171717;
  font: inherit;
  min-height: 38px;
  padding: 8px 10px;
  width: 90px;
}

.alert-builder-actions {
  align-items: center;
  display: grid;
  gap: 12px;
  grid-template-columns: max-content;
  justify-content: end;
  justify-items: center;
}

.alert-builder-danger-actions {
  align-items: center;
  display: flex;
  gap: 14px;
}

.alert-advanced {
  border-top: 1px solid #e1e2dc;
  display: grid;
  gap: 10px;
  padding-top: 10px;
}

.alert-advanced-toggle {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  color: #5d625a;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-size: 0.86rem;
  font-weight: 650;
  gap: 6px;
  padding: 0;
  width: fit-content;
}

.alert-advanced-toggle:hover {
  color: #171717;
}

.alert-advanced-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.alert-checkset {
  border: 1px solid #e1e2dc;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 10px 12px 12px;
}

.alert-checkset legend {
  color: #6b7069;
  font-size: 0.76rem;
  font-weight: 760;
  padding: 0 4px;
  text-transform: uppercase;
}

.alert-checkset label {
  align-items: center;
  color: #171717;
  display: flex;
  font-size: 0.9rem;
  font-weight: 650;
  gap: 8px;
}

.alert-checkset input {
  accent-color: #171717;
}

.alert-primary {
  appearance: none;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  padding: 10px 16px;
}

.alert-primary:hover {
  background: #303030;
}

.alert-primary:disabled {
  background: #c6c8c0;
  border-color: #c6c8c0;
  cursor: not-allowed;
}

.alert-confirm-backdrop {
  align-items: center;
  background: rgba(24, 26, 22, 0.18);
  border-radius: 8px;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 120;
}

.alert-confirm {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(24, 26, 22, 0.2);
  display: grid;
  gap: 10px;
  max-width: 360px;
  padding: 18px;
  width: min(100%, 360px);
}

.alert-confirm h3 {
  font-size: 1rem;
  margin: 0;
}

.alert-confirm p {
  color: #5d625a;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.alert-confirm-actions {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  margin-top: 4px;
}

.alert-confirm-actions button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #5d625a;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 720;
  padding: 8px 10px;
}

.alert-confirm-actions button:last-child {
  background: #171717;
  border-radius: 999px;
  color: #ffffff;
  padding: 9px 14px;
}

.alert-confirm-actions button.is-danger {
  background: #b43d2a;
}

.export-backdrop {
  align-items: center;
  background: rgba(24, 26, 22, 0.18);
  border-radius: 8px;
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 18px;
  position: fixed;
  z-index: 120;
}

.export-modal {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(24, 26, 22, 0.2);
  display: grid;
  gap: 14px;
  max-width: 420px;
  padding: 20px;
  width: min(100%, 420px);
}

.export-modal-head {
  display: grid;
  gap: 6px;
}

.export-modal-head h3 {
  font-size: 1rem;
  margin: 0;
}

.export-modal-head p {
  color: #5d625a;
  font-size: 0.9rem;
  line-height: 1.4;
  margin: 0;
}

.export-options {
  display: grid;
  gap: 10px;
}

.export-option {
  appearance: none;
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  cursor: pointer;
  display: grid;
  font: inherit;
  gap: 4px;
  padding: 12px 14px;
  text-align: left;
  transition: border-color 0.12s ease, background 0.12s ease;
}

.export-option:hover,
.export-option:focus-visible {
  background: #f5f6f1;
  border-color: #171717;
  outline: none;
}

.export-option-title {
  font-size: 0.95rem;
  font-weight: 720;
}

.export-option-desc {
  color: #5d625a;
  font-size: 0.85rem;
  line-height: 1.4;
}

.export-option-meta {
  color: #8a8f86;
  font-size: 0.78rem;
  font-weight: 640;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.export-modal-actions {
  display: flex;
  justify-content: flex-end;
}

.export-modal-actions button {
  appearance: none;
  background: transparent;
  border: 0;
  color: #5d625a;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 720;
  padding: 8px 10px;
}

.alert-rules-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.alert-new-rule-button {
  appearance: none;
  background: #171717;
  border: 1px solid #171717;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font: inherit;
  font-weight: 760;
  margin: 4px 0 10px;
  padding: 9px 14px;
}

.alert-new-rule-button:hover {
  background: #303030;
}

.alert-rule-row {
  align-items: center;
  border: 1px solid #e1e2dc;
  border-radius: 8px;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 12px;
}

.alert-rule-row > span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.alert-rule-actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 12px;
}

.alert-results-panel {
  background: #ffffff;
  border: 1px solid #d8d9d2;
  border-radius: 8px;
  display: grid;
  gap: 16px;
  margin-bottom: 14px;
  padding: 18px;
}

.alert-results-head {
  align-items: start;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.alert-results-head h2 {
  color: #171717;
  font-size: 1.18rem;
  line-height: 1.2;
  margin: 0;
}

.alert-results-copy {
  min-width: 0;
}

.alert-results-title-row {
  align-items: center;
  display: flex;
  gap: 8px;
  width: fit-content;
}

.alert-results-edit,
.alert-results-export,
.alert-results-share {
  align-items: center;
  appearance: none;
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #5d625a;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 28px;
  justify-content: center;
  opacity: 0;
  padding: 0;
  transition: opacity 120ms ease, background 120ms ease, color 120ms ease;
  width: 28px;
}

.alert-results-export,
.alert-results-share {
  opacity: 1;
}

.alert-results-copy:hover .alert-results-edit,
.alert-results-copy:focus-within .alert-results-edit {
  opacity: 1;
}

.alert-results-edit:hover,
.alert-results-export:hover,
.alert-results-share:hover {
  background: #eef0eb;
  color: #171717;
}

.alert-results-share-status {
  min-width: 42px;
}

.alert-results-head p:last-child {
  color: #5d625a;
  font-size: 0.9rem;
  line-height: 1.35;
  margin: 6px 0 0;
}

.alert-results-close {
  align-items: center;
  color: #5d625a;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  font-weight: 640;
  height: 28px;
  justify-content: center;
  line-height: 1;
  margin-right: -4px;
  margin-top: -4px;
  text-decoration: none;
  width: 28px;
}

.alert-results-close:hover {
  background: #eef0eb;
  border-radius: 999px;
  color: #171717;
}

.alert-results-table {
  display: grid;
  gap: 6px;
}

.alert-result-row {
  align-items: center;
  background: #fff8ed;
  border: 1px solid #eadac1;
  border-radius: 8px;
  color: inherit;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(92px, 0.6fr));
  padding: 10px 12px;
  text-decoration: none;
}

.alert-result-row:not(.is-header):hover {
  background: #fff2df;
  border-color: #d8bd92;
}

.alert-result-row.is-header {
  background: transparent;
  border: 0;
  color: #6b7069;
  font-size: 0.76rem;
  font-weight: 760;
  padding-bottom: 2px;
  padding-top: 0;
  text-transform: uppercase;
}

.alert-result-row.is-header > span:first-child {
  justify-self: start;
  text-align: left;
}

.alert-result-row strong {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.alert-result-row strong > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.alert-result-row small {
  color: #6b7069;
  font-size: 0.78rem;
  line-height: 1.25;
}

.alert-result-row > span {
  color: #171717;
  font-size: 0.92rem;
  font-weight: 700;
  justify-self: center;
  text-align: center;
}

.alert-results-empty {
  color: #5d625a;
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

@media (max-width: 720px) {
  .screen {
    width: calc(100vw - 48px);
    padding: 28px 0;
  }

  .compact-cost-header {
    width: calc(100vw - 48px);
  }

  .compact-section,
  .compact-divider {
    display: none;
  }

  h1 {
    font-size: 1.85rem;
  }

  .persona-screen {
    min-height: 100vh;
    padding-top: 34px;
  }

  .persona-panel {
    padding: 22px;
  }

  .summary-band {
    grid-template-columns: 1fr;
  }

  .overhead-panel {
    padding: 16px;
  }

  .overhead-actions {
    right: 16px;
    top: 16px;
  }

  .overhead-panel-header,
  .overhead-metrics {
    text-align: left;
  }

  .overhead-metrics {
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .cost-composition {
    grid-template-columns: 1fr;
  }

  .composition-legend {
    flex-wrap: wrap;
  }

  .table-toolbar {
    align-items: start;
    flex-direction: column;
  }

  .team-context {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .team-context.has-action {
    grid-template-columns: auto repeat(2, minmax(0, 1fr));
  }

  .team-context.has-action > .team-context-action {
    align-self: start;
    border-right: 1px solid #e1e2dc;
    grid-row: 1 / span 3;
    padding-right: 14px;
  }

  .team-context.has-action > div:nth-child(even) {
    border-right: 1px solid #e1e2dc;
    padding-left: 14px;
    padding-right: 14px;
  }

  .team-context.has-action > div:nth-child(odd),
  .team-context.has-action > div:last-child {
    border-right: 0;
    padding-left: 14px;
    padding-right: 0;
  }

  .team-context.has-action > .team-context-action {
    padding-left: 0;
  }

  .team-context strong {
    white-space: normal;
  }

  /* 2-up layout: right column flush right, left column flush left. */
  .team-context > div:nth-child(even) {
    border-right: 0;
    padding-right: 0;
  }

  .team-context > div:nth-child(odd) {
    padding-left: 0;
  }

  .team-context-action {
    grid-column: 1;
    justify-content: flex-start;
    margin-left: 0;
  }

  .group-control {
    justify-content: flex-start;
  }

  .table-search {
    justify-content: flex-start;
    width: 100%;
  }

  .table-search-input {
    max-width: none;
    width: 100%;
  }

  .chart-legend {
    justify-content: flex-start;
  }

  .row-meta,
  .row-body {
    align-items: start;
    flex-direction: column;
  }

  .cost-header-main {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .cost-header-main .table-search {
    flex: 1 1 240px;
  }

  .cost-header-tools {
    flex: 0 1 auto;
    justify-content: flex-start;
    width: 100%;
  }

  .row-numbers,
  .row-context {
    min-width: 0;
    text-align: left;
  }

  .row-context {
    align-items: start;
    flex: none;
  }

  .spine-panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .spine-summary {
    justify-content: flex-start;
    max-width: none;
  }

  .spine-panel-tools {
    align-items: flex-start;
  }

  .assumptions-screen {
    padding: 28px 0 40px;
    width: calc(100vw - 48px);
  }

  .assumptions-header,
  .assumption-callout {
    align-items: stretch;
    flex-direction: column;
  }

  .assumptions-back {
    justify-content: center;
    width: max-content;
  }
}

@media (max-width: 620px) {
  .screen {
    width: calc(100vw - 28px);
  }

  .compact-cost-header {
    width: calc(100vw - 28px);
  }

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

  .contributors-row-header {
    display: none;
  }

  .spine-row-header {
    display: none;
  }

  .contributors-row {
    gap: 4px 12px;
    grid-template-columns: minmax(0, 1fr);
    padding: 14px 0;
  }

  .spine-row {
    align-items: start;
    gap: 5px;
    grid-template-columns: minmax(0, 1fr);
    padding: 14px;
  }

  .spine-row > span::before {
    color: #6b7069;
    font-weight: 720;
  }

  .spine-row > span:nth-child(1)::before {
    content: "Date: ";
  }

  .spine-row > span:nth-child(2)::before {
    content: "User: ";
  }

  .spine-row > span:nth-child(3)::before {
    content: "Tool / context: ";
  }

  .spine-row > span:nth-child(4)::before {
    content: "Usage: ";
  }

  .spine-row > span:nth-child(5)::before {
    content: "Vendor cost: ";
  }

  .spine-row > span:nth-child(6)::before {
    content: "State: ";
  }

  .spine-engagement-row > span:nth-child(3)::before {
    content: "Tool / feature: ";
  }

  .spine-engagement-row > span:nth-child(4)::before {
    content: "Activity: ";
  }

  .spine-engagement-row > span:nth-child(5)::before {
    content: "LOC: ";
  }

  .spine-engagement-row > span:nth-child(6)::before {
    content: "Cost: ";
  }

  .contributors-table.is-no-context .contributors-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contributors-row strong {
    grid-column: 1 / -1;
    order: -1;
  }

  /* Stacked mobile rows use inline "Label: value" cells — back to left. */
  .contributors-row > span {
    text-align: left;
  }

  .contributors-row .row-cost {
    justify-content: flex-start;
  }

  .team-context {
    gap: 12px;
    grid-template-columns: 1fr;
  }

  .team-context.has-action {
    grid-template-columns: 1fr;
  }

  .team-context.has-action > .team-context-action {
    border-right: 0;
    grid-row: auto;
    min-width: 0;
    padding: 0;
  }

  .team-context.has-action > div:nth-child(even),
  .team-context.has-action > div:nth-child(odd),
  .team-context.has-action > div:last-child {
    border-right: 0;
    padding: 0;
  }

  .team-context > div {
    border-right: 0;
    padding: 0;
  }

  .team-context-action {
    grid-column: auto;
    justify-content: flex-start;
  }

  .alert-row {
    grid-template-columns: 1fr;
  }

  .alert-row-actions {
    justify-self: start;
  }

  .alert-row-main small {
    white-space: normal;
  }

  .alert-results-head {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .alert-results-close {
    width: 28px;
  }

  .alert-results-title-row {
    align-items: flex-start;
    width: 100%;
  }

  .alert-results-title-row h2 {
    flex: 1 1 auto;
  }

  .alert-results-edit {
    opacity: 1;
  }

  .alert-result-row.is-header {
    display: none;
  }

  .alert-result-row {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .alert-result-row > span::before {
    color: #6b7069;
    font-weight: 720;
  }

  .alert-result-row > span:nth-child(2)::before {
    content: "Current: ";
  }

  .alert-result-row > span:nth-child(3)::before {
    content: "Previous: ";
  }

  .alert-result-row > span:nth-child(4)::before {
    content: "Trigger: ";
  }

  .alert-condition-grid {
    grid-template-columns: 1fr;
  }

  .alert-advanced-grid {
    grid-template-columns: 1fr;
  }

  .alert-segmented,
  .alert-periods {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .alert-periods {
    grid-template-columns: 1fr;
  }

  .alert-rule-row,
  .alert-builder-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .alert-rule-actions {
    flex-wrap: wrap;
  }

  .contributors-row > span:nth-child(1)::before {
    content: "Share: ";
  }

  .contributors-row > span:nth-child(3)::before {
    content: "Context: ";
  }

  .contributors-row > span:nth-child(4)::before {
    content: "Last 30: ";
  }

  .contributors-row > span:nth-child(5)::before {
    content: "Change: ";
  }

  .contributors-row.daily-row {
    grid-template-columns: 1fr auto auto;
  }

  .contributors-row.daily-row > span::before {
    content: "";
  }

  .contributors-table.is-no-context .contributors-row > span:nth-child(3)::before {
    content: "Per day: ";
  }

  .contributors-table.is-no-context .contributors-row > span:nth-child(4)::before {
    content: "Cost: ";
  }

  .contributors-table.is-no-context .contributors-row > span:nth-child(5)::before {
    content: "Change: ";
  }

  .contributors-table.is-cross-tab .contributors-row {
    grid-template-columns: 1fr auto;
  }

  .contributors-table.is-cross-tab .contributors-row > span::before {
    content: attr(data-label) ": ";
  }

  .contributors-table.is-allocation-group .contributors-row > span:nth-child(5)::before {
    content: "Allocated: ";
  }

  .assumptions-screen {
    width: calc(100vw - 28px);
  }

  .assumptions-header h1 {
    font-size: 1.72rem;
  }

  .assumption-provider > summary,
  .assumption-model-group > summary {
    align-items: flex-start;
  }

  .assumption-provider > summary {
    padding: 14px;
  }

  .assumption-unit-row,
  .assumption-model-row {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .assumption-row-head {
    display: none;
  }

  .assumption-unit-row:not(.assumption-row-head) > span:nth-child(2)::before {
    color: #6f736c;
    content: "Rate: ";
    font-weight: 780;
  }

  .assumption-unit-row:not(.assumption-row-head) > span:nth-child(3)::before {
    color: #6f736c;
    content: "Status: ";
    font-weight: 780;
  }

  .assumption-model-row:not(.assumption-row-head) > span:nth-child(2)::before {
    color: #6f736c;
    content: "Write: ";
    font-weight: 780;
  }

  .assumption-model-row:not(.assumption-row-head) > span:nth-child(3)::before {
    color: #6f736c;
    content: "Cache write: ";
    font-weight: 780;
  }

  .assumption-model-row:not(.assumption-row-head) > span:nth-child(4)::before {
    color: #6f736c;
    content: "Cache read: ";
    font-weight: 780;
  }

  .assumption-model-row:not(.assumption-row-head) > span:nth-child(5)::before {
    color: #6f736c;
    content: "Read: ";
    font-weight: 780;
  }
}
