:root {
  --moss: #5e8744;
  --moss-dark: #36552e;
  --fern: #7fb75b;
  --teal: #347a78;
  --lilac: #a88ad6;
  --coral: #e87966;
  --cream: #fff8e9;
  --cream-soft: #f6edd8;
  --cream-deep: #ead9b8;
  --brass: #d89f2b;
  --ink: #2f281f;
  --muted: #766b5a;
  --danger: #b85a4c;
  --ok: #3f7f47;
  --radius: 8px;
  --shadow-card: 0 14px 34px rgba(44, 37, 28, .16), 0 1px 0 rgba(255, 255, 255, .75) inset;
  --shadow-soft: 0 12px 30px rgba(35, 53, 31, .18);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Nunito', system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #425b34;
  min-height: 100vh;
  line-height: 1.5;
}

.swamp-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, rgba(250, 242, 218, .52), rgba(58, 77, 43, .7) 46%, rgba(38, 52, 32, .9)),
    radial-gradient(80% 60% at 50% 12%, rgba(255, 244, 197, .9), transparent 62%),
    url("/static/img/generated/swamp-nursery-bg.jpg") center top / cover no-repeat;
}
.swamp-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(31, 44, 25, .46), transparent 20%, transparent 80%, rgba(31, 44, 25, .46)),
    radial-gradient(900px 420px at 50% 0%, rgba(255, 248, 225, .46), transparent 70%);
  pointer-events: none;
}

a { color: var(--moss-dark); }

