:root {
    --bg: #f3f0eb;
    --surface: #fbf9f6;
    --surface-2: #f6f2ec;
    --line: #d6cdc3;
    --text: #2f2c29;
    --muted: #6f6a64;
    --accent: #7A6F66;
    --accent-strong: #625951;
    --shadow: 0 10px 28px rgba(66, 52, 40, 0.06);
    --radius-lg: 16px;
    --radius-md: 12px;
    --radius-sm: 8px;
    --radius: var(--radius-lg);
    --radius-control: var(--radius-sm);
    --radius-badge: 8px;
    --radius-pill: var(--radius-badge);
    --radius-round: 999px;
    --card-gap: 18px;
    --card-gap-sm: 10px;
    --card-gap-md: 14px;
    --card-gap-lg: 24px;
    --font-sans: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Cormorant Garamond", Georgia, serif;
    --heading-weight: 300;
    --heading-letter-spacing: 0.01em;
    --heading-line-height: 0.98;
    --h1-size: clamp(2.15rem, 5vw, 3.7rem);
    --h2-size: clamp(1.75rem, 3vw, 2.35rem);
    --h3-size: 1.45rem;
}

* { box-sizing: border-box; }
html,
body {
    min-height: 100%;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background: linear-gradient(180deg, var(--bg-start, #f7f4ef) 0%, var(--bg) 100%);
    background-attachment: fixed;
}
body {
    min-height: 100vh;
    background: linear-gradient(180deg, var(--bg-start, #f7f4ef) 0%, var(--bg) 100%);
    background-attachment: fixed;
    color: var(--text);
    font-family: var(--font-sans);
    line-height: 1.5;
}

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

a { color: inherit; }

.sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.page {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 28px 18px 72px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page > .site-footer {
    margin-top: auto;
    padding-top: 34px;
}

.page > .wishlist-shell,
.page > .dj-shell {
    flex: 1;
    min-height: 0;
}

.wishlist-shell > .site-footer,
.guest-shell > .site-footer,
.dj-shell > .site-footer {
    margin-top: auto;
}

.brand-lockup {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0 auto 26px;
    text-align: center;
}

.brand-lockup-login {
    margin-bottom: 20px;
}

.brand-logo {
    width: min(100%, 190px);
    height: auto;
}

.addressbook-shell > .brand-lockup,
.admin-event-shell > .brand-lockup,
.calendar-shell > .brand-lockup,
.event-new-shell > .brand-lockup {
    margin-bottom: 8px;
}

.addressbook-shell > .brand-row,
.admin-event-shell > .brand-row,
.calendar-shell > .page-heading-row,
.event-new-shell > .brand-row {
    margin-bottom: 4px;
}

.portal-page-head {
    display: grid;
    gap: 0;
}

.admin-global-header {
    position: fixed;
    top: max(14px, env(safe-area-inset-top, 0px));
    right: clamp(16px, 3vw, 32px);
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    min-height: 0;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: none;
    pointer-events: none;
}

.admin-page-brand {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 0 auto 22px;
}

.admin-page-brand a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.admin-page-brand img {
    display: block;
    width: 190px;
    max-width: 100%;
    height: 64px;
    object-fit: contain;
}

.admin-page-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px;
    align-items: end;
    width: min(100%, 1240px);
    margin: 0 auto var(--card-gap-md);
}

.admin-page-heading-copy {
    min-width: 0;
}

.admin-page-heading-copy .eyebrow {
    display: none;
}

.admin-page-heading-copy h1 {
    margin: 0;
    font-size: clamp(2.35rem, 4vw, 3.7rem);
    line-height: 0.98;
    font-weight: 300;
    letter-spacing: 0;
}

.admin-page-heading-subtitle {
    margin: 6px 0 0;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.25;
}

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

.admin-page-heading-actions form {
    margin: 0;
}

.admin-global-header-menu {
    flex: 0 0 auto;
    width: 52px;
    min-width: 52px;
    height: 52px;
    min-height: 52px;
    padding: 0;
    border: 1px solid rgba(87, 78, 70, 0.28);
    border-radius: var(--radius-sm);
    background: rgba(122, 111, 102, 0.96);
    box-shadow: 0 14px 32px rgba(43, 36, 31, 0.16);
    color: #fff;
    gap: 0;
    font-weight: 700;
    letter-spacing: 0;
    pointer-events: auto;
    position: relative;
    overflow: hidden;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.admin-global-header-menu .overview-menu-trigger__icon {
    width: 21px;
    flex: 0 0 auto;
}

.admin-global-header-menu .overview-menu-trigger__icon span {
    height: 1.5px;
    background: currentColor;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.admin-global-header-menu-label {
    display: none;
}

.admin-global-header-menu:hover,
.admin-global-header-menu:focus-visible,
body.admin-menu-open .admin-global-header-menu {
    background: color-mix(in srgb, var(--accent) 86%, #000);
    border-color: color-mix(in srgb, var(--accent) 86%, #000);
    box-shadow: 0 14px 32px rgba(43, 36, 31, 0.16);
    color: #fff;
    transform: none;
    text-decoration: none;
}

.admin-global-header-menu:hover .admin-global-header-menu-label,
.admin-global-header-menu:focus-visible .admin-global-header-menu-label,
body.admin-menu-open .admin-global-header-menu .admin-global-header-menu-label {
    display: none;
}

body.admin-menu-open .admin-global-header-menu .overview-menu-trigger__icon span:nth-child(1) {
    transform: translateY(5px) rotate(45deg);
}

body.admin-menu-open .admin-global-header-menu .overview-menu-trigger__icon span:nth-child(2) {
    opacity: 0;
}

body.admin-menu-open .admin-global-header-menu .overview-menu-trigger__icon span:nth-child(3) {
    transform: translateY(-5px) rotate(-45deg);
}

.admin-global-header-menu::before,
.admin-global-header-menu::after {
    content: none !important;
}

.portal-page-head > .brand-row,
.portal-page-head > .page-heading-row {
    margin-bottom: 4px;
}

.wishlist-brand-lockup {
    margin-bottom: 26px;
}

/* Public guest-facing event pages: wishlist, schedule and guest actions share one shell. */
.page.wishlist-page,
.page.guest-page {
    max-width: 1320px !important;
    padding: clamp(24px, 3vw, 38px) 20px clamp(58px, 7vw, 88px) !important;
}

.page.wishlist-page > .wishlist-shell,
.page.guest-page > .guest-shell {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 auto !important;
    display: grid !important;
    gap: clamp(22px, 2.8vw, 38px) !important;
    align-content: start !important;
}

.page.wishlist-page > .wishlist-shell {
    gap: clamp(28px, 3.4vw, 48px) !important;
}

.page.wishlist-page .wishlist-brand-lockup {
    margin-bottom: 8px !important;
}

.page.wishlist-page .wishlist-hero,
.page.wishlist-page .wishlist-section,
.page.wishlist-page .wishlist-card,
.page.guest-page .guest-hero,
.page.guest-page .guest-section,
.page.guest-page .guest-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
}

.page.wishlist-page .wishlist-hero,
.page.guest-page .guest-hero {
    min-height: clamp(420px, 48vw, 600px) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
}

.page.wishlist-page .wishlist-hero .wishlist-hero-image,
.page.guest-page .guest-hero .guest-hero-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
}

.page.wishlist-page .wishlist-hero-overlay,
.page.guest-page .guest-hero-overlay {
    min-height: clamp(420px, 48vw, 600px) !important;
    padding: 28px !important;
}

.page.wishlist-page .wishlist-section,
.page.wishlist-page .wishlist-card,
.page.guest-page .guest-section,
.page.guest-page .guest-card {
    border-radius: var(--radius-lg) !important;
    padding: 22px !important;
}

.brand-subline {
    font-size: 11px;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
}

.brand-row,
.page-heading-row {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    align-items: flex-end;
    margin-bottom: 22px;
}

.brand-copy {
    min-width: 0;
}

.overview-hero-row {
    align-items: flex-end;
    gap: 28px;
}

.overview-hero-row .brand-copy {
    min-width: 0;
    flex: 1 1 420px;
}

.overview-greeting {
    margin: 0;
    max-width: 520px;
    color: var(--muted);
    font-size: 0.98rem;
    font-weight: 500;
    line-height: 1.45;
}

.kicker {
    font-size: 11px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 8px;
}

.kicker-center,
.page-title-center,
.lead-center {
    text-align: center;
}

h1, h2, h3 {
    font-family: var(--font-serif);
    font-weight: var(--heading-weight);
    letter-spacing: var(--heading-letter-spacing);
    margin: 0;
    line-height: var(--heading-line-height);
}

h1 { font-size: var(--h1-size); }
h2 { font-size: var(--h2-size); }
h3 { font-size: var(--h3-size); }

.lead {
    max-width: 760px;
    color: var(--muted);
    margin-top: 10px;
}

.login-shell {
    max-width: 700px;
    margin: 50px auto 0;
}

.login-card,
.section-block {
    background: rgba(255,255,255,0.58);
    border-radius: var(--radius-lg);
    padding: 22px;
    box-shadow: var(--shadow);
    min-width: 0;
}

.section-block-spaced {
    margin-top: var(--card-gap);
}

.admin-page .section-block + .section-block {
    margin-top: var(--card-gap);
}

.page > .section-block + .section-block {
    margin-top: var(--card-gap);
}

.admin-page {
    width: min(1380px, calc(100% - 36px));
    margin: 0 auto;
    padding: 30px 0 78px;
    font-weight: 400;
}

.admin-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: var(--card-gap-lg);
    align-items: end;
    margin-bottom: 24px;
    position: relative;
}

.admin-header:has(.admin-logo) {
    padding-top: 92px;
}

.admin-logo {
    display: block;
    width: min(176px, 42vw);
    height: auto;
    margin: 0 auto 16px;
    opacity: .84;
}

.admin-header:has(.admin-logo) .admin-logo {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
}

.admin-page h1,
.admin-page h2,
.admin-page h3 {
    font-weight: var(--heading-weight);
}

.admin-page p,
.admin-page li,
.admin-page td,
.admin-page th {
    font-weight: 400;
}

.admin-header p {
    max-width: 780px;
    margin: 8px 0 0;
    color: var(--muted);
    font-weight: 400;
}

.admin-header-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

.content-card {
    min-width: 0;
    margin-top: var(--card-gap);
    padding: clamp(18px, 3vw, 30px);
    background: rgba(255, 255, 255, .72);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.content-card > h2:first-child {
    margin-top: 0;
}

.notice {
    margin: 14px 0;
    padding: 13px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .72);
    color: var(--text);
    font-weight: 600;
}

.notice.success {
    border-color: rgba(115, 144, 105, .35);
    color: #4d6746;
}

.notice.error {
    border-color: rgba(176, 91, 82, .35);
    color: #8d3c35;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .78);
    color: var(--text);
    font: inherit;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}

.admin-page label {
    font-weight: 400;
}

.admin-page input,
.admin-page textarea,
.admin-page select {
    font-weight: 400;
}

.admin-page b,
.admin-page strong {
    font-weight: 600;
}

.website-admin-page {
    color: var(--text);
}

.website-admin-page .admin-header {
    position: relative;
    align-items: end;
    margin-bottom: 28px;
    padding-top: 92px;
}

.website-admin-page .admin-logo {
    position: absolute;
    top: 0;
    left: 50%;
    width: min(168px, 40vw);
    margin: 0;
    opacity: 0.82;
    transform: translateX(-50%);
}

.website-admin-page .admin-header h1,
.website-admin-page .content-card > h2:first-child,
.website-admin-page .content-card h2,
.website-admin-page .content-card h3,
.website-admin-page .inquiry-card h3 {
    font-weight: 300 !important;
}

.website-admin-page .admin-header p:not(.eyebrow) {
    max-width: 700px;
    line-height: 1.45;
}

.website-admin-page .admin-header-actions {
    gap: 10px;
    padding-bottom: 4px;
}

.website-admin-page .content-card {
    background: rgba(255, 255, 255, 0.76);
}

.website-admin-page .content-card > h2:first-child {
    margin-bottom: 18px;
}

.website-admin-page label {
    color: var(--text);
    font-weight: 400;
    line-height: 1.28;
}

.website-admin-page input,
.website-admin-page textarea,
.website-admin-page select {
    color: var(--text);
    font-weight: 400 !important;
}

.website-admin-page textarea {
    font-size: 0.98rem;
}

.website-admin-page .btn,
.website-admin-page button {
    font-weight: 500;
}

.btn:hover,
.btn:focus-visible {
    background: #fff;
    border-color: var(--accent);
    color: var(--accent-strong);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover,
.btn-primary:focus-visible {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.meta-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-end;
    align-items: center;
}

@media (max-width: 820px) {
    .admin-page {
        width: min(100% - 24px, 720px);
        padding-top: 22px;
    }

    .admin-header {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .admin-header-actions,
    .form-actions {
        justify-content: flex-start;
    }

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

.section-head {
    margin-bottom: 14px;
}

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

.login-form {
    margin-top: 22px;
    max-width: 420px;
}

input[type="date"],
input[type="datetime-local"],
input[type="email"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="tel"],
input[type="text"],
input[type="time"],
input[type="url"],
select {
    width: 100%;
    min-height: 48px;
    min-width: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
    font: inherit;
    line-height: 1.25;
}

select {
    appearance: none !important;
    -webkit-appearance: none !important;
    width: 100% !important;
    min-height: 48px !important;
    height: 48px !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-sm) !important;
    background-color: #fff !important;
    color: var(--text) !important;
    padding: 0 42px 0 14px !important;
    font: inherit !important;
    line-height: 1.25 !important;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--muted) 50%),
        linear-gradient(135deg, var(--muted) 50%, transparent 50%) !important;
    background-position:
        calc(100% - 18px) 50%,
        calc(100% - 12px) 50% !important;
    background-size: 6px 6px, 6px 6px !important;
    background-repeat: no-repeat !important;
}

.message-chat-badge[hidden] {
    display: none !important;
}

button, .button {
    appearance: none;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    border-radius: var(--radius-control);
    padding: 0 18px;
    min-height: 48px;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
}

button:hover, .button:hover {
    background: var(--accent-strong);
    border-color: var(--accent-strong);
    color: #fff;
}

.button-secondary {
    background: transparent;
    border-color: var(--line);
    color: var(--accent-strong);
}

.button-secondary:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.icon-button {
    --icon-button-size: 42px;
    --icon-button-bg: #fff;
    --icon-button-color: var(--accent);
    --icon-button-border: var(--line);
    --icon-button-hover-bg: var(--accent);
    --icon-button-hover-color: #fff;
    --icon-button-hover-border: var(--accent);
    position: relative;
    flex: 0 0 var(--icon-button-size);
    width: var(--icon-button-size);
    min-width: var(--icon-button-size);
    height: var(--icon-button-size);
    min-height: var(--icon-button-size);
    aspect-ratio: 1;
    padding: 0;
    border-radius: var(--radius-sm);
    background: var(--icon-button-bg);
    color: var(--icon-button-color);
    border-color: var(--icon-button-border);
    box-shadow: none;
    transform: none;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.icon-button::before {
    content: attr(data-icon-label);
    position: absolute;
    left: 50%;
    bottom: calc(100% + 7px);
    transform: translateX(-50%) translateY(4px);
    white-space: nowrap;
    color: #fff;
    background: rgba(122, 111, 102, 0.96);
    border: 1px solid rgba(87, 78, 70, 0.28);
    border-radius: var(--radius-sm);
    padding: 7px 9px;
    box-shadow: 0 12px 26px rgba(34, 29, 25, 0.22);
    font-size: 0.72rem;
    line-height: 1.15;
    letter-spacing: 0;
    text-transform: none;
    font-weight: 700;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.14s ease, transform 0.14s ease, visibility 0.14s ease;
    z-index: 5;
}

.icon-button:not([data-icon-label])::before,
.icon-button[data-icon-label=""]::before {
    content: none;
}

.icon-button:hover::before,
.icon-button:focus-visible::before {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.icon-button:hover,
.icon-button:focus-visible {
    background: var(--icon-button-hover-bg);
    border-color: var(--icon-button-hover-border);
    color: var(--icon-button-hover-color);
    transform: none !important;
    box-shadow: none;
}

.icon-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.message-icon-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 25px;
    min-width: 25px;
    height: 25px;
    min-height: 25px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: #fff;
    color: var(--muted);
    box-shadow: none;
    transform: none;
}

.message-icon-button:hover,
.message-icon-button:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: none;
    transform: none;
}

.message-icon-button svg {
    width: 13px;
    height: 13px;
}

.icon-button.pdf-action-disabled,
.icon-button.pdf-action-disabled:hover,
.icon-button.pdf-action-disabled:focus-visible,
.icon-button.pdf-action-disabled:disabled {
    cursor: not-allowed;
    color: #9a4f4f !important;
    background: rgba(154, 79, 79, 0.14) !important;
    border-color: rgba(154, 79, 79, 0.42) !important;
    box-shadow: inset 0 0 0 1px rgba(154, 79, 79, 0.08);
    opacity: 1;
}

.icon-button.pdf-action-disabled svg {
    stroke-width: 2.15;
}

.icon-button.pdf-action-disabled::after {
    content: "";
    position: absolute;
    right: 5px;
    top: 5px;
    width: 7px;
    height: 7px;
    border-radius: var(--radius-round);
    background: #9a4f4f;
    box-shadow: 0 0 0 2px #fff;
}

.message {
    border-radius: var(--radius-md);
    padding: 12px 14px;
    font-size: 0.95rem;
}

.message-error {
    background: #f6e8e6;
    color: #7b4d49;
    border: 1px solid #e5c6c2;
}

.toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.search-toolbar {
    margin-bottom: 20px;
}

.search-input {
    max-width: 420px;
    flex: 1 1 260px;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.actions-top {
    align-self: flex-end;
    justify-content: flex-end;
}

.page-heading-row > .actions,
.page-heading-row > .calendar-nav {
    align-self: flex-end;
}

.overview-action-panel {
    display: grid;
    gap: 10px;
    justify-items: end;
    align-self: end;
    flex: 0 0 auto;
    width: min(100%, 640px);
}

.overview-action-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(116px, 1fr));
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.overview-action-row-finance {
    grid-template-columns: repeat(2, minmax(116px, 1fr));
    width: min(100%, 416px);
}

.overview-action-row:last-child {
    grid-template-columns: repeat(4, minmax(102px, 1fr));
}

.overview-action-row form {
    margin: 0;
}

.overview-action-row .button {
    width: 100%;
    min-width: 0;
    justify-content: center;
}

.overview-action-row form .button {
    width: 100%;
}

.overview-action-row .icon-button {
    width: var(--icon-button-size);
    min-width: var(--icon-button-size);
    justify-self: end;
}

.overview-action-panel.is-compact-nav {
    align-self: flex-start;
    padding-top: 8px;
    width: min(100%, 560px);
}

.overview-action-panel.is-compact-nav .overview-action-row {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px;
    width: 100%;
}

.overview-action-panel.is-compact-nav .overview-action-row .button,
.overview-action-panel.is-compact-nav .overview-action-row form .button {
    width: auto;
    min-width: 132px;
}

.overview-action-panel.is-compact-nav .overview-action-row .icon-button {
    width: var(--icon-button-size);
    min-width: var(--icon-button-size);
}

.overview-menu-trigger {
    justify-self: end;
    gap: 10px;
    min-width: 132px;
}

.overview-menu-trigger__icon {
    display: inline-grid;
    gap: 4px;
    width: 17px;
}

.overview-menu-trigger__icon span {
    display: block;
    height: 1.5px;
    border-radius: var(--radius-round);
    background: currentColor;
}

.overview-menu-overlay[hidden] {
    display: none;
}

.overview-menu-overlay {
    position: fixed;
    inset: 0;
    z-index: 1500;
    display: block;
    padding: 0;
}

.overview-menu-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(49, 45, 40, .18);
    backdrop-filter: blur(4px);
}

.overview-menu-dialog {
    position: absolute;
    inset: 0 0 0 auto;
    width: min(390px, calc(100vw - 28px));
    height: 100%;
    max-height: none;
    overflow: auto;
    padding: clamp(24px, 4vw, 36px);
    border: 0;
    border-left: 1px solid var(--line);
    border-radius: 0;
    background: rgba(251, 249, 246, .98);
    box-shadow: -18px 0 44px rgba(72, 60, 50, .14);
    animation: overviewMenuSlideIn .32s cubic-bezier(.22, 1, .36, 1);
}

@keyframes overviewMenuSlideIn {
    from {
        transform: translateX(100%);
    }
    to {
        transform: translateX(0);
    }
}

.overview-menu-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    margin-bottom: 24px;
}

.overview-menu-head h2 {
    margin: 3px 0 0;
    font-size: clamp(2.2rem, 5vw, 3.35rem);
    line-height: .96;
}

.overview-menu-close {
    flex: 0 0 auto;
    font-size: 1.25rem;
    line-height: 1;
}

.overview-menu-groups {
    display: grid;
    gap: 26px;
}

.overview-menu-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.overview-menu-links {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    border-top: 1px solid var(--line);
}

.overview-menu-link {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
    min-height: 50px;
    padding-inline: 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text);
    font-weight: 500;
}

.overview-menu-link:hover,
.overview-menu-link:focus-visible {
    background: transparent;
    color: var(--accent-strong);
    border-color: var(--line);
    transform: none;
    text-decoration: none;
    box-shadow: none;
}

.overview-menu-link::before,
.overview-menu-link::after {
    content: none !important;
}

body.admin-menu-open {
    overflow: hidden;
}

.admin-global-menu-trigger-floating {
    position: fixed;
    top: 18px;
    right: 18px;
    z-index: 1400;
    box-shadow: 0 12px 30px rgba(43, 36, 31, 0.12);
}

.admin-event-shell + .site-footer {
    width: min(100%, 1240px);
    margin-left: auto;
    margin-right: auto;
    padding-right: 18px;
    padding-left: 18px;
}

.overview-action-panel.is-page-actions {
    align-self: flex-start;
    padding-top: 8px;
    width: auto;
}

.overview-action-panel.is-page-actions .overview-action-row {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    width: auto;
}

.overview-action-panel.is-page-actions .overview-action-row .button {
    width: auto;
    min-width: 140px;
}

.overview-design-button {
    --icon-button-bg: var(--accent);
    --icon-button-color: #fff;
    --icon-button-border: var(--accent);
    --icon-button-hover-bg: color-mix(in srgb, var(--accent) 86%, #000);
    --icon-button-hover-color: #fff;
    --icon-button-hover-border: color-mix(in srgb, var(--accent) 86%, #000);
}

.table-wrap {
    width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    table-layout: fixed;
}

th, td {
    padding: 14px 10px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
    text-align: left;
    overflow-wrap: anywhere;
}

th {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    font-weight: 600;
}

td small {
    color: var(--muted);
    display: block;
    margin-top: 4px;
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 34px;
    border-radius: var(--radius-sm);
    padding: 0 12px;
    font-size: 0.83rem;
    background: color-mix(in srgb, var(--badge-color) 16%, white);
    color: var(--badge-color);
    border: 1px solid color-mix(in srgb, var(--badge-color) 28%, white);
    white-space: nowrap;
}

.site-footer {
    margin-top: clamp(62px, 8vw, 104px);
    padding: 0 4px;
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
    text-align: center;
}

.site-footer-made {
    color: var(--muted);
    font-size: 0.68rem;
    line-height: 1.45;
}

.site-footer-made span {
    color: inherit;
    font: inherit;
}

.site-footer-links {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    margin-top: 3px;
}

@media (max-width: 980px) {
    .brand-row,
    .page-heading-row {
        flex-direction: column;
        align-items: center;
        text-align: center;
        justify-content: flex-start;
    }

    .actions-top {
        align-self: center;
        justify-content: center;
    }

    .page-heading-row > .calendar-nav {
        align-self: center;
    }

    .admin-global-header {
        top: max(12px, env(safe-area-inset-top, 0px));
        right: 18px;
        min-height: 0;
        margin: 0;
        padding: 0;
    }

    .admin-global-header-menu {
        width: 52px;
        min-width: 52px;
        height: 52px;
        min-height: 52px;
        border-radius: var(--radius-sm);
    }

    .admin-global-header-menu:hover,
    .admin-global-header-menu:focus-visible,
    body.admin-menu-open .admin-global-header-menu {
        width: 52px;
        min-width: 52px;
    }

    .admin-page-brand {
        margin-bottom: 18px;
    }

    .admin-page-brand img {
        width: 190px;
        height: 64px;
    }

    .admin-page-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .admin-page-heading-actions {
        justify-content: flex-start;
    }

    .overview-hero-row {
        align-items: stretch;
        gap: 20px;
        margin-bottom: 20px;
    }

    .overview-action-panel {
        justify-items: stretch;
        width: 100%;
        max-width: none;
    }

    .overview-action-row {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
    }

    .overview-action-row .button,
    .overview-action-row form,
    .overview-action-row form .button {
        width: 100%;
    }

    .overview-action-row .icon-button {
        width: var(--icon-button-size);
        min-width: var(--icon-button-size);
        justify-self: start;
    }

    .overview-action-panel.is-compact-nav,
    .overview-action-panel.is-page-actions {
        padding-top: 0;
        width: 100%;
    }

    .overview-action-panel.is-compact-nav .overview-action-row,
    .overview-action-panel.is-page-actions .overview-action-row {
        display: grid;
        grid-template-columns: 1fr;
        justify-content: stretch;
        width: 100%;
    }

    .overview-action-panel.is-compact-nav .overview-action-row .button,
    .overview-action-panel.is-compact-nav .overview-action-row form .button,
    .overview-action-panel.is-page-actions .overview-action-row .button {
        width: 100%;
        min-width: 0;
    }

    .overview-action-panel.is-compact-nav .overview-action-row .icon-button {
        width: var(--icon-button-size);
        min-width: var(--icon-button-size);
    }

    .overview-menu-trigger {
        width: 100%;
    }

    .overview-menu-dialog {
        width: min(88vw, 380px);
    }

    .overview-menu-links {
        grid-template-columns: 1fr;
    }

    .lead {
        max-width: 100%;
    }
}

@media (max-width: 760px) {
    .page {
        padding: 22px 14px 56px;
    }

    .brand-lockup {
        margin-bottom: 16px;
    }

    .overview-hero-row {
        gap: 18px;
    }

    .overview-hero-row .brand-copy {
        flex-basis: auto;
    }

    .page.wishlist-page {
        max-width: none !important;
        padding: 0 0 30px !important;
    }

    .page.wishlist-page > .wishlist-shell {
        width: 100% !important;
        gap: 14px !important;
    }

    .page.wishlist-page .wishlist-brand-lockup {
        display: none !important;
    }

    .page.wishlist-page .wishlist-hero {
        min-height: min(62svh, 520px) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0 0 18px 18px !important;
    }

    .page.wishlist-page .wishlist-hero-overlay {
        min-height: min(62svh, 520px) !important;
        padding: 22px !important;
    }

    .page.wishlist-page .wishlist-section,
    .page.wishlist-page .wishlist-card {
        border-radius: var(--radius-lg) !important;
        padding: 18px !important;
        width: calc(100% - 24px) !important;
        margin-inline: 12px !important;
    }

    .login-card,
    .section-block {
        padding: 18px;
    }

    .toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .search-input {
        max-width: none;
        flex: 1 1 auto;
    }

    table,
    thead,
    tbody,
    th,
    td,
    tr {
        display: block;
        width: 100%;
    }

    thead {
        display: none;
    }

    tbody {
        display: grid;
        gap: 14px;
    }

    tr {
        background: rgba(255,255,255,0.78);
        border: 1px solid var(--line);
        border-radius: var(--radius-md);
        padding: 14px;
        box-shadow: 0 4px 14px rgba(66, 52, 40, 0.04);
    }

    td {
        border-bottom: 0;
        padding: 0;
        margin-top: 10px;
    }

    td:first-child {
        margin-top: 0;
    }

    td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 4px;
        font-size: 0.72rem;
        letter-spacing: 0.12em;
        text-transform: uppercase;
        color: var(--muted);
        font-weight: 600;
    }

    .actions {
        gap: 8px;
    }

.actions .button {
    flex: 1 1 100%;
}
}

.access-secret {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    max-width: 100%;
    margin-top: 5px;
    vertical-align: middle;
}

.access-secret-value {
    display: block;
    width: max-content;
    max-width: 100%;
    min-height: 18px;
    padding: 1px 5px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.56);
    color: var(--text);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.72rem;
    line-height: 1.2;
    word-break: break-all;
}

.access-secret-actions {
    display: flex;
    align-items: center;
    gap: 3px;
    flex: 0 0 auto;
    margin-top: 0;
}

button.access-secret-action {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 62px;
    min-width: 62px;
    max-width: 62px;
    min-height: 19px;
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    background: rgba(255,255,255,0.5);
    box-shadow: none;
    color: var(--muted);
    cursor: pointer;
    font: inherit;
    font-size: 0.62rem;
    font-weight: 600;
    line-height: 1;
    padding: 2px 5px;
    text-decoration: none;
    text-transform: lowercase;
    letter-spacing: 0;
    white-space: nowrap;
    transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.access-secret-toggle {
    width: 74px;
    min-width: 74px;
    max-width: 74px;
}

button.access-secret-action:hover {
    color: #fff;
    background: var(--accent);
    border-color: var(--accent);
    transform: none;
    box-shadow: none;
}

button.access-secret-action:focus-visible {
    outline: 2px solid color-mix(in srgb, var(--accent) 45%, white);
    outline-offset: 2px;
}

@media (max-width: 680px) {
    .brand-logo {
        width: min(100%, 190px);
    }
}

@media (max-width: 480px) {

    .access-secret {
        width: 100%;
        gap: 5px;
    }

    .access-secret-value {
        width: auto;
        max-width: calc(100% - 146px);
    }

    h1 {
        font-size: clamp(1.95rem, 9vw, 2.7rem);
    }

    .site-footer-links {
        flex-direction: column;
        gap: 3px;
    }
}

@media (min-width: 701px) {
    body button:not(.icon-button):not(.message-icon-button):not(.access-secret-action):not(.message-chat-toggle):not(.message-notice-close):not(.overview-login-close),
    body .button:not(.icon-button):not(.message-notice-close):not(.overview-login-close) {
        min-height: 38px !important;
        height: auto !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 12px !important;
        padding-right: 12px !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }

    body input[type="date"],
    body input[type="datetime-local"],
    body input[type="email"],
    body input[type="number"],
    body input[type="password"],
    body input[type="search"],
    body input[type="tel"],
    body input[type="text"],
    body input[type="time"],
    body input[type="url"],
    body select {
        min-height: 38px !important;
        height: 38px !important;
        padding-top: 0 !important;
        padding-bottom: 0 !important;
        padding-left: 12px !important;
        font-size: 0.9rem !important;
        line-height: 1.2 !important;
    }

    body select {
        padding-right: 38px !important;
        background-position: calc(100% - 17px) 50%, calc(100% - 11px) 50% !important;
    }

    body input[type="file"] {
        min-height: 38px !important;
        padding-top: 7px !important;
        padding-bottom: 7px !important;
        font-size: 0.9rem !important;
    }

    body .icon-button {
        --icon-button-size: 38px;
        width: var(--icon-button-size) !important;
        min-width: var(--icon-button-size) !important;
        height: var(--icon-button-size) !important;
        min-height: var(--icon-button-size) !important;
        padding: 0 !important;
    }
}

/* Customer portal visual alignment with the public website. */
.page.portal-shell {
    --portal-card-gap: var(--card-gap);
    max-width: 1320px;
    padding: clamp(24px, 3vw, 38px) 20px clamp(58px, 7vw, 88px);
}

.page.portal-shell .brand-lockup {
    margin-bottom: clamp(18px, 2.8vw, 34px);
}

.page.portal-shell .brand-logo {
    width: min(100%, 190px);
    opacity: .84;
}

.page.portal-shell .login-card,
.page.portal-shell .section-block {
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    background: rgba(251, 249, 246, .82);
    box-shadow: 0 18px 46px rgba(40, 34, 29, .07);
    padding: clamp(24px, 3.5vw, 42px);
}

.page.portal-shell #section-uebersicht {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .72), rgba(255, 255, 255, .18)),
        var(--surface);
}

.page.portal-shell h1,
.page.portal-shell h2,
.page.portal-shell h3 {
    letter-spacing: 0;
}

.page.portal-shell .kicker,
.page.portal-shell .portal-detail-label,
.page.portal-shell .portal-section-view-item strong,
.page.portal-shell .portal-info-row > span {
    color: var(--accent);
    font-size: .68rem;
    font-weight: 700;
    letter-spacing: .14em;
}

.page.portal-shell .lead {
    color: var(--muted);
    font-weight: 400;
    line-height: 1.55;
}

.page.portal-shell button,
.page.portal-shell .button {
    border-radius: var(--radius-sm);
    font-weight: 600;
    letter-spacing: 0;
    box-shadow: none;
}

.page.portal-shell .button-secondary {
    background: rgba(255, 255, 255, .42);
    border-color: var(--line);
    color: var(--text);
}

.page.portal-shell .button-secondary:hover,
.page.portal-shell .button-secondary:focus-visible {
    background: var(--surface);
    border-color: var(--accent);
    color: var(--accent-strong);
}

.page.portal-shell input[type="date"],
.page.portal-shell input[type="datetime-local"],
.page.portal-shell input[type="email"],
.page.portal-shell input[type="number"],
.page.portal-shell input[type="password"],
.page.portal-shell input[type="search"],
.page.portal-shell input[type="tel"],
.page.portal-shell input[type="text"],
.page.portal-shell input[type="time"],
.page.portal-shell input[type="url"],
.page.portal-shell select,
.page.portal-shell textarea {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .72);
    color: var(--text);
    font-weight: 400;
}

.page.portal-shell .portal-main-grid {
    --portal-grid-gap: var(--portal-card-gap);
}

.page.portal-shell .portal-column {
    gap: var(--portal-card-gap);
}

.page.portal-shell .portal-detail,
.page.portal-shell .portal-section-view-item,
.page.portal-shell .portal-info-group,
.page.portal-shell .portal-song-row,
.page.portal-shell .portal-event-style-card {
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .42);
    box-shadow: none;
}

