:root {
    --bg: #f4f8f7;
    --bg-accent: radial-gradient(circle at top right, rgba(26, 150, 117, 0.24), transparent 32%), linear-gradient(180deg, #f7fbfa 0%, #eef5f3 100%);
    --surface: rgba(255, 255, 255, 0.92);
    --surface-strong: #ffffff;
    --text: #163430;
    --muted: #5c7570;
    --primary: #0d8a6a;
    --primary-dark: #0b6b52;
    --danger: #cc4f4f;
    --success: #1f9d72;
    --border: rgba(22, 52, 48, 0.1);
    --shadow: 0 18px 45px rgba(19, 47, 43, 0.1);
    --radius: 22px;
}

* { box-sizing: border-box; }
body { margin: 0; font-family: 'Plus Jakarta Sans', sans-serif; color: var(--text); background: var(--bg-accent); }
a { color: inherit; text-decoration: none; }
.app-shell { min-height: 100vh; }
.topbar {
    display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.25rem clamp(1rem, 2vw, 2rem);
    position: sticky; top: 0; z-index: 10; backdrop-filter: blur(18px); background: rgba(244, 248, 247, 0.88); border-bottom: 1px solid var(--border);
}
.brand { display: flex; align-items: center; gap: 0.9rem; }
.brand-mark { display: grid; place-items: center; width: 3rem; height: 3rem; border-radius: 18px; background: linear-gradient(135deg, #0d8a6a, #23b07f); color: white; font-weight: 800; }
.brand small, .muted, small { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 0.8rem; flex-wrap: wrap; }
.page { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2rem 0 4rem; }
.hero, .dashboard-head, .panel, .metric-card, .station-card, .approval-card, .alert { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero { display: grid; grid-template-columns: 1.4fr 0.9fr; gap: 1.5rem; padding: clamp(1.4rem, 3vw, 3rem); overflow: hidden; }
.hero.compact { grid-template-columns: 1fr; }
.hero h1, .dashboard-head h1, .section h2, .panel h2, .auth-layout h1 { margin: 0.4rem 0 0.8rem; font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.05; }
.hero p, .dashboard-head p, .panel p { max-width: 62ch; color: var(--muted); }
.eyebrow { display: inline-block; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--primary-dark); background: rgba(13, 138, 106, 0.1); }
.hero-panel, .stat-strip, .card-grid, .two-column, .three-column, .form-row, .button-row { display: grid; gap: 1rem; }
.hero-panel, .stat-strip { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.metric-card, .panel, .station-card, .approval-card { padding: 1.25rem; }
.metric-card strong { display: block; margin: 0.5rem 0; font-size: 1.75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.9rem 1.2rem; border: none; border-radius: 14px; background: linear-gradient(135deg, var(--primary), #19a67c); color: white; font-weight: 700; cursor: pointer; }
.button.ghost { background: white; color: var(--text); border: 1px solid var(--border); }
.success-button { background: linear-gradient(135deg, var(--success), #5bc08d); }
.danger-button { background: linear-gradient(135deg, var(--danger), #e56d6d); }
.section { margin-top: 2rem; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.card-grid { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }
.compact-grid { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.station-card-head, .dashboard-head { display: flex; align-items: start; justify-content: space-between; gap: 1rem; }
.station-card h3, .panel h2 { margin: 0 0 0.35rem; }
.station-meta { margin: 1rem 0; display: grid; gap: 0.7rem; }
.station-meta div { display: grid; gap: 0.2rem; }
.station-meta dt { font-size: 0.8rem; color: var(--muted); }
.station-meta dd { margin: 0; font-weight: 600; }
.status-pill { display: inline-flex; align-items: center; justify-content: center; padding: 0.45rem 0.8rem; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(13, 138, 106, 0.12); color: var(--primary-dark); }
.status-approved { background: rgba(31, 157, 114, 0.15); }
.status-denied { background: rgba(204, 79, 79, 0.15); color: #8e3434; }
.status-pending { background: rgba(217, 151, 42, 0.16); color: #94650f; }
.schedule-list, .calendar-board { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1rem; }
.schedule-list span, .calendar-item { padding: 0.7rem 0.8rem; border-radius: 14px; background: rgba(13, 138, 106, 0.08); font-size: 0.92rem; }
.calendar-item { display: grid; gap: 0.25rem; min-width: 220px; }
.auth-layout { min-height: calc(100vh - 180px); display: grid; place-items: center; }
.form-card { width: min(560px, 100%); }
label { display: grid; gap: 0.45rem; margin-bottom: 1rem; font-weight: 600; }
input, select, textarea { width: 100%; padding: 0.9rem 1rem; border-radius: 14px; border: 1px solid rgba(22, 52, 48, 0.14); background: var(--surface-strong); font: inherit; color: var(--text); }
.form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.two-column { grid-template-columns: 1.3fr 1fr; margin-top: 1.25rem; }
.two-column.single-focus { grid-template-columns: 1.2fr 0.8fr; }
.three-column { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 1.25rem; }
.stat-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 1.25rem 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 0.85rem 0.7rem; border-bottom: 1px solid var(--border); font-size: 0.92rem; }
.approval-card, .availability-card, .info-banner { margin-top: 1rem; }
.approval-card { display: grid; gap: 0.8rem; }
.button-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-banner, .alert { padding: 1rem 1.1rem; }
.alert { margin-bottom: 1rem; }
.alert.success { border-color: rgba(31, 157, 114, 0.18); background: rgba(31, 157, 114, 0.08); }
.alert.error { border-color: rgba(204, 79, 79, 0.18); background: rgba(204, 79, 79, 0.08); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.25rem; }
@media (max-width: 920px) {
    .hero, .two-column, .three-column, .stat-strip { grid-template-columns: 1fr; }
    .topbar, .dashboard-head, .station-card-head { flex-direction: column; align-items: stretch; }
}
@media (max-width: 640px) {
    .page { width: min(100% - 1rem, 1180px); }
    .form-row, .button-row { grid-template-columns: 1fr; }
    .hero h1, .dashboard-head h1, .section h2, .panel h2, .auth-layout h1 { font-size: 1.8rem; }
}

.calendar-header {
    align-items: end;
}

.calendar-nav {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.calendar-month-label {
    font-weight: 800;
    color: var(--primary-dark);
}

.calendar-legend {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.legend-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 0.85rem;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
}

.legend-available {
    background: rgba(31, 157, 114, 0.14);
    color: #167452;
}

.legend-reserved {
    background: rgba(217, 151, 42, 0.18);
    color: #8a5e10;
}

.legend-unavailable {
    background: rgba(92, 117, 112, 0.12);
    color: #536a65;
}

.station-calendar-card {
    margin-top: 1.2rem;
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.72);
}

.station-calendar-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.station-calendar-head h3 {
    margin: 0 0 0.3rem;
}

.month-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 0.55rem;
}

.weekday-row {
    margin-bottom: 0.55rem;
}

.weekday-cell {
    padding: 0.5rem;
    text-align: center;
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--muted);
}

.calendar-day {
    min-height: 104px;
    padding: 0.7rem;
    border-radius: 16px;
    border: 1px solid transparent;
    display: grid;
    align-content: start;
    gap: 0.35rem;
}

.calendar-day strong {
    font-size: 1rem;
}

.calendar-day span,
.calendar-day small {
    line-height: 1.25;
}

.calendar-day.status-available {
    background: rgba(31, 157, 114, 0.1);
    border-color: rgba(31, 157, 114, 0.2);
}

.calendar-day.status-reserved {
    background: rgba(217, 151, 42, 0.15);
    border-color: rgba(217, 151, 42, 0.22);
}

.calendar-day.status-unavailable {
    background: rgba(92, 117, 112, 0.08);
    border-color: rgba(92, 117, 112, 0.12);
}

.calendar-day.is-muted {
    opacity: 0.38;
}

@media (max-width: 920px) {
    .month-grid {
        grid-template-columns: repeat(7, minmax(84px, 1fr));
        overflow-x: auto;
    }

    .station-calendar-card {
        overflow-x: auto;
    }
}


/* Calendar polish overrides */
.station-calendar-card {
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
}

.month-grid {
    gap: 0.7rem;
}

.calendar-day {
    min-height: 110px;
    padding: 0.8rem;
    border-radius: 18px;
    gap: 0.45rem;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.calendar-day-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
}

.calendar-day strong {
    font-size: 1.05rem;
    line-height: 1;
}

.calendar-state {
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.calendar-note {
    display: inline-block;
    max-width: 100%;
    font-size: 0.78rem;
    color: var(--muted);
}

.calendar-day.status-available {
    background: linear-gradient(180deg, rgba(31, 157, 114, 0.12), rgba(31, 157, 114, 0.06));
    border-color: rgba(31, 157, 114, 0.22);
}

.calendar-day.status-reserved {
    background: linear-gradient(180deg, rgba(217, 151, 42, 0.18), rgba(217, 151, 42, 0.08));
    border-color: rgba(217, 151, 42, 0.24);
}

.calendar-day.status-unavailable {
    background: linear-gradient(180deg, rgba(92, 117, 112, 0.10), rgba(92, 117, 112, 0.05));
    border-color: rgba(92, 117, 112, 0.14);
}

@media (max-width: 920px) {
    .station-calendar-card {
        overflow-x: auto;
    }

    .month-grid {
        min-width: 760px;
        gap: 0.65rem;
    }
}

@media (max-width: 640px) {
    .calendar-day {
        min-height: 96px;
        padding: 0.65rem;
    }

    .calendar-state {
        font-size: 0.66rem;
    }

    .calendar-note {
        font-size: 0.72rem;
    }
}

/* Dashboard typography and proportion refresh */
body {
    font-size: 15px;
    line-height: 1.55;
}

.page {
    width: min(1240px, calc(100% - 2rem));
    padding: 2.25rem 0 4.5rem;
}

.topbar {
    padding: 1rem clamp(1rem, 2vw, 2.2rem);
}

.brand {
    gap: 0.75rem;
}

.brand strong {
    display: block;
    font-size: 1rem;
    line-height: 1.1;
}

.brand small {
    font-size: 0.76rem;
    letter-spacing: 0.03em;
}

.nav-links a:not(.button) {
    font-size: 0.94rem;
    font-weight: 600;
    color: var(--muted);
}

.dashboard-head,
.hero,
.panel,
.metric-card,
.station-card,
.approval-card {
    border-radius: 24px;
}

.dashboard-head {
    padding: 1.55rem 1.7rem;
    margin-bottom: 1rem;
}

.dashboard-head h1 {
    font-size: clamp(1.95rem, 3.4vw, 2.9rem);
    line-height: 1.02;
    letter-spacing: -0.03em;
    margin: 0.45rem 0 0.7rem;
}

.dashboard-head p {
    max-width: 58ch;
    font-size: 0.98rem;
    line-height: 1.65;
}

.section-head h2,
.panel h2,
.station-calendar-head h3,
.station-card h3 {
    letter-spacing: -0.02em;
}

.section-head h2,
.panel h2 {
    font-size: 1.3rem;
    line-height: 1.15;
}

.stat-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.15rem;
    margin: 1.15rem 0 1.4rem;
}

.metric-card {
    padding: 1.25rem 1.3rem;
    min-height: 138px;
}

.metric-card span {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.metric-card strong {
    margin: 0.45rem 0 0.35rem;
    font-size: clamp(1.8rem, 3vw, 2.35rem);
    line-height: 1;
    letter-spacing: -0.04em;
}

.metric-card small {
    font-size: 0.9rem;
    line-height: 1.5;
}

.panel,
.station-card,
.approval-card {
    padding: 1.35rem;
}

.section-head {
    margin-bottom: 1.1rem;
}

.eyebrow {
    font-size: 0.72rem;
    padding: 0.42rem 0.75rem;
    letter-spacing: 0.11em;
}

.button {
    min-height: 44px;
    padding: 0.82rem 1.12rem;
    border-radius: 14px;
    font-size: 0.92rem;
    font-weight: 700;
}

.calendar-nav {
    gap: 0.65rem;
}

.calendar-month-label {
    min-width: 126px;
    text-align: center;
    font-size: 0.95rem;
}

.two-column,
.three-column {
    gap: 1.2rem;
}

.three-column {
    align-items: start;
}

.card-grid.compact-grid {
    gap: 1rem;
}

.station-card {
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(249, 252, 251, 0.92));
}

.station-card p,
.station-calendar-head p,
.availability-card p,
.panel p,
.table-wrap td,
.table-wrap th {
    font-size: 0.93rem;
}

.status-pill {
    font-size: 0.73rem;
    padding: 0.42rem 0.72rem;
    letter-spacing: 0.03em;
}

.station-calendar-head {
    margin-bottom: 1rem;
}

.station-calendar-head h3 {
    font-size: 1.12rem;
}

.weekday-cell {
    font-size: 0.76rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.table-wrap table {
    min-width: 620px;
}

th {
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

td {
    font-size: 0.92rem;
}

input,
select,
textarea {
    min-height: 46px;
    padding: 0.85rem 0.95rem;
}

label > span {
    font-size: 0.88rem;
}

.info-banner {
    border-radius: 16px;
    background: rgba(13, 138, 106, 0.07);
    border: 1px solid rgba(13, 138, 106, 0.1);
}

@media (max-width: 920px) {
    .dashboard-head {
        padding: 1.3rem 1.2rem;
    }

    .dashboard-head h1 {
        font-size: 2rem;
    }

    .stat-strip {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    body {
        font-size: 14px;
    }

    .page {
        width: min(100% - 0.9rem, 1240px);
        padding-top: 1rem;
    }

    .dashboard-head h1 {
        font-size: 1.72rem;
    }

    .section-head h2,
    .panel h2 {
        font-size: 1.14rem;
    }

    .metric-card {
        min-height: unset;
    }
}

/* Compound calendar layout */
.schedule-layout {
    grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.85fr);
    align-items: start;
}

.compound-grid {
    margin-top: 0.25rem;
}

.compound-day {
    text-decoration: none;
    color: inherit;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.compound-day:hover {
    transform: translateY(-2px);
    box-shadow: 0 14px 30px rgba(19, 47, 43, 0.08);
}

.compound-day.is-selected {
    border-color: rgba(13, 138, 106, 0.36);
    box-shadow: 0 0 0 2px rgba(13, 138, 106, 0.12), inset 0 1px 0 rgba(255,255,255,0.65);
}

.selected-day-panel {
    position: sticky;
    top: 88px;
}

.slot-stack {
    display: grid;
    gap: 0.85rem;
}

.slot-card {
    display: grid;
    gap: 0.7rem;
    padding: 1rem;
    border-radius: 18px;
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247, 251, 250, 0.92));
    border: 1px solid rgba(22, 52, 48, 0.08);
}

.slot-card strong {
    font-size: 1rem;
    line-height: 1.2;
}

.slot-card p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.slot-time {
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    color: var(--primary-dark);
}

.empty-slot-card {
    background: linear-gradient(180deg, rgba(249, 251, 251, 0.94), rgba(243, 247, 246, 0.94));
}

.reserved-summary {
    margin-top: 1.25rem;
}

.compact-legend {
    margin-bottom: 1.15rem;
}

.compact-slots .slot-card,
.reserved-slot-card {
    background: linear-gradient(180deg, rgba(255, 248, 236, 0.9), rgba(255, 252, 246, 0.92));
}

.slot-section-title {
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.admin-slot-stack {
    margin-bottom: 1.2rem;
}

@media (max-width: 1040px) {
    .schedule-layout {
        grid-template-columns: 1fr;
    }

    .selected-day-panel {
        position: static;
    }
}

/* Auth social login */
.google-button {
    width: 100%;
    background: #ffffff;
    color: #1f2a37;
    border: 1px solid rgba(22, 52, 48, 0.12);
    box-shadow: 0 10px 24px rgba(19, 47, 43, 0.06);
}

.auth-divider {
    position: relative;
    text-align: center;
    margin: 1rem 0 1.15rem;
    color: var(--muted);
    font-size: 0.85rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    left: 0;
    right: 0;
    top: 50%;
    border-top: 1px solid rgba(22, 52, 48, 0.12);
}

.auth-divider span {
    position: relative;
    display: inline-block;
    padding: 0 0.75rem;
    background: rgba(255,255,255,0.92);
}

.user-badge {
    display: inline-grid;
    gap: 0.1rem;
    padding: 0.55rem 0.85rem;
    border-radius: 16px;
    background: rgba(13, 138, 106, 0.08);
    border: 1px solid rgba(13, 138, 106, 0.12);
}

.user-badge strong {
    font-size: 0.88rem;
    line-height: 1.1;
}

.user-badge small {
    font-size: 0.74rem;
    line-height: 1.2;
}

@media (max-width: 920px) {
    .user-badge {
        width: 100%;
    }
}

/* Admin station management */
.station-admin-layout {
    grid-template-columns: minmax(340px, 0.95fr) minmax(0, 1.05fr);
    align-items: start;
}

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

.station-admin-card {
    padding: 1rem;
    border-radius: 18px;
    border: 1px solid rgba(22, 52, 48, 0.08);
    background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247, 251, 250, 0.92));
    display: grid;
    gap: 0.75rem;
}

.station-admin-card.is-active {
    border-color: rgba(13, 138, 106, 0.28);
    box-shadow: 0 0 0 2px rgba(13, 138, 106, 0.08);
}

.admin-form-actions {
    align-items: stretch;
}

@media (max-width: 1040px) {
    .station-admin-layout {
        grid-template-columns: 1fr;
    }
}

.edit-mode-banner {
    display: grid;
    gap: 0.22rem;
    margin: 0.35rem 0 0.4rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    background: linear-gradient(180deg, rgba(13, 138, 106, 0.12), rgba(13, 138, 106, 0.06));
    border: 1px solid rgba(13, 138, 106, 0.18);
    color: var(--primary-dark);
}

.edit-mode-banner strong {
    font-size: 0.92rem;
}

.edit-mode-banner small {
    font-size: 0.78rem;
    color: rgba(19, 47, 43, 0.78);
}

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

.inline-edit-form .button {
    width: 100%;
}
.station-admin-card-form {
    gap: 1rem;
}

.station-admin-card-form h3 {
    margin: 0;
}

.compact-form-row {
    gap: 0.8rem;
}

.station-admin-card-form label {
    margin-bottom: 0;
}

.station-admin-card-form input,
.station-admin-card-form select,
.station-admin-card-form textarea {
    background: rgba(255, 255, 255, 0.96);
}

.station-admin-card-form .button-row {
    grid-template-columns: 1fr;
}
.station-management-stack {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.station-create-panel,
.station-list-panel {
    width: 100%;
}
/* Admin dashboard refinement */
.dashboard-head {
    padding: 1.6rem 1.7rem;
    align-items: center;
}

.dashboard-head h1 {
    margin: 0.35rem 0 0.55rem;
    font-size: clamp(1.9rem, 3vw, 2.55rem);
    line-height: 1.06;
    letter-spacing: -0.04em;
}

.dashboard-head p {
    font-size: 0.98rem;
    line-height: 1.65;
    max-width: 58ch;
}

.panel h2,
.section-head h2 {
    font-size: 1.28rem;
    line-height: 1.18;
    letter-spacing: -0.03em;
}

.panel p,
.station-admin-card p,
.slot-card p,
.metric-card small,
.calendar-note,
.calendar-state,
label > span,
.weekday-cell,
.legend-chip,
.slot-section-title,
th,
td,
small {
    letter-spacing: 0;
}

.panel p,
.station-admin-card p,
.slot-card p,
th,
td {
    font-size: 0.94rem;
    line-height: 1.58;
}

.metric-card {
    padding: 1.15rem 1.2rem;
    min-height: 0;
}

.metric-card > span {
    display: block;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.metric-card strong {
    margin: 0.42rem 0 0.18rem;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: -0.05em;
}

.metric-card small {
    display: block;
    font-size: 0.88rem;
    line-height: 1.45;
}

.admin-stat-strip {
    gap: 0.9rem;
    margin: 1rem 0 1.25rem;
}

.station-management-stack {
    gap: 1rem;
}

.admin-panel-block,
.station-create-panel {
    padding: 1.35rem 1.4rem;
}

.station-create-panel {
    max-width: none;
}

.station-list-panel .section-head,
#calendar-view .section-head,
.selected-day-panel .section-head {
    margin-bottom: 1.15rem;
}

.station-admin-list {
    gap: 1rem;
}

.station-admin-card {
    padding: 1.15rem 1.2rem;
    border-radius: 20px;
    gap: 0.95rem;
}

.station-admin-card h3 {
    margin: 0 0 0.18rem;
    font-size: 1.08rem;
    line-height: 1.22;
    letter-spacing: -0.02em;
}

.station-card-head p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.45;
}

.station-admin-card-form .form-row {
    gap: 0.85rem;
}

label {
    gap: 0.38rem;
    margin-bottom: 0.9rem;
}

label > span {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

input,
select,
textarea {
    min-height: 44px;
    padding: 0.8rem 0.9rem;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
}

textarea {
    min-height: 110px;
    resize: vertical;
}

.status-pill,
.legend-chip,
.eyebrow {
    font-size: 0.74rem;
    letter-spacing: 0.08em;
}

.button {
    min-height: 42px;
    padding: 0.78rem 1rem;
    border-radius: 12px;
    font-size: 0.9rem;
}

.calendar-nav {
    gap: 0.6rem;
}

.calendar-month-label {
    min-width: 132px;
    font-size: 0.92rem;
}

.weekday-cell {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.calendar-day {
    min-height: 116px;
    padding: 0.8rem 0.78rem;
}

.calendar-day strong {
    font-size: 1rem;
}

.calendar-state {
    font-size: 0.68rem;
}

.calendar-note {
    font-size: 0.8rem;
}

.slot-card {
    padding: 0.95rem 1rem;
}

.slot-card strong {
    font-size: 0.96rem;
}

.slot-time {
    font-size: 1rem;
}

@media (max-width: 920px) {
    .dashboard-head {
        padding: 1.2rem 1.15rem;
    }

    .dashboard-head h1 {
        font-size: 1.8rem;
    }

    .admin-panel-block,
    .station-create-panel,
    .station-admin-card,
    .metric-card {
        padding: 1rem;
    }
}
.station-directory-toggle {
    display: grid;
    gap: 1rem;
}

.station-directory-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    list-style: none;
    cursor: pointer;
}

.station-directory-summary::-webkit-details-marker {
    display: none;
}

.station-directory-summary h2 {
    margin: 0.35rem 0 0.2rem;
}

.station-directory-summary p {
    margin: 0;
}

.toggle-chip {
    min-width: 118px;
    pointer-events: none;
}

.station-directory-toggle[open] .toggle-chip {
    background: rgba(13, 138, 106, 0.08);
    border-color: rgba(13, 138, 106, 0.18);
    color: var(--primary-dark);
}

.station-directory-toggle[open] .toggle-chip::after {
    content: 'Hide List';
}

.station-directory-toggle:not([open]) .toggle-chip::after {
    content: 'View List';
}

.station-directory-grid {
    margin-top: 0.25rem;
}

@media (max-width: 920px) {
    .station-directory-summary {
        flex-direction: column;
        align-items: stretch;
    }

    .toggle-chip {
        width: 100%;
    }
}
.booking-flow-card {
    width: min(620px, 100%);
}

.booking-checker {
    padding-bottom: 1.15rem;
    margin-bottom: 1.15rem;
    border-bottom: 1px solid var(--border);
}

.compact-section-head {
    margin-bottom: 0.85rem;
}

.top-gap {
    margin-top: 0.25rem;
}

.booking-availability-panel {
    align-self: start;
}

button[disabled],
select[disabled],
input[disabled] {
    opacity: 0.6;
    cursor: not-allowed;
}
.timeline-section {
    display: grid;
    gap: 0.9rem;
    margin-bottom: 1rem;
}

.timeline-label {
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--muted);
}

.timeline-legend {
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
}

.timeline-bar {
    display: flex;
    min-height: 54px;
    border-radius: 18px;
    overflow: hidden;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.92);
}

.timeline-segment {
    position: relative;
    display: flex;
    align-items: end;
    justify-content: center;
    min-width: 26px;
    padding: 0.45rem 0.25rem;
    text-align: center;
}

.timeline-segment span {
    font-size: 0.68rem;
    line-height: 1.1;
    font-weight: 700;
    color: rgba(22, 52, 48, 0.82);
}

.timeline-segment.status-available {
    background: linear-gradient(180deg, rgba(31, 157, 114, 0.22), rgba(31, 157, 114, 0.1));
}

.timeline-segment.status-reserved {
    background: linear-gradient(180deg, rgba(217, 151, 42, 0.28), rgba(217, 151, 42, 0.12));
}

.timeline-segment.status-closed {
    background: linear-gradient(180deg, rgba(92, 117, 112, 0.18), rgba(92, 117, 112, 0.1));
}

.timeline-segment.is-selected {
    box-shadow: inset 0 0 0 2px rgba(13, 138, 106, 0.5);
}

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

.timeline-choice {
    display: block;
    cursor: pointer;
}

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

.timeline-choice-card {
    display: grid;
    gap: 0.2rem;
    padding: 0.9rem 1rem;
    border-radius: 16px;
    border: 1px solid rgba(22, 52, 48, 0.12);
    background: rgba(255, 255, 255, 0.94);
}

.timeline-choice-card strong {
    font-size: 0.95rem;
}

.timeline-choice-card small {
    font-size: 0.82rem;
    line-height: 1.4;
}

.timeline-choice.is-selected .timeline-choice-card,
.timeline-choice input:checked + .timeline-choice-card {
    border-color: rgba(13, 138, 106, 0.32);
    box-shadow: 0 0 0 2px rgba(13, 138, 106, 0.1);
    background: linear-gradient(180deg, rgba(13, 138, 106, 0.08), rgba(255, 255, 255, 0.98));
}

@media (max-width: 920px) {
    .timeline-bar {
        min-height: 62px;
        overflow-x: auto;
    }

    .timeline-segment {
        min-width: 56px;
    }
}
.legend-partial {
    background: rgba(73, 137, 195, 0.16);
    color: #245b8d;
}

.calendar-day.status-partial {
    background: linear-gradient(180deg, rgba(73, 137, 195, 0.16), rgba(73, 137, 195, 0.08));
    border-color: rgba(73, 137, 195, 0.24);
}
/* Calendar contrast refresh */
.legend-available {
    background: rgba(20, 148, 88, 0.18);
    color: #0f6a43;
}

.legend-partial {
    background: rgba(37, 99, 235, 0.16);
    color: #1d4ed8;
}

.legend-reserved {
    background: rgba(220, 38, 38, 0.16);
    color: #b42318;
}

.legend-unavailable {
    background: rgba(100, 116, 139, 0.16);
    color: #475569;
}

.calendar-day.status-available {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.22), rgba(16, 185, 129, 0.09));
    border-color: rgba(5, 150, 105, 0.3);
}

.calendar-day.status-partial {
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.2), rgba(59, 130, 246, 0.08));
    border-color: rgba(37, 99, 235, 0.28);
}

.calendar-day.status-reserved {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.22), rgba(239, 68, 68, 0.08));
    border-color: rgba(220, 38, 38, 0.28);
}

.calendar-day.status-unavailable {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.18), rgba(148, 163, 184, 0.08));
    border-color: rgba(100, 116, 139, 0.2);
}

.timeline-segment.status-available {
    background: linear-gradient(180deg, rgba(16, 185, 129, 0.28), rgba(16, 185, 129, 0.12));
}

.timeline-segment.status-reserved {
    background: linear-gradient(180deg, rgba(239, 68, 68, 0.28), rgba(239, 68, 68, 0.12));
}

.timeline-segment.status-closed {
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.24), rgba(148, 163, 184, 0.1));
}
.list-actions {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.list-actions form {
    margin: 0;
}

.user-control-panel table td {
    vertical-align: middle;
}
.admin-access-layout {
    align-items: start;
}

.booking-queue-panel {
    display: grid;
    gap: 1.15rem;
}

.booking-overview-panel {
    border-top: 1px solid var(--border);
    padding-top: 1.15rem;
}

.booking-admin-table td strong,
.booking-admin-table td small {
    display: block;
}

.booking-admin-table td small {
    margin-top: 0.18rem;
    color: var(--muted);
    line-height: 1.4;
}

.status-pill.status-pending {
    background: rgba(245, 158, 11, 0.16);
    color: #b45309;
}

.status-pill.status-neutral {
    background: rgba(59, 130, 246, 0.14);
    color: #1d4ed8;
}
.report-panel {
    margin-top: 1.25rem;
}

.report-filter-form {
    margin-bottom: 1rem;
}

.report-submit-cell {
    align-self: end;
}

.report-stat-strip {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

@media (max-width: 980px) {
    .report-stat-strip {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .report-stat-strip {
        grid-template-columns: 1fr;
    }
}
.station-analytics-panel {
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--border);
}

.station-analytics-table td:nth-child(n+2) {
    white-space: nowrap;
}
.analytics-chart-panel {
    display: grid;
    gap: 1rem;
    margin-bottom: 1rem;
}

.analytics-card {
    padding: 1rem 1.05rem;
    border: 1px solid var(--border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 24px rgba(16, 24, 40, 0.05);
}

.analytics-card-head,
.analytics-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
}

.analytics-card-head small,
.analytics-card-foot span {
    color: var(--muted);
    line-height: 1.4;
}

.analytics-bar-stack {
    display: grid;
    gap: 0.75rem;
    margin: 0.95rem 0 0.4rem;
}

.analytics-bar-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr) 72px;
    gap: 0.75rem;
    align-items: center;
}

.analytics-bar-row span,
.analytics-bar-row strong {
    font-size: 0.88rem;
}

.analytics-bar-track {
    position: relative;
    height: 12px;
    border-radius: 999px;
    background: rgba(148, 163, 184, 0.18);
    overflow: hidden;
}

.analytics-bar-fill {
    height: 100%;
    border-radius: inherit;
}

.sessions-fill {
    background: linear-gradient(90deg, #0f766e, #14b8a6);
}

.hours-fill {
    background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.kwh-fill {
    background: linear-gradient(90deg, #ea580c, #f59e0b);
}

@media (max-width: 720px) {
    .analytics-card-head,
    .analytics-card-foot {
        display: grid;
    }

    .analytics-bar-row {
        grid-template-columns: 56px minmax(0, 1fr) 60px;
        gap: 0.55rem;
    }
}
.admin-access-stack {
    display: grid;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.home-hero-refined {
    grid-template-columns: 1.2fr 0.9fr;
    gap: 1.35rem;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 252, 251, 0.92));
}

.home-hero-copy h1 {
    font-size: clamp(2.25rem, 4.5vw, 4rem);
    line-height: 0.98;
    max-width: 11ch;
}

.home-hero-copy p {
    font-size: 1rem;
    line-height: 1.7;
    max-width: 56ch;
}

.hero-highlights {
    display: grid;
    gap: 0.75rem;
    margin-top: 1.1rem;
}

.hero-highlight {
    display: grid;
    gap: 0.18rem;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(22, 52, 48, 0.08);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.7);
}

.hero-highlight strong {
    font-size: 0.98rem;
}

.hero-highlight span {
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

.home-hero-panel {
    align-content: start;
}

.soft-metric-card {
    background: rgba(255, 255, 255, 0.92);
}

.soft-metric-card strong {
    font-size: 2rem;
    line-height: 1.05;
}

.welcome-card {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: linear-gradient(180deg, rgba(232, 247, 243, 0.75), rgba(255, 255, 255, 0.92));
}

.welcome-list {
    margin: 0.85rem 0 0;
    padding-left: 1.1rem;
    color: var(--text);
    display: grid;
    gap: 0.45rem;
}

.station-section-refined {
    margin-top: 1.5rem;
}

.station-section-head p {
    margin: 0.35rem 0 0;
    color: var(--muted);
}

.station-grid-refined {
    gap: 1rem;
}

.station-card-refined {
    padding: 1.15rem;
    background: rgba(255, 255, 255, 0.96);
}

.station-card-refined h3 {
    font-size: 1.1rem;
    line-height: 1.35;
}

.station-card-refined p {
    margin: 0.2rem 0 0;
    color: var(--muted);
}

.station-meta-refined {
    margin: 1rem 0 0.9rem;
    gap: 0.8rem;
}

.schedule-list-refined {
    margin-top: 0.85rem;
    gap: 0.55rem;
}

.schedule-list-refined strong {
    display: block;
    width: 100%;
    margin-bottom: 0.15rem;
    font-size: 0.92rem;
}

.schedule-list-refined span {
    background: rgba(13, 138, 106, 0.08);
    font-size: 0.88rem;
}

@media (max-width: 920px) {
    .home-hero-refined {
        grid-template-columns: 1fr;
    }

    .home-hero-copy h1 {
        max-width: none;
    }
}
.station-overview-list {
    display: grid;
    gap: 1rem;
}

.station-overview-card {
    padding: 1.15rem 1.2rem;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--shadow);
}

.station-overview-head {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 1rem;
    margin-bottom: 0.9rem;
}

.station-overview-head h3 {
    margin: 0;
    font-size: 1.15rem;
}

.station-overview-head p {
    margin: 0.25rem 0 0;
    color: var(--muted);
}

.station-status-pill.status-neutral {
    background: rgba(100, 116, 139, 0.14);
    color: #475569;
}

.home-timeline-wrap {
    display: grid;
    gap: 0.6rem;
}

.home-timeline-legend {
    margin-bottom: 0;
}

.station-public-timeline {
    min-height: 62px;
    border-radius: 20px;
    background: rgba(248, 250, 252, 0.95);
}

.station-public-timeline .timeline-segment {
    min-width: 36px;
    padding: 0.5rem 0.2rem;
}

.station-public-timeline .timeline-segment span {
    font-size: 0.66rem;
}

.station-overview-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-top: 0.9rem;
    color: var(--muted);
    font-size: 0.92rem;
}

.small-button {
    padding: 0.72rem 0.95rem;
    font-size: 0.88rem;
}

@media (max-width: 760px) {
    .station-overview-head,
    .station-overview-foot {
        display: grid;
    }

    .station-public-timeline {
        overflow-x: auto;
    }
}
.admin-head-refined {
    align-items: center;
}

.admin-quick-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.admin-section-block {
    margin-top: 1.35rem;
}

.admin-section-head {
    margin-bottom: 1rem;
}

.admin-section-head h2 {
    margin-bottom: 0.35rem;
}

.admin-setup-grid {
    align-items: start;
}

.admin-subpanel {
    box-shadow: 0 12px 28px rgba(19, 47, 43, 0.06);
}

@media (max-width: 920px) {
    .admin-quick-links {
        width: 100%;
    }
}
.station-picker-head {
    align-items: center;
}

.station-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.station-picker-card {
    padding: 1rem 1.05rem;
    border: 1px solid rgba(22, 52, 48, 0.08);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.96);
    display: grid;
    gap: 0.8rem;
}

