/* WhatsApp API Platform — Design System */
/* Tailwind CDN handles utilities; this file adds custom layers */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:wght@600;700&family=IBM+Plex+Mono:wght@400;500&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ── Theme tokens ── */
:root {
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-display: 'Fraunces', Georgia, serif;
  --font-mono: 'IBM Plex Mono', Consolas, 'Courier New', monospace;
  --bg: #eef2f3;
  --bg-elevated: rgba(255, 255, 255, 0.9);
  --bg-soft: rgba(248, 250, 252, 0.84);
  --text: #172033;
  --muted: #647084;
  --border: rgba(94, 107, 129, 0.2);
  --shadow: 0 18px 45px rgba(23, 32, 51, 0.1);
  --shadow-tight: 0 8px 22px rgba(23, 32, 51, 0.08);
  --accent: #0f766e;
  --accent-strong: #0f5f58;
  --accent-soft: rgba(15, 118, 110, 0.12);
  --ink: #172033;
  --violet: #4f46e5;
  --violet-soft: rgba(79, 70, 229, 0.11);
  --danger: #b91c1c;
  --danger-soft: rgba(185, 28, 28, 0.12);
  --warning: #b45309;
  --warning-soft: rgba(180, 83, 9, 0.12);
  --success: #047857;
  --success-soft: rgba(4, 120, 87, 0.12);
}

.dark {
  --bg: #0b1120;
  --bg-elevated: rgba(15, 23, 42, 0.9);
  --bg-soft: rgba(30, 41, 59, 0.74);
  --text: #e7edf7;
  --muted: #94a3b8;
  --border: rgba(148, 163, 184, 0.16);
  --shadow: 0 22px 60px rgba(2, 6, 23, 0.38);
  --shadow-tight: 0 10px 28px rgba(2, 6, 23, 0.28);
  --accent: #2dd4bf;
  --accent-strong: #5eead4;
  --accent-soft: rgba(45, 212, 191, 0.14);
  --ink: #e7edf7;
  --violet: #a5b4fc;
  --violet-soft: rgba(165, 180, 252, 0.12);
  --danger: #f87171;
  --danger-soft: rgba(248, 113, 113, 0.12);
  --warning: #f59e0b;
  --warning-soft: rgba(245, 158, 11, 0.12);
  --success: #34d399;
  --success-soft: rgba(52, 211, 153, 0.12);
}

/* ── Base resets ── */
*, *::before, *::after { box-sizing: border-box; }
[x-cloak] { display: none !important; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.sessions-console-body {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.11), transparent 34rem),
    linear-gradient(225deg, rgba(79, 70, 229, 0.1), transparent 30rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0)),
    var(--bg);
  background-attachment: fixed;
}

.dark body.sessions-console-body {
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.12), transparent 34rem),
    linear-gradient(225deg, rgba(99, 102, 241, 0.16), transparent 30rem),
    linear-gradient(180deg, rgba(15, 23, 42, 0.44), rgba(15, 23, 42, 0)),
    var(--bg);
  background-attachment: fixed;
}

.font-display {
  font-family: var(--font-display);
}

body.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(45, 212, 191, 0.18), transparent 28rem),
    linear-gradient(225deg, rgba(165, 180, 252, 0.18), transparent 28rem),
    #0b1120;
}

body.market-body {
  min-height: 100vh;
  background: #ffffff;
  font-family: var(--font-sans);
}

.market-hero {
  background: #0f172a;
}

.market-card {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.5rem;
  padding: 1.35rem;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.08);
}

.market-card__label {
  margin: 0 0 0.7rem;
  color: #0f766e;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.market-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.55rem;
  line-height: 1.15;
  color: #172033;
}

.market-card p:last-child {
  margin: 0.9rem 0 0;
  color: #647084;
  line-height: 1.65;
}