.page.portal-shell .portal-info-list .portal-detail,
.page.portal-shell .portal-info-list .portal-section-view-item,
.page.portal-shell .portal-info-row {
    background: transparent;
}

.page.portal-shell .portal-info-list .portal-detail-grid,
.page.portal-shell .portal-info-list .portal-section-view-grid,
.page.portal-shell .portal-info-list > .portal-detail {
    border-color: rgba(150, 140, 130, .22);
    border-radius: var(--radius-sm);
    background: rgba(255, 255, 255, .24);
}

.page.portal-shell .portal-info-list .portal-info-group {
    border: 0;
    border-bottom: 1px solid rgba(150, 140, 130, .22);
    border-radius: 0;
    background: transparent;
    padding: 4px 0 14px;
}

.page.portal-shell .portal-info-list .portal-info-group:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.page.portal-shell .site-footer {
    margin-top: clamp(38px, 6vw, 72px);
    padding-top: clamp(34px, 5vw, 64px);
    border-top: 1px solid var(--line);
}

.page.portal-shell .site-footer img {
    opacity: .78;
}

@media (max-width: 680px) {
    .page.portal-shell {
        width: calc(100vw - 24px);
        padding-inline: 0;
    }

    .page.portal-shell .login-card,
    .page.portal-shell .section-block {
        padding: 24px;
    }
}

