:root {
  --bg: #fafafa;
  --bg-elevated: #ffffff;
  --bg-card: #ffffff;
  --bg-subtle: #f4f4f7;
  --border: #e8e8ee;
  --border-hover: #d6d6e0;
  --text: #0a0a0f;
  --text-muted: #5a5a6b;
  --text-dim: #8a8a99;
  --accent: #00b894;
  --accent-dim: rgba(0, 184, 148, 0.1);
  --accent-contrast: #ffffff;
  --radius: 12px;
  --radius-sm: 8px;
  --max-width: 1120px;
  --font-sans: "Geist Variable", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "Geist Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 12px rgba(15, 23, 42, 0.06);
  --shadow-lg: 0 12px 32px rgba(15, 23, 42, 0.1);
  --success: #10b981;
  --warning: #f59e0b;
  --danger: #ef4444;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ── Header ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.82);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.brand-name {
  line-height: 1;
}

.brand-mark {
  width: 32px;
  height: 32px;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
}

.header-nav {
  display: none;
  align-items: center;
  gap: 28px;
  flex: 1 1 auto;
  justify-content: center;
}

.header-nav a {
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--text-muted);
  transition: color 0.2s;
}

.header-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 0 0 auto;
}

.locale-switcher {
  display: flex;
  gap: 4px;
  padding: 3px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.locale-btn {
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: 6px;
  transition: all 0.2s;
}

.locale-btn:hover {
  color: var(--text);
}

.locale-btn.active {
  background: var(--accent-dim);
  color: var(--accent);
}

.nav-cta {
  display: none;
  padding: 11px 18px;
  font-size: 14px;
  font-weight: 600;
  background: var(--accent);
  color: var(--bg);
  border-radius: var(--radius-sm);
  transition: opacity 0.2s;
}

.nav-cta:hover {
  opacity: 0.9;
}

/* Mobile hamburger */
.menu-toggle {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}

.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--text-muted);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

.menu-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.menu-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.menu-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.mobile-nav {
  display: none;
  flex-direction: column;
  gap: 8px;
  padding: 16px 24px 24px;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.mobile-nav.is-open {
  display: flex;
}

.mobile-nav a {
  padding: 8px 0;
  font-size: 15px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.mobile-nav a:hover {
  color: var(--text);
}

.header-login {
  padding: 10px 16px;
  font-size: 13px;
}

@media (min-width: 768px) {
  .header-nav {
    display: flex;
  }
  .nav-cta {
    display: inline-block;
  }
  .menu-toggle {
    display: none;
  }
}

/* App header nav (shared AppHeader component). */
.app-nav {
  display: none;
  align-items: center;
  gap: 2px;
  flex: 1 1 auto;
  justify-content: center;
}
.app-nav-link {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  text-decoration: none;
  transition: color 0.2s ease, background 0.2s ease;
}
.app-nav-link:hover {
  color: var(--text);
  background: var(--bg-subtle);
}
.app-nav-link.is-active {
  color: var(--text);
}
.app-logout {
  padding: 8px 16px;
  font-size: 13px;
}
.app-feedback {
  display: none;
}
@media (min-width: 768px) {
  .app-nav {
    display: flex;
  }
  .app-feedback {
    display: inline-flex;
  }
}

/* ── Sections ── */
.section {
  padding: 72px 24px;
}

.section-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.section-inner--narrow {
  max-width: 800px;
  margin: 0 auto;
}

.section h2 {
  font-size: clamp(24px, 3.5vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 14px;
}

.section-heading-center {
  text-align: center;
  margin-bottom: 48px;
}

.section h2--center {
  text-align: center;
}

.section h2--lg {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 12px;
}

.section-body {
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.72;
  max-width: 720px;
  margin-bottom: 32px;
}

.section-body--center {
  text-align: center;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.section-closing {
  text-align: center;
  margin-top: 28px;
  color: var(--text-dim);
  font-style: italic;
  font-size: 15px;
}

.section-closing--accent {
  color: var(--accent);
  font-weight: 600;
  font-style: normal;
  font-size: 16px;
}

/* ── Divider ── */
.section-divider {
  max-width: var(--max-width);
  margin: 0 auto;
  height: 1px;
  background: var(--border);
}

/* ── Hero ── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 24px 72px;
  text-align: center;
}

.hero::before {
  content: "";
  position: absolute;
  inset: -160px auto auto 50%;
  width: 720px;
  height: 420px;
  transform: translateX(-50%);
  background: none;
  pointer-events: none;
}

.hero-inner {
  position: relative;
  max-width: 920px;
  margin: 0 auto;
}

.hero-kicker {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--bg-subtle);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 11.5ch;
  margin: 0 auto 20px;
  font-size: clamp(40px, 6vw, 76px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.hero-sub {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--text-muted);
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto 24px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-pill {
  padding: 8px 14px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 13px;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 18px;
}

.hero-tagline {
  font-size: 14px;
  color: var(--text-dim);
  letter-spacing: -0.01em;
}

.hero-proof-grid {
  display: grid;
  gap: 14px;
  margin-top: 40px;
  text-align: left;
}

.hero-proof-card {
  padding: 22px 24px 24px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--bg-elevated);
}

.hero-proof-index {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hero-proof-card h3 {
  font-size: 19px;
  line-height: 1.2;
  margin-bottom: 10px;
}

.hero-proof-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 15px 26px;
  font-size: 15px;
  font-weight: 600;
  border-radius: 14px;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg);
}

.btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  border-color: var(--border-hover);
  background: var(--bg-subtle);
}

.btn-block {
  width: 100%;
}

/* ── Features grid ── */
.features-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

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

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: border-color 0.3s, transform 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
}

.feature-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 6px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.3;
}

.feature-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .hero-proof-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* ── Use-cases grid ── */
.usecases-grid {
  display: grid;
  gap: 14px;
  margin-top: 36px;
}

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

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

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

.usecase-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.3s;
}

.usecase-card:hover {
  border-color: var(--border-hover);
}

.usecase-role {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text);
}