.market-action {
  display: block;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0.5rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
  font-weight: 800;
  text-decoration: none;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.market-action:hover {
  border-color: rgba(45, 212, 191, 0.55);
  background: rgba(45, 212, 191, 0.12);
  transform: translateY(-1px);
}

.market-proof {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 0.7rem 0.9rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.kiabo-simulator {
  position: relative;
}

.kiabo-simulator::before {
  content: '';
  position: absolute;
  inset: 0.9rem 0.9rem auto auto;
  width: 7rem;
  height: 7rem;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 999px;
  pointer-events: none;
}

.kiabo-sim-field {
  display: grid;
  gap: 0.45rem;
}

.kiabo-sim-field span {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kiabo-sim-field input {
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 0.5rem;
  padding: 0.9rem 1rem;
  background: #ffffff;
  color: #0f172a;
  font-size: 1rem;
  font-weight: 900;
  outline: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.kiabo-sim-field input:focus {
  border-color: #0f766e;
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}

.kiabo-sim-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(10.75rem, 1fr));
  gap: 0.75rem;
  min-width: 0;
}

.kiabo-sim-metric {
  display: flex;
  min-width: 0;
  min-height: 8.25rem;
  flex-direction: column;
  justify-content: space-between;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 0.5rem;
  padding: 1rem;
  background: #f8fafc;
}

.kiabo-sim-metric span,
.kiabo-sim-metric small {
  display: block;
}

.kiabo-sim-metric span {
  color: #475569;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.kiabo-sim-metric strong {
  display: block;
  margin-top: 0.8rem;
  color: #0f172a;
  font-size: clamp(1.2rem, 2.2vw, 1.7rem);
  font-weight: 950;
  line-height: 1.05;
  overflow-wrap: anywhere;
}

.kiabo-sim-metric small {
  margin-top: 0.55rem;
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
}

.login-shell {
  width: min(100%, 26rem);
  padding: 2rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 24px 70px rgba(2, 6, 23, 0.32);
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 1.4rem;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.dark .login-brand {
  color: #cbd5e1;
}

.login-brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 0.7rem;
  background: #0f766e;
  color: #fff;
  letter-spacing: 0;
}

.dark .login-shell {
  background: rgba(15, 23, 42, 0.94);
  border-color: rgba(148, 163, 184, 0.18);
}

.login-title {
  margin: 0;
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 800;
  color: #0f172a;
}

.dark .login-title {
  color: #f8fafc;
}

.login-subtitle {
  margin: 0.75rem 0 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.5;
}

.dark .login-subtitle {
  color: #94a3b8;
}

.login-form {
  margin-top: 1.75rem;
}

.login-label {
  display: block;
  margin-bottom: 0.5rem;
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
}

.dark .login-label {
  color: #cbd5e1;
}

.login-input,
.login-button,
.theme-toggle,
.login-alert {
  border-radius: 0.9rem;
}

.login-input {
  width: 100%;
  padding: 0.9rem 1rem;
  border: 1px solid #cbd5e1;
  background: rgba(255, 255, 255, 0.96);
  color: #0f172a;
  font: inherit;
}

.dark .login-input {
  background: rgba(15, 23, 42, 0.92);
  border-color: #334155;
  color: #f8fafc;
}

.login-input::placeholder {
  color: #94a3b8;
}

.login-button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.95rem 1rem;
  border: 0;
  background: linear-gradient(135deg, #0f766e, #172033);
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.15s ease;
}

.login-button:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
}

.login-alert {
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border: 1px solid rgba(185, 28, 28, 0.2);
  background: rgba(254, 226, 226, 0.9);
  color: #b91c1c;
  font-size: 0.92rem;
}

.dark .login-alert {
  background: rgba(127, 29, 29, 0.32);
  border-color: rgba(248, 113, 113, 0.24);
  color: #fecaca;
}

.theme-toggle {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(10px);
  cursor: pointer;
}

.theme-toggle:hover {
  background: rgba(255, 255, 255, 0.22);
}

/* ── Operational UI polish ── */
.nav-link {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.7rem;
  padding: 0.45rem 0.75rem;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
  line-height: 1;
  transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.55);
  color: var(--text);
}

