:root {
  --bg-0: #f6f5fb;
  --bg-1: #fbfaff;
  --bg-2: #ffffff;
  --surface: rgba(255, 255, 255, 0.82);
  --surface-strong: rgba(255, 255, 255, 0.94);
  --ink: #1a1d2e;
  --ink-dim: #4a4f63;
  --muted: #7a8095;
  --line: rgba(26, 29, 46, 0.08);
  --line-strong: rgba(26, 29, 46, 0.14);
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-3: #ec4899;
  --mint: #10b981;
  --sky: #38bdf8;
  --amber: #f59e0b;
  --grad-primary: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
  --grad-soft: linear-gradient(135deg, #a78bfa 0%, #f0abfc 100%);
  --grad-mint: linear-gradient(135deg, #34d399 0%, #38bdf8 100%);
  --grad-text: linear-gradient(135deg, #1a1d2e 0%, #4a4f63 70%, #6b6f87 100%);
  --grad-headline: linear-gradient(135deg, #1a1d2e 0%, #6366f1 55%, #8b5cf6 100%);
  --shadow-lg: 0 24px 60px rgba(99, 102, 241, 0.12), 0 4px 12px rgba(26, 29, 46, 0.06);
  --shadow-md: 0 10px 30px rgba(99, 102, 241, 0.08), 0 2px 6px rgba(26, 29, 46, 0.04);
  --shadow-sm: 0 4px 14px rgba(26, 29, 46, 0.05);
  --radius-sm: 10px;
  --radius: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

*::selection {
  background: rgba(139, 92, 246, 0.25);
  color: var(--ink);
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--bg-0);
  color: var(--ink);
  font-family:
    "Inter", "InterVariable", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-feature-settings: "ss01", "cv11", "ss03";
  letter-spacing: -0.01em;
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
  background:
    radial-gradient(60% 60% at 12% 8%, rgba(167, 139, 250, 0.32), transparent 65%),
    radial-gradient(50% 60% at 92% 14%, rgba(244, 114, 182, 0.22), transparent 65%),
    radial-gradient(60% 60% at 78% 92%, rgba(56, 189, 248, 0.22), transparent 70%),
    radial-gradient(60% 60% at 22% 96%, rgba(52, 211, 153, 0.18), transparent 70%),
    linear-gradient(180deg, #f6f5fb 0%, #ebeaf5 100%);
}

.aurora::before,
.aurora::after {
  position: absolute;
  width: 760px;
  height: 760px;
  border-radius: 50%;
  filter: blur(120px);
  opacity: 0.6;
  content: "";
  animation: drift 22s ease-in-out infinite alternate;
}

.aurora::before {
  top: -20%;
  left: -10%;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.7), transparent 60%);
}

.aurora::after {
  right: -15%;
  bottom: -20%;
  background: radial-gradient(circle, rgba(244, 114, 182, 0.55), transparent 60%);
  animation-delay: -10s;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(26, 29, 46, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(26, 29, 46, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, #000 30%, transparent 80%);
}

@keyframes drift {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(80px, 60px) scale(1.18); }
}

@keyframes pulse-ring {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.55); }
  100% { box-shadow: 0 0 0 14px rgba(16, 185, 129, 0); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

button,
select {
  cursor: pointer;
}

a {
  color: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
  animation: fadeUp 0.6s ease both;
}

.app-shell[aria-hidden="true"] {
  display: none;
}

/* ============ LOGIN ============ */

.login-screen {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  gap: 28px;
  min-height: 100vh;
  padding: clamp(22px, 4vw, 56px);
}

.login-screen.hidden {
  display: none;
}

.login-visual,
.login-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.login-visual {
  display: grid;
  align-content: end;
  min-height: 640px;
  padding: clamp(30px, 6vw, 78px);
  background:
    radial-gradient(80% 50% at 0% 0%, rgba(167, 139, 250, 0.18), transparent 60%),
    radial-gradient(80% 50% at 100% 100%, rgba(56, 189, 248, 0.16), transparent 60%),
    var(--surface);
}

.login-visual::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(99, 102, 241, 0.02) 0 1px, transparent 1px 18px);
  content: "";
  pointer-events: none;
}

.login-visual h1 {
  position: relative;
  max-width: 900px;
  margin: 0;
  font-size: clamp(2.8rem, 6.4vw, 6.2rem);
  font-weight: 700;
  line-height: 0.95;
  letter-spacing: -0.035em;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.login-visual > p {
  position: relative;
  max-width: 620px;
  margin: 28px 0 0;
  color: var(--ink-dim);
  font-size: 1.12rem;
  line-height: 1.6;
}

.login-proof {
  position: relative;
  width: min(440px, 100%);
  margin-top: 36px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
}

.login-proof span,
.email-login span,
.workspace-switcher small {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-proof strong {
  display: block;
  margin-top: 8px;
  font-size: 1.4rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.login-proof small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.5;
}

.login-card {
  align-self: center;
  padding: 34px;
}

.login-card h2 {
  margin: 26px 0 0;
  font-size: 1.85rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
}

.login-card p {
  margin: 12px 0 26px;
  color: var(--muted);
  line-height: 1.55;
}

.google-button {
  position: relative;
  width: 100%;
  min-height: 50px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  box-shadow: var(--shadow-sm);
}

.google-button:hover {
  background: #fff;
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(99, 102, 241, 0.15);
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin: 22px 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.divider::before,
.divider::after {
  height: 1px;
  background: var(--line-strong);
  content: "";
}

.email-login {
  display: grid;
  gap: 14px;
}

.email-login label {
  display: grid;
  gap: 8px;
}

.email-login input,
.workspace-switcher select,
.link-row input,
.ask-form input {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.email-login input:focus,
.link-row input:focus,
.ask-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.15);
}

.login-admin {
  display: block;
  margin: 18px auto 0;
}

/* ============ SIDEBAR ============ */

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 28px 20px;
  background: rgba(255, 255, 255, 0.7);
  border-right: 1px solid var(--line);
  backdrop-filter: blur(28px) saturate(140%);
  -webkit-backdrop-filter: blur(28px) saturate(140%);
  z-index: 5;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--grad-primary);
  border-radius: 12px;
  color: #fff;
  font-weight: 800;
  font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.brand-mark {
  box-shadow: 0 8px 24px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.brand-mark::after {
  position: absolute;
  inset: 1px;
  border-radius: 11px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.3), transparent 50%);
  content: "";
  pointer-events: none;
}

.brand small,
.eyebrow,
.workspace-switcher span,
.command-header > span,
.section-heading .eyebrow,
.source-stack span:not(.stack-icon),
.connector-card > span:not(.connector-icon),
.sample-strip span:not(.sample-icon),
.workspace-header span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.brand strong {
  display: block;
  margin-top: 2px;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.workspace-switcher {
  display: grid;
  gap: 8px;
}

.tenant-display {
  display: grid;
  gap: 3px;
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
}

.tenant-display strong {
  font-size: 0.98rem;
  font-weight: 600;
}

.tenant-display small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.workspace-switcher select {
  appearance: none;
  -webkit-appearance: none;
  background-color: #fff;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a8095' stroke-width='2'><path d='M6 9l6 6 6-6'/></svg>");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px;
  padding-right: 38px;
}

.workspace-switcher:not(.admin-workspace) select,
.workspace-switcher:not(.admin-workspace) #tenantScopeNote {
  display: none;
}

.workspace-switcher select:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.nav-list {
  display: grid;
  gap: 4px;
}

.nav-list a {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: var(--radius-sm);
  color: var(--ink-dim);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  transition: all 0.2s ease;
}

.nav-list a:hover {
  background: rgba(99, 102, 241, 0.06);
  color: var(--ink);
}

.nav-list a.active {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.08));
  border: 1px solid rgba(99, 102, 241, 0.25);
  color: var(--ink);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.12);
}

