@font-face {
    font-family: "Austin News Headline Web";
    src: url("../fonts/Austin-News-Headline-Web.woff2") format("woff2"),
         url("../fonts/Austin-News-Headline-Web.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: "Austin News Deck Web";
    src: url("../fonts/Austin-News-Deck-Web.woff2") format("woff2"),
         url("../fonts/Austin-News-Deck-Web.woff") format("woff");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

:root {
    --primary-color: #287AAD;
    --primary-dark-color: #145D86;
    --primary-light-color: #73BBE4;
    --secondary-color: #8FBF38;
    --secondary-dark-color: #5C8B22;
    --secondary-light-color: #B7DB3A;
    --accent-orange-color: #C63A07;
    --accent-orange-dark-color: #8F2603;
    --accent-purple-color: #AE4A99;
    --accent-purple-dark-color: #8A3278;
    --button-color: #287AAD;
    --button-hover-color: #145D86;
    --text-color: #1F2933;
    --muted-text-color: #6B7280;
    --light-bg-color: #F5FAFD;
    --section-bg-color: #F8FBF5;
    --card-bg-color: #FFFFFF;
    --border-color: #D9E6EF;
    --success-color: #8FBF38;
    --danger-color: #C63A07;
    --info-color: #287AAD;
    --admin-sidebar-color: #145D86;
    --admin-active-menu-color: #8FBF38;
    --page-bg: var(--light-bg-color);
    --admin-bg: #F3F8FC;
    --surface: var(--card-bg-color);
    --surface-soft: var(--section-bg-color);
    --surface-warm: #FBF9EE;
    --ink: var(--text-color);
    --ink-soft: #374151;
    --muted: var(--muted-text-color);
    --line: var(--border-color);
    --line-strong: #B8CEDB;
    --primary: var(--primary-color);
    --primary-dark: var(--primary-dark-color);
    --primary-soft: rgba(40, 122, 173, 0.12);
    --coral: var(--accent-orange-color);
    --coral-soft: rgba(198, 58, 7, 0.1);
    --gold: var(--secondary-color);
    --gold-soft: rgba(143, 191, 56, 0.16);
    --blue: var(--primary-color);
    --blue-soft: rgba(115, 187, 228, 0.18);
    --purple: var(--accent-purple-color);
    --purple-soft: rgba(174, 74, 153, 0.12);
    --danger: var(--danger-color);
    --danger-soft: rgba(198, 58, 7, 0.1);
    --success: var(--success-color);
    --success-soft: rgba(143, 191, 56, 0.16);
    --shadow-sm: 0 8px 20px rgba(24, 37, 31, 0.08);
    --shadow-md: 0 20px 54px rgba(24, 37, 31, 0.13);
    --shadow-lg: 0 28px 80px rgba(24, 37, 31, 0.16);
    --radius: 8px;
    --font-heading: "Austin News Headline Web", Georgia, "Times New Roman", serif;
    --font-body: "Austin News Deck Web", Arial, Helvetica, sans-serif;
    --button-soft: rgba(40, 122, 173, 0.14);
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    scroll-behavior: smooth;
}

body {
    min-height: 100%;
    margin: 0;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 15px;
    line-height: 1.6;
    letter-spacing: 0;
    background: var(--page-bg);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, transform 160ms ease;
}

a:hover {
    color: var(--coral);
}

button,
input,
select,
textarea {
    font-family: var(--font-body);
    font-size: inherit;
    line-height: inherit;
}

input,
select,
textarea {
    width: 100%;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 11px 13px;
    color: var(--ink);
    font-size: 0.94rem;
    background: #ffffff;
    box-shadow: 0 1px 0 rgba(22, 32, 28, 0.02);
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

textarea {
    min-height: 138px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: #9aa49f;
}

input:focus,
select:focus,
textarea:focus,
.choice-card:focus-within,
.button:focus-visible,
.table-action:focus-visible,
.text-link:focus-visible,
.pagination a:focus-visible,
.admin-nav a:focus-visible {
    outline: 3px solid rgba(143, 191, 56, 0.34);
    outline-offset: 2px;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(40, 122, 173, 0.1);
}

fieldset {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

legend,
label {
    display: block;
    margin-bottom: 6px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.94rem;
    font-weight: 600;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin-top: 0;
}

h1,
h2,
h3,
h4,
h5,
h6,
.page-title,
.section-title,
.event-title,
.dashboard-title,
.public-hero h1,
.card-heading h2,
.confirmation-card h2,
.step-heading h3,
.choice-section legend,
.choice-title,
.login-brand h1,
.admin-brand,
.admin-heading h1,
.panel-header h2,
.detail-panel h2,
.stat-card strong,
.not-found-mark {
    font-family: var(--font-heading);
    font-weight: 400;
    letter-spacing: 0;
}

.section-kicker,
.eyebrow {
    display: block;
    margin: 0 0 4px;
    color: var(--coral);
    font-family: var(--font-heading);
    font-size: 0.72rem;
    font-weight: 400;
    letter-spacing: 0;
    text-transform: uppercase;
}

.public-page {
    background:
        linear-gradient(135deg, rgba(40, 122, 173, 0.13), rgba(143, 191, 56, 0.1) 42%, rgba(174, 74, 153, 0.08)),
        linear-gradient(0deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.72)),
        var(--page-bg);
}

.public-shell {
    width: min(100% - 32px, 960px);
    margin: 0 auto;
    padding: 24px 0 28px;
}

.public-header {
    margin-bottom: 16px;
}

.public-hero {
    display: grid;
    justify-items: center;
    gap: 6px;
    text-align: center;
}

.public-hero h1 {
    max-width: 680px;
    margin: 0;
    color: var(--primary-dark);
    font-size: clamp(1.5rem, 2.2vw, 1.75rem);
    line-height: 1.25;
    overflow-wrap: anywhere;
}

.public-hero p {
    max-width: 650px;
    margin: 0;
    color: var(--ink-soft);
    font-size: 0.94rem;
    line-height: 1.5;
}

.brand-logo,
.admin-logo {
    object-fit: contain;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.brand-logo {
    width: min(280px, 72vw);
    height: auto;
    max-height: 76px;
    margin-bottom: 4px;
    padding: 0;
}

.admin-logo {
    flex: 0 0 auto;
    width: min(190px, 100%);
    height: auto;
    max-height: 56px;
    padding: 0;
}

.logo-placeholder {
    padding: 12px 18px;
    border: 1px solid rgba(40, 122, 173, 0.18);
    border-radius: var(--radius);
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.35rem;
    background: rgba(255, 255, 255, 0.72);
}

.event-info-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px 58px;
    width: min(100%, 880px);
    margin: 18px auto 0;
    padding: 0;
    font-size: 0.86rem;
    text-align: left;
}

.event-info-row {
    display: grid;
    grid-template-columns: 116px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
    min-width: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

.event-info-row dt {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.25;
    text-transform: uppercase;
}

.event-info-row dd {
    min-width: 0;
    margin: 0;
    color: #111827;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.42;
    overflow-wrap: anywhere;
}

.event-info-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border-radius: 0;
    color: var(--primary);
    background: transparent;
}

.event-info-icon::before,
.event-info-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.icon-calendar::before {
    width: 13px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.icon-calendar::after {
    width: 13px;
    height: 2px;
    top: 6px;
}

.icon-clock::before {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.icon-clock::after {
    width: 7px;
    height: 2px;
    transform: translate(2px, 0) rotate(90deg);
    transform-origin: left center;
}

.icon-venue::before {
    width: 14px;
    height: 8px;
    bottom: 4px;
    border-radius: 2px;
}

.icon-venue::after {
    width: 17px;
    height: 2px;
    top: 4px;
    box-shadow: 0 9px 0 currentColor;
}

.icon-location::before {
    width: 12px;
    height: 12px;
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
}

.icon-location::after {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #ffffff;
}

.icon-timezone::before {
    width: 14px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.icon-timezone::after {
    width: 2px;
    height: 14px;
    box-shadow: 5px 0 0 -1px currentColor, -5px 0 0 -1px currentColor;
}

.icon-address::before {
    width: 14px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.icon-address::after {
    width: 8px;
    height: 2px;
    top: 8px;
    box-shadow: 0 4px 0 currentColor;
}

.icon-contact::before {
    width: 14px;
    height: 11px;
    border: 2px solid currentColor;
    border-radius: 2px;
    background: transparent;
}

.icon-contact::after {
    width: 8px;
    height: 8px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    background: transparent;
    transform: rotate(45deg) translate(-1px, -3px);
}

.form-card,
.login-card,
.panel,
.detail-panel,
.stat-card {
    border: 1px solid rgba(40, 122, 173, 0.13);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: var(--shadow-md);
}

.form-card {
    padding: clamp(18px, 3vw, 30px);
    backdrop-filter: blur(12px);
}

.rsvp-card {
    position: relative;
    overflow: hidden;
}

.rsvp-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--coral));
}

.card-heading {
    margin-bottom: 20px;
}

.form-intro {
    max-width: 680px;
}

.card-heading h2,
.confirmation-card h2 {
    margin-bottom: 6px;
    color: var(--ink);
    font-size: clamp(1.45rem, 2.2vw, 1.65rem);
    line-height: 1.25;
}

.card-heading p,
.helper-text,
.disclaimer,
.step-heading p {
    color: var(--muted);
}

.rsvp-form {
    display: grid;
    gap: 14px;
}

.form-step {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
    border-top: 1px solid var(--line);
}

.form-step:first-of-type {
    border-top: 0;
    padding-top: 0;
}

.step-marker {
    display: grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--primary-dark);
    font-size: 0.82rem;
    font-family: var(--font-heading);
    font-weight: 400;
    background: var(--primary-soft);
    box-shadow: inset 0 0 0 1px rgba(40, 122, 173, 0.16);
}

.step-body {
    min-width: 0;
}

.step-heading {
    margin-bottom: 12px;
}

.step-heading h3 {
    margin: 0 0 4px;
    font-size: 1.08rem;
    line-height: 1.25;
}

.step-heading p {
    margin: 0;
}

.attendance-step {
    margin: 4px 0;
    padding: 16px;
    border: 1px solid rgba(40, 122, 173, 0.14);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--section-bg-color), rgba(115, 187, 228, 0.13));
}

.attendance-step .step-marker {
    background: var(--gold-soft);
    color: #7b4a03;
}

.field-grid {
    display: grid;
    gap: 14px;
}

.two-columns {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.three-columns {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.form-group {
    min-width: 0;
}

.form-group.has-error input,
.form-group.has-error textarea,
.form-group.has-error select {
    border-color: rgba(198, 58, 7, 0.72);
    background: #fffafa;
    box-shadow: 0 0 0 4px rgba(198, 58, 7, 0.08);
}

.field-error {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 9px 0 0;
    color: var(--danger);
    font-size: 0.84rem;
    font-weight: 600;
}

.field-error::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--danger);
}

.helper-text {
    margin: -1px 0 10px;
    font-size: 0.86rem;
}

.disclaimer {
    margin: 10px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(198, 58, 7, 0.24);
    border-left: 4px solid var(--gold);
    border-radius: var(--radius);
    background: var(--gold-soft);
    font-size: 0.8rem;
    line-height: 1.5;
}

.choice-section legend {
    margin-bottom: 6px;
    font-size: 0.98rem;
    line-height: 1.3;
}

.choice-grid {
    display: grid;
    gap: 10px;
}

.choice-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.choice-grid.six {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.choice-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 50px;
    margin: 0;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--ink);
    font-size: 0.94rem;
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(24, 37, 31, 0.05);
    cursor: pointer;
    user-select: none;
    transition: transform 160ms ease, border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(40, 122, 173, 0.45);
    box-shadow: 0 12px 26px rgba(24, 37, 31, 0.09);
}

