:root {
  color-scheme: light;
  --ink: #2f2b28;
  --muted: #786f67;
  --line: #eadbcf;
  --paper: #fff8ef;
  --surface: #ffffff;
  --surface-warm: #fff0df;
  --sage: #6fa66a;
  --sage-dark: #2f6f4f;
  --mint: #e7f4df;
  --peach: #ef8f45;
  --rose: #d75f4f;
  --gold: #e0a23b;
  --blue: #4f7fa6;
  --danger: #d66f5d;
  --shadow: 0 18px 44px rgba(117, 73, 41, 0.16);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(145deg, #e8f3df 0%, #fff0df 39%, #e2edf6 72%, #fde7df 100%);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Nunito Sans", ui-rounded, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.phone-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.app {
  width: min(100%, 390px);
  height: min(844px, calc(100vh - 24px));
  min-height: 720px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, #fff8ef 0%, #f7fbf1 48%, #fff1e8 100%);
  border: 10px solid #262a28;
  border-radius: 42px;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto auto 1fr auto;
}

.topbar {
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  gap: 12px;
  align-items: center;
  padding: 22px 18px 14px;
}

.brand-row {
  min-width: 0;
  display: flex;
  gap: 10px;
  align-items: center;
}

.turtle {
  --shell: #5f5f5f;
  --shell-deep: #2f2f2f;
  --skin: #b8b8b8;
  --skin-deep: #a8a8a8;
  --mark: #d6d6d6;
  --ink: #243d37;
  --badge: "";
  width: 66px;
  height: 48px;
  position: relative;
  flex: 0 0 auto;
}

.turtle::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 25px;
  width: 16px;
  height: 10px;
  border-radius: 70% 35% 70% 35%;
  background: var(--skin);
  border: 2px solid var(--ink);
  transform: rotate(-18deg);
}

.turtle-logo {
  width: 46px;
  height: 36px;
}

.turtle-logo::before {
  left: 1px;
  top: 21px;
  width: 9px;
  height: 7px;
}

.turtle-shell {
  position: absolute;
  left: 12px;
  top: 12px;
  width: 40px;
  height: 29px;
  border-radius: 56% 62% 44% 48%;
  background:
    linear-gradient(90deg, transparent 0 46%, var(--shell-deep) 47% 52%, transparent 53%),
    linear-gradient(0deg, transparent 0 49%, var(--mark) 50% 58%, transparent 59%),
    var(--shell);
  border: 2px solid var(--ink);
  box-shadow: inset -6px -4px 0 rgba(36, 61, 55, 0.14);
}

.turtle-shell::before,
.turtle-shell::after {
  content: "";
  position: absolute;
  top: 9px;
  width: 11px;
  height: 7px;
  border-top: 3px solid var(--mark);
  border-radius: 999px 999px 0 0;
  background: transparent;
}

.turtle-shell::before {
  left: 7px;
  transform: rotate(-12deg);
}

.turtle-shell::after {
  right: 6px;
  transform: rotate(12deg);
}

.turtle-head {
  position: absolute;
  right: 0;
  top: 8px;
  width: 26px;
  height: 25px;
  border-radius: 58% 54% 55% 55%;
  background: var(--skin);
  border: 2px solid var(--ink);
  box-shadow: inset -3px -2px 0 rgba(36, 61, 55, 0.08);
}

.turtle-head::before {
  content: "";
  position: absolute;
  right: 2px;
  top: 10px;
  width: 3px;
  height: 2px;
  border-radius: 50%;
  background: var(--shell-deep);
}

.turtle-head::after {
  content: var(--badge);
  position: absolute;
  right: -6px;
  top: -8px;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fbfaf5;
  border: 1px solid var(--line);
  color: var(--shell-deep);
  font-size: 0.6rem;
  font-weight: 950;
  opacity: 0;
}

.turtle-eye {
  position: absolute;
  top: 7px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--ink);
}

.turtle-eye.left {
  left: 8px;
}

.turtle-eye.right {
  left: 17px;
}

.turtle-mouth {
  position: absolute;
  left: 8px;
  top: 15px;
  width: 12px;
  height: 6px;
  border-bottom: 2px solid var(--ink);
  border-radius: 0 0 999px 999px;
}

.turtle-leg,
.turtle-foot {
  position: absolute;
  background: var(--skin);
  border: 2px solid var(--ink);
}

.turtle-leg {
  top: 32px;
  width: 14px;
  height: 9px;
  border-radius: 70% 70% 45% 45%;
}

.turtle-leg.front {
  left: 40px;
}

.turtle-leg.back {
  left: 14px;
}

.turtle-foot {
  top: 36px;
  width: 14px;
  height: 9px;
  border-radius: 75% 35% 75% 35%;
}

.turtle-foot.front {
  left: 51px;
  transform: rotate(-14deg);
}

.turtle-foot.back {
  left: 4px;
  transform: rotate(18deg);
}

.turtle-logo .turtle-shell {
  left: 7px;
  top: 10px;
  width: 29px;
  height: 20px;
}

.turtle-logo .turtle-head {
  right: 3px;
  top: 11px;
  width: 17px;
  height: 16px;
}

.turtle-logo .turtle-head::before {
  right: 1px;
  top: 6px;
  width: 2px;
  height: 1.5px;
}

