:root {
  --ink: #261a15;
  --muted: #79675d;
  --paper: rgba(255, 250, 242, 0.88);
  --line: rgba(64, 43, 32, 0.14);
  --accent: #c7793c;
  --accent-2: #f4c476;
  --girl: #e77f9e;
  --boy: #5c9fd5;
  --unknown: #d6a945;
  --green: #6e9860;
  --shadow: 0 28px 80px rgba(77, 45, 24, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: "Trebuchet MS", "Avenir Next", Verdana, sans-serif;
  background:
    radial-gradient(circle at 8% 8%, rgba(255, 224, 171, 0.9), transparent 34%),
    radial-gradient(circle at 90% 10%, rgba(167, 215, 231, 0.68), transparent 32%),
    radial-gradient(circle at 58% 100%, rgba(224, 150, 115, 0.24), transparent 34%),
    linear-gradient(135deg, #fff5df 0%, #f5ded1 52%, #f7ecda 100%);
}

body.theme-girl {
  --accent: var(--girl);
  --accent-2: #f8bdd0;
}

body.theme-boy {
  --accent: var(--boy);
  --accent-2: #badcf3;
}

body.theme-neutral {
  --accent: #c7793c;
  --accent-2: #f4c476;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.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;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 58px;
}

body.view-form .page-shell {
  width: 100%;
  padding: 0;
}

body.view-form .hero,
body.view-form #home,
body.view-form #stats,
body.view-form #registry {
  display: none;
}

.hero {
  position: relative;
  overflow: hidden;
  min-height: 430px;
  border: 1px solid var(--line);
  border-radius: 38px;
  padding: 22px;
  background:
    linear-gradient(130deg, rgba(255, 255, 255, 0.84), rgba(255, 240, 213, 0.56)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.3) 0 9px, transparent 9px 20px);
  box-shadow: var(--shadow);
}

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

.hero::before {
  right: 70px;
  top: 90px;
  width: 170px;
  height: 170px;
  border: 1px solid color-mix(in srgb, var(--accent) 42%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}

.hero::after {
  right: -72px;
  bottom: -92px;
  width: 270px;
  height: 270px;
  background: color-mix(in srgb, var(--accent) 44%, transparent);
}

.topbar,
.hero-grid,
.stats-heading {
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.56);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 800;
}

.top-actions,
.heading-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.top-link {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.6);
  font-weight: 900;
  transition: transform 180ms ease, background 180ms ease;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 30px;
  align-items: end;
  padding: 92px 14px 18px;
}

.eyebrow,
.step-kicker {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.96;
}

h1 {
  max-width: 760px;
  margin: 0;
  font-size: clamp(3.3rem, 9vw, 8.1rem);
  letter-spacing: -0.075em;
}

.hero-copy {
  max-width: 650px;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

.due-card {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
}

.due-label,
.due-count,
label > span,
legend {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.due-card strong {
  display: block;
  margin: 10px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 3rem;
  letter-spacing: -0.06em;
}

.due-count {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 17%, #fff);
  color: var(--ink);
}

.panel {
  margin-top: 26px;
  border: 1px solid var(--line);
  border-radius: 34px;
  padding: clamp(22px, 4vw, 40px);
  background: var(--paper);
  box-shadow: 0 18px 44px rgba(81, 48, 25, 0.1);
}

.view-panel.is-hidden {
  display: none;
}

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

.home-choice-button {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 34px;
  color: #fffaf2;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 66%, #4b2b1f));
  box-shadow: 0 20px 42px color-mix(in srgb, var(--accent) 22%, transparent);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.4rem, 6vw, 5rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.98;
  overflow-wrap: anywhere;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.home-choice-button.ghost {
  color: var(--ink);
  background:
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 25%),
    rgba(255, 255, 255, 0.72);
}

.home-choice-button.registry {
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.24), transparent 22%),
    linear-gradient(135deg, var(--green), #416f5b);
  font-size: clamp(2rem, 4.4vw, 4rem);
}

.home-choice-button:hover,
.primary-action:hover,
.secondary-action:hover,
.date-nudge:hover,
.gender-card:hover,
.top-link:hover,
.gift-card:hover {
  transform: translateY(-2px);
}

.form-panel {
  min-height: calc(100vh - 52px);
  display: grid;
}

body.view-form .form-panel {
  min-height: 100vh;
  margin-top: 0;
  border: 0;
  border-radius: 0;
  padding: clamp(18px, 4vw, 44px);
  background:
    linear-gradient(135deg, rgba(255, 250, 242, 0.96), rgba(247, 236, 218, 0.94)),
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.26) 0 9px, transparent 9px 20px);
  box-shadow: none;
}

.wizard-layout {
  display: block;
}

