:root {
  color-scheme: light;
  --paper: #f7f3ea;
  --paper-2: #eee7da;
  --panel: #fffdf8;
  --ink: #181614;
  --muted: #716b62;
  --line: rgba(28, 25, 22, 0.14);
  --charcoal: #20262b;
  --jade: #17675d;
  --sky: #3d79a8;
  --sakura: #c84f68;
  --amber: #d1932f;
  --violet: #785b9f;
  --shadow: 0 22px 56px rgba(25, 22, 18, 0.16);
  --soft-shadow: 0 10px 28px rgba(25, 22, 18, 0.09);
  --pointer-x: 50%;
  --pointer-y: 45%;
  font-family: "Noto Sans TC", "Microsoft JhengHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(90deg, rgba(32, 38, 43, 0.05) 1px, transparent 1px),
    linear-gradient(180deg, rgba(32, 38, 43, 0.04) 1px, transparent 1px),
    linear-gradient(135deg, #fbf6eb 0%, #f3efe7 46%, #eef3f1 100%);
  background-size: 42px 42px, 42px 42px, auto;
}

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

button {
  cursor: pointer;
}

.hero {
  position: relative;
  min-height: 88vh;
  overflow: hidden;
  color: #fff;
  isolation: isolate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  z-index: 2;
  height: 150px;
  background: linear-gradient(180deg, transparent, var(--paper));
  pointer-events: none;
}

.hero-media,
.hero-image,
.hero-overlay {
  position: absolute;
  inset: 0;
}

.hero-media {
  display: block;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.03);
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.hero-overlay {
  background:
    radial-gradient(circle at var(--pointer-x) var(--pointer-y), rgba(255, 213, 120, 0.2), transparent 25%),
    linear-gradient(105deg, rgba(24, 22, 20, 0.9) 0%, rgba(24, 22, 20, 0.68) 42%, rgba(23, 103, 93, 0.24) 73%, rgba(24, 22, 20, 0.34) 100%),
    linear-gradient(180deg, rgba(24, 22, 20, 0.08), rgba(24, 22, 20, 0.5));
}

.hero-sheen {
  position: absolute;
  inset: -18%;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(115deg, transparent 32%, rgba(255, 255, 255, 0.12) 44%, transparent 56%);
  transform: translateX(-42%);
  animation: sheenSweep 8s ease-in-out infinite;
}

.leaf-field {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
}

.leaf-field span {
  position: absolute;
  top: -42px;
  width: 18px;
  height: 11px;
  border-radius: 70% 0 70% 0;
  background: linear-gradient(135deg, #d56a42, #9d3147);
  opacity: 0.72;
  filter: drop-shadow(0 6px 10px rgba(0, 0, 0, 0.22));
  animation: leafFall 12s linear infinite;
}

.leaf-field span:nth-child(1) { left: 14%; animation-delay: 0s; animation-duration: 13s; }
.leaf-field span:nth-child(2) { left: 31%; animation-delay: -6s; animation-duration: 16s; }
.leaf-field span:nth-child(3) { left: 48%; animation-delay: -2s; animation-duration: 14s; }
.leaf-field span:nth-child(4) { left: 66%; animation-delay: -9s; animation-duration: 18s; }
.leaf-field span:nth-child(5) { left: 79%; animation-delay: -4s; animation-duration: 15s; }
.leaf-field span:nth-child(6) { left: 92%; animation-delay: -11s; animation-duration: 17s; }

.topbar {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  animation: fadeDown 700ms ease both;
}

.brand,
.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.brand,
.top-actions a {
  color: #fff;
  text-decoration: none;
}

.brand {
  font-weight: 950;
}

.topbar .brand {
  visibility: hidden;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(14px);
  transition: transform 180ms ease, background 180ms ease;
}

.brand:hover .brand-mark {
  background: rgba(255, 255, 255, 0.24);
  transform: rotate(-5deg) scale(1.04);
}

.top-actions a {
  color: rgba(255, 255, 255, 0.84);
  font-weight: 850;
}

.hero-toggle {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.15);
  overflow: hidden;
  backdrop-filter: blur(12px);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.hero-toggle:hover {
  border-color: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.18);
  transform: translateY(-1px);
}

.hero-toggle img {
  width: 112%;
  height: 112%;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

.hero-content {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  width: min(1180px, calc(100% - 32px));
  min-height: calc(88vh - 86px);
  margin: 0 auto;
  padding: 42px 0 120px;
}

.hero-content > * {
  animation: riseIn 760ms ease both;
}

.hero-content > *:nth-child(2) { animation-delay: 90ms; }
.hero-content > *:nth-child(3) { animation-delay: 180ms; }
.hero-content > *:nth-child(4) { animation-delay: 280ms; }

.eyebrow,
.section-kicker,
.selected-date {
  margin: 0 0 10px;
  color: var(--amber);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2,
h3 {
  letter-spacing: 0;
}

h1 {
  max-width: 850px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.5rem);
  line-height: 0.98;
  text-wrap: balance;
}

.hero-copy {
  max-width: 620px;
  margin-bottom: 30px;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.6vw, 1.22rem);
  line-height: 1.85;
}

.hero-metrics {
  display: none;
  flex-wrap: wrap;
  gap: 10px;
}

.hero-metrics span {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  min-height: 46px;
  padding: 0 15px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
  backdrop-filter: blur(12px);
  color: rgba(255, 255, 255, 0.86);
  font-weight: 850;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.hero-metrics span:hover {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.hero-metrics strong {
  color: #fff;
  font-size: 1.26rem;
}

.page-shell {
  position: relative;
  z-index: 4;
  width: min(1180px, calc(100% - 32px));
  margin: -72px auto 64px;
}

.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: 30px;
  z-index: 4;
  display: grid;
  place-items: center;
  width: 32px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.09);
  transform: translateX(-50%);
}

.scroll-cue span {
  width: 4px;
  height: 9px;
  border-radius: 999px;
  background: #fff;
  animation: scrollDot 1.7s ease-in-out infinite;
}

.overview {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 251, 244, 0.9)),
    var(--panel);
  box-shadow: var(--shadow);
  transform: translateY(16px);
  opacity: 0;
}