.turtle-logo .turtle-head::after {
  width: 4px;
  height: 3.5px;
  bottom: 2px;
}

.turtle-logo .turtle-eye {
  top: 4px;
  width: 3px;
  height: 3px;
}

.turtle-logo .turtle-eye.left {
  left: 5px;
}

.turtle-logo .turtle-eye.right {
  left: 10px;
}

.turtle-logo .turtle-mouth {
  left: 6px;
  top: 9px;
  width: 7px;
}

.turtle-logo .turtle-leg {
  top: 24px;
  width: 9px;
  height: 6px;
}

.turtle-logo .turtle-leg.front {
  left: 28px;
}

.turtle-logo .turtle-leg.back {
  left: 10px;
}

.turtle-logo .turtle-foot {
  top: 27px;
  width: 9px;
  height: 6px;
}

.turtle-logo .turtle-foot.front {
  left: 37px;
}

.turtle-logo .turtle-foot.back {
  left: 2px;
}

.turtle-happy {
  --badge: "";
}

.turtle-map {
  --badge: "•";
}

.turtle-alert {
  --badge: "!";
}

.turtle-thoughtful {
  --badge: "?";
}

.turtle-coin {
  --badge: "$";
}

.turtle-map .turtle-head {
  transform: rotate(-6deg) translateY(-1px);
}

.turtle-alert .turtle-eye {
  height: 3px;
  top: 9px;
  border-radius: 999px;
}

.turtle-alert .turtle-mouth {
  left: 10px;
  width: 8px;
  height: 2px;
  border-bottom-width: 2px;
  border-radius: 999px;
}

.turtle-thoughtful .turtle-head {
  transform: translateY(2px);
}

.turtle-thoughtful .turtle-mouth {
  top: 17px;
  height: 5px;
  transform: rotate(180deg);
}

.turtle-coin .turtle-foot.front {
  transform: rotate(-24deg) translateY(-2px);
}

.turtle-coin .turtle-head {
  transform: rotate(7deg);
}

.turtle-map::after,
.turtle-alert::after,
.turtle-thoughtful::after,
.turtle-coin::after {
  content: none;
}

.turtle-map .turtle-head::after,
.turtle-alert .turtle-head::after,
.turtle-thoughtful .turtle-head::after,
.turtle-coin .turtle-head::after {
  opacity: 1;
}

