/* Colors sampled from the FlutterFlow canvas (project scissor-z1uf6w), not invented.
   #c8072a primary: Sign Up button, links, profile card, chat bubbles, checkbox
   #e99eac search / finding-people page background
   #f0bec8 lighter ring on that page
   #e3e7ed email field fill
   #edd6ff chat wallpaper
   #ffffff page background
   #000000 text
*/

* { box-sizing: border-box; }

html, body {
  margin: 0;
  background: #ffffff;
  color: #000000;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}

button, input, textarea {
  font: inherit;
  color: #000000;
}

.phone {
  max-width: 420px;
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 28px 22px 24px;
  background: #ffffff;
}

/* Entry only. Legal drafts stay on the plain .screen so the DRAFT line stays clear. */
.screen.entry {
  background-color: #ffffff;
  background-image: url("img/entry-bg.png");
  background-repeat: no-repeat;
  background-position: center top;
  background-size: cover;
}

.logo {
  display: block;
  width: 90px;
  height: 88px;
  margin: 36px auto 0;
  border-radius: 18px;
}

.screen.entry .wordmark {
  margin-top: 12px;
}

.wordmark {
  margin: 48px 0 28px;
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.04em;
  text-align: center;
}

h1 {
  margin: 0 0 18px;
  font-size: 28px;
  font-weight: 700;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

label.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
}

input[type="email"],
input[type="password"],
input[type="text"],
input[type="date"],
textarea {
  width: 100%;
  background: #e3e7ed;
  border: 1px solid #e3e7ed;
  border-radius: 14px;
  padding: 14px 16px;
  outline: none;
}

textarea { min-height: 88px; resize: vertical; }

input:focus, textarea:focus {
  border-color: #c8072a;
}

.btn {
  display: block;
  width: 100%;
  background: #c8072a;
  color: #ffffff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
}

.btn:disabled { cursor: default; }

.btn.slim {
  width: auto;
  padding: 8px 14px;
  font-size: 14px;
  font-weight: 600;
}

.linkish {
  background: none;
  border: none;
  padding: 0;
  color: #c8072a;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.note {
  margin: 16px 0 0;
  text-align: center;
  font-size: 14px;
}

.error {
  margin: 0 0 12px;
  color: #c8072a;
  font-size: 14px;
  white-space: pre-wrap;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px 8px;
  background: #ffffff;
}

.topbar .wordmark {
  margin: 0;
  font-size: 22px;
  text-align: left;
}

.grow { flex: 1; }

.nav {
  display: flex;
  background: #ffffff;
  border-top: 1px solid #e3e7ed;
}

.nav button {
  flex: 1;
  background: #ffffff;
  color: #000000;
  border: none;
  padding: 14px 4px 16px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.nav button.on { color: #c8072a; }

.discover {
  flex: 1;
  background-color: #e99eac;
  background-image: url("img/discover-bg.png");
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 22px 32px;
  text-align: center;
  gap: 22px;
}

.discover.results {
  justify-content: flex-start;
  align-items: stretch;
  text-align: left;
  color: #000000;
}

.ring {
  width: 168px;
  height: 168px;
  border-radius: 50%;
  background: #f0bec8;
  display: grid;
  place-items: center;
}

.ring span {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #ffffff;
}

.finding {
  margin: 0;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.closed-copy {
  margin: 0;
  max-width: 280px;
  color: #ffffff;
  font-size: 18px;
  font-weight: 600;
}

.card {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 16px;
}

.photo, .photo-ph {
  width: 100%;
  height: 240px;
  object-fit: cover;
  display: block;
  background: #e3e7ed;
}

.photo-ph {
  display: grid;
  place-items: center;
  color: #000000;
  font-size: 14px;
}

.card-body { padding: 14px 14px 16px; }

.name {
  margin: 0 0 6px;
  font-size: 22px;
  font-weight: 700;
}

.meta {
  margin: 0;
  font-size: 15px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.profile-card {
  background: #c8072a;
  color: #ffffff;
  border-radius: 18px;
  padding: 22px 18px;
  margin-bottom: 22px;
}

.profile-card p {
  margin: 0;
  font-size: 13px;
}

.profile-card h2 {
  margin: 4px 0 0;
  font-size: 28px;
}

fieldset {
  border: none;
  margin: 0 0 18px;
  padding: 0;
}

legend {
  font-weight: 700;
  margin-bottom: 8px;
}

.choice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0;
  font-weight: 600;
}

input[type="radio"],
input[type="checkbox"] {
  accent-color: #c8072a;
  width: 18px;
  height: 18px;
}

.list {
  display: flex;
  flex-direction: column;
}

.row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: #ffffff;
  border: none;
  border-bottom: 1px solid #e3e7ed;
  padding: 12px 18px;
  cursor: pointer;
}

.avatar, .avatar-ph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  background: #e3e7ed;
  flex: none;
}

.avatar-ph {
  display: grid;
  place-items: center;
  font-size: 12px;
  color: #000000;
}

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

.chat {
  flex: 1;
  display: flex;
  flex-direction: column;
  background-color: #edd6ff;
  background-image: url("img/chat-bg.png");
  background-repeat: repeat;
  background-size: 320px 320px;
  min-height: 0;
}

.messages {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.bubble {
  max-width: 78%;
  padding: 12px 14px;
  border-radius: 16px;
  white-space: pre-wrap;
  word-break: break-word;
}

.bubble.mine {
  margin-left: auto;
  background: #c8072a;
  color: #ffffff;
  border-bottom-right-radius: 4px;
}

.bubble.theirs {
  margin-right: auto;
  background: #ffffff;
  color: #000000;
  border-bottom-left-radius: 4px;
}

.composer {
  display: flex;
  gap: 8px;
  padding: 10px 12px 16px;
  background: #edd6ff;
}

.composer input[type="text"] {
  border-radius: 999px;
  background: #e3e7ed;
}

.panel {
  margin-top: 8px;
  padding: 0 16px 12px;
  background: #ffffff;
}

.empty {
  margin: 24px 18px;
  color: #000000;
}

.block-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid #e3e7ed;
}

.phone.draft-links {
  min-height: 0;
}

.swipe-hint {
  margin: 0;
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  text-align: center;
}

.card.swipe {
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.card.swipe.dragging {
  cursor: grabbing;
}
