:root {
  --bg: #000000;
  --bg-2: #070707;
  --surface: #141414;
  --surface-2: #1c1c1c;
  --elev: #222222;
  --input: #2a2a2a;
  --text: #ffffff;
  --muted: rgba(255, 255, 255, 0.6);
  --faint: rgba(255, 255, 255, 0.4);
  --line: rgba(255, 255, 255, 0.1);
  --line-strong: rgba(255, 255, 255, 0.16);
  --accent: #ffffff;
  --accent-2: #d4d4d4;
  --danger: #ff453a;
  --ok: #34c759;
  --font: "Inter", system-ui, -apple-system, "SF Pro Text", "Segoe UI", sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-full: 999px;
  --nav-h: 80px;
  --wrap: 1180px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --t-fast: 160ms;
  --t-base: 220ms;
  --t-slow: 320ms;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
html, body { min-height: 100%; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}
body.mode-app {
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.mode-app .site-nav,
body.mode-app .site-footer,
body.mode-app .site-cta,
body.mode-app .chat-dock,
body.mode-app .aorila-credit { display: none !important; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 3px;
}
.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;
  pointer-events: none;
}
.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 400;
  background: var(--text);
  color: var(--bg);
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
}
.skip-link:focus { top: 12px; }

.wrap {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
}
.section {
  padding: 120px 0;
  position: relative;
}
.section-tight { padding: 88px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.display {
  font-size: clamp(2.4rem, 6vw, 4.4rem);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1.08;
}
.h2 {
  font-size: clamp(2rem, 4.4vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.038em;
  line-height: 1.12;
}
.h3 {
  font-size: clamp(1.4rem, 2.4vw, 1.85rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.2;
}
.lede {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.55;
  max-width: 40rem;
}
.center { text-align: center; }
.center .lede { margin-left: auto; margin-right: auto; }
.stack-16 { display: grid; gap: 16px; }
.stack-24 { display: grid; gap: 24px; }
.stack-40 { display: grid; gap: 40px; }

[hidden] { display: none !important; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: var(--radius-full);
  padding: 12px 22px;
  font-size: 15px;
  font-weight: 500;
  transition: transform var(--t-fast) var(--ease), background var(--t-base) var(--ease), opacity var(--t-fast) var(--ease);
}
.btn:hover { transform: scale(1.02); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn-primary {
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
}
.btn-primary:hover { background: rgba(255, 255, 255, 0.22); }
.btn-solid {
  background: var(--text);
  color: var(--bg);
}
.btn-solid:hover { opacity: 0.88; transform: scale(1.02); }
.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); }
.btn-large { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.play-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.14);
  color: var(--text);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--t-fast) var(--ease), background var(--t-base) var(--ease);
}
.play-btn:hover { transform: scale(1.06); background: rgba(255, 255, 255, 0.22); }

.site-nav {
  position: sticky;
  top: 0;
  z-index: 80;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  background: transparent;
  transition: background var(--t-base) var(--ease), backdrop-filter var(--t-base) var(--ease), border-color var(--t-base) var(--ease);
  border-bottom: 1px solid transparent;
}
.site-nav.is-scrolled {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom-color: var(--line);
}
.brand,
.wordmark {
  display: inline-flex;
  align-items: center;
  font-weight: 400;
  letter-spacing: -0.03em;
  font-size: 18px;
  text-transform: lowercase;
  color: var(--text);
}
.wordmark-sm { font-size: 16px; }
.wordmark-hero {
  font-size: clamp(3.2rem, 12vw, 7.5rem);
  font-weight: 400;
  letter-spacing: -0.05em;
  line-height: 0.95;
  text-transform: lowercase;
  color: var(--text);
}
.status-mark { font-size: clamp(2.4rem, 8vw, 4.5rem); margin-bottom: 28px; }
.cta-mark { font-size: clamp(2rem, 6vw, 3.4rem); margin-bottom: 18px; }
.mark { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}
.nav-link {
  padding: 8px 14px;
  border-radius: var(--radius-full);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  background: none;
  border: 0;
  cursor: pointer;
  transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
}
.nav-link:hover,
.nav-link.is-active { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 1.5px;
  background: currentColor;
  position: relative;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.mobile-nav {
  display: none;
  position: fixed;
  inset: var(--nav-h) 0 0 0;
  background: rgba(0, 0, 0, 0.94);
  z-index: 70;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
}
body.nav-open .mobile-nav { display: flex; }

.view-container { position: relative; }
body.mode-app .view-container {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}
.page-view { display: none; }
.page-view.active { display: block; }
body.mode-app #page-workspace.page-view.active {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.page-view.active.page-enter {
  animation: pageIn 320ms var(--ease) both;
}
@keyframes pageIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

