:root {
    --bg: #f4ede4;
    --panel: #fffaf5;
    --panel-strong: #fff;
    --text: #1f1a16;
    --muted: #6f6154;
    --accent: #9f4e28;
    --accent-dark: #6f3419;
    --line: #dccbb8;
    --success: #d9f0d7;
    --error: #f7d9d7;
    --shadow: 0 22px 52px rgba(58, 31, 14, 0.08);
    --font-body: Georgia, "Times New Roman", serif;
    --font-display: "Palatino Linotype", "Book Antiqua", serif;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--text);
    background:
        radial-gradient(circle at top right, rgba(159, 78, 40, 0.1), transparent 24%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 18%),
        linear-gradient(180deg, #f8f4ee 0%, #efe3d4 100%);
    overflow-x: hidden;
}

body.display-standalone {
    min-height: 100vh;
}

a {
    color: inherit;
    text-decoration: none;
}

.wrap {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
}

.page-home {
    background:
        radial-gradient(circle at top right, rgba(159, 78, 40, 0.08), transparent 24%),
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.72), transparent 18%),
        linear-gradient(180deg, #f8f4ee 0%, #efe3d4 100%);
}

.site-header,
.site-footer {
    background: rgba(255, 250, 244, 0.85);
    backdrop-filter: blur(16px);
}

.site-header {
    border-bottom: 1px solid rgba(177, 77, 33, 0.08);
    position: relative;
    z-index: 30;
}

.site-footer {
    border-top: 1px solid rgba(177, 77, 33, 0.08);
}

.cookie-policy-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.map-consent-placeholder {
    min-height: 340px;
    display: grid;
    align-content: center;
    justify-items: start;
    gap: 12px;
    padding: 28px;
    border-radius: 24px;
    border: 1px dashed rgba(111, 52, 25, 0.16);
    background: rgba(255, 250, 244, 0.8);
}

.map-consent-placeholder strong {
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.map-consent-placeholder p {
    margin: 0;
    color: var(--muted);
    max-width: 42ch;
}

.nav,
.footer-grid {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    padding: 18px 0;
}

.brand,
h1,
h2,
h3 {
    font-family: var(--font-display);
}

.brand {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

nav {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}

nav a {
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #5d4b3d;
}

main {
    padding: 28px 0 64px;
}

.main-home {
    width: 100%;
    max-width: none;
    padding: 0 0 64px;
}

.brand-home {
    display: inline-flex;
    align-items: center;
    gap: 0;
    font-size: 1.5rem;
}

.brand-logo-shell {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 65px;
    overflow: hidden;
}

.brand-mark {
    width: 38px;
    height: 38px;
    border-radius: 4px;
    background: linear-gradient(160deg, var(--accent-dark), var(--accent));
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.brand-logo-image {
    display: block;
    width: 164px;
    height: 164px;
    object-fit: contain;
    transform: scale(1.4);
    transform-origin: center;
}

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

.brand-copy strong {
    font-size: 1.1rem;
}

.brand-copy small {
    color: var(--muted);
    font-size: 0.8rem;
}

.nav-home-links a {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text);
    font-weight: 600;
    font-size: 0.92rem;
}

.nav-mobile-checkbox {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.site-header .nav-mobile-toggle {
    display: none !important;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(159, 78, 40, 0.18);
    border-radius: 14px;
    background: rgba(255, 250, 245, 0.96);
    padding: 0;
    align-items: center;
    justify-content: center;
    gap: 5px;
    flex-direction: column;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(58, 31, 14, 0.08);
}

.nav-mobile-toggle span {
    display: block;
    width: 20px;
    height: 2px;
    border-radius: 999px;
    background: var(--accent-dark);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.home-header-actions {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.app-install-strip {
    padding: 10px 0 0;
}

.app-install-strip-inner {
    display: flex;
    justify-content: center;
}

.app-install-button[hidden] {
    display: none !important;
}

.app-install-button.is-ready {
    display: inline-flex;
}

.nav-home-links .nav-mobile-cta {
    display: none !important;
}

.home-social {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
}

.home-social-ig {
    background: linear-gradient(135deg, var(--accent), #bb6a3f);
}

.home-social-fb {
    background: #8f4723;
}

.home-social-wa {
    background: #6f3419;
}

.home-header-cta {
    padding: 10px 18px;
    background: var(--accent);
}

.home-hero {
    position: relative;
    min-height: 420px;
    display: grid;
    align-items: center;
    margin-bottom: 0;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(24, 18, 14, 0.14), rgba(24, 18, 14, 0.22));
}

.home-hero-photo {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.home-hero-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    transform: scale(1.02);
    filter: saturate(0.96) brightness(0.82) contrast(1.04);
    opacity: 1;
}

.home-hero::before {
    content: "";
    position: absolute;
    inset: auto 0 0 0;
    height: 180px;
    background:
        linear-gradient(180deg, transparent, rgba(26, 18, 14, 0.28));
    opacity: 0.8;
    z-index: 0;
}

.home-hero-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(24, 18, 14, 0.34) 0 16%, rgba(24, 18, 14, 0.12) 30%, transparent 54%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.04), transparent 26%);
    z-index: 0;
}

.home-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 64px 0 44px;
    text-align: center;
    color: #fff;
}

.home-hero-kicker {
    margin: 0 0 10px;
    font-size: 2rem;
    font-weight: 600;
}

.home-hero-inner h1 {
    margin: 0 auto 10px;
    font-size: clamp(3.2rem, 6vw, 5rem);
    max-width: 13ch;
    color: #fff;
}

.home-hero-logo {
    display: block;
    width: min(250px, 40vw);
    margin: 0 auto 20px;
    object-fit: contain;
}

.home-hero-subtitle {
    margin: 0 auto 18px;
    max-width: 40ch;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.92);
}

.home-hero-badge {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(159, 78, 40, 0.88), rgba(111, 52, 25, 0.92));
    color: #fff;
    font-weight: 700;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.home-hero .button-secondary {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.6);
}

.app-entry-shell {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 42px;
}

.app-entry-frame {
    position: relative;
    min-height: 620px;
    overflow: hidden;
    border-radius: 36px;
    border: 1px solid rgba(159, 78, 40, 0.12);
    background: linear-gradient(180deg, rgba(24, 18, 14, 0.12), rgba(24, 18, 14, 0.24));
    box-shadow: 0 28px 54px rgba(58, 31, 14, 0.12);
}

.app-entry-visual,
.app-entry-overlay {
    position: absolute;
    inset: 0;
}

.app-entry-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 62%;
    filter: saturate(0.92) brightness(0.74);
}

.app-entry-overlay {
    background:
        linear-gradient(100deg, rgba(24, 18, 14, 0.74) 0 34%, rgba(24, 18, 14, 0.24) 56%, rgba(24, 18, 14, 0.52) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.06), transparent 20%);
}

.app-entry-card {
    position: relative;
    z-index: 1;
    width: min(520px, calc(100% - 40px));
    margin: 42px;
    padding: 30px 30px 28px;
    border-radius: 30px;
    background: rgba(255, 250, 245, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.34);
    box-shadow: 0 20px 42px rgba(58, 31, 14, 0.18);
    backdrop-filter: blur(16px);
    display: grid;
    gap: 24px;
}

.app-entry-brand {
    display: grid;
    gap: 12px;
}

.app-entry-logo {
    width: min(160px, 42vw);
    object-fit: contain;
}

.app-entry-wordmark {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 2.7rem);
    color: var(--text);
}

.app-entry-brand h1 {
    margin: 0;
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    line-height: 1;
    max-width: 10ch;
}

.app-entry-copy {
    margin: 0;
    color: var(--muted);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 34ch;
}

.app-entry-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.app-entry-actions .button,
.app-entry-actions .app-entry-install {
    width: 100%;
    justify-content: center;
}

.app-entry-install[hidden] {
    display: none !important;
}

.app-entry-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.app-entry-links a {
    color: var(--accent-dark);
    font-weight: 700;
    text-decoration: none;
}

.app-entry-links a:hover,
.app-entry-links a:focus-visible {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .app-entry-shell {
        width: 100%;
        padding: 0 0 20px;
    }

    .app-entry-frame {
        min-height: calc(100svh - 20px);
        margin: 0 14px;
        border: 0;
        border-radius: 34px;
        box-shadow: 0 22px 44px rgba(58, 31, 14, 0.12);
        overflow: hidden;
        background: #17120f;
        display: flex;
        align-items: flex-end;
    }

    .app-entry-visual {
        position: absolute;
        inset: 0;
        height: auto;
        margin: 0;
        overflow: hidden;
        border-radius: 0;
        box-shadow: none;
    }

    .app-entry-overlay {
        background:
            linear-gradient(180deg, rgba(17, 13, 10, 0.18) 0, rgba(17, 13, 10, 0.34) 48%, rgba(17, 13, 10, 0.52) 100%),
            linear-gradient(0deg, rgba(255, 255, 255, 0.08), transparent 22%);
    }

    .app-entry-card {
        position: relative;
        z-index: 1;
        width: auto;
        margin: max(88px, env(safe-area-inset-top)) 16px 16px;
        padding: 24px 22px 20px;
        border-radius: 30px;
        gap: 18px;
        background: rgba(255, 251, 247, 0.88);
        border: 1px solid rgba(255, 255, 255, 0.48);
        box-shadow: 0 20px 40px rgba(24, 18, 14, 0.18);
        backdrop-filter: blur(16px);
    }

    .app-entry-logo {
        width: 80px;
    }

    .app-entry-brand {
        gap: 10px;
    }

    .app-entry-brand h1 {
        font-size: clamp(2.2rem, 10vw, 3.2rem);
        line-height: 0.94;
        max-width: 6ch;
    }

    .app-entry-copy {
        font-size: 0.98rem;
        line-height: 1.6;
        max-width: none;
    }

    .app-entry-actions {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .app-entry-links {
        display: flex;
        flex-wrap: wrap;
        gap: 10px 16px;
        align-items: center;
    }

    .app-entry-links a {
        display: inline-flex;
        width: auto;
        font-size: 0.96rem;
    }

    .app-entry-brand .eyebrow {
        margin-top: 4px;
    }

    .app-entry-visual img {
        object-position: center center;
        filter: saturate(0.9) brightness(0.72);
    }
}

.home-section {
    width: min(1100px, calc(100% - 32px));
    margin: 0 auto;
    padding: 72px 0 0;
}

.home-section-head {
    text-align: center;
    margin-bottom: 34px;
}

.home-section-head h2 {
    margin: 0 0 12px;
    max-width: none;
    font-size: clamp(2.1rem, 4.2vw, 3.4rem);
    color: var(--text);
}

.home-section-head p {
    max-width: 42rem;
    margin: 0 auto;
    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.home-about-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
    gap: 30px;
}

.home-about-copy h3 {
    margin-top: 0;
    color: var(--accent-dark);
}

.home-about-copy p {
    color: var(--muted);
    line-height: 1.65;
}

.home-check-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px 20px;
    margin-top: 24px;
}

.home-check-grid span {
    position: relative;
    padding-left: 26px;
}

.home-check-grid span::before {
    content: "✓";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-weight: 700;
}

.home-about-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.home-stat-card,
.home-service-card,
.home-contact-card {
    background: var(--panel);
    border: 1px solid rgba(177, 77, 33, 0.1);
    border-radius: 20px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.home-stat-card strong {
    display: block;
    font-size: 1.8rem;
    color: var(--text);
    margin-bottom: 8px;
}

.home-stat-card span {
    color: var(--muted);
}

.home-service-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}

.home-service-card h3 {
    margin-top: 0;
    color: var(--accent-dark);
}

.home-service-card p,
.home-contact-card p {
    color: var(--muted);
}

.home-service-card ul {
    margin: 18px 0 0;
    padding-left: 18px;
    color: var(--text);
    line-height: 1.7;
}

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

.home-extra-item {
    display: grid;
    justify-items: center;
    gap: 14px;
    text-align: center;
}

