:root {
  --bg: #f4efe7;
  --surface: #fffaf3;
  --surface-strong: #ffffff;
  --surface-muted: #ece2d4;
  --border: rgba(56, 40, 30, 0.18);
  --text: #221912;
  --text-soft: #4f4134;
  --primary: #8f3c1f;
  --primary-dark: #662614;
  --secondary: #154942;
  --secondary-soft: #d9ebe7;
  --accent: #d8b064;
  --shadow: 0 24px 60px rgba(48, 33, 20, 0.12);
  --radius-lg: 28px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --container: 1180px;
  --title-font: "Fraunces", "Iowan Old Style", "Palatino Linotype", serif;
  --body-font: "Avenir Next", "Segoe UI", sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at top right, rgba(216, 176, 100, 0.24), transparent 24%),
    radial-gradient(circle at left center, rgba(21, 73, 66, 0.1), transparent 18%),
    var(--bg);
  color: var(--text);
  font-family: var(--body-font);
  font-size: 17px;
  line-height: 1.55;
}

body.matching-modal-open {
  overflow: hidden;
}

body.chatbot-fullscreen-open {
  overflow: hidden;
}

body.theme-young {
  background: #ffffff;
}

body.theme-young .site-header {
  background: rgba(255, 255, 255, 0.96);
}

body.theme-young .site-footer {
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(236, 226, 212, 0.94)),
    var(--surface-muted);
}

body.theme-young main,
body.theme-young .page-header,
body.theme-young .page-section {
  background: #ffffff;
}

body.theme-young .eyebrow {
  color: #145a70;
}

body.theme-young .stat-card,
body.theme-young .panel {
  background: #ffffff;
  border-color: rgba(19, 74, 95, 0.16);
  box-shadow: 0 18px 44px rgba(19, 74, 95, 0.08);
}

body.theme-young .support-focus-panel {
  background:
    linear-gradient(180deg, rgba(232, 247, 252, 0.88), rgba(255, 255, 255, 1)),
    #ffffff;
}

body.theme-young .support-profile-panel,
body.theme-young .secondary-panel {
  background: #ffffff;
}

body.theme-young .match-card,
body.theme-young .support-match-card {
  background: #ffffff;
  border-color: rgba(19, 74, 95, 0.14);
}

body.theme-young .score-circle {
  background: linear-gradient(180deg, #dff4fa, #f7fcfe);
  color: #164a5c;
  border: 1px solid rgba(19, 74, 95, 0.16);
}

body.theme-young .pill:not(.status-pill) {
  background: rgba(20, 90, 112, 0.08);
  color: #145a70;
}

body.theme-young .check-card,
body.theme-young .input {
  background: #ffffff;
  border-color: rgba(19, 74, 95, 0.16);
}

body.theme-young .input:focus {
  outline-color: rgba(20, 90, 112, 0.22);
  border-color: #145a70;
}

body.theme-young .button.primary {
  background: #145a70;
  box-shadow: 0 12px 28px rgba(20, 90, 112, 0.18);
}

body.theme-young .button.subtle {
  background: #ffffff;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(21, 73, 66, 0.36);
  outline-offset: 3px;
}

img {
  max-width: 100%;
}

main {
  min-height: calc(100vh - 180px);
}

.dashboard-shortcut {
  padding-top: 1rem;
  margin-bottom: -0.75rem;
}

.dashboard-shortcut-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 44px;
  padding: 0.52rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.86);
  border: 1px solid var(--border);
  color: var(--text-soft);
  font-weight: 800;
  box-shadow: 0 14px 34px rgba(48, 33, 20, 0.08);
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.dashboard-shortcut-button:hover {
  background: var(--surface-strong);
  color: var(--secondary);
  transform: translateY(-1px);
}

.dashboard-shortcut-icon {
  width: 0.82rem;
  height: 0.82rem;
  background:
    linear-gradient(currentColor 0 0) left top / 0.34rem 0.34rem no-repeat,
    linear-gradient(currentColor 0 0) right top / 0.34rem 0.34rem no-repeat,
    linear-gradient(currentColor 0 0) left bottom / 0.34rem 0.34rem no-repeat,
    linear-gradient(currentColor 0 0) right bottom / 0.34rem 0.34rem no-repeat;
  opacity: 0.82;
}

body.theme-young .dashboard-shortcut-button {
  background: #ffffff;
  border-color: rgba(19, 74, 95, 0.16);
  box-shadow: 0 12px 28px rgba(19, 74, 95, 0.08);
}

.container {
  width: min(100% - 2rem, var(--container));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(244, 239, 231, 0.94);
  border-bottom: 1px solid var(--border);
}

.nav-row,
.footer-row,
.admin-header,
.dashboard-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.nav-row {
  min-height: 78px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
}

.brand strong,
h1,
h2,
h3 {
  font-family: var(--title-font);
}

.brand small {
  display: block;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
}

.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.main-nav a,
.link-button {
  color: var(--text-soft);
  font-weight: 600;
}

.main-nav a.nav-request-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.main-nav a.nav-request-link.has-notification {
  color: #b42318;
}

.nav-notification-dot {
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #b42318;
  box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.38);
  animation: nav-notification-pulse 1.25s ease-in-out infinite;
}