.mascot-note {
  min-height: 68px;
  margin-bottom: 12px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 66px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(111, 166, 106, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff1e2 0%, #edf7e8 58%, #eaf3fa 100%);
  box-shadow: 0 10px 22px rgba(117, 73, 41, 0.05);
}

.mascot-note p {
  margin-bottom: 0;
  color: var(--sage-dark);
  font-size: 0.88rem;
  font-weight: 720;
  line-height: 1.3;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 760;
  text-transform: uppercase;
  letter-spacing: 0;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 1.24rem;
  line-height: 1.1;
  font-weight: 780;
}

h2 {
  margin-bottom: 8px;
  font-size: 1.26rem;
  line-height: 1.18;
  font-weight: 780;
}

h3 {
  margin-bottom: 8px;
  font-size: 0.98rem;
  font-weight: 780;
}

.icon-button {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff0df;
  color: var(--sage-dark);
  font-weight: 860;
}

.alert-strip {
  margin: 0 18px 8px;
  padding: 10px 12px;
  border-radius: 8px;
  background: #fff0df;
  border: 1px solid rgba(239, 143, 69, 0.3);
  color: #8b4f25;
  font-size: 0.82rem;
  font-weight: 720;
}

.screen {
  min-height: 0;
  overflow-y: auto;
  padding: 6px 18px 18px;
  display: none;
}

.screen.active {
  display: block;
}

.app.onboarding .tabbar {
  display: none;
}

.auth-screen {
  padding-bottom: 24px;
}

.brand-splash {
  position: relative;
  margin-bottom: 12px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(111, 166, 106, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 22%, rgba(239, 143, 69, 0.14) 0 12%, transparent 13%),
    radial-gradient(circle at 88% 8%, rgba(79, 127, 166, 0.14) 0 12%, transparent 13%),
    linear-gradient(150deg, rgba(255, 255, 255, 0.86), rgba(255, 248, 239, 0.92));
  box-shadow: 0 10px 26px rgba(117, 73, 41, 0.06);
}

.brand-splash img {
  width: min(100%, 228px);
  height: auto;
  display: block;
  margin: 0 auto;
  border-radius: 8px;
}

.brand-splash-copy {
  padding: 8px 4px 0;
  text-align: center;
}

.brand-splash-copy h2 {
  margin-bottom: 5px;
  color: var(--sage-dark);
  font-size: 1.16rem;
  letter-spacing: 0;
}

.brand-splash-copy p {
  max-width: 310px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.38;
}

.auth-hero,
.auth-form {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(117, 73, 41, 0.06);
}

.auth-hero {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #fff1e2 0%, #edf7e8 58%, #eaf3fa 100%);
}

.auth-hero h2 {
  margin-bottom: 6px;
}

.auth-hero p:last-child {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.34;
}

.tutorial-callout {
  width: 100%;
  min-height: 84px;
  display: grid;
  grid-template-columns: 78px 1fr auto;
  gap: 12px;
  align-items: center;
  margin: 0 0 12px;
  padding: 12px;
  border: 2px solid rgba(111, 166, 106, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(231, 244, 223, 0.98), rgba(255, 240, 223, 0.98));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 22px rgba(117, 73, 41, 0.08);
}

.tutorial-callout:focus-visible,
.tutorial-callout:hover {
  outline: 2px solid rgba(111, 166, 106, 0.64);
  outline-offset: 2px;
  transform: translateY(-1px);
}

.callout-art {
  min-height: 58px;
  position: relative;
  display: flex;
  align-items: center;
}

.callout-art .small-face {
  z-index: 2;
}

.tiny-path {
  width: 28px;
  height: 2px;
  margin-left: -4px;
  border-top: 2px dashed rgba(79, 127, 166, 0.48);
}

.callout-art .turtle {
  margin-left: -2px;
  transform: scale(0.88);
  transform-origin: left center;
}

.tutorial-visual .turtle {
  transform: scale(0.86);
}

.guide-comfort .turtle {
  transform: scale(0.82);
  transform-origin: center;
}

.callout-copy strong,
.callout-copy small {
  display: block;
}

.callout-copy strong {
  margin-bottom: 4px;
  color: var(--sage-dark);
  font-size: 0.96rem;
  line-height: 1.18;
}

.callout-copy small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.tutorial-callout em {
  align-self: center;
  padding: 7px 9px;
  border-radius: 999px;
  background: #fff;
  color: var(--blue);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
}

.onboarding-map {
  display: grid;
  grid-template-columns: 0.85fr 0.8fr 1.25fr;
  gap: 7px;
  margin-bottom: 12px;
}

.onboarding-map span {
  min-height: 42px;
  display: flex;
  gap: 6px;
  align-items: center;
  justify-content: center;
  padding: 7px;
  border: 1px solid rgba(79, 127, 166, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: #5d554d;
  font-size: 0.72rem;
  font-weight: 820;
  text-align: center;
}

.onboarding-map b {
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #edf7e8;
  color: var(--sage-dark);
  font-size: 0.7rem;
}

.auth-form {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.auth-progress {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 7px;
}

.auth-progress span {
  height: 5px;
  border-radius: 999px;
  background: var(--line);
}

.auth-progress span.active {
  background: linear-gradient(135deg, var(--sage-dark), var(--blue));
}

.auth-step {
  display: none;
  gap: 12px;
}

.auth-step.active {
  display: grid;
}

.auth-step h3 {
  margin-bottom: 0;
}

.auth-actions {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 10px;
}

.auth-actions button[hidden] {
  display: none;
}

.auth-actions button:disabled {
  opacity: 0.45;
  cursor: default;
}

.profile-card,
.policy-panel,
.match-banner,
.venue,
.location-search,
.route-card,
.live-status,
.check-card,
.prompt-card,
.chat-panel,
.hour-card,
.review-intro,
.review-form,
.countermeasures,
.pricing-hero,
.price-card,
.tutorial-hero,
.tutorial-card,
.edit-form,
.settings-list {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(117, 73, 41, 0.06);
}

.shape-row {
  height: 22px;
  margin: 0 4px 10px;
  display: flex;
  gap: 8px;
  align-items: center;
  justify-content: center;
}

.shape {
  display: block;
  width: 36px;
  height: 12px;
  opacity: 0.78;
}

.shape.tile {
  border-radius: 4px;
}

.shape.shell {
  border-radius: 999px 999px 6px 6px;
}

.shape.sage {
  background: var(--sage);
}

.shape.peach {
  background: var(--peach);
}

.shape.blue {
  background: var(--blue);
}

.shape.gold {
  background: var(--gold);
}

.profile-card {
  overflow: hidden;
}

.portrait {
  height: 310px;
  background:
    radial-gradient(circle at 52% 27%, #f2b79b 0 9%, transparent 9.4%),
    radial-gradient(circle at 48% 38%, #6e4038 0 22%, transparent 22.5%),
    linear-gradient(135deg, rgba(239, 143, 69, 0.78), rgba(111, 166, 106, 0.9)),
    linear-gradient(180deg, #ffe2c6, #e7f4df);
  background-size: cover;
  background-position: center;
  position: relative;
}

.portrait.has-photo::before,
.portrait.has-photo::after {
  display: none;
}

.portrait::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 168px;
  height: 170px;
  transform: translateX(-50%);
  border-radius: 48% 48% 0 0;
  background:
    radial-gradient(circle at 50% 28%, #f0b08f 0 28%, transparent 28.5%),
    linear-gradient(90deg, transparent 0 20%, #233d39 20% 80%, transparent 80%),
    linear-gradient(160deg, #f1c5a8, #c96f61);
}

.portrait::after {
  content: "";
  position: absolute;
  inset: auto 28px 26px;
  height: 58px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.portrait.alt {
  background:
    radial-gradient(circle at 50% 26%, #e7a57b 0 8%, transparent 8.4%),
    radial-gradient(circle at 50% 36%, #1d2528 0 22%, transparent 22.5%),
    linear-gradient(135deg, rgba(239, 143, 69, 0.82), rgba(79, 127, 166, 0.88));
}

.portrait.third {
  background:
    radial-gradient(circle at 50% 26%, #d69b77 0 8%, transparent 8.4%),
    radial-gradient(circle at 50% 36%, #5b392f 0 22%, transparent 22.5%),
    linear-gradient(135deg, rgba(215, 95, 79, 0.76), rgba(111, 166, 106, 0.9));
}

.profile-copy,
.match-banner,
.live-status,
.prompt-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.profile-copy {
  padding: 16px 14px 8px;
}

.profile-copy p,
.route-card p,
.check-card p,
.review-intro p,
.prompt-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.9rem;
}

.verified,
.status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 7px 9px;
  background: var(--mint);
  color: var(--sage-dark);
  font-size: 0.7rem;
  font-weight: 780;
}

.screening-badge {
  width: calc(100% - 28px);
  min-height: 58px;
  margin: 2px 14px 4px;
  padding: 10px;
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(111, 166, 106, 0.24);
  border-radius: 8px;
  background: #edf7e8;
  color: var(--sage-dark);
  text-align: left;
}

.screening-badge strong,
.screening-badge small {
  display: block;
}

.screening-badge strong {
  margin-bottom: 3px;
  font-size: 0.86rem;
}

.screening-badge small {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.25;
}

.checkmark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sage-dark), var(--blue));
  color: #fff;
  font-weight: 900;
}

.fact-grid {
  padding: 8px 14px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fact-grid span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 760;
  text-align: center;
  background: #fff2e6;
}

.profile-note {
  padding: 6px 14px 16px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.4;
  font-size: 0.9rem;
}

.bio-box {
  margin: 0 14px 16px;
  padding: 11px 12px;
  border-radius: 8px;
  background: #fff2e6;
  border: 1px solid var(--line);
}

.bio-box p:last-child {
  margin-bottom: 0;
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.38;
}

.interest-chips {
  display: flex;
  gap: 7px;
  margin: -6px 14px 16px;
  overflow-x: auto;
  scrollbar-width: none;
}

.interest-chips::-webkit-scrollbar {
  display: none;
}

.interest-chips span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eaf3fa;
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 780;
}

.action-row,
.split-actions,
.safety-grid,
.discover-controls {
  display: grid;
  gap: 10px;
}

.action-row {
  grid-template-columns: 1fr 1fr;
  margin: 16px 0;
}

.split-actions {
  grid-template-columns: 1fr 1fr;
}

.safety-grid {
  grid-template-columns: 1fr 1fr;
  margin: 12px 0;
}

.safety-grid button:last-child:nth-child(odd) {
  grid-column: 1 / -1;
}

.discover-controls {
  grid-template-columns: 48px 1fr 48px;
  margin: 0 0 10px;
  padding: 8px;
  position: sticky;
  top: 0;
  z-index: 3;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 239, 0.94);
  box-shadow: 0 8px 20px rgba(117, 73, 41, 0.06);
  backdrop-filter: blur(10px);
}

.discover-controls button {
  min-height: 38px;
  padding: 0 8px;
  font-size: 0.8rem;
}

.discover-controls .icon-control {
  width: 38px;
  min-height: 38px;
  justify-self: center;
  display: grid;
  place-items: center;
  padding: 0;
  border-radius: 999px;
}

.filter-icon,
.settings-icon {
  width: 18px;
  height: 18px;
  position: relative;
  display: block;
}

.filter-icon {
  background:
    linear-gradient(currentColor, currentColor) 2px 3px / 14px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 4px 8px / 10px 2px no-repeat,
    linear-gradient(currentColor, currentColor) 7px 13px / 4px 2px no-repeat;
}

.settings-icon {
  border: 2px solid currentColor;
  border-radius: 999px;
}

.settings-icon::before,
.settings-icon::after {
  content: "";
  position: absolute;
  inset: 6px -4px;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.settings-icon::after {
  transform: rotate(90deg);
}

.filter-summary {
  display: flex;
  gap: 7px;
  margin: 0 0 12px;
  overflow-x: auto;
  scrollbar-width: none;
}

.filter-summary::-webkit-scrollbar {
  display: none;
}

.filter-summary span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid rgba(111, 166, 106, 0.24);
  border-radius: 999px;
  background: #edf7e8;
  color: var(--sage-dark);
  font-size: 0.76rem;
  font-weight: 780;
}

.primary,
.secondary,
.danger,
.tiny,
.text-button {
  min-height: 44px;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 820;
}

.primary {
  background: linear-gradient(135deg, var(--sage-dark), #4f7fa6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(47, 111, 79, 0.2);
}

.secondary {
  background: #fff0df;
  color: var(--sage-dark);
}

.danger {
  background: linear-gradient(135deg, var(--danger), #ef8f45);
  color: #fff;
  box-shadow: 0 8px 18px rgba(215, 95, 79, 0.18);
}

.big {
  min-height: 56px;
  font-size: 1rem;
}

.full {
  width: 100%;
  margin-top: 10px;
}

.tiny {
  min-height: 34px;
  background: #eaf3fa;
  color: var(--blue);
  font-size: 0.78rem;
}

.text-button {
  width: 100%;
  background: transparent;
  color: var(--muted);
}

.policy-panel,
.location-search,
.route-card,
.check-card,
.prompt-card,
.chat-panel,
.hour-card,
.review-intro,
.review-form,
.countermeasures,
.pricing-hero,
.price-card,
.tutorial-hero,
.tutorial-card,
.edit-form,
.settings-list {
  padding: 14px;
}

.mini-principles {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.mini-principles span {
  min-height: 34px;
  display: grid;
  place-items: center;
  padding: 7px 8px;
  border-radius: 999px;
  background: #fff2e6;
  border: 1px solid var(--line);
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 780;
  text-align: center;
}

.soft-visual-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.policy-panel .soft-visual-row,
.visual-summary .soft-visual-row {
  margin-bottom: 0;
}

.visual-chip {
  min-height: 62px;
  display: grid;
  place-items: center;
  gap: 5px;
  padding: 8px 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 239, 0.82);
  color: var(--sage-dark);
  text-align: center;
}

.visual-chip i {
  width: 28px;
  height: 24px;
  position: relative;
  display: block;
}

.visual-chip b {
  display: block;
  font-size: 0.68rem;
  line-height: 1.12;
  font-weight: 900;
}

.visual-chip.cafe i {
  border-radius: 0 0 8px 8px;
  background: #ef8f45;
}

.visual-chip.cafe i::before {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  top: -8px;
  height: 9px;
  border-radius: 999px 999px 3px 3px;
  background: #4f7fa6;
}

.visual-chip.park i {
  border-radius: 50% 50% 45% 45%;
  background: #6fa66a;
}

.visual-chip.park i::after {
  content: "";
  position: absolute;
  left: 12px;
  bottom: -7px;
  width: 5px;
  height: 11px;
  border-radius: 3px;
  background: #8b5a3c;
}

.visual-chip.shop i {
  border-radius: 6px;
  background: #eaf3fa;
  border: 2px solid #4f7fa6;
}

.visual-chip.shop i::before {
  content: "";
  position: absolute;
  inset: -7px 4px auto;
  height: 8px;
  border-radius: 6px 6px 2px 2px;
  background: #d75f4f;
}

.visual-chip.shield i {
  border-radius: 12px 12px 16px 16px;
  background: linear-gradient(135deg, #6fa66a, #4f7fa6);
}

.visual-chip.shield i::after {
  content: "";
  position: absolute;
  left: 9px;
  top: 6px;
  width: 8px;
  height: 13px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(42deg);
}

.visual-chip.heart i {
  transform: rotate(45deg) scale(0.8);
  border-radius: 5px;
  background: #d75f4f;
}

.visual-chip.heart i::before,
.visual-chip.heart i::after {
  content: "";
  position: absolute;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #d75f4f;
}

.visual-chip.heart i::before {
  left: -14px;
  top: 0;
}

.visual-chip.heart i::after {
  left: 0;
  top: -14px;
}

.visual-chip.pin i {
  border-radius: 50% 50% 50% 6px;
  background: #4f7fa6;
  transform: rotate(-45deg) scale(0.82);
}

.visual-chip.pin i::after {
  content: "";
  position: absolute;
  left: 8px;
  top: 8px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #fff8ef;
}

.visual-chip.chat i {
  border-radius: 10px;
  background: #e0a23b;
}

.visual-chip.chat i::after {
  content: "";
  position: absolute;
  left: 5px;
  bottom: -6px;
  width: 10px;
  height: 10px;
  background: #e0a23b;
  clip-path: polygon(0 0, 100% 0, 0 100%);
}

.visual-chip.exit i {
  border-radius: 8px;
  background: #fff0df;
  border: 2px solid #d66f5d;
}

.visual-chip.exit i::after {
  content: "";
  position: absolute;
  right: -4px;
  top: 8px;
  width: 18px;
  height: 8px;
  border-top: 3px solid #d66f5d;
  border-right: 3px solid #d66f5d;
  transform: skewX(-25deg);
}

ul {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.84rem;
}

li + li {
  margin-top: 6px;
}

.match-banner,
.live-status {
  padding: 14px;
  margin-bottom: 12px;
}

.match-banner h2,
.live-status h2,
.review-intro h2 {
  margin-bottom: 0;
}

.match-dot {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  background: var(--peach);
  box-shadow: 0 0 0 8px rgba(239, 143, 69, 0.18);
}

.venue-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.location-search {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
  padding: 14px;
}

.location-search h3 {
  margin-bottom: 5px;
}

.location-search p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.88rem;
}

.location-search input {
  width: 100%;
  min-height: 44px;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: #fff8ef;
  color: var(--ink);
}

.location-search input::placeholder {
  color: #9c958c;
}

.search-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.search-note,
.exit-note {
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.8rem;
}

.exit-note {
  margin: -2px 2px 0;
}

.venue {
  width: 100%;
  padding: 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  text-align: left;
  color: var(--ink);
}

.venue.selected {
  outline: 2px solid rgba(111, 166, 106, 0.68);
  background: #edf7e8;
}

.venue strong {
  display: block;
  margin-bottom: 4px;
}

.venue span {
  color: var(--muted);
  font-size: 0.82rem;
}

.venue em {
  align-self: center;
  color: var(--sage-dark);
  font-style: normal;
  font-size: 0.78rem;
  font-weight: 900;
}

.map-panel {
  height: 150px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, transparent 48%, rgba(79, 127, 166, 0.12) 49% 51%, transparent 52%),
    linear-gradient(0deg, transparent 48%, rgba(111, 166, 106, 0.12) 49% 51%, transparent 52%),
    #eaf3fa;
}

.geofence {
  position: absolute;
  left: 46px;
  top: 26px;
  width: 150px;
  height: 96px;
  border: 2px dashed rgba(111, 166, 106, 0.78);
  border-radius: 50%;
  background: rgba(111, 166, 106, 0.1);
}

.map-pin {
  position: absolute;
  z-index: 1;
  padding: 6px 8px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 900;
}

.selected-pin {
  left: 74px;
  top: 62px;
  background: var(--sage-dark);
  color: #fff;
}

.blocked-pin {
  right: 16px;
  bottom: 20px;
  background: #fde7df;
  color: #9f493a;
}

.tracker {
  padding: 12px 6px 14px;
}

.track-line {
  height: 3px;
  margin: 16px 28px 8px;
  background: var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.track-dot {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #cbd3cf;
  border: 3px solid var(--paper);
}

.track-dot.active {
  background: var(--blue);
}

.track-labels {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
}

.prompt-card,
.geo-card,
.hour-card {
  margin-top: 12px;
}

.geo-card {
  padding: 14px;
  border: 1px solid rgba(79, 127, 166, 0.24);
  border-radius: 8px;
  background: #eaf3fa;
  box-shadow: 0 10px 26px rgba(117, 73, 41, 0.06);
}

.geo-card .split-actions + .split-actions {
  margin-top: 8px;
}

.geo-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}

.geo-grid span {
  min-height: 54px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ef;
}

.geo-grid strong,
.geo-grid small {
  display: block;
}

.geo-grid strong {
  margin-bottom: 3px;
  color: var(--sage-dark);
  font-size: 0.86rem;
}

.geo-grid small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.2;
}

.rating-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.rating-row button {
  min-height: 42px;
  border-radius: 8px;
  background: #fff0df;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 900;
}

.rating-row button.selected {
  background: #ffd7ad;
  color: #703f1d;
}

.review-intro,
.review-form,
.countermeasures,
.pricing-hero,
.price-card,
.tutorial-hero,
.tutorial-card {
  margin-bottom: 12px;
}

.pricing-hero p,
.price-card p,
.tutorial-hero p,
.tutorial-card p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.35;
  font-size: 0.9rem;
}

.pricing-hero h2,
.tutorial-hero h2 {
  margin-bottom: 8px;
}

.tutorial-steps {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.tutorial-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  align-items: start;
  padding: 12px;
}

.tutorial-card h3 {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.tutorial-visual {
  min-height: 58px;
  position: relative;
  display: grid;
  place-items: center;
}

.step-number {
  width: 24px;
  height: 24px;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff0df;
  color: #8b4c1f;
  font-size: 0.82rem;
  font-weight: 950;
}

.step-number.blue {
  background: #eaf3fa;
  color: #2f5d7d;
}

.step-number.red {
  background: #fae9e5;
  color: #8a3530;
}

.step-number.green {
  background: #edf7e8;
  color: var(--sage-dark);
}

.person-face {
  width: 54px;
  height: 54px;
  position: relative;
  display: block;
  border: 2px solid rgba(36, 61, 55, 0.18);
  border-radius: 44% 44% 48% 48%;
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5) 0 8%, transparent 9%),
    #ffd8b5;
  box-shadow: 0 8px 16px rgba(117, 73, 41, 0.1);
}

.person-face::before,
.person-face::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 14px;
  height: 12px;
  border-radius: 50%;
  background: #ffd8b5;
  border: 2px solid rgba(36, 61, 55, 0.14);
}

.person-face::before {
  left: 6px;
}

.person-face::after {
  right: 6px;
}

.face-hair {
  position: absolute;
  inset: -4px 7px auto;
  height: 17px;
  border-radius: 999px 999px 10px 10px;
  background: #5e473a;
}

.face-eye {
  position: absolute;
  top: 24px;
  width: 5px;
  height: 7px;
  border-radius: 999px;
  background: var(--sage-dark);
}

.face-eye.left {
  left: 18px;
}

.face-eye.right {
  right: 18px;
}

.face-mouth {
  position: absolute;
  left: 50%;
  bottom: 14px;
  width: 18px;
  height: 9px;
  border: 2px solid var(--sage-dark);
  border-top: 0;
  border-radius: 0 0 999px 999px;
  transform: translateX(-50%);
}

.person-face.curious {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5) 0 8%, transparent 9%),
    #f6c6bf;
}

.person-face.curious .face-hair {
  background: #6f3f35;
  inset: -3px 5px auto 11px;
  border-radius: 999px 999px 10px 18px;
}

.person-face.curious .face-eye.left {
  height: 5px;
  transform: translateY(1px);
}

.person-face.curious .face-mouth {
  width: 11px;
  height: 11px;
  border: 2px solid var(--sage-dark);
  border-radius: 999px;
  bottom: 11px;
}

.person-face.calm {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.46) 0 8%, transparent 9%),
    #f4cf9f;
}