/* Shared customer-facing portal frontends: Eventportal, Wunschliste and Zeitplan. */
.page.portal-shell .portal-hero-card,
.page.wishlist-page .wishlist-hero,
.page.guest-page .guest-hero {
    position: relative !important;
    overflow: hidden !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(251, 249, 246, .72) !important;
    box-shadow: 0 18px 46px rgba(40, 34, 29, .08) !important;
    min-height: clamp(420px, 48vw, 600px) !important;
}

.page.portal-shell .portal-hero-image,
.page.wishlist-page .wishlist-hero-image,
.page.guest-page .guest-hero-image {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center center !important;
    border-radius: inherit !important;
}

.page.portal-shell .portal-hero-logo,
.page.wishlist-page .wishlist-hero-logo,
.page.guest-page .guest-hero-logo {
    position: absolute !important;
    z-index: 2 !important;
    top: clamp(22px, 3vw, 36px) !important;
    left: clamp(24px, 3.4vw, 46px) !important;
    display: block !important;
    width: clamp(140px, 13vw, 190px) !important;
    aspect-ratio: 2843 / 1084 !important;
    height: auto !important;
    max-height: none !important;
    background: url('assets/img/logo-eventportal-white.svg?v=20260706') left center / contain no-repeat !important;
    opacity: .96 !important;
    pointer-events: none !important;
}

