/* ---------- Sign-in ---------- */
.signin-page main.signin { min-height: 100vh; display: grid; place-items: center; align-content: center; gap: 0; padding: 2rem 1rem 0; }
.signin-card { width: min(92vw, 380px); text-align: center; padding: 2rem 2rem 1.75rem; margin: 0; z-index: 1; }
.signin-card h1 { font-size: var(--step-3); margin-bottom: 1.25rem; }
.signin-card label { display: block; text-align: left; font-weight: 700; font-size: var(--step--1); margin-bottom: 0.3rem; }
.signin-card input { width: 100%; border: 1.5px solid rgba(36, 51, 90, 0.3); border-radius: 10px; padding: 0.65rem 0.8rem; font-size: 1.05rem; }
.signin-card input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(194, 164, 106, 0.35); }
.signin-card .btn { width: 100%; justify-content: center; margin-top: 1rem; padding: 0.7rem; font-size: 1rem; }
.signin-trees { display: flex; align-items: flex-end; justify-content: center; gap: 1rem; margin-top: -0.5rem; }
.signin-trees img { height: 180px; width: auto; }
.signin-trees img:nth-child(2) { height: 210px; }

/* ---------- Overview ---------- */
.hero { display: grid; grid-template-columns: 1fr minmax(0, 2.2fr) 1fr; align-items: start; padding: 0 1rem 0; overflow: hidden; border-top-width: 0; padding-top: 0;
  background: linear-gradient(var(--white), var(--white)) padding-box; }
.hero::before { content: ''; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--gold); }
.hang { display: flex; flex-direction: column; align-items: center; transform-origin: 50% 0; }
.hang .string { width: 2px; height: 28px; background: var(--olive); }
.hang-img { height: 220px; width: auto; margin-top: -2px; filter: drop-shadow(0 10px 12px rgba(36, 51, 90, 0.22)); }
.hang-right .string { height: 44px; }
.swing-in { animation: swing-in 1.8s cubic-bezier(.2, .7, .3, 1) both; }
.hang-right.swing-in { animation-delay: 0.15s; }
.nudge { animation: nudge 1.3s ease-in-out; }
@keyframes swing-in { 0% { transform: rotate(-16deg); opacity: 0; } 25% { opacity: 1; } 50% { transform: rotate(9deg); } 75% { transform: rotate(-4deg); } 100% { transform: rotate(0); } }
@keyframes nudge { 0%, 100% { transform: rotate(0); } 30% { transform: rotate(3.5deg); } 65% { transform: rotate(-2.5deg); } }