.overview::before {
  content: "";
  width: 76px;
  height: 4px;
  align-self: stretch;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--sakura), var(--amber), var(--jade));
}

.overview.is-visible {
  animation: riseIn 620ms ease both;
}

.overview h2 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.overview p {
  max-width: 480px;
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.planner {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.day-nav {
  display: grid;
  gap: 10px;
  align-self: start;
  position: sticky;
  top: 16px;
}

.day-tab {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  min-height: 66px;
  padding: 12px 12px 12px 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 253, 248, 0.82);
  box-shadow: var(--soft-shadow);
  overflow: hidden;
  transition: transform 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.day-tab::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: var(--sky);
  opacity: 0;
  transition: opacity 160ms ease;
}

.day-tab:nth-child(2)::before { background: var(--jade); }
.day-tab:nth-child(3)::before { background: var(--sakura); }
.day-tab:nth-child(4)::before { background: var(--amber); }
.day-tab:nth-child(5)::before { background: var(--violet); }
.day-tab:nth-child(6)::before { background: var(--charcoal); }

.day-tab:hover {
  border-color: rgba(23, 103, 93, 0.28);
  transform: translateX(3px);
}

.day-tab span {
  font-weight: 950;
}

.day-tab strong {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  color: var(--jade);
  background: rgba(23, 103, 93, 0.1);
}

.day-tab.is-active {
  color: #fff;
  border-color: transparent;
  background: var(--charcoal);
  box-shadow: 0 18px 42px rgba(32, 38, 43, 0.24);
  transform: translateX(5px);
}

.day-tab.is-active::before {
  opacity: 1;
}

.day-tab.is-active strong {
  color: var(--charcoal);
  background: #fff;
}

.content-panel {
  position: relative;
  min-height: 640px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(250, 246, 237, 0.94)),
    var(--panel);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.content-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--sky), var(--jade), var(--amber), var(--sakura));
}