.page.portal-shell .portal-hero-overlay,
.page.wishlist-page .wishlist-hero-overlay,
.page.guest-page .guest-hero-overlay {
    position: relative !important;
    z-index: 1 !important;
    display: flex !important;
    align-items: flex-end !important;
    min-height: clamp(420px, 48vw, 600px) !important;
    padding: clamp(28px, 4.5vw, 58px) !important;
    border-radius: inherit !important;
    background: linear-gradient(180deg, rgba(40, 34, 29, .24) 0%, rgba(40, 34, 29, .06) 36%, rgba(40, 34, 29, .66) 100%) !important;
    color: #fff !important;
}

.page.portal-shell .portal-hero-overlay h1,
.page.wishlist-page .wishlist-hero-overlay h1,
.page.guest-page .guest-hero-overlay h1 {
    color: #fff !important;
}

.page.portal-shell .portal-hero-date,
.page.wishlist-page .wishlist-date,
.page.guest-page .guest-date {
    color: inherit !important;
}

.page.portal-shell .portal-overview-card,
.page.wishlist-page .wishlist-section,
.page.wishlist-page .wishlist-card,
.page.guest-page .guest-section,
.page.guest-page .guest-card {
    border: 1px solid rgba(150, 140, 130, .24) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(255, 255, 255, .54) !important;
    box-shadow: 0 18px 46px rgba(40, 34, 29, .06) !important;
}

