:root {
  --ink: #061f60;
  --navy: #061a4f;
  --blue: #0c4dcc;
  --muted: #52698b;
  --line: #d5e3f5;
  --line-strong: #b9d1f4;
  --paper: #fbfdff;
  --surface: #ffffff;
  --soft-blue: #eff7ff;
  --chip: #eaf4ff;
  --coral: #ff4f3e;
  --green: #14934d;
  --green-soft: #eefbf3;
  --sun: #f7b922;
  --shadow: 0 18px 50px rgba(12, 45, 99, 0.1);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 28% 9%, rgba(168, 218, 255, 0.35), transparent 19rem),
    linear-gradient(180deg, #f7fbff 0%, #ffffff 48%, #fffdfa 100%);
  color: var(--ink);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 650;
  letter-spacing: 0;
  overflow-x: hidden;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
}

img {
  display: block;
  max-width: 100%;
}

.skip-link {
  background: var(--ink);
  color: white;
  left: 1rem;
  padding: 0.7rem 0.9rem;
  position: fixed;
  top: -5rem;
  z-index: 20;
}

.skip-link:focus {
  top: 1rem;
}

.visually-hidden {
  clip: rect(0 0 0 0);
  border: 0;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.page-shell {
  margin: 0 auto;
  max-width: 1540px;
  min-height: 100vh;
  padding: 18px clamp(18px, 2vw, 28px) 24px;
}

.site-header {
  align-items: center;
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(270px, 0.8fr) auto minmax(370px, 0.9fr);
  min-height: 46px;
}

.brand {
  align-items: center;
  color: inherit;
  display: inline-flex;
  gap: 8px;
  justify-self: start;
  text-decoration: none;
  white-space: nowrap;
}

.brand strong {
  color: var(--navy);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2.35rem, 3.2vw, 3.05rem);
  line-height: 0.9;
}

.brand em {
  color: var(--coral);
  font-family: "Caveat", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: clamp(1.72rem, 2.5vw, 2.35rem);
  font-style: normal;
  line-height: 1;
  transform: rotate(-4deg);
}

.brand-mark {
  border-radius: 999px;
  box-shadow: 0 9px 18px rgba(181, 111, 0, 0.2);
  height: 30px;
  overflow: hidden;
  width: 30px;
}

.brand-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.main-nav,
.header-actions {
  align-items: center;
  display: flex;
}

.main-nav {
  gap: clamp(18px, 2.4vw, 38px);
  justify-content: center;
}

.nav-button,
.header-link,
.calendar-link,
.shelf-heading button {
  background: transparent;
  border: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 760;
  padding: 6px 4px;
}

.nav-button {
  position: relative;
}

.nav-button::after {
  background: var(--coral);
  border-radius: 999px;
  bottom: -5px;
  content: "";
  height: 3px;
  left: 50%;
  opacity: 0;
  position: absolute;
  transform: translateX(-50%);
  width: 18px;
}

.nav-button.is-active::after {
  opacity: 1;
}

.header-actions {
  gap: 20px;
  justify-content: flex-end;
}

.header-link {
  align-items: center;
  display: inline-flex;
  gap: 8px;
  white-space: nowrap;
}

.header-link i {
  color: var(--ink);
  font-size: 1.18rem;
}

.divider {
  background: var(--line);
  display: block;
  height: 24px;
  width: 1px;
}

.hero-layout {
  align-items: start;
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  grid-template-columns: minmax(510px, 0.72fr) minmax(650px, 1.08fr);
  margin-top: 18px;
}

.planner-hero {
  min-height: 554px;
  position: relative;
}

.hero-flower {
  height: 430px;
  left: -168px;
  object-fit: cover;
  object-position: 30% center;
  position: absolute;
  top: 72px;
  width: 290px;
  z-index: 0;
}

.butterfly {
  color: #93c5f4;
  font-size: 1.6rem;
  left: 38px;
  opacity: 0.75;
  position: absolute;
  top: 42px;
}

.planner-copy {
  margin-left: 124px;
  max-width: 444px;
  padding-top: 38px;
  position: relative;
  z-index: 1;
}

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

h1 {
  color: var(--navy);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(3.35rem, 4.35vw, 4.45rem);
  letter-spacing: 0;
  line-height: 0.92;
  margin-bottom: 16px;
}

.planner-copy p {
  color: var(--ink);
  font-size: 1.03rem;
  line-height: 1.45;
  margin-bottom: 16px;
}

.search-panel {
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(12, 45, 99, 0.08);
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 82px;
  height: 45px;
  overflow: hidden;
}

.search-icon {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.23rem;
  justify-content: center;
}

.search-panel input {
  border: 0;
  color: var(--ink);
  min-width: 0;
  outline: none;
  padding-right: 8px;
}

.search-panel input::placeholder {
  color: #6f82a0;
}

.search-panel button {
  align-items: center;
  background: var(--coral);
  border: 0;
  border-radius: 6px;
  color: white;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.search-panel button {
  height: 45px;
}

.category-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 20px;
}

.category-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(12, 45, 99, 0.07);
  color: var(--ink);
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 91px;
  padding: 14px 10px;
  text-align: center;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.category-card:hover,
.category-card:focus-visible,
.category-card.is-active {
  border-color: #9ac5ff;
  box-shadow: 0 14px 30px rgba(12, 45, 99, 0.11);
  transform: translateY(-1px);
}

.category-card i {
  color: #39a968;
  font-size: 2.25rem;
}

.category-card[data-mode="storytime"] i {
  color: #6958ce;
}

.category-card[data-mode="rainy"] i {
  color: #2288d9;
}

.category-card[data-mode="birthday"] i {
  color: var(--coral);
}

.category-card span:last-child {
  color: var(--ink);
  font-size: 0.93rem;
  font-weight: 800;
}

.free-icon {
  align-items: center;
  background: #33a968;
  border-radius: 5px;
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  height: 27px;
  justify-content: center;
  min-width: 49px;
  padding: 0 8px;
}

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.filter-pill {
  align-items: center;
  background: #eaf3ff;
  border: 1px solid #d7e8ff;
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 800;
  gap: 4px;
  min-height: 34px;
  padding: 7px 7px;
}

.filter-pill.is-active {
  border-color: var(--blue);
  box-shadow: inset 0 0 0 1px rgba(12, 77, 204, 0.16);
}

.stroller-pill {
  background: #fff2d8;
  border-color: #f2dba8;
}

.weekend-board {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 14px 18px 12px;
}

.weekend-topline {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin: 0 10px 8px;
}

.weekend-topline p {
  color: var(--ink);
  font-family: "Caveat", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.55rem;
  line-height: 1;
  margin: 0;
}

.weekend-topline p i {
  font-size: 1.55rem;
  margin-left: 8px;
}

.date-control {
  align-items: center;
  display: flex;
  gap: 14px;
}

.date-control button:first-child {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-weight: 800;
  gap: 8px;
}

.calendar-link {
  color: var(--blue);
  font-size: 0.72rem;
  font-weight: 800;
}

.calendar-grid {
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
}

.day-panel + .day-panel {
  border-left: 1px solid var(--line);
}

.day-panel h2 {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0;
  padding: 10px 12px;
  text-align: center;
  text-transform: uppercase;
}

.event-list {
  align-content: start;
  display: grid;
  grid-auto-rows: max-content;
}

.empty-schedule {
  background: #f8fbff;
  border-bottom: 1px solid #e5eefb;
  color: var(--muted);
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 18px 16px;
}

.empty-schedule strong {
  color: var(--ink);
  font-size: 0.82rem;
}

.empty-schedule span {
  font-size: 0.74rem;
  line-height: 1.35;
}

.event-row {
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #e5eefb;
  color: var(--ink);
  display: grid;
  gap: 12px;
  grid-template-columns: 60px 58px minmax(0, 1fr) auto;
  min-height: 64px;
  padding: 7px 12px;
  position: relative;
  text-align: left;
  width: 100%;
}

.event-row:last-child {
  border-bottom: 0;
}

.event-row::before {
  background: #2c8dff;
  border-radius: 999px;
  content: "";
  height: 0;
  left: 0;
  position: absolute;
  top: 12px;
  transition: height 160ms ease;
  width: 3px;
}

.event-row:hover,
.event-row:focus-visible,
.event-row.is-active {
  background: #f8fbff;
}

.event-row.is-active::before {
  height: calc(100% - 24px);
}

.event-row img {
  border-radius: 5px;
  height: 46px;
  object-fit: cover;
  width: 60px;
}

.event-time {
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  white-space: nowrap;
}

.event-title {
  display: grid;
  gap: 2px;
}

.event-title strong {
  font-size: 0.78rem;
  line-height: 1.2;
}

.event-title span {
  color: var(--muted);
  font-size: 0.7rem;
  line-height: 1.25;
}

.price-badge {
  align-items: center;
  background: var(--green-soft);
  border: 1px solid #79c898;
  border-radius: 4px;
  color: var(--green);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 900;
  justify-content: center;
  min-width: 40px;
  padding: 4px 7px;
}

.price-badge.cost {
  background: transparent;
  border: 0;
  color: var(--coral);
  font-size: 0.9rem;
}

.event-detail {
  align-items: start;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: 88px minmax(0, 1fr);
  margin-top: 9px;
  padding: 9px 14px 10px;
}

.event-detail > img {
  border-radius: 6px;
  height: 66px;
  object-fit: cover;
  width: 88px;
}

