﻿:root {
  --red: #e60023;
  --red-dark: #c90017;
  --ink: #1f1a24;
  --muted: #6b5f6f;
  --line: #f2d7dd;
  --soft: #fff7f8;
  --white: #ffffff;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 94% 22%, rgba(228, 3, 28, 0.12) 0 4.5rem, transparent 8.5rem),
    radial-gradient(circle at 89% 77%, rgba(228, 3, 28, 0.1) 0 8rem, transparent 15rem),
    linear-gradient(180deg, #fff 0%, #fffafb 38%, #fff4f5 100%);
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 110px;
  padding: 0 clamp(1.25rem, 6vw, 6.2rem);
  border-bottom: 1px solid #f6dadd;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand img {
  display: block;
  width: clamp(13rem, 18vw, 17.8rem);
  height: auto;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: clamp(1.3rem, 3vw, 3.1rem);
  font-size: clamp(0.95rem, 1.2vw, 1.2rem);
  font-weight: 700;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.main-nav a:hover {
  color: var(--red);
}

.main-nav .nav-cta,
.primary-button {
  border: 0;
  border-radius: 0.75rem;
  color: var(--white);
  background: linear-gradient(180deg, #ef0a24 0%, #d90019 100%);
  box-shadow: 0 0.9rem 1.8rem rgba(228, 3, 28, 0.18);
  cursor: pointer;
}

.main-nav .nav-cta {
  padding: 1rem 1.35rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24rem, 32.8rem);
  align-items: center;
  gap: clamp(3rem, 8vw, 7.5rem);
  width: min(91rem, calc(100% - 2.5rem));
  min-height: calc(100vh - 110px);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 4.7rem) 0 clamp(3rem, 7vw, 6.5rem);
}

.hero-copy {
  max-width: 42.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1.55rem;
  padding: 0.6rem 1.08rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--red);
  background: rgba(255, 255, 255, 0.7);
  font-size: 1rem;
  font-weight: 800;
}

.pill span {
  font-size: 1.3rem;
  line-height: 1;
}

h1,
h2,
.days-number,
.days-label {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(4.2rem, 6.2vw, 6.45rem);
  line-height: 0.99;
}

h1 span,
h2 span,
.days-number {
  color: var(--red);
}

.lead {
  margin: 1.55rem 0 1.9rem;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.55vw, 1.44rem);
  line-height: 1.55;
}

.date-card {
  width: min(100%, 42.4rem);
  padding: 1.45rem 1.55rem 1.6rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: 0 1.3rem 3rem rgba(106, 30, 42, 0.05);
}

.date-card label {
  display: block;
  margin-bottom: 0.75rem;
  font-size: 1.02rem;
  font-weight: 800;
}

.date-actions {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(13.5rem, 15.4rem);
  gap: 1.7rem;
  align-items: stretch;
}

.date-field {
  position: relative;
  min-width: 0;
}

.date-picker {
  display: grid;
  grid-template-columns: 1.55rem 1fr 1px 1.55rem;
  align-items: center;
  gap: 1rem;
  width: 100%;
  min-height: 4.75rem;
  padding: 0 1.1rem;
  border: 1px solid #f1dfe2;
  border-radius: 0.82rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-size: 1.45rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

.date-picker[aria-expanded="true"] {
  border-color: var(--line);
  box-shadow: 0 0 0 3px rgba(230, 0, 35, 0.06);
}

.date-picker.is-nudged {
  animation: dateNudge 1.45s ease-in-out 2;
}

.date-picker.is-empty .date-value {
  color: var(--muted);
}

.date-picker svg {
  width: 1.45rem;
  height: 1.45rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.date-picker .divider {
  display: block;
  width: 1px;
  height: 2.2rem;
  background: #f1dfe2;
}

.date-picker .chevron {
  stroke: var(--ink);
}

@keyframes dateNudge {
  0%,
  100% {
    border-color: #f1dfe2;
    box-shadow: 0 0 0 0 rgba(230, 0, 35, 0);
    transform: translateY(0);
  }

  38% {
    border-color: var(--red);
    box-shadow: 0 0 0 0.42rem rgba(230, 0, 35, 0.1), 0 0.9rem 1.9rem rgba(230, 0, 35, 0.12);
    transform: translateY(-2px);
  }

  70% {
    border-color: var(--line);
    box-shadow: 0 0 0 0.22rem rgba(230, 0, 35, 0.05);
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .date-picker.is-nudged {
    animation: none;
    border-color: var(--red);
    box-shadow: 0 0 0 0.3rem rgba(230, 0, 35, 0.08);
  }
}

.date-popover {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 1000;
  width: min(40rem, calc(100vw - 2rem));
  border: 1px solid var(--line);
  border-radius: 1.75rem;
  color: var(--ink);
  background: var(--white);
  box-shadow: 0 1.5rem 5rem rgba(31, 26, 36, 0.1);
  overflow: auto;
}

.date-popover[hidden] {
  display: none;
}

.calendar-header {
  display: grid;
  grid-template-columns: 3rem minmax(12rem, 1fr) minmax(9.5rem, 0.94fr) 3rem;
  align-items: center;
  gap: 1rem;
  padding: 2rem 2.35rem 1.7rem;
}

.calendar-select {
  position: relative;
  display: block;
  min-width: 0;
  min-height: 4.35rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: var(--white);
  color: var(--ink);
  overflow: hidden;
}

.calendar-year-select {
  display: block;
}

.calendar-select select {
  display: block;
  width: 100%;
  height: 4.35rem;
  min-width: 0;
  padding: 0 3.1rem 0 3.55rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.7rem;
  font-weight: 800;
  line-height: 1;
  appearance: none;
  cursor: pointer;
}

.calendar-year-select select {
  padding-left: 1.35rem;
}

.calendar-select svg {
  position: absolute;
  top: 50%;
  left: 1.15rem;
  z-index: 1;
  width: 1.65rem;
  height: 1.65rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
  pointer-events: none;
  transform: translateY(-50%);
}

.calendar-select .select-arrow {
  right: 1.1rem;
  left: auto;
  width: 1.55rem;
  height: 1.55rem;
  stroke: var(--ink);
  stroke-width: 3;
}

.calendar-nav {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  cursor: pointer;
}

.calendar-nav:hover {
  background: #fff2f4;
  color: var(--red);
}

.calendar-nav svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  padding: 0 2.25rem;
}

.calendar-weekdays {
  margin-bottom: 1.3rem;
}

.calendar-weekdays span {
  color: var(--ink);
  font-size: 1.2rem;
  font-weight: 800;
  text-align: center;
}

.calendar-weekdays span:last-child {
  color: var(--red);
}

.calendar-grid {
  row-gap: 0.85rem;
  padding-bottom: 1.75rem;
}

.calendar-day {
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  margin: 0 auto;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.42rem;
  font-weight: 700;
  cursor: pointer;
}

.calendar-day:hover {
  background: #fff0f2;
}

.calendar-day.is-weekend {
  color: var(--red);
}

.calendar-day.is-outside {
  color: #9b929e;
}

.calendar-day.is-today {
  box-shadow: inset 0 0 0 2px rgba(230, 0, 35, 0.28);
}

.calendar-day.is-selected {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 0.75rem 1.65rem rgba(230, 0, 35, 0.22);
}

.calendar-day.is-selected:hover {
  background: var(--red);
}

.calendar-footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.7rem 2.35rem 1.9rem;
  border-top: 1px solid #fff0f2;
}

.calendar-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  padding: 0 1.25rem;
  border: 1px solid #f6dce1;
  border-radius: 0.82rem;
  color: var(--red);
  background: #fff9fa;
  font: inherit;
  font-size: 1.38rem;
  font-weight: 600;
  cursor: pointer;
}

.calendar-action:hover {
  color: var(--red-dark);
}

.calendar-today {
  background: #fff9fa;
}

.calendar-done {
  justify-self: end;
  min-width: 9.4rem;
  color: var(--white);
  border-color: transparent;
  background: linear-gradient(180deg, #ef0a24 0%, #d90019 100%);
  box-shadow: 0 0.85rem 1.8rem rgba(230, 0, 35, 0.18);
}

.calendar-done:hover {
  color: var(--white);
  background: linear-gradient(180deg, #f51b32 0%, var(--red-dark) 100%);
}

.calendar-action svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.primary-button {
  min-height: 4.75rem;
  padding: 0 1.2rem;
  font: inherit;
  font-size: 1.2rem;
  font-weight: 800;
}

.primary-button:hover,
.main-nav .nav-cta:hover {
  color: var(--white);
  background: linear-gradient(180deg, #f51b32 0%, var(--red-dark) 100%);
}

.note {
  display: flex;
  align-items: center;
  gap: 1.05rem;
  margin: 2rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.note span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  font-weight: 900;
}

.counter-preview {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 40.6rem;
  padding: 3.35rem 2rem 3.15rem;
  border: 1px solid var(--line);
  border-radius: 1.6rem;
  background:
    radial-gradient(circle at 50% 54%, rgba(228, 3, 28, 0.13) 0 4.4rem, transparent 10.5rem),
    rgba(255, 255, 255, 0.74);
  box-shadow: 0 2rem 4rem rgba(135, 28, 46, 0.06);
  overflow: hidden;
}

.counter-preview h2 {
  margin: 0 0 2rem;
  font-size: clamp(2.4rem, 3.3vw, 3.25rem);
  line-height: 1;
  text-align: center;
}

.counter-preview h2 span {
  font-family: inherit;
  font-size: 0.82em;
}

.photo-frame {
  display: grid;
  place-items: center;
  width: 15.5rem;
  height: 15.5rem;
  padding: 0.8rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fff4f5);
  box-shadow: 0 0 0 0.55rem rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.photo-frame img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 50%;
}

.together {
  margin: 2.1rem 0 0.25rem;
  color: var(--muted);
  font-size: 1.42rem;
  font-weight: 500;
}

.days-number {
  margin: 0;
  font-size: clamp(4.6rem, 6.2vw, 5.4rem);
  line-height: 0.9;
}

.days-label {
  margin: -0.15rem 0 0;
  font-size: clamp(2.8rem, 4.2vw, 3.65rem);
  line-height: 0.95;
}

.floating-heart {
  position: absolute;
  color: #f7b5ba;
  font-size: 1.95rem;
  line-height: 1;
  opacity: 0.8;
}

.heart-one {
  top: 12rem;
  left: 4.1rem;
  transform: rotate(-18deg);
}

.heart-two {
  top: 11.1rem;
  right: 4.9rem;
  transform: rotate(15deg);
}

.heart-three {
  top: 20.5rem;
  left: 5.4rem;
  transform: rotate(-8deg);
}

.heart-four {
  top: 20.7rem;
  right: 4.6rem;
  transform: rotate(12deg);
}

.home-seo-section,
.home-final-cta,
.home-footer {
  width: min(78rem, calc(100% - 3rem));
  margin-right: auto;
  margin-left: auto;
}

.home-seo-section {
  padding: clamp(2.6rem, 6vw, 4.8rem) 0 0;
}

.home-section-heading {
  max-width: 54rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.home-section-heading h2,
.home-faq-copy h2,
.home-final-cta h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.45rem);
  line-height: 1.05;
}

.home-section-heading p,
.home-faq-copy p,
.home-final-cta p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
  line-height: 1.55;
}

.home-info-grid,
.home-feature-grid,
.home-use-grid {
  display: grid;
  gap: 1.1rem;
}

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

.home-feature-grid,
.home-use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.home-info-card,
.home-feature-card,
.home-use-grid article,
.home-faq-list,
.home-final-cta {
  border: 1px solid #efe5e8;
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 1.1rem 2.4rem rgba(31, 26, 36, 0.035);
}

.home-info-card,
.home-feature-card,
.home-use-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
  padding: clamp(1.35rem, 3vw, 2rem);
}

.home-calculator-card {
  grid-template-columns: auto minmax(0, 1fr) minmax(8.5rem, 10rem);
}

.home-calculator-card aside {
  display: grid;
  place-items: center;
  align-self: stretch;
  min-height: 9.4rem;
  padding: 1rem;
  border: 1px solid #efe5e8;
  border-radius: 1rem;
  background: #fff;
  text-align: center;
}

.home-calculator-card aside span,
.home-calculator-card aside small {
  color: var(--muted);
  font-weight: 800;
}

.home-calculator-card aside strong {
  color: var(--red);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  line-height: 0.95;
}

.home-icon {
  display: grid;
  place-items: center;
  width: 4.35rem;
  height: 4.35rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
  flex: 0 0 auto;
}

.home-icon svg {
  width: 2rem;
  height: 2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.home-info-card h3,
.home-feature-card h3,
.home-use-grid h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.45rem;
  line-height: 1.15;
}

.home-info-card p,
.home-feature-card p,
.home-use-grid p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.03rem;
  line-height: 1.6;
}

.home-use-grid article {
  grid-template-columns: 1fr;
}

.home-use-grid .home-icon {
  width: 4rem;
  height: 4rem;
}

.home-use-grid strong {
  margin-top: 0.6rem;
  color: var(--red);
  font-weight: 900;
}

.home-faq-section {
  display: grid;
  grid-template-columns: minmax(16rem, 22rem) minmax(0, 1fr);
  gap: 2rem;
  align-items: start;
}

.home-faq-copy {
  padding-top: 1.3rem;
}

.home-faq-list {
  overflow: hidden;
}

.home-faq-list details {
  border-bottom: 1px solid #efe5e8;
}

.home-faq-list details:last-child {
  border-bottom: 0;
}

.home-faq-list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0 1.55rem;
  color: var(--ink);
  font-weight: 850;
  cursor: pointer;
  list-style: none;
}

.home-faq-list summary::-webkit-details-marker {
  display: none;
}

.home-faq-list summary::after {
  content: "";
  width: 0.62rem;
  height: 0.62rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.18s ease;
  flex: 0 0 auto;
}

.home-faq-list details[open] summary::after {
  transform: rotate(225deg);
}

.home-faq-list p {
  margin: 0;
  padding: 0 1.55rem 1.25rem;
  color: var(--muted);
  line-height: 1.55;
}

.home-final-cta {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 1.5rem;
  align-items: center;
  margin-top: clamp(2.8rem, 6vw, 4.8rem);
  padding: clamp(1.5rem, 4vw, 2.2rem);
}

.home-final-button,
.home-final-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.6rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.home-final-button {
  padding: 0 2rem;
  border-radius: 0.7rem;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.14);
}

.home-final-link {
  color: var(--red);
}

.home-footer {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 2.2rem 0 2.8rem;
  color: var(--muted);
}

.home-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 980px) {
  .site-header {
    min-height: 92px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 3rem;
    min-height: auto;
  }

  .hero-copy {
    max-width: none;
  }

  .counter-preview {
    width: min(100%, 35rem);
    margin: 0 auto;
  }

  .home-info-grid,
  .home-feature-grid,
  .home-use-grid,
  .home-faq-section,
  .home-final-cta {
    grid-template-columns: 1fr;
  }

  .home-calculator-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-calculator-card aside {
    grid-column: 1 / -1;
    min-height: auto;
  }
}

@media (max-width: 720px) {
  .site-header {
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 1rem;
    padding-bottom: 1rem;
  }

  .brand img {
    width: min(14rem, 70vw);
  }

  .main-nav {
    width: 100%;
    justify-content: space-between;
    gap: 0.8rem;
    font-size: 0.95rem;
  }

  .main-nav .nav-cta {
    padding: 0.82rem 1rem;
  }

  .hero {
    width: min(100% - 1.5rem, 42rem);
    padding-top: 2.2rem;
  }

  h1 {
    font-size: clamp(3.35rem, 17vw, 4.35rem);
  }

  .lead br {
    display: none;
  }

  .date-actions {
    grid-template-columns: 1fr;
    gap: 0.9rem;
  }

  .date-card {
    padding: 1.1rem;
  }

  .date-picker {
    grid-template-columns: 1.35rem 1fr 1px 1.35rem;
    min-height: 4.25rem;
    font-size: 1.2rem;
  }

  .date-popover {
    width: min(100%, calc(100vw - 1.5rem));
    border-radius: 1.15rem;
  }

  .calendar-header {
    grid-template-columns: 2.5rem minmax(8.4rem, 1.35fr) minmax(5.6rem, 0.85fr) 2.5rem;
    padding: 1.45rem 1.1rem 1.15rem;
    gap: 0.55rem;
  }

  .calendar-select {
    min-height: 3.25rem;
    border-radius: 0.85rem;
  }

  .calendar-select select {
    height: 3.25rem;
    padding-right: 2.15rem;
    padding-left: 2.2rem;
    font-size: 1rem;
  }

  .calendar-year-select select {
    padding-left: 0.75rem;
  }

  .calendar-select svg {
    left: 0.75rem;
    width: 1.15rem;
    height: 1.15rem;
  }

  .calendar-select .select-arrow {
    right: 0.7rem;
    width: 1rem;
    height: 1rem;
  }

  .calendar-nav {
    width: 2.5rem;
    height: 2.5rem;
  }

  .calendar-weekdays,
  .calendar-grid {
    padding-right: 0.8rem;
    padding-left: 0.8rem;
  }

  .calendar-weekdays span {
    font-size: 0.9rem;
  }

  .calendar-grid {
    row-gap: 0.35rem;
  }

  .calendar-day {
    width: 2.55rem;
    height: 2.55rem;
    font-size: 1rem;
  }

  .calendar-footer {
    grid-template-columns: 1fr;
    padding: 1.2rem 1.1rem 1.3rem;
  }

  .calendar-action {
    font-size: 1.05rem;
  }

  .calendar-done {
    justify-self: stretch;
  }

  .primary-button {
    min-height: 4.25rem;
  }

  .counter-preview {
    min-height: 35rem;
    padding: 2.6rem 1rem 2.4rem;
    border-radius: 1.1rem;
  }

  .photo-frame {
    width: 13.2rem;
    height: 13.2rem;
  }

  .heart-one,
  .heart-three {
    left: 1.25rem;
  }

  .heart-two,
  .heart-four {
    right: 1.25rem;
  }

  .home-seo-section,
  .home-final-cta,
  .home-footer {
    width: min(100% - 1.5rem, 42rem);
  }

  .home-info-card,
  .home-feature-card {
    grid-template-columns: 1fr;
  }

  .home-final-button,
  .home-final-link {
    width: 100%;
  }

  .home-footer {
    flex-wrap: wrap;
  }
}

@media (max-width: 430px) {
  .main-nav {
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 0.1rem;
  }

  .note {
    align-items: flex-start;
    font-size: 1rem;
  }

  .counter-preview h2 {
    font-size: 2.2rem;
  }
}

/* Milestones: journey-first dashboard. */
.milestone-page {
  background:
    radial-gradient(circle at 88% 23%, rgba(255, 213, 222, 0.54), transparent 18rem),
    linear-gradient(180deg, #fffdfd 0%, #fff8fa 100%);
}

.milestone-page .milestone-shell {
  width: min(94rem, calc(100% - 2.5rem));
  margin: 1.55rem auto 3rem;
}

.milestone-page .milestone-top {
  margin-bottom: 1.3rem;
}

.milestone-page .milestone-top h1 {
  font-size: clamp(2.55rem, 4vw, 3.6rem);
  color: #1f1a24;
}

.milestone-page .milestone-top h1::after {
  content: " ✦";
  color: #ff6f91;
  font-size: 0.6em;
  vertical-align: 0.12em;
}

.milestone-page .milestone-top p {
  margin-top: 0.55rem;
  font-size: 1rem;
}

.milestone-journey {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(19rem, 0.75fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.milestone-hero-card,
.milestone-journey-card {
  position: relative;
  overflow: hidden;
  min-height: 15rem;
  border: 1px solid #f1dce1;
  border-radius: 1.35rem;
  background: linear-gradient(135deg, #fff 0%, #fff8fa 100%);
  box-shadow: 0 1rem 2.5rem rgba(31, 26, 36, 0.042);
}

.milestone-hero-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.8rem;
}

.milestone-hero-card::after {
  content: "♡";
  position: absolute;
  right: 1.5rem;
  bottom: -2.2rem;
  color: #ffe2e8;
  font-family: Georgia, serif;
  font-size: 11rem;
  line-height: 1;
}

.milestone-hero-copy {
  position: relative;
  z-index: 1;
}

.milestone-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 1.85rem;
  padding: 0 0.72rem;
  border-radius: 999px;
  color: #d71a3a;
  background: #fff0f3;
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.milestone-hero-card h2 {
  max-width: 24rem;
  margin: 0.75rem 0 0.25rem;
  color: #1f1a24;
  font-family: Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.55rem);
  line-height: 1.08;
}

.milestone-hero-card p,
.milestone-journey-card p {
  margin: 0;
  color: #6b5f6f;
  font-weight: 700;
}

.milestone-hero-status {
  display: inline-flex;
  margin-top: 1.05rem;
  color: #e60023;
  font-weight: 900;
}

.milestone-hero-progress {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 8.25rem;
  height: 8.25rem;
  box-shadow: 0 0.85rem 1.8rem rgba(230, 0, 35, 0.1);
}

.milestone-hero-progress span {
  width: 6.7rem;
  height: 6.7rem;
  font-size: 1.35rem;
}

.milestone-journey-card {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.8rem;
}

.milestone-journey-card::before {
  content: "✦";
  position: absolute;
  top: 1.1rem;
  right: 1.3rem;
  color: #ff91a7;
  font-size: 1.6rem;
}

.milestone-journey-card strong {
  margin: 0.7rem 0 0.45rem;
  color: #1f1a24;
  font-family: Georgia, serif;
  font-size: 1.8rem;
  line-height: 1.1;
}

.milestone-journey-track {
  height: 0.65rem;
  margin-top: 1.45rem;
  overflow: hidden;
  border-radius: 999px;
  background: #f3e8eb;
}

.milestone-journey-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff7895, #e60023);
  transition: width 300ms ease;
}

.milestone-journey-card small {
  margin-top: 0.55rem;
  color: #6b5f6f;
  font-weight: 800;
}

.milestone-page .milestone-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
  margin: 0 0 1rem;
}

.milestone-page .milestone-summary-card {
  min-height: 6.2rem;
  padding: 0.9rem 1rem;
  border-color: #f2dfe3;
  border-radius: 1rem;
  box-shadow: none;
}

.milestone-page .milestone-summary-card:nth-child(2) {
  display: none;
}

.milestone-page .milestone-summary-card > span {
  width: 2.8rem;
  height: 2.8rem;
}

.milestone-page .milestone-summary-card strong {
  font-family: Georgia, serif;
  font-size: 1.15rem;
}

.milestone-page .milestone-layout {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 23.5rem);
  gap: 1.15rem;
}

.milestone-page .milestone-list-card,
.milestone-page .add-milestone-card,
.milestone-page .milestone-privacy-card {
  border-color: #f1dce1;
  border-radius: 1.2rem;
  box-shadow: 0 0.85rem 2.2rem rgba(31, 26, 36, 0.033);
}

.milestone-page .milestone-list-card {
  padding: 1.3rem;
}

.milestone-page .milestone-list-card h2 {
  margin: 0;
  color: #1f1a24;
  font-family: Georgia, serif;
  font-size: 1.62rem;
}

.milestone-list-intro {
  margin: 0.35rem 0 1.1rem;
  color: #6b5f6f;
  font-size: 0.94rem;
}

.milestone-page .milestone-controls {
  grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr) minmax(9.8rem, auto);
  padding: 0.8rem;
  border: 1px solid #f2e0e4;
  border-radius: 0.95rem;
  background: #fff;
}

.milestone-page .milestone-toolbar button {
  min-height: 2.3rem;
  border-radius: 999px;
  color: #785e66;
}

.milestone-page .milestone-toolbar button.is-active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, #ff3c62, #e60023);
  box-shadow: 0 0.5rem 1.1rem rgba(230, 0, 35, 0.16);
}

.milestone-page .milestone-table {
  margin-top: 1rem;
  border-top: 0;
}

.milestone-page .milestone-row {
  min-height: 5.1rem;
  margin-bottom: 0.65rem;
  padding: 0.75rem 0.85rem;
  border: 1px solid #f2e1e5;
  border-radius: 0.95rem;
  background: #fff;
  transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.milestone-page .milestone-row:hover {
  border-color: #ffc6d2;
  box-shadow: 0 0.7rem 1.5rem rgba(31, 26, 36, 0.045);
  transform: translateY(-1px);
}

.milestone-page .milestone-row.is-completed {
  opacity: 0.68;
  background: #fffcfc;
}

.milestone-page .milestone-days {
  color: #e60023;
  font-weight: 900;
}

.milestone-page .add-milestone-card {
  padding: 1.25rem;
  background: linear-gradient(155deg, #fff 0%, #fffafa 100%);
}

.milestone-page .add-milestone-card h2 {
  color: #1f1a24;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.milestone-page .milestone-next-card {
  display: none;
}

@media (max-width: 1050px) {
  .milestone-journey { grid-template-columns: 1fr; }
  .milestone-page .milestone-layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem); }
}

@media (max-width: 820px) {
  .milestone-page .milestone-layout { grid-template-columns: 1fr; }
  .milestone-page .milestone-sidebar { display: grid; grid-template-columns: minmax(0, 1fr) minmax(17rem, 0.8fr); align-items: start; }
}

@media (max-width: 620px) {
  .milestone-page .milestone-shell { width: min(100% - 1rem, 94rem); margin-top: 0.65rem; }
  .milestone-page .milestone-top { align-items: stretch; flex-direction: column; }
  .milestone-page .milestone-top .add-memory-top { width: 100%; }
  .milestone-hero-card { align-items: flex-start; flex-direction: column; min-height: 0; padding: 1.35rem; }
  .milestone-hero-progress { align-self: flex-end; width: 6.75rem; height: 6.75rem; }
  .milestone-hero-progress span { width: 5.45rem; height: 5.45rem; }
  .milestone-journey-card { min-height: 0; padding: 1.35rem; }
  .milestone-page .milestone-summary-grid { grid-template-columns: 1fr; }
  .milestone-page .milestone-sidebar { grid-template-columns: 1fr; }
  .milestone-page .milestone-controls { grid-template-columns: 1fr; }
  .milestone-page .milestone-sort { justify-self: stretch; }
  .milestone-page .milestone-row { grid-template-columns: 2.15rem 2.75rem minmax(0, 1fr) auto; gap: 0.6rem; }
  .milestone-page .milestone-row > :nth-child(4), .milestone-page .milestone-row > :nth-child(5) { display: none; }
  .milestone-page .milestone-row-actions { display: none; }
}

/* Milestones - final relationship journey layout. */
.milestone-page {
  background:
    radial-gradient(circle at 94% 24%, rgba(255, 202, 216, .32), transparent 19rem),
    linear-gradient(180deg, #fffdfd 0%, #fff8fa 100%);
}

.milestone-page .milestone-shell {
  width: min(94rem, calc(100% - 2.5rem));
  margin: 1.65rem auto 3.25rem;
}

.milestone-page .milestone-top {
  margin-bottom: 1.05rem;
}

.milestone-page .milestone-top h1 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.65rem, 4vw, 3.55rem);
  font-weight: 800;
  line-height: 1;
}

.milestone-page .milestone-top p {
  margin-top: .5rem;
  font-size: 1rem;
  font-weight: 650;
}

.milestone-page .milestone-top small {
  display: none;
}