.page.portal-shell .portal-home-stage {
    display: grid;
    gap: 0;
    border-radius: var(--radius-md);
    box-shadow: 0 24px 62px rgba(40, 34, 29, .08);
}

.page.portal-shell .portal-home-stage .portal-hero-card {
    border-radius: var(--radius-md) 16px 0 0 !important;
    box-shadow: none !important;
}

.page.portal-shell .portal-home-stage #section-uebersicht {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(0, 1.58fr);
    gap: var(--portal-card-gap);
    margin: 0 !important;
    border-top: 0 !important;
    border-radius: 0 0 16px 16px !important;
    box-shadow: none !important;
    background:
        linear-gradient(135deg, rgba(255, 255, 255, .82), rgba(255, 255, 255, .34)),
        rgba(251, 249, 246, .88) !important;
}

.page.portal-shell .portal-home-stage .portal-intro-row {
    display: grid;
    gap: 18px;
    align-content: start;
    align-items: start;
    min-width: 0;
    padding: clamp(20px, 2.4vw, 30px);
    border: 1px solid rgba(150, 140, 130, .24);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, .54);
}

.page.portal-shell .portal-home-stage .portal-intro-actions {
    align-items: stretch;
    justify-content: stretch;
    gap: 10px;
}

.page.portal-shell .portal-home-stage .portal-intro-actions .button,
.page.portal-shell .portal-home-stage .portal-intro-actions button {
    width: 100%;
    justify-content: center;
}

