:root {
  --orange: #e4572e;
  --orange-deep: #c9441f;
  --orange-soft: #fff1ec;
  --ink: #171717;
  --muted: #6b7280;
  --line: #e8e8ea;
  --bg: #ffffff;
  --bg-soft: #f7f7f8;
  --success: #2563eb;
  --radius: 16px;
  --radius-lg: 20px;
  --shadow: 0 8px 28px rgba(23, 23, 23, 0.08);
  --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: "Manrope", "Noto Sans JP", system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; display: block; }

.app { min-height: 100dvh; }

/* ——— Landing ——— */
.landing {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(228, 87, 46, 0.16), transparent 55%),
    radial-gradient(700px 380px at 100% 0%, rgba(37, 99, 235, 0.08), transparent 50%),
    var(--bg);
}

.landing__card {
  width: min(440px, 100%);
  text-align: center;
  animation: rise 0.5s ease both;
}

.brand-mark {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  box-shadow: 0 12px 28px rgba(228, 87, 46, 0.35);
}

.brand-mark svg { width: 30px; height: 30px; }

.landing__name {
  margin: 0;
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.landing__ja {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.landing__lede {
  margin: 1rem 0 1.5rem;
  color: var(--muted);
  line-height: 1.55;
}

.landing__actions {
  display: grid;
  gap: 0.65rem;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

/* ——— Shell ——— */
.shell {
  min-height: 100dvh;
  display: grid;
  grid-template-rows: auto 1fr auto;
  background: var(--bg);
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}

.brand__logo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--orange);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.brand__logo svg { width: 16px; height: 16px; }

.brand__name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.lang-toggle {
  display: inline-flex;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-soft);
  gap: 2px;
}

.lang-toggle button {
  border: 0;
  background: transparent;
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.lang-toggle button[aria-pressed="true"] {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.main {
  position: relative;
  padding: 1rem 1rem 5.5rem;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}

.page-head { margin-bottom: 1rem; }
.page-head h2 {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.page-head .sub {
  margin: 0.2rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.page-head .lede {
  margin: 0.45rem 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.95rem;
}

/* ——— Bottom nav ——— */
.tabbar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.15rem;
  padding: 0.45rem 0.4rem calc(0.45rem + var(--safe-b));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.tab {
  border: 0;
  background: transparent;
  border-radius: 12px;
  padding: 0.4rem 0.2rem;
  display: grid;
  gap: 0.15rem;
  justify-items: center;
  color: var(--muted);
}

.tab[aria-current="page"] { color: var(--orange); }
.tab__icon { width: 22px; height: 22px; }
.tab__label { font-size: 0.68rem; font-weight: 700; }

/* ——— Buttons / chips ——— */
.btn {
  border: 0;
  border-radius: 999px;
  padding: 0.72rem 1.15rem;
  font-weight: 700;
  transition: transform 0.12s ease, background 0.12s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--orange); color: #fff; }
.btn--primary:hover { background: var(--orange-deep); }
.btn--ghost {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn--ghost:hover { background: var(--bg-soft); }
.btn--soft { background: var(--orange-soft); color: var(--orange-deep); }
.btn--sm { padding: 0.45rem 0.85rem; font-size: 0.85rem; }
.btn--block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.chip {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 0.42rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ink);
}
.chip[aria-pressed="true"] {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}

/* ——— FAB ——— */
.fab {
  position: fixed;
  right: 1rem;
  bottom: calc(4.6rem + var(--safe-b));
  z-index: 35;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.15rem;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  box-shadow: 0 12px 28px rgba(228, 87, 46, 0.35);
  animation: rise 0.35s ease both;
}
.fab svg { width: 18px; height: 18px; }

/* ——— Plan cards ——— */
.feed { display: grid; gap: 1rem; }

.plan-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  animation: rise 0.4s ease both;
}

.plan-card__media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #ececef;
  overflow: hidden;
}

.plan-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.plan-card__badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(228, 87, 46, 0.92);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.plan-card__badge--request {
  background: rgba(37, 99, 235, 0.92);
}

.plan-card__body { padding: 0.9rem 1rem 1.05rem; }

.plan-card__author {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.7rem;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 0.78rem;
  flex-shrink: 0;
  position: relative;
}
.avatar--sm { width: 34px; height: 34px; font-size: 0.7rem; }
.avatar--lg { width: 56px; height: 56px; font-size: 1rem; }
.avatar__check {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success);
  color: #fff;
  display: grid;
  place-items: center;
  border: 2px solid #fff;
}
.avatar__check svg { width: 9px; height: 9px; }

.author__name {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.author__meta {
  margin: 0.1rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.plan-card__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.plan-card__title-ja {
  margin: 0.15rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 500;
}

.plan-price {
  margin: 0.65rem 0 0;
  font-size: 1.05rem;
}
.plan-price span {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-left: 0.35rem;
}

.plan-card--clickable {
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.plan-card--clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(23, 23, 23, 0.12);
}
.plan-card--clickable:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}
.plan-card__more {
  margin: 0.55rem 0 0;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
}

.detail {
  animation: rise 0.35s ease both;
}
.detail__back {
  margin-bottom: 0.75rem;
}
.detail__hero {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background: #ececef;
}
.detail__hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail__body {
  padding: 1.1rem 0 2rem;
}
.detail__title {
  margin: 0;
  font-size: clamp(1.45rem, 4vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.25;
}
.detail__title-ja {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 500;
}
.detail__price {
  margin: 0.9rem 0 0;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--ink);
}
.detail__price span,
.detail__price--free {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}
.detail__price--free {
  display: block;
  margin-top: 0.9rem;
  font-size: 0.92rem;
}
.detail__section {
  margin-top: 1.35rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
}
.detail__section h3 {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.detail__text {
  margin: 0;
  line-height: 1.65;
  font-size: 0.98rem;
  white-space: pre-wrap;
}
.detail__text--alt {
  margin-top: 0.65rem;
  color: var(--muted);
}
.detail__meta {
  margin: 0;
  display: grid;
  gap: 0.75rem;
}
.detail__meta > div {
  display: grid;
  grid-template-columns: 7.5rem 1fr;
  gap: 0.5rem;
  align-items: start;
}
.detail__meta dt {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--muted);
}
.detail__meta dd {
  margin: 0;
  font-weight: 600;
  line-height: 1.4;
}
.places--lg .place {
  font-size: 0.88rem;
  padding: 0.4rem 0.7rem;
}
.detail__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 1.5rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--line);
  position: sticky;
  bottom: calc(4.5rem + var(--safe-b));
  background: linear-gradient(180deg, transparent, #fff 28%);
  padding-bottom: 0.5rem;
}

.plan-card__desc {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.85rem;
}

.places {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.65rem;
}
.place {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 8px;
  background: var(--bg-soft);
  color: var(--ink);
}

/* ——— Search / lists ——— */
.search-box {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  border-radius: 999px;
  padding: 0.15rem 0.25rem 0.15rem 0.95rem;
  margin-bottom: 0.85rem;
}
.search-box input {
  border: 0;
  background: transparent;
  outline: none;
  width: 100%;
  padding: 0.65rem 0;
}

.guide-card {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.guide-card__body { min-width: 0; flex: 1; }
.guide-card__name { margin: 0; font-weight: 800; }
.guide-card__meta { margin: 0.2rem 0 0; color: var(--muted); font-size: 0.82rem; }
.guide-card__bio {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

.inbox { display: grid; gap: 0.55rem; }
.thread {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.8rem;
}
.thread__body { min-width: 0; flex: 1; }
.thread__top { display: flex; justify-content: space-between; gap: 0.5rem; }
.thread__name { font-weight: 800; }
.thread__time { font-size: 0.72rem; color: var(--muted); white-space: nowrap; }
.thread__preview {
  margin: 0.2rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.badge {
  min-width: 1.2rem;
  height: 1.2rem;
  padding: 0 0.35rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  display: grid;
  place-items: center;
}

/* ——— Chat ——— */
.chat {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  min-height: min(70dvh, 620px);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #fff;
}
.chat__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.chat__note {
  margin: 0;
  padding: 0.55rem 0.9rem;
  background: var(--orange-soft);
  color: var(--orange-deep);
  font-size: 0.8rem;
  font-weight: 600;
  border-bottom: 1px solid #ffd9cc;
}
.chat__messages {
  overflow: auto;
  padding: 1rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background: var(--bg-soft);
}
.bubble {
  max-width: min(78%, 420px);
  padding: 0.65rem 0.85rem;
  border-radius: 16px;
  line-height: 1.45;
  font-size: 0.95rem;
  animation: rise 0.2s ease both;
}
.bubble--me {
  align-self: flex-end;
  background: var(--orange);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.bubble--them {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--line);
  border-bottom-left-radius: 6px;
}
.bubble__time {
  display: block;
  margin-top: 0.25rem;
  font-size: 0.68rem;
  opacity: 0.7;
}
.chat__composer {
  display: flex;
  gap: 0.5rem;
  padding: 0.7rem;
  border-top: 1px solid var(--line);
  background: #fff;
}
.chat__composer input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.7rem 1rem;
  outline: none;
  background: var(--bg-soft);
}

/* ——— Forms / panels ——— */
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 1.1rem;
  background: #fff;
}
.form { display: grid; gap: 0.85rem; }
.field { display: grid; gap: 0.35rem; }
.field label { font-size: 0.82rem; font-weight: 800; }
.field input,
.field textarea,
.field select {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 12px;
  padding: 0.7rem 0.85rem;
  outline: none;
}
.field input:focus,
.field textarea:focus,
.field select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(228, 87, 46, 0.15);
}
.field textarea { min-height: 110px; resize: vertical; }
.field-hint {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.4;
}
.field-unit {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  margin-left: 0.25rem;
}
.field-caution {
  margin: 0.55rem 0 0;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #fff8eb;
  border: 1px solid #f0d9a8;
  color: #7a4e10;
  font-size: 0.82rem;
  line-height: 1.5;
  font-weight: 600;
}
.legal-notice {
  margin: 0 0 1rem;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  border: 1px solid #f0d9a8;
  background: linear-gradient(180deg, #fffdf8 0%, #fff8eb 100%);
}
.legal-notice__title {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.4;
  color: #7a4e10;
}
.legal-notice__warn {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  margin-top: 0.05rem;
  border-radius: 4px;
  background: #f5b942;
  color: #1a1a1a;
  font-size: 0.85rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  line-height: 1;
}
.legal-notice__lead {
  margin: 0 0 0.75rem;
  font-size: 0.84rem;
  line-height: 1.5;
  color: #5c4a2e;
}
.legal-notice__block {
  margin: 0.65rem 0 0;
  padding: 0.65rem 0.75rem;
  border-radius: 12px;
  background: #fff;
  border: 1px solid var(--line);
}
.legal-notice__block ul {
  margin: 0.35rem 0 0;
  padding-left: 1.1rem;
  display: grid;
  gap: 0.35rem;
}
.legal-notice__block li {
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ink);
}
.legal-notice__label {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin: 0;
  font-size: 0.84rem;
  font-weight: 800;
}
.legal-notice__mark {
  width: 1.15rem;
  height: 1.15rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
  line-height: 1;
}
.legal-notice__mark--ng {
  background: #fee2e2;
  color: #b91c1c;
}
.legal-notice__mark--ok {
  background: #dcfce7;
  color: #15803d;
}
.legal-notice__block--ng .legal-notice__label { color: #b91c1c; }
.legal-notice__block--ok .legal-notice__label { color: #15803d; }
.legal-confirm__lead {
  margin: 0 0 0.85rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}
.legal-check {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.65rem;
  align-items: start;
  margin: 0 0 0.75rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg-soft);
  font-size: 0.88rem;
  line-height: 1.45;
  cursor: pointer;
}
.legal-check input {
  margin-top: 0.2rem;
  width: 1.05rem;
  height: 1.05rem;
  accent-color: var(--orange);
}
.req {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--orange);
  margin-left: 0.25rem;
}
.form-section {
  margin: 0;
  padding: 0.85rem 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  gap: 0.85rem;
}
.form-section legend {
  padding: 0 0.35rem;
  font-size: 0.88rem;
  font-weight: 800;
}
.date-rows {
  display: grid;
  gap: 0.45rem;
}
.date-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem;
  align-items: center;
}
.date-chip-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.date-chip-list li {
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--ink);
}

