/* ============================================================================
   RELAY — DASHBOARD, AUTOMATION FLOW & LIVE RUN FEED COMPONENTS
   (assets/pane/home.css)
   ============================================================================ */

/* Main Grid Layout */
.relay-grid-dashboard {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.col-span-12 { grid-column: span 12 / span 12; }
.col-span-8  { grid-column: span 8 / span 8; }
.col-span-7  { grid-column: span 7 / span 7; }
.col-span-6  { grid-column: span 6 / span 6; }
.col-span-5  { grid-column: span 5 / span 5; }
.col-span-4  { grid-column: span 4 / span 4; }

@media (max-width: 1100px) {
  .col-span-8, .col-span-7, .col-span-6, .col-span-5, .col-span-4 {
    grid-column: span 12 / span 12;
  }
}

/* Gauge Chart / Circular Progress */
.relay-gauge-wrap {
  position: relative;
  width: 100%;
  max-width: 220px;
  margin: 16px auto 8px;
}
.relay-gauge-val {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
}
.relay-gauge-val b {
  font-size: 32px;
  font-weight: 500;
  letter-spacing: -0.025em;
  font-variant-numeric: tabular-nums;
  color: var(--color-ink);
  line-height: 1;
  display: block;
}
.relay-gauge-val small {
  font-size: 12px;
  color: var(--color-muted);
}

/* Flow Graph Visualizer */
.relay-flow-container {
  background-color: var(--color-surface);
  border-radius: var(--radius-sub);
  padding: 24px 20px;
  position: relative;
  min-height: 240px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  overflow-x: auto;
  gap: 16px;
}

.relay-flow-node {
  background-color: #ffffff;
  border-radius: 18px;
  padding: 12px 16px;
  box-shadow: 0 4px 14px rgba(20, 23, 27, 0.06);
  border: 1px solid rgba(20, 23, 27, 0.05);
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
  z-index: 3;
  min-width: 150px;
  flex-shrink: 0;
}

.relay-flow-node .node-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background-color: var(--color-surface);
  color: var(--color-ink);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.relay-flow-node .node-ico svg {
  width: 18px;
  height: 18px;
  stroke-width: 2px;
}

.relay-flow-connector {
  flex: 1;
  height: 2px;
  background: repeating-linear-gradient(90deg, #1f9d63 0, #1f9d63 6px, transparent 6px, transparent 12px);
  position: relative;
  min-width: 30px;
}
.relay-flow-connector::after {
  content: "";
  position: absolute;
  right: -2px;
  top: -3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #1f9d63;
}

/* Usage Bar Chart */
.relay-usage-chart {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  height: 180px;
  padding: 16px 0 0;
  border-bottom: 1px solid rgba(20, 23, 27, 0.08);
}

.relay-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  height: 100%;
}

.relay-bar-track {
  width: 100%;
  max-width: 32px;
  height: 100%;
  display: flex;
  align-items: flex-end;
  background-color: rgba(20, 23, 27, 0.04);
  border-radius: 8px;
  overflow: hidden;
}

.relay-bar-fill {
  width: 100%;
  background-color: var(--color-ink);
  border-radius: 8px;
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.relay-bar-col.is-active .relay-bar-fill {
  background-color: var(--color-mint-deep);
}

.relay-bar-label {
  font-size: 11px;
  color: var(--color-muted);
  font-weight: 500;
}

/* Integration Connections Badges */
.relay-integrations-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.relay-integration-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--color-surface);
  border-radius: var(--radius-pill);
  padding: 8px 16px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-ink);
  border: 1px solid rgba(20, 23, 27, 0.05);
}
.relay-integration-pill .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-mint-deep);
}
