:root {
  --ink: #0d0d10;
  --paper: #f4f5f6;
  --panel: #ffffff;
  --muted: #74747b;
  --line: #dedfe2;
  --lime: #d7ff4f;
  --violet: #7657ff;
  --pink: #ff4e91;
  --blue: #318dff;
  --orange: #ff7849;
  --green: #20b378;
  --yellow: #e5a600;
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 16px;
}

* { box-sizing: border-box; }

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

body {
  background: var(--ink);
  color: var(--ink);
  overflow: hidden;
}

button, input { font: inherit; }
button { cursor: pointer; }

.account-gate {
  position: fixed;
  z-index: 300;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-y: auto;
  background: var(--ink);
}
.account-gate[hidden] { display: none; }
.account-card { width: min(100%, 420px); padding: 32px; border-radius: 26px; background: #fff; box-shadow: 0 30px 90px rgba(0,0,0,.32); }
.account-brand { width: fit-content; color: var(--ink); }
.account-card > h1 { margin: 34px 0 0; font-size: 1.7rem; line-height: 1.15; letter-spacing: -.04em; }
.account-card > h1 small { color: #85868d; font-size: .75rem; letter-spacing: 0; }
.account-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 20px; padding: 4px; border-radius: 14px; background: #eceef0; }
.account-tabs button { min-height: 46px; border: 0; border-radius: 11px; color: #707178; background: transparent; font-size: .875rem; font-weight: 850; }
.account-tabs button small { margin-left: 3px; font-size: .75rem; }
.account-tabs button.is-active { color: #fff; background: var(--ink); }
.account-form { margin-top: 18px; }
.account-form .form-field + .form-field { margin-top: 16px; }
.account-form .full-button { margin-top: 24px; }
.account-error { min-height: 20px; margin: 10px 0 0; color: #b83d38; font-size: .76rem; line-height: 1.45; text-align: center; }
.account-form.is-busy { pointer-events: none; opacity: .7; }
.account-back { display: block; margin: 14px auto 0; padding: 5px; border: 0; color: #74757c; background: transparent; font-size: .78rem; font-weight: 750; }

/* Public introduction, shown before the account form. */
.intro-page { position: fixed; z-index: 250; inset: 0; overflow-x: hidden; overflow-y: auto; scroll-behavior: smooth; color: var(--ink); background: #f7f7f3; }
.intro-page[hidden] { display: none; }
.intro-page button { border: 0; }
.intro-header { position: sticky; z-index: 5; top: 0; min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 12px clamp(20px, 5vw, 84px); border-bottom: 1px solid rgba(13,13,16,.08); background: rgba(247,247,243,.94); backdrop-filter: blur(18px); }
.intro-brand strong { font-size: 1.42rem; letter-spacing: -.06em; }
.intro-nav { display: flex; align-items: center; gap: 30px; }
.intro-nav a, .intro-login { color: #3b3b3d; background: transparent; text-decoration: none; font-size: .86rem; font-weight: 760; }
.intro-login small { font-size: .7rem; font-weight: 600; }
.intro-nav-cta { min-height: 42px; padding: 0 19px; border-radius: 999px; color: #fff; background: var(--ink); font-size: .83rem; font-weight: 850; }
.intro-hero { min-height: min(780px, calc(100dvh - 78px)); display: grid; grid-template-columns: minmax(0, 1fr) minmax(420px, .94fr); align-items: center; gap: clamp(25px, 5vw, 90px); padding: 64px clamp(20px, 7vw, 110px) 76px; overflow: hidden; }
.intro-hero-copy { position: relative; z-index: 2; max-width: 670px; }
.intro-eyebrow { display: flex; align-items: center; gap: 9px; color: #626368; font-size: .68rem; font-weight: 900; letter-spacing: .18em; }
.intro-eyebrow span { width: 9px; height: 9px; border-radius: 50%; background: var(--violet); }
.intro-hero h1 { margin: 30px 0 22px; font-size: clamp(3.8rem, 6.1vw, 7rem); line-height: 1.04; letter-spacing: -.09em; font-weight: 950; }
.intro-hero h1 em { position: relative; z-index: 0; font-style: normal; white-space: nowrap; }
.intro-hero h1 em::after { position: absolute; z-index: -1; right: -.02em; bottom: .05em; left: 0; height: .18em; content: ''; background: var(--lime); transform: rotate(-2deg); }
.intro-title-en { display: block; margin: -6px 0 22px; color: #67696d; font-size: clamp(1.08rem, 1.8vw, 1.45rem); font-weight: 800; letter-spacing: -.035em; }
.intro-hero-copy > p { max-width: 520px; margin: 0; color: #55565b; font-size: clamp(1rem, 1.5vw, 1.2rem); line-height: 1.8; }
.intro-hero-copy > p.intro-en { margin-top: 9px; color: #777981; font-size: clamp(.82rem, 1.12vw, .98rem); line-height: 1.6; }
.intro-hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 25px; margin-top: 36px; }
.intro-main-cta { min-width: 190px; min-height: 60px; display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 0 22px; border-radius: 17px; color: #fff; background: var(--ink); font-size: .98rem; font-weight: 900; box-shadow: 0 12px 25px rgba(13,13,16,.15); }
.intro-cta-copy { display: grid; gap: 2px; text-align: left; }
.intro-cta-copy small { font-size: .7rem; font-weight: 650; opacity: .76; }
.intro-cta-arrow { font-size: 1.4rem; font-weight: 500; }
.intro-more-link { color: var(--ink); text-decoration: none; font-size: .87rem; font-weight: 850; }
.intro-more-link span { margin-left: 6px; }
.intro-hero-tags { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 54px; }
.intro-hero-tags span { padding: 8px 13px; border: 1px solid #dcded7; border-radius: 999px; color: #5d5f59; font-size: .71rem; font-weight: 780; }
.intro-visual { position: relative; min-height: 600px; display: grid; place-items: center; isolation: isolate; border-radius: 48px; background: var(--lime); }
.intro-visual::before { position: absolute; z-index: -1; inset: 24px; border: 1px solid rgba(13,13,16,.16); border-radius: 30px; content: ''; }
.intro-orbit { position: absolute; z-index: -1; width: 77%; aspect-ratio: 1; border: 1px solid rgba(13,13,16,.16); border-radius: 50%; }
.intro-orbit-one { transform: rotate(18deg) scaleX(1.4); }.intro-orbit-two { width: 53%; transform: rotate(-22deg) scaleX(1.7); }
.intro-visual-label { position: absolute; top: 46px; left: 46px; font-size: .62rem; font-weight: 900; line-height: 1.5; letter-spacing: .12em; }
.intro-device { width: 260px; height: 508px; display: flex; flex-direction: column; padding: 10px; border: 6px solid #17171b; border-radius: 38px; background: #fff; box-shadow: 20px 26px 55px rgba(13,13,16,.25); transform: rotate(-6deg); }
.intro-device-header { height: 45px; display: flex; align-items: center; justify-content: space-between; padding: 0 11px; }
.intro-device-brand { font-size: 1.25rem; font-weight: 950; letter-spacing: -.07em; }.intro-device-dot { width: 24px; height: 24px; border-radius: 9px; background: var(--lime); }
.intro-device-screen { position: relative; flex: 1; padding: 28px 18px; overflow: hidden; border-radius: 22px; color: #fff; background: #18181d; }
.intro-screen-kicker { color: var(--lime); font-size: .65rem; font-weight: 850; }
.intro-device-screen > strong { position: relative; z-index: 1; display: block; margin-top: 9px; font-size: 1.55rem; line-height: 1.27; letter-spacing: -.055em; }
.intro-device-screen > strong small { display: block; margin-top: 7px; color: #cacbd0; font-size: .63rem; font-weight: 600; letter-spacing: 0; }
.intro-screen-path { position: absolute; top: 148px; right: -55px; left: -55px; height: 210px; border: 2px solid rgba(215,255,79,.5); border-radius: 50%; transform: rotate(-22deg); }
.intro-screen-path::before, .intro-screen-path::after { position: absolute; top: -70px; left: 50%; width: 95px; height: 330px; border-left: 2px solid rgba(255,255,255,.17); border-right: 2px solid rgba(255,255,255,.17); content: ''; transform: rotate(32deg); }
.intro-screen-path::after { left: 22%; transform: rotate(-14deg); }
.intro-screen-path i { position: absolute; width: 13px; height: 13px; border: 3px solid #17171b; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 2px var(--lime); }
.intro-screen-path i:nth-child(1) { top: 8%; left: 20%; }.intro-screen-path i:nth-child(2) { top: 58%; left: 50%; }.intro-screen-path i:nth-child(3) { top: 24%; right: 10%; }
.intro-screen-card { position: absolute; right: 12px; bottom: 13px; left: 12px; padding: 14px; border-radius: 14px; color: var(--ink); background: #fff; box-shadow: 0 9px 24px rgba(0,0,0,.22); }
.intro-screen-card span, .intro-screen-card b, .intro-screen-card small { display: block; }.intro-screen-card span { color: #777980; font-size: .62rem; }.intro-screen-card b { margin-top: 6px; font-size: .8rem; }.intro-screen-card small { margin-top: 4px; color: #777980; font-size: .56rem; }
.intro-device-tabs { height: 54px; display: flex; justify-content: space-around; align-items: center; font-size: .66rem; font-weight: 850; }.intro-device-tabs span small { display: block; color: #8a8b91; text-align: center; font-size: .54rem; font-weight: 600; }
.intro-float-card { position: absolute; max-width: 190px; padding: 15px 17px; border: 1px solid rgba(13,13,16,.07); border-radius: 17px; background: #fff; box-shadow: 0 18px 34px rgba(13,13,16,.14); }
.intro-float-card span, .intro-float-card strong, .intro-float-card small { display: block; }.intro-float-card span { color: #7d7f85; font-size: .58rem; font-weight: 900; letter-spacing: .09em; }.intro-float-card strong { margin-top: 9px; font-size: .85rem; }.intro-float-card small { margin-top: 4px; color: #818289; font-size: .63rem; }
.intro-float-one { top: 155px; left: 4%; transform: rotate(5deg); }.intro-float-two { right: 3%; bottom: 98px; transform: rotate(6deg); }
.intro-features { padding: 104px clamp(20px, 7vw, 110px) 114px; background: #fff; scroll-margin-top: 78px; }
.intro-section-heading { max-width: 700px; }.intro-section-heading > span, .intro-end > div > span { color: #686970; font-size: .68rem; font-weight: 900; letter-spacing: .18em; }
.intro-section-heading h2 { margin: 14px 0 0; font-size: clamp(2.1rem, 4vw, 4rem); line-height: 1.15; letter-spacing: -.07em; }.intro-section-heading p { color: #777981; font-size: 1rem; }
.intro-feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-top: 48px; }
.intro-feature-card { min-height: 370px; display: flex; flex-direction: column; align-items: flex-start; padding: 29px; border: 1px solid #e6e7e9; border-radius: 25px; background: #f6f7f8; }.intro-feature-card:nth-child(2) { background: #eaf8b7; border-color: #e0eea9; }.intro-feature-card:nth-child(3) { background: #efebff; border-color: #e7e1ff; }
.intro-feature-number { color: #777981; font-size: .65rem; font-weight: 900; letter-spacing: .12em; }.intro-feature-icon { width: 66px; height: 66px; display: grid; place-items: center; margin-top: 30px; border-radius: 19px; color: #fff; background: var(--ink); font-size: 2.3rem; font-weight: 500; }
.intro-feature-card h3 { margin: auto 0 0; font-size: 1.45rem; letter-spacing: -.04em; }.intro-feature-card h3 small { display: block; margin-top: 5px; color: #575a61; font-size: .8rem; font-weight: 700; letter-spacing: 0; }.intro-feature-card p { margin: 12px 0 0; color: #5f6167; font-size: .88rem; line-height: 1.65; }.intro-feature-card p.intro-en { margin-top: 7px; color: #74767e; font-size: .76rem; line-height: 1.5; }
.intro-why { max-width: 1170px; margin: 0 auto 88px; padding: 55px clamp(27px, 6vw, 78px); border-radius: 30px; background: #e9f9ba; }
.intro-why > span { color: #5a6740; font-size: .67rem; font-weight: 900; letter-spacing: .15em; }
.intro-why h2 { margin: 15px 0 23px; font-size: clamp(2rem, 4vw, 3.6rem); line-height: 1.15; letter-spacing: -.07em; }
.intro-why h2 small, .intro-end h2 small { display: block; margin-top: 8px; font-size: .4em; font-weight: 650; letter-spacing: -.025em; }
.intro-why p { max-width: 790px; margin: 0; font-size: 1rem; line-height: 1.85; }.intro-why p.intro-en { margin-top: 12px; color: #4e5740; font-size: .9rem; line-height: 1.7; }
.intro-end { display: flex; align-items: center; justify-content: space-between; gap: 38px; margin: 0 clamp(20px, 7vw, 110px) 80px; padding: 55px 60px; border-radius: 29px; color: #fff; background: var(--ink); }.intro-end > div > span { color: var(--lime); }.intro-end h2 { margin: 15px 0 6px; font-size: clamp(2rem, 4vw, 3.7rem); letter-spacing: -.07em; }.intro-end p { margin: 0; color: #b2b2b9; line-height: 1.6; }
.intro-end p.intro-en { margin-top: 7px; color: #92939d; font-size: .82rem; }
.intro-end button { min-width: 204px; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 0 20px; border-radius: 15px; color: var(--ink); background: var(--lime); font-size: .9rem; font-weight: 900; }
.intro-footer { display: flex; justify-content: space-between; gap: 20px; padding: 0 clamp(20px, 7vw, 110px) 32px; color: #777981; font-size: .7rem; font-weight: 750; }
.intro-page a:focus-visible, .intro-page button:focus-visible, .account-back:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
@media (max-width: 980px) {
  .intro-hero { grid-template-columns: 1fr; padding-top: 72px; }
  .intro-visual { width: min(100%, 670px); min-height: 560px; justify-self: center; }
}
@media (max-width: 700px) {
  .intro-header { min-height: 68px; padding: 10px 19px; }
  .intro-brand strong { font-size: 1.2rem; }
  .intro-nav { gap: 13px; }.intro-nav > a { display: none; }
  .intro-nav-cta { min-height: 38px; padding: 0 13px; font-size: .72rem; }.intro-login { font-size: .76rem; }
  .intro-hero { min-height: auto; gap: 45px; padding: 76px 19px 74px; }
  .intro-hero h1 { margin-top: 24px; font-size: clamp(3.5rem, 13vw, 5.7rem); }
  .intro-hero-copy > p { font-size: .97rem; }.intro-hero-tags { margin-top: 32px; }
  .intro-visual { min-height: 470px; border-radius: 30px; }.intro-visual::before { inset: 14px; border-radius: 20px; }
  .intro-visual-label { top: 29px; left: 29px; font-size: .52rem; }
  .intro-device { width: 220px; height: 420px; border-radius: 30px; transform: rotate(-5deg) translateX(3px); }
  .intro-device-screen { padding: 21px 13px; }.intro-device-screen > strong { font-size: 1.32rem; }
  .intro-screen-path { top: 128px; }.intro-device-tabs { height: 40px; }
  .intro-float-card { padding: 10px 12px; }.intro-float-one { top: 111px; left: 0; }.intro-float-two { right: 0; bottom: 65px; }
  .intro-float-card strong { font-size: .69rem; }.intro-float-card small { font-size: .52rem; }
  .intro-features { padding: 75px 19px 80px; scroll-margin-top: 68px; }.intro-feature-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 32px; }
  .intro-feature-card { min-height: 290px; padding: 25px; }.intro-feature-icon { margin-top: 20px; }.intro-feature-card h3 { margin-top: 20px; }
  .intro-why { margin: 0 19px 55px; padding: 35px 26px; }.intro-why p { font-size: .91rem; }.intro-why p.intro-en { font-size: .8rem; }
  .intro-end { display: block; margin: 0 19px 55px; padding: 34px 26px; }.intro-end button { width: 100%; margin-top: 27px; }
  .intro-footer { padding: 0 19px 27px; }
}
@media (max-width: 390px) {
  .intro-brand strong { display: none; }
  .intro-hero h1 { font-size: 3.25rem; }
  .intro-visual { min-height: 430px; }.intro-device { width: 199px; height: 385px; }
  .intro-float-one { top: 105px; }.intro-float-two { bottom: 49px; }
}

.app-shell {
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  grid-template-rows: 74px minmax(0, 1fr) 72px;
  overflow: hidden;
  background: var(--paper);
}

.topbar {
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  color: #fff;
  background: var(--ink);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px 14px 14px 4px;
  color: var(--ink);
  background: var(--lime);
  font-size: 1.05rem;
  font-weight: 950;
  transform: rotate(-6deg);
}

.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.18rem; letter-spacing: -.04em; }
.brand small { margin-top: 2px; color: #9999a0; font-size: .75rem; }

.topbar-actions { display: flex; align-items: center; gap: 14px; }

.safety-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #37373c;
  border-radius: 999px;
  color: #c7c7cc;
  font-size: .78rem;
}

.safety-badge i { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); }

.avatar-button {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 14px;
  color: var(--ink);
  background: #fff;
  font-size: .74rem;
  font-weight: 850;
}

.main-stage {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  overflow: hidden;
}

.map-workspace {
  position: relative;
  min-width: 0;
  padding: 18px;
  overflow: hidden;
  background: #e8eaed;
}

.control-dock {
  position: absolute;
  z-index: 8;
  top: 34px;
  left: 34px;
  width: min(520px, calc(100% - 68px));
  display: flex;
  gap: 10px;
}

.search-box {
  flex: 1;
  height: 50px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px;
  border: 1px solid rgba(13, 13, 16, .12);
  border-radius: 17px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 10px 30px rgba(24, 24, 28, .12);
  backdrop-filter: blur(14px);
}

.search-box span { font-size: 1.45rem; transform: rotate(-12deg); }
.search-box input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: .94rem; }

.filter-button {
  min-width: 94px;
  border: 0;
  border-radius: 17px;
  color: #fff;
  background: var(--ink);
  font-size: .86rem;
  font-weight: 800;
  box-shadow: 0 10px 30px rgba(24, 24, 28, .16);
}

.filter-button span {
  min-width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  margin-left: 5px;
  border-radius: 7px;
  color: var(--ink);
  background: var(--lime);
  font-size: .68rem;
}

.time-row, .category-row {
  position: absolute;
  z-index: 8;
  left: 34px;
  display: flex;
  gap: 8px;
}

.time-row { top: 96px; }
.category-row { top: 142px; }

.time-chip, .category-chip {
  min-height: 36px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(13,13,16,.12);
  border-radius: 999px;
  color: #55565d;
  background: rgba(255,255,255,.92);
  font-size: .78rem;
  font-weight: 750;
  white-space: nowrap;
  box-shadow: 0 5px 20px rgba(24,24,28,.07);
}

.time-chip small, .category-chip small {
  color: inherit;
  font-size: .61rem;
  font-weight: 800;
  letter-spacing: .01em;
  opacity: .62;
}

.time-chip.is-active, .category-chip.is-active {
  border-color: var(--ink);
  color: var(--ink);
  background: var(--lime);
}

.map-canvas {
  position: relative;
  z-index: 1;
  isolation: isolate;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #d0d2d6;
  border-radius: 28px;
  background: #e5e8eb;
}

.real-map { width: 100%; height: 100%; background: #e5e8eb; }
.leaflet-container { font-family: inherit; }
.leaflet-control-zoom { overflow: hidden; border: 1px solid #d7d8dc !important; border-radius: 13px !important; box-shadow: 0 10px 28px rgba(24,24,28,.13) !important; }
.leaflet-control-zoom a { width: 40px !important; height: 40px !important; color: var(--ink) !important; font-size: 1.15rem !important; line-height: 40px !important; }
.leaflet-control-zoom a + a { border-top: 1px solid #e4e4e6 !important; }
.leaflet-control-attribution { padding: 4px 7px !important; border-radius: 8px 0 0 0; color: #666970; background: rgba(255,255,255,.9) !important; font-size: 10px !important; }
.leaflet-control-attribution a { color: #3c3e43; }
.playmate-marker-shell { border: 0; background: transparent; }
.playmate-map-marker { position: relative; width: 44px; height: 44px; display: grid; place-items: center; border: 4px solid #fff; border-radius: 50% 50% 50% 10px; background: var(--marker-color); box-shadow: 0 8px 22px rgba(15,15,18,.28); transform: rotate(-45deg); transition: transform .16s ease, box-shadow .16s ease; }
.playmate-map-marker i { width: 12px; height: 12px; border: 3px solid rgba(255,255,255,.94); border-radius: 50%; transform: rotate(45deg); }
.playmate-map-marker.is-selected { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(13,13,16,.82), 0 12px 28px rgba(15,15,18,.34); transform: rotate(-45deg) scale(1.12); }
.leaflet-marker-icon:focus .playmate-map-marker, .leaflet-marker-icon:hover .playmate-map-marker { box-shadow: 0 0 0 4px rgba(215,255,79,.85), 0 12px 28px rgba(15,15,18,.34); transform: rotate(-45deg) scale(1.08); }
.leaflet-tooltip { padding: 7px 10px; border: 0; border-radius: 10px; color: #fff; background: var(--ink); box-shadow: 0 7px 20px rgba(0,0,0,.2); font-size: .72rem; font-weight: 800; }
.leaflet-tooltip-top::before { border-top-color: var(--ink); }

.map-status {
  position: absolute;
  z-index: 850;
  top: 50%;
  left: 50%;
  padding: 10px 14px;
  border-radius: 12px;
  color: #55565d;
  background: rgba(255,255,255,.94);
  box-shadow: 0 10px 30px rgba(24,24,28,.14);
  font-size: .75rem;
  font-weight: 800;
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.map-status[hidden] { display: none; }
.map-status.is-error { color: #9e3e36; background: #fff1ef; }

.map-key {
  position: absolute;
  z-index: 800;
  left: 16px;
  bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 13px;
  border-radius: 12px;
  color: #4e5056;
  background: rgba(255,255,255,.9);
  font-size: .74rem;
  backdrop-filter: blur(10px);
}

.map-key span { width: 8px; height: 8px; border-radius: 50%; background: var(--pink); }
.map-key b { margin-left: 6px; color: #8b8d92; font-weight: 650; }

.activity-panel {
  min-height: 0;
  padding: 22px;
  overflow-y: auto;
  border-left: 1px solid var(--line);
  background: #f8f8f9;
}

.panel-summary { display: flex; align-items: center; justify-content: space-between; color: #5f6066; font-size: .82rem; }
.panel-summary strong { color: var(--ink); font-size: 1.2rem; }
.panel-summary small { color: #929399; font-size: .7rem; }

.activity-card {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 42px rgba(35,35,40,.06);
}

.activity-card.selection-pulse { animation: card-selected .32s ease-out; }
@keyframes card-selected { 0% { box-shadow: 0 0 0 0 rgba(118,87,255,.32); } 100% { box-shadow: 0 0 0 12px rgba(118,87,255,0); } }
.map-selection-note { display: flex; align-items: center; gap: 7px; margin-bottom: 13px; color: #696a71; font-size: .75rem; font-weight: 800; }
.map-selection-note span { width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }

.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.category-label { padding: 7px 10px; border-radius: 999px; font-size: .72rem; font-weight: 850; }
.spots-left { color: #77777d; font-size: .72rem; }
.activity-card h2 { margin: 16px 0 0; font-size: 1.42rem; line-height: 1.25; letter-spacing: -.035em; }
.meta-line { display: flex; gap: 9px; margin-top: 11px; color: #5f6067; font-size: .83rem; line-height: 1.45; }
.meta-line b { flex: 0 0 auto; color: #9b9ca1; font-weight: 700; }
.tag-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 15px; }
.tag-list span { padding: 6px 8px; border-radius: 8px; color: #62636a; background: #f0f1f3; font-size: .7rem; }
.meaning { margin-top: 17px; padding: 15px; border-radius: 16px; color: #e8e8ec; background: var(--ink); font-size: .82rem; line-height: 1.55; }
.meaning strong { display: block; margin-bottom: 5px; color: var(--lime); font-size: .69rem; }
.card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.price strong { display: block; font-size: 1.32rem; }
.price small { color: #8b8b91; font-size: .68rem; }
.detail-cta { min-width: 128px; height: 45px; border: 0; border-radius: 15px; color: #fff; background: var(--ink); font-size: .82rem; font-weight: 850; }

.next-list { margin-top: 22px; }
.next-head { display: flex; align-items: center; justify-content: space-between; }
.next-head strong { font-size: .92rem; }
.next-head button { border: 0; color: #67686e; background: transparent; font-size: .76rem; }
.nearby-item { width: 100%; display: grid; grid-template-columns: 10px 1fr auto; gap: 10px; align-items: center; padding: 14px 0; border: 0; border-bottom: 1px solid var(--line); text-align: left; background: transparent; }
.nearby-dot { width: 9px; height: 9px; border-radius: 50%; }
.nearby-copy strong, .nearby-copy small { display: block; }
.nearby-copy strong { font-size: .82rem; }
.nearby-copy small { margin-top: 3px; color: #8d8e94; font-size: .68rem; }
.nearby-price { font-size: .78rem; font-weight: 850; }

.bottom-nav {
  z-index: 20;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 44px;
  padding: 7px 24px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid #252529;
  color: #8b8b92;
  background: var(--ink);
}

.nav-item {
  min-width: 66px;
  display: grid;
  grid-template-columns: auto auto;
  place-content: center;
  align-items: center;
  gap: 7px;
  border: 0;
  color: inherit;
  background: transparent;
  font-size: .7rem;
  font-weight: 700;
}

.nav-icon { font-size: 1.15rem; }
.nav-copy { display: grid; gap: 2px; text-align: left; line-height: 1; }
.nav-copy b { font-size: .7rem; }
.nav-copy small { font-size: .58rem; font-weight: 750; opacity: .66; }
.nav-item.is-active { color: var(--lime); }

.toast {
  position: fixed;
  z-index: 100;
  left: 50%;
  bottom: 92px;
  padding: 11px 16px;
  border-radius: 12px;
  color: #fff;
  background: rgba(13,13,16,.92);
  font-size: .82rem;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, 12px);
  transition: .2s ease;
}

.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .app-shell { grid-template-rows: 66px minmax(0, 1fr) 72px; }
  .topbar { padding: 0 18px; }
  .safety-badge { display: none; }
  .main-stage { display: block; position: relative; overflow: hidden; }
  .map-workspace { height: 100%; padding: 0; }
  .map-canvas { border: 0; border-radius: 0; }
  .control-dock { top: 18px; left: 16px; width: calc(100% - 32px); }
  .time-row, .category-row { max-width: calc(100% - 16px); overflow-x: auto; scrollbar-width: none; padding-right: 16px; }
  .time-row { top: 80px; left: 16px; }
  .category-row { top: 124px; left: 16px; }
  .time-row::-webkit-scrollbar, .category-row::-webkit-scrollbar { display: none; }
  .map-canvas .leaflet-bottom.leaflet-right { bottom: calc(43% + 8px); }
  .map-key { bottom: calc(43% + 16px); }
  .activity-panel { position: absolute; z-index: 10; right: 0; bottom: 0; left: 0; max-height: 43%; padding: 13px 16px 18px; overflow-y: auto; border: 0; border-radius: 26px 26px 0 0; box-shadow: 0 -12px 44px rgba(29,29,34,.15); }
  .panel-summary { margin-bottom: 2px; }
  .activity-card { margin-top: 10px; padding: 17px; border-radius: 21px; }
  .activity-card h2 { margin-top: 12px; font-size: 1.15rem; }
  .meaning { display: none; }
  .tag-list { margin-top: 11px; }
  .next-list { display: none; }
  .bottom-nav { gap: 0; justify-content: space-around; }
}

@media (max-width: 560px) {
  .account-gate { align-items: start; padding: 14px; }
  .account-card { margin: 10px 0; padding: 24px 20px; border-radius: 24px; }
  .brand small { font-size: .68rem; }
  .filter-button { min-width: 78px; }
  .category-chip, .time-chip { min-height: 34px; padding: 0 12px; }
  .map-key { right: 16px; justify-content: center; }
  .map-key b { display: none; }
}

/* Secondary workspaces */
.secondary-view { display: none; }
.main-stage.secondary-mode {
  display: block;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: #f1f2f4;
}
.main-stage.secondary-mode .map-workspace,
.main-stage.secondary-mode .activity-panel { display: none; }
.main-stage.secondary-mode .secondary-view { display: block; min-height: 100%; }

.page-content {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 38px 0 70px;
}

.map-home-button {
  position: sticky;
  z-index: 30;
  top: 14px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin: -18px 0 22px;
  padding: 0 16px;
  border: 1px solid var(--ink);
  border-radius: 999px;
  color: var(--ink);
  background: var(--lime);
  box-shadow: 0 10px 30px rgba(13,13,16,.14);
  font-size: .84rem;
  font-weight: 900;
}
.map-home-button span { font-size: 1.05rem; }
.map-home-button:hover, .map-home-button:focus-visible { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(13,13,16,.2); }

.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.eyebrow, .modal-kicker {
  margin: 0 0 7px;
  color: var(--violet);
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.page-head h1 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.55rem);
  line-height: 1.08;
  letter-spacing: -.055em;
}

.page-head p:last-child {
  max-width: 620px;
  margin: 10px 0 0;
  color: #66676e;
  line-height: 1.6;
}

.primary-button, .secondary-button, .danger-button {
  min-height: 46px;
  padding: 0 18px;
  border-radius: 15px;
  font-size: .86rem;
  font-weight: 850;
}

.primary-button { border: 1px solid var(--ink); color: #fff; background: var(--ink); }
.secondary-button { border: 1px solid #d5d6da; color: var(--ink); background: #fff; }
.danger-button { border: 1px solid #ffd4d0; color: #b63f38; background: #fff3f2; }

.process-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin-bottom: 24px;
  overflow: hidden;
  border-radius: 22px;
  background: #303035;
}

.process-step {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  padding: 18px;
  color: #fff;
  background: var(--ink);
}

.process-number {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  color: var(--ink);
  background: var(--lime);
  font-size: .72rem;
  font-weight: 900;
}

.process-step strong, .process-step small { display: block; }
.process-step strong { font-size: .88rem; }
.process-step small { margin-top: 4px; color: #9d9da4; font-size: .72rem; line-height: 1.45; }

.wish-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.wish-card, .trip-card, .profile-card, .empty-state {
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(35,35,40,.05);
}

.wish-card { padding: 21px; }
.wish-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wish-status { color: #7e7f86; font-size: .72rem; }
.wish-card h2 { margin: 16px 0 0; font-size: 1.15rem; line-height: 1.35; letter-spacing: -.025em; }
.wish-meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; color: #64656c; font-size: .8rem; }
.wish-quote { margin: 16px 0 0; padding: 13px; border-radius: 13px; color: #595a61; background: #f3f4f6; font-size: .8rem; line-height: 1.55; }
.progress-head { display: flex; justify-content: space-between; margin-top: 17px; color: #77787f; font-size: .72rem; }
.progress-track { height: 8px; margin-top: 8px; overflow: hidden; border-radius: 99px; background: #e8e9eb; }
.progress-fill { height: 100%; border-radius: inherit; }
.interest-button { width: 100%; height: 42px; margin-top: 17px; border: 1px solid var(--ink); border-radius: 14px; color: #fff; background: var(--ink); font-size: .8rem; font-weight: 850; }
.interest-button.is-active { border-color: #cad9a2; color: #344020; background: #eff8d8; }

.trip-list { display: grid; gap: 16px; }
.trip-card { position: relative; display: grid; grid-template-columns: 8px 1fr; overflow: hidden; }
.trip-accent { min-height: 100%; }
.trip-inner { padding: 22px; }
.trip-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.trip-date { color: #5f6066; font-size: .78rem; font-weight: 800; }
.status-pill { padding: 6px 10px; border-radius: 999px; color: #177a50; background: #e3f7ed; font-size: .68rem; font-weight: 850; }
.trip-card h2 { margin: 13px 0 4px; font-size: 1.22rem; }
.trip-time { color: #77787f; font-size: .84rem; }
.timeline { display: grid; gap: 0; margin-top: 17px; padding: 15px; border-radius: 15px; background: #f3f4f6; }
.timeline-row { display: grid; grid-template-columns: 12px 1fr; gap: 10px; align-items: start; }
.timeline-dot { width: 9px; height: 9px; margin-top: 4px; border: 3px solid var(--ink); border-radius: 50%; }
.timeline-dot.end { border-color: #e05249; }
.timeline-line { width: 1px; height: 17px; margin-left: 4px; background: #c8c9cd; }
.timeline-row small, .timeline-row strong { display: block; }
.timeline-row small { color: #8a8b92; font-size: .68rem; }
.timeline-row strong { margin-top: 3px; font-size: .8rem; }
.trip-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 17px; }
.trip-actions button { min-height: 38px; padding: 0 13px; border: 1px solid #dadbde; border-radius: 12px; color: #515259; background: #fff; font-size: .73rem; font-weight: 750; }
.trip-actions button:first-child { border-color: var(--ink); color: #fff; background: var(--ink); }
.trip-actions button:last-child { color: #b44740; }
.private-note { margin-top: 15px; padding: 12px; border-left: 5px solid var(--violet); border-radius: 5px 13px 13px 5px; color: #51457c; background: #f0ecff; font-size: .78rem; }

.empty-state { padding: 64px 28px; text-align: center; }
.empty-icon { width: 70px; height: 70px; display: grid; place-items: center; margin: 0 auto; border-radius: 23px; color: var(--ink); background: var(--lime); font-size: 2rem; }
.empty-state h2 { margin: 20px 0 0; }
.empty-state p { max-width: 480px; margin: 10px auto 24px; color: #6f7077; line-height: 1.65; }

.profile-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
.profile-card { padding: 24px; }
.profile-identity { max-width: 720px; color: #fff; background: var(--ink); }
.profile-avatar { width: 72px; height: 72px; display: grid; place-items: center; border-radius: 24px; color: var(--ink); background: var(--lime); font-size: 1.6rem; font-weight: 950; }
.profile-identity h2 { margin: 17px 0 0; font-size: 1.42rem; }
.profile-identity > p { margin: 6px 0 0; color: #a6a6ad; font-size: .82rem; }
.verified-line { display: inline-flex; align-items: center; gap: 6px; margin-top: 17px; padding: 7px 10px; border: 1px solid #3d3d43; border-radius: 999px; color: var(--lime); font-size: .72rem; font-weight: 800; }
.account-line { display: block; margin-top: 9px; color: #a6a6ad; font-size: .72rem; }
.toggle-row i { position: relative; flex: 0 0 auto; width: 44px; height: 25px; border-radius: 99px; background: #d4d5d8; transition: .16s; }
.toggle-row i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 19px; height: 19px; border-radius: 50%; background: #fff; transition: .16s; }
.toggle-row input:checked + i { background: var(--ink); }
.toggle-row input:checked + i::after { transform: translateX(19px); }
.meaning-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.meaning-tags span { padding: 6px 10px; border: 1px solid rgba(13,13,16,.24); border-radius: 999px; font-size: .72rem; font-weight: 750; }
.profile-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 20px; }
.profile-contact { max-width: 720px; }
.profile-card-head h2 { margin: 0; font-size: 1.15rem; }
.profile-card-head h2 small { margin-left: 4px; color: #85868d; font-size: .72rem; font-weight: 800; }
.profile-card-head p { margin: 5px 0 0; color: #85868d; font-size: .72rem; }
.phone-editor { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; margin-top: 18px; }
.phone-editor .primary-button { min-height: 48px; white-space: nowrap; }

/* Modals */
.modal[hidden] { display: none; }
.modal { position: fixed; z-index: 200; inset: 0; display: grid; place-items: center; padding: 22px; }
.modal-backdrop { position: absolute; inset: 0; background: rgba(8,8,11,.62); backdrop-filter: blur(5px); }
.modal-card { position: relative; z-index: 1; width: min(680px, 100%); max-height: min(88vh, 850px); padding: 28px; overflow-y: auto; border-radius: 28px; background: #fff; box-shadow: 0 34px 100px rgba(0,0,0,.28); animation: modal-in .18s ease-out; }
.compact-modal { width: min(520px, 100%); }
.form-modal { width: min(590px, 100%); }
.modal-close { position: absolute; top: 18px; right: 18px; width: 38px; height: 38px; border: 0; border-radius: 13px; color: #55565c; background: #eff0f2; font-size: 1.25rem; line-height: 1; }
.modal-card h2 { margin: 0; padding-right: 44px; font-size: 1.55rem; line-height: 1.25; letter-spacing: -.04em; }

@keyframes modal-in { from { opacity: .4; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }

.detail-hero { margin: 22px 0 0; padding: 22px; border-radius: 21px; }
.detail-hero small, .detail-hero strong, .detail-hero span { display: block; }
.detail-hero small { font-weight: 800; }
.detail-hero strong { margin-top: 4px; font-size: 2rem; letter-spacing: -.05em; }
.detail-hero span { margin-top: 9px; color: #505159; font-size: .84rem; }
.host-row { display: flex; align-items: center; gap: 12px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.host-mark { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 15px; color: #fff; font-weight: 900; }
.host-copy { flex: 1; }
.host-copy strong, .host-copy small { display: block; }
.host-copy strong { font-size: .86rem; }
.host-copy small { margin-top: 4px; color: #85868c; font-size: .69rem; }
.verified { color: #168b5c; font-size: .72rem; font-weight: 850; }
.detail-meaning { margin-top: 20px; padding: 18px; border-radius: 18px; color: #eeeef1; background: var(--ink); line-height: 1.6; }
.detail-meaning strong { display: block; margin-bottom: 6px; color: var(--lime); font-size: .72rem; }
.detail-section { padding: 20px 0; border-bottom: 1px solid var(--line); }
.detail-section h3 { margin: 0 0 12px; font-size: .96rem; }
.safety-line { display: flex; align-items: flex-start; gap: 9px; margin-top: 9px; color: #5a5b62; font-size: .8rem; line-height: 1.5; }
.safety-line i { color: var(--green); font-style: normal; font-weight: 900; }
.join-panel { margin-top: 18px; padding: 18px; border-radius: 18px; background: #f1edff; }
.join-panel h3 { margin: 0; font-size: 1rem; }
.join-panel > p { margin: 8px 0 0; color: #665b91; font-size: .78rem; line-height: 1.55; }
.detail-footer { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top: 20px; }
.detail-price strong, .detail-price small { display: block; }
.detail-price strong { font-size: 1.25rem; }
.detail-price small { margin-top: 3px; color: #85868c; font-size: .69rem; }

.field-group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.field-heading { display: flex; align-items: center; justify-content: space-between; }
.field-group label, .field-heading label { font-size: .84rem; font-weight: 800; }
.field-group small { display: block; margin-top: 7px; color: #85868d; font-size: .7rem; line-height: 1.45; }
.field-group input[type='range'] { width: 100%; margin: 16px 0 0; accent-color: var(--ink); }
.field-group select, .form-field select, .form-field input, .form-field textarea {
  width: 100%;
  border: 1px solid #d9dade;
  border-radius: 14px;
  outline: none;
  color: var(--ink);
  background: #f7f8f9;
}
.field-group select { height: 44px; margin-top: 10px; padding: 0 12px; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.toggle-row span strong, .toggle-row span small { display: block; }
.toggle-row span strong { font-size: .84rem; }
.toggle-row span small { margin-top: 4px; color: #85868d; font-size: .7rem; }
.toggle-row input { position: absolute; opacity: 0; }
.modal-actions { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 20px; }

.lesson-box { margin-top: 20px; padding: 16px; border-radius: 16px; }
.lesson-box.pink { color: #704057; background: #fff0f6; }
.lesson-box.lime { color: #3d4727; background: #eff9d7; }
.lesson-box strong { font-size: .86rem; }
.lesson-box p { margin: 5px 0 0; font-size: .78rem; line-height: 1.55; }
.form-field { display: block; margin-top: 17px; }
.form-field > span { display: block; margin-bottom: 7px; font-size: .8rem; font-weight: 800; }
.form-field input, .form-field select { height: 46px; padding: 0 13px; }
.form-field textarea { min-height: 96px; padding: 12px 13px; resize: vertical; }
.form-field small { display: block; margin-top: 6px; color: #85868d; font-size: .68rem; }
.place-search-field { position: relative; z-index: 4; }
.place-search-wrap { position: relative; display: block; margin: 0; }
.map-pick-button { width: 100%; min-height: 44px; margin-top: 10px; border: 1px solid #d9dade; border-radius: 14px; color: var(--ink); background: #fff; font-size: .8rem; font-weight: 800; cursor: pointer; }
.map-pick-button:hover, .map-pick-button:focus-visible { border-color: var(--ink); background: #f2ffd0; }
.place-map-card { width: min(920px, 100%); }
.place-map-help { margin: 10px 0 16px; color: #666870; font-size: .8rem; line-height: 1.5; }
.place-picker-map { width: 100%; height: min(48vh, 450px); min-height: 240px; overflow: hidden; border: 1px solid #d9dade; border-radius: 18px; background: #e5e8eb; cursor: crosshair; }
.place-picker-status { min-height: 20px; margin: 14px 0 8px; color: #55565c; font-size: .78rem; }
.place-picker-results { display: grid; gap: 8px; max-height: 185px; overflow-y: auto; }
.place-picker-results .place-result { border: 1px solid #e1e2e5; border-radius: 12px; }
.place-picker-results .place-result:hover, .place-picker-results .place-result:focus-visible { border-color: var(--ink); }
.place-results { position: absolute; z-index: 12; top: calc(100% + 7px); right: 0; left: 0; max-height: min(45vh, 360px); overflow-y: auto; border: 1px solid #d5d6da; border-radius: 16px; background: #fff; box-shadow: 0 18px 46px rgba(13,13,16,.18); }
.place-result { width: 100%; display: block; padding: 12px 14px; border: 0; border-bottom: 1px solid #ececef; text-align: left; color: var(--ink); background: #fff; }
.place-result:last-child { border-bottom: 0; }
.place-result:hover, .place-result:focus-visible { background: #f1f2f4; }
.place-result strong, .place-result small { display: block; }
.place-result strong { font-size: .84rem; }
.place-result small { margin-top: 4px; color: #73747b; font-size: .7rem; line-height: 1.45; }
.selected-place { margin-top: 10px; padding: 13px 14px; border: 1px solid #b7d82f; border-radius: 15px; color: #2f351d; background: #f2ffd0; }
.selected-place strong, .selected-place span { display: block; }
.selected-place strong { font-size: .82rem; }
.selected-place span { margin-top: 4px; color: #667044; font-size: .7rem; line-height: 1.45; }
.place-attribution { margin: 12px 0 0; color: #8b8c92; text-align: center; font-size: .66rem; }
.two-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check-row { display: flex; align-items: flex-start; gap: 10px; margin-top: 17px; color: #57585f; font-size: .76rem; line-height: 1.5; }
.check-row input { flex: 0 0 auto; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--ink); }
.full-button { width: 100%; margin-top: 20px; }
.privacy-note { margin: 11px 0 0; color: #96979c; text-align: center; font-size: .67rem; }

@media (max-width: 900px) {
  .page-content { width: min(100% - 32px, 720px); padding-top: 26px; }
  .process-strip { grid-template-columns: 1fr; }
  .wish-grid, .profile-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .page-head { align-items: flex-start; }
  .page-head p:last-child { font-size: .85rem; }
  .page-head-actions .primary-button { min-width: 46px; padding: 0 14px; }
  .modal { align-items: end; padding: 0; }
  .modal-card { width: 100%; max-height: 91vh; padding: 24px 20px max(24px, env(safe-area-inset-bottom)); border-radius: 25px 25px 0 0; }
  .place-picker-map { height: 38vh; min-height: 220px; }
  .two-fields { grid-template-columns: 1fr; gap: 0; }
  .phone-editor { grid-template-columns: 1fr; }
  .phone-editor .primary-button { width: 100%; }
}

/* Complete registration flow */
.onboarding[hidden] { display: none; }
.onboarding {
  position: fixed;
  z-index: 500;
  inset: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  color: var(--ink);
  background: #eef0f2;
}

.onboarding-shell {
  width: min(1280px, 100%);
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  background: #fff;
}

.onboarding-aside {
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  padding: 34px;
  overflow: hidden;
  color: #fff;
  background: var(--ink);
}

.onboarding-aside::before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -112px;
  top: 168px;
  border: 58px solid var(--lime);
  border-radius: 50%;
  opacity: .92;
}

.onboarding-aside::after {
  content: '';
  position: absolute;
  width: 170px;
  height: 46px;
  left: -38px;
  bottom: 118px;
  border-radius: 99px;
  background: var(--violet);
  transform: rotate(-18deg);
}

.brand-onboarding { position: relative; z-index: 1; }
.onboarding-promise { position: relative; z-index: 1; margin-top: 44px; }
.promise-label { color: var(--lime); font-size: .72rem; font-weight: 900; letter-spacing: .09em; }
.onboarding-promise h1 { margin: 14px 0 0; font-size: clamp(2.15rem, 3.4vw, 3rem); line-height: 1.08; letter-spacing: -.065em; }
.onboarding-promise p { margin: 16px 0 0; color: #a8a8af; font-size: .86rem; line-height: 1.75; }

.onboarding-progress {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 2px;
  margin: auto 0 12px;
  padding: 0;
  list-style: none;
}

.onboarding-progress li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: center; padding: 3px 0; color: #66666d; font-size: .73rem; }
.onboarding-progress li span { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid #3d3d43; border-radius: 10px; font-size: .62rem; }
.onboarding-progress li.is-current { color: #fff; }
.onboarding-progress li.is-current span { border-color: var(--lime); color: var(--ink); background: var(--lime); font-weight: 900; }
.onboarding-progress li.is-done { color: #aaaab0; }
.onboarding-progress li.is-done span { border-color: #49522e; color: var(--lime); background: #262b1d; }
.onboarding-privacy { position: relative; z-index: 1; margin: 0; color: #66666d; font-size: .65rem; line-height: 1.55; }

.onboarding-main { min-width: 0; background: #fff; }
.onboarding-content { max-width: 820px; min-height: 100vh; margin: 0 auto; padding: 68px 56px 56px; }
.onboarding-step { animation: step-in .22s ease-out; }
.onboarding-step h2 { max-width: 720px; margin: 12px 0 0; font-size: clamp(2rem, 4vw, 3.15rem); line-height: 1.08; letter-spacing: -.065em; }
.step-kicker, .step-count { color: #76777e; font-size: .7rem; font-weight: 900; letter-spacing: .1em; }
.step-kicker { display: inline-flex; padding: 8px 11px; border-radius: 999px; color: #373d25; background: #eff8d7; }
.step-lead { max-width: 680px; margin: 16px 0 0; color: #66676e; font-size: .95rem; line-height: 1.75; }
@keyframes step-in { from { opacity: .4; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.trust-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 34px; }
.trust-grid article { min-height: 164px; padding: 18px; border: 1px solid var(--line); border-radius: 20px; background: #f7f8f9; }
.trust-grid article span { color: var(--violet); font-size: .68rem; font-weight: 900; }
.trust-grid article strong { display: block; margin-top: 24px; font-size: .92rem; }
.trust-grid article p { margin: 8px 0 0; color: #77787f; font-size: .75rem; line-height: 1.55; }
.welcome-buttons { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.evidence-foot { margin: 22px 0 0; color: #929399; font-size: .69rem; line-height: 1.6; }
.evidence-foot a, .micro-lesson a { color: inherit; font-weight: 800; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; margin-top: 24px; }
.form-grid .wide { grid-column: 1 / -1; }
.micro-lesson { margin-top: 26px; padding: 17px 18px; border-left: 5px solid var(--violet); border-radius: 6px 18px 18px 6px; color: #4a4366; background: #f1edff; }
.micro-lesson.lime { border-color: #83a91f; color: #4c572e; background: #eff8d8; }
.micro-lesson.orange { border-color: var(--orange); color: #724c3c; background: #fff0ea; }
.micro-lesson b { font-size: .82rem; }
.micro-lesson p { margin: 6px 0 0; font-size: .77rem; line-height: 1.6; }
.micro-lesson a { display: inline-block; margin-top: 8px; font-size: .7rem; }

.interest-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.interest-choice { position: relative; min-height: 86px; display: grid; grid-template-columns: 48px 1fr auto; grid-template-rows: auto auto; gap: 3px 12px; align-items: center; padding: 14px; border: 1px solid var(--line); border-radius: 18px; text-align: left; color: var(--ink); background: #fff; }
.interest-choice > span { grid-row: 1 / 3; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 15px; font-weight: 950; }
.interest-choice strong { align-self: end; font-size: .86rem; }
.interest-choice small { align-self: start; color: #85868d; font-size: .68rem; }
.interest-choice i { grid-row: 1 / 3; color: #9b9ca2; font-size: .66rem; font-style: normal; font-weight: 850; }
.interest-choice.is-selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fafafa; }
.interest-choice.is-selected i { color: #177c52; }


.guardian-card { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding: 20px; border-radius: 21px; color: #fff; background: var(--ink); }
.guardian-card > div { display: flex; align-items: center; gap: 14px; }
.guardian-icon { flex: 0 0 auto; width: 52px; height: 52px; display: grid; place-items: center; border-radius: 17px; color: var(--ink); background: var(--lime); font-weight: 950; }
.guardian-card strong { font-size: .9rem; }
.guardian-card p { margin: 5px 0 0; color: #a6a6ad; font-size: .71rem; line-height: 1.5; }
.check-row.large { padding: 15px; border: 1px solid var(--line); border-radius: 16px; background: #fafafa; }
.check-row.large strong, .check-row.large small { display: block; }
.check-row.large strong { color: var(--ink); font-size: .8rem; }
.check-row.large small { margin-top: 4px; color: #85868d; font-size: .68rem; }

.purpose-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; }
.purpose-choice { position: relative; min-height: 100px; padding: 17px 17px 17px 46px; border: 1px solid var(--line); border-radius: 18px; text-align: left; color: var(--ink); background: #fff; }
.purpose-choice i { position: absolute; top: 19px; left: 17px; width: 18px; height: 18px; border: 2px solid #c5c6ca; border-radius: 50%; }
.purpose-choice strong, .purpose-choice span { display: block; }
.purpose-choice strong { font-size: .87rem; }
.purpose-choice span { margin-top: 7px; color: #797a81; font-size: .7rem; line-height: 1.45; }
.purpose-choice.is-selected { border-color: var(--ink); background: #f2f9dc; box-shadow: inset 0 0 0 1px var(--ink); }
.purpose-choice.is-selected i { border: 5px solid var(--ink); background: var(--lime); }
.evidence-summary { margin-top: 18px; padding: 20px; border-radius: 20px; color: #fff; background: var(--ink); }
.evidence-summary > span { color: var(--lime); font-size: .68rem; font-weight: 900; }
.evidence-summary h3 { max-width: 560px; margin: 8px 0 0; font-size: 1.28rem; line-height: 1.35; }
.evidence-levels { display: grid; gap: 7px; margin-top: 13px; }
.evidence-levels p { margin: 0; color: #b9b9be; font-size: .71rem; line-height: 1.5; }
.evidence-levels b { display: inline-block; min-width: 66px; color: #fff; }
.onboarding-actions { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.text-button { border: 0; color: #696a70; background: transparent; font-size: .78rem; font-weight: 800; }
.onboarding-next { min-width: 190px; }

/* Research and in-flow learning */
.learn-page { padding-bottom: 68px; }
.learn-head { align-items: flex-end; }
.learn-head > div { max-width: 780px; }
.learn-head p:last-child { font-size: 1rem; line-height: 1.7; }
.research-date { flex: 0 0 auto; padding: 9px 12px; border: 1px solid var(--line); border-radius: 999px; color: #686970; background: #fff; font-size: .78rem; font-weight: 800; }
.learn-manifesto { display: grid; grid-template-columns: 1.4fr .6fr; gap: 34px; align-items: end; padding: 34px; border-radius: 28px; color: #fff; background: var(--ink); }
.learn-manifesto > div:first-child > span { color: var(--lime); font-size: .82rem; font-weight: 900; }
.learn-manifesto h2 { margin: 12px 0 0; font-size: clamp(2rem,4vw,3.25rem); line-height: 1.06; letter-spacing: -.06em; }
.learn-manifesto p { max-width: 720px; margin: 18px 0 0; color: #c0c0c5; font-size: 1rem; line-height: 1.72; }
.lesson-progress { padding: 20px; border: 1px solid #3c3c42; border-radius: 20px; background: #242428; }
.lesson-progress strong, .lesson-progress span, .lesson-progress small { display: block; }
.lesson-progress strong { color: var(--lime); font-size: 2.1rem; letter-spacing: -.04em; }
.lesson-progress span { margin-top: 3px; font-size: .88rem; font-weight: 800; }
.lesson-progress > div { height: 7px; margin-top: 17px; overflow: hidden; border-radius: 99px; background: #414148; }
.lesson-progress i { display: block; height: 100%; border-radius: inherit; background: var(--lime); }
.lesson-progress small { margin-top: 9px; color: #98989e; font-size: .77rem; }
.truth-strip { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-top: 14px; }
.truth-strip article { padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: #fff; }
.truth-strip b { font-size: .92rem; }
.truth-strip p { margin: 9px 0 0; color: #66676e; font-size: .91rem; line-height: 1.62; }
.need-switch { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; }
.need-switch button { padding: 9px 12px; border: 1px solid #414148; border-radius: 999px; color: #b7b7bc; background: transparent; font-size: .82rem; }
.need-switch button.is-active { border-color: var(--lime); color: var(--ink); background: var(--lime); font-weight: 850; }
.learn-section { margin-top: 48px; }
.section-title { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; margin-bottom: 20px; }
.section-title > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; color: #fff; background: var(--ink); font-size: .82rem; font-weight: 900; }
.section-title h2 { margin: 0; font-size: 1.55rem; letter-spacing: -.035em; }
.section-title p { margin: 7px 0 0; color: #707178; font-size: .96rem; line-height: 1.6; }
.play-route { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.play-route article { min-height: 260px; padding: 21px; border: 1px solid var(--line); border-top: 6px solid var(--violet); border-radius: 20px; background: #fff; }
.play-route article:nth-child(2) { border-top-color: var(--pink); }
.play-route article:nth-child(3) { border-top-color: var(--orange); }
.play-route article:nth-child(4) { border-top-color: var(--green); }
.play-route span { color: #6c6d74; font-size: .8rem; font-weight: 900; }
.play-route h3 { margin: 18px 0 0; font-size: 1.05rem; line-height: 1.4; }
.play-route ul { margin: 16px 0 0; padding-left: 18px; color: #5f6067; }
.play-route li { margin-top: 9px; font-size: .9rem; line-height: 1.55; }
.scenario-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 12px; }
.scenario-card { padding: 22px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.scenario-top { display: flex; justify-content: space-between; align-items: center; }
.scenario-top span { color: var(--violet); font-size: .78rem; font-weight: 900; }
.scenario-top b { color: #85868d; font-size: .75rem; }
.scenario-card h3 { margin: 18px 0 0; font-size: 1.08rem; line-height: 1.45; }
.scenario-card > p { margin: 8px 0 0; color: #6f7077; font-size: .92rem; line-height: 1.55; }
.scenario-options { display: grid; gap: 8px; margin-top: 18px; }
.scenario-option { min-height: 48px; display: grid; grid-template-columns: 28px 1fr; gap: 9px; align-items: center; padding: 10px 12px; border: 1px solid #dfe0e3; border-radius: 14px; text-align: left; color: #4e4f55; background: #fafafa; font-size: .86rem; line-height: 1.4; }
.scenario-option span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; color: #77787f; background: #eceef0; font-size: .72rem; font-weight: 900; }
.scenario-option:hover:not(:disabled) { border-color: var(--ink); color: var(--ink); }
.scenario-option.is-best { border-color: #73b695; color: #245d46; background: #e8f7f0; }
.scenario-option.is-best span { color: #fff; background: #27845e; }
.scenario-option.is-missed { border-color: #e8a18e; background: #fff1ed; }
.scenario-option:disabled { cursor: default; opacity: 1; }
.scenario-feedback { margin-top: 14px; padding: 15px; border-radius: 14px; }
.scenario-feedback.is-steady { color: #245d46; background: #e8f7f0; }
.scenario-feedback.is-adjust { color: #754c35; background: #fff2e8; }
.scenario-feedback strong { font-size: .88rem; }
.scenario-feedback p { margin: 6px 0 0; font-size: .88rem; line-height: 1.58; }
.reset-lessons { margin-top: 14px; padding: 9px 0; border: 0; color: #66676e; background: transparent; font-size: .82rem; font-weight: 850; text-decoration: underline; }
.host-checklist { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.host-checklist article { min-height: 210px; display: flex; flex-direction: column; padding: 20px; border-radius: 20px; color: #fff; background: var(--ink); }
.host-checklist b { align-self: flex-start; padding: 6px 9px; border-radius: 9px; color: var(--ink); background: var(--lime); font-size: .76rem; }
.host-checklist strong { margin-top: 28px; font-size: 1rem; line-height: 1.4; }
.host-checklist p { margin: 10px 0 0; color: #b9b9be; font-size: .9rem; line-height: 1.6; }
.evidence-table { overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.evidence-head, .evidence-row { display: grid; grid-template-columns: 180px 1fr 1fr; gap: 18px; }
.evidence-head { padding: 13px 22px; color: #7a7b81; background: #e8eaec; font-size: .78rem; font-weight: 900; }
.evidence-row { position: relative; padding: 20px 48px 20px 22px; color: inherit; text-decoration: none; border-top: 1px solid var(--line); }
.evidence-row div b, .evidence-row div strong { display: block; }
.evidence-row div b { color: var(--violet); font-size: .76rem; }
.evidence-row div strong { margin-top: 7px; font-size: .9rem; line-height: 1.4; }
.evidence-row p { margin: 0; color: #5f6067; font-size: .88rem; line-height: 1.58; }
.evidence-row p + p { color: #7b5a48; }
.evidence-row i { position: absolute; top: 20px; right: 20px; color: #8a8b91; font-style: normal; }
.evidence-row:hover { background: #fafafa; }
.evidence-more { margin-top: 12px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.evidence-more summary { padding: 15px 18px; cursor: pointer; font-size: .86rem; font-weight: 900; }
.evidence-more ul { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 26px; margin: 0; padding: 0 18px 18px 36px; }
.evidence-more li { color: #66676e; font-size: .84rem; line-height: 1.45; }
.evidence-more a { color: var(--ink); }
.evidence-more span { display: block; color: #96979c; font-size: .74rem; }
.support-block { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-top: 48px; padding: 28px; border-left: 7px solid var(--orange); border-radius: 8px 22px 22px 8px; color: #693e30; background: #fff0ea; }
.support-block > div { max-width: 800px; }
.support-block span { font-size: .78rem; font-weight: 900; }
.support-block h2 { margin: 8px 0 0; font-size: 1.35rem; line-height: 1.42; }
.support-block p { margin: 10px 0 0; font-size: .94rem; line-height: 1.65; }
.support-block button { flex: 0 0 auto; }
.need-panel { display: grid; grid-template-columns: 1fr auto; gap: 18px 26px; align-items: center; padding: 26px; border-radius: 24px; color: #fff; background: var(--ink); }
.compact-need { margin-top: 18px; }
.need-panel > div:first-child > span { color: var(--lime); font-size: .8rem; font-weight: 900; }
.need-panel h2 { margin: 7px 0 0; font-size: 2rem; letter-spacing: -.05em; }
.need-panel p { margin: 8px 0 0; color: #b3b3b8; font-size: .92rem; }

/* Organizer ranking */
.ranking-rule { display: grid; grid-template-columns: 1fr .8fr; gap: 24px; align-items: end; padding: 26px; border-radius: 24px; color: #fff; background: var(--ink); }
.ranking-rule span { color: var(--lime); font-size: .67rem; font-weight: 900; }
.ranking-rule h2 { margin: 7px 0 0; font-size: 1.7rem; letter-spacing: -.045em; }
.ranking-rule p { margin: 8px 0 0; color: #b2b2b7; font-size: .76rem; line-height: 1.62; }
.rule-tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.rule-tags span { padding: 7px 9px; border: 1px solid #414148; border-radius: 999px; color: #d5d5d8; background: #29292e; font-size: .64rem; }
.podium-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 18px; }
.podium-card { position: relative; min-height: 260px; display: flex; flex-direction: column; align-items: flex-start; padding: 21px; overflow: hidden; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.podium-card.rank-1 { border-color: #b6cf65; background: #f4fadf; }
.podium-number { position: absolute; top: 14px; right: 17px; color: #d2d3d6; font-size: 3.4rem; font-weight: 950; line-height: 1; }
.rank-1 .podium-number { color: #b8d566; }
.podium-mark, .rank-mark { display: grid; place-items: center; font-weight: 950; }
.podium-mark { width: 52px; height: 52px; border-radius: 17px; font-size: 1rem; }
.podium-card h3 { max-width: 78%; margin: 20px 0 0; font-size: 1.02rem; line-height: 1.35; }
.podium-card p { margin: 6px 0 0; color: #7b7c82; font-size: .68rem; }
.podium-card > strong { margin-top: auto; font-size: 2rem; letter-spacing: -.06em; }
.podium-card > strong small { font-size: .7rem; letter-spacing: 0; }
.podium-card button, .rank-row button { margin-top: 10px; padding: 7px 10px; border: 0; border-radius: 10px; color: #fff; background: var(--ink); font-size: .65rem; font-weight: 850; }
.ranking-list { margin-top: 18px; padding: 8px 18px; border: 1px solid var(--line); border-radius: 22px; background: #fff; }
.ranking-list-head { display: flex; justify-content: space-between; padding: 13px 0; color: #73747a; font-size: .68rem; }
.ranking-list-head strong { color: var(--ink); font-size: .76rem; }
.rank-row { display: grid; grid-template-columns: 28px 42px minmax(180px, 1fr) auto 70px 58px; gap: 12px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.rank-row > b { color: #8b8c92; font-size: .76rem; text-align: center; }
.rank-mark { width: 42px; height: 42px; border-radius: 13px; font-size: .78rem; }
.rank-row div strong, .rank-row div small { display: block; }
.rank-row div strong { font-size: .78rem; }
.rank-row div small { margin-top: 4px; color: #85868d; font-size: .64rem; }
.newcomer-count { color: #72737a; font-size: .67rem; }
.event-count { font-size: .78rem; text-align: right; }
.rank-row button { margin: 0; }
.ranking-research { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 18px; padding: 19px 21px; border-left: 5px solid var(--violet); border-radius: 7px 18px 18px 7px; color: #4b4568; background: #f1edff; }
.ranking-research span { font-size: .72rem; font-weight: 900; }
.ranking-research p { max-width: 720px; margin: 5px 0 0; font-size: .7rem; line-height: 1.55; }
.ranking-research a { flex: 0 0 auto; color: inherit; font-size: .68rem; font-weight: 900; }

.match-pill { padding: 6px 9px; border-radius: 999px; color: #425021; background: #eff8d8; font-size: .64rem; font-weight: 850; }
.context-lesson { margin-top: 16px; padding: 17px; border-left: 5px solid var(--violet); border-radius: 6px 16px 16px 6px; color: #4c456c; background: #f1edff; }
.context-lesson span { font-size: .67rem; font-weight: 900; }
.context-lesson p { margin: 6px 0 0; font-size: .76rem; line-height: 1.58; }
.conflict-alert { margin-top: 16px; padding: 16px; border-radius: 16px; color: #773d32; background: #ffe8e2; }
.conflict-alert strong { font-size: .82rem; }
.conflict-alert p { margin: 5px 0 0; font-size: .72rem; line-height: 1.5; }
.detail-footer button:disabled { cursor: not-allowed; color: #929399; background: #dfe0e2; }
.reflection-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.reflection-grid .form-field:last-child { grid-column: 1 / -1; }
.reflection-note { border-color: var(--green); color: #2d654f; background: #e8f7f0; }
.post-note { margin-top: 16px; }
.profile-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.profile-tags span { padding: 6px 9px; border: 1px solid #3c3c42; border-radius: 999px; color: #c4c4c9; font-size: .67rem; }
.text-link-button { margin-top: 16px; padding: 0; border: 0; color: var(--ink); background: transparent; font-size: .75rem; font-weight: 900; text-decoration: underline; }

@media (max-width: 980px) {
  .onboarding-shell { grid-template-columns: 290px minmax(0, 1fr); }
  .onboarding-aside { padding: 26px; }
  .onboarding-content { padding-inline: 38px; }
  .learn-manifesto { grid-template-columns: 1fr; align-items: start; }
  .truth-strip { grid-template-columns: 1fr; }
  .play-route { grid-template-columns: repeat(2,1fr); }
  .host-checklist { grid-template-columns: repeat(2,1fr); }
  .evidence-head, .evidence-row { grid-template-columns: 150px 1fr 1fr; }
  .bottom-nav { gap: 22px; }
}

@media (max-width: 720px) {
  body.onboarding-open { overflow: hidden; }
  .onboarding-shell { display: block; }
  .onboarding-aside { position: relative; height: auto; min-height: 176px; padding: 20px; }
  .onboarding-aside::before { width: 120px; height: 120px; top: -38px; right: -42px; border-width: 28px; }
  .onboarding-aside::after { display: none; }
  .brand-onboarding .brand-mark { width: 38px; height: 38px; }
  .onboarding-promise { margin-top: 24px; }
  .onboarding-promise h1 { font-size: 1.75rem; }
  .onboarding-promise p, .onboarding-privacy { display: none; }
  .onboarding-progress { grid-template-columns: repeat(9, 1fr); gap: 5px; margin: 23px 0 0; }
  .onboarding-progress li { display: block; padding: 0; }
  .onboarding-progress li span { width: 100%; height: 5px; overflow: hidden; border: 0; border-radius: 99px; color: transparent; background: #323238; }
  .onboarding-progress li b { display: none; }
  .onboarding-progress li.is-current span { background: var(--lime); }
  .onboarding-progress li.is-done span { background: #859f32; }
  .onboarding-content { min-height: calc(100vh - 176px); min-height: calc(100dvh - 176px); padding: 30px 20px 40px; }
  .onboarding-step h2 { font-size: 2rem; }
  .trust-grid { grid-template-columns: 1fr; margin-top: 24px; }
  .trust-grid article { min-height: 112px; }
  .trust-grid article strong { margin-top: 15px; }
  .form-grid, .interest-grid, .purpose-grid, .play-route, .scenario-grid, .host-checklist, .podium-grid, .reflection-grid { grid-template-columns: 1fr; }
  .form-grid .wide, .reflection-grid .form-field:last-child { grid-column: auto; }
  .guardian-card { align-items: flex-start; }
  .guardian-card > .status-pill { display: none; }
  .onboarding-actions { position: sticky; bottom: 0; margin-inline: -20px; padding: 14px 20px max(14px, env(safe-area-inset-bottom)); background: rgba(255,255,255,.94); backdrop-filter: blur(8px); }
  .onboarding-next { min-width: 0; }
  .learn-head { align-items: flex-start; }
  .learn-manifesto { padding: 24px 20px; }
  .learn-manifesto h2 { font-size: 2.15rem; }
  .evidence-head { display: none; }
  .evidence-row { grid-template-columns: 1fr; gap: 13px; padding: 20px 44px 20px 18px; }
  .evidence-row p::before { display: block; margin-bottom: 4px; color: #85868d; font-size: .72rem; font-weight: 900; }
  .evidence-row p:nth-of-type(1)::before { content: '可以支持'; }
  .evidence-row p:nth-of-type(2)::before { content: '不能直接推出'; }
  .evidence-more ul { grid-template-columns: 1fr; }
  .support-block { align-items: flex-start; flex-direction: column; }
  .need-panel { grid-template-columns: 1fr; }
  .need-panel .primary-button { width: 100%; }
  .ranking-rule { grid-template-columns: 1fr; align-items: start; }
  .rule-tags { justify-content: flex-start; }
  .rank-row { grid-template-columns: 26px 42px 1fr auto; }
  .newcomer-count { grid-column: 3 / 5; }
  .event-count { grid-column: 4; grid-row: 1; }
  .rank-row button { grid-column: 3 / 5; justify-self: start; }
  .ranking-research { align-items: flex-start; flex-direction: column; gap: 12px; }
  .bottom-nav { gap: 0; justify-content: space-around; padding-inline: 2px; }
  .nav-item { min-width: 48px; grid-template-columns: 1fr; gap: 1px; font-size: .58rem; }
  .nav-copy { display: flex; align-items: baseline; justify-content: center; gap: 3px; text-align: center; }
  .nav-copy b { font-size: .64rem; }
  .nav-copy small { font-size: .5rem; }
  .map-home-button { top: 10px; margin-top: -20px; }
}

@media (max-width: 420px) {
  .welcome-buttons { display: grid; }
  .welcome-buttons button { width: 100%; }
  .interest-choice { grid-template-columns: 44px 1fr auto; }
  .interest-choice > span { width: 44px; height: 44px; }
  .need-panel { padding: 20px; }
  .onboarding-step h2 { font-size: 1.78rem; }
  .nav-item { min-width: 46px; font-size: .56rem; }
  .nav-copy { gap: 2px; }
  .nav-copy b { font-size: .61rem; }
  .nav-copy small { font-size: .47rem; }
}