@keyframes nav-notification-pulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(180, 35, 24, 0.38);
  }

  50% {
    transform: scale(1.28);
    box-shadow: 0 0 0 0.32rem rgba(180, 35, 24, 0);
  }
}

.link-button {
  background: transparent;
  border: 0;
  cursor: pointer;
  font: inherit;
}

.nav-toggle {
  display: none;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.25rem;
  background: transparent;
  border: 0;
}

.nav-toggle span {
  display: block;
  width: 1.5rem;
  height: 2px;
  background: var(--text);
}

.hero-section,
.page-header,
.page-section,
.feature-section,
.form-section {
  padding: 2.5rem 0;
}

.page-header {
  padding-bottom: 0.2rem;
}

.hero-grid,
.section-grid,
.auth-grid,
.split-layout,
.stats-grid,
.admin-grid {
  display: grid;
  gap: 1.5rem;
}

.hero-grid {
  grid-template-columns: 1.25fr 0.9fr;
  align-items: start;
}

.hero-copy h1,
.page-header h1 {
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
  margin: 0.3rem 0 1rem;
}

.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.hero-text,
.page-header p {
  max-width: 62ch;
  color: var(--text-soft);
  font-size: 1.12rem;
}

.eyebrow,
.panel-label,
.feature-index {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--secondary);
}

.about-hero-grid,
.founder-grid,
.about-story-band {
  display: grid;
  gap: 1.5rem;
}

.about-hero-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  align-items: stretch;
}