.usecase-role--spaced {
  margin-top: 12px;
}

.usecase-task {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 0;
}

.usecase-list {
  list-style: none;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.usecase-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 8px;
}

.usecase-list li .dash {
  color: var(--accent);
}

@media (min-width: 768px) {
  .usecases-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .usecases-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ── How it works (steps) ── */
.steps-grid {
  display: grid;
  gap: 18px;
  margin-top: 36px;
}

.step-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}

.step-num {
  font-size: 13px;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 16px;
  letter-spacing: 0.05em;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

@media (min-width: 768px) {
  .steps-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ── Evolution logs ── */
.evo-logs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 720px;
}

.evo-log-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.evo-log-item .prefix {
  color: var(--accent);
  font-weight: 700;
  margin-right: 8px;
}

/* ── Value expansion points ── */
.check-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 560px;
}

.check-list li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.check-list li .check {
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Pricing ── */
.pricing-grid {
  align-items: stretch;
}

.pricing-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: border-color 0.3s;
}

.pricing-card:hover {
  border-color: var(--border-hover);
}

.pricing-card--highlighted {
  border-color: var(--accent);
}

.pricing-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: var(--bg);
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.pricing-card h3 {
  font-size: 19px;
  font-weight: 700;
  margin-bottom: 8px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-muted);
  margin-bottom: 20px;
  min-height: 40px;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 20px;
  flex: 1;
}

.pricing-features li {
  font-size: 14px;
  color: var(--text-muted);
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pricing-features li .check {
  color: var(--accent);
  flex-shrink: 0;
}

/* ── FAQ ── */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.faq-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.faq-summary {
  padding: 18px 22px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.faq-summary::-webkit-details-marker {
  display: none;
}

.faq-icon {
  color: var(--text-dim);
  font-size: 18px;
  margin-left: 12px;
  transition: transform 0.3s;
}

details[open] .faq-icon {
  transform: rotate(45deg);
}

.faq-answer {
  padding: 0 22px 18px;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
}

.form-helper {
  font-size: 13px;
  color: var(--text-dim);
}

.form-notice {
  margin-top: 16px;
  font-size: 14px;
  padding: 12px 20px;
  border-radius: var(--radius-sm);
  display: inline-block;
}

.form-notice.success {
  background: rgba(0, 184, 148, 0.1);
  color: var(--accent);
  border: 1px solid var(--accent-dim);
}

.form-notice.error {
  background: rgba(239, 68, 68, 0.1);
  color: #ef4444;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* ── Footer ── */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px;
  text-align: center;
}

.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  margin-bottom: 16px;
}

.footer-link {
  font-size: 13px;
  color: var(--text-muted);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text);
}

.site-footer p {
  font-size: 13px;
  color: var(--text-dim);
}

/* ── Auth ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px 32px;
}

.oauth-btn {
  justify-content: center;
  gap: 12px;
}

.oauth-btn svg {
  flex-shrink: 0;
}

/* ── Dashboard ── */
.dashboard-page {
  min-height: 100vh;
}

