:root {
    --ink: #0d2035;
    --muted: #4a6a8a;
    --line: #c5d5e8;
    --paper: #ffffff;
    --bg: #f0f4f8;
    --brand: #1a3b5c;
    --brand-dark: #122840;
    --accent: #d4a550;
    --accent-dark: #b8904a;
    --coral: #d4a550;
    --coral-dark: #b8904a;
    --success: #1a6e3c;
    --warning: #b8904a;
    --danger: #c23b22;
    --header-bg: #1a3b5c;
    --header-text: white;
    --nav-hover: rgba(255, 255, 255, 0.18);
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--ink);
    background: linear-gradient(135deg, #edf2f7, #f8f4ed 60%, #f0f4f8);
}

/* ── Brand name text fallback (no logo) ── */
.brand-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--header-text);
    letter-spacing: -0.01em;
}

/* ── Avatar role label ── */
.avatar-role {
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: capitalize;
    margin-bottom: 4px;
}

/* ── Portal home — company cards ── */
.company-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 24px 28px;
    border: 1.5px solid var(--line);
    border-radius: 18px;
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    min-width: 160px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.company-card:hover {
    box-shadow: 0 4px 16px rgba(26, 59, 92, 0.15);
    transform: translateY(-2px);
}
.company-card-avatar {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.1rem;
    margin-bottom: 10px;
}
.company-card-name {
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
}

/* ── Provider cards on company landing ── */
.provider-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 24px;
    border: 1.5px solid var(--line);
    border-radius: 16px;
    background: var(--paper);
    text-decoration: none;
    color: var(--ink);
    min-width: 140px;
    transition: box-shadow 0.15s, transform 0.15s;
}
.provider-card:hover {
    box-shadow: 0 4px 16px rgba(26, 59, 92, 0.12);
    transform: translateY(-2px);
}
.provider-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--brand);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 10px;
}
.provider-name {
    font-weight: 600;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 6px;
}
.provider-services {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    margin-bottom: 6px;
}
.service-pill {
    font-size: 0.72rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--brand);
    color: #fff;
    white-space: nowrap;
}
.provider-location {
    font-size: 0.78rem;
    text-align: center;
    margin-bottom: 6px;
}
.provider-slots {
    font-size: 0.8rem;
    text-align: center;
}

/* ── Provider filter pills on appointments page ── */
.pill-active {
    background: var(--brand);
    color: #fff;
    border-color: var(--brand);
}

.site-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 32px;
    background: var(--header-bg);
    color: var(--header-text);
    border-bottom: 3px solid rgba(0, 0, 0, 0.15);
}

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

.brand-logo {
    height: 52px;
    width: auto;
    display: block;
    background: white;
    border: 2.5px solid #111;
    border-radius: 14px;
    padding: 4px 10px;
    box-shadow:
        0 4px 0 #111,
        0 7px 16px rgba(0, 0, 0, 0.35);
    transition: box-shadow 0.12s, transform 0.12s;
}

.brand:hover .brand-logo {
    box-shadow:
        0 2px 0 #111,
        0 4px 10px rgba(0, 0, 0, 0.3);
    transform: translateY(2px);
}

nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    align-items: center;
}

nav a {
    color: var(--header-text);
    text-decoration: none;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 999px;
    transition: background 0.15s;
}

nav a:hover {
    background: var(--nav-hover);
}

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

.card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: 24px;
    padding: 28px;
    margin-bottom: 24px;
    box-shadow: 0 20px 60px rgba(26, 59, 92, 0.08);
}

.narrow {
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
}

.hero {
    padding: 56px;
    background: linear-gradient(135deg, #edf2f7, #f8f4ed);
    border-top: 4px solid var(--accent);
}

h1, h2 {
    margin-top: 0;
    color: var(--brand-dark);
}

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

.warning {
    color: var(--warning);
    font-weight: 700;
}

.messages {
    margin-bottom: 16px;
}

.message {
    padding: 14px 16px;
    border-radius: 14px;
    margin-bottom: 8px;
    background: #dde8f5;
    border-left: 4px solid var(--brand);
}

.message.success {
    background: #d1fae5;
    border-left-color: var(--success);
}

.message.error {
    background: #ffe4d9;
    border-left-color: var(--coral);
}

.message.warning {
    background: #fef9c3;
    border-left-color: var(--accent);
}

form {
    margin: 0;
}

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

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
    color: var(--brand-dark);
}

.full {
    grid-column: 1 / -1;
}

/* ── Availability form helpers ── */
.input-suffix {
    display: flex;
    align-items: center;
    gap: 8px;
}
.input-suffix input {
    flex: 1;
}
.input-suffix span {
    color: var(--muted);
    font-size: 0.88rem;
    white-space: nowrap;
}