.person-face.calm .face-eye {
  height: 2px;
  top: 27px;
}

.person-face.calm .face-mouth {
  width: 16px;
  height: 2px;
  border-top: 2px solid var(--sage-dark);
  border-bottom: 0;
  bottom: 15px;
}

.person-face.excited {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.48) 0 8%, transparent 9%),
    #cfe6c6;
}

.person-face.excited .face-eye {
  width: 7px;
  height: 7px;
}

.person-face.excited .face-mouth {
  width: 19px;
  height: 13px;
  border: 2px solid var(--sage-dark);
  border-radius: 999px;
  background: rgba(36, 61, 55, 0.08);
  bottom: 10px;
}

.person-face.proud {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5) 0 8%, transparent 9%),
    #f3bd96;
}

.person-face.proud .face-mouth {
  width: 22px;
  height: 10px;
}

.person-face.relieved {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.5) 0 8%, transparent 9%),
    #bdd9ed;
}

.person-face.relieved .face-eye {
  height: 2px;
  top: 26px;
}

.person-face.relieved .face-mouth {
  width: 20px;
  height: 8px;
  border-color: #2f5d7d;
}

.person-face.thoughtful {
  background:
    radial-gradient(circle at 34% 30%, rgba(255, 255, 255, 0.48) 0 8%, transparent 9%),
    #f7c2aa;
}