.choice-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 1px;
    margin: 0;
    padding: 0;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
}

.choice-visual {
    position: relative;
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    border: 2px solid var(--line-strong);
    border-radius: 50%;
    background: #ffffff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.choice-visual::after {
    content: "";
    position: absolute;
    inset: 4px;
    border-radius: 50%;
    background: var(--primary);
    opacity: 0;
    transform: scale(0.4);
    transition: opacity 160ms ease, transform 160ms ease;
}

.choice-copy {
    display: grid;
    gap: 2px;
}

.choice-title {
    color: var(--ink);
    font-weight: 400;
    line-height: 1.1;
}

.choice-copy small {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 500;
}

.choice-card.is-selected {
    border-color: rgba(40, 122, 173, 0.82);
    background: var(--primary-soft);
    box-shadow: 0 14px 30px rgba(40, 122, 173, 0.13);
}

.choice-card.is-selected .choice-visual {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(40, 122, 173, 0.1);
}

.choice-card.is-selected .choice-visual::after {
    opacity: 1;
    transform: scale(1);
}

.choice-card.compact {
    justify-content: center;
    min-height: 42px;
    padding: 10px 12px;
    text-align: center;
}

.choice-card.compact .choice-title {
    min-width: 26px;
}

.pill-grid .choice-card.is-selected {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: 0 10px 22px rgba(40, 122, 173, 0.2);
}