/* Stats row */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-bottom: 8px;
}

.stat-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-value {
  font-size: 28px;
  font-weight: 800;
  color: var(--accent);
}

.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* Claws list */
.claws-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.claw-card {
  display: block;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s;
}

.claw-card:hover {
  border-color: var(--border-hover);
}

/* Claw status badge */
.claw-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
}

.claw-status--paused {
  background: rgba(255, 200, 50, 0.15);
  color: #ffc832;
}

.claw-status--archived {
  background: var(--bg-subtle);
  color: var(--text-dim);
}

/* Dashboard grid (detail page) */
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
}

/* Timeline */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 0;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.timeline-item {
  position: relative;
  padding: 8px 0;
}

.timeline-icon {
  position: absolute;
  left: -24px;
  top: 10px;
  width: 14px;
  height: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  color: var(--accent);
  background: var(--bg);
  border-radius: 50%;
  z-index: 1;
}

/* Empty state */
.empty-state {
  text-align: center;
  color: var(--text-dim);
  padding: 24px 0;
}

.empty-state-card {
  text-align: center;
}

/* Form styles */
.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.form-input:focus,
.form-textarea:focus {
  border-color: var(--accent);
}

.form-textarea {
  resize: vertical;
}

/* ── Workflow workspace ── */
.workflow-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 28px;
}

.workflow-hero h1 {
  font-size: 34px;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 8px;
}

.workflow-hero p {
  color: var(--text-muted);
  max-width: 720px;
}

.workflow-loop {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 28px;
}

.workflow-step {
  min-height: 72px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-elevated);
}

.workflow-step span {
  display: block;
  color: var(--text-dim);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.workflow-step strong {
  font-size: 14px;
}

.workflow-step--done {
  border-color: rgba(0, 184, 148, 0.35);
  background: var(--accent-dim);
}

.workflow-step--next {
  border-color: var(--border-hover);
}

.workflow-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 24px;
  align-items: start;
}

.workflow-main,
.workflow-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.workflow-panel {
  padding: 24px;
}

.workflow-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}

.workflow-panel-head h2 {
  font-size: 20px;
  line-height: 1.2;
}

.workflow-state {
  flex: 0 0 auto;
  padding: 6px 10px;
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.workflow-state--ready {
  border-color: rgba(0, 184, 148, 0.3);
  color: var(--accent);
  background: var(--accent-dim);
}

.workflow-pre,
.workflow-code {
  max-height: 460px;
  overflow: auto;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--text);
  white-space: pre-wrap;
  line-height: 1.7;
  font-size: 14px;
}

.workflow-pre {
  font-family: inherit;
}

.workflow-code {
  font-family: var(--font-mono);
}

.workflow-empty {
  padding: 24px;
  border: 1px dashed var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-subtle);
}

.workflow-empty h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.workflow-empty p {
  margin-bottom: 16px;
}