.person-face.thoughtful .face-eye.right {
  height: 2px;
  top: 26px;
}

.person-face.thoughtful .face-mouth {
  width: 14px;
  height: 5px;
  border-top: 2px solid var(--sage-dark);
  border-bottom: 0;
  border-radius: 999px 999px 0 0;
  bottom: 15px;
}

.small-face {
  width: 42px;
  height: 42px;
}

.small-face::before,
.small-face::after {
  width: 10px;
  height: 9px;
  bottom: -6px;
}

.small-face .face-hair {
  height: 13px;
}

.small-face .face-eye {
  top: 19px;
}

.small-face .face-eye.left {
  left: 14px;
}

.small-face .face-eye.right {
  right: 14px;
}

.small-face .face-mouth {
  bottom: 10px;
  width: 15px;
  height: 7px;
}

.step-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.step-tags span {
  padding: 4px 7px;
  border-radius: 999px;
  background: #fff0df;
  color: var(--sage-dark);
  font-size: 0.66rem;
  font-weight: 850;
}

.guide-comfort {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid rgba(79, 127, 166, 0.22);
  border-radius: 8px;
  background: #eaf3fa;
}

.guide-comfort h3 {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.guide-comfort p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.32;
}

.feature-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}

.feature-grid span {
  min-height: 78px;
  display: block;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ef;
}