.wizard-side {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  padding: 28px;
  border-radius: 30px;
  background:
    radial-gradient(circle at 78% 20%, color-mix(in srgb, var(--accent) 26%, transparent), transparent 22%),
    linear-gradient(160deg, rgba(255, 255, 255, 0.84), color-mix(in srgb, var(--accent) 12%, #fff));
  border: 1px solid var(--line);
}

.wizard-side::after {
  content: "";
  position: absolute;
  left: -42px;
  bottom: -42px;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 28%, transparent);
}

.wizard-topline h2,
.section-heading h2 {
  margin: 0;
  font-size: clamp(2.1rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}

.wizard-side p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.6;
}

.wizard-shell {
  min-height: calc(100vh - 140px);
  display: grid;
  grid-template-rows: auto 1fr;
  gap: 18px;
}

.wizard-topline {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
}

.wizard-progress {
  display: grid;
  gap: 10px;
  justify-items: end;
  min-width: min(100%, 300px);
}

.progress-shell {
  overflow: hidden;
  height: 12px;
  width: 100%;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.8);
}

.progress-shell span {
  display: block;
  width: 20%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  transition: width 220ms ease;
}

.step-counter {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
}

.wizard-card {
  min-height: 0;
  padding: clamp(22px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
}

.prediction-form,
.wizard-step {
  display: grid;
  gap: 18px;
}

.wizard-step {
  display: none;
  min-height: min(58vh, 560px);
  align-content: center;
}

.wizard-step.is-active {
  display: grid;
  animation: stepIn 220ms ease both;
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(10px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wizard-step h3 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.6rem, 6vw, 5.6rem);
  letter-spacing: -0.065em;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

label,
.gender-field {
  display: grid;
  gap: 8px;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 16px 16px;
  color: var(--ink);
  outline: none;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5);
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 17%, transparent);
}

.date-console {
  display: grid;
  gap: 18px;
  padding: clamp(18px, 4vw, 30px);
  border: 1px dashed color-mix(in srgb, var(--accent) 50%, transparent);
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.72), transparent 28%),
    color-mix(in srgb, var(--accent) 12%, #fff);
}

.date-display {
  display: grid;
  grid-template-columns: 64px 1fr 64px;
  gap: 14px;
  align-items: center;
  text-align: center;
}