.day-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 30px;
  border-bottom: 1px solid var(--line);
  background:
    linear-gradient(90deg, rgba(61, 121, 168, 0.11), transparent 44%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.75), transparent);
}

.day-summary h2 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2.45rem);
}

.summary-stats {
  flex: 0 0 auto;
  padding: 10px 12px;
  border: 1px solid rgba(23, 103, 93, 0.16);
  border-radius: 8px;
  color: var(--jade);
  background: rgba(23, 103, 93, 0.08);
  font-weight: 950;
}

.timeline {
  position: relative;
  display: grid;
  gap: 0;
  padding: 18px 30px 34px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 34px;
  bottom: 38px;
  left: 128px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(var(--sky), var(--jade), var(--amber), var(--sakura));
  opacity: 0.52;
  transform-origin: top;
  animation: timelineGrow 540ms ease both;
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 82px 30px minmax(0, 1fr);
  gap: 0 14px;
  padding: 14px 0;
  opacity: 0;
  transform: translateY(14px);
  animation: itemIn 460ms ease both;
  animation-delay: calc(var(--item-index, 0) * 80ms);
}

.timeline-item:nth-child(3n + 1) .entry {
  --card-accent: var(--sakura);
  --card-tint: rgba(200, 79, 104, 0.1);
}

.timeline-item:nth-child(3n + 2) .entry {
  --card-accent: var(--sky);
  --card-tint: rgba(61, 121, 168, 0.1);
}

.timeline-item:nth-child(3n + 3) .entry {
  --card-accent: var(--amber);
  --card-tint: rgba(209, 147, 47, 0.12);
}

.time {
  padding-top: 8px;
  color: var(--charcoal);
  font-weight: 950;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.time span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 750;
}

.pin {
  z-index: 1;
  width: 19px;
  height: 19px;
  margin: 11px auto 0;
  border: 4px solid var(--panel);
  border-radius: 50%;
  background: var(--sakura);
  box-shadow: 0 0 0 1px rgba(200, 79, 104, 0.34);
  animation: pinPulse 2.6s ease-in-out infinite;
  animation-delay: calc(var(--item-index, 0) * 180ms);
}

.entry {
  position: relative;
  min-width: 0;
  padding: 18px 58px 18px 18px;
  border: 1px solid rgba(28, 25, 22, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 16%, var(--card-tint, rgba(200, 79, 104, 0.1)) 0 34px, transparent 35px),
    radial-gradient(circle at 8% 100%, rgba(23, 103, 93, 0.08) 0 42px, transparent 43px),
    linear-gradient(135deg, #fff 0%, #fffdf8 58%, #fff7fb 100%);
  box-shadow: 0 10px 24px rgba(24, 22, 20, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  transform-origin: center;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.entry::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  background: linear-gradient(180deg, var(--card-accent, var(--jade)), var(--jade));
}

.entry::after {
  content: "";
  position: absolute;
  top: 13px;
  right: 52px;
  width: 58px;
  height: 26px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.95) 0 3px, transparent 4px) 0 4px / 18px 18px,
    radial-gradient(circle, var(--card-tint, rgba(200, 79, 104, 0.14)) 0 4px, transparent 5px) 10px 0 / 22px 22px;
  opacity: 0.9;
  pointer-events: none;
  transition: transform 180ms ease, opacity 180ms ease;
}

.entry:hover {
  border-color: color-mix(in srgb, var(--card-accent, var(--jade)) 35%, transparent);
  box-shadow: 0 18px 38px rgba(24, 22, 20, 0.12), 0 8px 0 rgba(200, 79, 104, 0.06);
  transform: translateY(-4px) rotate(-0.35deg);
  animation: cardFloat 900ms ease-in-out infinite alternate;
}