.dark .nav-link:hover {
  background: rgba(15, 23, 42, 0.5);
}

.nav-link.is-active {
  border-color: rgba(15, 118, 110, 0.3);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

button,
a {
  touch-action: manipulation;
}

button[class*="rounded-"],
a[class*="rounded-"],
input[class*="rounded-"],
textarea[class*="rounded-"],
select[class*="rounded-"] {
  border-radius: 0.75rem !important;
}

input,
textarea,
select {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

input:disabled,
textarea:disabled,
select:disabled {
  cursor: not-allowed;
}

textarea {
  line-height: 1.55;
  resize: vertical;
}

pre {
  max-height: 26rem;
}

.empty-state,
[class*="border-dashed"] {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.44), rgba(148, 163, 184, 0.08));
}

/* ── Scrollbar styling ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

/* ── Code blocks ── */
pre, code { font-family: var(--font-mono); }
pre {
  border-radius: 0.75rem;
  padding: 1rem;
  overflow-x: auto;
  font-size: 0.8125rem;
  line-height: 1.6;
}

/* ── Transitions ── */
.transition-theme {
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

/* ── Toast animations ── */
@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0);    opacity: 1; }
  to   { transform: translateX(100%); opacity: 0; }
}
.toast-enter { animation: toast-in 0.3s ease forwards; }
.toast-exit  { animation: toast-out 0.3s ease forwards; }

/* ── Skeleton loading ── */
@keyframes shimmer {
  0%   { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.5rem;
}
.dark .skeleton {
  background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%);
  background-size: 200% 100%;
}

/* ── Focus rings ── */
:focus-visible {
  outline: 2px solid #3b82f6;
  outline-offset: 2px;
}
.dark :focus-visible {
  outline-color: #60a5fa;
}

/* ── Badge pulse ── */
@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.pulse-dot { animation: pulse-dot 2s ease-in-out infinite; }

/* ── Copy button flash ── */
.copy-flash {
  animation: flash 0.4s ease;
}
@keyframes flash {
  0%   { background-color: #22c55e; color: white; }
  100% { background-color: transparent; }
}

.console-panel {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  border-radius: 1rem !important;
}

.console-soft-panel {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  border-radius: 0.85rem !important;
}

.console-kpi {
  position: relative;
  overflow: hidden;
  min-height: 8.5rem;
}

.console-kpi::after {
  content: '';
  position: absolute;
  inset: auto -30% -55% auto;
  width: 8rem;
  height: 8rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.24), rgba(251, 191, 36, 0.1));
  pointer-events: none;
}

.console-kpi::before {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.22rem;
  background: linear-gradient(180deg, var(--accent), var(--violet));
  opacity: 0.62;
}

.session-row {
  border-radius: 0.8rem !important;
  box-shadow: var(--shadow-tight);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.session-row:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 30px rgba(23, 32, 51, 0.12);
}

.session-row.is-active {
  border-color: rgba(15, 118, 110, 0.42);
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.12), rgba(79, 70, 229, 0.07));
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.08), var(--shadow-tight);
}

.dark .session-row.is-active {
  background: linear-gradient(135deg, rgba(45, 212, 191, 0.16), rgba(15, 23, 42, 0.24));
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border-radius: 999px;
  padding: 0.3rem 0.62rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.status-pill::before {
  content: '';
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.85;
}

.status-connected {
  color: var(--success);
  background: var(--success-soft);
}

.status-connecting,
.status-pairing {
  color: var(--warning);
  background: var(--warning-soft);
}

.status-disconnected,
.status-closed,
.status-error {
  color: var(--danger);
  background: var(--danger-soft);
}

.status-idle,
.status-default {
  color: var(--accent);
  background: var(--accent-soft);
}

.metric-value {
  font-size: clamp(1.8rem, 2vw, 2.5rem);
  line-height: 1;
  font-weight: 800;
}

.workspace-tab {
  border: 1px solid transparent;
  transition: all 0.18s ease;
}

.workspace-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.operational-workspace {
  display: grid;
  gap: 1rem;
}

.operational-workspace__content {
  min-width: 0;
}

.operational-workspace__content > .mt-6 {
  margin-top: 0;
}

.workspace-tab.is-active {
  background: #020617;
  border-color: #020617;
  color: #fff;
  box-shadow: none;
}

.dark .workspace-tab.is-active {
  background: #fff;
  border-color: #fff;
  color: #020617;
}

.automation-flow-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.automation-flow-strip__step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  column-gap: 0.75rem;
  row-gap: 0.15rem;
  border: 1px solid var(--border);
  border-radius: 0.9rem;
  padding: 0.8rem 0.9rem;
  background: rgba(255, 255, 255, 0.48);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.dark .automation-flow-strip__step {
  background: rgba(15, 23, 42, 0.34);
}

.automation-flow-strip__step:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
}