.date-label {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.date-display strong {
  display: block;
  margin: 4px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.055em;
}

.date-display small {
  color: var(--muted);
  font-weight: 800;
}

.date-nudge {
  width: 64px;
  height: 64px;
  border: 0;
  border-radius: 20px;
  color: #fff;
  background: var(--ink);
  font-size: 2rem;
  font-weight: 900;
  transition: transform 180ms ease;
}

.secondary-action,
.primary-action {
  border: 0;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.secondary-action {
  padding: 12px 16px;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--line);
  font-weight: 800;
}

.primary-action {
  padding: 13px 20px;
  color: #fffaf2;
  background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #5f3726));
  box-shadow: 0 12px 25px color-mix(in srgb, var(--accent) 25%, transparent);
  font-weight: 900;
}

.gender-field {
  border: 0;
  margin: 0;
  padding: 0;
}

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

.gender-card {
  position: relative;
  min-height: 180px;
  padding: 22px;
  place-content: center;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 900;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.gender-card input {
  position: absolute;
  opacity: 0;
}

.gender-card:has(input:checked) {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 18px 34px rgba(70, 38, 24, 0.16);
}

.gender-card.girl:has(input:checked) {
  background: linear-gradient(135deg, var(--girl), #b84a72);
}

.gender-card.boy:has(input:checked) {
  background: linear-gradient(135deg, var(--boy), #276c9d);
}

.summary-box {
  display: grid;
  gap: 8px;
  padding: 18px;
  border-radius: 24px;
  background: color-mix(in srgb, var(--accent) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, transparent);
}

.summary-box span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.summary-box strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.7rem;
}

.summary-box p {
  margin: 0;
  color: var(--muted);
}

.wizard-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.submit-action {
  display: none;
}

.submit-action.is-visible {
  display: inline-flex;
}

.step-error {
  min-height: 22px;
  margin: 0;
  color: #9a321f;
  font-weight: 800;
}

.alert,
.success,
.empty-state {
  border-radius: 24px;
  padding: 16px 18px;
}

.alert {
  margin-bottom: 16px;
  background: #ffe7df;
  color: #8d2d18;
}

.alert p {
  margin: 0;
}

.success {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
  background: #e9f6dd;
  color: #44632d;
  font-weight: 900;
}

.inline-action {
  border: 0;
  border-radius: 999px;
  padding: 10px 14px;
  color: #fff;
  background: #44632d;
  font-weight: 900;
}

.stats-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading h2 {
  margin: 0;
}

.stat-cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.stat-cards article,
.insight-card,
.calendar-card,
.table-card,
.empty-state,
.gift-card {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
}

.stat-cards article {
  padding: 18px;
}

.stat-cards span,
.stat-cards small {
  color: var(--muted);
}

.stat-cards strong {
  display: block;
  margin: 8px 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.8rem;
  letter-spacing: -0.05em;
}

.calendar-card {
  margin-top: 16px;
  padding: 22px;
}

.calendar-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.calendar-head h3 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.045em;
}

.calendar-head span {
  max-width: 330px;
  color: var(--muted);
  font-weight: 800;
  line-height: 1.35;
}

.calendar-shell {
  display: grid;
  gap: 8px;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
  text-transform: uppercase;
}

.calendar-day {
  position: relative;
  display: grid;
  grid-template-rows: auto auto 1fr;
  gap: 8px;
  min-height: 112px;
  padding: 10px;
  border: 1px solid rgba(38, 26, 21, 0.12);
  border-radius: 18px;
  overflow: hidden;
  background: #d9efca;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.calendar-day.heat-1 {
  background: #d9e99f;
}

.calendar-day.heat-2 {
  background: #f2dc78;
}

.calendar-day.heat-3 {
  background: #efb85f;
}

.calendar-day.heat-4 {
  background: #e78555;
}

.calendar-day.heat-5 {
  background: #cf5148;
  color: #fffaf2;
}

.calendar-day.is-outside {
  opacity: 0.34;
  background: rgba(255, 255, 255, 0.5);
}

.calendar-day.is-due {
  border: 3px solid var(--ink);
  box-shadow: 0 12px 28px rgba(38, 26, 21, 0.18);
}

.calendar-date,
.calendar-count {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.calendar-date b {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  line-height: 1;
}

.calendar-date em,
.calendar-count small {
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.calendar-date em {
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.54);
}

.calendar-compact-date {
  display: none;
}

.calendar-count strong {
  font-size: 1.8rem;
  line-height: 1;
}

.calendar-voters {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  align-content: end;
}

.calendar-voters span {
  max-width: 100%;
  padding: 4px 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.76);
  color: var(--ink);
  font-size: 0.72rem;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.calendar-voters span.girl {
  border-left: 4px solid var(--girl);
}

.calendar-voters span.boy {
  border-left: 4px solid var(--boy);
}

.due-pill {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 5px 7px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 900;
  text-transform: uppercase;
}

.insight-card h3,
.table-card h3 {
  margin: 0;
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  letter-spacing: -0.045em;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.insight-card,
.table-card {
  padding: 20px;
}

.gender-bars {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.bar-row {
  display: grid;
  grid-template-columns: 96px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.bar-row span,
.bar-row strong {
  font-weight: 900;
}

.bar {
  overflow: hidden;
  height: 14px;
  border-radius: 999px;
  background: #eadfce;
}

.bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
}

.bar i.girl {
  background: var(--girl);
}

.bar i.boy {
  background: var(--boy);
}

.name-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}

.name-cloud span {
  padding: 9px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  font-weight: 800;
}

.name-cloud b {
  display: inline-flex;
  min-width: 22px;
  min-height: 22px;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-size: 0.78rem;
}

.table-card {
  margin-top: 16px;
}

.summary-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.summary-head h3 {
  margin: 0;
}

.summary-head span {
  color: var(--muted);
  font-weight: 900;
}

.prediction-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.prediction-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.45fr) 1fr;
  gap: 16px;
  padding: 16px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.7);
  border-left: 6px solid var(--unknown);
}

.prediction-row.girl {
  border-left-color: var(--girl);
}

.prediction-row.boy {
  border-left-color: var(--boy);
}

.prediction-row strong,
.prediction-row b {
  display: block;
}

.prediction-person {
  display: grid;
  align-content: start;
  gap: 6px;
}

.prediction-person span {
  justify-self: start;
  padding: 6px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 14%, #fff);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
}

.prediction-summary {
  display: grid;
  gap: 7px;
}

.prediction-row span,
.prediction-row small,
.prediction-names {
  color: var(--muted);
}

.prediction-message {
  display: block;
  margin-top: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font-style: normal;
  line-height: 1.4;
}

.registry-summary {
  display: inline-grid;
  grid-template-columns: auto auto auto auto;
  gap: 8px 12px;
  align-items: baseline;
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 22px;
  background: color-mix(in srgb, var(--green) 11%, #fff);
  border: 1px solid color-mix(in srgb, var(--green) 28%, transparent);
}

.registry-summary strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2rem;
}

.registry-summary span {
  color: var(--muted);
  font-weight: 900;
}

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

.gift-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: 210px 1fr;
  color: inherit;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.gift-card:hover {
  box-shadow: 0 18px 36px rgba(80, 48, 25, 0.14);
}

.gift-image {
  position: relative;
  display: block;
  background: #fff;
}

.gift-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  padding: 16px;
}

