@font-face {
  font-family: "SB Sans Text";
  src: url("./fonts/SBSansText-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SB Sans Text";
  src: url("./fonts/SBSansText-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SB Sans Text";
  src: url("./fonts/SBSansText-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SB Sans Text";
  src: url("./fonts/SBSansText-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --tg-blue: #007aff;
  --accent: #008390;
  --accent-2: #21a19a;
  --bg: #f5f5f7;
  --card: #ffffff;
  --text: rgba(23, 23, 23, 0.96);
  --muted: rgba(23, 23, 23, 0.56);
  --muted-strong: rgba(23, 23, 23, 0.72);
  --line: rgba(8, 8, 8, 0.08);
  --soft: rgba(8, 8, 8, 0.06);
  --dark-card: #005e7f;
  --radius-phone: 44px;
  --radius-l: 16px;
  --radius-m: 14px;
  --shadow-stage: 0 24px 60px rgba(18, 31, 41, 0.12);
  color: var(--text);
  font-family: "SB Sans Text", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #ffffff;
}

.miniapp-workspace {
  min-height: 100vh;
}

button,
textarea,
input {
  font: inherit;
}

.workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.component-rail {
  display: flex;
  flex-direction: column;
  gap: 28px;
  padding: 36px 28px;
  background: #f5f5f7;
  border-right: 1px solid var(--line);
}

.rail-kicker {
  margin: 0 0 10px;
  color: #9aa1a7;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.component-rail h1 {
  margin: 0;
  max-width: 220px;
  font-size: 25px;
  line-height: 1.12;
  letter-spacing: 0;
}

.rail-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rail-button {
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--muted-strong);
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  padding: 0 14px;
}

.rail-button.is-active {
  background: #ffffff;
  color: var(--text);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.03);
}

.preview-stage {
  display: grid;
  place-items: center;
  min-height: var(--app-height, 100vh);
  padding: 40px;
  background:
    linear-gradient(90deg, rgba(0, 131, 144, 0.06) 0 1px, transparent 1px 80px),
    linear-gradient(0deg, rgba(0, 131, 144, 0.05) 0 1px, transparent 1px 80px),
    #ffffff;
}

.phone {
  --design-width: 390px;
  --content-width: min(100vw, var(--design-width));
  --content-pad: max(16px, calc((100% - var(--design-width)) / 2 + 16px));
  --hero-pad: max(24px, calc((100% - var(--design-width)) / 2 + 24px));
  --content-inner-width: min(358px, calc(100vw - 32px));
  width: 390px;
  height: 722px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.05);
  border-radius: 28px;
  background: var(--bg);
  box-shadow: var(--shadow-stage);
}

.screen {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: var(--bg);
}

.screen.is-entering {
  animation: screen-enter 180ms ease-out both;
}

@keyframes screen-enter {
  from {
    opacity: 0.001;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.screen-content {
  position: absolute;
  inset: 0 0 72px;
  overflow: hidden;
}

.question-slide:has(.fixed-bottom-button)::after,
.screen-content:has(> .fixed-bottom-button)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 8;
  height: 88px;
  background: linear-gradient(
    to bottom,
    rgba(245, 245, 247, 0),
    rgba(245, 245, 247, 0.72) 42%,
    rgba(245, 245, 247, 0.96) 100%
  );
  pointer-events: none;
}

.question-screen {
  overflow: hidden;
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

.questionnaire-track {
  position: relative;
  z-index: 6;
  display: flex;
  width: 100%;
  height: 100%;
  transform: translateX(calc(var(--question-index, 0) * -100%));
  transition: transform 280ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
  touch-action: pan-y;
}

.question-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overflow-x: hidden;
  background: var(--bg);
  overscroll-behavior-x: none;
  touch-action: pan-y;
}

.screen-content.is-scroll {
  overflow-y: auto;
  padding-bottom: 24px;
}

.screen-content.list {
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.screen-content.list::-webkit-scrollbar {
  display: none;
}

.tab-bar {
  position: absolute;
  left: -2px;
  right: -1px;
  bottom: 0;
  height: 72px;
  z-index: 30;
  background: #ffffff;
  border-top: 1px solid var(--line);
}

.tab-items {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  height: 52px;
  padding: 2px;
}

.tab-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 0;
  border: 0;
  background: transparent;
  padding-top: 4px;
  color: rgba(23, 23, 23, 0.45);
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  line-height: 12px;
}

.figma-icon {
  display: block;
  width: 36px;
  height: 36px;
  position: relative;
  transform: scale(0.88);
  transform-origin: center top;
}

.figma-icon img {
  position: absolute;
  display: block;
}

.tab-item:not(.is-active) .figma-icon img {
  filter: grayscale(1) saturate(0) opacity(0.68);
}

.tab-item.is-active .figma-icon img {
  filter: brightness(0) saturate(100%) invert(30%) sepia(92%) saturate(1327%) hue-rotate(153deg) brightness(92%) contrast(101%);
}

.icon-connect img:nth-child(1) {
  left: 12px;
  top: 6px;
  width: 12px;
  height: 12px;
}

.icon-connect img:nth-child(2) {
  left: 7.5px;
  top: 20.25px;
  width: 21px;
  height: 9.75px;
}

.icon-connect img:nth-child(3) {
  left: 24.25px;
  top: 12.63px;
  width: 8.75px;
  height: 8.75px;
}

.icon-connect img:nth-child(4) {
  left: 28.7px;
  top: 22.88px;
  width: 5.8px;
  height: 7.1px;
}

.icon-connect img:nth-child(5) {
  left: 3px;
  top: 12.63px;
  width: 8.75px;
  height: 8.75px;
}

.icon-connect img:nth-child(6) {
  left: 1.5px;
  top: 22.88px;
  width: 5.8px;
  height: 7.1px;
}

.icon-chats img:nth-child(1) {
  left: 3.45px;
  top: 4.5px;
  width: 22.05px;
  height: 22.05px;
}

.icon-chats img:nth-child(2) {
  left: 14.75px;
  top: 10.44px;
  width: 17.98px;
  height: 20.61px;
}

.icon-contacts img {
  left: 3px;
  top: 6px;
  width: 30px;
  height: 24px;
}

.icon-program img:nth-child(1) {
  left: 9px;
  top: 21.58px;
  width: 6px;
  height: 6px;
}

.icon-program img:nth-child(2) {
  left: 4.5px;
  top: 3.75px;
  width: 27px;
  height: 27.75px;
}

.tab-item svg {
  width: 36px;
  height: 36px;
  color: #a7b2b7;
  fill: currentColor;
}

.tab-item.is-active {
  color: var(--accent);
}

.tab-item.is-active svg {
  color: var(--accent);
}

.home-indicator {
  position: absolute;
  left: 50%;
  bottom: 6px;
  width: 141px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 100px;
  background: #000000;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  height: 56px;
  border: 0;
  border-radius: 14px;
  padding: 0 24px;
  background: var(--accent);
  color: rgba(245, 245, 245, 0.96);
  cursor: pointer;
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: 0;
  transition: transform 120ms ease, filter 120ms ease;
}

.button:active,
.tab-item:active,
.choice-row:active,
.stage-check-row:active,
.chip:active,
.row:active,
.round-icon:active,
.compose-icon:active {
  transform: scale(0.985);
}

.button.is-secondary {
  background: var(--soft);
  color: var(--text);
}

.button.is-positive {
  background: var(--accent-2);
}

.button.is-small {
  height: 48px;
  border-radius: 12px;
  padding-inline: 20px;
  font-size: 16px;
  line-height: 20px;
}

.button.is-ghost-on-dark {
  background: rgba(8, 8, 8, 0.06);
  color: rgba(255, 255, 255, 0.96);
}

.fixed-bottom-button {
  position: absolute;
  left: var(--content-pad);
  right: var(--content-pad);
  bottom: 8px;
  z-index: 10;
  width: auto;
}

.hero-strip {
  position: relative;
  height: 176px;
  overflow: hidden;
  background: #239699;
}

.hero-strip img.rings {
  position: absolute;
  left: calc(var(--hero-pad) - 160px);
  top: 27px;
  width: 661px;
  height: 372px;
  object-fit: cover;
}

.hero-strip .logo {
  position: absolute;
  left: calc(var(--hero-pad) + 1px);
  top: 27px;
  width: 54px;
  height: 23px;
  object-fit: contain;
  object-position: left center;
}

.hero-strip h2 {
  position: absolute;
  left: var(--hero-pad);
  top: 67px;
  margin: 0;
  width: 329px;
  color: #ffffff;
  font-size: 28px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
}

.compact-hero {
  height: 140px;
}

.compact-hero img.rings {
  top: -10px;
}

.compact-hero .logo {
  top: 20px;
}

.compact-hero h2 {
  top: 58px;
  font-size: 24px;
  line-height: 22px;
}

.splash-screen {
  position: absolute;
  inset: 0;
  background: #239699;
  overflow: hidden;
}

.splash-bg-exact {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  width: 390px;
  height: 600px;
  object-fit: cover;
}

.splash-body-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.splash-bg {
  position: absolute;
  left: -493px;
  top: -174px;
  width: 1375px;
  height: 774px;
  object-fit: cover;
}

.splash-center {
  position: absolute;
  left: 58px;
  top: 243px;
  width: 274px;
  display: grid;
  justify-items: center;
  gap: 32px;
}

.splash-center img {
  width: 120px;
  height: 52px;
  object-fit: contain;
}

.splash-center h2 {
  margin: 0;
  width: 300px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.splash-copy {
  position: absolute;
  left: 58px;
  top: 243px;
  width: 274px;
  display: grid;
  justify-items: center;
  gap: 32px;
}

.splash-copy img {
  width: 120px;
  height: 52px;
  object-fit: contain;
}

.splash-copy h2 {
  margin: 0;
  width: 300px;
  color: #ffffff;
  font-size: 36px;
  font-weight: 700;
  line-height: 32px;
  text-align: center;
}

.loader {
  width: 56px;
  height: 56px;
  border: 6px solid rgba(255, 255, 255, 0.28);
  border-top-color: rgba(255, 255, 255, 0.72);
  border-radius: 50%;
}

.animated-loader {
  animation: loader-spin 900ms linear infinite;
}

@keyframes loader-spin {
  to {
    transform: rotate(360deg);
  }
}

.loader.is-muted {
  border-color: rgba(8, 8, 8, 0.08);
  border-top-color: rgba(8, 8, 8, 0.28);
}

.processing-screen {
  overflow: hidden;
  background: #f5f5f7;
  text-align: center;
}

.processing-rings {
  position: absolute;
  left: 50%;
  top: -188px;
  width: 760px;
  height: 428px;
  max-width: none;
  object-fit: cover;
  transform: translateX(-50%) rotate(54deg);
  transform-origin: center;
  pointer-events: none;
}

.processing-content {
  position: absolute;
  left: 50%;
  top: 47%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  width: 322px;
  transform: translate(-50%, -50%);
}

.processing-ai-icon {
  position: relative;
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
}

.processing-ai-icon img {
  position: absolute;
  display: block;
  max-width: none;
}

.processing-ai-bg {
  inset: 0;
  width: 128px;
  height: 128px;
}

.processing-ai-basic {
  left: 6px;
  top: 6px;
  width: 116px;
  height: 116px;
}

.processing-ai-accent {
  left: 40px;
  top: 40px;
  width: 54px;
  height: 48px;
}

.processing-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.processing-screen h2 {
  margin: 0;
  color: rgba(23, 23, 23, 0.96);
  font-size: 24px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.48px;
}

.processing-screen p {
  margin: 0;
  max-width: 333px;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.processing-loader {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: 32px;
  padding: 4px;
}

.processing-loader img {
  display: block;
  width: 48px;
  height: 48px;
  animation: loader-spin 900ms linear infinite;
}

.question-panel {
  padding: 12px var(--content-pad) 0;
  container-type: inline-size;
  overflow-x: hidden;
}

.question-panel.no-hero {
  padding-top: 16px;
  height: 100%;
  max-height: none;
  overflow-x: hidden;
  overflow-y: auto;
  padding-bottom: 88px;
  scrollbar-width: none;
}

.question-panel.no-hero::-webkit-scrollbar {
  display: none;
}

.compact-progress {
  display: flex;
  width: 600px;
  height: 91px;
  margin-bottom: 25px;
  transition: transform 180ms ease;
}

.compact-progress.progress-step-1 {
  transform: translateX(0);
}

.compact-progress.progress-step-2 {
  transform: translateX(calc(50cqw - 300px));
}

.compact-progress.progress-step-3 {
  transform: translateX(calc(50cqw - 500px));
}

.progress-item {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  flex: 0 0 200px;
  min-width: 0;
  border: 0;
  appearance: none;
  background: transparent;
  padding: 0;
  color: rgba(23, 23, 23, 0.56);
  cursor: pointer;
  text-align: inherit;
}

.progress-indicator {
  display: flex;
  align-items: center;
  height: 36px;
}

.progress-line {
  flex: 1 1 auto;
  height: 2px;
  background: rgba(8, 8, 8, 0.08);
}

.progress-item:first-child .progress-line:first-child,
.progress-item:last-child .progress-line:last-child {
  background: transparent;
}

.progress-line.is-active {
  background: var(--accent-2);
}

.progress-dot {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 2px solid rgba(8, 8, 8, 0.12);
  border-radius: 50%;
  background: #ffffff;
  color: rgba(23, 23, 23, 0.56);
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
}

.progress-item.is-complete .progress-dot {
  border-color: var(--accent-2);
  background: var(--accent-2);
  color: #ffffff;
}

.progress-item.is-current .progress-dot {
  border-color: var(--accent-2);
  color: var(--accent-2);
}

.progress-item p {
  margin: 12px 0 0;
  max-width: 200px;
  color: inherit;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}

.progress-item.is-current p {
  color: rgba(23, 23, 23, 0.96);
}

.progress-align-1 p {
  padding-right: 32px;
  text-align: left;
}

.progress-align-2 p {
  padding-inline: 16px;
  text-align: center;
}

.progress-align-3 p {
  text-align: right;
}

.choice-list {
  display: grid;
  gap: 0;
}

.stage-check-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-height: 66px;
  width: 100%;
  border: 0;
  background: transparent;
  color: rgba(23, 23, 23, 0.96);
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: transform 120ms ease;
}

.stage-check-control {
  position: relative;
  width: 24px;
  height: 24px;
  margin-top: 4px;
}

.stage-check-control::before {
  content: "";
  position: absolute;
  inset: 2px;
  border: 2px solid rgba(8, 8, 8, 0.56);
  border-radius: 6px;
  background: transparent;
}

.stage-check-row.is-selected .stage-check-control::before {
  border-color: var(--accent-2);
  background: var(--accent-2);
}

.stage-check-row.is-selected .stage-check-control::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 8px;
  height: 4px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg);
}

.stage-check-copy {
  display: block;
  min-width: 0;
  padding-top: 0;
}

.stage-check-copy strong {
  display: block;
  min-width: 0;
  font-size: 16px;
  font-weight: 500;
  line-height: 24px;
}

.stage-check-copy small {
  display: block;
  min-width: 0;
  margin-top: 2px;
  color: rgba(23, 23, 23, 0.56);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.choice-card {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 18px;
  align-items: center;
  min-height: 76px;
  width: 100%;
  border: 1px solid #edf3f2;
  border-radius: 20px;
  background: #ffffff;
  color: var(--text);
  padding: 12px 18px 12px 14px;
  cursor: pointer;
  text-align: left;
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease, box-shadow 170ms ease;
}

.choice-card.is-selected {
  border-color: var(--accent-2);
  background: rgba(33, 161, 154, 0.1);
  box-shadow: 0 10px 24px rgba(33, 161, 154, 0.11);
}

.choice-card:active {
  transform: scale(0.985);
}

.choice-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e8f1ee;
  transition: background 170ms ease, box-shadow 170ms ease;
}

.choice-card.is-selected .choice-dot {
  background: var(--accent-2);
  box-shadow: inset 0 0 0 8px #ffffff;
}

.choice-card strong {
  display: block;
  min-width: 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 18px;
}

.choice-card small {
  display: block;
  min-width: 0;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 15px;
}

.choice-row {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 58px;
  width: 100%;
  border: 0;
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.04);
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.choice-row.is-selected {
  background: rgba(33, 161, 154, 0.12);
}

.radio-control {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  border: 2px solid rgba(23, 23, 23, 0.42);
  border-radius: 50%;
  background: #ffffff;
}

.choice-row.is-selected .radio-control {
  border: 6px solid var(--accent-2);
}

.choice-row strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 18px;
}