.nav-list a.active::before {
  position: absolute;
  left: -20px;
  top: 50%;
  width: 3px;
  height: 22px;
  margin-top: -11px;
  border-radius: 0 4px 4px 0;
  background: var(--grad-primary);
  box-shadow: 0 0 12px rgba(139, 92, 246, 0.6);
  content: "";
}

.trust-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: auto;
  padding: 16px;
  border: 1px solid rgba(16, 185, 129, 0.2);
  border-radius: var(--radius);
  background: rgba(16, 185, 129, 0.06);
}

.account-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.account-card > span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.35);
}

.account-card strong,
.account-card p {
  display: block;
  margin: 0;
}

.account-card strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.account-card p {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

.account-card button {
  grid-column: 1 / -1;
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  color: var(--ink-dim);
  font-weight: 500;
  transition: all 0.2s ease;
}

.account-card button:hover {
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.25);
}

body:not(.is-admin) .admin-only {
  display: none !important;
}

.trust-card p {
  margin: 6px 0 0;
  color: var(--ink-dim);
  font-size: 0.86rem;
  line-height: 1.5;
}

.trust-card strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.pulse {
  position: relative;
  flex: 0 0 auto;
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: var(--mint);
  animation: pulse-ring 1.8s ease-out infinite;
}

/* ============ COCKPIT ============ */

