/* Pravadh MW -- design system matched to pravadhiq.pravadhlabs.com / pravadhsi.pravadhlabs.com */

:root {
  /* Suite tokens shared with Pravadh IQ / SI / PM / GX */
  --blue: #1E5CEE;
  --blue-hover: #1544B8;
  --blue-active: #103A9A;
  --blue-tint: rgba(30, 92, 238, 0.10);
  --blue-tint-2: rgba(30, 92, 238, 0.06);
  --blue-line: rgba(30, 92, 238, 0.28);
  --green: #047857;
  --green-tint: #ecfdf5;
  --amber: #b45309;
  --amber-tint: #fffbeb;
  --tag-amber: #FD9E01;
  --tag-amber-ink: #1A1200;
  --red: #b91c1c;
  --red-tint: #fef2f2;
  --white: #ffffff;
  --gray-25: #fbfcfd;
  --gray-50: #F4F5F7;
  --gray-100: #eef1f5;
  --navy: #0B1426;
  --navy-2: #131d31;
  --ink: #0F172A;
  --ink-2: #475569;
  --ink-3: #64748B;
  --ink-4: #94A3B8;
  --on-navy: #ffffff;
  --on-navy-2: #a8b3c7;
  --line: #E2E8F0;
  --line-2: #CBD5E1;
  --line-navy: #22304a;

  --r-xs: 4px; --r-sm: 6px; --r-md: 8px; --r-lg: 10px; --r-xl: 14px; --r-full: 999px;

  --sh-xs: 0 1px 2px rgba(12,20,36,.05);
  --sh-sm: 0 1px 1px rgba(12,20,36,.04), 0 2px 4px rgba(12,20,36,.04);
  --sh-md: 0 1px 1px rgba(12,20,36,.03), 0 4px 8px rgba(12,20,36,.04), 0 10px 20px rgba(12,20,36,.05);
  --sh-lg: 0 1px 2px rgba(12,20,36,.04), 0 8px 16px rgba(12,20,36,.05), 0 20px 40px rgba(12,20,36,.07);
  --sh-xl: 0 2px 4px rgba(12,20,36,.04), 0 12px 24px rgba(12,20,36,.06), 0 32px 64px rgba(12,20,36,.10), 0 60px 120px rgba(12,20,36,.08);

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-display: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-serif: Georgia, "Times New Roman", "Noto Serif", serif;

  --container: 1200px;
  --container-narrow: 720px;
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--gray-50);
  font-size: 15px;
  line-height: 1.55;
}
h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 .5em;
}
p { margin: 0 0 1em; color: var(--ink-2); }
a { color: var(--blue); text-decoration: none; }
code, .mono { font-family: var(--font-mono); }
img, svg { display: block; }

.wrap { max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--nav-h);
  display: flex;
  align-items: center;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; }

.brand { display: inline-flex; align-items: center; gap: 12px; }

/* ---------- brand mark: blue squircle "P" + amber "MW" corner badge ---------- */
.brand-mark { position: relative; display: inline-flex; flex-shrink: 0; }
.mark-p {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 19px;
  box-shadow: var(--sh-xs);
}
.mark-tag {
  position: absolute;
  top: -7px;
  right: -12px;
  background: var(--tag-amber);
  color: var(--tag-amber-ink);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 8.5px;
  letter-spacing: .02em;
  padding: 2.5px 5px;
  border-radius: var(--r-full);
  border: 2px solid #fff;
  box-shadow: 0 2px 4px rgba(12,20,36,.2);
  line-height: 1;
  white-space: nowrap;
}
.sidebar-brand .mark-tag { border-color: var(--navy); }

.brand-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.brand-name em { font-style: normal; color: var(--blue); }

.site-header nav { display: flex; align-items: center; gap: 8px; }
.site-header nav a.navlink {
  padding: 8px 12px;
  border-radius: var(--r-sm);
  color: var(--ink-2);
  font-weight: 500;
  font-size: 14px;
}
.site-header nav a.navlink:hover { background: var(--gray-100); color: var(--ink); }