.gift-info {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.gift-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 0.9rem;
}

.gift-meta b {
  color: var(--ink);
}

.gift-meta em {
  font-style: normal;
  font-weight: 900;
}

.gift-title {
  min-height: 58px;
  color: var(--ink);
  font-weight: 900;
  line-height: 1.3;
}

.gift-status {
  justify-self: start;
  padding: 8px 10px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 900;
}

.gift-card.is-reserved {
  opacity: 0.72;
}

.gift-card.is-reserved .gift-status {
  background: var(--green);
}

@media (max-width: 900px) {
  .hero-grid,
  .home-choice,
  .wizard-layout,
  .field-row,
  .prediction-row,
  .gift-grid {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    border-radius: 28px;
  }

  .hero-grid {
    padding-top: 62px;
  }

  .topbar,
  .stats-heading,
  .calendar-head,
  .wizard-topline {
    align-items: stretch;
    flex-direction: column;
  }

  .wizard-side {
    min-height: auto;
  }

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

  .wizard-progress {
    justify-items: start;
    min-width: 0;
  }

  .wizard-step {
    min-height: 320px;
  }

  .gender-grid,
  .date-display {
    grid-template-columns: 1fr;
  }

  .date-nudge {
    width: 100%;
  }

  .page-shell {
    width: min(100% - 20px, 1180px);
    padding-top: 10px;
  }

  body.view-home .hero {
    display: none;
  }

  body.view-home .page-shell {
    min-height: 100vh;
    min-height: 100svh;
    display: grid;
    align-content: center;
    padding: 10px 0;
  }

  body.view-home .choice-panel {
    min-height: calc(100vh - 20px);
    min-height: calc(100svh - 20px);
    display: grid;
    align-items: center;
    margin-top: 0;
    padding: 12px;
    border-radius: 24px;
  }

  body.view-home .home-choice {
    gap: 10px;
  }

  body.view-home .home-choice-button {
    min-height: 104px;
    min-height: clamp(86px, 24svh, 138px);
    border-radius: 22px;
    font-size: clamp(1.7rem, 9vw, 2.8rem);
    letter-spacing: -0.045em;
  }

  body.view-home .home-choice-button.registry {
    font-size: clamp(1.35rem, 7.2vw, 2.25rem);
  }

  .top-actions,
  .heading-actions {
    justify-content: flex-start;
  }

  .registry-summary {
    grid-template-columns: auto auto;
  }

  .gift-card {
    grid-template-rows: 190px 1fr;
  }

  .stats-panel {
    padding: 14px;
  }

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

  .stat-cards article {
    padding: 12px;
    border-radius: 18px;
  }

  .stat-cards strong {
    margin: 4px 0;
    font-size: 2rem;
  }

  .calendar-card,
  .insight-card {
    padding: 14px;
    border-radius: 20px;
  }

  .calendar-head {
    gap: 8px;
    margin-bottom: 12px;
  }

  .calendar-head span {
    max-width: none;
    font-size: 0.86rem;
  }

  .calendar-weekdays,
  .calendar-grid {
    gap: 4px;
  }

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

  .calendar-day {
    min-height: 54px;
    gap: 2px;
    padding: 4px;
    border-radius: 10px;
  }

  .calendar-count small {
    display: none;
  }

  .calendar-date b,
  .calendar-date em {
    display: none;
  }

  .calendar-compact-date {
    display: inline-flex;
    min-width: 0;
    padding: 1px 3px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.58);
    font-size: clamp(0.55rem, 2.4vw, 0.68rem);
    font-weight: 900;
    line-height: 1.15;
  }

  .calendar-count strong {
    display: grid;
    place-items: center;
    width: 23px;
    height: 23px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    color: var(--ink);
    font-size: 0.92rem;
    line-height: 1;
  }

  .calendar-voters {
    display: none;
  }

  .due-pill {
    right: 4px;
    bottom: 4px;
    padding: 2px 4px;
    font-size: 0.48rem;
  }

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

  .insight-grid .insight-card:first-child {
    grid-column: 1 / -1;
  }

  .summary-head {
    align-items: start;
    flex-direction: column;
    gap: 6px;
  }

  .table-card {
    padding: 14px;
    border-radius: 20px;
  }

  .prediction-list {
    gap: 10px;
  }

  .prediction-row {
    padding: 12px;
    border-radius: 18px;
  }

  .prediction-message {
    padding: 10px 12px;
  }
}
