/* 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;
}

/* ---- Release-1 app shell (2026-10-12). Palette only: #c8072a #e99eac #f0bec8 #e3e7ed #edd6ff #ffffff #000000 ---- */
#app.phone { position: relative; padding-bottom: 76px; }
.topbar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #ffffff; border-bottom: 1px solid #e3e7ed; position: sticky; top: 0; z-index: 5; }
.topbar .title { font-size: 18px; }
.mini-logo { width: 34px; height: 34px; border-radius: 10px; }
.wordmark-sm { font-size: 22px; font-weight: 800; letter-spacing: -0.04em; color: #c8072a; }
.iconbtn { border: 0; background: #e3e7ed; color: #000000; border-radius: 999px; min-width: 38px; height: 38px; padding: 0 14px; font-size: 15px; font-weight: 600; cursor: pointer; }
.topbar .iconbtn[aria-label="Back"] { font-size: 26px; line-height: 1; padding: 0 12px; }
.filters-btn { background: #f0bec8; color: #c8072a; }

.tabbar { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 420px; display: grid; grid-template-columns: repeat(4, 1fr); background: #ffffff; border-top: 1px solid #e3e7ed; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); z-index: 10; }
.tabbar button { position: relative; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: #000000; opacity: 0.55; padding: 6px 0; cursor: pointer; }
.tabbar button svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.tabbar button.on { color: #c8072a; opacity: 1; }
.tabbar button.on svg { fill: #f0bec8; }
.dot { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: #c8072a; color: #ffffff; font-size: 11px; font-weight: 700; }
.tabbar .dot { position: absolute; top: 0; left: 56%; }

.discover.results { padding: 14px 14px 8px; background: #ffffff; }
.deck { position: relative; height: min(68vh, 560px); margin: 4px 0 8px; }
.deck .card { position: absolute; inset: 0; margin: 0; border-radius: 22px; overflow: hidden; background: #000000; border: 0; box-shadow: 0 10px 28px -12px #000000; display: block; }
.deck .card .photo, .deck .card .photo-ph { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; border-radius: 0; }
.deck .card .photo-ph { background: #f0bec8; color: #c8072a; display: grid; place-items: center; font-weight: 600; }
.deck .card .card-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 70px 18px 16px; color: #ffffff; background: linear-gradient(to top, #000000, transparent); }
.deck .card .name { color: #ffffff; font-size: 28px; margin: 0; }
.deck .card .meta { color: #ffffff; opacity: 0.9; }
.deck .card .actions .btn.slim { background: transparent; color: #ffffff; border: 1px solid #ffffff; opacity: 0.85; }
.age { font-weight: 400; }
.card.next { transform: scale(0.95) translateY(12px); opacity: 0.85; }
.card.swipe { touch-action: pan-y; cursor: grab; transition: transform 220ms ease; will-change: transform; }
.card.swipe.dragging { cursor: grabbing; }
.stamp { position: absolute; top: 26px; z-index: 2; padding: 4px 12px; border: 3px solid; border-radius: 10px; font-size: 26px; font-weight: 900; letter-spacing: 0.08em; background: #ffffff; }
.stamp.like { left: 20px; color: #c8072a; transform: rotate(-14deg); opacity: var(--like, 0); }
.stamp.nope { right: 20px; color: #000000; transform: rotate(14deg); opacity: var(--nope, 0); }
.empty-deck { height: 100%; border-radius: 22px; background: #edd6ff; display: grid; place-content: center; gap: 14px; text-align: center; padding: 20px; }
.swipe-hint { text-align: center; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.chip { padding: 4px 10px; border-radius: 999px; background: #f0bec8; color: #000000; font-size: 13px; }
.bio { margin: 6px 0 0; line-height: 1.4; }

.btn { border-radius: 999px; }
.btn.ghost { background: #ffffff; color: #c8072a; border: 2px solid #c8072a; }
.btn.ghost.light { background: transparent; color: #ffffff; border-color: #ffffff; }
.row-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.panel { border-radius: 18px; background: #ffffff; border: 1px solid #e3e7ed; padding: 16px; margin: 0 0 14px; }
.panel.soft { background: #edd6ff; border-color: #edd6ff; }
.panel h2 { font-size: 17px; margin: 0 0 10px; display: flex; justify-content: space-between; }
.explain { background: #ffffff; border-radius: 14px; padding: 12px; margin-top: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.toggle { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-weight: 600; }
.toggle input { width: 22px; height: 22px; accent-color: #c8072a; }
input[type="range"] { width: 100%; accent-color: #c8072a; }
.field input, .field textarea { width: 100%; border: 0; background: #e3e7ed; border-radius: 12px; padding: 12px; margin-top: 6px; display: block; }
.count { float: right; font-size: 12px; opacity: 0.6; }
.public { font-style: normal; font-size: 11px; font-weight: 700; color: #ffffff; background: #c8072a; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.badge-label { align-self: flex-start; margin: 0; padding: 6px 12px; border-radius: 999px; background: #f0bec8; color: #c8072a; font-weight: 700; font-size: 13px; }

.profile-card { display: flex; align-items: center; gap: 14px; border-radius: 22px; }
.avatar.big, .avatar-ph.big { width: 72px; height: 72px; }
.meter { margin: 0 0 14px; padding: 14px 16px; border-radius: 18px; background: #f0bec8; }
.meter-bar { height: 10px; border-radius: 999px; background: #ffffff; overflow: hidden; margin: 8px 0 4px; }
.meter-bar span { display: block; height: 100%; background: #c8072a; border-radius: 999px; transition: width 400ms ease; }
.menu { display: flex; flex-direction: column; border-radius: 18px; overflow: hidden; border: 1px solid #e3e7ed; margin-bottom: 14px; }
.menu-row { text-align: left; border: 0; border-bottom: 1px solid #e3e7ed; background: #ffffff; padding: 15px 16px; font-weight: 600; cursor: pointer; }
.menu-row:last-child { border-bottom: 0; }
.menu-row::after { content: "\203A"; float: right; color: #c8072a; }

.row { display: flex; align-items: center; gap: 12px; }
.row-text { flex: 1; min-width: 0; text-align: left; }
.preview { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-side { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.row.unread strong, .row.unread .preview { font-weight: 800; opacity: 1; }

.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.match-tile { border: 0; padding: 0; background: #edd6ff; border-radius: 18px; overflow: hidden; cursor: pointer; text-align: left; }
.match-tile .photo, .match-tile .photo-ph { width: 100%; aspect-ratio: 3/4; object-fit: cover; border-radius: 0; display: grid; place-items: center; }
.match-tile span { display: block; padding: 8px 12px; font-weight: 700; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; margin-bottom: 12px; }
.gallery .photo, .gallery .photo-ph { flex: 0 0 100%; scroll-snap-align: start; aspect-ratio: 3/4; object-fit: cover; border-radius: 22px; display: grid; place-items: center; }
.card-body.flat { padding: 0 2px 14px; }

.match-screen { position: fixed; inset: 0; z-index: 20; background: #c8072a; color: #ffffff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; animation: pop 360ms ease-out; }
.match-screen h1 { font-size: 40px; margin: 0; }
.match-logo { width: 64px; height: 64px; border-radius: 16px; }
.match-photo { width: 180px; height: 180px; border-radius: 999px; overflow: hidden; border: 4px solid #ffffff; }
.match-photo .photo, .match-photo .photo-ph { width: 100%; height: 100%; object-fit: cover; background: #f0bec8; display: grid; place-items: center; color: #c8072a; }
.match-screen .btn { width: 100%; max-width: 300px; background: #ffffff; color: #c8072a; }
.match-screen .btn.ghost.light { background: transparent; color: #ffffff; }
@keyframes pop { from { opacity: 0; transform: scale(0.92); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .match-screen, .card.swipe, .meter-bar span { animation: none; transition: none; } }
body.in-app .draft-links { display: none; }
.deck { height: calc(100svh - 210px); min-height: 380px; max-height: 620px; }
.gallery .photo { height: auto; }
.gallery img.photo { aspect-ratio: 3/4; height: auto; }
.prompt-card { margin-top: 8px; padding: 10px 12px; border-radius: 14px; background: #ffffff; color: #000000; }
.prompt-q { margin: 0; font-size: 12px; font-weight: 700; color: #c8072a; }
.prompt-a { margin: 2px 0 0; font-size: 15px; }
.meta.small { font-size: 13px; }
.prompt-slot { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.prompt-slot select, .prompt-slot textarea { width: 100%; border: 0; background: #ffffff; border-radius: 12px; padding: 10px; font: inherit; }
.deck .card .card-body { max-height: 70%; overflow-y: auto; }
.card-body.flat .prompt-card { background: #edd6ff; }
.small-link { font-size: 12px; margin-top: 4px; padding: 0; }
.identity-notice { margin: 4px 0 -4px; padding: 10px 12px; border-radius: 12px; background: #edd6ff; font-size: 14px; }
.field .public { align-self: flex-start; width: auto; margin: 2px 0 0; }
.loc-row { align-items: center; justify-content: space-between; } .loc-updated { font-size: 13px; }