/* ---------- role badge ---------- */
.role-badge {
  display: inline-flex;
  align-items: center;
  background: var(--tag-amber);
  color: var(--tag-amber-ink);
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--r-full);
  margin-left: 6px;
  vertical-align: middle;
  white-space: nowrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  background: var(--white);
  color: var(--ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  transition: background .12s ease, border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.btn:hover { background: var(--gray-50); border-color: var(--ink-4); }
.btn-primary { background: var(--blue); border-color: var(--blue); color: #fff; box-shadow: var(--sh-xs); }
.btn-primary:hover { background: var(--blue-hover); border-color: var(--blue-hover); }
.btn-lg { padding: 12px 22px; font-size: 15px; border-radius: var(--r-md); }
.btn-block { width: 100%; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--ink-2); }
.btn-ghost:hover { background: var(--gray-100); color: var(--ink); }

/* ---------- suite chrome (shared with IQ / SI / PM / GX) ---------- */
.suite-banner {
  background: var(--navy);
  color: var(--on-navy-2);
  font-size: 12.5px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: .01em;
}
.suite-banner a { color: #7aa2ff; font-weight: 600; }
.suite-banner a:hover { color: #fff; text-decoration: underline; }

.labs-suite-nav {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px;
  border-radius: var(--r-full);
  background: var(--gray-100);
  border: 1px solid var(--line);
}
.labs-suite-nav a,
.labs-suite-nav span {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: var(--r-full);
  color: var(--ink-3);
}
.labs-suite-nav a:hover { color: var(--ink); background: var(--white); }
.labs-suite-nav span.current {
  background: var(--blue);
  color: #fff;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--green-tint);
  border: 1px solid #bfe4d1;
  color: var(--green);
  font-size: 12.5px;
  font-weight: 700;
  margin-bottom: 18px;
}
.status-pill::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(4,120,87,.18);
}

.suite-strip {
  background: var(--white);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 28px 0;
}
.suite-strip .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.suite-strip .label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.suite-strip .products {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.suite-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--gray-50);
  color: var(--ink-2);
  font-size: 13px;
  font-weight: 600;
}
.suite-chip:hover { border-color: var(--blue-line); color: var(--ink); background: var(--white); }
.suite-chip.active {
  border-color: var(--blue);
  background: var(--blue-tint);
  color: var(--blue);
}
.suite-chip .code {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 2px 6px;
  border-radius: var(--r-sm);
  background: var(--tag-amber);
  color: var(--tag-amber-ink);
}
.suite-chip.active .code { background: var(--blue); color: #fff; }

/* ---------- hero ---------- */
.hero {
  padding: 72px 0 56px;
  text-align: left;
  background:
    radial-gradient(50% 60% at 12% 0%, var(--blue-tint-2) 0%, rgba(244,245,247,0) 70%),
    var(--gray-50);
}
.hero .hero-grid {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  gap: 40px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: var(--r-full);
  background: var(--blue-tint);
  border: 1px solid var(--blue-line);
  color: var(--blue);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(34px, 4.6vw, 52px);
  max-width: 640px;
  margin: 0 0 16px;
}
.hero h1 em { font-style: normal; color: var(--blue); }
.hero .lede {
  max-width: 540px;
  margin: 0 0 28px;
  font-size: 17px;
  color: var(--ink-2);
}
.cta-row { display: flex; align-items: center; justify-content: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 22px; }
.trust-row {
  display: flex; align-items: center; justify-content: flex-start; gap: 18px; flex-wrap: wrap;
  color: var(--ink-3); font-size: 13.5px; font-weight: 500;
}
.trust-row span { display: inline-flex; align-items: center; gap: 6px; }
.trust-row span::before {
  content: "";
  width: 14px; height: 14px;
  border-radius: var(--r-full);
  background: var(--green-tint);
  box-shadow: inset 0 0 0 1.5px var(--green);
}
.hero-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 24px;
}
.hero-card .kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.hero-card h3 { font-size: 18px; margin-bottom: 8px; }
.hero-card p { font-size: 14px; margin-bottom: 16px; }
.hero-card ul { list-style: none; margin: 0; padding: 0; }
.hero-card li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: 13.5px; color: var(--ink-2);
  padding: 8px 0;
  border-top: 1px solid var(--line);
}
.hero-card li:first-child { border-top: none; }
.hero-card li::before {
  content: "→";
  color: var(--blue);
  font-weight: 700;
  flex-shrink: 0;
}