.page.portal-shell .portal-home-stage .portal-overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: minmax(144px, auto);
    align-items: stretch;
    gap: var(--portal-card-gap);
    align-self: stretch;
    margin-top: 0;
}

.page.portal-shell .portal-home-stage .portal-overview-card {
    grid-template-rows: 26px auto auto 1fr;
    align-content: start;
    align-items: start;
    min-height: 144px;
    padding: clamp(17px, 1.8vw, 22px);
    background: rgba(255, 255, 255, .5) !important;
    font-family: var(--font-sans);
    cursor: pointer;
}

.page.portal-shell .portal-home-stage .portal-overview-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    color: var(--accent);
}

.page.portal-shell .portal-home-stage .portal-overview-card__icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.page.portal-shell .portal-home-stage .portal-access-settings,
.page.portal-shell .portal-home-stage #portal-flash-message,
.page.portal-shell .portal-home-stage .message {
    grid-column: 1 / -1;
}

.page.wishlist-page .wishlist-hero:has(+ .wishlist-card),
.page.wishlist-page .wishlist-hero:has(+ .wishlist-section),
.page.guest-page .guest-hero:has(+ .guest-card),
.page.guest-page .guest-hero:has(+ .guest-section) {
    border-radius: var(--radius-md) !important;
    box-shadow: 0 18px 46px rgba(40, 34, 29, .08) !important;
}

