:root {
    --green-950: #0f4329;
    --green-900: #155630;
    --green-800: #176b37;
    --green-700: #1f7d3e;
    --green-600: #248b45;
    --green-100: #e4f4e7;
    --green-050: #f0faf2;
    --ink: #182131;
    --muted: #667080;
    --soft-muted: #8a929e;
    --border: #e0e4e8;
    --input-border: #d5d9df;
    --surface: #ffffff;
    --canvas: #f7f8f9;
    --sidebar: #ffffff;
    --danger: #bd2f2a;
    --shadow: 0 2px 8px rgba(19, 33, 25, .04);
    --header-height: 98px;
    --sidebar-width: 230px;
}

* { box-sizing: border-box; }
html { color-scheme: light; scroll-behavior: smooth; }
body {
    margin: 0;
    min-height: 100vh;
    background: var(--canvas);
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: 16px;
}
a { color: var(--green-700); text-decoration: none; }
a:hover { text-decoration: none; }
button, input { font: inherit; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.app-header {
    position: fixed;
    inset: 0 0 auto 0;
    z-index: 50;
    height: var(--header-height);
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(255px, auto) auto;
    align-items: center;
    background: rgba(255, 255, 255, .98);
    border-bottom: 1px solid #e4e6e9;
    box-shadow: 0 1px 5px rgba(19, 33, 25, .025);
}
.app-brand {
    height: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 0 30px;
    color: var(--green-950);
    white-space: nowrap;
    min-width: 0;
}
.tree-logo { width: 72px; height: 72px; flex: 0 0 72px; overflow: hidden; border-radius: 50%; }
.tree-logo img { width: 100%; height: 100%; display: block; object-fit: cover; }
.tree-logo svg circle { fill: #f7fbf8; stroke: var(--green-800); stroke-width: 2.2; }
.tree-logo svg path { fill: var(--green-800); stroke: none; }
.brand-script {
    font-family: "Segoe Script", "Brush Script MT", "Lucida Handwriting", cursive;
    font-weight: 700;
    font-size: 23px;
    letter-spacing: -.9px;
    line-height: 1;
    overflow: hidden;
    text-overflow: ellipsis;
}
.header-event {
    display: flex;
    align-items: center;
    gap: 13px;
    min-width: 0;
    padding: 0 27px 0 18px;
}
.header-event-icon { width: 26px; height: 26px; color: #525b69; }
.header-event-icon svg, .header-actions svg, .side-link svg, .panel-title svg,
.event-details-list svg, .summary-icon svg, .deadline-icon svg, .input-wrap > svg,
.privacy-note svg, .primary-button svg {
    width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8;
    stroke-linecap: round; stroke-linejoin: round;
}
.header-event > div:last-child { display: grid; gap: 4px; }
.header-event strong { font-size: 16px; font-weight: 700; }
.header-event span { color: var(--muted); font-size: 15px; }
.header-actions {
    height: 100%;
    padding-right: 30px;
    display: flex;
    align-items: center;
    gap: 0;
}
.icon-button {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    padding: 10px;
    border: 0;
    border-radius: 50%;
    background: #fafbfc;
    color: #3c4654;
    cursor: pointer;
}
.icon-button:hover { background: #f1f3f5; }
.admin-account { position: relative; height: 100%; display: flex; align-items: center; }
.admin-menu { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 650; }
.account-dropdown { position: absolute; top: 76px; right: 0; min-width: 130px; padding: 7px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); box-shadow: 0 10px 28px rgba(20,30,25,.12); opacity: 0; visibility: hidden; transform: translateY(-5px); transition: .15s ease; }
.admin-account:hover .account-dropdown, .admin-account:focus-within .account-dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.account-dropdown button { width: 100%; border: 0; border-radius: 6px; padding: 9px 12px; background: transparent; color: var(--ink); text-align: left; cursor: pointer; }
.account-dropdown button:hover { background: var(--green-050); }
.admin-avatar {
    width: 44px; height: 44px; display: grid; place-items: center;
    border-radius: 50%; background: var(--green-700); color: #fff; font-weight: 700;
}
.admin-chevron { width: 18px !important; height: 18px !important; }

.app-sidebar {
    position: fixed;
    z-index: 40;
    top: var(--header-height);
    bottom: 0;
    left: 0;
    width: var(--sidebar-width);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 23px 12px 28px;
    background: var(--sidebar);
    border-right: 1px solid #e4e6e9;
}
.side-nav { display: grid; gap: 5px; }
.side-link {
    min-height: 57px;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 16px;
    border-radius: 9px;
    color: #263142;
    font-size: 16px;
    font-weight: 500;
}
.side-link svg { width: 26px; height: 26px; flex: 0 0 26px; color: #4e5867; }
.side-link:hover { background: #f4f7f5; }
.side-link.active { color: var(--green-900); background: #e5f3e7; font-weight: 650; }
.side-link.active svg { color: var(--green-800); }
.side-link.disabled { cursor: default; opacity: .9; }
.side-link.disabled:hover { background: transparent; }
.sidebar-message { text-align: center; color: var(--green-950); }
.sidebar-tree { width: 166px; height: 139px; fill: #dfe9e1; }
.sidebar-message p { margin: 10px 0 12px; font-family: Georgia, serif; font-size: 17px; line-height: 1.42; }
.heart { font-size: 34px; line-height: 1; color: #7b838d; }

.app-main {
    min-height: 100vh;
    margin-left: var(--sidebar-width);
    padding-top: var(--header-height);
}
.dashboard-page { padding: 24px 25px 0; }
.hero-banner {
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding: 0 54px;
    color: #fff;
    background-image: linear-gradient(90deg, rgba(15, 43, 34, .74), rgba(22, 60, 46, .11)), url('/images/mountain-banner.jpg');
    background-size: cover;
    background-position: center 52%;
}
.hero-copy h1 { margin: 0 0 7px; white-space: nowrap; font-size: clamp(30px, 2.5vw, 39px); line-height: 1.12; font-weight: 760; letter-spacing: -.6px; }
.hero-copy p { margin: 0; font-size: 21px; font-weight: 400; }
.travel-update {
    margin-top: 22px;
    padding: 24px 27px;
    border: 1px solid #cde7d3;
    border-left: 5px solid var(--green-700);
    border-radius: 10px;
    background: linear-gradient(90deg, #f1faf3, #fbfdfb);
    color: #2c3a31;
}
.travel-update h2 { margin: 0 0 13px; color: var(--green-900); font-size: 21px; }
.travel-update p { max-width: 1100px; margin: 0 0 11px; line-height: 1.55; }
.travel-update p:last-child { margin-bottom: 0; }
.reunion-balance { display: flex; align-items: center; gap: 18px; margin-top: 18px; padding: 21px 24px; border: 1px solid #cde7d3; border-left: 5px solid var(--green-600); border-radius: 10px; background: linear-gradient(90deg, #eff9f1, #e7f4ea); }
.reunion-balance-icon { width: 52px; height: 52px; flex: 0 0 52px; display: grid; place-items: center; border-radius: 50%; color: #18793a; background: #d8efdc; }
.reunion-balance-icon svg { width: 27px; height: 27px; }
.reunion-balance > div:not(.reunion-balance-icon) { display: grid; gap: 2px; }
.reunion-balance p, .reunion-balance h2 { margin: 0; }
.reunion-balance p { color: var(--green-700); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.reunion-balance h2 { font-size: 18px; }
.reunion-balance strong { color: var(--green-800); font-size: 30px; line-height: 1.1; }
.reunion-balance span, .reunion-balance small { color: #5d6c61; font-size: 13px; }
.reunion-goal-progress { display: grid; gap: 6px; margin-top: 7px; max-width: 450px; }
.reunion-goal-progress p { color: #385244; font-size: 14px; font-weight: 750; letter-spacing: 0; text-transform: none; }
.reunion-goal-track { height: 9px; overflow: hidden; border-radius: 999px; background: #cce5d1; }
.reunion-goal-track span { display: block; height: 100%; border-radius: inherit; background: var(--green-600); }
.reunion-balance-link { width: max-content; margin-top: 7px; color: var(--green-800); font-size: 14px; font-weight: 750; text-decoration: underline; text-underline-offset: 3px; }

.donation-page { max-width: 1220px; margin: 0 auto; padding: 43px 28px 20px; }
.donation-heading { max-width: 740px; }
.donation-heading h1 { margin: 5px 0 11px; font-size: clamp(32px, 4vw, 48px); line-height: 1.05; }
.donation-heading > p:last-child { margin: 0; color: var(--muted); font-size: 17px; line-height: 1.55; }
.donation-assurance { display: flex; align-items: center; gap: 13px; margin: 27px 0 24px; padding: 17px 20px; border: 1px solid #cde7d3; border-radius: 10px; background: var(--green-050); color: #284234; }
.donation-assurance svg { width: 29px; height: 29px; flex: 0 0 29px; color: var(--green-700); }
.donation-assurance p { margin: 0; line-height: 1.45; }
.donation-method-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.donation-method { display: grid; align-content: start; padding: 22px; text-align: center; }
.donation-method-heading h2 { margin: 0 0 4px; font-size: 23px; }
.donation-method-heading p { margin: 0 0 18px; color: var(--muted); }
.donation-pay-link { width: 100%; min-height: 42px; display: inline-flex; align-items: center; justify-content: center; margin: 0 0 14px; padding: 0 15px; border-radius: 8px; color: #fff; font-weight: 750; }
.venmo-link { background: #2780cf; }
.zelle-link { background: #6d3bc1; }
.cashapp-link { background: #16823d; }
.donation-pay-link:hover { color: #fff; filter: brightness(.96); }
.donation-qr-link { display: block; }
.donation-method img { width: min(100%, 340px); max-height: 390px; margin: 0 auto; object-fit: contain; }
.donation-method .scan-hint { margin: 14px 0 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.donation-other-methods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 20px; }
.donation-other-methods-priority { margin: 24px 0; }
.donation-other-method { display: flex; align-items: center; gap: 16px; padding: 22px; }
.donation-payment-icon { width: 50px; height: 50px; flex: 0 0 50px; display: grid; place-items: center; border-radius: 13px; }
.donation-payment-icon svg { width: 29px; height: 29px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.check-method .donation-payment-icon { color: #1d6bbe; background: #e8f1ff; }
.cash-method .donation-payment-icon { color: #16823d; background: #e3f6e7; }
.donation-other-method h2 { margin: 0 0 3px; font-size: 20px; }
.donation-other-method p { margin: 0; color: var(--muted); }
.donation-contact-link { display: inline-block; margin-top: 8px; color: var(--green-700); font-size: 14px; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

.dashboard-grid {
    display: grid;
    grid-template-columns: minmax(500px, 1.32fr) minmax(390px, 1fr);
    gap: 19px;
    margin-top: 22px;
    align-items: stretch;
}
.panel {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    box-shadow: var(--shadow);
}
.form-panel { padding: 25px 25px 24px; }
.details-panel { padding: 25px 28px 29px; }
.panel-title { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.panel-title > svg { width: 28px; height: 28px; flex: 0 0 28px; color: #697382; }
.panel-title h2 { margin: 0; font-size: 19px; white-space: nowrap; line-height: 1.25; font-weight: 720; letter-spacing: -.15px; }
.green-title > svg { color: var(--green-700); }

.rsvp-form { display: grid; gap: 14px; }
.field { display: grid; gap: 8px; }
.field label { font-weight: 650; font-size: 15px; }
.field label em { color: #c12922; font-style: normal; }
.input-wrap { position: relative; }
.field > input, .input-wrap input, .input-wrap select, .table-toolbar input {
    width: 100%;
    height: 44px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    padding: 0 14px;
    background: #fff;
    color: var(--ink);
    outline: none;
    box-shadow: inset 0 1px 1px rgba(20, 30, 25, .01);
    transition: border-color .15s, box-shadow .15s;
}
.input-wrap.has-icon input, .input-wrap.has-icon select { padding-left: 48px; }
.input-wrap > svg {
    position: absolute;
    z-index: 2;
    left: 15px;
    top: 50%;
    width: 21px;
    height: 21px;
    transform: translateY(-50%);
    color: #9299a2;
    pointer-events: none;
}
.input-wrap input::placeholder { color: #727b89; opacity: .93; }
.field > input:focus, .input-wrap input:focus, .table-toolbar input:focus {
    border-color: var(--green-600);
    box-shadow: 0 0 0 3px rgba(36, 139, 69, .11);
}
.field > input:disabled, .input-wrap input:disabled, .input-wrap select:disabled {
    background: #eef0f2;
    border-color: #d7dce1;
    color: #7a838d;
    cursor: not-allowed;
    opacity: 1;
}
.field small { margin-top: -4px; color: #707988; font-size: 13px; }
.field span.field-validation-error { color: var(--danger); font-size: 13px; }
.input-validation-error { border-color: var(--danger) !important; }
.primary-button, .secondary-button {
    min-height: 48px;
    border: 0;
    border-radius: 8px;
    padding: 0 20px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    font-weight: 700;
    cursor: pointer;
}
.primary-button { color: #fff; background: linear-gradient(90deg, #22823f, #278d47); }
.primary-button:hover { filter: brightness(.98); }
.primary-button:disabled { background: #a8b0b8; color: #f3f5f6; cursor: not-allowed; filter: none; }
.primary-button svg { width: 20px; height: 20px; }
.submit-button { margin-top: 2px; width: 100%; }
.secondary-button { color: var(--green-800); background: var(--green-100); border: 1px solid #cde7d3; }
.button-link { width: max-content; }
.privacy-note {
    margin: 5px 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    color: #6f7886;
    font-size: 13px;
    text-align: center;
}
.privacy-note svg { width: 17px; height: 17px; flex: 0 0 17px; }

.event-details-list { display: grid; gap: 20px; padding: 3px 2px 1px; }
.event-details-list > div { display: flex; align-items: center; gap: 17px; color: #303a49; font-size: 15px; }
.event-details-list svg { width: 25px; height: 25px; flex: 0 0 25px; color: #737c89; }
.panel-divider { height: 1px; background: #dfe3e6; margin: 28px 0 25px; }
.summary-title { margin-bottom: 18px; }
.summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px 17px; }
.summary-card {
    min-height: 83px;
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 13px 14px;
    border: 1px solid #dce1e5;
    border-radius: 8px;
    background: #fff;
}
.summary-icon {
    width: 47px; height: 47px; flex: 0 0 47px; display: grid; place-items: center;
    padding: 10px; border-radius: 50%;
}
.summary-icon.green { color: #18813d; background: #e2f4e5; }
.summary-icon.blue { color: #256dcc; background: #e7f0fc; }
.summary-icon.orange { color: #ed891e; background: #fff0df; }
.summary-icon.rose { color: #d54253; background: #fde9ec; }
.summary-card > div { display: grid; gap: 5px; min-width: 0; }
.summary-card strong { font-size: 27px; line-height: .95; }
.summary-card span:not(.summary-icon) { color: #626c7a; font-size: 14px; white-space: nowrap; }
.summary-card .age-summary-values { gap: 7px; }
.age-summary-values > span { display: flex; align-items: baseline; gap: 7px; }
.age-summary-values strong { font-size: 21px; }
.age-summary-values small { color: #626c7a; font-size: 13px; white-space: nowrap; }
.deadline-box {
    margin-top: 22px;
    min-height: 105px;
    display: flex;
    align-items: center;
    gap: 21px;
    padding: 17px 23px;
    border: 1px solid #d4e9d7;
    border-radius: 8px;
    background: linear-gradient(90deg, #edf9ef, #e5f5e8);
}
.deadline-icon {
    width: 59px; height: 59px; flex: 0 0 59px; display: grid; place-items: center;
    padding: 12px; border-radius: 50%; color: #1d7b3c; background: #d9f0dd;
}
.deadline-box > div { display: grid; gap: 3px; }
.deadline-box small { color: #344050; font-size: 13px; }
.deadline-box strong { font-size: 19px; line-height: 1.1; }
.deadline-box span { color: #344050; font-size: 13px; }

.footer { min-height: 72px; display: grid; place-items: center; padding: 25px 20px; color: #6f7885; font-size: 13px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 18px; }
.alert:empty { display: none; }
.alert-error { color: #8b1d17; background: #fff1f0; border: 1px solid #f2c6c3; }
.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; }

/* Admin and confirmation pages use the same application shell. */
.page-shell { width: auto; margin: 0; }
.admin-page { padding: 34px 28px 0; }
.admin-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.admin-heading-actions { display: flex; align-items: center; gap: 10px; }
.admin-heading-actions form { margin: 0; }
.signout-button { color: #8b2a25; background: #fff3f2; border-color: #f0cfcc; }
.admin-heading h1, .thank-you-card h1, .login-card h1 { margin: 5px 0 8px; font-size: clamp(29px, 3vw, 42px); line-height: 1.08; }
.admin-heading p { margin: 0; color: var(--muted); }
.eyebrow { margin: 0; color: var(--green-700) !important; font-size: 12px !important; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.admin-stats { max-width: 560px; margin-bottom: 20px; }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.table-card { padding: 25px; overflow: hidden; }
.table-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.table-toolbar h2 { margin: 0; }
.table-toolbar input { max-width: 390px; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 14px 12px; text-align: left; border-bottom: 1px solid var(--border); white-space: nowrap; }
th { color: var(--muted); font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
tbody tr:hover { background: var(--green-050); }
.danger-link { border: 0; background: none; color: var(--danger); font-weight: 700; cursor: pointer; }
.empty-state { padding: 50px 20px; text-align: center; color: var(--muted); }
.plaid-card { margin-bottom: 20px; padding: 25px; }
.plaid-heading { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.plaid-heading h2 { margin: 5px 0 8px; }
.plaid-heading p:not(.eyebrow) { max-width: 650px; margin: 0; color: var(--muted); }
.plaid-setup-note, .plaid-status { margin: 18px 0 0; color: var(--muted); }
.plaid-status.is-error { color: var(--danger); }
.plaid-status.is-notice { color: #8a5b09; }
.plaid-connections { display: grid; gap: 10px; margin-top: 20px; }
.plaid-connections h3 { margin: 0 0 3px; font-size: 16px; }
.plaid-connection { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; }
.plaid-connection-details { display: grid; gap: 3px; }
.plaid-connection span { color: var(--muted); font-size: 13px; }
.plaid-connection .secondary-button { min-height: 38px; padding: 0 13px; }
.plaid-connection-actions { display: flex; align-items: center; gap: 8px; }
.plaid-connection-actions form { margin: 0; }
.plaid-unlink { color: #9f302a; border-color: #efc9c5; background: #fff7f6; }
.plaid-unlink:hover { color: #7f241f; border-color: #dcaaa4; background: #ffefed; }
.plaid-balances { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; margin-top: 16px; }
.plaid-balance { display: grid; gap: 6px; padding: 15px; border: 1px solid #cde7d3; border-radius: 8px; background: var(--green-050); }
.plaid-balance span { color: var(--muted); font-size: 14px; }
.center-page { min-height: calc(100vh - var(--header-height)); display: grid; place-items: center; padding: 40px 22px 0; }
.thank-you-card, .login-card, .legal-card { width: min(570px, 100%); padding: 38px; }
.thank-you-card { text-align: center; display: grid; justify-items: center; gap: 10px; }
.thank-you-card p { margin: 0 0 8px; color: var(--muted); }
.success-mark { width: 76px; height: 76px; display: grid; place-items: center; border-radius: 50%; background: var(--green-100); color: var(--green-700); font-size: 39px; font-weight: 900; }
.login-card > p { color: var(--muted); }
.login-card .rsvp-form { margin-top: 24px; }
.login-lockout-message { margin-top: 20px; margin-bottom: 0; }
.stat { min-height: 92px; display: flex; flex-direction: column; justify-content: center; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.stat strong { font-size: 30px; line-height: 1; }
.stat span { margin-top: 7px; color: var(--muted); }
.stats-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }

/* Optional dark mode, toggled by the moon icon. */
html[data-theme="dark"] {
    color-scheme: dark;
    --green-950: #d1f4d7;
    --green-900: #a7eab7;
    --green-800: #78d68d;
    --green-700: #61d47d;
    --green-600: #49c86b;
    --green-100: #254332;
    --green-050: #1e3629;
    --ink: #edf2ef;
    --muted: #bdc8c1;
    --soft-muted: #aab6ae;
    --border: #435249;
    --input-border: #53645a;
    --surface: #202a25;
    --canvas: #18201c;
    --sidebar: #1d2722;
    --shadow: none;
}
html[data-theme="dark"] .app-header { background: rgba(29, 39, 34, .98); border-color: #34413a; }
html[data-theme="dark"] .field > input,
html[data-theme="dark"] .input-wrap input,
html[data-theme="dark"] .input-wrap select,
html[data-theme="dark"] .table-toolbar input,
html[data-theme="dark"] .summary-card,
html[data-theme="dark"] .stat { background: #202a25; color: var(--ink); }
html[data-theme="dark"] .icon-button { background: #26322c; color: #d9e2dd; }
html[data-theme="dark"] .field > input:disabled,
html[data-theme="dark"] .input-wrap input:disabled,
html[data-theme="dark"] .input-wrap select:disabled { background: #303a34; border-color: #4c5b52; color: #aeb8b1; }
html[data-theme="dark"] .side-link { color: #dce4df; }
html[data-theme="dark"] .side-link svg { color: #aebdb5; }
html[data-theme="dark"] .side-link:hover { background: #26332c; }
html[data-theme="dark"] .side-link.active { background: #274332; color: #d9f2df; }
html[data-theme="dark"] .tree-logo svg circle { fill: #202a25; }
html[data-theme="dark"] .tree-logo svg path { fill: #5bd177; }
html[data-theme="dark"] .header-event-icon { color: #b6c5bd; }
html[data-theme="dark"] .admin-menu { color: var(--ink); }
html[data-theme="dark"] .event-details-list > div { color: #d5dfd9; }
html[data-theme="dark"] .event-details-list svg,
html[data-theme="dark"] .panel-title > svg { color: #aebdb5; }
html[data-theme="dark"] .green-title > svg { color: #61d47d; }
html[data-theme="dark"] .panel-divider { background: #526158; }
html[data-theme="dark"] .summary-card span:not(.summary-icon),
html[data-theme="dark"] .age-summary-values small { color: #bdc8c1; }
html[data-theme="dark"] .input-wrap > svg { color: #b8c4bd; }
html[data-theme="dark"] .input-wrap input::placeholder { color: #b7c4bd; }
html[data-theme="dark"] .field small,
html[data-theme="dark"] .privacy-note,
html[data-theme="dark"] .footer { color: #bdc8c1; }
html[data-theme="dark"] .deadline-box { border-color: #4f7658; background: linear-gradient(90deg, #243c2b, #203629); }
html[data-theme="dark"] .deadline-box small,
html[data-theme="dark"] .deadline-box span { color: #d6e1d9; }
html[data-theme="dark"] .sidebar-message { color: #a7eab7; }
html[data-theme="dark"] .heart { color: #bdc8c1; }
html[data-theme="dark"] .travel-update { border-color: #4f7658; border-left-color: #61d47d; background: linear-gradient(90deg, #243c2b, #203629); color: #e2ebe5; }
html[data-theme="dark"] .travel-update h2 { color: #a7eab7; }
html[data-theme="dark"] .reunion-balance { border-color: #4f7658; border-left-color: #61d47d; background: linear-gradient(90deg, #243c2b, #203629); }
html[data-theme="dark"] .reunion-balance strong { color: #a7eab7; }
html[data-theme="dark"] .reunion-balance span, html[data-theme="dark"] .reunion-balance small { color: #c7d5cc; }
html[data-theme="dark"] .reunion-balance-link { color: #a7eab7; }
html[data-theme="dark"] .donation-assurance { border-color: #4f7658; background: #243c2b; color: #dce9e0; }

@media (max-width: 1180px) {
    .brand-script { font-size: 20px; }
    .dashboard-grid { grid-template-columns: minmax(440px, 1.12fr) minmax(360px, .88fr); }
    .summary-card { gap: 10px; padding: 11px; }
    .summary-icon { width: 42px; height: 42px; flex-basis: 42px; }
}

@media (max-width: 920px) {
    :root { --sidebar-width: 78px; }
    .app-brand { padding: 0 11px; justify-content: center; }
    .brand-script { display: none; }
    .tree-logo { width: 62px; height: 62px; flex-basis: 62px; }
    .side-link { justify-content: center; padding: 0; }
    .side-link span { display: none; }
    .sidebar-message { display: none; }
    .dashboard-grid { grid-template-columns: 1fr; }
    .details-panel { order: -1; }
}

@media (max-width: 650px) {
    :root { --header-height: 78px; --sidebar-width: 0px; --mobile-nav-height: 68px; }
    .app-header { grid-template-columns: auto 1fr auto; padding: 0 14px; }
    .app-brand { padding: 0; }
    .tree-logo { width: 54px; height: 54px; flex-basis: 54px; }
    .header-event { margin: 0 0 0 15px; min-width: 0; }
    .header-event strong { font-size: 13px; }
    .header-event span { font-size: 12px; }
    .header-event-icon { width: 21px; height: 21px; }
    .header-actions { padding: 0; gap: 8px; }
    .admin-label { display: inline; font-size: 13px; }
    .admin-chevron { display: none; }
    .icon-button { width: 38px; height: 38px; }
    .app-sidebar {
        top: var(--header-height);
        bottom: auto;
        width: 100%;
        height: var(--mobile-nav-height);
        padding: 6px 8px;
        display: block;
        border-top: 1px solid var(--border);
        border-right: 0;
        box-shadow: 0 3px 14px rgba(19, 33, 25, .08);
    }
    .side-nav { height: 100%; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
    .side-link { min-height: 0; flex-direction: column; justify-content: center; gap: 3px; padding: 4px; border-radius: 8px; font-size: 11px; }
    .side-link span { display: block; }
    .side-link svg { width: 22px; height: 22px; }
    .sidebar-message { display: none; }
    .app-main { padding-top: calc(var(--header-height) + var(--mobile-nav-height)); padding-bottom: 0; }
    .dashboard-page { padding: 14px 12px 0; }
    .hero-banner { height: 156px; padding: 0 24px; }
    .hero-copy h1 { font-size: 28px; white-space: normal; }
    .hero-copy p { font-size: 17px; }
    .travel-update { margin-top: 13px; padding: 20px 18px; }
    .reunion-balance { align-items: flex-start; padding: 19px; }
    .dashboard-grid { margin-top: 13px; gap: 13px; }
    .form-panel, .details-panel { padding: 22px 17px; }
    .panel-title h2 { white-space: normal; }
    .summary-grid { grid-template-columns: 1fr; }
    .deadline-box { padding: 15px; gap: 14px; }
    .deadline-icon { width: 50px; height: 50px; flex-basis: 50px; }
    .admin-page { padding: 22px 14px 0; }
    .admin-heading, .table-toolbar { align-items: stretch; flex-direction: column; }
    .admin-heading-actions { align-items: stretch; flex-direction: column; }
    .admin-heading-actions .secondary-button { width: 100%; }
    .table-card { padding: 20px 16px; }
    .table-wrap { overflow: visible; }
    #rsvpTable, #rsvpTable tbody, #rsvpTable tr, #rsvpTable td { display: block; width: 100%; }
    #rsvpTable thead { display: none; }
    #rsvpTable tbody { display: grid; gap: 12px; }
    #rsvpTable tr { padding: 13px 14px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
    #rsvpTable td { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 10px; padding: 5px 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
    #rsvpTable td::before { content: attr(data-label); color: var(--muted); font-size: 12px; font-weight: 750; letter-spacing: .05em; text-transform: uppercase; }
    #rsvpTable td[data-label="Actions"] { display: block; padding-top: 10px; }
    #rsvpTable td[data-label="Actions"]::before { display: none; }
    .plaid-heading, .plaid-connection { align-items: stretch; flex-direction: column; }
    .plaid-connection-actions { align-items: stretch; flex-direction: column; }
    .plaid-connection-actions form, .plaid-connection-actions .secondary-button { width: 100%; }
    .table-toolbar input { max-width: none; }
    .stats-grid { grid-template-columns: 1fr; }
    .donation-page { padding: 27px 16px 12px; }
    .donation-method-grid, .donation-other-methods { grid-template-columns: 1fr; }
}