.pill-grid .choice-card.is-selected .choice-title {
    color: #ffffff;
}

.conditional-panel {
    display: block;
}

.js-ready .conditional-panel {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: max-height 320ms ease, opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
}

.js-ready .conditional-panel.is-visible {
    max-height: 2200px;
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.js-ready .conditional-panel.nested {
    margin-top: 0;
}

.js-ready .conditional-panel.nested.is-visible {
    margin-top: 12px;
}

.conditional-panel.nested {
    padding: 12px;
    border: 1px solid rgba(40, 122, 173, 0.16);
    border-radius: var(--radius);
    background: var(--blue-soft);
}

.character-count {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.8rem;
    text-align: right;
}

.form-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    justify-content: center;
    padding-top: 6px;
}

.form-contact-note {
    max-width: 620px;
    margin: 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.5;
    text-align: right;
    overflow-wrap: anywhere;
}

.form-contact-note a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
}

.form-contact-note a:hover {
    text-decoration: underline;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    padding: 10px 17px;
    font-family: var(--font-body);
    font-weight: 600;
    line-height: 1.2;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease, background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}

.button:hover {
    transform: translateY(-1px);
}

.button:disabled,
.button.is-loading {
    cursor: wait;
    opacity: 0.82;
    pointer-events: none;
}

