body { background: #f5f6f2; }
body input, body select { border: 1px solid #dddcd5; border-radius: 10px; padding: 12px 14px; background: #fdfcfa; color: #1e293b; font: inherit; }
body input { display: block; width: 100%; margin-top: 7px; }
body select { margin: 0; max-width: 100%; }
.site-header { border-bottom: 1px solid #e0e4dc; }
.header-link { display: flex; gap: 18px; align-items: center; font-size: 13px; font-weight: 600; color: #49634e; }
.home-layout { max-width: 960px; margin: 0 auto; }
.home-hero { text-align: center; padding: 64px 16px 46px; }
.home-description { max-width: 510px; margin: 22px auto 0; color: #667268; font-size: 17px; line-height: 1.75; }
.home-benefits { display: flex; justify-content: center; flex-wrap: wrap; gap: 26px; margin-top: 25px; font-size: 13px; color: #49634e; }
.home-actions { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; }
.access-notice { display: flex; gap: 18px; align-items: flex-start; padding: 24px; margin-bottom: 24px; background: #eaf0e5; border: 1px solid #d8e2d0; border-radius: 18px; color: #40543b; }
.access-notice-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; background: #fff; border-radius: 13px; }
.access-notice h2 { font-size: 19px; font-weight: 800; line-height: 1.4; }
.access-notice p { font-size: 13px; line-height: 1.8; margin-top: 9px; }
.access-notice details { margin-top: 14px; }
.access-notice summary { font-size: 12px; font-weight: 600; cursor: pointer; }
.join-home { background: #e9eee5; }
#code-form { flex-wrap: wrap; }
#code-form input { flex: 1 1 140px; min-width: 0; margin: 0; }
.exchange-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 44px; padding-top: 32px; }
.exchange-sidebar { position: sticky; top: 24px; align-self: start; border-right: 1px solid #dfe4da; padding-right: 30px; }
.back-link { font-size: 12px; color: #74816f; }
.exchange-emblem { display: grid; place-items: center; height: 58px; width: 58px; margin: 28px 0 24px; background: #e3eadb; border-radius: 18px; color: #476047; font-size: 38px; }
.exchange-title { font-size: 32px; line-height: 1.2; font-weight: 800; letter-spacing: -.04em; margin-top: 12px; overflow-wrap: anywhere; }
.exchange-meta { font-size: 13px; color: #798174; line-height: 1.8; margin-top: 13px; }
.invite-box { background: #e9ede2; border: 1px solid #dbe2d3; padding: 20px; border-radius: 16px; margin-top: 28px; }
.invite-code { display: block; font-size: 23px; letter-spacing: .13em; margin-top: 10px; }
.invite-box .secondary { background: white; font-size: 12px; padding: 11px 8px; }
.sidebar-section { margin-top: 28px; padding-top: 25px; border-top: 1px solid #dfe4da; }
.sidebar-note { color: #85907f; font-size: 12px; line-height: 1.8; margin-top: 30px; }
.exchange-main { min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.people-section { padding: 8px 0 4px; }
.participant-strip { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.participant-strip li { background: white; border: 1px solid #e1e6dc; padding: 7px 15px 7px 7px; border-radius: 40px; font-size: 13px; max-width: 100%; }
.participant-strip li span:last-child { overflow-wrap: anywhere; min-width: 0; }
.wishlist-section { background: #fff; border: 1px solid #e1e6dc; border-radius: 22px; padding: 28px; }
.wishlist-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.wishlist-illustration { font-size: 66px; line-height: 1; color: #df6e42; transform: rotate(12deg); padding: 0 12px; }
.wishlist-entry { display: grid; grid-template-columns: 1fr 1.2fr auto; gap: 12px; align-items: end; padding-top: 25px; }
.wishlist-entry label { min-width: 0; }
.wishlist-entry input { font-size: 12px; }
.wishlist-entry button { white-space: nowrap; }
.wishlist-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; color: #74816f; font-size: 14px; }
.wishlist-grid:has(.wishlist-empty) { grid-template-columns: 1fr; }
.wishlist-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 170px; border: 1px dashed #d8dfd1; border-radius: 15px; background: #fafbf7; text-align: center; padding: 24px; }
.wishlist-empty span { font-size: 34px; color: #a6b19b; }
.wishlist-empty strong { color: #56634e; font-weight: 600; }
.wishlist-empty p { font-size: 12px; }
.organizer-section { background: #edf0e8; border: 1px solid #dfe5d7; border-radius: 22px; padding: 26px; }
.location-entry { display: flex; flex-wrap: wrap; gap: 12px; align-items: end; margin: 22px 0; padding-bottom: 22px; border-bottom: 1px solid #d5decc; }
.location-entry label { flex: 1 1 220px; min-width: 0; }
.location-entry .secondary { background: white; }
#group-location { overflow-wrap: anywhere; }
.tool-label { font-size: 11px; color: #63745b; border: 1px solid #cfdbc6; border-radius: 20px; padding: 5px 10px; white-space: nowrap; }
.exclusion-entry { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 20px; font-size: 12px; }
.exclusion-entry select { flex: 1 1 120px; min-width: 0; }
.exclusion-entry .secondary { background: white; }
.draw-action { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; margin-top: 22px; padding-top: 22px; border-top: 1px solid #d5decc; }
.organizer-backup { border-top: 1px solid #d5decc; padding-top: 16px; margin-top: 22px; }
.organizer-backup summary { font-size: 11px; color: #718166; cursor: pointer; }
@media (max-width: 1050px) {
  .exchange-layout { grid-template-columns: 230px minmax(0, 1fr); gap: 28px; }
  .exchange-sidebar { padding-right: 22px; }
  .wishlist-entry { grid-template-columns: 1fr 1fr; }
  .wishlist-entry button { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .exchange-layout { grid-template-columns: 1fr; gap: 28px; padding-top: 22px; }
  .exchange-sidebar { position: static; border-right: 0; border-bottom: 1px solid #dfe4da; padding: 0 0 25px; }
  .exchange-emblem { margin: 20px 0 16px; }
  .sidebar-note { display: none; }
  .invite-box { margin-top: 20px; }
  .home-actions { grid-template-columns: 1fr; }
  .home-hero { padding: 40px 0 30px; }
  .wishlist-section, .organizer-section { padding: 22px; }
}
@media (max-width: 480px) {
  .header-link { font-size: 11px; gap: 6px; }
  .wishlist-entry, .wishlist-grid { grid-template-columns: 1fr; }
  .wishlist-illustration { display: none; }
  .draw-action .primary { width: 100%; }
  .home-benefits { gap: 14px; font-size: 11px; }
}
.share-dialog { margin: auto; width: min(480px, calc(100% - 32px)); max-height: 90vh; overflow-y: auto; padding: 28px; border: 1px solid #dfe4da; border-radius: 24px; background: #fdfcfa; color: #243529; box-shadow: 0 24px 80px #23382633; }
.share-dialog::backdrop { background: #172d2499; backdrop-filter: blur(4px); }
.share-dialog h2 { font-size: 29px; font-weight: 800; line-height: 1.2; letter-spacing: -.03em; margin-top: 18px; }
.share-close { font-size: 28px; padding: 0 8px; line-height: 1; color: #63745b; }
.share-description { font-size: 14px; color: #74816f; line-height: 1.7; margin: 12px 0 22px; }
.share-link-label { font-size: 12px; font-weight: 600; }
.share-link-label input { font-size: 16px; font-weight: 400; }
.share-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 24px; }
.share-option { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 16px 6px; background: #eaf0e5; border: 1px solid #d8e2d0; border-radius: 14px; font-size: 23px; }
.share-option span { font-size: 12px; font-weight: 600; }
.share-option:hover { background: #dce7d5; }
.share-help { font-size: 12px; line-height: 1.7; color: #63745b; margin-top: 18px; }
.share-privacy { font-size: 11px; line-height: 1.7; color: #74816f; border-top: 1px solid #dfe4da; padding-top: 15px; margin-top: 15px; }
@media (max-width: 480px) { .share-dialog { padding: 22px; } .share-options { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.how-it-works { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin: 0 0 30px; padding: 24px 0; border-top: 1px solid #dfe4da; border-bottom: 1px solid #dfe4da; }
.how-it-works span { display: inline-grid; place-items: center; width: 26px; height: 26px; background: #e3eadb; border-radius: 50%; font-size: 12px; margin-right: 8px; color: #476047; }
.how-it-works strong { font-size: 13px; }
.how-it-works p { font-size: 12px; color: #63745b; margin: 10px 0 0 34px; line-height: 1.6; }
.saved-home { padding: 25px; margin-bottom: 24px; }
.form-hint { font-size: 12px; color: #63745b; line-height: 1.7; margin-top: 10px; }
.return-home { margin-top: 30px; border-top: 1px solid #cfdbc6; padding-top: 22px; }
.return-home h3 { font-size: 14px; font-weight: 700; }
.return-home p { font-size: 12px; color: #63745b; line-height: 1.8; margin-top: 8px; }
.return-home a { display: inline-block; font-size: 12px; font-weight: 700; color: #b64520; margin-top: 12px; }
.journey-panel { background: #fff5e9; border: 1px solid #f0dfc9; padding: 24px; border-radius: 20px; }
.journey-panel h2 { font-size: 24px; font-weight: 800; margin-top: 10px; line-height: 1.3; }
.journey-panel > p:not(.eyebrow) { font-size: 13px; line-height: 1.8; color: #766957; margin-top: 10px; max-width: 540px; }
.journey-panel > a { display: inline-block; background: #fff; margin-top: 18px; border: 1px solid #efddc7; }
.journey-steps { display: flex; gap: 8px; margin-top: 22px; }
.journey-steps li { flex: 1; font-size: 11px; padding-top: 10px; border-top: 3px solid #e5d9c9; color: #817261; }
.journey-steps li.is-complete { border-color: #63866b; color: #3d5b44; font-weight: 700; }
.access-backup { background: #eaf0e5; border: 1px solid #d8e2d0; border-radius: 14px; padding: 16px; margin-top: 20px; }
.access-backup strong { font-size: 14px; }
.access-backup p { font-size: 11px; line-height: 1.8; color: #63745b; margin-top: 6px; }
.access-backup button { padding: 10px 7px; font-size: 11px; background: #fff; }
#message { position: sticky; top: 12px; z-index: 20; margin-top: 12px; box-shadow: 0 4px 20px #23382615; }
html { scroll-padding-top: 80px; }
@media (max-width: 760px) { .how-it-works { grid-template-columns: 1fr; gap: 18px; } .how-it-works p { margin-top: 4px; } .access-notice { padding: 18px; gap: 12px; } .journey-panel { padding: 20px; } }
.hero-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