.milestone-page .add-memory-top {
  min-height: 3.45rem;
  padding-inline: 1.3rem;
  border-radius: .8rem;
  color: #fff;
  background: linear-gradient(135deg, #ff687f, #e60023);
  box-shadow: 0 1rem 2rem rgba(230, 0, 35, .18);
}

.milestone-page .milestone-journey {
  grid-template-columns: minmax(0, 1.18fr) minmax(22rem, .82fr);
  gap: .85rem;
  margin-bottom: .85rem;
}

.milestone-page .milestone-hero-card,
.milestone-page .milestone-journey-card {
  min-height: 15.7rem;
  border-color: #f3dce2;
  border-radius: 1.2rem;
  box-shadow: 0 .95rem 2.5rem rgba(31, 26, 36, .04);
}

.milestone-page .milestone-hero-card {
  padding: 1.8rem 2rem;
  background:
    radial-gradient(circle at 71% 49%, rgba(255, 225, 233, .92), transparent 11.5rem),
    linear-gradient(135deg, #fff 0%, #fff3f6 100%);
}

.milestone-page .milestone-hero-card::before {
  content: "✦  ♡";
  position: absolute;
  right: 1.65rem;
  top: 1.1rem;
  color: #ffacc0;
  letter-spacing: .5rem;
  font-size: 1.35rem;
}

.milestone-page .milestone-hero-card h2 {
  max-width: 20rem;
  margin-top: .65rem;
  font-size: clamp(2rem, 3vw, 2.6rem);
}

.milestone-page .milestone-hero-card p {
  display: flex;
  align-items: center;
  gap: .4rem;
  margin-top: .55rem;
}

.milestone-page .milestone-hero-card p::before {
  content: "□";
  color: var(--red);
  font-size: 1.05rem;
}

.milestone-page .milestone-hero-status {
  margin-top: .95rem;
  font-size: .95rem;
}

.milestone-page .milestone-hero-progress {
  width: 9rem;
  height: 9rem;
  margin-right: .8rem;
  border: .7rem solid rgba(255, 255, 255, .75);
}

.milestone-page .milestone-hero-progress span {
  width: 6.5rem;
  height: 6.5rem;
  background: #fffdfa;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.milestone-page .milestone-journey-card {
  padding: 1.85rem 1.95rem;
  background: linear-gradient(135deg, #fff 0%, #fffafa 100%);
}

.milestone-page .milestone-journey-card strong {
  font-size: clamp(1.75rem, 2.4vw, 2.25rem);
}

.milestone-page .milestone-journey-track {
  height: .7rem;
  margin-top: 1.55rem;
}

.milestone-page .milestone-summary-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: .85rem;
  margin-bottom: .85rem;
}

.milestone-page .milestone-summary-card {
  min-height: 6rem;
  padding: 1rem 1.15rem;
  border-radius: 1rem;
  box-shadow: none;
}

.milestone-page .milestone-summary-card > span {
  width: 3rem;
  height: 3rem;
}

.milestone-page .milestone-summary-card p {
  font-size: .83rem;
}

.milestone-page .milestone-summary-card strong {
  margin-top: .15rem;
  font-size: 1.22rem;
}

.milestone-page .milestone-layout {
  grid-template-columns: minmax(0, 1fr) minmax(19rem, 23rem);
  gap: .9rem;
}

.milestone-page .milestone-list-card,
.milestone-page .add-milestone-card {
  border-radius: 1.15rem;
}

.milestone-page .milestone-list-card {
  padding: 1.3rem;
}

.milestone-page .milestone-list-card h2 {
  font-size: 1.4rem;
}

.milestone-page .milestone-controls {
  grid-template-columns: minmax(10rem, 13rem) minmax(0, 1fr) 9.25rem;
  gap: .6rem;
  padding: .65rem;
  border-radius: .9rem;
}

.milestone-page .milestone-toolbar {
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
}

.milestone-page .milestone-toolbar::-webkit-scrollbar { display: none; }

.milestone-page .milestone-toolbar button {
  flex: 0 0 auto;
  min-height: 2.35rem;
  padding-inline: .76rem;
  font-size: .82rem;
}

.milestone-page .milestone-row {
  grid-template-columns: 2.15rem 2.8rem minmax(11rem, 1fr) minmax(5rem, .5fr) minmax(6.3rem, auto) 2rem 3.7rem;
  min-height: 4.7rem;
  margin-bottom: .5rem;
  padding: .65rem .75rem;
  border-radius: .85rem;
}

.milestone-page .milestone-row strong { font-size: .95rem; }
.milestone-page .milestone-row small,
.milestone-page .milestone-days { font-size: .79rem; }

.milestone-page .add-milestone-card {
  position: sticky;
  top: 1rem;
  padding: 1.25rem;
}

.milestone-page .add-milestone-card h2 {
  display: flex;
  align-items: center;
  gap: .55rem;
  margin-bottom: 1rem;
  font-size: 1.45rem;
}

.milestone-page .add-milestone-card h2::before {
  content: "♥";
  color: var(--red);
  font-size: .95em;
}

.milestone-page .add-milestone-card .memory-field {
  margin-bottom: .75rem;
}

.milestone-page .add-milestone-card .memory-field > span {
  font-size: .82rem;
  font-weight: 850;
}

.milestone-page .milestone-form-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: .55rem;
}

.milestone-page .milestone-form-actions .save-memory-button {
  min-height: 3.15rem;
  border-radius: .75rem;
  background: linear-gradient(135deg, #ff6b83, #e60023);
}

.milestone-page .milestone-form-actions .modal-secondary {
  min-height: 2.7rem;
}

@media (max-width: 1050px) {
  .milestone-page .milestone-journey { grid-template-columns: 1fr; }
  .milestone-page .milestone-layout { grid-template-columns: minmax(0, 1fr) minmax(18rem, 21rem); }
}

@media (max-width: 800px) {
  .milestone-page .milestone-layout { grid-template-columns: 1fr; }
  .milestone-page .add-milestone-card { position: static; }
  .milestone-page .milestone-sidebar { grid-template-columns: 1fr; }
  .milestone-page .milestone-summary-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .milestone-page .milestone-shell { width: min(100% - 1rem, 38rem); }
  .milestone-page .milestone-top { align-items: stretch; flex-direction: column; }
  .milestone-page .milestone-top .add-memory-top { width: 100%; }
  .milestone-page .milestone-hero-card { padding: 1.25rem; }
  .milestone-page .milestone-hero-progress { align-self: flex-end; width: 6.8rem; height: 6.8rem; margin-right: 0; }
  .milestone-page .milestone-hero-progress span { width: 4.8rem; height: 4.8rem; }
  .milestone-page .milestone-controls { grid-template-columns: 1fr; }
  .milestone-page .milestone-sort { width: 100%; }
  .milestone-page .milestone-table { min-width: 0; }
  .milestone-page .milestone-row { grid-template-columns: 2rem 2.6rem minmax(0, 1fr) auto; gap: .55rem; }
  .milestone-page .milestone-row > :nth-child(4),
  .milestone-page .milestone-row > :nth-child(5),
  .milestone-page .milestone-row-actions { display: none; }
}

/* Gift ideas - compact desk layout */
.gift-page {
  background:
    radial-gradient(circle at 93% 32%, rgba(255, 210, 220, 0.56), transparent 19rem),
    linear-gradient(180deg, #fffdfd 0%, #fff9fa 100%);
}

.gift-page .gift-shell {
  width: min(94rem, calc(100% - 2.5rem));
  margin: 1.55rem auto 3rem;
  padding: 1.55rem;
  border: 1px solid #f2dce1;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1.35rem 4rem rgba(31, 26, 36, 0.055);
}

.gift-page .gift-top {
  position: relative;
  align-items: flex-start;
  min-height: 5.2rem;
  padding: 0.15rem 0.1rem 0;
}

.gift-page .gift-top::after {
  content: "♡";
  position: absolute;
  top: -0.55rem;
  right: 0.3rem;
  color: #ff8ea7;
  font-family: Georgia, serif;
  font-size: 3rem;
  line-height: 1;
  opacity: 0.7;
}

.gift-page .gift-top h1 {
  color: #1f1a24;
  font-size: clamp(2.6rem, 4vw, 3.65rem);
  letter-spacing: 0;
}

.gift-page .gift-top h1::after {
  content: " ♡";
  color: #ff6f91;
  font-size: 0.7em;
  vertical-align: 0.08em;
}

.gift-page .gift-top p {
  max-width: 46rem;
  margin-top: 0.55rem;
  font-size: 1rem;
}

.gift-page .gift-top small {
  display: none;
}

.gift-page .add-memory-top {
  z-index: 1;
  min-height: 3.15rem;
  padding: 0 1.3rem;
  border-radius: 0.78rem;
  color: #fff;
  background: linear-gradient(135deg, #ff3c62, #e60023);
  box-shadow: 0 0.85rem 1.5rem rgba(230, 0, 35, 0.19);
}

.gift-page .add-memory-top:hover {
  color: #fff;
  transform: translateY(-1px);
}

.gift-page .gift-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 1.25rem 0;
}

.gift-page .gift-summary-card {
  min-height: 7.1rem;
  padding: 1rem 1.08rem;
  border-color: #f3dde2;
  border-radius: 1rem;
  box-shadow: none;
}

.gift-page .gift-summary-icon {
  width: 3.15rem;
  height: 3.15rem;
  background: #fff0f3;
}

.gift-page .gift-summary-card p {
  font-size: 0.92rem;
}

.gift-page .gift-summary-card strong {
  margin-top: 0.17rem;
  font-family: Georgia, serif;
  font-size: 1.55rem;
  line-height: 1.05;
}

.gift-page .gift-summary-card:last-child strong {
  font-family: inherit;
  font-size: 0.98rem;
  line-height: 1.25;
}

.gift-page .gift-layout {
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 24.5rem);
  gap: 1.25rem;
}

.gift-page .gift-controls,
.gift-page .gift-checklist-card,
.gift-page .add-gift-card,
.gift-page .gift-privacy-card {
  border-color: #f1dce1;
  border-radius: 1.1rem;
  box-shadow: 0 0.75rem 2rem rgba(31, 26, 36, 0.032);
}

.gift-page .gift-controls {
  gap: 0.72rem;
  padding: 0.85rem;
}

.gift-page .gift-search input,
.gift-page .gift-sort select {
  min-height: 2.75rem;
  border-color: #f0dce1;
  border-radius: 0.72rem;
}

.gift-page .gift-toolbar button {
  min-height: 2.35rem;
  border-radius: 0.68rem;
  color: #9e5364;
}

.gift-page .gift-toolbar button.is-active {
  color: #fff;
  background: linear-gradient(135deg, #ff3c62, #e60023);
  box-shadow: 0 0.55rem 1.1rem rgba(230, 0, 35, 0.16);
}

.gift-page .gift-checklist-card {
  min-height: 32rem;
  padding: 1.15rem 1.25rem 1.25rem;
}

.gift-page .gift-checklist-card h2 {
  position: relative;
  margin-bottom: 1.05rem;
  color: #1f1a24;
  font-family: Georgia, serif;
  font-size: 1.45rem;
}

.gift-page .gift-checklist-card h2::after {
  content: "";
  position: absolute;
  bottom: -0.55rem;
  left: 0;
  width: 2.5rem;
  height: 2px;
  border-radius: 99px;
  background: #ff6682;
}

.gift-page .gift-table > .gift-empty-card,
.gift-page .gift-table > .empty-state-card {
  display: grid;
  min-height: 23.5rem;
  place-content: center;
  justify-items: center;
  padding: 2.5rem 1rem;
  border: 0;
  background: transparent;
  text-align: center;
}

.gift-page .gift-table > .empty-state-card::before {
  content: "♡";
  display: grid;
  place-items: center;
  width: 6.75rem;
  height: 6.75rem;
  margin-bottom: 1rem;
  border-radius: 2rem;
  color: #ff4870;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe6ec);
  box-shadow: 0 1rem 1.9rem rgba(255, 92, 124, 0.16);
  font-family: Georgia, serif;
  font-size: 4.4rem;
  line-height: 1;
}

.gift-page .gift-table > .empty-state-card h3 {
  margin: 0;
  color: #1f1a24;
  font-family: Georgia, serif;
  font-size: 1.75rem;
}

.gift-page .gift-table > .empty-state-card p {
  max-width: 20rem;
  margin: 0.5rem auto 1.2rem;
  color: #6b5f6f;
  line-height: 1.5;
}

.gift-page .gift-table > .empty-state-card .button,
.gift-page .save-memory-button {
  min-height: 3rem;
  border: 0;
  border-radius: 0.72rem;
  color: #fff;
  background: linear-gradient(135deg, #ff3c62, #e60023);
  box-shadow: 0 0.8rem 1.4rem rgba(230, 0, 35, 0.18);
}

.gift-page .gift-sidebar {
  position: sticky;
  top: 1rem;
}

.gift-page .add-gift-card {
  padding: 1.25rem;
  background: linear-gradient(155deg, #fff 0%, #fffafa 100%);
}

.gift-page .add-gift-card h2 {
  position: relative;
  margin-bottom: 1.15rem;
  padding-left: 2.7rem;
  color: #1f1a24;
  font-family: Georgia, serif;
  font-size: 1.52rem;
}

.gift-page .add-gift-card h2::before {
  content: "♡";
  position: absolute;
  left: 0;
  top: -0.22rem;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: #e60023;
  background: #fff0f3;
  font-family: Georgia, serif;
  font-size: 1.6rem;
}

.gift-page .memory-field > span {
  font-size: 0.84rem;
}

.gift-page .add-gift-card input:not([type="hidden"]),
.gift-page .add-gift-card select,
.gift-page .add-gift-card textarea,
.gift-page .settings-date-trigger {
  min-height: 2.65rem;
  border-color: #f0dce1;
  border-radius: 0.68rem;
}

.gift-page .add-gift-card textarea {
  min-height: 4.25rem;
}

.gift-page .gift-upload-field {
  border: 1px dashed #ffb7c5;
  border-radius: 0.72rem;
  background: #fffafb;
}

.gift-page .gift-form-actions {
  gap: 0.7rem;
}

.gift-page .gift-form-actions .save-memory-button,
.gift-page .gift-form-actions .modal-secondary {
  flex: 1 1 0;
  min-height: 2.85rem;
}

.gift-page .gift-privacy-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  background: #fff7f8;
}

.gift-page .gift-privacy-card strong {
  color: #9d192f;
}

@media (max-width: 1100px) {
  .gift-page .gift-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-page .gift-layout {
    grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 22rem);
  }
}

@media (max-width: 860px) {
  .gift-page .gift-layout {
    grid-template-columns: 1fr;
  }

  .gift-page .gift-sidebar {
    position: static;
  }
}

@media (max-width: 620px) {
  .gift-page .gift-shell {
    width: min(100% - 1rem, 94rem);
    margin-top: 0.65rem;
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .gift-page .gift-top {
    flex-direction: column;
  }

  .gift-page .gift-top h1 {
    font-size: 2.45rem;
  }

  .gift-page .gift-top::after {
    display: none;
  }

  .gift-page .add-memory-top {
    width: 100%;
  }

  .gift-page .gift-summary-grid {
    grid-template-columns: 1fr;
  }

  .gift-page .gift-checklist-card {
    min-height: 25rem;
  }

  .gift-page .gift-table > .empty-state-card {
    min-height: 19rem;
  }
}

.flow-page {
  background:
    radial-gradient(circle at 12% 14%, rgba(230, 0, 35, 0.06) 0 10rem, transparent 21rem),
    radial-gradient(circle at 86% 84%, rgba(230, 0, 35, 0.08) 0 11rem, transparent 24rem),
    linear-gradient(180deg, #fff 0%, #fff9fa 42%, #fff3f5 100%);
}

.flow-page .site-header {
  border-bottom: 0;
  background: transparent;
}

.flow-shell {
  display: grid;
  grid-template-columns: 15.5rem minmax(28rem, 36rem) minmax(22rem, 26rem);
  gap: clamp(2rem, 4.5vw, 4.8rem);
  width: min(94rem, calc(100% - 3rem));
  min-height: calc(100vh - 8.5rem);
  margin: 0 auto 3rem;
  padding: 1.5rem 2.1rem;
  border-radius: 1.6rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 2rem 5.5rem rgba(31, 26, 36, 0.06);
}

.flow-steps {
  position: relative;
  padding: 3.1rem 1.25rem 0 0;
  border-right: 1px solid #f5dce1;
}

.step-item {
  position: relative;
  display: grid;
  grid-template-columns: 2.75rem 1fr;
  align-items: center;
  gap: 1.05rem;
  padding: 1rem 0.95rem;
  border-radius: 0.85rem;
  color: var(--ink);
}

.step-item.is-active {
  background: linear-gradient(90deg, rgba(230, 0, 35, 0.12), rgba(230, 0, 35, 0.04));
}

.step-dot {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #cfd0d7;
  border-radius: 50%;
  color: var(--ink);
  background: #f4f5f8;
  font-size: 1rem;
  font-weight: 800;
}

.step-dot svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.step-item.is-done .step-dot,
.step-item.is-active .step-dot {
  border-color: var(--red);
  color: var(--white);
  background: var(--red);
  box-shadow: 0 0.55rem 1.25rem rgba(230, 0, 35, 0.2);
}

.step-item.is-active .step-dot {
  box-shadow: 0 0 0 0.35rem rgba(230, 0, 35, 0.1), 0 0.55rem 1.25rem rgba(230, 0, 35, 0.2);
}

.step-item small {
  display: block;
  margin-bottom: 0.22rem;
  color: #686170;
  font-size: 0.86rem;
  font-weight: 700;
}

.step-item strong {
  display: block;
  font-size: 0.98rem;
  line-height: 1.25;
}

.step-line {
  width: 2px;
  height: 2.15rem;
  margin-left: 2.17rem;
  background: #d8d7df;
}

.step-line:first-of-type {
  background: var(--red);
}

.flow-content {
  padding: 1.6rem 0 0;
}

.flow-form {
  width: 100%;
}

.step-kicker {
  margin: 0 0 1rem;
  color: #ff4c6a;
  font-size: 1rem;
  font-weight: 800;
}

.flow-form h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.1vw, 3.05rem);
  line-height: 1;
}

.step-subtitle {
  max-width: 31rem;
  margin: 1.15rem 0 2rem;
  color: #676071;
  font-size: 1.12rem;
  line-height: 1.55;
}

.form-block {
  margin-top: 2rem;
}

.form-block h2 {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: 1.12rem;
  font-weight: 800;
}

.name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.4rem;
}

.name-field {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 4.35rem;
  padding: 0.8rem 3.1rem 0.8rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.85);
}

.name-field span {
  color: #676071;
  font-size: 0.88rem;
  font-weight: 600;
}

.name-field input {
  width: 100%;
  min-width: 0;
  margin-top: 0.18rem;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1rem;
}

.name-field input.has-error {
  color: var(--red);
}

.name-field svg {
  position: absolute;
  top: 50%;
  right: 1.05rem;
  width: 1.3rem;
  height: 1.3rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.name-field:nth-child(2) svg {
  stroke: #2876ff;
}

.helper-text,
.field-error {
  margin: 0.7rem 0 0;
  text-align: center;
  font-size: 0.92rem;
}

.helper-text {
  color: #756f80;
}

.field-error {
  min-height: 1.15rem;
  color: var(--red);
  font-weight: 700;
}

.upload-zone {
  display: grid;
  place-items: center;
  min-height: 12rem;
  padding: 1.6rem;
  border: 1px dashed #f3a7b3;
  border-radius: 0.7rem;
  background: rgba(255, 246, 248, 0.55);
  text-align: center;
  cursor: pointer;
}

.upload-zone.is-dragging {
  border-color: var(--red);
  background: #fff1f4;
}

.upload-zone input {
  display: none;
}

.upload-zone svg {
  width: 3.35rem;
  height: 3.35rem;
  margin-bottom: 0.7rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.upload-zone strong {
  color: var(--ink);
  font-size: 0.96rem;
}

.upload-zone span {
  margin-top: 0.35rem;
  color: var(--red);
  font-weight: 700;
}

.upload-zone small {
  margin-top: 1rem;
  color: #676071;
  font-size: 0.9rem;
}

.upload-separator {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1rem;
  margin: 1.35rem 0;
  color: #4f4858;
  font-weight: 700;
}

.upload-separator::before,
.upload-separator::after {
  content: "";
  height: 1px;
  background: #dfdce2;
}

.device-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  min-height: 3.3rem;
  border: 1px solid var(--line);
  border-radius: 0.7rem;
  color: var(--red);
  background: rgba(255, 255, 255, 0.76);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.device-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.tips {
  margin-top: 1.9rem;
}

.tips h3 {
  margin: 0 0 0.85rem;
  font-size: 0.98rem;
}

.tips ul {
  display: grid;
  gap: 0.72rem;
  margin: 0;
  padding: 0;
  color: #676071;
  list-style: none;
  font-size: 0.94rem;
}

.tips li::before {
  content: "\2713";
  margin-right: 0.7rem;
  color: var(--red);
  font-weight: 900;
}

.flow-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2.1rem;
  padding-top: 1.5rem;
  border-top: 1px solid #f4dfe3;
}

.secondary-button,
.continue-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  min-height: 3.6rem;
  padding: 0 1.35rem;
  text-decoration: none;
}

.secondary-button {
  border: 1px solid #e6e3e9;
  border-radius: 0.62rem;
  color: var(--ink);
  background: #fff;
  font-weight: 800;
}

.secondary-button svg,
.continue-button svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.continue-button {
  min-width: 10.2rem;
  border-radius: 0.68rem;
  box-shadow: 0 0.85rem 1.7rem rgba(230, 0, 35, 0.16);
}

.live-panel {
  align-self: start;
  margin-top: 1.8rem;
  padding: 2rem 2.3rem 2.4rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1.6rem 4rem rgba(31, 26, 36, 0.08);
}

.live-panel h2 {
  margin: 0 0 1.65rem;
  font-family: inherit;
  font-size: 1.16rem;
  font-weight: 800;
}

.preview-card {
  position: relative;
  min-height: 45rem;
  padding: 3.6rem 1.6rem 2.2rem;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background:
    radial-gradient(circle at 48% 53%, rgba(230, 0, 35, 0.1) 0 5.3rem, transparent 10rem),
    rgba(255, 255, 255, 0.74);
  text-align: center;
  overflow: hidden;
}

.preview-together {
  margin: 0;
  color: var(--ink);
  font-size: 1.16rem;
  font-weight: 800;
}

.preview-number,
.preview-days {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
  line-height: 0.95;
}

.preview-number {
  margin-top: 1rem;
  color: var(--red);
  font-size: 3.9rem;
}

.preview-days {
  color: var(--ink);
  font-size: 2.8rem;
}

.preview-photo {
  display: grid;
  place-items: center;
  width: 12.8rem;
  height: 12.8rem;
  margin: 2.15rem auto 2.2rem;
  padding: 0.7rem;
  border-radius: 50%;
  background: linear-gradient(180deg, #fff, #fff4f5);
  box-shadow: 0 0 0 0.5rem rgba(255, 237, 241, 0.9);
  overflow: hidden;
}

.preview-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.preview-names {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 1.4rem;
  margin: 0;
  font-size: 1.12rem;
  font-weight: 900;
}

.preview-love {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  color: var(--red);
  font-size: 3.1rem;
  line-height: 1;
}

.preview-since {
  margin: 3rem auto 0;
  width: min(100%, 16rem);
  padding: 1.25rem 1rem;
  border-radius: 0.8rem;
  color: #746d7d;
  background: linear-gradient(90deg, rgba(255, 241, 244, 0.95), rgba(255, 231, 236, 0.95));
  font-size: 1.05rem;
  font-weight: 700;
}

.preview-since strong {
  color: var(--red);
}

.preview-heart {
  position: absolute;
  color: #f6aab5;
  font-size: 1.45rem;
}

.preview-heart-one {
  top: 4.2rem;
  left: 2.4rem;
}

.preview-heart-two {
  top: 6.2rem;
  right: 2.4rem;
}

.preview-heart-three {
  top: 16.2rem;
  left: 2.7rem;
}

.preview-heart-four {
  right: 2.1rem;
  bottom: 9.8rem;
}

@media (max-width: 1180px) {
  .flow-shell {
    grid-template-columns: 13rem minmax(0, 1fr);
  }

  .live-panel {
    grid-column: 2;
    width: min(100%, 26rem);
  }
}

@media (max-width: 860px) {
  .flow-shell {
    grid-template-columns: 1fr;
    width: min(100% - 1.5rem, 42rem);
    padding: 1rem;
  }

  .flow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.7rem;
    padding: 0;
    border-right: 0;
  }

  .step-item {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .step-line {
    display: none;
  }

  .flow-content,
  .live-panel {
    grid-column: auto;
  }

  .live-panel {
    width: 100%;
    padding: 1rem;
  }

  .preview-card {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .name-grid {
    grid-template-columns: 1fr;
  }

  .flow-actions {
    flex-direction: column-reverse;
  }

  .secondary-button,
  .continue-button {
    width: 100%;
  }
}

.theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}

.theme-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  padding: 0.45rem 0.45rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 1rem 2rem rgba(31, 26, 36, 0.035);
}

.theme-card:hover {
  border-color: #f3a9b5;
  transform: translateY(-1px);
}

.theme-card.is-selected {
  border-color: var(--red);
  box-shadow: 0 1.2rem 2.6rem rgba(230, 0, 35, 0.1);
}

.theme-check {
  position: absolute;
  top: 0.8rem;
  right: 0.8rem;
  display: none;
  place-items: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  color: var(--white);
  background: var(--red);
  z-index: 2;
}

.theme-card.is-selected .theme-check {
  display: grid;
}

.theme-check svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.theme-art {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 13.2rem;
  border-radius: 0.75rem;
  overflow: hidden;
}

.theme-art::before,
.theme-art::after {
  content: "";
  position: absolute;
  inset: auto -12% -10% -12%;
  height: 34%;
  border-radius: 50% 50% 0 0;
  opacity: 0.62;
}

.theme-art::after {
  inset: auto -8% -17% 18%;
  opacity: 0.46;
}

.theme-mini-label,
.theme-mini-number,
.theme-mini-days {
  position: relative;
  z-index: 1;
}

.theme-mini-label {
  font-size: 0.72rem;
  font-weight: 800;
}

.theme-mini-number {
  margin-top: 0.4rem;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--red);
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1;
}

.theme-mini-days {
  margin-top: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.1rem;
  font-weight: 800;
}