/* ---------- stat strip ---------- */
.stat-strip {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--white);
}
.stat-strip .wrap {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat {
  padding: 28px 20px;
  text-align: left;
  border-left: 1px solid var(--line);
  border-top: 2px solid var(--blue);
}
.stat:first-child { border-left: none; }
.stat .n {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 4px;
}
.stat .d { font-size: 13px; color: var(--ink-3); }

/* ---------- sections ---------- */
.section { padding: 72px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(24px, 3vw, 32px); }
.section-head p { font-size: 15.5px; }

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 20px;
  box-shadow: var(--sh-sm);
}
.feature .icon {
  width: 34px; height: 34px;
  display: grid; place-items: center;
  border-radius: var(--r-md);
  background: var(--blue-tint);
  color: var(--blue);
  margin-bottom: 14px;
}
.feature .label {
  font-family: var(--font-display);
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .05em;
  color: var(--blue);
  text-transform: uppercase;
  margin-bottom: 8px;
}
.feature h3 { font-size: 16px; margin-bottom: 6px; }
.feature p { font-size: 14px; margin: 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.step { position: relative; padding: 28px 22px 22px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-sm); }
.step::before {
  counter-increment: step;
  content: counter(step);
  display: grid; place-items: center;
  width: 30px; height: 30px;
  border-radius: var(--r-full);
  background: var(--navy);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h3 { font-size: 16px; margin-bottom: 6px; }
.step p { font-size: 14px; margin: 0; }

.cta-banner {
  background: var(--navy);
  border-radius: var(--r-xl);
  padding: 48px 40px;
  text-align: center;
  color: #fff;
}
.cta-banner h2 { color: #fff; font-size: clamp(22px, 3vw, 28px); margin-bottom: 10px; }
.cta-banner p { color: var(--on-navy-2); max-width: 480px; margin: 0 auto 24px; }

/* ---------- footer ---------- */
.site-footer {
  background: var(--navy);
  color: var(--on-navy-2);
  padding: 56px 0 28px;
  margin-top: 72px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 32px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-navy);
}
.footer-grid .brand-name { color: #fff; }
.footer-grid .mark-tag { border-color: var(--navy); }
.footer-grid .about { font-size: 13.5px; color: var(--on-navy-2); max-width: 260px; margin-top: 12px; }
.footer-col h4 {
  color: #fff;
  font-size: 12.5px;
  letter-spacing: .05em;
  text-transform: uppercase;
  margin-bottom: 14px;
}
.footer-col a { display: block; color: var(--on-navy-2); font-size: 13.5px; margin-bottom: 10px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  padding-top: 22px; font-size: 12.5px; color: var(--ink-4);
  flex-wrap: wrap; gap: 10px;
}

/* ---------- auth pages (split shell like IQ / SI / PM / GX) ---------- */
.auth-shell {
  display: grid;
  min-height: 100vh;
  grid-template-columns: 1fr;
}
@media (min-width: 960px) {
  .auth-shell { grid-template-columns: 52% 48%; }
}
.auth-aside {
  display: none;
  position: relative;
  overflow: hidden;
  background: var(--navy);
  color: #e2e8f0;
  padding: 40px 48px;
  flex-direction: column;
}
@media (min-width: 960px) {
  .auth-aside { display: flex; }
}
.auth-aside::before,
.auth-aside::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}
.auth-aside::before {
  width: 320px; height: 320px;
  right: -64px; top: -96px;
  background: radial-gradient(circle, #1E5CEE 0%, transparent 70%);
  opacity: .4;
}
.auth-aside::after {
  width: 260px; height: 260px;
  left: 40px; bottom: 0;
  background: radial-gradient(circle, #1E5CEE 0%, transparent 70%);
  opacity: .22;
}
.auth-aside .brand { position: relative; z-index: 1; }
.auth-aside .brand-name { color: #fff; }
.auth-aside .mark-tag { border-color: var(--navy); }
.auth-aside-body {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 540px;
}
.auth-aside .kicker {
  margin-bottom: 16px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #7aa2ff;
}
.auth-aside h1 {
  color: #fff;
  font-size: clamp(1.7rem, 2.4vw, 2.15rem);
  line-height: 1.25;
  margin-bottom: 14px;
}
.auth-aside .sub {
  color: #94a3b8;
  font-size: 14px;
  line-height: 1.6;
  max-width: 420px;
  margin-bottom: 28px;
}
.auth-points {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.auth-points li {
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.05);
  border-radius: var(--r-md);
  padding: 10px 12px;
  font-size: 12.5px;
  color: #cbd5e1;
}
.auth-aside-foot {
  position: relative;
  z-index: 1;
  margin-top: 32px;
  font-size: 11.5px;
  color: #64748b;
}
.auth-aside-foot a { color: #7aa2ff; }
.auth-aside-foot a:hover { text-decoration: underline; }

.auth-main {
  position: relative;
  background: var(--gray-50);
  padding: 48px 20px;
  overflow-y: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
.auth-main-top {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}
.auth-panel {
  width: 100%;
  max-width: 400px;
  animation: auth-fade-up .35s ease both;
}
@keyframes auth-fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-mobile-brand { display: block; margin-bottom: 28px; }
@media (min-width: 960px) {
  .auth-mobile-brand { display: none; }
}
.auth-panel h1 { font-size: 24px; margin-bottom: 6px; }
.auth-panel .sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.auth-banner {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: var(--green-tint);
  border: 1px solid #bfe4d1;
  color: var(--green);
  font-size: 13px;
  margin-bottom: 18px;
}
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-md);
  border: 1px solid var(--line-2);
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.field .hint { font-size: 12px; color: var(--ink-4); margin-top: 5px; }
.auth-panel .btn-block { margin-top: 6px; }
.auth-foot { margin-top: 22px; text-align: center; font-size: 13.5px; color: var(--ink-3); }
.alert {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: var(--red-tint);
  color: var(--red);
  font-size: 13.5px;
  margin-bottom: 18px;
  border: 1px solid #f3c9c9;
}
.alert-ok { background: var(--green-tint); color: var(--green); border-color: #bfe4d1; }

/* legacy centered auth (kept for any residual templates) */
.auth-wrap {
  min-height: calc(100vh - var(--nav-h) - 1px);
  display: flex; align-items: center; justify-content: center;
  padding: 48px 20px;
  background: var(--gray-50);
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-lg);
  padding: 36px 32px;
}
.auth-card h1 { font-size: 22px; margin-bottom: 4px; }
.auth-card .sub { font-size: 13.5px; color: var(--ink-3); margin-bottom: 24px; }
.auth-card .btn-block { margin-top: 6px; }

/* ---------- dashboard app shell ---------- */
.app-shell { display: flex; min-height: 100vh; background: var(--gray-50); }
.sidebar {
  width: 240px;
  flex-shrink: 0;
  background: var(--navy);
  color: var(--on-navy-2);
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.sidebar-brand { display: flex; align-items: center; gap: 12px; padding: 20px 20px 18px; }
.sidebar-brand .brand-name { color: #fff; font-size: 16px; }
.sidebar-brand .mark-p { background: rgba(255,255,255,.12); }
.nav-group-label {
  padding: 0 20px; margin: 10px 0 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-4);
}
.sidebar-nav { padding: 0 12px; display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px;
  border-radius: var(--r-sm);
  color: var(--on-navy-2);
  font-size: 13.5px; font-weight: 500;
}
.sidebar-nav a:hover { background: rgba(255,255,255,.06); color: #fff; }
.sidebar-nav a.active { background: rgba(30,92,238,.35); color: #fff; }
.sidebar-nav a .soon { margin-left: auto; font-size: 10px; color: var(--ink-4); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sidebar-spacer { flex: 1; }
.product-switcher {
  border-top: 1px solid var(--line-navy);
  padding: 16px 20px;
}
.product-switcher nav { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.product-switcher nav a, .product-switcher nav span {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-4);
}
.product-switcher nav a:hover { color: #fff; }
.product-switcher nav span.active-badge {
  background: var(--blue);
  color: #fff;
  padding: 3px 7px;
  border-radius: var(--r-sm);
}
.user-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.user-row .who { min-width: 0; }
.user-row .who .name { color: #fff; font-size: 13.5px; overflow-wrap: anywhere; }
.user-row .who .org { color: var(--ink-4); font-size: 11.5px; }
.user-row a.signout {
  padding: 6px 10px; border-radius: var(--r-sm); color: var(--ink-4); font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.user-row a.signout:hover { background: rgba(255,255,255,.06); color: #fff; }

.app-main { flex: 1; min-width: 0; }
.app-topbar {
  height: var(--nav-h);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
  background: var(--white);
  border-bottom: 1px solid var(--line);
}
.app-topbar .status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--ink-3);
  padding: 5px 10px; border-radius: var(--r-full); background: var(--gray-100);
}
.app-topbar .status-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.app-content { padding: 32px 40px 72px; max-width: 1320px; width: 100%; box-sizing: border-box; }
.app-content:has(.app-content-wide),
.app-content-wide { max-width: none; width: 100%; }
.app-main:has(.app-content-wide) .app-content { max-width: none; }
.page-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; }
.page-title { font-size: 26px; margin-bottom: 8px; }
.page-lede {
  color: var(--ink-3); font-size: 15px; line-height: 1.5;
  max-width: 58ch; margin: 0 0 28px;
}
.page-actions {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 28px;
}
.page-actions .page-title { margin-bottom: 0; }
.page-actions .page-lede { margin: 8px 0 0; }

.panel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px; margin-bottom: 28px;
}
.panel-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.panel-grid.cols-5 { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 960px) {
  .panel-grid.cols-4, .panel-grid.cols-5 { grid-template-columns: repeat(2, 1fr); }
  .app-content { padding: 24px 20px 56px; }
}
.panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 20px;
  box-shadow: var(--sh-sm);
}
.panel .k { font-size: 12px; color: var(--ink-3); text-transform: uppercase; letter-spacing: .04em; font-weight: 600; margin-bottom: 8px; }
.panel .v { font-family: var(--font-display); font-size: 22px; font-weight: 700; }
.panel .v.ok { color: var(--green); }

.resource-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}
.resource-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px;
  box-shadow: var(--sh-sm);
  display: flex; flex-direction: column; gap: 10px;
  min-height: 140px;
}
.resource-card-head {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 10px;
}
.resource-card-title {
  font-weight: 700; font-size: 15px; color: var(--ink); text-decoration: none;
}
a.resource-card-title:hover { color: var(--blue); }
.resource-card-meta {
  display: flex; flex-wrap: wrap; gap: 8px 12px;
  font-size: 12.5px; color: var(--ink-3);
}
.resource-card-actions {
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--line);
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.split-layout {
  display: grid;
  grid-template-columns: minmax(320px, 420px) 1fr;
  gap: 24px; align-items: start;
}
@media (max-width: 960px) {
  .split-layout { grid-template-columns: 1fr; }
}
.table-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  padding: 0; overflow: hidden;
}
.ops-list { display: flex; flex-direction: column; }
.ops-row {
  display: grid;
  grid-template-columns: 1.2fr 140px minmax(0, 1.8fr) 150px auto;
  gap: 12px; align-items: center;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
}
.ops-row:last-child { border-bottom: none; }
.ops-row-head {
  font-size: 11.5px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); background: var(--gray-50);
}
.ops-row.cols-6 { grid-template-columns: 1.1fr 160px 140px 130px 110px auto; }
@media (max-width: 900px) {
  .ops-row { grid-template-columns: 1fr; gap: 8px; }
  .ops-row-head { display: none; }
}

.dash-note {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px;
  box-shadow: var(--sh-sm);
  font-size: 14.5px;
}
.dash-note code {
  background: var(--gray-100);
  padding: 2px 6px;
  border-radius: var(--r-xs);
  font-size: 13px;
}

/* ---------- pricing ---------- */
.pricing-hero { padding: 72px 0 44px; text-align: center; }
.pricing-hero .lede { max-width: 560px; }
.billing-note {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13.5px; color: var(--ink-3);
  background: var(--gray-100);
  padding: 8px 16px;
  border-radius: var(--r-full);
  margin-top: 4px;
}
.billing-note strong { color: var(--ink); }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  align-items: stretch;
  margin-bottom: 64px;
}
.price-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 24px 18px;
  box-shadow: var(--sh-sm);
  position: relative;
}
.price-card.popular {
  border-color: var(--blue);
  box-shadow: var(--sh-lg);
  transform: translateY(-6px);
}
.price-card .popular-tag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: var(--r-full);
  white-space: nowrap;
}
.price-card h3 { font-size: 17px; margin-bottom: 4px; }
.price-card .tagline { font-size: 12.5px; color: var(--ink-3); margin-bottom: 18px; min-height: 34px; }
.price-block { margin-bottom: 18px; }
.price-strike { font-size: 14px; color: var(--ink-4); text-decoration: line-through; margin-right: 6px; }
.price-now { font-family: var(--font-display); font-weight: 800; color: var(--ink); }
.price-now .cur { font-size: 15px; font-weight: 700; vertical-align: top; }
.price-now .amt { font-size: 30px; }
.price-period { display: block; font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }
.price-launch-tag {
  display: inline-block;
  margin-top: 8px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--green);
  background: var(--green-tint);
  padding: 2px 8px;
  border-radius: var(--r-full);
}
.plan-features { list-style: none; margin: 0 0 20px; padding: 0; flex: 1; }
.plan-features li {
  font-size: 13px;
  color: var(--ink-2);
  padding: 7px 0 7px 20px;
  position: relative;
  border-top: 1px solid var(--line);
}
.plan-features li:first-child { border-top: none; }
.plan-features li::before {
  content: "\2713";
  position: absolute; left: 0; top: 7px;
  color: var(--green); font-weight: 700; font-size: 12px;
}
.price-card .btn { margin-top: auto; }