.choice-row span span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 16px;
}

.progress {
  display: grid;
  grid-template-columns: repeat(3, 200px);
  align-items: start;
  width: 600px;
  height: 92px;
}

.progress-track {
  position: relative;
  height: 36px;
}

.progress-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 17px;
  height: 2px;
  background: #dfe0e4;
}

.step-dot {
  position: absolute;
  top: 6px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e3e4e8;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.step:nth-child(1) .step-dot { left: 0; }
.step:nth-child(2) .step-dot { left: 88px; }
.step:nth-child(3) .step-dot { right: 0; }

.step.is-active .step-dot {
  background: #ffffff;
  color: var(--accent-2);
  border: 2px solid var(--accent-2);
}

.step.is-done .step-dot {
  background: var(--accent-2);
  color: #ffffff;
}

.step h3 {
  margin: 12px 0 0;
  width: 168px;
  color: var(--muted);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
}

.step:nth-child(2) h3 {
  margin-left: 16px;
  text-align: center;
}

.step:nth-child(3) h3 {
  margin-left: 32px;
  text-align: right;
}

.step.is-active h3,
.step.is-done h3 {
  color: var(--text);
}

.checkbox-list {
  display: grid;
  gap: 18px;
}

.checkbox-row {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.check-control {
  width: 20px;
  height: 20px;
  margin: 2px;
  border: 2px solid rgba(8, 8, 8, 0.56);
  border-radius: 6px;
}

.checkbox-row.is-checked .check-control {
  display: grid;
  place-items: center;
  border: 0;
  background: var(--accent-2);
}

.checkbox-row.is-checked .check-control::after {
  content: "";
  width: 9px;
  height: 5px;
  border-left: 2px solid #ffffff;
  border-bottom: 2px solid #ffffff;
  transform: rotate(-45deg) translateY(-1px);
}

.checkbox-row strong {
  display: block;
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.checkbox-row span {
  display: block;
  margin-top: 2px;
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 24px;
  max-width: 100%;
  overflow-x: hidden;
}

.chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  border: 0;
  border-radius: 10px;
  background: rgba(8, 8, 8, 0.06);
  color: rgba(23, 23, 23, 0.96);
  cursor: pointer;
  padding: 10px 14px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  max-width: 100%;
  white-space: normal;
  transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.chip.is-active {
  background: var(--accent-2);
  color: rgba(245, 245, 245, 0.96);
}

.section-label {
  margin: 0 0 8px;
  color: rgba(23, 23, 23, 0.96);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
}

.question-panel .section-label {
  margin: 0 0 8px;
}

.question-panel .chip-group:last-of-type {
  margin-bottom: 0;
}

.helper-text {
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
}

.text-screen {
  padding: 16px var(--content-pad) 0;
  container-type: inline-size;
}

.text-screen .compact-progress {
  margin-bottom: 52px;
}

.textarea-card {
  position: relative;
  width: var(--content-inner-width);
  height: 220px;
  border-radius: 14px;
  background: rgba(8, 8, 8, 0.03);
  padding: 16px 16px 12px 18px;
}

.textarea-card textarea {
  width: 286px;
  height: 154px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}

.textarea-card textarea::placeholder {
  color: rgba(23, 23, 23, 0.56);
}

.textarea-inline-action {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 24px;
  height: 24px;
  background: url("./assets/q3-sparkle.svg") center / 20px 20px no-repeat;
}

.voice-button {
  position: absolute;
  right: 16px;
  bottom: 16px;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: #ffffff;
  cursor: pointer;
}

.voice-button::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url("./assets/q3-waves.svg") center / 10px 18px no-repeat;
}

.profile-card {
  position: relative;
  overflow: hidden;
  width: var(--content-inner-width);
  height: 296px;
  border-radius: 16px;
  background: var(--dark-card);
  color: #ffffff;
  padding: 35px 16px 18px;
}

.profile-card.is-match {
  padding-top: 72px;
  height: 344px;
}

.profile-card::before {
  content: "";
  position: absolute;
  left: -148px;
  top: -40px;
  width: 832px;
  height: 468px;
  background: url("./assets/profile-rings.webp") center / cover no-repeat;
  opacity: 0.1;
}

.profile-card .mini-logo {
  position: absolute;
  left: 17px;
  top: 25px;
  width: 56px;
  height: 24px;
  object-fit: contain;
  object-position: left center;
  display: block;
  z-index: 1;
}

.profile-card h3,
.profile-card dl {
  position: relative;
  z-index: 1;
}

.profile-card h3 {
  margin: 0;
  width: 264px;
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.profile-card.is-match h3 {
  width: 300px;
}

.profile-card dl {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
}

.profile-card dt {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 13px;
  font-weight: 700;
}

.profile-card dd {
  margin: 0;
  font-size: 15px;
  line-height: 18px;
}

.profile-card.is-match dl {
  gap: 14px;
  margin-top: 24px;
}

.profile-card.is-match dd {
  font-size: 14px;
  line-height: 17px;
}

.profile-card.is-match.is-dense h3 {
  font-size: 17px;
  line-height: 20px;
}

.profile-card.is-match.is-dense dl {
  gap: 12px;
  margin-top: 20px;
}

.profile-card.is-match.is-extra-dense {
  padding-top: 68px;
}

.profile-card.is-match.is-extra-dense h3 {
  font-size: 16px;
  line-height: 19px;
}

.profile-card.is-match.is-extra-dense dl {
  gap: 10px;
  margin-top: 16px;
}

.profile-card.is-match.is-extra-dense dt {
  margin-bottom: 2px;
}

.profile-card.is-match.is-extra-dense dd {
  font-size: 13px;
  line-height: 16px;
}

.center-copy {
  padding: 31px 24px 0;
  text-align: center;
}

.center-copy h2 {
  margin: 0;
  font-size: 24px;
  line-height: 22px;
  font-weight: 700;
}

.center-copy p {
  margin: 7px auto 0;
  max-width: min(333px, var(--content-inner-width));
  color: var(--muted);
  font-size: 14px;
  line-height: 20px;
  font-weight: 600;
}

.chat-day {
  margin: 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
  line-height: 14px;
  font-weight: 500;
}

.chat-stack {
  display: grid;
  gap: 8px;
  padding: 31px 10px 0;
}

.bubble {
  max-width: 291px;
  border-radius: 12px 12px 12px 4px;
  padding: 10px 12px;
  background: #e9ecef;
  color: #111111;
  font-size: 16px;
  line-height: 20px;
  font-weight: 500;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.bubble.is-sender {
  justify-self: end;
  max-width: 255px;
  border-radius: 12px 12px 4px 12px;
  background: var(--accent);
  color: #ffffff;
}

.bubble.is-failed {
  opacity: 0.58;
}

.chat-actions {
  position: absolute;
  right: 18px;
  bottom: 88px;
  display: flex;
  height: 48px;
  gap: 8px;
  justify-content: flex-end;
}

.chat-compose {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  gap: 6px;
  align-items: center;
  min-height: 48px;
  border-radius: 24px;
  background: #ffffff;
  border: 1px solid rgba(8, 8, 8, 0.08);
  padding: 4px;
}

.chat-compose textarea {
  width: 100%;
  min-height: 38px;
  max-height: 96px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  resize: none;
  overflow-y: auto;
  padding: 9px 8px 9px 12px;
}

.chat-compose textarea::placeholder {
  color: rgba(23, 23, 23, 0.45);
}

.compose-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: rgba(23, 23, 23, 0.5);
  cursor: pointer;
}

.compose-icon.is-send {
  background: var(--accent);
  color: #ffffff;
}

.compose-icon.is-send::before {
  content: "";
  width: 14px;
  height: 14px;
  border-top: 3px solid currentColor;
  border-right: 3px solid currentColor;
  transform: rotate(45deg) translate(-2px, 2px);
}

.round-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: rgba(8, 8, 8, 0.06);
  color: var(--text);
  cursor: pointer;
  padding: 12px;
}

.round-icon img {
  display: block;
  width: 24px;
  height: 24px;
}

.round-icon.is-dark {
  background: #000000;
  color: #ffffff;
}

.round-icon.is-secondary img {
  filter: brightness(0);
}

.bottom-sheet {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  min-height: 390px;
  padding: 34px 34px 28px;
  border-radius: 18px 18px 0 0;
  background: #ffffff;
  text-align: center;
  transform: translate3d(0, 0, 0);
  transition: transform 160ms ease;
  will-change: transform;
}

.bottom-sheet.is-dragging {
  transition: none;
  cursor: grabbing;
}

.bottom-sheet.is-dismissing {
  transition: transform 120ms ease;
}

.sheet-puller {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 48px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 99px;
  background: rgba(8, 8, 8, 0.14);
  cursor: grab;
  touch-action: none;
}

.bottom-sheet h3 {
  margin: 82px 0 6px;
  font-size: 18px;
  line-height: 22px;
}

.bottom-sheet p {
  margin: 0 auto 24px;
  max-width: 285px;
  color: var(--muted);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
}

.sheet-input {
  width: 260px;
  height: 48px;
  border: 0;
  outline: 0;
  border-radius: 10px;
  background: rgba(8, 8, 8, 0.04);
  padding: 0 16px;
  color: var(--text);
  font-size: 15px;
  font-weight: 600;
}

.sheet-input::placeholder {
  color: rgba(23, 23, 23, 0.42);
}

.sheet-input:focus::placeholder {
  color: transparent;
}

.sheet-input.stacked {
  margin-top: 8px;
}

.compact-sheet {
  min-height: 310px;
}

.compact-sheet h3 {
  margin-top: 64px;
}

.contact-sheet {
  min-height: 392px;
  padding: 58px 32px 28px;
  border-radius: 20px 20px 0 0;
  text-align: left;
}

.contact-sheet h3 {
  margin: 0 0 2px;
  color: var(--text);
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
  letter-spacing: -0.36px;
}

.contact-sheet p {
  max-width: 100%;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.contact-sheet .contact-username {
  margin-bottom: 32px;
  font-size: 16px;
  line-height: 20px;
}

.contact-sheet .contact-conversation-summary {
  margin-top: 32px;
}

.contact-sheet .contact-telegram-button {
  width: 100%;
  margin-top: 32px;
}

.recording-scrim {
  background: rgba(0, 0, 0, 0.46);
  backdrop-filter: blur(3px);
}

.recording-sheet {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 328px;
  padding: 0 32px 32px;
  border-radius: 18px 18px 0 0;
}

.recording-sheet .sheet-puller {
  top: 16px;
}

.recording-sheet h3 {
  margin: 82px 0 47px;
  color: rgba(23, 23, 23, 0.96);
  font-size: 18px;
  font-weight: 700;
  line-height: 22px;
}

.recording-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 118px;
  height: 82px;
  border-radius: 999px;
  background: rgba(33, 161, 154, 0.13);
}

.recording-visual span {
  width: 6px;
  border-radius: 999px;
  background: var(--accent);
  transform-origin: center;
  animation: recording-wave 760ms ease-in-out infinite;
}

.recording-visual span:nth-child(1) { height: 18px; opacity: 0.56; animation-delay: 0ms; }
.recording-visual span:nth-child(2) { height: 40px; animation-delay: 85ms; }
.recording-visual span:nth-child(3) { height: 58px; animation-delay: 170ms; }
.recording-visual span:nth-child(4) { height: 40px; animation-delay: 255ms; }
.recording-visual span:nth-child(5) { height: 18px; opacity: 0.56; animation-delay: 340ms; }

.recording-finish-button {
  width: 302px;
  height: 76px;
  margin-top: 36px;
  border-radius: 18px;
  font-size: 18px;
  line-height: 22px;
  font-weight: 700;
}

@keyframes recording-wave {
  0%, 100% {
    transform: scaleY(0.76);
  }
  50% {
    transform: scaleY(1.08);
  }
}

.consent-sheet h3 {
  margin-top: 54px;
}

.feed-onboarding-sheet {
  min-height: 354px;
  padding-inline: 28px;
}

.feed-onboarding-sheet h3 {
  margin-top: 50px;
  font-size: 22px;
  line-height: 26px;
}

.feed-onboarding-sheet p {
  max-width: 304px;
  margin-bottom: 18px;
}

.feed-onboarding-list {
  display: grid;
  gap: 8px;
  width: 302px;
  max-width: 100%;
  margin: 0 auto 22px;
  text-align: left;
}

.feed-onboarding-list span {
  display: block;
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.04);
  padding: 12px 14px;
  color: var(--text);
  font-size: 15px;
  line-height: 19px;
  font-weight: 600;
}

.sheet-error {
  margin-top: -12px !important;
  color: #a83232 !important;
}

.keyboard {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 303px;
  background: #d1d5dc;
  padding: 10px 4px 20px;
}

.key-row {
  display: flex;
  justify-content: center;
  gap: 5px;
  margin-bottom: 7px;
}

.key {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 43px;
  border-radius: 5px;
  background: #ffffff;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.28);
  color: #111111;
  font-family: inherit;
  font-size: 24px;
}

.key.is-wide {
  min-width: 138px;
  font-size: 16px;
}

.key.is-system {
  min-width: 58px;
  background: #aeb4bf;
  font-size: 15px;
}

.list {
  padding: 31px var(--content-pad);
}

.program-list {
  padding-top: 32px;
  padding-bottom: 24px;
}

.list h2 {
  margin: 0 0 5px;
  font-size: 24px;
  font-weight: 500;
  line-height: 30px;
  letter-spacing: -0.48px;
}

.list p {
  margin: 0 0 36px;
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
  font-weight: 600;
}

.contacts-list > p {
  margin-bottom: 56px;
}

.program-list > p {
  margin-bottom: 24px;
  font-weight: 500;
}

.program-tabs {
  position: relative;
  display: inline-flex;
  gap: 24px;
  margin: 0 0 34px;
  border-bottom: 1px solid rgba(8, 8, 8, 0.12);
}

.program-tab {
  position: relative;
  height: 42px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0 2px 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.program-tab.is-active {
  color: var(--text);
}

.program-tab.is-active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 999px;
  background: rgba(23, 23, 23, 0.96);
}

.row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  min-height: 68px;
  width: 100%;
  align-items: center;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.chat-list-row {
  padding-bottom: 8px;
}

.program-row {
  min-height: 0;
  padding: 0 0 12px;
  margin-bottom: 12px;
  color: var(--text);
  -webkit-appearance: none;
  appearance: none;
}

.program-row.is-static {
  cursor: default;
}

.contact-row {
  min-height: 52px;
  background: transparent;
  padding: 0 0 12px;
  margin-bottom: 16px;
}

.contact-row .contact-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  margin: 0;
  color: inherit;
  padding: 0;
}