.home-extra-item span {
    width: 54px;
    height: 54px;
    border-radius: 999px;
    background: #fff7ef;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--accent-dark);
    box-shadow: var(--shadow);
}

.home-highlight {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.95fr);
    gap: 32px;
    align-items: center;
}

.home-highlight-copy p {
    color: var(--muted);
    line-height: 1.7;
}

.home-highlight-visual {
    min-height: 360px;
    border-radius: 26px;
    background:
        linear-gradient(rgba(111, 52, 25, 0.1), rgba(111, 52, 25, 0.1)),
        linear-gradient(135deg, #9f4e28 0%, #ead6c4 100%);
    position: relative;
    overflow: hidden;
}

.home-highlight-visual::after {
    content: "";
    position: absolute;
    inset: auto 0 0;
    height: 80px;
    background: rgba(111, 52, 25, 0.34);
}

.home-visual-card {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 1;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(86, 43, 22, 0.56);
    color: #fff;
}

.home-visual-card strong,
.home-visual-card span {
    display: block;
}

.home-contact-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 22px;
    justify-content: center;
    max-width: 760px;
    margin: 0 auto;
}

.home-location-card {
    width: min(1080px, 100%);
    margin: 0 auto;
    padding: 28px;
    border-radius: 28px;
}

.home-location-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

.home-location-copy,
.home-location-map {
    display: grid;
    gap: 14px;
}

.home-location-copy h3,
.home-location-map h3 {
    margin: 0;
    color: var(--accent-dark);
}

.home-location-copy p {
    margin: 0;
}

.home-location-map iframe {
    display: block;
    width: 100%;
    min-height: 560px;
    border-radius: 20px;
}

.footer-socials {
    display: flex;
    gap: 10px;
    margin-top: 16px;
}

.hero,
.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.hero {
    align-items: stretch;
}

.home-service-hero {
    grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.7fr);
}

.home-service-main,
.home-service-side {
    display: grid;
    gap: 18px;
}

.home-service-main {
    padding: 32px;
}

.home-service-main h1 {
    margin: 0;
    font-size: clamp(2.3rem, 4.4vw, 4rem);
    line-height: 0.98;
    max-width: 12ch;
}

.home-service-side {
    padding: 28px;
    align-content: start;
}

.home-service-side h2 {
    margin: 0;
    font-size: 1.5rem;
}

.home-service-links {
    display: grid;
    gap: 12px;
}

.home-service-link {
    display: grid;
    gap: 4px;
    padding: 16px 18px;
    border-radius: 18px;
    border: 1px solid rgba(111, 52, 25, 0.1);
    background: rgba(255, 255, 255, 0.72);
}

.home-service-link strong {
    color: var(--accent-dark);
}

.home-service-link span {
    color: var(--muted);
    font-size: 0.95rem;
}

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

.hero-showcase {
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    margin-bottom: 34px;
}

.hero-copy {
    padding: 24px 8px 24px 0;
}

.hero-copy .eyebrow {
    margin-bottom: 14px;
}

.hero-copy h1 {
    font-size: clamp(2.7rem, 5.4vw, 5.1rem);
    line-height: 0.94;
    margin: 0 0 20px;
    max-width: 11ch;
}

.hero-copy .lead {
    max-width: 56ch;
}

.hero-panel {
    background:
        linear-gradient(160deg, rgba(112, 52, 25, 0.96), rgba(53, 28, 18, 0.98)),
        linear-gradient(180deg, #5e2d18 0%, #8f4723 100%);
    color: #fff8f1;
    border-radius: 34px;
    padding: 32px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 22px;
}

.hero-panel-top p {
    margin: 0;
}

.hero-panel .eyebrow {
    color: #ffd3bd;
}

.hero-panel h2 {
    margin: 0 0 10px;
    font-size: 1.7rem;
}

.hero-panel-grid,
.feature-grid,
.steps-grid {
    display: grid;
    gap: 18px;
}

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

.hero-preview {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 248, 241, 0.08);
    border: 1px solid rgba(255, 248, 241, 0.12);
}

.hero-preview-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: baseline;
}

.hero-preview-head span {
    font-size: 0.8rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffd3bd;
}

.hero-preview-track {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-preview-pill {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 700;
}

.hero-preview-pill.is-open {
    background: linear-gradient(180deg, #ebf690 0%, #d8ef3d 100%);
    color: #304109;
}

.hero-preview-pill.is-lesson {
    background: rgba(255, 248, 241, 0.18);
    color: #fff4ec;
    border: 1px solid rgba(255, 248, 241, 0.18);
}

.hero-preview-pill.is-booked {
    background: rgba(66, 18, 4, 0.38);
    color: #ffe8da;
    border: 1px solid rgba(255, 232, 218, 0.16);
}

.mini-card {
    background: rgba(255, 248, 241, 0.12);
    border: 1px solid rgba(255, 248, 241, 0.18);
    border-radius: 20px;
    padding: 16px;
}

.mini-card span,
.feature-tag {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 8px;
}

.mini-card span {
    color: #ffd3bd;
}

.mini-card strong {
    display: block;
    font-size: 1rem;
}

.hero-stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 26px;
}

.stat-chip {
    min-width: 112px;
    padding: 12px 16px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.62);
    border: 1px solid rgba(111, 52, 25, 0.1);
}

.stat-chip strong {
    display: block;
    font-size: 1.1rem;
}

.stat-chip span {
    color: var(--muted);
    font-size: 0.9rem;
}

.page-head {
    margin-bottom: 24px;
}

.section-block,
.section-band,
.cta-banner {
    margin-bottom: 28px;
}

.highlight-band {
    display: grid;
    gap: 24px;
    padding: 32px;
    border-radius: 34px;
    background:
        radial-gradient(circle at top right, rgba(177, 77, 33, 0.12), transparent 26%),
        linear-gradient(145deg, rgba(255, 248, 241, 0.92), rgba(247, 235, 220, 0.88));
    border: 1px solid rgba(177, 77, 33, 0.12);
    box-shadow: var(--shadow);
}

.highlight-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.highlight-card {
    padding: 20px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(177, 77, 33, 0.1);
}

.highlight-card span {
    display: inline-flex;
    width: 38px;
    height: 38px;
    justify-content: center;
    align-items: center;
    margin-bottom: 12px;
    border-radius: 999px;
    background: #fff1e6;
    color: var(--accent-dark);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    font-weight: 700;
}

.highlight-card strong {
    display: block;
    margin-bottom: 8px;
    font-size: 1.05rem;
}

.highlight-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
}

.section-heading {
    margin-bottom: 18px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1.05;
    max-width: 16ch;
}

.section-band {
    padding: 28px;
    border-radius: 30px;
    background: linear-gradient(180deg, rgba(255, 248, 241, 0.72), rgba(255, 255, 255, 0.48));
    border: 1px solid rgba(177, 77, 33, 0.12);
}

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

.feature-card h3,
.step-card h3 {
    margin-top: 0;
}

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

.step-card {
    background: rgba(255, 250, 244, 0.9);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.step-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    justify-content: center;
    align-items: center;
    border-radius: 999px;
    background: var(--accent-dark);
    color: #fff;
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    margin-bottom: 14px;
}

.cta-banner {
    background:
        radial-gradient(circle at top left, rgba(255, 231, 213, 0.8), transparent 34%),
        linear-gradient(145deg, #fff8f1 0%, #f3dfcf 100%);
    border: 1px solid rgba(177, 77, 33, 0.18);
    border-radius: 34px;
    padding: 32px;
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: center;
    box-shadow: var(--shadow);
}

.cta-banner h2 {
    margin: 0 0 10px;
    font-size: clamp(1.8rem, 3vw, 3rem);
    line-height: 1;
}

.eyebrow {
    color: var(--accent);
    font-size: 0.8rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.lead {
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 60ch;
}

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

.card {
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 26px;
    box-shadow: var(--shadow);
}

.button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    border: 0;
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    padding: 12px 18px;
    cursor: pointer;
}

.button-secondary {
    background: transparent;
    color: var(--accent-dark);
    border: 1px solid var(--accent-dark);
}

.button-danger {
    background: #8c2f17;
    color: #fff;
}

.form-shell {
    margin-bottom: 24px;
}

.auth-shell {
    display: grid;
    gap: 24px;
}

.auth-head {
    max-width: 64ch;
}

.auth-head h1 {
    margin: 0 0 12px;
}

.auth-grid {
    display: grid;
    grid-template-columns: minmax(320px, 0.82fr) minmax(420px, 1.18fr);
    gap: 24px;
    align-items: start;
}

.auth-card {
    display: grid;
    gap: 18px;
}

.auth-card.is-active {
    border-color: rgba(177, 77, 33, 0.24);
    box-shadow: 0 24px 56px rgba(58, 31, 14, 0.1);
}

.auth-card-head h2,
.auth-note h3 {
    margin: 0 0 8px;
}

.auth-card-head p,
.auth-note p {
    margin: 0;
    color: var(--muted);
}

.auth-note {
    display: grid;
    gap: 8px;
    padding: 18px 20px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.52);
}

.auth-register-form {
    gap: 16px;
}

.auth-register-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.auth-register-wide {
    grid-column: 1 / -1;
}

.narrow {
    max-width: 560px;
}

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

label {
    display: grid;
    gap: 6px;
    font-weight: 600;
}

input,
select,
textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel-strong);
    font: inherit;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 18px;
}

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

.flash {
    border-radius: 16px;
    padding: 14px 16px;
    margin-bottom: 18px;
}

.flash-success {
    background: var(--success);
}

.flash-error {
    background: var(--error);
}

ul {
    padding-left: 18px;
}

.compact {
    margin-top: 0;
}

.muted-card {
    background: rgba(255, 255, 255, 0.55);
    box-shadow: none;
}

.collapsible-card summary {
    cursor: pointer;
    font-weight: 700;
}

.collapsible-card[open] summary {
    margin-bottom: 12px;
}

.check-row {
    display: grid;
    grid-template-columns: 20px 1fr;
    align-items: start;
    gap: 10px;
    font-weight: 400;
}

.check-row input {
    margin-top: 4px;
}

.fine-print {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.compact-filter {
    margin-bottom: 18px;
}

.gantt-shell {
    overflow-x: auto;
    margin-bottom: 18px;
}

.gantt-table th,
.gantt-table td {
    min-width: 96px;
    text-align: center;
}

.slot-cell {
    font-size: 0.9rem;
    font-weight: 600;
}

.slot-available {
    background: rgba(217, 240, 215, 0.8);
}

.slot-booked {
    background: rgba(247, 217, 215, 0.9);
}

.slot-unavailable {
    background: rgba(222, 207, 190, 0.45);
    color: var(--muted);
}

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

.weekday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin-top: -4px;
}

.separator {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 24px 0;
}

.admin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: end;
}

.stack-list {
    display: grid;
    gap: 14px;
}

.table-shell {
    overflow-x: auto;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 12px;
}