.compare-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--line); border-radius: var(--r-xl); background: var(--white); box-shadow: var(--sh-sm); }
.compare-table { width: 100%; border-collapse: collapse; font-size: 13px; min-width: 820px; }
.compare-table th, .compare-table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare-table th {
  background: var(--gray-50);
  color: var(--ink-3);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
}
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }
.compare-table td:first-child { font-weight: 600; color: var(--ink); }
.compare-table tr:last-child td { border-bottom: none; }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: var(--ink-4); }
.compare-table .popular-col { background: var(--blue-tint-2); }

/* ---------- app forms + data views ---------- */
.form-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  box-shadow: var(--sh-sm);
  max-width: 640px;
  margin-bottom: 28px;
}
.field textarea, .field select {
  width: 100%;
  padding: 10px 12px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--white);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field textarea { font-family: var(--font-mono); font-size: 13px; resize: vertical; min-height: 100px; }
.field textarea:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.checkbox-field { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 16px; }
.checkbox-field input { margin-top: 3px; }
.checkbox-field label { font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.checkbox-field .hint { font-size: 12px; color: var(--ink-4); margin-top: 2px; }
.form-actions { display: flex; align-items: center; gap: 10px; }

.empty-state {
  text-align: center;
  padding: 56px 20px;
  color: var(--ink-3);
  background: var(--white);
  border: 1px dashed var(--line-2);
  border-radius: var(--r-xl);
}
.empty-state p { margin-bottom: 18px; }

.status-badge {
  display: inline-flex; align-items: center;
  padding: 3px 9px;
  border-radius: var(--r-full);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
  white-space: nowrap;
}
.status-badge.success { background: var(--green-tint); color: var(--green); }
.status-badge.failed { background: var(--red-tint); color: var(--red); }
.status-badge.pending_approval { background: var(--amber-tint); color: var(--amber); }
.status-badge.running { background: var(--gray-100); color: var(--ink-3); }

.kind-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700;
  background: var(--blue-tint); color: var(--blue);
}