.toggle-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    cursor: pointer;
    margin-bottom: 0;
}
.toggle-label input[type="checkbox"] {
    width: auto;
    margin: 0;
    accent-color: var(--brand);
}

.sub-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-top: 12px;
}

.radio-label {
    font-weight: normal;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}
input[type="radio"] {
    width: auto;
    margin: 0;
    accent-color: var(--brand);
}
.inline-num {
    width: 64px !important;
    padding: 6px 8px !important;
    display: inline-block;
    flex: none !important;
}

/* ── Source-day calendar picker ── */
.cal-picker {
    border: 1.5px solid var(--line);
    border-radius: 14px;
    padding: 14px;
    background: #f5f8fc;
    user-select: none;
}
.cal-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.cal-picker-head button {
    background: none;
    border: 1.5px solid var(--line);
    cursor: pointer;
    padding: 3px 10px;
    font-size: 0.9rem;
    color: var(--brand);
    border-radius: 8px;
    width: auto;
    line-height: 1.5;
    transition: background 0.15s;
}
.cal-picker-head button:hover {
    background: rgba(26, 59, 92, 0.10);
}
#cal-picker-title {
    font-weight: 600;
    font-size: 0.95rem;
}
.cal-picker-wdays,
.cal-picker-days {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 2px;
}
.cal-picker-wdays {
    margin-bottom: 4px;
}
.cal-picker-wdays span {
    text-align: center;
    font-size: 0.72rem;
    font-weight: 600;
    color: var(--muted);
    padding: 2px 0;
}
.cpd {
    text-align: center;
    padding: 5px 2px;
    font-size: 0.82rem;
    border-radius: 7px;
    cursor: pointer;
    border: none;
    background: none;
    color: var(--ink);
    width: 100%;
    transition: background 0.1s;
}
.cpd:hover {
    background: rgba(26, 59, 92, 0.10);
}
.cpd.empty {
    cursor: default;
    pointer-events: none;
}
.cpd.today {
    background: rgba(26, 59, 92, 0.12);
    color: var(--brand-dark);
    font-weight: 600;
}
.cpd.selected {
    background: var(--brand);
    color: #fff !important;
    font-weight: 700;
}
.cpd.weekend {
    color: var(--muted);
}
.cpd.holiday {
    color: var(--coral);
    font-style: italic;
}

input, textarea, select {
    width: 100%;
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 12px 14px;
    font: inherit;
    color: var(--ink);
    background: #f5f8fc;
    transition: border-color 0.15s;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(26, 59, 92, 0.12);
}

textarea {
    min-height: 96px;
}

hr.full {
    grid-column: 1 / -1;
    border: none;
    border-top: 1px solid var(--line);
    margin: 4px 0;
}

button, .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    padding: 11px 22px;
    background: var(--brand);
    color: white;
    text-decoration: none;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
}

button:hover, .button:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
}

button.secondary, .button.secondary {
    background: #dde8f5;
    color: var(--brand-dark);
}

button.secondary:hover, .button.secondary:hover {
    background: #c5d5e8;
}

button.danger {
    background: #dc2626;
    color: #fff;
}

button.danger:hover {
    background: #b91c1c;
}

button.accent {
    background: var(--accent);
    color: var(--ink);
}

button.accent:hover {
    background: var(--accent-dark);
}

button.btn-sm {
    padding: 6px 14px;
    font-size: 0.85rem;
}

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

.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}

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

.slot, .booking {
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 18px;
    display: flex;
    justify-content: space-between;
    gap: 18px;
    align-items: center;
}

.slot.pending {
    background: #fff8f0;
    border-color: #fcd9b6;
    border-left: 4px solid var(--accent);
}

.slot.approved {
    background: #e6faf7;
    border-color: var(--line);
    border-left: 4px solid var(--brand);
}

.slot.available {
    background: #f5f8fc;
    border-left: 4px solid #c5d5e8;
}

.pill {
    display: inline-flex;
    margin-left: 8px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--accent);
    color: white;
    font-size: 0.8rem;
    font-weight: 800;
}

.pill.available {
    background: var(--brand);
}

.pill.approved {
    background: var(--success);
}

.pill.pending {
    background: var(--accent);
    color: var(--ink);
}

.pill.cancelled, .pill.declined {
    background: var(--coral);
}

.day-group {
    margin-bottom: 24px;
}

.day-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--line);
}

.day-header strong {
    color: var(--brand-dark);
    font-size: 1.05rem;
}

.calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}

/* ── Week calendar ── */
/* ── Avatar menu ── */
.avatar-menu {
    position: relative;
}

.avatar-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 800;
    padding: 0;
    cursor: pointer;
    border: 2px solid rgba(255,255,255,0.4);
    flex-shrink: 0;
    transition: transform 0.15s;
}