.admin-table th,
.admin-table td {
    padding: 10px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

.admin-table th {
    text-align: left;
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.admin-table input,
.admin-table select {
    padding: 10px 12px;
    border-radius: 12px;
}

.table-checkbox-grid {
    display: grid;
    gap: 6px;
}

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

.compact-check {
    gap: 8px;
    font-size: 0.92rem;
}

.pill-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

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

.staff-section-head h2 {
    margin-bottom: 6px;
}

.staff-field-create-grid,
.staff-field-edit-grid,
.staff-slot-grid,
.staff-band-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.staff-slot-grid {
    grid-template-columns: 1fr;
}

.staff-field-list {
    display: grid;
    gap: 18px;
}

.staff-field-card {
    display: grid;
    gap: 18px;
    padding: 22px;
    border: 1px solid rgba(157, 99, 56, 0.12);
    border-radius: 26px;
    background: rgba(255, 255, 255, 0.72);
}

.staff-field-card-head {
    display: grid;
    gap: 12px;
}

.staff-field-card-head h3 {
    margin-bottom: 4px;
}

.staff-field-summary {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px 18px;
    margin: 0;
}

.staff-field-summary div {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(157, 99, 56, 0.08);
}

.staff-field-summary dt {
    margin: 0;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.staff-field-summary dd {
    margin: 0;
    font-weight: 700;
}

.staff-field-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.staff-pill {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(157, 99, 56, 0.18);
    background: rgba(255, 249, 244, 0.96);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
}

.staff-field-actions {
    margin-top: 4px;
    justify-content: flex-start;
}

.staff-field-panels {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.staff-field-edit-panel,
.staff-field-panel {
    border: 1px solid rgba(157, 99, 56, 0.12);
    border-radius: 20px;
    padding: 16px 18px;
    background: rgba(255, 255, 255, 0.52);
}

.staff-panel-head {
    display: grid;
    gap: 6px;
    margin-bottom: 14px;
}

.staff-field-edit-grid {
    margin: 14px 0;
}

.staff-field-edit-toggle {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(157, 99, 56, 0.12);
}

.staff-form-submit {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-start;
    margin-top: 6px;
}

.staff-form-submit .button,
.staff-field-actions .button {
    min-height: 44px;
    padding-inline: 20px;
    white-space: nowrap;
}

.staff-weekday-grid {
    margin-top: 8px;
}

.staff-band-list {
    margin-top: 14px;
}

.staff-band-dropdown {
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid rgba(157, 99, 56, 0.12);
}

.staff-band-dropdown summary {
    font-weight: 700;
    cursor: pointer;
}

.staff-band-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.75);
}

.staff-band-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr auto;
    gap: 12px;
    align-items: end;
}

.staff-empty-state {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid rgba(157, 99, 56, 0.1);
}

.info-pill,
.status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
    background: rgba(15, 26, 43, 0.08);
    color: #2f435d;
}

.info-pill-muted {
    background: rgba(26, 115, 232, 0.1);
    color: #165fc0;
}

.status-chip {
    text-transform: capitalize;
}

.actions-cell {
    width: 160px;
}

.staff-user-create-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
}

.staff-user-create-panel {
    display: grid;
    gap: 10px;
    padding: 16px 18px;
    border-radius: 18px;
    background: rgba(15, 26, 43, 0.04);
    min-height: 100%;
    grid-column: 1 / -1;
}

.staff-user-create-actions {
    grid-column: 1 / -1;
}

.staff-user-create-actions .button {
    width: 100%;
}

.staff-users-table-shell {
    margin-top: 6px;
}

.staff-sheet-dialog {
    width: min(760px, calc(100vw - 24px));
}

.staff-sheet-modal .booking-modal-head {
    align-items: start;
}

.staff-sheet-modal .booking-modal-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staff-user-modal-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.admin-inline-form {
    margin-top: 14px;
    padding: 16px;
    border-radius: 16px;
    background: rgba(15, 26, 43, 0.04);
}

.admin-inline-form .button {
    width: 100%;
}

.admin-inline-row td {
    padding-top: 0;
    background: rgba(15, 26, 43, 0.015);
}

.admin-inline-form-wide {
    grid-template-columns: 240px 1fr 1fr 180px;
    gap: 16px;
    align-items: start;
}

.admin-inline-panel-block {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.68);
}

.admin-inline-actions {
    display: flex;
    align-items: end;
    height: 100%;
}

.admin-edit-link {
    color: #165fc0;
    font-weight: 700;
    text-decoration: none;
}

.admin-edit-link.is-active {
    color: #a44a21;
}

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

.pagination-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.78);
    font-weight: 700;
}

.pagination-link.is-active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #1a73e8 0%, #165fc0 100%);
}

.admin-item {
    display: grid;
    gap: 14px;
    padding: 18px;
}

.admin-item-head {
    display: grid;
    gap: 4px;
}

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

.staff-header {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
    padding: 24px 26px;
    border: 1px solid rgba(15, 26, 43, 0.08);
    border-radius: 26px;
    background:
        radial-gradient(circle at top left, rgba(26, 115, 232, 0.1), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 242, 234, 0.94));
    box-shadow: 0 18px 44px rgba(15, 26, 43, 0.08);
}

.staff-header-copy h1 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.staff-header-copy p:not(.eyebrow) {
    margin: 0;
    color: var(--muted);
    max-width: 64ch;
}

.staff-nav-shell {
    position: sticky;
    top: 74px;
    z-index: 6;
}

.staff-nav-tabs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    padding: 8px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(15, 26, 43, 0.08);
    backdrop-filter: blur(10px);
}

.staff-nav-tab {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 54px;
    padding: 12px 18px;
    border-radius: 18px;
    border: 1px solid var(--line);
    color: var(--text);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.88);
    font-weight: 700;
    white-space: nowrap;
    box-shadow: 0 10px 24px rgba(15, 26, 43, 0.06);
}

.staff-nav-tab.is-active {
    background: linear-gradient(135deg, #1a73e8 0%, #165fc0 100%);
    border-color: transparent;
    color: #fff;
}

.staff-header-actions {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
}

.staff-field-price-summary {
    display: grid;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 20px;
    border: 1px solid rgba(157, 99, 56, 0.12);
    background: rgba(255, 255, 255, 0.56);
}

.staff-price-band-pills {
    gap: 8px;
}

.staff-pill-link {
    font-weight: 700;
}

.staff-app-shell {
    margin-top: 6px;
}

.booking-hub {
    display: grid;
    gap: 24px;
    width: min(1480px, 100%);
    box-sizing: border-box;
    margin: 0 auto;
}

.booking-hero {
    background: var(--panel);
    color: var(--text);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 22px 24px;
    box-shadow: var(--shadow);
    display: grid;
    gap: 16px;
}

.booking-hero h1,
.booking-backoffice h2,
.booking-panel h2 {
    font-family: var(--font-display);
    letter-spacing: -0.03em;
}

.booking-hero h1 {
    margin: 0;
    font-size: clamp(2.1rem, 4vw, 3.3rem);
}

.booking-hero-copy .lead {
    max-width: 44ch;
    color: var(--muted);
}

.booking-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 320px) minmax(0, 220px);
    gap: 14px;
    align-items: end;
}

.booking-toolbar label {
    color: var(--text);
    min-width: 0;
    max-width: none;
    display: grid;
    gap: 10px;
}

.booking-toolbar input {
    background: #fff;
    width: 100%;
    text-align: center;
}

.booking-toolbar-button {
    width: 100%;
    min-width: 0;
    min-height: 48px;
    padding-inline: 24px;
}

.booking-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.booking-kpi {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 16px 18px;
}

.booking-kpi span {
    display: block;
    color: rgba(245, 248, 252, 0.64);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 10px;
}

.booking-kpi strong {
    display: block;
    font-size: 1.45rem;
}

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

.booking-stack {
    display: grid;
    gap: 24px;
}

.booking-panel {
    padding: 0;
    overflow: hidden;
    border-radius: 26px;
}

.booking-panel-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-start;
    padding: 22px 22px 0;
}

.booking-panel-head-sticky {
    position: sticky;
    top: 0;
    z-index: 7;
    background: rgba(255, 250, 244, 0.96);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(15, 26, 43, 0.08);
    padding-bottom: 18px;
}

.booking-section-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(17, 28, 46, 0.08);
    color: #2f435d;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.booking-panel h2 {
    margin: 10px 0 0;
    font-size: 1.55rem;
}

.booking-grid-shell {
    padding: 0;
    overflow-x: auto;
}

.booking-inline-panel {
    display: grid;
    gap: 18px;
    padding-top: 6px;
}

.booking-sidepanel-head h3 {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 1.2rem;
}

.booking-sidepanel-head p {
    margin: 0;
}

.booking-sidepanel-summary {
    display: grid;
    gap: 10px;
}

.booking-sidepanel-summary div {
    border: 1px solid rgba(15, 26, 43, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.72);
}

.booking-sidepanel-summary span {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--muted);
    margin-bottom: 6px;
}

.booking-sidepanel-summary strong {
    display: block;
    font-size: 0.96rem;
}

.booking-summary-select {
    display: grid;
    gap: 6px;
    border: 1px solid rgba(15, 26, 43, 0.08);
    border-radius: 16px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.72);
}

.booking-summary-select select {
    width: 100%;
    min-width: 0;
    padding: 10px 12px;
    font-size: 0.92rem;
}

.booking-form-side {
    padding: 0;
    border-top: 0;
    background: transparent;
}

.booking-form-inline {
    padding: 0;
    border-top: 0;
    background: transparent;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
}

.booking-form-inline button.button {
    align-self: end;
}

.booking-modal-wide {
    grid-column: 1 / -1;
}

.modal-open {
    overflow: hidden;
}

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

.booking-modal {
    position: fixed;
    inset: 0;
    z-index: 60;
    display: none;
    align-items: start;
    justify-items: center;
    overflow-y: auto;
    padding: 16px 16px max(32px, env(safe-area-inset-bottom));
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
}

.booking-modal.is-open {
    display: grid;
}

.booking-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(12, 18, 28, 0.58);
    backdrop-filter: blur(6px);
}

.booking-modal-dialog {
    position: relative;
    z-index: 1;
    width: min(680px, calc(100vw - 32px));
    max-height: none;
    overflow: visible;
    margin: 20px auto;
    padding: 24px;
    border-radius: 28px;
    background: #fffaf4;
    box-shadow: 0 30px 80px rgba(15, 26, 43, 0.28);
    display: grid;
    gap: 20px;
    min-height: min-content;
}

.booking-modal-head {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    align-items: flex-start;
    position: static;
    padding-bottom: 4px;
    background: transparent;
}

.booking-modal-head h3 {
    margin: 4px 0 0;
}

.booking-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid rgba(15, 26, 43, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.85);
    color: #122033;
    text-decoration: none;
    font-weight: 700;
    white-space: nowrap;
}

.booking-modal-form {
    padding: 20px;
    border-radius: 24px;
    border: 1px solid rgba(15, 26, 43, 0.08);
    margin-bottom: 4px;
}

.dashboard-booking-choice-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.dashboard-booking-mode {
    display: inline-grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-manual-stepper,
.dashboard-manual-form-shell {
    display: grid;
    gap: 16px;
}

.dashboard-manual-mode-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.dashboard-manual-mode-card {
    display: grid;
    gap: 10px;
    padding: 18px;
    border-radius: 22px;
    border: 1px solid rgba(159, 78, 40, 0.18);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 239, 230, 0.96));
    box-shadow: 0 12px 28px rgba(58, 31, 14, 0.06);
    align-content: start;
}

.dashboard-manual-mode-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    border: 1px solid var(--accent);
    background: var(--panel-strong);
    color: var(--accent-dark);
    font-family: var(--font-display);
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
}

.dashboard-manual-mode-flow {
    font-size: 0.9rem;
    color: var(--text);
}

.dashboard-manual-mode-flow strong {
    color: var(--accent);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.72rem;
    margin-right: 6px;
}

.dashboard-manual-mode-card span:last-child {
    color: var(--muted);
    line-height: 1.45;
}

.dashboard-manual-mode-eyebrow,
.dashboard-manual-form-step {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--accent);
}

.dashboard-manual-form-head {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: space-between;
    padding: 0 2px;
}

.dashboard-manual-form-head strong {
    font-size: 1.05rem;
}

.dashboard-manual-back {
    margin-left: auto;
}

.dashboard-booking-mode .button {
    min-width: 132px;
    cursor: pointer;
}

.dashboard-booking-mode .button.is-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.dashboard-booking-mode-panel {
    display: none;
}

.dashboard-booking-mode-panel.is-active {
    display: block;
}

.dashboard-booking-choice-accordion .dashboard-booking-mode-panel {
    display: block;
}

.coach-lesson-type-input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

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