.button:disabled:hover,
.button.is-loading:hover {
    transform: none;
}

.button.is-loading::before {
    content: "";
    width: 16px;
    height: 16px;
    margin-right: 8px;
    border: 2px solid rgba(255, 255, 255, 0.45);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: button-spinner 760ms linear infinite;
}

@keyframes button-spinner {
    to {
        transform: rotate(360deg);
    }
}

.button-primary {
    color: #ffffff;
    background: linear-gradient(135deg, var(--button-color), var(--button-hover-color));
    box-shadow: 0 14px 26px rgba(40, 122, 173, 0.25);
}

.button-primary:hover {
    color: #ffffff;
    background: linear-gradient(135deg, var(--button-hover-color), var(--button-hover-color));
    box-shadow: 0 18px 34px rgba(40, 122, 173, 0.3);
}

.button-secondary {
    color: var(--primary-dark);
    border-color: rgba(40, 122, 173, 0.22);
    background: var(--primary-soft);
}

.button-secondary:hover {
    color: var(--primary-dark);
    background: #dff0e6;
}

.button-muted {
    color: var(--ink);
    border-color: var(--line);
    background: #ffffff;
}

.button-muted:hover {
    color: var(--ink);
    background: #f1f5f2;
}

.button-submit {
    width: min(100%, 230px);
    min-height: 48px;
    font-size: 0.94rem;
}

.button-full {
    width: 100%;
}

.alert {
    position: relative;
    margin-bottom: 20px;
    padding: 14px 16px 14px 44px;
    border-radius: var(--radius);
    font-weight: 600;
}

.alert::before {
    content: "";
    position: absolute;
    top: 18px;
    left: 18px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.alert-error {
    color: var(--danger);
    border: 1px solid rgba(198, 58, 7, 0.22);
    background: var(--danger-soft);
}

.alert-error::before {
    background: var(--danger);
}

.alert-success {
    color: var(--success);
    border: 1px solid rgba(143, 191, 56, 0.26);
    background: var(--success-soft);
}

.alert-success::before {
    background: var(--success);
}

.alert-info {
    color: var(--blue);
    border: 1px solid rgba(40, 122, 173, 0.2);
    background: var(--blue-soft);
}

.alert-info::before {
    background: var(--blue);
}

.confirmation-page .public-shell {
    width: min(100% - 32px, 980px);
}

.confirmation-page .public-header {
    margin-bottom: 22px;
}

.confirmation-page .event-info-list {
    width: min(100%, 840px);
    gap: 16px 46px;
    margin-top: 16px;
}

.confirmation-page .event-info-row {
    grid-template-columns: 106px minmax(0, 1fr);
}

.confirmation-card {
    position: relative;
    max-width: 780px;
    margin: 0 auto;
    padding: clamp(26px, 4vw, 42px);
    overflow: hidden;
    text-align: center;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(255, 255, 255, 0.92)),
        var(--surface);
}

