/*
 * styles.css — the calm, trustworthy look.
 *
 * Guiding rules (from the blueprint):
 *  - Clean, calm, safe. Not flashy. This holds people's IDs and loved ones.
 *  - Big buttons, few words. Easy to tap on a cheap phone.
 *  - Fast on a slow connection: no downloaded fonts, no images, no libraries.
 *    Everything here is plain text and hand-drawn icons, so the whole app is tiny.
 */

:root {
  --paper:      #F6F4EF;   /* warm, quiet background */
  --card:       #FFFFFF;
  --ink:        #23303A;   /* soft dark text, gentler than pure black */
  --ink-soft:   #5B6B74;   /* secondary text */
  --line:       #E5E1D8;   /* soft borders */
  --line-soft:  #EFECE4;

  --brand:      #0E7C66;   /* deep calm teal-green = trust */
  --brand-dark: #0B5F4E;
  --brand-tint: #E7F1EE;

  --lost:       #A75A2B;   /* warm clay for LOST — clear, not alarming */
  --lost-tint:  #F6ECE3;
  --found:      #0E7C66;   /* teal for FOUND */
  --found-tint: #E7F1EE;

  --danger:     #B23B3B;
  --radius:     16px;
  --radius-lg:  22px;
  --shadow:     0 1px 2px rgba(20,40,50,.05), 0 8px 24px rgba(20,40,50,.06);
  --tap:        56px;      /* minimum comfortable tap height */
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  /* System fonts = nothing to download = instant on slow connections */
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  padding-top: calc(14px + env(safe-area-inset-top));
  background: var(--card);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 10;
}
.brand { display: flex; align-items: center; gap: 11px; }
.brand-mark {
  display: grid; place-items: center;
  width: 46px; height: 46px;
  border-radius: 13px;
  background: var(--brand-tint);
  color: var(--brand);
}
.brand-mark svg { width: 30px; height: 30px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-weight: 800; font-size: 25px; letter-spacing: .2px; color: var(--brand-dark); }
.brand-tag { font-size: 13px; color: var(--ink-soft); }

.lang {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--ink-soft);
  border-radius: 999px;
  min-width: 46px;
  height: 38px;
  padding: 0 12px;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
}
.lang:active { background: var(--paper); }

/* ---------- Stage / screens ---------- */
.stage {
  flex: 1;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  padding: 22px 18px 8px;
}

/* Keep the reading screens at their original comfortable width — unchanged.
   Only the two list-heavy screens (My reports, the keeper room) use the extra
   width, and only on a wide screen, to show lost and found side by side. */
#screen-home, #screen-signin, #screen-lost, #screen-found,
#screen-done, #screen-proof, #screen-chat {
  max-width: 520px;
  margin-left: auto;
  margin-right: auto;
}
.screen { animation: fade .18s ease-out; }
@keyframes fade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

.lead {
  font-size: 18px;
  color: var(--ink);
  margin: 6px 2px 22px;
}

/* ---------- Landing: proverb + explaining/trust text (plain, existing style) ---------- */
.proverb {
  font-size: 20px;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.5;
  margin: 6px 2px 30px;
}
.landing { margin-top: 42px; }
.landing > :first-child { margin-top: 0; }
.landing-h {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.4;
  margin: 34px 0 12px;
}
.landing p {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.6;
  margin: 0 0 16px;
}
.landing-list { margin: 0 0 16px; padding-left: 22px; }
.landing-list li {
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.55;
  margin: 8px 0;
}

/* ---------- The two doors (LOST / FOUND) ---------- */
.doors { display: flex; flex-direction: column; gap: 16px; }

.door {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  text-align: left;
  padding: 22px 20px;
  border-radius: var(--radius-lg);
  border: 2px solid transparent;
  background: var(--card);
  box-shadow: var(--shadow);
  cursor: pointer;
  min-height: 96px;
  transition: transform .06s ease, border-color .15s ease;
}
.door:active { transform: scale(.99); }
.door-icon {
  flex: 0 0 auto;
  width: 60px; height: 60px;
  border-radius: 16px;
  display: grid; place-items: center;
}
.door-text { display: flex; flex-direction: column; gap: 3px; }
.door-title { font-size: 20px; font-weight: 700; }
.door-sub { font-size: 15px; color: var(--ink-soft); }

