:root {
  --void: #02040a;
  --void-mid: #060b14;
  --text: #e8f0ff;
  --text-muted: #8b9cb5;
  --accent-cyan: #2dd4bf;
  --accent-sky: #38bdf8;
  --accent-violet: #a78bfa;
  --accent-fuchsia: #e879f9;
  --glass: rgba(8, 14, 28, 0.78);
  --glass-border: rgba(120, 200, 255, 0.14);
  --glow-cyan: 0 0 32px rgba(45, 212, 191, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-display: "Space Grotesk", system-ui, sans-serif;
  --font-sans: "Outfit", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --header-control-height: 36px;
  --header-control-radius: 10px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 110% 85% at 50% -35%, rgba(56, 189, 248, 0.16), transparent 58%),
    radial-gradient(ellipse 70% 55% at 105% 5%, rgba(167, 139, 250, 0.14), transparent 52%),
    radial-gradient(ellipse 60% 45% at -5% 55%, rgba(45, 212, 191, 0.09), transparent 48%),
    linear-gradient(185deg, var(--void-mid) 0%, var(--void) 38%, #00050d 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(rgba(120, 200, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120, 200, 255, 0.035) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: mesh-drift 70s linear infinite;
  mask-image: radial-gradient(ellipse 95% 75% at 50% -5%, rgba(0, 0, 0, 0.55), transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 95% 75% at 50% -5%, rgba(0, 0, 0, 0.55), transparent 72%);
  pointer-events: none;
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  background: radial-gradient(520px 380px at 85% 100%, rgba(56, 189, 248, 0.07), transparent 72%);
  animation: aurora-pulse 14s ease-in-out infinite;
  pointer-events: none;
  z-index: 0;
}

#root {
  position: relative;
  z-index: 1;
}

.ambient-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.ambient-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.42;
  mix-blend-mode: screen;
  will-change: transform;
}

.ambient-blob--a {
  width: min(78vw, 640px);
  height: min(78vw, 640px);
  left: -18%;
  top: -12%;
  background: radial-gradient(circle, rgba(45, 212, 191, 0.38) 0%, transparent 65%);
  animation: blob-drift-a 24s ease-in-out infinite;
}

.ambient-blob--b {
  width: min(62vw, 520px);
  height: min(62vw, 520px);
  right: -12%;
  top: 8%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.36) 0%, transparent 62%);
  animation: blob-drift-b 28s ease-in-out infinite;
}

.ambient-blob--c {
  width: min(90vw, 720px);
  height: min(90vw, 720px);
  left: 20%;
  bottom: -35%;
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, transparent 68%);
  animation: blob-drift-c 32s ease-in-out infinite;
}

@keyframes blob-drift-a {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(8%, 12%) scale(1.08);
  }
}

@keyframes blob-drift-b {
  0%,
  100% {
    transform: translate(0, 0) scale(1.05);
  }
  50% {
    transform: translate(-10%, 6%) scale(1);
  }
}

@keyframes blob-drift-c {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-6%, -8%) scale(1.12);
  }
}

@keyframes mesh-drift {
  to {
    background-position: 52px 52px, 52px 52px;
  }
}

@keyframes aurora-pulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.85;
    transform: scale(1.04);
  }
}

@keyframes title-gradient-flow {
  0%,
  100% {
    background-position: 0% 45%;
  }
  50% {
    background-position: 100% 55%;
  }
}

@keyframes surface-emerge {
  from {
    opacity: 0;
    filter: blur(12px);
  }
  to {
    opacity: 1;
    filter: blur(0);
  }
}

@keyframes status-pulse-running {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
  }
  50% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0.22);
  }
}

@keyframes status-pulse-cancelling {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.2);
    transform: scale(1);
  }
  50% {
    box-shadow: 0 0 0 11px rgba(249, 115, 22, 0.28);
    transform: scale(1.08);
  }
}

@keyframes icon-warn-cancelling {
  0%,
  100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(251, 191, 36, 0.35);
  }
  50% {
    opacity: 0.82;
    box-shadow: 0 0 0 8px rgba(251, 191, 36, 0);
  }
}

@keyframes status-pulse-winding {
  0%,
  100% {
    box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.14);
  }
  50% {
    box-shadow: 0 0 0 9px rgba(148, 163, 184, 0.2);
  }
}

