:root {
    color-scheme: light;
    --ink: #323232;
    --muted: #6d6e70;
    --brand: #c30039;
    --brand-dark: #9e002f;
    --header: #323232;
    --on-brand: #ffffff;
    --line: #dedede;
    --paper: #ffffff;
    --canvas: #f7f7f7;
    --text-small: .875rem;
    --text-meta: .8125rem;
    --text-body: 1rem;
    --error: #a51d2d;
    --scroll-offset: calc(var(--header-height, 152px) + 24px);
    --header-transition: .75s ease;
    --header-size-transition: .75s ease;
    font-family: 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif;
    background: var(--canvas);
    color: var(--ink);
}

* { box-sizing: border-box; }
main :where([id], input, button, select, textarea, summary, a, [tabindex]) { scroll-margin-top: var(--scroll-offset); scroll-margin-bottom: 2px; }

body { margin: 0; min-width: 320px; background: var(--canvas); font-size: var(--text-body); line-height: 1.5; }
button, input, select, textarea { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #c30039; outline-offset: 2px; }
a { color: var(--brand); text-decoration: underline; text-underline-offset: .18em; }
a:where(:visited) { color: var(--brand-dark); }
a:where(:hover) { color: var(--brand-dark); text-decoration-thickness: .12em; }
input, select, textarea { max-width: 100%; }

.site-shell { min-height: 100vh; display: flex; flex-direction: column; }
.site-header { position: sticky; top: 0; z-index: 100; flex-shrink: 0; max-height: max(64px, calc(100dvh - 96px)); overflow-y: auto; padding: 16px 30px; background: var(--header); color: var(--on-brand); transition: background-color var(--header-transition), color var(--header-transition), padding var(--header-size-transition), box-shadow var(--header-transition); }
.site-header.is-compact { padding-top: 8px; padding-bottom: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 2px 6px #0002; }
.header-inner { width: min(100%, 1120px); min-height: 52px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 28px; transition: gap var(--header-size-transition); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 18px; color: inherit; text-decoration: none; }
.brand-logo { display: block; width: clamp(140px, 18vw, 205px); height: auto; transition: width var(--header-size-transition); }
.is-compact .brand-logo { width: 120px; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { color: inherit; font-size: 18px; font-weight: 700; }
.brand-copy small { color: #dedede; font-size: var(--text-meta); letter-spacing: .04em; transition: color var(--header-transition); }
.is-compact .brand-copy small { color: var(--muted); }
header-navigation { display: contents; }
.header-controls { min-width: 0; display: flex; align-items: center; gap: 12px 24px; }
.navigation-toggle { display: none; flex: 0 0 44px; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 10px; border: 1px solid #888; border-radius: 2px; background: transparent; color: inherit; }
.navigation-toggle:hover { background: #454545; border-color: white; }
.is-compact .navigation-toggle:hover { background: #f3f3f3; border-color: var(--brand); }
.burger-icon { position: relative; display: block; width: 22px; height: 18px; }
.burger-icon span { position: absolute; left: 0; top: 0; width: 22px; height: 2px; background: currentColor; transition: transform .2s ease, opacity .2s ease; }
.burger-icon span:nth-child(2) { top: 8px; }
.burger-icon span:nth-child(3) { top: 16px; }
.navigation-toggle[aria-expanded="true"] .burger-icon span:first-child { transform: translateY(8px) rotate(45deg); }
.navigation-toggle[aria-expanded="true"] .burger-icon span:nth-child(2) { opacity: 0; }
.navigation-toggle[aria-expanded="true"] .burger-icon span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
.site-header a { color: inherit; }
.site-header :focus-visible, .site-footer :focus-visible { outline-color: var(--on-brand); }
.account-trigger, .header-signin { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 9px 12px; border: 1px solid #888; border-radius: 2px; background: transparent; color: inherit; font-weight: 700; text-decoration: none; transition: background-color var(--header-transition), border-color var(--header-transition); }
.account-trigger { anchor-name: --account-trigger; }
.account-trigger:hover, .header-signin:hover { background: #454545; border-color: white; }
.is-compact .account-trigger:hover, .is-compact .header-signin:hover { background: #f3f3f3; border-color: var(--brand); }
.site-header.is-compact :focus-visible { outline-color: var(--brand); }
.account-menu { --account-menu-width: min(320px, calc(100vw - 30px)); position: fixed; inset: auto max(30px, calc((100vw - 1120px) / 2)) auto auto; top: calc(var(--header-height, 152px) + 8px); margin: 0; width: var(--account-menu-width); max-height: calc(100dvh - var(--header-height, 152px) - 24px); overflow-y: auto; padding: 8px; border: 1px solid var(--line); border-top: 3px solid var(--brand); border-radius: 2px; background: var(--paper); color: var(--ink); box-shadow: 0 8px 28px #0003; }
.account-identity { display: grid; gap: 6px; margin: 0 0 8px; padding: 12px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.account-identity small { color: var(--muted); font-size: var(--text-meta); }
.account-identity code { font-size: inherit; }
.account-menu form { margin: 0; }
.account-menu a, .account-menu button { display: flex; align-items: center; width: 100%; min-height: 44px; padding: 10px 12px; border: 0; border-radius: 2px; background: transparent; color: var(--ink); font-weight: 700; text-align: left; text-decoration: none; }
.account-menu a:hover, .account-menu button:hover { background: #f3f3f3; color: var(--brand); }
.account-menu :focus-visible { outline-color: var(--brand); outline-offset: -3px; }
.header-error { flex-basis: 100%; margin: 0; font-size: var(--text-small); }
.content { width: min(100% - 48px, 1032px); margin: 0 auto; flex: 1; padding: 52px 0 72px; }
.site-footer { min-height: 68px; padding: 18px max(30px, calc((100vw - 1120px) / 2)); background: var(--brand); display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px 24px; color: var(--on-brand); font-size: var(--text-small); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 12px 24px; }
.site-footer a { color: inherit; }
.support-links { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: var(--text-small); }
.site-footer .support-links { gap: 6px 14px; }
.support-links > span { font-weight: 700; }
.notice .support-links { margin-top: 12px; }

@supports (top: anchor(bottom)) {
    .site-header .account-menu { position-anchor: --account-trigger; top: calc(anchor(bottom) + 8px); right: clamp(15px, anchor(right), calc(100vw - var(--account-menu-width) - 15px)); position-try-fallbacks: flip-block; }
}

.intro-row { min-height: 208px; display: flex; align-items: center; justify-content: center; gap: 36px; margin: -52px calc(50% - 50vw) 36px; padding: 32px max(24px, calc((100vw - 1032px) / 2)); background: var(--brand); color: white; text-align: center; }
.intro-row > div:first-child { max-width: 680px; }
.eyebrow { margin: 0 0 10px; color: var(--brand); font-size: var(--text-small); line-height: 1.4; font-weight: 700; letter-spacing: .08em; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { color: var(--ink); font-family: 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif; }
.intro-row h1 { max-width: none; margin-bottom: 9px; color: white; font-size: clamp(30px, 4.4vw, 42px); line-height: 1.12; letter-spacing: .11em; font-weight: 700; text-transform: uppercase; }
.lede { margin: 0 auto; max-width: 530px; color: white; font-size: 16px; line-height: 1.5; }
.hero { margin-bottom: 24px; }
.hero h1 { margin: 0; font-size: clamp(28px, 4vw, 40px); line-height: 1.15; letter-spacing: -.02em; }
.hero h1:focus { outline: none; }
.portal-navigation { display: flex; gap: 8px; }
.portal-navigation a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 12px 7px; border-bottom: 3px solid transparent; color: inherit; font-size: var(--text-body); font-weight: 700; text-decoration: none; transition: color var(--header-transition), border-color var(--header-transition), background-color var(--header-transition); }
.portal-navigation a:hover { background: #454545; }
.portal-navigation a[aria-current="page"] { border-bottom-color: white; }
.is-compact .portal-navigation a:hover { background: #f3f3f3; color: var(--brand); }
.is-compact .portal-navigation a[aria-current="page"] { border-bottom-color: var(--brand); color: var(--brand); }
.admin-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 480px; margin-bottom: 28px; border-bottom: 1px solid var(--line); }
.admin-tabs a { display: flex; align-items: center; justify-content: center; min-height: 48px; min-width: 0; padding: 12px; border-bottom: 3px solid transparent; color: var(--muted); font-size: var(--text-body); font-weight: 700; text-decoration: none; }
.admin-tabs a:hover { background: white; color: var(--brand); }
.admin-tabs a[aria-current="page"] { border-bottom-color: var(--brand); background: white; color: var(--brand); }
.signin-panel { max-width: 560px; padding: 28px; background: var(--paper); border: 1px solid var(--line); border-radius: 2px; }
.signin-panel p { margin-bottom: 22px; color: var(--muted); line-height: 1.5; }
.signin-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.signin-actions .primary-button, .signin-actions .secondary-button { width: 100%; min-height: 48px; min-width: 0; padding: 12px 24px; font-size: 16px; }
.action-note { width: min(265px, 100%); display: flex; align-items: start; gap: 10px; padding: 14px 15px; background: white; color: var(--muted); font-size: var(--text-small); line-height: 1.5; text-align: left; }
.note-mark { display: grid; place-items: center; flex: 0 0 17px; height: 17px; border-radius: 50%; background: var(--brand); color: white; font-family: inherit; font-weight: 700; }

.club-context { margin-bottom: 24px; }
.club-name { margin: 0; font-size: clamp(21px, 2.5vw, 25px); overflow-wrap: anywhere; }
.club-field { display: grid; gap: 6px; max-width: 480px; }
.club-field label, .appointment-row label, .save-panel > label, .product-editor label, .coordination-grid label, .membership-search { color: var(--ink); font-size: var(--text-small); font-weight: 700; }
.club-field select, .appointment-row select, .coordination-grid select, .product-editor input, .product-editor select, .product-editor textarea, .save-panel textarea { width: 100%; min-height: 44px; border: 1px solid #aaa; border-radius: 2px; background: white; color: var(--ink); padding: 9px 10px; outline-color: var(--brand); font-size: var(--text-body); }
.field-hint { display: block; color: var(--muted); font-size: var(--text-small); font-weight: 400; }
.admin-toggle, .secondary-button { min-height: 44px; padding: 10px 16px; border: 1px solid #999; border-radius: 2px; color: var(--ink); background: #f3f3f3; font-size: var(--text-body); font-weight: 700; }
.secondary-button:hover:not(:disabled) { border-color: var(--brand); background: #fff; }
.admin-toggle span { margin-left: 10px; color: var(--brand); }

.section-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 18px; margin: 0 0 20px; }
.section-heading > div { min-width: 0; overflow-wrap: anywhere; }
.section-heading h2 { margin: 0; font-size: 25px; letter-spacing: -.04em; }
.version-indicator { display: flex; align-items: center; gap: 8px; padding-bottom: 5px; color: var(--muted); font-size: var(--text-small); }
.current-order { margin-bottom: 24px; padding: 24px; border: 1px solid var(--line); border-top: 4px solid var(--brand); background: white; }
.current-order .section-heading { margin-bottom: 12px; }
.current-order-club { margin: 8px 0 0; font-size: 18px; font-weight: 700; }
.current-order-meta { margin: 0 0 20px; color: var(--muted); font-size: var(--text-small); overflow-wrap: anywhere; }
.current-order-content { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.current-order-content .saved-weekend { border-top: 1px solid var(--line); }
.current-order-content .saved-weekend strong { font-size: 18px; }
.current-order-comment { margin: 24px 0 0; padding-top: 16px; border-top: 1px solid var(--line); white-space: pre-wrap; overflow-wrap: anywhere; }
.empty-order { margin: 0; color: var(--muted); }
#current-order-heading:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; }
.order-disclosure { margin-bottom: 24px; border: 1px solid var(--line); background: white; }
.order-disclosure > summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 20px 24px; background: #f3f3f3; cursor: pointer; list-style: none; }
.order-disclosure > summary::-webkit-details-marker { display: none; }
.order-disclosure > summary h2 { margin: 0; font-size: 24px; line-height: 1.3; }
.order-disclosure[open] > summary { border-bottom: 1px solid var(--line); }
.disclosure-action { margin-left: auto; color: var(--brand); font-size: var(--text-small); font-weight: 700; }
.editor-draft-badge { padding: 4px 8px; border: 1px solid var(--brand); border-radius: 2px; background: white; color: var(--brand); font-size: var(--text-small); font-weight: 700; }
.order-editor-body, .order-history-body { padding: 24px; }
.order-editor .save-panel { margin-bottom: 0; }
.history-section > .section-heading h3 { margin: 0; font-size: 20px; }
.workspace-status { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-bottom: 24px; }
.workspace-status > .notice { flex: 1 1 260px; margin: 0; }
.workspace-status > .error { flex-basis: 100%; }
.quantity-guidance { margin: 0 0 24px; padding: 16px 20px; border-left: 4px solid var(--brand); background: white; }
.quantity-guidance p { margin: 4px 0 0; }
.weekend-list { display: grid; gap: 20px; }
.weekend-card { background: var(--paper); border: 1px solid var(--line); border-radius: 2px; overflow: hidden; }
.weekend-heading { display: flex; align-items: center; gap: 14px; padding: 20px 22px; border-bottom: 1px solid var(--line); background: #e9e9ea; }
.weekend-date { flex: 0 0 58px; width: 58px; height: 58px; display: grid; align-content: center; justify-items: center; background: var(--brand); color: white; border-radius: 2px; }
.weekend-date strong { font: 700 20px 'Source Sans Pro', 'Source Sans 3', Arial, sans-serif; line-height: 1; }
.weekend-date span { margin-top: 3px; font-size: var(--text-meta); letter-spacing: .06em; }
.weekend-title { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.weekend-title .eyebrow { margin: 0 0 3px; color: var(--muted); font-size: var(--text-meta); letter-spacing: .03em; }
.weekend-title h3 { margin: 0; font-size: 20px; }
.weekend-title h3 label { font: inherit; cursor: pointer; }
.weekend-participation { flex: 0 0 24px; width: 24px; height: 24px; margin: 0; accent-color: var(--brand); cursor: pointer; }
.weekend-participation:disabled { cursor: not-allowed; }
.weekend-status { margin: 4px 0 0; color: var(--muted); font-size: var(--text-small); }
.weekend-card:not(.participating) .weekend-heading { border-bottom: 0; }
.weekend-quantity-error { padding: 12px 22px 0; }
.appointment-row { padding: 17px 22px 13px; display: grid; grid-template-columns: 1fr minmax(260px, 390px); align-items: center; gap: 20px; }
.required-mark { color: var(--brand); }
.product-table-wrap { overflow-x: auto; padding: 0 22px; }
.product-table { width: 100%; border-collapse: collapse; font-size: var(--text-small); text-align: left; }
.product-table th { padding: 12px 9px; color: var(--muted); font-size: var(--text-small); font-weight: 700; border-bottom: 1px solid var(--line); }
.product-table td { padding: 11px 9px; border-bottom: 1px solid #eeeeee; color: #6d6e70; vertical-align: middle; }
.product-table tbody tr:last-child td { border-bottom: 0; }
.product-name { color: var(--ink); font-size: var(--text-body); font-weight: 700; }
.product-category { display: block; margin-top: 3px; color: var(--muted); font-size: var(--text-meta); }
.quantity-heading { text-align: right; }
.quantity-cell { text-align: right; }
.quantity-input { display: inline-flex; align-items: center; width: 136px; border: 1px solid #d4d4d4; border-radius: 2px; background: white; }
.quantity-input:focus-within { border-color: var(--brand); box-shadow: 0 0 0 2px rgba(195,0,57,.12); }
.quantity-input input { flex-shrink: 0; width: 76px; height: 44px; padding: 6px 4px 6px 10px; border: 0; outline: none; color: var(--ink); font-size: var(--text-body); font-weight: 700; background: transparent; }
.quantity-input span { flex: 1; padding-right: 10px; color: var(--muted); font-size: var(--text-small); text-align: right; }
.order-fields { min-width: 0; margin: 0; padding: 0; border: 0; }
.quantity-invalid { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.quantity-error { display: block; max-width: 220px; margin-top: 8px; color: var(--error); font-size: var(--text-small); text-align: left; }
select[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--error); box-shadow: 0 0 0 1px var(--error); }
.field-error { margin: 6px 0 0; color: var(--error); font-size: var(--text-small); font-weight: 700; }
.validation-summary { margin: 12px 0 20px; color: #8b4037; font-size: var(--text-small); }
.product-details { max-width: 320px; margin-top: 8px; font-size: var(--text-small); line-height: 1.5; }
.product-details summary { color: var(--brand); cursor: pointer; }
.product-details p { margin: 5px 0 0; overflow-wrap: anywhere; }
.coordination-details { padding: 12px 22px 15px; border-top: 1px solid #eeeeee; }
.coordination-details summary { padding: 8px 0; color: var(--muted); font-size: var(--text-small); cursor: pointer; font-weight: 700; }
.coordination-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; padding-top: 13px; }
.coordination-field { display: grid; gap: 6px; align-content: start; }
.coordination-grid select { font-weight: 400; }
.save-panel { margin: 21px 0 56px; padding: 22px; background: #e9e9ea; border: 1px solid #dedede; border-radius: 2px; }
.save-panel > label { display: block; margin-bottom: 8px; }
.save-panel textarea { display: block; resize: vertical; min-height: 62px; background: rgba(255,255,255,.88); }
.save-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; padding-top: 16px; }
.save-row p { margin: 0; color: var(--muted); font-size: var(--text-small); }
.order-validation-summary { margin-top: 20px; padding: 20px; border: 2px solid var(--error); border-left-width: 6px; border-radius: 2px; background: #fff5f5; color: #7a1422; }
.order-validation-summary:focus { outline: 3px solid var(--error); outline-offset: 3px; }
.order-validation-summary h3 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.order-validation-summary p { margin: 0 0 12px; }
.order-validation-summary ul { display: grid; gap: 8px; margin: 0; padding-left: 22px; }
.order-validation-summary li { overflow-wrap: anywhere; }
.order-validation-summary a { color: inherit; font-weight: 700; }
validation-links { display: block; }
.primary-button { min-height: 44px; padding: 10px 18px; border: 0; border-radius: 2px; background: var(--brand); color: white; font-size: var(--text-body); font-weight: 700; transition: background .15s ease; }
.primary-button:hover:not(:disabled) { background: var(--brand-dark); }
.primary-button:disabled, .secondary-button:disabled { cursor: not-allowed; opacity: .65; }
.primary-button span { margin-left: 12px; color: #f2cbd6; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; max-width: 100%; line-height: 1.4; text-align: center; text-decoration: none; vertical-align: middle; overflow-wrap: anywhere; }
.history-section { margin-top: 0; }
.section-heading.compact { margin-bottom: 15px; }
.history-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.history-pagination { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.history-count { color: var(--muted); font-size: var(--text-small); }
.history-view-toggle { display: inline-flex; border: 1px solid #999; border-radius: 2px; overflow: hidden; }
.history-view-toggle button { min-height: 44px; padding: 10px 12px; border: 0; background: #f3f3f3; color: var(--ink); font-size: var(--text-small); font-weight: 700; }
.history-view-toggle button + button { border-left: 1px solid #999; }
.history-view-toggle button[aria-pressed="true"] { background: var(--brand); color: white; }
.empty-history { margin: 0; padding: 19px 21px; border: 1px dashed #c7c7c7; color: var(--muted); font-size: var(--text-body); }
.history-list { display: grid; gap: 7px; }
.history-item { background: white; border: 1px solid var(--line); border-radius: 3px; }
.history-item summary { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 16px; cursor: pointer; list-style: none; overflow-wrap: anywhere; }
.history-item summary::-webkit-details-marker { display: none; }
.history-version { color: var(--brand); font-size: var(--text-body); font-weight: 700; }
.history-meta { min-width: 0; display: grid; gap: 3px; font-size: var(--text-body); }
.history-meta small { color: var(--muted); font-size: var(--text-meta); }
.history-comment { flex: 1 1 180px; min-width: 0; color: var(--muted); font-size: var(--text-small); white-space: pre-wrap; }
.history-expand { color: var(--brand); font-size: var(--text-small); font-weight: 700; margin-left: auto; }
.history-content { padding: 8px 20px 20px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; border-top: 1px solid var(--line); }
.saved-weekend { min-width: 0; padding-top: 12px; color: var(--muted); font-size: var(--text-small); overflow-wrap: anywhere; }
.saved-weekend strong { display: block; margin-bottom: 6px; color: var(--ink); font-size: var(--text-body); }
.saved-weekend ul { margin: 6px 0 0; padding-left: 15px; line-height: 1.65; }
.saved-weekend p { margin: 0 0 4px; }
.saved-weekend li { margin-bottom: 6px; overflow-wrap: anywhere; }
.saved-line-title { color: var(--ink); font-weight: 700; }
.history-first-version, .history-no-changes { grid-column: 1 / -1; margin: 0; padding: 14px; background: #e9e9ea; color: var(--muted); font-size: var(--text-small); }
.history-change-group { grid-column: 1 / -1; min-width: 0; }
.history-change-group h3 { margin: 10px 0 8px; color: var(--brand); font-size: var(--text-body); }
.history-change-row { display: grid; grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, 1fr)); gap: 12px; padding: 12px; border-top: 1px solid var(--line); font-size: var(--text-small); }
.history-change-row > strong { min-width: 0; overflow-wrap: anywhere; color: var(--ink); font-weight: 700; }
.history-change-value { min-width: 0; overflow-wrap: anywhere; color: #6d6e70; }
.history-change-value small { display: block; margin-bottom: 3px; color: var(--muted); font-size: var(--text-meta); font-weight: 700; }
.history-change-value:last-child { color: var(--brand-dark); font-weight: 700; }
.archived-label { display: inline-block; margin-left: 5px; color: var(--brand); font-size: var(--text-meta); }
.alert, .notice { margin: 0 0 20px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 3px; background: white; font-size: var(--text-body); overflow-wrap: anywhere; }
.notice:empty { display: none; }
.alert-error, .notice.error { background: #fff5f5; border-color: var(--error); border-left-width: 5px; color: #7a1422; }
.alert-success, .notice.success { background: #f1f1f1; border-color: #aaa; color: var(--ink); }
.alert p, .notice p { margin: 0 0 8px; }
.alert p:last-child, .notice p:last-child { margin-bottom: 0; }
.notice button { margin-top: 12px; }
.save-panel .notice { margin: 16px 0 0; }
.notice-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 12px; }
.notice-actions button { margin-top: 0; }
.loading-notice { color: var(--muted); font-size: var(--text-body); }
.loading-state, .empty-access { padding: 38px; text-align: center; background: white; border: 1px solid var(--line); color: #6d6e70; }
.empty-access h2 { margin-bottom: 8px; font-size: 20px; }
.empty-access p { margin: 0; font-size: var(--text-body); }

.catalog-heading { margin-top: 4px; }
.product-overview-heading { max-width: 720px; margin-bottom: 40px; }
.product-overview-heading h1 { margin-bottom: 16px; font-size: clamp(32px, 4vw, 46px); line-height: 1.12; letter-spacing: -.02em; }
.product-overview-heading > p:last-child { margin-bottom: 0; color: var(--muted); font-size: 18px; }
.product-overview-count { color: var(--muted); font-size: var(--text-small); }
.offer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.offer-card { min-width: 0; display: grid; grid-template-rows: subgrid; grid-row: span 5; row-gap: 0; padding: 20px; background: #e9e9ea; overflow-wrap: anywhere; }
.offer-card > header { grid-row: 1; }
.offer-origin { margin: 0 0 6px; color: #666; font-size: var(--text-small); }
.offer-card h3 { margin: 0; font-size: 21px; line-height: 1.25; }
.offer-description { grid-row: 2; margin: 20px 0; padding-left: 18px; }
.offer-description li + li { margin-top: 10px; }
.offer-package { grid-row: 3; align-self: end; margin: 0 0 20px; padding-top: 12px; }
.offer-price { grid-row: 4; padding-top: 16px; border-top: 1px solid #c8c8c8; }
.offer-price > span { display: block; font-size: var(--text-small); }
.offer-price > strong { display: block; color: var(--brand); font-size: 28px; line-height: 1.25; }
.offer-price p { margin: 6px 0 0; white-space: pre-line; }
.offer-purchase { display: grid; gap: 3px; margin-top: 14px; padding-top: 12px; border-top: 1px solid #c8c8c8; font-size: var(--text-small); }
.offer-supplier { grid-row: 5; margin: 20px 0 0; color: #666; font-size: var(--text-small); }
.product-overview-note { max-width: 760px; margin: 28px 0; color: var(--muted); font-size: var(--text-small); }
.product-overview-note p:last-child { margin-bottom: 0; }
.catalog-intro { margin: 0 0 24px; color: var(--muted); font-size: var(--text-body); }
.catalog-layout { display: grid; grid-template-columns: minmax(0, 1fr); align-items: start; gap: 24px; }
.catalog-layout.has-editor { grid-template-columns: minmax(0, 1fr) minmax(320px, 360px); }
.catalog-list { min-width: 0; display: grid; gap: 12px; }
.catalog-item { display: flex; justify-content: space-between; gap: 12px; padding: 15px; background: white; border: 1px solid var(--line); border-radius: 3px; }
.catalog-item h3 { margin: 0 0 6px; font-size: 18px; }
.catalog-item > div:first-child { min-width: 0; overflow-wrap: anywhere; }
.catalog-item p { margin: 0 0 6px; color: var(--muted); font-size: var(--text-small); }
.catalog-item small { color: var(--muted); font-size: var(--text-meta); }
.catalog-item-archived { background: #f3f3f3; }
.catalog-item-selected { border-color: var(--brand); box-shadow: inset 3px 0 var(--brand); }
.catalog-actions { display: flex; flex: 0 0 auto; flex-direction: column; align-items: end; gap: 6px; }
.text-button { min-height: 40px; padding: 6px 4px; border: 0; background: none; color: var(--brand); font-size: var(--text-small); font-weight: 700; text-align: right; text-decoration: underline; text-underline-offset: .18em; }
.text-button:disabled { cursor: not-allowed; color: #858585; }
.danger-text { color: var(--brand-dark); }
.product-editor { display: grid; min-width: 0; margin: 0; gap: 16px; padding: 20px; background: #f3f3f3; border: 1px solid var(--line); }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.contact-grid > label { min-width: 0; grid-row: span 3; grid-template-rows: subgrid; }
.contact-grid input[aria-invalid="true"] { border-color: var(--error); }
.field-validation-error { color: var(--error); font-weight: 400; }
club-request { display: grid; gap: 16px; min-width: 0; }
club-request fieldset { min-width: 0; margin: 0; padding: 0; border: 0; }
club-request legend { margin-bottom: 8px; font-weight: 700; }
club-search { display: grid; gap: 8px; max-width: 480px; }
club-search > label:first-child { color: var(--ink); font-size: var(--text-small); font-weight: 700; }
.club-search-summary { margin: 0; color: var(--muted); font-size: var(--text-small); }
.account-clubs { margin-top: 28px; overflow-wrap: anywhere; }
.account-contact { min-width: 0; padding: 12px; border: 1px solid var(--line); background: white; }
.account-contact summary { min-height: 44px; cursor: pointer; font-weight: 700; }
.account-contact dl { display: grid; grid-template-columns: minmax(80px, 1fr) minmax(0, 2fr); gap: 8px 12px; margin-top: 8px; font-size: var(--text-small); }
.account-contact dt { font-weight: 700; }
.account-contact dd { margin: 0; overflow-wrap: anywhere; }
.product-editor p { margin: 0; font-size: var(--text-small); overflow-wrap: anywhere; }
.management-editor { position: sticky; top: calc(var(--header-height, 152px) + 16px); max-height: calc(100dvh - var(--header-height, 152px) - 32px); overflow-y: auto; }
.catalog-alert { margin: 0 0 20px; }
.product-editor h3 { margin: 0; font-size: 20px; }
.product-editor label { display: grid; gap: 6px; font-size: var(--text-small); }
.product-editor input, .product-editor textarea { font-size: var(--text-body); font-weight: 400; }
.product-editor textarea { resize: vertical; }
.price-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.product-editor .check-label { display: flex; align-items: center; min-height: 44px; gap: 10px; font-size: var(--text-small); font-weight: 400; overflow-wrap: anywhere; }
.product-editor .check-label input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; margin: 0; padding: 0; accent-color: var(--brand); }
.editor-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 4px; }
.editor-actions .primary-button, .editor-actions .secondary-button { flex: 1 1 12rem; }
.membership-summary { color: var(--muted); font-size: var(--text-small); }
.membership-heading { margin: 0; font-size: var(--text-body); }
.membership-selected { min-width: 0; border: 1px solid var(--line); background: white; padding: 8px 12px; }
.membership-selected .membership-heading { margin-bottom: 8px; }
.membership-options { min-width: 0; height: 370px; min-height: 370px; overflow-y: auto; border: 1px solid #aaa; background: white; padding: 8px 12px; }
.membership-selected .check-label + .check-label, .membership-options .check-label + .check-label { border-top: 1px solid var(--line); }
.membership-search { display: grid; gap: 6px; }
.auth-card { max-width: 560px; margin: 0 auto; padding: 28px; background: white; border: 1px solid var(--line); border-radius: 2px; }
.auth-card h1 { font-size: clamp(28px, 4vw, 32px); line-height: 1.2; overflow-wrap: anywhere; }
.auth-links { display: grid; gap: 12px; margin-top: 24px; }
.auth-links a { width: fit-content; padding: 4px 0; }
.external-signin { margin-top: 16px; }
.legal-page { max-width: 860px; margin: 0 auto; padding: 28px; border: 1px solid var(--line); background: white; overflow-wrap: anywhere; }
.legal-page h1 { margin-bottom: 12px; font-size: clamp(28px, 4vw, 36px); line-height: 1.2; }
.legal-date { color: var(--muted); font-size: var(--text-small); }
.legal-contents { display: flex; flex-wrap: wrap; gap: 10px 20px; padding: 20px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.legal-page section { margin-top: 32px; }
.legal-page h2 { margin-bottom: 16px; font-size: 24px; line-height: 1.3; }
.legal-page h3 { margin: 24px 0 12px; font-size: 20px; }
.legal-page p, .legal-page li { line-height: 1.6; }
.legal-page li + li { margin-top: 10px; }
.legal-page ul { padding-left: 24px; }
.legal-page address { margin-bottom: 16px; font-style: normal; }

#blazor-error-ui { display: none; position: fixed; left: 15px; right: 15px; bottom: 15px; z-index: 1000; padding: 13px 17px; border-left: 5px solid var(--error); color: #7a1422; background: #fff5f5; box-shadow: 0 5px 24px #0003; font-size: var(--text-body); }
#blazor-error-ui .reload { margin-left: 10px; color: var(--brand); }
#blazor-error-ui .dismiss { float: right; border: 0; background: transparent; font-size: 17px; }

@media (max-width: 900px) {
    .offer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .catalog-layout.has-editor { grid-template-columns: minmax(0, 1fr); }
    .management-editor { order: -1; position: static; max-height: none; overflow: visible; }
}

@media (max-width: 64rem) {
    .header-inner { gap: 16px; }
    .brand { flex: 1 1 0; min-width: 0; }
    .brand-logo { flex-shrink: 0; }
    .brand-copy { min-width: 0; overflow-wrap: anywhere; }
    header-navigation:defined .navigation-toggle { display: inline-flex; }
    .header-controls { width: 100%; flex-direction: column; align-items: stretch; gap: 12px; padding-top: 12px; border-top: 1px solid #888; }
    header-navigation:defined:not([data-open]) .header-controls { display: none; }
    .header-controls .portal-navigation { flex-direction: column; gap: 4px; }
    .header-controls .portal-navigation a { justify-content: start; }
    .header-controls .account-trigger, .header-controls .header-signin { justify-content: start; }
}

@media (max-width: 720px) {
    .site-header { padding: 16px 15px 12px; }
    .header-inner { gap: 16px; }
    .brand { gap: 14px; }
    .brand-logo { width: clamp(104px, 26vw, 128px); }
    .site-header.is-compact .brand-logo { width: 92px; }
    .site-header.is-compact .header-inner { gap: 8px 16px; }
    .brand-copy strong { font-size: 16px; }
    .brand-copy small { font-size: var(--text-meta); }
    .portal-navigation a { padding-right: 8px; padding-left: 8px; }
    .account-trigger, .header-signin { padding-right: 10px; padding-left: 10px; }
    .account-menu { right: 15px; }
    .content { width: min(100% - 30px, 560px); padding: 34px 0 48px; }
    .intro-row { display: block; min-height: 0; margin: -34px calc(50% - 50vw) 25px; padding: 28px 18px; }
    .intro-row h1 { font-size: 29px; letter-spacing: .08em; }
    .lede { font-size: var(--text-body); }
    .action-note { width: auto; margin-top: 17px; }
    .signin-panel { padding: 20px; }
    .signin-actions { grid-template-columns: 1fr; }
    .admin-toggle { justify-self: start; }
    .section-heading { align-items: start; }
    .section-heading h2 { font-size: 21px; }
    .version-indicator { padding: 0; }
    .current-order { padding: 16px; }
    .current-order-content { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .order-disclosure > summary { padding: 16px; }
    .order-disclosure > summary h2 { font-size: 22px; }
    .order-editor-body, .order-history-body { padding: 16px; }
    .weekend-heading { padding: 15px; gap: 10px; }
    .weekend-date { display: none; }
    .weekend-quantity-error { padding: 12px 15px 0; }
    .weekend-title h3 { font-size: 20px; }
    .appointment-row { padding: 14px 15px 11px; grid-template-columns: 1fr; gap: 7px; }
    .product-table-wrap { padding: 0 10px; }
    .product-table-wrap { overflow: visible; }
    .product-table, .product-table tbody { display: block; min-width: 0; }
    .product-table thead { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
    .product-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; padding: 18px 5px; border-bottom: 1px solid var(--line); }
    .product-table td { min-width: 0; padding: 0; border: 0; overflow-wrap: anywhere; }
    .product-table .product-cell { grid-column: 1; grid-row: 1; }
    .product-table .package-cell { grid-column: 1; grid-row: 2; }
    .product-table .purchase-cell { grid-column: 1; grid-row: 3; }
    .product-table .quantity-cell { grid-column: 2; grid-row: 1 / 4; align-self: start; max-width: 140px; }
    .product-table .package-cell::before { content: 'Gebinde: '; font-weight: 700; }
    .product-table .purchase-cell::before { content: 'EK: '; font-weight: 700; }
    .quantity-input { width: 82px; flex-direction: column; align-items: stretch; }
    .quantity-input input { width: 80px; text-align: center; padding: 8px; }
    .quantity-input span { flex: none; padding: 0 8px 8px; text-align: center; }
    .quantity-cell::before { content: 'Menge'; display: block; margin-bottom: 6px; color: var(--ink); font-size: var(--text-small); font-weight: 700; }
    .quantity-error { max-width: 105px; }
    .coordination-details { padding-left: 15px; padding-right: 15px; }
    .coordination-grid { grid-template-columns: 1fr; gap: 12px; }
    .save-panel { padding: 16px; margin-bottom: 43px; }
    .save-row { align-items: stretch; flex-direction: column; }
    .save-row .primary-button { width: 100%; }
    .save-row p { line-height: 1.5; }
    .history-item summary { gap: 10px; flex-wrap: wrap; }
    .history-tools { align-items: start; gap: 12px; }
    .history-meta { flex: 1; }
    .history-comment { flex-basis: 100%; order: 3; }
    .history-expand { margin-left: auto; }
    .history-content { padding: 8px 15px 15px; grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .history-change-row { grid-template-columns: 1fr 1fr; gap: 8px 12px; }
    .history-change-row > strong { grid-column: 1 / -1; }
    .catalog-layout { grid-template-columns: 1fr; }
    .catalog-item { padding: 12px; }
    .catalog-item { flex-wrap: wrap; }
    .catalog-item > div:first-child { flex: 1 1 180px; }
    .catalog-actions { width: 100%; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
    .product-editor { padding: 16px; }
    .auth-card { padding: 20px; }
    .legal-page { padding: 20px; }
    .site-footer { padding: 16px 20px; align-items: start; gap: 12px; flex-direction: column; font-size: var(--text-small); }
}

@media (max-height: 360px) {
    :root { --scroll-offset: var(--header-height, 104px); }
    .management-editor { position: static; max-height: none; overflow: visible; }
}

@media (max-width: 380px) {
    .account-trigger svg { display: none; }
}

@media (max-width: 520px) {
    .offer-grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
    .product-overview-heading { margin-bottom: 28px; }
}

@media (prefers-reduced-motion: reduce) {
    :root { --header-transition: .35s ease; --header-size-transition: 0s; }
    *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
    .site-header { transition-property: background-color, color, box-shadow !important; }
    .site-header,
    .site-header .brand-copy small,
    .site-header .portal-navigation a,
    .site-header .account-trigger,
    .site-header .header-signin { transition-duration: .35s !important; }
    .site-header .brand-logo,
    .site-header .header-inner { transition: none !important; }
}