.contact-row strong {
  color: var(--text);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.contact-row em {
  display: block;
  color: var(--muted);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.28px;
}

.row .program-row-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  justify-content: center;
  min-width: 0;
  margin: 0;
  color: inherit;
}

.program-row-copy em {
  display: block;
  margin: 0;
  color: var(--accent);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.28px;
}

.row strong {
  display: block;
  font-size: 16px;
  line-height: 20px;
}

.row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
  line-height: 18px;
}

.program-row strong {
  color: var(--text);
  font-weight: 500;
  letter-spacing: -0.32px;
}

.program-row .program-row-copy > span {
  font-weight: 500;
  letter-spacing: -0.28px;
}

.row .program-row-after {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 2px;
  min-width: 66px;
  margin: 0;
}

.program-row .time {
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
  margin: 0;
  white-space: nowrap;
}

.program-recommendation-sheet {
  min-height: 336px;
  padding: 64px 32px 32px;
  text-align: left;
}

.program-recommendation-sheet h3 {
  margin: 0 0 44px;
  color: var(--text);
  font-size: 18px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.36px;
}

.program-recommendation-sheet p {
  max-width: 292px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}

.program-recommendation-sheet .program-go-button {
  width: 100%;
  margin-top: 44px;
}

.row .disclosure {
  display: block;
  position: relative;
  width: 24px;
  height: 24px;
  margin: 0;
}