.confirmation-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, var(--primary), var(--gold), var(--coral));
}

.success-mark {
    display: grid;
    place-items: center;
    width: 54px;
    height: 54px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--secondary-color), #6fa225);
    box-shadow: 0 16px 34px rgba(143, 191, 56, 0.26);
}

.success-mark span {
    width: 15px;
    height: 27px;
    border-right: 4px solid #ffffff;
    border-bottom: 4px solid #ffffff;
    transform: rotate(42deg) translate(-1px, -4px);
}

.confirmation-kicker {
    margin: 0 0 4px;
    color: var(--coral);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.confirmation-message {
    max-width: 620px;
    margin: 0 auto;
    color: var(--ink-soft);
    font-size: 0.98rem;
    line-height: 1.58;
}

.confirmation-actions {
    display: grid;
    justify-items: center;
    gap: 12px;
    margin-top: 22px;
}

.confirmation-contact-note {
    max-width: 620px;
    text-align: center;
}

.form-actions .confirmation-contact-note {
    align-self: center;
}

.not-found-mark {
    display: grid;
    place-items: center;
    width: 76px;
    height: 76px;
    margin: 0 auto 18px;
    border-radius: 50%;
    color: var(--primary-dark);
    background: var(--gold-soft);
    box-shadow: inset 0 0 0 1px rgba(143, 191, 56, 0.28);
    font-weight: 400;
}

.login-page {
    display: grid;
    min-height: 100vh;
    place-items: center;
    padding: 24px;
    background:
        linear-gradient(135deg, rgba(40, 122, 173, 0.14), rgba(143, 191, 56, 0.11), rgba(174, 74, 153, 0.08)),
        var(--admin-bg);
}

.login-shell {
    width: min(100%, 450px);
}

.login-card {
    padding: 32px;
    box-shadow: var(--shadow-lg);
}

.login-brand,
.admin-brand {
    display: flex;
    align-items: center;
    gap: 15px;
}

.login-brand {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 24px;
}

.login-brand h1 {
    margin: 0;
    font-size: 1.8rem;
    line-height: 1.1;
}

.login-brand p {
    margin: 5px 0 0;
    color: var(--muted);
    font-size: 0.95rem;
}

.login-form {
    display: grid;
    gap: 18px;
}

.admin-page {
    background: var(--admin-bg);
}

.admin-shell {
    display: grid;
    grid-template-columns: 282px minmax(0, 1fr);
    min-height: 100vh;
}

.admin-sidebar {
    display: flex;
    position: sticky;
    top: 0;
    flex-direction: column;
    gap: 20px;
    height: 100vh;
    padding: 22px;
    border-right: 0;
    color: #ffffff;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0)),
        var(--admin-sidebar-color);
    box-shadow: 8px 0 28px rgba(20, 93, 134, 0.16);
}

.admin-brand {
    align-items: flex-start;
    flex-direction: column;
    color: #ffffff;
    font-weight: 400;
}

.admin-brand span {
    line-height: 1.2;
}

.admin-nav {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.admin-nav a {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    align-items: center;
    gap: 10px;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid transparent;
    border-radius: var(--radius);
    color: rgba(255, 255, 255, 0.78);
    font-family: var(--font-body);
    font-weight: 600;
}

.admin-nav a:hover,
.admin-nav a.is-active {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.12);
    box-shadow: inset 4px 0 0 var(--admin-active-menu-color);
}

.nav-icon {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
}

.admin-nav a.is-active .nav-icon,
.admin-nav a:hover .nav-icon {
    color: var(--admin-sidebar-color);
    background: var(--admin-active-menu-color);
}

.nav-icon::before,
.nav-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.nav-icon-dashboard::before {
    width: 13px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 3px;
    background: transparent;
}

.nav-icon-dashboard::after {
    width: 6px;
    height: 2px;
    bottom: 8px;
    border-radius: 1px;
}

.nav-icon-list::before {
    width: 14px;
    height: 2px;
    top: 8px;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.nav-icon-list::after {
    width: 3px;
    height: 3px;
    top: 8px;
    left: 6px;
    border-radius: 50%;
    box-shadow: 0 5px 0 currentColor, 0 10px 0 currentColor;
}

.nav-icon-export::before {
    width: 14px;
    height: 11px;
    bottom: 6px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 2px;
    background: transparent;
}

.nav-icon-export::after {
    width: 2px;
    height: 12px;
    top: 5px;
    box-shadow: -4px 4px 0 -2px currentColor, 4px 4px 0 -2px currentColor;
}

.nav-icon-settings::before {
    width: 16px;
    height: 16px;
    border: 3px solid currentColor;
    border-radius: 50%;
    background: transparent;
}

.nav-icon-settings::after {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow:
        0 -10px 0 currentColor,
        0 10px 0 currentColor,
        10px 0 0 currentColor,
        -10px 0 0 currentColor;
}

.admin-user {
    margin-top: auto;
    padding: 14px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.1);
}

.admin-user span,
.admin-user small {
    display: block;
}

.admin-user span {
    color: #ffffff;
    font-weight: 600;
}

.admin-user small {
    color: rgba(255, 255, 255, 0.74);
    word-break: break-word;
}

.logout-form {
    margin: 0;
}

.admin-sidebar .button-secondary {
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.12);
}