/* ===== Layout helpers ===== */
.center-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.center-wrap.wide .card-panel { max-width: 760px; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.inline { display: inline; margin: 0; }
.w-full { width: 100%; }

/* ===== Panels / cards ===== */
.card-panel {
  width: 100%;
  max-width: 440px;
  background: #fff8e9;
  border: 1px solid rgba(108, 82, 46, .22);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  padding: 32px 28px;
  text-align: center;
}
.login-logo-image {
  display: block;
  width: clamp(92px, 24vw, 124px);
  height: clamp(92px, 24vw, 124px);
  margin: -18px auto 2px;
  object-fit: cover;
  object-position: center;
  border-radius: 24px;
  border: 5px solid rgba(255, 248, 233, .92);
  box-shadow:
    0 0 0 1px rgba(108, 82, 46, .2),
    0 18px 34px rgba(55, 72, 40, .24),
    inset 0 2px 0 rgba(255, 255, 255, .48);
}
.display-title {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  color: var(--moss-dark);
  font-size: clamp(30px, 6vw, 46px);
  margin: 4px 0 8px;
}
.login-logo {
  display: grid;
  justify-items: center;
  gap: 0;
  margin: 0 0 12px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  line-height: 1;
}
.login-logo-arc {
  width: min(100%, 360px);
  height: auto;
  margin: -6px 0 -14px;
  overflow: visible;
}
.login-logo-text {
  fill: var(--moss-dark);
  stroke: #fff8e9;
  stroke-width: 7px;
  paint-order: stroke fill;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 43px;
  font-weight: 800;
  letter-spacing: 0;
  filter: drop-shadow(0 5px 0 rgba(177, 128, 39, .45)) drop-shadow(0 10px 12px rgba(48, 73, 38, .2));
}
.login-logo-place {
  color: #6f4c1f;
  font-size: clamp(26px, 7vw, 42px);
  font-weight: 800;
  letter-spacing: 0;
  text-shadow:
    0 2px 0 #fff8e9,
    0 5px 0 rgba(216, 159, 43, .34),
    0 10px 18px rgba(48, 73, 38, .18);
}
.subtitle { color: var(--muted); margin: 0 0 20px; }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; }
.field-label { font-weight: 800; color: var(--moss-dark); font-size: 14px; }
.input {
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  border: 1px solid rgba(75, 61, 45, .26);
  border-radius: var(--radius);
  background: #fffdf7;
  color: var(--ink);
  box-shadow: inset 0 2px 8px rgba(87, 72, 47, .07);
}
.input:focus {
  outline: 3px solid rgba(127, 183, 91, .35);
  outline-offset: 2px;
  border-color: var(--moss);
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 16px;
  padding: 13px 20px;
  border-radius: 999px;
  border: 0;
  cursor: pointer;
  text-decoration: none;
  transition: transform .16s ease, box-shadow .16s ease, filter .16s ease;
  min-height: 48px;
}
.btn:hover { transform: translateY(-1px); filter: saturate(1.03); }
.btn:active { transform: translateY(1px); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; min-height: 38px; font-size: 14px; }
.btn-primary {
  color: #fffdf5;
  background: linear-gradient(135deg, #2f8b6f, #81b74d 58%, #e1b247);
  box-shadow: 0 10px 20px rgba(57, 118, 72, .26), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { box-shadow: 0 14px 24px rgba(57, 118, 72, .32), inset 0 1px 0 rgba(255, 255, 255, .4); }
.login-wood {
  position: relative;
  display: block;
  width: clamp(220px, 68%, 286px);
  max-width: 100%;
  margin: 2px auto 0;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  overflow: visible;
  cursor: pointer;
  background: transparent;
  line-height: 1;
  filter: drop-shadow(0 10px 16px rgba(38, 24, 12, .24));
  transition: transform .16s ease, filter .16s ease;
}
.login-wood-image {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
  pointer-events: none;
  user-select: none;
}
.login-wood-label {
  position: absolute;
  left: 50%;
  top: 51%;
  transform: translate(-50%, -50%);
  color: #f3bf55;
  font-family: Georgia, 'Times New Roman', serif;
  font-size: clamp(27px, 7.4vw, 34px);
  font-weight: 700;
  letter-spacing: 0;
  text-shadow:
    0 1px 0 #fff0b8,
    0 3px 0 #4e2810,
    0 6px 10px rgba(35, 16, 6, .48);
  pointer-events: none;
  white-space: nowrap;
}
.login-wood:hover {
  transform: translateY(-1px);
  filter: drop-shadow(0 12px 20px rgba(38, 24, 12, .3)) saturate(1.05);
}
.login-wood:active {
  transform: translateY(2px) scale(.99);
  filter: drop-shadow(0 6px 10px rgba(38, 24, 12, .22)) saturate(.98);
}
.login-wood:focus-visible {
  outline: 3px solid rgba(255, 232, 168, .72);
  outline-offset: 4px;
}
.persona-submit {
  color: #3f2814;
  background: linear-gradient(135deg, #ffe08a, #f2a86a 58%, #d78a76);
  border: 1px solid rgba(132, 76, 38, .18);
  box-shadow: 0 10px 20px rgba(177, 101, 53, .22), inset 0 1px 0 rgba(255, 255, 255, .5);
}
.persona-submit:hover {
  box-shadow: 0 14px 24px rgba(177, 101, 53, .28), inset 0 1px 0 rgba(255, 255, 255, .58);
}
.persona-submit .icon-check::before {
  border-color: #9a5a22;
}
.btn-unbook {
  color: #402a12;
  background: linear-gradient(135deg, #f7c957, #e99066);
  box-shadow: 0 10px 20px rgba(192, 119, 47, .25), inset 0 1px 0 rgba(255, 255, 255, .45);
}
.btn-ghost {
  color: #fff8e9;
  background: rgba(255, 248, 233, .14);
  border: 1px solid rgba(255, 248, 233, .3);
}
.btn-ghost:hover { background: rgba(255, 248, 233, .2); }
.btn-icon,
.shop-icon,
.brand-mark {
  display: inline-block;
  flex: 0 0 auto;
}
.btn-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  position: relative;
  box-shadow: inset 0 -1px 0 rgba(47, 40, 31, .1);
}
.icon-check::before {
  content: "";
  position: absolute;
  left: 6px;
  top: 5px;
  width: 8px;
  height: 5px;
  border-left: 3px solid #2f8b6f;
  border-bottom: 3px solid #2f8b6f;
  transform: rotate(-45deg);
}
.icon-back::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-left: 3px solid #a85a20;
  border-bottom: 3px solid #a85a20;
  transform: rotate(45deg);
}

/* ===== Flash ===== */
.flash {
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 0 0 18px;
  font-weight: 800;
  border: 1px solid;
}
.flash-ok { background: rgba(237, 249, 225, .94); color: var(--ok); border-color: rgba(63, 127, 71, .35); }
.flash-err { background: rgba(255, 236, 231, .94); color: var(--danger); border-color: rgba(184, 90, 76, .35); }

/* ===== Persona grid ===== */
.persona-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
}
.persona-chip {
  position: relative;
  display: grid;
  grid-template-rows: auto auto;
  gap: 10px;
  min-height: 184px;
  padding: 10px;
  border: 1px solid rgba(75, 61, 45, .24);
  border-radius: var(--radius);
  background: rgba(255, 253, 247, .9);
  cursor: pointer;
  text-align: center;
  transition: all .16s ease;
  overflow: hidden;
}
.persona-chip:hover { background: #fffdf7; transform: translateY(-1px); }
.persona-choice {
  position: relative;
  display: grid;
  grid-template-rows: 126px auto;
  gap: 10px;
  cursor: pointer;
}
.persona-chip input { position: absolute; opacity: 0; }
.persona-chip:has(input:checked) {
  border-color: rgba(52, 122, 120, .7);
  background: rgba(230, 246, 235, .95);
  box-shadow: 0 0 0 3px rgba(52, 122, 120, .14);
}
.persona-card-submit {
  position: relative;
  display: none;
  width: 100%;
  min-height: 38px;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 12px;
  z-index: 2;
}
.persona-chip:has(input:checked) .persona-card-submit {
  display: inline-flex;
}
.persona-taken-note {
  display: none;
  margin: -2px 0 0;
  color: var(--danger);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-align: left;
}
.persona-chip:has(input:checked) .persona-taken-note {
  display: block;
}
.persona-avatar,
.persona-avatar-placeholder {
  width: 100%;
  height: 126px;
  border-radius: 6px;
}
.persona-avatar {
  display: block;
  object-fit: contain;
  object-position: center;
  background: linear-gradient(135deg, #f5ead2, #d3b889);
  border: 1px solid rgba(91, 72, 50, .12);
  box-shadow: inset 0 0 0 1px rgba(255, 248, 233, .55);
}
.persona-avatar-placeholder {
  display: inline-block;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 36%, rgba(255, 248, 233, .55) 0 18px, transparent 19px),
    radial-gradient(80px 42px at 50% 88%, rgba(255, 248, 233, .42) 0 48%, transparent 49%),
    linear-gradient(135deg, #d8c09b, #a97855 58%, #76604c);
  border: 1px solid rgba(91, 72, 50, .12);
}
.persona-avatar-placeholder::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 30px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translateX(-50%);
  background: rgba(255, 248, 233, .58);
}
.persona-avatar-placeholder::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 20px;
  width: 72px;
  height: 34px;
  border-radius: 999px 999px 14px 14px;
  transform: translateX(-50%);
  background: rgba(255, 248, 233, .5);
}
.persona-name {
  align-self: center;
  font-weight: 800;
  font-size: 15px;
  line-height: 1.2;
}
.persona-chip.is-taken .persona-choice::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 126px;
  border-radius: 6px;
  background: rgba(255, 253, 247, .36);
  pointer-events: none;
  z-index: 1;
}
.persona-badge {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #f06f68, #b779d9);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 999px;
  border: 2px solid #fffdf7;
  box-shadow: 0 6px 14px rgba(94, 69, 48, .28);
  filter: none;
  opacity: 1;
  z-index: 3;
}