.env-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-sm);
  font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .03em;
}
.env-badge.sandbox { background: var(--amber-tint); color: var(--amber); }
.env-badge.production { background: var(--gray-100); color: var(--ink-3); }
.env-badge.mixed { background: var(--red-tint); color: var(--red); }

.flow-diagram { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-2); margin-bottom: 4px; }
.flow-diagram .node { padding: 4px 10px; border-radius: var(--r-sm); background: var(--gray-100); font-weight: 600; color: var(--ink); }
.flow-diagram .arrow { color: var(--ink-4); }

.mapping-list { list-style: none; margin: 0; padding: 0; }
.mapping-list li {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0; border-top: 1px solid var(--line);
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-2);
}
.mapping-list li:first-child { border-top: none; }
.mapping-list .arrow { color: var(--ink-4); font-family: var(--font); }

.drift-banner {
  background: var(--amber-tint);
  border: 1px solid #f3d9a8;
  border-radius: var(--r-xl);
  padding: 20px 22px;
  margin-bottom: 24px;
}
.drift-banner h3 { font-size: 15px; margin-bottom: 6px; color: var(--amber); }
.drift-banner p { font-size: 13.5px; margin-bottom: 12px; }

.row-link { color: var(--ink); font-weight: 600; }
.row-link:hover { color: var(--blue); }
.muted-cell { color: var(--ink-4); font-size: 12.5px; }