.automation-flow-strip__step span {
  grid-row: span 2;
  display: inline-flex;
  width: 2rem;
  height: 2rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.7rem;
  background: rgba(148, 163, 184, 0.16);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--text);
}

.automation-flow-strip__step strong {
  min-width: 0;
  font-size: 0.86rem;
  color: var(--text);
}

.automation-flow-strip__step small {
  min-width: 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.automation-flow-strip__step.is-active {
  border-color: rgba(15, 118, 110, 0.35);
  background: rgba(15, 118, 110, 0.1);
}

.automation-flow-strip__step.is-active span {
  background: rgba(15, 118, 110, 0.16);
  color: var(--accent-strong);
}

@media (max-width: 760px) {
  .automation-flow-strip {
    grid-template-columns: 1fr;
  }
}

.action-cockpit {
  display: grid;
  gap: 1rem;
}

.action-cockpit__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.action-cockpit__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-cockpit__title {
  margin: 0.35rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2vw, 2rem);
  line-height: 1.05;
  color: var(--text);
}

.action-cockpit__subtitle {
  max-width: 44rem;
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--muted);
}

.action-cockpit__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.action-cockpit__chip {
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  padding: 0.45rem 0.8rem;
  background: rgba(148, 163, 184, 0.1);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--text);
}

.action-cockpit__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.85rem;
  padding-top: 0.9rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.34);
}

.action-cockpit__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.action-cockpit__tab {
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.65rem 1rem;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  transition: all 0.18s ease;
}

.dark .action-cockpit__tab {
  background: rgba(15, 23, 42, 0.26);
}

.action-cockpit__tab.is-active {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.12);
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.1);
}

.action-cockpit__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.action-list-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.action-list-filter__pill {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.5rem 0.85rem;
  background: rgba(255, 255, 255, 0.42);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: all 0.18s ease;
}

.dark .action-list-filter__pill {
  background: rgba(15, 23, 42, 0.26);
}

.action-list-filter__pill.is-active {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.3);
  background: rgba(15, 118, 110, 0.12);
}

.action-list-item {
  border: 1px solid var(--border);
  border-radius: 0.8rem;
  padding: 0.85rem 0.95rem;
  background: rgba(255, 255, 255, 0.62);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.dark .action-list-item {
  background: rgba(15, 23, 42, 0.42);
}

.action-list-item:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.24);
}

.action-list-item.is-selected {
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.1);
}

.action-list-item__count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.8rem;
  height: 1.8rem;
  border-radius: 0.65rem;
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--text);
}

.action-toggle-button {
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.7rem 1rem;
  background: rgba(255, 255, 255, 0.48);
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.action-toggle-button:hover {
  transform: translateY(-1px);
}

.action-toggle-button.is-suspend {
  border-color: rgba(245, 158, 11, 0.38);
  background: rgba(245, 158, 11, 0.11);
  color: #b45309;
}

.action-toggle-button.is-restore {
  border-color: rgba(20, 184, 166, 0.36);
  background: rgba(20, 184, 166, 0.12);
  color: var(--accent-strong);
}

.dark .action-toggle-button {
  background: rgba(15, 23, 42, 0.34);
}

.dark .action-toggle-button.is-suspend {
  color: #fbbf24;
}

.action-studio {
  display: grid;
  gap: 1.25rem;
  min-width: 0;
}

.action-studio__sidebar,
.action-studio__stack {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.action-studio__stage {
  min-width: 0;
}

.action-studio__panel,
.action-studio__surface,
.action-studio__hero,
.action-studio__empty {
  border: 1px solid var(--border);
  border-radius: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.78), rgba(255, 255, 255, 0.34)),
    var(--bg-elevated);
  box-shadow: var(--shadow);
}