.entry:hover::after {
  opacity: 1;
  transform: translateY(-2px) rotate(8deg);
}

.entry:focus-visible {
  outline: 3px solid rgba(61, 121, 168, 0.24);
  outline-offset: 3px;
}

.entry > * {
  position: relative;
}

.edit-entry-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(23, 103, 93, 0.18);
  border-radius: 8px;
  color: var(--jade);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 8px 18px rgba(24, 22, 20, 0.08);
  font-size: 1rem;
  font-weight: 950;
  transition: transform 170ms ease, box-shadow 170ms ease, background 170ms ease, border-color 170ms ease;
}

.edit-entry-button:hover,
.edit-entry-button:focus-visible {
  border-color: rgba(23, 103, 93, 0.36);
  background: rgba(23, 103, 93, 0.1);
  box-shadow: 0 10px 22px rgba(23, 103, 93, 0.16);
  outline: none;
  transform: rotate(-8deg) scale(1.08);
}

.entry-header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.entry h3 {
  margin: 0;
  font-size: 1.1rem;
  line-height: 1.35;
}

.entry p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.58;
}

.map-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 34px;
  margin-top: 12px;
  padding: 0 11px;
  border: 1px solid rgba(61, 121, 168, 0.22);
  border-radius: 8px;
  color: var(--sky);
  background: rgba(61, 121, 168, 0.09);
  font-size: 0.88rem;
  font-weight: 950;
  text-decoration: none;
}

.map-link:hover {
  border-color: rgba(61, 121, 168, 0.42);
  background: rgba(61, 121, 168, 0.14);
}

.entry-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.secondary-link {
  color: var(--jade);
  border-color: rgba(23, 103, 93, 0.2);
  background: rgba(23, 103, 93, 0.08);
}

.secondary-link:hover {
  border-color: rgba(23, 103, 93, 0.38);
  background: rgba(23, 103, 93, 0.13);
}

.place {
  color: var(--charcoal);
  font-weight: 850;
}

.empty-state {
  padding: 76px 18px;
  color: var(--muted);
  text-align: center;
}

.primary-button,
.secondary-button,
.danger-button,
.ghost-button,
.icon-button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.danger-button:hover,
.ghost-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(20, 17, 14, 0.18);
}

.primary-button {
  padding: 0 18px;
  color: #fff;
  background: var(--jade);
}

.primary-button:hover {
  background: #10544c;
}

.ghost-button {
  padding: 0 16px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
}

.secondary-button {
  padding: 0 16px;
  color: var(--charcoal);
  background: rgba(32, 38, 43, 0.1);
}

.danger-button {
  padding: 0 16px;
  color: #fff;
  background: #a63f4b;
}

.icon-button {
  width: 42px;
  color: var(--muted);
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
}