.cockpit {
  width: min(1440px, 100%);
  margin: 0 auto;
  padding: 32px 36px 80px;
}

.topbar,
.section-heading,
.command-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.topbar {
  margin-bottom: 28px;
}

.topbar h1,
.hero-copy h2,
.section-heading h2 {
  margin: 0;
  letter-spacing: -0.035em;
  font-weight: 700;
}

.topbar h1 {
  font-size: clamp(1.9rem, 3.4vw, 3.4rem);
  line-height: 1.02;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  margin: 0 0 10px;
  font-weight: 600;
}

.topbar-actions,
.status-row,
.segmented,
.template-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ============ BUTTONS ============ */

.primary-button,
.secondary-button,
.ghost-button,
.text-button,
.segmented button {
  position: relative;
  min-height: 44px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 0 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: all 0.2s ease;
  overflow: hidden;
}

.primary-button {
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 8px 22px rgba(139, 92, 246, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.15) inset;
}

.primary-button::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 50%);
  content: "";
  pointer-events: none;
}

.primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px rgba(139, 92, 246, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
}

.primary-button.small {
  min-height: 42px;
}

.secondary-button,
.ghost-button {
  background: #fff;
  border-color: var(--line-strong);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}

.secondary-button:hover,
.ghost-button:hover {
  background: #fff;
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(99, 102, 241, 0.15);
}

.segmented {
  padding: 4px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  gap: 4px;
  backdrop-filter: blur(8px);
}

.segmented button {
  min-height: 36px;
  padding: 0 14px;
  border-radius: 10px;
  background: transparent;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.88rem;
  box-shadow: none;
}

.segmented button:hover {
  color: var(--ink);
  background: rgba(99, 102, 241, 0.06);
  transform: none;
}

.segmented button.active {
  background: #fff;
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.25);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.15);
}

.text-button {
  min-height: auto;
  padding: 0;
  background: transparent;
  color: var(--accent);
  font-weight: 600;
  box-shadow: none;
}

.text-button:hover {
  color: var(--accent-2);
  background: transparent;
  transform: none;
  box-shadow: none;
}

/* ============ HERO ============ */

.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 20px;
  margin-bottom: 20px;
}

.hero-copy,
.panel,
.command-card {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  box-shadow: var(--shadow-md);
}

.hero-copy {
  position: relative;
  overflow: hidden;
  padding: clamp(28px, 4vw, 52px);
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(167, 139, 250, 0.14), transparent 55%),
    radial-gradient(80% 80% at 100% 100%, rgba(244, 114, 182, 0.1), transparent 55%),
    var(--surface);
}

.hero-copy::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), rgba(236, 72, 153, 0.4), transparent);
  content: "";
}

