
    * { box-sizing: border-box; }
    html { min-height: 100%; background: transparent; overscroll-behavior: none; }
    body {
      margin: 0;
      font-family: Arial, Helvetica, sans-serif;
      background: transparent;
      color: #1e293b;
      overscroll-behavior: none;
      -webkit-overflow-scrolling: touch;
    }
    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      background: linear-gradient(135deg, #f8fafc, #eaf3ff);
      pointer-events: none;
    }
    .app { min-height: calc(var(--VH, 1vh) * 100); max-width: 460px; margin: 0 auto; padding: 18px; position: relative; background: transparent; }
    .center { min-height: calc(var(--VH, 1vh) * 100); display: flex; flex-direction: column; justify-content: space-evenly; text-align: center; gap: 16px; }
    .fit-screen { min-height: calc((var(--VH, 1vh) * 100) - 36px); justify-content: space-evenly; gap: 12px; overflow: hidden; }
    .how-screen { min-height: calc((var(--VH, 1vh) * 100) - 90px); justify-content: start; gap: 10px; overflow: hidden; }
    .brand { font-size: clamp(32px, 8vw, 42px); font-weight: 800; }
    h1 { font-size: clamp(28px, 7vw, 34px); margin: 0; line-height: 1.08; }
    h2 { margin: 0 0 8px; }
    h3 { margin: 18px 0 8px; }
    p { color: #64748b; font-size: 16px; line-height: 1.35; }
    input, textarea, select {
      width: 100%;
      padding: 16px;
      border-radius: 18px;
      border: 1px solid #cbd5e1;
      margin-bottom: 12px;
      font-size: 16px;
      font-family: inherit;
    }
    textarea { min-height: 110px; resize: vertical; }
    select { background: white; cursor: pointer; }
    .card {
      background: rgba(255,255,255,.88);
      border: 1px solid rgba(255,255,255,.75);
      border-radius: 26px;
      padding: 18px;
      box-shadow: 0 16px 40px rgba(15,23,42,.10);
      margin-bottom: 14px;
    }
    .button { width: 100%; border: 0; border-radius: 18px; padding: 14px; font-size: 16px; font-weight: 700; cursor: pointer; margin-top: 8px; }
    .button:disabled { opacity: .45; cursor: not-allowed; }
    .primary { background: #0f172a; color: white; }
    .secondary { background: white; color: #0f172a; border: 1px solid #cbd5e1; }
    .green { background: #16a34a; color: white; }
    .red { background: #ef4444; color: white; }
    .video-unlocked-btn { background: #f3e8ff; color: #5b21b6; border: 1px solid #d8b4fe; }
    .muted { color: #64748b; }
    .row { display: flex; align-items: center; gap: 14px; }
    .between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
    .avatar, .big-avatar { border-radius: 50%; background: linear-gradient(135deg, #bfdbfe, #ddd6fe); flex-shrink: 0; }
    .avatar { width: 62px; height: 62px; }
    .big-avatar { width: 150px; height: 150px; margin: 0 auto; animation: pulse 1.6s infinite; }
    @keyframes pulse { 50% { transform: scale(1.04); opacity: .75; } }
    .voice-orbit { width: 250px; height: 250px; border-radius: 50%; margin: 40px auto; background: radial-gradient(circle, #93c5fd 0 25%, #dbeafe 26% 52%, transparent 53%); animation: pulse 1.4s infinite; display: flex; align-items: center; justify-content: center; }
    .voice-orbit span { background: white; color: #334155; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 800; box-shadow: 0 8px 24px rgba(15,23,42,.10); }
    .tag { display: inline-block; background: #eff6ff; color: #1d4ed8; padding: 7px 11px; border-radius: 999px; font-size: 13px; margin: 4px; }
    .chip { display: inline-flex; align-items: center; gap: 6px; padding: 10px 14px; border-radius: 999px; background: #ffffff; border: 1px solid #d7dfef; color: #243047; font-size: 14px; font-weight: 500; margin: 5px; cursor: pointer; }
    .chip.selected { background: #0f172a; color: white; border-color: #0f172a; }
    .badge { display: inline-block; background: #dcfce7; color: #166534; font-weight: 800; font-size: 13px; padding: 7px 11px; border-radius: 999px; margin: 4px; }
    .mutual-badge { background: #fce7f3; color: #9d174d; }
    .note-link { background: transparent; color: #1d4ed8; border: 0; cursor: pointer; font-weight: 800; font-size: 16px; padding: 0; margin: 8px 0; display: inline-block; }
   .form-note {
  font-size: 16px;
  line-height: 1.35;
  color: #334155;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  padding: 12px;
  border-radius: 16px;
  margin: -4px 0 12px;
  text-align: left;
}
    .interests-box { background: #dde1fa; padding: 12px; border-radius: 16px; text-align: left; height: 200px; max-height: 200px; overflow-y: auto; overflow-x: hidden; border: 1px solid #e2e8f0; margin-top: 14px; line-height: 1.25; font-size: 15px; }
    .interests-box b { display: block; margin-bottom: 6px; }
    .interests-box::-webkit-scrollbar { width: 8px; }
    .interests-box::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 999px; }
    .topbar { position: sticky; top: 0; background: linear-gradient(135deg, #f8fafc, #eaf3ff); padding: 16px 0 18px; z-index: 20; border-bottom: 1px solid rgba(203,213,225,.7); }
    .hamburger { width: 46px; height: 46px; border-radius: 14px; border: 1px solid #cbd5e1; background: white; font-size: 24px; cursor: pointer; box-shadow: 0 8px 22px rgba(15,23,42,.07); }
    .menu-panel { display: none; position: fixed; top: 76px; right: max(24px, calc((100vw - 460px) / 2 + 24px)); width: 250px; background: white; border: 1px solid #cbd5e1; border-radius: 22px; box-shadow: 0 24px 60px rgba(15,23,42,.22); padding: 10px; z-index: 1000; text-align: left; }
    .menu-panel.show { display: block; }
    .menu-item { display: block; width: 100%; border: 0; background: transparent; text-align: left; padding: 13px 14px; border-radius: 14px; font-size: 15px; cursor: pointer; }
    .menu-item:hover { background: #f1f5f9; }
    .mini-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; position: relative; z-index: 20; }
    .mini-brand { font-size: 22px; font-weight: 800; }
    .theme-bar { white-space: nowrap; overflow-x: auto; padding-bottom: 8px; margin-bottom: 12px; }
    .theme-bar button { display: inline-block; border: 1px solid #cbd5e1; background: white; border-radius: 999px; padding: 5px 12px; margin-right: 8px; font-weight: 800; cursor: pointer; }
    .theme-bar button.active { background: #0f172a; color: white; }
    .progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 16px 0 4px; }
    .step { background: #ede9fe; color: #5b21b6; padding: 8px 5px; border-radius: 12px; font-size: 12px; font-weight: 800; }
    .step.done { background: #dcfce7; color: #166534; }
    .call-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
    .feedback-grid { display: grid; grid-template-columns: 1fr; gap: 8px; }
    .feedback-grid .button { text-align: left; padding: 11px 16px; margin-top: 0; border-radius: 16px; font-size: 15px; background: white; }
    .modal-backdrop { position: fixed; inset: 0; background: rgba(15,23,42,.35); z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 20px; }
    .modal { width: min(720px, 100%); max-height: 80vh; overflow-y: auto; background: white; border-radius: 28px; padding: 24px; box-shadow: 0 28px 80px rgba(15,23,42,.28); }
    .history-item { border: 1px solid #e2e8f0; background: #f8fafc; border-radius: 18px; padding: 14px; margin: 12px 0; text-align: left; }
    .history-date { font-size: 13px; color: #64748b; font-weight: 800; margin-bottom: 6px; }
    .note-preview { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 16px; padding: 13px; margin-top: 10px; color: #475569; font-size: 14px; text-align: left; }
    .voice-record { display: flex; align-items: center; justify-content: center; gap: 10px; background: #f8fafc; border: 1px dashed #94a3b8; border-radius: 18px; padding: 16px; margin-bottom: 12px; color: #475569; font-weight: 800; }
    .saved-voice-note { display: flex; align-items: center; gap: 10px; background: #eef2ff; border: 1px solid #c7d2fe; color: #312e81; border-radius: 16px; padding: 12px; margin-top: 10px; font-weight: 800; }
    .voice-play { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #312e81; color: white; cursor: pointer; font-weight: 800; }
    .video-area { height: 260px; display: flex; align-items: center; justify-content: center; background: #111827; color: white; border-radius: 24px; }
    .video-placeholder { height: 210px; border: 2px dashed #cbd5e1; border-radius: 24px; display: flex; align-items: center; justify-content: center; background: #f8fafc; color: #64748b; text-align: center; padding: 18px; }
    .report-options { display: grid; gap: 12px; text-align: left; }
    .report-options label { background: white; border: 1px solid #cbd5e1; border-radius: 16px; padding: 14px; display: flex; gap: 10px; align-items: center; }
    .how-screen .card { padding: 14px 16px; margin-bottom: 6px; border-radius: 24px; }
    .how-screen h1 { font-size: clamp(26px, 6vw, 32px); }
    .how-screen h2 { font-size: 19px; margin-bottom: 4px; }
    .how-screen p { font-size: 15px; margin: 6px 0; line-height: 1.3; }
    @media (max-height: 740px) {
      .app { padding: 12px 16px; }
      .center { gap: 10px; }
      .card { padding: 14px; border-radius: 22px; }
      input, textarea, select { padding: 12px 14px; border-radius: 15px; }
      .button { padding: 12px; }
      .avatar { width: 52px; height: 52px; }
      .how-screen .card { padding: 12px 14px; }
      .how-screen h2 { font-size: 18px; }
      .how-screen p { font-size: 14px; }
    }
    @media (min-width: 800px) {
      .app { max-width: 920px; }
      .people-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
      .people-grid .card { margin-bottom: 0; }
      .menu-panel { right: max(24px, calc((100vw - 920px) / 2 + 24px)); }
    }
  

/* Live call/WebRTC additions */
.conversation-screen {
  min-height: calc((var(--VH, 1vh) * 100) - 72px);
  justify-content: space-evenly;
  gap: 10px;
  overflow: hidden;
  padding-bottom: 4px;
}
.conversation-screen h1 { font-size: clamp(24px, 6vw, 34px); }
.conversation-screen p { margin: 6px 0; }
.compact-orbit { width: min(58vw, 220px); height: min(58vw, 220px); margin: 8px auto; }
.self-preview {
  width: 110px;
  height: 82px;
  border-radius: 18px;
  background: rgba(255,255,255,.9);
  border: 1px solid #cbd5e1;
  box-shadow: 0 10px 26px rgba(15,23,42,.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  margin: 0 auto;
  font-weight: 800;
  font-size: 13px;
}
.mini-self { width: 38px; height: 38px; }
.video-area { position: relative; overflow: hidden; }
.video-area video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
}
.video-local {
  position: fixed;
  width: 96px;
  height: 128px;
  right: max(18px, calc((100vw - 460px) / 2 + 18px));
  bottom: 86px;
  border-radius: 16px;
  background: #111827;
  object-fit: cover;
  border: 2px solid white;
  z-index: 30;
}
.video-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
  color: white;
  font-weight: 800;
}
.connection-lost {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fecaca;
  border-radius: 18px;
  padding: 14px;
  font-weight: 800;
}
@media (max-height: 740px) {
  .conversation-screen { min-height: calc((var(--VH, 1vh) * 100) - 52px); gap: 7px; }
  .compact-orbit { width: 160px; height: 160px; }
  .self-preview { width: 92px; height: 66px; }
  .video-area { height: 34vh; min-height: 165px; }
  .video-local { width: 76px; height: 102px; bottom: 74px; right: 14px; }
  .conversation-screen .button { padding: 10px; }
}

.video-area {
  position: relative;
  overflow: hidden;
}

.video-area video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 24px;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.video-fallback {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 800;
}

.video-local {
  position: fixed;
  width: 96px;
  height: 128px;
  right: 22px;
  bottom: 26px;
  object-fit: cover;
  border-radius: 16px;
  border: 2px solid white;
  z-index: 3000;
  background: #111827;
}

.video-local {
  cursor: grab;
  user-select: none;
  touch-action: none;
}

.video-local:active {
  cursor: grabbing;
}

.history-line {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}

.history-line .note-link {
  margin: 0;
}

.password-wrap {
  position: relative;
}

.password-wrap input {
  padding-right: 52px;
}

.password-toggle {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.topbar .hamburger {
  position: absolute;
  top: 0px;
  right: 0;
}

.screen-dashboard {
  height: calc(var(--VH, 1vh) * 100);
  overflow: hidden;
}

.screen-dashboard .topbar {
  position: relative;
  top: auto;
  z-index: 50;
}

.screen-dashboard .dashboard-scroll {
  height: calc((var(--VH, 1vh) * 100) - 190px);
  overflow-y: auto;
  /* padding-top: 12px;
  padding-bottom: 30px;
  padding-left: 4px;
  padding-right: 4px; */
  padding: 6px;
  /* border-radius: 15PX; */
  border-radius: 26px;
  -webkit-overflow-scrolling: touch;
}

.screen-dashboard .topbar {
  padding-top: 0;
  padding-bottom: 8px;
}

.screen-dashboard .topbar h1 {
  font-size: 22px;
  line-height: 1;
  margin: 0 0 2px;
}

.screen-dashboard .you-are,
.screen-dashboard .dash-subtitle {
  font-size: 1em;
  line-height: 1.25;
}

.screen-dashboard .people-search {
  width: 91vw;
  font-size:.9em;
  height: 24px;
  min-height: 34px;
  padding: 4px 14px !important;
  margin: 8px 0 6px;
  border-radius: 14px;
  border:1px dotted gray;
  max-width: 866px;
}

.screen-dashboard .theme-bar {
  margin-bottom: 4px;
  padding-bottom: 4px;
}

.answer-off {
  color: #b91c1c;
  font-weight: 900;
}

.answer-on {
  color: #15803d;
  font-weight: 900;
}

.availability-badge.available {
  background: #dcfce7;
  color: #166534;
  font-weight: 800;
}

.availability-badge.offline {
  background: #fce7f3;
  color: #9f1239;
  font-weight: 800;
}

.search-match-badge {
  display: inline-block;
  background: #fef9c3;
  color: #854d0e;
  font-weight: 800;
  font-size: 13px;
  padding: 7px 11px;
  border-radius: 999px;
  margin-left: 8px;
}

.feedback-grid .button.selected-feedback {
  background: #0f172a !important;
  color: #ffffff !important;
  border-color: #0f172a !important;
}

.access-card {
  text-align: left;
}

.access-card h2 {
  text-align: left;
  margin-bottom: 16px;
}

.access-option {
  display: grid;
  grid-template-columns: 22px 1fr;
  column-gap: 12px;
  align-items: start;
  margin: 16px 0;
  text-align: left;
}

.access-option input {
  margin-top: 3px;
  justify-self: start;
}

.access-option span,
.access-option b,
.access-option .muted {
  text-align: left;
}

.access-option b {
  display: block;
  line-height: 1.2;
}

.access-option .muted {
  display: block;
  line-height: 1.25;
}

.access-option input[type="radio"] {
  width: auto;
  height: auto;
  min-width: 0;
  padding: 0;
  margin: 3px 0 0 0;
  transform: scale(0.75);
  justify-self: start;
}

.dashboard-scroll.answer-mode-off {
  /* background: #fec7cb; */
  background: #fdcbcb;
}

.dashboard-scroll.answer-mode-on {
  background: transparent;
}

.interests-box {
  white-space: pre-line;
    /* background:#dde1fa; */

  border:1px solid #c7cce8;

  box-shadow:
    inset 2px 2px 6px rgba(80,90,140,0.10),
    inset -1px -1px 2px rgba(255,255,255,0.45);

  /* border-radius:18px; */
}

.screen-profile,
.screen-account {
  min-height: calc(var(--VH, 1vh) * 100);
  display: flex;
  flex-direction: column;
}

.screen-profile > h1,
.screen-account > h1 {
  margin-top: 6px;
}

.screen-profile textarea {
  min-height: clamp(140px, 22vh, 230px);
}

.screen-profile .button.primary,
.screen-account .button.secondary {
  margin-top: auto;
  margin-bottom: clamp(14px, 4vh, 36px);
}

.screen-account .access-card {
  margin-top: clamp(10px, 3vh, 28px);
  margin-bottom: clamp(18px, 5vh, 44px);
}

.button.primary.talk-now-button {
  background: #16a34a;
  border-color: #16a34a;
  color: #ffffff;
}

.button.primary.talk-now-button:hover {
  background: #15803d;
  border-color: #15803d;
}

.history-link-text {
  text-decoration: underline;
}

.history-counts {
  text-decoration: none;
  color: black;
  font-weight: normal;
  font-size: 80%;  
}

.answer-mode-off .button.secondary {
  background:#f4bcbc;
}

.profile-section-label {
  font-size:1.05rem;
  font-weight:800;
  color:#334155;
  margin:14px 0 8px;
}

.tutorial-video-box {
  position: relative;
  height: auto;
  min-height: 0;
  padding: 0;
  overflow: hidden;
  background: #000;
}

.tutorial-video {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
  background: #000;
}

.video-click-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  color: white;
  font-size: 24px;
  font-weight: 900;
  text-shadow: 0 2px 12px rgba(0,0,0,.8);
}

.reliability-link {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.reliability-link:hover {
  opacity: .82;
}

/* .modal-card {
  width: min(720px, 100%);
  max-height: 80vh;
  overflow-y: auto;
  background: white;
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 28px 80px rgba(15,23,42,.28);
  position: relative;
  z-index: 2001;
} */

.close-button {
  border: 0;
  background: transparent;
  font-size: 28px;
  cursor: pointer;
}