.container {
  max-width: 1220px;
  margin: 0 auto;
  padding: 22px 18px 32px;
  position: relative;
  z-index: 1;
}
.dashboard-header {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 0;
  padding: 4px 0 8px;
}
.hero-copy { min-width: 0; }
.title {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.15rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  background: linear-gradient(
    105deg,
    #5eead4 0%,
    #38bdf8 28%,
    #a78bfa 62%,
    #f0abfc 100%
  );
  background-size: 200% 200%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 28px rgba(56, 189, 248, 0.18));
}
.subtitle {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 400;
  max-width: 900px;
  line-height: 1.55;
  letter-spacing: 0.01em;
}

.motion-header .title {
  animation:
    surface-emerge 0.78s cubic-bezier(0.22, 1, 0.36, 1) both,
    title-gradient-flow 12s ease-in-out 0.4s infinite;
}

.motion-header .subtitle {
  animation: surface-emerge 0.78s cubic-bezier(0.22, 1, 0.36, 1) 0.1s both;
}

.motion-surface {
  animation: surface-emerge 0.88s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.motion-surface--1 {
  animation-delay: 0.05s;
}
.motion-surface--2 {
  animation-delay: 0.11s;
}
.motion-surface--3 {
  animation-delay: 0.17s;
}
.motion-surface--4 {
  animation-delay: 0.23s;
}

.header-controls {
  display: block;
}
.header-main-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.status-indicator {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--glass-border);
  border-radius: var(--header-control-radius);
  min-height: var(--header-control-height);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 500;
  color: #c8d7f0;
  background: var(--glass);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: var(--glow-cyan), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.settings-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(500px, 94vw);
  border: 1px solid rgba(167, 139, 250, 0.22);
  border-radius: var(--radius-lg);
  padding: 16px;
  background: rgba(6, 10, 22, 0.88);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  box-shadow:
    0 0 0 1px rgba(45, 212, 191, 0.08),
    0 24px 48px rgba(0, 0, 0, 0.55);
  z-index: 25;
}
.settings-wrapper {
  position: relative;
  width: var(--header-control-height);
  height: var(--header-control-height);
  border-radius: var(--header-control-radius);
  border: 1px solid rgba(56, 189, 248, 0.45);
  background: linear-gradient(145deg, rgba(15, 80, 120, 0.5), rgba(55, 40, 120, 0.45));
  color: #c4e9ff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}
.settings-wrapper.active {
  background: linear-gradient(145deg, rgba(20, 100, 140, 0.65), rgba(80, 50, 160, 0.55));
  border-color: rgba(94, 234, 212, 0.65);
  box-shadow: 0 0 24px rgba(45, 212, 191, 0.2);
}
.settings-toggle {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  padding: 0;
  border: none;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}
.settings-toggle.active {
  background: transparent;
  border-color: transparent;
}
.settings-toggle svg {
  display: block;
  transform: translate(-0.25px, 0.5px);
}
.settings-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.settings-actions {
  display: grid;
  gap: 12px;
}
.settings-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 2px 0;
}
.settings-label {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  line-height: 1.35;
  color: #c8d7ea;
  font-size: 12px;
  font-weight: 500;
}
.settings-select {
  min-width: 92px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(100, 180, 255, 0.28);
  background: rgba(6, 14, 32, 0.85);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 0 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.settings-select:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}