/* ===== Topbar / progress ===== */
.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  color: var(--cream);
  background: linear-gradient(180deg, rgba(45, 67, 39, .98), rgba(45, 67, 39, .94));
  border-bottom: 1px solid rgba(255, 248, 233, .18);
  box-shadow: 0 10px 30px rgba(35, 53, 31, .18);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  font-size: 24px;
  color: #fff8e9;
  white-space: nowrap;
}
.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 50% 50% 45% 45%;
  background:
    radial-gradient(circle at 38% 36%, rgba(255, 255, 255, .78) 0 7%, transparent 8%),
    linear-gradient(135deg, #97c762, #3f8e66 62%, #2f665b);
  box-shadow: 0 0 0 3px rgba(255, 248, 233, .24), 0 8px 16px rgba(30, 48, 26, .3);
}
.topbar-right { display: flex; align-items: center; gap: 12px; }
.whoami {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 14px;
  white-space: nowrap;
  color: rgba(255, 248, 233, .9);
}
.mini-avatar {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 248, 233, .75);
  box-shadow: 0 3px 8px rgba(32, 46, 27, .24);
}
.whoami-emoji,
.taken-emoji {
  flex: 0 0 auto;
}
.progress-wrap {
  position: relative;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 20px 12px;
}
.progress-bar {
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 248, 233, .18);
  overflow: hidden;
  position: relative;
}
.progress-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  width: var(--p, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #78d2a5, #f5ce63, #e98a70);
  transition: width .4s ease;
}
.progress-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 248, 233, .78);
}