.about-intro-card,
.founder-card,
.about-story-band {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.about-intro-card {
  padding: 1.5rem;
}

.about-intro-card h2,
.founder-card h2,
.about-story-band h2 {
  margin: 0.45rem 0 0.75rem;
}

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

.founder-card {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  align-items: start;
  gap: 1.25rem;
  padding: 1.35rem;
}

.founder-photo-placeholder {
  display: grid;
  place-items: center;
  min-height: 220px;
  padding: 1rem;
  border: 2px dashed rgba(21, 73, 66, 0.28);
  border-radius: calc(var(--radius-lg) - 6px);
  background:
    linear-gradient(145deg, rgba(217, 235, 231, 0.95), rgba(255, 250, 243, 0.92)),
    var(--surface);
  color: var(--secondary);
  text-align: center;
}

.founder-initial {
  display: grid;
  place-items: center;
  width: 5.2rem;
  height: 5.2rem;
  margin-bottom: 0.7rem;
  border-radius: 50%;
  background: white;
  color: var(--primary-dark);
  font-family: var(--title-font);
  font-size: 2.5rem;
  font-weight: 800;
  box-shadow: 0 14px 32px rgba(56, 40, 30, 0.12);
}

.founder-photo-placeholder small,
.placeholder-note {
  color: var(--text-soft);
  font-weight: 700;
}

.placeholder-note {
  margin-top: 1rem;
  padding-top: 0.9rem;
  border-top: 1px solid var(--border);
}

.about-story-section {
  padding-top: 0;
}

.about-story-band {
  grid-template-columns: 0.9fr 1.1fr;
  align-items: start;
  padding: 1.6rem;
}

.about-story-copy {
  display: grid;
  gap: 0.9rem;
}

.about-story-copy p {
  margin: 0;
}

.hero-actions,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.hero-actions {
  margin-top: 1.5rem;
}

.dashboard-profile-actions {
  align-items: center;
  flex-direction: column;
  justify-content: center;
  margin-top: 0;
  min-width: 11rem;
}

.dashboard-user-card {
  display: grid;
  justify-items: center;
  gap: 0.7rem;
}

.dashboard-user-photo {
  position: relative;
  display: grid;
  place-items: center;
  width: 6.6rem;
  height: 6.6rem;
  overflow: hidden;
  border-radius: 50%;
  border: 1px solid rgba(56, 40, 30, 0.16);
  background:
    linear-gradient(180deg, #f8f8f8 0%, #dedede 100%);
  box-shadow: 0 18px 40px rgba(48, 33, 20, 0.14);
}

.dashboard-user-head,
.dashboard-user-body {
  position: absolute;
  display: block;
  background: #adadad;
}

.dashboard-user-head {
  top: 1.55rem;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 50%;
}

.dashboard-user-body {
  bottom: -0.45rem;
  width: 4.4rem;
  height: 3.1rem;
  border-radius: 999px 999px 0 0;
}

body.theme-young .dashboard-user-photo {
  border-color: rgba(19, 74, 95, 0.16);
  box-shadow: 0 18px 38px rgba(19, 74, 95, 0.1);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 1.2rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-weight: 700;
  cursor: pointer;
  transition: 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 12px 28px rgba(199, 99, 63, 0.28);
}

.button.secondary {
  background: var(--secondary);
  color: white;
}

.button.subtle {
  background: rgba(255, 255, 255, 0.88);
  border-color: var(--border);
  color: var(--text);
}

.button.telegram-button {
  background: rgba(217, 235, 231, 0.78);
  border-color: rgba(21, 73, 66, 0.2);
  color: var(--secondary);
}

.button.telegram-button:hover {
  background: rgba(217, 235, 231, 0.98);
}

.button.danger {
  background: #8b1e1e;
  color: white;
  box-shadow: 0 12px 28px rgba(139, 30, 30, 0.18);
}

.compact-button {
  min-height: 38px;
  padding: 0 0.85rem;
  font-size: 0.92rem;
}

.full-width {
  width: 100%;
}

.hero-metrics,
.stats-grid {
  margin-top: 1.8rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.metric-card,
.stat-card,
.feature-card,
.panel {
  background: rgba(255, 250, 242, 0.92);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.metric-card,
.stat-card {
  padding: 1.2rem;
}

.metric-card strong,
.stat-card strong {
  display: block;
  font-size: 1.8rem;
  font-family: var(--title-font);
}

.metric-card span,
.stat-card span {
  color: var(--text-soft);
}

.hero-panel,
.card-stack,
.table-like {
  display: grid;
  gap: 1rem;
}

.story-card,
.demo-card,
.feature-card,
.panel {
  padding: 1.45rem;
}

.story-steps {
  margin: 1rem 0 0;
  padding-left: 1.1rem;
}

.section-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.section-heading {
  max-width: 760px;
  margin-bottom: 1.5rem;
}

.section-heading h2 {
  margin: 0.4rem 0 0.8rem;
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.05;
}

.section-heading p {
  color: var(--text-soft);
}

.feature-card p,
.panel p,
.empty-state,
.caption,
.ai-summary,
small,
dd {
  color: var(--text-soft);
}

.auth-grid,
.split-layout {
  grid-template-columns: 1fr 1fr;
  align-items: start;
}

.support-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  gap: 1.5rem;
  align-items: start;
}

.support-panel-stack {
  display: grid;
  gap: 1.5rem;
}

.dashboard-main-stack {
  display: grid;
  gap: 1.5rem;
}

.form-panel,
.ai-panel {
  background: var(--surface);
}

.app-form {
  display: grid;
  gap: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

.field {
  display: grid;
  gap: 0.45rem;
}

.field label,
.section-title h2 {
  font-weight: 700;
}

.is-hidden {
  display: none !important;
}

.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;
}

.auth-method-fieldset {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.auth-method-fieldset legend {
  padding: 0;
  font-weight: 700;
}

.auth-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.auth-choice {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  min-height: 52px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(71, 52, 36, 0.18);
  border-radius: var(--radius-sm);
  background: var(--surface-strong);
  font-weight: 800;
}

.fake-sms {
  display: grid;
  gap: 0.35rem;
  margin-top: 1rem;
  padding: 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(21, 73, 66, 0.22);
  background: var(--secondary-soft);
}

.fake-sms span {
  color: var(--secondary);
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.fake-sms strong {
  font-size: 1.25rem;
}

.otp-input {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-align: center;
}

.input {
  width: 100%;
  min-height: 50px;
  padding: 0.9rem 1rem;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(71, 52, 36, 0.18);
  background: white;
  color: var(--text);
  font: inherit;
}

.input:focus {
  outline: 2px solid rgba(199, 99, 63, 0.24);
  border-color: var(--primary);
}

.input-area {
  min-height: auto;
  resize: vertical;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.small-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.check-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.9rem 1rem;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.check-card input {
  width: 1rem;
  height: 1rem;
}

.tag-cloud,
.pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 0.38rem 0.8rem;
  border-radius: 999px;
  background: rgba(35, 92, 82, 0.1);
  color: var(--secondary);
  font-size: 0.9rem;
  font-weight: 700;
}

.pill.accent {
  background: rgba(199, 99, 63, 0.12);
  color: var(--primary-dark);
}

.status-pill {
  border: 1px solid transparent;
}

.status-pill.status-accepted {
  background: rgba(21, 73, 66, 0.16);
  border-color: rgba(21, 73, 66, 0.32);
  color: #103b36;
}

.status-pill.status-suggested,
.status-pill.status-open {
  background: rgba(216, 176, 100, 0.24);
  border-color: rgba(143, 99, 25, 0.28);
  color: #5f4310;
}

.status-pill.status-matched {
  background: rgba(199, 99, 63, 0.14);
  border-color: rgba(143, 60, 31, 0.24);
  color: var(--primary-dark);
}

.status-pill.status-pending,
.status-pill.status-pending_confirmation {
  background: rgba(216, 176, 100, 0.2);
  border-color: rgba(143, 99, 25, 0.32);
  color: #5f4310;
}

.status-pill.status-rejected,
.status-pill.status-declined {
  background: rgba(79, 65, 52, 0.12);
  border-color: rgba(79, 65, 52, 0.22);
  color: var(--text-soft);
}

.status-pill.status-closed,
.status-pill.status-completed {
  background: rgba(79, 65, 52, 0.16);
  border-color: rgba(79, 65, 52, 0.28);
  color: #382e25;
}

.status-pill.status-cancelled {
  background: rgba(102, 38, 20, 0.12);
  border-color: rgba(102, 38, 20, 0.24);
  color: var(--primary-dark);
}

.section-title,
.list-card,
.table-row,
.match-card,
.match-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.section-title {
  margin-bottom: 1rem;
}

.panel-footer-action {
  display: flex;
  justify-content: flex-end;
  margin-top: 1.35rem;
  padding-top: 0.9rem;
}

.dashboard-title-actions {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.dashboard-new-request-button,
.full-width-action-button {
  width: 100%;
}

.request-index-stack {
  display: grid;
  gap: 1rem;
}

.section-actions,
.request-sort-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.request-sort-controls {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.request-sort-controls > span,
.request-sort-controls .sort-chip {
  white-space: nowrap;
}

.dashboard-title-actions .request-sort-controls {
  justify-content: flex-start;
}

.sort-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
  text-decoration: none;
}

.sort-chip.is-active {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.list-card,
.table-row {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
}

.clickable-card {
  position: relative;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition:
    background-color 180ms ease,
    box-shadow 180ms ease;
}

.clickable-card:hover {
  background: rgba(199, 99, 63, 0.06);
  box-shadow: 0 0 0 0.65rem rgba(199, 99, 63, 0.06);
}

.clickable-card:focus-within {
  outline: 2px solid rgba(199, 99, 63, 0.42);
  outline-offset: 0.35rem;
}

body.theme-young .clickable-card:hover {
  background: rgba(20, 90, 112, 0.06);
  box-shadow: 0 0 0 0.65rem rgba(20, 90, 112, 0.06);
}

body.theme-young .clickable-card:focus-within {
  outline-color: rgba(20, 90, 112, 0.34);
}

.clickable-card .card-primary-link {
  position: static;
}

.clickable-card .card-primary-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: inherit;
}

.clickable-card :is(a:not(.card-primary-link), button, input, select, textarea, label, summary) {
  position: relative;
  z-index: 2;
}

.list-card:first-child,
.table-row:first-child {
  border-top: 0;
  padding-top: 0;
}

.list-card h3,
.match-card h2,
.match-card h3,
.panel h2,
.panel h3 {
  margin: 0.3rem 0;
}

.list-meta {
  display: grid;
  gap: 0.4rem;
  text-align: right;
  color: var(--text-soft);
}

.request-list-card {
  display: grid;
  gap: 0.9rem;
}

.request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  margin: 0.5rem 0 0.45rem;
}

.request-card-footer {
  display: flex;
  justify-content: flex-start;
  padding-top: 0.15rem;
}

.match-card {
  padding: 1rem;
  border-radius: var(--radius-md);
  background: white;
  border: 1px solid var(--border);
}

.match-content {
  min-width: 0;
  width: 100%;
}

.match-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin: 0.25rem 0 0.35rem;
}

.match-title-row h2,
.match-title-row h3 {
  flex: 1 1 auto;
  margin: 0;
  min-width: 0;
}

.match-title-row .score-circle {
  flex: 0 0 auto;
  width: 2.75rem;
  height: 2.75rem;
  font-size: 0.9rem;
}

.support-focus-panel {
  background:
    linear-gradient(180deg, rgba(21, 73, 66, 0.06), rgba(255, 250, 243, 0.96)),
    var(--surface);
}

.support-match-card {
  border-color: rgba(21, 73, 66, 0.14);
}

.support-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 0.75rem;
  color: var(--text-soft);
  font-size: 0.95rem;
  font-weight: 700;
}

.support-request-meta span {
  padding-right: 0.65rem;
  border-right: 1px solid var(--border);
}

.support-request-meta span:last-child {
  padding-right: 0;
  border-right: 0;
}

.profile-mini-section {
  margin-top: 1.1rem;
}

.profile-mini-section strong {
  display: block;
  margin-bottom: 0.35rem;
}

.compact-pills {
  margin-top: 0;
}

.dashboard-secondary-section {
  padding-top: 0;
}

.past-matches-section {
  padding-top: 0;
}

.secondary-panel {
  background: rgba(255, 250, 243, 0.72);
  box-shadow: none;
}

.past-matches-panel {
  background: rgba(255, 250, 243, 0.72);
  box-shadow: none;
}

.past-match-card {
  background: rgba(255, 255, 255, 0.68);
}

.score-circle {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--accent), #f7d4a3);
  font-weight: 800;
  color: var(--text);
}

.score-circle.large {
  width: 5rem;
  height: 5rem;
  font-size: 1.2rem;
}

.detail-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.association-detail-grid {
  margin: 1rem 0;
}

dt {
  font-weight: 700;
  margin-bottom: 0.25rem;
}

dd {
  margin: 0;
}

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

.table-row {
  align-items: center;
}

.flash-stack {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
}

.flash {
  padding: 0.95rem 1.1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}

.flash-success {
  background: rgba(35, 92, 82, 0.12);
  color: var(--secondary);
}

.flash-error {
  background: rgba(199, 99, 63, 0.12);
  color: var(--primary-dark);
}

.separator {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 1.2rem 0;
}

.demo-credentials {
  margin-top: 1.2rem;
  padding: 1rem;
  border-radius: var(--radius-md);
  background: rgba(35, 92, 82, 0.08);
}

.telegram-summary-panel,
.telegram-action-panel {
  display: grid;
  gap: 1rem;
}

.telegram-action-stack {
  display: grid;
  gap: 0.85rem;
}

.telegram-note {
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  background:
    linear-gradient(135deg, rgba(21, 73, 66, 0.08), rgba(255, 250, 243, 0.98)),
    rgba(255, 250, 243, 0.98);
  border: 1px solid var(--border);
}

.telegram-note strong {
  display: block;
  margin-bottom: 0.45rem;
}

.telegram-note p {
  margin: 0;
}

.status-note {
  margin-top: 1rem;
  padding: 1rem 1.05rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: rgba(255, 250, 243, 0.98);
}

.status-note strong {
  display: block;
  margin-bottom: 0.35rem;
}

.status-note p {
  margin: 0;
}

.status-note-success {
  background: rgba(21, 73, 66, 0.08);
  color: var(--secondary);
}

.status-note-accent {
  background: rgba(216, 176, 100, 0.18);
}

.status-note-warning {
  background: rgba(216, 176, 100, 0.16);
  border-color: rgba(143, 99, 25, 0.25);
}

.action-stack {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.danger-zone {
  margin-top: 1.4rem;
  padding: 1rem;
  border: 1px solid rgba(139, 30, 30, 0.28);
  border-radius: var(--radius-md);
  background: rgba(139, 30, 30, 0.07);
}

.danger-zone p {
  margin: 0.35rem 0 0;
  color: var(--text-soft);
}

.match-next-step {
  display: block;
  margin-top: 0.35rem;
  color: var(--secondary);
  font-weight: 600;
}

.matching-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background:
    radial-gradient(circle at 50% 35%, rgba(216, 176, 100, 0.28), transparent 28%),
    rgba(34, 25, 18, 0.52);
  backdrop-filter: blur(9px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.matching-modal[hidden] {
  display: none !important;
}

.matching-modal.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.matching-modal-card {
  width: min(100%, 560px);
  padding: clamp(1.4rem, 4vw, 2.1rem);
  border-radius: 30px;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.96)),
    white;
  border: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 32px 88px rgba(34, 25, 18, 0.28);
  text-align: center;
  transform: translateY(16px) scale(0.98);
  transition: transform 0.35s ease;
}

.matching-modal-card:focus {
  outline: none;
}

.matching-modal.is-visible .matching-modal-card {
  transform: translateY(0) scale(1);
}

.matching-modal-card h2 {
  margin: 0.45rem 0 0.55rem;
  font-family: var(--title-font);
  font-size: clamp(1.75rem, 4vw, 2.35rem);
}

.matching-modal-card p {
  margin: 0 auto 1.2rem;
  max-width: 38rem;
  color: var(--text-soft);
}

.matching-orbit {
  position: relative;
  width: 5.4rem;
  height: 5.4rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.9) 0 29%, transparent 30%),
    conic-gradient(from 0deg, var(--secondary), var(--accent), var(--primary), var(--secondary));
  animation: matching-orbit 2.4s linear infinite;
}