.hero-copy h2 {
  max-width: 820px;
  margin-top: 28px;
  font-size: clamp(2rem, 4.4vw, 4.4rem);
  line-height: 1;
  background: linear-gradient(135deg, #1a1d2e 0%, #6366f1 45%, #ec4899 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-copy > p {
  max-width: 720px;
  margin: 22px 0 0;
  color: var(--ink-dim);
  font-size: 1.08rem;
  line-height: 1.6;
}

.status-pill,
.template-list span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
  color: var(--ink-dim);
  font-size: 0.82rem;
  font-weight: 500;
  backdrop-filter: blur(8px);
  box-shadow: var(--shadow-sm);
}

.status-pill .pill-icon {
  width: 14px;
  height: 14px;
  color: var(--mint);
  flex: 0 0 auto;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 36px;
}

.hero-metrics article {
  position: relative;
  min-height: 160px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.hero-metrics article::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
  content: "";
  opacity: 0;
  transition: opacity 0.3s ease;
}

.hero-metrics article:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(99, 102, 241, 0.12);
}

.hero-metrics article:hover::before {
  opacity: 1;
}

.hero-metrics span:not(.metric-icon),
.brief-lines strong {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-metrics strong {
  display: block;
  margin-top: 14px;
  font-size: 2.8rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}

.hero-metrics small {
  display: block;
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
}

/* ============ COMMAND CARD ============ */

.command-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 420px;
  padding: 28px;
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(167, 139, 250, 0.2), transparent 55%),
    radial-gradient(120% 80% at 0% 100%, rgba(244, 114, 182, 0.14), transparent 55%),
    var(--surface-strong);
  overflow: hidden;
}

.command-card::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(99, 102, 241, 0.025) 0 1px, transparent 1px 14px);
  content: "";
  pointer-events: none;
}

.command-header strong {
  display: block;
  margin-top: 8px;
  font-size: 1.55rem;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.command-card > p {
  position: relative;
  margin: 28px 0 16px;
  color: var(--ink);
  font-size: 1.18rem;
  line-height: 1.5;
}

.command-proof {
  position: relative;
  display: grid;
  gap: 8px;
  margin: auto 0 18px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(8px);
}

.command-proof span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.command-proof strong {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--grad-primary);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.command-proof small {
  color: var(--muted);
  line-height: 1.45;
}

/* ============ SECTIONS ============ */

.two-column,
.bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 20px;
  margin-bottom: 20px;
}

.brief-grid {
  grid-template-columns: 1fr;
}

.connect-panel,
.team-panel,
.evidence-panel,
.admin-panel {
  margin-bottom: 20px;
}

.connection-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(520px, 1.1fr);
  gap: 18px;
}

.drop-zone {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 340px;
  padding: 32px;
  border: 1.5px dashed rgba(99, 102, 241, 0.3);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(167, 139, 250, 0.1), transparent 70%),
    rgba(255, 255, 255, 0.5);
  transition: all 0.3s ease;
}

.drop-zone:hover {
  border-color: rgba(99, 102, 241, 0.55);
  background:
    radial-gradient(60% 60% at 50% 0%, rgba(167, 139, 250, 0.18), transparent 70%),
    rgba(255, 255, 255, 0.7);
}

.drop-icon {
  display: grid;
  width: 64px;
  height: 64px;
  margin-bottom: 24px;
  place-items: center;
  border-radius: 16px;
  background: var(--grad-primary);
  color: #fff;
  box-shadow: 0 12px 30px rgba(139, 92, 246, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.25) inset;
}

.drop-icon svg {
  width: 30px;
  height: 30px;
}

.drop-zone h3 {
  max-width: 450px;
  margin: 0;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.drop-zone p {
  max-width: 560px;
  margin: 16px 0 0;
  color: var(--ink-dim);
  line-height: 1.6;
}

.link-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 28px;
}

.connector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.connector-card {
  position: relative;
  min-height: 280px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.3s ease;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.connector-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
  background: #fff;
  box-shadow: 0 18px 40px rgba(99, 102, 241, 0.14);
}

.connector-card::before {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
  content: "";
}

.connector-card.connected::before {
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
}

