:root {
  color-scheme: light;
  --bg: #f6f7f8;
  --panel: #ffffff;
  --ink: #18212f;
  --muted: #647084;
  --line: #dfe4ea;
  --accent: #0b6b6f;
  --accent-strong: #074b4f;
  --orange: #e2570a;
  --orange-dark: #b63f04;
  --amber: #a35f00;
  --red: #b42318;
  --green: #16704a;
  --blue: #285a9f;
  --purple: #6d4aff;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --shadow-strong: 0 22px 60px rgba(15, 23, 42, 0.16);
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-size: 13px;
  overflow-x: hidden;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.loading,
.error {
  display: grid;
  min-height: 100vh;
  place-items: center;
  padding: 24px;
}

.loading-shell {
  display: grid;
  min-height: 100dvh;
  place-items: center;
  padding: 24px;
  background: #f2f5f6;
}

.intelligence-loader {
  display: grid;
  width: 100%;
  min-height: clamp(300px, 52dvh, 520px);
  place-items: center;
  align-content: center;
  gap: 18px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  text-align: center;
}

.loading-shell .intelligence-loader {
  width: min(640px, 100%);
  border: 0;
  background: transparent;
}

.intelligence-signal {
  position: relative;
  width: 184px;
  height: 118px;
  overflow: hidden;
  border: 1px solid #cfd8df;
  border-radius: 6px;
  background: #f7f9fa;
}

.intelligence-signal::after {
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: -2px;
  width: 2px;
  background: var(--orange);
  content: "";
  animation: intelligence-scan 2.4s ease-in-out infinite;
}

.signal-grid {
  position: absolute;
  inset: 12px 12px 43px;
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 5px;
}

.signal-grid i {
  border-radius: 2px;
  background: #dce4e8;
  animation: intelligence-cell 2.4s ease-in-out infinite;
  animation-delay: calc(var(--cell, 0) * 55ms);
}

.signal-grid i:nth-child(3n + 1) {
  animation-delay: 140ms;
}

.signal-grid i:nth-child(3n + 2) {
  animation-delay: 420ms;
}

.signal-grid i:nth-child(3n) {
  animation-delay: 760ms;
}

.signal-bars {
  position: absolute;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  height: 23px;
  align-items: end;
  gap: 5px;
}

.signal-bars i {
  flex: 1;
  height: 100%;
  border-radius: 2px 2px 0 0;
  background: var(--accent);
  transform-origin: bottom;
  animation: intelligence-bar 1.7s ease-in-out infinite;
  animation-delay: calc(var(--bar, 0) * 90ms);
}

.intelligence-copy {
  display: grid;
  min-height: 68px;
  place-items: center;
  align-content: start;
  gap: 6px;
}

.intelligence-copy .eyebrow {
  color: var(--orange-dark);
  font-size: 9px;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.intelligence-copy > strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.intelligence-steps {
  position: relative;
  width: min(420px, 78vw);
  height: 20px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
}

.intelligence-steps span {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(7px);
  animation: intelligence-step 4.8s ease infinite;
  animation-delay: calc(var(--step, 0) * 1.6s);
}

.intelligence-steps span:only-child {
  position: static;
  display: block;
  opacity: 1;
  transform: none;
  animation: intelligence-breathe 1.8s ease-in-out infinite;
}

.intelligence-progress {
  width: min(360px, 80%);
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #e4e9ec;
}

.intelligence-progress i {
  display: block;
  width: 32%;
  height: 100%;
  border-radius: inherit;
  background: var(--orange);
  animation: intelligence-progress 1.55s ease-in-out infinite;
}

@keyframes intelligence-scan {
  0% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(182px);
  }
  100% {
    transform: translateX(0);
  }
}

@keyframes intelligence-cell {
  0%,
  100% {
    background: #dce4e8;
    transform: scale(0.82);
  }
  45% {
    background: #64a5a4;
    transform: scale(1);
  }
  65% {
    background: #ed7d3a;
    transform: scale(0.92);
  }
}

@keyframes intelligence-bar {
  0%,
  100% {
    opacity: 0.45;
    transform: scaleY(0.25);
  }
  45% {
    opacity: 1;
    transform: scaleY(1);
  }
}

@keyframes intelligence-step {
  0%,
  6% {
    opacity: 0;
    transform: translateY(7px);
  }
  11%,
  27% {
    opacity: 1;
    transform: translateY(0);
  }
  33%,
  100% {
    opacity: 0;
    transform: translateY(-7px);
  }
}

@keyframes intelligence-progress {
  0% {
    transform: translateX(-110%);
  }
  100% {
    transform: translateX(315%);
  }
}

@keyframes intelligence-breathe {
  0%,
  100% {
    opacity: 0.62;
  }
  50% {
    opacity: 1;
  }
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: 100%;
  padding: 18px clamp(18px, 2vw, 34px);
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 16px;
}

.brand img {
  width: 138px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.brand h1 {
  margin: 0;
  font-size: 19px;
  font-weight: 750;
  letter-spacing: 0;
}

.brand span,
.section-head span,
.queue-row span,
.activity-list span,
td span,
.app-row span,
.coverage em {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.signed-in-user {
  max-width: 220px;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.icon-button,
.primary-button,
.ghost-button,
.tabs button {
  min-height: 32px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
}

.icon-button {
  width: 36px;
  border-radius: 6px;
  font-weight: 750;
}

.primary-button,
.ghost-button {
  border-radius: 6px;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 700;
}

.primary-button {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.source-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: -4px 0 16px;
}

.source-strip span,
.query-chips span,
.todo-list span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  padding: 0 9px;
  font-size: 12px;
  font-weight: 750;
}

.source-strip .warning {
  border-color: rgba(180, 35, 24, 0.18);
  background: #feeceb;
  color: var(--red);
}

.page-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(11, 107, 111, 0.08), rgba(226, 87, 10, 0.08)),
    #fff;
  padding: 12px 14px;
  box-shadow: none;
}

.page-intro h2 {
  margin: 3px 0 4px;
  font-size: 19px;
  line-height: 1.15;
  letter-spacing: 0;
}

.page-intro p {
  max-width: 820px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.intro-right {
  display: grid;
  align-content: space-between;
  justify-items: end;
  gap: 16px;
}

.intro-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.intro-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: 460px;
}

.kicker {
  display: grid;
  gap: 3px;
  min-width: 92px;
  border: 1px solid rgba(203, 213, 225, 0.8);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  padding: 7px 9px;
}

.kicker span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.kicker strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.insight-grid,
.analytics-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 18px;
}

.analytics-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
}

.insight-card {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.insight-card.accent {
  border-color: rgba(11, 107, 111, 0.18);
  background:
    linear-gradient(135deg, rgba(11, 107, 111, 0.12), rgba(109, 74, 255, 0.08)),
    #fff;
}

.insight-card h3 {
  margin: 0;
  font-size: 24px;
  line-height: 1.05;
}

.insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.compact-panel {
  padding: 16px;
}

.table-chip,
.count-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  border-radius: 999px;
  background: #eef7f7;
  color: var(--accent-strong);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 850;
  white-space: nowrap;
}

.count-badge {
  min-width: 34px;
}

.count-badge.blue {
  background: #eaf1fb;
  color: var(--blue);
}

.bar-list {
  display: grid;
  gap: 10px;
}

.bar-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  overflow: hidden;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.bar-list article div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.bar-list article span {
  display: grid;
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 999px;
  background: #f1f5f9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.bar-list strong {
  position: relative;
  z-index: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar-list em {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
  font-weight: 850;
}

.bar-list i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 4px;
  border-radius: 0 999px 999px 0;
  background: var(--orange);
}

.bar-list.teal i {
  background: var(--accent);
}

.market-mix-head {
  display: grid;
  gap: 7px;
}

.market-mix-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f3f6f8;
  padding: 3px;
}

.market-mix-switch button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 0;
  height: 27px;
  border: 0;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.market-mix-switch button:hover {
  color: var(--ink);
}

.market-mix-switch button.active {
  background: #fff;
  color: var(--accent-strong);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12);
}

.market-facet-list {
  display: grid;
  gap: 5px;
  margin-top: 7px;
}

.market-facet {
  position: relative;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) 20px;
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 44px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  padding: 6px 7px;
  text-align: left;
  transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

.market-facet:hover {
  border-color: rgba(11, 107, 111, 0.6);
  box-shadow: 0 3px 10px rgba(15, 23, 42, 0.09);
  transform: translateY(-1px);
}

.market-facet:focus-visible {
  outline: 3px solid rgba(11, 107, 111, 0.2);
  outline-offset: 1px;
}

.market-facet.selected {
  border-color: var(--accent);
  background: #f0fafa;
  box-shadow: inset 3px 0 0 var(--orange);
}

.market-facet-icon {
  position: relative;
  z-index: 1;
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 999px;
  background: #edf4f5;
  color: var(--accent-strong);
}

.market-facet.selected .market-facet-icon {
  background: var(--accent);
  color: #fff;
}

.market-facet-copy {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1px;
  min-width: 0;
}

.market-facet-copy strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.market-facet-copy em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
}

.market-facet-arrow {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.market-facet.selected .market-facet-arrow {
  color: var(--accent-strong);
}

.market-facet > i {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  border-radius: 0 999px 999px 0;
  background: var(--accent);
  opacity: 0.85;
}

.trend-bars {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: end;
  gap: 12px;
  min-height: 240px;
  padding: 12px 4px 0;
}

.trend-bars div {
  display: grid;
  grid-template-rows: 1fr auto auto;
  align-items: end;
  gap: 7px;
  min-width: 0;
  height: 220px;
  text-align: center;
}

.trend-bars span {
  display: block;
  width: 100%;
  max-width: 74px;
  margin: 0 auto;
  border-radius: 7px 7px 2px 2px;
  background: linear-gradient(180deg, var(--orange), var(--orange-dark));
  box-shadow: 0 10px 24px rgba(226, 87, 10, 0.18);
}

.trend-bars strong {
  color: var(--ink);
  font-size: 12px;
}

.trend-bars em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.workflow-grid {
  display: grid;
  gap: 10px;
}

.workflow-grid article {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 5px 12px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 13px;
}

.workflow-grid article span {
  grid-row: 1 / 3;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 8px;
  background: #eef7f7;
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 900;
}

.workflow-grid article p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.security-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid rgba(22, 112, 74, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(22, 112, 74, 0.1), rgba(40, 90, 159, 0.08)),
    #fff;
  padding: 20px;
  box-shadow: var(--shadow);
}

.security-banner h2 {
  margin: 5px 0 6px;
  font-size: 20px;
}

.security-banner p {
  max-width: 920px;
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.table-panel,
.map-workspace {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.table-toolbar,
.map-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.table-toolbar h2,
.map-header h2 {
  margin: 0;
  font-size: 14px;
  line-height: 1.2;
}

.table-toolbar span,
.map-header span,
.table-meta span,
.page-size span,
.page-controls span,
.detail-card dd,
.eyebrow {
  color: var(--muted);
  font-size: 11px;
}

.toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.filter-bar,
.map-filter-bar {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfd;
}

.filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.control {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.control input,
.control select,
.page-size select {
  width: 100%;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 8px;
  font-size: 11px;
  outline: none;
}

.control input:focus,
.control select:focus,
.page-size select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 107, 111, 0.14);
}

.align-end {
  align-self: end;
}

.table-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 30px;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}

.data-table {
  min-width: 760px;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #f8fafc;
}

.data-table th button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 0;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.data-table th span {
  color: var(--accent);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
}

.data-table tbody tr:hover {
  background: #f8fbfb;
}

.empty-cell {
  height: 86px;
  color: var(--muted);
  text-align: center;
}

.empty-cell strong,
.empty-cell span {
  display: block;
}

.empty-cell strong {
  margin-bottom: 4px;
  color: var(--ink);
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 12px;
  border-top: 1px solid var(--line);
  background: #fbfcfd;
}

.page-size,
.page-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-size select {
  width: 76px;
}

.page-controls button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 10px;
  font-size: 11px;
  font-weight: 750;
}

