: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; }
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); }
.bio-public { width: min(100%, 480px); margin: 30px auto; padding: 30px; text-align: center; }
.bio-mark { width: 54px; height: 54px; margin: 0 auto 15px; display: grid; place-items: center; border-radius: 50%; background: #f3edff; color: var(--accent); font-weight: 900; }
.bio-public h1 { margin: 0 0 8px; font-size: 23px; }
.bio-public > p { line-height: 2; font-size: 12px; }
.bio-public-links { display: grid; gap: 10px; margin: 22px 0; }
.bio-public-link { padding: 13px 15px; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--text); font-size: 12px; font-weight: 700; }
.bio-public-link:hover { border-color: var(--accent); background: #faf7ff; color: var(--accent); }
.bio-public > small { color: var(--muted); font-size: 9px; }

@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, .links-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; }
.links-showcase { background: var(--panel-soft); border-color: var(--line); }
.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, .showcase-links { 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; }
.showcase-links { display: grid; gap: 16px; }
.showcase-bio { width: min(100%, 240px); margin: 0 auto; padding: 18px; display: grid; justify-items: center; gap: 9px; border: 1px solid #f0edf3; border-radius: 18px; background: #fdfcff; text-align: center; }
.bio-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: linear-gradient(140deg, var(--yellow), #d6c1ff); color: #282430; font-size: 17px; font-weight: 900; }
.showcase-bio > strong { font-size: 11px; }
.showcase-bio > small { color: var(--muted); font-size: 8px; }
.showcase-bio-link { width: 100%; padding: 10px 12px; display: flex; justify-content: space-between; border: 1px solid var(--line); border-radius: 10px; background: #fff; color: #48434f; font-size: 9px; }
.showcase-clicks { padding: 11px 13px; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 5px 12px; border-radius: 12px; background: #f8f6fa; }
.showcase-clicks span { color: #57515f; font-size: 9px; }
.showcase-clicks strong { color: var(--accent); font-size: 17px; }
.showcase-clicks small { grid-column: 1 / -1; color: var(--muted); 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, .links-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) {
  .landing-page .hero-actions .button-dark { display: none; }
  .trust-strip { gap: 14px 9px; padding: 15px; }
  .trust-strip strong { font-size: 10px; }
  .trust-strip span { font-size: 9px; }
  .landing-features { grid-template-columns: 1fr; }
  .landing-feature { min-height: 0; }
  .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, .links-showcase { margin: 18px 0 26px; padding: 24px 18px; grid-template-columns: 1fr; border-radius: 22px; }
  .showcase-copy h2 { font-size: 26px; }
  .showcase-inbox, .showcase-links { 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;
  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: 12px; }
.settings-profile-main > div:nth-child(2) { min-width: 0; flex: 1; }
.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-profile-main > .status { flex: 0 0 auto; }
.settings-profile-stats {
  margin-top: 16px;
  padding-top: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-top: 1px solid var(--line);
}
.settings-profile-stats span {
  padding: 6px 9px;
  border-radius: 8px;
  background: #f5f4f2;
  color: #5f5969;
  font-size: 10px;
}
.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-profile-main > .status { margin-right: 52px; }
  .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; }
}