/* ---------- admin table ---------- */
.admin-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.admin-table th {
  text-align: left; padding: 12px 20px; background: var(--gray-50);
  color: var(--ink-3); font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700;
  border-bottom: 1px solid var(--line);
}
.admin-table td { padding: 12px 20px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.admin-table tr:last-child td { border-bottom: none; }

@media (max-width: 1100px) {
  .pricing-grid { grid-template-columns: repeat(3, 1fr); }
  .price-card.popular { transform: none; }
}
@media (max-width: 900px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr; }
  .stat-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .panel-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .app-shell { flex-direction: column; }
  .field-row { grid-template-columns: 1fr; }
  .page-actions { flex-direction: column; align-items: flex-start; }
  .hero .hero-grid { grid-template-columns: 1fr; }
  .auth-points { grid-template-columns: 1fr; }
}
@media (max-width: 650px) {
  .pricing-grid { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header nav a.navlink:not(.btn) { display: none; }
  .site-header .labs-suite-nav { display: none; }
  .hero { padding: 48px 0 36px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- Zapier-style flow wizard ---------- */
.wizard { max-width: none; }
.wizard.wizard-canvas { max-width: none; }
.wizard-step { margin-bottom: 28px; }
.wizard-step-label {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px;
}
.wizard-step-label span {
  display: grid; place-items: center;
  width: 24px; height: 24px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 12px;
}
.picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}
.picker-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px;
  text-align: left;
  padding: 16px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-sm);
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: border-color .12s ease, box-shadow .12s ease, transform .12s ease;
}
.picker-card:hover { border-color: var(--blue-line); transform: translateY(-1px); }
.picker-card.selected {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
  background: var(--blue-tint-2);
}
.picker-card strong { font-size: 14.5px; }
.picker-add {
  align-items: center; justify-content: center;
  color: var(--blue); font-weight: 600; text-decoration: none;
  border-style: dashed;
}