.detail-main {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.detail-heading {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding-bottom: 6px;
}

.detail-heading h3 {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.1;
  margin-bottom: 3px;
}

.detail-heading p {
  color: var(--muted);
  font-size: 0.7rem;
  margin: 0;
}

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

.icon-button {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-size: 1.28rem;
  justify-content: center;
  padding: 4px;
}

.detail-tags {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.detail-tags span {
  border: 1px solid #91c3ff;
  border-radius: 4px;
  color: var(--blue);
  font-size: 0.6rem;
  font-weight: 900;
  padding: 2px 7px;
}

.detail-tags span:first-child {
  background: var(--green-soft);
  border-color: #79c898;
  color: var(--green);
}

.detail-facts {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
}

.detail-facts div {
  border-left: 1px solid var(--line);
  min-width: 0;
  padding: 4px 8px 4px 10px;
}

.detail-facts div:nth-child(4n + 1) {
  border-left: 0;
}

.detail-facts dt {
  align-items: center;
  color: var(--ink);
  display: flex;
  font-size: 0.58rem;
  font-weight: 800;
  gap: 6px;
  margin-bottom: 2px;
}

.detail-facts dt i {
  font-size: 0.9rem;
}

.detail-facts dd {
  color: var(--ink);
  font-size: 0.6rem;
  line-height: 1.22;
  margin: 0;
}

.content-shelves {
  display: grid;
  gap: 0;
  grid-template-columns: 1.08fr 0.98fr 0.92fr 0.96fr;
  margin-top: 10px;
}

.shelf {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(12, 45, 99, 0.06);
  min-width: 0;
  padding: 13px 16px 12px;
}

.shelf + .shelf {
  margin-left: -1px;
}

.shelf-heading {
  align-items: start;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 9px;
}

.shelf-heading h2 {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.18;
  margin: 0;
}

.shelf-heading button {
  color: var(--blue);
  font-size: 0.68rem;
  font-weight: 900;
  text-decoration: underline;
}

.shelf-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mini-card {
  background: transparent;
  border: 0;
  color: var(--ink);
  display: grid;
  gap: 7px;
  padding: 0;
  text-align: left;
}

.mini-card img {
  aspect-ratio: 1.55 / 1;
  border-radius: 5px;
  object-fit: cover;
  width: 100%;
}

.mini-card strong {
  font-size: 0.7rem;
  line-height: 1.18;
}

.mini-card span,
.mini-card small {
  color: var(--muted);
  font-size: 0.62rem;
  line-height: 1.25;
}

.mini-card small {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.birthday-list {
  display: grid;
  gap: 10px;
}

.birthday-card {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 88px minmax(0, 1fr);
  padding: 0;
  text-align: left;
}

.birthday-card img {
  aspect-ratio: 1.45 / 1;
  border-radius: 5px;
  object-fit: cover;
  width: 88px;
}

.birthday-card strong {
  font-size: 0.72rem;
}

.birthday-card span,
.birthday-card small {
  color: var(--muted);
  display: block;
  font-size: 0.62rem;
  line-height: 1.32;
}

.mini-card.is-selected strong,
.birthday-card.is-selected strong {
  color: var(--blue);
}

.promise-rail {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid #f0d9a8;
  border-radius: 8px;
  display: grid;
  gap: 0;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin-top: 20px;
  padding: 20px 18px;
}

.promise-rail article {
  align-items: center;
  display: grid;
  gap: 16px;
  grid-template-columns: 46px minmax(0, 1fr);
  min-height: 56px;
  padding: 0 22px;
}

.promise-rail article + article {
  border-left: 1px solid #ead6aa;
}

.promise-rail i {
  color: var(--ink);
  font-size: 2.45rem;
}

.promise-rail article:nth-child(2) i {
  color: var(--green);
}

.promise-rail article:nth-child(4) i {
  color: #2288d9;
}

.promise-rail article:nth-child(5) i {
  color: var(--coral);
}

.promise-rail h3 {
  color: var(--ink);
  font-size: 0.94rem;
  line-height: 1.2;
  margin: 0 0 4px;
}

.promise-rail p {
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
  margin: 0;
}

@media (max-width: 1280px) {
  .site-header {
    grid-template-columns: 1fr auto;
  }

  .header-actions {
    grid-column: 1 / -1;
    justify-content: flex-end;
  }

  .hero-layout {
    grid-template-columns: 1fr;
  }

  .planner-hero {
    min-height: auto;
  }

  .planner-copy {
    margin-left: clamp(92px, 15vw, 150px);
  }

  .content-shelves {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .shelf + .shelf {
    margin-left: 0;
  }

  .promise-rail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promise-rail article {
    border-left: 0 !important;
    border-top: 1px solid #ead6aa;
    padding: 18px;
  }

  .promise-rail article:first-child,
  .promise-rail article:nth-child(2) {
    border-top: 0;
  }
}

@media (max-width: 820px) {
  .page-shell {
    padding: 14px 12px 22px;
  }

  .site-header {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .brand {
    justify-self: start;
  }

  .main-nav {
    gap: 18px;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 6px;
    width: 100%;
  }

  .header-actions {
    display: grid;
    gap: 6px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.72fr) minmax(0, 1fr) minmax(0, 0.72fr);
    overflow: visible;
    padding: 0 0 6px;
    width: 100%;
  }

  .header-link {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.72rem;
    justify-content: center;
    min-height: 36px;
    min-width: 0;
    overflow: hidden;
    padding: 7px 6px;
    text-overflow: ellipsis;
  }

  .header-link i {
    font-size: 1rem;
  }

  .header-link span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  #accountButton i {
    display: none;
  }

  .divider {
    display: none;
  }

  .hero-layout {
    margin-top: 10px;
  }

  .hero-flower {
    height: 360px;
    left: -178px;
    opacity: 0.5;
    top: 78px;
    width: 270px;
  }

  .planner-copy {
    margin: 0 auto;
    max-width: 520px;
    padding-top: 32px;
  }

  h1 {
    font-size: clamp(3.25rem, 13vw, 4.5rem);
  }

  .search-panel {
    grid-template-columns: 44px minmax(0, 1fr) 82px;
  }

  .weekend-board {
    padding: 14px;
  }

  .weekend-topline {
    align-items: start;
    flex-direction: column;
    margin: 0 0 10px;
  }

  .calendar-grid {
    grid-template-columns: 1fr;
  }

  .day-panel + .day-panel {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .event-row {
    grid-template-columns: 58px 58px minmax(0, 1fr) auto;
  }

  .event-detail {
    grid-template-columns: 86px minmax(0, 1fr);
  }

  .event-detail > img {
    height: 76px;
    width: 86px;
  }

  .detail-heading {
    grid-template-columns: 1fr;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-facts div:nth-child(n) {
    border-left: 1px solid var(--line);
  }

  .detail-facts div:nth-child(2n + 1) {
    border-left: 0;
  }

  .content-shelves,
  .promise-rail {
    grid-template-columns: 1fr;
  }

  .results-mode-panel {
    display: grid;
    gap: 12px;
  }

  .compact-weekend {
    background: #f7fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 10px;
    padding: 10px;
  }

  .compact-weekend > div:first-child {
    display: grid;
    gap: 2px;
  }

  .compact-weekend > div:first-child span,
  .workspace-heading p,
  .active-chip-row span,
  .result-meta span {
    color: var(--muted);
  }

  .compact-weekend > div:first-child span,
  .workspace-heading p {
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .compact-weekend strong {
    color: var(--ink);
    font-size: 0.88rem;
    line-height: 1.2;
  }

  .compact-weekend-list {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
  }

  .compact-weekend-list button,
  .compact-weekend > button {
    background: white;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    min-height: 40px;
    padding: 8px 10px;
    text-align: left;
  }

  .compact-weekend > button {
    align-items: center;
    display: inline-flex;
    font-weight: 900;
    gap: 8px;
    justify-content: center;
  }

  .workspace-heading {
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 8px;
    padding-bottom: 10px;
  }

  .workspace-heading h2 {
    color: var(--ink);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.55rem, 8vw, 2.35rem);
    line-height: 1.04;
    margin: 0;
  }

  .workspace-heading span {
    color: var(--muted);
    display: block;
    font-size: 0.82rem;
    line-height: 1.35;
  }

  .workspace-heading > strong {
    background: #eef7ff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.72rem;
    justify-self: start;
    padding: 7px 10px;
  }

  .active-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
  }

  .active-chip-row span {
    background: #eef7ff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 900;
    padding: 6px 9px;
  }

  .results-list {
    display: grid;
    gap: 10px;
    max-height: min(34vh, 320px);
    overflow-y: auto;
    padding-right: 4px;
    overscroll-behavior: contain;
  }

  .result-card {
    align-items: start;
    background: rgba(255, 255, 255, 0.96);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 10px;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 108px;
    padding: 10px;
    text-align: left;
    width: 100%;
  }

  .result-card.is-selected,
  .result-card:hover,
  .result-card:focus-visible {
    border-color: #8dbdff;
    box-shadow: 0 10px 22px rgba(12, 45, 99, 0.08);
  }

  .result-card img {
    border-radius: 6px;
    height: 58px;
    object-fit: cover;
    width: 76px;
  }

  .result-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .result-copy strong {
    color: var(--ink);
    font-size: 0.9rem;
    line-height: 1.16;
  }

  .result-copy > span,
  .result-copy small {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.3;
  }

  .result-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .result-meta {
    display: none;
  }

  .empty-results {
    align-content: center;
    background: #f7fbff;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-height: 140px;
    padding: 18px;
    text-align: center;
  }

  .empty-results strong {
    color: var(--ink);
  }

  .empty-results span {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .promise-rail article,
  .promise-rail article:nth-child(2) {
    border-top: 1px solid #ead6aa;
  }

  .promise-rail article:first-child {
    border-top: 0;
  }
}

@media (max-width: 520px) {
  .brand strong {
    font-size: 2.15rem;
  }

  .brand em {
    font-size: 1.55rem;
  }

  .brand-mark {
    height: 26px;
    width: 26px;
  }

  .planner-copy {
    max-width: 100%;
  }

  .category-grid,
  .shelf-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-panel {
    grid-template-columns: 44px minmax(0, 1fr);
    height: auto;
  }

  .search-panel button {
    border-radius: 0;
    grid-column: 1 / -1;
    width: 100%;
  }

  .filter-pill {
    flex: 1 1 calc(50% - 10px);
    justify-content: center;
  }

  .event-row {
    gap: 9px;
    grid-template-columns: 54px minmax(0, 1fr) auto;
  }

  .event-row img {
    grid-row: span 2;
    height: 46px;
    width: 54px;
  }

  .event-time {
    font-size: 0.75rem;
  }

  .event-title {
    grid-column: 2;
  }

  .event-detail {
    grid-template-columns: 1fr;
  }

  .event-detail > img {
    aspect-ratio: 16 / 9;
    height: auto;
    width: 100%;
  }

  .detail-facts {
    grid-template-columns: 1fr;
  }

  .detail-facts div:nth-child(n) {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .birthday-card {
    grid-template-columns: 76px minmax(0, 1fr);
  }

  .birthday-card img {
    width: 76px;
  }
}

/* Clean balance pass for the desktop prototype viewport. */
@media (min-width: 1281px) {
  .page-shell {
    max-width: 1500px;
    padding-top: 12px;
    padding-bottom: 12px;
  }

  .site-header {
    min-height: 40px;
  }

  .brand strong {
    font-size: clamp(2rem, 2.45vw, 2.45rem);
  }

  .brand em {
    font-size: clamp(1.45rem, 1.8vw, 1.8rem);
  }

  .brand-mark {
    height: 26px;
    width: 26px;
  }

  .nav-button,
  .header-link {
    font-size: 0.82rem;
  }

  .hero-layout {
    gap: clamp(28px, 3.2vw, 46px);
    grid-template-columns: minmax(470px, 0.7fr) minmax(690px, 1.12fr);
    margin-top: 12px;
  }

  .planner-hero {
    min-height: 500px;
  }

  .hero-flower {
    height: 372px;
    left: -134px;
    top: 58px;
    width: 260px;
  }

  .butterfly {
    left: 36px;
    top: 32px;
  }

  .planner-copy {
    margin-left: 112px;
    max-width: 456px;
    padding-top: 28px;
  }

  h1 {
    font-size: clamp(3.1rem, 3.65vw, 3.95rem);
    line-height: 0.91;
    margin-bottom: 12px;
  }

  .planner-copy p {
    font-size: 0.9rem;
    line-height: 1.38;
    margin-bottom: 12px;
  }

  .search-panel {
    height: 40px;
  }

  .search-panel button {
    height: 40px;
  }

  .category-grid {
    gap: 10px;
    margin-top: 14px;
  }

  .category-card {
    gap: 6px;
    min-height: 78px;
    padding: 10px 8px;
  }

  .category-card i {
    font-size: 1.82rem;
  }

  .category-card span:last-child {
    font-size: 0.82rem;
  }

  .free-icon {
    font-size: 0.68rem;
    height: 24px;
    min-width: 42px;
  }

  .filter-row {
    gap: 7px;
    margin-top: 12px;
  }

  .filter-pill {
    border-radius: 7px;
    font-size: 0.68rem;
    min-height: 30px;
    padding: 6px 7px;
  }

  .weekend-board {
    padding: 12px 16px 10px;
  }

  .weekend-topline {
    margin-bottom: 7px;
  }

  .weekend-topline p {
    font-size: 1.35rem;
  }

  .date-control button:first-child {
    font-size: 0.82rem;
  }

  .day-panel h2 {
    font-size: 0.76rem;
    padding: 9px 10px;
  }

  .event-row {
    gap: 10px;
    grid-template-columns: 54px 54px minmax(0, 1fr) auto;
    min-height: 55px;
    padding: 6px 10px;
  }

  .event-row img {
    height: 40px;
    width: 54px;
  }

  .event-time {
    font-size: 0.74rem;
  }

  .event-title strong {
    font-size: 0.72rem;
  }

  .event-title span {
    font-size: 0.62rem;
  }

  .price-badge {
    font-size: 0.66rem;
    min-width: 36px;
    padding: 3px 6px;
  }

  .event-detail {
    gap: 12px;
    grid-template-columns: 80px minmax(0, 1fr);
    margin-top: 8px;
    padding: 8px 12px;
  }

  .event-detail > img {
    height: 58px;
    width: 80px;
  }

  .detail-heading h3 {
    font-size: 0.86rem;
  }

  .detail-heading p {
    font-size: 0.62rem;
  }

  .detail-actions {
    gap: 10px;
  }

  .icon-button {
    font-size: 1.08rem;
  }

  .detail-facts dt {
    font-size: 0.54rem;
  }

  .detail-facts dd {
    font-size: 0.56rem;
  }

  .content-shelves {
    margin-top: 8px;
  }

  .shelf {
    padding: 10px 12px;
  }

  .shelf-heading {
    margin-bottom: 7px;
  }

  .shelf-heading h2 {
    font-size: 0.88rem;
  }

  .shelf-grid {
    gap: 8px;
  }

  .mini-card {
    gap: 5px;
  }

  .mini-card img {
    aspect-ratio: 1.75 / 1;
  }

  .mini-card strong,
  .birthday-card strong {
    font-size: 0.64rem;
  }

  .mini-card span,
  .mini-card small,
  .birthday-card span,
  .birthday-card small {
    font-size: 0.56rem;
  }

  .birthday-list {
    gap: 8px;
  }

  .birthday-card {
    grid-template-columns: 70px minmax(0, 1fr);
  }

  .birthday-card img {
    width: 70px;
  }

  .promise-rail {
    margin-top: 10px;
    padding: 10px 12px;
  }

  .promise-rail article {
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 44px;
    padding: 0 14px;
  }

  .promise-rail i {
    font-size: 1.8rem;
  }

  .promise-rail h3 {
    font-size: 0.76rem;
    margin-bottom: 2px;
  }

  .promise-rail p {
    font-size: 0.62rem;
    line-height: 1.28;
  }
}

/* Full-width rebalance after review: use the screen instead of floating in the middle. */
@media (min-width: 1281px) {
  .page-shell {
    max-width: 1760px;
    padding-left: clamp(28px, 2.2vw, 42px);
    padding-right: clamp(28px, 2.2vw, 42px);
  }

  .site-header {
    gap: 28px;
    grid-template-columns: minmax(330px, 0.72fr) auto minmax(390px, 0.82fr);
  }

  .hero-layout {
    gap: clamp(28px, 2.4vw, 42px);
    grid-template-columns: minmax(670px, 0.82fr) minmax(860px, 1fr);
  }

  .planner-hero {
    min-height: 532px;
  }

  .hero-flower {
    height: 390px;
    left: 0;
    object-position: center center;
    top: 50px;
    width: 276px;
  }

  .butterfly {
    left: 170px;
    top: 30px;
  }

  .planner-copy {
    margin-left: 300px;
    max-width: 455px;
    padding-top: 26px;
  }

  h1 {
    font-size: clamp(3.35rem, 3.85vw, 4.45rem);
    max-width: 455px;
  }

  .planner-copy p {
    max-width: 455px;
  }

  .category-grid,
  .search-panel,
  .filter-row {
    max-width: 455px;
  }

  .category-card {
    min-height: 84px;
  }

  .weekend-board {
    width: 100%;
  }

  .calendar-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  .event-row {
    grid-template-columns: 58px 58px minmax(0, 1fr) auto;
  }

  .content-shelves {
    margin-top: 12px;
  }

  .shelf {
    min-height: 206px;
    padding: 12px 14px;
  }

  .mini-card img {
    aspect-ratio: 1.55 / 1;
  }

  .birthday-card {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .birthday-card img {
    width: 82px;
  }

  .promise-rail {
    margin-top: 12px;
    min-height: 82px;
    padding: 14px 14px;
  }

  .promise-rail article {
    min-height: 52px;
  }
}

/* Fidelity pass: match the full-width mock instead of the over-centered version. */
@media (min-width: 1281px) {
  .page-shell {
    max-width: none;
    padding: 18px 32px 24px;
  }

  .site-header {
    grid-template-columns: minmax(340px, 0.72fr) auto minmax(410px, 0.82fr);
    min-height: 48px;
  }

  .brand strong {
    font-size: clamp(2.25rem, 2.75vw, 2.7rem);
  }

  .brand em {
    font-size: clamp(1.6rem, 2vw, 2rem);
  }

  .brand-mark {
    height: 29px;
    width: 29px;
  }

  .hero-layout {
    gap: 32px;
    grid-template-columns: minmax(760px, 0.82fr) minmax(900px, 1fr);
    margin-top: 14px;
  }

  .planner-hero {
    min-height: 594px;
  }

  .hero-flower {
    height: 430px;
    left: 10px;
    top: 60px;
    width: 310px;
  }

  .butterfly {
    left: 250px;
    top: 36px;
  }

  .planner-copy {
    margin-left: 340px;
    max-width: 470px;
    padding-top: 34px;
  }

  h1 {
    font-size: clamp(3.8rem, 4.45vw, 4.9rem);
    line-height: 0.9;
    max-width: 470px;
  }

  .planner-copy p {
    font-size: 0.98rem;
    max-width: 470px;
  }

  .category-grid,
  .search-panel,
  .filter-row {
    max-width: 470px;
  }

  .search-panel,
  .search-panel button {
    height: 44px;
  }

  .category-grid {
    margin-top: 16px;
  }

  .category-card {
    min-height: 108px;
    padding: 13px 10px;
  }

  .category-card i {
    font-size: 2.1rem;
  }

  .category-card span:last-child {
    font-size: 0.88rem;
  }

  .filter-row {
    margin-top: 14px;
  }

  .filter-pill {
    font-size: 0.72rem;
    min-height: 32px;
    padding: 7px 8px;
  }

  .weekend-board {
    align-self: start;
    min-height: 580px;
    padding: 14px 18px 12px;
  }

  .event-row {
    grid-template-columns: 60px 58px minmax(0, 1fr) auto;
    min-height: 62px;
    padding: 7px 12px;
  }

  .event-row img {
    height: 45px;
    width: 60px;
  }

  .event-time {
    font-size: 0.78rem;
  }

  .event-title strong {
    font-size: 0.76rem;
  }

  .event-title span {
    font-size: 0.66rem;
  }

  .event-detail {
    grid-template-columns: 92px minmax(0, 1fr);
    margin-top: 10px;
    min-height: 160px;
    padding: 10px 14px;
  }

  .event-detail > img {
    height: 74px;
    width: 92px;
  }

  .content-shelves {
    margin-top: 14px;
  }

  .shelf {
    min-height: 230px;
    padding: 14px 16px;
  }

  .shelf-heading h2 {
    font-size: 0.96rem;
  }

  .mini-card img {
    aspect-ratio: 1.45 / 1;
  }

  .mini-card strong,
  .birthday-card strong {
    font-size: 0.68rem;
  }

  .mini-card span,
  .mini-card small,
  .birthday-card span,
  .birthday-card small {
    font-size: 0.6rem;
  }

  .birthday-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .birthday-card img {
    width: 88px;
  }

  .promise-rail {
    margin-top: 14px;
    min-height: 98px;
    padding: 17px 18px;
  }

  .promise-rail article {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 64px;
    padding: 0 18px;
  }

  .promise-rail i {
    font-size: 2.25rem;
  }

  .promise-rail h3 {
    font-size: 0.86rem;
  }

  .promise-rail p {
    font-size: 0.68rem;
  }
}

/* Planner shell: keep the whole product on one screen and scroll only inside panels. */
@media (min-width: 1024px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    min-width: 1180px;
  }

  .page-shell {
    display: grid;
    gap: 10px;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    max-width: none;
    min-height: 0;
    padding: 14px clamp(26px, 2vw, 40px) 12px;
  }

  .site-header {
    gap: 28px;
    grid-template-columns: minmax(330px, 0.74fr) auto minmax(390px, 0.82fr);
    min-height: 46px;
  }

  .brand strong {
    font-size: clamp(2.15rem, 2.55vw, 2.65rem);
  }

  .brand em {
    font-size: clamp(1.55rem, 1.9vw, 2rem);
  }

  #planner {
    display: grid;
    gap: 12px;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
  }

  .hero-layout {
    align-items: stretch;
    gap: clamp(24px, 2vw, 34px);
    grid-template-columns: minmax(650px, 0.82fr) minmax(760px, 1fr);
    height: 100%;
    margin: 0;
    min-height: 0;
    overflow: hidden;
  }

  .planner-hero {
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .hero-flower {
    height: min(43vh, 420px);
    left: 12px;
    object-position: center center;
    top: 51%;
    transform: translateY(-45%);
    width: 300px;
  }

  .butterfly {
    left: 224px;
    top: clamp(28px, 4vh, 42px);
  }

  .planner-copy {
    margin-left: 330px;
    max-width: 455px;
    padding-top: clamp(24px, 5vh, 50px);
  }

  h1 {
    font-size: clamp(3.25rem, 3.9vw, 4.55rem);
    line-height: 0.9;
    margin-bottom: 12px;
    max-width: 455px;
  }

  .planner-copy p {
    font-size: 0.94rem;
    line-height: 1.38;
    margin-bottom: 12px;
    max-width: 455px;
  }

  .category-grid,
  .search-panel,
  .filter-row {
    max-width: 455px;
  }

  .search-panel,
  .search-panel button {
    height: 42px;
  }

  .category-grid {
    gap: 10px;
    margin-top: 14px;
  }

  .category-card {
    gap: 6px;
    min-height: clamp(74px, 8.4vh, 88px);
    padding: 10px 8px;
  }

  .category-card i {
    font-size: 1.9rem;
  }

  .category-card span:last-child {
    font-size: 0.84rem;
  }

  .filter-row {
    gap: 7px;
    margin-top: 12px;
  }

  .filter-pill {
    border-radius: 7px;
    font-size: 0.68rem;
    min-height: 30px;
    padding: 6px 7px;
  }

  .weekend-board {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
    padding: 13px 18px 12px;
  }

  .weekend-topline {
    margin: 0 2px 8px;
  }

  .weekend-topline p {
    font-size: 1.35rem;
  }

  .weekend-full-panel {
    display: grid;
    min-height: 0;
    overflow: hidden;
  }

  .weekend-board.is-results .weekend-full-panel,
  .weekend-board:not(.is-results) .results-mode-panel {
    display: none;
  }

  .calendar-grid {
    height: 100%;
    min-height: 0;
  }

  .day-panel {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
    min-height: 0;
  }

  .event-list {
    min-height: 0;
    overflow: auto;
  }

  .day-panel h2 {
    font-size: 0.76rem;
    padding: 9px 10px;
  }

  .event-row {
    gap: 10px;
    grid-template-columns: 56px 56px minmax(0, 1fr) auto;
    min-height: 58px;
    padding: 6px 10px;
  }

  .event-row img {
    height: 41px;
    width: 56px;
  }

  .event-title strong {
    font-size: 0.72rem;
  }

  .event-title span {
    font-size: 0.62rem;
  }

  .results-mode-panel {
    display: grid;
    gap: 10px;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .compact-weekend {
    align-items: center;
    background: #f7fbff;
    border: 1px solid var(--line);
    border-radius: 8px;
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(190px, 0.9fr) minmax(260px, 1.1fr) auto;
    padding: 9px 10px;
  }

  .compact-weekend span,
  .workspace-heading p,
  .workspace-heading span,
  .active-chip-row span,
  .result-meta span {
    color: var(--muted);
  }

  .compact-weekend > div:first-child {
    display: grid;
    gap: 2px;
  }

  .compact-weekend > div:first-child span {
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }

  .compact-weekend strong {
    color: var(--ink);
    font-size: 0.82rem;
    line-height: 1.2;
  }

  .compact-weekend-list {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .compact-weekend-list button,
  .compact-weekend > button {
    background: white;
    border: 1px solid var(--line);
    border-radius: 7px;
    color: var(--ink);
    min-width: 0;
  }

  .compact-weekend-list button {
    display: grid;
    gap: 1px;
    padding: 7px 8px;
    text-align: left;
  }

  .compact-weekend-list span {
    font-size: 0.62rem;
    font-weight: 900;
  }

  .compact-weekend-list strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .compact-weekend > button {
    align-items: center;
    display: inline-flex;
    font-size: 0.72rem;
    font-weight: 900;
    gap: 6px;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    white-space: nowrap;
  }

  .workspace-heading {
    align-items: end;
    border-bottom: 1px solid var(--line);
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 8px;
  }

  .workspace-heading p {
    font-size: 0.66rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    margin: 0 0 3px;
    text-transform: uppercase;
  }

  .workspace-heading h2 {
    color: var(--ink);
    font-family: "Fraunces", Georgia, serif;
    font-size: clamp(1.35rem, 1.7vw, 1.9rem);
    line-height: 1.02;
    margin: 0 0 5px;
  }

  .workspace-heading span {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    max-width: 760px;
  }

  .workspace-heading > strong {
    background: #eef7ff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink);
    font-size: 0.72rem;
    padding: 7px 10px;
    white-space: nowrap;
  }

  .active-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 28px;
  }

  .active-chip-row span {
    background: #eef7ff;
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 900;
    padding: 6px 9px;
  }

  .results-list {
    display: grid;
    gap: 9px;
    min-height: 0;
    overflow: auto;
    padding-right: 4px;
  }

  .result-card {
    align-items: center;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--ink);
    display: grid;
    gap: 12px;
    grid-template-columns: 96px minmax(0, 1fr);
    min-height: 92px;
    padding: 9px 10px;
    text-align: left;
    width: 100%;
  }

  .result-card:hover,
  .result-card:focus-visible,
  .result-card.is-selected {
    border-color: #8dbdff;
    box-shadow: 0 10px 22px rgba(12, 45, 99, 0.08);
  }

  .result-card img {
    aspect-ratio: 1.35 / 1;
    border-radius: 6px;
    height: 70px;
    object-fit: cover;
    width: 96px;
  }

  .result-copy {
    display: grid;
    gap: 4px;
    min-width: 0;
  }

  .result-copy strong {
    color: var(--ink);
    font-size: 0.86rem;
    line-height: 1.16;
  }

  .result-copy > span {
    color: var(--muted);
    font-size: 0.7rem;
  }

  .result-copy small {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.32;
  }

  .result-copy small {
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }

  .result-meta {
    display: none;
  }

  .empty-results {
    align-content: center;
    background: #f7fbff;
    border: 1px dashed var(--line-strong);
    border-radius: 8px;
    display: grid;
    gap: 6px;
    min-height: 140px;
    padding: 18px;
    text-align: center;
  }

  .empty-results strong {
    color: var(--ink);
  }

  .empty-results span {
    color: var(--muted);
    font-size: 0.78rem;
  }

  .event-detail {
    gap: 12px;
    grid-template-columns: 94px minmax(0, 1fr);
    margin-top: 10px;
    min-height: 150px;
    padding: 10px 12px;
  }

  .event-detail > img {
    height: 70px;
    width: 94px;
  }

  .detail-heading {
    gap: 12px;
    padding-bottom: 6px;
  }

  .detail-heading h3 {
    font-size: 0.9rem;
  }

  .detail-heading p {
    font-size: 0.64rem;
  }

  .detail-facts dt {
    font-size: 0.54rem;
  }

  .detail-facts dd {
    font-size: 0.56rem;
  }

  .promise-rail {
    margin: 0;
    min-height: 72px;
    padding: 10px 12px;
  }

  .promise-rail article {
    gap: 10px;
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 46px;
    padding: 0 14px;
  }

  .promise-rail i {
    font-size: 1.78rem;
  }

  .promise-rail h3 {
    font-size: 0.76rem;
    margin-bottom: 2px;
  }

  .promise-rail p {
    font-size: 0.62rem;
    line-height: 1.28;
  }
}

@media (min-width: 1024px) and (max-height: 860px) {
  .brand strong {
    font-size: 2rem;
  }

  .brand em {
    font-size: 1.45rem;
  }

  .planner-copy {
    padding-top: 20px;
  }

  h1 {
    font-size: clamp(2.9rem, 3.45vw, 3.75rem);
  }

  .hero-flower {
    height: min(40vh, 350px);
    width: 260px;
  }

  .category-card {
    min-height: 70px;
  }

  .event-detail {
    min-height: 132px;
  }

  .detail-facts {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .detail-facts div:nth-child(n) {
    border-left: 1px solid var(--line);
  }

  .detail-facts div:first-child {
    border-left: 0;
  }

  .promise-rail {
    min-height: 62px;
    padding: 8px 12px;
  }
}

@media (min-width: 1024px) and (max-width: 1500px) {
  .page-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .site-header {
    gap: 18px;
    grid-template-columns: minmax(250px, 0.72fr) auto minmax(290px, 0.66fr);
  }

  .main-nav {
    gap: 20px;
  }

  .header-actions {
    gap: 10px;
  }

  .nav-button,
  .header-link {
    font-size: 0.72rem;
  }

  .divider {
    height: 20px;
  }

  .hero-layout {
    gap: 18px;
    grid-template-columns: minmax(500px, 0.82fr) minmax(0, 1fr);
  }

  .hero-flower {
    height: min(39vh, 340px);
    left: 0;
    width: 230px;
  }

  .butterfly {
    left: 172px;
  }

  .planner-copy {
    margin-left: 250px;
    max-width: 340px;
    padding-top: 22px;
  }

  h1 {
    font-size: clamp(2.75rem, 4.1vw, 3.45rem);
    max-width: 340px;
  }

  .planner-copy p {
    font-size: 0.8rem;
    max-width: 340px;
  }

  .category-grid,
  .search-panel,
  .filter-row {
    max-width: 340px;
  }

  .search-panel {
    grid-template-columns: 40px minmax(0, 1fr) 74px;
  }

  .search-panel,
  .search-panel button {
    height: 40px;
  }

  .search-panel input {
    font-size: 0.78rem;
  }

  .category-grid {
    gap: 8px;
  }

  .category-card {
    min-height: 68px;
  }

  .category-card i {
    font-size: 1.55rem;
  }

  .category-card span:last-child {
    font-size: 0.72rem;
  }

  .weekend-board {
    padding: 10px 12px;
  }

  .weekend-topline p {
    font-size: 1.14rem;
  }

  .date-control {
    gap: 8px;
  }

  .date-control button:first-child,
  .calendar-link {
    font-size: 0.68rem;
  }

  .event-row {
    gap: 8px;
    grid-template-columns: 46px 48px minmax(0, 1fr) auto;
    min-height: 50px;
    padding: 5px 8px;
  }

  .event-row img {
    height: 35px;
    width: 46px;
  }

  .event-time {
    font-size: 0.64rem;
  }

  .event-title strong {
    font-size: 0.64rem;
  }

  .event-title span {
    font-size: 0.54rem;
  }

  .compact-weekend {
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 7px 8px;
  }

  .compact-weekend-list {
    display: none;
  }

  .workspace-heading {
    align-items: start;
  }

  .workspace-heading h2 {
    font-size: clamp(1.1rem, 2vw, 1.45rem);
  }

  .workspace-heading span {
    font-size: 0.68rem;
  }

  .result-card {
    gap: 9px;
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 76px;
    padding: 7px 8px;
  }

  .result-card img {
    height: 56px;
    width: 76px;
  }

  .result-copy strong {
    font-size: 0.74rem;
  }

  .result-copy > span,
  .result-copy small {
    font-size: 0.6rem;
  }

  .event-detail {
    grid-template-columns: 78px minmax(0, 1fr);
    min-height: 126px;
    padding: 8px 10px;
  }

  .event-detail > img {
    height: 58px;
    width: 78px;
  }

  .detail-actions {
    gap: 8px;
  }

}

@media (min-width: 1024px) and (max-height: 760px) {
  .page-shell {
    gap: 8px;
    padding-bottom: 10px;
    padding-top: 10px;
  }

  #planner {
    gap: 10px;
  }

  .site-header {
    min-height: 40px;
  }

  .brand strong {
    font-size: 1.85rem;
  }

  .brand em {
    font-size: 1.32rem;
  }

  .brand-mark {
    height: 22px;
    width: 22px;
  }

  .planner-copy {
    padding-top: 16px;
  }

  h1 {
    font-size: clamp(2.45rem, 3.6vw, 3.05rem);
    margin-bottom: 8px;
  }

  .planner-copy p,
  .workspace-heading span,
  .result-copy small {
    display: none;
  }

  .category-card {
    min-height: 62px;
  }

  .filter-row {
    margin-top: 8px;
  }

  .filter-pill {
    min-height: 26px;
    padding: 5px 6px;
  }

  .results-mode-panel {
    gap: 7px;
  }

  .workspace-heading {
    padding-bottom: 6px;
  }

  .active-chip-row {
    min-height: 24px;
  }

  .active-chip-row span {
    padding: 5px 8px;
  }

  .result-card {
    min-height: 64px;
  }

  .event-detail {
    margin-top: 7px;
    min-height: 108px;
  }

  .detail-heading {
    padding-bottom: 4px;
  }

  .detail-heading h3 {
    font-size: 0.78rem;
  }

  .detail-tags {
    display: none;
  }

  .detail-facts dt {
    font-size: 0.48rem;
  }

  .detail-facts dd {
    font-size: 0.5rem;
  }

  .promise-rail h3 {
    font-size: 0.68rem;
  }

  .promise-rail p {
    display: none;
  }
}

/* Latest interaction pass: cropped flower motif and real weekend collapse control. */
.weekend-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  color: var(--ink);
  display: inline-flex;
  font-family: "Caveat", "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  gap: 12px;
  line-height: 1;
  padding: 0;
}

.weekend-toggle i {
  font-size: 1.55rem;
  transition: transform 160ms ease;
}

.weekend-toggle:hover i,
.weekend-toggle:focus-visible i {
  transform: translateY(-1px);
}

.weekend-board.is-results .weekend-toggle i {
  transform: translateY(1px);
}

@media (min-width: 1024px) {
  .weekend-topline p {
    display: none;
  }

  .weekend-toggle {
    font-size: 1.35rem;
  }

  .weekend-toggle i {
    font-size: 1.42rem;
  }

  .hero-flower {
    height: min(52vh, 550px);
    left: calc(-1 * clamp(26px, 2vw, 40px));
    object-fit: contain;
    object-position: left center;
    top: 35%;
    transform: translateY(-45%);
    width: auto;
  }

  .butterfly {
    left: 112px;
  }

  .planner-copy {
    margin-left: 250px;
  }
}

.today-best {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(12, 45, 99, 0.06);
  margin-top: 18px;
  max-width: 455px;
  padding: 12px;
}

.today-best-heading {
  align-items: center;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 12px;
  justify-content: space-between;
  padding-bottom: 9px;
}

.today-best-heading p {
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 3px;
  text-transform: uppercase;
}

.today-best-heading h2 {
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1.18;
  margin: 0;
}

.today-best-heading > span {
  background: #eef7ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  font-size: 0.64rem;
  font-weight: 900;
  padding: 6px 9px;
  white-space: nowrap;
}

.today-best-list {
  display: grid;
  gap: 7px;
  padding-top: 9px;
}

.today-best-list button {
  align-items: center;
  background: #f8fbff;
  border: 1px solid transparent;
  border-radius: 7px;
  color: var(--ink);
  display: grid;
  gap: 10px;
  grid-template-columns: 32px minmax(0, 1fr);
  padding: 8px;
  text-align: left;
  width: 100%;
}

.today-best-list button:hover,
.today-best-list button:focus-visible,
.today-best-list button.is-selected {
  background: white;
  border-color: #9ac5ff;
  box-shadow: 0 8px 18px rgba(12, 45, 99, 0.07);
}

.today-best-list i {
  align-items: center;
  background: #eaf4ff;
  border-radius: 999px;
  color: var(--green);
  display: inline-flex;
  font-size: 1.1rem;
  height: 32px;
  justify-content: center;
  width: 32px;
}

.today-best-list button:nth-child(1) i {
  color: #6958ce;
}

.today-best-list button:nth-child(3) i {
  color: #39a968;
}

.today-best-list span {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.today-best-list strong {
  color: var(--ink);
  font-size: 0.76rem;
  line-height: 1.18;
}

.today-best-list small {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.25;
}

.brand-mark {
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.brand-mark img {
  object-fit: contain;
}

@media (min-width: 1024px) and (max-width: 1500px) {
  .weekend-toggle {
    font-size: 1.14rem;
  }

  .weekend-toggle i {
    font-size: 1.2rem;
  }

  .hero-flower {
    height: min(52vh, 470px);
    left: -22px;
    top: 36%;
    width: auto;
  }

  .butterfly {
    left: 104px;
  }

  .planner-copy {
    margin-left: 200px;
  }

  .today-best {
    max-width: 340px;
    padding: 10px;
  }

  .today-best-heading h2 {
    font-size: 0.8rem;
  }

  .today-best-list button {
    grid-template-columns: 28px minmax(0, 1fr);
    padding: 7px;
  }

  .today-best-list i {
    font-size: 1rem;
    height: 28px;
    width: 28px;
  }

  .today-best-list strong {
    font-size: 0.68rem;
  }

  .today-best-list small {
    font-size: 0.58rem;
  }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .hero-flower {
    height: min(50vh, 390px);
    left: -22px;
    top: 38%;
    width: auto;
  }

  .planner-copy {
    margin-left: 184px;
  }

  .today-best {
    margin-top: 10px;
    padding: 8px;
  }

  .today-best-heading {
    padding-bottom: 6px;
  }

  .today-best-list {
    gap: 5px;
    padding-top: 6px;
  }

  .today-best-list button {
    min-height: 42px;
    padding: 5px 7px;
  }

  .today-best-list button:nth-child(3) {
    display: none;
  }
}

/* Final board state + reference flower correction. */
@media (min-width: 1024px) {
  #planner,
  .hero-layout {
    overflow: hidden;
  }

  .planner-hero {
    overflow: visible;
  }

  .hero-flower {
    background: transparent;
    height: auto;
    left: calc(-1 * clamp(76px, 5.5vw, 104px));
    max-width: none;
    object-fit: contain;
    object-position: left top;
    top: clamp(24px, 3.4vh, 42px);
    transform: none;
    width: clamp(270px, 17.2vw, 330px);
  }

  .planner-copy {
    margin-left: clamp(248px, 17vw, 310px);
  }
}

.weekend-board:not(.is-weekend) .weekend-full-panel,
.weekend-board:not(.is-results) .results-mode-panel,
.weekend-board:not(.is-calendar) .full-calendar-panel,
.weekend-board:not(.is-guides) .guides-panel,
.weekend-board:not(.is-about) .about-panel {
  display: none !important;
}

.weekend-board.is-calendar .full-calendar-panel,
.weekend-board.is-guides .guides-panel,
.weekend-board.is-about .about-panel {
  display: grid;
}

.weekend-board.is-guides,
.weekend-board.is-about {
  grid-template-rows: auto minmax(0, 1fr);
}

.weekend-board.is-guides .event-detail,
.weekend-board.is-about .event-detail {
  display: none;
}

.board-panel {
  align-content: start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
}

.board-heading {
  align-items: start;
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  min-width: 0;
  padding: 8px 0 12px;
}

.board-heading > div {
  min-width: 0;
}

.board-heading p {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 0 4px;
  text-transform: uppercase;
}

.board-heading h2 {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.18rem, 1.8vw, 1.6rem);
  line-height: 1.04;
  margin: 0;
  overflow-wrap: anywhere;
}

.board-heading span {
  color: var(--muted);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
  margin-top: 5px;
  max-width: 680px;
}

.board-heading button,
.calendar-tools button {
  background: #f5faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 10px;
  white-space: nowrap;
}

.calendar-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 0;
}

.calendar-tools button.is-active,
.calendar-tools button:hover,
.calendar-tools button:focus-visible {
  background: var(--ink);
  border-color: var(--ink);
  color: white;
}

.week-strip {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.week-strip article {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 3px;
  min-height: 58px;
  padding: 7px 6px;
}

.week-strip article.is-active {
  background: #fffaf0;
  border-color: #f4cc7a;
}

.week-strip span,
.week-strip small,
.agenda-time {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.week-strip strong {
  color: var(--ink);
  font-size: 1.08rem;
  line-height: 1;
}

.week-strip small {
  letter-spacing: 0;
  line-height: 1.15;
  text-transform: none;
}

.calendar-agenda {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr;
  padding-top: 12px;
}

.calendar-agenda button,
.guide-grid button,
.guide-grid a,
.about-grid article {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  text-align: left;
}

.calendar-agenda button {
  display: grid;
  gap: 3px;
  min-height: 72px;
  padding: 11px 12px;
}

.calendar-agenda button:hover,
.calendar-agenda button:focus-visible,
.calendar-agenda button.is-selected,
.guide-grid button:hover,
.guide-grid button:focus-visible,
.guide-grid a:hover,
.guide-grid a:focus-visible {
  border-color: #8ebcff;
  box-shadow: 0 10px 24px rgba(12, 45, 99, 0.08);
}

.calendar-agenda strong,
.guide-grid strong,
.about-grid strong,
.guide-note strong {
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.2;
}

.calendar-agenda span:last-child,
.guide-grid span,
.about-grid span,
.guide-note span {
  color: var(--muted);
  font-size: 0.72rem;
  line-height: 1.35;
}

.guide-grid,
.about-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding-top: 0;
}

.guide-grid button,
.guide-grid a,
.about-grid article {
  display: grid;
  gap: 8px;
  min-height: 122px;
  padding: 14px;
}

.guide-grid i,
.about-grid i {
  align-items: center;
  background: #eaf4ff;
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 1.5rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.guide-grid button:nth-child(1) i,
.guide-grid a:nth-child(1) i {
  color: #2189db;
}

.guide-grid button:nth-child(2) i,
.guide-grid a:nth-child(2) i {
  color: var(--green);
}

.guide-grid button:nth-child(3) i,
.guide-grid a:nth-child(3) i {
  color: #39a968;
}

.guide-grid button:nth-child(4) i,
.guide-grid a:nth-child(4) i,
.guide-grid a:nth-child(6) i {
  color: var(--coral);
}

.guide-back-link {
  align-items: center;
  background: #f5faff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.74rem;
  font-weight: 900;
  min-height: 34px;
  padding: 7px 10px;
  text-decoration: none;
  white-space: nowrap;
}

.guide-article {
  display: grid;
  gap: 14px;
  padding-bottom: 8px;
}

.guide-lede {
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.5;
  margin: 0;
}

.guide-article section {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
}

.guide-article h3 {
  color: var(--ink);
  font-size: 0.95rem;
  margin: 0 0 6px;
}

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

.guide-section-copy {
  display: grid;
  gap: 10px;
}

.guide-section-copy p {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

.guide-section-copy a,
.guide-related-list a,
.guide-faq-list a {
  color: var(--blue);
  font-weight: 800;
}

.guide-faq-list {
  display: grid;
  gap: 8px;
}

.guide-faq-list details {
  background: #f7fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
}

.guide-faq-list summary {
  color: var(--ink);
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 900;
}

.guide-faq-list p {
  margin-top: 8px;
}

.guide-related-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-related-list a {
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 4px;
  padding: 10px;
  text-decoration: none;
}

.guide-related-list span {
  color: var(--muted);
  font-size: 0.72rem;
}

.guide-note {
  align-items: center;
  background: #fffaf0;
  border: 1px solid #f4cc7a;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  margin-top: 0;
  padding: 12px 14px;
}

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

.business-actions button {
  align-items: center;
  background: var(--ink);
  border: 1px solid var(--ink);
  border-radius: 8px;
  color: white;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 8px;
  justify-content: center;
  min-height: 42px;
  padding: 10px 12px;
}

.business-actions button:first-child {
  background: #fffaf0;
  border-color: #f4cc7a;
  color: var(--ink);
}

.icon-button.is-saved {
  background: #fff1ef;
  border-color: #ffc2ba;
  color: var(--coral);
}

.modal-layer[hidden],
.toast[hidden] {
  display: none;
}

.modal-layer {
  inset: 0;
  position: fixed;
  z-index: 40;
}

.modal-backdrop {
  background: rgba(6, 26, 79, 0.38);
  inset: 0;
  position: absolute;
}

.modal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 30px 80px rgba(6, 26, 79, 0.22);
  color: var(--ink);
  left: 50%;
  max-height: min(86vh, 760px);
  max-width: min(92vw, 720px);
  overflow: auto;
  padding: 24px;
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 560px;
}

.modal-close {
  align-items: center;
  background: #f2f7ff;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: absolute;
  right: 14px;
  top: 14px;
  width: 34px;
}

.modal-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  margin: 0 42px 7px 0;
  text-transform: uppercase;
}

.modal-card h2 {
  color: var(--ink);
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(1.75rem, 4vw, 2.35rem);
  line-height: 1;
  margin: 0 42px 8px 0;
}

.modal-card p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.45;
  margin-bottom: 16px;
}

.auth-tabs,
.location-grid,
.tier-grid,
.profile-age-grid {
  display: grid;
  gap: 8px;
}

.auth-shell {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(0, 0.86fr) minmax(280px, 1fr);
}

.auth-intro {
  align-content: start;
  background:
    radial-gradient(circle at 12% 18%, rgba(247, 185, 34, 0.18), transparent 5rem),
    linear-gradient(180deg, #f7fbff, #ffffff);
  border-radius: 8px;
  display: grid;
  padding: 18px;
}

.auth-intro .modal-kicker,
.auth-intro h2 {
  margin-right: 0;
}

.auth-benefits {
  display: grid;
  gap: 8px;
  margin-top: 4px;
}

.auth-benefits span {
  align-items: center;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 900;
  gap: 8px;
}

.auth-benefits i {
  align-items: center;
  background: #eaf4ff;
  border-radius: 999px;
  color: var(--blue);
  display: inline-flex;
  font-size: 1rem;
  height: 28px;
  justify-content: center;
  width: 28px;
}

.auth-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.auth-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.auth-tabs button,
.location-grid button,
.tier-card,
.profile-age-grid label {
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
}

.auth-tabs button {
  font-weight: 900;
  min-height: 38px;
}

.auth-tabs button.is-active,
.location-grid button:hover,
.location-grid button:focus-visible,
.tier-card.is-selected {
  background: #eef7ff;
  border-color: #8ebcff;
}

.google-auth-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--ink);
  display: inline-flex;
  font-weight: 900;
  gap: 10px;
  justify-content: center;
  min-height: 44px;
  padding: 10px 12px;
}

.google-auth-button:hover,
.google-auth-button:focus-visible {
  border-color: #8ebcff;
  box-shadow: 0 10px 20px rgba(12, 45, 99, 0.08);
}

.google-auth-button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.google-g {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #4285f4;
  display: inline-flex;
  font-family: Arial, sans-serif;
  font-size: 0.9rem;
  font-weight: 900;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.oauth-note {
  background: #fff8e8;
  border: 1px solid #f2dba8;
  border-radius: 8px;
  color: var(--ink) !important;
  font-size: 0.74rem !important;
  line-height: 1.35 !important;
  margin: -4px 0 0 !important;
  padding: 9px 10px;
}

.auth-divider {
  align-items: center;
  color: var(--muted);
  display: grid;
  font-size: 0.7rem;
  font-weight: 900;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  text-transform: uppercase;
}

.auth-divider::before,
.auth-divider::after {
  background: var(--line);
  content: "";
  height: 1px;
}

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

.form-grid label {
  color: var(--ink);
  display: grid;
  font-size: 0.76rem;
  font-weight: 900;
  gap: 6px;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 10px 12px;
  width: 100%;
}

.form-grid textarea {
  min-height: 90px;
  resize: vertical;
}

.form-grid .submit-row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-top: 4px;
}

.primary-action,
.secondary-action,
.danger-action {
  border-radius: 8px;
  font-weight: 900;
  min-height: 42px;
  padding: 10px 14px;
}

.primary-action {
  background: var(--coral);
  border: 1px solid var(--coral);
  color: white;
}

.primary-action:disabled {
  cursor: not-allowed;
  opacity: 0.72;
}

.secondary-action {
  background: #f8fbff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.danger-action {
  background: #fff1ef;
  border: 1px solid #ffc2ba;
  color: var(--coral);
}

.form-message {
  color: var(--coral);
  font-size: 0.78rem;
  font-weight: 900;
  min-height: 1.2em;
}

.location-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.location-grid button {
  min-height: 54px;
  padding: 12px;
  text-align: left;
}

.location-grid strong,
.favorite-list strong,
.tier-card strong {
  display: block;
}

.favorite-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.favorite-list article {
  align-items: center;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  padding: 10px;
}

.favorite-list img {
  border-radius: 6px;
  height: 52px;
  object-fit: cover;
  width: 72px;
}

.favorite-list span,
.tier-card span,
.tier-card li {
  color: var(--muted);
  font-size: 0.74rem;
  line-height: 1.35;
}

.tier-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 14px;
}

.tier-card {
  display: grid;
  gap: 7px;
  padding: 12px;
  text-align: left;
}

.tier-card small {
  color: var(--green);
  font-weight: 900;
}

.tier-card ul {
  display: grid;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sponsor-note {
  background: #fff8e8;
  border: 1px solid #f2dba8;
  border-radius: 8px;
  color: var(--ink) !important;
  font-size: 0.78rem !important;
  font-weight: 800;
  margin: -2px 0 12px !important;
  padding: 10px 12px;
}

.profile-age-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.profile-age-grid label {
  align-items: center;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 8px;
  justify-content: center;
  min-height: 38px;
}

.toast {
  background: var(--ink);
  border-radius: 999px;
  bottom: 22px;
  box-shadow: 0 16px 36px rgba(6, 26, 79, 0.22);
  color: white;
  font-size: 0.82rem;
  font-weight: 900;
  left: 50%;
  padding: 12px 16px;
  position: fixed;
  transform: translateX(-50%);
  z-index: 60;
}

.weekend-board.is-calendar .full-calendar-panel,
.weekend-board.is-guides .guides-panel,
.weekend-board.is-about .about-panel {
  align-content: start;
  grid-auto-rows: max-content;
}

@media (min-width: 1024px) and (max-width: 1500px) {
  .hero-flower {
    height: auto;
    left: -76px;
    top: 36px;
    width: clamp(238px, 18.5vw, 292px);
  }

  .planner-copy {
    margin-left: clamp(220px, 17vw, 258px);
  }

  .board-heading h2 {
    font-size: 1.28rem;
  }

  .week-strip {
    gap: 6px;
  }

  .week-strip article {
    min-height: 66px;
    padding: 7px;
  }
}

@media (min-width: 1024px) and (max-height: 760px) {
  .hero-flower {
    height: auto;
    left: -72px;
    top: 26px;
    width: clamp(224px, 17vw, 266px);
  }

  .planner-copy {
    margin-left: clamp(210px, 16vw, 246px);
  }

  .board-heading {
    padding-bottom: 8px;
  }

  .calendar-tools,
  .week-strip {
    display: none;
  }

  .guide-grid,
  .about-grid,
  .calendar-agenda {
    gap: 8px;
  }
}

@media (max-width: 900px) {
  .calendar-agenda,
  .guide-grid,
  .about-grid,
  .week-strip,
  .business-actions,
  .tier-grid,
  .location-grid {
    grid-template-columns: 1fr;
  }

  .modal-card {
    bottom: 12px;
    left: 12px;
    max-height: calc(100vh - 24px);
    max-width: none;
    padding: 20px;
    right: 12px;
    top: auto;
    transform: none;
    width: auto;
  }

  .modal-layer:not([hidden]) + .toast {
    bottom: auto;
    top: 12px;
  }

  .auth-shell {
    gap: 14px;
    grid-template-columns: 1fr;
  }

  .auth-intro {
    padding: 14px;
  }

  .auth-benefits {
    grid-template-columns: 1fr;
  }

  .favorite-list article {
    grid-template-columns: 64px minmax(0, 1fr);
  }

  .favorite-list article button {
    grid-column: 1 / -1;
  }
}

/* Production responsive correction: keep the original cropped flower from covering mobile text. */
@media (max-width: 900px) {
  .planner-hero {
    min-height: 0;
    overflow: visible;
  }

  .hero-flower {
    height: auto;
    left: -92px;
    opacity: 0.72;
    top: 98px;
    width: 165px;
    z-index: 0;
  }

  .planner-copy {
    margin-left: 0;
    max-width: none;
    padding-top: 44px;
    position: relative;
    z-index: 1;
  }
}

@media (max-width: 480px) {
  .hero-flower {
    left: -112px;
    opacity: 0.62;
    top: 142px;
    width: 150px;
  }
}

/* Mobile design-review pass: phone users need the planner, not a stacked desktop poster. */
@media (max-width: 820px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  body {
    min-width: 0;
  }

  .page-shell {
    display: grid;
    gap: 7px;
    grid-template-rows: auto minmax(0, 1fr);
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  }

  .site-header {
    gap: 6px;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .brand strong {
    font-size: clamp(1.9rem, 8.5vw, 2.35rem);
  }

  .brand em {
    font-size: clamp(1.25rem, 6vw, 1.55rem);
  }

  .brand-mark {
    height: 24px;
    width: 24px;
  }

  .main-nav {
    gap: 14px;
    margin-inline: -2px;
    overflow-x: auto;
    padding: 0 2px 3px;
    scrollbar-width: none;
    scroll-snap-type: x proximity;
  }

  .main-nav::-webkit-scrollbar,
  .header-actions::-webkit-scrollbar,
  .category-grid::-webkit-scrollbar,
  .filter-row::-webkit-scrollbar,
  .active-chip-row::-webkit-scrollbar,
  .promise-rail::-webkit-scrollbar {
    display: none;
  }

  .nav-button {
    flex: 0 0 auto;
    font-size: 0.72rem;
    padding: 3px 2px 5px;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .nav-button::after {
    bottom: -1px;
    height: 2px;
    width: 16px;
  }

  .header-actions {
    display: flex;
    gap: 6px;
    justify-content: flex-start;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 1px 2px;
    scrollbar-width: none;
    width: 100%;
  }

  .header-link {
    flex: 0 0 auto;
    font-size: 0.68rem;
    min-height: 32px;
    min-width: max-content;
    padding: 5px 9px;
    white-space: nowrap;
  }

  .header-link i {
    font-size: 0.95rem;
  }

  #planner {
    display: grid;
    gap: 7px;
    grid-template-rows: minmax(0, 1fr) auto;
    height: 100%;
    min-height: 0;
    overflow: hidden;
  }

  .hero-layout {
    align-items: stretch;
    display: grid;
    gap: 7px;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto minmax(0, 1fr);
    height: 100%;
    margin-top: 0;
    min-height: 0;
    overflow: hidden;
  }

  .planner-hero {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(12, 45, 99, 0.06);
    min-height: 0;
    overflow: hidden;
    padding: 9px;
  }

  .hero-flower,
  .butterfly,
  .today-best {
    display: none;
  }

  .planner-copy {
    margin: 0;
    max-width: none;
    padding: 0;
  }

  h1 {
    font-size: clamp(1.58rem, 7.1vw, 2.05rem);
    line-height: 0.98;
    margin-bottom: 5px;
    max-width: 13ch;
  }

  .planner-copy p {
    font-size: 0.76rem;
    line-height: 1.32;
    margin-bottom: 8px;
    max-width: 35ch;
  }

  .search-panel {
    box-shadow: none;
    grid-template-columns: 38px minmax(0, 1fr) 74px;
    height: 40px;
    max-width: none;
  }

  .search-icon {
    font-size: 1.05rem;
  }

  .search-panel input {
    font-size: 0.78rem;
  }

  .search-panel button {
    border-radius: 0;
    grid-column: auto;
    height: 40px;
    width: auto;
  }

  .category-grid {
    display: grid;
    gap: 7px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 8px 0 0;
    max-width: none;
    overflow: visible;
    padding: 0;
  }

  .category-card {
    align-items: center;
    box-shadow: none;
    display: inline-flex;
    gap: 5px;
    justify-content: center;
    min-height: 34px;
    min-width: 0;
    padding: 6px 7px;
  }

  .category-card:hover,
  .category-card:focus-visible,
  .category-card.is-active {
    box-shadow: none;
    transform: none;
  }

  .category-card i {
    font-size: 1.02rem;
  }

  .category-card span:last-child {
    font-size: 0.66rem;
    line-height: 1.05;
    white-space: nowrap;
  }

  .free-icon {
    border-radius: 4px;
    font-size: 0.52rem;
    height: 18px;
    min-width: 31px;
    padding: 0 4px;
  }

  .filter-row {
    flex-wrap: nowrap;
    gap: 7px;
    margin: 5px -2px 0;
    max-width: none;
    overflow-x: auto;
    padding: 0 2px 2px;
    scrollbar-width: none;
  }

  .filter-pill {
    flex: 0 0 auto;
    font-size: 0.66rem;
    justify-content: center;
    min-height: 31px;
    min-width: max-content;
    padding: 6px 9px;
    white-space: nowrap;
  }

  .weekend-board {
    box-shadow: 0 10px 28px rgba(12, 45, 99, 0.07);
    display: grid;
    gap: 0;
    grid-template-rows: auto minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
    padding: 8px;
  }

  .weekend-topline {
    align-items: center;
    flex-direction: row;
    gap: 8px;
    margin: 0 0 7px;
  }

  .weekend-toggle {
    flex: 1 1 auto;
    font-size: 1.08rem;
    gap: 7px;
    min-width: 0;
  }

  .weekend-toggle span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .weekend-toggle i {
    flex: 0 0 auto;
    font-size: 1.18rem;
  }

  .date-control {
    flex: 0 0 auto;
    gap: 7px;
  }

  .date-control button:first-child,
  .calendar-link {
    font-size: 0.64rem;
  }

  .calendar-link {
    padding-inline: 0;
  }

  .weekend-full-panel,
  .full-calendar-panel,
  .guides-panel,
  .about-panel {
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }

  .calendar-grid {
    display: grid;
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .day-panel {
    min-height: 0;
  }

  .day-panel h2 {
    font-size: 0.68rem;
    padding: 8px 9px;
  }

  .event-list {
    min-height: 0;
  }

  .event-row {
    gap: 8px;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    min-height: 54px;
    padding: 6px 8px;
  }

  .event-row img {
    grid-row: span 2;
    height: 40px;
    width: 48px;
  }

  .event-time {
    font-size: 0.68rem;
    grid-column: 2;
  }

  .event-title {
    grid-column: 2;
  }

  .event-title strong {
    font-size: 0.68rem;
  }

  .event-title span {
    font-size: 0.58rem;
  }

  .price-badge {
    font-size: 0.62rem;
    min-width: 36px;
    padding: 3px 5px;
  }

  .results-mode-panel {
    display: grid;
    gap: 7px;
    grid-template-rows: auto auto auto minmax(0, 1fr);
    min-height: 0;
    overflow: hidden;
  }

  .compact-weekend {
    align-items: center;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 7px 8px;
  }

  .compact-weekend > div:first-child span {
    font-size: 0.58rem;
  }

  .compact-weekend strong {
    font-size: 0.76rem;
  }

  .compact-weekend-list {
    display: none;
  }

  .compact-weekend > button {
    font-size: 0.66rem;
    min-height: 31px;
    padding: 0 9px;
  }

  .workspace-heading {
    align-items: end;
    display: grid;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 6px;
  }

  .workspace-heading p {
    font-size: 0.58rem;
    margin-bottom: 2px;
  }

  .workspace-heading h2 {
    font-size: clamp(1.2rem, 5.8vw, 1.55rem);
    line-height: 1.02;
    margin: 0;
  }

  .workspace-heading span {
    display: none;
  }

  .workspace-heading > strong {
    font-size: 0.64rem;
    padding: 6px 8px;
  }

  .active-chip-row {
    flex-wrap: nowrap;
    gap: 6px;
    min-height: 27px;
    overflow-x: auto;
    padding-bottom: 1px;
    scrollbar-width: none;
  }

  .active-chip-row span {
    flex: 0 0 auto;
    font-size: 0.6rem;
    padding: 5px 8px;
    white-space: nowrap;
  }

  .results-list {
    gap: 8px;
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
  }

  .result-card {
    gap: 9px;
    grid-template-columns: 68px minmax(0, 1fr);
    min-height: 84px;
    padding: 8px;
  }

  .result-card img {
    height: 51px;
    width: 68px;
  }

  .result-copy strong {
    font-size: 0.82rem;
  }

  .result-copy > span,
  .result-copy small {
    font-size: 0.64rem;
  }

  .event-detail {
    gap: 9px;
    grid-template-columns: 70px minmax(0, 1fr);
    margin-top: 7px;
    max-height: 28dvh;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 8px;
  }

  .event-detail > img {
    height: 52px;
    width: 70px;
  }

  .detail-main {
    gap: 6px;
  }

  .detail-heading {
    align-items: start;
    gap: 8px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding-bottom: 5px;
  }

  .detail-heading h3 {
    font-size: 0.82rem;
  }

  .detail-heading p {
    font-size: 0.6rem;
  }

  .detail-actions {
    gap: 6px;
  }

  .icon-button {
    font-size: 1.1rem;
    padding: 2px;
  }

  .detail-tags {
    gap: 5px;
  }

  .detail-tags span {
    font-size: 0.56rem;
    padding: 2px 5px;
  }

  .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .detail-facts div:nth-child(n) {
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    padding: 5px 6px;
  }

  .detail-facts div:nth-child(2n + 1) {
    border-left: 0;
  }

  .detail-facts div:nth-child(1),
  .detail-facts div:nth-child(2) {
    border-top: 0;
  }

  .detail-facts dt {
    font-size: 0.52rem;
  }

  .detail-facts dd {
    font-size: 0.56rem;
  }

  .promise-rail {
    display: flex;
    gap: 0;
    margin: 0;
    min-height: 44px;
    overflow-x: auto;
    padding: 6px 8px;
    scrollbar-width: none;
  }

  .promise-rail article,
  .promise-rail article:nth-child(2) {
    border-left: 0;
    border-top: 0;
    flex: 0 0 auto;
    gap: 7px;
    grid-template-columns: 22px max-content;
    min-height: 31px;
    padding: 0 12px;
  }

  .promise-rail article + article {
    border-left: 1px solid #ead6aa;
  }

  .promise-rail i {
    font-size: 1.18rem;
  }

  .promise-rail h3 {
    font-size: 0.66rem;
    margin: 0;
    white-space: nowrap;
  }

  .promise-rail p {
    display: none;
  }
}

@media (max-width: 820px) and (max-height: 760px) {
  .brand strong {
    font-size: 1.75rem;
  }

  .brand em {
    font-size: 1.14rem;
  }

  .brand-mark {
    height: 21px;
    width: 21px;
  }

  .header-link {
    min-height: 29px;
  }

  h1 {
    font-size: clamp(1.34rem, 6.4vw, 1.68rem);
    max-width: none;
  }

  .planner-copy p {
    display: none;
  }

  .search-panel,
  .search-panel button {
    height: 36px;
  }

  .category-card {
    min-height: 34px;
    padding-block: 6px;
  }

  .filter-pill {
    min-height: 28px;
  }

  .event-detail {
    max-height: 24dvh;
  }

  .promise-rail {
    min-height: 38px;
    padding-block: 4px;
  }
}

/* Mobile compact tuning after screenshot QA. */
@media (max-width: 820px) {
  .site-header {
    gap: 5px;
  }

  .brand strong {
    font-size: clamp(1.72rem, 7.7vw, 2.05rem);
  }

  .brand em {
    font-size: clamp(1.1rem, 5.2vw, 1.36rem);
  }

  .brand-mark {
    height: 21px;
    width: 21px;
  }

  .main-nav {
    gap: 12px;
    padding-bottom: 2px;
  }

  .nav-button {
    font-size: 0.68rem;
  }

  .header-link {
    font-size: 0.65rem;
    min-height: 29px;
    padding: 4px 8px;
  }

  .planner-hero {
    padding: 8px;
  }

  h1 {
    font-size: clamp(1.36rem, 6.2vw, 1.72rem);
    margin-bottom: 7px;
    max-width: none;
  }

  .planner-copy p {
    display: none;
  }

  .search-panel {
    grid-template-columns: 34px minmax(0, 1fr) 70px;
  }

  .search-panel,
  .search-panel button {
    height: 36px;
  }

  .search-panel input {
    font-size: 0.74rem;
  }

  .category-grid {
    margin-top: 7px;
  }

  .category-card {
    min-height: 34px;
    padding: 6px 9px;
  }

  .category-card i {
    font-size: 1.02rem;
  }

  .category-card span:last-child {
    font-size: 0.68rem;
  }

  .free-icon {
    font-size: 0.54rem;
    height: 18px;
    min-width: 32px;
  }

  .filter-row {
    margin-top: 4px;
  }

  .filter-pill {
    font-size: 0.62rem;
    min-height: 28px;
    padding: 5px 8px;
  }

  .weekend-board.is-results:not(.is-detail-open) {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .weekend-board.is-results:not(.is-detail-open) .event-detail {
    display: none;
  }

  .weekend-board.is-results.is-detail-open {
    grid-template-rows: auto minmax(0, 1fr) auto;
  }

  .weekend-board.is-results.is-detail-open .event-detail {
    display: grid;
  }

  .event-detail {
    max-height: 22dvh;
  }
}

/* ==================================================================
   V2 LAYER (rev 2)
   Desktop (>=1024px): the original no-scroll cockpit stays — the whole
   plan fits one screen; the results list scrolls internally.
   Mobile/tablet (<=1023px): a normal scrolling page, bottom tab bar,
   readable sizes. Inline details + routing everywhere.
   ================================================================== */

:focus-visible {
  border-radius: 6px;
  outline: 3px solid var(--coral);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

/* Skip link: only reveal for keyboard focus, not programmatic fallback */
.skip-link:focus {
  top: -5rem;
}

.skip-link:focus-visible {
  top: 1rem;
}

/* ---- Board voice: legible label instead of handwriting ---- */
.weekend-toggle span {
  color: var(--navy);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.weekend-toggle i {
  display: none;
}

.weekend-toggle,
.date-control button,
.calendar-link {
  align-items: center;
  display: inline-flex;
  min-height: 44px;
}

.brand {
  min-height: 44px;
}

.result-card .detail-cue {
  color: var(--coral);
  font-weight: 800;
}

.result-card.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
}

/* ---- Inline detail (replaces the docked duplicate card) ---- */
.inline-detail {
  animation: detail-in 0.22s ease-out;
  background: #fffdf7;
  border: 1px solid var(--line-strong);
  border-radius: 0 0 10px 10px;
  border-top: 0;
  display: grid;
  gap: 12px;
  margin: -6px 0 10px;
  padding: 14px 16px 16px;
}

@keyframes detail-in {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.inline-detail-top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.inline-detail .detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.inline-detail .icon-button {
  align-items: center;
  background: white;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px;
}

.inline-detail .icon-button.is-saved {
  background: var(--coral);
  border-color: var(--coral);
  color: white;
}

.official-source {
  align-items: center;
  background: #eef7ff;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  color: var(--ink);
  display: inline-flex;
  font-size: 0.8rem;
  font-weight: 800;
  gap: 6px;
  min-height: 40px;
  padding: 6px 12px;
  text-decoration: none;
}

.official-source:hover,
.official-source:focus-visible {
  border-color: #8ebcff;
  box-shadow: 0 8px 18px rgba(12, 45, 99, 0.08);
  color: var(--blue);
}

.inline-detail .detail-facts {
  display: grid;
  gap: 12px 18px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.inline-detail .detail-facts dt {
  align-items: center;
  color: #53698c;
  display: flex;
  font-size: 0.68rem;
  font-weight: 800;
  gap: 6px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.inline-detail .detail-facts dd {
  display: grid;
  gap: 3px;
  margin: 4px 0 0;
}

.inline-detail .fact-primary {
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.18;
}

.inline-detail .fact-note {
  color: #5f6f8d;
  font-size: 0.78rem;
  font-weight: 650;
  line-height: 1.25;
}

/* ---- SSR content block (crawlers + no-JS; removed on JS boot) ---- */
.ssr-content {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-top: 22px;
  padding: 18px 20px;
}

.ssr-content h2 {
  font-size: 1.3rem;
  margin: 0 0 10px;
}

.ssr-content ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.ssr-content li,
.ssr-content dd,
.ssr-content p {
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.5;
}

.ssr-content dl {
  display: grid;
  gap: 8px 16px;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.ssr-content dt {
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.ssr-content dd {
  margin: 2px 0 0;
}

/* ---- Footer ---- */
.site-footer {
  border-top: 1px solid var(--line);
  display: grid;
  gap: 14px;
  margin-top: 30px;
  padding: 26px 4px 30px;
}

.footer-brand strong {
  color: var(--navy);
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.3rem;
}

.footer-brand p {
  color: rgba(23, 43, 77, 0.75);
  font-size: 0.9rem;
  line-height: 1.5;
  margin: 6px 0 0;
  max-width: 52ch;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
}

.footer-links a {
  align-items: center;
  color: var(--navy);
  display: inline-flex;
  font-size: 0.9rem;
  font-weight: 700;
  min-height: 44px;
  text-decoration: none;
}

.footer-links a:hover {
  color: var(--coral);
  text-decoration: underline;
}

.footer-note {
  color: rgba(23, 43, 77, 0.55);
  font-size: 0.8rem;
  margin: 0;
}

/* ==================================================================
   DESKTOP COCKPIT (>=1024px): keep the original no-scroll dashboard.
   Only adjustments for the removed banner/dock + scroll affordance.
   ================================================================== */
@media (min-width: 1024px) {
  /* The banner row is gone: heading, chips, then the list gets the rest. */
  .results-mode-panel {
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  /* Internal scroll with a visible cue that more content exists. */
  .results-list {
    max-height: none;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-gutter: stable;
  }

  .results-list::-webkit-scrollbar {
    width: 8px;
  }

  .results-list::-webkit-scrollbar-thumb {
    background: rgba(12, 45, 99, 0.18);
    border-radius: 999px;
  }

  .results-mode-panel::after {
    background: linear-gradient(180deg, transparent, rgba(247, 251, 255, 0.95));
    border-radius: 0 0 8px 8px;
    content: "";
    height: 26px;
    margin-top: -26px;
    pointer-events: none;
    position: relative;
    z-index: 2;
  }

  .inline-detail .detail-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  /* Cockpit fits one screen: footer + SSR block live on scrolling views. */
  .site-footer,
  .ssr-content {
    display: none;
  }

  .nav-button {
    align-items: center;
    display: inline-flex;
    gap: 6px;
    min-height: 44px;
  }

  .nav-ico {
    display: none;
  }
}

/* ==================================================================
   MOBILE + TABLET (<=1023px): a normal page that scrolls.
   A phone cannot fit this content in one screen; hiding it (the old
   frozen shell) made everything below the fold unreachable.
   ================================================================== */
@media (max-width: 1023px) {
  html,
  body {
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
  }

  body {
    min-width: 0;
  }

  .page-shell {
    display: block;
    height: auto;
    min-height: 100svh;
    overflow: visible;
    padding: 10px 14px calc(84px + env(safe-area-inset-bottom));
  }

  #planner,
  .hero-layout,
  .planner-hero {
    display: block;
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .results-list,
  .calendar-agenda,
  .event-list {
    max-height: none;
    overflow: visible;
  }

  .site-header {
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
  }

  .brand strong {
    font-size: 2rem;
  }

  .brand em {
    font-size: 1.35rem;
  }

  /* Primary nav -> fixed bottom tab bar (thumb zone) */
  .main-nav {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.97);
    border-top: 1px solid var(--line-strong);
    bottom: 0;
    box-shadow: 0 -8px 24px rgba(12, 45, 99, 0.1);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    margin: 0;
    overflow: visible;
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 30;
  }

  .nav-button {
    align-items: center;
    display: flex;
    flex-direction: column;
    font-size: 0.72rem;
    font-weight: 700;
    gap: 3px;
    justify-content: center;
    min-height: 52px;
    padding: 6px 2px;
    white-space: nowrap;
  }

  .nav-ico {
    display: block;
    font-size: 1.35rem;
    line-height: 1;
  }

  .nav-button::after {
    display: none;
  }

  .nav-button.is-active {
    color: var(--coral);
  }

  .header-actions {
    display: grid;
    gap: 8px;
    grid-template-columns: auto 1fr 1fr;
    overflow: visible;
    width: 100%;
  }

  .header-actions .divider {
    display: none;
  }

  .header-link {
    font-size: 0.82rem;
    justify-content: center;
    min-height: 44px;
    padding: 8px 12px;
  }

  .hero-flower,
  .butterfly {
    display: none;
  }

  .planner-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 6px 0 0;
  }

  .today-best {
    display: block;
    margin-top: 14px;
  }

  h1 {
    font-size: clamp(2rem, 8.5vw, 2.5rem);
    line-height: 1.02;
    margin-bottom: 8px;
    max-width: none;
  }

  .planner-copy p {
    display: block;
    font-size: 1rem;
    line-height: 1.45;
    margin-bottom: 14px;
    max-width: none;
  }

  .search-panel,
  .search-panel button {
    height: 48px;
  }

  .search-panel {
    grid-template-columns: 44px minmax(0, 1fr) 88px;
  }

  .search-panel input {
    font-size: 1rem;
  }

  .category-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 12px;
    max-width: none;
  }

  .category-card {
    font-size: 0.82rem;
    min-height: 60px;
    padding: 8px 6px;
  }

  .category-card i {
    font-size: 1.3rem;
  }

  .category-card span:last-child {
    font-size: 0.78rem;
  }

  .filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    max-width: none;
    overflow: visible;
  }

  .filter-pill {
    font-size: 0.82rem;
    min-height: 40px;
    padding: 8px 14px;
  }

  .weekend-board {
    display: block;
    height: auto;
    margin-top: 14px;
    min-height: 0;
    overflow: visible;
    padding: 14px 14px 16px;
  }

  .results-mode-panel {
    display: grid;
    overflow: visible;
  }

  .result-card {
    min-height: 76px;
  }

  .inline-detail .detail-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promise-rail {
    display: grid;
    gap: 12px;
    grid-template-columns: minmax(0, 1fr);
    margin-top: 20px;
    min-height: 0;
    overflow: visible;
    padding: 16px;
    position: static;
  }

  .promise-rail article {
    min-height: 0;
  }

  .site-footer {
    padding-bottom: 10px;
  }
}

@media (max-width: 480px) {
  .category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .header-actions .header-link:first-child {
    grid-column: 1 / -1;
  }
}

/* ---- July 2 bugfix layer: readable outing rows + compact parent facts ---- */
.event-row {
  gap: 10px;
  grid-template-columns: 60px minmax(82px, 92px) minmax(0, 1fr) auto;
}

.event-time {
  line-height: 1.12;
  min-width: 0;
  white-space: normal;
}

.event-title {
  min-width: 0;
}

.event-title strong,
.event-title span {
  overflow-wrap: anywhere;
}

.inline-detail {
  animation: none;
  gap: 10px;
}

.inline-detail .detail-facts {
  gap: 10px 14px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.inline-detail .detail-facts div {
  padding-left: 10px;
}

.inline-detail .detail-facts dt {
  color: #5c6f90;
  font-size: 0.62rem;
  letter-spacing: 0.04em;
  margin-bottom: 3px;
}

.inline-detail .detail-facts dd {
  gap: 2px;
  margin-top: 0;
}

.inline-detail .fact-primary {
  color: var(--ink);
  font-size: 0.84rem;
  font-weight: 760;
  line-height: 1.22;
}

.inline-detail .fact-note {
  color: #61708d;
  font-size: 0.72rem;
  font-weight: 600;
  line-height: 1.24;
}

.today-best-list [data-today-pick] {
  cursor: pointer;
}

.weekend-board.is-detail-open .results-mode-panel::after {
  display: none;
}

@media (max-width: 1180px) and (min-width: 821px) {
  .event-row {
    grid-template-columns: 54px minmax(76px, 84px) minmax(0, 1fr) auto;
    gap: 8px;
  }

  .event-row img {
    height: 42px;
    width: 54px;
  }

  .event-time {
    font-size: 0.7rem;
  }
}

@media (max-width: 820px) {
  .event-row {
    align-items: center;
    grid-template-columns: 48px minmax(0, 1fr) auto;
  }

  .event-row img {
    grid-row: 1 / span 2;
  }

  .event-time,
  .event-title {
    grid-column: 2;
  }

  .event-time {
    font-size: 0.68rem;
  }
}

@media (max-width: 560px) {
  .inline-detail .detail-facts {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---- Production hardening: viewport fit, route density, scan metadata ---- */
.result-copy,
.result-copy strong,
.result-copy > span,
.result-copy small {
  min-width: 0;
  overflow-wrap: anywhere;
}

.result-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 5px 7px;
  grid-column: 2;
  min-width: 0;
}

.result-meta > span {
  min-width: 0;
}

.result-meta .price-badge,
.result-card .detail-cue {
  flex: 0 0 auto;
}

.result-meta > span:not(.price-badge):not(.detail-cue) {
  color: var(--muted);
  font-size: 0.66rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.result-card .detail-cue {
  font-size: 0.66rem;
  line-height: 1.2;
  white-space: nowrap;
}

@media (min-width: 1024px) {
  .result-meta {
    margin-top: 1px;
  }
}

@media (min-width: 1024px) and (max-height: 790px) {
  html,
  body {
    height: 100%;
    overflow: hidden;
  }

  .page-shell {
    height: 100dvh;
    overflow: hidden;
    padding-bottom: 8px;
    padding-top: 10px;
  }

  #planner {
    gap: 8px;
    grid-template-rows: minmax(0, 1fr) auto;
    min-height: 0;
    overflow: hidden;
  }

  .hero-layout,
  .planner-hero,
  .weekend-board {
    min-height: 0;
    overflow: hidden;
  }

  .planner-copy p {
    font-size: 0.84rem;
    line-height: 1.32;
    margin-bottom: 9px;
  }

  .category-grid {
    gap: 8px;
    margin-top: 10px;
  }

  .category-card {
    min-height: 58px;
    padding: 8px 6px;
  }

  .filter-row {
    margin-top: 8px;
  }

  .filter-pill {
    min-height: 28px;
    padding: 5px 7px;
  }

  .today-best {
    display: none;
  }

  .promise-rail {
    flex-shrink: 0;
    margin-top: 0;
    min-height: 52px;
    padding: 8px 12px;
  }

  .promise-rail article {
    gap: 10px;
    min-height: 34px;
    padding: 0 12px;
  }

  .promise-rail i {
    font-size: 1.6rem;
  }

  .promise-rail h3 {
    font-size: 0.74rem;
    margin: 0;
  }

  .promise-rail p {
    display: none;
  }
}

@media (max-width: 1023px) {
  #planner[data-surface="results"] .planner-hero {
    padding-top: 0;
  }

  #planner[data-surface="results"] h1 {
    font-size: clamp(1.55rem, 6.2vw, 2rem);
    line-height: 1.03;
    margin-bottom: 6px;
  }

  #planner[data-surface="results"] .planner-copy p {
    display: none;
  }

  #planner[data-surface="results"] .today-best {
    display: none;
  }

  #planner[data-surface="results"] .category-grid {
    display: flex;
    gap: 7px;
    margin-top: 9px;
    overflow-x: auto;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  #planner[data-surface="results"] .category-grid::-webkit-scrollbar {
    display: none;
  }

  #planner[data-surface="results"] .category-card {
    flex: 0 0 auto;
    min-height: 42px;
    min-width: 118px;
    padding: 7px 9px;
  }

  #planner[data-surface="results"] .category-card span:last-child {
    line-height: 1.1;
    white-space: normal;
  }

  .result-card {
    align-items: start;
  }

  .result-meta {
    gap: 5px 6px;
  }
}

@media (max-width: 480px) {
  .search-panel {
    grid-template-columns: 36px minmax(0, 1fr) 72px;
  }

  .search-panel input {
    font-size: 0.82rem;
    min-width: 0;
    padding-right: 4px;
    text-overflow: ellipsis;
  }

  .search-panel button {
    font-size: 0.78rem;
    min-width: 0;
    padding-inline: 4px;
  }

  .result-card {
    gap: 8px;
    grid-template-columns: 62px minmax(0, 1fr);
    padding: 8px;
  }

  .result-card img {
    height: 48px;
    width: 62px;
  }

  .result-copy strong {
    font-size: 0.8rem;
    line-height: 1.16;
  }

  .result-copy > span,
  .result-copy small {
    font-size: 0.64rem;
  }

  .result-meta {
    gap: 4px 5px;
  }

  .result-meta > span:not(.price-badge):not(.detail-cue),
  .result-card .detail-cue {
    font-size: 0.62rem;
  }
}