.connector-card strong {
  display: block;
  margin-top: 16px;
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.connector-card p {
  margin: 12px 0 24px;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.92rem;
}

.connector-card button {
  position: absolute;
  right: 20px;
  bottom: 20px;
  left: 20px;
  min-height: 38px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg-1);
  color: var(--ink);
  font-weight: 600;
  font-size: 0.9rem;
  transition: all 0.2s ease;
}

.connector-card button:hover {
  background: var(--grad-primary);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.3);
}

.sample-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 18px;
  padding: 18px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background:
    radial-gradient(60% 100% at 100% 50%, rgba(244, 114, 182, 0.55), transparent 60%),
    linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  box-shadow: 0 14px 36px rgba(99, 102, 241, 0.28);
}

.sample-strip > div:first-child > span {
  color: rgba(255, 255, 255, 0.8);
}

.sample-strip strong {
  display: block;
  margin-top: 6px;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.sample-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.sample-metrics span {
  min-height: 32px;
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 0.8rem;
  letter-spacing: 0;
  text-transform: none;
  font-weight: 500;
  box-shadow: none;
  backdrop-filter: blur(8px);
}

/* ============ AGENTS ============ */

.agents-panel {
  margin-bottom: 20px;
}

.agents-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
}

.agent-builder {
  min-height: 330px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 70% at 100% 0%, rgba(56, 189, 248, 0.16), transparent 62%),
    rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow-sm);
}

.agent-builder h3 {
  margin: 0;
  font-size: clamp(1.35rem, 2.2vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.agent-builder p {
  margin: 14px 0 22px;
  color: var(--ink-dim);
  line-height: 1.58;
}

.agent-form {
  display: grid;
  gap: 12px;
}

.agent-form label {
  display: grid;
  gap: 7px;
}

.agent-form label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.agent-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.agent-card {
  min-height: 240px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-sm);
  transition: all 0.25s ease;
}

.agent-card:hover {
  transform: translateY(-3px);
  border-color: rgba(56, 189, 248, 0.32);
  background: #fff;
  box-shadow: 0 18px 40px rgba(56, 189, 248, 0.14);
}

.agent-card.review {
  border-color: rgba(245, 158, 11, 0.28);
}

.agent-card-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
}

.agent-card-top > span:not(.agent-avatar) {
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.agent-card-top strong {
  font-size: 1.08rem;
  font-weight: 600;
  line-height: 1.2;
}

.agent-card-top em {
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 600;
}

.agent-card.review .agent-card-top em {
  background: rgba(245, 158, 11, 0.12);
  color: #a16207;
}

.agent-card p {
  margin: 34px 0 18px;
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.45;
}

.agent-meta {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.agent-meta span {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.62);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}

.panel {
  padding: 26px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  font-size: clamp(1.3rem, 2vw, 1.85rem);
  font-weight: 600;
}

/* ============ ACTIONS / SOURCES / BRIEF ============ */

.action-list,
.source-stack,
.brief-lines {
  display: grid;
  gap: 12px;
}

.action-item,
.source-stack article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
  transition: all 0.25s ease;
}

.action-rank {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 999px;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 4px 12px rgba(139, 92, 246, 0.35);
}

.action-item h3,
.source-stack strong {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.action-item:hover {
  transform: translateX(3px);
  border-color: rgba(99, 102, 241, 0.3);
  background: #fff;
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

.action-item p,
.source-stack p,
.brief-lines p,
.scale-card p {
  margin: 6px 0 0;
  color: var(--ink-dim);
  line-height: 1.55;
  font-size: 0.92rem;
}

.confidence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.1);
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 600;
  white-space: nowrap;
}

.confidence::before {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
  content: "";
}

/* ============ ASK PANEL / CHAT ============ */

.ask-panel {
  display: flex;
  flex-direction: column;
  min-height: 400px;
}

.chat-window {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  overflow: auto;
  min-height: 220px;
  max-height: 320px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--bg-1);
}

.chat-window::-webkit-scrollbar {
  width: 6px;
}