.feature-grid strong,
.feature-grid small {
  display: block;
}

.feature-grid strong {
  margin-bottom: 4px;
  color: var(--sage-dark);
  font-size: 0.78rem;
}

.feature-grid small {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.25;
}

.calm-details {
  padding: 10px;
  border: 1px solid rgba(79, 127, 166, 0.2);
  border-radius: 8px;
  background: #f7fbf1;
}

.calm-details summary {
  cursor: pointer;
  color: var(--sage-dark);
  font-size: 0.86rem;
  font-weight: 900;
}

.calm-details > * + * {
  margin-top: 10px;
}

.demo-actions {
  opacity: 0.72;
}

.demo-actions button {
  font-size: 0.76rem;
}

.price-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: center;
}

.price-card h3 {
  margin-bottom: 5px;
}

.price-card strong {
  color: var(--sage-dark);
  font-size: 1.02rem;
  white-space: nowrap;
}

.primary-price {
  background: #edf7e8;
  border-color: rgba(111, 166, 106, 0.32);
}

.primary-price strong {
  padding: 9px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--sage-dark), var(--blue));
  color: #fff;
}

.monetization-list {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.photo-upload {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
}

.photo-preview {
  width: 92px;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at 50% 35%, #f0b08f 0 18%, transparent 18.5%),
    linear-gradient(135deg, rgba(239, 143, 69, 0.68), rgba(111, 166, 106, 0.78));
  background-size: cover;
  background-position: center;
}

.photo-preview.has-photo {
  background-size: cover;
}

.photo-action {
  display: grid;
  gap: 6px;
}

.photo-action input {
  margin-top: 0;
  padding: 9px;
  font-size: 0.78rem;
}

.chat-panel {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.chat-thread {
  min-height: 280px;
  max-height: 360px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ef;
}

.message {
  max-width: 86%;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.32;
}

.message.mine {
  align-self: flex-end;
  background: #edf7e8;
  border: 1px solid rgba(111, 166, 106, 0.24);
}

.message.theirs {
  align-self: flex-start;
  background: #eaf3fa;
  border: 1px solid rgba(79, 127, 166, 0.24);
}

.chat-composer {
  display: grid;
  gap: 8px;
}

.review-form,
.edit-form,
.settings-list {
  display: grid;
  gap: 12px;
}

.settings-group {
  display: grid;
  gap: 8px;
}

.settings-heading {
  margin: 4px 2px 0;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 860;
  text-transform: uppercase;
  letter-spacing: 0;
}

.setting-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 8px;
  background: #fff2e6;
  border: 1px solid var(--line);
  text-align: left;
  color: var(--ink);
}

.setting-link {
  width: 100%;
  min-height: auto;
  cursor: pointer;
}

.setting-row strong,
.setting-row small {
  display: block;
}

.setting-row strong {
  margin-bottom: 3px;
}

.setting-row small {
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.25;
}

.setting-row input {
  width: 22px;
  height: 22px;
  margin: 0;
}

.setting-status {
  align-self: center;
  padding: 6px 9px;
  border-radius: 999px;
  background: #edf7e8;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 860;
}

.muted-action strong {
  color: var(--muted);
}

label,
legend {
  color: var(--ink);
  font-size: 0.86rem;
  font-weight: 900;
}

select,
input,
textarea {
  width: 100%;
  margin-top: 7px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: #fff8ef;
  color: var(--ink);
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0;
  padding: 10px;
}

.checkline {
  min-height: 44px;
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 9px;
  align-items: center;
  margin-top: 8px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff8ef;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.checkline input {
  width: auto;
  margin: 0;
}

.auth-step .checkline {
  text-align: center;
}

.review-choice {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 9px;
  align-items: flex-start;
  margin-top: 9px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff2e6;
  color: var(--muted);
  font-weight: 680;
  line-height: 1.32;
}

.review-choice input {
  width: auto;
  margin: 2px 0 0;
}

.review-choice strong {
  display: block;
  margin-bottom: 3px;
  color: var(--sage-dark);
}

.fairness-note,
.intent-note,
.integrity-card,
.trust-logic-card {
  padding: 11px 12px;
  border: 1px solid rgba(111, 166, 106, 0.24);
  border-radius: 8px;
  background: #edf7e8;
}

.intent-note {
  background: #fff0df;
  border-color: rgba(239, 143, 69, 0.3);
}

.integrity-card {
  background: #eaf3fa;
  border-color: rgba(79, 127, 166, 0.24);
}

.trust-logic-card {
  background: #fff8ef;
  border-color: rgba(239, 143, 69, 0.28);
}

.fairness-note h3,
.intent-note h3,
.integrity-card h3,
.trust-logic-card h3 {
  margin-bottom: 4px;
  font-size: 0.9rem;
}

.fairness-note p,
.intent-note p,
.integrity-card p,
.trust-logic-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.integrity-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.logic-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin-top: 10px;
}

.logic-grid span {
  min-height: 58px;
  display: block;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff2e6;
}

.logic-grid strong,
.logic-grid small {
  display: block;
}

.logic-grid strong {
  margin-bottom: 3px;
  color: var(--sage-dark);
  font-size: 0.76rem;
}

.logic-grid small {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.22;
}

.integrity-grid span {
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff8ef;
  color: var(--sage-dark);
  font-size: 0.72rem;
  font-weight: 780;
  text-align: center;
}

.ai-review-card {
  padding: 12px;
  display: grid;
  gap: 12px;
  border: 1px solid rgba(79, 127, 166, 0.24);
  border-radius: 8px;
  background: #eaf3fa;
}

.ai-review-card h3 {
  margin-bottom: 5px;
}

.ai-review-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.35;
}