.theme-white {
  background:
    radial-gradient(circle at 14% 30%, rgba(230, 0, 35, 0.08) 0 0.55rem, transparent 0.6rem),
    radial-gradient(circle at 86% 32%, rgba(230, 0, 35, 0.08) 0 0.42rem, transparent 0.48rem),
    linear-gradient(180deg, #ffffff 0%, #fffafa 100%);
}

.theme-white::before {
  background: #f7f3f5;
}

.theme-white::after {
  background: #ffffff;
}

.theme-blush {
  background:
    radial-gradient(circle at 10% 30%, rgba(246, 170, 181, 0.55) 0 0.42rem, transparent 0.48rem),
    radial-gradient(circle at 92% 31%, rgba(246, 170, 181, 0.55) 0 0.36rem, transparent 0.42rem),
    linear-gradient(180deg, #fff8f9 0%, #ffe9ed 100%);
}

.theme-blush::before {
  background: #ffd8df;
}

.theme-blush::after {
  background: #fff1f4;
}

.theme-midnight {
  color: #fff;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 214, 141, 0.7) 0 0.08rem, transparent 0.12rem),
    radial-gradient(circle at 78% 28%, rgba(255, 214, 141, 0.65) 0 0.06rem, transparent 0.1rem),
    linear-gradient(180deg, #0f182b 0%, #19233d 56%, #f0a194 100%);
}

.theme-midnight .theme-mini-number {
  color: #ff7c96;
}

.theme-midnight::before {
  background: #0d1322;
}

.theme-midnight::after {
  background: #263047;
}

.theme-ocean {
  background:
    linear-gradient(180deg, #dbf7ff 0%, #f7f2dc 60%, #74c2df 61%, #207fac 100%);
}

.theme-ocean .theme-mini-number {
  color: #237da7;
}

.theme-ocean::before {
  background: #59b7d4;
}

.theme-ocean::after {
  background: #1f79a8;
}

.theme-forest {
  background:
    linear-gradient(180deg, #fbf8e6 0%, #dce6cf 58%, #76976f 100%);
}

.theme-forest .theme-mini-number {
  color: #4c7650;
}

.theme-forest::before {
  background: #8ca887;
}

.theme-forest::after {
  background: #5c7f5f;
}

.theme-lavender {
  background:
    radial-gradient(circle at 82% 20%, rgba(154, 113, 190, 0.32) 0 0.7rem, transparent 0.75rem),
    linear-gradient(180deg, #faeafa 0%, #d9b9ec 62%, #9b75c9 100%);
}

.theme-lavender .theme-mini-number {
  color: #8154b7;
}

.theme-lavender::before {
  background: #c9a2df;
}

.theme-lavender::after {
  background: #e9d7f4;
}

.theme-info {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  margin-top: 2rem;
  padding: 1rem 1.15rem;
  border: 1px solid var(--line);
  border-radius: 0.82rem;
  background: rgba(255, 250, 251, 0.86);
}

.theme-info span {
  display: grid;
  place-items: center;
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff1f4;
  font-size: 1.55rem;
}

.theme-info p {
  margin: 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.45;
}

.theme-info strong {
  display: block;
  margin-bottom: 0.15rem;
  color: var(--ink);
}

.theme-live-panel .preview-card {
  min-height: 42rem;
}

.theme-preview-note {
  max-width: 18rem;
  margin: 1.3rem auto 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
  text-align: center;
}

.theme-preview-note::before {
  content: "*";
  margin-right: 0.45rem;
  color: #f1b91f;
}

.theme-preview[data-active-theme="white"] {
  background:
    radial-gradient(circle at 48% 53%, rgba(31, 26, 36, 0.035) 0 5.3rem, transparent 10rem),
    linear-gradient(180deg, #ffffff 0%, #fff 54%, #fafafa 100%);
}

.theme-preview[data-active-theme="blush"] {
  background:
    radial-gradient(circle at 48% 53%, rgba(230, 0, 35, 0.1) 0 5.3rem, transparent 10rem),
    linear-gradient(180deg, #fff8f9 0%, #fff 52%, #ffe4ea 100%);
}

.theme-preview[data-active-theme="midnight"] {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 20% 14%, rgba(255, 214, 141, 0.8) 0 0.09rem, transparent 0.13rem),
    radial-gradient(circle at 70% 22%, rgba(255, 214, 141, 0.7) 0 0.08rem, transparent 0.12rem),
    linear-gradient(180deg, #111a2e 0%, #1b2640 58%, #ef9f91 100%);
}

.theme-preview[data-active-theme="midnight"] .preview-together,
.theme-preview[data-active-theme="midnight"] .preview-days,
.theme-preview[data-active-theme="midnight"] .preview-names {
  color: #fff;
}

.theme-preview[data-active-theme="midnight"] .preview-number,
.theme-preview[data-active-theme="midnight"] .preview-love,
.theme-preview[data-active-theme="midnight"] .preview-since strong {
  color: #ff7c96;
}

.theme-preview[data-active-theme="ocean"] {
  background: linear-gradient(180deg, #e4f8ff 0%, #fff 54%, #8fd0e4 100%);
}

.theme-preview[data-active-theme="ocean"] .preview-number,
.theme-preview[data-active-theme="ocean"] .preview-love,
.theme-preview[data-active-theme="ocean"] .preview-since strong {
  color: #237da7;
}

.theme-preview[data-active-theme="forest"] {
  background: linear-gradient(180deg, #fbf8e6 0%, #fff 52%, #c9dbc2 100%);
}

.theme-preview[data-active-theme="forest"] .preview-number,
.theme-preview[data-active-theme="forest"] .preview-love,
.theme-preview[data-active-theme="forest"] .preview-since strong {
  color: #4c7650;
}

.theme-preview[data-active-theme="lavender"] {
  background: linear-gradient(180deg, #faeafa 0%, #fff 52%, #dcc2ee 100%);
}

.theme-preview[data-active-theme="lavender"] .preview-number,
.theme-preview[data-active-theme="lavender"] .preview-love,
.theme-preview[data-active-theme="lavender"] .preview-since strong {
  color: #8154b7;
}

@media (max-width: 1180px) {
  .theme-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .theme-grid {
    grid-template-columns: 1fr;
  }
}

.counter-page {
  color: var(--ink);
  background: #fafafa;
}

.counter-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 2rem;
  width: min(94rem, calc(100% - 3rem));
  min-height: 6.6rem;
  margin: 0 auto;
}

.counter-brand img {
  display: block;
  width: clamp(13rem, 18vw, 18rem);
  height: auto;
}

.counter-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.55rem;
}

.counter-nav a {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 3.35rem;
  padding: 0 1rem;
  border-radius: 0.7rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.counter-nav a.is-active {
  color: var(--red);
  background: #fff0f2;
}

.counter-nav svg,
.counter-avatar svg,
.counter-actions svg,
.dash-card svg,
.feature-card svg,
.counter-since svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.counter-nav svg {
  width: 1.25rem;
  height: 1.25rem;
}

.counter-avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.counter-avatar img {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  object-fit: cover;
}

.counter-avatar svg {
  width: 1rem;
  height: 1rem;
}

.counter-shell {
  width: min(94rem, calc(100% - 3rem));
  margin: 0 auto 2.6rem;
}

.counter-hero-card,
.dash-card,
.feature-card {
  border: 1px solid #efe5e8;
  background: #fff;
  box-shadow: 0 1.1rem 2.8rem rgba(31, 26, 36, 0.035);
}

.counter-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(20rem, 0.92fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 6rem);
  min-height: 34rem;
  padding: clamp(2rem, 5vw, 4.6rem);
  border-radius: 1.75rem;
}

.counter-hero-copy {
  text-align: center;
}

.counter-hero-copy h1 {
  margin: 0;
  font-size: clamp(2.7rem, 4vw, 3.8rem);
  line-height: 1;
}

.counter-hero-copy h1 span,
.counter-days-number,
.counter-since strong,
.dash-card-title svg,
.anniversary-days strong,
.events-card a,
.event-list strong {
  color: var(--red);
}

.counter-label {
  margin: 2.2rem 0 0.4rem;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 800;
}

.counter-days-number {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(5rem, 9vw, 7rem);
  font-weight: 800;
  line-height: 0.92;
}

.counter-days-label {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.8rem, 4vw, 3.6rem);
  font-weight: 800;
  line-height: 1;
}

.counter-since {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 2rem 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  font-weight: 800;
}

.counter-since svg {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--red);
}

.counter-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 3rem;
}

.counter-actions button,
.counter-actions a {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.6rem;
  padding: 0 1.25rem;
  border: 1px solid #e9e3e7;
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}

.counter-actions svg {
  width: 1.2rem;
  height: 1.2rem;
}

.counter-hero-photo {
  justify-self: center;
  width: min(100%, 27rem);
  aspect-ratio: 1;
  border-radius: 50%;
  overflow: hidden;
  background: #fff6f7;
}

.counter-hero-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.counter-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.14fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1.4rem;
}

.dash-card {
  min-height: 20rem;
  padding: 2rem;
  border-radius: 1.25rem;
}

.dash-card-title,
.dash-card-title span {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.dash-card-title.with-link {
  justify-content: space-between;
}

.dash-card-title h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.2rem;
}

.dash-card-title svg {
  width: 1.55rem;
  height: 1.55rem;
}

.dash-card p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.anniversary-days {
  margin: 0.6rem 0 0;
  color: var(--ink) !important;
  font-weight: 900;
}

.anniversary-days strong {
  margin-right: 0.45rem;
  font-size: 2.65rem;
  line-height: 1;
}

.anniversary-card time {
  display: block;
  margin-top: 0.6rem;
  color: var(--muted);
  font-weight: 800;
}

.events-card a {
  text-decoration: none;
  font-weight: 900;
}

.event-list {
  display: grid;
  margin: 1.45rem 0 0;
  padding: 0;
  list-style: none;
}

.event-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #efe9ec;
}

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

.event-list span {
  color: var(--ink);
  font-weight: 900;
}

.event-list small {
  display: block;
  margin-top: 0.25rem;
  color: var(--muted);
  font-weight: 700;
}

.event-list strong {
  white-space: nowrap;
}

.save-card button,
.save-card a {
  width: 100%;
  min-height: 3.6rem;
  margin-top: 1rem;
  border: 0;
  border-radius: 0.65rem;
  color: #fff;
  background: var(--red);
  font: inherit;
  font-weight: 900;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
}

.counter-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.4rem;
}

.feature-card {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 0.95rem;
  align-items: center;
  min-height: 10rem;
  padding: 1.5rem;
  border-radius: 1.05rem;
  color: var(--ink);
  text-decoration: none;
}

.feature-card span {
  display: grid;
  place-items: center;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
}

.feature-card svg {
  width: 1.8rem;
  height: 1.8rem;
}

.feature-card strong {
  display: block;
  font-size: 1.12rem;
}

.feature-card small {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  line-height: 1.45;
}

.feature-card b {
  display: grid;
  place-items: center;
  width: 2.45rem;
  height: 2.45rem;
  border: 1px solid #e9e3e7;
  border-radius: 50%;
  font-size: 1.4rem;
  font-weight: 500;
}

.memories span {
  color: #874ce8;
  background: #efe7ff;
}

.special-dates span {
  color: var(--red);
  background: #fff0f2;
}

.gift-ideas span {
  color: #2d9b43;
  background: #e8f7ec;
}

.milestones span {
  color: #d9a40b;
  background: #fff6da;
}

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

  .counter-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.4rem;
  }

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

@media (max-width: 820px) {
  .counter-hero-card {
    grid-template-columns: 1fr;
  }

  .counter-hero-photo {
    order: -1;
    width: min(20rem, 80vw);
  }
}

@media (max-width: 620px) {
  .counter-header,
  .counter-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .counter-main-grid,
  .counter-feature-grid {
    grid-template-columns: 1fr;
  }

  .counter-hero-card,
  .dash-card,
  .feature-card {
    border-radius: 1rem;
  }
}

.memories-page {
  background: #fffbfa;
}

.memories-header {
  border-bottom: 1px solid #efe5e8;
}

.memories-nav a.is-active {
  position: relative;
  background: transparent;
}

.memories-nav a.is-active::after {
  content: "";
  position: absolute;
  right: 1rem;
  bottom: -1.05rem;
  left: 1rem;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

.memories-shell {
  width: min(94rem, calc(100% - 3rem));
  margin: 1.75rem auto 3.2rem;
}

.memories-top {
  display: none;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 1.25rem;
}

.memories-top h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.3vw, 3.4rem);
  line-height: 1;
}

.memories-top p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.memories-summary {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 16.5rem;
  padding: 0.7rem 1rem;
  border: 1px solid #efe5e8;
  border-radius: 0.85rem;
  background: #fff;
}

.memories-summary img {
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  object-fit: cover;
}

.memories-summary strong {
  display: block;
  color: var(--ink);
  font-size: 1.05rem;
}

.memories-summary b {
  color: var(--red);
}

.memories-summary small {
  color: var(--muted);
  font-weight: 700;
}

.add-memory-top,
.save-memory-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.55rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.85rem;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.add-memory-top:hover,
.save-memory-button:hover {
  background: #bd081c;
}

.add-memory-top svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memories-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 0 1.55rem;
}

.memory-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.95rem;
}

.memory-filters button,
.memory-sort select {
  min-height: 3.25rem;
  border: 1px solid #f2d7dd;
  border-radius: 0.72rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.memory-filters button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0 1.35rem;
  box-shadow: 0 0.75rem 1.9rem rgba(31, 26, 36, 0.055);
  cursor: pointer;
}

.memory-filters button.is-active {
  border-color: #ffd5dd;
  color: var(--red);
  background: linear-gradient(180deg, #fff, #fff7f8);
  box-shadow: 0 0.85rem 2.1rem rgba(230, 0, 35, 0.11);
}

.memory-filters button.is-active::after {
  content: "";
  position: absolute;
  right: 0.95rem;
  bottom: -0.22rem;
  left: 0.95rem;
  height: 3px;
  border-radius: 999px;
  background: var(--red);
}

.memory-filters button svg,
.memory-sort svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-sort {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.memory-sort svg {
  position: absolute;
  left: 1.05rem;
  z-index: 1;
  color: var(--muted);
  pointer-events: none;
}

.memory-sort select {
  min-width: 12.2rem;
  padding: 0 2.35rem 0 3rem;
  box-shadow: 0 0.7rem 1.9rem rgba(31, 26, 36, 0.045);
  appearance: none;
}

.memories-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(24.5rem, 27.5rem);
  gap: 2.15rem;
  align-items: start;
}

.memory-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  min-height: clamp(42rem, 58vw, 50rem);
  padding: clamp(2rem, 3vw, 2.45rem);
  border: 1px solid #efe5e8;
  border-radius: 1.45rem;
  background: #fff;
  box-shadow: 0 1.4rem 3rem rgba(31, 26, 36, 0.035);
  align-content: start;
}

.memory-card,
.add-memory-card,
.privacy-note-card {
  border: 1px solid #efe5e8;
  border-radius: 1.45rem;
  background: #fff;
  box-shadow: 0 1.4rem 3rem rgba(31, 26, 36, 0.035);
}

.memory-card {
  overflow: hidden;
}

.memory-card:hover {
  box-shadow: 0 1.3rem 2.8rem rgba(31, 26, 36, 0.07);
}

.memory-image {
  aspect-ratio: 16 / 9;
  background: #f3eef0;
  overflow: hidden;
}

.memory-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-image-sunset {
  background:
    radial-gradient(circle at 72% 18%, #fff2b8 0 2.4rem, transparent 2.5rem),
    linear-gradient(160deg, #4b2b3d 0%, #c1694f 48%, #f5b264 100%);
}

.memory-image-paris {
  background:
    linear-gradient(90deg, rgba(31, 26, 36, 0.15) 0 12%, transparent 12% 88%, rgba(31, 26, 36, 0.15) 88%),
    linear-gradient(180deg, #cfe4f5 0%, #e7edf0 52%, #7c8d7f 100%);
}

.memory-image-dinner {
  background:
    radial-gradient(circle at 72% 60%, rgba(255, 213, 120, 0.75) 0 0.45rem, transparent 0.5rem),
    radial-gradient(circle at 28% 34%, rgba(255, 213, 120, 0.5) 0 0.35rem, transparent 0.4rem),
    linear-gradient(135deg, #1d1b21 0%, #5a3a35 58%, #b47955 100%);
}

.memory-image-winter {
  background: linear-gradient(180deg, #cdd7e3 0%, #f8fbfd 52%, #aab9c5 100%);
}

.memory-image-beach {
  background: linear-gradient(180deg, #9addf7 0%, #f7e3b8 55%, #1e9cc4 56%, #167fa4 100%);
}

.memory-image-mountain {
  background:
    linear-gradient(135deg, transparent 48%, #dbe8ef 49% 60%, transparent 61%),
    linear-gradient(180deg, #cde5f4 0%, #eaf0ee 50%, #5f8f8d 100%);
}

.memory-body {
  padding: 1rem 1.05rem 1.1rem;
}

.memory-body h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.08rem;
  line-height: 1.25;
}

.memory-body time {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-weight: 700;
}

.memory-meta {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.private-badge,
.memory-likes,
.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 800;
}

.category-badge {
  padding: 0.3rem 0.55rem;
  border-radius: 999px;
  color: var(--ink);
  background: #f7f3f5;
  font-size: 0.82rem;
}

.private-badge svg,
.memory-likes svg,
.privacy-note-card svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-likes {
  margin-left: auto;
  color: var(--red);
}

.memory-delete {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid #efe5e8;
  border-radius: 50%;
  color: var(--muted);
  background: #fff;
  cursor: pointer;
}

.memory-delete:hover {
  border-color: var(--red);
  color: var(--red);
  background: #fff0f2;
}

.memory-delete svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-sidebar {
  display: grid;
  gap: 1rem;
  position: sticky;
  top: 1.25rem;
}

.add-memory-card {
  position: relative;
  overflow: hidden;
  padding: 1.75rem;
  border-color: #f2d7dd;
  background: linear-gradient(180deg, #fff, #fffdfd);
  box-shadow: 0 1.4rem 3rem rgba(31, 26, 36, 0.04);
}

.add-memory-card h2 {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0 0 1.35rem;
  font-family: inherit;
  font-size: 1.25rem;
  line-height: 1.1;
}

.add-memory-card::after {
  content: "";
  position: absolute;
  top: 1.6rem;
  right: 1.7rem;
  width: 5.5rem;
  height: 2.6rem;
  border-top: 2px solid #ffd5dd;
  border-right: 2px solid #ffd5dd;
  border-radius: 100% 0 0 0;
  opacity: 0.75;
  pointer-events: none;
  transform: rotate(-8deg);
}

.memory-form-icon {
  display: grid;
  place-items: center;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
  box-shadow: 0 0.7rem 1.6rem rgba(230, 0, 35, 0.08);
}

.memory-form-icon svg {
  width: 1.3rem;
  height: 1.3rem;
  fill: currentColor;
  stroke: currentColor;
  stroke-width: 1.6;
}

.memory-upload {
  display: grid;
  place-items: center;
  min-height: 12.35rem;
  border: 1px dashed #ffb8c6;
  border-radius: 1.05rem;
  background: linear-gradient(180deg, #fff, #fff8fa);
  color: var(--muted);
  text-align: center;
  cursor: pointer;
  overflow: hidden;
}

.memory-upload img[hidden],
.memory-upload-copy[hidden] {
  display: none !important;
}

.add-memory-card.is-dragging .memory-upload,
.memory-upload:hover {
  border-color: var(--red);
}

.memory-upload input {
  display: none;
}

.memory-upload img {
  width: 100%;
  height: 100%;
  min-height: 9rem;
  object-fit: cover;
  display: block;
}

.memory-upload svg {
  width: 4.05rem;
  height: 4.05rem;
  margin-bottom: 0.7rem;
  fill: none;
  stroke: #ff9caf;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-upload strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 900;
}

.memory-upload small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-weight: 650;
}

.memory-upload small + small {
  margin-top: 0.2rem;
}

.memory-field {
  display: grid;
  gap: 0.45rem;
  margin-top: 0.95rem;
}

.memory-field span {
  color: var(--ink);
  font-weight: 800;
}

.memory-field input,
.memory-field select,
.memory-field textarea {
  width: 100%;
  border: 1px solid #f2d7dd;
  border-radius: 0.72rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  box-shadow: 0 0.75rem 1.7rem rgba(31, 26, 36, 0.025);
}

.memory-field input::placeholder,
.memory-field textarea::placeholder,
.settings-date-trigger #memory-date-display {
  color: #9c939f;
}

.memory-field input {
  min-height: 3.1rem;
  padding: 0 1rem;
}

.memory-field input[readonly] {
  cursor: pointer;
}

.memory-field select {
  min-height: 3.1rem;
  padding: 0 1rem;
}

.memory-field textarea {
  min-height: 5.2rem;
  padding: 0.8rem 0.9rem;
  resize: vertical;
}

.memory-field small {
  color: var(--muted);
  text-align: right;
}

.memory-grid > .memory-empty-card {
  display: flex;
  grid-column: 1 / -1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: clamp(36rem, 52vw, 45.25rem);
  padding: clamp(2.5rem, 5vw, 5rem);
  border: 1px dashed #ffc8d2;
  border-radius: 1.25rem;
  background: linear-gradient(180deg, #fff, #fffdfd);
  box-shadow: none;
  text-align: center;
}

.memory-empty-illustration {
  display: grid;
  place-items: center;
  width: 12.5rem;
  height: 11rem;
  margin-bottom: 1.2rem;
  color: #f23d61;
  filter: drop-shadow(0 1.3rem 1.5rem rgba(230, 0, 35, 0.12));
}

.memory-empty-illustration svg {
  width: 100%;
  height: 100%;
}

.memory-empty-illustration path {
  fill: #fff7f8;
  stroke: #ffc2cd;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-empty-illustration path:last-child {
  fill: #ff6f8a;
  stroke: #f23d61;
}

.memory-empty-card h2 {
  margin: 0;
  color: var(--ink);
  font-family: inherit;
  font-size: clamp(2rem, 3vw, 2.65rem);
  font-weight: 950;
  letter-spacing: 0;
}

.memory-empty-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 10rem;
  margin: 1rem 0 1.15rem;
}

.memory-empty-divider::before,
.memory-empty-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ffbac7;
}

.memory-empty-divider span {
  width: 0.65rem;
  height: 0.65rem;
  margin: 0 0.55rem;
  border-radius: 50%;
  background: #ff6b8d;
  transform: rotate(45deg);
}

.memory-empty-card p {
  margin: 0 0 2rem;
  color: var(--muted);
  font-size: 1.03rem;
  font-weight: 650;
  line-height: 1.55;
}

.memory-empty-card .save-memory-button {
  width: auto;
  min-width: 13.2rem;
  min-height: 3.9rem;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, #ff5d7d 0%, #e60023 78%);
  box-shadow: 0 1.1rem 2.2rem rgba(230, 0, 35, 0.18);
}

.memory-empty-card .save-memory-button svg,
.save-memory-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.memory-error {
  min-height: 1.2rem;
  margin: 0.75rem 0 0;
  color: var(--red);
  font-weight: 800;
}

.mini-date-popover {
  position: fixed;
  z-index: 2500;
  width: min(22rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid #f2d7dd;
  border-radius: 1.25rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1.5rem 5rem rgba(31, 26, 36, 0.12);
}

.mini-date-popover[hidden] {
  display: none;
}

.mini-date-header,
.mini-date-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.7rem;
}

.mini-date-title {
  margin: 0;
  font-weight: 900;
}

.mini-date-nav,
.mini-date-action {
  min-height: 2.25rem;
  border: 1px solid #f2d7dd;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.mini-date-nav {
  display: inline-grid;
  place-items: center;
  width: 2.25rem;
  padding: 0;
}

.mini-date-nav svg,
.mini-date-action svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mini-date-weekdays,
.mini-date-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.25rem;
}

.mini-date-weekdays {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.mini-date-grid {
  margin-top: 0.45rem;
}

.mini-date-day {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  border: 0;
  border-radius: 50%;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.mini-date-day:hover {
  background: #fff0f2;
}

.mini-date-day.is-muted {
  color: #9b929e;
}

.mini-date-day.is-sunday {
  color: var(--red);
}

.mini-date-day.is-today {
  box-shadow: inset 0 0 0 1px #e60023;
}

.mini-date-day.is-selected {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.8rem 1.6rem rgba(230, 0, 35, 0.22);
}

.mini-date-footer {
  margin: 0.9rem -1rem -1rem;
  padding: 0.8rem 1rem 0.95rem;
  border-top: 1px solid #f2d7dd;
}

.mini-date-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0 0.9rem;
  color: var(--red);
  font-weight: 900;
}

.mini-date-action.is-primary {
  min-width: 5rem;
  color: #fff;
  border-color: var(--red);
  background: var(--red);
}

.add-memory-card .save-memory-button {
  width: 100%;
  margin-top: 0.8rem;
}

.privacy-note-card {
  display: grid;
  grid-template-columns: auto 1fr;
  justify-content: center;
  gap: 0.45rem;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  text-align: center;
}

.privacy-note-card span {
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: #9a929d;
  background: transparent;
}

.privacy-note-card p {
  margin: 0;
  color: #8a818b;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
}

.privacy-note-card strong {
  display: inline;
  color: inherit;
}

.memory-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  padding: 1rem;
  background: rgba(31, 26, 36, 0.38);
}

.memory-modal[hidden] {
  display: none;
}

.memory-modal-card {
  width: min(100%, 26rem);
  padding: 1.5rem;
  border: 1px solid #efe5e8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1.5rem 4rem rgba(31, 26, 36, 0.18);
}

.memory-modal-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.35rem;
}

.memory-modal-card p {
  margin: 0.75rem 0 1.35rem;
  color: var(--muted);
  line-height: 1.5;
}

.memory-modal-card div {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
}

.modal-secondary,
.modal-danger {
  min-height: 2.8rem;
  padding: 0 1rem;
  border-radius: 0.65rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.modal-secondary {
  border: 1px solid #efe5e8;
  color: var(--ink);
  background: #fff;
}

.modal-danger {
  border: 0;
  color: #fff;
  background: var(--red);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1180px) {
  .memory-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: auto;
  }
}

@media (max-width: 940px) {
  .memories-top {
    grid-template-columns: 1fr;
  }

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

  .memory-sidebar {
    order: -1;
    position: static;
  }

  .memories-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .memory-sort,
  .memory-sort select {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .memories-shell {
    width: min(100% - 1rem, 38rem);
  }

  .memory-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .memory-filters button {
    width: 100%;
    justify-content: flex-start;
    padding: 0 0.9rem;
  }

  .memory-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
    border-radius: 1.15rem;
  }

  .memory-grid > .memory-empty-card {
    min-height: 29rem;
    padding: 2.2rem 1rem;
  }

  .memory-empty-illustration {
    width: 9rem;
    height: 8rem;
  }

  .add-memory-card {
    padding: 1.2rem;
  }
}

@media (max-width: 620px) {
  .memories-toolbar .memory-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    flex-wrap: initial;
    padding-bottom: 0;
  }

  .memories-toolbar .memory-filters button {
    flex: initial;
    min-width: 0;
  }
}

.events-page {
  background: #fffbfa;
}

.events-shell {
  width: min(88rem, calc(100% - 3rem));
  margin: 2rem auto 3rem;
}

.events-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.events-top h1 {
  margin: 0;
  font-size: clamp(2.3rem, 3vw, 3.2rem);
  line-height: 1;
}

.events-top p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.event-couple-card,
.next-event-card,
.event-card,
.add-event-card {
  border: 1px solid #efe5e8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(31, 26, 36, 0.03);
}

.event-couple-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  margin-top: 1.4rem;
  padding: 1.2rem 1.4rem;
}

.event-couple-card img {
  width: 5.2rem;
  height: 5.2rem;
  border-radius: 50%;
  object-fit: cover;
}

.event-couple-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.7rem;
}

.event-couple-card h2 span {
  color: var(--red);
}

.event-couple-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.private-default,
.event-private-note {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--muted);
  background: #f9f5f6;
  font-weight: 800;
}

.private-default {
  padding: 0.7rem 1rem;
  border-radius: 999px;
}

.private-default svg,
.event-private-note svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.next-event-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 1.5rem;
  margin-top: 1rem;
  padding: 1.35rem 1.8rem;
  border-color: rgba(230, 0, 35, 0.25);
}

.next-event-card small {
  color: var(--red);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.next-event-card h2 {
  margin: 0.45rem 0 0;
  font-family: inherit;
  font-size: 1.5rem;
}

.next-event-card p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.countdown {
  display: grid;
  grid-template-columns: repeat(3, auto);
  column-gap: 1.25rem;
  text-align: center;
}

.countdown strong {
  color: var(--red);
  font-size: 2rem;
}

.countdown span {
  grid-row: 2;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.events-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 25rem);
  gap: 2rem;
  margin-top: 1.3rem;
  align-items: start;
}

.events-search {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 3.75rem;
  margin: 1.45rem 0 1.35rem;
  padding: 0 1.3rem;
  border: 1px solid #f2d7dd;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.5rem rgba(31, 26, 36, 0.04);
}

.events-search svg {
  width: 1.3rem;
  height: 1.3rem;
  flex: 0 0 auto;
  fill: none;
  stroke: #6b5f6f;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.events-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 800;
}

.events-search input::placeholder {
  color: #8a7e8e;
}

.events-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.event-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.event-filters button,
.event-sort select {
  min-height: 2.75rem;
  border: 1px solid #efe5e8;
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
}

.event-filters button {
  padding: 0 1.05rem;
  cursor: pointer;
  box-shadow: 0 0.65rem 1.6rem rgba(31, 26, 36, 0.04);
}