.chat-window::-webkit-scrollbar-thumb {
  background: rgba(26, 29, 46, 0.16);
  border-radius: 3px;
}

.message {
  width: fit-content;
  max-width: 92%;
  padding: 12px 16px;
  border-radius: var(--radius);
  line-height: 1.5;
  font-size: 0.94rem;
  animation: fadeUp 0.3s ease both;
}

.message.assistant {
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}

.message.user {
  align-self: flex-end;
  background: var(--grad-primary);
  color: #fff;
  font-weight: 500;
  box-shadow: 0 6px 16px rgba(139, 92, 246, 0.3);
}

.ask-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  margin-top: 14px;
}

/* ============ EVIDENCE ============ */

.evidence-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 18px;
}

.dashboard-preview {
  position: relative;
  overflow: hidden;
  min-height: 440px;
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.dashboard-preview img {
  width: 100%;
  height: 100%;
  min-height: 440px;
  object-fit: cover;
  object-position: top left;
  filter: saturate(1.05);
}

.source-stack article {
  grid-template-columns: auto 1fr;
}

.source-stack span {
  color: var(--accent);
  font-weight: 700;
}

/* ============ TEAM ============ */

.team-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

.workspace-preview {
  display: grid;
  grid-template-columns: minmax(260px, 0.42fr) minmax(0, 0.58fr);
  gap: 18px;
  min-height: 320px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    radial-gradient(80% 80% at 0% 0%, rgba(167, 139, 250, 0.12), transparent 60%),
    rgba(255, 255, 255, 0.6);
}

.workspace-header {
  align-self: center;
}

.workspace-header strong {
  display: block;
  margin-top: 12px;
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  line-height: 1.05;
  font-weight: 600;
  letter-spacing: -0.03em;
  background: var(--grad-headline);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.workspace-header p {
  margin: 14px 0 0;
  color: var(--ink-dim);
  line-height: 1.55;
  font-size: 0.95rem;
}

.decision-list {
  display: grid;
  align-content: center;
  gap: 12px;
}

.decision-list article {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  transition: all 0.25s ease;
}

.decision-list article:hover {
  border-color: rgba(99, 102, 241, 0.3);
  background: #fff;
  transform: translateX(3px);
  box-shadow: 0 8px 20px rgba(99, 102, 241, 0.1);
}

.decision-list span {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border-radius: 8px;
  background: var(--grad-primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.3);
}

.decision-list strong {
  display: block;
  font-size: 0.98rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.decision-list small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.85rem;
}

.people-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.7);
}

.people-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.people-list article {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  transition: all 0.2s ease;
}

.people-list article:hover {
  border-color: rgba(99, 102, 241, 0.2);
  box-shadow: var(--shadow-sm);
}

.people-list article > span {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: var(--grad-mint);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  box-shadow: 0 6px 16px rgba(52, 211, 153, 0.3);
}

.people-list strong,
.people-list small {
  display: block;
}

.people-list strong {
  font-weight: 600;
  letter-spacing: -0.01em;
}

.people-list small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.84rem;
}

/* ============ ADMIN ============ */

.tenant-admin-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.tenant-card {
  position: relative;
  min-height: 260px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.75);
  transition: all 0.3s ease;
  box-shadow: var(--shadow-sm);
}

.tenant-card:hover {
  transform: translateY(-3px);
  border-color: rgba(99, 102, 241, 0.3);
  background: #fff;
  box-shadow: 0 14px 30px rgba(99, 102, 241, 0.14);
}

.tenant-card::before {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--mint);
  box-shadow: 0 0 10px var(--mint);
  content: "";
}

.tenant-card.pending::before {
  background: var(--amber);
  box-shadow: 0 0 10px var(--amber);
}