.hero-center { text-align: center; padding: 2.25rem 0.5rem 0; }
.countdown { margin: 0 auto 1rem; display: flex; flex-direction: column; align-items: center; max-width: none; }
.countdown-num { font-family: var(--serif); font-weight: 700; font-size: clamp(4rem, 11vw, 7.5rem); line-height: 0.9; color: var(--navy);
  background: linear-gradient(180deg, var(--navy) 55%, #4A5C8C); -webkit-background-clip: text; background-clip: text; }
.countdown-words { font-family: var(--serif); font-size: var(--step-2); }
.budget { max-width: 420px; margin: 0 auto; }
.budget-line { margin: 0 auto 0.4rem; font-size: var(--step-1); max-width: none; }
.budget-sub { margin: 0.4rem auto 0; font-size: var(--step--1); max-width: none; }
.over-text { color: var(--peony-deep); }
.hero-trees { grid-column: 1 / -1; display: flex; justify-content: center; align-items: flex-end; gap: clamp(0.5rem, 3vw, 2.5rem); margin-top: 1.25rem; }
.hero-trees .tree { height: 150px; width: auto; }
.hero-trees .tree-tall { height: 180px; }
.hero-trees .spray { height: 110px; width: auto; align-self: center; }
@media (max-width: 720px) {
  .hero { grid-template-columns: 1fr 1fr; }
  .hero-center { grid-column: 1 / -1; grid-row: 2; padding-top: 0.5rem; }
  .hang-img { height: 140px; }
  .hero-trees .tree { height: 100px; } .hero-trees .tree-tall { height: 120px; } .hero-trees .spray { display: none; }
}

.covered h2 { margin-bottom: 0.25rem; }
.still { margin: 0.5rem 0 0; max-width: none; }

.timeline { list-style: none; margin: 0; padding: 0; }
.tl { display: grid; grid-template-columns: 1.25rem 6.25rem 1fr auto; align-items: center; gap: 0.5rem; padding: 0.4rem 0.5rem; border-radius: var(--radius-row); }
.tl + .tl { border-top: 1px solid rgba(36, 51, 90, 0.07); }
.tl-dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--gold); justify-self: center; }
.tl-date { color: var(--navy-soft); font-size: var(--step--1); font-weight: 600; }
.tl-title { color: var(--navy); text-decoration: none; }
.tl-title:hover { text-decoration: underline; }
.tl.is-overdue { background: #FDF0F4; box-shadow: inset 4px 0 0 var(--peony-deep); }
.tl-flag { color: var(--peony-deep); font-weight: 700; font-size: 0.8rem; }
.tl.is-done .tl-title { text-decoration: line-through; color: var(--navy-soft); }
.tl input[type='checkbox'] { accent-color: var(--olive); }

/* ---------- Gifts ---------- */
.page-title .btn { margin-left: auto; }
.family-head { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin-bottom: 0.5rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--gold-soft); }
.family-name { font-family: var(--serif); font-size: var(--step-2); font-weight: 500; flex: 1 1 14rem; width: auto; }
.family-total { color: var(--navy-soft); font-weight: 600; font-size: var(--step--1); }
.ships-badge { background: var(--mint); color: var(--navy); border-radius: 999px; padding: 0.15rem 0.7rem; font-weight: 700; font-size: 0.8rem; text-decoration: none; }
.family-actions { display: flex; align-items: center; gap: 0.25rem; }
.icon-btn:disabled { opacity: 0.3; cursor: default; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; width: 2rem; height: 2rem; display: grid; place-items: center; border-radius: 50%; font-size: 1.25rem; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary:hover { background: var(--blush); }
.menu-panel { position: absolute; right: 0; top: 2.25rem; z-index: 20; background: var(--white); border-radius: 10px; box-shadow: var(--shadow), 0 0 0 1px rgba(36, 51, 90, 0.08); padding: 0.4rem; display: grid; min-width: 12rem; }
.menu-panel .btn { justify-content: flex-start; border-radius: 6px; }
.danger-text { color: var(--peony-deep) !important; }

.person { padding: 0.75rem 0 0.5rem; border-bottom: 1px dashed rgba(36, 51, 90, 0.14); }
.person:last-of-type { border-bottom: 0; }
.person-head { display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; }
.person-name { font-family: var(--serif); font-size: var(--step-1); width: auto; flex: 0 1 12rem; }
.person-spent { font-size: var(--step--1); color: var(--navy-soft); font-weight: 600; }
.person-spent.is-over { color: var(--peony-deep); }
.person-actions { display: flex; align-items: center; gap: 0.35rem; margin-left: auto; }
.mini-label { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; color: var(--navy-soft); font-weight: 600; }
.budget-label .money-input { max-width: 6rem; }
.person-details { margin: 0.25rem 0 0.25rem; }
.person-details summary { cursor: pointer; color: var(--olive); font-weight: 700; font-size: var(--step--1); width: max-content; }
.details-grid { display: grid; grid-template-columns: 14rem 1fr; gap: 0.5rem 1.25rem; padding: 0.5rem 0.75rem 0.75rem; background: #F7FAFC; border-radius: var(--radius-row); margin-top: 0.4rem; }
.details-grid .notes-label { grid-column: 1 / -1; }
.details-grid textarea { width: 100%; }
.interest-chips { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.tag-toggle { border: 1px solid rgba(36, 51, 90, 0.25); background: var(--white); border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.8rem; cursor: pointer; }
.tag-toggle[aria-pressed='true'] { background: var(--peony); border-color: var(--peony); color: var(--navy); font-weight: 700; }
@media (max-width: 640px) { .details-grid { grid-template-columns: 1fr; } }

.gift-list { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.gift { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto auto auto; align-items: center; gap: 0.75rem; padding: 0.4rem 0.4rem; border-radius: var(--radius-row); }
.gift:hover { background: #FAFBFD; }
.gift.is-idea .gift-desc { font-style: italic; }
.thumb { width: 64px; height: 64px; border-radius: 10px; overflow: hidden; border: 0; padding: 0; background: #F2F5F8; cursor: pointer; display: grid; place-items: center; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb-empty { font-size: 0.7rem; font-weight: 700; color: var(--navy-soft); border: 1.5px dashed rgba(36, 51, 90, 0.25); text-align: center; line-height: 1.2; padding: 0.2rem; }
.thumb-failed { border-color: var(--peony); color: var(--peony-deep); background: #FDF3F6; }
.gift-main { min-width: 0; }
.gift-desc { font-weight: 600; }
.gift-link-row { display: flex; align-items: center; gap: 0.4rem; }
.gift-link { font-size: 0.8rem; color: var(--navy-soft); text-overflow: ellipsis; }
.open-link { font-size: 0.8rem; font-weight: 700; }
.gift-money { display: flex; align-items: center; gap: 0.5rem; }
.tax-input { width: 4.5rem; max-width: 4.5rem; }
.gift-total { font-weight: 700; min-width: 5.5rem; text-align: right; }
.no-price { font-weight: 600; font-size: 0.8rem; }
@media (max-width: 860px) {
  .gift { grid-template-columns: 56px minmax(0, 1fr) auto; grid-template-areas: 'thumb main del' 'money money stage'; row-gap: 0.3rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(36, 51, 90, 0.07); }
  .gift > .thumb { grid-area: thumb; width: 56px; height: 56px; } .gift-main { grid-area: main; } .gift-money { grid-area: money; flex-wrap: wrap; gap: 0.25rem 0.75rem; }
  .gift-total { min-width: 0; }
  .gift > .stage-wrap { grid-area: stage; } .gift > .icon-del { grid-area: del; }
  .person-actions { margin-left: 0; width: 100%; }
}

.paste-zone { border: 2px dashed var(--gold); border-radius: 10px; padding: 1.25rem; text-align: center; color: var(--navy-soft); cursor: text; }
.paste-zone:focus { background: #FFFBF2; }
.inline-form { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.inline-form .field { flex: 1 1 7rem; min-width: 0; }
.inline-form .money-input { flex: 0 0 5.75rem; }

.mood-group + .mood-group { margin-top: 1.25rem; }
.mood-group h3 { margin-bottom: 0.5rem; }
.mood-grid { columns: 3 200px; column-gap: 0.75rem; }
.mood-tile { position: relative; display: block; break-inside: avoid; margin-bottom: 0.75rem; border-radius: 12px; overflow: hidden; background: #F4F6F9; text-decoration: none; color: var(--navy); box-shadow: 0 6px 16px -10px rgba(36, 51, 90, 0.5); }
.mood-tile img { width: 100%; display: block; }
.mood-tile.is-idea img { opacity: 0.45; filter: saturate(0.6); }
.mood-ribbon { position: absolute; top: 0.5rem; left: 0.5rem; border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.75rem; font-weight: 700; }
.mood-caption { display: block; padding: 0.4rem 0.6rem; font-size: 0.8rem; font-weight: 600; background: var(--white); }
.mood-missing { margin-top: 0.25rem; font-size: var(--step--1); }

.ideas { display: grid; gap: 0.5rem; }
.idea { display: flex; align-items: center; gap: 0.6rem; padding: 0.6rem 0.75rem; border-radius: 10px; background: #F7FAFC; }
.idea-main { flex: 1; min-width: 0; }
.idea-tags { display: flex; gap: 0.25rem; margin-top: 0.2rem; }
.tag { background: var(--blush); border-radius: 999px; padding: 0 0.5rem; font-size: 0.75rem; font-weight: 700; }
.nudge { background: #FFF8EA; border-left: 4px solid var(--gold); padding: 0.6rem 0.8rem; border-radius: 6px; }

/* ---------- Shared bits ---------- */
.small { font-size: var(--step--1); }
.section-head { display: flex; align-items: center; gap: 1rem; justify-content: space-between; margin: 1.75rem 0 0.75rem; padding: 0.6rem 1rem; background: rgba(255, 255, 255, 0.85); border-radius: 999px; }
.section-head h2 { font-size: var(--step-1); }
.stack > .card + .card { margin-top: 1.25rem; }
.stack > .card { margin-bottom: 0; }
.pill { display: inline-block; border-radius: 999px; padding: 0.1rem 0.6rem; font-size: 0.75rem; font-weight: 700; }
.cost-list, .guest-list, .activity-list, .guest-rows { list-style: none; padding: 0; margin: 0 0 0.5rem; }
.cost-list li, .guest-list li, .activity-list li, .guest-rows li { display: flex; align-items: center; gap: 0.4rem; border-bottom: 1px solid rgba(36, 51, 90, 0.07); padding: 0.15rem 0; }
.cost-list li { flex-wrap: wrap; }
.cost-list li > .inline:first-child { flex: 1 1 10rem; }

/* ---------- Spending ---------- */
.goal-label { margin-bottom: 0.75rem; font-size: var(--step--1); }
.budget-card .budget { margin: 0; max-width: none; }
.budget-card .budget-line, .budget-card .budget-sub { margin-left: 0; }
.area-bars { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.6rem; }
.area-bars li { display: grid; grid-template-columns: 8rem 1fr 6rem; align-items: center; gap: 0.6rem; }
.area-bar { height: 12px; background: #EEF2F5; border-radius: 999px; overflow: hidden; }
.area-bar > span { display: block; height: 100%; background: var(--olive); border-radius: 999px; }
.area-bars li:nth-child(2) .area-bar > span { background: var(--peony); }
.area-bars li:nth-child(3) .area-bar > span { background: var(--gold); }
.area-bars li:nth-child(4) .area-bar > span { background: var(--mint-deep); }
.area-amt { text-align: right; font-weight: 700; }
.purchases tr.is-idea td { color: var(--navy-soft); }
.purchases tfoot td { border-bottom: 0; padding-top: 0.75rem; }
.card .filter-chips { margin-bottom: 0.6rem; }

/* ---------- Gatherings ---------- */
.event-head { display: flex; align-items: center; gap: 0.5rem; }
.event-title { font-family: var(--serif); font-size: var(--step-2); }
.event-facts { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin: 0.4rem 0; }
.event-facts .grow { flex: 1 1 14rem; }
.event-facts .grow .inline { width: 100%; }
.event-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 0.75rem; }
.event-block + .event-block { margin-top: 1rem; }
.event-block h3 { margin-bottom: 0.4rem; }
.rsvp { padding: 0.2rem 0.4rem; font-size: var(--step--1); }
.hostess-row { display: grid; grid-template-columns: 1fr 1fr auto auto auto auto; align-items: center; gap: 0.5rem; }
@media (max-width: 820px) { .event-columns { grid-template-columns: minmax(0, 1fr); } .hostess-row { grid-template-columns: minmax(0, 1fr) auto auto; } }

/* ---------- Mailing ---------- */
.late-banner { background: #FDF0F4; border-left: 5px solid var(--peony-deep); padding: 0.6rem 0.9rem; border-radius: 6px; font-weight: 700; max-width: none; }
.ship-dates { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin: 0.5rem 0 0.75rem; }
.ship-date { display: grid; justify-items: center; padding: 0.9rem 0.5rem; border-radius: 12px; background: #F4F8FA; border: 1.5px solid var(--blue); }
.ship-date:last-child { background: var(--blush); border-color: var(--peony); }
.ship-date.is-past { opacity: 0.55; }
.ship-date-label { font-size: var(--step--1); font-weight: 700; color: var(--navy-soft); }
.ship-date-day { font-size: var(--step-2); }
.ship-date-rel { font-size: 0.8rem; }
.ship-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 0 1rem; align-items: end; }
.ship-fields > .field-label:first-child { grid-column: span 2; }
@media (max-width: 640px) { .ship-fields > .field-label:first-child { grid-column: auto; } }
.ship-fields .address { grid-column: 1 / -1; }
.ship-fields .field { width: 100%; }
.check-label { display: flex; align-items: center; gap: 0.4rem; padding-bottom: 0.5rem; }
.box-title { margin: 1rem 0 0.4rem; }
.box-list { list-style: none; margin: 0; padding: 0; }
.box-list li { display: grid; grid-template-columns: 40px 8rem 1fr auto; align-items: center; gap: 0.6rem; padding: 0.3rem 0; border-bottom: 1px solid rgba(36, 51, 90, 0.07); }
.box-thumb { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; background: #F2F5F8; display: block; }
.box-who { font-weight: 700; }
@media (max-width: 640px) { .ship-dates { grid-template-columns: 1fr; } .box-list li { grid-template-columns: 40px 1fr auto; } .box-who { grid-column: 2; } .box-what { grid-column: 2; } }

/* ---------- Guest visit ---------- */
.visit-band { position: relative; display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; padding: 1.5rem 1.5rem 0; border-radius: var(--radius-box); overflow: hidden; box-shadow: var(--shadow);
  background: var(--olive) image-set(url('/static/img/artichokes-800.webp') 1x, url('/static/img/artichokes-1600.webp') 2x) center / 1100px auto; }
.visit-band::before { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.85) 45%, rgba(255, 255, 255, 0.15) 100%); }
.visit-band-text { position: relative; padding-bottom: 1.5rem; }
.visit-band-text h1 { font-size: var(--step-4); }
.visit-band-text p { font-size: var(--step-1); margin: 0.25rem 0 0; }
.visit-band-trees { position: relative; display: flex; align-items: flex-end; gap: 0.75rem; }
.visit-band-trees .tree { height: 130px; width: auto; }
.visit-band-trees .tree-tall { height: 160px; }
.visit-times { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; margin-top: 0.75rem; }
.visit-times .field, .guests textarea { width: 100%; }
.guest-rows .age { max-width: 5rem; }
.day-grid { display: grid; grid-template-columns: 6rem repeat(4, minmax(0, 1fr)); gap: 0.4rem; }
.dg-day { text-align: center; font-size: var(--step-1); padding-bottom: 0.25rem; border-bottom: 2px solid var(--gold-soft); }
.dg-slot { font-weight: 700; font-size: var(--step--1); align-self: center; }
.dg-cell textarea { width: 100%; min-height: 3.6rem; background: #F8FAFC; border-color: rgba(36, 51, 90, 0.08); }
.day-cards { display: none; }
.day-card + .day-card { margin-top: 1rem; }
.day-card textarea { width: 100%; background: #F8FAFC; }
@media (max-width: 720px) {
  .day-grid { display: none; } .day-cards { display: block; }
  .visit-band-trees { display: none; } .visit-band::before { background: rgba(255, 255, 255, 0.9); }
}
.grocery-section h3 { font-size: var(--step-0); font-family: var(--sans); font-weight: 700; color: var(--olive); margin: 0.6rem 0 0.2rem; }
.todo.grocery { grid-template-columns: auto 1fr 5rem auto; }
.grocery .qty, .grocery-add .qty { max-width: 6rem; }
.grocery-add { margin-top: 0.75rem; flex-wrap: wrap; }
.plan-it { padding: 0.2rem 0.4rem; font-size: var(--step--1); }

/* ---------- Gift tags, settings ---------- */
.tags-soon { display: flex; align-items: center; gap: 1.5rem; }
.tags-ornaments { height: 110px; width: auto; }
.passcode-form .field, .card > .field { width: 100%; max-width: 22rem; }