.event-filters button.is-active {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.event-sort select {
  min-width: 11rem;
  padding: 0 1rem;
  border-radius: 0.6rem;
}

.event-list-panel {
  position: relative;
  display: grid;
  gap: 0.75rem;
  padding-left: 0;
}

.event-list-panel::before {
  display: none;
}

.event-card {
  display: grid;
  grid-template-columns: auto 5.2rem minmax(0, 1fr) auto auto auto auto;
  align-items: center;
  gap: 1.15rem;
  padding: 1.35rem 1.45rem;
  border-radius: 1rem;
  box-shadow: none;
}

.event-card + .event-card {
  margin-top: 0;
}

.event-card h3 {
  margin: 0;
  font-family: inherit;
  color: var(--ink);
  font-size: 1.08rem;
  font-weight: 900;
}

.event-card-main p,
.event-card-main small {
  display: block;
  margin: 0.3rem 0 0;
  color: var(--muted);
  font-weight: 700;
  line-height: 1.4;
}

.event-date-box {
  min-width: 4.8rem;
  padding-right: 1rem;
  border-right: 1px solid #efe5e8;
  text-align: center;
}

.event-date-box strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.55rem;
  line-height: 1;
}

.event-date-box span,
.event-date-box small {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  line-height: 1.15;
}

.event-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.35rem;
  padding: 0 0.85rem;
  border: 1px solid #f2d7dd;
  border-radius: 0.7rem;
  color: var(--red);
  background: #fff7f8;
  font-size: 0.85rem;
  font-weight: 900;
  white-space: nowrap;
}

.event-category-badge svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-category-badge.birthday {
  color: #d97706;
  border-color: #f8d79a;
  background: #fff7e8;
}

.event-category-badge.trip {
  color: #6d3ed8;
  border-color: #ded2ff;
  background: #f3efff;
}

.event-category-badge.custom,
.event-category-badge.personal {
  color: #0f83c9;
  border-color: #cfeaff;
  background: #eef8ff;
}

.event-category-badge.date_night,
.event-category-badge.holiday,
.event-category-badge.gift {
  color: #e60023;
  border-color: #f7d2d9;
  background: #fff3f5;
}

.event-countdown {
  color: var(--red);
  font-size: 0.9rem;
  font-weight: 900;
  white-space: nowrap;
}

.event-countdown.is-past {
  color: var(--muted);
}

.event-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.35rem;
}

.google-calendar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: 2.45rem;
  padding: 0 0.9rem;
  border: 1px solid #f2d7dd;
  border-radius: 999px;
  color: var(--red);
  background: #fff;
  box-shadow: 0 0.7rem 1.6rem rgba(31, 26, 36, 0.05);
  font-size: 0.88rem;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.google-calendar-button:hover {
  border-color: rgba(230, 0, 35, 0.45);
  background: #fff7f8;
  box-shadow: 0 1rem 2rem rgba(230, 0, 35, 0.1);
  transform: translateY(-1px);
}

.google-calendar-button svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.google-g {
  display: grid;
  place-items: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  color: #4285f4;
  background: #fff;
  font-family: Arial, sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  line-height: 1;
}

.event-empty-card {
  display: grid;
  place-items: center;
  min-height: 34rem;
  padding: 3rem 2rem;
  border: 1px solid #efe5e8;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 1.3rem 3rem rgba(31, 26, 36, 0.04);
  text-align: center;
}

.event-empty-art {
  display: grid;
  place-items: center;
  width: 13rem;
  height: 10.5rem;
  margin-bottom: 1.1rem;
  border-radius: 2rem;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 136, 158, 0.18), transparent 28%),
    radial-gradient(circle at 72% 65%, rgba(255, 225, 232, 0.7), transparent 34%),
    #fff9fb;
}

.event-empty-art svg {
  width: 7.3rem;
  height: 7.3rem;
  fill: none;
  stroke: #f06982;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
  filter: drop-shadow(0 0.8rem 1rem rgba(230, 0, 35, 0.12));
}

.event-empty-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.75rem;
  color: var(--ink);
}

.event-empty-card > p {
  max-width: 24rem;
  margin: 0.8rem auto 1.5rem;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.55;
}

.google-export-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  width: min(100%, 56rem);
  margin-top: 2rem;
  padding: 1.05rem 1.25rem;
  border: 1px solid #efe5e8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
  text-align: left;
}

.google-export-card > span {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
}

.google-export-card > span svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.google-export-card strong {
  display: block;
  color: var(--ink);
  font-size: 1rem;
}

.google-export-card p {
  margin: 0.25rem 0 0;
  color: var(--muted);
  font-weight: 700;
}

.event-icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
}

.event-icon svg {
  width: 1.7rem;
  height: 1.7rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.event-icon.anniversary,
.event-icon.first-date {
  color: #e60023;
  background: #fff0f2;
}

.event-icon.birthday {
  color: #d97706;
  background: #fff4e5;
}

.event-icon.trip {
  color: #7c3aed;
  background: #f2eaff;
}

.event-icon.custom,
.event-icon.personal {
  color: #1685c7;
  background: #eaf7ff;
}

.event-icon.date_night,
.event-icon.holiday,
.event-icon.gift {
  color: #e60023;
  background: #fff0f2;
}

.add-event-card {
  position: sticky;
  top: 1rem;
  padding: 1.5rem;
}

.add-event-card h2 {
  margin: 0 0 1.2rem;
  font-family: inherit;
  font-size: 1.45rem;
}

.event-private-note {
  width: 100%;
  justify-content: center;
  margin: 1rem 0 0;
  padding: 0.8rem 1rem;
  border-radius: 0.7rem;
}

@media (max-width: 980px) {
  .events-layout {
    grid-template-columns: 1fr;
  }

  .add-event-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .events-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .events-top,
  .events-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .event-couple-card,
  .next-event-card,
  .event-card {
    grid-template-columns: 1fr;
  }

  .event-date-box {
    width: 100%;
    padding-right: 0;
    padding-bottom: 0.75rem;
    border-right: 0;
    border-bottom: 1px solid #efe5e8;
    text-align: left;
  }

  .event-category-badge,
  .event-countdown {
    justify-self: start;
  }

  .events-search {
    margin-top: 1rem;
  }

  .event-card-actions {
    justify-content: stretch;
  }

  .google-export-card {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .google-calendar-button {
    width: 100%;
  }

  .countdown {
    justify-content: start;
  }
}

.gift-page {
  background: #fffbfa;
}

.gift-shell {
  width: min(94rem, calc(100% - 3rem));
  margin: 2rem auto 3rem;
}

.gift-top,
.gift-toolbar,
.gift-card-row {
  display: flex;
  align-items: center;
}

.gift-top {
  justify-content: space-between;
  gap: 1.25rem;
}

.gift-top h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.3vw, 3.4rem);
  line-height: 1;
}

.gift-top p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.gift-summary-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2rem 0 1.6rem;
}

.gift-summary-card,
.gift-card,
.add-gift-card {
  border: 1px solid #efe5e8;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
}

.gift-summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.gift-summary-icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
}

.gift-summary-icon svg,
.gift-date-pill svg,
.gift-icon-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift-summary-icon svg {
  width: 1.55rem;
  height: 1.55rem;
}

.gift-summary-card p,
.gift-summary-card small {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.gift-summary-card strong {
  display: block;
  margin: 0.3rem 0 0.15rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.gift-summary-card small {
  color: var(--muted);
}

.gift-summary-card:first-child small {
  color: var(--red);
}

.gift-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
  gap: 1.5rem;
  align-items: start;
}

.gift-toolbar {
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0;
}

.gift-toolbar button {
  min-height: 2.45rem;
  padding: 0 0.85rem;
  border: 1px solid #efe5e8;
  border-radius: 0.55rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.gift-toolbar button.is-active {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.gift-card {
  overflow: hidden;
}

.gift-card:hover {
  box-shadow: 0 1.3rem 2.8rem rgba(31, 26, 36, 0.075);
}

.gift-card-image {
  position: relative;
  display: flex;
  justify-content: flex-end;
  gap: 0.55rem;
  min-height: 12rem;
  padding: 0.75rem;
  background: #f7f2f3;
  overflow: hidden;
}

.gift-card-image::before,
.gift-card-image::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.gift-card-image::before {
  inset: auto 12% -18% 10%;
  height: 48%;
  background: rgba(255, 255, 255, 0.45);
}

.gift-card-image::after {
  right: 12%;
  bottom: 18%;
  width: 4.2rem;
  height: 4.2rem;
  background: rgba(255, 255, 255, 0.55);
  box-shadow: -6rem -2rem 0 rgba(255, 255, 255, 0.35);
}

.gift-art-cases {
  background: linear-gradient(135deg, #25242a 0 34%, #f7d7cf 34% 64%, #f5efe9 64%);
}

.gift-art-spa {
  background: linear-gradient(135deg, #f9efe4, #e4c7a9 56%, #fff6ea);
}

.gift-art-book {
  background: linear-gradient(135deg, #f4efe7, #ffffff 40%, #d2b28a);
}

.gift-art-tickets {
  background: linear-gradient(135deg, #1f1a24, #7a3157 48%, #f6b15e);
}

.gift-art-letter {
  background: linear-gradient(135deg, #8a5d36, #f1dfc3 45%, #5e3c24);
}

.gift-art-necklace {
  background: radial-gradient(circle at 50% 40%, #fff 0 10%, transparent 11%), linear-gradient(135deg, #f7f3ef, #d9d3cf);
}

.gift-art-default {
  background: linear-gradient(135deg, #fff0f2, #fff, #f1f7f4);
}

.gift-icon-button {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(239, 229, 232, 0.9);
  border-radius: 50%;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 0.7rem 1.5rem rgba(31, 26, 36, 0.08);
  cursor: pointer;
}

.gift-icon-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

.gift-icon-button.is-favorite {
  color: var(--red);
}

.gift-icon-button.is-favorite svg {
  fill: currentColor;
}

.gift-card-body {
  padding: 1rem;
}

.gift-card-body h2 {
  margin: 0 0 0.85rem;
  font-family: inherit;
  font-size: 1.12rem;
}

.gift-card-row {
  justify-content: space-between;
  gap: 0.8rem;
  margin-top: 0.65rem;
}

.gift-category-pill,
.gift-status-chip,
.gift-date-pill {
  display: inline-flex;
  align-items: center;
  min-height: 1.7rem;
  border-radius: 0.45rem;
  font-size: 0.82rem;
  font-weight: 800;
}

.gift-category-pill {
  padding: 0 0.65rem;
}

.gift-category-pill.couple-items,
.gift-category-pill.jewelry {
  color: #6d42a3;
  background: #f1e9ff;
}

.gift-category-pill.experience {
  color: #0f766e;
  background: #e7f6f1;
}

.gift-category-pill.memory-gift {
  color: #7c3aed;
  background: #f1e9ff;
}

.gift-category-pill.date-idea,
.gift-category-pill.tech {
  color: #2563eb;
  background: #eaf1ff;
}

.gift-category-pill.diy {
  color: #9a5b00;
  background: #fff2d8;
}

.gift-category-pill.flowers,
.gift-category-pill.clothes {
  color: #db2777;
  background: #fde7f1;
}

.gift-category-pill.custom {
  color: #6b5f6f;
  background: #f1eef1;
}

.gift-price {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.gift-date-pill {
  gap: 0.45rem;
  max-width: 70%;
  padding: 0 0.65rem;
  color: #0f4d87;
  border: 1px dashed #cfdce8;
  background: #fbfdff;
}

.gift-date-pill svg {
  width: 1rem;
  height: 1rem;
}

.gift-status-chip {
  padding: 0 0.6rem;
  white-space: nowrap;
}

.gift-status-chip.idea {
  color: #2563eb;
  background: #eaf1ff;
}

.gift-status-chip.planned {
  color: #9a5b00;
  background: #fff2d8;
}

.gift-status-chip.bought {
  color: #0f766e;
  background: #e7f6f1;
}

.add-gift-card {
  position: sticky;
  top: 1rem;
  padding: 1.5rem;
}

.add-gift-card h2 {
  margin: 0 0 1.2rem;
  font-family: inherit;
  font-size: 1.45rem;
}

.gift-privacy-card {
  margin-top: 1rem;
}

@media (max-width: 1120px) {
  .gift-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .gift-layout {
    grid-template-columns: 1fr;
  }

  .add-gift-card {
    position: static;
  }
}

@media (max-width: 720px) {
  .gift-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .gift-top {
    align-items: stretch;
    flex-direction: column;
  }

  .gift-summary-grid,
  .gift-grid {
    grid-template-columns: 1fr;
  }
}

.gift-checklist-shell .gift-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.gift-checklist-shell .gift-summary-card:first-child small {
  color: var(--muted);
}

.gift-checklist-shell .gift-summary-card:last-child small {
  color: var(--red);
}

.gift-controls {
  display: grid;
  grid-template-columns: minmax(16rem, 1fr) minmax(11.5rem, auto);
  grid-template-areas:
    "search sort"
    "filters filters";
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
  padding: 0.8rem;
  border: 1px solid #efe5e8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 0.8rem 1.8rem rgba(31, 26, 36, 0.028);
}

.gift-controls .gift-toolbar {
  grid-area: filters;
  grid-column: 1 / -1;
  padding-top: 0.75rem;
  border-top: 1px solid #f3ecef;
}

.gift-search {
  grid-area: search;
  position: relative;
  display: block;
}

.gift-search input,
.gift-sort select {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid #efe5e8;
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.gift-search input {
  padding: 0 1rem 0 3rem;
}

.gift-search svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.2rem;
  height: 1.2rem;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: translateY(-50%);
}

.gift-sort select {
  min-width: 11.5rem;
  padding: 0 1rem;
}

.gift-sort {
  grid-area: sort;
  justify-self: end;
}

.gift-checklist-card {
  padding: 1.25rem 1.25rem 0.8rem;
  border: 1px solid #efe5e8;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
  overflow-x: auto;
}

.gift-checklist-card h2 {
  margin: 0 0 1.25rem;
  font-family: inherit;
  font-size: 1.35rem;
}

.gift-table {
  min-width: 55rem;
}

.gift-table-head,
.gift-table-row {
  display: grid;
  grid-template-columns: 2.8rem 3.4rem minmax(12rem, 1.3fr) minmax(8rem, 0.8fr) minmax(9rem, 0.9fr) minmax(11rem, 1fr) minmax(6rem, 0.6fr) 5.2rem;
  align-items: center;
  column-gap: 0.8rem;
}

.gift-table-head {
  padding: 0 0.6rem 0.8rem;
  border-bottom: 1px solid #efe5e8;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 900;
}

.gift-table-row {
  min-height: 4.7rem;
  padding: 0.75rem 0.6rem;
  border-bottom: 1px solid #efe5e8;
  color: var(--ink);
}

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

.gift-table-row.is-given {
  background: linear-gradient(90deg, rgba(230, 0, 35, 0.035), transparent 46%);
}

.gift-table-row.is-given > strong {
  color: #6b5f6f;
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}

.gift-table-row time,
.gift-table-row [data-gift-event-text] {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.gift-check-input {
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  margin: 0;
  border: 1.5px solid #cfc7d2;
  border-radius: 50%;
  background: #fff;
  appearance: none;
  cursor: pointer;
}

.gift-check-input:checked {
  border-color: var(--red);
  background: var(--red);
}

.gift-check-input:checked::after {
  content: "";
  width: 0.55rem;
  height: 0.32rem;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(1px, -1px);
}

.gift-category-icon {
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
}

.gift-category-icon svg,
.gift-row-actions svg,
.create-event-button svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.gift-category-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.gift-category-icon.couple-items,
.gift-category-icon.jewelry {
  color: #6d42a3;
  background: #f1e9ff;
}

.gift-category-icon.experience {
  color: #c25235;
  background: #fff0eb;
}

.gift-category-icon.memory-gift {
  color: #7c3aed;
  background: #f1e9ff;
}

.gift-category-icon.date-idea,
.gift-category-icon.tech {
  color: #2563eb;
  background: #eaf1ff;
}

.gift-category-icon.diy {
  color: #0f766e;
  background: #e7f6f1;
}

.gift-category-icon.flowers,
.gift-category-icon.clothes {
  color: #db2777;
  background: #fde7f1;
}

.gift-category-icon.custom {
  color: #6b5f6f;
  background: #f1eef1;
}

.gift-status-chip.given {
  color: #0f766e;
  background: #e7f6f1;
}

.link-event-button {
  min-height: 2.25rem;
  padding: 0 0.8rem;
  border: 1px solid #efe5e8;
  border-radius: 0.55rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.link-event-button:hover {
  border-color: rgba(230, 0, 35, 0.4);
  color: var(--red);
}

.gift-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
}

.gift-row-actions button {
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.gift-row-actions button:hover {
  color: var(--red);
  background: #fff0f2;
}

.gift-row-actions svg {
  width: 1.15rem;
  height: 1.15rem;
}

.create-event-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
  min-height: 2.9rem;
  margin-top: 0.85rem;
  border: 1px solid #efe5e8;
  border-radius: 0.7rem;
  color: var(--ink);
  background: #fff;
  font-weight: 900;
  text-decoration: none;
}

.create-event-button:hover {
  border-color: rgba(230, 0, 35, 0.35);
  color: var(--red);
}

.create-event-button svg {
  width: 1.1rem;
  height: 1.1rem;
}

@media (max-width: 1120px) {
  .gift-checklist-shell .gift-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .gift-controls {
    grid-template-columns: 1fr minmax(11.5rem, auto);
    grid-template-areas:
      "search sort"
      "filters filters";
  }

  .gift-toolbar {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  .gift-checklist-shell .gift-summary-grid {
    grid-template-columns: 1fr;
  }

  .gift-checklist-card {
    padding: 1rem 0.85rem 0.7rem;
  }

  .gift-controls {
    grid-template-columns: 1fr;
    grid-template-areas:
      "search"
      "sort"
      "filters";
  }

  .gift-sort {
    justify-self: stretch;
  }
}

.milestone-page {
  background: #fffbfa;
}

.milestone-shell {
  width: min(94rem, calc(100% - 3rem));
  margin: 2rem auto 3rem;
}

.milestone-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
}

.milestone-top h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.3vw, 3.4rem);
  line-height: 1;
}

.milestone-top p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.15rem;
}

.milestone-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.1rem;
  margin: 2rem 0 1.6rem;
}

.milestone-summary-card,
.milestone-list-card,
.add-milestone-card,
.milestone-next-card {
  border: 1px solid #efe5e8;
  border-radius: 1.1rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
}

.milestone-summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 1.25rem;
}

.milestone-summary-card span,
.milestone-icon {
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.milestone-summary-card > span {
  width: 3.6rem;
  height: 3.6rem;
  color: var(--red);
  background: #fff0f2;
}

.milestone-summary-card svg,
.milestone-icon svg,
.milestone-status-dot svg,
.milestone-reminder svg,
.milestone-more svg,
.milestone-next-card svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.milestone-summary-card svg {
  width: 1.55rem;
  height: 1.55rem;
}

.milestone-summary-card p,
.milestone-summary-card small {
  margin: 0;
  color: var(--muted);
  font-weight: 700;
}

.milestone-summary-card strong {
  display: block;
  margin-top: 0.25rem;
  color: var(--ink);
  font-size: 1.1rem;
}

.milestone-summary-card:nth-child(2) small {
  color: var(--red);
}

.milestone-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 25rem);
  gap: 1.5rem;
  align-items: start;
}

.milestone-list-card {
  padding: 1.35rem;
}

.milestone-list-card h2,
.add-milestone-card h2,
.milestone-next-card h2 {
  margin: 0 0 1.15rem;
  font-family: inherit;
  font-size: 1.35rem;
}

.milestone-controls {
  display: grid;
  grid-template-columns: minmax(14rem, 18rem) minmax(0, 1fr) minmax(10.5rem, auto);
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.milestone-search {
  position: relative;
}

.milestone-search input,
.milestone-sort select {
  width: 100%;
  min-height: 2.6rem;
  border: 1px solid #efe5e8;
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 700;
}

.milestone-search input {
  padding: 0 1rem 0 3rem;
}

.milestone-search svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1.15rem;
  height: 1.15rem;
  color: var(--muted);
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  transform: translateY(-50%);
}

.milestone-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.milestone-toolbar button {
  min-height: 2.45rem;
  padding: 0 0.85rem;
  border: 1px solid #efe5e8;
  border-radius: 0.55rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.milestone-toolbar button.is-active {
  border-color: var(--red);
  color: #fff;
  background: var(--red);
}

.milestone-sort select {
  min-width: 10.5rem;
  padding: 0 1rem;
}

.milestone-table {
  border-top: 1px solid #efe5e8;
}

.milestone-row {
  display: grid;
  grid-template-columns: 2.6rem 3.7rem minmax(13rem, 1fr) minmax(7rem, 0.55fr) minmax(6.5rem, auto) 2.5rem 2.2rem;
  align-items: center;
  gap: 0.9rem;
  min-height: 4.5rem;
  padding: 0.7rem 0.25rem;
  border-bottom: 1px solid #efe5e8;
}

.milestone-row strong,
.milestone-row small {
  display: block;
}

.milestone-row small,
.milestone-days {
  color: var(--muted);
  font-weight: 700;
}

.milestone-status-dot {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
}

.milestone-status-dot.is-empty {
  border: 1.5px solid #cfc7d2;
  background: #fff;
}

.milestone-status-dot svg {
  width: 1rem;
  height: 1rem;
}

.milestone-icon {
  width: 3rem;
  height: 3rem;
  color: var(--red);
  background: #fff0f2;
}

.milestone-icon.flag,
.milestone-icon.cake {
  color: #7c3aed;
  background: #f1e9ff;
}

.milestone-icon.custom {
  color: #c25235;
  background: #fff0eb;
}

.milestone-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}

.milestone-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.milestone-chip {
  display: inline-flex;
  align-items: center;
  min-height: 1.8rem;
  padding: 0 0.75rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 900;
  white-space: nowrap;
}

.milestone-chip.completed {
  color: #0f766e;
  background: #e7f6f1;
}

.milestone-chip.upcoming {
  color: #2563eb;
  background: #eaf1ff;
}

.milestone-chip.custom {
  color: #c2410c;
  background: #fff0e6;
}

.milestone-reminder,
.milestone-more {
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border: 0;
  border-radius: 50%;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.milestone-reminder:hover,
.milestone-more:hover {
  color: var(--red);
  background: #fff0f2;
}

.milestone-reminder svg,
.milestone-more svg {
  width: 1.15rem;
  height: 1.15rem;
}

.milestone-footnote {
  margin: 0.85rem 0 0;
  color: var(--muted);
  font-size: 0.9rem;
  font-style: italic;
}

.add-milestone-card,
.milestone-next-card {
  padding: 1.35rem;
}

.milestone-sidebar {
  display: grid;
  gap: 1rem;
}

.milestone-next-card {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
}

.milestone-next-card h2 {
  grid-column: 1 / -1;
}

.milestone-progress {
  display: grid;
  place-items: center;
  width: 5.4rem;
  height: 5.4rem;
  border-radius: 50%;
  background: conic-gradient(var(--red) 18%, #efe5e8 0);
}

.milestone-progress span {
  display: grid;
  place-items: center;
  width: 4.3rem;
  height: 4.3rem;
  border-radius: 50%;
  background: #fff;
  font-weight: 900;
}

.milestone-next-card strong,
.milestone-next-card small {
  display: block;
}

.milestone-next-card small {
  color: var(--muted);
}

.milestone-next-card button {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.45rem;
  border: 1px solid rgba(230, 0, 35, 0.35);
  border-radius: 0.7rem;
  color: var(--red);
  background: #fff;
  font: inherit;
  font-weight: 900;
}

.milestone-next-card button svg {
  width: 1rem;
  height: 1rem;
}

@media (max-width: 1120px) {
  .milestone-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 840px) {
  .milestone-controls {
    grid-template-columns: 1fr;
  }

  .milestone-list-card {
    overflow-x: auto;
  }

  .milestone-table {
    min-width: 54rem;
  }
}

@media (max-width: 720px) {
  .milestone-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .milestone-top {
    align-items: stretch;
    flex-direction: column;
  }

  .milestone-summary-grid {
    grid-template-columns: 1fr;
  }
}

.settings-page {
  background: #fffbfa;
}

.settings-shell {
  width: min(94rem, calc(100% - 3rem));
  margin: 2rem auto 3rem;
}

.settings-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.settings-top h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.3vw, 3.4rem);
  line-height: 1;
}

.settings-top p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.12rem;
}

.settings-save-top,
.settings-primary-button,
.settings-primary-wide {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  border: 0;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.settings-save-top,
.settings-primary-wide {
  padding: 0 1.5rem;
}

.settings-save-top svg,
.settings-primary-button svg,
.notifications-save-button svg,
.settings-primary-wide svg,
.settings-outline-button svg,
.settings-outline-red svg,
.settings-outline-wide svg,
.settings-delete-button svg,
.settings-left svg,
.settings-side-icon svg,
.settings-segmented svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-primary-button,
.notifications-save-button {
  min-width: 14.6rem;
  min-height: 3.8rem;
  padding: 0 1.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #ff6b8d, var(--red));
  color: #fff;
  box-shadow: 0 1rem 2.4rem rgba(230, 0, 35, 0.18);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.settings-primary-button:disabled,
.notifications-save-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.settings-layout {
  display: grid;
  grid-template-columns: minmax(13rem, 18rem) minmax(0, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.settings-left,
.settings-card {
  border: 1px solid #efe5e8;
  border-radius: 1.2rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
}

.settings-left {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.4rem;
  padding: 1.5rem 0.7rem;
}

.settings-left a {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 3.75rem;
  padding: 0 1rem;
  border-radius: 0.65rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}

.settings-left a.is-active,
.settings-left a:hover {
  color: var(--red);
  background: #fff0f2;
}

.settings-left a.is-active {
  box-shadow: inset 3px 0 0 var(--red);
}

.settings-main,
.settings-right {
  display: grid;
  gap: 1rem;
}

.settings-right {
  grid-column: 2;
  position: static;
}

.settings-card {
  padding: 1.55rem;
}

.settings-details-card {
  padding: clamp(1.8rem, 3vw, 2.8rem);
}

.settings-main .settings-card {
  border-radius: 1.35rem;
  box-shadow: 0 1.5rem 4.5rem rgba(31, 26, 36, 0.055);
}

.settings-card h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.35rem;
  line-height: 1.2;
}

.settings-details-card h2 {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.settings-details-card h2::before {
  content: "\2661";
  color: #ff9eb1;
  font-family: inherit;
  font-size: 0.85em;
  line-height: 1;
}

.settings-card-subtitle {
  margin: 0.38rem 0 0;
  color: var(--muted);
  font-weight: 650;
}

.settings-details-card .settings-card-subtitle {
  margin-top: 0.85rem;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
}

.settings-card p {
  color: var(--muted);
  line-height: 1.45;
}

.settings-details-grid {
  display: grid;
  grid-template-columns: minmax(12rem, 17rem) minmax(0, 1fr);
  gap: clamp(2rem, 4vw, 4rem);
  align-items: start;
  margin-top: clamp(2rem, 3.5vw, 3.1rem);
}

.settings-photo-block {
  display: grid;
  justify-items: center;
  gap: 1rem;
  align-content: start;
}

.settings-photo-block img {
  width: min(14rem, 100%);
  height: auto;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #fff0f2;
  border: 0.75rem solid #fff;
  box-shadow:
    0 0 0 1.05rem #fff0f2,
    0 1.25rem 3rem rgba(230, 0, 35, 0.12);
}

.settings-photo-block small {
  color: var(--muted);
  font-size: 0.94rem;
}

.settings-upload-button {
  min-height: 3.35rem;
  padding: 0 1.5rem;
  border: 1px solid #f2d7dd;
  border-radius: 0.95rem;
  color: var(--red);
  background: #fff;
  box-shadow: 0 0.9rem 2.2rem rgba(31, 26, 36, 0.045);
}

.settings-upload-button:hover {
  color: var(--red-dark);
  background: #fff7f8;
}

.settings-fields-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.5rem, 3vw, 2.6rem) clamp(1.4rem, 3vw, 2.4rem);
}

.settings-details-card .memory-field {
  margin-top: 0;
}

.settings-details-card .memory-field input {
  min-height: 4.55rem;
  padding: 0 1.45rem;
  border-color: #ead8dc;
  border-radius: 1.1rem;
  font-size: 1.18rem;
  box-shadow: 0 1rem 2.8rem rgba(31, 26, 36, 0.035);
}

.settings-details-card .memory-field > span {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.55rem;
  font-size: 1.08rem;
  font-weight: 900;
}

.settings-details-card .memory-field > span svg {
  width: 1.35rem;
  height: 1.35rem;
  fill: none;
  stroke: var(--red);
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-date-field {
  position: relative;
}

.settings-date-wide {
  grid-column: 1 / -1;
  margin-top: 0.3rem;
}

.settings-date-trigger {
  display: grid;
  grid-template-columns: 1.35rem minmax(0, 1fr) 1.35rem;
  align-items: center;
  gap: 1.15rem;
  width: 100%;
  min-height: 4.55rem;
  padding: 0 1.45rem;
  border: 1px solid #ead8dc;
  border-radius: 1.1rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
  font-size: 1.18rem;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1rem 2.8rem rgba(31, 26, 36, 0.035);
}

.settings-date-trigger:hover,
.settings-date-trigger:focus-visible {
  border-color: var(--red);
  outline: 0;
  box-shadow: 0 0 0 0.24rem rgba(230, 0, 35, 0.06), 0 0.8rem 2.1rem rgba(31, 26, 36, 0.045);
}

.settings-date-trigger svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.45;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-date-trigger svg:first-child {
  color: var(--red);
}

.settings-date-trigger svg:last-child {
  justify-self: end;
}

.settings-date-popover {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 80;
  width: min(23rem, calc(100vw - 2rem));
  padding: 1.05rem;
  border: 1px solid #f2d7dd;
  border-radius: 1.2rem;
  color: var(--ink);
  background: #fff;
  box-shadow: 0 1.4rem 4rem rgba(31, 26, 36, 0.11);
}

.settings-date-popover[hidden] {
  display: none;
}

.settings-date-head {
  display: grid;
  grid-template-columns: 2.4rem 1fr 2.4rem;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.95rem;
}

.settings-date-head strong {
  color: var(--ink);
  font-size: 1.08rem;
  text-align: center;
}

.settings-date-nav {
  display: grid;
  place-items: center;
  width: 2.4rem;
  height: 2.4rem;
  border: 1px solid #f2d7dd;
  border-radius: 0.8rem;
  color: var(--ink);
  background: #fff;
  cursor: pointer;
}

.settings-date-nav:hover {
  color: var(--red);
  background: #fff0f2;
}

.settings-date-nav:disabled {
  color: #c8bdc4;
  background: #faf7f8;
  cursor: not-allowed;
}

.settings-date-nav svg {
  width: 1rem;
  height: 1rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-date-weekdays,
.settings-date-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 0.28rem;
}

.settings-date-weekdays {
  margin-bottom: 0.45rem;
}

.settings-date-weekdays span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 850;
  text-align: center;
}

.settings-date-day {
  display: grid;
  place-items: center;
  width: 2.42rem;
  height: 2.42rem;
  margin: 0 auto;
  border: 0;
  border-radius: 0.78rem;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.settings-date-day:hover {
  background: #fff0f2;
}

.settings-date-day.is-outside {
  color: #b1a7af;
}

.settings-date-day.is-today {
  color: var(--red);
  background: #fff7f8;
}

.settings-date-day.is-selected,
.settings-date-day.is-selected:hover {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.55rem 1.1rem rgba(230, 0, 35, 0.18);
}

.settings-date-day.is-disabled,
.settings-date-day.is-disabled:hover {
  color: #d5cdd2;
  background: transparent;
  box-shadow: none;
  cursor: not-allowed;
}

.memory-date-field .settings-date-trigger {
  min-height: 3rem;
  padding: 0 0.95rem;
  border-radius: 0.7rem;
  color: #958b96;
  font-size: 0.95rem;
  font-weight: 850;
  box-shadow: none;
}

.memory-date-field .settings-date-trigger.has-value {
  color: var(--ink);
}

.memory-date-field .settings-date-trigger span {
  color: inherit;
  font-weight: inherit;
}

.memory-date-field .settings-date-popover {
  width: min(21rem, calc(100vw - 2rem));
}

.settings-primary-button {
  min-width: 14.6rem;
  min-height: 3.8rem;
  margin-top: 1rem;
  margin-left: auto;
  padding: 0 1.7rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #ff6b8d, var(--red));
  box-shadow: 0 1rem 2.4rem rgba(230, 0, 35, 0.18);
  font-size: 1rem;
}

.settings-section-actions {
  display: flex;
  justify-content: flex-start;
  margin-top: 1.35rem;
}

.settings-section-actions .settings-primary-button {
  margin-top: 0;
  margin-left: 0;
}

.settings-theme-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.05rem 1.45rem;
  margin-top: 1.15rem;
  padding-bottom: 1.35rem;
  border-bottom: 1px solid #efe5e8;
}

#appearance {
  padding: clamp(1.8rem, 3vw, 2.8rem);
}

#appearance h2 {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 900;
}

.settings-heading-icon {
  display: grid;
  place-items: center;
  width: 3.45rem;
  height: 3.45rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
  box-shadow: 0 0.8rem 1.9rem rgba(230, 0, 35, 0.08);
}

.settings-heading-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

#appearance .settings-card-subtitle {
  margin-top: 0.85rem;
  padding-left: 4.5rem;
  font-size: clamp(1.05rem, 1.5vw, 1.25rem);
}

#appearance .settings-theme-grid {
  gap: clamp(1.8rem, 3vw, 2.6rem) clamp(1.6rem, 3vw, 2.8rem);
  margin-top: clamp(1.9rem, 3vw, 2.8rem);
  padding-bottom: clamp(1.8rem, 3vw, 2.3rem);
}

.settings-theme {
  position: relative;
  display: grid;
  gap: 0.7rem;
  border: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

#appearance .settings-theme {
  gap: 1rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 900;
  text-align: center;
}

.settings-theme.is-selected::after {
  content: "\2713";
  position: absolute;
  top: -0.55rem;
  right: -0.55rem;
  display: grid;
  place-items: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 0.9rem;
}

#appearance .settings-theme.is-selected::after {
  top: -0.75rem;
  right: -0.75rem;
  width: 2.25rem;
  height: 2.25rem;
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.15rem;
  box-shadow: 0 0.8rem 1.7rem rgba(230, 0, 35, 0.22);
}

.theme-swatch {
  position: relative;
  overflow: hidden;
  display: grid;
  align-content: center;
  gap: 0.25rem;
  min-height: 5.25rem;
  padding: 0.8rem;
  border: 1px solid #efe5e8;
  border-radius: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}

#appearance .theme-swatch {
  min-height: 7.2rem;
  padding: 1.25rem 1.05rem;
  border-color: #f2d7dd;
  border-radius: 1.05rem;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.42),
    0 1rem 2.4rem rgba(31, 26, 36, 0.045);
}