/* ——— Experience flow editor & display ——— */
.flow-editor {
  display: grid;
  gap: 0.35rem;
}
.flow-editor__step {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0.75rem;
  background: #fff;
  display: grid;
  gap: 0.65rem;
}
.flow-editor__step-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.flow-editor__n {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--orange);
  letter-spacing: 0.02em;
}
.flow-editor__photo {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.45rem 0.65rem;
  align-items: center;
}
.flow-editor__photo .flow-editor__pick {
  grid-column: 2;
  justify-self: start;
}
.flow-editor__photo .flow-editor__url {
  grid-column: 1 / -1;
}
.flow-editor__preview {
  width: 88px;
  height: 88px;
  object-fit: cover;
  border-radius: 16px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.flow-editor__pick {
  justify-self: start;
  cursor: pointer;
}
.flow-editor__url {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
}
.flow-editor__join {
  text-align: center;
  color: var(--orange);
  font-weight: 800;
  font-size: 1.1rem;
  letter-spacing: 0.12em;
  line-height: 1;
  padding: 0.15rem 0;
}
.flow-summary {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  font-weight: 600;
}
.flow-list {
  --flow-thumb: 72px;
  --flow-gap: 0.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.15rem;
}
.flow-item {
  display: grid;
  grid-template-columns: var(--flow-thumb) minmax(0, 1fr);
  gap: var(--flow-gap);
  align-items: start;
}
.flow-item__rail {
  position: relative;
  width: var(--flow-thumb);
  display: flex;
  justify-content: center;
}
.flow-item:not(:last-child) .flow-item__rail::after {
  content: "";
  position: absolute;
  top: calc(var(--flow-thumb) - 2px);
  bottom: calc(-1.15rem - 2px);
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background: #d7d7d7;
  border-radius: 2px;
}
.flow-item__media {
  position: relative;
  z-index: 1;
  width: var(--flow-thumb);
  height: var(--flow-thumb);
  border-radius: 16px;
  overflow: hidden;
  background: var(--bg-soft);
  flex-shrink: 0;
}
.flow-item__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.flow-item__body {
  display: grid;
  gap: 0.28rem;
  padding-top: 0.15rem;
  min-width: 0;
}
.flow-item__text {
  margin: 0;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.35;
  color: var(--ink);
}
.flow-item__text-alt {
  margin: 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
  font-weight: 500;
}
@media (min-width: 640px) {
  .flow-list {
    --flow-thumb: 80px;
    --flow-gap: 1rem;
  }
}

.role-pick {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}
.role-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.9rem;
  text-align: left;
}
.role-card[aria-pressed="true"] {
  border-color: var(--orange);
  background: var(--orange-soft);
}
.role-card strong { display: block; font-size: 1rem; margin-bottom: 0.2rem; }
.role-card span { font-size: 0.8rem; color: var(--muted); line-height: 1.4; }