.review-pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
}

.pipeline-step {
  min-height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: #fff8ef;
  font-size: 0.72rem;
  font-weight: 820;
}

.pipeline-step.active {
  color: #fff;
  background: var(--blue);
  border-color: transparent;
}

.tabbar {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  padding: 10px 12px 16px;
  border-top: 1px solid var(--line);
  background: rgba(255, 248, 239, 0.96);
}

.tab {
  min-height: 44px;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 800;
}

.tab.active {
  background: linear-gradient(135deg, var(--sage-dark), var(--blue));
  color: #fff;
}

dialog {
  width: min(330px, calc(100vw - 36px));
  border: 0;
  border-radius: 14px;
  padding: 18px;
  color: var(--ink);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(20, 28, 30, 0.42);
}

dialog h2 {
  margin-bottom: 12px;
}

dialog p {
  color: var(--muted);
  line-height: 1.4;
}

.match-dialog {
  text-align: center;
}

.match-celebration {
  display: grid;
  place-items: center;
  margin: 0 auto 10px;
}

.match-celebration .turtle {
  transform: scale(1.12);
}

.dialog-copy {
  margin-bottom: 12px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.interest-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.language-grid {
  max-height: 190px;
  overflow-y: auto;
  padding-right: 2px;
}

.interest-grid label {
  min-height: 36px;
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff2e6;
  color: var(--sage-dark);
  font-size: 0.78rem;
  font-weight: 780;
}

.language-grid label {
  position: relative;
  justify-content: center;
  padding-inline: 30px 12px;
  text-align: center;
}

.language-grid input {
  position: absolute;
  left: 10px;
}

.interest-grid input {
  width: auto;
  margin: 0;
}

.exit-options {
  display: grid;
  gap: 9px;
  margin-bottom: 12px;
}

.exit-choice {
  height: auto;
  min-height: 64px;
  padding: 10px 12px;
  display: block;
  text-align: left;
}

.exit-choice strong,
.exit-choice span {
  display: block;
}

.exit-choice strong {
  margin-bottom: 4px;
  font-size: 0.92rem;
}

.exit-choice span {
  line-height: 1.3;
  font-size: 0.78rem;
  font-weight: 680;
}

.dual-note {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff2e6;
}

.dual-note h3 {
  margin-bottom: 4px;
  font-size: 0.88rem;
}

.dual-note p {
  margin-bottom: 0;
  font-size: 0.82rem;
}

.screening-detail {
  display: grid;
  gap: 8px;
  margin: 4px 0 12px;
}

.screening-detail span {
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff2e6;
  color: var(--sage-dark);
  font-size: 0.82rem;
  font-weight: 850;
}

@media (max-width: 430px) {
  .phone-shell {
    padding: 0;
  }

  .app {
    width: 100%;
    height: 100vh;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
  }

  .portrait {
    height: 290px;
  }
}