[data-reveal] {
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 720ms var(--ease), transform 720ms var(--ease);
}
[data-reveal].is-in {
  opacity: 1;
  transform: none;
}
[data-reveal="2"].is-in { transition-delay: 90ms; }
[data-reveal="3"].is-in { transition-delay: 180ms; }
[data-reveal="4"].is-in { transition-delay: 270ms; }

.hero {
  position: relative;
  min-height: calc(100vh - var(--nav-h));
  padding: 48px 0 80px;
  overflow: hidden;
  display: flex;
  align-items: center;
  background: #000;
}
.hero-brand { min-height: calc(100vh - var(--nav-h)); }
.hero-scene {
  position: absolute;
  inset: 0;
  background: #000;
  pointer-events: none;
}
.hero-scene::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 42%;
  background: linear-gradient(180deg, transparent, #000 88%);
}
.hero-inner {
  position: relative;
  z-index: 1;
  width: min(var(--wrap), calc(100% - 48px));
  margin: 0 auto;
  text-align: center;
  display: grid;
  gap: 18px;
  justify-items: center;
}
.hero-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: center; margin-top: 8px; }
.hero-mock { width: min(860px, 100%); margin-top: 28px; }

.chat-mock {
  background: rgba(12, 12, 12, 0.82);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 18px 18px 16px;
  text-align: left;
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}
.chat-mock-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.chat-mock-greet h3 { font-size: 22px; letter-spacing: -0.03em; }
.chat-mock-greet p { color: var(--muted); margin-top: 4px; }
.chat-mock-box {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--input);
  border-radius: 16px;
  padding: 12px 12px 12px 16px;
  color: var(--faint);
  font-size: 14px;
}
.chat-mock-send {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 0;
  background: var(--text);
  color: var(--bg);
  margin-left: auto;
  cursor: pointer;
}
.chat-pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 10px; }
.chip {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: background var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.chip:hover { background: rgba(255, 255, 255, 0.14); transform: translateY(-1px); }
.suggest-list { display: grid; gap: 8px; }
.suggest-list button {
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
}
.suggest-list button:hover { color: var(--text); }

.logo-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  color: var(--faint);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.logo-row span {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  opacity: 0.72;
}

.tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 5px;
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-full);
}
.tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.tab.is-on {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text);
}
.tab-panel { display: none; }
.tab-panel.is-on { display: block; }

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.card-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  background: linear-gradient(180deg, #1a1a1a, #121212);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  min-height: 220px;
  transition: transform var(--t-slow) var(--ease), border-color var(--t-base) var(--ease);
}
.card:hover {
  transform: translateY(-4px);
  border-color: var(--line-strong);
}
.card h3 { margin: 14px 0 8px; font-size: 22px; letter-spacing: -0.03em; }
.card p { color: var(--muted); font-size: 15px; }
.card .card-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.iso {
  width: 72px;
  height: 64px;
  position: relative;
  margin-bottom: 8px;
}
.iso span {
  position: absolute;
  inset: 18px 10px 8px;
  background: #2a2a2a;
  border: 1px solid var(--line-strong);
  transform: skewX(-18deg);
  border-radius: 6px;
}
.iso span:nth-child(2) { inset: 10px 16px 16px; background: #333; }
.iso span:nth-child(3) { inset: 4px 22px 24px; background: #3d3d3d; }
.iso-flag span:last-child {
  inset: 0 28px auto auto;
  width: 10px;
  height: 28px;
  transform: none;
  background: var(--text);
  border: 0;
  border-radius: 2px;
}
.iso-play span {
  inset: 12px;
  border-radius: 50%;
  transform: none;
  background: #2b2b2b;
}
.iso-play span:last-child {
  inset: 24px 22px 24px 30px;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
  border-radius: 0;
  background: var(--text);
  border: 0;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.split.reverse > :first-child { order: 2; }
.visual {
  min-height: 280px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(80% 70% at 30% 20%, rgba(255,255,255,0.08), transparent 50%),
    #141414;
  padding: 22px;
  overflow: hidden;
}
.visual-inner {
  height: 100%;
  min-height: 236px;
  border-radius: 20px;
  background: #101010;
  border: 1px solid var(--line);
  padding: 18px;
}
.mini-row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.stat-mini {
  flex: 1;
  min-width: 90px;
  background: #181818;
  border-radius: 14px;
  padding: 14px;
}
.stat-mini b { display: block; font-size: 28px; letter-spacing: -0.04em; }
.stat-mini span { color: var(--muted); font-size: 12px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}
.stat-card {
  min-height: 180px;
  border-radius: 24px;
  padding: 26px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.04), transparent 50%),
    #151515;
  border: 1px solid var(--line);
}
.stat-card b {
  display: block;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  letter-spacing: -0.05em;
  line-height: 1;
  margin-bottom: 10px;
}
.stat-card span { color: var(--muted); font-size: 14px; }

.price-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.price-card {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform var(--t-slow) var(--ease), border-color var(--t-base) var(--ease);
}
.price-card:hover { transform: translateY(-4px); }
.price-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.price-card.featured { border-color: rgba(255, 255, 255, 0.28); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08); }
.price-kicker {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin-bottom: 10px;
}
.price-card h3 { font-size: 28px; letter-spacing: -0.04em; margin-bottom: 8px; }
.price-amount {
  font-size: 40px;
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1;
  margin: 8px 0 12px;
}
.price-amount span { font-size: 16px; color: var(--muted); font-weight: 500; }
.price-card p { color: var(--muted); font-size: 14px; margin-bottom: 18px; flex: 1; }
.price-list { list-style: none; display: grid; gap: 8px; margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.price-list li::before { content: "✓ "; color: var(--text); }
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: var(--radius-full);
  padding: 6px;
  margin: 0 auto 28px;
}
.billing-toggle button {
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  cursor: pointer;
}
.billing-toggle button.is-on { background: var(--text); color: var(--bg); font-weight: 600; }