.admin-sidebar .button-secondary:hover {
    color: var(--admin-sidebar-color);
    background: var(--admin-active-menu-color);
}

.admin-main {
    min-width: 0;
    padding: clamp(20px, 4vw, 38px);
}

.admin-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

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

.inline-action-form {
    margin: 0;
}

.admin-heading h1 {
    margin: 0;
    font-size: clamp(1.65rem, 3vw, 2.4rem);
    line-height: 1.08;
}

.admin-note {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    font-weight: 600;
}

.admin-note code {
    display: inline-block;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2px 7px;
    color: var(--primary-dark);
    font-family: Consolas, "Liberation Mono", Menlo, monospace;
    font-size: 0.86em;
    background: var(--primary-soft);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 15px;
    margin-bottom: 22px;
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    padding: 18px;
    box-shadow: var(--shadow-sm);
}

.stat-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary);
}

.stat-card .stat-icon {
    display: grid;
    position: relative;
    place-items: center;
    width: 38px;
    height: 38px;
    margin-bottom: 14px;
    border-radius: var(--radius);
    color: var(--primary-dark);
    background: var(--primary-soft);
}

.stat-card .stat-icon::before,
.stat-card .stat-icon::after {
    content: "";
    position: absolute;
    background: currentColor;
}

.stat-total .stat-icon::before {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 4px;
    background: transparent;
}

.stat-total .stat-icon::after {
    width: 7px;
    height: 2px;
    bottom: 10px;
    border-radius: 1px;
}

.stat-attending::before {
    background: var(--success);
}

.stat-attending .stat-icon {
    color: var(--success);
    background: var(--success-soft);
}

.stat-attending .stat-icon::before {
    width: 12px;
    height: 21px;
    border-right: 4px solid currentColor;
    border-bottom: 4px solid currentColor;
    background: transparent;
    transform: rotate(42deg) translate(-1px, -3px);
}

.stat-declined::before {
    background: var(--coral);
}

.stat-declined .stat-icon {
    color: var(--coral);
    background: var(--coral-soft);
}

.stat-declined .stat-icon::before,
.stat-declined .stat-icon::after {
    width: 18px;
    height: 3px;
    border-radius: 2px;
}

.stat-declined .stat-icon::before {
    transform: rotate(45deg);
}

.stat-declined .stat-icon::after {
    transform: rotate(-45deg);
}

.stat-adults::before {
    background: var(--blue);
}

.stat-adults .stat-icon {
    color: var(--blue);
    background: var(--blue-soft);
}

.stat-children::before {
    background: var(--gold);
}

.stat-children .stat-icon {
    color: #9a6508;
    background: var(--gold-soft);
}

.stat-adults .stat-icon::before,
.stat-children .stat-icon::before {
    width: 10px;
    height: 10px;
    top: 8px;
    border-radius: 50%;
}

.stat-adults .stat-icon::after,
.stat-children .stat-icon::after {
    width: 18px;
    height: 10px;
    bottom: 8px;
    border-radius: 10px 10px 4px 4px;
}