.row .disclosure::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 7px;
  width: 7px;
  height: 7px;
  border-top: 2px solid rgba(23, 23, 23, 0.56);
  border-right: 2px solid rgba(23, 23, 23, 0.56);
  transform: rotate(45deg);
}

.empty-state {
  display: grid;
  gap: 8px;
  padding: 24px 0;
}

.empty-state.is-centered {
  align-content: center;
  justify-items: center;
  padding: 32px;
  text-align: center;
}

.empty-state h3 {
  margin: 0;
  font-size: 21px;
  line-height: 24px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.contacts-empty-figma {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 0 24px 42px;
  text-align: center;
}

.contacts-empty-visual {
  position: relative;
  width: 128px;
  height: 128px;
  flex: 0 0 auto;
}

.contacts-empty-visual img {
  position: absolute;
  display: block;
  max-width: none;
}

.contacts-empty-bg {
  inset: 0;
  width: 128px;
  height: 128px;
}

.contacts-empty-card {
  left: 6px;
  top: 6px;
  width: 116px;
  height: 116px;
}

.contacts-empty-chat {
  left: 42px;
  top: 44px;
  width: 44px;
  height: 41px;
}

.contacts-empty-figma h2 {
  margin: 0 0 2px;
  color: rgba(23, 23, 23, 0.96);
  font-size: 24px;
  font-weight: 600;
  line-height: 22px;
  letter-spacing: -0.48px;
}

.contacts-empty-figma p {
  margin: 0;
  width: 333px;
  max-width: 100%;
  color: rgba(23, 23, 23, 0.56);
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.28px;
}

.empty-card {
  position: absolute;
  left: var(--content-pad);
  right: var(--content-pad);
  top: 238px;
  width: auto;
  min-height: 224px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: 22px;
  background: #ffffff;
  padding: 34px 28px;
  text-align: center;
}

.empty-card h2 {
  margin: 0 0 8px;
  color: var(--text);
  font-size: 24px;
  font-weight: 700;
  line-height: 28px;
}

.empty-card p {
  margin: 0;
  max-width: 330px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.empty-visual {
  width: 76px;
  height: 72px;
  margin: 0 0 16px;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(7, 31, 34, 0.08));
}

.app-notice {
  position: absolute;
  left: var(--content-pad);
  right: var(--content-pad);
  top: 12px;
  z-index: 45;
  border-radius: 12px;
  background: rgba(8, 8, 8, 0.82);
  color: #ffffff;
  padding: 10px 12px;
  font-size: 13px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}

.demo-pad {
  padding: 24px var(--content-pad) 0;
}

.profile-preview-card {
  position: absolute;
  left: 50%;
  top: 148px;
  transform: translateX(-50%);
}

.profile-edit-button {
  position: absolute;
  left: 50%;
  top: 452px;
  transform: translateX(-50%);
}

.kit-grid {
  display: grid;
  gap: 18px;
}

.kit-row {
  display: grid;
  gap: 8px;
}

.teal-reco {
  position: absolute;
  inset: 0 0 72px;
  overflow: hidden;
  background: #00737f;
}

.teal-reco::before {
  content: "";
  position: absolute;
  left: -680px;
  top: -13px;
  bottom: -72px;
  width: 1170px;
  background: url("./assets/teal-rings-kv.png") center / cover no-repeat;
  opacity: 0.3;
}

@media (max-height: 820px) {
  .teal-reco::before {
    bottom: -96px;
  }
}

.teal-reco .reco-copy {
  position: relative;
  margin: 52px auto 0;
  width: 333px;
  color: rgba(255, 255, 255, 0.56);
  font-size: 16px;
  line-height: 20px;
  font-weight: 600;
  text-align: center;
}

.teal-reco .profile-card {
  margin: 46px auto 0;
}

.match-swipe-card {
  touch-action: pan-y;
  transition:
    transform 180ms ease,
    filter 180ms ease;
  will-change: transform;
  cursor: grab;
}

.match-swipe-card.is-swiping {
  transition: none;
  cursor: grabbing;
}

.split-buttons {
  position: absolute;
  left: 17px;
  right: 17px;
  bottom: 36px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.scrim {
  position: absolute;
  inset: 0;
  z-index: 35;
  background: rgba(0, 0, 0, 0.45);
}

.recommend-note {
  margin-top: 6px;
  color: #008390;
  font-size: 12px;
  font-weight: 700;
  line-height: 14px;
}

@media (max-width: 760px) {
  html,
  body,
  .miniapp-workspace {
    width: 100%;
    height: var(--app-height, 100dvh);
    min-height: var(--app-height, 100dvh);
    overflow: hidden;
  }

  body {
    background: var(--bg);
  }

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

  .component-rail {
    position: sticky;
    top: 0;
    z-index: 50;
    padding: 16px;
    gap: 14px;
  }

  .component-rail h1 {
    font-size: 20px;
  }

  .rail-nav {
    flex-direction: row;
    overflow-x: auto;
  }

  .rail-button {
    flex: 0 0 auto;
  }

  .preview-stage {
    min-height: var(--app-height, 100dvh);
    padding: 0;
    background: var(--bg);
  }

  .phone {
    width: 100vw;
    max-width: 100vw;
    height: var(--app-height, 100dvh);
    min-height: var(--app-height, 100dvh);
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }

  .screen-content {
    inset: 0 0 calc(72px + env(safe-area-inset-bottom));
  }

  .tab-bar {
    height: calc(72px + env(safe-area-inset-bottom));
    padding-bottom: env(safe-area-inset-bottom);
  }

  .fixed-bottom-button {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .teal-reco {
    inset: 0 0 calc(72px + env(safe-area-inset-bottom));
  }

  .chat-compose {
    bottom: calc(8px + env(safe-area-inset-bottom));
  }

  .chat-actions {
    bottom: calc(88px + env(safe-area-inset-bottom));
  }

  .bottom-sheet {
    padding-bottom: calc(28px + env(safe-area-inset-bottom));
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

@font-face {
  font-family: "SB Sans Display Extended";
  src: url("./fonts/SBSansDisplay-ExtendedSemibold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

@font-face {
  font-family: "SB Sans Display";
  src: url("./fonts/SBSansDisplay-SemiBold.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}

:root {
  --brand-light: #a0e720;
  --brand-dark: #199093;
}

.phone {
  --tab-space: calc(70px + env(safe-area-inset-bottom, 0px));
}

.screen-content,
.teal-reco {
  bottom: var(--tab-space);
}

.tab-bar {
  left: 0;
  right: 0;
  height: var(--tab-space);
  background: #fff;
}

.tab-items {
  height: 70px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: center;
}

.tab-item {
  min-width: 0;
  min-height: 52px;
  padding: 0 2px;
  align-content: center;
  color: #647175;
}

.tab-icon {
  width: 36px;
  height: 36px;
  mask: var(--tab-icon) center / contain no-repeat;
  background: #a0adb2;
}

.tab-item.is-active .tab-icon { background: var(--accent); }
.tab-icon-connect { --tab-icon: url("./assets/refresh-nav-connect.svg"); }
.tab-icon-chats { --tab-icon: url("./assets/refresh-nav-chats.svg"); }
.tab-icon-contacts { --tab-icon: url("./assets/refresh-nav-contacts.svg"); }
.tab-icon-events { --tab-icon: url("./assets/refresh-nav-events.svg"); }
.tab-icon-profile { --tab-icon: url("./assets/refresh-nav-profile.svg"); }

.button { letter-spacing: -0.36px; }
.button.is-small { letter-spacing: -0.32px; }

.button:disabled {
  cursor: default;
  opacity: 0.55;
}

.fixed-bottom-button { bottom: 8px; }

.hero-strip,
.teal-reco,
.messenger-picker {
  isolation: isolate;
  overflow: hidden;
  background: linear-gradient(var(--brand-light), var(--brand-dark));
}

.splash-screen,
.networking-wait {
  isolation: isolate;
  overflow: hidden;
  background: #111313;
}

.brand-background {
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(var(--brand-light), var(--brand-dark));
  will-change: opacity;
}

.brand-background::before,
.brand-background::after {
  content: "";
  position: absolute;
  inset-inline: 0;
  height: 29.5%;
  background: rgb(139 139 139 / 1%);
  backdrop-filter: blur(23px);
  pointer-events: none;
}
.brand-background::before {
  top: 0;
  mask-image: linear-gradient(#000 72%, transparent);
}
.brand-background::after {
  bottom: 0;
  mask-image: linear-gradient(transparent, #000 28%);
}

.brand-rings {
  position: absolute;
  z-index: -1;
  width: 1024px;
  height: 576px;
  max-width: none;
  left: calc(50% - 30px);
  top: calc(50% + 14px);
  transform: translate(-50%, -50%) rotate(111deg);
  pointer-events: none;
}

.splash-copy {
  left: 50%;
  top: 50%;
  width: min(100% - 32px, 300px);
  transform: translate(-50%, -50%);
}

.splash-copy h2,
.hero-strip h2,
.networking-wait h2,
.messenger-picker h1 {
  font-family: "SB Sans Display Extended", "SB Sans Display", "SB Sans Text", sans-serif;
  font-weight: 600;
}

.splash-copy h2,
.networking-wait h2 { line-height: 32px; }

.splash-copy h2 { width: 100%; font-size: 24px; }
.splash-copy .loader { width: 48px; height: 48px; border-width: 3px; }

.compact-hero {
  height: 176px;
  flex: 0 0 176px;
  background: linear-gradient(var(--brand-light), var(--brand-dark)) 0 -183px / 100% 722px no-repeat;
}

.compact-hero .brand-rings { top: 192px; }
.compact-hero .logo { top: 27px; }
.compact-hero h2 {
  top: 71px;
  width: min(329px, 100% - var(--hero-pad) - 16px);
  font-size: 24px;
  line-height: 24px;
}

.screen-content:has(> .fixed-bottom-button)::after {
  background: linear-gradient(transparent, var(--bg) 46%);
  height: 70px;
}

.question-screen,
.question-slide { overflow: clip; }

.question-slide {
  display: flex;
  flex-direction: column;
}

.question-step-heading {
  flex: none;
  padding: 16px 0 20px;
  text-align: center;
}

.question-step-indicator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
}

.question-step-indicator::before,
.question-step-indicator::after {
  content: "";
  height: 2px;
  background: rgb(8 8 8 / 8%);
}

.question-step-2 .question-step-indicator::before,
.question-step-3 .question-step-indicator::before,
.question-step-3 .question-step-indicator::after { background: var(--accent-2); }

.question-step-number {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 2px solid var(--accent-2);
  border-radius: 50%;
  color: var(--accent-2);
  background: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 14px;
}

.question-step-heading h2 {
  margin: 12px var(--content-pad) 0;
  font-size: 18px;
  font-weight: 500;
  line-height: 22px;
}

.questionnaire-track .question-panel {
  flex: 1;
  min-height: 0;
  padding: 0 var(--content-pad) 16px;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
}

.question-action {
  flex: none;
  margin: 8px var(--content-pad);
}

.question-action[hidden] { display: none; }

.choice-list { gap: 24px; }
.stage-check-row { min-height: 42px; }
.question-panel .stage-check-row { -webkit-tap-highlight-color: transparent; }
.question-panel .stage-check-row:active { transform: none; }
.question-panel .stage-check-copy { max-width: 305px; }
.chip-group { gap: 4px; margin-bottom: 20px; }
.chip { height: auto; min-height: 36px; padding: 8px 12px; letter-spacing: -0.32px; }
.chip:disabled,
.account-chip:has(input:disabled) { opacity: 0.42; cursor: default; }
.goal-count { margin: 0; text-align: center; }
.goal-count.is-at-limit {
  width: fit-content;
  margin-inline: auto;
  padding: 8px 12px;
  border-radius: 8px;
  background: #eaf5f4;
  color: #156d68;
  font-weight: 400;
}

.question-panel .goal-count {
  min-height: 24px;
  margin-top: 8px;
  padding: 3px 8px;
}
.textarea-card { padding-right: 48px; }
.textarea-card textarea { width: 100%; font-size: 16px; line-height: 20px; }
.textarea-inline-action { background: none; }
.voice-button::before { display: none; }
.voice-button-icon {
  width: 24px;
  height: 24px;
  mask: url("./assets/refresh-voice-wave.svg") center / contain no-repeat;
  background: currentColor;
}

.processing-screen { background: var(--bg); }
.processing-content {
  top: calc(50% + 7px);
  width: min(333px, 100% - 32px);
}
.processing-loader { margin-top: clamp(24px, 100dvh - 560px, 96px); }
.processing-rings {
  top: calc(50% - 142px);
  width: 2190px;
  height: 1232px;
  opacity: 0.1;
  transform: translate(-50%, -50%) rotate(-90deg);
}

.recording-sheet {
  max-height: 100%;
  min-height: 0;
  padding: 48px var(--content-pad) max(44px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
}
.recording-scrim { background: rgb(31 31 34 / 50%); backdrop-filter: none; }
.recording-visual {
  position: relative;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  background: none;
}
.recording-visual img { grid-area: 1 / 1; }
.recording-sheet h3 { margin: 46px 0 0; font-weight: 500; letter-spacing: -0.36px; }
.recording-finish-button { flex: none; width: 100%; height: 56px; margin-top: 46px; }

.profile-card {
  background: linear-gradient(var(--brand-light), var(--brand-dark));
  min-height: 296px;
  height: auto;
  overflow-wrap: anywhere;
}
.profile-card::before {
  left: calc(50% - 327px);
  background-image: url("./assets/refresh-card-rings.png");
}

.profile-card h3,
.profile-card.is-match h3 {
  width: min(100%, 264px);
  min-height: 66px;
  font-weight: 600;
}

.profile-card dl,
.profile-card.is-match dl {
  width: min(100%, 320px);
  gap: 16px;
  margin-top: 28px;
}

.profile-card dt { font-weight: 600; line-height: 1.1; }
.profile-card dd { font-weight: 400; }
.profile-card dl > :first-child dd { min-height: 21px; }
.profile-card dl > :last-child dd { max-width: 307px; }
.profile-card.is-match { min-height: 296px; height: auto; }

.profile-review { overflow-y: auto; padding-bottom: 80px; }
.profile-review.has-footer { padding-bottom: 144px; }
.profile-preview-card,
.profile-edit-button {
  position: static;
  width: var(--content-inner-width);
  margin-inline: auto;
  transform: none;
}
.profile-edit-button { margin-top: 8px; }
.profile-edit-button .button { width: 100%; letter-spacing: -0.32px; }
.profile-review .center-copy { min-height: 148px; padding: 32px 24px 18px; }
.profile-review .center-copy h2 { font-weight: 600; letter-spacing: -0.48px; }
.profile-review .center-copy p { margin-top: 2px; font-weight: 500; letter-spacing: -0.28px; }

.networking-wait > .brand-background,
.teal-reco > .brand-background { bottom: calc(-1 * var(--tab-space)); }
.networking-wait-copy {
  color: #fff;
  text-align: center;
  width: min(333px, 100% - 32px);
  margin: 66px auto 0;
}
.networking-wait h2 { margin: 0; font-size: 36px; letter-spacing: -0.72px; }
.networking-wait p { margin: 8px 0 0; font-size: 16px; font-weight: 500; line-height: 20px; letter-spacing: -0.32px; }
.teal-reco {
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  background: #111313;
  gap: 48px;
  padding: 80px 0 28px;
}
.teal-reco::before { display: none; }
.teal-reco > .brand-background { opacity: 0.7; }
.teal-reco .brand-background::before,
.teal-reco .brand-background::after { display: none; }
.teal-reco .profile-card { margin: auto auto 0; flex: 0 0 auto; }
.teal-reco .split-buttons { position: relative; inset: auto; flex: 0 0 auto; margin: 0 var(--content-pad) auto; }
.teal-reco .button.is-ghost-on-dark { background-color: rgb(0 0 0 / 56%); }

.screen-footer {
  position: absolute;
  z-index: 5;
  bottom: 0;
  left: 0;
  right: 0;
  display: grid;
  gap: 8px;
  padding: 8px var(--content-pad);
  background: var(--bg);
}

.profile-form { height: 100%; }
.profile-form-content,
.summary-content {
  padding: 20px var(--content-pad) 24px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
}
.teal-reco,
.profile-review,
.chat-stack { scrollbar-width: none; }
.profile-form .profile-form-content { height: calc(100% - 72px); }
.form-title {
  margin: 34px 0 26px;
  text-align: center;
  font-size: 24px;
  line-height: 26px;
  font-weight: 600;
}
.profile-field {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
}
.profile-form .profile-field { margin-bottom: 32px; }
.profile-field input,
.profile-field textarea,
.profile-field-value {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: rgb(8 8 8 / 4%);
  padding: 12px 16px;
  color: var(--text);
}
.profile-field textarea { resize: vertical; }
.profile-field :read-only { color: var(--muted-strong); }
.profile-field-value { overflow-wrap: anywhere; }
.profile-field [aria-invalid="true"] { border-color: #b42318; }
.profile-field-error { color: #b42318; font-size: 14px; line-height: 18px; }
.profile-field input:focus,
.profile-field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.profile-note {
  display: grid;
  gap: 3px;
  padding: 12px 16px;
  margin: 0 0 16px;
  border-radius: 12px;
  background: #dbeae0;
  font-size: 14px;
  line-height: 18px;
}
.wall-consent { display: flex; align-items: flex-start; gap: 8px; margin: 16px 0; font-size: 14px; line-height: 20px; }
.wall-consent input,
.account-answers input { accent-color: var(--accent-2); }
.wall-status,
.wall-extra-contact { font-size: 14px; line-height: 18px; }
.wall-status { color: var(--muted-strong); }
.text-button { padding: 8px 0; border: 0; background: none; color: var(--accent); cursor: pointer; }

.account-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.account-edit-screen { padding-top: 0; scroll-padding-top: 76px; }
.account-edit-screen .account-heading {
  position: sticky;
  z-index: 2;
  top: 0;
  padding: 20px 0 12px;
  margin-bottom: 0;
  background: var(--bg);
}
.account-heading h2,
.summary-content h2 { margin: 0; font-size: 24px; font-weight: 500; line-height: 30px; }
.account-screen > .profile-card { margin-inline: auto; }
.account-screen > .button { width: 100%; margin: 8px 0 18px; }
.account-answers { border: 0; padding: 0; margin: 8px 0 20px; min-width: 0; }
.account-edit-fields { border: 0; padding: 0; margin: 0; min-width: 0; }
.account-answers legend { font-weight: 600; margin-bottom: 10px; }
.account-answers .stage-check-row { margin-bottom: 14px; }
.account-answers input[type="radio"] { width: 20px; height: 20px; margin: 3px 0 0; }
.account-answers .goal-count { margin: 0 0 12px; }
.account-chip { position: relative; }
.account-chip input { position: absolute; opacity: 0; }
.account-chip:has(input:checked) { background: var(--accent-2); color: #fff; }
.account-chip:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

.summary-content { height: calc(100% - 72px); padding-top: 32px; }
.summary-content h2 { line-height: 24px; letter-spacing: -0.48px; }
.summary-content > p {
  margin: 8px 0 32px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 18px;
  letter-spacing: -0.28px;
}
.summary-content section { margin: 0 0 16px; }
.summary-content h3,
.summary-content section p {
  font-size: 16px;
  font-weight: 500;
  line-height: 20px;
  letter-spacing: -0.32px;
}
.summary-content h3 { margin: 0 0 6px; }
.summary-content section p { margin: 0; color: var(--muted); }
[data-screen="summary"] .screen-footer .button { font-weight: 500; }
.summary-markdown { overflow-wrap: anywhere; }
.summary-markdown h3, .summary-markdown h4 { margin: 20px 0 8px; }
.summary-content .summary-markdown p { margin-bottom: 12px; }
.summary-markdown ul, .summary-markdown ol { color: var(--muted-strong); padding-left: 24px; }
.summary-row .disclosure { margin-right: 6px; }
.program-tabs { max-width: 100%; gap: clamp(8px, 4vw, 24px); }
.program-tab { white-space: nowrap; }

.contacts-empty-chat { left: 32px; top: 32px; width: 64px; height: 64px; }
.contacts-empty-figma { gap: 0; padding: 14px 24px 0; }
.contacts-empty-figma h2 { margin: 32px 0 2px; }
.contacts-list > p { margin-bottom: 40px; font-weight: 500; letter-spacing: -0.28px; }

.chat-screen .chat-stack {
  position: absolute;
  inset: 0 0 116px;
  align-content: start;
  overflow-y: auto;
  padding: 32px var(--content-pad) 12px;
}
.chat-screen .chat-day { margin: 0 0 6px; }
.chat-screen .bubble {
  width: fit-content;
  max-width: min(255px, 80%);
  padding: 6px 10px 6px 12px;
  font-size: 17px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: -0.408px;
}
.chat-screen .bubble:not(.is-sender) {
  margin-inline-start: 40px;
  max-width: min(255px, 100% - 40px);
  border-radius: 4px 18px 18px 16px;
  background: #e4e8eb;
}
.chat-screen .bubble.is-sender { border-radius: 18px 16px 4px 18px; }
.chat-screen .chat-actions { bottom: 62px; }
.chat-screen .chat-compose { bottom: 8px; }
.share-sheet {
  max-height: 100%;
  min-height: min(390px, 100%);
  padding: 68px var(--content-pad) max(24px, env(safe-area-inset-bottom, 0px));
  overflow-y: auto;
  border-radius: 20px 20px 0 0;
}
.share-sheet h3 { margin: 0; font-weight: 500; letter-spacing: -0.36px; }
.share-sheet > p:not(.sheet-error) {
  max-width: 310px;
  margin: 2px auto 24px;
  font-weight: 500;
  letter-spacing: -0.32px;
}
.share-sheet .sheet-input,
.share-sheet .button {
  display: flex;
  width: min(327px, 100%);
  margin-inline: auto;
}
.share-sheet .sheet-input {
  margin-bottom: 8px;
  border-radius: 12px;
  padding-inline: 14px;
  background: rgb(8 8 8 / 3%);
  font-size: 16px;
  font-weight: 500;
}
.share-sheet .sheet-input::placeholder { color: var(--muted); }

.messenger-picker {
  position: relative;
  margin: 0 auto;
  width: min(100%, 500px);
  min-height: 100dvh;
  padding: max(32px, env(safe-area-inset-top, 0px)) 22px 28px;
  color: #fff;
  text-align: center;
}
.messenger-picker > .brand-rings { width: 1240px; height: 697px; top: calc(50% + 31px); }
.messenger-picker header { display: flex; align-items: center; justify-content: space-between; }
.messenger-picker-copy { margin: clamp(100px, 18vh, 160px) auto 0; max-width: 340px; }
.messenger-picker-copy h1 { margin: 0; font-size: 24px; line-height: 24px; }
.messenger-picker-copy p { margin: 14px 0 0; font-size: 16px; line-height: 20px; }
.messenger-picker nav { display: grid; gap: 4px; max-width: 314px; margin: clamp(72px, 15vh, 126px) auto 0; }
.messenger-picker nav a { font-size: 16px; line-height: 20px; letter-spacing: -0.32px; text-decoration: none; }
.messenger-picker .telegram-link { background-color: #0d6c9b; }
.messenger-picker .max-link { background-color: #8000ff; }

@media (max-height: 670px) {
  .compact-hero { flex-basis: 150px; }
  .teal-reco { padding: 16px 0; gap: 20px; }
  .processing-content { gap: 16px; }
  .processing-loader { margin-top: 12px; }
}