.avatar-btn:hover {
    transform: scale(1.08);
    background: var(--accent);
}

.avatar-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: white;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 8px 30px rgba(13,148,136,0.15);
    min-width: 200px;
    z-index: 100;
    overflow: hidden;
    padding: 8px 0;
}

.avatar-menu.open .avatar-dropdown {
    display: block;
}

.avatar-dropdown hr {
    border: none;
    border-top: 1px solid var(--line);
    margin: 6px 0;
}

.avatar-name {
    padding: 10px 16px 2px;
    font-weight: 800;
    font-size: 0.9rem;
    color: var(--ink);
}

.avatar-email {
    padding: 0 16px 8px;
    font-size: 0.78rem;
    color: var(--muted);
}

.avatar-dropdown a {
    display: block;
    padding: 10px 16px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
}

.avatar-dropdown a:hover {
    background: #f0f4f8;
    color: var(--brand);
}

/* ── Nav badge ── */
.nav-link-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.nav-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--coral);
    color: white;
    font-size: 0.72rem;
    font-weight: 800;
    line-height: 1;
}

/* ── Pending Approvals page ── */
.approvals-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.approval-badge {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    border-radius: 999px;
    background: var(--coral);
    color: white;
    font-weight: 800;
    font-size: 0.95rem;
}

.approval-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 5px solid var(--accent);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 16px;
    display: grid;
    grid-template-columns: 200px 1px 1fr auto;
    gap: 24px;
    align-items: start;
    box-shadow: 0 4px 20px rgba(26, 59, 92, 0.07);
}

.approval-when {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.approval-date {
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 1rem;
}

.approval-time {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--brand);
}

.approval-requested {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 6px;
}

.approval-divider {
    width: 1px;
    background: var(--line);
    align-self: stretch;
}

.approval-details {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.approval-row {
    display: flex;
    gap: 12px;
    font-size: 0.9rem;
}

.approval-label {
    min-width: 110px;
    font-weight: 700;
    color: var(--muted);
    flex-shrink: 0;
}

.approval-note {
    font-style: italic;
    color: var(--muted);
}

.approval-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: stretch;
    min-width: 130px;
}

.approval-actions form {
    width: 100%;
}

.approval-actions button {
    width: 100%;
}

.btn-approve {
    background: var(--brand);
}

.btn-approve:hover {
    background: var(--brand-dark);
}

@media (max-width: 900px) {
    .approval-card {
        grid-template-columns: 1fr;
    }
    .approval-divider {
        width: 100%;
        height: 1px;
    }
}

/* ── Student management ── */
.student-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.student-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.student-row:last-of-type { border-bottom: none; }

.student-row-name {
    flex: 1;
    font-weight: 700;
}

.student-row-actions {
    display: flex;
    gap: 8px;
}

.edit-student-form {
    display: flex;
    gap: 8px;
    align-items: center;
    padding: 8px 0 10px;
    border-bottom: 1px solid var(--line);
}

.add-student-form {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 4px;
}

.add-student-form input {
    flex: 1;
    margin: 0;
}

.student-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    padding: 10px 14px;
    background: #f0f4f8;
    border-radius: 12px;
    border: 1px solid var(--line);
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 7px;
    font-size: 0.88rem;
    font-weight: 700;
}

/* ── Stats grid ── */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-top: 4px solid var(--brand);
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(13,148,136,0.07);
}

.stat-card.stat-alert {
    border-top-color: var(--coral);
}

.stat-value {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-dark);
    line-height: 1;
}

.stat-alert .stat-value {
    color: var(--coral-dark);
}

.stat-label {
    font-size: 0.78rem;
    color: var(--muted);
    font-weight: 700;
    margin-top: 6px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

@media (max-width: 900px) {
    .stats-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 520px) {
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ── Client roster ── */
.client-row {
    display: grid;
    grid-template-columns: 44px 1fr auto auto;
    gap: 16px;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
}

.client-row:last-child { border-bottom: none; }

.client-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--brand);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.client-name {
    font-weight: 800;
    font-size: 1rem;
    color: var(--brand-dark);
}

.client-sub {
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 2px;
}

.client-stats {
    text-align: right;
    font-size: 0.85rem;
}

.client-status-form select {
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 0.82rem;
    font-weight: 700;
    border: 1.5px solid var(--line);
    background: #f5f8fc;
    cursor: pointer;
    width: auto;
}

@media (max-width: 760px) {
    .client-row { grid-template-columns: 44px 1fr; }
    .client-stats, .client-status-form { grid-column: 2; }
}

/* ── Appointment history ── */
.history-card {
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 5px solid var(--brand);
    border-radius: 18px;
    padding: 20px 24px;
    margin-bottom: 12px;
    display: grid;
    grid-template-columns: 200px 1fr auto;
    gap: 20px;
    align-items: center;
}

.history-card.status-approved { border-left-color: var(--brand); }
.history-card.status-pending  { border-left-color: var(--accent); }
.history-card.status-cancelled,
.history-card.status-declined { border-left-color: var(--coral); opacity: 0.75; }

.history-date {
    font-weight: 800;
    color: var(--brand-dark);
    font-size: 0.95rem;
}

.history-time {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--brand);
    margin-top: 2px;
}