.dark .action-studio__panel,
.dark .action-studio__surface,
.dark .action-studio__hero,
.dark .action-studio__empty {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.48)),
    var(--bg-elevated);
}

.action-studio__panel,
.action-studio__surface,
.action-studio__empty {
  padding: 1.15rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-studio__hero {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem;
}

.action-studio__hero-copy {
  max-width: 44rem;
  min-width: 0;
  overflow-wrap: anywhere;
}

.action-studio__hero-side {
  display: grid;
  gap: 0.8rem;
  justify-items: end;
}

.action-studio__eyebrow {
  margin: 0;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-studio__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 0.98;
  color: var(--text);
}

.action-studio__subtitle {
  margin: 0.8rem 0 0;
  max-width: 48rem;
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--muted);
}

.action-studio__chips,
.action-studio__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-end;
}

.action-studio__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.action-studio__metric {
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.38);
}

.dark .action-studio__metric {
  background: rgba(15, 23, 42, 0.28);
}

.action-studio__metric-label {
  display: block;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-studio__metric strong {
  display: block;
  margin-top: 0.45rem;
  font-size: 1.2rem;
  color: var(--text);
}

.action-studio__panel--tabs {
  padding-block: 0.9rem;
}

.action-studio__grid {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.action-studio__grid > *,
.action-builder,
.action-builder__canvas,
.action-builder__workspace,
.action-builder-editor,
.action-flow-map,
.action-flow-branches,
.action-flow-branch,
.action-flow-step,
.action-flow-step__card {
  min-width: 0;
}

.action-studio__surface--inspector {
  align-self: start;
}

.action-studio__empty {
  display: grid;
  justify-items: center;
  text-align: center;
  padding: 3rem 1.25rem;
}

.action-builder {
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: 0.95rem;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.32)),
    var(--bg-elevated);
}

.dark .action-builder {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 24%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.48)),
    var(--bg-elevated);
}

.action-builder__hero {
  display: grid;
  gap: 1rem;
}

.action-builder__presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.action-builder-preset {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.38);
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.dark .action-builder-preset {
  background: rgba(15, 23, 42, 0.26);
}

.action-builder-preset:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.35);
}

.action-builder-preset__label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--text);
}

.action-builder-preset__description {
  font-size: 0.75rem;
  line-height: 1.45;
  color: var(--muted);
}

.action-builder__canvas {
  position: relative;
  display: grid;
  gap: 0.85rem;
  margin-top: 1.1rem;
}

.action-builder__workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.1rem;
}

.action-builder-block {
  position: relative;
  display: grid;
  grid-template-columns: 2.8rem minmax(0, 1fr);
  gap: 0.9rem;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.action-builder-block__rail {
  position: absolute;
  left: 1.33rem;
  top: 2.65rem;
  bottom: -1rem;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(15, 118, 110, 0.28), rgba(148, 163, 184, 0.14));
}

.action-builder-block__index {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: 0.15rem;
  border-radius: 0.7rem;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: white;
  background: linear-gradient(135deg, #0f766e, #115e59);
}

.dark .action-builder-block__index {
  color: #082f2c;
  background: linear-gradient(135deg, #2dd4bf, #99f6e4);
}

.action-builder-block__body {
  border: 1px solid var(--border);
  border-radius: 0.85rem;
  padding: 0.95rem 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34)),
    var(--bg-elevated);
}

.dark .action-builder-block__body {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.46)),
    var(--bg-elevated);
}