.demo-list { display: grid; gap: 0.5rem; }
.demo-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 0.7rem 0.8rem;
}
.demo-item:hover { border-color: var(--orange); }

.match {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem;
  background: #fff;
  display: grid;
  gap: 0.7rem;
}
.match__status {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--orange-deep);
}
.match__status[data-status="accepted"] { color: #15803d; }
.match__status[data-status="declined"],
.match__status[data-status="cancelled"] { color: #9a3412; }

.empty {
  text-align: center;
  padding: 2.4rem 1rem;
  color: var(--muted);
}
.empty strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
  margin-bottom: 0.3rem;
}

.section-label {
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 1rem 0 0.55rem;
  font-weight: 800;
}

/* ——— Modal / toast ——— */
.modal {
  border: 0;
  padding: 0;
  background: transparent;
  max-width: min(520px, calc(100vw - 1.25rem));
}
.modal::backdrop {
  background: rgba(17, 17, 17, 0.45);
  backdrop-filter: blur(3px);
}
.modal__panel {
  background: #fff;
  border-radius: 20px;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  max-height: min(90dvh, 820px);
  overflow: auto;
}
.modal__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1rem;
}
.modal__head h3 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 800;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(5.2rem + var(--safe-b));
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  padding: 0.7rem 1.1rem;
  border-radius: 999px;
  font-size: 0.88rem;
  z-index: 60;
  box-shadow: var(--shadow);
  animation: rise 0.25s ease both;
}

