@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@600&family=Sora:wght@300;400;600;700&display=swap');

:root {
    color-scheme: light;
    --bg: #f5f1eb;
    --bg-deep: #ece6de;
    --ink: #101114;
    --muted: #5d646f;
    --line: rgba(16, 17, 20, 0.1);
    --line-strong: rgba(16, 17, 20, 0.18);
    --panel: rgba(255, 255, 255, 0.76);
    --panel-strong: rgba(255, 255, 255, 0.9);
    --gold: #c5aa7c;
    --blue: #b8c2cf;
    --success: #0f7d53;
    --success-bg: rgba(15, 125, 83, 0.1);
    --error: #b23a3a;
    --error-bg: rgba(178, 58, 58, 0.1);
    --shadow: 0 30px 120px rgba(16, 17, 20, 0.12);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: "Sora", sans-serif;
    color: var(--ink);
    background:
        radial-gradient(circle at 10% 15%, rgba(197, 170, 124, 0.28), transparent 23%),
        radial-gradient(circle at 85% 18%, rgba(184, 194, 207, 0.28), transparent 24%),
        linear-gradient(140deg, var(--bg) 0%, #fbfaf8 48%, var(--bg-deep) 100%);
}

body::before {
    content: "";
    position: fixed;
    inset: 20px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    border-radius: 34px;
    pointer-events: none;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(16, 17, 20, 0.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(16, 17, 20, 0.025) 1px, transparent 1px);
    background-size: 90px 90px;
    mask-image: radial-gradient(circle at center, black 30%, transparent 78%);
    pointer-events: none;
}

a {
    color: inherit;
}

code {
    font-family: "Sora", sans-serif;
    font-size: 0.95em;
}

.page-shell {
    width: min(1100px, calc(100% - 2rem));
    margin: 0 auto;
    padding: 2rem 0 3rem;
}

.hero-card {
    position: relative;
    overflow: hidden;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 38px;
    box-shadow: var(--shadow);
    backdrop-filter: blur(18px);
}

.brand-stage {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    min-height: 60vh;
    padding: clamp(2.5rem, 7vw, 5rem) clamp(1.5rem, 6vw, 4rem) 2rem;
    text-align: center;
}

.brand-stage::before {
    content: "";
    position: absolute;
    width: min(76vw, 620px);
    aspect-ratio: 1;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.08) 58%, transparent 74%);
    filter: blur(4px);
}

.eyebrow,
.card-kicker {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    padding: 0.7rem 1rem;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.64);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.logo-frame {
    position: relative;
    z-index: 1;
    width: min(940px, 100%);
    padding: clamp(1rem, 2.4vw, 1.6rem);
    border-radius: 30px;
    border: 1px solid var(--line-strong);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.58));
}

.logo-frame img {
    display: block;
    width: 100%;
    height: auto;
}

.logo-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.logo-fallback .wordmark {
    font-size: clamp(4rem, 14vw, 8rem);
    font-weight: 600;
    letter-spacing: 0.28em;
    text-indent: 0.28em;
    line-height: 0.95;
}

.logo-fallback .tagline {
    margin: 0;
    font-size: clamp(1rem, 2.4vw, 1.6rem);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.intro-copy {
    position: relative;
    z-index: 1;
    max-width: 54rem;
}

.intro-copy h1 {
    margin: 0 0 0.75rem;
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.02;
    font-weight: 600;
}

.intro-copy p {
    margin: 0 auto;
    max-width: 48rem;
    font-size: 1.02rem;
    line-height: 1.7;
    color: var(--muted);
}

.section-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(16, 17, 20, 0.18), transparent);
}

.access-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
    gap: 1.5rem;
    padding: clamp(1.25rem, 4vw, 2.6rem);
}

.story-card,
.form-card {
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 1.5rem;
}

.story-card h2,
.form-card h2 {
    margin: 0.8rem 0 0.85rem;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    line-height: 1.1;
}