.action-builder-block__label {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--text);
}

.action-builder-block__description {
  margin: 0.3rem 0 0;
  font-size: 0.85rem;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
}

.action-builder-block__hint {
  margin: 0.75rem 0 0;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}

.action-builder-block__actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.action-builder-block__drag {
  display: inline-flex;
  align-items: center;
  border-radius: 0.65rem;
  padding: 0.38rem 0.7rem;
  border: 1px dashed rgba(148, 163, 184, 0.42);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  cursor: grab;
  user-select: none;
}

.action-builder-block__toggle {
  border: 1px solid var(--border);
  border-radius: 0.65rem;
  padding: 0.5rem 0.9rem;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.46);
  transition: all 0.18s ease;
}

.dark .action-builder-block__toggle {
  background: rgba(15, 23, 42, 0.32);
}

.action-builder-block__toggle.is-active {
  color: var(--success);
  border-color: rgba(4, 120, 87, 0.24);
  background: var(--success-soft);
}

.action-builder-block.is-ready .action-builder-block__body {
  border-color: rgba(4, 120, 87, 0.24);
}

.action-builder-block.is-warning .action-builder-block__body {
  border-color: rgba(180, 83, 9, 0.24);
}

.action-builder-block.is-danger .action-builder-block__body {
  border-color: rgba(185, 28, 28, 0.24);
}

.action-builder-block.is-neutral .action-builder-block__body {
  border-color: rgba(15, 118, 110, 0.18);
}

.action-builder-block.is-selected .action-builder-block__body {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.08);
}

.action-builder-block.is-dragging {
  opacity: 0.54;
  transform: scale(0.985);
}

.action-builder-block.is-drop-target .action-builder-block__body {
  border-color: rgba(15, 118, 110, 0.42);
  box-shadow: 0 0 0 0.18rem rgba(15, 118, 110, 0.1);
}

.action-builder-block.is-drop-target .action-builder-block__drag {
  color: var(--accent-strong);
  border-color: rgba(15, 118, 110, 0.42);
  background: rgba(15, 118, 110, 0.08);
}

.action-builder-editor {
  align-self: start;
  position: static;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.1), transparent 24%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.76), rgba(255, 255, 255, 0.36)),
    var(--bg-elevated);
}

.dark .action-builder-editor {
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 22%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.48)),
    var(--bg-elevated);
}

.action-builder-editor__eyebrow {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-builder-editor__description {
  margin: 0.45rem 0 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--text);
}

.action-builder-editor__fields {
  display: grid;
  gap: 0.85rem;
  margin-top: 1rem;
}

.action-flow-readiness {
  min-width: min(100%, 22rem);
  border: 1px solid var(--border);
  border-radius: 1.25rem;
  padding: 0.9rem 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.22)),
    var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.dark .action-flow-readiness {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.72), rgba(15, 23, 42, 0.42)),
    var(--bg-elevated);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.action-flow-readiness__label {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.action-flow-readiness__label::before {
  content: '';
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 999px;
  background: currentColor;
  box-shadow: 0 0 0 0.2rem currentColor;
  opacity: 0.82;
}

.action-flow-readiness__message {
  margin: 0.5rem 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--text);
  overflow-wrap: anywhere;
}

.action-flow-map {
  position: relative;
  display: grid;
  gap: 1rem;
}

.action-flow-step {
  position: relative;
  display: grid;
  grid-template-columns: 3.25rem minmax(0, 1fr);
  gap: 1rem;
}

.action-flow-step__rail {
  position: absolute;
  left: 1.53rem;
  top: 3rem;
  bottom: -1.2rem;
  width: 2px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(15, 118, 110, 0.4), rgba(148, 163, 184, 0.16));
}

.dark .action-flow-step__rail {
  background:
    linear-gradient(180deg, rgba(45, 212, 191, 0.45), rgba(51, 65, 85, 0.2));
}

