/* src/styles.css */
:root {
  color-scheme: dark;
  --bg:
    linear-gradient(
      150deg,
      #04040b 0%,
      #080c1c 45%,
      #05070f 100%);
  --panel: rgba(9, 12, 24, 0.92);
  --panel-strong: rgba(12, 16, 30, 0.98);
  --border: rgba(255, 255, 255, 0.1);
  --primary: #ff4fd8;
  --primary-soft: rgba(255, 79, 216, 0.18);
  --accent: #57e8ff;
  --text: #f7f8fd;
  --muted: rgba(199, 207, 233, 0.72);
  --card-bg: rgba(12, 16, 30, 0.95);
  --card-soft: rgba(16, 20, 38, 0.88);
  --card-border: rgba(255, 255, 255, 0.08);
  --field-bg: rgba(255, 255, 255, 0.04);
  --shadow-soft: 0 28px 65px rgba(3, 4, 12, 0.65);
  --shadow-card: 0 20px 50px rgba(3, 5, 15, 0.55);
  --shadow-card-soft: 0 14px 30px rgba(5, 8, 20, 0.35);
}
.setup-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 16px;
  background:
    radial-gradient(
      circle at top left,
      rgba(67, 97, 238, 0.15),
      transparent),
    radial-gradient(
      circle at bottom right,
      rgba(236, 72, 153, 0.15),
      transparent),
    #050912;
}
.setup-panel {
  width: min(980px, 100%);
  background: rgba(255, 255, 255, 0.95);
  border-radius: 32px;
  padding: 48px;
  box-shadow: 0 40px 100px rgba(5, 9, 18, 0.45);
  color: #0f172a;
}
.setup-panel h1 {
  margin: 0 0 8px;
}
.setup-grid {
  margin-top: 32px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 32px;
}
.setup-form,
.setup-help {
  background: #f7f8fc;
  border-radius: 24px;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.08);
}
.setup-help ol {
  list-style: decimal;
  padding-left: 20px;
  margin: 0 0 16px;
  color: #475467;
}
.setup-panel .muted,
.setup-panel .eyebrow,
.setup-panel label,
.setup-panel small {
  color: #475467;
}
.setup-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 24px;
}
.setup-brand img {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.2);
}
.setup-brand strong {
  display: block;
  font-size: 20px;
}
.setup-brand span {
  display: block;
  color: #6b7280;
  font-size: 14px;
}
@media (max-width: 960px) {
  .setup-grid {
    grid-template-columns: 1fr;
  }
  .setup-panel {
    padding: 32px 24px;
  }
}
:root.theme-light {
  color-scheme: light;
  --bg:
    linear-gradient(
      135deg,
      #fbfbfd,
      #eef2ff);
  --panel: rgba(255, 255, 255, 0.92);
  --border: #e0e3eb;
  --primary: #0071e3;
  --primary-soft: #e6f1ff;
  --text: #1c1c1e;
  --muted: #6e6e73;
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-soft: rgba(255, 255, 255, 0.85);
  --card-border: rgba(0, 0, 0, 0.05);
  --field-bg: #fff;
  --shadow-soft: 0 18px 44px rgba(15, 23, 42, 0.16);
  --shadow-card: 0 15px 32px rgba(15, 23, 42, 0.2);
  --shadow-card-soft: 0 10px 24px rgba(15, 23, 42, 0.16);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  background: #03040a;
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    linear-gradient(
      150deg,
      #030614 0%,
      #070c1f 45%,
      #1b0c1e 100%),
    radial-gradient(
      circle at 20% 5%,
      rgba(255, 140, 240, 0.45),
      transparent 55%),
    radial-gradient(
      circle at 80% 0%,
      rgba(98, 170, 255, 0.35),
      transparent 50%);
  z-index: -2;
  pointer-events: none;
}
.app-frame {
  display: flex;
  min-height: 100vh;
  backdrop-filter: blur(45px);
}
.nav-rail {
  width: 240px;
  padding: 32px 22px;
  display: flex;
  flex-direction: column;
  gap: 32px;
  background: rgba(5, 7, 15, 0.7);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.04);
}
.project-switcher {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.project-switcher select {
  border-radius: 16px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #f5f6ff;
  font-weight: 500;
}
.project-switcher label {
  color: rgba(247, 248, 253, 0.7);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 12px 24px rgba(6, 7, 12, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.12);
}
.brand-label {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: #fdfdff;
}
.brand-subtitle {
  margin: 0;
  font-size: 12px;
  color: rgba(247, 248, 253, 0.6);
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 14px;
  text-decoration: none;
  color: rgba(247, 248, 253, 0.65);
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: transparent;
  border: 1px solid transparent;
  transition:
    background 0.2s,
    color 0.2s,
    border 0.2s;
}
.nav-link.active {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.08);
  color: #fdfdff;
}
.user-card {
  margin-top: auto;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #fdfdff;
}
.user-card button {
  margin-top: 12px;
  width: 100%;
  border: none;
  border-radius: 14px;
  background:
    linear-gradient(
      120deg,
      #ff4fd8,
      #ff914d);
  color: #05060b;
  padding: 10px;
  font-weight: 600;
}
.app-content {
  flex: 1;
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.app-header.mobile-only {
  display: none;
}
main {
  flex: 1;
  width: min(1160px, 100%);
  margin: 0 auto;
  padding-bottom: 48px;
}
.panel {
  background:
    linear-gradient(
      145deg,
      rgba(12, 16, 30, 0.95),
      rgba(7, 9, 20, 0.85));
  border-radius: 28px;
  box-shadow: 0 35px 70px rgba(3, 4, 12, 0.55);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: #fdfdff;
}
.panel p,
.panel label,
.panel small,
.panel .muted,
.panel .eyebrow {
  color: rgba(247, 248, 253, 0.75);
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 4px;
}
.muted {
  color: var(--muted);
}
.glass-card {
  background:
    linear-gradient(
      150deg,
      rgba(255, 255, 255, 0.08),
      rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 32px;
  backdrop-filter: blur(30px);
  box-shadow: 0 35px 80px rgba(4, 7, 19, 0.45);
  color: #fdfdff;
}
.glass-card p,
.glass-card small,
.glass-card label,
.glass-card .muted,
.glass-card .eyebrow {
  color: rgba(247, 248, 253, 0.8);
}
.home-shell {
  position: relative;
  padding: 16px 0 72px;
  isolation: isolate;
}
.home-orb,
.home-halo {
  position: absolute;
  pointer-events: none;
  z-index: 0;
  filter: blur(8px);
}
.home-orb {
  width: clamp(240px, 28vw, 460px);
  height: clamp(240px, 28vw, 460px);
  border-radius: 50%;
  opacity: 0.65;
  mix-blend-mode: screen;
}
.home-orb-one {
  top: -80px;
  left: -120px;
  background:
    radial-gradient(
      circle,
      rgba(118, 168, 255, 0.4),
      transparent 65%);
}
.home-orb-two {
  bottom: -120px;
  right: -80px;
  background:
    radial-gradient(
      circle,
      rgba(255, 118, 226, 0.4),
      transparent 70%);
}
.home-halo {
  inset: 8% 5%;
  border-radius: 48%;
  background:
    radial-gradient(
      circle,
      rgba(255, 255, 255, 0.12),
      transparent 70%);
  opacity: 0.25;
  filter: blur(35px);
}
.home-panel {
  background: transparent;
  box-shadow: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  margin: 0 auto;
}
.home-panel small {
  color: rgba(247, 248, 253, 0.65);
}
.home-hero-card {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 32px;
  padding: 32px;
  background:
    linear-gradient(
      135deg,
      rgba(15, 20, 40, 0.95),
      rgba(7, 10, 24, 0.85));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 55px 85px rgba(2, 6, 18, 0.7);
  position: relative;
  overflow: hidden;
  color: var(--text);
}
.home-hero-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 20% 20%,
      rgba(255, 79, 216, 0.4),
      transparent 55%),
    radial-gradient(
      circle at 70% 30%,
      rgba(87, 232, 255, 0.35),
      transparent 55%);
  opacity: 0.8;
  filter: blur(60px);
  z-index: 0;
}
.hero-content h1 {
  margin: 0 0 12px;
  font-size: 36px;
  letter-spacing: -0.02em;
  color: #fdfdff;
  text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.hero-content {
  position: relative;
  z-index: 1;
}
.hero-copy {
  max-width: 460px;
  font-size: 16px;
  margin-bottom: 24px;
  color: rgba(247, 248, 253, 0.88);
}
.home-hero-card .eyebrow {
  color: rgba(247, 248, 253, 0.7);
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  position: relative;
  z-index: 1;
}
.hero-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-end;
  min-width: 220px;
  position: relative;
  z-index: 1;
}
.hero-pill {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 13px;
  color: rgba(247, 248, 253, 0.82);
  display: flex;
  gap: 6px;
  align-items: center;
}
.hero-pill strong {
  color: #fdfdff;
}
.icon-button {
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
}
.icon-button-icon {
  width: 50px;
  height: 50px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background:
    linear-gradient(
      135deg,
      rgba(255, 79, 216, 0.4),
      rgba(87, 232, 255, 0.25));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7f9ff;
  box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.22), 0 14px 28px rgba(4, 5, 15, 0.55);
  transition:
    transform 0.2s,
    box-shadow 0.2s,
    border 0.2s;
}
.icon-button-icon svg {
  width: 24px;
  height: 24px;
}
.icon-button:hover .icon-button-icon {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 0 16px rgba(255, 255, 255, 0.3), 0 18px 32px rgba(5, 6, 18, 0.6);
}
.quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
}
.quick-card {
  text-align: left;
  padding: 22px;
  border: none;
  color: #fdfdff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: transform 0.2s, border 0.2s;
  background:
    linear-gradient(
      140deg,
      rgba(20, 25, 45, 0.92),
      rgba(12, 15, 28, 0.78));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 45px rgba(5, 6, 15, 0.55);
}
.quick-card:hover {
  transform: translateY(-4px);
  border-color: rgba(138, 192, 255, 0.45);
}
.stat-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 79, 216, 0.25),
      rgba(87, 232, 255, 0.2));
  border: 1px solid rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #f7f9ff;
  margin-bottom: 6px;
  box-shadow: inset 0 0 12px rgba(255, 255, 255, 0.2);
}
.stat-label {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 11px;
  color: rgba(247, 248, 253, 0.65);
}
.stat-value {
  margin: 0;
  font-size: 28px;
  font-weight: 600;
}
.stat-subtext {
  margin: 0;
  color: rgba(247, 248, 253, 0.7);
  font-size: 13px;
}
.quick-card small {
  color: rgba(247, 248, 253, 0.65);
}
.quick-card p {
  color: rgba(247, 248, 253, 0.85);
}
.home-highlights {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}
.highlight-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background:
    linear-gradient(
      150deg,
      rgba(14, 18, 34, 0.94),
      rgba(10, 12, 24, 0.88));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(5, 7, 18, 0.55);
  color: var(--text);
}
.highlight-card p,
.highlight-card small {
  color: rgba(247, 248, 253, 0.8);
}
.highlight-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.highlight-head h3 {
  margin: 2px 0 0;
  color: #fdfdff;
}
.highlight-card .eyebrow,
.timeline li strong {
  color: rgba(247, 248, 253, 0.7);
}
.timeline li p {
  color: rgba(247, 248, 253, 0.8);
}
.highlight-list,
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.highlight-list li,
.timeline li {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.highlight-list li > div,
.timeline li > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  color: rgba(247, 248, 253, 0.85);
}
.timeline li strong {
  display: block;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 6px;
  background: rgba(255, 255, 255, 0.3);
}
.status-dot.status-running {
  background: #60a5fa;
}
.status-dot.status-ready {
  background: #34d399;
}
.status-dot.status-error {
  background: #f87171;
}
.status-dot.status-complete,
.status-dot.status-done {
  background: #a78bfa;
}
.activity-strip {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  background:
    linear-gradient(
      140deg,
      rgba(14, 18, 34, 0.92),
      rgba(8, 10, 20, 0.8));
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.activity-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: rgba(247, 248, 253, 0.85);
}
.activity-chip-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
}
.activity-chip {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(138, 192, 255, 0.25);
  background:
    linear-gradient(
      145deg,
      rgba(22, 26, 46, 0.9),
      rgba(9, 11, 22, 0.75));
  box-shadow: 0 18px 40px rgba(3, 4, 12, 0.6);
  min-width: 240px;
  scroll-snap-align: start;
}
.activity-chip p {
  margin: 0;
  font-weight: 500;
  font-size: 14px;
  color: rgba(247, 248, 253, 0.88);
}
.activity-chip small {
  color: rgba(247, 248, 253, 0.63);
}
.empty-card {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 18px;
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  color: var(--muted);
}
.link-pill {
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.04);
  color: #fdfdff;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  cursor: pointer;
  align-self: flex-start;
  transition:
    border 0.2s,
    background 0.2s,
    color 0.2s;
}
.link-pill:hover {
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 960px) {
  .home-hero-card {
    flex-direction: column;
  }
  .hero-meta {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .activity-chip-row {
    flex-direction: column;
    overflow-x: visible;
  }
  .activity-chip {
    min-width: 0;
    width: 100%;
  }
}
@media (max-width: 600px) {
  .home-panel {
    gap: 20px;
  }
  .home-hero-card {
    padding: 24px;
  }
  .hero-content h1 {
    font-size: 28px;
  }
  .hero-meta {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
  }
  .activity-chip-row {
    flex-direction: column;
    overflow-x: visible;
  }
}
.fab {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--primary);
  color: #05060b;
  font-size: 28px;
  font-weight: 600;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  z-index: 10;
}
.fab-menu {
  position: fixed;
  right: 28px;
  bottom: 96px;
  background: var(--panel);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 10;
}
.fab-menu button {
  border: none;
  background: transparent;
  color: var(--text);
  text-align: left;
  padding: 8px;
  border-radius: 10px;
}
.fab-menu button:hover {
  background: var(--card-soft);
}
.req-bubble-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.req-bubble {
  border: none;
  background:
    linear-gradient(
      150deg,
      rgba(20, 25, 45, 0.92),
      rgba(12, 15, 28, 0.78));
  border-radius: 999px;
  padding: 10px 18px;
  box-shadow: 0 18px 36px rgba(4, 6, 15, 0.55);
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  color: #fdfdff;
}
.req-bubble button {
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  cursor: pointer;
}
.req-bubble:hover {
  transform: translateY(-2px);
}
.bubble-title {
  font-weight: 600;
}
.req-bubble small {
  font-size: 11px;
  color: rgba(247, 248, 253, 0.65);
  text-transform: capitalize;
}
.create-btn {
  border: none;
  background:
    linear-gradient(
      120deg,
      #ff4fd8,
      #ffa14d);
  color: #05070f;
  padding: 10px 20px;
  border-radius: 999px;
  font-weight: 600;
  box-shadow: 0 18px 32px rgba(255, 79, 216, 0.25);
  cursor: pointer;
}
.banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border-radius: 16px;
  margin-bottom: 16px;
  font-weight: 500;
}
.banner-success {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}
.banner-error {
  background: rgba(248, 113, 113, 0.2);
  color: #991b1b;
}
.banner-close {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: inherit;
  line-height: 1;
}
.automation-callout {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-soft);
  box-shadow: var(--shadow-card-soft);
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.automation-callout strong {
  display: block;
  margin-bottom: 4px;
}
.automation-callout p {
  margin: 0;
}
.automation-callout.running {
  border-color: rgba(138, 192, 255, 0.5);
}
.automation-callout.attention {
  border-color: rgba(248, 113, 113, 0.5);
}
.chat-thread {
  max-height: 420px;
  min-height: 320px;
  overflow-y: auto;
  margin-bottom: 16px;
  padding: 12px;
  background: var(--card-soft);
  border-radius: 18px;
  box-shadow: inset 0 6px 18px rgba(0, 0, 0, 0.3);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.chat-message {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.chat-message .role {
  font-size: 12px;
  text-transform: uppercase;
  color: var(--muted);
}
.chat-message .bubble {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card-soft);
  line-height: 1.5;
}
.chat-message .bubble p {
  margin: 0 0 0.5rem;
}
.chat-message .bubble ul,
.chat-message .bubble ol {
  margin: 0 0 0.6rem 1.2rem;
}
.chat-message .bubble pre {
  margin: 0.4rem 0;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border-radius: 8px;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  white-space: pre-wrap;
}
.chat-message.chat-user .bubble {
  align-self: flex-end;
  background: var(--primary);
  color: #05060b;
}
.chat-message.chat-assistant .bubble {
  align-self: flex-start;
  background: var(--card-soft);
}
.chat-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.chat-form button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}
.idea-suggestions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 12px 0;
}
.idea-suggestions button {
  border-radius: 999px;
  border: 1px solid var(--card-border);
  padding: 6px 12px;
  background: var(--card-soft);
  cursor: pointer;
  font-size: 13px;
}
.log-viewer {
  background: #05060b;
  color: #f0f0f0;
  border-radius: 12px;
  padding: 16px;
  min-height: 320px;
  max-height: 480px;
  overflow: auto;
  max-width: 100%;
  width: 100%;
  box-sizing: border-box;
}
.log-viewer pre {
  margin: 0;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  white-space: pre-wrap;
  word-break: break-word;
}
.log-viewer.empty {
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
}
textarea,
input,
select {
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: var(--field-bg);
  color: var(--text);
  margin-bottom: 12px;
  font-family: inherit;
}
input::placeholder,
textarea::placeholder,
select::placeholder {
  color: rgba(247, 248, 253, 0.6);
}
.req-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.req-tools {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  margin-bottom: 16px;
}
.build-space {
  min-height: 0;
}
.build-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(320px, 2fr);
  gap: 24px;
  margin-top: 16px;
}
.build-reqs,
.build-jobs {
  min-width: 0;
}
.build-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}
.build-tabs {
  display: flex;
  gap: 12px;
  margin: 16px 0 20px;
  flex-wrap: wrap;
}
.build-tab {
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(
      140deg,
      rgba(16, 20, 38, 0.92),
      rgba(12, 15, 28, 0.8));
  color: rgba(247, 248, 253, 0.9);
  padding: 10px 18px;
  font-weight: 600;
  text-transform: capitalize;
  cursor: pointer;
  transition:
    background 0.2s,
    color 0.2s,
    border 0.2s;
}
.build-tab.active {
  background: var(--primary);
  border-color: transparent;
  color: #05060b;
}
.build-jobs {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.build-jobs ul {
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 300px;
  overflow-y: auto;
}
.build-queue {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.queue-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 1fr);
  gap: 24px;
  align-items: flex-start;
}
.queue-layout.detail-only .queue-column.queue-list {
  display: none;
}
.queue-layout.detail-only .queue-column.queue-detail {
  width: 100%;
}
.queue-layout.no-detail {
  grid-template-columns: 1fr;
}
.queue-column {
  min-width: 0;
}
.task-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
@media (max-width: 1100px) {
  .queue-layout {
    grid-template-columns: 1fr;
  }
}
.task-card {
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      150deg,
      rgba(14, 18, 34, 0.92),
      rgba(10, 12, 24, 0.86));
  box-shadow: 0 25px 45px rgba(4, 6, 14, 0.55);
  cursor: pointer;
  transition:
    transform 0.2s,
    border 0.2s,
    box-shadow 0.2s;
  color: #fdfdff;
}
.task-card.active {
  border-color: var(--primary);
  transform: translateY(-4px);
  box-shadow: var(--shadow-soft);
}
.task-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}
.task-card-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}
.task-card-summary {
  margin-top: 12px;
  margin-bottom: 0;
  color: rgba(247, 248, 253, 0.72);
  font-size: 14px;
}
.task-detail {
  margin-top: 16px;
  padding: 22px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      150deg,
      rgba(14, 18, 34, 0.94),
      rgba(10, 12, 24, 0.88));
  box-shadow: 0 28px 50px rgba(4, 6, 14, 0.55);
  color: #fdfdff;
}
.task-detail.empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  text-align: center;
}
.task-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}
.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 4px;
}
.task-edit-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin: 16px 0;
}
.task-safe-note {
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(
      140deg,
      rgba(20, 25, 45, 0.92),
      rgba(12, 15, 28, 0.78));
  color: rgba(247, 248, 253, 0.72);
  margin-top: 12px;
}
.safe-preview {
  margin: 8px 0;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px dashed var(--card-border);
  background: var(--field-bg);
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
  white-space: pre-wrap;
}
.workspace-admin {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 24px;
}
.workspace-form,
.workspace-list {
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      150deg,
      rgba(14, 18, 34, 0.92),
      rgba(10, 12, 24, 0.86));
  padding: 20px;
  box-shadow: 0 25px 45px rgba(4, 6, 14, 0.55);
  color: #fdfdff;
}
.workspace-card-admin {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
  background:
    linear-gradient(
      145deg,
      rgba(18, 22, 40, 0.92),
      rgba(12, 15, 28, 0.82));
  color: #fdfdff;
}
.workspace-card-admin.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 2px var(--primary-soft);
}
.workspace-admin.members {
  margin-top: 24px;
}
.workspace-card-admin.member-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.workspace-card-admin.member-card button {
  margin-left: 12px;
}
.archive-toggle {
  margin-top: 16px;
  border-top: 1px solid var(--card-border);
  padding-top: 12px;
}
.archive-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.task-card.archived {
  opacity: 0.75;
}
.snippet-buttons button {
  margin-right: 8px;
  margin-bottom: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background:
    linear-gradient(
      140deg,
      rgba(16, 20, 38, 0.92),
      rgba(12, 15, 28, 0.8));
  padding: 8px 14px;
  font-weight: 600;
  color: rgba(247, 248, 253, 0.9);
}
.req-detail {
  margin-top: 16px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      150deg,
      rgba(14, 18, 34, 0.92),
      rgba(10, 12, 24, 0.86));
  box-shadow: 0 25px 45px rgba(4, 6, 14, 0.55);
  max-width: 520px;
  max-height: 540px;
  overflow-y: auto;
  color: #fdfdff;
}
.req-detail-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}
.req-detail-head h4 {
  margin: 0;
}
.req-detail-head small {
  color: rgba(247, 248, 253, 0.7);
}
.req-detail-preview {
  margin-top: 16px;
  padding: 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(5, 7, 15, 0.75);
  max-height: 280px;
  overflow-y: auto;
  color: rgba(247, 248, 253, 0.85);
}
.req-detail-preview pre {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.form-hint.error {
  color: #b91c1c;
  margin-top: 4px;
}
.form-hint.success {
  color: #15803d;
  margin-top: 4px;
}
.empty-state {
  color: rgba(247, 248, 253, 0.7);
  margin-top: 12px;
}
ul {
  list-style: none;
  padding: 0;
}
li button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 4px 0;
  cursor: pointer;
}
.conversation-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
}
.conversation-button {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(
      150deg,
      rgba(14, 18, 34, 0.92),
      rgba(10, 12, 24, 0.84));
  font-weight: 600;
  color: #fdfdff;
  box-shadow: 0 20px 40px rgba(3, 5, 12, 0.6);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.conversation-button.active {
  border-color: var(--primary);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.5);
}
.conversation-title {
  font-weight: 600;
}
.conversation-summary {
  font-size: 13px;
  color: rgba(247, 248, 253, 0.7);
}
.think-actions {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.think-title-edit {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.think-title-edit input {
  margin-bottom: 0;
  flex: 1;
}
.think-body {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 24px;
  align-items: flex-start;
}
.think-body.has-plan {
  grid-template-columns: 260px minmax(0, 1fr) minmax(240px, 320px);
}
.think-body.detail-only {
  grid-template-columns: minmax(0, 1fr);
}
.think-list,
.think-chat,
.think-plan {
  min-width: 0;
}
.think-list input {
  margin-bottom: 12px;
}
.think-chat {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.think-plan {
  width: 100%;
}
.back-btn {
  margin-bottom: 8px;
}
.ghost-btn {
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: transparent;
  color: #fdfdff;
  border-radius: 999px;
  padding: 10px 20px;
  font-weight: 500;
  transition:
    border 0.2s,
    color 0.2s,
    background 0.2s;
}
.ghost-btn:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.08);
}
.ghost-btn.danger {
  border-color: rgba(248, 113, 113, 0.5);
  color: #b91c1c;
}
.spec-preview {
  width: 320px;
  background:
    linear-gradient(
      150deg,
      rgba(14, 18, 34, 0.94),
      rgba(10, 12, 24, 0.88));
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 25px 45px rgba(4, 6, 14, 0.55);
  padding: 16px;
  max-height: 80vh;
  overflow: auto;
  color: #fdfdff;
}
.specs-body,
.reqs-body {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 20px;
  margin-top: 20px;
}
.spec-preview-wrapper,
.req-preview-wrapper {
  min-height: 0;
}
.spec-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.spec-card {
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background:
    linear-gradient(
      145deg,
      rgba(18, 22, 40, 0.92),
      rgba(12, 15, 28, 0.82));
  padding: 14px;
  cursor: pointer;
  color: #fdfdff;
}
.spec-card.active {
  border-color: var(--primary);
}
.spec-meta {
  display: block;
  font-size: 12px;
  color: rgba(247, 248, 253, 0.65);
}
.spec-tools,
.req-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.spec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
.spec-preview pre {
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
}
.plan-summary {
  background:
    linear-gradient(
      145deg,
      rgba(18, 22, 40, 0.92),
      rgba(12, 15, 28, 0.82));
  border-radius: 16px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: rgba(247, 248, 253, 0.82);
}
.spec-placeholder,
.req-preview {
  border-radius: 12px;
  border: 1px dashed rgba(255, 255, 255, 0.3);
  background: rgba(5, 7, 15, 0.75);
  padding: 20px;
  min-height: 200px;
  max-height: 540px;
  overflow-y: auto;
  color: rgba(247, 248, 253, 0.85);
}
.req-preview pre {
  white-space: pre-wrap;
  font-family: "JetBrains Mono", monospace;
  font-size: 13px;
  max-height: 420px;
  overflow-y: auto;
}
.req-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}
.spec-tools,
.req-tools {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.req-preview-wrapper,
.spec-preview-wrapper {
  min-height: 0;
}
.req-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  border: 1px solid var(--border);
  background: transparent;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
}
.filter-pill.active {
  border-color: var(--primary);
  color: var(--primary);
}
.job-filter {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.runs-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.job-meta {
  margin-top: 16px;
  padding: 16px;
  border-radius: 18px;
  border: 1px solid var(--card-border);
  background: var(--card-bg);
  box-shadow: var(--shadow-card);
}
.job-meta h4 {
  margin-top: 0;
  margin-bottom: 12px;
}
.job-meta dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.job-meta dt {
  font-size: 11px;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0;
}
.job-meta dd {
  margin: 0;
  font-weight: 600;
}
.progress-tabs {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.progress-tab {
  border-radius: 999px;
  border: 1px solid var(--card-border);
  padding: 8px 14px;
  background: var(--card-soft);
  cursor: pointer;
  text-transform: capitalize;
}
.progress-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}
.activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.activity-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.activity-title {
  margin: 0;
  font-weight: 600;
}
.activity-description {
  margin: 4px 0 0;
  color: var(--muted);
}
.status-chip {
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 600;
  text-transform: capitalize;
  background: rgba(99, 102, 241, 0.1);
  color: #1e1b4b;
}
.status-running {
  background: rgba(251, 191, 36, 0.2);
  color: #92400e;
}
.status-done {
  background: rgba(16, 185, 129, 0.2);
  color: #065f46;
}
.status-error {
  background: rgba(248, 113, 113, 0.25);
  color: #991b1b;
}
.status-needs {
  background: rgba(251, 146, 60, 0.25);
  color: #9a3412;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-top: 16px;
}
.settings-card {
  padding: 18px;
  border-radius: 20px;
  background:
    linear-gradient(
      145deg,
      rgba(12, 16, 30, 0.94),
      rgba(7, 9, 20, 0.86));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 30px 60px rgba(3, 4, 12, 0.55);
  display: flex;
  flex-direction: column;
  gap: 12px;
  color: #fdfdff;
}
.mode-toggle {
  display: flex;
  gap: 8px;
}
.mode-pill {
  flex: 1;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  padding: 8px 14px;
  background:
    linear-gradient(
      140deg,
      rgba(16, 20, 38, 0.92),
      rgba(12, 15, 28, 0.8));
  cursor: pointer;
  color: rgba(247, 248, 253, 0.9);
}
.mode-pill.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}
.job-meta.empty {
  border-style: dashed;
  text-align: center;
}
.status-pill {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: capitalize;
}
.status-running {
  background: rgba(255, 214, 102, 0.3);
  color: #a15c00;
}
.status-done {
  background: rgba(16, 185, 129, 0.2);
  color: #047857;
}
.status-error {
  background: rgba(248, 113, 113, 0.25);
  color: #991b1b;
}
.status-queued {
  background: rgba(191, 219, 254, 0.4);
  color: #1d4ed8;
}
.status-cancelled {
  background: rgba(148, 163, 184, 0.3);
  color: #475569;
}
.status-draft {
  background: rgba(226, 232, 240, 0.8);
  color: #475569;
}
.status-ready {
  background: rgba(147, 197, 253, 0.4);
  color: #1d4ed8;
}
.req-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.req-meta small {
  color: rgba(247, 248, 253, 0.7);
  max-width: 60%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.mobile-only {
  display: none;
}
.nav-bottom {
  display: none;
}
@media (max-width: 960px) {
  .app-frame {
    flex-direction: column;
  }
  .nav-rail {
    display: none;
  }
  .app-content {
    padding: 16px;
  }
  .app-header.mobile-only {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    background: rgba(5, 7, 15, 0.85);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
  }
  main {
    width: 100%;
  }
  .panel {
    border-radius: 20px;
    padding: 20px;
  }
  .nav-bottom {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    gap: 10px;
    background: rgba(5, 7, 15, 0.85);
    padding: 12px;
    padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    border-radius: 20px;
    box-shadow: var(--shadow-soft);
    position: sticky;
    bottom: 12px;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px));
    margin-bottom: env(safe-area-inset-bottom, 0px);
  }
  .nav-bottom-link {
    text-align: center;
    text-decoration: none;
    padding: 8px;
    border-radius: 12px;
    font-size: 14px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.05);
  }
  .nav-bottom-link.active {
    background: rgba(255, 255, 255, 0.1);
    color: var(--text);
  }
  .think-body,
  .think-body.has-plan,
  .think-body.detail-only {
    display: flex;
    flex-direction: column;
  }
  .think-list,
  .think-chat,
  .think-plan {
    width: 100%;
  }
  .think-body.detail-only .think-list {
    display: none;
  }
  .chat-thread,
  .task-list {
    max-height: none;
  }
  .specs-body,
  .reqs-body {
    grid-template-columns: 1fr;
  }
  .spec-preview,
  .req-preview {
    width: 100%;
  }
  .build-grid {
    grid-template-columns: 1fr;
  }
  .req-tools {
    grid-template-columns: 1fr;
  }
  .build-jobs ul {
    max-height: none;
  }
}
/*# sourceMappingURL=main.css.map */