.trip-dialog {
  width: min(560px, calc(100% - 28px));
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.trip-dialog[open] {
  animation: dialogIn 180ms ease both;
}

.trip-dialog::backdrop {
  background: rgba(20, 23, 25, 0.58);
  backdrop-filter: blur(4px);
}

.note-dialog-shell {
  display: grid;
  gap: 16px;
  padding: 24px;
  background:
    radial-gradient(circle at 100% 0%, rgba(200, 79, 104, 0.12) 0 70px, transparent 72px),
    radial-gradient(circle at 0% 100%, rgba(61, 121, 168, 0.11) 0 88px, transparent 90px);
}

.note-card {
  display: grid;
  gap: 14px;
}

.note-card h2,
.note-card h3,
.note-card p {
  margin: 0;
}

.note-card h2 {
  font-size: 1.35rem;
  line-height: 1.35;
}

.note-content {
  padding: 16px;
  border: 1px solid rgba(28, 25, 22, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 24px rgba(24, 22, 20, 0.05);
}

.note-content p {
  color: var(--muted);
  line-height: 1.7;
  white-space: pre-wrap;
}

form {
  display: grid;
  gap: 16px;
  padding: 24px;
}

.dialog-header,
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.dialog-header h2 {
  margin: 0;
}

.dialog-actions > div {
  display: flex;
  gap: 10px;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--charcoal);
  font-weight: 900;
}

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

input:focus,
select:focus,
textarea:focus {
  outline: 3px solid rgba(61, 121, 168, 0.18);
  border-color: var(--sky);
}

textarea {
  resize: vertical;
}

@media (max-width: 820px) {
  .hero {
    min-height: 760px;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(24, 22, 20, 0.82), rgba(24, 22, 20, 0.55) 58%, rgba(24, 22, 20, 0.78)),
      rgba(24, 22, 20, 0.18);
  }

  .topbar {
    align-items: flex-start;
  }

  .top-actions a {
    display: none;
  }

  .hero-content {
    min-height: 660px;
    padding-bottom: 104px;
  }

  h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .page-shell {
    margin-top: -76px;
  }

  .overview,
  .day-summary {
    align-items: start;
    flex-direction: column;
  }

  .overview::before {
    width: 100%;
    height: 4px;
  }

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

  .day-nav {
    grid-template-columns: repeat(3, 1fr);
    position: static;
  }

  .day-tab {
    min-height: 58px;
    padding: 10px;
  }

  .day-tab:hover,
  .day-tab.is-active {
    transform: none;
  }

  .timeline {
    padding: 12px 18px 26px;
  }

  .timeline::before {
    left: 86px;
  }

  .timeline-item {
    grid-template-columns: 50px 24px minmax(0, 1fr);
    gap: 0 10px;
  }

  .time {
    font-size: 0.88rem;
  }

  .entry-header {
    flex-direction: column;
  }

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

@media (max-width: 460px) {
  .topbar {
    width: min(100% - 24px, 1180px);
  }

  .brand span:last-child {
    display: none;
  }

  .hero-content,
  .page-shell {
    width: min(100% - 24px, 1180px);
  }

  .day-nav {
    grid-template-columns: repeat(2, 1fr);
  }

  .dialog-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .dialog-actions > div {
    justify-content: flex-end;
  }
}

@keyframes heroDrift {
  from { transform: scale(1.03) translate3d(0, 0, 0); }
  to { transform: scale(1.08) translate3d(-1.2%, -0.8%, 0); }
}

@keyframes sheenSweep {
  0%, 38% { transform: translateX(-42%); opacity: 0; }
  52% { opacity: 1; }
  78%, 100% { transform: translateX(42%); opacity: 0; }
}

@keyframes leafFall {
  0% { transform: translate3d(0, -6vh, 0) rotate(0deg); opacity: 0; }
  12% { opacity: 0.76; }
  100% { transform: translate3d(42px, 108vh, 0) rotate(310deg); opacity: 0; }
}

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

@keyframes riseIn {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes scrollDot {
  0% { transform: translateY(-10px); opacity: 0; }
  38% { opacity: 1; }
  100% { transform: translateY(11px); opacity: 0; }
}

@keyframes timelineGrow {
  from { transform: scaleY(0); opacity: 0; }
  to { transform: scaleY(1); opacity: 0.52; }
}

@keyframes itemIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pinPulse {
  0%, 100% { box-shadow: 0 0 0 1px rgba(200, 79, 104, 0.34), 0 0 0 0 rgba(200, 79, 104, 0.26); }
  50% { box-shadow: 0 0 0 1px rgba(200, 79, 104, 0.34), 0 0 0 8px rgba(200, 79, 104, 0); }
}

@keyframes dialogIn {
  from { opacity: 0; transform: translateY(10px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes cardFloat {
  from { transform: translateY(-4px) rotate(-0.35deg); }
  to { transform: translateY(-6px) rotate(0.25deg); }
}

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