.tenant-card > span:not(.tenant-avatar) {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tenant-card h3 {
  margin: 16px 0 8px;
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.tenant-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
  font-size: 0.9rem;
}

.tenant-meta {
  display: grid;
  gap: 8px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.tenant-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 0.88rem;
}

.tenant-meta strong {
  color: var(--ink);
  font-weight: 600;
}

.tenant-open {
  width: 100%;
  margin-top: 18px;
}

/* ============ BRIEF / SCALE ============ */

.brief-card,
.scale-card {
  min-height: 260px;
}

.brief-lines p {
  padding: 16px 0;
  border-top: 1px solid var(--line);
  color: var(--ink-dim);
}

.brief-lines p:first-child {
  border-top: 0;
}

.brief-lines strong {
  display: inline;
  margin-right: 6px;
  color: var(--accent);
  letter-spacing: 0.04em;
}

.template-list {
  align-content: start;
  margin-top: 14px;
}

.scale-card p {
  margin-top: 18px;
}

/* ============ TOAST ============ */

.toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 50;
  transform: translateY(18px) scale(0.98);
  max-width: min(420px, calc(100vw - 44px));
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.5;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
}

.toast::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 3px 0 0 3px;
  background: var(--grad-primary);
  content: "";
}

.toast.visible {
  transform: translateY(0) scale(1);
  opacity: 1;
}

/* ============ REVEAL ON SCROLL ============ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* ============ RESPONSIVE ============ */

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
    display: grid;
    grid-template-columns: 1fr;
  }

  .trust-card {
    margin-top: 0;
  }

  .hero-panel,
  .two-column,
  .bottom-grid,
  .evidence-grid,
  .connection-layout,
  .agents-layout,
  .team-layout,
  .workspace-preview,
  .login-screen {
    grid-template-columns: 1fr;
  }

  .login-visual {
    min-height: 520px;
  }

  .connector-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .agent-list {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .command-card {
    min-height: auto;
  }

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

@media (max-width: 760px) {
  .cockpit,
  .sidebar {
    padding: 20px;
  }

  .topbar,
  .section-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .hero-metrics,
  .ask-form,
  .link-row {
    grid-template-columns: 1fr;
  }

  .hero-metrics {
    display: grid;
  }

  .hero-copy {
    padding: 26px;
  }

  .hero-copy h2 {
    font-size: clamp(2rem, 11vw, 3.4rem);
  }

  .topbar-actions button,
  .ask-form button {
    width: 100%;
  }

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

  .confidence {
    grid-column: 2;
  }

  .sample-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .sample-metrics {
    justify-content: flex-start;
  }

  .connector-grid {
    grid-template-columns: 1fr;
  }

  .agent-list {
    grid-template-columns: 1fr;
  }

  .tenant-admin-grid {
    grid-template-columns: 1fr;
  }

  .login-screen {
    padding: 18px;
  }

  .login-visual {
    min-height: 460px;
  }

  .login-card {
    padding: 24px;
  }
}

/* ============ ICONS ============ */

svg {
  display: block;
  shape-rendering: geometricPrecision;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
}

.brand-mark svg {
  width: 24px;
  height: 24px;
  color: #fff;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.15));
}

.nav-list a {
  gap: 12px;
}

.nav-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  color: var(--muted);
  transition: color 0.2s ease, transform 0.2s ease;
}

.nav-list a:hover .nav-icon {
  color: var(--accent);
}

.nav-list a.active .nav-icon {
  color: var(--accent);
}

.btn-icon {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
}

.account-card button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.account-card button .btn-icon {
  width: 14px;
  height: 14px;
}

.pill-icon {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.command-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.command-eyebrow .pill-icon {
  width: 14px;
  height: 14px;
  color: var(--accent-2);
  filter: drop-shadow(0 0 6px rgba(139, 92, 246, 0.4));
}

.hero-metrics article {
  position: relative;
}

.metric-icon {
  position: absolute;
  top: 18px;
  right: 18px;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(236, 72, 153, 0.1));
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.18);
}

.metric-icon svg {
  width: 18px;
  height: 18px;
}

.hero-metrics article:hover .metric-icon {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(236, 72, 153, 0.14));
  transform: scale(1.05);
  transition: all 0.25s ease;
}

.connector-card {
  padding-top: 22px;
}

.connector-icon {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(56, 189, 248, 0.1));
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.16);
  transition: all 0.3s ease;
}

