:root {
    --bg: #f4f7f3;
    --ink: #1c2420;
    --muted: #5d6b63;
    --line: #d5ddd7;
    --brand: #1f6b4a;
    --brand-dark: #164c34;
    --surface: #ffffff;
    --navy: #173528;
    --font: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
}

body.site {
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    line-height: 1.5;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
    background: var(--navy);
    color: #fff;
    position: sticky;
    top: 0;
    z-index: 20;
}

.site-header__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    position: relative;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    min-width: 0;
}

.site-brand img {
    width: 44px;
    height: 44px;
    object-fit: contain;
    background: #fff;
    border-radius: 50%;
    padding: 3px;
}

.site-brand span { display: grid; line-height: 1.15; }
.site-brand small { color: rgba(255,255,255,.75); font-size: .78rem; }

.site-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-left: auto;
}

.site-nav a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255,255,255,.88);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 5px;
    border-radius: 999px;
    background: #f4c430;
    color: #1c2420;
    font-size: .72rem;
    font-weight: 800;
    line-height: 1;
}

.site-nav a:hover,
.site-nav a.is-active {
    background: rgba(255,255,255,.12);
    color: #fff;
}

.site-nav__cta {
    background: var(--brand) !important;
    color: #fff !important;
}

.site-header__actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header__tools {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.site-header__logout {
    color: rgba(255,255,255,.9);
    padding: 8px 10px;
    border-radius: 8px;
    text-decoration: none;
    white-space: nowrap;
    font-size: .9rem;
}

.site-header__logout:hover {
    background: rgba(255,255,255,.12);
    color: #fff;
    text-decoration: none;
}

.site-lang {
    display: flex;
    gap: 4px;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 999px;
    padding: 2px;
}

.site-lang a {
    color: rgba(255,255,255,.8);
    padding: 4px 10px;
    border-radius: 999px;
    font-size: .85rem;
    text-decoration: none;
}

.site-lang a.is-active {
    background: #fff;
    color: var(--navy);
}

.site-nav-toggle {
    display: none;
    background: rgba(255,255,255,.1);
    color: #fff;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 8px;
    padding: 8px 12px;
    font: inherit;
    cursor: pointer;
    flex-shrink: 0;
}

.hero,
.section {
    max-width: 1100px;
    margin: 0 auto;
    padding: 36px 18px;
}

.hero {
    padding-top: 48px;
    padding-bottom: 28px;
}

.hero--photo {
    max-width: none;
    min-height: 520px;
    display: flex;
    align-items: flex-end;
    padding: 0;
    color: #fff;
    background-color: var(--navy);
    background-image: linear-gradient(105deg, rgba(12, 28, 20, .82) 0%, rgba(12, 28, 20, .42) 55%, rgba(12, 28, 20, .22) 100%), var(--hero-image);
    background-position: center;
    background-size: cover;
}

.hero--photo .hero__inner {
    max-width: 1100px;
    width: 100%;
    margin: 0 auto;
    padding: 72px 18px 56px;
}

.hero--photo .kicker { color: #c8e6d4; }
.hero--photo h1 { color: #fff; max-width: 16ch; }
.hero--photo .lead { color: rgba(255, 255, 255, .88); }

.btn-ghost {
    background: rgba(255, 255, 255, .12);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .4);
}
.btn-ghost:hover { background: rgba(255, 255, 255, .2); text-decoration: none; }

.home-shots {
    max-width: 1100px;
    margin: -36px auto 0;
    padding: 0 18px;
    display: grid;
    grid-template-columns: 1.15fr 1fr 1fr;
    gap: 12px;
    position: relative;
    z-index: 1;
}

.home-shot {
    position: relative;
    display: block;
    border-radius: 14px;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    color: #fff;
    box-shadow: 0 12px 28px rgba(23, 53, 40, .16);
}

.home-shot:hover { text-decoration: none; }

.home-shot img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .35s ease;
}

.home-shot:hover img { transform: scale(1.04); }

.home-shot span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    padding: 40px 14px 14px;
    background: linear-gradient(to top, rgba(12, 22, 18, .92) 0%, rgba(12, 22, 18, .55) 45%, transparent 100%);
    font-weight: 700;
}

.home-shots__credit {
    max-width: 1100px;
    margin: 10px auto 0;
    padding: 0 18px;
    font-size: .85rem;
}