.kyc-steps {
  display: flex;
  gap: 0.4rem;
  margin: 0 0 1rem;
  flex-wrap: wrap;
}
.kyc-step {
  flex: 1;
  min-width: 90px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  padding: 0.45rem 0.35rem;
  border-radius: 10px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
}
.kyc-step[data-active="true"] {
  color: var(--orange-deep);
  background: var(--orange-soft);
  border-color: #ffc9b5;
}
.kyc-step[data-done="true"] {
  color: #15803d;
  background: #ecfdf3;
  border-color: #bbf7d0;
}
.kyc-banner {
  border: 1px solid #ffd9cc;
  background: var(--orange-soft);
  color: var(--orange-deep);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  line-height: 1.45;
}
.kyc-banner--ok {
  border-color: #bbf7d0;
  background: #ecfdf3;
  color: #166534;
}
.kyc-banner--err {
  border-color: #fecaca;
  background: #fef2f2;
  color: #991b1b;
}
.kyc-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 800;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--muted);
}
.kyc-status-pill[data-status="verified"] { background: #ecfdf3; color: #166534; }
.kyc-status-pill[data-status="pending"],
.kyc-status-pill[data-status="profile_complete"] { background: #fff7ed; color: #c2410c; }
.kyc-status-pill[data-status="underage"],
.kyc-status-pill[data-status="failed"] { background: #fef2f2; color: #991b1b; }
.field-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (max-width: 560px) {
  .field-row { grid-template-columns: 1fr; }
}

/* ——— Notifications ——— */
.notif-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  cursor: pointer;
}
.notif-btn:hover { background: var(--bg-soft); }
.notif-btn__badge {
  position: absolute;
  top: -0.2rem;
  right: -0.2rem;
  min-width: 1.05rem;
  height: 1.05rem;
  padding: 0 0.28rem;
  border-radius: 999px;
  background: var(--orange);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1.05rem;
  text-align: center;
}
.notif-list { display: grid; gap: 0.85rem; }
.notif-item {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item__title {
  margin: 0 0 0.35rem;
  font-weight: 800;
  font-size: 0.98rem;
}
.notif-item__body {
  margin: 0 0 0.75rem;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
}

/* ——— Stars & reviews ——— */
.stars {
  display: inline-flex;
  gap: 0.08rem;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
  line-height: 1;
}
.stars--sm { font-size: 0.82rem; }
.stars__i { color: #d6d3d1; }
.stars__i.is-on { color: #f59e0b; }
.star-input {
  display: flex;
  gap: 0.25rem;
  margin: 0.35rem 0 0.25rem;
}
.star-input__btn {
  border: 0;
  background: transparent;
  color: #d6d3d1;
  font-size: 1.75rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.1rem 0.15rem;
  transition: color 0.15s ease, transform 0.12s ease;
}
.star-input__btn:hover,
.star-input__btn.is-on { color: #f59e0b; }
.star-input__btn:hover { transform: scale(1.08); }
.field-error {
  margin: 0.35rem 0 0;
  color: #b91c1c;
  font-size: 0.82rem;
  font-weight: 600;
}
.review-list { display: grid; gap: 0.85rem; }
.review {
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--line);
}
.review:last-child { border-bottom: 0; }
.review__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.75rem;
  margin-bottom: 0.35rem;
}
.review__meta {
  color: var(--muted);
  font-size: 0.8rem;
}
.review__comment {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: var(--ink);
}
.review__comment--empty { color: var(--muted); font-style: italic; }
.review__plan {
  margin: 0.35rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
}

/* ——— Guide profile ——— */
.guide-hero { padding: 1.1rem 1.15rem; }
.guide-score {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
.guide-score__avg {
  font-size: 2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
  color: var(--ink);
}
.author-hit {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  border-radius: 12px;
}
.author-hit:hover .author__name { color: var(--orange); }
.author-hit:disabled {
  cursor: default;
}
.author-hit:disabled:hover .author__name { color: inherit; }
.author__link {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--orange);
}

/* ——— Desktop sidebar ——— */
@media (min-width: 900px) {
  .shell {
    grid-template-columns: 240px 1fr;
    grid-template-rows: auto 1fr;
    max-width: 1120px;
    margin: 0 auto;
    min-height: 100dvh;
  }

  .topbar {
    grid-column: 1 / -1;
    padding: 0.85rem 1.25rem;
  }

  .tabbar {
    position: sticky;
    top: 68px;
    align-self: start;
    grid-template-columns: 1fr;
    left: auto;
    right: auto;
    bottom: auto;
    border: 1px solid var(--line);
    border-radius: 18px;
    margin: 1rem 0 1rem 1.25rem;
    padding: 0.55rem;
    height: fit-content;
  }

  .tab {
    grid-template-columns: auto 1fr;
    justify-items: start;
    align-items: center;
    gap: 0.6rem;
    padding: 0.75rem 0.85rem;
  }
  .tab[aria-current="page"] {
    background: var(--orange-soft);
  }
  .tab__label { font-size: 0.92rem; }

  .main {
    padding: 1.25rem 1.25rem 2rem 0.5rem;
    max-width: none;
  }

  .fab {
    right: max(1.5rem, calc(50vw - 560px + 1.5rem));
    bottom: 2rem;
  }
}