.matching-orbit::after {
  content: "";
  position: absolute;
  inset: 1.08rem;
  border-radius: 50%;
  background: white;
  box-shadow: inset 0 0 0 1px rgba(21, 73, 66, 0.12);
}

.matching-orbit span {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.45rem rgba(216, 176, 100, 0.18);
}

.matching-orbit span:nth-child(1) {
  top: 0.15rem;
  left: 50%;
  transform: translateX(-50%);
}

.matching-orbit span:nth-child(2) {
  right: 0.25rem;
  bottom: 1.05rem;
  background: var(--secondary);
}

.matching-orbit span:nth-child(3) {
  left: 0.25rem;
  bottom: 1.05rem;
  background: var(--primary);
}

.matching-scan {
  position: relative;
  overflow: hidden;
  height: 0.72rem;
  margin: 1.2rem 0;
  border-radius: 999px;
  background: rgba(21, 73, 66, 0.1);
}

.matching-scan::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 -45%;
  width: 45%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, var(--secondary), var(--accent));
  animation: matching-scan 1.35s ease-in-out infinite;
}

.matching-steps {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.matching-steps li {
  display: flex;
  gap: 0.7rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border-radius: var(--radius-sm);
  background: rgba(21, 73, 66, 0.06);
  color: var(--text-soft);
  font-weight: 700;
  transition:
    background 0.25s ease,
    color 0.25s ease,
    transform 0.25s ease;
}

.matching-steps li::before {
  content: "";
  flex: 0 0 auto;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: rgba(79, 65, 52, 0.28);
}

.matching-steps li.is-active {
  background: rgba(216, 176, 100, 0.22);
  color: var(--text);
  transform: translateX(4px);
}

.matching-steps li.is-active::before {
  background: var(--accent);
  box-shadow: 0 0 0 0.38rem rgba(216, 176, 100, 0.2);
}

.matching-steps li.is-done {
  background: rgba(21, 73, 66, 0.1);
  color: var(--secondary);
}

.matching-steps li.is-done::before {
  background: var(--secondary);
}

.matching-results-hidden {
  opacity: 0;
  transform: translateY(12px);
  filter: blur(8px);
  pointer-events: none;
}

.matching-results-revealed {
  animation: matching-results-reveal 0.55s ease both;
}

@keyframes matching-orbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes matching-scan {
  0% {
    left: -45%;
  }

  100% {
    left: 100%;
  }
}

@keyframes matching-results-reveal {
  from {
    opacity: 0;
    transform: translateY(14px);
    filter: blur(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
    filter: blur(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .matching-modal,
  .matching-modal-card,
  .matching-steps li {
    transition: none;
  }

  .matching-orbit,
  .matching-scan::after,
  .matching-results-revealed {
    animation: none;
  }
}

.site-footer {
  margin-top: 3rem;
  padding: 2.25rem 0 2.65rem;
  background:
    radial-gradient(circle at 12% 0%, rgba(216, 176, 100, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(255, 250, 243, 0.98), rgba(236, 226, 212, 0.94)),
    var(--surface-muted);
  border-top: 1px solid rgba(56, 40, 30, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.site-footer strong {
  display: block;
  margin-bottom: 0.35rem;
  color: var(--primary-dark);
  font-family: var(--title-font);
  font-size: 1.35rem;
}

.site-footer p {
  max-width: 48ch;
  margin: 0;
  color: var(--text-soft);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.footer-links a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0.45rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 250, 243, 0.74);
  color: var(--text);
  font-weight: 800;
}

.footer-links a:hover {
  background: rgba(255, 255, 255, 0.92);
  transform: translateY(-1px);
}

.error-text {
  color: var(--primary-dark);
}

.hint-text {
  display: block;
  margin-top: 0.4rem;
  color: var(--text-soft);
  font-size: 0.94rem;
  line-height: 1.45;
}

.home-hero {
  padding-top: 3rem;
  padding-bottom: 1.25rem;
}

.home-hero .hero-grid {
  row-gap: 1.35rem;
}

.home-hero-footer {
  display: grid;
  grid-column: 1 / -1;
  gap: 0.95rem;
  width: 100%;
}

.home-hero-footer .hero-actions,
.home-hero-footer .home-pills {
  width: 100%;
  margin-top: 0;
}

.home-hero-footer .button {
  flex: 1 1 190px;
}

.home-hero-footer .dashboard-new-request-button {
  flex-basis: 100%;
}

.home-hero-footer .pill {
  flex: 1 1 170px;
  justify-content: center;
  min-height: 42px;
}

.home-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.35rem;
}

.request-examples-section {
  padding-top: 1.25rem;
}

.request-examples-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.request-example-card {
  display: flex;
  flex-direction: column;
}

.request-example-card .preview-meta {
  margin-top: auto;
  padding-top: 1rem;
}

.audience-priority {
  padding-top: 1.25rem;
}

.compact-heading {
  max-width: 780px;
}

.home-more-section {
  padding-top: 1.25rem;
}

.home-more-intro {
  display: flex;
  gap: 1.4rem;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(21, 73, 66, 0.08), rgba(255, 250, 243, 0.98)),
    rgba(255, 250, 243, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.home-more-intro h2 {
  margin: 0.35rem 0 0.35rem;
  font-size: clamp(1.8rem, 3vw, 2.65rem);
  line-height: 1.08;
}

.home-more-intro p {
  margin: 0;
  color: var(--text-soft);
}

.home-more-toggle {
  flex: 0 0 auto;
}

.home-more-content {
  display: grid;
  gap: 1.35rem;
  margin-top: 1.35rem;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.26s ease,
    transform 0.26s ease;
}

.home-more-content[hidden] {
  display: none;
}

.home-more-content.is-open {
  opacity: 1;
  transform: translateY(0);
}

.home-more-block {
  margin: 0;
}

.showcase-stack {
  gap: 1rem;
}

.showcase-card {
  margin: 0;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  background: rgba(255, 250, 243, 0.96);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.illustration-card {
  padding: 0;
  overflow: hidden;
}

.hero-illustration-card {
  background:
    linear-gradient(180deg, rgba(21, 73, 66, 0.08), rgba(255, 250, 243, 0.98)),
    rgba(255, 250, 243, 0.98);
}

.highlight-card {
  background:
    linear-gradient(180deg, rgba(21, 73, 66, 0.06), rgba(255, 250, 243, 0.96)),
    rgba(255, 250, 243, 0.96);
}

.quiet-card {
  background: rgba(236, 226, 212, 0.62);
}

.showcase-card h2,
.showcase-card h3 {
  margin: 0.45rem 0 0.65rem;
}

.preview-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1rem;
}

.preview-meta span {
  display: inline-flex;
  align-items: center;
  padding: 0.42rem 0.75rem;
  border-radius: 999px;
  background: rgba(21, 73, 66, 0.08);
  color: var(--secondary);
  font-size: 0.92rem;
  font-weight: 700;
}

.match-preview {
  display: flex;
  gap: 1rem;
  align-items: center;
}

.scene-illustration {
  display: block;
  width: 100%;
  height: auto;
}

.hero-scene {
  aspect-ratio: 720 / 520;
  object-fit: cover;
  object-position: 64% center;
}

.proof-grid,
.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.proof-card,
.audience-card,
.access-item,
.cta-band {
  background: rgba(255, 253, 249, 0.94);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.proof-card,
.audience-card {
  padding: 1.35rem;
}

.proof-card strong,
.audience-card h3 {
  display: block;
  margin-bottom: 0.55rem;
}

.access-band,
.channel-band,
.cta-band {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: center;
}

.access-band,
.channel-band {
  padding: 1.6rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(21, 73, 66, 0.08), rgba(255, 250, 243, 0.98)),
    rgba(255, 250, 243, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.channel-band {
  background:
    linear-gradient(135deg, rgba(216, 176, 100, 0.13), rgba(255, 250, 243, 0.98)),
    rgba(255, 250, 243, 0.98);
}

.access-band h2,
.channel-band h2,
.cta-band h2 {
  margin: 0.45rem 0 0;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
  line-height: 1.08;
}

.channel-band p {
  margin: 0.85rem 0 0;
  max-width: 54ch;
  color: var(--text-soft);
}

.access-list {
  display: grid;
  gap: 0.85rem;
}

.channel-list {
  display: grid;
  gap: 0.85rem;
}

.access-item {
  padding: 1rem 1.05rem;
  font-weight: 600;
  color: var(--text);
}

.channel-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.05rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: rgba(255, 253, 249, 0.94);
  color: var(--text);
  font-weight: 700;
}

.channel-item span {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.channel-item.active-channel {
  border-color: rgba(21, 73, 66, 0.24);
  background: rgba(217, 235, 231, 0.72);
}

.cta-band {
  padding: 1.6rem;
  background:
    linear-gradient(135deg, rgba(143, 60, 31, 0.08), rgba(255, 250, 243, 0.98)),
    rgba(255, 250, 243, 0.98);
}

.story-panel {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.2rem;
  align-items: stretch;
}

.story-panel-figure,
.story-panel-copy {
  margin: 0;
}

.story-panel-figure {
  display: flex;
  height: 100%;
  overflow: hidden;
  border-radius: calc(var(--radius-lg) + 4px);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: rgba(255, 250, 243, 0.98);
}

.story-panel-figure .scene-illustration {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 60% center;
}

.story-panel-figure .story-scene {
  object-position: 48% center;
  transform: scale(1.04);
  transform-origin: center;
}

.story-panel-copy {
  padding: 1.5rem;
  border-radius: calc(var(--radius-lg) + 4px);
  background:
    linear-gradient(135deg, rgba(216, 176, 100, 0.12), rgba(255, 250, 243, 0.98)),
    rgba(255, 250, 243, 0.98);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.story-panel-copy h2 {
  margin: 0.4rem 0 0.85rem;
  font-size: clamp(1.9rem, 4vw, 2.8rem);
  line-height: 1.06;
}

.story-panel-copy p {
  color: var(--text-soft);
}

.story-points {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.story-point {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(21, 73, 66, 0.08);
  color: var(--secondary);
  font-weight: 700;
}

.home-chatbot {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 60;
}

.chatbot-launcher {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 58px;
  padding: 0 1.05rem;
  border: 1px solid rgba(21, 73, 66, 0.18);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--secondary), #1f6a60);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(21, 73, 66, 0.24);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.chatbot-launcher:hover {
  transform: translateY(-2px);
  box-shadow: 0 22px 44px rgba(21, 73, 66, 0.3);
}

.chatbot-launcher-icon {
  position: relative;
  width: 1.35rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-radius: 0.55rem;
}

.chatbot-launcher-icon::after {
  content: "";
  position: absolute;
  left: 0.22rem;
  bottom: -0.42rem;
  width: 0.45rem;
  height: 0.45rem;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: skew(-18deg);
  background: transparent;
}

.chatbot-panel {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  width: min(420px, calc(100vw - 2rem));
  height: min(650px, calc(100dvh - 2rem));
  overflow: hidden;
  border: 1px solid rgba(56, 40, 30, 0.16);
  border-radius: 24px;
  background: rgba(255, 250, 243, 0.98);
  box-shadow: 0 28px 78px rgba(30, 22, 16, 0.26);
}

.chatbot-panel[hidden] {
  display: none;
}

.home-chatbot.is-open .chatbot-launcher {
  display: none;
}

.home-chatbot.is-fullscreen .chatbot-panel {
  inset: 1rem;
  width: auto;
  height: auto;
  max-height: none;
  border-radius: 28px;
}

.chatbot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 1rem;
  background:
    linear-gradient(135deg, rgba(217, 235, 231, 0.94), rgba(255, 250, 243, 0.98)),
    var(--surface);
  border-bottom: 1px solid rgba(56, 40, 30, 0.12);
}

.chatbot-identity {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 0.75rem;
}

.chatbot-avatar {
  position: relative;
  width: 2.6rem;
  height: 2.6rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: inset 0 -8px 0 rgba(255, 255, 255, 0.12);
}

.chatbot-avatar::before,
.chatbot-avatar::after {
  content: "";
  position: absolute;
  top: 1rem;
  width: 0.38rem;
  height: 0.38rem;
  border-radius: 50%;
  background: #ffffff;
}

.chatbot-avatar::before {
  left: 0.78rem;
}

.chatbot-avatar::after {
  right: 0.78rem;
}

.chatbot-header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.15;
}

.chatbot-header p {
  margin: 0.2rem 0 0;
  color: var(--text-soft);
  font-size: 0.82rem;
}

.chatbot-actions {
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.35rem;
}

.chatbot-icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(21, 73, 66, 0.14);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.74);
  color: var(--secondary);
  cursor: pointer;
}

.chatbot-expand-icon,
.chatbot-close-icon,
.chatbot-send-icon {
  position: relative;
  display: block;
  width: 1rem;
  height: 1rem;
}

.chatbot-expand-icon {
  border: 2px solid currentColor;
  border-radius: 0.2rem;
}

.chatbot-close-icon::before,
.chatbot-close-icon::after {
  content: "";
  position: absolute;
  top: 0.45rem;
  left: 0.05rem;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
}

.chatbot-close-icon::before {
  transform: rotate(45deg);
}

.chatbot-close-icon::after {
  transform: rotate(-45deg);
}

.chatbot-messages {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
  padding: 1rem;
  overflow-y: auto;
  background:
    linear-gradient(180deg, rgba(255, 250, 243, 0.96), rgba(244, 239, 231, 0.92)),
    var(--surface);
}

.chatbot-message {
  max-width: 86%;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(56, 40, 30, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(48, 33, 20, 0.08);
}

.chatbot-message p {
  margin: 0.2rem 0 0;
}

.chatbot-message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.chatbot-action-link {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(217, 235, 231, 0.86);
  color: var(--secondary);
  font-size: 0.88rem;
  font-weight: 800;
}

.chatbot-message-author {
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.user-message {
  align-self: flex-end;
  background: var(--secondary);
  color: #ffffff;
  border-color: rgba(21, 73, 66, 0.4);
}

.user-message .chatbot-message-author {
  color: rgba(255, 255, 255, 0.76);
}

.bot-message {
  align-self: flex-start;
}

.chatbot-prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.8rem 1rem;
  border-top: 1px solid rgba(56, 40, 30, 0.1);
  background: rgba(255, 250, 243, 0.98);
}

.chatbot-prompts button {
  min-height: 38px;
  padding: 0 0.75rem;
  border: 1px solid rgba(21, 73, 66, 0.16);
  border-radius: 999px;
  background: rgba(217, 235, 231, 0.64);
  color: var(--secondary);
  font: inherit;
  font-size: 0.88rem;
  font-weight: 800;
  cursor: pointer;
}

.chatbot-composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 3rem;
  gap: 0.55rem;
  padding: 0.9rem 1rem 1rem;
  background: #ffffff;
  border-top: 1px solid rgba(56, 40, 30, 0.1);
}

.chatbot-composer input {
  min-width: 0;
  min-height: 48px;
  padding: 0 0.95rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
}

.chatbot-composer input:disabled {
  opacity: 0.7;
}

.chatbot-composer button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(199, 99, 63, 0.24);
}

.chatbot-send-icon::before {
  content: "";
  position: absolute;
  top: 0.15rem;
  left: 0.1rem;
  width: 0.78rem;
  height: 0.78rem;
  border-top: 2px solid currentColor;
  border-right: 2px solid currentColor;
  transform: rotate(45deg);
}

.chatbot-send-icon::after {
  content: "";
  position: absolute;
  top: 0.47rem;
  left: 0.05rem;
  width: 0.95rem;
  height: 2px;
  background: currentColor;
}

@media (max-width: 980px) {
  .hero-grid,
  .auth-grid,
  .split-layout,
  .support-dashboard-grid,
  .admin-grid,
  .section-grid,
  .proof-grid,
  .request-examples-grid,
  .audience-grid,
  .access-band,
  .channel-band,
  .cta-band,
  .story-panel,
  .about-hero-grid,
  .founder-grid,
  .about-story-band {
    grid-template-columns: 1fr;
  }

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

  .auth-choice-grid {
    grid-template-columns: 1fr;
  }

  .main-nav {
    position: absolute;
    top: 78px;
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    background: rgba(255, 250, 242, 0.98);
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }

  .main-nav.open {
    display: flex;
  }

  .nav-toggle {
    display: inline-flex;
  }
}

@media (max-width: 720px) {
  .form-row,
  .detail-grid,
  .checkbox-grid,
  .small-grid {
    grid-template-columns: 1fr;
  }

  .footer-row,
  .admin-header,
  .dashboard-hero,
  .home-more-intro,
  .section-actions,
  .request-sort-controls,
  .section-title,
  .list-card,
  .table-row,
  .match-card,
  .match-hero {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-requests-title .dashboard-title-actions {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-requests-title .request-sort-controls {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
  }

  .request-sort-controls {
    flex-direction: row;
    align-items: center;
    flex-wrap: nowrap;
    justify-content: flex-start;
  }

  .founder-card {
    grid-template-columns: 1fr;
  }

  .list-meta {
    text-align: left;
  }

  .hero-copy h1,
  .page-header h1 {
    line-height: 1;
  }

  .match-preview {
    flex-direction: column;
    align-items: flex-start;
  }

  .match-title-row {
    align-items: flex-start;
  }

  .home-chatbot {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
  }

  .chatbot-launcher {
    width: 58px;
    min-width: 58px;
    padding: 0;
    justify-content: center;
  }

  .chatbot-launcher span:not(.chatbot-launcher-icon) {
    display: none;
  }

  .chatbot-panel {
    right: max(0.75rem, env(safe-area-inset-right));
    bottom: max(0.75rem, env(safe-area-inset-bottom));
    width: calc(100vw - 1.5rem);
    height: min(620px, calc(100dvh - 1.5rem));
    border-radius: 20px;
  }

  .home-chatbot.is-fullscreen .chatbot-panel {
    inset: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
  }
}