.stat-card .stat-label {
    display: block;
    color: var(--muted);
    font-size: 0.9rem;
    font-family: var(--font-body);
    font-weight: 600;
}

.stat-card strong {
    display: block;
    margin-top: 6px;
    color: var(--ink);
    font-size: clamp(1.7rem, 2.8vw, 2.35rem);
    line-height: 0.98;
}

.panel,
.detail-panel {
    padding: 20px;
    box-shadow: var(--shadow-sm);
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
}

.panel-header h2,
.detail-panel h2 {
    margin: 0;
    font-size: 1.14rem;
}

.detail-panel h2 + .detail-list,
.notes-box + h2 {
    margin-top: 18px;
}

.text-link,
.table-action {
    font-weight: 600;
}

.filter-bar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) 220px auto auto;
    align-items: end;
    gap: 14px;
    margin-bottom: 18px;
    padding: 16px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    background: #f8fafc;
}

.settings-form {
    display: grid;
    gap: 18px;
}

.settings-panel {
    display: grid;
    gap: 18px;
}

.settings-logo-grid {
    display: grid;
    grid-template-columns: minmax(220px, 0.45fr) minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.logo-preview {
    display: grid;
    place-items: center;
    min-height: 126px;
    padding: 16px;
    border: 1px dashed rgba(40, 122, 173, 0.25);
    border-radius: var(--radius);
    background: transparent;
}

.logo-preview img {
    max-width: min(100%, 260px);
    max-height: 92px;
    background: transparent;
    object-fit: contain;
}

.logo-preview span {
    color: var(--primary-dark);
    font-family: var(--font-heading);
    font-size: 1.2rem;
}

.color-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
}

.color-control {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
}

.color-control input[type="color"] {
    min-height: 46px;
    height: 46px;
    padding: 4px;
    cursor: pointer;
}

.settings-actions {
    display: flex;
    justify-content: flex-end;
}

.table-meta {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 12px;
    color: var(--muted);
    font-weight: 600;
}

.table-wrap {
    width: 100%;
    overflow-x: auto;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
}

.data-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
    background: #ffffff;
}

.data-table th,
.data-table td {
    padding: 14px 13px;
    border-bottom: 1px solid #e8edf2;
    text-align: left;
    vertical-align: top;
}

.data-table th {
    color: #607083;
    font-size: 0.8rem;
    font-family: var(--font-body);
    font-weight: 600;
    text-transform: uppercase;
    white-space: nowrap;
    background: #f8fafc;
}

.data-table tbody tr {
    transition: background-color 140ms ease;
}

.data-table tbody tr:hover {
    background: #fbfdfb;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}

.empty-table {
    color: var(--muted);
    text-align: center;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 0.82rem;
    font-weight: 600;
}

.status-badge.attending {
    color: var(--success);
    background: var(--success-soft);
}

.status-badge.not_attending {
    color: var(--danger);
    background: var(--danger-soft);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.pagination a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 40px;
    border: 1px solid #d8e1ea;
    border-radius: var(--radius);
    padding: 8px 12px;
    color: var(--ink);
    font-weight: 600;
    background: #ffffff;
}

.pagination a.is-active,
.pagination a:hover {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
}

.detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    gap: 18px;
}

.detail-list {
    display: grid;
    gap: 12px;
    margin: 0;
}

.detail-list div {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e8edf2;
}

.detail-list div:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.detail-list dt {
    color: var(--muted);
    font-weight: 600;
}

.detail-list dd {
    margin: 0;
}

.notes-box {
    min-height: 140px;
    padding: 15px;
    border: 1px solid #e2e8f0;
    border-radius: var(--radius);
    color: var(--ink);
    background: #f8fafc;
}

.break-word {
    word-break: break-word;
}

.was-validated input:invalid,
.was-validated textarea:invalid,
.was-validated select:invalid {
    border-color: rgba(198, 58, 7, 0.72);
    background: #fffafa;
}