.settings-select:disabled {
  opacity: 0.55;
}
.settings-time {
  min-width: 7.5rem;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(100, 180, 255, 0.28);
  background: rgba(6, 14, 32, 0.85);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 12px;
  padding: 0 8px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25);
}
.settings-time:focus {
  outline: none;
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.15);
}
.settings-time:disabled {
  opacity: 0.55;
}
.status-meta {
  font-size: 11px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  margin-left: 4px;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 6px rgba(34, 197, 94, 0.12);
}
.status-dot.running {
  background: #f59e0b;
  box-shadow: 0 0 0 6px rgba(245, 158, 11, 0.16);
  animation: status-pulse-running 2.2s ease-in-out infinite;
}
.status-dot.cancelling {
  background: #f97316;
  box-shadow: 0 0 0 6px rgba(249, 115, 22, 0.22);
  animation: status-pulse-cancelling 1.1s ease-in-out infinite;
}
.status-dot.winding-down {
  background: #94a3b8;
  box-shadow: 0 0 0 6px rgba(148, 163, 184, 0.2);
  animation: status-pulse-winding 1.6s ease-in-out infinite;
}
.status-dot.offline {
  background: #ef4444;
  box-shadow: 0 0 0 6px rgba(239, 68, 68, 0.16);
}
.grid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.summary-shell {
  padding: 10px 12px;
}
.summary-head {
  margin-bottom: 10px;
}
.summary-head-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.summary-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.summary-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.14s ease, border-color 0.14s ease, box-shadow 0.14s ease;
}
.summary-pill:hover {
  transform: translateY(-1px);
}
.summary-pill.active {
  border-color: rgba(125, 211, 252, 0.75);
  box-shadow: 0 0 0 2px rgba(56, 189, 248, 0.18);
}
.summary-pill:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.summary-pill.neutral {
  background: rgba(15, 23, 42, 0.7);
  border-color: rgba(148, 163, 184, 0.35);
  color: #cbd5e1;
}
.summary-pill.good {
  background: rgba(20, 83, 45, 0.45);
  border-color: rgba(134, 239, 172, 0.4);
  color: #dcfce7;
}
.summary-pill.bad {
  background: rgba(127, 29, 29, 0.5);
  border-color: rgba(252, 165, 165, 0.4);
  color: #fee2e2;
}
.summary-pill.warn {
  background: rgba(146, 64, 14, 0.5);
  border-color: rgba(251, 191, 36, 0.4);
  color: #fef3c7;
}
.summary-pill.accent {
  background: rgba(30, 64, 175, 0.48);
  border-color: rgba(147, 197, 253, 0.45);
  color: #dbeafe;
}
.summary-pill.streak {
  background: rgba(88, 28, 135, 0.45);
  border-color: rgba(216, 180, 254, 0.35);
  color: #f3e8ff;
}
.summary-grid {
  margin-top: 12px;
}
.overview-details {
  margin-top: 12px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.detail-box {
  border: 1px solid rgba(100, 180, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  background: linear-gradient(160deg, rgba(12, 22, 44, 0.55), rgba(4, 10, 24, 0.65));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.detail-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-top: 7px;
  font-size: 12px;
  color: #cbd5e1;
}
.detail-line strong {
  color: #e2e8f0;
  font-size: 12px;
}
.detail-action {
  border-radius: 8px;
  border: 1px solid rgba(96, 165, 250, 0.45);
  background: rgba(30, 64, 175, 0.32);
  color: #dbeafe;
  min-width: 34px;
  padding: 2px 8px;
  font-size: 12px;
}
.detail-action.neutral {
  border-color: rgba(148, 163, 184, 0.35);
  background: rgba(51, 65, 85, 0.5);
  color: #cbd5e1;
}
.detail-action.good {
  border-color: rgba(134, 239, 172, 0.45);
  background: rgba(20, 83, 45, 0.35);
  color: #dcfce7;
}
.detail-action.bad {
  border-color: rgba(252, 165, 165, 0.45);
  background: rgba(127, 29, 29, 0.38);
  color: #fee2e2;
}
.detail-action.warn {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(146, 64, 14, 0.38);
  color: #fef3c7;
}
.detail-actions-group {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.filter-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(100, 180, 255, 0.14);
  border-radius: var(--radius-md);
  background: rgba(6, 12, 28, 0.5);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}
.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(125, 211, 252, 0.55);
  background: rgba(30, 64, 175, 0.4);
  color: #dbeafe;
  padding: 3px 8px;
  font-size: 12px;
}
.filter-chip-close {
  border: none;
  background: transparent;
  color: inherit;
  min-width: 18px;
  height: 18px;
  line-height: 1;
  border-radius: 999px;
  padding: 0;
}
.filter-chip-close:hover {
  background: rgba(147, 197, 253, 0.22);
}
.pagination-bar {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.pagination-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.pagination-nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pagination-page {
  min-width: 30px;
  height: 30px;
  border-radius: 8px;
  padding: 0 8px;
  font-size: 12px;
}
.pagination-page.active {
  border-color: rgba(125, 211, 252, 0.75);
  background: rgba(30, 64, 175, 0.5);
  color: #dbeafe;
  cursor: default;
}
.pagination-ellipsis {
  color: #94a3b8;
  font-size: 12px;
  padding: 0 2px;
}
.card {
  position: relative;
  background: linear-gradient(165deg, rgba(14, 24, 48, 0.88) 0%, rgba(4, 8, 18, 0.92) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.06),
    0 20px 50px -12px rgba(0, 0, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(
    135deg,
    rgba(45, 212, 191, 0.25),
    rgba(56, 189, 248, 0.12) 40%,
    rgba(167, 139, 250, 0.2) 100%
  );
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
}
.muted {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 500;
}
.capture-badge {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  border: 1px solid transparent;
}
.capture-badge.full {
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.35);
  border-color: rgba(147, 197, 253, 0.35);
}
.capture-badge.fallback {
  color: #fef3c7;
  background: rgba(146, 64, 14, 0.35);
  border-color: rgba(251, 191, 36, 0.4);
}
.value {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: #f0f7ff;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.15);
}
.layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  margin-top: 14px;
}
.run-item {
  border: 1px solid rgba(100, 180, 255, 0.12);
  border-radius: var(--radius-md);
  margin-bottom: 10px;
  padding: 12px 14px;
  background: linear-gradient(160deg, rgba(10, 20, 42, 0.92), rgba(3, 8, 20, 0.96));
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
@media (prefers-reduced-motion: no-preference) {
  .run-item.run-item--pulse {
    animation: run-item-pulse 0.58s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
  .run-item:not(.run-item--no-enter):not(.run-item--pulse) {
    animation: run-item-enter 0.52s cubic-bezier(0.22, 1, 0.36, 1) both;
  }
}
@keyframes run-item-enter {
  from {
    opacity: 0;
    transform: translateY(10px) scale(0.992);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@keyframes run-item-pulse {
  0% {
    border-color: rgba(100, 180, 255, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 rgba(56, 189, 248, 0);
  }
  35% {
    border-color: rgba(56, 189, 248, 0.65);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 0 28px rgba(56, 189, 248, 0.22);
  }
  100% {
    border-color: rgba(100, 180, 255, 0.12);
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.04),
      0 0 0 rgba(56, 189, 248, 0);
  }
}
.run-item:hover {
  border-color: rgba(45, 212, 191, 0.45);
  transform: translateY(-2px);
  box-shadow:
    0 12px 28px rgba(0, 0, 0, 0.35),
    0 0 24px rgba(56, 189, 248, 0.08);
}
.run-item.selected {
  border-color: rgba(56, 189, 248, 0.75);
  box-shadow:
    inset 0 0 0 1px rgba(56, 189, 248, 0.2),
    0 0 28px rgba(56, 189, 248, 0.12);
}
.pill {
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11px;
  font-weight: 600;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
  display: inline-block;
  margin-right: 6px;
  border: 1px solid transparent;
  text-transform: uppercase;
}
.err {
  background: rgba(127, 29, 29, 0.45);
  color: #fecaca;
  border-color: rgba(252, 165, 165, 0.4);
  box-shadow: 0 0 16px rgba(248, 113, 113, 0.12);
}
.own {
  background: rgba(45, 55, 72, 0.55);
  color: #cbd5e1;
  border-color: rgba(148, 163, 184, 0.3);
}
.claim {
  background: rgba(30, 64, 120, 0.5);
  color: #bae6fd;
  border-color: rgba(56, 189, 248, 0.4);
  box-shadow: 0 0 14px rgba(56, 189, 248, 0.1);
}
pre {
  white-space: pre-wrap;
  word-break: break-word;
  font-family: var(--font-mono);
  font-size: 11px;
  background: rgba(0, 4, 12, 0.85);
  border: 1px solid rgba(56, 189, 248, 0.2);
  padding: 10px;
  border-radius: 10px;
  max-height: 260px;
  overflow: auto;
  color: #c5e5ff;
}
a {
  color: var(--accent-sky);
  text-decoration: none;
  transition: color 0.15s ease, text-shadow 0.15s ease;
}
a:hover {
  color: #7dd3fc;
  text-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; align-items: center; }
button {
  font-family: var(--font-sans);
  font-weight: 600;
  border: 1px solid rgba(100, 180, 255, 0.25);
  background: linear-gradient(180deg, rgba(25, 40, 72, 0.95), rgba(12, 20, 40, 0.98));
  color: #e8f0ff;
  padding: 8px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
button:hover {
  border-color: rgba(45, 212, 191, 0.5);
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.12);
}
button:active {
  transform: scale(0.98);
}
button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}
.btn-primary {
  background: linear-gradient(135deg, #0891b2 0%, #2563eb 48%, #7c3aed 100%);
  border-color: rgba(94, 234, 212, 0.45);
  color: #f8fafc;
  box-shadow:
    0 4px 20px rgba(37, 99, 235, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-primary:hover {
  border-color: rgba(167, 139, 250, 0.65);
  box-shadow:
    0 6px 28px rgba(124, 58, 237, 0.35),
    0 0 24px rgba(45, 212, 191, 0.15);
}
.header-actions .btn-primary {
  height: var(--header-control-height);
  border-radius: var(--header-control-radius);
  padding: 0 14px;
}
.btn-warn {
  background: linear-gradient(135deg, #ca8a04, #b45309);
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 4px 16px rgba(202, 138, 4, 0.25);
}
.btn-danger {
  background: linear-gradient(135deg, #e11d48, #991b1b);
  border-color: rgba(251, 113, 133, 0.5);
  box-shadow: 0 4px 16px rgba(225, 29, 72, 0.25);
}
.settings-updated {
  margin-top: 2px;
  font-size: 11px;
}
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.section-actions { display: flex; gap: 8px; align-items: center; }
.window-wrap {
  flex-wrap: wrap;
  justify-content: flex-end;
}
.chart-tooltip .recharts-default-tooltip {
  /* Keep chart tooltip text colors from Recharts payload (vibrant series colors). */
  font-size: 12px;
}
.window-btn {
  padding: 4px 8px;
  font-size: 11px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(15, 23, 42, 0.55);
  color: #cbd5e1;
}
.window-btn.active {
  background: rgba(30, 64, 175, 0.75);
  border-color: rgba(147, 197, 253, 0.8);
  color: #e0f2fe;
}
.empty-state {
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  background: rgba(15, 23, 42, 0.35);
}
.empty-state h3 {
  margin: 0 0 8px;
  font-size: 16px;
}
.empty-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}
.empty-state-actions {
  margin-top: 14px;
  display: inline-flex;
  gap: 8px;
}
.skeleton {
  position: relative;
  overflow: hidden;
  background: rgba(15, 28, 52, 0.65);
  border: 1px solid rgba(100, 180, 255, 0.12);
  border-radius: var(--radius-md);
}
.skeleton::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 120%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(94, 234, 212, 0.12),
    rgba(167, 139, 250, 0.1),
    transparent
  );
  animation: shimmer 1.3s infinite;
}
.skeleton-line {
  height: 10px;
  margin: 8px 0;
  border-radius: 999px;
}
.skeleton-card {
  height: 96px;
}
.skeleton-run {
  height: 86px;
  margin-bottom: 10px;
}
@keyframes shimmer {
  100% { left: 140%; }
}
@keyframes flowPulse {
  100% { left: 120%; }
}
img {
  max-width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}
.run-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.run-flow-panel {
  margin-top: 10px;
  border: 1px solid rgba(100, 180, 255, 0.14);
  border-radius: var(--radius-md);
  padding: 12px;
  background: linear-gradient(165deg, rgba(8, 16, 36, 0.75), rgba(2, 6, 18, 0.88));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.run-flow-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.flow-current {
  font-size: 14px;
  color: #e0f2fe;
  font-weight: 600;
}
.flow-percent {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--accent-sky);
  font-weight: 700;
}
.flow-track {
  position: relative;
  height: 9px;
  border-radius: 999px;
  background: rgba(8, 20, 40, 0.95);
  overflow: hidden;
  border: 1px solid rgba(56, 189, 248, 0.2);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.4);
}
.flow-fill {
  position: relative;
  height: 100%;
  background: linear-gradient(90deg, #2dd4bf, #38bdf8 45%, #6366f1);
  transition: width 0.28s ease;
  box-shadow: 0 0 12px rgba(45, 212, 191, 0.35);
}
.flow-track.running .flow-fill::after {
  content: "";
  position: absolute;
  top: 0;
  left: -28%;
  width: 28%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  animation: flowPulse 1.1s infinite;
}
.flow-steps {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}
.flow-step {
  display: grid;
  grid-template-columns: 16px 1fr;
  gap: 8px;
  align-items: start;
}
.flow-step-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  margin-top: 2px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(51, 65, 85, 0.8);
}
.flow-step.done .flow-step-dot {
  background: #22c55e;
  border-color: rgba(134, 239, 172, 0.7);
  box-shadow: 0 0 0 4px rgba(34, 197, 94, 0.12);
}
.flow-step.done.terminal-cancelled .flow-step-dot {
  background: #f59e0b;
  border-color: rgba(251, 191, 36, 0.75);
  box-shadow: 0 0 0 4px rgba(245, 158, 11, 0.16);
}
.flow-step.done.terminal-error .flow-step-dot {
  background: #ef4444;
  border-color: rgba(252, 165, 165, 0.75);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.16);
}
.flow-step.done.terminal-cancelled .flow-step-title {
  color: #fde68a;
}
.flow-step.done.terminal-error .flow-step-title {
  color: #fecaca;
}
.flow-step.active .flow-step-dot {
  background: #38bdf8;
  border-color: rgba(125, 211, 252, 0.8);
  box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}
.flow-step-title {
  font-size: 12px;
  color: #e2e8f0;
  font-weight: 600;
}
.perf-grid {
  margin-top: 10px;
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.perf-item {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 8px;
  padding: 8px;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 68px;
}
.perf-item.good {
  border-color: rgba(134, 239, 172, 0.45);
  background: rgba(20, 83, 45, 0.25);
}
.perf-item.warn {
  border-color: rgba(251, 191, 36, 0.45);
  background: rgba(146, 64, 14, 0.22);
}
.perf-label {
  font-size: 11px;
  color: #94a3b8;
}
.perf-value {
  margin-top: 0;
  font-size: 14px;
  font-weight: 700;
  color: #e2e8f0;
}
.offer-report-panel {
  margin-top: 4px;
}
.offer-report-table {
  width: 100%;
  margin-top: 8px;
  border-collapse: collapse;
  font-size: 12px;
}
.offer-report-table th,
.offer-report-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
  vertical-align: middle;
}
.offer-report-th-preview {
  width: 56px;
}
.offer-report-td-preview {
  width: 56px;
  padding-right: 4px !important;
}
.offer-preview-thumb {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  background: rgba(15, 23, 42, 0.8);
  display: block;
}
.offer-preview-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  background: rgba(30, 41, 59, 0.5);
}
.offer-report-table th {
  color: #94a3b8;
  font-weight: 600;
}
.offer-title {
  color: #e2e8f0;
  max-width: 0;
  word-break: break-word;
}
.offer-outcome {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}
.offer-outcome--claimed {
  background: rgba(20, 83, 45, 0.45);
  color: #bbf7d0;
}
.offer-outcome--open {
  background: rgba(146, 64, 14, 0.4);
  color: #fde68a;
}
.offer-outcome--owned {
  background: rgba(51, 65, 85, 0.6);
  color: #cbd5e1;
}
.log-timeline {
  margin-top: 10px;
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 8px;
  background: rgba(2, 6, 23, 0.75);
  scrollbar-width: thin;
  scrollbar-color: rgba(59, 130, 246, 0.85) rgba(15, 23, 42, 0.8);
}
.log-timeline::-webkit-scrollbar { width: 10px; }
.log-timeline::-webkit-scrollbar-track {
  background: rgba(15, 23, 42, 0.8);
  border-radius: 999px;
}
.log-timeline::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.9), rgba(59, 130, 246, 0.9));
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.85);
}
.log-timeline::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(14, 165, 233, 1), rgba(37, 99, 235, 1));
}
.log-row {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 8px;
  padding: 8px 10px;
  border-bottom: 1px solid rgba(30, 41, 59, 0.65);
}
.log-row:last-child {
  border-bottom: none;
}
.log-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  background: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.14);
}
.log-dot.warn {
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.14);
}
.log-dot.error {
  background: #ef4444;
  box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.14);
}
.log-dot.debug {
  background: #64748b;
  box-shadow: 0 0 0 3px rgba(100, 116, 139, 0.14);
}
.log-main {
  min-width: 0;
}
.log-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.log-level {
  display: inline-flex;
  border-radius: 999px;
  padding: 1px 7px;
  font-size: 10px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.log-level.info {
  color: #dbeafe;
  background: rgba(30, 64, 175, 0.35);
  border-color: rgba(147, 197, 253, 0.35);
}
.log-level.warn {
  color: #fef3c7;
  background: rgba(146, 64, 14, 0.35);
  border-color: rgba(251, 191, 36, 0.35);
}
.log-level.error {
  color: #fee2e2;
  background: rgba(127, 29, 29, 0.45);
  border-color: rgba(252, 165, 165, 0.35);
}
.log-level.debug {
  color: #cbd5e1;
  background: rgba(51, 65, 85, 0.45);
  border-color: rgba(148, 163, 184, 0.28);
}
.log-ts {
  font-size: 11px;
  color: #94a3b8;
}
.log-message {
  font-size: 12px;
  color: #e2e8f0;
  line-height: 1.45;
  word-break: break-word;
}
.run-main { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.run-details-meta {
  display: grid;
  gap: 6px;
  margin-bottom: 10px;
}
.run-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.run-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.run-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border-radius: 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(15, 23, 42, 0.5);
  flex-shrink: 0;
}
.run-select {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: rgba(15, 23, 42, 0.8);
  position: relative;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.run-select:hover {
  border-color: rgba(125, 211, 252, 0.8);
}
.run-select.checked {
  border-color: rgba(96, 165, 250, 0.95);
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.95), rgba(29, 78, 216, 0.95));
}
.run-select::after {
  content: "";
  width: 10px;
  height: 6px;
  border-left: 2px solid transparent;
  border-bottom: 2px solid transparent;
  transform: rotate(-45deg) translateY(-1px);
  transition: border-color 0.15s ease;
}
.run-select.checked::after {
  border-left-color: #e0f2fe;
  border-bottom-color: #e0f2fe;
}
.icon-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(239, 68, 68, 0.6);
  background: rgba(127, 29, 29, 0.45);
  color: #fca5a5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.icon-btn:hover { background: rgba(153, 27, 27, 0.7); border-color: rgba(248, 113, 113, 0.85); }
