/* dashboard.css - Dashboard surface
 *
 * Extracted verbatim from style.css. Rules keep their original
 * relative order, and @media rules travel with the surface so its
 * responsive overrides still land after the rules they override.
 */

@media (min-width: 2560px) {
  html body .main .dashboard-view,
  html body .dashboard-view {
    max-width: min(1800px, calc(100vw - 280px - 4rem));
    margin-left: auto;
    margin-right: auto;
    padding: 2rem 2.5rem 3rem;
  }
  .dashboard-view .right-panel {
    width: 420px;
    min-width: 420px;
    flex-shrink: 0;
  }
}

@media (min-width: 3840px) {
  html body .main .dashboard-view,
  html body .dashboard-view {
    max-width: min(2400px, calc(100vw - 300px - 6rem));
    padding: 2.5rem 3rem 4rem;
  }
}

@media (min-width: 720px) {
  html[data-app-theme="dark"] body .dashboard-view .summary-stack {
    gap: 14px;
  }
  html[data-app-theme="dark"] body .dashboard-view .summary-stack > .card {
    min-height: auto;
  }
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower {
  display: block;
  margin-top: 1rem;
  padding: 0;
  background: transparent;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-section .automation-row,
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-list .automation-row {
  background: transparent;
  background-color: transparent;
  background-image: none;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  box-shadow: none;
  padding: 12px 0;
  margin: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-section .automation-row:last-child,
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-list .automation-row:last-child {
  border-bottom: none;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-section .activity-item,
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-feed .activity-item {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 0;
  box-shadow: none;
  padding: 10px 0;
  margin: 0;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-section .activity-item:last-child,
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-feed .activity-item:last-child {
  border-bottom: none;
}

@media (min-width: 720px) {
  html[data-app-theme="dark"] body .dashboard-view .kpi-grid {
    gap: 1rem;
    margin-top: 1rem;
  }
}
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item[data-type="email"] .activity-dot,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item.is-email .activity-dot {
  background: rgba(25, 118, 210, 0.55);
}
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item[data-type="report"] .activity-dot,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item.is-report .activity-dot {
  background: rgba(46, 125, 50, 0.55);
}
html[data-app-theme="dark"] body .dashboard-view {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 16px 12px;
  min-height: calc(100vh - 60px);
  max-height: calc(100vh - 60px);
  overflow: hidden;
  box-sizing: border-box;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero {
  margin: 0;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower {
  margin: 0;
  gap: 10px;
  flex: 0 0 auto;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card {
  padding: 10px 16px;
  gap: 10px;
  border-radius: 12px;
  flex: 0 0 auto;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .coo-kpi-grid {
  gap: 6px;
  margin: 0;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
  width: 100%;
  margin: 0;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-label {
  color: #B5B7BE;
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.1;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-value {
  color: #E3E1DD;
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-footer,
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-trend,
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-unavailable,
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-loading,
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .sparkline {
  color: #B5B7BE;
  font-size: 10px;
  margin: 0;
  line-height: 1;
}
html[data-app-theme="dark"] body .dashboard-view > #kpi-grid:not(.kpi-grid--hero) {
  display: none;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack {
  gap: 8px;
}
html[data-app-theme="dark"] body .dashboard-view #hero-quick-actions {
  margin-top: 0;
}
html[data-app-theme="dark"] body .dashboard-view #hero-quick-actions .quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
}
html[data-app-theme="dark"] body .dashboard-view #hero-quick-actions .qa-btn,
html[data-app-theme="dark"] body .dashboard-view #hero-quick-actions button {
  width: 100%;
  min-height: 34px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #E3E1DD;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  outline: none;
  transition: background 140ms ease, border-color 140ms ease, color 140ms ease;
  -webkit-appearance: none;
  appearance: none;
}
html[data-app-theme="dark"] body .dashboard-view #hero-quick-actions .qa-btn:hover,
html[data-app-theme="dark"] body .dashboard-view #hero-quick-actions button:hover {
  background: rgba(25, 118, 210, 0.14);
  border-color: rgba(25, 118, 210, 0.45);
  color: #FFF;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-section,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .card {
  padding: 10px 14px;
  border-radius: 12px;
  background: #1F2121;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 0;
  max-height: 200px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .section-eyebrow,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .section-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #B5B7BE;
  text-transform: uppercase;
  margin: 0;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item {
  padding: 6px 0;
  min-height: 0;
  font-size: 12px;
  line-height: 1.35;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .view-all-link {
  display: inline-block;
  margin-top: 4px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 11.5px;
  color: #1976D2;
  text-decoration: none;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .view-all-link:hover {
  color: #4FA3E8;
  text-decoration: underline;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row:last-of-type,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item:last-of-type {
  border-bottom: none;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack {
  gap: 6px;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack h2,
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack h3,
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .summary-eyebrow,
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .summary-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin: 0 0 4px 0;
  line-height: 1;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .summary-row,
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack [class*="summary-row"],
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack li,
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .row {
  font-size: 11.5px;
  padding: 2px 0;
  margin: 0;
  min-height: 18px;
  line-height: 1.3;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack {
  max-height: 420px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card {
  max-height: 460px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .card.panel,
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack > .card,
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack > .panel {
  padding: 8px 12px;
  border-radius: 10px;
  background: #1F2121;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .panel-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B5B7BE;
  margin: 0 0 4px 0;
  line-height: 1.1;
  font-weight: 600;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  margin: 0;
  min-height: 20px;
  height: 20px;
  font-size: 11.5px;
  line-height: 1.2;
  border: 0;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .summary-item span {
  color: #B5B7BE;
  font-size: 11.5px;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .summary-stack .summary-item strong {
  color: #E3E1DD;
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack {
  gap: 6px;
  max-height: 460px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card,
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .panel {
  padding: 8px 12px;
  border-radius: 10px;
  background: #1F2121;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .panel-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B5B7BE;
  margin: 0 0 4px 0;
  line-height: 1.1;
  font-weight: 700;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 2px 0;
  margin: 0;
  min-height: 20px;
  height: 20px;
  font-size: 11.5px;
  line-height: 1.2;
  border: 0;
  border-bottom: 0;
  border-top: 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item span {
  color: #B5B7BE;
  font-size: 11.5px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item strong {
  color: #E3E1DD;
  font-size: 11.5px;
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .quick-actions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0;
  padding: 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .quick-actions-grid .qa-btn,
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .quick-actions-grid button {
  width: 100%;
  min-height: 32px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.10);
  border-radius: 8px;
  color: #E3E1DD;
  font-size: 11.5px;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  box-shadow: none;
  outline: none;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .hero-card {
  max-height: 460px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > #chat-panel {
  display: none;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  align-items: stretch;
  background: transparent;
  border: 0;
  padding: 0;
  max-height: 220px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .card,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .right-section {
  padding: 10px 14px;
  border-radius: 12px;
  background: #1F2121;
  border: 1px solid rgba(255, 255, 255, 0.06);
  min-height: 0;
  max-height: 220px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .section-label {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  color: #B5B7BE;
  text-transform: uppercase;
  font-weight: 700;
  margin: 0 0 4px 0;
  line-height: 1;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item {
  padding: 5px 0;
  min-height: 0;
  font-size: 12px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row:last-of-type,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item:last-of-type {
  border-bottom: 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .hero-card,
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack {
  max-height: 470px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card,
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .panel {
  padding: 10px 14px;
  border-radius: 12px;
  background: #1F2121;
  border: 1px solid rgba(255, 255, 255, 0.06);
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .panel-title {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #B5B7BE;
  margin: 0 0 8px 0;
  line-height: 1;
  font-weight: 600;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 5px 0;
  margin: 0;
  min-height: 0;
  height: auto;
  gap: 1px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item:last-of-type {
  border-bottom: 0;
  padding-bottom: 2px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item span {
  color: #B5B7BE;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  line-height: 1.1;
  text-align: left;
  max-width: none;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item strong {
  color: #E3E1DD;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
  text-align: left;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  width: 100%;
  display: block;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .eyebrow {
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #B5B7BE;
  margin: 0;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .hero-headline {
  font-size: 22.5px;
  line-height: 1.15;
  margin: 2px 0 0 0;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .hero-lead {
  font-size: 12.5px;
  color: #B5B7BE;
  margin: 0 0 4px 0;
  line-height: 1.3;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-label {
  font-size: 10px;
  letter-spacing: 0.08em;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card .kpi-value {
  font-size: 16px;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel {
  max-height: 240px;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .card,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .right-section {
  max-height: 240px;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .section-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  font-weight: 600;
  margin: 0 0 6px 0;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row:nth-of-type(n+4),
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item:nth-of-type(n+4) {
  display: none;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item {
  padding: 6px 0;
  font-size: 12px;
  line-height: 1.35;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row:nth-of-type(3),
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item:nth-of-type(3),
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row:last-of-type,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item:last-of-type {
  border-bottom: 0;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-name,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-title {
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.3;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-sub,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-meta {
  font-size: 11px;
  color: #B5B7BE;
  line-height: 1.3;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .view-all-link {
  display: inline-block;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.03em;
  color: #4FA3E8;
  text-decoration: none;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .view-all-link:hover {
  color: #7BC0F0;
  text-decoration: underline;
}
html[data-app-theme="dark"] body .dashboard-view {
  gap: 10px;
  padding: 8px 16px 12px;
}
html[data-app-theme="dark"] body .dashboard-view .hero-card .kpi-grid--hero .kpi-card.skeleton-card .kpi-loading-hint {
  color: #8A8E96;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  margin: 4px 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  padding: 3px 0;
  margin: 0;
  min-height: 0;
  height: auto;
  gap: 4px 8px;
  border: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item:last-of-type {
  border-bottom: 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item span {
  flex: 0 0 auto;
  color: #B5B7BE;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
  text-align: left;
  max-width: 45%;
  white-space: normal;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item strong {
  flex: 1 1 auto;
  color: #E3E1DD;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
  text-align: right;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  max-width: 100%;
  width: auto;
  display: inline;
  min-width: 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card,
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .panel {
  padding: 8px 12px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .panel-title {
  margin: 0 0 6px 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack {
  overflow-y: auto;
  overflow-x: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .card,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .right-section,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel #automations-section,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel #activity-section {
  max-height: 270px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .automation-row,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower .activity-item {
  padding: 5px 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack {
  overflow: hidden;
  gap: 8px;
  display: flex;
  flex-direction: column;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card.panel:nth-of-type(1),
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card.panel:nth-of-type(2) {
  max-height: 188px;
  overflow: hidden;
  flex: 0 0 auto;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack #hero-quick-actions {
  flex: 0 0 auto;
  max-height: 80px;
  min-height: 70px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item {
  padding: 2px 0;
  font-size: 11px;
  line-height: 1.25;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item span {
  font-size: 11px;
  line-height: 1.25;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item strong {
  font-size: 11.5px;
  line-height: 1.25;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card.panel {
  padding: 8px 11px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .panel-title {
  font-size: 10.5px;
  letter-spacing: 0.08em;
  margin: 0 0 5px 0;
  line-height: 1.2;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-section .automation-row,
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-list .automation-row,
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-section .activity-item,
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-feed .activity-item {
  padding: 10px 0;
  min-height: 56px;
  max-height: 56px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 12px;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel .automation-row .auto-status,
html[data-app-theme="dark"] body .dashboard-view .right-panel .automation-row > span:first-child,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item .activity-dot,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item > span:first-child {
  width: 8px;
  height: 8px;
  min-width: 8px;
  min-height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
  border: none;
  margin-top: 0;
  align-self: center;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item .activity-dot {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel .automation-row .automation-name,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item .activity-title {
  font-size: 13px;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel .automation-row .automation-sub,
html[data-app-theme="dark"] body .dashboard-view .right-panel .automation-row .text-muted,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item .activity-meta,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item .activity-body,
html[data-app-theme="dark"] body .dashboard-view .right-panel .activity-item .activity-sub {
  font-size: 11.5px;
  line-height: 1.25;
  margin: 2px 0 0 0;
  color: #8B8D93;
}
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-section .automation-row:last-of-type,
html[data-app-theme="dark"] body .dashboard-view .right-panel #automations-list .automation-row:last-of-type,
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-section .activity-item:last-of-type,
html[data-app-theme="dark"] body .dashboard-view .right-panel #activity-feed .activity-item:last-of-type {
  border-bottom: none;
}
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .card,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel > .right-section,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel #automations-section,
html[data-app-theme="dark"] body .dashboard-view .dashboard-lower > .right-panel #activity-section {
  max-height: 260px;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1px;
  padding: 3px 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack > span {
  text-align: left;
  color: #8B8D93;
  font-size: 11px;
  line-height: 1.25;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack > strong {
  text-align: right;
  color: #E3E1DD;
  font-size: 11.5px;
  font-weight: 600;
  line-height: 1.3;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card.panel:nth-of-type(1) {
  max-height: 215px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card.panel {
  overflow: hidden;
  min-width: 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack {
  min-width: 0;
  overflow: hidden;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack > strong {
  font-size: 11.5px;
  line-height: 1.35;
  letter-spacing: 0;
  /* Cap value width so it MUST wrap when text is longer than ~half the panel */
  max-width: 56%;
  width: auto;
  display: inline-block;
  margin-left: auto;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 5px 0;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack > span {
  align-self: flex-start;
  font-size: 11px;
  line-height: 1.25;
  margin-bottom: 2px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card.panel:nth-of-type(1) {
  max-height: 230px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack > .card.panel:nth-of-type(2) {
  max-height: 145px;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack .summary-item--stack > strong {
  hyphens: none;
  word-break: normal;
  overflow-wrap: break-word;
}
html[data-app-theme="dark"] body .dashboard-view .page-hero .summary-stack #hero-quick-actions {
  min-height: 110px;
  max-height: 130px;
  padding: 14px 14px;
  display: flex;
  flex-direction: column;
}
html body .dashboard-view .quick-actions-grid button:hover {
  background: #333 !important;
  border-color: rgba(255,255,255,0.12) !important;
}
html body .dashboard-view .coo-kpi-btn,
html body .dashboard-view .hero-card .coo-kpi-grid .coo-kpi-btn {
  border: 1px solid rgba(255,255,255,0.06) !important;
  border-radius: 12px !important;
}
html body .dashboard-view .coo-kpi-btn:hover {
  border-color: rgba(33,150,243,0.35) !important;
}

@media (min-width: 1024px) {
  html body .dashboard-view .page-hero {
    display: grid !important;
    grid-template-columns: 1.5fr 1fr !important;
    gap: 20px !important;
    align-items: start !important;
  }
  html body .dashboard-view .coo-kpi-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}