.coach-lesson-type-label {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.coach-lesson-type-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.coach-lesson-type-pill {
    min-width: 0;
    width: 100%;
    justify-content: center;
    text-align: center;
}

.booking-sidepanel-summary .coach-lesson-type-state,
.coach-lesson-participants-section .coach-lesson-type-state {
    display: none;
}

#dashboard-lesson-type-single:checked ~ .coach-lesson-type-choice .coach-lesson-type-pill[for="dashboard-lesson-type-single"],
#dashboard-lesson-type-double:checked ~ .coach-lesson-type-choice .coach-lesson-type-pill[for="dashboard-lesson-type-double"],
#dashboard-lesson-type-triple:checked ~ .coach-lesson-type-choice .coach-lesson-type-pill[for="dashboard-lesson-type-triple"],
#dashboard-lesson-type-match:checked ~ .coach-lesson-type-choice .coach-lesson-type-pill[for="dashboard-lesson-type-match"] {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

#dashboard-lesson-type-single:checked ~ .booking-sidepanel-summary .coach-lesson-type-single-state,
#dashboard-lesson-type-double:checked ~ .booking-sidepanel-summary .coach-lesson-type-double-state,
#dashboard-lesson-type-triple:checked ~ .booking-sidepanel-summary .coach-lesson-type-triple-state,
#dashboard-lesson-type-match:checked ~ .booking-sidepanel-summary .coach-lesson-type-match-state,
#dashboard-lesson-type-single:checked ~ .coach-lesson-participants-section .coach-lesson-type-single-state,
#dashboard-lesson-type-double:checked ~ .coach-lesson-participants-section .coach-lesson-type-double-state,
#dashboard-lesson-type-triple:checked ~ .coach-lesson-participants-section .coach-lesson-type-triple-state,
#dashboard-lesson-type-match:checked ~ .coach-lesson-participants-section .coach-lesson-type-match-state {
    display: inline;
}

#dashboard-lesson-type-single:checked ~ .coach-lesson-participants-section {
    display: none;
}

.booking-search-field {
    display: grid;
    gap: 8px;
}

.booking-search-field span {
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.booking-mobile-list {
    display: none;
}

.booking-mobile-board {
    display: grid;
    gap: 18px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 26, 43, 0.06);
}

.booking-mobile-row {
    display: grid;
    gap: 10px;
}

.booking-mobile-resource-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.booking-mobile-resource-link {
    color: #165fc0;
    text-decoration: none;
    font-weight: 800;
    font-size: 1.2rem;
    letter-spacing: -0.02em;
}

.booking-mobile-strip {
    display: flex;
    align-items: stretch;
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    border-radius: 18px;
}

.booking-mobile-slot {
    flex: 0 0 68px;
    min-width: 68px;
    min-height: 58px;
    padding: 8px 6px;
    display: grid;
    align-content: start;
    text-decoration: none;
    color: #122033;
    border-right: 1px solid rgba(255, 255, 255, 0.7);
}

.booking-mobile-slot strong {
    display: block;
    font-size: 0.84rem;
    line-height: 1.08;
    overflow-wrap: anywhere;
}

.booking-mobile-slot-booked {
    flex: 0 0 auto;
    width: auto;
    min-width: 96px;
    max-width: 168px;
    padding: 10px 12px;
    align-content: center;
    white-space: normal;
    position: relative;
    z-index: 1;
    pointer-events: auto;
    touch-action: manipulation;
}

.booking-mobile-slot-booked strong {
    text-align: left;
    white-space: normal;
    overflow-wrap: anywhere;
}

.booking-mobile-slot-available {
    background: linear-gradient(180deg, #dff46c 0%, #b8e30f 100%);
}

.booking-mobile-slot-booked {
    background: linear-gradient(180deg, #d45b31 0%, #b94722 100%);
    color: #fff7f2;
}

.booking-mobile-slot-empty,
.booking-mobile-slot-unavailable {
    background: linear-gradient(180deg, #f1ede7 0%, #e7dfd3 100%);
    color: #7b6f61;
}

.dashboard-calendar-grouped-panel + .dashboard-calendar-grouped-panel {
    margin-top: 26px;
}

.dashboard-calendar-resource-list {
    display: grid;
    gap: 16px;
}

.dashboard-player-day-resource-list {
    gap: 14px;
}

.dashboard-calendar-resource-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.78);
    border: 1px solid rgba(15, 26, 43, 0.06);
}

.dashboard-calendar-resource-head {
    justify-content: flex-start;
}

.dashboard-calendar-day-list {
    display: grid;
    gap: 10px;
}

.dashboard-calendar-day-row {
    display: grid;
    gap: 6px;
    padding: 8px 0;
    border-top: 1px solid rgba(220, 203, 184, 0.4);
}

.dashboard-calendar-day-list > :first-child {
    padding-top: 0;
    border-top: 0;
}

.dashboard-calendar-day-head {
    display: flex;
    align-items: center;
}

.dashboard-calendar-day-label {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 32px;
    padding: 0 12px;
    border-radius: 999px;
    background: rgba(159, 78, 40, 0.08);
    border: 1px solid rgba(159, 78, 40, 0.12);
    font-size: 0.86rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: var(--accent-dark);
    text-transform: uppercase;
}

.dashboard-calendar-day-row {
    --dashboard-hour-span: 4;
    --dashboard-slot-size: 19px;
    --dashboard-slot-height: 44px;
}

.dashboard-calendar-day-row-player {
    --dashboard-hour-span: 4;
}

.dashboard-calendar-timeline-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
}

.dashboard-calendar-timeline-inner {
    display: inline-grid;
    gap: 4px;
    min-width: max-content;
}

.dashboard-calendar-hour-strip {
    display: flex;
    align-items: end;
    width: max-content;
}

.dashboard-calendar-hour-label {
    flex: 0 0 calc(var(--dashboard-slot-size) * var(--hour-label-span, var(--dashboard-hour-span)));
    width: calc(var(--dashboard-slot-size) * var(--hour-label-span, var(--dashboard-hour-span)));
    min-width: calc(var(--dashboard-slot-size) * var(--hour-label-span, var(--dashboard-hour-span)));
    max-width: calc(var(--dashboard-slot-size) * var(--hour-label-span, var(--dashboard-hour-span)));
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    font-size: 0.72rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: -0.03em;
    color: #122033;
    text-align: left;
    overflow: visible;
}

.dashboard-calendar-hour-label.is-blank {
    overflow: hidden;
}

.dashboard-calendar-hour-label.is-blank .dashboard-calendar-hour-label-text {
    opacity: 0;
}

.dashboard-calendar-hour-label-text {
    display: inline-block;
    white-space: nowrap;
}

.dashboard-calendar-hour-label:not(.is-first) .dashboard-calendar-hour-label-text {
    padding-left: 2px;
}