.door-lost { border-color: var(--lost-tint); }
.door-lost .door-icon { background: var(--lost-tint); color: var(--lost); }
.door-lost .door-title { color: var(--lost); }
.door-lost:hover { border-color: var(--lost); }

.door-found { border-color: var(--found-tint); }
.door-found .door-icon { background: var(--found-tint); color: var(--found); }
.door-found .door-title { color: var(--found); }
.door-found:hover { border-color: var(--found); }

/* ---------- Privacy note under the doors ---------- */
.privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 26px 4px 8px;
  padding: 14px 16px;
  background: var(--brand-tint);
  border-radius: var(--radius);
  color: var(--brand-dark);
  font-size: 14.5px;
}
.privacy-note .lock { flex: 0 0 auto; margin-top: 1px; color: var(--brand); }

/* ---------- Back link ---------- */
.back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--ink-soft);
  font-size: 16px;
  font-weight: 600;
  padding: 6px 4px 6px 0;
  margin: 0 0 6px -2px;
  cursor: pointer;
}
.back:active { color: var(--ink); }

.screen-title { font-size: 25px; font-weight: 750; margin: 4px 0 4px; }
.screen-lead { color: var(--ink-soft); margin: 0 0 20px; font-size: 16px; }

/* ---------- Forms ---------- */
.lf-form { display: flex; flex-direction: column; gap: 20px; }

.field { display: flex; flex-direction: column; gap: 7px; }
.field > label { font-weight: 650; font-size: 16.5px; }
.field .help { font-size: 14px; color: var(--ink-soft); margin: -2px 0 2px; }

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--line-soft);
  border-radius: 999px;
  padding: 2px 9px;
  margin-left: 8px;
  vertical-align: middle;
}
.tag.req { color: var(--lost); background: var(--lost-tint); }

.input, .textarea, .select {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 14px 15px;
  min-height: var(--tap);
}
.textarea { min-height: 104px; resize: vertical; line-height: 1.45; }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-tint);
}
.input.invalid, .textarea.invalid { border-color: var(--danger); }
.field-error { color: var(--danger); font-size: 14px; font-weight: 600; }

/* money input with a P prefix */
.money { position: relative; display: flex; align-items: center; }
.money .prefix {
  position: absolute; left: 15px;
  font-weight: 700; color: var(--ink-soft);
}
.money .input { padding-left: 34px; }

/* ---------- Kind chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1.5px solid var(--line);
  background: var(--card);
  color: var(--ink);
  border-radius: 999px;
  padding: 11px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  min-height: 46px;
}
.chip[aria-pressed="true"] {
  border-color: var(--brand);
  background: var(--brand-tint);
  color: var(--brand-dark);
}

/* ---------- Photo picker ---------- */
.photo input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; overflow: hidden; }
.photo-btn {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1.5px dashed var(--line);
  background: var(--card);
  color: var(--brand-dark);
  border-radius: 14px;
  padding: 14px 16px;
  font: inherit; font-weight: 650;
  cursor: pointer;
  min-height: var(--tap);
  width: 100%;
  justify-content: center;
}
.photo-btn:active { background: var(--paper); }
.photo-preview { display: none; margin-top: 10px; }
.photo-preview img {
  width: 100%; max-height: 240px; object-fit: cover;
  border-radius: 14px; border: 1px solid var(--line);
  display: block;
}
.photo-tools { display: flex; gap: 14px; margin-top: 8px; }
.photo-tools button {
  background: none; border: none; color: var(--brand-dark);
  font: inherit; font-weight: 650; cursor: pointer; padding: 4px 0;
}
.photo-tools button.remove { color: var(--danger); }