.action-flow-step__badge {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-top: 0.35rem;
  border-radius: 1rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: white;
  background: linear-gradient(135deg, #0f766e, #115e59);
  box-shadow: 0 18px 35px rgba(15, 118, 110, 0.22);
}

.dark .action-flow-step__badge {
  color: #082f2c;
  background: linear-gradient(135deg, #2dd4bf, #99f6e4);
  box-shadow: 0 20px 36px rgba(45, 212, 191, 0.15);
}

.action-flow-step__card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.5rem;
  padding: 1rem 1rem 1.1rem;
  background:
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.42)),
    var(--bg-elevated);
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.05);
}

.dark .action-flow-step__card {
  background:
    radial-gradient(circle at top right, rgba(45, 212, 191, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.82), rgba(15, 23, 42, 0.52)),
    var(--bg-elevated);
  box-shadow: 0 22px 45px rgba(2, 6, 23, 0.22);
}

.action-flow-step__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-flow-step__title {
  margin: 0.25rem 0 0;
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.15;
  color: var(--text);
}

.action-flow-step__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.action-flow-chip {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.38rem 0.7rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(148, 163, 184, 0.12);
  color: var(--text);
}

.action-flow-step__body {
  margin: 0.95rem 0 0;
  font-size: 0.94rem;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}

.action-flow-step__note {
  margin: 0.8rem 0 0;
  padding-top: 0.8rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.36);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.action-flow-step.is-ready .action-flow-step__card,
.action-flow-readiness.is-ready {
  border-color: rgba(4, 120, 87, 0.24);
}

.action-flow-step.is-ready .action-flow-step__badge,
.action-flow-readiness.is-ready .action-flow-readiness__label {
  color: var(--success);
}

.action-flow-step.is-ready .action-flow-step__badge {
  color: white;
  background: linear-gradient(135deg, #047857, #10b981);
  box-shadow: 0 18px 35px rgba(4, 120, 87, 0.22);
}

.dark .action-flow-step.is-ready .action-flow-step__badge {
  color: #052e2b;
  background: linear-gradient(135deg, #34d399, #6ee7b7);
}

.action-flow-step.is-warning .action-flow-step__card,
.action-flow-readiness.is-warning {
  border-color: rgba(180, 83, 9, 0.24);
}

.action-flow-step.is-warning .action-flow-step__badge,
.action-flow-readiness.is-warning .action-flow-readiness__label {
  color: var(--warning);
}

.action-flow-step.is-warning .action-flow-step__badge {
  color: white;
  background: linear-gradient(135deg, #b45309, #f59e0b);
  box-shadow: 0 18px 35px rgba(180, 83, 9, 0.22);
}

.dark .action-flow-step.is-warning .action-flow-step__badge {
  color: #422006;
  background: linear-gradient(135deg, #f59e0b, #fcd34d);
}

.action-flow-step.is-danger .action-flow-step__card,
.action-flow-readiness.is-danger {
  border-color: rgba(185, 28, 28, 0.24);
}

.action-flow-step.is-danger .action-flow-step__badge,
.action-flow-readiness.is-danger .action-flow-readiness__label {
  color: var(--danger);
}

.action-flow-step.is-danger .action-flow-step__badge {
  color: white;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  box-shadow: 0 18px 35px rgba(185, 28, 28, 0.22);
}

.dark .action-flow-step.is-danger .action-flow-step__badge {
  color: #450a0a;
  background: linear-gradient(135deg, #f87171, #fca5a5);
}

.action-flow-step.is-neutral .action-flow-step__card,
.action-flow-readiness.is-neutral {
  border-color: rgba(15, 118, 110, 0.18);
}

.action-flow-branches {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 1.75rem;
  padding: 1.15rem;
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.12), transparent 26%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.34)),
    var(--bg-elevated);
}

.dark .action-flow-branches {
  background:
    radial-gradient(circle at top left, rgba(251, 191, 36, 0.08), transparent 24%),
    linear-gradient(135deg, rgba(30, 41, 59, 0.78), rgba(15, 23, 42, 0.5)),
    var(--bg-elevated);
}

.action-flow-branches__heading {
  max-width: 36rem;
}

.action-flow-branches__eyebrow {
  margin: 0;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-flow-branches__title {
  margin: 0.45rem 0 0;
  font-family: var(--font-display);
  font-size: 1.1rem;
  line-height: 1.25;
  color: var(--text);
}

.action-flow-branches__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  margin-top: 1rem;
}

.action-flow-branch {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 1.4rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.7), rgba(255, 255, 255, 0.38)),
    rgba(255, 255, 255, 0.24);
}