#appearance .settings-theme.is-selected .theme-swatch {
  border-color: var(--red);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.38),
    0 1.1rem 2.7rem rgba(230, 0, 35, 0.09);
}

.settings-theme.is-selected .theme-swatch {
  border-color: var(--red);
}

.theme-swatch b,
.theme-swatch small {
  display: block;
  text-align: center;
}

.theme-swatch i {
  color: var(--red);
  font-style: normal;
}

.theme-swatch small {
  color: var(--muted);
  font-size: 0.75rem;
}

#appearance .theme-swatch b {
  position: relative;
  z-index: 1;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1rem, 1.6vw, 1.38rem);
  font-weight: 500;
}

#appearance .theme-swatch small {
  position: relative;
  z-index: 1;
  margin-top: 0.25rem;
  color: #625867;
  font-size: clamp(0.82rem, 1vw, 1rem);
  font-weight: 800;
}

.theme-swatch.white {
  background:
    radial-gradient(circle at 18% 35%, #ffdce4 0 0.45rem, transparent 0.48rem),
    radial-gradient(circle at 86% 38%, #ffdce4 0 0.45rem, transparent 0.48rem),
    radial-gradient(ellipse at 10% 104%, #fff0f2 0 3.3rem, transparent 3.4rem),
    radial-gradient(ellipse at 86% 108%, #fff0f2 0 4rem, transparent 4.1rem),
    linear-gradient(180deg, #ffffff 0%, #fffdfd 100%);
}

.theme-swatch.blush {
  background:
    radial-gradient(circle at 18% 34%, #ffd2dd 0 0.42rem, transparent 0.45rem),
    radial-gradient(circle at 84% 33%, #ffd2dd 0 0.42rem, transparent 0.45rem),
    radial-gradient(circle at 88% 70%, rgba(255, 255, 255, 0.58) 0 1.05rem, transparent 1.1rem),
    radial-gradient(ellipse at 18% 105%, #ffd9e2 0 3.9rem, transparent 4rem),
    radial-gradient(ellipse at 82% 103%, #ffdfe7 0 5rem, transparent 5.1rem),
    linear-gradient(160deg, #fff8f9 0%, #ffe9ee 100%);
}

.theme-swatch.midnight {
  color: #fff;
  background:
    radial-gradient(circle at 15% 28%, #ffd36b 0 0.12rem, transparent 0.15rem),
    radial-gradient(circle at 78% 22%, #ffd36b 0 0.12rem, transparent 0.15rem),
    radial-gradient(circle at 88% 18%, #ffd978 0 0.6rem, transparent 0.62rem),
    radial-gradient(ellipse at 7% 106%, #23263f 0 3.8rem, transparent 3.9rem),
    radial-gradient(ellipse at 86% 106%, #30304d 0 4.4rem, transparent 4.5rem),
    linear-gradient(180deg, #08142a 0%, #11172a 58%, #322a48 100%);
}

.theme-swatch.midnight small {
  color: rgba(255, 255, 255, 0.82);
}

.theme-swatch.ocean {
  background:
    radial-gradient(circle at 18% 45%, rgba(35, 125, 167, 0.12) 0 0.44rem, transparent 0.47rem),
    radial-gradient(circle at 86% 35%, rgba(35, 125, 167, 0.12) 0 0.48rem, transparent 0.51rem),
    radial-gradient(ellipse at 14% 84%, rgba(255, 255, 255, 0.45) 0 2rem, transparent 2.05rem),
    radial-gradient(ellipse at 83% 84%, rgba(255, 255, 255, 0.45) 0 2.5rem, transparent 2.55rem),
    linear-gradient(175deg, #e5f8fd 0 56%, #58b6d5 57% 100%);
}

.theme-swatch.forest {
  background:
    radial-gradient(circle at 18% 30%, rgba(76, 118, 80, 0.34) 0 0.25rem, transparent 0.28rem),
    radial-gradient(circle at 82% 31%, rgba(76, 118, 80, 0.34) 0 0.25rem, transparent 0.28rem),
    radial-gradient(ellipse at 18% 102%, rgba(71, 119, 76, 0.34) 0 3rem, transparent 3.1rem),
    radial-gradient(ellipse at 84% 102%, rgba(71, 119, 76, 0.36) 0 3.6rem, transparent 3.7rem),
    linear-gradient(180deg, #fbf8df 0 54%, #b6cfad 55% 100%);
}

.theme-swatch.lavender {
  background:
    radial-gradient(circle at 84% 31%, rgba(129, 84, 183, 0.22) 0 0.72rem, transparent 0.76rem),
    radial-gradient(ellipse at 18% 104%, #c8a0e5 0 3.6rem, transparent 3.7rem),
    radial-gradient(ellipse at 84% 104%, #d7b3ec 0 4.6rem, transparent 4.7rem),
    linear-gradient(180deg, #f7e2f9 0 58%, #d7b3ec 59% 100%);
}

.theme-swatch.ocean i,
.theme-swatch.ocean b,
.theme-swatch.forest i,
.theme-swatch.forest b,
.theme-swatch.lavender i,
.theme-swatch.lavender b {
  color: inherit;
}

.theme-swatch.ocean b {
  color: #237da7;
}

.theme-swatch.forest b {
  color: #4c7650;
}

.theme-swatch.lavender b {
  color: #8154b7;
}

.settings-toggle-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0;
  color: var(--ink);
  font-weight: 800;
}

.settings-toggle-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  margin-top: 1.25rem;
}

#appearance .settings-toggle-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1.4rem, 3vw, 2.2rem);
  margin-top: 1.8rem;
  padding-top: 1.7rem;
  border-top: 1px solid #efe5e8;
}

#appearance .settings-toggle-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.1rem;
  align-items: center;
}

.settings-toggle-icon {
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
  box-shadow: 0 0.85rem 1.9rem rgba(230, 0, 35, 0.08);
}

.settings-toggle-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.settings-toggle-row span {
  display: grid;
  gap: 0.16rem;
}

.settings-toggle-copy {
  display: grid;
  gap: 0.25rem;
}

.settings-toggle-row b {
  font-size: 0.94rem;
}

#appearance .settings-toggle-row b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  font-weight: 900;
}

.settings-toggle-row small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

#appearance .settings-toggle-row small {
  font-size: 1rem;
}

.settings-toggle-row input {
  appearance: none;
  position: relative;
  flex: 0 0 auto;
  width: 2.7rem;
  height: 1.45rem;
  border: 1px solid #ddd5da;
  border-radius: 999px;
  background: #f2eef0;
  cursor: pointer;
}

#appearance .settings-toggle-row input {
  width: 3.25rem;
  height: 1.75rem;
}

.settings-toggle-row input::after {
  content: "";
  position: absolute;
  top: 0.14rem;
  left: 0.16rem;
  width: 1.04rem;
  height: 1.04rem;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0.1rem 0.35rem rgba(31, 26, 36, 0.18);
  transition: transform 0.18s ease;
}

#appearance .settings-toggle-row input::after {
  width: 1.26rem;
  height: 1.26rem;
  top: 0.17rem;
  left: 0.18rem;
}

.settings-toggle-row input:checked {
  border-color: var(--red);
  background: var(--red);
}

.settings-toggle-row input:checked::after {
  transform: translateX(1.23rem);
}

#appearance .settings-toggle-row input:checked::after {
  transform: translateX(1.42rem);
}

#appearance .settings-section-actions {
  margin-top: 2.05rem;
}

#privacy {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 3.6vw, 3.35rem);
  min-height: 29rem;
  background:
    radial-gradient(circle at 92% 15%, rgba(255, 228, 234, 0.72), transparent 13rem),
    radial-gradient(circle at 93% 90%, rgba(255, 228, 234, 0.62), transparent 12rem),
    #fff;
}

#privacy::before,
#privacy::after {
  content: "\2661";
  position: absolute;
  color: rgba(230, 0, 35, 0.15);
  font-family: Georgia, "Times New Roman", serif;
  pointer-events: none;
}

#privacy::before {
  top: 4.25rem;
  right: 5.25rem;
  font-size: 4.7rem;
  transform: rotate(-14deg);
}

#privacy::after {
  right: 4.8rem;
  bottom: 2.6rem;
  font-size: 5.5rem;
  transform: rotate(-17deg);
}

.settings-section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-bottom: clamp(1.8rem, 3vw, 2.9rem);
}

.settings-heading-icon-large {
  width: clamp(4.5rem, 7vw, 6.4rem);
  height: clamp(4.5rem, 7vw, 6.4rem);
  border: 0.45rem solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1rem 2.4rem rgba(230, 0, 35, 0.1),
    inset 0 0 0 1px #f5cbd5;
}

.settings-heading-icon-large svg {
  width: 2.3rem;
  height: 2.3rem;
}

#privacy .settings-section-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.18;
  letter-spacing: 0;
}

#privacy .settings-card-subtitle {
  margin-top: 0.75rem;
  padding-left: 0;
  color: #6b5f6f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.1rem, 1.9vw, 1.8rem);
}

#privacy .settings-visibility {
  position: relative;
  z-index: 1;
  grid-template-columns: 1fr;
  gap: 0.7rem;
  margin-top: 0;
}

#privacy .settings-visibility > span,
#privacy .memory-field > span {
  color: #15142a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 850;
}

#privacy .settings-segmented {
  min-height: 3.7rem;
  border-color: #f2d7dd;
  border-radius: 1.25rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.45);
}

#privacy .settings-segmented button {
  min-height: 3.7rem;
  gap: 0.55rem;
  border-color: #f2d7dd;
  color: #6b5f6f;
  background: transparent;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 800;
}

#privacy .settings-segmented button svg,
#privacy .settings-outline-red svg,
#privacy .settings-outline-button svg {
  width: 1.15rem;
  height: 1.15rem;
}

#privacy .settings-segmented button.is-active {
  color: var(--red);
  background:
    radial-gradient(circle at 50% 0%, rgba(230, 0, 35, 0.07), transparent 70%),
    #fff7f8;
  box-shadow:
    inset 0 0 0 1px rgba(230, 0, 35, 0.08),
    0 0.8rem 2rem rgba(230, 0, 35, 0.06);
}

#privacy .settings-public-link-field {
  position: relative;
  z-index: 1;
  margin-top: clamp(1.6rem, 3vw, 2.15rem);
}

#privacy .settings-copy-row {
  grid-template-columns: minmax(0, 1fr) minmax(10.5rem, auto);
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: stretch;
}

#privacy .settings-copy-row input {
  min-height: 3.75rem;
  border-color: #f2d7dd;
  border-radius: 1.2rem;
  color: #15142a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 750;
}

#privacy .settings-outline-red,
#privacy .settings-outline-button {
  min-height: 3.75rem;
  border-color: rgba(230, 0, 35, 0.32);
  border-radius: 1.2rem;
  color: var(--red);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.98rem;
  font-weight: 850;
  box-shadow: 0 1rem 2.2rem rgba(230, 0, 35, 0.035);
}

#privacy .settings-invite-row {
  position: relative;
  z-index: 1;
  grid-template-columns: minmax(0, 1fr) minmax(10.5rem, auto);
  gap: clamp(1rem, 2vw, 1.4rem);
  align-items: center;
  margin-top: clamp(1.45rem, 3vw, 2rem);
}

#privacy .settings-privacy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #15142a;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 800;
}

#privacy .settings-privacy-toggle input {
  flex: 0 0 auto;
  width: 3.1rem;
  height: 1.65rem;
  border: 0;
  background: var(--red);
  box-shadow: 0 0.8rem 1.8rem rgba(230, 0, 35, 0.18);
}

#privacy .settings-privacy-toggle input::after {
  width: 1.28rem;
  height: 1.28rem;
  top: 0.18rem;
  left: 0.18rem;
}

#privacy .settings-privacy-toggle input:checked::after {
  transform: translateX(1.45rem);
}

#privacy .settings-helper {
  position: relative;
  z-index: 1;
  margin: 0.9rem 0 0;
  color: #6b5f6f;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
}

#privacy .settings-section-actions {
  position: relative;
  z-index: 1;
  margin-top: clamp(2rem, 3vw, 2.7rem);
}

#privacy .settings-primary-button {
  min-width: 14.6rem;
  min-height: 3.8rem;
  border-radius: 0.95rem;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 900;
}

.settings-visibility {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
}

.settings-visibility > span,
.memory-field span {
  font-weight: 850;
}

.settings-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border: 1px solid #efe5e8;
  border-radius: 0.75rem;
  overflow: hidden;
}

.settings-segmented button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3rem;
  border: 0;
  border-right: 1px solid #efe5e8;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.settings-segmented button:last-child {
  border-right: 0;
}

.settings-segmented button.is-active {
  color: var(--red);
  background: #fff6f7;
}

.settings-copy-row,
.settings-invite-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  align-items: end;
}

.settings-outline-button,
.settings-outline-red,
.settings-outline-wide,
.settings-delete-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.55rem;
  border-radius: 0.55rem;
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

a.settings-outline-button,
a.settings-outline-red {
  text-decoration: none;
}

.settings-outline-button,
.settings-outline-wide {
  border: 1px solid #cfc6cc;
  color: var(--ink);
}

.settings-outline-red {
  border: 1px solid rgba(230, 0, 35, 0.45);
  color: var(--red);
  padding: 0 1rem;
}

.settings-outline-wide,
.settings-delete-button,
.settings-primary-wide {
  width: 100%;
}

a.settings-primary-wide,
a.settings-outline-wide {
  text-decoration: none;
}

.settings-delete-button {
  border: 1px solid rgba(230, 0, 35, 0.5);
  color: var(--red);
}

.settings-helper {
  margin: 0.7rem 0 0;
  font-size: 0.9rem;
}

.settings-side-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
}

.settings-side-card .settings-primary-wide,
.settings-side-card .settings-outline-wide {
  grid-column: 1 / -1;
}

.settings-side-icon {
  display: grid;
  place-items: center;
  width: 3.7rem;
  height: 3.7rem;
  border-radius: 50%;
  color: var(--ink);
  background: #fff0f2;
}

.settings-notifications-card .settings-toggle-row,
.settings-danger-card button + button {
  margin-top: 0.8rem;
}

.settings-notifications-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.65rem, 3vw, 2.55rem);
  background:
    radial-gradient(circle at 88% 88%, rgba(255, 228, 234, 0.76), transparent 11rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 251, 0.94));
}

.settings-notifications-card::before {
  content: "\2661";
  position: absolute;
  right: 1.35rem;
  bottom: 1.1rem;
  color: rgba(230, 0, 35, 0.15);
  font-family: Georgia, serif;
  font-size: clamp(2.6rem, 5vw, 4rem);
  pointer-events: none;
}

.settings-notifications-card::after {
  content: "\2726";
  position: absolute;
  right: 1.2rem;
  top: 1.5rem;
  color: rgba(230, 0, 35, 0.18);
  font-size: 1.35rem;
  pointer-events: none;
}

.notifications-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: clamp(1.45rem, 2.4vw, 2rem);
}

.notifications-heading-icon {
  display: grid;
  place-items: center;
  width: clamp(4.2rem, 6vw, 5.4rem);
  height: clamp(4.2rem, 6vw, 5.4rem);
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--red);
  background: radial-gradient(circle, #fff 48%, #fff1f4 49%, #fff 72%);
  border: 1px solid rgba(230, 0, 35, 0.12);
  box-shadow: 0 1.1rem 2.6rem rgba(230, 0, 35, 0.1);
}

.notifications-heading-icon svg,
.notifications-input-wrap svg,
.notifications-row-icon svg,
.notifications-save-button svg {
  width: 1.75rem;
  height: 1.75rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notifications-heading h2 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.18;
}

.notifications-heading p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.55vw, 1.35rem);
  line-height: 1.25;
}

.notifications-email-field {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.2rem;
  color: var(--ink);
  font-weight: 800;
}

.notifications-input-wrap {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4rem;
  padding: 0 1rem;
  border: 1px solid #f2cdd5;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.9);
  color: #958b98;
}

.notifications-input-wrap:focus-within {
  border-color: rgba(230, 0, 35, 0.55);
  box-shadow: 0 0 0 0.25rem rgba(230, 0, 35, 0.08);
}

.notifications-input-wrap input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.05rem;
  font-weight: 750;
}

.notifications-input-wrap input::placeholder {
  color: #958b98;
}

.notifications-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.8rem;
}

.notifications-toggle-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
  min-height: 5.3rem;
  padding: 1rem;
  border: 1px solid #f2d7dd;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.9rem 2.2rem rgba(31, 26, 36, 0.035);
  cursor: pointer;
}

.notifications-row-icon {
  display: grid;
  place-items: center;
  width: 3.35rem;
  height: 3.35rem;
  border-radius: 50%;
  background: #fff1f4;
  color: var(--red);
  box-shadow: 0 0.7rem 1.6rem rgba(230, 0, 35, 0.08);
}

.notifications-row-copy strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.12;
}

.notifications-row-copy small {
  display: block;
  margin-top: 0.28rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.25;
}

.notifications-toggle-card input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.notifications-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 4.2rem;
  height: 2.25rem;
  padding: 0.2rem;
  border-radius: 999px;
  background: #ded5da;
  box-shadow: inset 0 0 0 1px rgba(31, 26, 36, 0.08);
  transition: background 160ms ease;
}

.notifications-switch span {
  display: grid;
  place-items: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: #fff;
  color: #ff8aa0;
  font-size: 0.9rem;
  box-shadow: 0 0.45rem 1rem rgba(31, 26, 36, 0.16);
  transform: translateX(0);
  transition: transform 160ms ease, color 160ms ease;
}

.notifications-toggle-card input:checked + .notifications-switch {
  background: linear-gradient(135deg, #ff6b8d, var(--red));
}

.notifications-toggle-card input:checked + .notifications-switch span {
  color: var(--red);
  transform: translateX(1.95rem);
}

.notifications-reminder-options {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.95rem;
  margin-top: 1rem;
  padding: 1rem;
  border: 1px solid #f2d7dd;
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 0.9rem 2.2rem rgba(31, 26, 36, 0.035);
}

.notifications-option-copy strong {
  display: block;
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.12;
}

.notifications-option-copy small,
.notifications-preview {
  display: block;
  margin: 0.28rem 0 0;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.3;
}

.notifications-chip-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.notifications-chip input {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  opacity: 0;
  pointer-events: none;
}

.notifications-chip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 0.75rem;
  border: 1px solid #f2cdd5;
  border-radius: 0.9rem;
  color: var(--ink);
  background: #fff;
  font-weight: 850;
  font-size: 0.86rem;
  text-align: center;
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.notifications-chip input:focus-visible + span {
  box-shadow: 0 0 0 0.25rem rgba(230, 0, 35, 0.1);
}

.notifications-chip input:checked + span {
  border-color: rgba(230, 0, 35, 0.34);
  color: var(--red);
  background: #fff0f2;
  box-shadow: 0 0.65rem 1.5rem rgba(230, 0, 35, 0.08);
}

.notifications-save-button {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  min-height: 3.8rem;
  margin-top: 1.35rem;
  padding: 0 1.7rem;
  border: 0;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #ff6b8d, var(--red));
  color: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 1rem 2.4rem rgba(230, 0, 35, 0.18);
}

.notifications-save-button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.settings-danger-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.8rem, 3.2vw, 3rem);
  background:
    radial-gradient(circle at 94% 12%, rgba(255, 231, 236, 0.72), transparent 12rem),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 250, 251, 0.94));
}

.settings-danger-card::before {
  content: "\2661";
  position: absolute;
  right: 2rem;
  top: 1.9rem;
  color: rgba(230, 0, 35, 0.16);
  font-family: Georgia, serif;
  font-size: clamp(3rem, 6vw, 5.5rem);
  line-height: 1;
  pointer-events: none;
}

.settings-danger-card::after {
  content: "\2726  \2726";
  position: absolute;
  right: 8.5rem;
  top: 2.2rem;
  color: rgba(230, 0, 35, 0.16);
  font-size: 1.5rem;
  letter-spacing: 1.2rem;
  pointer-events: none;
}

.danger-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 1.35rem;
  margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.danger-heading-icon {
  display: grid;
  place-items: center;
  width: clamp(4.5rem, 7vw, 5.9rem);
  height: clamp(4.5rem, 7vw, 5.9rem);
  flex: 0 0 auto;
  border-radius: 50%;
  color: var(--red);
  background: radial-gradient(circle, #fff 48%, #fff1f4 49%, #fff 72%);
  border: 1px solid rgba(230, 0, 35, 0.12);
  box-shadow: 0 1.1rem 2.6rem rgba(230, 0, 35, 0.11);
}

.danger-heading-icon svg,
.danger-action-card svg {
  width: 1.95rem;
  height: 1.95rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.danger-heading h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  line-height: 1.18;
  color: var(--ink);
}

.danger-heading p {
  margin: 0.55rem 0 0;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.15rem, 2vw, 1.65rem);
  line-height: 1.2;
}