/* ---------- Contact group ---------- */
.contact-group {
  border: 1px solid var(--line);
  background: var(--card);
  border-radius: var(--radius);
  padding: 16px;
  display: flex; flex-direction: column; gap: 16px;
}
.contact-head { display: flex; flex-direction: column; gap: 4px; }
.contact-head h2 { font-size: 17px; margin: 0; }
.contact-head .note {
  font-size: 13.5px; color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 9px 11px; border-radius: 11px;
  display: flex; align-items: flex-start; gap: 7px;
}

/* ---------- Buttons ---------- */
.btn {
  width: 100%;
  font: inherit;
  font-weight: 700;
  font-size: 18px;
  border: none;
  border-radius: 15px;
  padding: 17px;
  min-height: 60px;
  cursor: pointer;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: var(--shadow); }
.btn-primary:active { background: var(--brand-dark); }
.btn-quiet { background: transparent; color: var(--ink-soft); box-shadow: none; }
.btn-quiet:active { color: var(--ink); }

/* ---------- Done screen ---------- */
.done-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 30px 22px;
  text-align: center;
  margin-top: 12px;
}
.done-check {
  display: grid; place-items: center;
  width: 74px; height: 74px;
  border-radius: 50%;
  background: var(--brand-tint);
  color: var(--brand);
  margin: 0 auto 16px;
}
.done-title { font-size: 24px; margin: 0 0 10px; }
.done-body { color: var(--ink-soft); font-size: 16.5px; margin: 0 auto 16px; max-width: 34ch; }
.done-reassure {
  display: inline-flex; align-items: center; gap: 7px;
  color: var(--brand-dark); font-size: 14.5px; font-weight: 600;
  background: var(--brand-tint); padding: 8px 14px; border-radius: 999px;
  margin: 0 0 22px;
}
.done-actions { display: flex; flex-direction: column; gap: 8px; }

/* ---------- Footer ---------- */
.pagefoot {
  text-align: center;
  color: var(--ink-soft);
  font-size: 13px;
  padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%; bottom: 26px;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 15px;
  box-shadow: var(--shadow);
  z-index: 50;
}

/* ---------- "See my reports" link on home ---------- */
.linkrow {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  width: 100%;
  margin: 16px 0 4px;
  padding: 14px;
  background: none;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--brand-dark);
  font: inherit; font-weight: 650; font-size: 16px;
  cursor: pointer;
  min-height: var(--tap);
}
.linkrow:active { background: var(--card); }