.icon-btn-warn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(245, 158, 11, 0.65);
  background: rgba(146, 64, 14, 0.45);
  color: #fcd34d;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.icon-btn-warn:hover {
  background: rgba(180, 83, 9, 0.72);
  border-color: rgba(251, 191, 36, 0.9);
}
.icon-btn-warn.icon-btn-warn--cancelling {
  animation: icon-warn-cancelling 1.1s ease-in-out infinite;
  cursor: wait;
}
.pill-cancelling {
  background: rgba(154, 52, 18, 0.92) !important;
  color: #ffedd5 !important;
  border: 1px solid rgba(251, 191, 36, 0.45);
  animation: icon-warn-cancelling 1.2s ease-in-out infinite;
}
.icon-btn-info {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(59, 130, 246, 0.6);
  background: rgba(30, 64, 175, 0.45);
  color: #bfdbfe;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
}
.icon-btn-info:hover {
  background: rgba(37, 99, 235, 0.72);
  border-color: rgba(147, 197, 253, 0.9);
}
.toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #cbd5e1;
}
.switch {
  position: relative;
  width: 42px;
  height: 24px;
  display: inline-block;
  cursor: pointer;
  flex-shrink: 0;
}
.switch input { opacity: 0; width: 0; height: 0; }
.switch input:disabled + .slider {
  opacity: 0.55;
  cursor: not-allowed;
}
.slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: rgba(30, 45, 72, 0.95);
  transition: 0.2s ease;
  border: 1px solid rgba(100, 180, 255, 0.25);
  cursor: pointer;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.35);
}
.slider::before {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 2px;
  top: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f1f5f9, #cbd5e1);
  transition: 0.2s ease;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}
