.sidebar-scrim {
  position: fixed;
  z-index: 14;
  inset: 0;
  border: 0;
  background: rgba(8, 13, 30, 0.56);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

body.sidebar-open {
  overflow: hidden;
}

.view {
  min-width: 0;
}

.panel {
  overflow-x: auto;
}

.dashboard-icon {
  display: block;
  width: 18px;
  height: 18px;
}

.dashboard-intro {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.dashboard-intro p {
  margin: 0 0 5px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.dashboard-intro h2 {
  margin: 0;
  font-size: 30px;
  letter-spacing: 0;
}

.dashboard-intro span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 13px;
}

.dashboard-intro .primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 160px;
}

.dashboard-intro .primary span {
  margin: 0;
  color: inherit;
  font-size: 12px;
}

.performance-metrics {
  margin-top: 0;
}

.performance-metrics .metric {
  position: relative;
  min-height: 150px;
  overflow: hidden;
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(20, 35, 70, .06);
}

.performance-metrics .metric::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--metric-accent, var(--blue));
}

.performance-metrics .tone-blue { --metric-accent: #2563eb; --metric-soft: #e8f0ff; }
.performance-metrics .tone-teal { --metric-accent: #0d9488; --metric-soft: #e1f7f3; }
.performance-metrics .tone-violet { --metric-accent: #7c3aed; --metric-soft: #f0eaff; }
.performance-metrics .tone-amber { --metric-accent: #d97706; --metric-soft: #fff1d9; }

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

.metric-heading > i {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--metric-accent);
  background: var(--metric-soft);
}

.metric-heading > span {
  color: #516078;
  font-size: 11px;
}

.performance-metrics .metric > strong {
  margin-top: 16px;
  font-size: 31px;
  letter-spacing: 0;
}

.performance-metrics .metric > strong.restricted {
  font-size: 19px;
}

.performance-metrics .metric > em {
  display: block;
  margin-top: 6px;
  color: #64748b;
}

.metric-progress {
  position: absolute;
  right: 20px;
  bottom: 21px;
  left: 20px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: #edf1f6;
}

.metric-progress i {
  display: block;
  width: var(--metric-progress);
  height: 100%;
  border-radius: inherit;
  background: var(--metric-accent);
}

.dashboard-main {
  display: grid;
  grid-template-columns: minmax(420px, 1.55fr) minmax(260px, .8fr) minmax(280px, .85fr);
  gap: 16px;
  margin-top: 18px;
}

.dashboard-lower {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(300px, .8fr);
  gap: 16px;
  margin-top: 16px;
}

.dashboard-main .panel,
.dashboard-lower .panel {
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 8px 24px rgba(20, 35, 70, .05);
}

.dashboard-main .panel-head,
.dashboard-lower .panel-head {
  min-height: 38px;
  margin-bottom: 14px;
}

.dashboard-main .panel-head > div {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.dashboard-main .panel-head > div > div,
.dashboard-lower .panel-head > div {
  min-width: 0;
}

.panel-icon {
  display: grid;
  flex: 0 0 34px;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 7px;
  color: var(--blue);
  background: #e9efff;
}

.panel-head > div span:not(.panel-icon) {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 10px;
}

.panel-head button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--blue);
}

.growth-chart {
  position: relative;
  height: 286px;
}

.growth-chart svg {
  width: 100%;
  height: 260px;
  overflow: visible;
}

.growth-guides line {
  stroke: #e8edf4;
  stroke-width: 1;
}

.growth-guides text {
  fill: #8792a6;
  font-size: 9px;
}

.growth-area {
  fill: url(#dashboard-growth-fill);
}

.growth-line {
  fill: none;
  stroke: url(#dashboard-growth-line);
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.growth-chart circle {
  fill: #fff;
  stroke: #2563eb;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
}

.growth-axis {
  position: absolute;
  right: 18px;
  bottom: 0;
  left: 28px;
  display: flex;
  justify-content: space-between;
  color: #8792a6;
  font-size: 9px;
}

.dashboard-empty {
  display: grid;
  place-content: center;
  gap: 5px;
  width: 100%;
  min-height: 120px;
  text-align: center;
  color: var(--muted);
}

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

.growth-empty {
  min-height: 286px;
  border: 1px dashed var(--line);
  border-radius: 7px;
  background: #fafcff;
}

.pipeline-list {
  min-height: 202px;
}

.pipeline-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px 12px;
  width: 100%;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf0f4;
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.pipeline-row > span strong,
.pipeline-row > span small {
  display: block;
}

.pipeline-row > span strong {
  font-size: 11px;
}

.pipeline-row > span small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.pipeline-row > em {
  color: #263653;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
}

.pipeline-row > i {
  grid-column: 1 / -1;
  height: 5px;
  overflow: hidden;
  border-radius: 4px;
  background: #edf1f6;
}

.pipeline-row > i > b {
  display: block;
  width: var(--pipeline-size);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
}

.pipeline-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 11px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  font-size: 10px;
  color: var(--muted);
}

.pipeline-summary strong {
  color: var(--ink);
  font-size: 13px;
}

.pipeline-empty,
.channel-empty {
  min-height: 202px;
}

.channel-health-row,
.priority-row {
  width: 100%;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: 10px;
  padding: 11px 2px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  text-align: left;
  cursor: pointer;
}

.channel-health-row:last-child,
.priority-row:last-child {
  border-bottom: 0;
}

.channel-health-row:hover,
.priority-row:hover,
.pipeline-row:hover {
  background: #f8faff;
}

.channel-health-row > i,
.priority-row > i {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 7px;
  background: #e9f1ff;
  color: var(--blue);
  font-style: normal;
}

.channel-health-row > span,
.priority-row > span {
  min-width: 0;
}

.channel-health-row strong,
.channel-health-row small,
.priority-row strong,
.priority-row small {
  display: block;
}

.channel-health-row strong,
.priority-row strong {
  font-size: 11px;
}

.channel-health-row small,
.priority-row small {
  overflow: hidden;
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.channel-health-row em {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 9px;
  font-style: normal;
  font-weight: 800;
}

.channel-health-row em > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.channel-health-row em.connected { color: var(--green); }
.channel-health-row em.setup { color: #bc6a0b; }
.channel-health-row > b { color: var(--muted); }

.content-performance td:first-child strong,
.content-performance td:first-child small {
  display: block;
}

.content-performance td:first-child small {
  margin-top: 4px;
  color: var(--muted);
}

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

.priority-row > b {
  color: var(--blue);
  font-size: 9px;
}

.priority-actions {
  align-self: start;
}

.content-performance {
  overflow: auto;
}

.content-performance .data-table {
  min-width: 630px;
}

@media (max-width: 1240px) {
  .dashboard-main {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .growth-panel {
    grid-column: 1 / -1;
  }
}

@media (max-width: 1000px) {
  .dashboard-main,
  .dashboard-lower {
    grid-template-columns: minmax(0, 1fr);
  }

  .growth-panel {
    grid-column: auto;
  }
}

@media (min-width: 761px) {
  .app {
    display: grid;
    grid-template-columns: 232px minmax(0, 1fr);
  }

  .sidebar {
    position: sticky;
    inset: auto;
    top: 0;
    width: 232px;
    height: 100vh;
    transform: none;
  }

  .workspace {
    min-width: 0;
    margin-left: 0;
  }

  .workspace #menu,
  .sidebar-scrim {
    display: none;
  }
}

@media (max-width: 760px) {
  .sidebar {
    z-index: 15;
    width: min(280px, 85vw);
    box-shadow: 18px 0 50px rgba(8, 13, 30, 0.28);
  }

  .app.menu-open .sidebar-scrim {
    opacity: 1;
    pointer-events: auto;
  }

  .workspace {
    min-width: 0;
  }

  .dashboard-intro{align-items:stretch;flex-direction:column}.dashboard-intro .primary{width:100%}.dashboard-main,.dashboard-lower{grid-template-columns:1fr}.overview-chart{height:210px}.performance-metrics{grid-template-columns:1fr 1fr}
}

@media (max-width: 520px){.performance-metrics{grid-template-columns:1fr}.dashboard-intro h2{font-size:26px}.overview-chart{overflow-x:auto}.overview-bar{min-width:24px}}

@media (max-width: 520px) {
  .workspace > header {
    gap: 12px;
  }

  .workspace header h1 {
    font-size: 20px;
    white-space: nowrap;
  }

  .workspace header .eyebrow {
    font-size: 9px !important;
  }

  .header-actions {
    margin-left: auto;
  }

  .header-actions a {
    font-size: 10px;
    white-space: nowrap;
  }

  .dashboard-main .panel-head,
  .dashboard-lower .panel-head {
    align-items: flex-start;
    gap: 10px;
  }

  .dashboard-main .panel-head button,
  .dashboard-lower .panel-head button {
    padding: 8px 9px;
    font-size: 10px;
  }

  .dashboard-main .panel-head h3,
  .dashboard-lower .panel-head h3 {
    font-size: 14px;
  }

  .growth-chart {
    height: 248px;
  }

  .growth-chart svg {
    height: 224px;
  }
}