.connector-icon svg {
  width: 22px;
  height: 22px;
}

.connector-card.connected .connector-icon {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.14), rgba(56, 189, 248, 0.12));
  color: var(--mint);
  border-color: rgba(16, 185, 129, 0.22);
}

.connector-card:hover .connector-icon {
  transform: rotate(-4deg) scale(1.05);
}

.connector-card > span:not(.connector-icon) {
  display: block;
  margin-top: 4px;
}

.connector-card strong {
  margin-top: 6px;
}

.sample-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
  flex: 0 0 auto;
}

.sample-icon svg {
  width: 22px;
  height: 22px;
  filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.5));
}

.sample-strip {
  align-items: center;
  justify-content: flex-start;
  gap: 18px;
}

.sample-strip > div:first-of-type {
  margin-right: auto;
}

.agent-builder {
  position: relative;
}

.builder-icon {
  display: inline-grid;
  width: 46px;
  height: 46px;
  margin-bottom: 18px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.18), rgba(139, 92, 246, 0.14));
  color: var(--accent-2);
  border: 1px solid rgba(139, 92, 246, 0.2);
}

.builder-icon svg {
  width: 24px;
  height: 24px;
}

.trust-card {
  align-items: center;
}

.trust-icon {
  position: relative;
  display: grid;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.16), rgba(56, 189, 248, 0.12));
  color: var(--mint);
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.trust-icon svg {
  width: 20px;
  height: 20px;
}

.trust-icon .pulse {
  position: absolute;
  top: -3px;
  right: -3px;
  width: 9px;
  height: 9px;
  margin: 0;
}

.ask-form {
  position: relative;
  grid-template-columns: 1fr auto;
  align-items: center;
}

.ask-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  width: 16px;
  height: 16px;
  margin-top: -8px;
  color: var(--muted);
  pointer-events: none;
}

.ask-input-icon svg {
  width: 16px;
  height: 16px;
}

.ask-form input {
  padding-left: 40px;
}

.stack-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(236, 72, 153, 0.1));
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.18);
  flex: 0 0 auto;
}

.stack-icon svg {
  width: 18px;
  height: 18px;
}

.source-stack article {
  align-items: center;
}

.action-item h3 {
  display: flex;
  align-items: center;
  gap: 8px;
}

.action-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  place-items: center;
  color: var(--accent-2);
}

.action-icon svg {
  width: 18px;
  height: 18px;
}

.decision-list article {
  align-items: center;
}

.decision-icon {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.16), rgba(236, 72, 153, 0.12));
  color: #fff;
  box-shadow: 0 4px 10px rgba(139, 92, 246, 0.25);
  background: var(--grad-primary);
}

.decision-icon svg {
  width: 18px;
  height: 18px;
}

.agent-avatar {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(56, 189, 248, 0.16), rgba(139, 92, 246, 0.12));
  color: var(--accent-2);
  border: 1px solid rgba(139, 92, 246, 0.2);
  flex: 0 0 auto;
}

.agent-avatar svg {
  width: 20px;
  height: 20px;
}

.agent-card.review .agent-avatar {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(244, 114, 182, 0.12));
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.22);
}

.agent-card-top {
  align-items: center;
}

.meta-icon {
  width: 13px;
  height: 13px;
  margin-right: 6px;
  flex: 0 0 auto;
  color: var(--muted);
  vertical-align: -2px;
}

.agent-meta span {
  align-items: center;
}

.tenant-card {
  position: relative;
}

.tenant-avatar {
  display: grid;
  width: 42px;
  height: 42px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.14), rgba(56, 189, 248, 0.1));
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.16);
}

.tenant-avatar svg {
  width: 22px;
  height: 22px;
}

.tenant-card.pending .tenant-avatar {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.16), rgba(244, 114, 182, 0.1));
  color: var(--amber);
  border-color: rgba(245, 158, 11, 0.2);
}

.tenant-status {
  display: inline-block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.account-card button .btn-icon {
  margin-right: 2px;
}

.google-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.google-icon {
  width: 18px;
  height: 18px;
}