@media (max-width: 1180px) {
    .stats-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .color-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 980px) {
    .admin-shell {
        grid-template-columns: 1fr;
    }

    .admin-sidebar {
        position: static;
        height: auto;
        border-right: 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.16);
        box-shadow: 0 8px 24px rgba(20, 93, 134, 0.12);
    }

    .admin-nav {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .admin-user {
        margin-top: 0;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 760px) {
    .public-shell {
        width: min(100% - 24px, 960px);
        padding: 18px 0 22px;
    }

    .brand-logo {
        width: min(240px, 74vw);
        max-height: 66px;
    }

    .two-columns,
    .three-columns,
    .choice-grid.two,
    .stats-grid,
    .filter-bar {
        grid-template-columns: 1fr;
    }

    .event-info-list,
    .settings-logo-grid,
    .color-grid {
        grid-template-columns: 1fr;
    }

    .choice-grid.six {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .form-step,
    .attendance-step {
        grid-template-columns: 1fr;
    }

    .attendance-step {
        padding: 14px;
    }

    .form-actions {
        align-items: stretch;
        justify-content: stretch;
    }

    .form-contact-note {
        max-width: none;
        text-align: center;
    }

    .button-submit {
        width: 100%;
    }

    .admin-heading,
    .panel-header,
    .table-meta {
        align-items: stretch;
        flex-direction: column;
    }

    .admin-heading-actions {
        flex-direction: column;
    }

    .admin-heading .button {
        width: 100%;
    }

    .inline-action-form {
        width: 100%;
    }

    .settings-actions {
        justify-content: stretch;
    }

    .settings-actions .button {
        width: 100%;
    }

    .detail-list div {
        grid-template-columns: 1fr;
        gap: 4px;
    }
}

@media (max-width: 560px) {
    body {
        font-size: 14px;
    }

    .form-card,
    .login-card,
    .panel,
    .detail-panel {
        padding: 18px;
    }

    .public-hero {
        gap: 5px;
    }

    .choice-grid.six {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .choice-card-large {
        align-items: flex-start;
    }

    .admin-nav {
        grid-template-columns: 1fr;
    }

    .admin-main,
    .admin-sidebar {
        padding: 18px;
    }
}

@media (max-width: 575px) {
    .public-shell {
        width: min(100% - 20px, 960px);
        padding: 16px 0 20px;
    }

    .public-header {
        margin-bottom: 12px;
    }

    .public-hero h1 {
        font-size: 1.32rem;
        line-height: 1.28;
    }

    .eyebrow,
    .section-kicker {
        font-size: 0.68rem;
    }

    .event-info-list {
        margin-top: 10px;
        font-size: 0.8rem;
        gap: 13px;
    }

    .event-info-row {
        grid-template-columns: 104px minmax(0, 1fr);
        gap: 12px;
        padding: 0;
        border-radius: 0;
    }

    .event-info-icon {
        width: 17px;
        height: 17px;
    }

    .event-info-row dt {
        font-size: 0.66rem;
    }

    .event-info-row dd {
        font-size: 0.83rem;
    }

    .confirmation-page .public-header {
        margin-bottom: 16px;
    }

    .confirmation-page .event-info-list {
        gap: 12px;
        margin-top: 12px;
    }

    .confirmation-page .event-info-row {
        grid-template-columns: 100px minmax(0, 1fr);
    }

    .card-heading h2,
    .confirmation-card h2 {
        font-size: 1.32rem;
    }

    .confirmation-card {
        padding: 24px 18px;
    }

    .confirmation-message,
    .confirmation-contact-note {
        font-size: 0.9rem;
    }

    .step-heading h3,
    .choice-section legend {
        font-size: 1rem;
    }

    label,
    input,
    select,
    textarea,
    .choice-card {
        font-size: 0.9rem;
    }

    .helper-text {
        font-size: 0.8rem;
    }

    .choice-card {
        min-height: 44px;
        padding: 10px 12px;
    }

    .choice-card.compact {
        min-height: 40px;
        padding: 9px 10px;
    }

    .disclaimer {
        font-size: 0.78rem;
    }

    .button-submit {
        font-size: 0.9rem;
    }
}

@media (max-width: 420px) {
    .public-shell,
    .confirmation-page .public-shell {
        width: min(100% - 16px, 960px);
    }

    .brand-logo {
        width: min(220px, 78vw);
        max-height: 60px;
    }

    .event-info-row,
    .confirmation-page .event-info-row {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .event-info-row dt {
        gap: 7px;
    }

    .form-card,
    .login-card,
    .panel,
    .detail-panel,
    .confirmation-card {
        padding: 16px;
    }

    .attendance-step {
        padding: 12px;
    }

    .form-contact-note {
        font-size: 0.8rem;
        line-height: 1.45;
    }
}