/* ===== Gift grid ===== */
.list-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 20px 46px;
}
.route-card {
  margin: 0 0 26px;
  overflow: hidden;
  background: #fff8e9;
  border: 1px solid rgba(91, 72, 50, .2);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
}
.route-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 16px;
}
.route-eyebrow {
  margin: 0 0 4px;
  color: var(--moss-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.route-title {
  margin: 0;
  color: var(--ink);
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 32px;
  line-height: 1.08;
}
.route-actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.route-toggle,
.route-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 16px;
  color: #fff8e9;
  background: linear-gradient(180deg, #4f8b53, #2f6a43);
  border: 1px solid rgba(47, 106, 67, .42);
  border-radius: var(--radius);
  box-shadow: 0 7px 16px rgba(38, 80, 54, .18);
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
}
.route-toggle {
  gap: 8px;
  color: #36552e;
  background: rgba(79, 139, 83, .12);
  border-color: rgba(54, 85, 46, .22);
  box-shadow: none;
  cursor: pointer;
}
.route-toggle-icon {
  position: relative;
  width: 14px;
  height: 14px;
}
.route-toggle-icon::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 1px;
  width: 7px;
  height: 7px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-135deg);
  transition: top .2s ease, transform .2s ease;
}
.route-card.is-collapsed .route-toggle-icon::before {
  top: 3px;
  transform: rotate(45deg);
}
.route-link:hover {
  filter: brightness(1.04);
}
.route-toggle:hover {
  filter: brightness(1.02);
  background: rgba(79, 139, 83, .18);
}
.event-details {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, .72fr);
  gap: 10px;
  padding: 0 22px 18px;
}
.event-detail {
  min-width: 0;
  padding: 12px 14px;
  background: rgba(255, 253, 247, .72);
  border: 1px solid rgba(91, 72, 50, .14);
  border-radius: var(--radius);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .65);
}
.event-detail-wide {
  grid-column: 1 / -1;
}
.event-label {
  display: block;
  margin: 0 0 3px;
  color: var(--moss-dark);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.event-value {
  display: block;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.34;
  overflow-wrap: anywhere;
}
.route-map {
  position: relative;
  width: 100%;
  aspect-ratio: 7 / 4;
  overflow: hidden;
  background: #d8bd78;
  transition: height .28s ease;
}
.route-card.is-collapsed .route-map {
  height: 50px;
  aspect-ratio: auto;
}
.route-map::after {
  content: "";
  position: absolute;
  inset: 0;
  box-shadow: inset 0 0 0 1px rgba(91, 72, 50, .16), inset 0 -38px 76px rgba(81, 52, 22, .16);
  pointer-events: none;
}
.route-map img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}
.gift-grid {
  display: grid;
  gap: 26px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}