.danger-action-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1rem;
}

.settings-danger-card .danger-action-card + .danger-action-card {
  margin-top: 0;
}

.danger-action-card {
  width: 100%;
  min-height: clamp(5.8rem, 8vw, 7.1rem);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.5rem);
  padding: clamp(1.05rem, 2vw, 1.45rem) clamp(1.15rem, 2.2vw, 1.8rem);
  border: 1px solid #f2d7dd;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 1.1rem 3rem rgba(31, 26, 36, 0.055);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.danger-action-card:hover {
  transform: translateY(-1px);
  border-color: rgba(230, 0, 35, 0.24);
  box-shadow: 0 1.35rem 3.4rem rgba(31, 26, 36, 0.075);
}

.danger-action-card:disabled {
  cursor: wait;
  opacity: 0.72;
  transform: none;
}

.danger-action-icon {
  display: grid;
  place-items: center;
  width: clamp(3.9rem, 6vw, 4.65rem);
  height: clamp(3.9rem, 6vw, 4.65rem);
  border-radius: 50%;
  color: #51485d;
  background: #fff1f4;
}

.danger-action-copy strong {
  display: block;
  color: inherit;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.35rem, 2.3vw, 1.95rem);
  line-height: 1.05;
}

.danger-action-copy small {
  display: block;
  margin-top: 0.35rem;
  color: var(--muted);
  font-size: clamp(0.95rem, 1.25vw, 1.15rem);
  line-height: 1.25;
}

.danger-action-chevron {
  color: #6b5f6f;
}

.danger-action-card-delete {
  color: var(--red);
  border-color: rgba(230, 0, 35, 0.34);
  background: linear-gradient(90deg, rgba(255, 241, 244, 0.9), rgba(255, 255, 255, 0.95));
}

.danger-action-card-delete .danger-action-icon {
  color: var(--red);
  background: #ffe4ea;
}

.danger-action-card-delete .danger-action-copy small {
  color: #bd081c;
}

.settings-details-card h2,
#appearance h2,
#privacy .settings-section-heading h2,
.notifications-heading h2,
.danger-heading h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.5rem;
  font-weight: 900;
  line-height: 1.18;
  letter-spacing: 0;
}

.settings-details-card .settings-card-subtitle,
#appearance .settings-card-subtitle,
#privacy .settings-card-subtitle,
.notifications-heading p,
.danger-heading p {
  color: var(--muted);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: clamp(1.05rem, 1.7vw, 1.45rem);
  font-weight: 650;
  line-height: 1.35;
}

.danger-action-copy strong {
  font-size: clamp(1.25rem, 1.8vw, 1.45rem);
  line-height: 1.12;
}

.danger-action-copy small {
  font-size: 1rem;
  line-height: 1.35;
}

.notifications-row-copy strong {
  font-size: 1.08rem;
}

@media (max-width: 720px) {
  .danger-heading {
    align-items: flex-start;
  }

  .settings-danger-card::after {
    display: none;
  }

  .danger-action-card {
    grid-template-columns: auto 1fr;
  }

  .danger-action-chevron {
    display: none;
  }
}

.settings-toast {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 80;
  padding: 0.85rem 1rem;
  border-radius: 0.75rem;
  color: #fff;
  background: var(--ink);
  box-shadow: 0 1rem 2rem rgba(31, 26, 36, 0.18);
  font-weight: 900;
}

@media (max-width: 1500px) {
  .settings-layout {
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  }

  .settings-right {
    grid-column: 2;
    position: static;
  }

  .settings-right .settings-notifications-card,
  .settings-right .settings-danger-card {
    padding: clamp(1.8rem, 3.2vw, 3rem);
  }
}

@media (max-width: 1180px) {
  .settings-layout {
    grid-template-columns: minmax(12rem, 16rem) minmax(0, 1fr);
  }

  .settings-right {
    grid-column: 2;
    position: static;
  }
}

@media (max-width: 900px) {
  .settings-layout {
    grid-template-columns: 1fr;
  }

  .settings-left,
  .settings-right {
    position: static;
  }

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

  .settings-right {
    grid-column: auto;
  }
}

@media (max-width: 720px) {
  .settings-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .settings-top,
  .settings-invite-row,
  .settings-copy-row {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .settings-left,
  .settings-details-grid,
  .settings-fields-grid,
  .settings-theme-grid,
  .settings-toggle-grid,
  .settings-visibility {
    grid-template-columns: 1fr;
  }

  .notifications-heading,
  .danger-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .notifications-toggle-card {
    grid-template-columns: auto 1fr;
    align-items: start;
  }

  .notifications-switch {
    grid-column: 2;
    justify-self: start;
  }

  .notifications-save-button {
    width: 100%;
  }

  .notifications-chip-group {
    grid-template-columns: 1fr;
  }

  #appearance .settings-theme-grid,
  #appearance .settings-toggle-grid {
    grid-template-columns: 1fr;
  }

  #appearance .settings-card-subtitle {
    padding-left: 0;
  }

  #privacy {
    padding: 1.35rem;
  }

  #privacy::before,
  #privacy::after {
    opacity: 0.35;
  }

  #privacy .settings-section-heading {
    align-items: flex-start;
    gap: 0.9rem;
  }

  #privacy .settings-card-subtitle {
    font-family: Inter, system-ui, sans-serif;
    font-size: 1rem;
  }

  #privacy .settings-copy-row,
  #privacy .settings-invite-row {
    grid-template-columns: 1fr;
  }

  #privacy .settings-segmented {
    grid-template-columns: 1fr;
  }

  .settings-segmented {
    grid-template-columns: 1fr;
  }

  .settings-segmented button {
    border-right: 0;
    border-bottom: 1px solid #efe5e8;
  }

  .settings-segmented button:last-child {
    border-bottom: 0;
  }
}

.share-page {
  background: #fafafa;
}

.share-shell {
  width: min(88rem, calc(100% - 3rem));
  margin: 2rem auto 3rem;
}

.share-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.share-top h1 {
  margin: 0;
  font-size: clamp(2.4rem, 3.3vw, 3.35rem);
  line-height: 1;
}

.share-top p {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 28rem);
  gap: 1.3rem;
  align-items: start;
}

.share-left,
.share-sidebar {
  display: grid;
  gap: 1rem;
}

.share-sidebar {
  position: sticky;
  top: 1rem;
}

.share-panel {
  border: 1px solid #efe5e8;
  border-radius: 1.05rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
  padding: 1.45rem;
}

.share-panel h2 {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: 1.2rem;
}

.share-preview-stage {
  display: grid;
  place-items: center;
  min-height: 34rem;
  border: 1px solid #efe5e8;
  border-radius: 0.85rem;
  background:
    linear-gradient(135deg, rgba(230, 0, 35, 0.035), transparent 45%),
    #fffbfa;
  overflow: hidden;
}

.share-card-preview {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 0.55rem;
  width: min(29rem, 82%);
  aspect-ratio: 1;
  padding: 2rem;
  border: 1px solid #ead4d9;
  border-radius: 0.9rem;
  background: #fffdfd;
  box-shadow: 0 1.2rem 2.8rem rgba(31, 26, 36, 0.1);
  overflow: hidden;
  transform: scale(var(--share-zoom, 1));
  transition:
    aspect-ratio 0.2s ease,
    width 0.2s ease,
    transform 0.2s ease;
}

.share-card-preview[data-format="story"] {
  width: min(20rem, 58%);
  aspect-ratio: 9 / 16;
}

.share-card-preview[data-format="landscape"] {
  width: min(34rem, 88%);
  aspect-ratio: 1200 / 630;
  grid-template-columns: 1fr auto;
  align-content: center;
  column-gap: 1.3rem;
}

.share-card-preview[data-theme="midnight"],
.share-card-preview[data-background="dark"] {
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
  background: #1f2435;
}

.share-card-preview[data-theme="ocean"] {
  border-color: #cde8f0;
  background: #f6fcff;
}

.share-card-preview[data-theme="minimal"],
.share-card-preview[data-background="clean"] {
  background: #fff;
}

.share-card-watercolor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.9;
  background:
    radial-gradient(circle at 12% 10%, rgba(230, 0, 35, 0.12) 0 16%, transparent 28%),
    radial-gradient(circle at 94% 92%, rgba(230, 0, 35, 0.09) 0 20%, transparent 34%);
}

.share-card-preview[data-background="clean"] .share-card-watercolor,
.share-card-preview[data-background="dark"] .share-card-watercolor {
  display: none;
}

.share-card-preview > *:not(.share-card-watercolor) {
  position: relative;
  z-index: 1;
}

.share-card-preview h3 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1;
}

.share-card-preview h3 span,
.share-card-days,
.share-card-logo span {
  color: var(--red);
}

.share-card-preview[data-theme="midnight"] h3 span,
.share-card-preview[data-background="dark"] h3 span,
.share-card-preview[data-theme="midnight"] .share-card-days,
.share-card-preview[data-background="dark"] .share-card-days {
  color: #ff6f8b;
}

.share-card-preview[data-theme="ocean"] h3 span,
.share-card-preview[data-theme="ocean"] .share-card-days {
  color: #237da7;
}

.share-card-photo {
  width: clamp(7rem, 24vw, 11rem);
  aspect-ratio: 1;
  border: 0.45rem solid #fff5f7;
  border-radius: 50%;
  object-fit: cover;
}

.share-card-preview[data-format="landscape"] .share-card-photo {
  grid-column: 2;
  grid-row: 1 / span 5;
  width: clamp(8rem, 20vw, 12rem);
}

.share-card-preview[data-format="landscape"] h3,
.share-card-preview[data-format="landscape"] .share-card-label,
.share-card-preview[data-format="landscape"] .share-card-days,
.share-card-preview[data-format="landscape"] .share-card-since,
.share-card-preview[data-format="landscape"] .share-card-logo {
  grid-column: 1;
}

.share-card-label,
.share-card-since,
.share-card-logo {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.share-card-preview[data-theme="midnight"] .share-card-label,
.share-card-preview[data-background="dark"] .share-card-label,
.share-card-preview[data-theme="midnight"] .share-card-since,
.share-card-preview[data-background="dark"] .share-card-since,
.share-card-preview[data-theme="midnight"] .share-card-logo,
.share-card-preview[data-background="dark"] .share-card-logo {
  color: rgba(255, 255, 255, 0.82);
}

.share-card-days {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.2rem, 4vw, 3.1rem);
  line-height: 0.95;
}

.share-card-logo {
  margin-top: 0.65rem;
  color: var(--ink);
  font-size: 0.95rem;
}

.share-card-preview.is-photo-hidden .share-card-photo,
.share-card-preview.is-start-hidden .share-card-since,
.share-card-preview.is-logo-hidden .share-card-logo {
  display: none;
}

.share-zoom-controls {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.share-zoom-controls button,
.share-action-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.7rem;
  border: 1px solid #dfd7dc;
  border-radius: 0.55rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.share-zoom-controls button {
  min-width: 3.45rem;
  padding: 0 0.8rem;
}

.share-zoom-controls svg,
.share-action-primary svg,
.share-action-secondary svg,
.share-top-copy svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.share-text-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  min-height: 4.5rem;
  padding: 1rem;
  border: 1px solid #efe5e8;
  border-radius: 0.65rem;
}

.share-text-box p {
  margin: 0;
  line-height: 1.5;
}

.share-format-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.75rem;
}

.share-format {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.25rem;
  min-height: 7.7rem;
  padding: 0.9rem 0.7rem;
  border: 1px solid #efe5e8;
  border-radius: 0.75rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  cursor: pointer;
}

.share-format.is-selected {
  border-color: var(--red);
}

.share-format.is-selected::after {
  content: "\2713";
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  display: grid;
  place-items: center;
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 0.82rem;
  font-weight: 900;
}

.share-format strong,
.share-format small {
  display: block;
}

.share-format small {
  color: var(--muted);
  font-weight: 750;
}

.format-thumb {
  display: block;
  border: 1px solid #d7aeb6;
  border-radius: 0.25rem;
  background:
    radial-gradient(circle at 50% 34%, #e3bdc4 0 0.58rem, transparent 0.62rem),
    linear-gradient(#fbf2f4 0 100%);
}

.format-thumb.square {
  width: 3.1rem;
  aspect-ratio: 1;
}

.format-thumb.story {
  width: 2rem;
  aspect-ratio: 9 / 16;
}

.format-thumb.landscape {
  width: 4.8rem;
  aspect-ratio: 1200 / 630;
}

.share-background-group {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.65rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #efe5e8;
}

.share-background-group p {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--ink);
  font-weight: 850;
}

.share-background-group button {
  min-height: 2.5rem;
  border: 1px solid #efe5e8;
  border-radius: 0.55rem;
  background: #fff;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.share-background-group button.is-active {
  border-color: var(--red);
  color: var(--red);
  background: #fff6f7;
}

.share-background-group button[data-background="dark"] {
  color: #fff;
  background: #2b2930;
}

.share-action-primary,
.share-action-secondary {
  width: 100%;
  margin-top: 0.65rem;
}

.share-action-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 3.1rem;
  border: 0;
  border-radius: 0.65rem;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.share-privacy-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin: 0;
}

@media (max-width: 1120px) {
  .share-layout {
    grid-template-columns: 1fr;
  }

  .share-sidebar {
    position: static;
  }
}

@media (max-width: 720px) {
  .share-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .share-top,
  .share-text-box {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .share-format-grid,
  .share-background-group {
    grid-template-columns: 1fr;
  }

  .share-preview-stage {
    min-height: 26rem;
  }

  .share-card-preview[data-format="landscape"] {
    grid-template-columns: 1fr;
  }

  .share-card-preview[data-format="landscape"] .share-card-photo,
  .share-card-preview[data-format="landscape"] h3,
  .share-card-preview[data-format="landscape"] .share-card-label,
  .share-card-preview[data-format="landscape"] .share-card-days,
  .share-card-preview[data-format="landscape"] .share-card-since,
  .share-card-preview[data-format="landscape"] .share-card-logo {
    grid-column: auto;
    grid-row: auto;
  }
}

.save-page {
  min-height: 100vh;
  color: var(--ink);
  background: #fffbfa;
}

.save-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(94rem, calc(100% - 3rem));
  min-height: 6rem;
  margin: 0 auto;
}

.save-brand img {
  display: block;
  width: clamp(14rem, 20vw, 19rem);
  height: auto;
}

.save-back {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 900;
}

.save-back:hover {
  color: var(--red);
}

.save-back svg,
.save-counter-preview svg,
.save-benefits svg,
.save-email-field svg,
.save-secondary-button svg,
.save-device-note svg,
.save-privacy-card svg,
.save-continue svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.save-shell {
  display: grid;
  grid-template-columns: minmax(0, 37rem) minmax(0, 33rem);
  gap: 4rem;
  align-items: start;
  justify-content: center;
  width: min(88rem, calc(100% - 3rem));
  margin: 1.6rem auto 0;
}

.save-info-card,
.save-email-card,
.save-privacy-card {
  border: 1px solid #efe5e8;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 1rem 2.4rem rgba(31, 26, 36, 0.045);
}

.save-info-card {
  padding: clamp(1.6rem, 4vw, 3rem);
  text-align: center;
}

.save-info-card h1,
.save-email-card h2 {
  margin: 0;
  font-size: clamp(2.1rem, 3vw, 2.7rem);
  line-height: 1.05;
}

.save-info-card > p,
.save-email-card > p {
  margin: 1rem auto 1.8rem;
  max-width: 28rem;
  color: var(--muted);
  font-size: 1.22rem;
  line-height: 1.45;
}

.save-counter-preview {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.45rem;
  align-items: center;
  margin: 0 auto 1.5rem;
  padding: 1.35rem;
  border: 1px solid #efe5e8;
  border-radius: 0.95rem;
  box-shadow: 0 0.8rem 1.8rem rgba(31, 26, 36, 0.045);
  text-align: left;
}

.save-counter-preview img {
  width: 10.2rem;
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
}

.save-counter-preview h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.6rem;
}

.save-counter-preview h2 span,
.save-continue a {
  color: var(--red);
}

.login-example-label {
  display: inline-flex;
  margin-bottom: .25rem;
  color: var(--red);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.save-counter-preview p {
  margin: 0.8rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
  font-weight: 800;
}

.save-counter-preview strong {
  display: block;
  margin-top: 0.1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid #efe5e8;
  font-size: 3rem;
  line-height: 1;
}

.save-counter-preview small {
  font-size: 1.25rem;
}

.save-counter-preview time {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 0.85rem;
  color: var(--muted);
  font-weight: 850;
}

.save-benefits {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.save-benefits li {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
  border-bottom: 1px solid #efe5e8;
  font-size: 1.12rem;
  font-weight: 800;
}

.save-benefits li:last-child {
  border-bottom: 0;
}

.save-benefits span,
.save-privacy-card span {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: var(--ink);
  background: #fff0f2;
  flex: 0 0 auto;
}

.save-actions-stack {
  display: grid;
  gap: 1.35rem;
}

.save-email-card {
  display: grid;
  justify-items: center;
  padding: clamp(1.5rem, 4vw, 2.4rem);
  text-align: center;
}

.save-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.05rem;
  margin-bottom: 0.9rem;
  padding: 0 1rem;
  border: 1px solid #f2d7dd;
  border-radius: 999px;
  color: var(--red);
  background: #fff6f7;
  font-weight: 900;
}

.save-email-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  width: 100%;
  min-height: 4.25rem;
  padding: 0 1rem;
  border: 1px solid #d8d0d6;
  border-radius: 0.75rem;
  color: var(--muted);
}

.save-email-field input {
  min-width: 0;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 1.25rem;
}

.save-magic-button,
.save-secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  width: 100%;
  min-height: 3.8rem;
  border-radius: 0.75rem;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.save-magic-button {
  margin-top: 0.9rem;
  border: 0;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
}

.save-secondary-button {
  margin-top: 0.65rem;
  border: 1px solid #d8d0d6;
  color: var(--ink);
  background: #fff;
}

.save-secondary-button b {
  color: #4285f4;
  font-size: 1.35rem;
}

.save-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  width: 100%;
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
}

.save-divider::before,
.save-divider::after {
  content: "";
  height: 1px;
  background: #efe5e8;
}

.save-device-note {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 750;
}

.save-privacy-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem;
}

.save-privacy-card p {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.4;
}

.save-privacy-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.save-continue {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin: 2.2rem auto 2.4rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.save-continue a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  text-decoration: none;
  font-weight: 900;
}

@media (max-width: 980px) {
  .save-shell {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    width: min(42rem, calc(100% - 2rem));
  }
}

@media (max-width: 620px) {
  .save-header {
    align-items: flex-start;
    flex-direction: column;
    width: min(100% - 1.5rem, 38rem);
    padding: 1rem 0;
  }

  .save-counter-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .save-counter-preview time {
    justify-content: center;
  }

  .save-continue {
    flex-direction: column;
    text-align: center;
  }
}

.invite-page {
  background: #fffbfa;
}

.invite-shell {
  width: min(88rem, calc(100% - 3rem));
  margin: 2rem auto 3rem;
}

.invite-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.invite-top h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.6rem, 4vw, 3.65rem);
  line-height: 1;
}

.invite-top p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.invite-back {
  min-width: 13rem;
  text-decoration: none;
}

.invite-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(21rem, 26rem);
  gap: 1.5rem;
  align-items: start;
}

.invite-main-stack,
.invite-sidebar {
  display: grid;
  gap: 1rem;
}

.invite-sidebar {
  position: sticky;
  top: 1rem;
}

.invite-card,
.invite-how-card,
.invite-side-card {
  border: 1px solid #efe5e8;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
}

.invite-card {
  padding: clamp(1.4rem, 4vw, 2.4rem);
}

.invite-connection {
  display: grid;
  grid-template-columns: minmax(7rem, 1fr) minmax(15rem, 22rem) minmax(7rem, 1fr);
  gap: 1.2rem;
  align-items: center;
  margin-bottom: 1.2rem;
}

.invite-person {
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.invite-person img {
  width: clamp(5.8rem, 10vw, 7.2rem);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  background: #fff0f2;
}

.invite-counter-mini {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 1.6rem 1.2rem;
  border: 1px solid #efe5e8;
  border-radius: 0.95rem;
  background: #fff;
  text-align: center;
  box-shadow: 0 0.7rem 1.6rem rgba(31, 26, 36, 0.035);
}

.invite-counter-mini h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.45rem;
}

.invite-counter-mini b,
.invite-counter-mini strong,
.invite-heart {
  color: var(--red);
}

.invite-heart {
  font-size: 1.6rem;
  line-height: 1;
}

.invite-counter-mini p,
.invite-counter-mini small {
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}

.invite-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 32rem;
  border: 1px solid #efe5e8;
  border-bottom: 0;
  border-radius: 0.85rem 0.85rem 0 0;
  overflow: hidden;
}

.invite-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.35rem;
  border: 0;
  border-right: 1px solid #efe5e8;
  color: var(--muted);
  background: #fff;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.invite-tabs button:last-child {
  border-right: 0;
}

.invite-tabs button.is-active {
  color: var(--red);
  box-shadow: inset 0 -3px 0 var(--red);
}

.invite-tab-panel {
  padding: 1.35rem;
  border: 1px solid #efe5e8;
  border-radius: 0 0.85rem 0.85rem 0.85rem;
  background: #fff;
}

.invite-input-icon {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.75rem;
  align-items: center;
}

.invite-input-icon input {
  border: 0 !important;
  padding: 0 !important;
  min-height: auto !important;
}

.invite-tab-panel textarea {
  min-height: 6.2rem;
}

.invite-actions-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem;
  margin-top: 1rem;
}

.invite-primary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.3rem;
  border: 0;
  border-radius: 0.7rem;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.invite-helper {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.invite-how-card,
.invite-side-card {
  padding: 1.45rem;
}

.invite-how-card h2,
.invite-side-card h2 {
  margin: 0 0 1rem;
  font-family: inherit;
  font-size: 1.25rem;
}

.invite-how-card > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.invite-how-card article {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.8rem;
}

.invite-how-card article span {
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  width: 2.55rem;
  height: 2.55rem;
  border-radius: 50%;
  background: #fff0f2;
  font-weight: 900;
}

.invite-how-card strong {
  display: block;
}

.invite-how-card p,
.invite-side-card p {
  margin: 0.2rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.invite-permissions {
  display: grid;
  gap: 0.95rem;
}

.invite-permission {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 2.25rem;
  color: var(--ink);
  font-size: 1.05rem;
  font-weight: 800;
}

.invite-permission span {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.invite-permission input {
  appearance: none;
  position: relative;
  width: 2.45rem;
  height: 1.25rem;
  border: 1px solid #cfc8ce;
  border-radius: 999px;
  background: #d8d5d9;
  cursor: pointer;
}

.invite-permission input::after {
  content: "\00d7";
  position: absolute;
  top: 0.08rem;
  left: 0.12rem;
  display: grid;
  place-items: center;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  color: #777079;
  background: #fff;
  font-size: 0.75rem;
  font-weight: 900;
  transition: transform 0.18s ease;
}

.invite-permission input:checked {
  border-color: var(--red);
  background: var(--red);
}

.invite-permission input:checked::after {
  content: "\2713";
  color: var(--red);
  transform: translateX(1.12rem);
}

.invite-permission input:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}

.invite-status-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
}

.invite-status-card button {
  min-height: 2.8rem;
}

.invite-status-card button,
.invite-status-card .settings-outline-red {
  grid-column: span 1;
}

.invite-side-icon {
  display: grid;
  place-items: center;
  width: 3.6rem;
  height: 3.6rem;
  border-radius: 50%;
  color: var(--ink);
  background: #fff0f2;
}

.invite-status-card strong {
  display: block;
  color: var(--red);
}

.invite-privacy-card {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.invite-privacy-card strong {
  display: block;
  color: var(--ink);
  font-size: 1.15rem;
}

.invite-status-card > .empty-state-card {
  grid-column: 1 / -1;
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.invite-top svg,
.invite-tabs svg,
.invite-input-icon svg,
.invite-primary-button svg,
.invite-helper svg,
.invite-permission svg,
.invite-side-card svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 1100px) {
  .invite-layout {
    grid-template-columns: 1fr;
  }

  .invite-sidebar {
    position: static;
  }
}

@media (max-width: 760px) {
  .invite-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .invite-top {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-connection,
  .invite-how-card > div,
  .invite-actions-row {
    grid-template-columns: 1fr;
  }

  .invite-tabs {
    max-width: none;
  }

  .invite-tab-panel {
    border-radius: 0 0 0.85rem 0.85rem;
  }
}

.system-page {
  background: #fffbfa;
}

.system-shell {
  display: grid;
  place-items: center;
  width: min(94rem, calc(100% - 3rem));
  min-height: calc(100vh - 8.8rem);
  margin: 0 auto;
  padding: 3rem 0;
}

.not-found-card {
  width: min(100%, 52rem);
  padding: clamp(2rem, 6vw, 4.6rem);
  border: 1px solid #efe5e8;
  border-radius: 1.65rem;
  background: #fff;
  box-shadow: 0 1.2rem 2.8rem rgba(31, 26, 36, 0.055);
  text-align: center;
}

.not-found-icon {
  display: grid;
  place-items: center;
  width: 10rem;
  height: 10rem;
  margin: 0 auto 1.2rem;
  color: var(--red);
}

.not-found-icon svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.not-found-card h1 {
  margin: 0;
  font-size: clamp(2.5rem, 4.2vw, 3.7rem);
  line-height: 1;
}

.not-found-card p {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 1.18rem;
}

.not-found-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 2rem;
}

.not-found-primary,
.not-found-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-width: 12rem;
  min-height: 3.35rem;
  padding: 0 1.2rem;
  border-radius: 0.7rem;
  font-weight: 900;
  text-decoration: none;
}

.not-found-primary {
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
}

.not-found-secondary {
  border: 1px solid #dfd7dc;
  color: var(--ink);
  background: #fff;
}

.not-found-primary svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.not-found-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 1rem;
  align-items: center;
  max-width: 28rem;
  margin: 1.6rem auto 1rem;
  color: var(--muted);
}

.not-found-divider::before,
.not-found-divider::after {
  content: "";
  height: 1px;
  background: #efe5e8;
}

.not-found-create {
  color: var(--muted);
  font-weight: 900;
}

.empty-state-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 1.25rem;
  align-items: center;
  padding: 1.55rem;
  border: 1px solid #efe5e8;
  border-radius: 1.15rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
}

.empty-state-card[hidden] {
  display: none !important;
}

.empty-state-icon {
  display: grid;
  place-items: center;
  width: 4.7rem;
  height: 4.7rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
}

.empty-state-icon svg {
  width: 2.35rem;
  height: 2.35rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.empty-state-copy h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.35rem;
}

.empty-state-copy p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.45;
}

.empty-state-action {
  min-height: 3.15rem;
  padding: 0 1.25rem;
  border: 0;
  border-radius: 0.7rem;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.empty-state-card.has-skeleton {
  grid-template-columns: auto minmax(14rem, 0.52fr) minmax(18rem, 1fr);
}

.empty-skeleton {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.8rem 1.2rem;
}

.empty-skeleton i {
  display: block;
  height: 0.95rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #f1ecef 0%, #e7e2e5 50%, #f1ecef 100%);
  background-size: 220% 100%;
  animation: emptySkeleton 1.4s ease-in-out infinite;
}

.empty-skeleton i:nth-child(2n) {
  width: 72%;
}

@keyframes emptySkeleton {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 220% 50%;
  }
}

.memory-grid > .empty-state-card,
.event-list-panel > .empty-state-card {
  grid-column: 1 / -1;
}

.gift-table > .empty-state-card,
.milestone-table > .empty-state-card {
  margin-top: 0.8rem;
}

.invite-empty-slot {
  margin-top: 1rem;
}