.history-note {
    margin-top: 6px;
    font-size: 0.85rem;
    font-style: italic;
}

@media (max-width: 760px) {
    .history-card { grid-template-columns: 1fr; }
}

/* ── Calendar provider filter pills ── */
.cal-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 12px;
    border-radius: 20px;
    border: 1.5px solid var(--line);
    background: var(--paper);
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
    color: var(--ink);
    white-space: nowrap;
}
.cal-pill:hover { border-color: var(--brand); }
.cal-pill-all-active {
    border-color: var(--brand);
    background: var(--brand);
    color: white;
    font-weight: 700;
}
.cal-pill-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

/* ── Week calendar ── */
.cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.week-grid {
    display: grid;
    grid-template-columns: 68px repeat(7, 1fr);
    grid-template-rows: 52px repeat(20, 44px);
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    min-width: 560px;
}

.cal-corner {
    background: #f0f4f8;
    border-right: 1px solid var(--line);
}

.cal-day-header {
    background: var(--brand);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    border-right: 1px solid rgba(255, 255, 255, 0.15);
    border-bottom: 3px solid var(--brand-dark);
}

.cal-day-header.today {
    background: var(--accent);
    color: var(--ink);
    border-bottom-color: var(--accent-dark);
}

.cal-weekday {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    opacity: 0.85;
}

.cal-date {
    font-size: 1.35rem;
    font-weight: 800;
    line-height: 1;
}

.cal-time {
    padding: 4px 8px 0;
    font-size: 0.68rem;
    color: var(--muted);
    text-align: right;
    border-right: 1px solid var(--line);
    border-bottom: 1px dashed rgba(178, 224, 218, 0.5);
    background: #f5f8fc;
    display: flex;
    align-items: flex-start;
    justify-content: flex-end;
    white-space: nowrap;
}

.cal-time.on-hour {
    border-top: 1px solid var(--line);
    border-bottom: 1px dashed rgba(178, 224, 218, 0.5);
    color: var(--brand-dark);
    font-weight: 700;
    font-size: 0.72rem;
}

.cal-cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px dashed rgba(178, 224, 218, 0.4);
    background: white;
}

.cal-cell.on-hour {
    border-top: 1px solid var(--line);
}

.cal-cell.today-col {
    background: #fffdf0;
}

.cal-cell.dimmed-col {
    background: #f0f0f0;
}

.cal-day-header.dimmed {
    background: #7a9490;
}

.cal-holiday-tag {
    font-size: 0.62rem;
    background: rgba(255,255,255,0.25);
    border-radius: 999px;
    padding: 1px 6px;
    margin-top: 2px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.cal-slot-block {
    margin: 2px 3px;
    border-radius: 8px;
    padding: 5px 8px;
    font-size: 0.78rem;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: default;
}

.cal-slot-block.available {
    background: #ccfbf1;
    border: 1.5px solid var(--brand);
    color: var(--brand-dark);
}

.cal-slot-block.pending {
    background: #fef9c3;
    border: 1.5px solid var(--accent);
    color: #78450a;
}

.cal-slot-block.approved {
    background: #d1fae5;
    border: 1.5px solid #059669;
    color: #064e3b;
}

.cal-slot-block.cancelled {
    background: #f4e0d9;
    border: 1.5px solid var(--coral);
    color: var(--coral-dark);
    opacity: 0.7;
}

.cal-delete-btn {
    background: none;
    border: none;
    padding: 2px 4px;
    font-size: 0.9rem;
    cursor: pointer;
    opacity: 0.75;
    border-radius: 6px;
    transition: opacity 0.15s, background 0.15s;
    transform: none;
    filter: grayscale(1) brightness(0);
}

.cal-delete-btn:hover {
    opacity: 1;
    background: rgba(228, 92, 54, 0.12);
    transform: none;
    filter: grayscale(1) brightness(0);
}

.cal-client {
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cal-meta {
    font-size: 0.72rem;
    opacity: 0.8;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 760px) {
    .site-header, .slot, .calendar-header {
        flex-direction: column;
        align-items: flex-start;
    }

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

    .sub-grid {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 32px;
    }
}