.run-list,
.artifact-list,
.metadata-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.run-row,
.artifact-row,
.metadata-list div {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.run-row:last-child,
.artifact-row:last-child,
.metadata-list div:last-child {
  border-bottom: 0;
}

.run-row p,
.artifact-row span,
.metadata-list span {
  color: var(--text-muted);
  font-size: 13px;
}

.run-row > span,
.metadata-list strong {
  color: var(--text-dim);
  font-size: 12px;
  text-align: right;
  flex: 0 0 auto;
}

@media (max-width: 820px) {
  .workflow-hero,
  .workflow-panel-head,
  .run-row,
  .artifact-row,
  .metadata-list div {
    flex-direction: column;
  }

  .workflow-loop {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workflow-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Claw Layout ── */
.claw-layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px;
  min-height: calc(100vh - 60px);
}

.claw-sidebar {
  border-right: 1px solid var(--border);
  padding-right: 24px;
}

.sidebar-section {
  margin-bottom: 20px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* ── Chat ── */
.chat-area {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 400px;
  max-height: calc(100vh - 200px);
}

.chat-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-dim);
  font-size: 14px;
}

.chat-bubble {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

.chat-bubble--user {
  align-self: flex-end;
  background: var(--accent-dim);
  color: var(--text);
}

.chat-bubble--assistant {
  align-self: flex-start;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  color: var(--text);
}

.chat-bubble-role {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.chat-bubble-content {
  white-space: pre-wrap;
  word-break: break-word;
}

.chat-typing {
  color: var(--text-muted);
  font-style: italic;
  display: flex;
  gap: 4px;
  align-items: center;
}

/* Streaming cursor animation */
.chat-cursor {
  display: inline-block;
  width: 8px;
  height: 16px;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1s step-end infinite;
  vertical-align: middle;
}

@keyframes blink {
  0%, 50% { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Typing indicator dots */
.typing-dot {
  width: 6px;
  height: 6px;
  background: var(--text-muted);
  border-radius: 50%;
  animation: typingBounce 1.4s ease-in-out infinite;
}

.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingBounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-6px); }
}

/* Streaming message style */
.chat-bubble--streaming {
  border-color: var(--accent-dim);
}

.chat-input-area {
  display: flex;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--border);
}

.chat-input {
  flex: 1;
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.chat-input:focus {
  border-color: var(--accent);
}

.chat-input:disabled {
  opacity: 0.5;
}

.chat-send-btn {
  padding: 10px 20px;
  font-size: 14px;
}

/* ── Code Execution Result ── */
.code-execution-result {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin: 12px 0;
  overflow: hidden;
}

.code-execution-result--loading {
  border-color: var(--accent-dim);
}

.code-execution-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 14px;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 12px;
}

.code-execution-status {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.code-execution-status--success {
  color: var(--accent);
}

.code-execution-status--error {
  color: #ff5a5f;
}

.code-execution-status--loading {
  color: var(--text-muted);
}

.code-execution-meta {
  color: var(--text-dim);
  font-size: 11px;
}

.code-execution-output {
  padding: 12px 14px;
}

.code-execution-output--error {
  background: rgba(255, 90, 95, 0.05);
  border-top: 1px solid rgba(255, 90, 95, 0.2);
}

.code-execution-output-header {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 8px;
  letter-spacing: 0.05em;
}

.code-execution-content {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.code-execution-empty {
  color: var(--text-dim);
  font-style: italic;
  font-size: 13px;
}

.code-execution-spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 8px auto;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Memory Manager ── */
.memory-manager {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.memory-manager--empty {
  padding: 12px 0;
}

.memory-empty-text {
  font-size: 12px;
  color: var(--text-dim);
  margin: 0;
}

.memory-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.memory-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.memory-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.memory-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  transition: border-color 0.2s;
}

.memory-item:hover {
  border-color: var(--border-hover);
}

.memory-summary {
  padding: 10px 12px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.memory-content-preview {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
}

.memory-source-badge {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--accent-dim);
  color: var(--accent);
  flex-shrink: 0;
}

.memory-text {
  font-size: 12px;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.memory-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.memory-time {
  font-size: 11px;
  color: var(--text-dim);
}

.memory-delete-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
}

.memory-delete-btn:hover {
  color: #ff5a5f;
  background: rgba(255, 90, 95, 0.1);
}

.memory-delete-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.memory-details {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
}

.memory-full-content {
  font-size: 13px;
  color: var(--text);
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 8px;
}

.memory-details-meta {
  display: flex;
  gap: 16px;
  font-size: 11px;
  color: var(--text-dim);
}

/* ── Skill Manager ── */
.skill-manager {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
}

.skill-count {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.skill-create-btn {
  flex-shrink: 0;
}

.skill-loading,
.skill-error,
.skill-empty {
  padding: 12px 0;
  font-size: 12px;
  text-align: center;
}

.skill-error {
  color: #ff5a5f;
}

.skill-empty p {
  color: var(--text-dim);
  margin: 0;
}

.skill-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.skill-item {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.skill-info {
  flex: 1;
  min-width: 0;
}

.skill-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 4px;
}

.skill-description {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.skill-meta {
  display: flex;
  gap: 10px;
  font-size: 11px;
}

.skill-actions {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}

.skill-action-btn {
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 500;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

.skill-action-btn:hover:not(:disabled) {
  background: var(--bg-elevated);
  border-color: var(--border-hover);
}

.skill-action-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.skill-action-btn--edit {
  color: var(--accent);
  border-color: rgba(0, 184, 148, 0.2);
}

.skill-action-btn--edit:hover:not(:disabled) {
  background: var(--accent-dim);
}

.skill-action-btn--delete {
  color: #ff5a5f;
  border-color: rgba(255, 90, 95, 0.2);
}

.skill-action-btn--delete:hover:not(:disabled) {
  background: rgba(255, 90, 95, 0.1);
}

.skill-language {
  color: var(--accent);
  font-weight: 500;
}

.skill-file,
.skill-time {
  color: var(--text-dim);
}

.skill-create-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius-sm);
  padding: 12px;
}

.skill-form-input,
.skill-form-textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.skill-form-input:focus,
.skill-form-textarea:focus {
  border-color: var(--accent);
}

.skill-form-textarea {
  font-family: var(--font-mono);
  font-size: 12px;
  resize: vertical;
}

.skill-form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

/* ── Provider Configuration ── */
.provider-config {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  margin-top: 8px;
}

.provider-config-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.provider-test-btn {
  flex-shrink: 0;
}

.provider-test-result {
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.provider-test-result.success {
  color: var(--accent);
}

.provider-test-result.error {
  color: #ff5a5f;
}

.provider-config-info {
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.provider-config-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

/* ── Sandbox Manager ── */
.sandbox-manager {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sandbox-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.sandbox-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}

.sandbox-status {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-radius: 4px;
}

.sandbox-status--loading {
  color: var(--text-dim);
  background: var(--bg-subtle);
}

.sandbox-status--active {
  color: var(--accent);
  background: var(--accent-dim);
}

.sandbox-status--inactive {
  color: var(--text-dim);
  background: var(--bg-subtle);
}

.sandbox-status--error {
  color: #ff5a5f;
  background: rgba(255, 90, 95, 0.1);
}

.sandbox-stats {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
}

.sandbox-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.sandbox-stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--text);
}

.sandbox-stat-label {
  font-size: 11px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sandbox-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sandbox-cleanup-btn {
  flex-shrink: 0;
}

.sandbox-info {
  padding: 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* ── Sandbox Logs ── */
.sandbox-logs {
  margin-top: 12px;
}

.sandbox-logs--open {
  padding: 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.sandbox-logs-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.sandbox-logs-loading {
  font-size: 10px;
  color: var(--accent);
  animation: pulse 1.5s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.sandbox-logs-btn {
  padding: 4px 8px;
  font-size: 11px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
}

.sandbox-logs-btn:hover:not(:disabled) {
  color: var(--text);
  border-color: var(--border-hover);
}

.sandbox-logs-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.sandbox-logs-content {
  max-height: 200px;
  overflow-y: auto;
  background: var(--bg-subtle);
  border-radius: 4px;
  padding: 8px;
}

.sandbox-logs-content::-webkit-scrollbar {
  width: 6px;
}

.sandbox-logs-content::-webkit-scrollbar-track {
  background: transparent;
}

.sandbox-logs-content::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.sandbox-logs-content::-webkit-scrollbar-thumb:hover {
  background: var(--border-hover);
}

.sandbox-log-entry {
  padding: 2px 0;
  white-space: pre-wrap;
  word-break: break-all;
}

.sandbox-log-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
}

/* ── Search Bar ── */
.search-bar {
  position: relative;
  width: 100%;
  max-width: 400px;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0 12px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-input-wrapper:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(0, 184, 148, 0.15);
}

.search-icon {
  font-size: 14px;
  opacity: 0.5;
  margin-right: 8px;
}

.search-input {
  flex: 1;
  padding: 10px 0;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: transparent;
  border: none;
  outline: none;
}

.search-input::placeholder {
  color: var(--text-dim);
}

.search-clear {
  padding: 4px 6px;
  font-size: 12px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.2s;
}

.search-clear:hover {
  color: var(--text);
  background: var(--bg-subtle);
}

.search-loading {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: searchPulse 1s ease-in-out infinite;
}

@keyframes searchPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.search-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  z-index: 1000;
  max-height: 400px;
  overflow: hidden;
}

.search-results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-subtle);
}

.search-results-count {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 600;
}

.search-results-shortcut {
  font-size: 10px;
  color: var(--text-dim);
}

.search-results-list {
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}

.search-results-list::-webkit-scrollbar {
  width: 6px;
}

.search-results-list::-webkit-scrollbar-track {
  background: transparent;
}

.search-results-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.search-result-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  text-align: left;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: background 0.15s;
}

.search-result-item:hover,
.search-result-item--selected {
  background: var(--bg-subtle);
}

.search-result-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.search-result-content {
  flex: 1;
  min-width: 0;
}

.search-result-title-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 2px;
}

.search-result-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result-type {
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  flex-shrink: 0;
}

.search-result-claw {
  font-size: 11px;
  color: var(--text-dim);
  display: block;
  margin-bottom: 2px;
}

.search-result-description {
  font-size: 12px;
  color: var(--text-muted);
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-empty {
  padding: 32px 24px;
  text-align: center;
}

.search-empty p {
  font-size: 14px;
  color: var(--text);
  margin: 0 0 4px 0;
}

.search-empty-hint {
  font-size: 12px;
  color: var(--text-dim);
}

.sandbox-info p {
  font-size: 12px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .claw-layout {
    grid-template-columns: 1fr;
  }

  .claw-sidebar {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding-right: 0;
    padding-bottom: 16px;
  }
}

/* ── Conversation Rename ── */
.conversation-rename-btn {
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s;
  line-height: 1;
  flex-shrink: 0;
}

.conversation-rename-btn:hover {
  color: var(--text);
  background: var(--bg-elevated);
}

.conversation-item-with-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  padding: 6px 8px;
  margin-bottom: 2px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.2s;
}

.conversation-item-with-actions:hover {
  background: var(--bg-subtle);
}

.conversation-item-with-actions.active {
  background: var(--bg-subtle);
}

.conversation-title {
  flex: 1;
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 24px;
}

.modal {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  width: 100%;
  max-width: 400px;
  box-shadow: var(--shadow-lg);
}

.input-field {
  padding: 10px 14px;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  outline: none;
  transition: border-color 0.2s;
}

.input-field:focus {
  border-color: var(--accent);
}

/* ── Onboarding Tooltip ── */
.onboarding-tooltip {
  position: relative;
  background: linear-gradient(135deg, rgba(0, 184, 148, 0.15), rgba(0, 184, 148, 0.05));
  border: 1px solid var(--accent-dim);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 16px;
  animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.onboarding-progress {
  position: absolute;
  top: 8px;
  right: 8px;
  font-size: 10px;
  color: var(--accent);
  background: var(--accent-dim);
  padding: 2px 6px;
  border-radius: 10px;
  font-weight: 600;
}

.onboarding-content {
  padding-right: 40px;
}

.onboarding-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 6px 0;
}

.onboarding-description {
  font-size: 13px;
  color: var(--text-muted);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.onboarding-action {
  padding: 6px 12px;
  font-size: 12px;
  margin-right: 8px;
}

.onboarding-dismiss {
  font-size: 12px;
  color: var(--text-dim);
  background: transparent;
  border: 1px solid var(--border);
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s;
}

.onboarding-dismiss:hover {
  color: var(--text);
  border-color: var(--border-hover);
}

/* ── Toast Animation ── */
@keyframes toastSlideIn {
  from {
    transform: translateX(100%);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

/* ── Spinner ── */
.spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}


/* ── Landing Components (2026-06 redesign) ── */

.hero--landing {
  padding-top: 96px;
  padding-bottom: 96px;
}

.hero-proof-row {
  display: inline-flex;
  align-items: center;
  gap: 20px;
  margin-top: 48px;
  padding: 16px 28px;
  border-radius: 999px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
}

.hero-proof-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
  color: var(--text-muted);
  font-size: 14px;
}

.hero-proof-item strong {
  color: var(--text);
  font-size: 18px;
  font-weight: 700;
}

.hero-proof-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
}

.section--dark {
  background: var(--bg-subtle);
}

.feature-grid--3 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.feature-grid--4 {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (min-width: 1024px) {
  .feature-grid--4 {
    grid-template-columns: repeat(4, 1fr);
  }
}

.before-after-table {
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
}

.before-after-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding: 18px 22px;
  border-bottom: 1px solid var(--border);
}

.before-after-row:last-child {
  border-bottom: none;
}

.before-after-row--head {
  background: var(--bg-elevated);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}

.before-after-cell {
  font-size: 15px;
  line-height: 1.5;
}

.before-after-cell--before {
  color: var(--text-muted);
}

.before-after-cell--after {
  color: var(--text);
}

.pricing-price {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
  line-height: 1;
}

.pricing-period {
  font-size: 16px;
  font-weight: 500;
  color: var(--text-muted);
  margin-left: 2px;
}

.cta-section--landing {
  text-align: center;
}

@media (max-width: 640px) {
  .hero-proof-row {
    flex-direction: column;
    gap: 12px;
    border-radius: var(--radius);
    width: 100%;
    max-width: 320px;
  }

  .hero-proof-divider {
    width: 40px;
    height: 1px;
  }

  .before-after-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .before-after-row--head {
    display: none;
  }

  .before-after-cell--before::before {
    content: "Before: ";
    color: var(--text-dim);
  }

  .before-after-cell--after::before {
    content: "After: ";
    color: var(--accent);
    font-weight: 600;
  }
}