.compare { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; }
.compare table { width: 100%; border-collapse: collapse; font-size: 14px; }
.compare th, .compare td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.compare th { color: var(--muted); font-weight: 500; }
.compare td { color: var(--text); }

.faq-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 32px;
  align-items: start;
}
.faq-solo { grid-template-columns: 1fr; max-width: 720px; margin-left: auto; margin-right: auto; }
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item button {
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  padding: 18px 0;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq-item button span { color: var(--muted); }
.faq-body {
  display: none;
  color: var(--muted);
  padding: 0 0 18px;
  font-size: 15px;
}
.faq-item.open .faq-body { display: block; }
.help-card {
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
}

.quote-card {
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  gap: 24px;
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 32px;
  min-height: 280px;
}
.quote-card blockquote {
  font-size: clamp(1.2rem, 2vw, 1.6rem);
  letter-spacing: -0.03em;
  line-height: 1.35;
  font-weight: 500;
}
.quote-card cite { display: block; margin-top: 20px; color: var(--muted); font-style: normal; font-size: 14px; }
.portrait {
  border-radius: 22px;
  min-height: 220px;
  background:
    radial-gradient(circle at 40% 30%, #3a3a3a, #1a1a1a 55%);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.blog-card {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 22px;
  overflow: hidden;
  transition: transform var(--t-slow) var(--ease);
}
.blog-card:hover { transform: translateY(-4px); }
.blog-thumb {
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(135deg, #2a1c16, #121820 60%, #1a1420);
}
.blog-thumb.t2 { background: linear-gradient(135deg, #162026, #1a1812 60%); }
.blog-thumb.t3 { background: linear-gradient(135deg, #1c1624, #121814 60%); }
.blog-card .pad { padding: 20px; }
.blog-card h3 { font-size: 18px; letter-spacing: -0.03em; margin-bottom: 10px; }
.blog-card .pad p:not(.blog-meta) { color: var(--muted); font-size: 14px; line-height: 1.5; margin-bottom: 12px; }
.blog-meta { color: var(--muted); font-size: 13px; }

.site-cta {
  padding: 100px 0 40px;
}
.cta-panel {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  padding: 56px 32px 36px;
  text-align: center;
  background: #0a0a0a;
  border: 1px solid var(--line);
}
.badges { display: flex; gap: 10px; justify-content: center; margin-top: 18px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; }

.site-footer {
  padding: 56px 0 32px;
  border-top: 1px solid var(--line);
  margin-top: 24px;
}
.foot-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 28px;
}
.foot-grid h4 { font-size: 13px; color: var(--muted); font-weight: 500; margin-bottom: 14px; }
.foot-grid a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color var(--t-fast) var(--ease);
}
.foot-grid a:hover { color: var(--text); }
.foot-grid a.foot-v2 {
  display: inline-block;
  font-size: 14px;
  margin-top: 12px;
  padding: 0;
  color: var(--muted);
}
.foot-grid a.foot-v2:hover { color: var(--text); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 36px;
  color: var(--faint);
  font-size: 13px;
}
.socials { display: flex; gap: 10px; }
.socials span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.page-hero { padding: 56px 0 20px; }
.page-hero .lede { margin-top: 16px; }
.article { width: min(720px, calc(100% - 48px)); margin: 0 auto 80px; }
.article p, .article li { color: var(--muted); margin: 14px 0; font-size: 16px; }
.article h2 { margin: 32px 0 10px; letter-spacing: -0.03em; }
.article ul { padding-left: 1.2em; }
.article-hero {
  width: min(var(--wrap), calc(100% - 48px));
  margin: 12px auto 32px;
  aspect-ratio: 16 / 7;
  border-radius: 24px;
  background: linear-gradient(135deg, #2a1c16, #121820 60%);
}

.job {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
  transition: transform var(--t-fast) var(--ease);
}
.job:hover { transform: translateX(4px); }
.job small { color: var(--muted); }

.form-grid { display: grid; gap: 14px; width: min(520px, 100%); margin: 28px auto 0; }
.form-label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 8px; }
.form-input {
  width: 100%;
  background: var(--input);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  outline: none;
}
.form-input:focus { border-color: rgba(255,255,255,0.35); box-shadow: 0 0 0 3px rgba(255,255,255,0.08); }
.form-error { display: none; color: var(--danger); font-size: 13px; margin-bottom: 12px; }
.form-group { margin-bottom: 18px; }
.form-foot { font-size: 13px; color: var(--muted); margin-top: 18px; text-align: center; }
.account-value { font-size: 15px; font-weight: 500; }
.checkout-hint { font-size: 12px; color: var(--muted); margin-top: 12px; }
.account-plan-note { font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }

.billing-banner {
  width: 100%;
  margin: 0 0 16px;
  padding: 12px 16px;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  font-size: 14px;
  font-weight: 500;
  display: none;
}
.billing-banner.show { display: block; }
.billing-banner.ok { background: var(--text); color: var(--bg); }

.usage-meter {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,0.04);
}
.usage-meter-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.usage-meter-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.usage-meter-pct { font-size: 28px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.usage-track {
  height: 6px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 12px 0 8px;
}
.usage-fill { height: 100%; width: 0; background: var(--text); border-radius: var(--radius-full); max-width: 100%; }
.usage-fill.blocked { background: var(--danger); }
.usage-meter-meta { font-size: 12px; font-weight: 500; color: var(--muted); }
.usage-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.08);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}
.usage-chip span { color: var(--muted); font-weight: 500; }
.usage-chip.blocked { background: var(--text); color: var(--bg); }
.usage-chip.blocked span { color: #444; }

.workspace { display: flex; width: 100%; height: 100%; background: #070707; }
.sidebar {
  width: 300px;
  max-width: 42vw;
  background: #0b0b0b;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  padding: 10px 8px 12px;
}
.sidebar-chrome { display: flex; align-items: center; gap: 8px; padding: 6px 6px 12px; }
.sidebar-chrome .grow { flex: 1; }
.avatar-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #2c2c2e;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  border: none;
}
.icon-btn {
  width: 36px;
  height: 36px;
  border: none;
  background: transparent;
  color: var(--text);
  border-radius: 50%;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}
.icon-btn:hover { background: #1c1c1e; }
.thread-search {
  display: none;
  margin: 0 6px 10px;
  width: calc(100% - 12px);
  background: #1c1c1e;
  border: none;
  color: var(--text);
  border-radius: 12px;
  padding: 9px 12px;
  outline: none;
}
.sidebar.search-open .thread-search { display: block; }
.chat-history { flex: 1; overflow-y: auto; }
.history-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 14px;
  cursor: pointer;
  margin: 1px 4px;
}
.history-item:hover { background: #1c1c1e; }
.history-item.active { background: rgba(255, 255, 255, 0.1); }
.thread-ava {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #2c2c2e;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
.history-copy { min-width: 0; flex: 1; }
.history-title {
  display: block;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.history-preview {
  display: block;
  font-size: 13px;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}
.history-del {
  opacity: 0;
  border: none;
  background: transparent;
  color: var(--faint);
  cursor: pointer;
  font-size: 18px;
}
.history-item:hover .history-del { opacity: 1; }
.chat-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: #0a0a0a; }
.chat-toolbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 10px;
  border-bottom: 1px solid var(--line);
}
.chat-toolbar[hidden] { display: none !important; }
.workspace:not(.thread-open) .chat-toolbar { display: none !important; }
.chat-toolbar-title { font-size: 15px; font-weight: 600; letter-spacing: -0.02em; }
.chat-toolbar-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.chat-toolbar-meta { font-size: 12px; font-weight: 500; color: var(--muted); }
.tb-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.tb-btn:hover { color: var(--text); background: rgba(255,255,255,0.04); }
.project-rail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 0 12px 10px;
}
.project-chip {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.project-chip.active,
.project-chip:hover { color: var(--text); background: rgba(255,255,255,0.06); }
.project-add { border-style: dashed; }
.chat-stage { flex: 1; min-height: 0; display: flex; }
.chat-messages { flex: 1; overflow-y: auto; padding: 22px 8% 12px; display: flex; flex-direction: column; gap: 6px; }
.canvas-panel {
  width: min(42%, 420px);
  border-left: 1px solid var(--line);
  background: #0d0d0d;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.canvas-head, .canvas-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  color: var(--muted);
}
.canvas-foot { border-bottom: 0; border-top: 1px solid var(--line); }
.canvas-body {
  flex: 1;
  margin: 0;
  padding: 14px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  white-space: pre-wrap;
  color: var(--text);
}
.chat-empty { text-align: center; margin: auto; color: var(--muted); font-size: 15px; max-width: 36rem; }
.chat-empty strong { display: block; font-size: 36px; color: var(--text); letter-spacing: -0.04em; margin-bottom: 8px; font-weight: 600; }
.chat-empty p { margin: 0 0 18px; }
.msg { max-width: 68%; font-size: 15px; line-height: 1.45; padding: 8px 14px; border-radius: 18px; }
.msg-user { align-self: flex-end; background: #fff; color: #000; border-bottom-right-radius: 6px; }
.msg-ai { align-self: flex-start; background: #1c1c1e; color: var(--text); border-bottom-left-radius: 6px; max-width: min(780px, 92%); }
.msg-ai.is-streaming { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.msg-meta { font-size: 11px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.msg-user .msg-meta { display: none; }
.msg-body { white-space: pre-wrap; }
.msg-body.md-body { white-space: normal; }
.md-body .md-p { margin: 0 0 0.55em; }
.md-body .md-p:last-child { margin-bottom: 0; }
.md-body .md-h { margin: 0.85em 0 0.35em; font-size: 1.05em; letter-spacing: -0.02em; }
.md-body .md-quote {
  margin: 0.5em 0;
  padding-left: 12px;
  border-left: 2px solid rgba(255,255,255,0.18);
  color: var(--muted);
}
.md-body ul, .md-body ol { margin: 0.4em 0 0.7em 1.2em; }
.md-body li { margin: 0.2em 0; }
.md-inline, .md-code code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
}
.md-inline {
  background: rgba(255,255,255,0.06);
  padding: 0.1em 0.35em;
  border-radius: 6px;
}
.md-code {
  margin: 0.7em 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: #0a0a0a;
}
.md-code-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}
.md-code-bar span { margin-right: auto; text-transform: lowercase; }
.md-code pre {
  margin: 0;
  padding: 12px;
  overflow-x: auto;
}
.md-code code { white-space: pre; }
.code-copy, .code-open {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 11px;
  padding: 2px 6px;
}
.code-copy:hover, .code-open:hover { color: var(--text); }
.msg-feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; }
.fb-btn {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 500;
  padding: 4px 10px;
  cursor: pointer;
}
.fb-btn:hover { background: rgba(255,255,255,0.06); }
.fb-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.msg-user .fb-btn {
  color: #000;
  border-color: rgba(0,0,0,0.2);
}
.msg-user .fb-btn:hover { background: rgba(0,0,0,0.06); }
.fb-note { font-size: 11px; color: var(--muted); }
.chat-input-wrapper { padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0px)); position: relative; }
.attach-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; }
.attach-chip {
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--line);
  color: var(--text);
  border-radius: 999px;
  font-size: 12px;
  padding: 4px 10px;
  cursor: pointer;
}
.slash-menu {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% - 8px);
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  z-index: 5;
  box-shadow: 0 12px 40px rgba(0,0,0,0.45);
}
.slash-item {
  width: 100%;
  display: flex;
  align-items: baseline;
  gap: 12px;
  background: transparent;
  border: 0;
  color: var(--text);
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  cursor: pointer;
}
.slash-item span { color: var(--muted); font-size: 12px; }
.slash-item:hover { background: rgba(255,255,255,0.05); }
.composer-hint {
  margin: 8px 4px 0;
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}
.composer-tools {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px 0 8px 8px;
}
.composer-tool {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 28px;
  height: 28px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.composer-tool.style-cycle {
  width: auto;
  padding: 0 8px;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.composer-tool:hover { color: var(--text); }
.aorila-composer {
  margin: 0 0 6px 4px;
  padding: 0;
  border: none;
  background: none;
  box-shadow: none;
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
}
.aorila-composer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.aorila-credit {
  position: fixed;
  left: max(12px, env(safe-area-inset-left, 0px));
  bottom: max(12px, env(safe-area-inset-bottom, 0px));
  z-index: 40;
  pointer-events: none;
  display: inline-flex;
  align-items: center;
  margin: 0;
  padding: 3px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  background: rgba(0, 0, 0, 0.42);
  color: var(--faint);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
  line-height: 1.2;
  white-space: nowrap;
}
.aorila-credit a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
  pointer-events: auto;
}
.chat-input-box {
  background: #141414;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 4px 6px 4px 4px;
  display: flex;
  align-items: flex-end;
  gap: 4px;
}
.chat-input-box:focus-within { border-color: rgba(255,255,255,0.24); }
.chat-input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  min-height: 22px;
  max-height: 180px;
  line-height: 1.4;
  padding: 8px 8px 8px 4px;
}
.chat-send-btn {
  background: var(--text);
  border: none;
  width: 32px;
  height: 32px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  border-radius: 50%;
  color: var(--bg);
  cursor: pointer;
  font-weight: 600;
  margin-bottom: 2px;
}
.chat-send-btn.is-stop {
  background: #2a2a2a;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.18);
}
.powered-by { text-align: center; font-size: 12px; font-weight: 500; color: var(--muted); margin-top: 12px; }
.suggest-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 22px; }
.suggest-chip {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.suggest-chip:hover { background: rgba(255,255,255,0.06); }

.sheet {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.48);
  display: none;
  align-items: stretch;
  justify-content: flex-end;
  z-index: 280;
  backdrop-filter: blur(10px);
  pointer-events: none;
}
.sheet.active {
  display: flex;
  pointer-events: auto;
}
.sheet:not(.active) {
  display: none;
  pointer-events: none;
}
body:not(.sheet-open) #controlSheet {
  display: none !important;
  pointer-events: none !important;
}
.sheet-panel {
  width: min(520px, 100vw);
  height: 100%;
  background: #111;
  overflow-y: auto;
  padding: 28px 24px 48px;
  box-shadow: -16px 0 40px rgba(0,0,0,0.4);
  border-left: 1px solid var(--line);
}
.auth-cluster { display: flex; align-items: center; gap: 10px; }
.account-pop-wrap { position: relative; }
.account-pop {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 176px;
  background: #161616;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 6px;
  box-shadow: var(--shadow);
  z-index: 90;
}
.account-pop-item {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 0;
  color: var(--text);
  padding: 10px 12px;
  border-radius: 10px;
  font-size: 14px;
  cursor: pointer;
}
.account-pop-item:hover { background: rgba(255,255,255,0.06); }
.avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.settings-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  position: relative;
  z-index: 2;
}
.settings-tab {
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  border-radius: var(--radius-full);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  pointer-events: auto;
  position: relative;
  z-index: 2;
}
.settings-tab.is-on {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}
.settings-section { display: none; }
.settings-section.is-on { display: block; }
.avatar-edit { display: flex; align-items: center; gap: 12px; }
.memory-add { display: flex; gap: 8px; }
.memory-add .form-input { flex: 1; }
.memory-list { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.memory-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font-size: 13px;
  color: var(--muted);
}
.msg-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.think-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 18px;
  padding: 4px 2px;
}
.think-dots span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.85;
  animation: thinkBounce 1.05s infinite ease-in-out;
}
.think-dots span:nth-child(2) { animation-delay: 0.15s; }
.think-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes thinkBounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.35; }
  40% { transform: translateY(-5px); opacity: 1; }
}
.msg-retry .retry-copy { color: var(--muted); }
.retry-btn { margin-top: 8px; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.sheet-top h2 { font-size: 22px; font-weight: 700; letter-spacing: -0.03em; }
#guestAuth, #signedInTools, #signupExtra { display: none; margin: 0; }
#guestAuth.show, #signedInTools.show, #signupExtra.show { display: block; }
.consent-row { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; line-height: 1.45; }
.consent-hint { font-size: 12px; color: var(--muted); margin-top: 8px; }
.page-kicker { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.page-heading { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 8px; }
.page-sub { font-size: 15px; color: var(--muted); margin-bottom: 28px; line-height: 1.5; }
.menu-item {
  padding: 10px 12px;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: none;
  border: none;
  width: 100%;
  text-align: left;
}
.menu-item:hover { background: rgba(255,255,255,0.06); }
.btn-black {
  background: var(--text);
  color: var(--bg);
  border: none;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-weight: 500;
  font-size: 14px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.btn-black:hover { opacity: 0.86; }
.btn-black.btn-ghost { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-black.btn-large { padding: 14px 28px; font-size: 16px; }

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 300;
  backdrop-filter: blur(8px);
  pointer-events: none;
}
.modal-overlay.active {
  display: flex;
  pointer-events: auto;
}
.settings-card {
  width: min(480px, 92vw);
  background: #141414;
  border-radius: 24px;
  padding: 32px;
  border: 1px solid var(--line);
}
.settings-card.wide { width: min(560px, 94vw); max-height: 90vh; overflow: auto; }
.kind-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.kind-choice {
  border: 1px solid var(--line);
  background: transparent;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 13px;
  cursor: pointer;
  min-width: 104px;
}
.kind-choice.active { background: var(--text); color: var(--bg); border-color: var(--text); }
.card-list { display: flex; flex-direction: column; gap: 12px; }
.product-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 18px 20px;
  background: #161616;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.product-card h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.product-card p { font-size: 13px; color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.pill {
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-full);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255,255,255,0.08);
}
.pill-ok { background: var(--text); color: var(--bg); }
.pill-warn { background: rgba(255,69,58,0.15); color: #ff8a84; }
.muted-btn {
  background: rgba(255,255,255,0.08);
  color: var(--text);
  border: none;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  font-size: 13px;
  cursor: pointer;
}
.connector-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.connector-card {
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 22px;
  min-height: 200px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #161616;
}
.connector-card h3 { font-size: 20px; font-weight: 700; letter-spacing: -0.03em; }
.connector-card .blurb { font-size: 14px; color: var(--muted); flex: 1; }
.connector-meta { font-size: 12px; color: var(--muted); }
.empty-hint {
  border: 1px dashed var(--line);
  border-radius: 20px;
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}
.banner-note {
  border-radius: 16px;
  background: rgba(255,255,255,0.06);
  padding: 12px 16px;
  font-size: 13px;
  margin-bottom: 18px;
}
.banner-note.error { background: rgba(255,69,58,0.12); color: #ff8a84; }

.status-page {
  min-height: calc(100vh - var(--nav-h));
  padding: 72px 0 96px;
  background: #000;
}
.status-wrap { max-width: 720px; }
.status-container { max-width: 720px; margin: 56px auto; width: 100%; padding: 0 24px 48px; }
.status-header { font-size: clamp(2rem, 4vw, 3rem); font-weight: 600; letter-spacing: -0.04em; margin: 12px 0 16px; }
.status-note, .nav-status-copy { color: var(--muted); font-size: 13px; margin-top: 18px; }
.status-banner {
  padding: 16px 20px;
  border-radius: 16px;
  font-weight: 600;
  font-size: 15px;
  margin: 28px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: var(--text);
  background: #1a1a1a;
}
.banner-ok { background: #14301c; }
.banner-warn { background: #2a2410; }
.banner-red { background: #3a1414; }
.status-card { border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.status-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.status-row:last-child { border-bottom: none; }
.status-state-ok { color: var(--ok); font-weight: 600; }
.status-state-warn { color: #f5c518; font-weight: 600; }
.status-state-red { color: var(--danger); font-weight: 600; }
.nav-link .light { margin-right: 8px; }
.light {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--faint);
  display: inline-block;
}
.light-ok { background: var(--ok); }
.light-warn { background: #f5c518; }
.light-red { background: var(--danger); }
.status-indicator { display: inline-flex; align-items: center; gap: 8px; }

.chat-dock {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  width: min(360px, calc(100vw - 24px));
  background: #111;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 16px;
  box-shadow: var(--shadow);
  transform: translateY(8px);
  animation: dockIn 500ms var(--ease) both;
}
@keyframes dockIn {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
.chat-dock h4 { font-size: 16px; margin-bottom: 4px; }
.chat-dock p { color: var(--muted); font-size: 13px; margin-bottom: 12px; }

.log-item { padding: 28px 0; border-bottom: 1px solid var(--line); }
.log-item time { color: var(--muted); font-size: 13px; display: block; margin-bottom: 8px; }
.log-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; color: var(--muted); font-size: 12px; }

.typing-dots::after { content: ""; animation: dots 1.2s steps(3, end) infinite; }
@keyframes dots {
  0% { content: ""; }
  33% { content: "."; }
  66% { content: ".."; }
  100% { content: "..."; }
}

@media (max-width: 980px) {
  .card-grid, .card-grid-4, .price-grid, .price-grid-2, .stat-grid, .blog-grid, .split, .quote-card, .faq-layout, .foot-grid {
    grid-template-columns: 1fr;
  }
  .split.reverse > :first-child { order: 0; }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .site-nav { padding: 0 16px; height: 64px; }
  :root { --nav-h: 64px; }
  .section { padding: 80px 0; }
  .wrap, .hero-inner { width: min(var(--wrap), calc(100% - 32px)); }
  /* Guest / empty chat must keep the composer. Do not hide .chat-main when
     .thread-open is absent — that stranded logged-out /ai on a dead sidebar. */
  .workspace {
    flex-direction: column;
    position: relative;
  }
  .sidebar {
    width: 100%;
    max-width: none;
    flex: 0 0 auto;
    border-right: none;
    border-bottom: 1px solid var(--line);
    z-index: 4;
  }
  /* Gemini-style: one header on empty landing; hide sidebar chrome while a
     thread is open so the chat toolbar is the only top bar. */
  .workspace.thread-open:not(.show-threads) .sidebar {
    display: none;
  }
  .workspace:not(.show-threads) .chat-history { display: none; }
  .workspace.show-threads .chat-history {
    display: block;
    max-height: min(46vh, 320px);
    overflow-y: auto;
  }
  .workspace .chat-main {
    display: flex;
    flex: 1;
    min-height: 0;
  }
  #threadBack { display: none; }
  .workspace.thread-open #threadBack { display: inline-flex !important; }
  .chat-messages { padding-left: 5%; padding-right: 5%; }
  .msg { max-width: 92%; }
  .workspace.canvas-open .canvas-panel {
    position: absolute;
    inset: 0;
    width: 100%;
    z-index: 6;
  }
  .composer-hint { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  [data-reveal] { opacity: 1; transform: none; }
}