@media (max-width: 720px) {
  .not-found-actions,
  .empty-state-card,
  .empty-state-card.has-skeleton {
    grid-template-columns: 1fr;
  }

  .not-found-actions {
    flex-direction: column;
  }

  .empty-state-card {
    justify-items: start;
  }

  .empty-state-action {
    width: 100%;
  }

  .empty-skeleton {
    width: 100%;
    grid-template-columns: 1fr;
  }
}

.public-counter-page {
  min-height: 100vh;
  color: var(--ink);
  background: #fffbfa;
}

.public-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  width: min(92rem, calc(100% - 3rem));
  min-height: 6rem;
  margin: 0 auto;
}

.public-brand img {
  display: block;
  width: clamp(14rem, 20vw, 18rem);
  height: auto;
}

.public-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.4rem;
}

.public-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.public-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.2rem;
  padding: 0 1.35rem;
  border-radius: 0.55rem;
  color: #fff !important;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
}

.public-shell {
  width: min(70rem, calc(100% - 3rem));
  margin: 1.8rem auto 3rem;
}

.public-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(18rem, 0.9fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding: clamp(2rem, 5vw, 3.4rem);
  border: 1px solid #efe5e8;
  border-radius: 1.55rem;
  background: #fff;
  box-shadow: 0 1.2rem 2.8rem rgba(31, 26, 36, 0.045);
}

.public-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 2.2rem;
  margin: 0 0 1.5rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--muted);
  background: #fff0f2;
  font-weight: 850;
}

.public-pill svg,
.public-secondary svg,
.public-info-card svg,
.public-features svg,
.public-locked-card svg {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.public-pill svg,
.public-info-card span,
.public-features span,
.public-locked-card span {
  color: var(--red);
}

.public-hero-copy h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 4.5rem);
  line-height: 1;
}

.public-hero-copy h1 span,
.public-days,
.public-info-card a {
  color: var(--red);
}

.public-label,
.public-since {
  margin: 1.3rem 0 0;
  color: var(--muted);
  font-size: 1.25rem;
  font-weight: 850;
}

.public-days {
  margin: 0.45rem 0 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.2rem, 8vw, 5.8rem);
  line-height: 0.95;
}

.public-since {
  margin-top: 0.9rem;
  color: var(--muted);
}

.public-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 1.8rem;
}

.public-primary,
.public-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  min-height: 3.35rem;
  padding: 0 1.35rem;
  border-radius: 0.62rem;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.public-primary {
  border: 0;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
}

.public-secondary {
  border: 1px solid #dfd7dc;
  color: var(--ink);
  background: #fff;
}

.public-photo-wrap {
  position: relative;
  justify-self: center;
  width: min(100%, 25rem);
  aspect-ratio: 1;
}

.public-photo-wrap img {
  width: 100%;
  height: 100%;
  border: 0.75rem solid #fff;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 1rem 2.4rem rgba(31, 26, 36, 0.12);
}

.public-photo-wrap span {
  position: absolute;
  top: 8%;
  right: -1.3rem;
  color: var(--red);
  font-size: 3rem;
  line-height: 1;
}

.public-info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1.2rem;
}

.public-info-card,
.public-features article,
.public-locked-card {
  border: 1px solid #efe5e8;
  border-radius: 1rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
}

.public-info-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 9rem;
  padding: 1.5rem;
}

.public-info-card span,
.public-features span,
.public-locked-card span {
  display: grid;
  place-items: center;
  width: 4.2rem;
  height: 4.2rem;
  border-radius: 50%;
  background: #fff0f2;
  flex: 0 0 auto;
}

.public-info-card p {
  margin: 0;
  color: var(--muted);
  font-weight: 850;
}

.public-info-card strong,
.public-info-card small,
.public-info-card a {
  display: block;
  margin-top: 0.25rem;
}

.public-info-card strong {
  font-size: 1.15rem;
}

.public-info-card small {
  color: var(--red);
  font-weight: 850;
}

.public-info-card a {
  text-decoration: none;
  font-weight: 900;
}

.public-features {
  margin-top: 2.4rem;
  text-align: center;
}

.public-features h2 {
  margin: 0 0 1.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.public-features > div {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

.public-features article {
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: 1.35rem;
  text-align: left;
}

.public-features strong {
  display: block;
  font-size: 1.05rem;
}

.public-features p {
  margin: 0.35rem 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.public-privacy-note {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 1.6rem 0 0;
  color: var(--muted);
  font-weight: 800;
}

.public-locked-shell {
  display: grid;
  place-items: center;
  width: min(70rem, calc(100% - 3rem));
  min-height: calc(100vh - 8rem);
  margin: 0 auto;
}

.public-locked-card {
  width: min(100%, 34rem);
  padding: 3rem;
  text-align: center;
}

.public-locked-card span {
  width: 5rem;
  height: 5rem;
  margin: 0 auto 1rem;
}

.public-locked-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.public-locked-card p {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.1rem;
}

.php-public-shell {
  width: min(96rem, calc(100% - 2rem));
  margin: 1.25rem auto 3rem;
}

.public-counter-page {
  background:
    radial-gradient(circle at 10% 28%, rgba(255, 231, 236, 0.78) 0 12rem, transparent 26rem),
    radial-gradient(circle at 88% 72%, rgba(255, 215, 225, 0.7) 0 13rem, transparent 30rem),
    #fffbfa;
}

.shared-counter-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(22rem, 0.92fr);
  gap: clamp(1.4rem, 2vw, 2rem);
  align-items: center;
}

.shared-hero-card,
.shared-side-card {
  border: 1px solid #f2d7dd;
  border-radius: 1.85rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1.6rem 4.5rem rgba(31, 26, 36, 0.07);
}

.shared-hero-card {
  position: relative;
  overflow: hidden;
  min-height: 48rem;
  padding: clamp(1.8rem, 3.4vw, 3.1rem);
  text-align: center;
}

.shared-hero-card::before,
.shared-hero-card::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 18rem;
  height: 18rem;
  border-radius: 50%;
  background: rgba(255, 225, 232, 0.78);
  filter: blur(0.2rem);
}

.shared-hero-card::before {
  right: -7rem;
  bottom: -7rem;
}

.shared-hero-card::after {
  left: -10rem;
  top: 16rem;
  opacity: 0.35;
}

.shared-hero-card > * {
  position: relative;
  z-index: 1;
}

.shared-pill,
.shared-small-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 2.65rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  color: var(--red);
  background: #fff0f2;
  font-weight: 950;
}

.shared-pill svg,
.shared-small-pill svg,
.shared-meta-card svg,
.shared-action svg,
.shared-spark svg,
.shared-milestone-inner svg,
.shared-cta-button svg {
  width: 1.15rem;
  height: 1.15rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.35;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.shared-names {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.8rem;
  margin: 1.45rem 0 1.3rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3rem, 5vw, 5.25rem);
  line-height: 0.95;
  letter-spacing: 0;
}

.shared-names span,
.shared-days,
.shared-days-label,
.shared-status {
  color: var(--red);
}

.shared-photo-wrap {
  position: relative;
  width: min(24rem, 76vw);
  margin: 0 auto 1.55rem;
}

.shared-photo-ring {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  padding: 0.68rem;
  border: 0.35rem solid #fff;
  border-radius: 50%;
  background:
    linear-gradient(#fff, #fff) padding-box,
    conic-gradient(from 28deg, #fff 0 16%, #ff8fa7 18% 26%, #fff 30% 48%, #ff5a7a 52% 63%, #fff 68% 100%) border-box;
  box-shadow: 0 1rem 3rem rgba(230, 0, 35, 0.17);
}

.shared-photo-ring::before {
  content: "";
  position: absolute;
  inset: -1.1rem;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 122, 0.2), transparent 68%);
}

.shared-photo-ring img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.shared-photo-badge {
  position: absolute;
  right: -0.3rem;
  bottom: 1.5rem;
  display: grid;
  place-items: center;
  width: 5.5rem;
  height: 5.5rem;
  border: 0.45rem solid #fff;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(180deg, #ff4e6e, var(--red));
  box-shadow: 0 0.9rem 2rem rgba(230, 0, 35, 0.24);
  font-size: 2.4rem;
  line-height: 1;
}

.shared-heart {
  position: absolute;
  z-index: 2;
  color: #ff8fa7;
  font-size: 2rem;
  line-height: 1;
  text-shadow: 0 0.7rem 1.4rem rgba(230, 0, 35, 0.18);
}

.shared-heart-one {
  top: 16%;
  left: -1.4rem;
  transform: rotate(-14deg);
}

.shared-heart-two {
  top: 24%;
  right: -1.2rem;
  transform: rotate(12deg);
}

.shared-heart-three {
  left: -2.2rem;
  bottom: 28%;
  font-size: 1.45rem;
}

.shared-heart-four {
  right: -1.7rem;
  bottom: 31%;
  font-size: 1.4rem;
}

.shared-label {
  margin: 0;
  color: var(--muted);
  font-size: 1.18rem;
  font-weight: 850;
}

.shared-days {
  margin-top: 0.35rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(4.8rem, 8vw, 6.5rem);
  font-weight: 900;
  line-height: 0.8;
}

.shared-days-label {
  margin-top: 0.15rem;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.9rem, 3vw, 2.55rem);
  font-weight: 900;
  line-height: 1;
}

.shared-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
  margin-top: 2rem;
}

.shared-meta-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "icon title"
    "icon label";
  gap: 0.1rem 0.75rem;
  align-items: center;
  min-height: 4.6rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid #f3dce2;
  border-radius: 0.95rem;
  background: rgba(255, 247, 248, 0.72);
  text-align: left;
}

.shared-meta-card span {
  grid-area: icon;
  display: grid;
  place-items: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  color: var(--red);
  background: #ffe9ed;
}

.shared-meta-card strong {
  grid-area: title;
  overflow: hidden;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shared-meta-card small {
  grid-area: label;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
}

.shared-actions {
  display: flex;
  justify-content: center;
  gap: 0.8rem;
  margin-top: 1.45rem;
}

.shared-action,
.shared-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  min-height: 3.45rem;
  border-radius: 0.9rem;
  font: inherit;
  font-weight: 950;
  text-decoration: none;
  cursor: pointer;
}

.shared-action {
  min-width: 12rem;
  padding: 0 1.2rem;
}

.shared-action-light {
  border: 1px solid #ff9eb1;
  color: var(--red);
  background: #fff;
}

.shared-action-red,
.shared-cta-button {
  border: 0;
  color: #fff;
  background: linear-gradient(180deg, #f20a28, var(--red));
  box-shadow: 0 0.9rem 2rem rgba(230, 0, 35, 0.17);
}

.shared-status {
  min-height: 1.1rem;
  margin: 0.75rem 0 0;
  font-weight: 850;
}

.shared-side {
  display: grid;
  gap: 1.45rem;
}

.shared-side-card {
  position: relative;
  overflow: hidden;
  padding: clamp(1.6rem, 3vw, 2.45rem);
}

.shared-side-card header {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  margin-bottom: 1.4rem;
}

.shared-side-card h2,
.shared-side-card h3 {
  margin: 0;
  color: var(--ink);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.05;
}

.shared-side-card header h2 {
  font-size: clamp(1.8rem, 3vw, 2.45rem);
}

.shared-spark {
  color: #ff5a7a;
}

.shared-outline-heart {
  margin-left: auto;
  color: #ff8fa7;
  font-size: 3rem;
  font-weight: 400;
  line-height: 1;
}

.shared-milestone-inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(9rem, 13rem);
  gap: 1rem;
  align-items: center;
  min-height: 13rem;
  padding: clamp(1.25rem, 2vw, 1.8rem);
  border: 1px solid #f3dce2;
  border-radius: 1.35rem;
  background:
    radial-gradient(circle at 86% 50%, rgba(255, 214, 223, 0.62), transparent 42%),
    linear-gradient(135deg, #fff 0%, #fff8fa 100%);
}

.shared-milestone-inner h3 {
  margin-top: 1.1rem;
  font-size: clamp(1.75rem, 3vw, 2.45rem);
}

.shared-milestone-inner p {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  margin: 1rem 0 0;
  color: var(--muted);
  font-weight: 850;
}

.shared-milestone-inner p svg {
  color: #8b828d;
}

.shared-calendar-art {
  position: relative;
  justify-self: end;
  width: min(100%, 11rem);
  aspect-ratio: 1;
  border-radius: 1.2rem;
  background:
    linear-gradient(#f31b38 0 22%, transparent 22%),
    linear-gradient(90deg, transparent 31%, rgba(189, 8, 28, 0.16) 32% 34%, transparent 35% 65%, rgba(189, 8, 28, 0.16) 66% 68%, transparent 69%),
    linear-gradient(0deg, transparent 31%, rgba(189, 8, 28, 0.16) 32% 34%, transparent 35% 65%, rgba(189, 8, 28, 0.16) 66% 68%, transparent 69%),
    #fff;
  box-shadow: 0 1rem 2.5rem rgba(230, 0, 35, 0.16);
  transform: rotate(4deg);
}

.shared-calendar-art::before,
.shared-calendar-art::after {
  content: "";
  position: absolute;
  top: -0.75rem;
  width: 1.05rem;
  height: 2rem;
  border-radius: 999px;
  background: linear-gradient(180deg, #fff, #cfc4cc);
}

.shared-calendar-art::before {
  left: 24%;
}

.shared-calendar-art::after {
  right: 24%;
}

.shared-calendar-art span {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 2.2rem;
  text-shadow: 0 0.15rem 0.8rem rgba(189, 8, 28, 0.25);
}

.shared-cta-card {
  min-height: 20rem;
}

.shared-cta-card h2 {
  width: min(20rem, 68%);
  margin-top: 1.2rem;
  font-size: clamp(2.15rem, 4vw, 3.2rem);
}

.shared-cta-card p {
  width: min(23rem, 66%);
  margin: 1.2rem 0 1.75rem;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.45;
}

.shared-cta-button {
  width: min(22rem, 100%);
  min-height: 4rem;
}

.shared-cta-hearts {
  position: absolute;
  right: 2.4rem;
  top: 5.8rem;
  width: 10rem;
  height: 10rem;
  pointer-events: none;
}

.shared-cta-hearts span {
  position: absolute;
  display: block;
  width: 5.6rem;
  height: 5.6rem;
  transform: rotate(-45deg);
  border-radius: 1rem 1rem 0.7rem 1rem;
  background: linear-gradient(135deg, #ff738d, var(--red));
  box-shadow: 0 0.9rem 1.9rem rgba(230, 0, 35, 0.2);
}

.shared-cta-hearts span::before,
.shared-cta-hearts span::after {
  content: "";
  position: absolute;
  width: 5.6rem;
  height: 5.6rem;
  border-radius: 50%;
  background: inherit;
}

.shared-cta-hearts span::before {
  top: -2.8rem;
  left: 0;
}

.shared-cta-hearts span::after {
  top: 0;
  right: -2.8rem;
}

.shared-cta-hearts span:first-child {
  top: 0.1rem;
  right: 2.2rem;
  opacity: 0.9;
  transform: rotate(-34deg) scale(0.78);
}

.shared-cta-hearts span:last-child {
  right: 0.2rem;
  bottom: 0.3rem;
  border: 0.35rem solid rgba(255, 255, 255, 0.75);
}

@media (max-width: 1020px) {
  .shared-counter-layout {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .php-public-shell {
    width: min(100% - 1.25rem, 38rem);
  }

  .shared-hero-card {
    min-height: auto;
  }

  .shared-side,
  .shared-meta-grid,
  .shared-milestone-inner {
    grid-template-columns: 1fr;
  }

  .shared-names {
    font-size: clamp(2.4rem, 13vw, 3.5rem);
  }

  .shared-photo-wrap {
    width: min(20rem, 74vw);
  }

  .shared-photo-badge {
    width: 4.4rem;
    height: 4.4rem;
    font-size: 1.9rem;
  }

  .shared-actions {
    flex-direction: column;
  }

  .shared-action {
    width: 100%;
  }

  .shared-calendar-art {
    justify-self: center;
  }

  .shared-cta-card h2,
  .shared-cta-card p {
    width: min(100%, 24rem);
  }

  .shared-cta-hearts {
    position: relative;
    right: auto;
    top: auto;
    margin: 1.4rem auto 0;
    transform: scale(0.85);
  }
}

@media (max-width: 900px) {
  .public-header {
    grid-template-columns: 1fr;
    padding: 1rem 0;
  }

  .public-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .public-hero-card,
  .public-info-grid,
  .public-features > div {
    grid-template-columns: 1fr;
  }

  .public-photo-wrap {
    order: -1;
    width: min(22rem, 80vw);
  }
}

@media (max-width: 620px) {
  .public-header,
  .public-shell,
  .public-locked-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .public-actions,
  .public-features article {
    align-items: stretch;
    flex-direction: column;
  }

  .public-primary,
  .public-secondary {
    width: 100%;
  }
}

.invite-accept-page {
  min-height: 100vh;
  color: var(--ink);
  background: #fffbfa;
}

.invite-accept-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(92rem, calc(100% - 3rem));
  min-height: 6rem;
  margin: 0 auto;
}

.invite-accept-brand img {
  display: block;
  width: clamp(14rem, 20vw, 18rem);
  height: auto;
}

.invite-accept-nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.invite-accept-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.invite-accept-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.45rem;
  border-radius: 0.6rem;
  color: #fff !important;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
}

.invite-accept-shell {
  width: min(68rem, calc(100% - 3rem));
  margin: 1.7rem auto 3rem;
}

.invite-accept-card,
.invite-accept-info,
.invite-state-card {
  border: 1px solid #efe5e8;
  border-radius: 1.35rem;
  background: #fff;
  box-shadow: 0 1.2rem 2.8rem rgba(31, 26, 36, 0.045);
}

.invite-accept-card {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(18rem, 0.82fr);
  gap: 2.4rem;
  padding: clamp(1.6rem, 5vw, 4rem);
}

.invite-accept-main {
  border-right: 1px solid #efe5e8;
  padding-right: 2.2rem;
}

.invite-accept-pill,
.invite-expiry-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.25rem;
  margin: 0 0 1.35rem;
  padding: 0 1rem;
  border: 1px solid #f2d7dd;
  border-radius: 999px;
  color: var(--red);
  background: #fff6f7;
  font-weight: 850;
}

.invite-accept-main h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.7rem, 5vw, 4.2rem);
  line-height: 1.08;
}

.invite-accept-subtitle {
  margin: 1.1rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.2rem;
}

.invite-accept-preview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1.45rem;
  border: 1px solid #efe5e8;
  border-radius: 0.9rem;
  background: #fff;
}

.invite-accept-preview h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.invite-accept-preview h2 span,
.invite-accept-preview strong {
  color: var(--red);
}

.invite-accept-preview p,
.invite-accept-preview small {
  display: block;
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-weight: 850;
}

.invite-accept-preview strong {
  display: block;
  margin-top: 0.2rem;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  line-height: 1;
}

.invite-accept-preview img {
  width: 7.6rem;
  height: 7.6rem;
  border: 0.35rem solid #fff5f7;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0.7rem 1.4rem rgba(31, 26, 36, 0.1);
}

.invite-accept-permissions {
  display: grid;
  align-content: start;
}

.invite-accept-permissions h2 {
  margin: 1.1rem 0 1rem;
  font-family: inherit;
  font-size: 1.45rem;
}

.invite-accept-permissions ul {
  display: grid;
  gap: 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.invite-accept-permissions li {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-size: 1.12rem;
  font-weight: 850;
}

.invite-accept-permissions li span {
  display: grid;
  place-items: center;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
}

.invite-accept-private {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 2rem 0 0;
  padding: 1rem;
  border: 1px solid #efe5e8;
  border-radius: 0.75rem;
  color: var(--muted);
  background: #fffbfa;
  line-height: 1.45;
}

.invite-accept-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr) minmax(0, 1fr);
  gap: 1rem;
  align-items: center;
  padding-top: 1.6rem;
  border-top: 1px solid #efe5e8;
}

.invite-accept-primary,
.invite-accept-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.65rem;
  padding: 0 1.35rem;
  border-radius: 0.72rem;
  font: inherit;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.invite-accept-primary {
  border: 0;
  color: #fff;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
}

.invite-accept-secondary {
  border: 1px solid #dfd7dc;
  color: var(--ink);
  background: #fff;
}

.invite-accept-own {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.invite-accept-info {
  display: flex;
  align-items: center;
  gap: 1.35rem;
  width: min(100%, 54rem);
  margin: 1.6rem auto 0;
  padding: 1.7rem 2rem;
}

.invite-accept-info span,
.invite-state-card > span {
  display: grid;
  place-items: center;
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
  flex: 0 0 auto;
}

.invite-accept-info h2 {
  margin: 0;
  font-family: inherit;
  font-size: 1.35rem;
}

.invite-accept-info p {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.invite-state-card {
  width: min(100%, 38rem);
  margin: 4rem auto 0;
  padding: 3rem;
  text-align: center;
}

.invite-state-card > span {
  margin: 0 auto 1rem;
}

.invite-state-card h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3rem);
}

.invite-state-card p {
  margin: 0.8rem 0 1.5rem;
  color: var(--muted);
  font-size: 1.08rem;
}

.invite-state-actions {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.invite-accept-pill svg,
.invite-expiry-pill svg,
.invite-accept-permissions svg,
.invite-accept-private svg,
.invite-accept-own svg,
.invite-accept-info svg,
.invite-state-card svg {
  width: 1.25rem;
  height: 1.25rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .invite-accept-card {
    grid-template-columns: 1fr;
  }

  .invite-accept-main {
    border-right: 0;
    border-bottom: 1px solid #efe5e8;
    padding-right: 0;
    padding-bottom: 1.5rem;
  }

  .invite-accept-actions {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .invite-accept-header,
  .invite-accept-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .invite-accept-header,
  .invite-accept-info,
  .invite-state-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .invite-accept-preview {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
  }

  .invite-accept-primary,
  .invite-accept-secondary {
    width: 100%;
  }
}

.legal-page {
  min-height: 100vh;
  color: var(--ink);
  background: #fffbfa;
}

.legal-header {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 2rem;
  width: min(92rem, calc(100% - 3rem));
  min-height: 6rem;
  margin: 0 auto;
}

.legal-brand img {
  display: block;
  width: clamp(14rem, 20vw, 18rem);
  height: auto;
}

.legal-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1.5rem;
}

.legal-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 850;
}

.legal-nav-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.25rem;
  padding: 0 1.55rem;
  border-radius: 0.6rem;
  color: #fff !important;
  background: var(--red);
  box-shadow: 0 0.9rem 1.8rem rgba(230, 0, 35, 0.12);
}

.legal-shell {
  width: min(82rem, calc(100% - 3rem));
  margin: 2rem auto 3rem;
}

.legal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 27rem);
  gap: 2rem;
  align-items: center;
  margin-bottom: 1.8rem;
}

.legal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  margin: 0 0 1.2rem;
  padding: 0 1rem;
  border-radius: 999px;
  color: var(--muted);
  background: #f7f4f6;
  font-weight: 850;
}

.legal-hero h1 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(3.2rem, 6vw, 5.3rem);
  line-height: 1;
}

.legal-hero p:not(.legal-pill) {
  margin: 1.2rem 0 0;
  color: var(--muted);
  font-size: 1.25rem;
}

.legal-hero time {
  display: block;
  margin-top: 1rem;
  color: var(--muted);
  font-weight: 850;
}

.privacy-summary-card,
.legal-toc,
.legal-content-card {
  border: 1px solid #efe5e8;
  border-radius: 1.25rem;
  background: #fff;
  box-shadow: 0 1rem 2.2rem rgba(31, 26, 36, 0.035);
}

.privacy-summary-card {
  display: grid;
  padding: 1.5rem;
}

.privacy-summary-card div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 4.15rem;
  border-bottom: 1px solid #efe5e8;
}

.privacy-summary-card div:last-child {
  border-bottom: 0;
}

.privacy-summary-card span,
.legal-section-icon {
  display: grid;
  place-items: center;
  width: 3.4rem;
  height: 3.4rem;
  border-radius: 50%;
  color: var(--red);
  background: #fff0f2;
}

.privacy-summary-card svg,
.legal-section-icon svg {
  width: 1.55rem;
  height: 1.55rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.1;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.legal-section-icon b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.65rem;
  line-height: 1;
  color: var(--red);
}

.legal-layout {
  display: grid;
  grid-template-columns: minmax(15rem, 19rem) minmax(0, 1fr);
  gap: 1.6rem;
  align-items: start;
}

.legal-toc {
  position: sticky;
  top: 1rem;
  display: grid;
  gap: 0.45rem;
  padding: 1.5rem;
}

.legal-toc h2 {
  margin: 0 0 0.8rem;
  font-family: inherit;
  font-size: 1.1rem;
}

.legal-toc a {
  display: block;
  padding: 0.8rem 0.95rem;
  border-radius: 0.6rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 800;
}

.legal-toc a:hover,
.legal-toc a:focus {
  color: var(--red);
  background: #fff6f7;
}

.legal-content-card {
  padding: clamp(1.5rem, 4vw, 2.6rem);
}

.legal-content-card > section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.6rem;
  padding: 1.45rem 0;
  border-bottom: 1px solid #efe5e8;
  scroll-margin-top: 1rem;
}

.legal-content-card > section:first-child {
  padding-top: 0;
}

.legal-content-card h2 {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 2.5vw, 2.05rem);
}

.legal-content-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.65;
}

.legal-content-card a {
  color: var(--red);
  font-weight: 850;
}

.legal-rules-note {
  margin-top: 1.5rem;
  padding: 1.35rem;
  border: 1px solid #efe5e8;
  border-radius: 0.9rem;
  background: #fffbfa;
}

.legal-rules-note h2 {
  font-family: inherit;
  font-size: 1.2rem;
}

.legal-rules-note ul {
  display: grid;
  gap: 0.55rem;
  margin: 0.85rem 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.5;
}

.legal-footer {
  display: flex;
  justify-content: center;
  gap: 1.2rem;
  padding: 1.5rem;
  border-top: 1px solid #efe5e8;
  color: var(--muted);
}

.legal-footer a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 850;
}

@media (max-width: 900px) {
  .legal-header,
  .legal-hero,
  .legal-layout {
    grid-template-columns: 1fr;
  }

  .legal-nav {
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.3rem;
  }

  .legal-toc {
    position: static;
    display: flex;
    overflow-x: auto;
    gap: 0.55rem;
    padding: 1rem;
  }

  .legal-toc h2 {
    flex: 0 0 auto;
    margin: 0;
    align-self: center;
  }

  .legal-toc a {
    flex: 0 0 auto;
    white-space: nowrap;
  }
}

@media (max-width: 620px) {
  .legal-header,
  .legal-shell {
    width: min(100% - 1.5rem, 38rem);
  }

  .legal-content-card > section {
    grid-template-columns: 1fr;
  }

  .legal-footer {
    flex-wrap: wrap;
  }
}

/* Responsive polish pass for the static prototype pages. */
img,
svg,
video,
canvas {
  max-width: 100%;
}

button,
input,
select,
textarea,
a {
  min-width: 0;
}

.counter-nav,
.memories-nav,
.public-nav,
.legal-nav,
.invite-accept-nav {
  min-width: 0;
}

.counter-nav a,
.memories-nav a,
.public-nav a,
.legal-nav a,
.invite-accept-nav a {
  white-space: nowrap;
}

.counter-shell,
.memories-shell,
.events-shell,
.gift-shell,
.milestone-shell,
.settings-shell,
.share-shell,
.invite-shell,
.public-shell,
.legal-shell {
  max-width: calc(100vw - 1rem);
}

.gift-checklist-card,
.milestone-list-card {
  -webkit-overflow-scrolling: touch;
}

.gift-table,
.milestone-table {
  width: 100%;
}

.gift-table-row > *,
.milestone-row > *,
.event-card > *,
.settings-card *,
.share-panel *,
.legal-content-card * {
  min-width: 0;
}