.page-controls button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px clamp(18px, 2vw, 34px) 40px;
}

.tabs {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  margin-bottom: 18px;
  overflow-x: auto;
}

.tabs button {
  flex: 0 0 auto;
  border-radius: 6px;
  padding: 0 13px;
  color: var(--muted);
}

.tabs button.active {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}

.tab-body {
  display: grid;
  gap: 10px;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  gap: 4px;
  min-height: 72px;
  padding: 10px 12px;
}

.metric span,
.coverage span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.metric strong {
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.metric em {
  width: max-content;
  border-radius: 999px;
  padding: 2px 6px;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
}

.metric em.up,
.metric em.good {
  color: var(--green);
  background: #e7f5ee;
}

.metric em.down {
  color: var(--amber);
  background: #fff3df;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  gap: 18px;
}

.panel {
  min-width: 0;
  padding: 18px;
}

.panel.wide {
  overflow: hidden;
}

.section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.section-head h2 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
  letter-spacing: 0;
}

.search-head {
  align-items: center;
}

.search {
  display: grid;
  gap: 4px;
  width: min(320px, 100%);
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.search input {
  width: 100%;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 11px;
  outline: none;
}

.search input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(11, 107, 111, 0.14);
}

.queue-list,
.app-list {
  display: grid;
  gap: 10px;
}

.queue-row,
.app-row {
  display: grid;
  align-items: center;
  gap: 14px;
  min-height: 66px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.queue-row {
  grid-template-columns: minmax(150px, 1fr) 56px 76px minmax(94px, auto);
}

.app-row {
  grid-template-columns: minmax(0, 1fr) auto;
}

.queue-row div,
.app-row div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.queue-count {
  display: grid;
  width: 46px;
  height: 38px;
  place-items: center;
  border-radius: 6px;
  background: #eef7f7;
  color: var(--accent-strong);
  font-weight: 800;
}

.query-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 14px;
}

.empty-state {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.empty-state h2,
.empty-state p,
.panel h3 {
  margin: 0;
}

.empty-state p {
  margin-top: 6px;
  color: var(--muted);
}

.pill.empty-page {
  color: var(--amber);
  background: #fff3df;
}

.map-layout {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.zillow-map {
  overflow: hidden;
}

.zillow-map .map-header {
  align-items: center;
  padding: 10px 14px;
}

.map-summary-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.map-summary-actions .kicker {
  min-width: 82px;
  padding: 6px 8px;
}

.map-summary-actions .ghost-button {
  min-height: 38px;
}

.zillow-map .map-filter-bar {
  gap: 8px;
  padding: 8px 12px;
}

.zillow-map .control {
  gap: 3px;
  font-size: 10px;
}

.zillow-map .control input,
.zillow-map .control select {
  height: 32px;
  font-size: 12px;
}

.map-detail {
  position: absolute;
  z-index: 4;
  min-width: 0;
  border: 1px solid rgba(203, 213, 225, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.14);
}

.map-detail {
  right: 10px;
  top: 56px;
  bottom: 10px;
  width: 240px;
  overflow: auto;
  padding: 8px;
}

/* uTour competitive operations workspace */
.operations-source {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: -4px 0 12px;
  color: var(--muted);
  font-size: 10px;
}

.operations-opportunity-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.operations-opportunity-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 12px;
}

.operations-opportunity-card > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 7px;
}