/* ---------- Flow topology canvas ---------- */
.flow-canvas {
  position: relative;
  width: 100%;
  min-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  background:
    radial-gradient(circle at 1px 1px, rgba(11, 20, 38, 0.08) 1px, transparent 0) 0 0 / 20px 20px,
    linear-gradient(180deg, #f8fafc 0%, #eef2f7 100%);
  user-select: none;
  touch-action: none;
}
.canvas-wires {
  position: absolute;
  inset: 0;
  pointer-events: auto;
  z-index: 1;
}
.canvas-wires .canvas-wire {
  stroke: var(--blue);
  stroke-width: 2.25;
  pointer-events: stroke;
  cursor: pointer;
  opacity: 0.85;
}
.canvas-wires .canvas-wire.selected {
  stroke: var(--navy);
  stroke-width: 3;
  opacity: 1;
}
.canvas-wires .canvas-wire.dragging {
  stroke: var(--blue);
  stroke-dasharray: 6 5;
  opacity: 0.7;
  pointer-events: none;
}
.canvas-nodes { position: relative; z-index: 2; min-height: 100%; }
.canvas-node {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 0;
  width: 200px;
  min-height: 72px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--sh-sm);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.canvas-node.tap-source,
.canvas-node.wire-target {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
.canvas-node-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 12px 10px;
  min-width: 0;
}
.canvas-node-body strong {
  font-size: 13.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.canvas-port {
  flex: 0 0 auto;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 2px solid var(--blue);
  background: var(--white);
  margin: 0 8px;
  cursor: crosshair;
}
.canvas-port-out { background: var(--blue); }
.canvas-edge-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
  min-height: 28px;
}
.canvas-edge-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}
.canvas-edge-chip.selected {
  border-color: var(--navy);
  background: var(--blue-tint-2);
}
.canvas-edge-remove {
  color: var(--ink-3);
  font-weight: 700;
  line-height: 1;
}
.canvas-edge-remove:hover { color: #b42318; }
.canvas-empty-hint { color: var(--ink-3); font-size: 13.5px; }
.batch-review-panel { margin-bottom: 24px; max-width: 720px; }
@media (max-width: 720px) {
  .flow-canvas { min-height: 360px; }
}

.admin-inline-form {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  margin-bottom: 6px;
}
.admin-inline-form select,
.admin-inline-form input[type="text"] {
  font: inherit; font-size: 12.5px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
}
.flash-ok {
  padding: 12px 14px;
  border-radius: 10px;
  background: #ecfdf3;
  border: 1px solid #abefc6;
  color: #067647;
  font-size: 14px;
}
.feature-flag-list {
  list-style: none; margin: 0; padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 8px 16px;
}
.feature-flag-list li {
  font-size: 13.5px;
  padding-left: 1.25rem;
  position: relative;
}
.feature-flag-list li::before {
  content: "";
  position: absolute; left: 0; top: 0.35em;
  width: 0.55em; height: 0.55em; border-radius: 50%;
}
.feature-flag-list li.on::before { background: #12b76a; }
.feature-flag-list li.off {
  color: var(--ink-3);
  text-decoration: line-through;
}
.feature-flag-list li.off::before { background: var(--line); }

/* ---------- Admin governance redesign ---------- */
.admin-tabs {
  display: flex; flex-wrap: wrap; gap: 8px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 12px;
}
.admin-tab {
  font-size: 13.5px; font-weight: 600;
  color: var(--ink-3); text-decoration: none;
  padding: 8px 12px; border-radius: 8px;
}
.admin-tab:hover, .admin-tab.active {
  color: var(--navy); background: var(--blue-tint-2);
}
.admin-section { margin-bottom: 40px; scroll-margin-top: 24px; }
.section-title {
  font-family: var(--font-display);
  font-size: 18px; font-weight: 700;
  margin: 0 0 6px;
}
.account-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 16px;
}
.account-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 18px 18px 14px;
  box-shadow: var(--sh-sm);
}
.account-card-head {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}
.account-email { font-weight: 700; font-size: 14.5px; color: var(--ink); }
.account-badges { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
.account-meta {
  display: flex; flex-wrap: wrap; gap: 10px 14px;
  font-size: 12.5px; color: var(--ink-3);
  margin-bottom: 8px;
}
.account-notes {
  font-size: 12.5px; color: var(--ink-2);
  background: var(--gray-50);
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 10px;
}
.account-actions {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  display: flex; flex-direction: column; gap: 8px;
}
.account-action-row {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
}
.account-action-row select,
.account-action-row input[type="text"] {
  font: inherit; font-size: 12.5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--white);
  min-width: 0;
}
.account-action-row input[type="text"] { flex: 1; min-width: 100px; }
.btn-sm { padding: 5px 10px !important; font-size: 12.5px !important; }
.btn-danger-ghost {
  color: #b42318 !important;
}
.btn-danger-ghost:hover { background: #fef3f2 !important; }

/* ---------- Ask EMIE ---------- */
#emie-fab {
  position: fixed; bottom: 1.25rem; right: 1.5rem; z-index: 60;
  width: 3.25rem; height: 3.25rem; border-radius: 9999px;
  border: 0; cursor: pointer;
  background: var(--blue); color: #fff;
  font-size: 1.25rem; line-height: 1;
  box-shadow: var(--sh-lg);
}
#emie-fab:hover { background: var(--blue-hover); }
#emie-panel {
  position: fixed; bottom: 5.5rem; right: 1.5rem; z-index: 60;
  width: min(400px, calc(100vw - 3rem));
  height: min(560px, 70dvh);
  display: flex; flex-direction: column;
  overflow: hidden;
  border-radius: 1rem;
  border: 1px solid var(--line);
  background: var(--white);
  box-shadow: var(--sh-xl);
}
#emie-panel[hidden] { display: none !important; }
.emie-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: .75rem 1rem;
  background: var(--navy); color: #fff;
}
.emie-title { font-weight: 700; font-size: .875rem; }
.emie-sub { font-size: .7rem; opacity: .7; margin-top: 2px; }
#emie-close {
  background: transparent; border: 0; color: #fff; cursor: pointer; font-size: 1rem;
}
#emie-msgs {
  flex: 1; overflow-y: auto; padding: .75rem;
  display: flex; flex-direction: column; gap: .5rem;
  background: var(--gray-50);
}
.emie-msg {
  max-width: 92%;
  padding: .65rem .8rem;
  border-radius: .75rem;
  font-size: .8125rem;
  line-height: 1.45;
}
.emie-msg.user {
  align-self: flex-end;
  background: var(--blue);
  color: #fff;
}
.emie-msg.bot {
  align-self: flex-start;
  background: var(--white);
  border: 1px solid var(--line);
  color: var(--ink);
}
.emie-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
#emie-chips {
  display: flex; flex-wrap: wrap; gap: .35rem;
  padding: .5rem .75rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
.emie-chip {
  border: 1px solid var(--line);
  background: var(--gray-50);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--ink-2);
  cursor: pointer;
}
.emie-chip:hover { border-color: var(--blue-line); color: var(--blue); }
#emie-form {
  display: flex; gap: .5rem;
  padding: .75rem;
  border-top: 1px solid var(--line);
  background: var(--white);
}
#emie-input {
  flex: 1;
  border-radius: .5rem;
  border: 1px solid var(--line-2);
  padding: .5rem .75rem;
  font-size: .875rem;
  font-family: var(--font);
}
#emie-input:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-tint);
}