.dashboard-calendar-day-strip {
    min-width: max-content;
    gap: 0;
    border-radius: 18px;
    background: linear-gradient(180deg, #f2f9cb 0%, #e7f3ad 100%);
    box-shadow: inset 0 0 0 1px rgba(111, 52, 25, 0.08);
    overflow: hidden;
}

.dashboard-calendar-day-strip-player {
    background: linear-gradient(180deg, #f2f9cb 0%, #e7f3ad 100%);
}

.dashboard-player-day-resource-card .dashboard-calendar-day-row {
    padding: 0;
    border-top: 0;
}

.dashboard-calendar-day-strip .booking-mobile-slot,
.dashboard-calendar-day-strip .booking-mobile-slot-available,
.dashboard-calendar-day-strip .booking-mobile-slot-empty {
    flex: 0 0 calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    min-width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    max-width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    min-height: var(--dashboard-slot-height);
    padding: 8px 4px 10px;
    align-content: start;
    white-space: normal;
    position: relative;
    border-right: 0;
    border-radius: 0;
}

.dashboard-calendar-day-strip .booking-mobile-slot-booked {
    flex: 0 0 calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    min-width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    max-width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
    min-height: var(--dashboard-slot-height);
    padding: 6px 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0;
    border-right: 0;
}

.dashboard-calendar-day-strip .booking-mobile-slot.is-half-a,
.dashboard-calendar-day-strip .booking-mobile-slot-available.is-half-a,
.dashboard-calendar-day-strip .booking-mobile-slot-empty.is-half-a,
.dashboard-calendar-day-strip .booking-mobile-slot-unavailable.is-half-a,
.dashboard-calendar-day-strip-player .booking-mobile-slot.is-half-a,
.dashboard-calendar-day-strip-player .booking-mobile-slot-available.is-half-a,
.dashboard-calendar-day-strip-player .booking-mobile-slot-empty.is-half-a,
.dashboard-calendar-day-strip-player .booking-mobile-slot-unavailable.is-half-a {
    background: linear-gradient(180deg, #d8f848 0%, #b9e90f 100%);
    color: #122033;
}

.dashboard-calendar-day-strip .booking-mobile-slot.is-half-b,
.dashboard-calendar-day-strip .booking-mobile-slot-available.is-half-b,
.dashboard-calendar-day-strip .booking-mobile-slot-empty.is-half-b,
.dashboard-calendar-day-strip .booking-mobile-slot-unavailable.is-half-b,
.dashboard-calendar-day-strip-player .booking-mobile-slot.is-half-b,
.dashboard-calendar-day-strip-player .booking-mobile-slot-available.is-half-b,
.dashboard-calendar-day-strip-player .booking-mobile-slot-empty.is-half-b,
.dashboard-calendar-day-strip-player .booking-mobile-slot-unavailable.is-half-b {
    background: linear-gradient(180deg, #eef8a6 0%, #d9ea62 100%);
    color: #122033;
}

.dashboard-calendar-day-strip .booking-mobile-slot-booked,
.dashboard-calendar-day-strip-player .booking-mobile-slot-booked {
    background-image:
        linear-gradient(180deg, #d45b31 0%, #b94722 100%),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc(var(--dashboard-slot-size) - 1px),
            rgba(255, 255, 255, 0.72) calc(var(--dashboard-slot-size) - 1px),
            rgba(255, 255, 255, 0.72) var(--dashboard-slot-size)
        ),
        repeating-linear-gradient(
            to right,
            transparent 0,
            transparent calc((var(--dashboard-slot-size) * 4) - 2px),
            rgba(255, 255, 255, 0.96) calc((var(--dashboard-slot-size) * 4) - 2px),
            rgba(255, 255, 255, 0.96) calc(var(--dashboard-slot-size) * 4)
        );
    background-size:
        100% 100%,
        100% 34%,
        100% 100%;
    background-position:
        left top,
        left bottom,
        calc((var(--hour-boundary-offset, 4) - 4) * var(--dashboard-slot-size)) top;
    background-repeat:
        no-repeat,
        repeat-x,
        repeat-x;
    color: #fff7f2;
}

.dashboard-calendar-day-strip .booking-mobile-slot:first-child {
    border-top-left-radius: 22px;
    border-bottom-left-radius: 22px;
}

.dashboard-calendar-day-strip .booking-mobile-slot:last-child {
    border-top-right-radius: 22px;
    border-bottom-right-radius: 22px;
}

.dashboard-calendar-day-strip .booking-mobile-slot strong {
    display: none;
}

.dashboard-calendar-day-strip .booking-mobile-slot::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 34%;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-calendar-day-strip .booking-mobile-slot.is-hour-boundary::after {
    right: 0;
    width: 1px;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
}

.dashboard-calendar-day-strip .booking-mobile-slot:last-child::after {
    display: none;
}

.dashboard-calendar-slot-caption {
    display: block;
    margin-top: 0;
    font-size: 0.66rem;
    line-height: 1.05;
    font-weight: 800;
    text-align: center;
}

.booking-panel .gantt-table th,
.booking-panel .gantt-table td {
    min-width: 128px;
    font-family: var(--font-display);
}

.booking-panel .gantt-table thead th {
    position: sticky;
    top: 0;
    background: #fffaf4;
    z-index: 1;
}

.booking-panel .gantt-table tbody td:first-child,
.booking-panel .gantt-table thead th:first-child {
    position: sticky;
    left: 0;
    background: #fffaf4;
    z-index: 4;
    box-shadow: 8px 0 16px rgba(15, 26, 43, 0.08);
    background-clip: padding-box;
}

.booking-panel .slot-cell {
    padding: 0;
}

.booking-panel .slot-cell > a,
.booking-panel .slot-cell > span,
.booking-panel .slot-cell > div {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 72px;
    width: 100%;
}

.booking-panel .slot-available {
    background: linear-gradient(180deg, #ebf9f0 0%, #d6f2df 100%);
}

.booking-panel .slot-booked {
    background: linear-gradient(180deg, #ffe9e5 0%, #ffd7cf 100%);
}

.booking-panel .slot-empty,
.booking-panel .slot-unavailable {
    background: #f4efe8;
}

.booking-resource {
    width: 220px;
    min-width: 190px;
    font-weight: 700;
    text-align: left;
}

.booking-panel .gantt-table thead th:first-child {
    z-index: 5;
}

.booking-cell-link {
    width: 100%;
    height: 100%;
    padding: 10px;
}

.booking-drop-target {
    transition: box-shadow 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.booking-cell-booked {
    width: 100%;
    height: 100%;
    padding: 10px 12px;
    display: grid;
    gap: 8px;
    justify-items: center;
    align-content: center;
}

.booking-cell-booked strong {
    font-size: 0.84rem;
    text-align: center;
    line-height: 1.15;
    overflow-wrap: anywhere;
    max-width: 18ch;
}

.booking-booked-detail-link {
    font-size: 0.88rem;
    line-height: 1.2;
    text-align: center;
    color: inherit;
    text-decoration: none;
    font-weight: 700;
}

.booking-booked-detail-link:hover,
.booking-booked-detail-link:focus-visible {
    text-decoration: underline;
}

.booking-draggable {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
    touch-action: manipulation;
}

.booking-draggable.is-dragging {
    opacity: 0.45;
}

.booking-drop-target.is-drop-ready {
    box-shadow: inset 0 0 0 3px rgba(26, 115, 232, 0.34);
    background: linear-gradient(180deg, #f2f8ff 0%, #e3efff 100%);
    transform: translateY(-1px);
}

.booking-drop-target.is-drop-candidate {
    box-shadow: inset 0 0 0 2px rgba(26, 115, 232, 0.22);
    background: linear-gradient(180deg, #f8fbff 0%, #eef5ff 100%);
}

.booking-drag-mode .booking-drop-target .booking-cell-link,
.booking-drag-mode .booking-drop-target .booking-pill,
.booking-drag-mode .booking-drop-target span {
    pointer-events: none;
}

.booking-cell-empty {
    color: var(--muted);
}

.booking-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-weight: 700;
}

.booking-pill-free {
    background: #dff4e3;
    color: #236c33;
}

.booking-pill-booked {
    background: #ece7de;
    color: #63574a;
}

.booking-pill-lesson {
    background: #dce9ff;
    color: #1f58ab;
}

.booking-pill-field {
    background: #ffe8da;
    color: #a44a21;
}

.booking-form {
    background: linear-gradient(180deg, rgba(15, 26, 43, 0.03), rgba(15, 26, 43, 0.01));
    border-top: 1px solid rgba(15, 26, 43, 0.08);
}

.booking-form button.button {
    width: auto;
    margin-top: 6px;
    background: linear-gradient(135deg, #1a73e8 0%, #165fc0 100%);
    justify-self: start;
}

.booking-form select[multiple] {
    min-height: 104px;
}

.booking-backoffice {
    display: grid;
    gap: 18px;
    margin-top: 30px;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.booking-move-form {
    display: none;
}

.booking-backoffice-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: flex-end;
}

.booking-backoffice-head h2 {
    margin: 0;
    font-size: 1.8rem;
}

.booking-admin-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.booking-admin-trigger {
    display: grid;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.booking-admin-trigger:hover {
    transform: translateY(-2px);
    border-color: rgba(177, 77, 33, 0.28);
    box-shadow: 0 16px 32px rgba(15, 26, 43, 0.08);
}

.booking-admin-trigger h3 {
    margin: 0;
    font-family: var(--font-display);
}

.booking-admin-trigger p {
    margin: 0;
    color: var(--muted);
}

.booking-admin-card h2 {
    font-family: var(--font-display);
    margin-top: 0;
}

.booking-daily-admin-list {
    overflow: hidden;
}

.booking-daily-table-shell {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.booking-daily-table {
    width: 100%;
    min-width: 760px;
    border-collapse: collapse;
}

.booking-daily-table th,
.booking-daily-table td {
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}

.booking-daily-table th:last-child,
.booking-daily-table td:last-child {
    width: 1%;
    white-space: nowrap;
}

.dashboard-ops {
    display: grid;
    gap: 18px;
    margin-bottom: 24px;
}

.dashboard-player-ops {
    margin-top: 18px;
}

.dashboard-app-shell {
    gap: 20px;
}

.dashboard-app-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 18px;
    padding: 22px 24px;
    border: 1px solid rgba(111, 52, 25, 0.12);
    border-radius: 26px;
    background:
        radial-gradient(circle at top right, rgba(169, 90, 49, 0.14), transparent 34%),
        linear-gradient(180deg, rgba(255, 251, 246, 0.98), rgba(248, 241, 232, 0.94));
    box-shadow: 0 18px 34px rgba(58, 31, 14, 0.08);
}

.dashboard-app-topbar-copy {
    display: grid;
    gap: 8px;
}

.dashboard-app-topbar-copy h2 {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 4vw, 2.4rem);
}

.dashboard-app-identity {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

.dashboard-player-week-card {
    display: grid;
    gap: 14px;
}

.dashboard-player-menu-card {
    display: grid;
    gap: 14px;
}

.dashboard-player-menu {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

.dashboard-player-menu-item {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 52px;
    padding: 10px 14px;
    border-radius: 18px;
    border: 1px solid rgba(111, 52, 25, 0.14);
    background: rgba(255, 255, 255, 0.74);
    color: var(--accent-dark);
    font-weight: 700;
    text-align: center;
}

.dashboard-player-menu-item.is-active {
    background: linear-gradient(180deg, #a95a31 0%, #8f4723 100%);
    color: #fff;
    border-color: rgba(111, 52, 25, 0.4);
    box-shadow: 0 14px 26px rgba(159, 78, 40, 0.2);
}

.dashboard-app-bottom-nav {
    display: none;
}

.dashboard-app-bottom-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    min-height: 54px;
    padding: 0 12px;
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
    font-weight: 700;
    text-decoration: none;
    width: 100%;
}

.dashboard-app-bottom-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    background: rgba(159, 78, 40, 0.18);
    border: 1px solid rgba(159, 78, 40, 0.22);
    color: var(--accent-dark);
    font-size: 0.86rem;
    font-weight: 800;
    letter-spacing: 0.08em;
}

.dashboard-app-bottom-link span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    text-align: center;
}

.dashboard-app-bottom-link.is-active {
    background: linear-gradient(180deg, #a95a31 0%, #8f4723 100%);
    color: #fff;
}

.dashboard-app-bottom-link:first-child.is-active {
    background: transparent;
    color: var(--muted);
}

.dashboard-app-bottom-link.is-active .dashboard-app-bottom-avatar {
    background: rgba(255, 255, 255, 0.2);
    color: #fff;
}

.dashboard-app-bottom-link:first-child.is-active .dashboard-app-bottom-avatar {
    background: linear-gradient(180deg, #a95a31 0%, #8f4723 100%);
    border-color: rgba(159, 78, 40, 0.42);
    color: #fff;
}

.dashboard-profile-actions {
    margin-top: 16px;
}

.dashboard-app-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.dashboard-app-stats-compact {
    margin-top: 4px;
}

.dashboard-app-stat {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid rgba(111, 52, 25, 0.1);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-app-stat span {
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-app-stat strong {
    font-size: 1rem;
    color: var(--accent-dark);
}

.dashboard-app-inline-note {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255, 248, 241, 0.9);
    border: 1px solid rgba(111, 52, 25, 0.1);
}

.dashboard-app-inline-note strong {
    color: var(--accent-dark);
}

.dashboard-app-inline-note span {
    color: var(--muted);
}

.dashboard-staff-shell {
    gap: 18px;
}

.dashboard-staff-topbar {
    margin-top: 6px;
}

.dashboard-staff-stats {
    margin-top: -2px;
}

.dashboard-single-date-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: end;
}

.dashboard-single-date-form input[type="date"] {
    min-height: 42px;
    max-width: 220px;
    padding: 0 12px;
}

.dashboard-single-date-form label {
    display: grid;
    gap: 6px;
}

.dashboard-single-date-form label span {
    color: var(--muted);
    font-size: 0.76rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-profile-list {
    display: grid;
    gap: 12px;
}

.dashboard-profile-list div {
    padding: 14px 16px;
    border: 1px solid rgba(111, 52, 25, 0.12);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.dashboard-profile-list span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.dashboard-calendar-week-head {
    align-items: center;
}

.dashboard-calendar-week-nav {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.dashboard-calendar-week-nav span {
    color: var(--muted);
    font-size: 0.9rem;
    white-space: nowrap;
}

.dashboard-calendar-week-nav .is-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.dashboard-calendar-card {
    display: grid;
    gap: 14px;
}

.dashboard-calendar-head,
.dashboard-calendar-body {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 8px;
}

.dashboard-calendar-head span {
    text-align: center;
    font-size: 0.72rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-calendar-day {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border-radius: 14px;
    border: 1px solid rgba(111, 52, 25, 0.12);
    background: rgba(255, 255, 255, 0.78);
    color: var(--accent-dark);
    font-weight: 700;
}

.dashboard-calendar-day.is-outside {
    opacity: 0.36;
}

.dashboard-calendar-day.is-selected {
    background: linear-gradient(180deg, #a95a31 0%, #8f4723 100%);
    color: #fff;
}

.dashboard-calendar-day.is-today:not(.is-selected) {
    border-color: rgba(159, 78, 40, 0.42);
}

.dashboard-lessons-contact-card {
    display: grid;
    gap: 16px;
    min-height: 330px;
    align-content: start;
}

.dashboard-lessons-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    align-items: start;
}

.dashboard-lessons-bookings-card {
    display: grid;
    gap: 14px;
    min-height: 330px;
    max-height: 330px;
    align-content: start;
}

.dashboard-lessons-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-lessons-bookings-meta {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    align-items: center;
}

.dashboard-lessons-bookings-list {
    display: grid;
    gap: 12px;
    overflow: auto;
    padding-right: 6px;
    min-width: 0;
}

.dashboard-lessons-table-head,
.dashboard-lessons-table-row {
    display: grid;
    grid-template-columns: minmax(110px, 0.95fr) minmax(0, 1.2fr) minmax(110px, 0.9fr);
    gap: 14px;
    align-items: center;
}

.dashboard-lessons-table-head {
    padding: 0 4px;
}

.dashboard-lessons-table-head span {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-lessons-table-cell {
    min-width: 0;
}

.dashboard-lessons-table-cell span {
    display: none;
}

.dashboard-lessons-booking-item {
    display: grid;
    gap: 10px;
    padding: 14px 16px;
    border: 1px solid rgba(111, 52, 25, 0.1);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 8px 18px rgba(58, 31, 14, 0.04);
    min-width: 0;
}

.dashboard-lessons-table-row strong {
    display: block;
    font-size: 1rem;
    color: var(--text);
    min-width: 0;
    overflow-wrap: anywhere;
}

.dashboard-lessons-booking-actions {
    display: flex;
    justify-content: flex-end;
}

.dashboard-lessons-empty {
    display: grid;
    gap: 6px;
    padding: 18px;
    border-radius: 18px;
    background: rgba(255, 250, 244, 0.72);
    border: 1px dashed rgba(111, 52, 25, 0.14);
}

.dashboard-lessons-empty strong {
    color: var(--accent-dark);
}

.dashboard-lessons-empty span {
    color: var(--muted);
    font-size: 0.94rem;
}

.dashboard-ops-head {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: end;
}

.dashboard-ops-head h2,
.dashboard-gantt-head h3 {
    margin: 0;
    font-family: var(--font-display);
}

.dashboard-date-form {
    display: grid;
    grid-template-columns: minmax(0, 220px) auto;
    gap: 12px;
    align-items: end;
}

.dashboard-week-nav {
    display: grid;
    gap: 14px;
}

.dashboard-week-nav-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 14px;
}

.dashboard-week-nav-title {
    display: grid;
    gap: 4px;
    text-align: center;
}

.dashboard-week-nav-title strong {
    font-family: var(--font-display);
    font-size: 1.1rem;
}

.dashboard-week-nav-title span {
    color: var(--muted);
    font-size: 0.88rem;
}

.dashboard-week-form {
    display: inline-flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
}

.dashboard-week-form label {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.dashboard-week-form label span {
    color: var(--muted);
    font-size: 0.68rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.dashboard-week-form input[type="date"] {
    min-height: 44px;
    min-width: 0;
    width: 100%;
    padding: 0 10px;
}

.dashboard-week-gantt-shell {
    display: grid;
    gap: 12px;
}

.dashboard-range-panel {
    display: grid;
    gap: 12px;
    padding: 0 0 14px;
    border-bottom: 1px solid rgba(111, 52, 25, 0.12);
}

.dashboard-range-panel:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.dashboard-range-panel h4 {
    margin: 0;
    font-family: var(--font-display);
    color: var(--accent-dark);
}

.dashboard-range-matrix-card {
    gap: 14px;
}

.dashboard-range-matrix-shell {
    display: block;
    overflow-x: auto;
}

.dashboard-range-matrix-table th,
.dashboard-range-matrix-table td {
    min-width: 92px;
}

.dashboard-range-date-col,
.dashboard-range-date {
    min-width: 104px;
    max-width: 104px;
}

.dashboard-range-resource-col,
.dashboard-range-resource {
    min-width: 150px;
}

.dashboard-range-date {
    position: sticky;
    left: 0;
    z-index: 3;
    background: #fffaf4;
    text-align: left;
    font-weight: 700;
    white-space: nowrap;
}

.dashboard-range-resource {
    position: sticky;
    left: 104px;
    z-index: 3;
    background: #fffaf4;
}

.dashboard-range-matrix-table thead th.dashboard-range-date-col {
    left: 0;
    z-index: 4;
}

.dashboard-range-matrix-table thead th.dashboard-range-resource-col {
    position: sticky;
    left: 104px;
    z-index: 4;
    background: #fffaf4;
}

.dashboard-gantt-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
    align-items: start;
}

.dashboard-gantt-card {
    display: grid;
    gap: 16px;
}

.dashboard-player-card .dashboard-gantt-head .eyebrow {
    margin: 0 0 6px;
}

.dashboard-player-action-list {
    display: grid;
    gap: 16px;
}

.dashboard-player-action-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(111, 52, 25, 0.1);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.62);
}

.dashboard-player-action-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: center;
}

.dashboard-player-action-label {
    font-weight: 700;
    color: var(--accent-dark);
}

.dashboard-player-action-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dashboard-slot-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 999px;
    background: linear-gradient(180deg, #f5f0e9 0%, #ece1d3 100%);
    border: 1px solid rgba(111, 52, 25, 0.14);
    color: var(--accent-dark);
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(58, 31, 14, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-slot-button:hover,
.dashboard-slot-button:focus-visible {
    transform: translateY(-1px);
    border-color: rgba(111, 52, 25, 0.28);
    box-shadow: 0 12px 22px rgba(58, 31, 14, 0.1);
}

.dashboard-match-grid {
    margin-bottom: 24px;
}

.dashboard-match-head {
    margin-bottom: 18px;
}

.dashboard-match-list {
    display: grid;
    gap: 14px;
}

.dashboard-match-card {
    display: grid;
    gap: 12px;
    padding: 18px;
    border: 1px solid rgba(111, 52, 25, 0.12);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.78);
}

.dashboard-match-card-past {
    background: rgba(250, 246, 241, 0.82);
}

.dashboard-match-card span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-match-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

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

.dashboard-policy-tag {
    display: inline-flex;
    align-items: center;
    min-height: 42px;
    padding: 0 14px;
    border-radius: 999px;
    background: rgba(31, 26, 22, 0.06);
    color: var(--muted);
    font-size: 0.92rem;
}

.dashboard-policy-card {
    margin-top: 18px;
    padding: 18px;
    border-radius: 20px;
    background: rgba(255, 248, 241, 0.88);
    border: 1px solid rgba(111, 52, 25, 0.1);
}

.dashboard-policy-card h3 {
    margin: 0 0 8px;
}

.dashboard-policy-card p:last-child {
    margin-bottom: 0;
    color: var(--muted);
}

.booking-participant-picker {
    display: grid;
    gap: 12px;
}

.coach-lesson-participants-section {
    display: grid;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 18px;
    border: 1px solid rgba(111, 52, 25, 0.1);
    background: rgba(255, 250, 244, 0.72);
}

.coach-lesson-participants-head {
    display: grid;
    gap: 4px;
}

.coach-lesson-participants-head strong {
    font-size: 0.98rem;
    color: var(--accent-dark);
}

.coach-lesson-participants-head span {
    font-size: 0.9rem;
    color: var(--muted);
}

.booking-participant-results {
    display: grid;
    gap: 8px;
}

.booking-participant-result {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid rgba(111, 52, 25, 0.12);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.88);
    color: var(--accent-dark);
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.booking-participant-empty {
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255, 250, 244, 0.86);
    color: var(--muted);
    border: 1px dashed rgba(111, 52, 25, 0.12);
}

.booking-participant-selected {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.booking-participant-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border-radius: 999px;
    background: rgba(255, 244, 235, 0.96);
    border: 1px solid rgba(111, 52, 25, 0.12);
    color: var(--accent-dark);
}

.booking-participant-remove {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    cursor: pointer;
    padding: 0;
    line-height: 1;
}

.match-team-editor {
    display: grid;
    gap: 12px;
}

.match-team-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.match-team-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(111, 52, 25, 0.12);
    background: rgba(255, 255, 255, 0.84);
}

.match-team-card h4 {
    margin: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.match-team-slot {
    display: grid;
    gap: 4px;
    width: 100%;
    min-height: 68px;
    padding: 12px 14px;
    border-radius: 16px;
    border: 1px dashed rgba(111, 52, 25, 0.16);
    background: rgba(250, 244, 237, 0.8);
    text-align: left;
}

.match-team-slot-fixed {
    border-style: solid;
}

.match-team-slot-add {
    cursor: pointer;
    font: inherit;
    color: var(--text);
}

.match-team-slot-add strong {
    color: var(--accent-dark);
}

.match-team-slot-add b {
    display: none;
    font-size: 1rem;
}

.match-team-slot-add.is-active {
    border-style: solid;
    border-color: rgba(111, 52, 25, 0.3);
    background: rgba(255, 248, 241, 0.96);
}

.match-team-slot-add.is-filled {
    border-style: solid;
}

.match-team-slot-add.is-filled b {
    display: inline;
}

.match-side-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.match-side-label i {
    display: inline-flex;
    width: 22px;
    height: 22px;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-style: normal;
    font-size: 0.9rem;
}

.match-side-home i {
    background: rgba(159, 78, 40, 0.12);
    color: var(--accent-dark);
}

.match-side-away i {
    background: rgba(31, 26, 22, 0.08);
    color: var(--text);
}

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

.dashboard-mobile-list,
.dashboard-mobile-bookings {
    display: none;
}

.dashboard-player-day-card .dashboard-mobile-list {
    display: grid;
}

.dashboard-player-day-card .dashboard-gantt-shell {
    display: none;
}

.dashboard-calendar-style-card .dashboard-mobile-list {
    display: grid;
}

.dashboard-calendar-style-card .dashboard-gantt-shell {
    display: none;
}

.dashboard-mobile-bookings {
    gap: 12px;
}

.dashboard-mobile-booking-card {
    display: grid;
    gap: 10px;
    padding: 16px;
    border: 1px solid rgba(15, 26, 43, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.78);
}

.dashboard-mobile-booking-card span {
    display: block;
    margin-bottom: 4px;
    font-size: 0.74rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.dashboard-mobile-booking-card strong {
    display: block;
}

.dashboard-mobile-booking-card .button {
    width: 100%;
    justify-content: center;
}

.footer-brand-block strong {
    display: block;
    margin-bottom: 6px;
    font-size: 1.2rem;
}

.footer-brand-block p {
    margin: 0;
    color: var(--muted);
}

.footer-links-block {
    max-width: 280px;
}

.footer-links-block p {
    margin: 0 0 8px;
    color: var(--muted);
}

.footer-links-block a {
    color: var(--accent-dark);
}

.booking-gantt-card {
    gap: 20px;
}

.dashboard-gantt-card .booking-mobile-board {
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
}

.dashboard-gantt-card .booking-mobile-row {
    gap: 8px;
}

.dashboard-gantt-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: center;
}

.dashboard-gantt-table th,
.dashboard-gantt-table td {
    min-width: 120px;
    text-align: center;
}

.dashboard-gantt-table td.slot-booked,
.booking-panel .gantt-table td.slot-booked {
    min-width: 168px;
}

.dashboard-gantt-table thead th {
    position: sticky;
    top: 0;
    background: #fffaf4;
    z-index: 1;
}

.dashboard-gantt-table tbody td:first-child,
.dashboard-gantt-table thead th:first-child {
    position: sticky;
    left: 0;
    background: #fffaf4;
    z-index: 2;
}

.dashboard-gantt-resource {
    min-width: 200px;
    text-align: left;
    font-weight: 700;
}

@media (min-width: 769px) and (max-width: 1366px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .site-header,
    main,
    .site-footer,
    #dashboard-shell,
    .dashboard-ops,
    .dashboard-player-ops,
    .dashboard-player-week-card,
    .dashboard-week-gantt-shell,
    .dashboard-range-matrix-card,
    .dashboard-calendar-resource-card,
    .dashboard-player-menu-card,
    .dashboard-calendar-grouped-panel,
    .dashboard-calendar-resource-list {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
        min-width: 0;
    }

    .wrap,
    .home-hero-inner,
    .home-section {
        width: min(1180px, calc(100% - 40px));
    }

    .nav,
    .footer-grid {
        gap: 16px;
    }

    .nav-home-links a {
        font-size: 0.84rem;
    }

    .nav-home-links {
        gap: 10px;
        justify-content: center;
    }

    .home-header-actions {
        gap: 8px;
    }

    .brand-logo-shell {
        width: 82px;
        height: 72px;
    }

    .brand-logo-image {
        width: 174px;
        height: 174px;
        transform: scale(1.46);
    }

    .home-hero {
        min-height: 400px;
    }

    .home-hero-inner {
        padding: 72px 0 56px;
    }

    .home-hero-logo {
        width: min(280px, 34vw);
    }

    .home-about-grid,
    .home-highlight,
    .home-contact-grid,
    .home-location-layout,
    .home-service-hero,
    .home-service-grid,
    .feature-grid,
    .steps-grid,
    .hero-panel-grid,
    .highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-service-cards,
    .home-extra-grid,
    .home-about-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-grid {
        align-items: start;
        gap: 24px;
    }

    .auth-grid,
    .auth-register-grid,
    .admin-grid,
    .role-grid,
    .weekday-grid,
    .staff-user-create-grid,
    .staff-sheet-modal .booking-modal-form,
    .staff-user-modal-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-section-head {
        align-items: start;
        gap: 14px;
    }

    .staff-field-card {
        padding: 22px;
        border-radius: 24px;
    }

    .dashboard-player-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

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

    .dashboard-calendar-resource-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }

    .dashboard-calendar-resource-card,
    .dashboard-player-menu-card,
    .dashboard-player-week-card {
        padding: 20px;
    }

    .staff-field-create-grid,
    .staff-field-edit-grid,
    .staff-slot-grid,
    .staff-band-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .staff-field-panels {
        grid-template-columns: 1fr;
    }

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

    .staff-band-row {
        grid-template-columns: 1fr 1fr 1fr;
    }

    .booking-toolbar,
    .booking-panel-head,
    .dashboard-ops-head,
    .dashboard-gantt-head,
    .booking-backoffice-head {
        align-items: start;
        gap: 16px;
    }

    .booking-board,
    .booking-grid-shell {
        grid-template-columns: 1.4fr 1fr;
    }

    .booking-form-inline,
    .booking-inline-summary,
    .dashboard-date-form,
    .dashboard-single-date-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-week-nav-head {
        align-items: center;
        gap: 14px;
    }

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

    .dashboard-week-form .button {
        grid-column: auto;
        width: 100%;
    }

    .dashboard-calendar-grid,
    .dashboard-week-day-panels,
    .dashboard-gantt-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .dashboard-range-panel,
    .dashboard-week-gantt-shell,
    .dashboard-player-week-card,
    .dashboard-player-menu-card,
    .dashboard-calendar-resource-card {
        padding: 20px;
    }

    .dashboard-slot-button {
        min-width: 88px;
    }

    .booking-modal-dialog {
        width: min(860px, calc(100vw - 48px));
        max-width: min(860px, calc(100vw - 48px));
        padding: 22px;
    }

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

    .booking-modal-wide {
        grid-column: 1 / -1;
    }

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

    .dashboard-manual-form-head {
        grid-template-columns: 1fr auto;
        align-items: center;
    }

    .coach-lesson-type-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

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

    .dashboard-calendar-day-row {
        --dashboard-slot-size: 30px;
        --dashboard-slot-height: 50px;
        gap: 5px;
        padding: 8px 0;
    }

    .dashboard-calendar-hour-strip {
        margin-bottom: 3px;
    }

    .dashboard-calendar-hour-label {
        font-size: 0.66rem;
    }

    .booking-panel .gantt-table th,
    .booking-panel .gantt-table td,
    .dashboard-gantt-table th,
    .dashboard-gantt-table td {
        min-width: 92px;
    }

    .dashboard-calendar-day-label {
        min-height: 28px;
        padding: 0 10px;
        font-size: 0.78rem;
    }

    .dashboard-calendar-slot-caption {
        font-size: 0.56rem;
    }
}

@media (min-width: 769px) and (max-width: 1366px) and (orientation: portrait) {
    .wrap,
    .home-hero-inner,
    .home-section {
        width: min(980px, calc(100% - 36px));
    }

    .nav {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 12px;
    }

    .nav-home-links {
        flex-wrap: wrap;
        gap: 12px;
    }

    .home-hero {
        min-height: 380px;
    }

    .home-hero-inner {
        padding: 64px 0 48px;
    }

    .home-hero-logo {
        width: min(240px, 42vw);
    }

    .home-about-grid,
    .home-highlight,
    .home-contact-grid,
    .home-location-layout,
    .home-service-hero,
    .home-service-grid,
    .feature-grid,
    .steps-grid,
    .hero-panel-grid,
    .highlight-grid,
    .dashboard-calendar-grid,
    .dashboard-week-day-panels,
    .dashboard-gantt-grid,
    .booking-board,
    .booking-grid-shell {
        grid-template-columns: 1fr;
    }

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

    .dashboard-week-nav-head,
    .booking-toolbar,
    .booking-panel-head,
    .dashboard-ops-head,
    .dashboard-gantt-head,
    .booking-backoffice-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-week-form,
    .dashboard-date-form,
    .dashboard-single-date-form,
    .booking-form-inline,
    .booking-inline-summary {
        grid-template-columns: 1fr;
    }

    .dashboard-week-form .button {
        grid-column: auto;
    }

    .dashboard-calendar-resource-list,
    .dashboard-lessons-grid,
    .dashboard-mobile-bookings,
    .staff-field-create-grid,
    .staff-field-edit-grid,
    .staff-slot-grid,
    .staff-band-grid,
    .auth-grid,
    .auth-register-grid,
    .admin-grid,
    .role-grid,
    .weekday-grid,
    .staff-user-create-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-lessons-bookings-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-lessons-bookings-list {
        overflow: visible;
        padding-right: 0;
    }

    .dashboard-lessons-table-head {
        display: none;
    }

    .dashboard-lessons-table-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .dashboard-lessons-table-cell {
        display: grid;
        gap: 4px;
        min-width: 0;
        padding: 10px 12px;
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.72);
        border: 1px solid rgba(111, 52, 25, 0.08);
    }

    .dashboard-lessons-table-cell span {
        display: block;
        margin: 0;
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .dashboard-lessons-booking-item {
        padding: 12px;
    }

    .dashboard-lessons-booking-actions {
        justify-content: stretch;
    }

    .dashboard-lessons-booking-actions .button {
        width: 100%;
    }

    .staff-band-row,
    .staff-field-summary,
    .staff-field-panels {
        grid-template-columns: 1fr;
    }

    .home-location-card {
        padding: 22px;
        border-radius: 24px;
    }

    .home-location-layout {
        gap: 20px;
    }

    .home-location-map iframe {
        min-height: 340px;
        height: 340px;
    }

    .booking-modal-dialog {
        width: min(760px, calc(100vw - 40px));
        max-width: min(760px, calc(100vw - 40px));
        padding: 20px;
    }

    .booking-modal-form,
    .dashboard-manual-mode-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar-day-row {
        --dashboard-slot-size: 24px;
        --dashboard-slot-height: 46px;
    }
}

@media (min-width: 769px) and (max-width: 1366px) and (orientation: landscape) {
    .wrap,
    .home-hero-inner,
    .home-section {
        width: min(1240px, calc(100% - 44px));
    }

    .nav {
        grid-template-columns: auto 1fr auto;
        align-items: center;
    }

    .nav-home-links {
        justify-content: center;
        gap: 10px;
    }

    .home-hero {
        min-height: 360px;
    }

    .home-hero-inner {
        padding: 56px 0 44px;
    }

    .home-hero-logo {
        width: min(240px, 28vw);
    }

    .home-about-grid,
    .home-highlight,
    .home-contact-grid,
    .home-service-hero,
    .home-service-grid,
    .feature-grid,
    .steps-grid,
    .hero-panel-grid,
    .highlight-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-service-cards,
    .home-extra-grid,
    .home-about-stats,
    .dashboard-calendar-grid,
    .dashboard-week-day-panels,
    .dashboard-gantt-grid,
    .dashboard-lessons-grid,
    .dashboard-mobile-bookings {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .home-location-card {
        width: min(980px, 100%);
    }

    .dashboard-player-menu {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .booking-board,
    .booking-grid-shell {
        grid-template-columns: minmax(0, 1.5fr) minmax(320px, 0.9fr);
    }

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

    .booking-modal-dialog {
        width: min(920px, calc(100% - 44px));
        max-width: min(920px, calc(100% - 44px));
    }

    .dashboard-calendar-resource-list {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar-resource-card,
    .dashboard-week-gantt-shell,
    .dashboard-player-week-card {
        padding: 24px;
    }

    .dashboard-calendar-day-list {
        gap: 12px;
    }

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

    .booking-modal-wide,
    .coach-lesson-type-input {
        grid-column: 1 / -1;
    }

    .dashboard-calendar-day-row {
        --dashboard-slot-size: 32px;
        --dashboard-slot-height: 50px;
        gap: 6px;
        padding: 10px 0;
    }

    .dashboard-calendar-hour-label {
        font-size: 0.68rem;
    }

    .dashboard-calendar-day-label {
        min-height: 30px;
        padding: 0 11px;
        font-size: 0.8rem;
    }

    .dashboard-calendar-slot-caption {
        font-size: 0.58rem;
    }

    .dashboard-calendar-timeline-scroll {
        overflow-x: auto;
        overflow-y: hidden;
    }

    .dashboard-calendar-timeline-inner {
        min-width: max-content;
    }
}

@media (max-width: 768px) {
    html,
    body {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .site-header,
    main,
    .site-footer {
        width: 100%;
        max-width: 100%;
        overflow-x: clip;
    }

    .wrap,
    .home-hero-inner,
    .home-section {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        padding-left: 16px;
        padding-right: 16px;
    }

    main.wrap {
        padding-left: 16px;
        padding-right: 16px;
    }

    body.page-dashboard main.wrap {
        padding-bottom: calc(112px + env(safe-area-inset-bottom));
    }

    body.page-staff main.wrap {
        padding-bottom: calc(112px + env(safe-area-inset-bottom));
    }

    #dashboard-shell,
    .dashboard-ops,
    .dashboard-player-ops,
    .dashboard-player-week-card,
    .dashboard-week-gantt-shell,
    .dashboard-range-matrix-card,
    .dashboard-calendar-resource-card,
    .dashboard-player-menu-card {
        width: 100%;
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
        min-width: 0;
        overflow-x: clip;
    }

    .dashboard-app-topbar {
        align-items: stretch;
        flex-direction: column;
        padding: 18px;
        border-radius: 24px;
    }

    .card {
        padding: 18px;
        border-radius: 22px;
    }

    .hero,
    .grid-2,
    .footer-grid,
    .booking-admin-actions {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .nav {
        display: grid;
        grid-template-columns: 1fr auto;
        align-items: center;
        gap: 14px;
    }

    .hero-showcase,
    .auth-grid,
    .auth-register-grid,
    .home-service-hero,
    .home-service-grid,
    .feature-grid,
    .steps-grid,
    .hero-panel-grid,
    .highlight-grid,
    .home-about-grid,
    .home-about-stats,
    .home-service-cards,
    .home-extra-grid,
    .home-highlight,
    .home-contact-grid,
    .home-location-layout,
    .match-team-grid {
        grid-template-columns: 1fr;
    }

    .home-location-card {
        padding: 18px;
        border-radius: 22px;
    }

    .home-location-map iframe {
        min-height: 280px;
        height: 280px;
    }

    .site-header .nav-mobile-toggle {
        display: inline-flex !important;
        justify-self: end;
    }

    .nav-home-links {
        display: none;
        grid-column: 1 / -1;
        width: 100%;
        padding: 16px;
        border-radius: 22px;
        background: rgba(255, 250, 245, 0.98);
        border: 1px solid rgba(159, 78, 40, 0.12);
        box-shadow: 0 20px 40px rgba(58, 31, 14, 0.08);
    }

    .nav-mobile-checkbox:checked ~ .nav-home-links {
        display: grid;
    }

    .nav-home-links a {
        padding: 10px 0;
    }

    .nav-mobile-cta {
        display: inline-flex !important;
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .home-header-actions {
        display: none;
    }

    .app-install-strip {
        padding: 12px 16px 0;
    }

    .app-install-strip-inner {
        width: 100%;
    }

    .app-install-strip .app-install-button.is-ready {
        width: 100%;
        justify-content: center;
    }

    .cookie-policy-actions {
        width: 100%;
        flex-direction: column;
    }

    .cookie-policy-actions .button {
        width: 100%;
        justify-content: center;
    }

    .brand-logo-shell {
        width: 104px;
        height: 80px;
    }

    .brand-logo-image {
        width: 186px;
        height: 186px;
        transform: scale(1.55);
    }

    .home-hero {
        min-height: 360px;
    }

    .home-hero-inner {
        padding: 40px 0 28px;
    }

    .home-hero-logo {
        width: min(210px, 56vw);
        margin-bottom: 12px;
    }

    .home-hero-kicker {
        font-size: 1.35rem;
    }

    nav {
        width: 100%;
        gap: 0;
    }

    .footer-grid {
        align-items: flex-start;
    }

    .dashboard-lessons-bookings-card {
        min-height: 0 !important;
        max-height: none !important;
        overflow: hidden !important;
    }

    .dashboard-lessons-bookings-meta {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-lessons-bookings-list {
        overflow: visible;
        padding-right: 0;
    }

    .dashboard-lessons-table-head {
        display: none !important;
    }

    .dashboard-lessons-table-row {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 10px !important;
    }

    .dashboard-lessons-table-cell {
        display: grid !important;
        gap: 4px !important;
        min-width: 0;
        padding: 10px 12px !important;
        border-radius: 14px !important;
        background: rgba(255, 255, 255, 0.72) !important;
        border: 1px solid rgba(111, 52, 25, 0.08) !important;
    }

    .dashboard-lessons-table-cell span {
        display: block !important;
        margin: 0;
        font-size: 0.74rem;
        letter-spacing: 0.08em;
        text-transform: uppercase;
        color: var(--muted);
    }

    .dashboard-lessons-booking-item {
        padding: 12px !important;
    }

    .dashboard-lessons-booking-actions {
        justify-content: stretch;
    }

    .dashboard-lessons-booking-actions .button {
        width: 100%;
    }

    .dashboard-app-stats {
        grid-template-columns: 1fr;
    }

    .dashboard-player-menu {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .dashboard-player-menu-item {
        min-height: 58px;
        border-radius: 18px;
        font-size: 0.9rem;
    }

    .dashboard-app-nav-card {
        display: none;
    }

    .dashboard-app-bottom-nav {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: max(12px, env(safe-area-inset-bottom));
        padding: 10px;
        border-radius: 24px;
        background: rgba(255, 250, 245, 0.96);
        border: 1px solid rgba(159, 78, 40, 0.14);
        box-shadow: 0 18px 34px rgba(58, 31, 14, 0.12);
        backdrop-filter: blur(18px);
        z-index: 40;
    }

    .dashboard-app-bottom-link {
        min-height: 50px;
        padding: 0 8px;
        font-size: 0.78rem;
        line-height: 1.15;
    }

    .dashboard-app-bottom-link:first-child {
        justify-self: center;
    }

    .staff-nav-shell {
        display: none;
    }

    .hero-copy h1,
    .section-heading h2,
    .cta-banner h2 {
        max-width: none;
    }

    .cta-banner {
        flex-direction: column;
        align-items: flex-start;
    }

    .highlight-band {
        padding: 24px;
    }

    .home-section {
        padding-top: 56px;
    }

    .admin-grid,
    .role-grid,
    .weekday-grid {
        grid-template-columns: 1fr;
    }

    .staff-user-create-grid,
    .staff-sheet-modal .booking-modal-form,
    .staff-user-modal-summary {
        grid-template-columns: 1fr;
    }

    .staff-section-head {
        display: grid;
        gap: 12px;
    }

    .staff-field-card {
        padding: 18px;
        border-radius: 22px;
    }

    .staff-field-create-grid,
    .staff-field-edit-grid,
    .staff-slot-grid,
    .staff-band-grid {
        grid-template-columns: 1fr;
    }

    .staff-field-panels {
        grid-template-columns: 1fr;
    }

    .staff-field-summary,
    .staff-band-row {
        grid-template-columns: 1fr;
    }

    .staff-pill {
        width: 100%;
        justify-content: center;
        text-align: center;
    }

    .staff-field-actions,
    .staff-form-submit {
        justify-content: stretch;
    }

    .staff-field-actions .button,
    .staff-form-submit .button {
        width: 100%;
    }

    .staff-field-edit-panel,
    .staff-field-panel {
        padding: 14px;
    }

    .booking-toolbar,
    .booking-kpis,
    .booking-backoffice-head,
    .booking-panel-head,
    .dashboard-ops-head,
    .dashboard-gantt-head {
        grid-template-columns: 1fr;
        flex-direction: column;
        align-items: flex-start;
    }

    .booking-board {
        grid-template-columns: 1fr;
    }

    .booking-panel .gantt-table th,
    .booking-panel .gantt-table td,
    .dashboard-gantt-table th,
    .dashboard-gantt-table td {
        min-width: 100px;
    }

    .booking-form-inline,
    .booking-inline-summary {
        grid-template-columns: 1fr;
    }

    .booking-modal-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 14px;
        overflow-x: clip;
    }

    .booking-modal-form > label,
    .booking-modal-form > .booking-modal-wide,
    .booking-modal-form > .coach-lesson-type-input {
        min-width: 0;
    }

    .dashboard-booking-mode {
        width: 100%;
    }

    .dashboard-booking-mode .button {
        width: 100%;
        min-width: 0;
    }

    .dashboard-manual-mode-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-manual-form-head {
        grid-template-columns: 1fr;
        display: grid;
        justify-content: stretch;
    }

    .dashboard-manual-back {
        margin-left: 0;
        width: 100%;
    }

    .booking-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
        justify-items: center;
    }

    .booking-toolbar label {
        width: 100%;
        max-width: 320px;
        justify-self: center;
    }

    .booking-toolbar-button {
        width: 100%;
        max-width: 320px;
        min-height: 44px;
        padding: 10px 16px;
        font-size: 0.95rem;
        justify-self: center;
    }

    .booking-modal-dialog {
        width: 100%;
        max-width: 100%;
        margin: 0 auto;
        padding: 14px;
        border-radius: 24px;
        overflow-x: clip;
    }

    .booking-modal-head {
        flex-direction: column;
        align-items: stretch;
    }

    .booking-modal-close {
        width: 100%;
    }

    .booking-mobile-hide {
        display: none;
    }

    .booking-form button.button {
        width: 100%;
        justify-self: stretch;
    }

    .booking-sidepanel-summary div {
        padding: 10px 12px;
    }

    .booking-sidepanel-summary strong {
        font-size: 0.92rem;
    }

    .coach-lesson-type-options {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .coach-lesson-type-pill {
        min-height: 42px;
        padding: 0 10px;
        font-size: 0.92rem;
    }

    .coach-lesson-participants-section {
        padding: 12px;
        gap: 10px;
    }

    .coach-lesson-participants-head strong {
        font-size: 0.92rem;
    }

    .coach-lesson-participants-head span {
        font-size: 0.84rem;
    }

    .dashboard-date-form {
        grid-template-columns: 1fr;
    }

    .dashboard-week-nav-head {
        flex-direction: column;
        align-items: stretch;
    }

    .dashboard-week-form {
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: stretch;
        gap: 8px;
    }

    .dashboard-week-form .button {
        min-height: 44px;
        width: 100%;
        grid-column: 1 / -1;
        align-self: stretch;
    }

    .dashboard-week-day-panels {
        grid-template-columns: 1fr;
    }

    .dashboard-player-week-card {
        gap: 10px;
    }

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

    .dashboard-single-date-form {
        grid-template-columns: 1fr;
    }

    .dashboard-single-date-form input[type="date"] {
        width: 100%;
        max-width: none;
        min-height: 40px;
        font-size: 0.95rem;
    }

    .dashboard-calendar-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-calendar-week-nav {
        width: 100%;
        justify-content: space-between;
    }

    .dashboard-lessons-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-week-gantt-shell {
        gap: 10px;
        padding: 16px;
    }

    .dashboard-week-nav {
        gap: 10px;
    }

    .dashboard-week-nav-title {
        gap: 0;
        text-align: left;
    }

    .dashboard-week-nav-title strong {
        font-size: 0.96rem;
    }

    .dashboard-week-form label {
        gap: 4px;
    }

    .dashboard-range-panel {
        gap: 10px;
        padding-bottom: 12px;
    }

    .dashboard-range-panel h4 {
        font-size: 0.98rem;
    }

    .booking-mobile-list {
        display: grid;
        gap: 14px;
    }

    .dashboard-mobile-list,
    .dashboard-mobile-bookings {
        display: grid;
    }

    .dashboard-player-day-card .dashboard-gantt-shell {
        display: none;
    }

    .dashboard-player-action-card {
        padding: 16px;
    }

    .dashboard-slot-button {
        min-width: 72px;
        flex: 1 1 calc(33.333% - 10px);
    }

    .dashboard-match-card {
        padding: 16px;
    }

    .dashboard-result-form {
        grid-template-columns: 1fr;
    }

    .match-team-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-table-shell {
        display: none;
    }

    .dashboard-range-matrix-shell {
        display: block;
        margin-left: 0;
        margin-right: 0;
        padding-left: 0;
        padding-right: 0;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .dashboard-range-matrix-table {
        width: max-content;
    }

    .dashboard-range-matrix-table th,
    .dashboard-range-matrix-table td {
        min-width: 84px;
        padding: 8px 6px;
    }

    .dashboard-range-date-col,
    .dashboard-range-date {
        min-width: 88px;
        max-width: 88px;
        font-size: 0.74rem;
        line-height: 1.2;
    }

    .dashboard-range-resource-col,
    .dashboard-range-resource {
        min-width: 116px;
    }

    .dashboard-range-date,
    .dashboard-range-resource,
    .dashboard-range-matrix-table thead th.dashboard-range-date-col,
    .dashboard-range-matrix-table thead th.dashboard-range-resource-col {
        position: static;
        left: auto;
    }

    .booking-grid-shell {
        display: none;
    }

    .booking-gantt-card {
        padding: 16px;
    }

    .dashboard-gantt-card .booking-mobile-board {
        margin-left: 0;
        margin-right: 0;
    }

    .dashboard-gantt-card .booking-mobile-row {
        gap: 6px;
    }

    .dashboard-gantt-card .booking-mobile-resource-head,
    .dashboard-gantt-card .booking-mobile-strip {
        margin-left: 0;
        margin-right: 0;
    }

    .booking-mobile-slot {
        flex-basis: 60px;
        min-width: 60px;
        min-height: 56px;
    }

    .booking-mobile-slot-booked {
        width: auto;
        min-width: 92px;
        max-width: 140px;
    }

    .booking-mobile-resource-link {
        font-size: 1rem;
    }

    .dashboard-calendar-resource-card {
        padding: 10px;
    }

    .dashboard-calendar-day-row {
        gap: 5px;
        padding: 6px 0;
    }

    .dashboard-calendar-day-label {
        font-size: 0.76rem;
        min-height: 28px;
        padding: 0 10px;
    }

    .dashboard-calendar-day-row {
        --dashboard-slot-size: 18px;
        --dashboard-slot-height: 40px;
    }

    .dashboard-calendar-day-row-player {
        --dashboard-slot-size: 18px;
        --dashboard-slot-height: 40px;
    }

    .dashboard-calendar-timeline-inner {
        gap: 0;
    }

    .dashboard-calendar-hour-strip {
        display: flex;
        margin-bottom: 5px;
        padding-left: 0;
        padding-right: 0;
    }

    .dashboard-calendar-hour-label {
        font-size: 0.66rem;
        letter-spacing: -0.02em;
    }

    .dashboard-calendar-hour-label-text {
        transform: none;
    }

    .dashboard-calendar-resource-card {
        padding: 8px 10px 10px;
        background: transparent;
        border: 0;
        border-radius: 0;
    }

    .dashboard-calendar-resource-head,
    .dashboard-calendar-day-head {
        padding: 0;
    }

    .dashboard-calendar-day-strip {
        border-radius: 0;
        box-shadow: none;
        background: transparent;
    }

    .dashboard-calendar-day-strip .booking-mobile-slot,
    .dashboard-calendar-day-strip .booking-mobile-slot-available,
    .dashboard-calendar-day-strip .booking-mobile-slot-empty {
        min-height: 48px;
        padding: 8px 3px 4px;
    }

    .dashboard-calendar-day-strip .booking-mobile-slot-booked {
        min-width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
        max-width: calc(var(--dashboard-slot-size) * var(--slot-span, 1));
        min-height: 48px;
        padding: 8px 5px 4px;
    }

    .dashboard-calendar-slot-caption {
        margin-top: 0;
        font-size: 0.54rem;
        line-height: 1;
    }

    .booking-daily-admin-list {
        padding: 18px;
    }

    .booking-daily-table {
        min-width: 0;
    }
}
