:root {
  color-scheme: light;
  --bg: #fff;
  --panel: #fff;
  --panel-soft: #fafaf8;
  --line: rgba(10, 10, 11, .08);
  --text: #0a0a0b;
  --muted: #4a4a52;
  --accent: #7c3aed;
  --accent-2: #9b5de5;
  --green: #27865d;
  --red: #bd3f4a;
  --yellow: #fffba3;
  --yellow-soft: #fffba3;
}

@font-face {
  font-family: "Vazirmatn";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/Vazirmatn-Variable.woff2") format("woff2");
}

* { box-sizing: border-box; }
html { overflow-x: hidden; scroll-behavior: smooth; touch-action: manipulation; }
body {
  margin: 0;
  min-height: 100vh;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Vazirmatn", "Segoe UI", Tahoma, sans-serif;
}
a { color: var(--accent); text-decoration: none; }
a:hover { color: #7c3aed; }
button, input { font: inherit; }

.announcement-bar {
  min-height: 56px;
  padding: 8px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border-bottom: 1px solid var(--text);
  background: var(--yellow);
  color: #17151b;
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.announcement-bar a {
  min-height: 34px;
  padding: 5px 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--text);
  border-radius: 999px;
  background: #fff;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.announcement-bar a:hover { background: var(--text); color: #fff; }
.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 75px;
  padding: 0 max(24px, calc((100% - 1160px) / 2));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(16px);
}
.landing-page .topbar { direction: ltr; }
.landing-page .brand { direction: ltr; }
.landing-page .brand-copy { direction: rtl; text-align: right; }
.landing-page .site-nav { direction: rtl; }
.landing-page .topbar-side { direction: ltr; }
.landing-page .topbar-side .text-button,
.landing-page .topbar-side .button { direction: rtl; }
.brand, .topbar-side, .actions, .account-top, .account-bottom, .section-heading, .welcome-row {
  display: flex;
  align-items: center;
}
.brand { flex: 0 0 auto; gap: 10px; font-size: 16px; color: var(--text); font-weight: 800; }
.brand-logo { display: block; width: 112px; height: auto; }
.site-nav { display: flex; align-items: center; gap: 30px; margin-inline-start: auto; margin-inline-end: auto; }
.site-nav a { color: #514f58; font-size: 13px; font-weight: 600; }
.site-nav a:hover { color: var(--accent); }
.site-menu-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: none;
  place-items: center;
  border: 1px solid rgba(36, 30, 48, .1);
  border-radius: 12px;
  background: #fff;
  color: #5d398f;
  cursor: pointer;
}
.landing-page .site-menu-toggle { border: 0; border-radius: 0; background: transparent; color: var(--text); }
.site-menu-toggle:focus-visible { outline: 3px solid rgba(124, 58, 237, .25); outline-offset: 2px; }
.topbar-side { flex: 0 0 auto; gap: 18px; color: var(--muted); font-size: 13px; }
.inline-form { display: inline; }
.text-button { padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; font-weight: 600; }
.text-button:hover { color: var(--accent); }
.danger { color: var(--red); }

.container { width: min(100% - 40px, 1040px); margin: 44px auto 80px; }
.landing-container { width: min(100% - 48px, 1160px); margin: 0 auto 70px; }
.page-heading { margin-bottom: 26px; }
.page-heading h1 { margin: 0; font-size: 25px; }
.eyebrow { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .01em; margin: 0 0 9px; }
h2, h3, p { margin-top: 0; }
.muted { color: var(--muted); }
.small { font-size: 12px; }

.button {
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 13px;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:hover { color: white; transform: translateY(-2px); }
.button-dark, .button-primary {
  background: #0a0a0b;
  box-shadow: 0 7px 0 rgba(10, 10, 11, .12), 0 12px 25px rgba(10, 10, 11, .08);
}
.button-dark:hover, .button-primary:hover { background: #1f1f23; box-shadow: 0 7px 0 rgba(10, 10, 11, .13), 0 12px 25px rgba(10, 10, 11, .17); }
.button-small { min-height: 39px; padding: 8px 15px; font-size: 12px; }
.button-outline, .button-secondary {
  border-color: rgba(23, 21, 27, .17);
  background: #fff;
  color: var(--text);
}
.button-outline:hover, .button-secondary:hover { color: var(--text); border-color: var(--accent); background: #faf7ff; }
.full-width { width: 100%; }

.landing-hero {
  min-height: 530px;
  padding: 66px 0 42px;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, .98fr);
  align-items: center;
  gap: clamp(36px, 7vw, 95px);
}
.hero-copy { position: relative; z-index: 1; }
.hero-kicker {
  width: fit-content;
  max-width: 100%;
  margin-bottom: 23px;
  padding: 9px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(23, 21, 27, .13);
  border-radius: 999px;
  background: var(--yellow-soft);
  color: #39343f;
  font-size: 11px;
  font-weight: 700;
}
.landing-hero h1 {
  max-width: 700px;
  margin: 0 0 19px;
  font-size: clamp(43px, 5.3vw, 72px);
  line-height: 1.32;
  letter-spacing: -.055em;
  font-weight: 900;
}
.landing-hero h1 .hero-title-lead {
  display: inline-block;
  max-width: 100%;
  color: var(--text);
  font-size: clamp(28px, 3.8vw, 44px);
  white-space: nowrap;
}
.landing-hero h1 .hero-title-accent {
  color: var(--accent);
  text-decoration: underline;
  text-decoration-color: var(--yellow);
  text-decoration-thickness: 8px;
  text-underline-offset: -2px;
  text-decoration-skip-ink: none;
}
.hero-description { max-width: 550px; margin: 0; color: #5e5b65; font-size: 16px; line-height: 2; }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 13px; margin-top: 27px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 22px 0 0; color: #77737e; font-size: 11px; line-height: 1.8; }
.note-check { width: 18px; height: 18px; flex: 0 0 18px; display: grid; place-items: center; border-radius: 50%; background: #e7f6ec; color: var(--green); font-size: 11px; font-weight: 800; }

.hero-art {
  position: relative;
  min-height: 420px;
  display: grid;
  place-items: center;
  isolation: isolate;
}
.hero-art::before {
  position: absolute;
  z-index: -2;
  width: 92%;
  height: 84%;
  content: "";
  border-radius: 48% 52% 38% 62% / 48% 39% 61% 52%;
  background: linear-gradient(140deg, var(--yellow) 0 34%, #f5e8ff 34% 64%, #e8ddff 64% 100%);
  transform: rotate(-7deg);
}
.hero-art::after {
  position: absolute;
  z-index: -1;
  inset: 12% 4%;
  content: "";
  border: 1px dashed rgba(124, 58, 237, .18);
  border-radius: 45%;
  transform: rotate(12deg);
}
.preview-card {
  width: min(100%, 410px);
  padding: 19px;
  border: 1px solid rgba(25, 22, 32, .11);
  border-radius: 25px;
  background: rgba(255, 255, 255, .97);
  box-shadow: 0 28px 75px rgba(61, 43, 83, .16), 0 4px 12px rgba(23, 21, 27, .05);
  transform: rotate(2deg);
}
.preview-header, .preview-brand, .preview-post, .preview-reply { display: flex; align-items: center; }
.preview-header { justify-content: space-between; padding-bottom: 15px; border-bottom: 1px solid #efedf2; }
.preview-brand { gap: 9px; }
.preview-avatar, .reply-avatar { width: 34px; height: 34px; flex: 0 0 34px; display: grid; place-items: center; border-radius: 50%; background: #eee5ff; color: var(--accent); font-weight: 900; }
.preview-brand strong, .preview-brand small { display: block; }
.preview-brand strong { font-size: 12px; }
.preview-brand small { margin-top: 2px; color: #898591; font-size: 9px; }
.preview-badge { padding: 5px 8px; border-radius: 99px; background: #f5f2fa; color: #77717f; font-size: 9px; }
.preview-post { gap: 9px; margin: 15px 0 12px; padding: 10px; border-radius: 13px; background: #fbfafc; }
.post-thumb { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: linear-gradient(135deg, #f3d9b8, #c18b64); color: white; font-size: 17px; font-weight: 800; }
.preview-post small, .preview-post strong { display: block; }
.preview-post small { margin-bottom: 3px; color: #898591; font-size: 9px; }
.preview-post strong { font-size: 10px; }
.post-dots { margin-right: auto; color: #898591; letter-spacing: 1px; }
.preview-comment { margin-right: 20px; padding: 12px 14px; border: 1px solid #eeeaf4; border-radius: 15px 4px 15px 15px; background: white; }
.message-label { display: block; color: var(--accent); font-size: 9px; font-weight: 800; }
.preview-comment p, .preview-reply p { margin: 6px 0 4px; color: #37333d; font-size: 11px; line-height: 1.8; }
.comment-meta { color: #98939d; font-size: 8px; }
.flow-line { margin: 6px 0 6px; display: flex; align-items: center; gap: 8px; color: #898591; font-size: 8px; }
.flow-line span { height: 1px; flex: 1; background: #e9e4f1; }
.preview-reply { align-items: flex-start; gap: 9px; padding: 12px; border-radius: 4px 15px 15px 15px; background: #f6f1ff; }
.preview-reply p { margin-bottom: 0; }
.reply-avatar { width: 28px; height: 28px; flex-basis: 28px; background: #fff; font-size: 11px; }
.preview-footer { margin-top: 13px; padding-top: 11px; border-top: 1px solid #efedf2; color: #908b96; font-size: 8px; line-height: 1.7; }
.footer-dot { width: 6px; height: 6px; margin-left: 4px; display: inline-block; border-radius: 50%; background: #c39b37; }
.floating-note { position: absolute; z-index: 2; display: flex; align-items: center; gap: 9px; padding: 10px 13px; border: 1px solid rgba(25, 22, 32, .08); border-radius: 14px; background: #fff; box-shadow: 0 13px 30px rgba(39, 26, 58, .12); }
.note-top { top: 13%; right: -2%; }
.note-bottom { bottom: 12%; left: -1%; }
.floating-note strong, .floating-note small { display: block; }
.floating-note strong { font-size: 10px; }
.floating-note small { margin-top: 3px; color: #85808b; font-size: 8px; }
.floating-icon { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #fff8cc; color: #786000; font-size: 15px; }
.purple-icon { background: #f1e8ff; color: var(--accent); }

.landing-section, .how-section { padding: 65px 0; }
.section-intro { max-width: 650px; margin: 0 auto 30px; text-align: center; }
.section-intro h2, .final-cta h2 { margin: 0 0 10px; font-size: clamp(26px, 3.2vw, 39px); letter-spacing: -.04em; font-weight: 900; }
.section-intro > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 13px; line-height: 1.9; }
.landing-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.landing-feature { position: relative; min-height: 218px; padding: 25px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 10px 35px rgba(35, 29, 48, .035); }
.landing-feature-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; font-size: 19px; font-weight: 800; }
.icon-yellow { background: #fff8c4; color: #705b00; }
.icon-purple { background: #f2eaff; color: var(--accent); }
.icon-pink { background: #fdeafa; color: #b33287; }
.feature-index { position: absolute; top: 28px; left: 25px; color: #b6b2bc; font-size: 10px; font-weight: 800; }
.landing-feature h3 { margin: 19px 0 8px; font-size: 16px; }
.landing-feature p, .step-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 2; }

.how-section { margin: 30px 0; padding: 58px 42px; border-radius: 30px; background: var(--panel-soft); }
.steps-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.step-card { padding: 21px; border: 1px solid rgba(30, 25, 40, .09); border-radius: 17px; background: rgba(255, 255, 255, .82); }
.step-number { width: 32px; height: 32px; margin-bottom: 15px; display: grid; place-items: center; border-radius: 50%; background: #1b1920; color: white; font-size: 13px; font-weight: 800; }
.step-card h3 { margin: 0 0 7px; font-size: 14px; }

.security-band { margin: 28px 0 62px; padding: 25px 28px; display: flex; align-items: center; gap: 17px; border: 1px solid #ece4fb; border-radius: 20px; background: #faf7ff; }
.security-symbol { width: 42px; height: 42px; flex: 0 0 42px; display: grid; place-items: center; border-radius: 50%; background: #e7f6ec; color: var(--green); font-size: 19px; font-weight: 900; }
.security-band > div:nth-child(2) { flex: 1; }
.security-band .eyebrow { margin-bottom: 4px; }
.security-band h2 { margin: 0 0 4px; font-size: 18px; }
.security-band p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.security-band .button { min-height: 42px; padding: 8px 15px; font-size: 11px; }
.final-cta { padding: 34px 20px 68px; text-align: center; }
.final-cta h2 { max-width: 700px; margin: 0 auto 8px; }
.final-cta .muted { margin: 0 0 20px; font-size: 13px; }

.panel {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--panel);
  box-shadow: 0 15px 45px rgba(35, 29, 48, .07);
}
.welcome-row { justify-content: space-between; gap: 24px; margin-bottom: 38px; }
.welcome-row h2 { font-size: 21px; margin: 0 0 5px; }
.welcome-row p { margin: 0; font-size: 13px; }
.section-block { margin-bottom: 28px; }
.section-heading { gap: 12px; margin-bottom: 14px; }
.section-heading h2 { font-size: 17px; margin: 0; }
.count-pill, .roadmap-badge { border: 1px solid var(--line); color: var(--muted); border-radius: 99px; padding: 5px 11px; font-size: 11px; }
.account-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.account-card { padding: 20px; }
.account-top { gap: 12px; }
.avatar, .feature-icon { display: grid; place-items: center; background: linear-gradient(140deg, var(--accent-2), var(--accent)); color: white; font-weight: 800; }
.avatar { width: 46px; height: 46px; border-radius: 50%; font-size: 18px; }
.account-title { min-width: 0; flex: 1; }
.account-title h3 { font-size: 15px; margin: 0 0 3px; direction: ltr; text-align: right; }
.account-title p { font-size: 12px; margin: 0; }
.status { color: var(--green); font-size: 11px; white-space: nowrap; }
.status i { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-left: 5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); padding: 19px 0 16px; margin-top: 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats div { text-align: center; min-width: 0; }
.stats div + div { border-right: 1px solid var(--line); }
.stats strong, .stats span { display: block; }
.stats strong { font-size: 15px; margin-bottom: 3px; }
.stats span { font-size: 10px; color: var(--muted); }
.account-bottom { align-items: flex-start; justify-content: space-between; gap: 10px; margin-top: 13px; }
.account-actions { margin-top: 0; gap: 8px; flex-wrap: wrap; justify-content: flex-start; }
.account-actions form { margin: 0; }
.empty-state { text-align: center; padding: 42px 18px; }
.empty-state h3 { margin: 12px 0 6px; font-size: 16px; }
.empty-state p { margin: 0; font-size: 13px; }
.empty-icon { font-size: 38px; color: var(--accent); }
.roadmap { padding: 22px 24px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.roadmap h3 { margin: 0 0 7px; font-size: 16px; }
.roadmap p { margin: 0; font-size: 12px; line-height: 1.9; max-width: 700px; }
.roadmap-badge { color: #8a6413; background: var(--yellow-soft); white-space: nowrap; }
.setup-hint { max-width: 400px; padding: 12px 15px; border-radius: 12px; border: 1px solid #f0dfab; background: var(--yellow-soft); color: #715519; font-size: 12px; line-height: 1.8; }
code { direction: ltr; display: inline-block; color: var(--text); }

.hero { min-height: 300px; display: flex; align-items: center; justify-content: space-between; padding: 48px 56px; overflow: hidden; }
.hero-copy { max-width: 575px; }
.hero h2 { font-size: clamp(26px, 4vw, 39px); line-height: 1.5; margin-bottom: 14px; }
.hero .muted { max-width: 560px; line-height: 2; }
.hero-orb { width: 150px; height: 150px; border-radius: 50px; transform: rotate(-12deg); display: grid; place-items: center; background: linear-gradient(145deg, var(--yellow), #d6c1ff); }
.hero-orb span { font-size: 42px; font-weight: 800; transform: rotate(12deg); }
.actions { gap: 12px; margin-top: 25px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.feature-card { padding: 23px; }
.feature-card h3 { margin: 17px 0 7px; font-size: 16px; }
.feature-card p { margin: 0; font-size: 13px; line-height: 1.9; }
.feature-icon { width: 34px; height: 34px; border-radius: 11px; font-size: 13px; }

.auth-panel { width: min(100%, 440px); margin: 0 auto; padding: 28px; }
.auth-panel label { display: block; margin: 0 0 7px; font-size: 13px; }
.auth-panel input { display: block; width: 100%; height: 46px; margin-bottom: 18px; padding: 0 12px; border: 1px solid var(--line); border-radius: 11px; outline: none; background: #fff; color: var(--text); direction: ltr; text-align: left; }
.auth-panel input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .1); }
.auth-panel .button { margin-top: 12px; }
.form-switch { text-align: center; font-size: 13px; color: var(--muted); margin: 20px 0 0; }
.notice { padding: 13px 16px; border-radius: 12px; margin: 0 0 18px; font-size: 13px; line-height: 1.8; }
.notice-success { border: 1px solid #ccebd8; background: #f0fbf4; color: #22653f; }
.notice-error { border: 1px solid #f3d0d2; background: #fff4f4; color: #a3333b; }
.notice-info { border: 1px solid #e8e3ee; background: #f7f5fa; color: #5f5969; }
.footer { text-align: center; color: #85818b; font-size: 11px; padding: 20px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .topbar { padding: 0 22px; }
  .site-nav { gap: 18px; }
  .landing-hero { grid-template-columns: minmax(0, 1fr) minmax(310px, .85fr); gap: 30px; }
  .landing-hero h1 { font-size: clamp(42px, 6vw, 60px); }
  .hero-art { min-height: 370px; }
  .preview-card { padding: 15px; }
}
@media (max-width: 760px) {
  .landing-page .topbar { min-height: 65px; padding: 8px 16px; gap: 8px; flex-wrap: wrap; }
  .landing-page.site-menu-ready .site-menu-toggle { display: grid; }
  .landing-page .site-nav {
    order: 3;
    flex: 0 0 100%;
    width: 100%;
    margin: 0;
    padding: 8px 0 4px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    border-top: 1px solid var(--line);
  }
  .landing-page.site-menu-ready:not(.site-menu-open) .site-nav { display: none; }
  .landing-page.site-menu-open .site-nav { display: flex; }
  .landing-page .site-nav a { padding: 10px 6px; border-radius: 8px; font-size: 13px; text-align: right; }
  .landing-page .site-nav a:hover { background: #f7f3fc; }
  .landing-page .topbar-side {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    padding: 10px 0 2px;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    border-top: 1px solid var(--line);
  }
  .landing-page.site-menu-ready:not(.site-menu-open) .topbar-side { display: none; }
  .landing-page.site-menu-open .topbar-side { display: flex; }
  .landing-page .topbar-side .text-button,
  .landing-page .topbar-side .button { min-height: 40px; padding: 8px 13px; }
  .landing-page.site-menu-open .site-menu-toggle .hamburger-icon span:first-child { transform: translateY(6px) rotate(45deg); }
  .landing-page.site-menu-open .site-menu-toggle .hamburger-icon span:nth-child(2) { opacity: 0; }
  .landing-page.site-menu-open .site-menu-toggle .hamburger-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
}
@media (max-width: 700px) {
  .announcement-bar { min-height: 0; padding: 7px 12px; flex-wrap: wrap; gap: 5px 8px; font-size: 10px; }
  .announcement-bar a { min-height: 30px; padding: 4px 10px; font-size: 10px; }
  .topbar { min-height: 65px; padding: 0 16px; gap: 8px; }
  .brand { gap: 8px; }
  .brand-logo { width: 92px; }
  .site-nav { display: none; }
  .topbar-side { gap: 12px; font-size: 12px; }
  .container { width: min(100% - 28px, 560px); margin-top: 30px; }
  .landing-container { width: min(100% - 30px, 560px); margin-top: 0; }
  .landing-hero { min-height: 0; padding: 50px 0 32px; grid-template-columns: 1fr; gap: 22px; }
  .hero-copy { text-align: center; }
  .hero-kicker { margin: 0 auto 18px; font-size: 10px; }
  .landing-hero h1 { margin-bottom: 13px; font-size: clamp(39px, 10vw, 54px); line-height: 1.38; }
  .landing-hero h1 .hero-title-lead { font-size: clamp(24px, 7vw, 39px); }
  .landing-hero h1 .hero-title-accent { font-size: clamp(30px, 9vw, 48px); }
  .hero-description { margin-inline: auto; font-size: 13px; line-height: 2; }
  .hero-actions { justify-content: center; margin-top: 21px; }
  .hero-note { justify-content: center; margin-top: 16px; font-size: 9px; }
  .hero-art { min-height: 0; margin: 0 -3px; grid-template-columns: repeat(2, minmax(0, 1fr)); place-items: stretch; gap: 10px; }
  .preview-card { grid-column: 1 / -1; width: min(100%, 390px); justify-self: center; }
  .hero-art .floating-note { position: static; width: 100%; min-width: 0; padding: 8px; gap: 6px; }
  .note-top { grid-column: 1; grid-row: 2; }
  .note-bottom { grid-column: 2; grid-row: 2; }
  .floating-note strong { font-size: 9px; }
  .floating-icon { width: 24px; height: 24px; flex: 0 0 24px; }
  .landing-section, .how-section { padding: 46px 0; }
  .section-intro h2, .final-cta h2 { font-size: 27px; }
  .landing-features, .steps-grid, .account-list { grid-template-columns: 1fr; }
  .landing-feature { min-height: 0; }
  .how-section { margin: 10px 0; padding: 38px 18px; border-radius: 22px; }
  .security-band { align-items: flex-start; flex-wrap: wrap; padding: 20px; }
  .security-band > div:nth-child(2) { min-width: calc(100% - 65px); }
  .security-band .button { margin-right: 59px; }
  .final-cta { padding: 20px 6px 50px; }
  .user-email { display: none; }
  .welcome-row { align-items: flex-start; flex-direction: column; }
  .welcome-row > form, .welcome-row > form .button { width: 100%; }
  .roadmap { align-items: flex-start; flex-direction: column; }
  .hero { padding: 30px 24px; min-height: 0; }
  .hero-orb { display: none; }
  .feature-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

textarea, select, input:not([type="hidden"]) { font: inherit; }
.form-grid { margin: 0 0 16px; padding: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.form-grid h2 { margin: 0; font-size: 17px; }
.form-grid label { min-width: 0; display: grid; gap: 7px; color: var(--text); font-size: 12px; font-weight: 700; }
.form-grid label small { color: var(--muted); font-size: 10px; font-weight: 400; }
.form-grid input, .form-grid textarea, .form-grid select, .reply-form textarea {
  width: 100%; min-width: 0; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px;
  outline: none; background: #fff; color: var(--text); font-size: 12px; line-height: 1.8;
}
.form-grid textarea, .reply-form textarea { resize: vertical; }
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus, .reply-form textarea:focus {
  border-color: var(--accent); box-shadow: 0 0 0 3px rgba(124, 58, 237, .1);
}
.field-wide { grid-column: 1 / -1; }
.form-grid .button { justify-self: start; }
.app-nav a { white-space: nowrap; }
.rule-list, .feature-stack { display: grid; gap: 14px; }
.rule-card { padding: 20px; }
.rule-card .section-heading { justify-content: space-between; }
.rule-card .section-heading > div { display: flex; align-items: center; gap: 10px; }
.rule-card h3 { margin: 0; font-size: 14px; }
.rule-card p { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.rule-card .actions { margin-top: 16px; }
.rule-card .actions form { margin: 0; }
.activity-heading { justify-content: space-between; }
.activity-heading > div { min-width: 0; }
.activity-heading p { margin: 6px 0 0; }
.capability-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.capability-card { padding: 18px; }
.capability-card h3 { margin: 14px 0 6px; font-size: 13px; }
.capability-card p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.capability-note { margin: 12px 0 0; }
.status-off { color: #88838e; }
.status-off i { background: #aaa5af; }
.notice code { overflow-wrap: anywhere; }
.inbox-layout { display: grid; grid-template-columns: minmax(230px, .75fr) minmax(0, 1.5fr); gap: 14px; align-items: stretch; }
.thread-list { padding: 8px; max-height: 680px; overflow-y: auto; }
.thread-item { display: grid; gap: 5px; padding: 13px; border-radius: 12px; color: var(--text); }
.thread-item + .thread-item { border-top: 1px solid var(--line); }
.thread-item:hover, .thread-item.selected { background: #f7f3ff; color: var(--text); }
.thread-item strong { font-size: 12px; }
.thread-item small { color: var(--muted); font-size: 10px; }
.thread-item span { color: var(--muted); font-size: 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-panel { min-height: 390px; padding: 16px; display: flex; flex-direction: column; }
.conversation-heading { display: flex; justify-content: space-between; gap: 10px; padding: 0 2px 13px; border-bottom: 1px solid var(--line); font-size: 13px; }
.conversation-heading small { color: var(--muted); }
.message-list { flex: 1; min-height: 250px; padding: 17px 2px; display: flex; flex-direction: column; gap: 10px; }
.message-bubble { width: fit-content; max-width: min(85%, 520px); padding: 10px 13px; border-radius: 14px; overflow-wrap: anywhere; }
.message-bubble p { margin: 0 0 5px; font-size: 12px; line-height: 1.9; }
.message-bubble small { color: var(--muted); font-size: 9px; }
.message-bubble.inbound { align-self: flex-start; background: #f4f1f8; border-bottom-right-radius: 4px; }
.message-bubble.outbound { align-self: flex-end; background: #f1eaff; border-bottom-left-radius: 4px; }
.reply-form { display: flex; align-items: flex-end; gap: 9px; padding-top: 12px; border-top: 1px solid var(--line); }
.reply-form textarea { flex: 1; }
.analytics-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 16px; }
.analytics-card { padding: 20px; display: grid; gap: 12px; }
.analytics-card span { color: var(--muted); font-size: 12px; }
.analytics-card strong { font-size: 25px; }
.table-wrap { width: 100%; overflow-x: auto; }
table { width: 100%; border-collapse: collapse; text-align: right; font-size: 11px; }
th, td { padding: 12px 9px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; }
td a { display: inline-block; max-width: 260px; overflow-wrap: anywhere; direction: ltr; text-align: left; }
td small { display: block; margin-top: 4px; color: var(--muted); }
@media (max-width: 700px) {
  .topbar { flex-wrap: wrap; }
  .app-nav { order: 3; width: 100%; margin: 0; padding: 0 0 9px; display: flex; gap: 18px; overflow-x: auto; }
  .app-nav a { font-size: 11px; }
  .form-grid { grid-template-columns: 1fr; padding: 17px; }
  .field-wide { grid-column: auto; }
  .inbox-layout { grid-template-columns: 1fr; }
  .thread-list { max-height: 240px; }
  .conversation-panel { min-height: 340px; }
  .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .analytics-card { padding: 15px; }
  .analytics-card strong { font-size: 21px; }
  .capability-grid { grid-template-columns: 1fr; }
  .activity-heading { align-items: flex-start; flex-direction: column; }
  .reply-form { align-items: stretch; flex-direction: column; }
  .reply-form .button { align-self: flex-start; }
  .rule-card .section-heading { align-items: flex-start; }
  .rule-card .section-heading > div { align-items: flex-start; flex-direction: column; }
}

.trust-strip {
  margin: 4px auto 24px;
  padding: 18px 22px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, .86);
}
.trust-strip div { display: grid; gap: 4px; }
.trust-strip strong { font-size: 12px; }
.trust-strip span { color: var(--muted); font-size: 10px; line-height: 1.7; }
.landing-features { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.landing-feature { min-height: 235px; }
.spotlight-section {
  margin: 20px 0 42px;
  padding: clamp(24px, 5vw, 55px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, .92fr);
  align-items: center;
  gap: clamp(25px, 5vw, 70px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: linear-gradient(125deg, #fff 0%, #fff 58%, var(--panel-soft) 100%);
}
.spotlight-copy h2 { margin: 0 0 12px; font-size: clamp(25px, 3.2vw, 38px); line-height: 1.5; letter-spacing: -.035em; }
.spotlight-copy > p:not(.eyebrow) { color: var(--muted); font-size: 13px; line-height: 2; }
.check-list { margin: 18px 0 22px; padding: 0; display: grid; gap: 9px; list-style: none; color: #514d58; font-size: 12px; }
.check-list li { position: relative; padding-right: 24px; }
.check-list li::before { position: absolute; right: 0; color: var(--green); content: "✓"; font-weight: 900; }
.text-link { font-size: 12px; font-weight: 800; }
.mini-flow { padding: 20px; border: 1px solid rgba(25, 22, 32, .09); border-radius: 20px; background: #fff; box-shadow: 0 18px 45px rgba(35, 29, 48, .08); }
.mini-flow-step { display: flex; align-items: center; gap: 11px; }
.mini-flow-step > div { display: grid; gap: 3px; }
.mini-flow-step small, .mini-flow-result small { color: var(--muted); font-size: 9px; }
.mini-flow-step strong { font-size: 11px; }
.mini-flow-icon { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 10px; background: #fff7c5; color: #755e00; font-size: 11px; font-weight: 900; }
.purple-step { background: #f1e9ff; color: var(--accent); }
.mini-flow-connector { height: 17px; margin-right: 14px; border-right: 1px dashed #cfc5de; }
.mini-flow-result { margin-top: 16px; padding: 12px 14px; border-radius: 13px; background: #f7f3ff; }
.mini-flow-result p { margin: 7px 0 0; color: #45404e; font-size: 10px; line-height: 1.8; }
.mini-flow-note { margin: 13px 0 0; color: #85808b; font-size: 9px; line-height: 1.8; }
.how-section .steps-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps-cta { margin-top: 24px; text-align: center; }
.limits-section { padding: 56px 0 35px; }
.limits-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.limits-grid article { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.limit-mark { width: 34px; height: 34px; margin-bottom: 14px; display: grid; place-items: center; border-radius: 11px; background: #f1eaff; color: var(--accent); font-size: 11px; font-weight: 900; }
.limits-grid h3 { margin: 0 0 7px; font-size: 13px; }
.limits-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.limits-note { margin: 15px 0 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.8; }
.faq-section { padding: 45px 0 20px; }
.faq-list { width: min(100%, 820px); margin: 0 auto; display: grid; gap: 9px; }
.faq-list details { padding: 0 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.faq-list summary { position: relative; padding: 16px 0; cursor: pointer; list-style: none; font-size: 12px; font-weight: 800; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { margin-right: 10px; color: var(--accent); content: "+"; font-size: 16px; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { margin: 0; padding: 0 0 16px; color: var(--muted); font-size: 11px; line-height: 2; }
.final-cta > small { display: block; margin-top: 13px; color: var(--muted); font-size: 10px; }
.audience-section { padding: 45px 0 52px; }
.audience-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 13px; }
.audience-grid article { min-width: 0; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: #fff; }
.audience-grid article > span { color: var(--accent); font-size: 10px; font-weight: 900; }
.audience-grid h3 { margin: 15px 0 7px; font-size: 14px; }
.audience-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.9; }
.audience-note { margin: 13px 0 0; color: var(--muted); text-align: center; font-size: 10px; line-height: 1.8; }
.setup-section { margin: 20px 0 42px; padding: clamp(24px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(25px, 5vw, 60px); border-radius: 28px; background: #1b1920; color: #fff; }
.setup-section .eyebrow { color: #cfb8ff; }
.setup-copy h2 { margin: 0 0 13px; font-size: clamp(24px, 3vw, 35px); line-height: 1.5; }
.setup-copy > p:not(.eyebrow) { color: #d0ccd5; font-size: 12px; line-height: 2; }
.setup-section .text-link { color: #e4d7ff; }
.setup-checklist { display: grid; gap: 8px; }
.setup-checklist > div { display: flex; align-items: flex-start; gap: 12px; padding: 12px; border: 1px solid rgba(255,255,255,.13); border-radius: 13px; background: rgba(255,255,255,.045); }
.setup-check-number { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; background: #d9c7ff; color: #31224b; font-size: 10px; font-weight: 900; }
.setup-checklist p { min-width: 0; margin: 0; display: grid; gap: 4px; }
.setup-checklist strong { font-size: 11px; }
.setup-checklist small { color: #c6c1cb; font-size: 10px; line-height: 1.8; overflow-wrap: anywhere; }
.setup-checklist code { color: #fff; }
.availability-ready, .availability-setup, .availability-later { display: inline-block; padding: 4px 9px; border-radius: 99px; font-size: 9px; font-weight: 800; white-space: nowrap; }
.availability-ready { background: #eaf7ee; color: #256c43; }
.availability-setup { background: #fff5d8; color: #765800; }
.availability-later { background: #f0eef2; color: #6a6570; }
.automation-examples { padding: 48px 0 34px; }
.workflow-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.workflow-card { min-width: 0; padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.workflow-icon { width: 38px; height: 38px; margin-bottom: 16px; display: grid; place-items: center; border-radius: 12px; font-size: 17px; font-weight: 800; }
.workflow-card > small:not(.workflow-limit) { display: block; margin-bottom: 7px; color: var(--muted); font-size: 10px; }
.workflow-card h3 { margin: 0 0 12px; font-size: 15px; line-height: 1.8; }
.workflow-card p { margin: 0; color: #56515e; font-size: 11px; line-height: 1.9; }
.workflow-arrow { display: block; margin: 5px 0; color: var(--accent); font-size: 15px; }
.workflow-limit { display: block; margin-top: 15px; padding-top: 11px; border-top: 1px solid var(--line); color: #77717f; font-size: 9px; line-height: 1.8; }
.dashboard-showcase { margin: 26px 0 42px; padding: clamp(24px, 5vw, 52px); display: grid; grid-template-columns: minmax(0, 1fr) minmax(290px, .92fr); align-items: center; gap: clamp(25px, 5vw, 65px); border: 1px solid var(--line); border-radius: 28px; background: #fff; }
.showcase-copy h2 { margin: 0 0 12px; font-size: clamp(24px, 3vw, 35px); line-height: 1.55; letter-spacing: -.035em; }
.showcase-copy > p:not(.eyebrow) { color: var(--muted); font-size: 12px; line-height: 2; }
.showcase-note { margin: 18px 0 0; padding: 12px 14px; border-radius: 12px; background: #f8f6fa; color: #746e7c !important; font-size: 10px !important; }
.showcase-inbox { min-width: 0; padding: 17px; border: 1px solid rgba(25, 22, 32, .09); border-radius: 20px; background: #fff; box-shadow: 0 18px 45px rgba(35, 29, 48, .07); }
.showcase-window-bar { min-height: 32px; margin: -3px 0 14px; display: flex; align-items: center; gap: 5px; border-bottom: 1px solid var(--line); }
.showcase-window-bar > span { width: 7px; height: 7px; border-radius: 50%; background: #ded9e3; }
.showcase-window-bar strong { margin-right: auto; color: #77717f; font-size: 9px; font-weight: 700; }
.showcase-thread { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; border-bottom: 1px solid #f0edf3; }
.showcase-avatar { width: 30px; height: 30px; flex: 0 0 30px; display: grid; place-items: center; border-radius: 50%; background: #f0eaff; color: var(--accent); font-size: 12px; font-weight: 800; }
.showcase-thread > div { min-width: 0; flex: 1; }
.showcase-thread strong, .showcase-thread small { display: block; }
.showcase-thread strong { font-size: 10px; }
.showcase-thread small { margin-top: 3px; color: var(--muted); font-size: 8px; }
.showcase-thread p { margin: 8px 0 0; color: #514d58; font-size: 9px; line-height: 1.8; }
.showcase-thread > b { color: var(--accent); font-size: 8px; }
.muted-thread { opacity: .68; }
.showcase-message { width: 86%; margin: 14px auto 0 0; padding: 11px 13px; border-radius: 13px 13px 13px 4px; background: #f4efff; }
.showcase-message small, .showcase-message p { display: block; margin: 0; font-size: 8px; }
.showcase-message small { color: var(--accent); }
.showcase-message p { margin-top: 6px; color: #4a4354; line-height: 1.8; }
.showcase-disclaimer { display: block; margin-top: 13px; color: #8a8590; font-size: 8px; line-height: 1.8; }
.pricing-section { padding: 42px 0 30px; scroll-margin-top: 85px; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 15px; }
.pricing-card { padding: 23px; border: 1px solid var(--line); border-radius: 20px; background: #fff; box-shadow: 0 12px 35px rgba(35, 29, 48, .045); }
.pricing-badge { display: inline-flex; padding: 6px 11px; border-radius: 99px; background: #f2eaff; color: var(--accent); font-size: 10px; font-weight: 800; }
.pricing-card h3 { margin: 17px 0 14px; font-size: 16px; }
.pricing-amount { display: flex; flex-wrap: wrap; align-items: baseline; gap: 7px; }
.pricing-amount strong { font-size: clamp(20px, 2.5vw, 27px); letter-spacing: -.03em; }
.pricing-amount span, .pricing-card > small { color: var(--muted); font-size: 11px; }
.pricing-card > small { display: block; margin-top: 7px; }
.pricing-disclaimer { max-width: 860px; margin: 16px auto 0; color: var(--muted); font-size: 11px; line-height: 1.9; text-align: center; }

@media (max-width: 900px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .limits-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pricing-card:last-child { grid-column: 1 / -1; }
  .spotlight-section { grid-template-columns: minmax(0, 1fr) minmax(270px, .9fr); gap: 28px; }
  .dashboard-showcase { grid-template-columns: minmax(0, 1fr) minmax(260px, .9fr); gap: 28px; }
  .audience-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .setup-section { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .trust-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-strip { gap: 14px 9px; padding: 15px; }
  .trust-strip strong { font-size: 10px; }
  .trust-strip span { font-size: 9px; }
  .landing-features { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .landing-feature { min-height: 0; }
  .landing-feature { padding: 17px; }
  .landing-feature h3 { margin-top: 14px; font-size: 14px; }
  .workflow-grid { grid-template-columns: 1fr; }
  .spotlight-section { margin: 6px 0 24px; padding: 24px 18px; grid-template-columns: 1fr; border-radius: 22px; }
  .spotlight-copy h2 { font-size: 26px; }
  .mini-flow { padding: 16px; }
  .dashboard-showcase { margin: 18px 0 26px; padding: 24px 18px; grid-template-columns: 1fr; border-radius: 22px; }
  .showcase-copy h2 { font-size: 26px; }
  .showcase-inbox { padding: 14px; }
  .pricing-grid { grid-template-columns: 1fr; }
  .pricing-card:last-child { grid-column: auto; }
  .how-section .steps-grid, .limits-grid { grid-template-columns: 1fr; }
  .audience-grid { grid-template-columns: 1fr; }
  .setup-section { margin: 10px 0 25px; padding: 24px 18px; border-radius: 21px; }
  .limits-section { padding: 38px 0 25px; }
  .faq-section { padding-top: 30px; }
  .faq-list summary { font-size: 11px; line-height: 1.8; }
}

.app-page {
  --sidebar-width: 258px;
  background: #fafafa;
}
.app-page .topbar {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 30;
  width: var(--sidebar-width);
  min-height: 100vh;
  padding: 27px 18px 18px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: flex-start;
  gap: 30px;
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 0;
  border-left: 1px solid rgba(36, 30, 48, .08);
  background: #fff;
  box-shadow: -12px 0 35px rgba(35, 29, 48, .045);
  backdrop-filter: none;
  transition: transform .24s cubic-bezier(.2, .75, .25, 1);
}
.app-page.menu-collapsed .topbar { transform: translateX(100%); }
.app-page .brand {
  gap: 12px;
}
.brand-copy { display: grid; gap: 2px; }
.brand-subtitle { color: #817a8c; font-size: 10px; font-weight: 500; }
.account-switcher,
.account-switcher-empty {
  padding: 12px;
  display: grid;
  gap: 8px;
  border: 1px solid rgba(36, 30, 48, .08);
  border-radius: 14px;
  background: #faf9fc;
}
.account-switcher label,
.account-switcher-empty span { color: #817a8c; font-size: 10px; font-weight: 700; }
.account-switcher select {
  width: 100%;
  min-width: 0;
  height: 39px;
  padding: 0 10px;
  border: 1px solid #e5e2e8;
  border-radius: 9px;
  background: #fff;
  color: #302b38;
  font: inherit;
  font-size: 11px;
}
.account-switcher .button { width: 100%; min-height: 36px; }
.account-switcher-empty a { color: #514a5c; font-size: 11px; font-weight: 700; }
.app-page .app-nav {
  width: 100%;
  margin: 0;
  display: grid;
  align-content: start;
  gap: 5px;
}
.sidebar-section-label {
  margin: 0 9px 5px;
  color: #817a8c;
  font-size: 10px;
  font-weight: 700;
}
.app-page .app-nav-link {
  min-height: 46px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 11px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #5f5969;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  transition: background .16s ease, color .16s ease, border-color .16s ease;
}
.app-page .app-nav-link:hover,
.app-page .app-nav-link.active {
  border-color: transparent;
  background: var(--yellow-soft);
  color: var(--text);
}
.app-page .app-nav-link.active { box-shadow: none; }
.nav-icon {
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: #f3f2ef;
  color: #625e68;
  font-size: 16px;
}
.app-page .app-nav-link.active .nav-icon { background: #fff; color: var(--accent); }
.app-page .topbar-side {
  margin-top: auto;
  padding: 13px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(36, 30, 48, .08);
  border-radius: 15px;
  background: #faf9fc;
  color: #5f5969;
}
.sidebar-account { min-width: 0; display: flex; align-items: center; gap: 9px; }
.sidebar-avatar {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: #eee7fb;
  color: #5d398f;
  font-size: 15px;
  font-weight: 800;
}
.app-page .user-email {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #514a5c;
  direction: ltr;
  text-align: left;
  font-size: 10px;
  line-height: 1.7;
}
.app-page .topbar-side .inline-form { display: block; }
.app-page .topbar-side .text-button {
  width: 100%;
  min-height: 36px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 9px;
  background: #f1eef5;
  color: #514a5c;
  font-size: 11px;
}
.app-page .topbar-side .text-button:hover { background: #eae5f1; color: #30243f; }
.app-page .container {
  width: min(calc(100% - var(--sidebar-width) - 80px), 1180px);
  margin-top: 42px;
  margin-right: calc(var(--sidebar-width) + 40px);
  margin-bottom: 72px;
  margin-left: auto;
}
.app-page.menu-collapsed .container {
  width: min(100% - 80px, 1180px);
  margin-right: 40px;
}
.app-page.menu-collapsed .footer { margin-right: 0; }
.app-page .page-heading { display: flex; align-items: center; gap: 14px; }
.app-page .page-heading > div { flex: 1; }
.active-account-chip {
  max-width: 190px;
  padding: 7px 10px;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(36, 30, 48, .08);
  border-radius: 10px;
  background: #fff;
}
.active-account-chip small { color: #817a8c; font-size: 8px; }
.active-account-chip strong {
  overflow-wrap: anywhere;
  color: #514a5c;
  font-size: 10px;
  line-height: 1.5;
}
.sidebar-toggle {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(36, 30, 48, .1);
  border-radius: 12px;
  background: #fff;
  color: #5d398f;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease;
}
.sidebar-toggle:hover { border-color: rgba(124, 58, 237, .25); background: #f8f5fc; }
.hamburger-icon { width: 18px; display: grid; gap: 4px; }
.hamburger-icon span { height: 2px; border-radius: 2px; background: currentColor; }
.sidebar-backdrop { display: none; }
.app-page .page-heading {
  margin-bottom: 27px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(31, 26, 42, .08);
}
.app-page .page-heading .eyebrow { margin-bottom: 5px; color: var(--accent); font-size: 11px; }
.app-page .page-heading h1 { color: var(--text); font-size: clamp(24px, 2.5vw, 30px); letter-spacing: -.025em; }
.app-page .panel {
  border-color: rgba(36, 30, 48, .075);
  border-radius: 18px;
  box-shadow: 0 9px 28px rgba(35, 29, 48, .045);
}
.app-page .feature-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.app-page .feature-card:hover {
  transform: translateY(-3px);
  border-color: rgba(124, 58, 237, .2);
  box-shadow: 0 15px 32px rgba(35, 29, 48, .09);
}
.app-page .button-primary,
.app-page .button-dark {
  background: #0a0a0b;
  box-shadow: 0 7px 18px rgba(10, 10, 11, .12);
}
.app-page .button-primary:hover,
.app-page .button-dark:hover { background: #1f1f23; box-shadow: 0 9px 22px rgba(10, 10, 11, .16); }
.app-page .empty-state { padding: 48px 24px; }
.app-page .empty-icon { width: 58px; height: 58px; margin: 0 auto 12px; display: grid; place-items: center; border-radius: 18px; background: #f1ebfc; font-size: 29px; }
.app-page .empty-state h3 { font-size: 17px; }
.app-page .empty-state p { max-width: 560px; margin-inline: auto; line-height: 1.9; }
.app-page .footer { margin-right: var(--sidebar-width); border-color: rgba(31, 26, 42, .07); }

@media (max-width: 900px) {
  .app-page { --sidebar-width: 220px; }
  .app-page .topbar { padding: 22px 13px 15px; gap: 24px; }
  .app-page .feature-grid,
  .app-page .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .account-list { grid-template-columns: 1fr; }
  .app-page .container {
    width: min(calc(100% - var(--sidebar-width) - 48px), 1180px);
    margin-top: 34px;
    margin-right: calc(var(--sidebar-width) + 24px);
    margin-bottom: 60px;
    margin-left: auto;
  }
  .app-page.menu-collapsed .container {
    width: min(100% - 48px, 1180px);
    margin-right: 24px;
  }
}
@media (max-width: 800px) {
  .app-page .topbar {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: min(86vw, 300px);
    max-width: calc(100vw - 54px);
    min-height: 100vh;
    padding: 24px 18px 18px;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 26px;
    border-left: 0;
    border-bottom: 0;
    box-shadow: -12px 0 35px rgba(35, 29, 48, .12);
    transform: translateX(100%);
  }
  .app-page.menu-open .topbar { transform: translateX(0); }
  .app-page .app-nav {
    order: 0;
    width: 100%;
    display: grid;
    gap: 5px;
  }
  .app-page .sidebar-section-label { display: block; }
  .app-page .topbar-side {
    width: 100%;
    margin-top: auto;
    padding: 13px;
    display: grid;
    border: 1px solid rgba(36, 30, 48, .08);
    background: #faf9fc;
  }
  .app-page .sidebar-account { display: flex; }
  .app-page .topbar-side .text-button { min-height: 36px; padding: 7px 9px; background: #f1eef5; font-size: 11px; }
  .app-page .container { width: min(100% - 28px, 620px); margin: 82px auto 54px; }
  .app-page .page-heading { margin-bottom: 21px; padding-bottom: 15px; gap: 10px; flex-wrap: wrap; }
  .app-page .page-heading h1 { font-size: 23px; }
  .app-page .active-account-chip { margin-right: 52px; max-width: calc(100% - 52px); }
  .app-page .sidebar-toggle { position: fixed; top: 14px; right: 14px; z-index: 24; width: 42px; height: 42px; }
  .app-page.menu-open .sidebar-toggle { right: auto; left: calc(100vw - min(86vw, 300px) + 12px); }
  .app-page.menu-open .hamburger-icon span:first-child { transform: translateY(6px) rotate(45deg); }
  .app-page.menu-open .hamburger-icon span:nth-child(2) { opacity: 0; }
  .app-page.menu-open .hamburger-icon span:last-child { transform: translateY(-6px) rotate(-45deg); }
  .app-page .sidebar-backdrop:not([hidden]) {
    position: fixed;
    inset: 0;
    z-index: 25;
    display: block;
    border: 0;
    background: rgba(35, 29, 48, .24);
    backdrop-filter: blur(2px);
  }
  .app-page.menu-open .sidebar-toggle { z-index: 32; }
  .app-page .footer { margin-right: 0; }
}
.app-page .thread-item:hover,
.app-page .thread-item.selected { background: #ededeb; color: var(--text); }
.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;
}
.thread-search,
.directory-search { display: flex; align-items: center; gap: 8px; }
.thread-search {
  position: sticky;
  top: -8px;
  z-index: 2;
  margin: -8px -8px 8px;
  padding: 8px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.thread-search input,
.directory-search input {
  width: 100%;
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--text);
  font-size: 11px;
}
.thread-search input:focus,
.directory-search input:focus { border-color: #9c9aa0; box-shadow: 0 0 0 3px rgba(23, 21, 27, .06); }
.thread-search .button { flex: 0 0 auto; min-height: 38px; padding: 7px 10px; font-size: 10px; }
.directory-search { max-width: 620px; margin-bottom: 14px; }
.directory-search .button { flex: 0 0 auto; }
.contact-list { display: grid; gap: 10px; }
.contact-card {
  padding: 14px 16px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.contact-avatar {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #f0eef3;
  color: #574d66;
  font-size: 18px;
}
.contact-details { min-width: 0; }
.contact-details h3 { margin: 0 0 3px; font-size: 13px; overflow-wrap: anywhere; }
.contact-details small { color: var(--muted); font-size: 10px; }
.contact-details p { margin: 7px 0 0; color: var(--muted); font-size: 11px; line-height: 1.8; overflow-wrap: anywhere; }
.app-page .button-secondary,
.app-page .button-outline {
  border-color: #dfdeda;
  background: #fff;
  color: #242328;
}
.app-page .button-secondary:hover,
.app-page .button-outline:hover { border-color: #c9c7c2; background: #f4f4f1; color: #17151b; }
@media (max-width: 700px) {
  .contact-card { grid-template-columns: auto minmax(0, 1fr); gap: 10px; }
  .contact-card .button { grid-column: 2; justify-self: start; }
  .directory-search { gap: 6px; }
  .directory-search .button { padding-inline: 10px; }
}
.settings-profile { margin-bottom: 14px; padding: 20px; }
.settings-account-prompt { margin-bottom: 14px; padding: 18px; display: flex; align-items: flex-start; gap: 12px; }
.settings-account-prompt h2 { margin: 0 0 5px; font-size: 14px; }
.settings-account-prompt p { margin: 0; font-size: 11px; line-height: 1.9; }
.settings-profile-main { display: flex; align-items: center; gap: 14px; }
.settings-profile-copy { min-width: 0; flex: 1; }
.settings-profile-avatar {
  width: 58px;
  height: 58px;
  flex: 0 0 58px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #e8e4ed;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3eff8, #e9e4f0);
  color: #66517f;
  font-size: 22px;
  font-weight: 700;
}
.settings-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.settings-profile-label { color: var(--muted); font-size: 10px; }
.settings-profile-name-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.settings-profile-main h2 { margin: 3px 0; font-size: 16px; direction: ltr; text-align: right; }
.settings-profile-main p { margin: 0; font-size: 11px; }
.settings-account-type {
  padding: 3px 8px;
  border: 1px solid #ece8f0;
  border-radius: 999px;
  background: #faf9fb;
  color: #6f6578;
  font-size: 9px;
}
.settings-profile-main > .status { flex: 0 0 auto; }
.settings-profile-stats {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  gap: 24px;
  border-top: 1px solid var(--line);
}
.settings-profile-stats span {
  display: grid;
  gap: 2px;
}
.settings-profile-stats strong { color: var(--text); font-size: 13px; font-weight: 700; }
.settings-profile-stats small { color: var(--muted); font-size: 9px; }
@media (max-width: 700px) {
  .settings-profile-main { gap: 11px; }
  .settings-profile-avatar { width: 50px; height: 50px; flex-basis: 50px; }
  .settings-profile-main > .status { margin-right: 61px; }
}
.settings-notice { margin-top: 16px; background: #f7f5fa; border-color: #e8e3ee; color: #5f5969; }
.settings-group { min-width: 0; padding: 19px; }
.settings-option-list { display: grid; }
.settings-option {
  min-width: 0;
  padding: 12px 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #eeedeb;
}
.settings-option-copy { min-width: 0; flex: 1; }
.settings-option-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 8px; }
.settings-option h3 { margin: 0; color: var(--text); font-size: 11px; line-height: 1.8; }
.settings-option .availability-ready,
.settings-option .availability-later { padding: 3px 7px; font-size: 8px; }
.settings-option p { margin: 4px 0 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.settings-option > .button { flex: 0 0 auto; margin-top: 2px; }
.activity-filters { margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.activity-filter {
  min-height: 34px;
  padding: 7px 13px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4e2df;
  border-radius: 9px;
  background: #fff;
  color: #625e68;
  font-size: 10px;
  font-weight: 700;
}
.activity-filter:hover,
.activity-filter.active { border-color: #d7d4d0; background: #ededeb; color: #17151b; }
.settings-section-nav {
  margin: 18px 0 12px;
  padding-bottom: 2px;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.settings-section-link {
  min-height: 35px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e4e2df;
  border-radius: 9px;
  background: #fff;
  color: #625e68;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.settings-section-link:hover,
.settings-section-link.active { border-color: #d7d4d0; background: #ededeb; color: #17151b; }
.settings-category-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.settings-category-card {
  position: relative;
  min-width: 0;
  min-height: 150px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: var(--text);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.settings-category-card:hover {
  transform: translateY(-2px);
  border-color: rgba(36, 30, 48, .16);
  box-shadow: 0 14px 30px rgba(35, 29, 48, .08);
}
.settings-category-count {
  padding: 4px 8px;
  border-radius: 99px;
  background: #f2f1ef;
  color: #625e68;
  font-size: 9px;
  font-weight: 700;
}
.settings-category-card h2 { margin: 2px 0 0; font-size: 15px; }
.settings-category-card p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.9; }
.settings-category-status { margin-top: auto; color: #716b78; font-size: 9px; }
.settings-category-arrow { position: absolute; left: 18px; bottom: 18px; color: #625e68; font-size: 16px; }
.settings-section-title {
  margin: 4px 0 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.settings-section-title > div { min-width: 0; }
.settings-section-title h2 { margin: 0 0 3px; font-size: 17px; }
.settings-section-title p { margin: 0; font-size: 10px; }
@media (max-width: 900px) {
  .settings-category-grid { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .settings-profile { padding: 16px; }
  .settings-profile-main { align-items: flex-start; flex-wrap: wrap; }
  .settings-option { flex-direction: column; gap: 8px; }
  .settings-option > .button { align-self: flex-start; }
  .settings-section-nav { flex-wrap: nowrap; overflow-x: auto; }
  .settings-section-link { flex: 0 0 auto; }
  .settings-section-title { align-items: flex-start; flex-direction: column; }
}
.admin-nav-label { margin-top: 15px; }
.admin-metrics { grid-template-columns: repeat(auto-fit, minmax(145px, 1fr)); }
.admin-note { padding: 18px 20px; }
.admin-note strong { font-size: 13px; }
.admin-note p { margin: 7px 0 0; font-size: 11px; line-height: 1.9; }
.boxapi-balance-card { margin-bottom: 14px; padding: 18px 20px; display: flex; justify-content: space-between; gap: 12px; }
.boxapi-balance-card span { color: var(--muted); font-size: 12px; }
.boxapi-balance-card strong { font-size: 18px; }
.boxapi-service-grid { margin-bottom: 22px; }
.boxapi-service-card { padding: 17px; }
.boxapi-service-card h3 { margin: 0 0 12px; font-size: 13px; }
.boxapi-service-card ul { margin: 0; padding: 0; display: grid; gap: 8px; list-style: none; }
.boxapi-service-card li { display: flex; justify-content: space-between; gap: 10px; font-size: 11px; }
.boxapi-service-card li span { color: var(--muted); }
.boxapi-service-card li strong { text-align: left; overflow-wrap: anywhere; }
.boxapi-purchase-form { margin-bottom: 14px; }
.boxapi-purchase-ack { display: flex !important; align-items: flex-start; gap: 9px !important; line-height: 1.8; }
.boxapi-purchase-ack input[type="checkbox"] { width: auto; min-width: 16px; margin: 4px 0 0; }
.boxapi-downgrade-confirmation { margin-bottom: 18px; padding: 20px; }
.boxapi-downgrade-confirmation h2 { margin: 0 0 10px; font-size: 15px; }
.boxapi-downgrade-confirmation p { font-size: 12px; line-height: 1.9; }
.boxapi-confirmation-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.boxapi-confirmation-actions form { margin: 0; }
.admin-search-form {
  margin-bottom: 12px;
  padding: 14px;
  display: flex;
  align-items: flex-end;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.admin-search-form label, .admin-user-form label { display: grid; gap: 6px; color: var(--muted); font-size: 10px; }
.admin-search-form input, .admin-user-form input, .admin-user-form select {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
}
.admin-search-form input { width: min(340px, 50vw); }
.admin-quota-note { margin: 0 0 14px; }
.admin-user-list { display: grid; gap: 12px; }
.admin-user-card { padding: 18px; }
.admin-user-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.admin-user-heading h3 { margin: 0 0 5px; overflow-wrap: anywhere; font-size: 13px; }
.admin-user-heading p { margin: 0; }
.admin-user-form { margin-top: 15px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; align-items: end; }
.admin-user-form .button { min-height: 38px; }
.admin-readonly-value { min-height: 38px; display: flex; align-items: center; color: var(--text); font-size: 11px; }
.pwa-install-button[hidden] { display: none !important; }
@media (max-width: 900px) {
  .admin-user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .admin-search-form { align-items: stretch; flex-direction: column; }
  .admin-search-form input { width: 100%; }
  .admin-user-card { padding: 15px; }
  .admin-user-form { grid-template-columns: 1fr 1fr; }
  .admin-user-form .button { grid-column: 1 / -1; }
  .boxapi-balance-card { align-items: flex-start; flex-direction: column; }
  .boxapi-confirmation-actions { align-items: stretch; flex-direction: column; }
}

.app-page {
  --sidebar-width: 276px;
  --bg: #f5f6fb;
  --line: #e9e9f1;
  --text: #222238;
  --muted: #74758a;
  --accent: #6d51d8;
  --accent-2: #9577ed;
  --yellow-soft: #eeeaff;
  background: var(--bg);
}
.app-page .topbar {
  padding: 24px 18px 18px;
  gap: 23px;
  border: 0;
  background: linear-gradient(180deg, #705bd9 0%, #5945c1 100%);
  box-shadow: -12px 0 34px rgba(58, 44, 132, .16);
  color: #fff;
}
.app-page .brand { width: 100%; }
.app-page .brand-copy {
  width: 100%;
  padding: 8px 12px;
  justify-items: center;
  border-radius: 14px;
  background: #fff;
}
.app-page .brand-logo { width: min(100%, 145px); max-height: 65px; object-fit: contain; }
.app-page .brand-subtitle { color: #716a82; text-align: center; }
.app-page .account-switcher,
.app-page .account-switcher-empty {
  border-color: rgba(255, 255, 255, .2);
  background: rgba(255, 255, 255, .1);
}
.app-page .account-switcher label,
.app-page .account-switcher-empty span,
.app-page .sidebar-section-label { color: rgba(255, 255, 255, .76); }
.app-page .account-switcher select {
  border-color: rgba(255, 255, 255, .5);
  background: #fff;
  color: #302849;
}
.app-page .account-switcher-empty a { color: #fff; }
.app-page .account-switcher .button {
  border-color: rgba(255, 255, 255, .3);
  background: rgba(255, 255, 255, .13);
  color: #fff;
}
.app-page .app-nav { gap: 6px; }
.app-page .app-nav-link {
  min-height: 44px;
  padding-inline: 10px;
  color: rgba(255, 255, 255, .9);
}
.app-page .app-nav-link:hover {
  border-color: transparent;
  background: rgba(255, 255, 255, .12);
  color: #fff;
}
.app-page .app-nav-link.active {
  border-color: rgba(255, 255, 255, .76);
  background: #fff;
  color: #5b46c5;
  box-shadow: 0 5px 16px rgba(39, 28, 103, .12);
}
.app-page .nav-icon {
  background: rgba(255, 255, 255, .14);
  color: #fff;
}
.app-page .app-nav-link.active .nav-icon {
  background: #eeeaff;
  color: #624bcf;
}
.app-page .admin-nav-label { margin-top: 15px; }
.app-page .topbar-side {
  border-color: rgba(255, 255, 255, .18);
  background: rgba(255, 255, 255, .1);
  color: #fff;
}
.app-page .topbar-side .text-button {
  background: rgba(255, 255, 255, .13);
  color: #fff;
}
.app-page .topbar-side .text-button:hover { background: rgba(255, 255, 255, .22); color: #fff; }
.app-page .topbar-side .pwa-install-button { background: transparent; }
.app-page .container {
  width: min(calc(100% - var(--sidebar-width) - 72px), 1220px);
  margin-top: 24px;
  margin-right: calc(var(--sidebar-width) + 36px);
  margin-bottom: 60px;
}
.app-page.menu-collapsed .container {
  width: min(100% - 72px, 1220px);
  margin-right: 36px;
}
.app-page .workspace-header {
  min-height: 70px;
  margin-bottom: 24px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(50, 48, 86, .035);
}
.workspace-summary { display: flex; align-items: center; gap: 10px; }
.workspace-plan,
.workspace-account {
  min-width: 125px;
  padding: 7px 11px;
  display: grid;
  gap: 2px;
  border-radius: 10px;
  background: #f6f5fb;
}
.workspace-plan small,
.workspace-account small { color: var(--muted); font-size: 9px; }
.workspace-plan strong,
.workspace-account strong { color: var(--text); font-size: 11px; }
.workspace-account strong { overflow-wrap: anywhere; }
.workspace-profile { min-width: 0; display: flex; align-items: center; gap: 10px; }
.workspace-avatar {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border: 3px solid #f0ecff;
  border-radius: 50%;
  background: linear-gradient(145deg, #9a7af0, #6848d5);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
}
.workspace-profile-copy { min-width: 0; display: grid; gap: 2px; }
.workspace-profile-copy strong {
  max-width: 270px;
  overflow: hidden;
  color: var(--text);
  direction: ltr;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 11px;
}
.workspace-profile-copy small { color: var(--muted); font-size: 9px; }
.app-page .page-heading {
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-color: #e7e7ef;
}
.app-page .page-heading .eyebrow { color: var(--accent); }
.app-page .panel {
  border-color: var(--line);
  border-radius: 17px;
  box-shadow: 0 7px 24px rgba(50, 48, 86, .045);
}
.app-page .button-primary,
.app-page .button-dark {
  background: linear-gradient(135deg, #805ee5, #6044ca);
  box-shadow: 0 5px 13px rgba(96, 68, 202, .2);
}
.app-page .button-primary:hover,
.app-page .button-dark:hover {
  background: linear-gradient(135deg, #7351d7, #5238ba);
  box-shadow: 0 8px 18px rgba(96, 68, 202, .26);
}
.app-page .button-secondary,
.app-page .button-outline {
  border-color: #ded9f3;
  background: #fff;
  color: #5d4cb1;
}
.app-page .button-secondary:hover,
.app-page .button-outline:hover { border-color: #bfb2ed; background: #f7f5ff; color: #4c36b0; }
.app-page .dashboard-welcome {
  margin-bottom: 18px;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: linear-gradient(110deg, #fff 62%, #f5f2ff);
}
.dashboard-welcome-copy { min-width: 0; }
.dashboard-welcome-copy .eyebrow { margin-bottom: 5px; font-size: 10px; }
.dashboard-welcome-copy h2 { margin: 0 0 4px; font-size: clamp(18px, 2vw, 23px); }
.dashboard-welcome-copy p { margin: 0; font-size: 11px; }
.dashboard-connect { flex: 0 0 auto; max-width: 360px; }
.dashboard-connect > p { margin: 7px 0 0; font-size: 10px; line-height: 1.7; }
.dashboard-summary-grid {
  margin-bottom: 24px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 13px;
}
.dashboard-metric,
.dashboard-quick-card { min-width: 0; min-height: 142px; padding: 16px 18px; }
.dashboard-metric-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dashboard-metric-heading > span:first-child,
.dashboard-quick-title { color: #64657a; font-size: 10px; font-weight: 700; }
.dashboard-metric > strong { display: block; margin: 9px 0 2px; color: var(--text); font-size: 29px; line-height: 1.2; }
.dashboard-metric > small { color: var(--muted); font-size: 9px; }
.dashboard-metric-icon {
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 16px;
}
.dashboard-metric-icon.violet { background: #eeeaff; color: #6e52d3; }
.dashboard-metric-icon.green { background: #e7f7ee; color: #28885e; }
.dashboard-metric-icon.blue { background: #e8f1ff; color: #4178c6; }
.dashboard-quick-card { display: grid; align-content: start; gap: 8px; }
.dashboard-quick-title { margin-bottom: 1px; }
.dashboard-quick-button {
  min-height: 38px;
  padding: 4px 7px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--text);
  font-size: 10px;
  font-weight: 700;
}
.dashboard-quick-button:hover { border-color: #e9e5fa; background: #f8f6ff; color: var(--accent); }
.dashboard-quick-button > span:nth-child(2) { min-width: 0; flex: 1; }
.dashboard-quick-button > span:last-child { color: var(--accent); }
.dashboard-overview { min-height: 112px; padding: 18px 20px; }
.dashboard-view-all { display: inline-flex; align-items: center; gap: 6px; font-size: 10px; }
.dashboard-empty-inline,
.dashboard-automation-counts { min-height: 74px; display: flex; align-items: center; gap: 14px; }
.dashboard-overview-icon {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: #f0ecff;
  color: var(--accent);
  font-size: 20px;
}
.dashboard-empty-inline > div { min-width: 0; flex: 1; }
.dashboard-empty-inline strong { display: block; margin-bottom: 4px; font-size: 11px; }
.dashboard-empty-inline p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.dashboard-empty-inline .button { flex: 0 0 auto; }
.dashboard-automation-counts > div { min-width: 120px; padding-inline: 12px; display: grid; gap: 3px; border-left: 1px solid var(--line); }
.dashboard-automation-counts > div strong { font-size: 20px; }
.dashboard-automation-counts > div span { color: var(--muted); font-size: 9px; }
.dashboard-automation-counts > .button { margin-inline-start: auto; }
.app-page #connected-accounts { scroll-margin-top: 24px; }
.app-page #connected-accounts .section-heading { align-items: center; }
.app-page #connected-accounts .section-heading > div p { margin: 4px 0 0; }
.app-page .account-card { padding: 18px; }
.app-page .account-top { align-items: center; gap: 14px; }
.app-page .account-profile-avatar,
.prompts-profile-avatar {
  width: 62px;
  height: 62px;
  flex: 0 0 62px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border: 1px solid #e8e4ed;
  border-radius: 50%;
  background: linear-gradient(145deg, #f3eff8, #e9e4f0);
  color: #66517f;
  font-size: 23px;
  font-weight: 700;
}
.app-page .account-profile-avatar img,
.prompts-profile-avatar img { width: 100%; height: 100%; object-fit: cover; }
.profile-avatar-fallback { display: grid; place-items: center; }
.app-page .account-title h3 { margin: 0 0 2px; font-size: 15px; line-height: 1.6; }
.app-page .account-username { display: block; width: fit-content; margin-bottom: 5px; color: var(--muted); font-size: 10px; }
.app-page .account-type-pill { display: inline-flex; padding: 3px 8px; border: 1px solid #ece8f0; border-radius: 999px; background: #faf9fb; color: #6f6578; font-size: 9px; }
.app-page .account-stats {
  margin: 17px 0 0;
  padding: 13px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.app-page .account-stats > div { display: grid; justify-items: center; gap: 3px; }
.app-page .account-stats > div + div { border-right: 1px solid var(--line); }
.app-page .account-stats strong { font-size: 17px; line-height: 1.5; }
.app-page .account-stats span { color: var(--muted); font-size: 10px; }
.app-page .account-bottom { align-items: flex-start; }
.app-page .account-actions { gap: 11px 14px; }
.prompts-page > .section-heading { align-items: flex-end; justify-content: space-between; }
.prompts-page > .section-heading p { margin: 4px 0 0; }
.prompts-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.prompts-account-card { min-width: 0; padding: 18px; }
.prompts-account-header { min-width: 0; display: flex; align-items: center; gap: 12px; }
.prompts-profile-avatar { width: 54px; height: 54px; flex-basis: 54px; font-size: 20px; }
.prompts-account-copy { min-width: 0; flex: 1; }
.prompts-account-copy h3 { margin: 2px 0; overflow-wrap: anywhere; font-size: 14px; }
.prompts-account-copy p { margin: 0; font-size: 10px; }
.prompts-account-header > .settings-account-type { flex: 0 0 auto; }
.prompts-editor { margin-top: 17px; display: grid; gap: 8px; }
.prompts-editor > label { color: var(--text); font-size: 11px; font-weight: 600; }
.prompts-editor > textarea {
  min-height: 180px;
  padding: 16px;
  border: 1px solid #e5e0f0;
  border-radius: 15px;
  outline: none;
  background: linear-gradient(180deg, #fcfbff 0%, #f8f6fc 100%);
  color: #302b3b;
  caret-color: var(--accent);
  font-size: 12px;
  line-height: 2;
  resize: vertical;
  box-shadow: inset 0 1px 2px rgba(35, 29, 48, .035);
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}
.prompts-editor > textarea::placeholder { color: #8d8798; opacity: 1; }
.prompts-editor > textarea:hover { border-color: #cfc6e5; }
.prompts-editor > textarea:focus {
  border-color: #9c83e7;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(109, 81, 216, .12);
}
.prompts-editor > small { line-height: 1.8; }
.prompts-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.app-page .empty-state { background: #fff; }
.app-page .footer { border-color: #e7e7ef; }

@media (max-width: 1100px) {
  .app-page { --sidebar-width: 242px; }
  .app-page .topbar { padding-inline: 14px; }
  .app-page .container { width: min(calc(100% - var(--sidebar-width) - 48px), 1220px); margin-right: calc(var(--sidebar-width) + 24px); }
  .app-page.menu-collapsed .container { width: min(100% - 48px, 1220px); margin-right: 24px; }
}
@media (max-width: 900px) {
  .app-page .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .dashboard-quick-card { grid-column: 1 / -1; min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .dashboard-quick-title { grid-column: 1 / -1; }
  .app-page .workspace-profile-copy strong { max-width: 210px; }
}
@media (max-width: 900px) {
  .prompts-grid { grid-template-columns: 1fr; }
}
@media (max-width: 800px) {
  .app-page .topbar {
    width: min(86vw, 320px);
    padding: 22px 18px 16px;
    background: linear-gradient(180deg, #705bd9 0%, #5945c1 100%);
  }
  .app-page .container,
  .app-page.menu-collapsed .container { width: min(100% - 28px, 720px); margin: 80px auto 48px; }
  .app-page .workspace-header { margin-bottom: 18px; }
  .app-page .footer { margin-right: 0; }
}
@media (max-width: 620px) {
  .app-page .workspace-header { align-items: stretch; flex-direction: column-reverse; gap: 11px; padding: 12px; }
  .app-page .workspace-summary { justify-content: space-between; }
  .app-page .workspace-plan,
  .app-page .workspace-account { min-width: 0; flex: 1; }
  .app-page .workspace-profile-copy strong { max-width: calc(100vw - 120px); }
  .app-page .dashboard-welcome { align-items: stretch; flex-direction: column; gap: 14px; padding: 18px; }
  .app-page .dashboard-connect { max-width: none; }
  .app-page .dashboard-connect .button,
  .app-page .dashboard-empty-inline .button { width: 100%; }
  .app-page .dashboard-summary-grid { grid-template-columns: 1fr; gap: 10px; }
  .app-page .dashboard-metric { min-height: 118px; }
  .app-page .dashboard-quick-card { grid-column: auto; grid-template-columns: 1fr; }
  .app-page .dashboard-quick-title { grid-column: auto; }
  .app-page .dashboard-empty-inline { align-items: flex-start; flex-wrap: wrap; }
  .app-page .dashboard-empty-inline > div { flex-basis: calc(100% - 60px); }
  .app-page .dashboard-automation-counts { align-items: stretch; flex-wrap: wrap; }
  .app-page .dashboard-automation-counts > div { min-width: calc(50% - 12px); border-left: 0; }
  .app-page .dashboard-automation-counts > .button { margin-inline-start: 0; }
  .app-page #connected-accounts .section-heading { align-items: flex-start; }
  .app-page .account-bottom { flex-direction: column; }
}

.app-page .page-heading {
  min-height: 76px;
  margin: 0 0 22px;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(50, 48, 86, .035);
}
.app-page .page-heading h1 { font-size: clamp(20px, 2vw, 25px); }
.app-page .section-block { margin-bottom: 26px; }
.app-page .section-heading { align-items: center; margin-bottom: 16px; }
.app-page .section-heading h2 { color: var(--text); font-size: 15px; }
.app-page .section-heading p { color: var(--muted); line-height: 1.8; }
.app-page .notice-info,
.app-page .settings-notice { border-color: #e5defb; background: #f7f5ff; color: #5b4b99; }
.app-page .count-pill {
  border-color: #e7e2f6;
  background: #f7f5ff;
  color: #6853b4;
}
.app-page .form-grid {
  border-color: var(--line);
  border-radius: 17px;
  box-shadow: 0 7px 24px rgba(50, 48, 86, .045);
}
.app-page .form-grid input:focus,
.app-page .form-grid textarea:focus,
.app-page .form-grid select:focus,
.app-page .reply-form textarea:focus,
.app-page .thread-search input:focus,
.app-page .directory-search input:focus {
  border-color: #9c83e7;
  box-shadow: 0 0 0 3px rgba(109, 81, 216, .12);
}
.app-page .setup-hint {
  max-width: none;
  border-color: #e5defb;
  background: #f7f5ff;
  color: #5b4b99;
}
.app-page .availability-ready { color: #27845c; background: #eaf7f0; }
.app-page .availability-later { color: #8a6413; background: #fff6df; }
.app-page .rule-card {
  border-color: #e8e4f3;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-page .rule-card:hover {
  transform: translateY(-1px);
  border-color: #cfc4f2;
  box-shadow: 0 12px 26px rgba(73, 55, 144, .08);
}
.app-page .capability-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-page .capability-card { padding: 20px; }
.app-page .settings-profile-stats span,
.app-page .settings-category-count {
  background: #f1eeff;
  color: #6250ab;
}
.app-page .settings-option { border-color: var(--line); }
.app-page .settings-option + .settings-option { padding-top: 15px; }
.app-page .settings-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-page .settings-category-card {
  border-color: var(--line);
  background: linear-gradient(145deg, #fff, #fcfbff);
}
.app-page .settings-category-card:hover {
  border-color: #cfc4f2;
  box-shadow: 0 14px 30px rgba(73, 55, 144, .09);
}
.app-page .settings-category-arrow { color: var(--accent); }
.app-page .settings-section-link {
  border-color: #e7e2f6;
  color: #655b7a;
}
.app-page .settings-section-link:hover,
.app-page .settings-section-link.active {
  border-color: #d7cdf8;
  background: #f1edff;
  color: #5c43bc;
}
.app-page .settings-section-title .text-button { color: var(--accent); }
.app-page .analytics-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-page .analytics-card {
  min-height: 132px;
  align-content: space-between;
  border-color: var(--line);
  background: linear-gradient(145deg, #fff, #fcfbff);
}
.app-page .analytics-card strong { color: var(--text); font-size: 29px; }
.app-page .thread-list,
.app-page .conversation-panel { border-color: var(--line); }
.app-page .thread-list-heading {
  margin: 0 0 8px;
  padding: 8px 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  color: var(--text);
  font-size: 12px;
}
.app-page .thread-list-heading .count-pill { padding: 3px 8px; font-size: 9px; }
.app-page .thread-empty,
.app-page .conversation-empty { padding: 28px 14px; }
.app-page .conversation-empty {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.app-page .thread-item:hover,
.app-page .thread-item.selected { background: #f2efff; color: var(--text); }
.app-page .thread-item.selected { box-shadow: inset -3px 0 #7659d8; }
.app-page .thread-search { border-color: var(--line); background: #fff; }
.app-page .message-bubble.inbound { background: #f2efff; }
.app-page .message-bubble.outbound { background: #e9f6ef; }
.app-page .contact-card {
  border-color: var(--line);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.app-page .contact-card:hover {
  transform: translateY(-1px);
  border-color: #cfc4f2;
  box-shadow: 0 12px 26px rgba(73, 55, 144, .08);
}
.app-page .contact-avatar { background: #f1edff; color: #6550bd; }
.app-page .activity-filter {
  border-color: #e7e2f6;
  color: #655b7a;
}
.app-page .activity-filter:hover,
.app-page .activity-filter.active {
  border-color: #d7cdf8;
  background: #f1edff;
  color: #5c43bc;
}
.app-page .table-wrap {
  border: 1px solid var(--line);
  border-radius: 13px;
}
.app-page table { font-size: 11px; }
.app-page th {
  background: #f8f7fc;
  color: #625b76;
  white-space: nowrap;
}
.app-page th,
.app-page td { border-color: var(--line); }
.app-page .feature-stack { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
.app-page .feature-stack > .panel,
.app-page .feature-stack > .setup-hint { min-width: 0; }
.app-page .feature-stack > .setup-hint { min-height: 100%; }
.app-page .feature-stack > section.panel:last-child { grid-column: 1 / -1; padding: 20px; }
.app-page .feature-stack > section.panel:last-child h2 { margin: 0 0 14px; font-size: 15px; }

@media (max-width: 1100px) {
  .app-page .settings-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .analytics-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .app-page .feature-stack { grid-template-columns: 1fr; }
  .app-page .feature-stack > section.panel:last-child { grid-column: auto; }
  .app-page .capability-grid { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .app-page .page-heading { min-height: 68px; margin-bottom: 18px; padding: 12px; }
  .app-page .page-heading h1 { font-size: 20px; }
  .app-page .section-heading { align-items: flex-start; }
  .app-page .settings-category-grid,
  .app-page .analytics-grid { grid-template-columns: 1fr; }
  .app-page .settings-category-card { min-height: 138px; }
  .app-page .settings-section-title { gap: 8px; }
  .app-page .feature-stack > section.panel:last-child { padding: 16px; }
  .app-page .rule-card { padding: 16px; }
  .app-page .rule-card .actions { flex-wrap: wrap; }
  .app-page .analytics-card { min-height: 105px; }
}
.app-page .automation-workspace {
  display: grid;
  grid-template-columns: minmax(270px, .85fr) minmax(0, 1.15fr);
  gap: 16px;
  align-items: start;
}
.app-page .automation-builder,
.app-page .automation-rules { min-width: 0; }
.app-page .automation-builder .form-grid { margin-bottom: 0; }
.app-page .automation-rules .rule-list { gap: 10px; }
.app-page .automation-column-heading { margin: 0 0 10px; }
.app-page .automation-column-heading h3 { margin: 0 0 4px; color: var(--text); font-size: 13px; }
.app-page .automation-column-heading p { margin: 0; line-height: 1.8; }
.app-page .settings-detail-layout {
  display: grid;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  align-items: start;
  gap: 18px;
}
.app-page .settings-detail-layout .settings-section-nav {
  position: sticky;
  top: 16px;
  margin: 0;
  padding: 10px;
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 20px rgba(50, 48, 86, .035);
}
.app-page .settings-detail-layout .settings-section-link { width: 100%; }
.app-page .settings-detail-content { min-width: 0; }
.app-page .settings-detail-content .settings-notice { margin-top: 0; }

@media (max-width: 900px) {
  .app-page .automation-workspace { grid-template-columns: 1fr; }
  .app-page .settings-detail-layout { grid-template-columns: minmax(160px, 190px) minmax(0, 1fr); gap: 12px; }
}
@media (max-width: 800px) {
  .app-page .settings-detail-layout { grid-template-columns: 1fr; }
  .app-page .settings-detail-layout .settings-section-nav {
    position: static;
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
  }
  .app-page .settings-detail-layout .settings-section-link { width: auto; flex: 0 0 auto; }
}
@media (max-width: 620px) {
  .app-page .automation-workspace { gap: 20px; }
}

.app-page .dm-settings-page { display: grid; gap: 16px; }
.app-page .dm-settings-card { padding: 20px; }
.app-page .dm-settings-account {
  margin-bottom: 18px;
  padding-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 1px solid var(--line);
}
.app-page .dm-settings-avatar {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  overflow: hidden;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f1eeff;
}
.app-page .dm-settings-avatar img { width: 100%; height: 100%; object-fit: cover; }
.app-page .dm-settings-account h2 { margin: 2px 0; font-size: 15px; }
.app-page .dm-settings-account p { margin: 0; font-size: 10px; }
.app-page .dm-settings-form { display: grid; gap: 14px; }
.app-page .dm-settings-section {
  min-width: 0;
  margin: 0;
  padding: 16px;
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
}
.app-page .dm-settings-section legend {
  padding: 0 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.app-page .dm-settings-section > label:not(.dm-toggle),
.app-page .dm-quick-reply label { display: grid; gap: 6px; font-size: 11px; }
.app-page .dm-toggle {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
}
.app-page .dm-toggle input { margin-top: 3px; accent-color: var(--accent); }
.app-page .dm-toggle span { display: grid; gap: 3px; }
.app-page .dm-toggle strong { color: var(--text); font-size: 11px; }
.app-page .dm-toggle small,
.app-page .dm-quick-reply small { color: var(--muted); font-size: 9px; line-height: 1.8; }
.app-page .dm-hours-fields,
.app-page .dm-quick-replies { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app-page .dm-hours-fields label { display: grid; gap: 6px; font-size: 11px; }
.app-page .dm-quick-replies { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.app-page .dm-quick-reply {
  min-width: 0;
  margin: 0;
  padding: 11px;
  display: grid;
  align-content: start;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.app-page .dm-quick-reply legend { padding: 0 5px; font-size: 10px; }
.app-page .dm-quick-reply textarea { min-height: 64px; }
.app-page .dm-settings-memory {
  padding: 11px 13px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e8e2fa;
  border-radius: 12px;
  background: #faf8ff;
  color: #6045bd;
}
.app-page .dm-settings-memory > span { font-size: 17px; }
.app-page .dm-settings-memory p { margin: 0; display: grid; gap: 3px; }
.app-page .dm-settings-memory strong { font-size: 10px; }
.app-page .dm-settings-memory small { color: var(--muted); font-size: 9px; line-height: 1.8; }
@media (max-width: 700px) {
  .app-page .dm-settings-card { padding: 15px; }
  .app-page .dm-settings-section { padding: 13px; }
  .app-page .dm-quick-replies { grid-template-columns: 1fr; }
}

.landing-page {
  --accent: #6747d5;
  --accent-2: #9578ee;
  --yellow-soft: #f0ebff;
  background: #fbfaff;
}
.landing-page .announcement-bar {
  border-color: #e7e1fb;
  background: #f3efff;
  color: #4a3a80;
}
.landing-page .announcement-bar a {
  border-color: #ddd4fa;
  color: #5842af;
}
.landing-page .announcement-bar a:hover { background: #6747d5; color: #fff; }
.landing-page .topbar { background: rgba(255, 255, 255, .94); }
.landing-page .site-nav a { transition: color .16s ease; }
.landing-page .site-nav a:hover { color: #6747d5; }
.landing-page .landing-hero {
  position: relative;
  margin-top: 24px;
  padding: clamp(35px, 6vw, 72px) clamp(22px, 5vw, 60px);
  overflow: hidden;
  border: 1px solid #ebe7f7;
  border-radius: 30px;
  background:
    radial-gradient(ellipse at 82% 18%, rgba(201, 188, 255, .26), transparent 34%),
    linear-gradient(125deg, #fff 42%, #f8f6ff 100%);
  box-shadow: 0 22px 65px rgba(67, 51, 125, .06);
}
.landing-page .hero-kicker {
  border-color: #e6e0f6;
  background: #f6f3ff;
  color: #5b4b92;
}
.landing-page .landing-hero h1 { letter-spacing: -.04em; }
.landing-page .landing-hero h1 .hero-title-accent {
  color: #6747d5;
  text-decoration-color: #d7ccff;
  text-decoration-thickness: 6px;
  text-underline-offset: 3px;
}
.landing-page .hero-art::before {
  background: linear-gradient(145deg, #eee9ff 0 52%, #e1d8ff 52% 100%);
}
.landing-page .hero-art::after { border-color: rgba(103, 71, 213, .22); }
.landing-page .preview-card {
  transform: none;
  box-shadow: 0 28px 75px rgba(62, 45, 122, .16), 0 4px 12px rgba(23, 21, 27, .05);
}
.landing-page .floating-note { box-shadow: 0 13px 30px rgba(62, 45, 122, .11); }
.landing-page .landing-section,
.landing-page .how-section,
.landing-page .automation-examples,
.landing-page .spotlight-section,
.landing-page .dashboard-showcase,
.landing-page .setup-section,
.landing-page .limits-section,
.landing-page .pricing-section,
.landing-page .faq-section { scroll-margin-top: 96px; }
.landing-page .landing-feature,
.landing-page .workflow-card,
.landing-page .pricing-card {
  border-color: #ebe8f3;
  box-shadow: 0 10px 32px rgba(67, 51, 125, .045);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.landing-page .landing-feature:hover,
.landing-page .workflow-card:hover,
.landing-page .pricing-card:hover {
  transform: translateY(-3px);
  border-color: #d7cdf8;
  box-shadow: 0 18px 40px rgba(67, 51, 125, .09);
}
.landing-page .how-section {
  border: 1px solid #ebe7f7;
  background: linear-gradient(145deg, #f8f6ff, #f2effa);
}
.landing-page .step-number {
  background: #6747d5;
  box-shadow: 0 6px 15px rgba(103, 71, 213, .2);
}
.landing-page .security-band { border-color: #e5def8; background: #f8f6ff; }
.landing-page .final-cta {
  margin: 20px 0 38px;
  padding: 46px 24px;
  border: 1px solid #e8e2fa;
  border-radius: 25px;
  background: radial-gradient(ellipse at top, #f0eaff, #fff 72%);
}
.landing-page .footer { background: #fff; }
.app-page .workspace-header,
.app-page .page-heading,
.app-page .panel,
.app-page .settings-detail-layout .settings-section-nav {
  box-shadow: 0 8px 26px rgba(50, 48, 86, .045);
}
.app-page .section-heading { align-items: flex-end; }
.app-page .section-heading > div { min-width: 0; }
.app-page .section-heading > div p { margin: 4px 0 0; }
.app-page .app-nav-link { transition: transform .16s ease, background .16s ease, color .16s ease; }
.app-page .app-nav-link:hover { transform: translateX(-2px); }
.app-page .automation-wizard {
  min-width: 0;
  padding: 20px;
  border-color: #e8e3f6;
  background: linear-gradient(155deg, #fff, #fcfbff);
}
.app-page .automation-wizard-heading {
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.app-page .automation-wizard-heading .eyebrow { margin-bottom: 4px; font-size: 9px; }
.app-page .automation-wizard-heading h4 { margin: 0 0 4px; color: var(--text); font-size: 16px; }
.app-page .automation-wizard-heading p { margin: 0; }
.automation-wizard-estimate {
  flex: 0 0 auto;
  padding: 6px 9px;
  border-radius: 9px;
  background: #f1edff;
  color: #6752b1;
  font-size: 9px;
  font-weight: 700;
}
.automation-progress {
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  list-style: none;
}
.automation-progress li {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #9692a2;
  font-size: 10px;
}
.automation-progress li:not(:last-child)::after {
  height: 1px;
  margin-inline: 8px;
  flex: 1;
  background: #e9e5f1;
  content: "";
}
.automation-progress li > span {
  width: 25px;
  height: 25px;
  flex: 0 0 25px;
  display: grid;
  place-items: center;
  border: 1px solid #e4e0ed;
  border-radius: 50%;
  background: #fff;
  color: #777287;
  font-size: 9px;
  font-weight: 800;
}
.automation-progress li[aria-current="step"] { color: #6045c6; }
.automation-progress li[aria-current="step"] > span,
.automation-progress li.is-complete > span {
  border-color: #6747d5;
  background: #6747d5;
  color: #fff;
}
.automation-progress li.is-complete::after { background: #b7a8ef; }
.automation-progress li strong { white-space: nowrap; font-size: 9px; }
.automation-step[hidden] { display: none; }
.automation-step-title { margin-bottom: 16px; }
.automation-step-title > span { color: #7664b7; font-size: 9px; font-weight: 800; }
.automation-step-title h5 { margin: 4px 0; color: var(--text); font-size: 14px; }
.automation-step-title p { margin: 0; color: var(--muted); font-size: 10px; line-height: 1.8; }
.automation-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.automation-fields label { min-width: 0; display: grid; gap: 7px; color: var(--text); font-size: 10px; font-weight: 700; }
.automation-fields [hidden] { display: none; }
.automation-fields .field-wide { grid-column: 1 / -1; }
.automation-fields label small { color: var(--muted); font-size: 9px; font-weight: 400; line-height: 1.7; }
.automation-fields input,
.automation-fields textarea,
.automation-fields select {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding: 9px 11px;
  border: 1px solid #e4e0ed;
  border-radius: 10px;
  outline: none;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 11px;
}
.automation-fields textarea { min-height: 84px; resize: vertical; }
.automation-fields input:focus,
.automation-fields textarea:focus,
.automation-fields select:focus { border-color: #9c83e7; box-shadow: 0 0 0 3px rgba(109, 81, 216, .12); }
.automation-step-actions {
  margin-top: 18px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid #efedf4;
}
.automation-step-actions .button { min-height: 38px; }
.app-page :is(a, button, input, select, textarea):focus-visible {
  outline: 3px solid rgba(109, 81, 216, .28);
  outline-offset: 2px;
}
.app-page .settings-category-card,
.app-page .contact-card,
.app-page .rule-card,
.app-page .analytics-card,
.app-page .pricing-card { transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
.app-page .settings-category-card:hover,
.app-page .contact-card:hover,
.app-page .rule-card:hover { transform: translateY(-2px); }

@media (max-width: 800px) {
  .landing-page .landing-hero { margin-top: 14px; padding: 28px 20px; border-radius: 22px; }
  .automation-wizard-estimate { display: none; }
}
@media (max-width: 620px) {
  .landing-page .final-cta { margin-inline: 0; padding: 34px 18px; border-radius: 20px; }
  .app-page .automation-wizard { padding: 15px; }
  .app-page .automation-wizard-heading { margin-bottom: 15px; }
  .automation-progress { gap: 4px; }
  .automation-progress li { gap: 5px; }
  .automation-progress li:not(:last-child)::after { margin-inline: 3px; }
  .automation-progress li strong { font-size: 8px; }
  .automation-progress li > span { width: 22px; height: 22px; flex-basis: 22px; }
  .automation-fields { grid-template-columns: 1fr; gap: 12px; }
  .automation-fields .field-wide { grid-column: auto; }
  .automation-step-actions { align-items: stretch; flex-wrap: wrap; }
  .automation-step-actions > .muted { flex: 1 0 100%; }
  .automation-step-actions .button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .landing-page .landing-feature,
  .landing-page .workflow-card,
  .landing-page .pricing-card,
  .app-page .app-nav-link,
  .app-page .settings-category-card,
  .app-page .contact-card,
  .app-page .rule-card { transition: none; }
}

.app-page {
  --bg: #f8f8fb;
  --line: #e9e9ef;
  --accent: #7471cf;
  --accent-2: #9693df;
  background: var(--bg);
}
.app-page .topbar {
  background: #7774cf;
  box-shadow: none;
}
.app-page .container { margin-top: 20px; }
.app-page .workspace-header {
  min-height: 56px;
  margin-bottom: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.app-page .workspace-plan,
.app-page .workspace-account {
  min-width: 105px;
  padding: 6px 9px;
  border: 1px solid var(--line);
  background: #fff;
}
.app-page .workspace-avatar {
  width: 36px;
  height: 36px;
  flex-basis: 36px;
  border-width: 2px;
}
.app-page .page-heading {
  min-height: 0;
  margin-bottom: 17px;
  padding: 0 2px 11px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.app-page .page-heading .eyebrow { margin-bottom: 2px; font-size: 9px; }
.app-page .page-heading h1 { font-size: 21px; }
.app-page .panel {
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(35, 29, 48, .035);
}
.app-page .button-primary,
.app-page .button-dark {
  background: #7471cf;
  box-shadow: none;
}
.app-page .button-primary:hover,
.app-page .button-dark:hover {
  background: #6562be;
  box-shadow: none;
}
.app-page .dashboard-welcome {
  margin-bottom: 14px;
  padding: 15px 18px;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(35, 29, 48, .035);
}
.app-page .dashboard-welcome-copy .eyebrow { display: none; }
.app-page .dashboard-welcome-copy h2 { font-size: 17px; }
.app-page .dashboard-welcome-copy p { font-size: 10px; }
.app-page .dashboard-welcome-actions {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 9px;
}
.app-page .dashboard-connect { max-width: 260px; }
.app-page .dashboard-connect > p { display: none; }
.app-page .dashboard-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  margin-bottom: 20px;
}
.app-page .dashboard-metric {
  min-height: 104px;
  padding: 13px 15px;
  border-radius: 12px;
  box-shadow: none;
}
.app-page .dashboard-metric > strong { margin: 7px 0 1px; font-size: 24px; }
.app-page .dashboard-metric-icon { width: 28px; height: 28px; flex-basis: 28px; }
.app-page .account-list { grid-template-columns: 1fr; gap: 10px; }
.app-page .account-card { padding: 15px; box-shadow: none; }
.app-page .section-block { margin-bottom: 21px; }
.app-page .section-heading { margin-bottom: 11px; }
.app-page .section-heading h2 { font-size: 14px; }
.app-page .section-heading p { font-size: 10px; }
.app-page .empty-state { padding: 32px 18px; }

@media (max-width: 800px) {
  .app-page .workspace-header { min-height: 0; margin-bottom: 14px; }
  .app-page .page-heading { padding-bottom: 10px; }
}
@media (max-width: 620px) {
  .app-page .workspace-header { padding: 0; border: 0; background: transparent; }
  .app-page .dashboard-welcome { padding: 14px; }
  .app-page .dashboard-welcome-actions { align-items: stretch; flex-wrap: wrap; }
  .app-page .dashboard-connect { max-width: none; flex: 1 0 100%; }
  .app-page .dashboard-welcome-actions > .button { width: 100%; }
  .app-page .dashboard-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .app-page .dashboard-metric { min-height: 92px; padding: 11px; }
  .app-page .dashboard-metric > strong { font-size: 21px; }
  .app-page .account-top { align-items: flex-start; flex-wrap: wrap; }
  .app-page .account-profile-avatar { width: 54px; height: 54px; flex-basis: 54px; }
  .app-page .account-top > .status { margin-inline-start: 68px; }
  .app-page .account-bottom { flex-direction: column; }
  .prompts-account-card { padding: 14px; }
  .prompts-account-header { align-items: flex-start; flex-wrap: wrap; }
  .prompts-account-header > .settings-account-type { margin-inline-start: 66px; }
  .prompts-editor-actions > .button { width: 100%; }
}
.app-page .topbar {
  border-left: 1px solid var(--line);
  background: #fff;
  box-shadow: -8px 0 24px rgba(35, 29, 48, .06);
  color: var(--text);
}
.app-page .brand { justify-content: center; }
.app-page .brand-copy {
  width: 100%;
  padding: 4px 0;
  justify-items: center;
  border-radius: 0;
  background: transparent;
}
.app-page .brand-logo {
  width: min(100%, 154px);
  max-height: 68px;
  object-fit: contain;
  object-position: center;
}
.app-page .brand-subtitle { color: var(--muted); }
.app-page .account-switcher,
.app-page .account-switcher-empty {
  border-color: var(--line);
  background: #f8f7fb;
}
.app-page .account-switcher label,
.app-page .account-switcher-empty span,
.app-page .sidebar-section-label { color: var(--muted); }
.app-page .account-switcher-empty a { color: var(--accent); }
.app-page .account-switcher .button {
  border-color: #e5e0f2;
  background: #f1edff;
  color: #5643aa;
}
.app-page .app-nav-link { color: #5f5969; }
.app-page .app-nav-link:hover,
.app-page .app-nav-link.active {
  border-color: transparent;
  background: #f2efff;
  color: #5742b2;
}
.app-page .nav-icon {
  background: #f2f0f7;
  color: #6853bf;
}
.app-page .app-nav-link.active .nav-icon {
  background: #e5dfff;
  color: #543bb5;
}
.app-page .topbar-side {
  border-color: var(--line);
  background: #f8f7fb;
  color: #5f5969;
}
.app-page .topbar-side .inline-form,
.app-page .topbar-side form,
.app-page .topbar-side .text-button {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}
.app-page .topbar-side .text-button {
  justify-content: center;
  overflow-wrap: anywhere;
  background: #efedf5;
  color: #514a5c;
}
.app-page .topbar-side .text-button svg { width: 16px; height: 16px; flex: 0 0 16px; }
.app-page .topbar-side .text-button:hover { background: #e7e2f2; color: #30243f; }
.app-page .hamburger-icon span { transition: transform .18s ease, opacity .18s ease; }
.app-page .nav-icon svg { width: 18px; height: 18px; display: block; }
.app-page .settings-response-heading {
  margin-bottom: 12px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
.app-page .settings-response-heading h2 { margin: 0 0 4px; font-size: 15px; }
.app-page .settings-response-heading p { margin: 0; }
.app-page .settings-profile-stats { gap: 8px; }
.app-page .settings-profile-stats span { padding: 7px 10px; }

@media (max-width: 800px) {
  .app-page { --mobile-sidebar-width: min(86vw, 300px, calc(100vw - 54px)); }
  .app-page .topbar {
    width: var(--mobile-sidebar-width);
    max-width: none;
  }
  .app-page.menu-open .sidebar-toggle {
    right: auto;
    left: calc(100vw - var(--mobile-sidebar-width) + 12px);
  }
}

.app-page .sidebar-user-card {
  min-width: 0;
  padding: 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
}
.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #f0edff;
  color: #5d4cb1;
  font-size: 15px;
  font-weight: 800;
}
.sidebar-user-copy { min-width: 0; display: grid; gap: 3px; }
.sidebar-user-copy small { color: var(--muted); font-size: 9px; }
.sidebar-user-copy strong {
  overflow: hidden;
  color: var(--text);
  direction: ltr;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10px;
}
.contact-avatar svg { width: 21px; height: 21px; }
.empty-icon svg { width: 27px; height: 27px; }

.app-page .account-profile-avatar {
  width: 50px;
  height: 50px;
  flex-basis: 50px;
}
.prompts-profile-avatar {
  width: 48px;
  height: 48px;
  flex-basis: 48px;
}
.settings-profile-avatar {
  width: 52px;
  height: 52px;
  flex-basis: 52px;
}
@media (max-width: 800px) {
  .app-page .account-profile-avatar { width: 50px; height: 50px; flex-basis: 50px; }
  .settings-profile-avatar { width: 50px; height: 50px; flex-basis: 50px; }
  .app-page .account-top > .status { margin-inline-start: 62px; }
  .app-page .sidebar-toggle { transition: left .24s cubic-bezier(.2, .75, .25, 1), right .24s cubic-bezier(.2, .75, .25, 1); }
}

.rule-edit {
  margin: 14px 0 4px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.rule-edit summary {
  width: fit-content;
  color: var(--accent);
  cursor: pointer;
  font-size: 11px;
  font-weight: 700;
}
.rule-edit-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}
.rule-edit-form label { display: grid; gap: 5px; font-size: 10px; font-weight: 700; }
.rule-edit-form textarea,
.rule-edit-form select {
  width: 100%;
  min-width: 0;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 11px;
}
.rule-edit-form textarea { resize: vertical; line-height: 1.8; }
.rule-edit-form button { justify-self: start; }

.activity-card-list { display: grid; gap: 10px; }
.activity-card { padding: 15px; }
.activity-card-header {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.activity-card-header > div { min-width: 0; display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.activity-card-header strong { font-size: 11px; }
.activity-card-header time { flex: 0 0 auto; color: var(--muted); font-size: 9px; direction: ltr; }
.activity-type,
.activity-participant {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f3f0ff;
  color: #6250ad;
  font-size: 9px;
  font-weight: 700;
}
.activity-participant { background: #f5f5f6; color: #64616a; }
.activity-card-details { margin-top: 12px; display: grid; gap: 8px; }
.activity-detail {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.activity-detail strong { color: var(--muted); font-size: 9px; }
.activity-detail p,
.activity-empty-detail { margin: 5px 0 0; color: var(--text); font-size: 11px; line-height: 1.9; overflow-wrap: anywhere; }
.activity-detail .muted,
.activity-empty-detail { color: var(--muted); }
.activity-reply { background: #f7fbf8; border-color: #e4eee7; }
.activity-report-page { min-height: 100vh; background: #f7f7f9; }
.activity-report-document { width: min(100% - 32px, 920px); margin: 28px auto; }
.activity-report-header {
  margin-bottom: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.activity-report-header h1 { margin: 0 0 5px; font-size: 20px; }
.activity-report-header p { margin: 0; font-size: 11px; }
.activity-report-actions { display: flex; flex-wrap: wrap; gap: 8px; }

@media (max-width: 620px) {
  .activity-card-header { align-items: flex-start; flex-direction: column; }
  .activity-report-header { align-items: stretch; flex-direction: column; padding: 15px; }
  .activity-report-actions > * { flex: 1; text-align: center; }
}
@media print {
  .activity-report-page { background: #fff; }
  .activity-report-document { width: auto; margin: 0; }
  .activity-report-header { padding: 0 0 14px; border: 0; border-radius: 0; }
  .activity-report-actions { display: none; }
  .activity-card { break-inside: avoid; box-shadow: none; }
}

.landing-feature-icon svg,
.workflow-icon svg,
.security-symbol svg { width: 23px; height: 23px; stroke-width: 1.65; }
.landing-feature-icon,
.workflow-icon {
  border: 1px solid rgba(103, 71, 213, .09);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.82), 0 6px 14px rgba(67, 51, 125, .08);
}
.icon-yellow { background: linear-gradient(145deg, #fff8cc, #ffecd7); color: #96620a; }
.icon-purple { background: linear-gradient(145deg, #f3eaff, #e8e2ff); color: #6844c9; }
.icon-pink { background: linear-gradient(145deg, #ffedf6, #ffe2ed); color: #b5337f; }
.feature-index {
  top: 21px;
  left: 21px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: #f4f0ff;
  color: #6747d5;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.step-number { direction: ltr; font-variant-numeric: tabular-nums; }

.landing-spotlight {
  margin: 30px 0 42px;
  padding: clamp(24px, 5vw, 48px);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  align-items: center;
  gap: clamp(25px, 5vw, 60px);
  border-radius: 28px;
  background: radial-gradient(ellipse at 92% 8%, rgba(166, 131, 255, .28), transparent 34%), linear-gradient(135deg, #211a32, #403064);
  color: #fff;
  overflow: hidden;
}
.landing-spotlight-copy .eyebrow { color: #d7c6ff; }
.landing-spotlight-copy h2 { margin: 0 0 12px; font-size: clamp(23px, 3vw, 34px); line-height: 1.6; }
.landing-spotlight-copy > p:not(.eyebrow) { margin: 0; color: #d6d0e0; font-size: 12px; line-height: 2; }
.landing-spotlight-copy .text-link { display: inline-flex; gap: 8px; margin-top: 20px; color: #e6dcff; font-size: 12px; font-weight: 800; }
.landing-spotlight-demo { padding: 20px; border: 1px solid rgba(255,255,255,.55); border-radius: 21px; background: #fff; color: #292432; box-shadow: 0 20px 50px rgba(13, 9, 24, .22); }
.spotlight-demo-heading { margin-bottom: 14px; padding-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid #eeeaf4; }
.spotlight-demo-heading strong { font-size: 11px; }
.spotlight-demo-heading > span { display: inline-flex; align-items: center; gap: 6px; color: #387c51; font-size: 9px; }
.spotlight-demo-heading i { width: 7px; height: 7px; border-radius: 50%; background: #43b66c; }
.spotlight-demo-message,
.spotlight-demo-guide,
.spotlight-demo-answer { margin-top: 10px; padding: 11px 13px; border-radius: 13px; }
.spotlight-demo-message { background: #f5f3f8; }
.spotlight-demo-guide { background: #f4efff; }
.spotlight-demo-answer { background: #eaf7ee; }
.spotlight-demo-message small,
.spotlight-demo-guide small,
.spotlight-demo-answer small { display: block; margin-bottom: 4px; color: #77717f; font-size: 9px; }
.spotlight-demo-message p,
.spotlight-demo-guide p,
.spotlight-demo-answer p { margin: 0; font-size: 10px; line-height: 1.8; }

.landing-page .landing-footer {
  margin: 42px 0 0;
  padding: 42px max(24px, calc((100% - 1160px) / 2)) 18px;
  border: 0;
  background: #211a32;
  color: #d0cadd;
  text-align: right;
}
.landing-footer-shell { width: min(100%, 1160px); margin: 0 auto; }
.landing-footer-cta {
  margin-bottom: 30px;
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 24px;
  background: radial-gradient(ellipse at 10% 0, rgba(255, 255, 255, .17), transparent 38%), linear-gradient(120deg, #32235e, #6747d5);
  box-shadow: 0 20px 48px rgba(76, 52, 157, .2);
  color: #fff;
}
.landing-footer-cta .eyebrow { margin-bottom: 6px; color: #d7cbff; }
.landing-footer-cta h2 { margin: 0 0 6px; font-size: clamp(20px, 2.7vw, 29px); }
.landing-footer-cta p:last-child { margin: 0; color: #e2dcf2; font-size: 12px; }
.landing-footer-cta .button { flex: 0 0 auto; border-color: #fff; background: #fff; color: #543bb5; }
.landing-footer-cta .button:hover { background: #f0ebff; }
.landing-footer-main {
  width: 100%;
  margin: 0 auto;
  padding-bottom: 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(150px, .8fr) minmax(130px, .65fr);
  align-items: start;
  gap: 46px;
  border-bottom: 1px solid rgba(255,255,255,.13);
}
.landing-footer-brand > a { display: inline-flex; }
.landing-footer-brand img { width: 126px; height: auto; filter: brightness(0) invert(1); }
.landing-footer-brand p { max-width: 280px; margin: 12px 0; color: #c1bbcf; font-size: 11px; line-height: 1.8; }
.landing-footer-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.landing-footer-tags span { padding: 5px 9px; border: 1px solid rgba(255,255,255,.15); border-radius: 99px; background: rgba(255,255,255,.05); color: #ded7ec; font-size: 9px; }
.landing-footer-nav,
.landing-footer-account { display: grid; justify-items: start; gap: 11px; }
.landing-footer-nav strong,
.landing-footer-account strong { margin-bottom: 3px; color: #fff; font-size: 12px; }
.landing-footer-nav a,
.landing-footer-account a { color: #c9c3d3; font-size: 11px; }
.landing-footer-nav a:hover,
.landing-footer-account a:hover { color: #d8c8ff; }
.landing-footer-bottom {
  margin-top: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #a9a2b5;
  font-size: 10px;
}

@media (max-width: 700px) {
  .landing-spotlight { grid-template-columns: 1fr; gap: 22px; margin: 24px 0 32px; border-radius: 22px; }
  .landing-spotlight-demo { padding: 16px; }
  .landing-page .landing-footer { margin-top: 28px; padding: 28px 20px 16px; }
  .landing-footer-cta { align-items: flex-start; flex-direction: column; padding: 23px 20px; border-radius: 20px; }
  .landing-footer-cta .button { width: 100%; }
  .landing-footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 18px; }
  .landing-footer-brand { grid-column: 1 / -1; }
  .landing-footer-bottom { align-items: flex-start; flex-direction: column; gap: 8px; }
}
.landing-page .pricing-card-featured {
  border-color: #9c87e7;
  background: linear-gradient(155deg, #fff, #f8f5ff);
  box-shadow: 0 18px 42px rgba(103, 71, 213, .12);
}
.landing-page .pricing-card-featured .pricing-badge { background: #6747d5; color: #fff; }
.pricing-original-amount {
  display: block;
  margin: -5px 0 7px;
  color: #85818d;
  font-size: 11px;
}
.pricing-account-limit {
  margin-top: 14px !important;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  color: var(--text) !important;
  font-weight: 700;
}
.app-page .settings-account-card { overflow: hidden; padding: 0; }
.app-page .settings-profile {
  margin: 0;
  padding: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}
.app-page .settings-response {
  padding: 20px;
  border-top: 1px solid var(--line);
}
.app-page .settings-response .form-grid { margin: 0; }
.app-page .account-bottom {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.5fr);
  align-items: start;
  gap: 12px 18px;
}
.app-page .account-actions {
  min-width: 0;
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 9px;
}
.app-page .account-primary-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.app-page .account-primary-actions form { min-width: 0; margin: 0; }
.app-page .account-action-button {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  padding-inline: 8px;
  font-size: 11px;
  white-space: normal;
  text-align: center;
}
.app-page .account-action-danger {
  border-color: #f0d7dc;
  background: #fff7f8;
  color: #a93646;
}
.app-page .account-action-danger:hover {
  border-color: #e8bbc3;
  background: #fff0f2;
  color: #922b3a;
}
.app-page .account-secondary-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
}
.app-page .account-profile-avatar,
.app-page .settings-profile-avatar,
.prompts-profile-avatar {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}
.profile-avatar-fallback,
.profile-avatar-image { grid-area: 1 / 1; }
.profile-avatar-fallback { width: 100%; height: 100%; }
.profile-avatar-fallback[hidden] { display: none !important; }
.profile-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  -webkit-touch-callout: none;
  -webkit-user-drag: none;
  -webkit-user-select: none;
  user-select: none;
}
.dashboard-accounts-heading { flex-wrap: wrap; justify-content: space-between; }
.dashboard-account-heading-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.app-page .dashboard-account-heading-actions .dashboard-connect { max-width: 260px; }

@media (max-width: 800px) {
  .app-page .account-bottom { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]):not([type="reset"]),
  body select:not([multiple]),
  body textarea:not([hidden]) { font-size: 16px; }
  .app-page .settings-profile,
  .app-page .settings-response { padding: 16px; }
  .app-page .account-primary-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .app-page .dashboard-accounts-heading { align-items: stretch; flex-direction: column; }
  .app-page .dashboard-account-heading-actions { justify-content: space-between; }
  .app-page .dashboard-account-heading-actions .dashboard-connect { max-width: none; flex: 1 1 180px; }
  .app-page .dashboard-account-heading-actions .dashboard-connect .button { width: 100%; }
}
@media (max-width: 420px) {
  .landing-page .pricing-grid { grid-template-columns: 1fr; }
  .landing-page .pricing-card:last-child { grid-column: auto; }
  .app-page .account-primary-actions { grid-template-columns: 1fr; }
  .app-page .dashboard-account-heading-actions { align-items: stretch; flex-direction: column; }
  .app-page .dashboard-account-heading-actions .count-pill { align-self: flex-start; }
  .app-page .settings-profile,
  .app-page .settings-response { padding: 14px; }
}

.app-page .admin-page {
  display: grid;
  gap: 20px;
}
.app-page .admin-page > .section-block { margin-bottom: 0; }
.app-page .admin-page .section-heading { align-items: flex-start; }
.app-page .admin-page .section-heading h2 { color: var(--text); font-size: 15px; }
.admin-dashboard-welcome {
  min-height: 148px;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-color: #e7e1f8 !important;
  background: linear-gradient(110deg, #fff 58%, #f3efff) !important;
}
.admin-dashboard-welcome-copy { min-width: 0; }
.admin-dashboard-welcome-copy .eyebrow { margin-bottom: 4px; color: var(--accent); }
.admin-dashboard-welcome-copy h2 { margin: 0 0 5px; font-size: clamp(18px, 2vw, 23px); }
.admin-dashboard-welcome-copy > p:last-child { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.8; }
.admin-dashboard-welcome > .button { flex: 0 0 auto; }
.app-page .admin-dashboard-metrics {
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 12px;
  margin-bottom: 0;
}
.app-page .admin-metric-card {
  min-width: 0;
  min-height: 108px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  border-color: var(--line);
  background: linear-gradient(145deg, #fff, #fcfbff);
}
.admin-metric-icon,
.admin-shortcut-icon {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 18px;
}
.admin-metric-icon-violet,
.admin-shortcut-icon.violet { background: #eeeaff; color: #6e52d3; }
.admin-metric-icon-green,
.admin-shortcut-icon.green { background: #e7f7ee; color: #28885e; }
.admin-metric-icon-blue,
.admin-shortcut-icon.blue { background: #e8f1ff; color: #4178c6; }
.admin-metric-icon-amber,
.admin-shortcut-icon.amber { background: #fff3dc; color: #a76a12; }
.admin-metric-copy { min-width: 0; display: grid; gap: 5px; }
.admin-metric-copy > span { color: var(--muted); font-size: 10px; line-height: 1.6; }
.admin-metric-copy > strong { color: var(--text); font-size: 25px; line-height: 1.2; }
.admin-shortcut-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.app-page .admin-shortcut-card {
  min-width: 0;
  min-height: 104px;
  padding: 17px;
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--text);
  text-decoration: none;
}
.admin-shortcut-copy { min-width: 0; flex: 1; display: grid; gap: 5px; }
.admin-shortcut-copy strong { font-size: 12px; }
.admin-shortcut-copy small { color: var(--muted); font-size: 10px; line-height: 1.8; }
.admin-shortcut-arrow { color: var(--accent); font-size: 18px; transition: transform .16s ease; }
.app-page .admin-shortcut-card:hover .admin-shortcut-arrow { transform: translateX(-3px); }
.app-page .admin-note {
  padding: 16px 19px;
  border-color: #e7e1f8;
  background: #faf8ff;
}
.admin-note strong { color: #54439c; }
.admin-note p { margin-bottom: 0; }
.app-page .admin-search-form {
  min-height: 75px;
  margin-bottom: 13px;
  padding: 13px 15px;
  border-color: var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 5px 18px rgba(50, 48, 86, .035);
}
.admin-search-form label { font-weight: 700; }
.admin-search-form input,
.admin-user-form input,
.admin-user-form select { min-height: 40px; }
.admin-quota-note { padding-inline: 3px; line-height: 1.8; }
.app-page .admin-user-card {
  padding: 19px;
  border-color: var(--line);
  background: linear-gradient(145deg, #fff, #fdfcff);
}
.admin-user-heading { align-items: center; }
.admin-user-heading > div { min-width: 0; }
.admin-user-heading h3 { color: var(--text); font-size: 13px; }
.admin-user-heading .status { flex: 0 0 auto; }
.admin-user-form {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
}
.admin-user-form label { color: var(--muted); font-weight: 600; }
.admin-user-form input,
.admin-user-form select {
  width: 100%;
  min-height: 40px;
  border-color: #e5e2ef;
  border-radius: 10px;
  font-size: 11px;
}
.admin-user-form .button { min-height: 40px; white-space: nowrap; }
.admin-readonly-value { color: var(--text); font-weight: 700; }
.admin-user-delete-form {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.app-page .button-danger { background: #b42318; color: #fff; }
.app-page .button-danger:hover { background: #912018; color: #fff; }
.admin-self-delete-note { margin: 12px 0 0; text-align: end; }
.app-page .admin-table-panel { overflow: hidden; padding: 0; }
.admin-table-panel .table-wrap { border: 0; border-radius: inherit; }
.admin-table-panel table { min-width: 620px; font-size: 11px; }
.admin-table-panel th { padding: 13px 14px; background: #f8f7fc; color: #6d687e; white-space: nowrap; }
.admin-table-panel td { padding: 13px 14px; color: var(--text); }
.admin-table-panel tbody tr:last-child td { border-bottom: 0; }
.admin-table-panel td small { display: block; margin-top: 4px; color: var(--muted); font-size: 9px; }
.admin-page-admin-services .boxapi-balance-card {
  border-color: #e7e1f8;
  background: linear-gradient(115deg, #fff, #f5f2ff);
}
.admin-page-admin-services .boxapi-service-card { min-height: 145px; }
.admin-page-admin-services .boxapi-purchase-form {
  border-color: var(--line);
  background: linear-gradient(145deg, #fff, #fcfbff);
}
.admin-page-admin-services .boxapi-purchase-form h2 { color: var(--text); }

@media (max-width: 1100px) {
  .admin-user-form { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  .admin-dashboard-welcome { align-items: flex-start; flex-direction: column; padding: 20px; }
  .admin-dashboard-welcome > .button { width: 100%; }
  .admin-shortcut-grid { grid-template-columns: 1fr; }
  .admin-user-form { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  .app-page .admin-page { gap: 16px; }
  .admin-dashboard-welcome { min-height: 0; padding: 18px; }
  .app-page .admin-dashboard-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .app-page .admin-metric-card { min-height: 94px; padding: 12px; gap: 9px; }
  .admin-metric-icon { width: 34px; height: 34px; flex-basis: 34px; border-radius: 11px; font-size: 15px; }
  .admin-metric-copy > span { font-size: 9px; }
  .admin-metric-copy > strong { font-size: 21px; }
  .app-page .admin-shortcut-card { min-height: 88px; padding: 14px; }
  .admin-search-form { align-items: stretch; flex-direction: column; }
  .admin-search-form input { width: 100%; }
  .admin-user-heading { align-items: flex-start; flex-direction: column; }
  .admin-user-form { grid-template-columns: 1fr 1fr; }
  .admin-user-form .button { grid-column: 1 / -1; }
  .app-page .admin-user-card { padding: 15px; }
}
@media (max-width: 360px) {
  .app-page .admin-dashboard-metrics { grid-template-columns: 1fr; }
}