.dark .action-flow-branch {
  background:
    linear-gradient(135deg, rgba(30, 41, 59, 0.84), rgba(15, 23, 42, 0.58)),
    rgba(15, 23, 42, 0.2);
}

.action-flow-branch__arrow {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.12);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--text);
}

.action-flow-branch__icon {
  font-size: 0.85rem;
  opacity: 0.72;
}

.action-flow-branch__title {
  margin: 0.85rem 0 0;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--text);
}

.action-flow-branch__body {
  margin: 0.55rem 0 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: var(--text);
  overflow-wrap: anywhere;
}

.action-flow-branch__outcome {
  margin: 0.85rem 0 0;
  padding-top: 0.75rem;
  border-top: 1px dashed rgba(148, 163, 184, 0.36);
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.action-flow-branch.is-ready {
  border-color: rgba(4, 120, 87, 0.24);
}

.action-flow-branch.is-warning {
  border-color: rgba(180, 83, 9, 0.24);
}

.action-flow-branch.is-danger {
  border-color: rgba(185, 28, 28, 0.24);
}

.action-flow-branch.is-neutral {
  border-color: rgba(15, 118, 110, 0.18);
}

@media (min-width: 1760px) {
  .action-builder__workspace {
    grid-template-columns: minmax(0, 1.35fr) minmax(380px, 0.95fr);
    align-items: start;
  }
}

@media (min-width: 1280px) {
  .action-studio {
    grid-template-columns: 1fr;
  }

  .action-studio__sidebar {
    position: static;
  }

  .action-studio__grid--operations,
  .action-studio__grid--insights {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1536px) {
  .action-studio {
    grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
    align-items: start;
  }

  .action-studio__sidebar {
    position: sticky;
    top: 1rem;
  }
}

@media (min-width: 1760px) {
  .action-studio__grid--design {
    grid-template-columns: minmax(0, 1.2fr) 380px;
    align-items: start;
  }

  .action-studio__grid--details {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 0.92fr);
    align-items: start;
  }
}

@media (max-width: 768px) {
  body.sessions-console-body > div {
    padding-inline: 0.75rem;
  }

  .metric-value {
    font-size: 1.65rem;
  }

  .nav-link {
    min-height: 2rem;
    font-size: 0.8rem;
  }

  .action-studio__metrics {
    grid-template-columns: 1fr;
  }

  .action-studio__hero-side,
  .action-studio__chips,
  .action-studio__actions {
    justify-content: flex-start;
  }

  .action-cockpit__bar {
    align-items: stretch;
  }

  .action-cockpit__tabs,
  .action-cockpit__actions {
    width: 100%;
  }

  .action-builder__presets {
    grid-template-columns: 1fr;
  }

  .action-builder__workspace {
    grid-template-columns: 1fr;
  }

  .action-builder-block {
    grid-template-columns: 1fr;
    gap: 0.6rem;
  }

  .action-builder-block__rail {
    display: none;
  }

  .action-builder-editor {
    position: static;
  }

  .action-flow-step {
    grid-template-columns: 1fr;
    gap: 0.7rem;
  }

  .action-flow-step__rail {
    display: none;
  }

  .action-flow-step__badge {
    margin-top: 0;
  }

  .action-flow-readiness {
    min-width: 100%;
  }

  .action-flow-branches__grid {
    grid-template-columns: 1fr;
  }
}

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

.bg-grid {
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.1) 1px, transparent 1px);
  background-size: 18px 18px;
}