/* ---------- Keeper link in the footer (discreet) ---------- */
.pagefoot { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.keeper-link {
  background: none; border: none;
  color: var(--ink-soft); text-decoration: underline;
  font: inherit; font-size: 12.5px; cursor: pointer; opacity: .75;
  padding: 4px 8px;
}
.keeper-link:active { color: var(--ink); }

/* ---------- My reports (a person's own items) ---------- */
.stack { display: flex; flex-direction: column; gap: 14px; }
.mine-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 16px 14px;
}
.mine-card.is-matched { border-color: var(--brand); }
.mine-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.mine-what { font-weight: 700; font-size: 17.5px; }
.mine-badge { font-size: 12px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.badge-lost { color: var(--lost); background: var(--lost-tint); }
.badge-found { color: var(--found); background: var(--found-tint); }
.mine-meta { color: var(--ink-soft); font-size: 14.5px; margin-top: 4px; }
.mine-status {
  display: flex; align-items: flex-start; gap: 9px;
  margin-top: 12px; padding: 12px 13px;
  border-radius: 12px; font-size: 14.5px; font-weight: 600;
}
.mine-status-icon { flex: 0 0 auto; margin-top: 1px; }
.mine-status.wait { background: var(--paper); color: var(--ink-soft); }
.mine-status.good { background: var(--brand-tint); color: var(--brand-dark); }

/* ---------- Keeper: passcode gate ---------- */
.keeper-gate { text-align: center; padding-top: 8px; }
.keeper-gate .field { text-align: left; margin-top: 18px; }
.keeper-key {
  display: grid; place-items: center;
  width: 68px; height: 68px; border-radius: 50%;
  background: var(--brand-tint); color: var(--brand);
  margin: 6px auto 14px;
}

/* ---------- Keeper: dashboard ---------- */
.keeper-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.pill-btn {
  flex: 0 0 auto;
  border: 1px solid var(--line); background: var(--card);
  color: var(--ink-soft); border-radius: 999px;
  padding: 8px 14px; font: inherit; font-weight: 600; font-size: 13.5px; cursor: pointer;
  min-height: 40px;
}
.pill-btn:active { background: var(--paper); }

.counts { display: flex; gap: 10px; margin: 18px 0 6px; }
.count-box {
  flex: 1; text-align: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 6px;
}
.count-n { display: block; font-size: 24px; font-weight: 800; color: var(--brand-dark); }
.count-l { display: block; font-size: 12px; color: var(--ink-soft); margin-top: 2px; }

.keeper-h2 { font-size: 18px; margin: 26px 0 4px; }
.keeper-sub { color: var(--ink-soft); font-size: 14.5px; margin: 0 0 12px; }
.empty-box {
  background: var(--card); border: 1px dashed var(--line); border-radius: 14px;
  padding: 18px; text-align: center; color: var(--ink-soft); font-size: 15px;
}

/* possible-match card */
.match-card {
  background: var(--card); border: 1.5px solid var(--brand-tint);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 16px; margin-bottom: 14px;
}
.match-pair { display: flex; align-items: stretch; gap: 8px; }
.match-side { flex: 1; display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 13px; }
.match-lost { background: var(--lost-tint); }
.match-found { background: var(--found-tint); }
.side-head { font-size: 11.5px; font-weight: 700; letter-spacing: .4px; opacity: .8; }
.match-lost .side-head { color: var(--lost); }
.match-found .side-head { color: var(--found); }
.side-what { font-weight: 700; font-size: 16px; }
.side-meta { font-size: 13.5px; color: var(--ink-soft); }
.side-desc { font-size: 13.5px; color: var(--ink); margin-top: 3px; }
.match-mid { display: grid; place-items: center; color: var(--brand); flex: 0 0 auto; }

.why { margin: 14px 0 4px; background: var(--paper); border-radius: 12px; padding: 12px 14px; }
.why-title { font-size: 12.5px; font-weight: 700; color: var(--ink-soft); text-transform: uppercase; letter-spacing: .4px; }
.why ul { margin: 8px 0 0; padding-left: 18px; }
.why li { font-size: 14.5px; margin: 3px 0; }
.why li b { color: var(--brand-dark); }

.match-actions { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.match-actions .btn { min-height: 52px; font-size: 16.5px; }

/* full-room report rows */
.report-row {
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; margin-bottom: 10px;
}
.row-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.row-what { font-weight: 700; font-size: 16px; }
.row-tag { font-size: 11.5px; font-weight: 700; border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.tag-open { color: var(--ink-soft); background: var(--line-soft); }
.tag-matched { color: var(--brand-dark); background: var(--brand-tint); }
.row-meta { font-size: 13.5px; color: var(--ink-soft); margin-top: 4px; }
.row-desc { font-size: 14px; margin-top: 4px; }
.row-contact {
  margin-top: 10px; padding-top: 10px; border-top: 1px dashed var(--line);
  font-size: 14px; color: var(--ink);
}
.row-contact-label {
  display: block; font-size: 11px; font-weight: 700; letter-spacing: .3px;
  color: var(--lost); text-transform: uppercase; margin-bottom: 3px;
}
.btn.danger { color: var(--danger); margin-top: 18px; }

/* ---------- Step 3: journey bits on My reports ---------- */
.mine-status.pending { background: #FBF3E4; color: #8a6416; }
.mine-btn { margin-top: 12px; min-height: 52px; font-size: 16.5px; }
.keeper-note {
  margin-top: 10px; padding: 10px 12px; border-radius: 11px;
  background: var(--lost-tint); color: var(--ink); font-size: 14px;
}
.keeper-note b { color: var(--lost); }

/* ---------- Prove it is yours ---------- */
.recall-card {
  display: flex; flex-direction: column; gap: 3px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 13px 15px; margin-bottom: 18px;
}
.recall-label { font-size: 11.5px; font-weight: 700; letter-spacing: .3px; color: var(--lost); text-transform: uppercase; }
.recall-what { font-weight: 700; font-size: 17px; }

/* ---------- Safe conversation ---------- */
.chat-head { margin-bottom: 4px; }
.chat-head .screen-title { margin-bottom: 2px; }
.chat-with { color: var(--ink-soft); font-size: 15px; margin: 0 0 10px; }
.chat-safety {
  display: flex; align-items: flex-start; gap: 8px;
  background: var(--brand-tint); color: var(--brand-dark);
  padding: 11px 13px; border-radius: 12px; font-size: 13.5px; margin: 0 0 14px;
}
.chat-safety .lock { flex: 0 0 auto; margin-top: 1px; color: var(--brand); }

.reward-banner {
  display: flex; flex-direction: column; gap: 3px;
  background: #FBF3E4; border: 1px solid #F0E2C4; border-radius: 14px;
  padding: 13px 15px; margin-bottom: 14px; font-size: 14.5px; color: #6b5316;
}
.reward-banner.muted { background: var(--paper); border-color: var(--line); color: var(--ink-soft); }
.reward-title { font-size: 11.5px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: #a97e1f; }

.chat-thread {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 16px;
  padding: 14px; min-height: 220px; max-height: 46vh; overflow-y: auto;
}
.chat-empty { color: var(--ink-soft); font-size: 14.5px; text-align: center; margin: auto; }
.msg { max-width: 82%; display: flex; flex-direction: column; gap: 2px; padding: 9px 13px; border-radius: 15px; }
.msg-who { font-size: 11px; font-weight: 700; opacity: .7; }
.msg-text { font-size: 15.5px; line-height: 1.35; }
.msg-me { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 5px; }
.msg-me .msg-who { color: #fff; opacity: .85; }
.msg-them { align-self: flex-start; background: var(--paper); color: var(--ink); border-bottom-left-radius: 5px; }
.msg-keeper {
  align-self: center; max-width: 90%; text-align: center;
  background: var(--lost-tint); color: var(--ink); font-size: 14px; border-radius: 12px;
}
.msg-keeper .msg-who { color: var(--lost); display: block; }

.chat-compose { display: flex; gap: 8px; margin-top: 12px; }
.chat-compose .input { flex: 1; }
.chat-compose .btn { width: auto; padding: 0 20px; min-height: var(--tap); }

/* ---------- Keeper: proof review ---------- */
.proof-card {
  background: var(--card); border: 1.5px solid #F0E2C4; border-radius: var(--radius-lg);
  box-shadow: var(--shadow); padding: 16px; margin-bottom: 14px;
}
.proof-block { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 13px; margin-bottom: 10px; }
.proof-block.owner { background: #FBF3E4; }
.proof-block.found { background: var(--found-tint); }
.proof-label { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; opacity: .8; }
.proof-block.owner .proof-label { color: #a97e1f; }
.proof-block.found .proof-label { color: var(--found); }
.proof-text { font-size: 16px; font-weight: 600; }
.keeper-note-input { margin-bottom: 10px; }

/* ---------- Keeper: conversations ---------- */
.conv-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 14px; margin-bottom: 14px;
}
.conv-title { font-size: 15px; margin-bottom: 8px; }
.conv-reward { font-size: 13px; color: #a97e1f; background: #FBF3E4; border-radius: 10px; padding: 7px 10px; margin-bottom: 8px; }
.conv-thread {
  display: flex; flex-direction: column; gap: 6px;
  background: var(--paper); border-radius: 12px; padding: 11px; margin-bottom: 10px;
  max-height: 200px; overflow-y: auto;
}
.conv-msg { font-size: 14px; }
.conv-msg b { color: var(--brand-dark); }
.conv-keeper b { color: var(--lost); }
.conv-empty { color: var(--ink-soft); font-size: 13.5px; text-align: center; }
.conv-compose { display: flex; gap: 8px; margin-bottom: 10px; }
.conv-compose .input { flex: 1; min-height: 46px; }
.conv-compose .pill-btn { white-space: nowrap; }

/* ---------- Step 3B: signing in (the way back in) ---------- */
.signin-alt { display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; }
.linklike {
  background: none; border: none; color: var(--brand-dark);
  font: inherit; font-weight: 650; font-size: 15px; cursor: pointer; padding: 6px 2px;
  text-decoration: underline;
}
.linklike:active { color: var(--ink); }
.code-input { font-size: 26px; letter-spacing: 8px; text-align: center; font-weight: 700; }

/* a friendly info message on the sign-in screens (e.g. "check your email") */
.auth-notice {
  background: var(--brand-tint);
  color: var(--brand-dark);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
  font-size: 14.5px;
  line-height: 1.45;
}

/* the SMS stand-in panel — clearly marked as preview */
.preview-code {
  display: flex; flex-direction: column; gap: 4px;
  background: #FBF3E4; border: 1px dashed #E0C88A; border-radius: 14px;
  padding: 14px 16px; margin-bottom: 18px;
}
.preview-title { font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; color: #a97e1f; }
.preview-body { font-size: 13.5px; color: #6b5316; }
.preview-digits { font-size: 30px; font-weight: 800; letter-spacing: 6px; color: var(--ink); margin-top: 4px; }

/* "Signed in as 7xxx" line on the log forms */
.signedin-line {
  display: flex; align-items: center; gap: 8px;
  font-size: 14.5px; color: var(--brand-dark);
  background: var(--brand-tint); border-radius: 11px; padding: 10px 12px; margin-bottom: 4px;
}
.signedin-line:empty { display: none; }
.contact-mini { display: flex; align-items: flex-start; gap: 7px; font-size: 13px; color: var(--ink-soft); }
.contact-mini svg { flex: 0 0 auto; margin-top: 2px; }

/* account bar at the top of My reports */
.account-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 15px; margin-bottom: 6px;
}
.account-who { display: flex; align-items: center; gap: 8px; font-size: 14.5px; color: var(--ink); }
.dot-ok { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); display: inline-block; flex: 0 0 auto; }

/* ---------- Keeper: contact on a paired card + connected status ---------- */
.side-contact {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px dashed rgba(0,0,0,.12);
}
.conv-status {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 12px 0 6px;
}
.conv-status.waiting { color: #8a6416; }

/* ---------- Preview-mode banner + loading ---------- */
.mode-banner {
  background: #FBF3E4;
  color: #6b5316;
  border-bottom: 1px solid #F0E2C4;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  padding: 9px 16px;
}
.loading {
  color: var(--ink-soft);
  text-align: center;
  padding: 34px 0;
  font-size: 15px;
}

/* ---------- Two lists: lost | found (person and keeper) ---------- */
.two-lists {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  align-items: start;
  margin-top: 6px;
}
.list-col { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.list-col .report-row { margin-bottom: 0; }   /* spacing handled by the column gap */
.list-title {
  font-size: 17px; font-weight: 750; margin: 0 0 2px;
  padding-bottom: 8px; border-bottom: 2px solid var(--line);
}
.list-title.lost { color: var(--lost); border-color: var(--lost-tint); }
.list-title.found { color: var(--found); border-color: var(--found-tint); }
.empty-box.small { padding: 14px; font-size: 14px; }

/* stacked on a small phone */
@media (max-width: 600px) {
  .two-lists { grid-template-columns: 1fr; gap: 26px; }
}

/* ---------- Small phones ---------- */
@media (max-width: 340px) {
  html { font-size: 16px; }
  .door { padding: 18px 16px; }
  .door-icon { width: 52px; height: 52px; }
  .brand-name { font-size: 22px; }
  .counts { flex-wrap: wrap; }
  .count-box { flex: 1 1 40%; }
  .code-input { letter-spacing: 5px; }
}