.story-card p,
.card-copy,
.site-caption,
.locked-email {
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.access-list {
    list-style: none;
    display: grid;
    gap: 0.9rem;
    margin: 1.5rem 0;
    padding: 0;
}

.access-list li {
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(16, 17, 20, 0.045);
    border: 1px solid rgba(16, 17, 20, 0.06);
    line-height: 1.5;
}

.site-caption {
    padding-top: 1rem;
    border-top: 1px solid var(--line);
}

.stack,
.inline-form {
    margin-top: 1.2rem;
}

.stack {
    display: grid;
    gap: 1rem;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.field {
    display: grid;
    gap: 0.5rem;
}

.field span {
    font-size: 0.92rem;
    font-weight: 600;
}

.field input:not([type="checkbox"]),
.field select,
.field textarea {
    width: 100%;
    appearance: none;
    border: 1px solid rgba(16, 17, 20, 0.13);
    border-radius: 18px;
    background: var(--panel-strong);
    color: var(--ink);
    padding: 0.95rem 1rem;
    font: inherit;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.field textarea {
    min-height: 132px;
    resize: vertical;
}

.field input:not([type="checkbox"])::placeholder,
.field textarea::placeholder {
    color: #8b919a;
}

.field input:not([type="checkbox"]):focus,
.field select:focus,
.field textarea:focus {
    outline: none;
    border-color: rgba(16, 17, 20, 0.34);
    box-shadow: 0 0 0 4px rgba(16, 17, 20, 0.08);
    transform: translateY(-1px);
}

.button-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-top: 0.3rem;
}

.button {
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 0.95rem 1.4rem;
    font: inherit;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

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

.button-primary {
    color: #fff;
    background: linear-gradient(135deg, #111318, #262c37);
    box-shadow: 0 16px 28px rgba(17, 19, 24, 0.18);
}

.button-secondary {
    color: var(--ink);
    background: rgba(16, 17, 20, 0.06);
    border: 1px solid rgba(16, 17, 20, 0.1);
}

.alert {
    margin-bottom: 1rem;
    padding: 0.95rem 1rem;
    border-radius: 18px;
    border: 1px solid transparent;
    line-height: 1.5;
}

.alert-success {
    color: var(--success);
    background: var(--success-bg);
    border-color: rgba(15, 125, 83, 0.16);
}

.alert-error {
    color: var(--error);
    background: var(--error-bg);
    border-color: rgba(178, 58, 58, 0.16);
}

.locked-email {
    margin-top: 0.9rem;
    padding: 0.9rem 1rem;
    border-radius: 18px;
    background: rgba(197, 170, 124, 0.12);
    color: var(--ink);
}

.footer-note {
    margin: 0;
    padding: 0 1.5rem 2rem;
    text-align: center;
    color: var(--muted);
    font-size: 0.92rem;
}

@keyframes rise {
    from {
        opacity: 0;
        transform: translateY(22px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulseFrame {
    0%,
    100% {
        box-shadow: inset 0 0 0 0 rgba(197, 170, 124, 0);
    }

    50% {
        box-shadow: inset 0 0 0 1px rgba(197, 170, 124, 0.24);
    }
}

@media (prefers-reduced-motion: no-preference) {
    .hero-card {
        animation: rise 720ms ease both;
    }

    .logo-frame {
        animation: pulseFrame 8s ease-in-out infinite;
    }
}

.admin-page .page-shell {
    padding-top: 1.5rem;
}

.admin-card {
    padding: clamp(1.25rem, 3vw, 2rem);
}

.admin-topbar {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.admin-heading h1 {
    margin: 0.8rem 0 0.7rem;
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.02;
}

.admin-heading p {
    max-width: 48rem;
    margin: 0;
    line-height: 1.7;
    color: var(--muted);
}

.admin-top-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-login-grid {
    padding: 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.stat-card {
    display: grid;
    gap: 0.35rem;
    padding: 1.2rem 1.25rem;
    background: rgba(255, 255, 255, 0.74);
    border: 1px solid var(--line);
    border-radius: 24px;
}

.stat-label {
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.stat-value {
    font-size: clamp(1.8rem, 3vw, 2.6rem);
    line-height: 1;
}

.admin-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.field-checkbox {
    align-content: start;
}

.checkbox-line {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 56px;
    padding: 0.95rem 1rem;
    border: 1px solid rgba(16, 17, 20, 0.13);
    border-radius: 18px;
    background: var(--panel-strong);
    color: var(--ink);
}

.checkbox-line input {
    width: 18px;
    height: 18px;
    margin: 0;
}

.table-card {
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid var(--line);
    border-radius: 28px;
    padding: 1.5rem;
}

.table-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.table-card-header h2 {
    margin: 0.8rem 0 0;
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

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

.dashboard-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 920px;
}

.dashboard-table th,
.dashboard-table td {
    padding: 1rem 0.85rem;
    border-bottom: 1px solid rgba(16, 17, 20, 0.08);
    vertical-align: top;
    text-align: left;
}

.dashboard-table th {
    font-size: 0.84rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.table-subtext {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.85rem;
    color: var(--muted);
}

.status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 92px;
    padding: 0.5rem 0.75rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 600;
}

.badge-active {
    background: rgba(15, 125, 83, 0.12);
    color: var(--success);
}

.badge-inactive {
    background: rgba(16, 17, 20, 0.08);
    color: var(--muted);
}

.badge-expired,
.badge-exhausted {
    background: rgba(178, 58, 58, 0.12);
    color: var(--error);
}

.table-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.admin-calendar-card {
    margin-bottom: 1.5rem;
}

.admin-calendar-toolbar {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 0.8fr) auto;
    gap: 1rem;
    align-items: end;
    margin-bottom: 1.25rem;
}

.admin-calendar-actions {
    justify-content: flex-end;
    margin-top: 0;
}

.admin-calendar-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 1rem;
}

.admin-calendar-heading h3 {
    margin: 0.45rem 0 0;
    font-size: clamp(1.4rem, 2.8vw, 2rem);
    line-height: 1.05;
}

.admin-week-preview {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.admin-calendar-scroll {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.admin-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(240px, 1fr));
    gap: 1rem;
    min-width: 1760px;
}

.admin-day-column {
    display: grid;
    gap: 0.9rem;
    align-content: start;
    min-height: 100%;
    padding: 1rem;
    border-radius: 26px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(246, 242, 236, 0.72));
}

.admin-day-column.is-today {
    border-color: rgba(16, 17, 20, 0.18);
    box-shadow: inset 0 0 0 1px rgba(197, 170, 124, 0.28);
}

.admin-day-header {
    display: grid;
    gap: 0.85rem;
}

.admin-day-header h3 {
    margin: 0.65rem 0 0;
    font-size: 1.35rem;
    line-height: 1.05;
}

.admin-day-counts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.admin-day-counts span {
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: rgba(16, 17, 20, 0.05);
    border: 1px solid rgba(16, 17, 20, 0.08);
    font-size: 0.82rem;
    color: var(--muted);
}

.admin-day-empty {
    min-height: 130px;
}

.admin-event-list {
    display: grid;
    gap: 0.85rem;
}

.admin-event-card {
    display: grid;
    gap: 0.65rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.admin-event-topline {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
}

.admin-event-time {
    font-size: 0.92rem;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.admin-event-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.35rem 0.6rem;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.admin-event-card h4 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.35;
}

.admin-event-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.55;
    font-size: 0.92rem;
}

.admin-event-window {
    border-left: 4px solid var(--gold);
}

.admin-event-window .admin-event-badge {
    background: rgba(197, 170, 124, 0.18);
    color: #7b5f2f;
}

.admin-event-blockout {
    border-left: 4px solid var(--error);
}

.admin-event-blockout .admin-event-badge {
    background: rgba(178, 58, 58, 0.12);
    color: var(--error);
}

.admin-event-booking {
    border-left: 4px solid #262c37;
}

.admin-event-booking .admin-event-badge {
    background: rgba(38, 44, 55, 0.1);
    color: #262c37;
}

.admin-planner-stage {
    display: grid;
    grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
    gap: 1rem;
    align-items: start;
    margin-bottom: 1.25rem;
}

.admin-planner-meta h3 {
    margin: 0.8rem 0 0.7rem;
    font-size: clamp(1.35rem, 2.6vw, 1.9rem);
    line-height: 1.08;
}

.admin-selection-status {
    margin-top: 0.9rem;
}

.admin-planner-scroll {
    overflow-x: auto;
    padding-bottom: 0.35rem;
}

.admin-planner-grid {
    --planner-minute-height: 1.05px;
    display: grid;
    grid-template-columns: minmax(160px, 190px) repeat(7, minmax(160px, 1fr));
    gap: 0.75rem;
    align-items: start;
    min-width: 1440px;
}

.admin-planner-corner,
.admin-planner-day-title {
    padding: 0.9rem 1rem;
    border-radius: 20px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.admin-planner-corner {
    display: grid;
    gap: 0.45rem;
    align-content: start;
    min-height: 108px;
}

.admin-planner-corner strong {
    font-size: 1rem;
}

.admin-planner-corner p {
    margin: 0;
    color: var(--muted);
    line-height: 1.5;
    font-size: 0.9rem;
}

.admin-planner-day-title {
    display: grid;
    gap: 0.35rem;
}

.admin-planner-day-title strong {
    font-size: 0.98rem;
}

.admin-planner-day-title span {
    color: var(--muted);
    font-size: 0.82rem;
}

.admin-planner-day-title.is-today {
    border-color: rgba(16, 17, 20, 0.18);
    box-shadow: inset 0 0 0 1px rgba(197, 170, 124, 0.24);
}

.admin-planner-time-rail {
    position: relative;
    height: calc(var(--planner-range-minutes) * var(--planner-minute-height));
    padding-right: 0.5rem;
}

.admin-planner-hour {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(var(--hour-offset-minutes) * var(--planner-minute-height));
    transform: translateY(-50%);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--muted);
    text-align: right;
}

.admin-planner-lane {
    border-radius: 22px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    background: rgba(255, 255, 255, 0.76);
    overflow: hidden;
}

.admin-planner-lane.is-today {
    border-color: rgba(16, 17, 20, 0.16);
}

.admin-planner-lane-body {
    position: relative;
    height: calc(var(--planner-range-minutes) * var(--planner-minute-height));
    background:
        repeating-linear-gradient(
            to bottom,
            rgba(16, 17, 20, 0.035) 0,
            rgba(16, 17, 20, 0.035) 1px,
            transparent 1px,
            transparent calc(15 * var(--planner-minute-height))
        ),
        repeating-linear-gradient(
            to bottom,
            rgba(16, 17, 20, 0.08) 0,
            rgba(16, 17, 20, 0.08) 1px,
            transparent 1px,
            transparent calc(60 * var(--planner-minute-height))
        ),
        linear-gradient(180deg, rgba(255, 255, 255, 0.8), rgba(247, 243, 238, 0.76));
}

.admin-planner-slot-layer,
.admin-planner-event-layer {
    position: absolute;
    inset: 0;
}

.admin-planner-slot-layer {
    display: grid;
    grid-template-rows: repeat(var(--planner-slot-count), calc(15 * var(--planner-minute-height)));
    z-index: 2;
}

.admin-planner-slot {
    appearance: none;
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    cursor: crosshair;
}

.admin-planner-slot:hover {
    background: rgba(197, 170, 124, 0.08);
}

.admin-planner-slot.is-selected {
    background: linear-gradient(180deg, rgba(197, 170, 124, 0.32), rgba(197, 170, 124, 0.18));
    box-shadow: inset 0 0 0 1px rgba(123, 95, 47, 0.2);
}

.admin-planner-slot.is-selection-start,
.admin-planner-slot.is-selection-end {
    background: linear-gradient(180deg, rgba(17, 19, 24, 0.16), rgba(197, 170, 124, 0.22));
}

.admin-planner-event-layer {
    z-index: 1;
    pointer-events: none;
}

.admin-planner-event {
    position: absolute;
    left: 8px;
    right: 8px;
    top: calc(var(--event-top-minutes) * var(--planner-minute-height));
    height: calc(var(--event-duration-minutes) * var(--planner-minute-height));
    min-height: 28px;
    padding: 0.35rem 0.45rem;
    border-radius: 14px;
    overflow: hidden;
    display: grid;
    align-content: start;
    gap: 0.18rem;
    box-shadow: 0 10px 18px rgba(16, 17, 20, 0.06);
}

.admin-planner-event strong,
.admin-planner-event span {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-planner-event strong {
    font-size: 0.76rem;
    line-height: 1.2;
}

.admin-planner-event span {
    font-size: 0.7rem;
    color: rgba(16, 17, 20, 0.7);
}

.admin-planner-event-window {
    background: linear-gradient(180deg, rgba(197, 170, 124, 0.3), rgba(197, 170, 124, 0.18));
    border: 1px solid rgba(123, 95, 47, 0.18);
}

.admin-planner-event-blockout {
    background: linear-gradient(180deg, rgba(178, 58, 58, 0.24), rgba(178, 58, 58, 0.14));
    border: 1px solid rgba(178, 58, 58, 0.18);
}

.admin-planner-event-booking {
    background: linear-gradient(180deg, rgba(38, 44, 55, 0.24), rgba(38, 44, 55, 0.14));
    border: 1px solid rgba(38, 44, 55, 0.16);
}

.button-small {
    padding: 0.7rem 1rem;
    font-size: 0.9rem;
}

.button-danger {
    color: #fff;
    background: linear-gradient(135deg, #8c2020, #b23a3a);
    box-shadow: 0 12px 24px rgba(140, 32, 32, 0.18);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.45;
    transform: none;
    box-shadow: none;
}

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

.hero-cta-row {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
}

.auth-inline-link {
    margin-top: 1rem;
    border-top: 0;
    padding-top: 0;
}

.auth-stage {
    min-height: auto;
    padding-bottom: 1.25rem;
}

.auth-grid {
    align-items: stretch;
}

.auth-logo-frame {
    width: min(760px, 100%);
}

.member-topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(16px);
    background: rgba(245, 241, 235, 0.82);
    border-bottom: 1px solid rgba(16, 17, 20, 0.08);
}

.member-topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.95rem 0;
}

.member-brand {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.member-brand img {
    display: block;
    width: min(220px, 34vw);
    height: auto;
}

.member-brand span {
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.18em;
}

.member-topbar-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.member-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.75rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(16, 17, 20, 0.1);
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.92rem;
    font-weight: 600;
}

.dashboard-shell {
    padding-top: 1.5rem;
    padding-bottom: 3.5rem;
}

.dashboard-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.member-hero-card,
.member-side-card {
    padding: 1.75rem;
}

.member-hero-copy {
    display: grid;
    gap: 1rem;
}

.member-hero-copy h1 {
    margin: 0;
    font-size: clamp(2.2rem, 5vw, 4rem);
    line-height: 0.98;
}

.member-hero-copy p {
    margin: 0;
    max-width: 44rem;
    color: var(--muted);
    line-height: 1.75;
}

.hero-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 0.95rem;
    border-radius: 999px;
    background: rgba(16, 17, 20, 0.05);
    border: 1px solid rgba(16, 17, 20, 0.08);
    font-size: 0.9rem;
    font-weight: 600;
}

.member-side-card {
    display: grid;
    gap: 0.7rem;
    align-content: start;
}

.member-side-card h2 {
    margin: 0.75rem 0 0;
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.booking-callout-date {
    margin: 0;
    font-size: 1rem;
    color: var(--muted);
}

.booking-callout-time {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.2rem);
    font-weight: 700;
}

.filter-card,
.bookings-history-panel {
    margin-bottom: 1.5rem;
}

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

.week-preview {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.85rem;
    margin-top: 1.25rem;
}

.day-pill {
    display: grid;
    gap: 0.3rem;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    background: rgba(255, 255, 255, 0.68);
    text-decoration: none;
    transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

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

.day-pill.is-selected {
    border-color: rgba(16, 17, 20, 0.22);
    background: rgba(255, 255, 255, 0.96);
}

.day-pill-label {
    color: var(--muted);
    font-size: 0.88rem;
}

.dashboard-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 1.5rem;
    margin-bottom: 1.5rem;
}

.booking-panel-copy {
    margin-bottom: 1rem;
}

.empty-state-card {
    padding: 1.25rem;
    border-radius: 22px;
    border: 1px dashed rgba(16, 17, 20, 0.14);
    background: rgba(255, 255, 255, 0.62);
    color: var(--muted);
    line-height: 1.7;
}

.slot-form {
    margin-top: 1rem;
}

.slot-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
}

.slot-card {
    appearance: none;
    display: grid;
    gap: 0.35rem;
    width: 100%;
    padding: 1rem;
    border-radius: 22px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(250, 249, 246, 0.7));
    text-align: left;
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.slot-card:hover {
    transform: translateY(-2px);
    border-color: rgba(16, 17, 20, 0.18);
    box-shadow: 0 16px 32px rgba(16, 17, 20, 0.08);
}

.slot-time {
    font-size: 1.22rem;
    font-weight: 700;
}

.slot-meta,
.slot-cleanup {
    color: var(--muted);
    font-size: 0.9rem;
}

.timeline-list {
    display: grid;
    gap: 0.9rem;
}

.timeline-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(16, 17, 20, 0.08);
}

.timeline-item h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

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

.timeline-window {
    border-left: 4px solid var(--gold);
}

.timeline-blockout {
    border-left: 4px solid var(--error);
}

.timeline-booking {
    border-left: 4px solid #262c37;
}

.booking-list {
    display: grid;
    gap: 1rem;
}

.booking-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 1rem;
    align-items: center;
    padding: 1rem 1.1rem;
    border-radius: 22px;
    border: 1px solid rgba(16, 17, 20, 0.08);
    background: rgba(255, 255, 255, 0.72);
}

.booking-card h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.2rem;
}

.booking-card-meta {
    display: grid;
    gap: 0.2rem;
    text-align: right;
}

.booking-card-meta strong {
    font-size: 1rem;
}

.member-auth-page .story-card,
.member-auth-page .form-card,
.member-dashboard-page .table-card,
.member-dashboard-page .hero-card {
    background: rgba(255, 255, 255, 0.74);
}

@media (max-width: 1000px) {
    .dashboard-hero,
    .dashboard-panels,
    .auth-grid {
        grid-template-columns: 1fr;
    }

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

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

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

    .booking-card {
        grid-template-columns: 1fr;
        align-items: start;
    }

    .booking-card-meta {
        text-align: left;
    }
}

@media (max-width: 1320px) {
    .admin-planner-stage {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {
    .member-topbar-inner,
    .timeline-item {
        flex-direction: column;
    }

    .member-brand img {
        width: min(180px, 55vw);
    }

    .filters-grid,
    .week-preview,
    .slot-grid {
        grid-template-columns: 1fr;
    }

    .hero-chip-row {
        gap: 0.5rem;
    }
}

@media (max-width: 900px) {
    .access-panel {
        grid-template-columns: 1fr;
    }

    .page-shell {
        width: min(100% - 1rem, 1000px);
    }

    .stats-grid,
    .admin-panels {
        grid-template-columns: 1fr;
    }

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

    .admin-calendar-toolbar,
    .admin-calendar-heading {
        grid-template-columns: 1fr;
        display: grid;
    }

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

@media (max-width: 700px) {
    body::before {
        inset: 10px;
        border-radius: 24px;
    }

    .hero-card {
        border-radius: 28px;
    }

    .brand-stage {
        min-height: auto;
        padding-top: 2rem;
    }

    .admin-planner-grid {
        min-width: 980px;
    }

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

    .eyebrow,
    .card-kicker {
        letter-spacing: 0.12em;
    }

    .admin-topbar {
        flex-direction: column;
    }

    .admin-top-actions {
        width: 100%;
    }
}