.switch input:checked + .slider {
  background: linear-gradient(90deg, #0e7490, #2563eb);
  border-color: rgba(45, 212, 191, 0.55);
  box-shadow:
    0 0 12px rgba(56, 189, 248, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}
.switch input:checked + .slider::before {
  transform: translateX(18px);
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(2, 4, 12, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}
.modal {
  width: min(980px, 94vw);
  max-height: 90vh;
  overflow: auto;
  background: linear-gradient(175deg, rgba(12, 20, 42, 0.97), rgba(4, 8, 20, 0.99));
  border: 1px solid rgba(100, 180, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 0;
  box-shadow:
    0 0 0 1px rgba(167, 139, 250, 0.08),
    0 32px 64px rgba(0, 0, 0, 0.65),
    0 0 80px rgba(56, 189, 248, 0.06);
}
.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  background: linear-gradient(180deg, rgba(10, 18, 38, 0.98), rgba(8, 14, 28, 0.94));
  border-bottom: 1px solid rgba(56, 189, 248, 0.12);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.confirm-body {
  padding: 14px 16px;
  color: #c8d7ea;
}
.confirm-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 0 12px 12px;
}
.modal-content {
  padding: 14px 16px;
}
.segmented {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(100, 180, 255, 0.18);
  background: rgba(6, 12, 28, 0.75);
  margin-bottom: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.seg-btn {
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  background: transparent;
  color: var(--text-muted);
}
.seg-btn.active {
  background: linear-gradient(135deg, rgba(8, 80, 120, 0.55), rgba(60, 40, 120, 0.5));
  border-color: rgba(56, 189, 248, 0.45);
  color: #e0f2fe;
  box-shadow: 0 0 16px rgba(56, 189, 248, 0.12);
}
.seg-btn:disabled {
  opacity: 0.35;
}
.seg-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}
.help-dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(148, 163, 184, 0.5);
  color: #cbd5e1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  cursor: help;
  background: rgba(15, 23, 42, 0.65);
}
.help-dot-btn {
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
  padding: 0;
}
.help-dot-btn:hover,
.help-dot-btn.active {
  border-color: rgba(125, 211, 252, 0.9);
  background: rgba(30, 64, 175, 0.65);
  transform: translateY(-1px);
}
.tooltip-wrap {
  position: relative;
  display: inline-flex;
}
.tooltip-popover {
  width: min(320px, calc(100vw - 24px));
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.45);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.45;
  padding: 10px 12px;
  box-shadow: 0 18px 38px rgba(2, 6, 23, 0.5);
  z-index: 3000;
  pointer-events: auto;
}
.tooltip-popover-fixed {
  position: fixed;
}
.tooltip-popover-fixed.below {
  transform: translateX(-50%);
}
.tooltip-popover-fixed.above {
  transform: translate(-50%, -100%);
}
.tooltip-popover::before {
  content: "";
  position: absolute;
  width: 10px;
  height: 10px;
  background: rgba(15, 23, 42, 0.98);
  transform: rotate(45deg);
}
.tooltip-popover-fixed.below::before {
  top: -6px;
  left: 50%;
  margin-left: -5px;
  border-left: 1px solid rgba(148, 163, 184, 0.45);
  border-top: 1px solid rgba(148, 163, 184, 0.45);
}
.tooltip-popover-fixed.above::before {
  bottom: -6px;
  left: 50%;
  margin-left: -5px;
  border-right: 1px solid rgba(148, 163, 184, 0.45);
  border-bottom: 1px solid rgba(148, 163, 184, 0.45);
}
.modal::-webkit-scrollbar { width: 10px; }
.modal::-webkit-scrollbar-track { background: rgba(15, 23, 42, 0.65); border-radius: 999px; }
.modal::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(56, 189, 248, 0.75), rgba(96, 165, 250, 0.75));
  border-radius: 999px;
  border: 2px solid rgba(15, 23, 42, 0.75);
}
.modal::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(14, 165, 233, 0.9), rgba(59, 130, 246, 0.9));
}
.toast-wrap {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  min-width: 260px;
  max-width: 420px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  padding: 12px 14px;
  font-size: 13px;
  font-weight: 500;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    0 16px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
.toast-info {
  background: rgba(20, 45, 95, 0.92);
  border-color: rgba(56, 189, 248, 0.45);
  color: #dbeafe;
}
.toast-success {
  background: rgba(12, 70, 40, 0.92);
  border-color: rgba(52, 211, 153, 0.45);
  color: #d1fae5;
}
.toast-warn {
  background: rgba(100, 55, 10, 0.92);
  border-color: rgba(251, 191, 36, 0.5);
  color: #fef3c7;
}
.toast-error {
  background: rgba(90, 20, 28, 0.94);
  border-color: rgba(251, 113, 133, 0.5);
  color: #ffe4e6;
}
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .header-main-row {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .header-actions {
    justify-content: space-between;
  }
  .settings-wrapper {
    position: static;
  }
  .settings-panel {
    position: fixed;
    left: 12px;
    right: 12px;
    top: 12px;
    width: auto;
    max-height: calc(100vh - 24px);
    overflow: auto;
    z-index: 1400;
  }
  .settings-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .settings-row {
    gap: 10px;
  }
  .switch {
    width: 46px;
    height: 26px;
  }
  .slider::before {
    width: 20px;
    height: 20px;
  }
  .switch input:checked + .slider::before {
    transform: translateX(20px);
  }
}
@media (max-width: 900px) {
  .perf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .ambient-blob,
  body::before,
  body::after {
    animation: none !important;
  }

  .motion-header .title {
    animation: none !important;
  }

  .motion-header .subtitle {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .motion-surface {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
  }

  .status-dot.running,
  .status-dot.cancelling,
  .status-dot.winding-down,
  .icon-btn-warn.icon-btn-warn--cancelling,
  .pill-cancelling {
    animation: none !important;
  }
}