.operations-opportunity-card > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.operations-opportunity-card em,
.operations-opportunity-card small {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.operations-opportunity-card strong {
  overflow: hidden;
  color: var(--ink);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-opportunity-card.teal { background: linear-gradient(135deg, #effafa, #fff); }
.operations-opportunity-card.teal > span { color: var(--accent); background: #dff4f1; }
.operations-opportunity-card.orange { background: linear-gradient(135deg, #fff5ee, #fff); }
.operations-opportunity-card.orange > span { color: var(--orange); background: #ffeadc; }
.operations-opportunity-card.blue { background: linear-gradient(135deg, #eff5ff, #fff); }
.operations-opportunity-card.blue > span { color: var(--blue); background: #e5efff; }
.operations-opportunity-card.purple { background: linear-gradient(135deg, #f5f1ff, #fff); }
.operations-opportunity-card.purple > span { color: var(--purple); background: #eee8ff; }

.source-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(234, 92, 27, 0.12);
}

.positive-value {
  color: var(--accent-strong);
}

.pill.enterprise {
  gap: 5px;
  background: #eee8ff;
  color: #4f32bd;
}

.pill.lock-brand {
  min-height: 18px;
  gap: 4px;
  padding: 0 6px;
  font-size: 8px;
  vertical-align: middle;
}

.pill.lock-brand.schlage {
  min-width: 58px;
  border: 1px solid #9bcce2;
  background: #e8f5fb;
  color: #00689a;
}

.pill.lock-brand.schlage img {
  display: block;
  width: auto;
  height: 15px;
  object-fit: contain;
}

.pill.lock-brand.kwikset {
  background: #fff0e5;
  color: #c14f08;
}

.enterprise-inline {
  display: inline-flex;
  margin-left: 5px;
  border-radius: 999px;
  background: #eee8ff;
  padding: 2px 6px;
  color: #4f32bd;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  vertical-align: middle;
}

.operations-finance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.operations-chart-panel,
.operations-finance-wide,
.operations-visit-layout > .panel,
.operations-proposal-layout > .panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.operations-chart-panel {
  min-height: 280px;
}

.operations-finance-wide {
  margin-top: 12px;
}

.panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h3 {
  margin: 3px 0 2px;
  font-size: 16px;
}

.panel-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
}

.operations-chart-panel .bar-list {
  display: grid;
  gap: 9px;
}

.operations-chart-panel .bar-list article {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  overflow: hidden;
  min-height: 31px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  background: #fff;
}

.operations-chart-panel .bar-list article div,
.operations-chart-panel .bar-list article em {
  position: relative;
  z-index: 1;
}

.operations-chart-panel .bar-list article div {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.operations-chart-panel .bar-list article div span {
  color: var(--muted);
  font-size: 10px;
}

.operations-chart-panel .bar-list article strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-chart-panel .bar-list article em {
  color: var(--ink);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.operations-chart-panel .bar-list article i {
  position: absolute;
  inset: auto auto 0 0;
  height: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--accent);
}

.operations-chart-panel .bar-list.orange article i {
  background: var(--orange);
}

.operations-chart-panel .bar-list.purple article i {
  background: var(--purple);
}

.operations-chart-footnote,
.operations-chart-callout {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 10px;
}

.operations-chart-footnote strong,
.operations-chart-callout {
  color: var(--accent-strong);
  font-weight: 850;
}

.operations-chart-callout {
  margin: 0;
  border-radius: 999px;
  background: #e5f5f2;
  padding: 6px 9px;
  white-space: nowrap;
}

.operations-mix-chart {
  display: grid;
  gap: 15px;
  padding: 15px 2px 6px;
}

.operations-mix-track {
  display: flex;
  height: 22px;
  overflow: hidden;
  border-radius: 6px;
  background: #edf1f4;
}

.operations-mix-track i {
  display: block;
  min-width: 2px;
}

.operations-mix-track i.spec { background: var(--blue); }
.operations-mix-track i.model { background: var(--purple); }

.operations-mix-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
}

.operations-mix-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
}

.operations-mix-legend b {
  width: 9px;
  height: 9px;
  border-radius: 3px;
}

.operations-mix-legend .spec b { background: var(--blue); }
.operations-mix-legend .model b { background: var(--purple); }
.operations-mix-legend strong { color: var(--ink); }
.operations-mix-legend em { font-style: normal; font-weight: 800; }

.operations-pareto-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, 0.6fr);
  align-items: start;
  gap: 18px;
}

.operations-pareto-note {
  border-left: 3px solid var(--purple);
  border-radius: 0 8px 8px 0;
  background: #f8f6ff;
  padding: 14px;
}

.operations-pareto-note strong {
  color: #4f32bd;
  font-size: 13px;
}

.operations-pareto-note p {
  margin: 6px 0 14px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.operations-stat-pair {
  display: grid;
  gap: 8px;
}

.operations-stat-pair span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid #e8e1ff;
  padding-top: 8px;
}

.operations-stat-pair em { color: var(--muted); font-size: 10px; font-style: normal; }
.operations-stat-pair strong { color: var(--ink); font-size: 12px; }

.operations-playbook {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff, #f8fbfb);
}

.operations-playbook-badge {
  border-radius: 999px;
  background: #e8f4f2;
  padding: 6px 9px;
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.operations-playbook-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.operations-playbook-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--panel);
  padding: 11px;
}

.operations-playbook-grid .play-number {
  color: var(--orange);
  font-size: 11px;
  font-weight: 900;
}

.operations-playbook-grid article div { min-width: 0; }
.operations-playbook-grid strong { font-size: 12px; }
.operations-playbook-grid p { margin: 4px 0 7px; color: var(--muted); font-size: 10px; line-height: 1.45; }
.operations-playbook-grid em { grid-column: 2; width: max-content; border-radius: 999px; padding: 3px 7px; font-size: 9px; font-style: normal; font-weight: 800; }
.play-teal { color: var(--accent-strong); background: #e5f5f2; }
.play-blue { color: var(--blue); background: #eaf1ff; }
.play-orange { color: var(--orange-dark); background: #fff0e6; }

.operations-enterprise-panel {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.operations-enterprise-list {
  display: grid;
  gap: 7px;
}

.operations-enterprise-list details {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.operations-enterprise-list summary {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  list-style: none;
  cursor: pointer;
}

.operations-enterprise-list summary::-webkit-details-marker { display: none; }

.operations-enterprise-list details[open] summary {
  border-bottom: 1px solid var(--line);
  background: #faf9ff;
}

.operations-enterprise-list details[open] summary > svg {
  transform: rotate(180deg);
}

.operations-enterprise-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #eee8ff;
  color: var(--purple);
}

.operations-enterprise-list summary > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.operations-enterprise-list summary strong { font-size: 12px; }
.operations-enterprise-list summary em { color: var(--muted); font-size: 9px; font-style: normal; }
.operations-enterprise-list summary b { color: var(--accent-strong); font-size: 11px; white-space: nowrap; }

.operations-enterprise-body {
  overflow-x: auto;
  padding: 10px 12px 12px;
}

.operations-enterprise-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  margin-bottom: 9px;
}

.operations-panel-actions,
.operations-document-actions,
.operations-export-buttons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.operations-panel-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.operations-export-buttons .excel,
.operations-document-actions .excel {
  color: #157347;
}

.operations-division-head,
.operations-division-row {
  display: grid;
  grid-template-columns: minmax(170px, 1.4fr) 80px 90px 90px 110px 76px;
  align-items: center;
  gap: 8px;
  min-width: 700px;
}

.operations-division-head {
  border-radius: 5px;
  background: #f4f6f8;
  padding: 7px 8px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.operations-division-row {
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  padding: 6px 8px;
  font-size: 10px;
}

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

.operations-division-row strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.operations-division-row em { color: var(--muted); font-size: 8px; font-style: normal; }
.operations-division-row b { font-size: 10px; }
.operations-division-row > strong { color: var(--accent-strong); }

.operations-visit-layout,
.operations-proposal-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.75fr) minmax(0, 1.5fr);
  gap: 12px;
}

.operations-account-list,
.operations-visit-detail,
.operations-selection-panel,
.operations-proposal-report {
  min-height: 540px;
}

.operations-inline-filters {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  padding: 0;
  border: 0;
}

.operations-list-meta {
  margin: 4px 0 9px;
  color: var(--muted);
  font-size: 10px;
}

.operations-list-scroll {
  display: grid;
  max-height: 465px;
  overflow: auto;
  border-top: 1px solid var(--line);
}

.operations-account-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 11px 4px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.operations-account-row:hover,
.operations-account-row.active {
  background: #f8fafb;
}

.operations-account-row.active {
  box-shadow: inset 3px 0 0 var(--orange);
}

.operations-account-row strong {
  font-size: 12px;
}

.operations-account-row span,
.operations-account-row em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.operations-account-row em {
  color: var(--accent-strong);
  font-weight: 800;
}

.operations-visit-detail h3 {
  margin: 4px 0 0;
  font-size: 20px;
}

.operations-detail-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin-top: 6px;
  color: var(--muted);
  font-size: 10px;
}

.muted-copy {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.operations-detail-metrics .metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 16px 0;
}

.operations-detail-metrics .metric {
  padding: 10px;
}

.operations-detail-metrics .metric strong {
  font-size: 18px;
}

.operations-visit-detail h4 {
  margin: 18px 0 8px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.operations-next-plays {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.operations-next-plays > div {
  border-left: 3px solid var(--orange);
  border-radius: 0 6px 6px 0;
  background: #fff7f1;
  padding: 9px 10px;
}

.operations-next-plays > div:nth-child(3) {
  border-left-color: var(--accent);
  background: #effafa;
}

.operations-next-plays strong { font-size: 11px; }
.operations-next-plays p { margin: 3px 0 0; color: var(--muted); font-size: 10px; line-height: 1.45; }

.operations-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.operations-chip-list span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f8fafb;
  padding: 4px 8px;
  color: var(--ink);
  font-size: 10px;
  font-weight: 750;
}

.operations-selection-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.operations-check-row {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  padding: 10px 3px;
  cursor: pointer;
}

.operations-check-row span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.operations-check-row strong,
.operations-check-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.operations-check-row strong {
  font-size: 11px;
}

.operations-check-row em,
.operations-check-row b {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.operations-check-row b {
  color: var(--accent-strong);
  white-space: nowrap;
}

.operations-proposal-hero {
  display: grid;
  gap: 3px;
  margin-bottom: 14px;
  border-radius: 8px;
  background: linear-gradient(135deg, #edf8f6, #f8fbfa);
  padding: 16px;
}

.operations-proposal-hero span,
.operations-proposal-hero em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.operations-proposal-hero strong {
  color: var(--accent-strong);
  font-size: 28px;
}

.operations-proposal-table {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 14px;
}

.operations-proposal-table div {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px;
}

.operations-proposal-table span {
  color: var(--muted);
  font-size: 10px;
}

.operations-proposal-table strong {
  font-size: 15px;
}

.operations-proposal-copy {
  width: 100%;
  min-height: 150px;
  resize: vertical;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
  padding: 10px;
  color: var(--ink);
  font: 11px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.operations-email-panel {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.operations-pdf-center {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
}

.operations-pdf-private {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 999px;
  background: #e7f5ee;
  padding: 5px 8px;
  color: var(--green);
  font-size: 9px;
  font-weight: 800;
  white-space: nowrap;
}

.operations-pdf-groups {
  display: grid;
  gap: 9px;
}

.operations-pdf-group {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fff;
}

.operations-pdf-group.enterprise {
  border-color: #dcd2ff;
}

.operations-pdf-group > header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  background: #f8fafb;
  padding: 9px 10px;
}

.operations-pdf-group.enterprise > header {
  background: #f7f4ff;
}

.operations-pdf-group > header > span {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 7px;
  background: #e8f4f2;
  color: var(--accent);
}

.operations-pdf-group.enterprise > header > span {
  background: #e9e2ff;
  color: var(--purple);
}

.operations-pdf-group > header > div {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.operations-pdf-group > header > .operations-document-actions {
  display: flex;
  gap: 6px;
}

.operations-pdf-group > header strong { font-size: 11px; }
.operations-pdf-group > header em { color: var(--muted); font-size: 9px; font-style: normal; }

.operations-pdf-division-list {
  display: grid;
  padding: 0 10px;
}

.operations-pdf-division-list > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
}

.operations-pdf-division-list > div:last-child { border-bottom: 0; }
.operations-pdf-division-list span { display: grid; min-width: 0; gap: 2px; }
.operations-pdf-division-list strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.operations-pdf-division-list em { color: var(--muted); font-size: 8px; font-style: normal; }
.operations-pdf-division-list b { color: var(--accent-strong); font-size: 9px; white-space: nowrap; }

.operations-email-panel .panel-heading {
  margin-bottom: 10px;
}

.operations-email-panel .panel-heading h3 {
  font-size: 14px;
}

.operations-email-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.operations-email-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 6px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.operations-email-tab:hover,
.operations-email-tab.active {
  border-color: var(--accent);
  background: #e9f7f5;
  color: var(--accent-strong);
}

.operations-email-copy {
  width: 100%;
  min-height: 245px;
  resize: vertical;
  border: 1px solid #cce4e1;
  border-radius: 7px;
  background: #f5fbfa;
  padding: 11px;
  color: var(--ink);
  font: 11px/1.55 ui-monospace, SFMono-Regular, Menlo, monospace;
}

.operations-empty-report {
  display: grid;
  min-height: 360px;
  place-items: center;
  align-content: center;
  gap: 6px;
  color: var(--muted);
  text-align: center;
}

.operations-empty-report strong {
  color: var(--ink);
  font-size: 14px;
}

@media (max-width: 920px) {
  .operations-opportunity-strip,
  .operations-playbook-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-finance-grid,
  .operations-visit-layout,
  .operations-proposal-layout {
    grid-template-columns: 1fr;
  }

  .operations-account-list,
  .operations-visit-detail,
  .operations-selection-panel,
  .operations-proposal-report {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .operations-opportunity-strip,
  .operations-playbook-grid,
  .operations-pareto-layout {
    grid-template-columns: 1fr;
  }

  .operations-opportunity-card strong {
    font-size: 12px;
  }

  .operations-playbook-badge {
    display: none;
  }

  .operations-enterprise-list summary {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .operations-enterprise-list summary b {
    display: none;
  }

  .operations-enterprise-actions {
    justify-content: flex-start;
  }

  .operations-panel-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .operations-pdf-group > header {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .operations-pdf-group > header .operations-document-actions {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-self: stretch;
  }

  .operations-pdf-group > header .operations-document-actions button {
    justify-content: center;
  }

  .operations-pdf-division-list > div {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .operations-pdf-division-list > div > b {
    grid-column: 1;
  }

  .operations-pdf-division-list > div > .operations-export-buttons {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .operations-inline-filters,
  .operations-proposal-table {
    grid-template-columns: 1fr;
  }

  .operations-detail-metrics .metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .operations-selection-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

.empty-results {
  display: grid;
  gap: 4px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfcfd;
  padding: 14px;
}

.empty-results span {
  color: var(--muted);
  font-size: 13px;
}

.map-surface {
  position: relative;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #dfe9ef;
}

.map-scope-badge {
  position: absolute;
  left: 62px;
  top: 14px;
  z-index: 500;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.94);
  padding: 6px 9px;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16);
}

.map-scope-badge strong {
  color: var(--ink);
  font-size: 11px;
}

.map-scope-badge span {
  color: var(--muted);
  font-size: 10px;
}

.map-surface > .maplibre-map {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  background: #dfe9ef;
}

.property-point-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}

.maplibregl-ctrl-bottom-right {
  right: 260px;
  bottom: 12px;
  z-index: 6;
}

.maplibregl-ctrl-group {
  overflow: hidden;
  border: 1px solid rgba(203, 213, 225, 0.9) !important;
  border-radius: 4px !important;
  box-shadow: 0 2px 7px rgba(15, 23, 42, 0.16) !important;
}

.maplibregl-popup-content {
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 10px 12px;
}

.maplibregl-popup-tip {
  display: none;
}

.map-popup {
  display: grid;
  gap: 4px;
  min-width: 150px;
}

.map-popup strong {
  color: var(--ink);
  font-size: 14px;
}

.map-popup span {
  color: var(--muted);
  font-size: 12px;
}

.map-popup em {
  color: var(--orange-dark);
  font-size: 12px;
  font-style: normal;
  font-weight: 850;
}

.map-unavailable {
  display: grid;
  height: 100%;
  place-content: center;
  gap: 6px;
  padding: 18px;
  text-align: center;
}

.map-unavailable span {
  color: var(--muted);
  font-size: 13px;
}

.detail-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.detail-card + .detail-card {
  margin-top: 8px;
}

.detail-card.quiet {
  background: #fbfcfd;
}

.detail-card h3 {
  margin: 0;
  font-size: 14px;
}

.eyebrow {
  font-weight: 850;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.detail-card dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.detail-card dl div {
  display: grid;
  gap: 3px;
  padding-bottom: 5px;
  border-bottom: 1px solid var(--line);
}

.detail-card dt {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.detail-card dd {
  margin: 0;
  color: var(--ink);
  font-size: 11px;
}

.detail-actions {
  display: flex;
  gap: 8px;
}

.field-list {
  display: grid;
  gap: 10px;
}

.field-list.compact {
  margin-top: 10px;
}

.field-list label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.field-list input {
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fb;
  padding: 0 10px;
}

.panel h3 {
  margin-top: 18px;
  font-size: 14px;
}

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

.mini-metrics article,
.rank-list article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.mini-metrics span {
  color: var(--muted);
  font-size: 13px;
}

.rank-list {
  display: grid;
  gap: 8px;
  max-height: 420px;
  overflow: auto;
}

.rank-list span {
  color: var(--accent-strong);
  font-weight: 850;
}

.todo-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.todo-list.large span {
  min-height: 34px;
  padding: 0 12px;
  font-size: 13px;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  width: max-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 0 9px;
  color: var(--blue);
  background: #eaf1fb;
  font-size: 12px;
  font-weight: 750;
  white-space: nowrap;
}

.pill.at-risk,
.pill.needs-review,
.pill.needs-decision {
  color: var(--amber);
  background: #fff3df;
}

.pill.live,
.pill.drafted {
  color: var(--green);
  background: #e7f5ee;
}

.pill.waiting-on-export,
.pill.needs-export {
  color: var(--red);
  background: #feeceb;
}

.activity-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.activity-list li {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
  min-height: 58px;
}

.activity-list time {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
}

.activity-list div {
  display: grid;
  gap: 4px;
  padding-left: 12px;
  border-left: 3px solid var(--line);
}

.activity-list li.warning div {
  border-color: var(--amber);
}

.activity-list li.good div {
  border-color: var(--green);
}

.table-wrap {
  width: 100%;
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 820px;
  border-collapse: collapse;
}

th,
td {
  padding: 8px 10px;
  border-top: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
}

th {
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

td {
  font-size: 12px;
}

td strong {
  display: block;
  margin-bottom: 3px;
}

.coverage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 18px;
}

.coverage {
  display: grid;
  gap: 8px;
  min-height: 98px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.coverage strong {
  font-size: 22px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.admin-alert {
  border: 1px solid;
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  font-weight: 750;
}

.admin-alert.success {
  border-color: rgba(22, 112, 74, 0.3);
  background: #e7f5ee;
  color: var(--green);
}

.admin-alert.danger {
  border-color: rgba(180, 35, 24, 0.3);
  background: #feeceb;
  color: var(--red);
}

.admin-search-actions {
  align-items: end;
}

.admin-search {
  width: min(260px, 34vw);
}

.admin-users-table {
  min-width: 980px;
}

.user-identity {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 180px;
}

.user-identity > span:last-child {
  display: grid;
  min-width: 0;
}

.user-identity em {
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  text-overflow: ellipsis;
}

.user-avatar {
  display: grid;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: #e8f1f2;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 900;
}

.account-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: max-content;
  border-radius: 999px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 800;
}

.account-status.active {
  background: #e7f5ee;
  color: var(--green);
}

.account-status.pending {
  background: #fff3df;
  color: var(--amber);
}

.account-status.disabled {
  background: #eef1f4;
  color: var(--muted);
}

.user-type-badge,
.user-type-pill {
  display: inline-flex;
  align-items: center;
  width: max-content;
  border: 1px solid #cbd8dc;
  border-radius: 999px;
  background: #f3f7f8;
  color: #36555c;
  font-size: 12px;
  font-weight: 800;
}

.user-type-badge {
  min-height: 28px;
  padding: 0 10px;
}

.user-type-badge.admin,
.user-type-pill {
  border-color: #f0c8b6;
  background: #fff2eb;
  color: #9f3b0b;
}

.user-type-badge.cs {
  border-color: #b8d8d3;
  background: #ecf8f5;
  color: #116052;
}

.user-type-pill {
  gap: 6px;
  min-height: 28px;
  padding: 0 8px;
  font-size: 10px;
}

.user-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  min-width: 220px;
}

.user-actions button {
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 7px;
  font-size: 10px;
  font-weight: 750;
}

.user-actions button:hover:not(:disabled) {
  border-color: var(--accent);
  color: var(--accent-strong);
}

.user-actions button.danger:hover:not(:disabled) {
  border-color: #d92d20;
  color: #b42318;
}

.user-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.48;
}

.admin-pagination > span {
  color: var(--muted);
  font-size: 13px;
}

.auth-shell {
  display: grid;
  width: 100%;
  min-height: 100vh;
  place-items: center;
  padding: 28px;
  background: #f2f5f6;
}

.auth-session {
  width: min(440px, 100%);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.auth-session-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  padding: 16px 24px;
}

.auth-session-head img {
  width: 132px;
  height: 38px;
  object-fit: contain;
  object-position: left center;
}

.auth-session-head span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.auth-session-body {
  padding: 28px 24px 24px;
}

.auth-session-body h1 {
  margin: 7px 0 8px;
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: 0;
}

.auth-session-body > p {
  margin: 0 0 22px;
  color: var(--muted);
  line-height: 1.5;
}

.auth-session-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 18px;
}

.auth-session-actions button {
  min-height: 46px;
}

.access-request-form {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.auth-primary-action {
  width: 100%;
  min-height: 44px;
}

.access-request-form .primary-button:disabled {
  cursor: wait;
  opacity: 0.68;
}

.access-request-form {
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.access-request-form .primary-button {
  min-height: 42px;
}

.auth-domain-note {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-align: center;
}

.auth-access-levels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafb;
}

.auth-access-levels > div {
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: center;
  padding: 16px 20px;
}

.auth-access-levels > div + div {
  border-left: 1px solid var(--line);
}

.auth-access-levels strong {
  font-size: 13px;
}

.auth-access-levels span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.auth-security-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 16px;
  padding: 15px 20px;
  border-top: 3px solid var(--orange);
}

.auth-security-row span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

dialog {
  width: min(560px, calc(100% - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.3);
}

dialog::backdrop {
  background: rgba(15, 23, 42, 0.36);
}

dialog form {
  padding: 18px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-head h2 {
  margin: 0;
  font-size: 18px;
}

.dialog-fields {
  display: grid;
  gap: 14px;
  margin-top: 20px;
}

.dialog-fields input,
.dialog-fields select {
  height: 42px;
}

.dialog-field-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.dialog-user-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13px;
}

.dialog-user-type strong {
  color: var(--ink);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 22px;
}

dialog p {
  color: var(--muted);
  line-height: 1.55;
}

code {
  border-radius: 4px;
  background: #eef1f4;
  color: var(--ink);
  padding: 2px 5px;
}

@media (max-width: 920px) {
  .metrics,
  .content-grid,
  .coverage-grid,
  .analytics-grid,
  .insight-grid {
    grid-template-columns: 1fr 1fr;
  }

  .content-grid,
  .analytics-grid,
  .insight-grid,
  .page-intro,
  .cs-command-grid,
  .cs-playbook-intro {
    grid-template-columns: 1fr;
  }

  .cs-priority-grid,
  .cs-focus-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cs-source-rail {
    order: -1;
  }

  .intro-right,
  .intro-stats,
  .intro-actions {
    justify-items: start;
    justify-content: flex-start;
  }

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

  .filter-bar,
  .map-filter-bar {
    grid-template-columns: 1fr 1fr;
  }

  .map-layout {
    display: grid;
    height: auto;
    min-height: 0;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .map-detail {
    position: static;
    display: block;
    width: auto;
    max-height: none;
    overflow: visible;
    border: 0;
    border-top: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
  }

  .map-surface {
    order: 1;
    min-height: 440px;
  }

  .map-scope-badge {
    left: 14px;
    top: 14px;
  }

  .maplibregl-ctrl-bottom-right {
    right: 14px;
    bottom: 14px;
  }

  .map-detail {
    order: 3;
  }

  .app-content.map-page {
    height: auto;
    min-height: calc(100dvh - 54px);
    overflow: visible;
  }

  .map-page .tab-body,
  .map-page .map-workspace {
    height: auto;
  }

  .map-page .map-workspace {
    display: block;
  }
}

@media (max-width: 680px) {
  /* Mobile app shell */
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    padding: 14px;
    position: static;
  }

  .auth-shell {
    min-height: 100dvh;
    padding: 14px;
  }

  .auth-session-head {
    min-height: 56px;
    padding: 13px 16px;
  }

  .auth-session-head img {
    width: 112px;
    height: 34px;
  }

  .auth-session-body {
    padding: 22px 16px 20px;
  }

  .auth-session-body h1 {
    font-size: 26px;
  }

  .auth-session-actions,
  .auth-access-levels {
    grid-template-columns: 1fr;
  }

  .auth-session-actions .primary-button,
  .auth-session-actions .ghost-button {
    width: 100%;
  }

  .auth-access-levels > div {
    min-height: 76px;
    padding: 14px 16px;
  }

  .auth-access-levels > div + div {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .auth-security-row {
    align-items: center;
    flex-direction: column;
  }

  main {
    padding: 12px 12px 28px;
  }

  .brand {
    width: 100%;
    align-items: flex-start;
    gap: 12px;
  }

  .brand img {
    width: 104px;
    height: 32px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .brand span {
    display: block;
    max-width: 220px;
    font-size: 12px;
    line-height: 1.35;
  }

  .actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px;
  }

  .signed-in-user {
    flex: 1 0 100%;
    max-width: 100%;
  }

  .primary-button,
  .ghost-button {
    flex: 1 1 140px;
    min-height: 42px;
  }

  .tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    overflow: visible;
  }

  .tabs button {
    width: 100%;
    min-height: 42px;
    padding: 0 8px;
    text-align: center;
  }

  .source-strip {
    margin-bottom: 12px;
  }

  .source-strip span {
    max-width: 100%;
  }

  /* Mobile page summaries */
  .tab-body {
    gap: 12px;
  }

  .coverage-grid,
  .trend-bars {
    grid-template-columns: 1fr;
  }

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

  .page-intro {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 10px;
  }

  .page-intro h2 {
    font-size: 18px;
    line-height: 1.08;
  }

  .page-intro p {
    font-size: 11px;
  }

  .intro-right {
    width: 100%;
  }

  .intro-actions {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .intro-actions > * {
    flex: 1 1 130px;
  }

  .intro-actions .primary-button {
    width: 100%;
  }

  .intro-stats {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(82px, 1fr));
    gap: 8px;
  }

  .kicker {
    width: 100%;
    min-width: 0;
  }

  .metric {
    min-height: 68px;
    padding: 9px;
  }

  .metric strong {
    font-size: 18px;
  }

  .content-grid,
  .analytics-grid,
  .insight-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .insight-card,
  .panel,
  .table-panel,
  .map-workspace,
  .page-intro,
  .security-banner {
    border-radius: 8px;
  }

  .insight-card {
    min-height: 0;
    padding: 16px;
  }

  .insight-card h3 {
    font-size: 20px;
  }

  .queue-row {
    grid-template-columns: minmax(0, 1fr) 52px;
  }

  .queue-row .pill {
    grid-column: 1 / -1;
  }

  .search-head {
    align-items: stretch;
    flex-direction: column;
  }

  .empty-state {
    flex-direction: column;
  }

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

  .section-head {
    align-items: stretch;
    flex-direction: column;
    gap: 8px;
  }

  .table-toolbar,
  .map-header,
  .pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .toolbar-actions,
  .page-controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-content: stretch;
  }

  .toolbar-actions .table-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .admin-search {
    grid-column: 1 / -1;
    width: 100%;
  }

  .table-meta {
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 14px;
  }

  .filter-bar,
  .map-filter-bar {
    grid-template-columns: 1fr;
    padding: 12px 14px;
  }

  .control input,
  .control select,
  .page-size select {
    height: 42px;
  }

  /* Mobile table cards */
  .table-wrap {
    overflow: visible;
  }

  table,
  .data-table {
    min-width: 0;
  }

  .data-table thead {
    display: none;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table tbody {
    display: grid;
    gap: 10px;
    padding: 12px;
    background: #fbfcfd;
  }

  .data-table tr {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  }

  .data-table td {
    display: grid;
    grid-template-columns: minmax(104px, 34%) minmax(0, 1fr);
    gap: 10px;
    min-height: 42px;
    border-top: 1px solid var(--line);
    padding: 10px 12px;
    font-size: 14px;
    word-break: break-word;
  }

  .data-table td:first-child {
    border-top: 0;
  }

  .data-table td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .empty-cell {
    display: block !important;
    padding: 20px 14px !important;
  }

  .empty-cell::before {
    content: none !important;
  }

  .admin-users-table td:last-child {
    grid-template-columns: 1fr;
  }

  .admin-users-table td:last-child::before {
    margin-bottom: 2px;
  }

  .user-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-width: 0;
  }

  .user-actions button {
    min-height: 40px;
    width: 100%;
  }

  .dialog-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .page-size,
  .page-controls {
    width: 100%;
  }

  .page-controls {
    grid-template-columns: 1fr;
  }

  .page-controls span {
    order: -1;
    text-align: center;
  }

  .page-controls button {
    min-height: 40px;
  }

  /* Mobile map workspace */
  .map-layout {
    display: flex;
    flex-direction: column;
  }

  .map-detail {
    order: 3;
  }

  .map-surface {
    order: 1;
    min-height: 520px;
  }

  .map-scope-badge {
    left: 56px;
    right: 14px;
    width: auto;
  }

  .maplibregl-ctrl-bottom-right {
    right: 14px;
    bottom: 14px;
  }

  .map-detail {
    padding: 12px;
  }

  .security-banner {
    align-items: flex-start;
    flex-direction: column;
  }

  .trend-bars {
    min-height: auto;
  }

  .trend-bars div {
    height: 170px;
  }

  .workflow-grid article {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

@media (max-width: 420px) {
  main {
    padding: 10px 10px 24px;
  }

  .topbar {
    padding: 12px 10px;
  }

  .brand img {
    width: 94px;
  }

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

  .page-intro h2 {
    font-size: 17px;
  }

  .toolbar-actions,
  .page-controls {
    grid-template-columns: 1fr;
  }

  .user-actions,
  .dialog-actions {
    grid-template-columns: 1fr;
  }

  .data-table tbody {
    padding: 10px;
  }

  .data-table td {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .map-filter-bar,
  .filter-bar {
    padding: 10px;
  }

  .map-scope-badge {
    left: 54px;
    right: 10px;
  }

}

/* Authenticated application shell */
.app-shell {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  width: 100%;
  min-height: 100vh;
  background: var(--bg);
}

.app-sidebar {
  position: sticky;
  top: 0;
  z-index: 20;
  align-self: start;
  display: flex;
  min-width: 0;
  height: 100vh;
  flex-direction: column;
  border-right: 1px solid #d9dee4;
  background: #fff;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 54px;
  padding: 8px 12px;
  border-bottom: 1px solid #edf0f2;
}

.sidebar-brand img {
  width: 122px;
  height: 30px;
  object-fit: contain;
  object-position: left center;
}

.sidebar-close,
.mobile-menu {
  display: none;
}

.workspace-name {
  display: grid;
  gap: 3px;
  padding: 10px 12px 6px;
}

.workspace-name span,
.sidebar-label {
  color: #788391;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.workspace-name strong {
  font-size: 12px;
}

.sidebar-nav {
  display: flex;
  min-height: 0;
  flex: 1;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  padding: 3px 7px 10px;
}

.sidebar-nav-group {
  display: grid;
  gap: 2px;
}

.sidebar-child-list {
  display: grid;
  gap: 2px;
}

.sidebar-label {
  padding: 10px 8px 4px;
}

.sidebar-link {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  width: 100%;
  min-height: 34px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #465364;
  padding: 0 8px;
  font-size: 11px;
  font-weight: 700;
  text-align: left;
}

.sidebar-link svg {
  width: 15px;
  height: 15px;
}

.sidebar-link:hover {
  background: #f3f5f6;
  color: var(--ink);
}

.sidebar-link.active {
  background: #17212e;
  color: #fff;
}

.sidebar-link.active svg {
  color: #ff6a1a;
}

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

.sidebar-subnav {
  display: grid;
  gap: 1px;
  margin: 1px 0 4px 15px;
  border-left: 1px solid #dfe4e8;
  padding-left: 7px;
}

.sidebar-sublink {
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr);
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 29px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  color: #667384;
  padding: 0 7px;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
}

.sidebar-sublink svg {
  width: 13px;
  height: 13px;
}

.sidebar-sublink:hover {
  background: #f3f5f6;
  color: #243041;
}

.sidebar-sublink.active {
  background: #fff1e8;
  color: #9c3e0a;
  font-weight: 850;
}

.sidebar-sublink.active svg {
  color: #e65300;
}

.sidebar-user {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 30px;
  align-items: center;
  gap: 7px;
  min-height: 54px;
  border-top: 1px solid #e5e9ed;
  padding: 8px;
}

.sidebar-user-copy {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.sidebar-user-copy strong,
.sidebar-user-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-copy strong {
  font-size: 10px;
}

.sidebar-user-copy em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.user-avatar {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #ffe7da;
  color: #a63700;
  font-size: 12px;
  font-weight: 900;
}

.app-workspace {
  min-width: 0;
}

.app-topnav {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  min-height: 54px;
  border-bottom: 1px solid #dfe4e8;
  background: rgba(255, 255, 255, 0.96);
  padding: 7px 14px;
  backdrop-filter: blur(12px);
}

.app-topnav .icon-button,
.sidebar-user .icon-button {
  width: 30px;
  min-height: 30px;
}

.app-topnav .user-avatar,
.sidebar-user .user-avatar {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  font-size: 10px;
}

.topnav-leading,
.topnav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.page-identity {
  display: grid;
  gap: 2px;
}

.page-identity span {
  color: var(--muted);
  display: none;
  font-weight: 700;
}

.page-identity h1 {
  margin: 0;
  font-size: 15px;
  line-height: 1.2;
}

.account-menu {
  position: relative;
}

.account-menu summary {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 30px;
  list-style: none;
  cursor: pointer;
}

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

.account-popover {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  display: grid;
  width: 242px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow-strong);
}

.account-popover > div {
  display: grid;
  gap: 3px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.account-popover strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
}

.account-popover span {
  color: var(--muted);
  font-size: 11px;
}

.account-popover button {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 0;
  background: #fff;
  padding: 0 14px;
  color: var(--ink);
  font-size: 13px;
  text-align: left;
}

.account-popover button:hover {
  background: #f5f7f8;
}

.app-content {
  width: 100%;
  min-width: 0;
  max-width: none;
  padding: 10px 12px 24px;
}

.app-content.map-page {
  height: calc(100dvh - 54px);
  overflow: hidden;
  padding: 0;
}

.map-page .content-meta {
  display: none;
}

.map-page .tab-body,
.map-page .map-workspace {
  height: 100%;
  min-height: 0;
}

.map-page .tab-body {
  gap: 0;
}

.map-page .intelligence-loader {
  height: 100%;
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.map-page .map-layout {
  height: auto;
  min-height: 0;
}

.map-page .map-workspace {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.content-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 14px;
  scrollbar-width: none;
}

.content-meta::-webkit-scrollbar {
  display: none;
}

.content-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  padding: 0 9px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.content-meta .warning {
  border-color: #f0b9b4;
  background: #fff2f1;
  color: var(--red);
}

.data-refresh-strip {
  display: flex;
  min-height: 38px;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  border: 1px solid var(--line);
  border-left: 3px solid #17817c;
  background: #f8fbfb;
  padding: 5px 7px;
}

.data-refresh-status {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 6px;
  color: #287267;
}

.data-refresh-status > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

.data-refresh-status strong,
.data-refresh-status em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.data-refresh-status strong {
  font-size: 9px;
}

.data-refresh-status em {
  color: #697586;
  font-size: 8px;
  font-style: normal;
}

.data-refresh-status.pending {
  color: #697586;
}

.data-refresh-status.failed {
  color: #b42318;
}

.data-refresh-status.running svg {
  animation: data-refresh-spin 900ms linear infinite;
}

.data-refresh-strip .ghost-button {
  min-height: 27px;
  margin-left: auto;
  padding: 0 8px;
  font-size: 9px;
}

@keyframes data-refresh-spin {
  to {
    transform: rotate(360deg);
  }
}

.sidebar-scrim {
  display: none;
}

.danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border: 1px solid #e4aaa5;
  border-radius: 6px;
  background: #fff;
  color: var(--red);
  padding: 0 14px;
  font-weight: 750;
}

.settings-intro {
  align-items: center;
}

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

.cs-focus-grid {
  align-items: stretch;
}

.cs-source-strip {
  margin: 0;
}

.cs-command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 10px;
  align-items: start;
}

.cs-command-main {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.cs-metrics {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.cs-metric-card {
  min-height: 68px;
  box-shadow: none;
}

.cs-metric-card strong {
  font-size: 18px;
}

.cs-priority-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cs-priority-card,
.cs-source-rail,
.cs-playbook-intro {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cs-priority-head {
  display: flex;
  gap: 9px;
  align-items: center;
  min-height: 56px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.cs-priority-head > span,
.cs-source-title > span {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  border-radius: 6px;
  background: #edf7f7;
  color: var(--accent-strong);
}

.cs-priority-head h3,
.cs-priority-head p,
.cs-playbook-intro h3,
.cs-playbook-intro p {
  margin: 0;
}

.cs-priority-head h3,
.cs-playbook-intro h3 {
  font-size: 12px;
}

.cs-priority-head p,
.cs-playbook-intro p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.cs-priority-list {
  display: grid;
  padding: 3px 10px;
}

.cs-priority-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 8px;
  align-items: center;
  min-height: 43px;
  border-top: 1px solid #edf0f2;
}

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

.cs-priority-row strong {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-priority-row span {
  grid-column: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cs-priority-row em {
  grid-column: 2;
  grid-row: 1 / span 2;
  border-radius: 999px;
  background: #fff3df;
  color: var(--amber);
  padding: 3px 7px;
  font-size: 9px;
  font-style: normal;
  font-weight: 850;
  white-space: nowrap;
}

.cs-priority-empty {
  padding: 14px 2px;
  color: var(--muted);
  font-size: 11px;
}

.cs-source-rail {
  display: grid;
  gap: 0;
}

.cs-source-title {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  border-bottom: 1px solid var(--line);
  padding: 9px 11px;
  font-size: 12px;
}

.cs-source-item {
  display: grid;
  gap: 2px;
  min-height: 58px;
  border-top: 1px solid #edf0f2;
  padding: 9px 11px;
}

.cs-source-item:first-of-type {
  border-top: 0;
}

.cs-source-item span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
}

.cs-source-item strong {
  color: var(--green);
  font-size: 12px;
}

.cs-source-item.warning strong {
  color: var(--amber);
}

.cs-quality-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(110px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.cs-quality-strip span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  min-height: 34px;
  background: #fff;
  color: #667085;
  padding: 7px 9px;
  font-size: 9px;
  font-weight: 750;
}

.cs-quality-strip strong {
  color: #202939;
  font-size: 12px;
}

.cs-quality-strip .needs-review,
.cs-quality-strip .needs-review strong {
  background: #fff8ed;
  color: #9f520b;
}

.cs-source-item em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
  line-height: 1.35;
}

.cs-playbook-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.cs-period-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 5px 9px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.cs-period-line span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.cs-period-line span:last-child {
  margin-left: auto;
  color: var(--accent-strong);
}

.cs-metric-card {
  border-top: 2px solid #cbd5df;
}

.cs-metric-card.positive {
  border-top-color: var(--green);
}

.cs-metric-card.warning {
  border-top-color: var(--amber);
}

.cs-metric-card.critical {
  border-top-color: var(--red);
}

.cs-metric-card em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.cs-insight-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.cs-insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  border-bottom: 1px solid var(--line);
  padding: 8px 11px;
}

.cs-insight-head h3,
.cs-insight-head p {
  margin: 0;
}

.cs-insight-head h3 {
  font-size: 12px;
}

.cs-insight-head p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.cs-insight-head > strong {
  color: #172033;
  font-size: 18px;
}

.cs-health-distribution {
  display: grid;
  gap: 7px;
  padding: 11px;
}

.cs-distribution-row {
  display: grid;
  grid-template-columns: 70px minmax(60px, 1fr) 28px 35px;
  gap: 7px;
  align-items: center;
  font-size: 10px;
}

.cs-distribution-row i {
  height: 6px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf0f2;
}

.cs-distribution-row b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #8a98a8;
}

.cs-distribution-row.healthy b {
  background: var(--green);
}

.cs-distribution-row.watch b {
  background: var(--amber);
}

.cs-distribution-row.at-risk b {
  background: var(--red);
}

.cs-distribution-row strong,
.cs-distribution-row em {
  text-align: right;
}

.cs-distribution-row em {
  color: var(--muted);
  font-style: normal;
}

.cs-coverage-grid,
.cs-inline-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
}

.cs-coverage-grid span,
.cs-inline-metrics span {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 9px;
}

.cs-coverage-grid span:nth-child(even),
.cs-inline-metrics span:last-child {
  border-right: 0;
}

.cs-coverage-grid strong,
.cs-inline-metrics strong {
  color: #172033;
  font-size: 11px;
}

.cs-renewal-buckets {
  display: grid;
  padding: 3px 11px;
}

.cs-renewal-row {
  display: grid;
  grid-template-columns: minmax(70px, 1fr) auto auto auto;
  gap: 10px;
  align-items: center;
  min-height: 37px;
  border-top: 1px solid #edf0f2;
  font-size: 10px;
}

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

.cs-renewal-row em,
.cs-renewal-row small {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.cs-renewal-row small {
  min-width: 45px;
  color: var(--red);
  text-align: right;
}

.cs-activity-chart {
  display: flex;
  align-items: stretch;
  gap: 5px;
  height: 152px;
  overflow-x: auto;
  padding: 12px 10px 8px;
}

.cs-activity-column {
  display: grid;
  grid-template-rows: minmax(70px, 1fr) 14px 13px;
  flex: 1 0 26px;
  min-width: 26px;
  text-align: center;
}

.cs-activity-column > div {
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.cs-activity-column i {
  width: min(18px, 70%);
  border-radius: 3px 3px 0 0;
  background: var(--accent);
}

.cs-activity-column strong {
  font-size: 9px;
}

.cs-activity-column span {
  color: var(--muted);
  font-size: 8px;
}

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

.cs-support-grid span {
  display: grid;
  gap: 2px;
  min-height: 62px;
  align-content: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 8px 11px;
}

.cs-support-grid span:nth-child(3n) {
  border-right: 0;
}

.cs-support-grid span:nth-last-child(-n + 3) {
  border-bottom: 0;
}

.cs-support-grid strong {
  font-size: 16px;
}

.cs-support-grid em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.cs-health-score {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 86px;
}

.cs-health-score strong {
  display: inline-grid;
  width: 26px;
  height: 22px;
  place-items: center;
  border-radius: 5px;
  background: #edf0f2;
  color: #516071;
  font-size: 10px;
}

.cs-health-score.healthy strong {
  background: #e4f5ed;
  color: var(--green);
}

.cs-health-score.watch strong {
  background: #fff3df;
  color: var(--amber);
}

.cs-health-score.at-risk strong {
  background: #fce9e7;
  color: var(--red);
}

.cs-health-score span {
  font-size: 9px;
  font-weight: 800;
}

.cs-pace-score {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 92px;
}

.cs-pace-score strong {
  display: grid;
  width: 28px;
  height: 24px;
  place-items: center;
  border-radius: 5px;
  background: #f2f4f7;
  color: #344054;
  font-size: 11px;
}

.cs-pace-score span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
}

.cs-pace-score.top strong,
.cs-pace-score.strong strong {
  background: #e9f7ef;
  color: #087443;
}

.cs-pace-score.building strong {
  background: #fff6e8;
  color: #9f520b;
}

.cs-pace-score.low strong {
  background: #fff0ef;
  color: #b42318;
}

.cs-outreach-queues {
  display: grid;
  gap: 10px;
}

.settings-panel {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: var(--shadow);
}

.settings-panel-head {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  border-bottom: 1px solid var(--line);
  padding: 10px 12px;
}

.settings-icon {
  display: grid;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  place-items: center;
  border-radius: 6px;
  background: #eff3f5;
  color: #344054;
}

.settings-panel h3,
.settings-panel p {
  margin: 0;
}

.settings-panel h3 {
  font-size: 12px;
}

.finance-subnav {
  display: flex;
  align-items: stretch;
  gap: 12px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px;
}

.finance-nav-group {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 3px;
  padding-right: 12px;
  border-right: 1px solid var(--line);
}

.finance-nav-group:last-child {
  padding-right: 0;
  border-right: 0;
}

.finance-nav-group > span {
  padding-left: 4px;
  color: #84909d;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.finance-nav-group > div {
  display: flex;
  gap: 3px;
}

.finance-subnav button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 31px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #526071;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.finance-subnav button:hover {
  background: #f2f5f7;
}

.finance-subnav button.active {
  background: #172033;
  color: #fff;
}

.finance-metrics {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.finance-metric {
  min-height: 74px;
  border-color: rgba(15, 23, 42, 0.1);
}

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

.finance-commandbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 56px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.finance-commandbar > div:first-child > span,
.finance-commandbar h1,
.finance-commandbar p {
  margin: 0;
}

.finance-commandbar > div:first-child > span {
  color: #7b8794;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.finance-commandbar h1 {
  font-size: 16px;
  line-height: 1.15;
}

.finance-commandbar p {
  margin-top: 2px;
  color: #667085;
  font-size: 10px;
}

.finance-command-actions,
.finance-period-control {
  display: flex;
  align-items: end;
  gap: 6px;
}

.finance-period-control label {
  display: grid;
  gap: 2px;
  color: #667085;
  font-size: 8px;
  font-weight: 800;
  text-transform: uppercase;
}

.finance-period-control select {
  height: 30px;
  min-width: 70px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: #202939;
  padding: 0 24px 0 8px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
}

.finance-period-control .segmented-control {
  align-self: end;
  height: 30px;
}

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

.finance-analysis-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.finance-analysis-panel > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.finance-analysis-panel h3,
.finance-analysis-panel p {
  margin: 0;
}

.report-period-values {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 220px;
  max-width: 680px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.report-period-values span {
  display: grid;
  flex: 0 0 auto;
  gap: 2px;
  min-width: 72px;
  border-left: 1px solid var(--line);
  padding: 2px 7px;
}

.report-period-values em {
  color: #7b8794;
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.report-period-values strong {
  margin: 0;
  color: #202939;
  font-size: 10px;
  white-space: nowrap;
}

.finance-quality-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--line);
}

.finance-quality-strip span {
  display: flex;
  align-items: baseline;
  gap: 5px;
  min-height: 36px;
  background: #fff;
  color: #667085;
  padding: 8px 10px;
  font-size: 9px;
  font-weight: 750;
}

.finance-quality-strip strong {
  color: #202939;
  font-size: 13px;
}

.finance-quality-strip .needs-review,
.finance-quality-strip .needs-review strong {
  background: #fff8ed;
  color: #9f520b;
}

.finance-usage-rate {
  display: inline-flex;
  min-width: 74px;
  min-height: 26px;
  align-items: baseline;
  justify-content: center;
  gap: 3px;
  border: 1px solid #b8ddd7;
  border-radius: 6px;
  background: #edf8f5;
  color: #116b60;
  padding: 5px 7px;
  white-space: nowrap;
}

.finance-usage-rate strong {
  color: inherit;
  font-size: 10px;
}

.finance-usage-rate small {
  font-size: 7px;
  font-weight: 800;
}

.finance-usage-rate.unavailable {
  border-color: #e1e6eb;
  background: #f6f8fa;
  color: #7b8794;
  font-size: 8px;
  font-weight: 850;
}

.finance-analysis-panel h3 {
  font-size: 12px;
}

.finance-analysis-panel p {
  margin-top: 2px;
  color: #667085;
  font-size: 9px;
}

.finance-growth-shell {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.finance-growth-shell > header {
  display: flex;
  min-height: 48px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 2px 2px 8px;
}

.finance-growth-shell > header > div:first-child {
  min-width: 0;
}

.finance-growth-shell > header span,
.finance-growth-shell > header h2,
.finance-growth-shell > header p {
  margin: 0;
}

.finance-growth-shell > header > div:first-child > span {
  color: var(--accent-strong);
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.finance-growth-shell > header h2 {
  margin-top: 2px;
  font-size: 15px;
}

.finance-growth-shell > header p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.finance-growth-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  gap: 8px;
}

.finance-growth-year {
  display: grid;
  gap: 3px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
}

.finance-growth-year select {
  width: 76px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  padding: 0 22px 0 8px;
  font: inherit;
  font-size: 10px;
}

.finance-growth-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.finance-growth-kpis > div {
  display: grid;
  min-width: 0;
  min-height: 66px;
  align-content: center;
  gap: 3px;
  border: 1px solid var(--line);
  border-top: 2px solid #17817c;
  border-radius: 6px;
  background: #fff;
  padding: 8px 10px;
}

.finance-growth-kpis > div:nth-child(2) {
  border-top-color: #f05a0a;
}

.finance-growth-kpis > div:nth-child(3) {
  border-top-color: #5276a7;
}

.finance-growth-kpis > div:nth-child(4) {
  border-top-color: #87929f;
}

.finance-growth-kpis span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.finance-growth-kpis strong {
  overflow: hidden;
  font-size: 17px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-growth-kpis em {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-growth-kpis em.positive {
  color: #16715f;
}

.finance-growth-kpis em.negative {
  color: #b42318;
}

.finance-growth-grid {
  display: grid;
  grid-template-columns: minmax(620px, 1.55fr) minmax(360px, 0.85fr);
  gap: 8px;
  min-width: 0;
}

.finance-growth-panel {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 10px;
}

.finance-chart-heading {
  display: flex;
  min-height: 34px;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.finance-chart-heading h3,
.finance-chart-heading p {
  margin: 0;
}

.finance-chart-heading h3 {
  font-size: 11px;
}

.finance-chart-heading p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

.finance-chart-legend {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: end;
  gap: 7px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 750;
}

.finance-chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.finance-chart-legend span::before {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: #87929f;
  content: "";
}

.finance-chart-legend .properties::before,
.finance-chart-legend .recurring::before {
  background: #17817c;
}

.finance-chart-legend .mrr::before,
.finance-chart-legend .equipment::before {
  background: #f05a0a;
}

.finance-chart-legend .other::before {
  background: #5276a7;
}

.finance-chart-scroll,
.finance-revenue-scroll {
  min-width: 0;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
}

.finance-growth-chart {
  position: relative;
  min-width: 680px;
  aspect-ratio: 960 / 300;
}

.finance-growth-chart svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.finance-chart-grid line {
  stroke: #e7ebee;
  stroke-width: 1;
}

.finance-chart-grid text {
  fill: #7b8794;
  font-size: 9px;
  font-weight: 700;
}

.finance-mrr-area {
  fill: #fff0e7;
  opacity: 0.7;
}

.finance-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 3;
}

.finance-line.properties {
  stroke: #17817c;
}

.finance-line.mrr {
  stroke: #f05a0a;
}

.finance-chart-dot {
  position: absolute;
  z-index: 2;
  width: 10px;
  height: 10px;
  transform: translate(-50%, -50%);
  border: 2px solid #fff;
  border-radius: 50%;
  background: #17817c;
  box-shadow: 0 0 0 1px #17817c;
  padding: 0;
}

.finance-chart-dot.mrr {
  background: #f05a0a;
  box-shadow: 0 0 0 1px #f05a0a;
}

.finance-chart-dot:hover,
.finance-chart-dot:focus-visible {
  z-index: 5;
  transform: translate(-50%, -50%) scale(1.3);
  outline: 0;
}

.finance-chart-dot::after,
.finance-revenue-column::after {
  position: absolute;
  z-index: 10;
  left: 50%;
  top: calc(100% + 9px);
  width: max-content;
  max-width: 220px;
  transform: translateX(-50%);
  border-radius: 5px;
  background: #182230;
  box-shadow: 0 6px 18px rgba(24, 34, 48, 0.2);
  color: #fff;
  content: attr(data-tooltip);
  font-size: 8px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  padding: 6px 8px;
  pointer-events: none;
  text-align: left;
  white-space: normal;
}

.finance-revenue-column::after {
  top: 26px;
}

.finance-chart-dot:hover::after,
.finance-chart-dot:focus-visible::after,
.finance-revenue-column:hover::after,
.finance-revenue-column:focus-visible::after {
  opacity: 1;
}

.finance-chart-dot.edge-start::after {
  left: -2px;
  transform: none;
}

.finance-chart-dot.edge-end::after {
  right: -2px;
  left: auto;
  transform: none;
}

.finance-revenue-column.edge-start::after {
  left: 0;
  transform: none;
}

.finance-revenue-column.edge-end::after {
  right: 0;
  left: auto;
  transform: none;
}

.finance-revenue-chart {
  display: grid;
  grid-template-columns: repeat(12, minmax(42px, 1fr));
  gap: 5px;
  min-width: 600px;
  height: 246px;
  padding-top: 26px;
}

.finance-revenue-column {
  position: relative;
  display: grid;
  grid-template-rows: 18px minmax(0, 1fr) 18px;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 0;
}

.finance-revenue-column > strong,
.finance-revenue-column > em {
  overflow: hidden;
  font-size: 8px;
  font-style: normal;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.finance-revenue-column > strong {
  color: #526071;
}

.finance-revenue-column > em {
  align-self: end;
  color: var(--muted);
  font-weight: 750;
}

.finance-revenue-track {
  display: flex;
  min-height: 0;
  align-items: end;
  border-bottom: 1px solid #dfe4e8;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 24%, #eef1f3 25%);
  padding: 0 5px;
}

.finance-revenue-stack {
  display: flex;
  width: 100%;
  min-height: 3px;
  overflow: hidden;
  flex-direction: column-reverse;
  border-radius: 3px 3px 0 0;
  transition: filter 140ms ease;
}

.finance-revenue-column:hover .finance-revenue-stack,
.finance-revenue-column:focus-visible .finance-revenue-stack {
  filter: brightness(0.92);
}

.finance-revenue-column:focus-visible {
  outline: 2px solid #8bbdbc;
  outline-offset: 2px;
}

.finance-revenue-stack i {
  display: block;
  min-height: 1px;
}

.finance-revenue-stack .recurring {
  background: #17817c;
}

.finance-revenue-stack .equipment {
  background: #f05a0a;
}

.finance-revenue-stack .other {
  background: #5276a7;
}

.finance-growth-shell.is-loading .finance-growth-grid,
.finance-growth-shell.is-loading .finance-growth-kpis {
  opacity: 0.55;
}

.finance-chart-loading {
  display: flex;
  min-height: 180px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--accent-strong);
}

.finance-chart-loading > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  background: #e7f4f2;
  animation: chart-pulse 1.2s ease-in-out infinite;
}

.finance-chart-loading > div {
  display: grid;
  gap: 2px;
}

.finance-chart-loading strong {
  color: var(--ink);
  font-size: 11px;
}

.finance-chart-loading em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

@keyframes chart-pulse {
  50% {
    transform: scale(1.08);
  }
}

.finance-reconcile {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 34px;
  border: 1px solid #b7e2d8;
  border-radius: 6px;
  background: #f1fbf8;
  color: #126b5b;
  padding: 5px 9px;
  font-size: 10px;
}

.finance-reconcile.bad {
  border-color: #f0bbb2;
  background: #fff5f3;
  color: #a63424;
}

.finance-reconcile strong {
  margin-left: auto;
}

.finance-reconcile em {
  color: #667085;
  font-style: normal;
}

@media (max-width: 760px) {
  .finance-commandbar {
    align-items: stretch;
    flex-direction: column;
  }

  .finance-command-actions {
    align-items: center;
    flex-wrap: wrap;
  }

  .finance-period-control {
    align-items: end;
    flex: 1 1 100%;
    overflow-x: auto;
  }

  .finance-subnav {
    gap: 8px;
  }

  .finance-nav-group {
    padding-right: 8px;
  }

  .finance-visual-grid {
    grid-template-columns: 1fr;
  }

  .finance-reconcile {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .finance-reconcile em {
    flex: 1 1 100%;
  }

  .finance-quality-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.goal-tile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(128px, 1fr));
  gap: 7px;
  margin-bottom: 8px;
}

.goal-tile {
  display: grid;
  min-width: 0;
  min-height: 88px;
  align-content: space-between;
  gap: 5px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 5px;
  background: #fff;
  padding: 9px 10px;
}

.goal-tile:nth-child(3n + 2) {
  border-top-color: var(--orange);
}

.goal-tile:nth-child(3n) {
  border-top-color: #3b7f68;
}

.goal-tile > div {
  display: grid;
  gap: 2px;
}

.goal-tile span {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.goal-tile em,
.goal-tile small {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.goal-tile strong {
  color: var(--ink);
  font-size: 20px;
  line-height: 1;
}

.goal-note {
  display: flex;
  min-height: 34px;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  border-left: 3px solid var(--orange);
  background: #fff8f2;
  padding: 7px 10px;
  color: var(--muted);
  font-size: 9px;
}

.goal-note > span:first-child {
  display: inline-grid;
  color: var(--orange);
}

.goal-note strong {
  color: var(--ink);
}

.activity-source-guide {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.activity-source-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 7px 10px;
}

.activity-source-head h3 {
  margin: 1px 0 0;
  font-size: 11px;
}

.activity-source-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activity-source-grid article {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
  min-width: 0;
  padding: 9px;
}

.activity-source-grid article + article {
  border-left: 1px solid var(--line);
}

.activity-source-icon {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border-radius: 6px;
  background: #eef7f6;
  color: var(--accent-strong);
}

.activity-source-grid article > div {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.activity-source-grid strong {
  font-size: 9px;
}

.activity-source-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.activity-source-grid a,
.calculation-source {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  color: var(--accent-strong);
  font-size: 8px;
  font-weight: 800;
  text-decoration: none;
}

.activity-source-grid a:hover,
.calculation-source:hover {
  text-decoration: underline;
}

.activity-source-grid article > em {
  border-radius: 999px;
  padding: 2px 5px;
  font-size: 7px;
  font-style: normal;
  font-weight: 900;
  white-space: nowrap;
}

.activity-source-grid article > em.live {
  background: #e6f6ed;
  color: #087443;
}

.activity-source-grid article > em.needed {
  background: #fff1df;
  color: #8a4b00;
}

.activity-source-grid article > em.excluded {
  background: #eef1f3;
  color: #5d6978;
}

.goal-unset {
  color: #8a5a29;
  font-size: 9px;
  font-weight: 750;
}

.goal-stage-panel {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  background: #fff;
}

.goal-stage-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid var(--line);
  padding: 7px 10px;
}

.goal-stage-head h3,
.goal-stage-head p {
  margin: 0;
}

.goal-stage-head h3 {
  font-size: 11px;
}

.goal-stage-head p,
.goal-stage-head > strong {
  color: var(--muted);
  font-size: 8px;
}

.goal-stage-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 16px;
  padding: 6px 10px;
}

.goal-stage-row {
  display: grid;
  grid-template-columns: minmax(100px, 1.2fr) minmax(40px, 1fr) 28px 54px;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  border-bottom: 1px solid #edf0f2;
  font-size: 8px;
}

.goal-stage-row > span {
  overflow: hidden;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.goal-stage-row > i {
  display: block;
  height: 4px;
  background: #e8edef;
}

.goal-stage-row > i b {
  display: block;
  height: 100%;
  background: var(--accent);
}

.goal-stage-row > strong {
  text-align: right;
}

.goal-stage-row > em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  text-align: right;
}

.goal-stage-row > em.risk {
  color: #b42318;
  font-weight: 800;
}

.settings-panel-head p,
.settings-support p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.45;
}

.settings-list {
  margin: 0;
  padding: 3px 12px;
}

.settings-list > div {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 36px;
  border-top: 1px solid #edf0f2;
}

.settings-list > div:first-child {
  border-top: 0;
}

.settings-list dt {
  color: var(--muted);
  font-size: 10px;
}

.settings-list dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  font-weight: 700;
  text-align: right;
}

.settings-checks {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 3px 12px;
  list-style: none;
}

.settings-checks li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 44px;
  border-top: 1px solid #edf0f2;
  color: var(--green);
}

.settings-checks li:first-child {
  border-top: 0;
}

.settings-checks li span {
  display: grid;
  gap: 2px;
  color: var(--ink);
}

.settings-checks strong {
  font-size: 11px;
}

.settings-checks em {
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
}

.settings-support {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.settings-support .ghost-button {
  justify-self: start;
}

.settings-support a {
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 750;
}

.pill.neutral {
  background: #eef1f3;
  color: #4b5563;
}

.qbr-toolbar {
  display: grid;
  grid-template-columns: minmax(360px, 1fr) auto auto;
  align-items: end;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 10px 12px;
}

.qbr-filter-group {
  display: grid;
  grid-template-columns: minmax(220px, 420px) 96px;
  gap: 8px;
}

.qbr-period-control {
  display: grid;
  gap: 5px;
}

.qbr-period-control > span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
}

.segmented-control {
  display: inline-grid;
  grid-template-columns: repeat(5, 44px);
  overflow: hidden;
  border: 1px solid #cfd7de;
  border-radius: 5px;
  background: #f6f8f9;
}

.segmented-control button {
  height: 30px;
  border: 0;
  border-left: 1px solid #dce2e7;
  background: transparent;
  color: #526071;
  font-size: 9px;
  font-weight: 850;
}

.segmented-control button:first-child {
  border-left: 0;
}

.segmented-control button:hover {
  background: #e9eef1;
}

.segmented-control button.active {
  background: var(--ink);
  color: #fff;
}

.qbr-export {
  min-height: 32px;
  white-space: nowrap;
}

.qbr-period-banner {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 12px;
  border: 1px solid #d8e3e3;
  border-left: 3px solid var(--accent);
  background: #f8fbfb;
  padding: 7px 10px;
}

.qbr-period-banner > div {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.qbr-period-banner span,
.qbr-period-banner strong,
.qbr-period-banner p {
  margin: 0;
}

.qbr-period-banner > div > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 750;
}

.qbr-period-banner strong {
  font-size: 13px;
}

.qbr-period-banner p {
  flex: 1;
  color: var(--muted);
  font-size: 10px;
}

.qbr-period-banner > .pill {
  min-height: 22px;
  font-size: 9px;
}

.qbr-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  gap: 8px;
}

.qbr-metric {
  display: grid;
  min-width: 0;
  min-height: 84px;
  align-content: space-between;
  gap: 5px;
  border: 1px solid var(--line);
  border-top: 2px solid var(--accent);
  border-radius: 5px;
  background: #fff;
  padding: 9px 10px;
}

.qbr-metric:nth-child(3n + 2) {
  border-top-color: var(--orange);
}

.qbr-metric:nth-child(3n) {
  border-top-color: var(--blue);
}

.qbr-metric > div {
  display: grid;
  gap: 2px;
}

.qbr-metric span {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.qbr-metric small {
  color: var(--accent-strong);
  font-size: 9px;
  font-weight: 750;
}

.qbr-metric strong {
  font-size: 22px;
  line-height: 1;
}

.qbr-metric em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qbr-section {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px 12px;
}

.qbr-section-head {
  display: flex;
  min-height: 30px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.qbr-section-head > div {
  min-width: 0;
}

.qbr-section-head h2,
.qbr-section-head span,
.qbr-section-head strong {
  margin: 0;
}

.qbr-section-head h2 {
  font-size: 12px;
}

.qbr-section-head span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.qbr-section-head > strong {
  color: var(--accent-strong);
  font-size: 11px;
  white-space: nowrap;
}

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

.qbr-period-card {
  display: grid;
  min-width: 0;
  min-height: 88px;
  align-content: start;
  gap: 4px;
  border: 1px solid #dbe1e6;
  border-radius: 5px;
  background: #fafbfc;
  padding: 8px 9px;
  color: var(--ink);
  text-align: left;
}

.qbr-period-card:hover {
  border-color: #9bbbbb;
  background: #f5fafa;
}

.qbr-period-card.active {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #f2f8f8;
}

.qbr-period-card.future {
  opacity: 0.68;
}

.qbr-period-card span {
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 850;
}

.qbr-period-card small {
  min-height: 25px;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.45;
}

.qbr-period-card strong {
  font-size: 13px;
}

.qbr-period-card em {
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.qbr-repeat-item {
  display: grid;
  gap: 6px;
  border-left: 2px solid #dfe5e8;
  padding: 3px 8px;
}

.qbr-repeat-item > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.qbr-repeat-item span {
  color: var(--muted);
  font-size: 9px;
}

.qbr-repeat-item strong {
  font-size: 13px;
}

.qbr-repeat-item .qbr-bar {
  display: block;
  width: 100%;
  height: 4px;
  overflow: hidden;
  background: #e7ecef;
}

.qbr-bar i {
  display: block;
  height: 100%;
  background: var(--orange);
}

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

.qbr-question {
  display: grid;
  min-width: 0;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fbfcfc;
  padding: 10px;
}

.qbr-question-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.qbr-question-head .pill {
  min-height: 20px;
  padding: 0 7px;
  font-size: 8px;
}

.qbr-question-head > span:last-child {
  color: var(--muted);
  font-size: 9px;
  font-weight: 750;
}

.qbr-question h3 {
  margin: 0;
  font-size: 11px;
  line-height: 1.45;
}

.qbr-answer-list {
  display: grid;
  gap: 7px;
}

.qbr-answer-list > div {
  display: grid;
  gap: 4px;
}

.qbr-answer-list > div > span {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.qbr-answer-list strong {
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.qbr-answer-list em {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.qbr-answer-list > div > i {
  display: block;
  height: 3px;
  overflow: hidden;
  background: #e6ebee;
}

.qbr-answer-list b {
  display: block;
  height: 100%;
  background: var(--accent);
}

.qbr-written-count {
  display: flex !important;
  min-height: 44px;
  align-items: center;
  gap: 8px !important;
  border-top: 1px solid #e3e8eb;
  color: var(--accent-strong);
  padding-top: 8px;
}

.qbr-written-count > span {
  display: grid !important;
  justify-content: start !important;
  gap: 2px !important;
}

.qbr-written-count strong {
  font-size: 10px;
}

.qbr-written-count em {
  font-size: 8px;
}

.qbr-survey-section .empty-results {
  grid-column: 1 / -1;
}

.calculation-overview {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--orange);
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
}

.calculation-overview-copy h3,
.calculation-overview-copy p {
  margin: 0;
}

.calculation-overview-copy h3 {
  margin-top: 2px;
  font-size: 14px;
}

.calculation-overview-copy p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.calculation-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(62px, 1fr));
  gap: 1px;
  overflow: hidden;
  min-width: 340px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--line);
}

.calculation-meta span {
  display: grid;
  gap: 2px;
  min-height: 42px;
  align-content: center;
  background: #fbfcfd;
  padding: 5px 8px;
}

.calculation-meta strong {
  font-size: 11px;
}

.calculation-meta em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.health-threshold-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.health-threshold {
  display: flex;
  min-width: 0;
  min-height: 40px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  padding: 7px 9px;
}

.health-threshold span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-weight: 850;
}

.health-threshold strong {
  font-size: 11px;
  white-space: nowrap;
}

.health-threshold.healthy {
  border-color: #b8dfca;
  color: #087443;
  background: #f2fbf6;
}

.health-threshold.watch {
  border-color: #eed39f;
  color: #8d4b0b;
  background: #fff9ef;
}

.health-threshold.risk {
  border-color: #ecc0bc;
  color: #a4261d;
  background: #fff5f4;
}

.health-threshold.neutral {
  color: #5d6978;
  background: #f8fafb;
}

.calculation-toolbar {
  display: flex;
  min-height: 48px;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding: 0 2px 8px;
}

.calculation-toolbar .control {
  width: min(420px, 100%);
}

.calculation-toolbar > span {
  color: var(--muted);
  padding-bottom: 7px;
  font-size: 9px;
  font-weight: 800;
}

.calculation-list {
  display: grid;
  gap: 6px;
}

.calculation-definition {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.calculation-definition[open] {
  border-color: #bac9cf;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06);
}

.calculation-definition summary {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 9px;
  min-height: 58px;
  cursor: pointer;
  list-style: none;
  padding: 8px 11px;
}

.calculation-definition summary::-webkit-details-marker {
  display: none;
}

.calculation-definition summary:hover {
  background: #fafcfc;
}

.calculation-definition summary:focus-visible {
  outline: 3px solid rgba(11, 107, 111, 0.2);
  outline-offset: -3px;
}

.calculation-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 6px;
  background: #eef6f6;
  color: var(--accent-strong);
}

.calculation-definition[open] .calculation-icon {
  background: var(--accent);
  color: #fff;
}

.calculation-title {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.calculation-title strong {
  font-size: 11px;
}

.calculation-title em {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  font-style: normal;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculation-category {
  border-radius: 999px;
  background: #f0f3f5;
  color: #596675;
  padding: 3px 7px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.calculation-chevron {
  display: grid;
  place-items: center;
  color: var(--muted);
  transition: transform 150ms ease;
}

.calculation-definition[open] .calculation-chevron {
  transform: rotate(180deg);
}

.calculation-body {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  background: #fcfdfd;
}

.calculation-result {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(180px, auto) minmax(0, 1fr);
  align-items: center;
  gap: 8px;
  min-height: 40px;
  border-bottom: 1px solid var(--line);
  background: #f7faf9;
  padding: 7px 11px;
}

.calculation-result > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}

.calculation-result > strong {
  color: var(--accent-strong);
  font-size: 10px;
}

.calculation-result code {
  overflow: hidden;
  color: #465363;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculation-column {
  min-width: 0;
  padding: 10px;
}

.calculation-column + .calculation-column {
  border-left: 1px solid var(--line);
}

.calculation-section-head {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) auto;
  align-items: center;
  gap: 5px;
  min-height: 25px;
  color: #445162;
}

.calculation-section-head strong {
  font-size: 9px;
  text-transform: uppercase;
}

.calculation-section-head em {
  color: var(--muted);
  font-size: 8px;
  font-style: normal;
}

.calculation-fields,
.calculation-rules {
  display: grid;
  gap: 4px;
}

.calculation-field {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: start;
  gap: 7px;
  border-top: 1px solid #e7ebee;
  padding: 7px 0;
}

.calculation-object {
  color: var(--accent-strong);
  font-size: 8px;
  font-weight: 850;
}

.calculation-field > div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.calculation-field code {
  width: max-content;
  max-width: 100%;
  overflow: hidden;
  background: #eef1f3;
  color: #3f4c5c;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calculation-field strong {
  font-size: 9px;
}

.calculation-field p {
  margin: 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.calculation-source {
  margin-top: 2px;
}

.calculation-field > em {
  color: #697687;
  font-size: 8px;
  font-style: normal;
  white-space: nowrap;
}

.calculation-rule {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(100px, 0.8fr) auto;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  border-top: 1px solid #e7ebee;
  padding: 5px 0;
}

.calculation-rule > span {
  color: #4d5b6c;
  font-size: 8px;
  line-height: 1.35;
}

.calculation-rule > strong {
  font-size: 8px;
  line-height: 1.35;
}

.calculation-rule > em {
  min-width: 48px;
  border-radius: 999px;
  padding: 2px 5px;
  font-size: 8px;
  font-style: normal;
  font-weight: 850;
  text-align: center;
  white-space: nowrap;
}

.calculation-rule > em.positive {
  background: #e6f6ed;
  color: #087443;
}

.calculation-rule > em.negative {
  background: #fdecea;
  color: #a4261d;
}

.calculation-rule > em.neutral {
  background: #eef1f3;
  color: #5d6978;
}

.calculation-notes {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  border-top: 1px solid var(--line);
  background: #fffaf5;
  padding: 7px 11px;
}

.calculation-notes span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #6f4d2b;
  font-size: 8px;
  line-height: 1.4;
}

.calculation-footer {
  color: var(--muted);
  padding: 2px 3px;
  font-size: 8px;
  text-align: right;
}

@media (max-width: 980px) {
  .finance-growth-grid {
    grid-template-columns: 1fr;
  }

  .finance-growth-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .goal-stage-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .calculation-overview {
    align-items: stretch;
    flex-direction: column;
  }

  .calculation-meta {
    width: 100%;
    min-width: 0;
  }

  .calculation-body {
    grid-template-columns: 1fr;
  }

  .calculation-column + .calculation-column {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .qbr-toolbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .qbr-filter-group {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) 110px;
  }

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

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

  .app-shell {
    display: block;
  }

  .app-sidebar {
    position: fixed;
    left: 0;
    width: min(230px, calc(100vw - 40px));
    transform: translateX(-102%);
    transition: transform 180ms ease;
    box-shadow: var(--shadow-strong);
  }

  .app-shell.nav-open .app-sidebar {
    transform: translateX(0);
  }

  .sidebar-close,
  .mobile-menu {
    display: inline-grid;
  }

  .sidebar-scrim {
    position: fixed;
    inset: 0;
    z-index: 15;
    border: 0;
    background: rgba(15, 23, 42, 0.38);
  }

  .app-shell.nav-open .sidebar-scrim {
    display: block;
  }

  .app-content.map-page {
    height: auto;
    min-height: calc(100dvh - 54px);
    overflow: visible;
  }

  .map-page .tab-body,
  .map-page .map-workspace {
    height: auto;
  }

  .map-page .map-workspace {
    display: block;
  }
}

@media (max-width: 680px) {
  .data-refresh-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .data-refresh-strip .ghost-button {
    width: 100%;
    margin-left: 0;
  }

  .finance-growth-shell > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .finance-growth-actions {
    width: 100%;
    justify-content: space-between;
  }

  .finance-growth-kpis {
    grid-template-columns: 1fr 1fr;
  }

  .finance-growth-kpis > div {
    min-height: 70px;
  }

  .finance-growth-kpis strong {
    font-size: 14px;
  }

  .finance-chart-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .finance-growth-panel {
    padding: 8px;
  }

  .goal-tile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .goal-stage-grid {
    grid-template-columns: 1fr;
  }

  .health-threshold-band,
  .calculation-meta {
    grid-template-columns: 1fr 1fr;
  }

  .calculation-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .calculation-toolbar > span {
    padding: 0;
  }

  .calculation-definition summary {
    grid-template-columns: 32px minmax(0, 1fr) 18px;
  }

  .calculation-category {
    display: none;
  }

  .calculation-title em {
    white-space: normal;
  }

  .calculation-result {
    grid-template-columns: 1fr;
  }

  .calculation-result code {
    white-space: normal;
  }

  .calculation-field {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .calculation-field > em {
    grid-column: 2;
  }

  .calculation-rule {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .calculation-rule > strong {
    grid-column: 1;
  }

  .calculation-rule > em {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .goal-note {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .goal-note > span:last-child {
    flex-basis: 100%;
  }

  .activity-source-head {
    align-items: flex-start;
    flex-direction: column;
  }

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

  .activity-source-grid article + article {
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .loading-shell {
    padding: 16px;
  }

  .intelligence-loader {
    min-height: 360px;
    gap: 15px;
    padding: 20px 14px;
  }

  .intelligence-signal {
    width: 168px;
    height: 108px;
  }

  .intelligence-copy > strong {
    max-width: 280px;
    font-size: 16px;
  }

  .intelligence-progress {
    width: min(280px, 86%);
  }

  .qbr-toolbar,
  .qbr-filter-group {
    grid-template-columns: 1fr;
  }

  .qbr-period-control,
  .qbr-export {
    width: 100%;
  }

  .segmented-control {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    width: 100%;
  }

  .qbr-period-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .qbr-period-banner > div {
    width: 100%;
  }

  .qbr-period-banner p {
    flex: 1 1 70%;
    line-height: 1.45;
  }

  .qbr-metrics,
  .qbr-period-grid,
  .qbr-repeat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .qbr-question-grid {
    grid-template-columns: 1fr;
  }

  .qbr-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .qbr-period-card {
    min-height: 94px;
  }

  .qbr-period-card:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .app-topnav {
    min-height: 56px;
    gap: 8px;
    padding: 9px 12px;
  }

  .page-identity span,
  .topnav-actions > .icon-button:nth-of-type(1),
  .topnav-actions > .icon-button:nth-of-type(2) {
    display: none;
  }

  .page-identity h1 {
    max-width: 150px;
    overflow: hidden;
    font-size: 16px;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topnav-leading,
  .topnav-actions {
    gap: 6px;
  }

  .app-content {
    padding: 8px 8px 20px;
  }

  .app-content.map-page {
    min-height: calc(100dvh - 56px);
  }

  .content-meta {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }

  .content-meta span {
    flex: 0 0 auto;
  }

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

  .finance-subnav {
    scroll-snap-type: x proximity;
  }

  .finance-subnav button {
    flex: 0 0 auto;
    scroll-snap-align: start;
  }

  .cs-priority-grid,
  .cs-focus-grid,
  .cs-executive-grid {
    grid-template-columns: 1fr;
  }

  .cs-quality-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .cs-period-line {
    overflow-x: auto;
  }

  .cs-period-line span:last-child {
    margin-left: 0;
  }

  .cs-renewal-row {
    grid-template-columns: minmax(70px, 1fr) auto auto;
  }

  .cs-renewal-row small {
    grid-column: 1 / -1;
    text-align: left;
  }

  .cs-priority-row {
    grid-template-columns: minmax(0, 1fr);
    min-height: 52px;
  }

  .cs-priority-row em {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .settings-intro .danger-button {
    width: 100%;
  }

  .settings-list > div {
    grid-template-columns: minmax(90px, 35%) minmax(0, 1fr);
  }
}

@media (max-width: 390px) {
  .qbr-metrics,
  .qbr-period-grid,
  .qbr-repeat-grid {
    grid-template-columns: 1fr;
  }

  .qbr-period-card:last-child:nth-child(odd) {
    grid-column: auto;
  }

  .page-identity h1 {
    max-width: 115px;
  }

  .topnav-actions > .icon-button {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .data-refresh-status.running svg {
    animation: none;
  }

  .finance-chart-loading > span {
    animation: none;
  }

  .intelligence-signal::after,
  .signal-grid i,
  .signal-bars i,
  .intelligence-steps span,
  .intelligence-progress i {
    animation: none;
  }

  .signal-grid i:nth-child(3n + 1) {
    background: #64a5a4;
  }

  .signal-grid i:nth-child(3n + 2) {
    background: #ed7d3a;
  }

  .signal-bars i {
    opacity: 0.7;
    transform: scaleY(0.65);
  }

  .intelligence-steps span {
    display: none;
    opacity: 1;
    transform: none;
  }

  .intelligence-steps span:first-child {
    position: static;
    display: block;
  }

  .intelligence-progress i {
    width: 58%;
  }
}