.page.wishlist-page .wishlist-hero::after,
.page.guest-page .guest-hero::after {
    display: none !important;
}

.page.wishlist-page .wishlist-hero + .wishlist-card,
.page.wishlist-page .wishlist-hero + .wishlist-section,
.page.guest-page .guest-hero + .guest-card,
.page.guest-page .guest-hero + .guest-section {
    margin-top: 0 !important;
    border-top: 1px solid rgba(150, 140, 130, .24) !important;
    border-radius: var(--radius-md) !important;
    background: rgba(251, 249, 246, .88) !important;
    box-shadow: 0 18px 46px rgba(40, 34, 29, .06) !important;
}

@media (max-width: 760px) {
    .page.portal-shell,
    .page.wishlist-page,
    .page.guest-page {
        max-width: none !important;
    }

    .page.portal-shell,
    .page.wishlist-page,
    .page.guest-page {
        width: 100vw !important;
        padding: 0 0 56px !important;
    }

    .page.portal-shell .portal-hero-card,
    .page.wishlist-page .wishlist-hero,
    .page.guest-page .guest-hero {
        width: 100vw !important;
        max-width: 100vw !important;
        min-height: 460px !important;
        margin-left: calc(50% - 50vw) !important;
        margin-right: calc(50% - 50vw) !important;
        border-left: 0 !important;
        border-right: 0 !important;
        border-radius: 0 !important;
    }

    .page.wishlist-page .wishlist-hero:has(+ .wishlist-card),
    .page.wishlist-page .wishlist-hero:has(+ .wishlist-section),
    .page.guest-page .guest-hero:has(+ .guest-card),
    .page.guest-page .guest-hero:has(+ .guest-section) {
        border-radius: 0 0 18px 18px !important;
    }

    .page.portal-shell .portal-hero-overlay,
    .page.wishlist-page .wishlist-hero-overlay,
    .page.guest-page .guest-hero-overlay {
        min-height: 460px !important;
        padding: 22px !important;
    }

    .page.wishlist-page .wishlist-hero-overlay h1,
    .page.guest-page .guest-hero-overlay h1 {
        max-width: calc(100vw - 44px) !important;
        font-size: clamp(2rem, 7.8vw, 2.4rem) !important;
        overflow-wrap: anywhere !important;
    }

    .page.portal-shell .portal-hero-logo,
    .page.wishlist-page .wishlist-hero-logo,
    .page.guest-page .guest-hero-logo {
        top: 20px !important;
        left: 22px !important;
        width: min(38vw, 142px) !important;
    }

    .page.portal-shell .section-block {
        width: calc(100% - 24px) !important;
        margin-inline: 12px !important;
        border-radius: var(--radius-md) !important;
    }

    .page.wishlist-page .wishlist-section,
    .page.wishlist-page .wishlist-card,
    .page.guest-page .guest-section,
    .page.guest-page .guest-card {
        width: calc(100% - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        min-width: 0 !important;
        margin-inline: 12px !important;
        border-radius: var(--radius-md) !important;
        overflow: hidden !important;
    }

    .page.wishlist-page .schedule-intro,
    .page.wishlist-page .guest-action-copy,
    .page.wishlist-page .wishlist-empty,
    .page.guest-page .guest-welcome p,
    .page.guest-page .guest-tile-copy {
        max-width: calc(100vw - 44px) !important;
        overflow-wrap: anywhere !important;
    }

    .page.wishlist-page .wishlist-actions .button,
    .page.wishlist-page .wishlist-actions button,
    .page.guest-page .guest-actions .button {
        max-width: 100% !important;
        white-space: normal !important;
    }

    .page.wishlist-page .wishlist-hero + .wishlist-card,
    .page.wishlist-page .wishlist-hero + .wishlist-section,
    .page.guest-page .guest-hero + .guest-card,
    .page.guest-page .guest-hero + .guest-section {
        width: calc(100% - 24px) !important;
        max-width: calc(100vw - 24px) !important;
        margin-top: 0 !important;
        margin-inline: 12px !important;
        border-radius: var(--radius-md) !important;
        padding: 22px !important;
    }

    .page.portal-shell .portal-home-stage {
        width: 100vw;
        margin-left: calc(50% - 50vw);
        margin-right: calc(50% - 50vw);
        border-radius: 0;
        box-shadow: none;
    }

    .page.portal-shell .portal-home-stage .portal-hero-card {
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: 0 !important;
    }

    .page.portal-shell .portal-home-stage .portal-hero-card .portal-hero-image,
    .page.portal-shell .portal-home-stage .portal-hero-card .portal-hero-overlay {
        border-radius: 0 !important;
    }

    .page.portal-shell .portal-home-stage #section-uebersicht {
        grid-template-columns: 1fr;
        gap: 12px;
        width: 100% !important;
        margin-inline: 0 !important;
        padding: 12px 12px 20px !important;
        border-radius: 0 0 18px 18px !important;
    }

    .page.portal-shell .portal-home-stage .portal-intro-row {
        border: 0 !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 22px 22px 18px !important;
    }

    .page.portal-shell .portal-home-stage .portal-overview-grid {
        grid-template-columns: 1fr;
        gap: 0;
        overflow: hidden;
        border: 1px solid rgba(150, 140, 130, .22);
        border-radius: var(--radius-md);
        background: rgba(255, 255, 255, .56);
    }

    .page.portal-shell .portal-home-stage .portal-overview-card {
        min-height: 0;
        grid-template-columns: auto 1fr;
        grid-template-rows: auto auto auto;
        column-gap: 12px;
        border: 0 !important;
        border-bottom: 1px solid rgba(150, 140, 130, .18) !important;
        border-radius: 0 !important;
        background: transparent !important;
        box-shadow: none !important;
        padding: 16px 18px !important;
    }

    .page.portal-shell .portal-home-stage .portal-overview-card:last-child {
        border-bottom: 0 !important;
    }

    .page.portal-shell .portal-home-stage .portal-overview-card__icon {
        grid-row: 1 / span 3;
        margin-top: 2px;
    }
}