.gift-table-row strong,
.milestone-row h3,
.event-card h3,
.memory-card h2,
.gift-card-body h2 {
  overflow-wrap: anywhere;
}

@media (max-width: 1180px) {
  .counter-header,
  .memories-header {
    grid-template-columns: 1fr;
    gap: 0.8rem;
    padding: 1rem 0;
  }

  .counter-nav,
  .memories-nav {
    justify-content: flex-start;
    width: 100%;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .counter-avatar {
    justify-self: start;
  }

  .gift-table {
    min-width: 58rem;
  }

  .milestone-table {
    min-width: 60rem;
  }
}

@media (max-width: 900px) {
  .site-header,
  .save-header,
  .invite-accept-header {
    align-items: stretch;
    flex-direction: column;
  }

  .save-back {
    align-self: flex-start;
  }

  .legal-header,
  .public-header {
    gap: 0.9rem;
    padding: 1rem 0;
  }

  .legal-nav,
  .public-nav,
  .invite-accept-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .settings-left {
    overflow-x: auto;
  }

  .settings-left a {
    min-width: max-content;
  }
}

@media (max-width: 760px) {
  .flow-steps {
    overflow-x: auto;
    grid-template-columns: repeat(3, minmax(8.5rem, 1fr));
    padding-bottom: 0.25rem;
  }

  .step-item {
    min-width: 8.5rem;
  }

  .theme-info,
  .settings-side-card,
  .save-privacy-card,
  .invite-status-card,
  .invite-privacy-card {
    grid-template-columns: 1fr;
  }

  .public-photo-wrap span {
    right: 0;
  }
}

@media (max-width: 620px) {
  .main-nav,
  .counter-nav,
  .memories-nav,
  .public-nav,
  .legal-nav,
  .invite-accept-nav {
    gap: 0.65rem;
  }

  .main-nav a,
  .counter-nav a,
  .memories-nav a,
  .public-nav a,
  .legal-nav a,
  .invite-accept-nav a {
    flex: 0 0 auto;
  }

  .date-popover {
    max-height: calc(100vh - 1rem);
  }

  .calendar-footer {
    gap: 0.65rem;
  }

  .calendar-action {
    width: 100%;
    min-height: 3.1rem;
  }

  .gift-controls .gift-toolbar,
  .events-toolbar .event-filters,
  .memories-toolbar .memory-filters,
  .milestone-toolbar {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.25rem;
  }

  .gift-toolbar button,
  .event-filters button,
  .memory-filters button,
  .milestone-toolbar button {
    flex: 0 0 auto;
  }

  .share-card-preview {
    width: min(100%, 22rem);
  }

  .share-card-preview[data-format="story"] {
    width: min(78vw, 18rem);
  }

  .share-card-preview[data-format="landscape"] {
    width: min(100%, 24rem);
  }

  .legal-hero h1,
  .invite-accept-main h1 {
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .brand img,
  .counter-brand img,
  .memories-brand img,
  .public-brand img,
  .legal-brand img,
  .invite-accept-brand img,
  .save-brand img {
    width: min(13rem, 82vw);
  }

  .public-days,
  .days-number,
  .preview-number,
  .share-card-days {
    font-size: clamp(3rem, 15vw, 4rem);
  }

  .not-found-card,
  .public-locked-card,
  .invite-state-card {
    padding: 1.5rem;
  }
}

/* Gift ideas final layout overrides: must remain after the responsive base styles. */
.gift-page .gift-shell {
  width: min(94rem, calc(100% - 2.5rem));
  margin: 1.55rem auto 3rem;
  padding: 1.55rem;
  border: 1px solid #f2dce1;
  border-radius: 1.75rem;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 1.35rem 4rem rgba(31, 26, 36, 0.055);
}

.gift-page .gift-top { position: relative; align-items: flex-start; min-height: 5.2rem; padding: 0.15rem 0.1rem 0; }
.gift-page .gift-top::after { content: "♡"; position: absolute; top: -0.55rem; right: 0.3rem; color: #ff8ea7; font-family: Georgia, serif; font-size: 3rem; line-height: 1; opacity: 0.7; }
.gift-page .gift-top h1 { color: #1f1a24; font-size: clamp(2.6rem, 4vw, 3.65rem); letter-spacing: 0; }
.gift-page .gift-top h1::after { content: " ♡"; color: #ff6f91; font-size: 0.7em; vertical-align: 0.08em; }
.gift-page .gift-top p { max-width: 46rem; margin-top: 0.55rem; font-size: 1rem; }
.gift-page .gift-top small { display: none; }
.gift-page .add-memory-top { z-index: 1; min-height: 3.15rem; padding: 0 1.3rem; border-radius: 0.78rem; color: #fff; background: linear-gradient(135deg, #ff3c62, #e60023); box-shadow: 0 0.85rem 1.5rem rgba(230, 0, 35, 0.19); }
.gift-page .add-memory-top:hover { color: #fff; transform: translateY(-1px); }

.gift-page .gift-summary-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; margin: 1.25rem 0; }
.gift-page .gift-summary-card { min-height: 7.1rem; padding: 1rem 1.08rem; border-color: #f3dde2; border-radius: 1rem; box-shadow: none; }
.gift-page .gift-summary-icon { width: 3.15rem; height: 3.15rem; background: #fff0f3; }
.gift-page .gift-summary-card p { font-size: 0.92rem; }
.gift-page .gift-summary-card strong { margin-top: 0.17rem; font-family: Georgia, serif; font-size: 1.55rem; line-height: 1.05; }
.gift-page .gift-summary-card:last-child strong { font-family: inherit; font-size: 0.98rem; line-height: 1.25; }

.gift-page .gift-layout { grid-template-columns: minmax(0, 1fr) minmax(20rem, 24.5rem); gap: 1.25rem; }
.gift-page .gift-controls, .gift-page .gift-checklist-card, .gift-page .add-gift-card, .gift-page .gift-privacy-card { border-color: #f1dce1; border-radius: 1.1rem; box-shadow: 0 0.75rem 2rem rgba(31, 26, 36, 0.032); }
.gift-page .gift-controls { gap: 0.72rem; padding: 0.85rem; }
.gift-page .gift-search input, .gift-page .gift-sort select { min-height: 2.75rem; border-color: #f0dce1; border-radius: 0.72rem; }
.gift-page .gift-toolbar button { min-height: 2.35rem; border-radius: 0.68rem; color: #9e5364; }
.gift-page .gift-toolbar button.is-active { color: #fff; background: linear-gradient(135deg, #ff3c62, #e60023); box-shadow: 0 0.55rem 1.1rem rgba(230, 0, 35, 0.16); }
.gift-page .gift-checklist-card { min-height: 32rem; padding: 1.15rem 1.25rem 1.25rem; }
.gift-page .gift-checklist-card h2 { position: relative; margin-bottom: 1.05rem; color: #1f1a24; font-family: Georgia, serif; font-size: 1.45rem; }
.gift-page .gift-checklist-card h2::after { content: ""; position: absolute; bottom: -0.55rem; left: 0; width: 2.5rem; height: 2px; border-radius: 99px; background: #ff6682; }

.gift-page .gift-table > .gift-empty-card, .gift-page .gift-table > .empty-state-card { display: grid; min-height: 23.5rem; place-content: center; justify-items: center; padding: 2.5rem 1rem; border: 0; background: transparent; text-align: center; }
.gift-page .gift-table > .empty-state-card::before { content: "♡"; display: grid; place-items: center; width: 6.75rem; height: 6.75rem; margin-bottom: 1rem; border-radius: 2rem; color: #ff4870; background: radial-gradient(circle at 35% 30%, #fff, #ffe6ec); box-shadow: 0 1rem 1.9rem rgba(255, 92, 124, 0.16); font-family: Georgia, serif; font-size: 4.4rem; line-height: 1; }
.gift-page .gift-table > .empty-state-card h3 { margin: 0; color: #1f1a24; font-family: Georgia, serif; font-size: 1.75rem; }
.gift-page .gift-table > .empty-state-card p { max-width: 20rem; margin: 0.5rem auto 1.2rem; color: #6b5f6f; line-height: 1.5; }
.gift-page .gift-table > .empty-state-card .button, .gift-page .save-memory-button { min-height: 3rem; border: 0; border-radius: 0.72rem; color: #fff; background: linear-gradient(135deg, #ff3c62, #e60023); box-shadow: 0 0.8rem 1.4rem rgba(230, 0, 35, 0.18); }

.gift-page .gift-sidebar { position: sticky; top: 1rem; }
.gift-page .add-gift-card { padding: 1.25rem; background: linear-gradient(155deg, #fff 0%, #fffafa 100%); }
.gift-page .add-gift-card h2 { position: relative; margin-bottom: 1.15rem; padding-left: 2.7rem; color: #1f1a24; font-family: Georgia, serif; font-size: 1.52rem; }
.gift-page .add-gift-card h2::before { content: "♡"; position: absolute; left: 0; top: -0.22rem; display: grid; place-items: center; width: 2.1rem; height: 2.1rem; border-radius: 50%; color: #e60023; background: #fff0f3; font-family: Georgia, serif; font-size: 1.6rem; }
.gift-page .memory-field > span { font-size: 0.84rem; }
.gift-page .add-gift-card input:not([type="hidden"]), .gift-page .add-gift-card select, .gift-page .add-gift-card textarea, .gift-page .settings-date-trigger { min-height: 2.65rem; border-color: #f0dce1; border-radius: 0.68rem; }
.gift-page .add-gift-card textarea { min-height: 4.25rem; }
.gift-page .gift-upload-field { border: 1px dashed #ffb7c5; border-radius: 0.72rem; background: #fffafb; }
.gift-page .gift-form-actions { gap: 0.7rem; }
.gift-page .gift-form-actions .save-memory-button, .gift-page .gift-form-actions .modal-secondary { flex: 1 1 0; min-height: 2.85rem; }
.gift-page .gift-privacy-card { display: flex; align-items: center; gap: 0.65rem; margin-top: 0.85rem; padding: 0.85rem 1rem; background: #fff7f8; }
.gift-page .gift-privacy-card strong { color: #9d192f; }

@media (max-width: 1100px) { .gift-page .gift-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gift-page .gift-layout { grid-template-columns: minmax(0, 1fr) minmax(18.5rem, 22rem); } }
@media (max-width: 860px) { .gift-page .gift-layout { grid-template-columns: 1fr; } .gift-page .gift-sidebar { position: static; } }
@media (max-width: 620px) { .gift-page .gift-shell { width: min(100% - 1rem, 94rem); margin-top: 0.65rem; padding: 1rem; border-radius: 1.15rem; } .gift-page .gift-top { flex-direction: column; } .gift-page .gift-top h1 { font-size: 2.45rem; } .gift-page .gift-top::after { display: none; } .gift-page .add-memory-top { width: 100%; } .gift-page .gift-summary-grid { grid-template-columns: 1fr; } .gift-page .gift-checklist-card { min-height: 25rem; } .gift-page .gift-table > .empty-state-card { min-height: 19rem; } }

/* Compact date controls shared by the private collection pages. */
.memories-page .settings-date-trigger,
.events-page .settings-date-trigger,
.gift-page .settings-date-trigger,
.milestone-page .settings-date-trigger {
  grid-template-columns: 1.1rem minmax(0, 1fr) 1.1rem;
  gap: 0.85rem;
  min-height: 3rem;
  padding: 0 0.95rem;
  border-color: #f0dce1;
  border-radius: 0.75rem;
  box-shadow: none;
  font-size: 1rem;
  font-weight: 800;
}

.memories-page .settings-date-trigger svg,
.events-page .settings-date-trigger svg,
.gift-page .settings-date-trigger svg,
.milestone-page .settings-date-trigger svg {
  width: 1.1rem;
  height: 1.1rem;
}

.memories-page .settings-date-trigger:hover,
.events-page .settings-date-trigger:hover,
.gift-page .settings-date-trigger:hover,
.milestone-page .settings-date-trigger:hover,
.memories-page .settings-date-trigger:focus-visible,
.events-page .settings-date-trigger:focus-visible,
.gift-page .settings-date-trigger:focus-visible,
.milestone-page .settings-date-trigger:focus-visible {
  box-shadow: 0 0 0 0.2rem rgba(230, 0, 35, 0.06);
}

/* Month and year controls in every custom calendar popover. */
.settings-date-selects {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 5rem;
  gap: 0.42rem;
  min-width: 0;
}

.settings-date-selects select {
  width: 100%;
  min-height: 2.4rem;
  padding: 0 0.55rem;
  border: 1px solid #f0dce1;
  border-radius: 0.65rem;
  color: var(--ink);
  background: #fff;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 800;
  cursor: pointer;
}

.settings-date-selects select:hover,
.settings-date-selects select:focus-visible {
  border-color: var(--red);
  outline: 0;
}

.settings-date-selects select option:disabled {
  color: #c8bdc4;
}

@media (max-width: 430px) {
  .settings-date-popover {
    width: min(22rem, calc(100vw - 1.25rem));
    padding: 0.85rem;
  }

  .settings-date-head {
    grid-template-columns: 2.15rem minmax(0, 1fr) 2.15rem;
    gap: 0.4rem;
  }

  .settings-date-selects {
    grid-template-columns: minmax(0, 1fr) 4.35rem;
    gap: 0.3rem;
  }

  .settings-date-selects select {
    min-height: 2.25rem;
    padding: 0 0.35rem;
    font-size: 0.78rem;
  }
}

/* Final Milestones overrides after base and responsive styles. */
.milestone-page { background: radial-gradient(circle at 88% 23%, rgba(255, 213, 222, 0.54), transparent 18rem), linear-gradient(180deg, #fffdfd 0%, #fff8fa 100%); }
.milestone-page .milestone-shell { width: min(94rem, calc(100% - 2.5rem)); margin: 1.55rem auto 3rem; }
.milestone-page .milestone-top { margin-bottom: 1.3rem; }
.milestone-page .milestone-top h1 { color: #1f1a24; font-size: clamp(2.55rem, 4vw, 3.6rem); }
.milestone-page .milestone-top h1::after { content: " ✦"; color: #ff6f91; font-size: .6em; vertical-align: .12em; }
.milestone-page .milestone-top p { margin-top: .55rem; font-size: 1rem; }
.milestone-journey { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(19rem, .75fr); gap: 1rem; margin-bottom: 1rem; }
.milestone-hero-card, .milestone-journey-card { position: relative; overflow: hidden; min-height: 15rem; border: 1px solid #f1dce1; border-radius: 1.35rem; background: linear-gradient(135deg, #fff 0%, #fff8fa 100%); box-shadow: 0 1rem 2.5rem rgba(31, 26, 36, .042); }
.milestone-hero-card { display: flex; align-items: center; justify-content: space-between; gap: 1.2rem; padding: 1.8rem; }
.milestone-hero-card::after { content: "♡"; position: absolute; right: 1.5rem; bottom: -2.2rem; color: #ffe2e8; font-family: Georgia, serif; font-size: 11rem; line-height: 1; }
.milestone-hero-copy { position: relative; z-index: 1; }
.milestone-kicker { display: inline-flex; align-items: center; min-height: 1.85rem; padding: 0 .72rem; border-radius: 999px; color: #d71a3a; background: #fff0f3; font-size: .75rem; font-weight: 900; letter-spacing: .04em; }
.milestone-hero-card h2 { max-width: 24rem; margin: .75rem 0 .25rem; color: #1f1a24; font-family: Georgia, serif; font-size: clamp(1.8rem, 3vw, 2.55rem); line-height: 1.08; }
.milestone-hero-card p, .milestone-journey-card p { margin: 0; color: #6b5f6f; font-weight: 700; }
.milestone-hero-status { display: inline-flex; margin-top: 1.05rem; color: #e60023; font-weight: 900; }
.milestone-hero-progress { position: relative; z-index: 1; flex: 0 0 auto; width: 8.25rem; height: 8.25rem; box-shadow: 0 .85rem 1.8rem rgba(230, 0, 35, .1); }
.milestone-hero-progress span { width: 6.7rem; height: 6.7rem; font-size: 1.35rem; }
.milestone-journey-card { display: flex; flex-direction: column; justify-content: center; padding: 1.8rem; }
.milestone-journey-card::before { content: "✦"; position: absolute; top: 1.1rem; right: 1.3rem; color: #ff91a7; font-size: 1.6rem; }
.milestone-journey-card strong { margin: .7rem 0 .45rem; color: #1f1a24; font-family: Georgia, serif; font-size: 1.8rem; line-height: 1.1; }
.milestone-journey-track { height: .65rem; margin-top: 1.45rem; overflow: hidden; border-radius: 999px; background: #f3e8eb; }
.milestone-journey-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ff7895, #e60023); transition: width 300ms ease; }
.milestone-journey-card small { margin-top: .55rem; color: #6b5f6f; font-weight: 800; }
.milestone-page .milestone-summary-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .85rem; margin: 0 0 1rem; }
.milestone-page .milestone-summary-card { min-height: 6.2rem; padding: .9rem 1rem; border-color: #f2dfe3; border-radius: 1rem; box-shadow: none; }
.milestone-page .milestone-summary-card:nth-child(2) { display: none; }
.milestone-page .milestone-summary-card > span { width: 2.8rem; height: 2.8rem; }
.milestone-page .milestone-summary-card strong { font-family: Georgia, serif; font-size: 1.15rem; }
.milestone-page .milestone-layout { grid-template-columns: minmax(0, 1fr) minmax(20rem, 23.5rem); gap: 1.15rem; }
.milestone-page .milestone-list-card, .milestone-page .add-milestone-card, .milestone-page .milestone-privacy-card { border-color: #f1dce1; border-radius: 1.2rem; box-shadow: 0 .85rem 2.2rem rgba(31, 26, 36, .033); }
.milestone-page .milestone-list-card { padding: 1.3rem; }
.milestone-page .milestone-list-card h2 { margin: 0; color: #1f1a24; font-family: Georgia, serif; font-size: 1.62rem; }
.milestone-list-intro { margin: .35rem 0 1.1rem; color: #6b5f6f; font-size: .94rem; }
.milestone-page .milestone-controls { grid-template-columns: minmax(13rem, 16rem) minmax(0, 1fr) minmax(9.8rem, auto); padding: .8rem; border: 1px solid #f2e0e4; border-radius: .95rem; background: #fff; }
.milestone-page .milestone-toolbar button { min-height: 2.3rem; border-radius: 999px; color: #785e66; }
.milestone-page .milestone-toolbar button.is-active { border-color: transparent; color: #fff; background: linear-gradient(135deg, #ff3c62, #e60023); box-shadow: 0 .5rem 1.1rem rgba(230,0,35,.16); }
.milestone-page .milestone-table { margin-top: 1rem; border-top: 0; }
.milestone-page .milestone-row { min-height: 5.1rem; margin-bottom: .65rem; padding: .75rem .85rem; border: 1px solid #f2e1e5; border-radius: .95rem; background: #fff; transition: border-color 160ms ease, transform 160ms ease, box-shadow 160ms ease; }
.milestone-page .milestone-row:hover { border-color: #ffc6d2; box-shadow: 0 .7rem 1.5rem rgba(31,26,36,.045); transform: translateY(-1px); }
.milestone-page .milestone-row.is-completed { opacity: .68; background: #fffcfc; }
.milestone-page .milestone-days { color: #e60023; font-weight: 900; }
.milestone-page .add-milestone-card { padding: 1.25rem; background: linear-gradient(155deg, #fff 0%, #fffafa 100%); }
.milestone-page .add-milestone-card h2 { color: #1f1a24; font-family: Georgia, serif; font-size: 1.45rem; }
.milestone-page .milestone-next-card { display: none; }
@media (max-width:1050px) { .milestone-journey { grid-template-columns:1fr; } .milestone-page .milestone-layout { grid-template-columns:minmax(0,1fr) minmax(18.5rem,21rem); } }
@media (max-width:820px) { .milestone-page .milestone-layout { grid-template-columns:1fr; } .milestone-page .milestone-sidebar { display:grid; grid-template-columns:minmax(0,1fr) minmax(17rem,.8fr); align-items:start; } }
@media (max-width:620px) { .milestone-page .milestone-shell { width:min(100% - 1rem,94rem); margin-top:.65rem; } .milestone-page .milestone-top { align-items:stretch; flex-direction:column; } .milestone-page .milestone-top .add-memory-top { width:100%; } .milestone-hero-card { align-items:flex-start; flex-direction:column; min-height:0; padding:1.35rem; } .milestone-hero-progress { align-self:flex-end; width:6.75rem; height:6.75rem; } .milestone-hero-progress span { width:5.45rem; height:5.45rem; } .milestone-journey-card { min-height:0; padding:1.35rem; } .milestone-page .milestone-summary-grid { grid-template-columns:1fr; } .milestone-page .milestone-sidebar { grid-template-columns:1fr; } .milestone-page .milestone-controls { grid-template-columns:1fr; } .milestone-page .milestone-sort { justify-self:stretch; } .milestone-page .milestone-row { grid-template-columns:2.15rem 2.75rem minmax(0,1fr) auto; gap:.6rem; } .milestone-page .milestone-row > :nth-child(4), .milestone-page .milestone-row > :nth-child(5) { display:none; } .milestone-page .milestone-row-actions { display:none; } }

/* Milestones visual polish: always load after legacy page styles. */
.milestone-page .milestone-top small { display: none; }
.milestone-page .milestone-top h1 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(2.65rem, 4vw, 3.55rem); font-weight: 800; line-height: 1; }
.milestone-page .add-memory-top { min-height: 3.45rem; padding-inline: 1.3rem; border-radius: .8rem; color: #fff; background: linear-gradient(135deg, #ff687f, #e60023); box-shadow: 0 1rem 2rem rgba(230,0,35,.18); }
.milestone-page .milestone-journey { grid-template-columns: minmax(0,1.18fr) minmax(22rem,.82fr); gap: .85rem; margin-bottom: .85rem; }
.milestone-page .milestone-hero-card, .milestone-page .milestone-journey-card { min-height: 15.7rem; border-color: #f3dce2; border-radius: 1.2rem; box-shadow: 0 .95rem 2.5rem rgba(31,26,36,.04); }
.milestone-page .milestone-hero-card { padding: 1.8rem 2rem; background: radial-gradient(circle at 71% 49%,rgba(255,225,233,.92),transparent 11.5rem),linear-gradient(135deg,#fff 0%,#fff3f6 100%); }
.milestone-page .milestone-hero-card::before { content: "✦  ♡"; position: absolute; right: 1.65rem; top: 1.1rem; color: #ffacc0; letter-spacing: .5rem; font-size: 1.35rem; }
.milestone-page .milestone-hero-card h2 { max-width: 20rem; margin-top: .65rem; font-size: clamp(2rem,3vw,2.6rem); }
.milestone-page .milestone-hero-card p { display:flex; align-items:center; gap:.4rem; margin-top:.55rem; }
.milestone-page .milestone-hero-card p::before { content:"□"; color:var(--red); font-size:1.05rem; }
.milestone-page .milestone-hero-status { margin-top:.95rem; font-size:.95rem; }
.milestone-page .milestone-hero-progress { width:9rem; height:9rem; margin-right:.8rem; border:.7rem solid rgba(255,255,255,.75); }
.milestone-page .milestone-hero-progress span { width:6.5rem; height:6.5rem; background:#fffdfa; font-family:Georgia,"Times New Roman",serif; font-size:1.7rem; }
.milestone-page .milestone-journey-card { padding:1.85rem 1.95rem; background:linear-gradient(135deg,#fff 0%,#fffafa 100%); }
.milestone-page .milestone-journey-card strong { font-size:clamp(1.75rem,2.4vw,2.25rem); }
.milestone-page .milestone-journey-track { height:.7rem; margin-top:1.55rem; }
.milestone-page .milestone-summary-grid { grid-template-columns:repeat(3,minmax(0,1fr)); gap:.85rem; margin-bottom:.85rem; }
.milestone-page .milestone-summary-card { min-height:6rem; padding:1rem 1.15rem; border-radius:1rem; box-shadow:none; }
.milestone-page .milestone-summary-card > span { width:3rem; height:3rem; }
.milestone-page .milestone-summary-card p { font-size:.83rem; }
.milestone-page .milestone-summary-card strong { margin-top:.15rem; font-size:1.22rem; }
.milestone-page .milestone-layout { grid-template-columns:minmax(0,1fr) minmax(19rem,23rem); gap:.9rem; }
.milestone-page .milestone-list-card, .milestone-page .add-milestone-card { border-radius:1.15rem; }
.milestone-page .milestone-list-card h2 { font-size:1.4rem; }
.milestone-page .milestone-controls { grid-template-columns:minmax(10rem,13rem) minmax(0,1fr) 9.25rem; gap:.6rem; padding:.65rem; border-radius:.9rem; }
.milestone-page .milestone-toolbar { flex-wrap:nowrap; overflow-x:auto; scrollbar-width:none; }
.milestone-page .milestone-toolbar::-webkit-scrollbar { display:none; }
.milestone-page .milestone-toolbar button { flex:0 0 auto; min-height:2.35rem; padding-inline:.76rem; font-size:.82rem; }
.milestone-page .milestone-row { grid-template-columns:2.15rem 2.8rem minmax(11rem,1fr) minmax(5rem,.5fr) minmax(6.3rem,auto) 2rem 3.7rem; min-height:4.7rem; margin-bottom:.5rem; padding:.65rem .75rem; border-radius:.85rem; }
.milestone-page .milestone-row strong { font-size:.95rem; }
.milestone-page .milestone-row small, .milestone-page .milestone-days { font-size:.79rem; }
.milestone-page .add-milestone-card { position:sticky; top:1rem; padding:1.25rem; }
.milestone-page .add-milestone-card h2 { display:flex; align-items:center; gap:.55rem; margin-bottom:1rem; font-size:1.45rem; }
.milestone-page .add-milestone-card h2::before { content:"♥"; color:var(--red); font-size:.95em; }
.milestone-page .add-milestone-card .memory-field { margin-bottom:.75rem; }
.milestone-page .add-milestone-card .memory-field > span { font-size:.82rem; font-weight:850; }
.milestone-page .milestone-form-actions { display:grid; grid-template-columns:1fr; gap:.55rem; }
.milestone-page .milestone-form-actions .save-memory-button { min-height:3.15rem; border-radius:.75rem; background:linear-gradient(135deg,#ff6b83,#e60023); }
.milestone-page .milestone-form-actions .modal-secondary { min-height:2.7rem; }
@media (max-width:1050px) { .milestone-page .milestone-journey { grid-template-columns:1fr; } .milestone-page .milestone-layout { grid-template-columns:minmax(0,1fr) minmax(18rem,21rem); } }
@media (max-width:800px) { .milestone-page .milestone-layout { grid-template-columns:1fr; } .milestone-page .add-milestone-card { position:static; } .milestone-page .milestone-sidebar { grid-template-columns:1fr; } .milestone-page .milestone-summary-grid { grid-template-columns:1fr; } }
@media (max-width:620px) { .milestone-page .milestone-shell { width:min(100% - 1rem,38rem); } .milestone-page .milestone-top { align-items:stretch; flex-direction:column; } .milestone-page .milestone-top .add-memory-top { width:100%; } .milestone-page .milestone-hero-card { padding:1.25rem; } .milestone-page .milestone-hero-progress { align-self:flex-end; width:6.8rem; height:6.8rem; margin-right:0; } .milestone-page .milestone-hero-progress span { width:4.8rem; height:4.8rem; } .milestone-page .milestone-controls { grid-template-columns:1fr; } .milestone-page .milestone-sort { width:100%; } .milestone-page .milestone-table { min-width:0; } .milestone-page .milestone-row { grid-template-columns:2rem 2.6rem minmax(0,1fr) auto; gap:.55rem; } .milestone-page .milestone-row > :nth-child(4), .milestone-page .milestone-row > :nth-child(5), .milestone-page .milestone-row-actions { display:none; } }