.kicker {
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .8rem;
    color: var(--brand);
    font-weight: 700;
}

.hero h1 { font-size: clamp(2rem, 4vw, 3rem); margin: 8px 0 12px; line-height: 1.15; }
.lead { font-size: 1.12rem; color: var(--muted); max-width: 42rem; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 8px;
    padding: 11px 16px;
    font: inherit;
    cursor: pointer;
    text-decoration: none;
}

.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); text-decoration: none; }
.btn-secondary { background: #e4ebe6; color: var(--ink); }
.btn-secondary:hover { text-decoration: none; }

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card, .paper {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 22px;
}

.card h2, .section h2 { margin-top: 0; }

.news-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.news-list li { border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.muted { color: var(--muted); }
.empty { color: var(--muted); padding: 12px 0; }

.court-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.court-card { overflow: hidden; padding: 0 0 12px; }
.court-card h2 { margin: 18px 18px 8px; }
.court-card > p,
.court-card > h3,
.court-card > ul { margin-left: 18px; margin-right: 18px; }
.court-card > ul { margin-bottom: 18px; }
.court-gallery {
    display: grid;
    gap: 4px;
    background: #1c2420;
}
.court-gallery--one { grid-template-columns: 1fr; }
.court-gallery--two { grid-template-columns: 1fr 1fr; }
.court-gallery--many {
    grid-template-columns: 1.4fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.court-gallery--many .court-gallery__item--hero { grid-row: 1 / span 2; }
.court-gallery__item {
    display: block;
    min-height: 0;
    cursor: zoom-in;
}
.court-gallery__item img {
    display: block;
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.court-gallery--one .court-gallery__item img { height: 280px; }
.court-gallery--two .court-gallery__item img,
.court-gallery--many .court-gallery__item img { height: 200px; }
.court-gallery--many .court-gallery__item--hero img { height: 404px; }

body.lightbox-open { overflow: hidden; }
.image-lightbox[hidden] { display: none !important; }
.image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 80;
    display: grid;
    place-items: center;
    padding: 24px;
}
.image-lightbox__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(10, 16, 22, 0.82);
    opacity: 0;
    transition: opacity 180ms ease;
}
.image-lightbox__dialog {
    position: relative;
    z-index: 1;
    max-width: min(1100px, 100%);
    max-height: min(92vh, 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    transform: translateY(12px) scale(0.96);
    opacity: 0;
    transition: transform 220ms cubic-bezier(0.22, 1, 0.36, 1), opacity 180ms ease;
}
.image-lightbox.is-open .image-lightbox__backdrop { opacity: 1; }
.image-lightbox.is-open .image-lightbox__dialog {
    transform: translateY(0) scale(1);
    opacity: 1;
}
.image-lightbox__image {
    display: block;
    max-width: 100%;
    max-height: min(78vh, 900px);
    width: auto;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.4);
    background: #111;
}
.image-lightbox__caption {
    margin: 0;
    color: #f4f7f5;
    text-align: center;
    font-size: 0.95rem;
}
.image-lightbox__close,
.image-lightbox__nav {
    position: absolute;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: #1a1f1c;
    cursor: pointer;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}
.image-lightbox__close {
    top: -8px;
    right: -8px;
    width: 40px;
    height: 40px;
    font-size: 1.6rem;
    line-height: 1;
}
.image-lightbox__nav {
    top: 50%;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    font-size: 1.8rem;
    line-height: 1;
}
.image-lightbox__nav--prev { left: -8px; }
.image-lightbox__nav--next { right: -8px; }
.image-lightbox__nav[hidden] { display: none !important; }
.image-lightbox__close:hover,
.image-lightbox__nav:hover { background: #fff; }

@media (max-width: 700px) {
    .court-gallery--two,
    .court-gallery--many { grid-template-columns: 1fr; }
    .court-gallery--many .court-gallery__item--hero { grid-row: auto; }
    .court-gallery__item img,
    .court-gallery--one .court-gallery__item img,
    .court-gallery--two .court-gallery__item img,
    .court-gallery--many .court-gallery__item img,
    .court-gallery--many .court-gallery__item--hero img { height: 200px; }
    .image-lightbox { padding: 12px; }
    .image-lightbox__nav--prev { left: 4px; }
    .image-lightbox__nav--next { right: 4px; }
}

.schedule { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: .95rem; }

.committee-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 10px 18px;
}

.committee-list li {
    display: grid;
    gap: 2px;
    padding: 12px 14px;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 10px;
}

.committee-list strong { font-size: .85rem; color: var(--muted); }

.field { margin-bottom: 14px; }
.field > label { display: block; font-weight: 600; margin-bottom: 6px; }
.field > input, .field > textarea, .field > select {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}

.error-text { color: #a33b2d; font-size: .9rem; margin-top: 6px; }
.alert { padding: 12px 14px; border-radius: 8px; margin-bottom: 16px; }
.alert-error { background: #f8e8e5; color: #7a2e22; }
.alert-success { background: #e7f4ec; color: #164c34; }
.alert:not(.alert-error):not(.alert-success) { background: #eef3ef; }

.btn-small {
    padding: 7px 12px;
    font-size: .9rem;
}
.btn:disabled {
    opacity: .55;
    cursor: not-allowed;
}

.booking-panel { margin-bottom: 18px; }
.booking-panel h2 { margin: 0 0 12px; font-size: 1.15rem; }
.booking-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.booking-list li {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--line);
}
.booking-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.booking-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

.section--wide { max-width: 1240px; }

.invite-stack { display: grid; gap: 12px; margin: 0 0 18px; }
.invite-banner,
.invite-banner--score,
.score-form {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px 16px;
    padding: 14px 16px;
    border-radius: 12px;
    background: #fff4d6;
    border: 2px solid #e2b423;
    box-shadow: 0 6px 18px rgba(180, 130, 0, .12);
}
.invite-banner--score,
.score-form {
    background: #eef7f1;
    border-color: var(--brand);
    box-shadow: 0 6px 18px rgba(28, 70, 48, .08);
    margin-bottom: 14px;
}
.invite-banner__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    color: #8a6a00;
}
.invite-banner__icon svg { width: 36px; height: 36px; display: block; }
.invite-banner__text {
    display: grid;
    gap: 2px;
    flex: 1 1 220px;
}
.invite-banner__text strong {
    font-size: 1.05rem;
    color: #5c4600;
}
.invite-banner .booking-actions,
.invite-banner--score .booking-actions { margin-left: auto; }
.score-form { flex-direction: column; align-items: stretch; }
.score-form__sets {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px 10px;
    align-items: center;
    max-width: 420px;
}
.score-form__sets input {
    width: 100%;
    min-height: 40px;
    text-align: center;
}
.resa-score {
    display: block;
    margin-top: 4px;
    padding: 3px 6px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .22);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .01em;
    text-align: center;
    line-height: 1.25;
    color: #fff;
}
.resa-score--pending {
    background: rgba(255, 255, 255, .12);
    font-weight: 600;
    font-style: italic;
}
.resa-invites { display: grid; gap: 8px; margin-bottom: 16px; }
.resa-invite {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
    background: #fff8e8;
    border: 1px solid #ead7a2;
    border-radius: 10px;
    padding: 10px 12px;
}

.resa { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.resa-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    background: var(--navy);
}
.resa-courts { display: flex; flex-wrap: wrap; gap: 6px; }
.resa-court {
    color: rgba(255,255,255,.85);
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
}
.resa-court:hover, .resa-court.is-active { background: var(--brand); color: #fff; text-decoration: none; }
.resa-weeknav { display: flex; align-items: center; gap: 8px; color: #fff; }
.resa-weeknav .btn { min-width: 36px; }
.resa-jump { margin: 0; }
.resa-jump input { border: 0; border-radius: 8px; padding: 6px 8px; font: inherit; }

.resa-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.resa-grid {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    table-layout: fixed;
    min-width: 860px;
}
.resa-grid th, .resa-grid td {
    border-bottom: 1px solid #e2e8e4;
    border-right: 1px solid #e2e8e4;
    padding: 3px;
    vertical-align: stretch;
}
.resa-grid thead th { border-top: 1px solid #e2e8e4; }
.resa-grid tr > :first-child { border-left: 1px solid #e2e8e4; }
.resa-grid thead th {
    background: #eef3ef;
    text-align: center;
    font-weight: 600;
    padding: 8px 4px;
}
.resa-grid thead th span { display: block; font-size: .75rem; color: var(--muted); font-weight: 500; }
.resa-grid thead th.is-today, .resa-grid td.is-today { background: #f3faf6; }
.resa-grid tbody th {
    width: 64px;
    min-width: 64px;
    background: #f8faf8;
    font-variant-numeric: tabular-nums;
    font-size: .85rem;
    text-align: right;
    padding-right: 8px;
}
.resa-grid thead th:first-child,
.resa-grid tbody th {
    position: sticky;
    left: 0;
    z-index: 3;
    box-shadow: 6px 0 8px rgba(23, 53, 40, .08);
}
.resa-grid thead th:first-child {
    z-index: 4;
    background: #eef3ef;
}
.resa-slot {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 2px;
    min-height: 58px;
    width: 100%;
    border: 0;
    border-radius: 4px;
    font: inherit;
    font-size: .72rem;
    line-height: 1.2;
    text-align: left;
    padding: 4px;
    color: #fff;
    text-decoration: none;
    background: transparent;
}
button.resa-slot { cursor: pointer; }
.resa-slot--free { background: #3d9e6a; }
a.resa-slot--free:hover,
button.resa-slot--free:hover { background: #2f7d53; text-decoration: none; }
.resa-slot--confirmed { background: #c45c3e; }
.resa-slot--pending { background: #c4922c; }
.resa-slot--closed { background: #d5ddd7; color: transparent; }
.resa-slot.is-mine { box-shadow: inset 0 0 0 2px #fff; }
.resa-slot .booking-actions { margin-top: 4px; justify-content: center; }
.resa-slot .booking-actions .btn { padding: 2px 6px; font-size: .7rem; }

.resa-players { display: grid; gap: 3px; min-width: 0; }
.resa-player {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
}
.resa-player__name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-weight: 600;
}
.resa-avatar {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(255,255,255,.28);
    border: 1px solid rgba(255,255,255,.35);
}
.resa-avatar--initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .02em;
}
.resa-avatar--lg {
    width: 40px;
    height: 40px;
    font-size: .85rem;
    border-color: var(--line);
    background: #eef3ef;
    color: var(--navy);
}
.booking-modal .resa-avatar--initials,
.partner-results .resa-avatar--initials {
    color: var(--navy);
    background: #d5ddd7;
    border-color: var(--line);
}

.resa-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 10px 12px; margin: 0; color: var(--muted); font-size: .88rem; }
.resa-dot { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.resa-dot--free { background: #3d9e6a; }
.resa-dot--confirmed { background: #c45c3e; }
.resa-dot--pending { background: #c4922c; }
.resa-dot--closed { background: #d5ddd7; }

.booking-modal[hidden] { display: none; }
.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
.booking-modal__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(23, 53, 40, .55);
}
.booking-modal__dialog {
    position: relative;
    width: min(28rem, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    background: #fff;
    border-radius: 14px;
    padding: 22px 22px 18px;
    box-shadow: 0 18px 50px rgba(0,0,0,.22);
}
.booking-modal__dialog h2 { margin: 0 28px 6px 0; }
.booking-modal__dialog .muted { margin: 0 0 6px; }
.booking-modal fieldset.field {
    border: 0;
    padding: 0;
    min-width: 0;
}
.booking-modal legend.booking-label {
    font-weight: 600;
    margin-bottom: 6px;
}
.booking-modal__close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: 0;
    background: transparent;
    font-size: 1.5rem;
    line-height: 1;
    color: var(--muted);
    cursor: pointer;
}
.booking-label {
    display: block;
    font-weight: 600;
    margin-bottom: 6px;
}
.booking-person {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 8px 10px;
    background: #f8faf8;
    min-width: 0;
}
.booking-person strong { display: block; }
.booking-person small { color: var(--muted); }
.booking-person--locked { background: #eef3ef; }
.booking-person__clear {
    margin-left: auto;
    border: 0;
    background: transparent;
    font-size: 1.25rem;
    color: var(--muted);
    cursor: pointer;
    line-height: 1;
}
.partner-picker { position: relative; }
.partner-picker input[type="search"] {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
    font: inherit;
    background: #fff;
}
.partner-results {
    list-style: none;
    margin: 4px 0 0;
    padding: 4px;
    position: absolute;
    left: 0;
    right: 0;
    z-index: 2;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(0,0,0,.12);
    max-height: 240px;
    overflow: auto;
}
.partner-results button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    font: inherit;
}
.partner-results button:hover,
.partner-results button.is-active { background: #eef3ef; }
.partner-results button.is-blocked {
    cursor: not-allowed;
}
.partner-results button.is-blocked strong {
    color: #b42318;
}
.partner-results button.is-blocked .partner-block-reason {
    display: block;
    margin-top: 2px;
    color: #b42318;
    font-size: .78rem;
    line-height: 1.3;
    font-weight: 600;
}
.partner-results button.is-blocked:hover,
.partner-results button.is-blocked.is-active {
    background: #fdecea;
}
.partner-results strong { display: block; font-size: .95rem; }
.partner-results small { color: var(--muted); }
body.booking-modal-open { overflow: hidden; }

.mono { font-variant-numeric: tabular-nums; }

.paper-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}
.paper-head h1 { margin: 0; font-size: 1.6rem; text-decoration: underline; }
.paper-meta { text-align: right; color: var(--muted); }
.paper-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 18px;
    color: var(--muted);
    font-size: .95rem;
}

.paper-logo {
    width: 72px;
    height: 72px;
    object-fit: contain;
}

.site-footer {
    border-top: 1px solid var(--line);
    margin-top: 24px;
    background: #fff;
}
.site-footer__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 22px 18px;
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.site-footer p { margin: 4px 0 0; color: var(--muted); }
.site-footer__links { display: flex; gap: 14px; }

.field-hint { margin: 6px 0 0; font-size: .88rem; }

.choice-fieldset {
    border: 0;
    padding: 0;
    margin: 6px 0 18px;
}
.choice-fieldset legend {
    font-weight: 600;
    margin-bottom: 8px;
    padding: 0;
}
.choice-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}
.choice {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px;
    cursor: pointer;
    background: #fff;
}
.choice input { margin-top: 4px; accent-color: var(--brand); }
.choice span { display: grid; gap: 2px; }
.choice-price { font-weight: 700; color: var(--brand-dark); }
.choice:has(input:checked) {
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(31, 107, 74, .12);
}

.gender-toggle {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}
.gender-toggle label {
    display: flex;
    margin: 0;
    cursor: pointer;
}
.gender-toggle input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
    pointer-events: none;
}
.gender-toggle span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 10px 12px;
    line-height: 1.5;
    font: inherit;
}
.gender-toggle label + label span {
    border-left: 1px solid var(--line);
}
.gender-toggle label:has(input:checked) span {
    background: var(--brand);
    color: #fff;
    font-weight: 600;
}

.hp { position: absolute; left: -9999px; height: 0; overflow: hidden; }

.account-page { padding-top: 24px; }
.account-hero {
    background: linear-gradient(135deg, #173528 0%, #1f6b4a 58%, #3d5c2a 100%);
    color: #fff;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 20px;
}
.account-hero h1 {
    margin: 6px 0 8px;
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    color: #fff;
}
.account-hero .kicker { color: #f4c430; }
.account-hero__reg {
    margin: 0 0 14px;
    color: rgba(255,255,255,.82);
    font-size: 1.05rem;
}
.account-hero .actions { margin-top: 16px; }
.account-hero .btn-primary { background: #f4c430; color: #173528; }
.account-hero .btn-primary:hover { background: #ffd95a; }
.account-hero .btn-secondary { background: rgba(255,255,255,.14); color: #fff; }
.account-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.account-chip {
    display: inline-flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.12);
    font-size: .82rem;
    font-weight: 600;
}
.account-chip.is-ok { background: rgba(122, 184, 140, .28); }
.account-chip.is-bad { background: rgba(196, 80, 70, .35); }

.account-grid {
    display: grid;
    grid-template-columns: minmax(280px, 400px) 1fr;
    gap: 22px;
    align-items: start;
}
.account-card-col,
.account-panel {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 18px;
}
.account-card-col h2,
.account-panel h2 {
    margin: 0;
    font-size: 1.15rem;
}
.account-panel { margin-bottom: 18px; }
.account-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
}
.account-count {
    display: inline-flex;
    min-width: 1.6rem;
    height: 1.6rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #eef3ef;
    font-size: .85rem;
    font-weight: 700;
}
.account-id-card .id-card {
    width: 100%;
    margin: 0;
    box-shadow: 0 10px 24px rgba(26, 42, 74, .1);
}
.account-id-card .id-card__logo { width: 64px; height: 64px; }
.account-id-card .id-card__name { font-size: 1.28rem; }
.account-id-card .id-card__body {
    grid-template-columns: 120px 1fr;
    gap: 14px;
    padding: 14px;
}
.account-id-card .id-card__header,
.account-id-card .id-card__footer { padding: 12px 14px; }

.account-booking-list { display: grid; gap: 10px; }
.account-booking {
    display: grid;
    grid-template-columns: 108px 1fr auto;
    gap: 12px;
    align-items: center;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fbfdfb;
}
.account-booking--pending { border-left: 4px solid #e2b423; }
.account-booking--confirmed { border-left: 4px solid var(--brand); }
.account-booking--cancelled,
.account-booking--declined { border-left: 4px solid #b0b8b3; opacity: .88; }
.account-booking__when {
    display: grid;
    gap: 1px;
    text-align: center;
    background: #eef3ef;
    border-radius: 10px;
    padding: 8px 6px;
}
.account-booking__weekday { font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.account-booking__time { font-weight: 700; font-variant-numeric: tabular-nums; }
.account-booking__court { font-weight: 700; }
.account-booking__partner {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
}
.account-booking__partner small { display: block; line-height: 1.1; }
.account-booking__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.account-booking__badge {
    display: inline-flex;
    padding: 2px 8px;
    border-radius: 999px;
    background: #eef3ef;
    font-size: .78rem;
    font-weight: 700;
}
.account-booking__score { font-weight: 700; color: var(--brand); }
.account-booking__badge--fee { background: #fff4d6; }
.account-booking .resa-avatar {
    width: 32px;
    height: 32px;
    background: #dce6df;
    border-color: var(--line);
    color: var(--ink);
}
.account-booking .resa-avatar--initials { font-size: .72rem; }
.account-booking__side {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
}

.resa-print { display: flex; flex-wrap: wrap; gap: 6px; }
.print-sheet__toolbar { display: flex; gap: 10px; margin-bottom: 16px; }
.print-sheet__table { width: 100%; border-collapse: collapse; background: #fff; }
.print-sheet__table th,
.print-sheet__table td { border-bottom: 1px solid var(--line); padding: 8px 10px; text-align: left; vertical-align: top; }
.print-sheet__table th { font-size: .85rem; color: var(--muted); }

@media print {
    .print-hide,
    .site-header,
    .site-footer,
    .site-nav-toggle { display: none !important; }
    body.site { background: #fff; }
    .section { padding: 0; }
    .print-sheet h1 { margin-top: 0; }
    .print-sheet__table { font-size: 12px; }
}

@media (max-width: 800px) {
    .site-header__inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        column-gap: 10px;
        row-gap: 0;
    }

    .site-brand {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
    }

    .site-brand span {
        min-width: 0;
    }

    .site-brand small {
        display: block;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .site-header__actions {
        grid-column: 2;
        grid-row: 1;
    }

    .site-header__logout {
        display: none;
    }

    .site-nav-toggle { display: inline-flex; }
    .site-nav {
        display: none;
        position: absolute;
        left: 12px;
        right: 12px;
        top: calc(100% - 4px);
        margin-left: 0;
        background: var(--navy);
        border: 1px solid rgba(255,255,255,.12);
        border-radius: 12px;
        padding: 10px;
        flex-direction: column;
        z-index: 30;
    }
    body.nav-open .site-nav { display: flex; }
    .hero--photo { min-height: 420px; }
    .hero--photo .hero__inner { padding: 48px 18px 40px; }
    .home-shots { grid-template-columns: 1fr; margin-top: 16px; gap: 10px; }
    .home-shot { aspect-ratio: 16 / 10; }
    .grid-2, .choice-grid { grid-template-columns: 1fr; }
    .paper-head, .paper-foot { flex-direction: column; }
    .paper-meta { text-align: left; }
    .btn, .field > input, .field > textarea, .field > select, .gender-toggle span { font-size: 16px; }
    .account-grid { grid-template-columns: 1fr; }
    .account-bookings-col { order: -1; }
    .account-hero { padding: 20px 16px; }
    .account-booking {
        grid-template-columns: 88px 1fr;
    }
    .account-booking__side {
        grid-column: 1 / -1;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: flex-start;
    }
    .account-id-card .id-card__body { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
    .site-brand small {
        display: none;
    }

    .site-nav-toggle {
        padding: 8px 10px;
        font-size: .9rem;
    }
}