/* Final public event page separation: hero and first content card are independent cards. */
.page.wishlist-page .wishlist-hero,
.page.guest-page .guest-hero {
    margin-bottom: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-md) !important;
    overflow: hidden !important;
}

.page.wishlist-page .wishlist-hero::after,
.page.guest-page .guest-hero::after {
    content: none !important;
    display: none !important;
}

.page.wishlist-page .wishlist-hero + .wishlist-card,
.page.wishlist-page .wishlist-hero + .wishlist-section,
.page.guest-page .guest-hero + .guest-card,
.page.guest-page .guest-hero + .guest-section {
    border-radius: var(--radius-lg) !important;
}

@media (max-width: 760px) {
    .page.wishlist-page > .wishlist-shell {
        gap: 20px !important;
    }

    .page.guest-page > .guest-shell {
        gap: 16px !important;
    }

    .page.wishlist-page .wishlist-hero,
    .page.guest-page .guest-hero {
        border-radius: 0 0 18px 18px !important;
    }

    .page.wishlist-page .wishlist-hero + .wishlist-card,
    .page.wishlist-page .wishlist-hero + .wishlist-section,
    .page.guest-page .guest-hero + .guest-card,
    .page.guest-page .guest-hero + .guest-section {
        margin-top: 0 !important;
        border-radius: var(--radius-md) !important;
    }
}
