:root {
  --ink: #3f2b2b;
  --muted: #756665;
  --soft-muted: #9a8c89;
  --cream: #fffaf5;
  --surface: #ffffff;
  --line: #eee3dc;
  --brand: #e45f48;
  --brand-dark: #c94531;
  --brand-soft: #fff0e9;
  --sage: #dfe8d9;
  --sage-dark: #587052;
  --gold: #f6e3b9;
  --lavender: #e8dded;
  --blue: #d9e7ef;
  --shadow: 0 18px 55px rgba(77, 44, 37, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--cream);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--cream); }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .45; cursor: not-allowed; }

.app-shell { min-height: 100vh; display: flex; }
.sidebar { position: fixed; inset: 0 auto 0 0; width: 258px; padding: 24px 18px 18px; background: #fffdf9; border-right: 1px solid var(--line); display: flex; flex-direction: column; z-index: 30; }
.brand-row { display: flex; gap: 11px; align-items: center; padding: 0 7px 25px; }
.brand-mark { width: 40px; height: 40px; border-radius: 14px; display: grid; place-items: center; color: white; background: var(--brand); box-shadow: 0 9px 20px rgba(228,95,72,.25); }
.brand-name { font-family: Georgia, 'Times New Roman', serif; font-size: 23px; font-weight: 700; line-height: 1; }
.brand-sub { color: var(--soft-muted); font-size: 10px; margin-top: 5px; letter-spacing: .01em; }
.sidebar-close { display: none !important; margin-left: auto; }
.event-switcher { display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 15px; padding: 10px; background: white; box-shadow: 0 6px 16px rgba(77,44,37,.04); }
.event-switcher-copy { min-width: 0; display: flex; flex: 1; flex-direction: column; }
.event-switcher-copy span { color: var(--soft-muted); font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.event-switcher-copy strong { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.event-thumb { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; color: #b85b50; }
.mini-photo.shower { background: radial-gradient(circle at 65% 22%, #fff 0 6%, transparent 7%), linear-gradient(145deg, #efc6ba, #f8dfc7); }
.sidebar-nav { display: grid; gap: 5px; margin-top: 24px; }
.nav-item { appearance: none; border: 0; background: transparent; border-radius: 12px; padding: 11px 12px; display: flex; align-items: center; gap: 12px; color: var(--muted); font-weight: 600; font-size: 14px; text-align: left; }
.nav-item:hover { background: #fff5ef; color: var(--ink); }
.nav-item.active { background: var(--brand-soft); color: var(--brand-dark); }
.nav-badge { margin-left: auto; min-width: 21px; height: 21px; padding: 0 6px; border-radius: 999px; display: grid; place-items: center; font-size: 11px; color: white; background: var(--brand); }
.sidebar-spacer { flex: 1; }
.new-event-button { border: 1px dashed #dbcec7; background: #fffdfa; border-radius: 12px; min-height: 44px; display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 13px; }
.reset-button { border: 0; background: none; color: var(--soft-muted); font-size: 11px; padding: 11px 0 15px; }
.profile-row { display: flex; align-items: center; gap: 10px; padding-top: 15px; border-top: 1px solid var(--line); }
.profile-copy { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.profile-copy strong { font-size: 12px; }
.profile-copy span { color: var(--soft-muted); font-size: 10px; margin-top: 2px; }

.main-content { width: calc(100% - 258px); margin-left: 258px; min-width: 0; }
.topbar { height: 74px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: rgba(255,250,245,.88); border-bottom: 1px solid var(--line); backdrop-filter: blur(16px); position: sticky; top: 0; z-index: 20; }
.topbar-title { display: flex; flex-direction: column; }
.topbar-title strong { font-size: 14px; }
.topbar-title span { color: var(--soft-muted); font-size: 11px; margin-top: 3px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.mobile-menu { display: none !important; }
.icon-button { width: 38px; height: 38px; border: 0; border-radius: 11px; display: inline-grid; place-items: center; background: transparent; color: var(--muted); }
.icon-button:hover { background: #f8eee8; color: var(--ink); }
.icon-button.warm { background: var(--brand-soft); color: var(--brand-dark); }
.notification-button { position: relative; background: white; border: 1px solid var(--line); }
.notification-button span { position: absolute; top: 7px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); border: 2px solid white; }
.primary-button, .secondary-button { min-height: 39px; border-radius: 11px; padding: 0 15px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 12px; white-space: nowrap; }
.primary-button { border: 1px solid var(--brand); background: var(--brand); color: white; box-shadow: 0 8px 18px rgba(228,95,72,.16); }
.primary-button:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.secondary-button { border: 1px solid #e5d8d1; background: white; color: var(--ink); }
.secondary-button:hover { border-color: #cfbbb1; background: #fffcfa; }
.primary-button.large { min-height: 46px; padding: 0 19px; font-size: 13px; }
.primary-button.full, .secondary-button.full { width: 100%; margin-top: 10px; }
.secondary-button.small, .primary-button.small { min-height: 33px; padding: 0 11px; font-size: 11px; }
.text-button { border: 0; background: transparent; color: var(--brand-dark); display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 7px 2px; }
.text-button.success { color: #557455; }
.show-small { display: none; }

.page-wrap { max-width: 1450px; margin: 0 auto; padding: 30px 34px 54px; }
.hero-panel { min-height: 315px; border-radius: 26px; background: linear-gradient(112deg, #fff1e7 0%, #f7e1d7 46%, #f7d6c7 100%); padding: 46px 54px; display: flex; align-items: center; position: relative; overflow: hidden; box-shadow: var(--shadow); }
.hero-panel::before { content: ''; position: absolute; width: 360px; height: 360px; border-radius: 50%; background: rgba(255,255,255,.32); right: -100px; top: -160px; }
.hero-copy { max-width: 590px; position: relative; z-index: 2; }
.eyebrow, .section-kicker { display: inline-flex; align-items: center; gap: 6px; color: var(--brand-dark); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .12em; }
.hero-copy h1, .page-header h1, .giver-hero h1 { font-family: Georgia, 'Times New Roman', serif; font-size: clamp(38px, 4vw, 60px); line-height: .98; letter-spacing: -.035em; margin: 13px 0 17px; }
.hero-copy p { max-width: 500px; color: #725b58; font-size: 15px; line-height: 1.65; margin: 0; }
.hero-actions { margin-top: 25px; display: flex; align-items: center; gap: 18px; }
.hero-art { width: 430px; height: 280px; margin-left: auto; position: relative; flex: none; }
.photo-stack { position: absolute; background: white; border-radius: 18px; padding: 8px; box-shadow: 0 22px 45px rgba(85,42,31,.18); }