.gift-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff8e9;
  border: 1px solid rgba(91, 72, 50, .2);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color .18s ease;
}
.gift-card:hover {
  border-color: rgba(52, 122, 120, .32);
}
.gift-card.is-booked { opacity: .86; }
.gift-card.is-mine {
  border-color: rgba(52, 122, 120, .55);
  box-shadow: 0 0 0 4px rgba(120, 210, 165, .2), var(--shadow-card);
}
.gift-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .98), rgba(255, 247, 229, .92) 52%, rgba(228, 240, 217, .88)),
    url("/static/img/generated/gift-placeholder.jpg") center / cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gift-img:has(img) {
  background:
    radial-gradient(circle at 50% 34%, rgba(255, 255, 255, .98), rgba(255, 247, 229, .92) 52%, rgba(228, 240, 217, .88));
}
.gift-img::after {
  content: "";
  position: absolute;
  inset: 0;
  border-bottom: 1px solid rgba(91, 72, 50, .13);
  box-shadow: inset 0 -26px 50px rgba(111, 96, 68, .08);
  pointer-events: none;
}
.gift-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 18px;
  mix-blend-mode: normal;
}
.gift-img.img-fallback::after { content: ""; }
.img-ph {
  width: 100%;
  height: 100%;
  font-size: 0;
  background: url("/static/img/generated/gift-placeholder.jpg") center / cover no-repeat;
}
.booked-ribbon {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(47, 40, 31, .82);
  color: #fff8e9;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  border-radius: 999px;
}
.is-mine .booked-ribbon { background: rgba(52, 122, 120, .9); }
.gift-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 18px;
  flex: 1;
}
.gift-name {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-size: 18px;
  font-weight: 700;
  margin: 0;
  color: var(--ink);
  line-height: 1.28;
}
.gift-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  margin-top: auto;
}
.gift-price {
  font-family: 'Fredoka', 'Nunito', sans-serif;
  font-weight: 700;
  color: #cc8a17;
  font-size: 24px;
  line-height: 1.1;
}
.price-empty {
  color: var(--muted);
  font-family: 'Nunito', sans-serif;
  font-size: 17px;
  line-height: 1.25;
}
.shop-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(52, 122, 120, .1);
  color: #286662;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
.shop-link:hover { background: rgba(52, 122, 120, .16); }
.shop-icon {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-radius: 3px;
  position: relative;
}
.shop-icon::before {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: -7px;
  height: 8px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}
.gift-action { margin-top: 2px; }
.taken-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  font-weight: 800;
  color: #594d3d;
  background: rgba(234, 217, 184, .7);
  border: 1px solid rgba(91, 72, 50, .14);
  border-radius: var(--radius);
  padding: 12px;
}

/* ===== Footer ===== */
.site-foot {
  text-align: center;
  color: rgba(255, 248, 233, .72);
  padding: 24px;
  font-size: 13px;
  text-shadow: 0 1px 8px rgba(28, 42, 24, .32);
}

/* ===== Responsive ===== */
@media (max-width: 700px) {
  .topbar-inner {
    align-items: flex-start;
    flex-direction: column;
  }
  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }
  .route-card-head {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 18px 14px;
  }
  .route-title {
    font-size: 26px;
  }
  .event-details {
    grid-template-columns: 1fr;
    padding: 0 18px 16px;
  }
  .event-value {
    font-size: 15px;
  }
  .route-actions {
    width: 100%;
    align-items: stretch;
  }
  .route-map {
    aspect-ratio: 4 / 3;
  }
  .route-map img {
    object-position: center;
  }
  .route-toggle,
  .route-link {
    width: 100%;
  }
  .gift-grid { grid-template-columns: minmax(0, 1fr); }
  .gift-img { aspect-ratio: 4 / 3; }
  .persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .persona-chip {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    align-items: stretch;
    min-height: 78px;
    padding: 8px;
    gap: 9px;
    text-align: left;
  }
  .persona-choice {
    grid-template-columns: 58px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    gap: 9px;
  }
  .persona-chip.is-taken .persona-choice::after {
    right: auto;
    width: 58px;
    height: 58px;
  }
  .persona-avatar,
  .persona-avatar-placeholder {
    width: 58px;
    height: 58px;
    border-radius: 6px;
  }
  .persona-avatar-placeholder::before {
    top: 13px;
    width: 20px;
    height: 20px;
  }
  .persona-avatar-placeholder::after {
    bottom: 9px;
    width: 42px;
    height: 20px;
    border-radius: 999px 999px 8px 8px;
  }
  .persona-name {
    font-size: 13px;
  }
  .persona-badge {
    top: 4px;
    right: 4px;
  }
  .persona-card-submit {
    min-height: 34px;
    padding: 7px 10px;
    font-size: 13px;
  }
}

@media (max-width: 520px) {
  .list-wrap { padding: 18px 14px 36px; }
  .card-panel { padding: 24px 18px; }
  .brand { font-size: 20px; }
  .whoami { max-width: 150px; overflow: hidden; text-overflow: ellipsis; }
  .route-actions { flex-direction: column; }
  .gift-body { padding: 16px; }
  .gift-name { font-size: 16px; }
  .gift-price { font-size: 21px; }
  .gift-meta { grid-template-columns: 1fr; align-items: stretch; }
  .shop-link { justify-content: center; }
}