.station-picker-card.is-selected {
    border-color: rgba(13, 138, 106, 0.28);
    box-shadow: 0 0 0 2px rgba(13, 138, 106, 0.08);
}

.station-picker-meta {
    margin: 0;
    color: var(--muted);
    font-size: 0.92rem;
}

.station-editor-panel {
    scroll-margin-top: 110px;
}
.modal-shell {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 40;
}

.modal-shell:target {
    display: block;
}

.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(16, 24, 40, 0.45);
    backdrop-filter: blur(4px);
}

.modal-card {
    position: relative;
    width: min(920px, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    overflow: auto;
    margin: 1rem auto;
    padding: 1.25rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(16, 24, 40, 0.18);
}

.modal-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: start;
    margin-bottom: 0.8rem;
}

.modal-close {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: white;
    font-size: 1.6rem;
    line-height: 1;
}
.inline-availability-panel {
    margin-top: 1rem;
}

.stacked-form {
    display: grid;
}

.stacked-form label:last-of-type {
    margin-bottom: 0.85rem;
}
.billing-only-grid {
    margin-top: 1.25rem;
    display: grid;
    grid-template-columns: minmax(0, 420px);
}
.station-filter-head {
    align-items: end;
}

.station-date-form {
    display: flex;
    align-items: end;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.station-date-form label {
    margin-bottom: 0;
    min-width: 190px;
}

.station-date-form span {
    font-size: 0.82rem;
}

@media (max-width: 760px) {
    .station-date-form {
        width: 100%;
    }

    .station-date-form label {
        min-width: 100%;
    }
}