:root {
    color-scheme: light;
    --bg: #f5f7fb;
    --panel: #ffffff;
    --text: #18202f;
    --muted: #627086;
    --border: #dbe2ee;
    --primary: #1769e0;
    --primary-dark: #0f54b8;
    --danger: #b3261e;
    --success: #146c43;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Inter, Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.site-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 18px clamp(18px, 5vw, 56px);
    background: var(--panel);
    border-bottom: 1px solid var(--border);
}

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

.nav {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.page {
    width: min(100%, 960px);
    margin: 0 auto;
    padding: 48px 18px;
}

.panel {
    width: min(100%, 480px);
    margin: 0 auto;
    padding: 28px;
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: 0 16px 36px rgba(24, 32, 47, 0.07);
}

.panel.wide {
    width: min(100%, 760px);
}

.hero {
    width: min(100%, 760px);
    text-align: center;
}

h1 {
    margin: 0 0 12px;
    font-size: 32px;
    line-height: 1.2;
}

.lead {
    margin: 0 auto 28px;
    max-width: 560px;
    color: var(--muted);
    font-size: 18px;
    line-height: 1.5;
}

.eyebrow {
    margin: 0 0 8px;
    color: var(--primary);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
}

.muted {
    margin: 0 0 22px;
    color: var(--muted);
    line-height: 1.5;
}

.form {
    display: grid;
    gap: 16px;
}

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

label {
    display: grid;
    gap: 7px;
    color: var(--text);
    font-weight: 700;
}

input {
    width: 100%;
    min-height: 44px;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    font-weight: 400;
    background: #ffffff;
}

input:focus {
    outline: 3px solid rgba(23, 105, 224, 0.18);
    border-color: var(--primary);
}

.help-text {
    color: var(--muted);
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 6px;
    color: var(--text);
    background: #ffffff;
    font: inherit;
    font-weight: 700;
    cursor: pointer;
}

.button:hover {
    text-decoration: none;
    border-color: #aebbd0;
}

.button.primary {
    color: #ffffff;
    border-color: var(--primary);
    background: var(--primary);
}

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

.button.full {
    width: 100%;
    margin-top: 18px;
}

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

.links {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 18px;
}

.message {
    min-height: 22px;
    margin-top: 16px;
    line-height: 1.45;
}

.message.error {
    color: var(--danger);
}

.message.success {
    color: var(--success);
}

.span-two {
    grid-column: span 2;
}

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

.details {
    display: grid;
    gap: 12px;
    margin: 22px 0 0;
}

.details div {
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 6px;
}

dt {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

dd {
    margin: 4px 0 0;
}

.hidden {
    display: none;
}

.material-symbols-outlined {
    font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.auth-grid {
    background-image: radial-gradient(circle at 2px 2px, #e2e8f0 1px, transparent 0);
    background-size: 32px 32px;
    opacity: 0.4;
}

.form-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.form-field label,
.settings-card label {
    color: #45474c;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
}

.form-field input,
.settings-card input {
    min-height: 40px;
    border-color: #c5c6cd;
    border-radius: 8px;
    background: #ffffff;
    font-size: 14px;
}

.form-field input:focus,
.settings-card input:focus {
    outline: none;
    border-color: #0051d5;
    box-shadow: 0 0 0 2px rgba(0, 81, 213, 0.16);
}

.google-dot {
    display: inline-block;
    width: 18px;
    height: 18px;
    border-radius: 9999px;
    background:
        conic-gradient(#4285f4 0 25%, #34a853 0 50%, #fbbc05 0 75%, #ea4335 0);
}

.sidebar-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: rgba(133, 144, 166, 0.85);
    font-size: 12px;
    font-weight: 600;
    transition: color 0.15s ease, background 0.15s ease;
}

.sidebar-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fefcff;
    text-decoration: none;
}

.sidebar-active {
    border-left: 4px solid #0051d5;
    background: rgba(255, 255, 255, 0.06);
    color: #fefcff;
}

.hide-scroll {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hide-scroll::-webkit-scrollbar {
    display: none;
}

.active-tab {
    color: #0051d5;
    border-bottom: 2px solid #0051d5;
}

.stat-card,
.settings-card {
    border: 1px solid #c5c6cd;
    border-radius: 12px;
    background: #ffffff;
    padding: 24px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.stat-label {
    margin-top: 12px;
    color: #45474c;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 4px;
    color: #1b1b1d;
    font-size: 18px;
    font-weight: 700;
}

.detail-item {
    border: 1px solid #c5c6cd;
    border-radius: 8px;
    padding: 12px;
}

.detail-item dt {
    color: #45474c;
    font-size: 12px;
    font-weight: 700;
}

.detail-item dd {
    margin-top: 4px;
    color: #1b1b1d;
}

.card-heading {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 24px;
}

.card-heading span {
    border-radius: 8px;
    background: #dbe1ff;
    color: #0051d5;
    padding: 12px;
}

.card-heading h3 {
    font-size: 16px;
    font-weight: 700;
}

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

.global-action-menu {
    position: fixed;
    z-index: 9999;
    min-width: 180px;
    background: #ffffff;
    border: 1px solid #c5c6cd;
    border-radius: 0.75rem;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.16);
    padding: 0.25rem;
}

.global-action-menu button,
.global-action-menu a {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 0.75rem;
    border: 0;
    border-radius: 0.5rem;
    color: #1b1b1d;
    background: transparent;
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.global-action-menu button:hover,
.global-action-menu a:hover {
    background: #f5f3f4;
    text-decoration: none;
}

.global-action-menu .danger {
    color: #ba1a1a;
}

.global-action-menu button:disabled {
    cursor: default;
}

.global-action-menu button:disabled:hover {
    background: transparent;
}

.lead-status-menu {
    min-width: 280px;
    max-width: calc(100vw - 16px);
}

.campaign-sort-button {
    display: inline-flex;
    width: 100%;
    align-items: center;
    gap: 4px;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: 700;
    text-align: inherit;
    cursor: pointer;
}

.campaign-sort-button:hover {
    color: #1b1b1d;
}

.lead-call-outcome-button {
    display: inline-flex;
    min-height: 40px;
    width: 100%;
    align-items: center;
    gap: 0.5rem;
    border: 1px solid #d1c5c8;
    border-radius: 0.5rem;
    background: #fff;
    padding: 0.5rem 0.75rem;
    color: #1b1b1d;
    font-size: 0.875rem;
    font-weight: 700;
    text-align: left;
}

.lead-call-outcome-button:hover {
    background: #f5eff1;
}

/* Scheduling module */
.scheduling-module {
    --sched-background: #f7f9fb;
    --sched-surface: #f7f9fb;
    --sched-surface-lowest: #ffffff;
    --sched-surface-low: #f2f4f6;
    --sched-surface-bright: #f7f9fb;
    --sched-surface-border: #e2e8f0;
    --sched-outline: #727787;
    --sched-outline-variant: #c2c6d8;
    --sched-text-main: #0b3558;
    --sched-on-surface: #191c1e;
    --sched-on-surface-variant: #424655;
    --sched-secondary: #545f73;
    --sched-primary: #0054cc;
    --sched-primary-container: #006bff;
    --sched-primary-fixed-dim: #b1c5ff;
    --sched-event-blue: #e0e7ff;
    --sched-event-green: #dcfce7;
    --sched-event-orange: #ffedd5;
    --sched-event-purple: #f5f3ff;
    --sched-event-pink: #fce7f3;
    background: var(--sched-background);
    color: var(--sched-on-surface);
    width: 100%;
    max-width: none;
}

.scheduling-full-width,
.scheduling-calendar-page {
    position: relative;
    width: 100%;
    max-width: none;
}

.scheduling-tabs {
    width: 100%;
    min-height: 48px;
    border-bottom: 1px solid var(--sched-surface-border);
    background: var(--sched-surface);
    display: flex;
    align-items: center;
    gap: 32px;
    padding: 0 24px;
    flex-shrink: 0;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.scheduling-tabs::-webkit-scrollbar {
    display: none;
}

.scheduling-content-container {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 24px;
}

.scheduling-form-container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 24px;
}

.scheduling-meeting-type-description {
    overflow-wrap: anywhere;
}

.scheduling-status-action-active-held {
    border-color: #16a34a;
    background: #dcfce7;
    color: #166534;
}

.scheduling-status-action-active-no-show,
.scheduling-status-action-active-cancelled {
    border-color: #dc2626;
    background: #fee2e2;
    color: #991b1b;
}

.scheduling-tab {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 48px;
    padding: 4px 0;
    border-bottom: 2px solid transparent;
    color: var(--sched-secondary);
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
    font-weight: 600;
    white-space: nowrap;
    transition: color 150ms ease, border-color 150ms ease;
}

.scheduling-tab:hover {
    color: var(--sched-primary);
    text-decoration: none;
}

.scheduling-tab-active {
    color: var(--sched-primary);
    border-bottom-color: var(--sched-primary);
    font-weight: 700;
}

.scheduling-tab-active .material-symbols-outlined {
    font-variation-settings: "FILL" 1, "wght" 500, "GRAD" 0, "opsz" 24;
}

.scheduling-calendar-shell {
    flex: 1;
    min-height: 0;
    display: flex;
    overflow: hidden;
    background: var(--sched-background);
    position: relative;
}

.scheduling-calendar-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border-right: 1px solid var(--sched-surface-border);
    transition: margin-right 300ms ease-in-out;
}

.scheduling-calendar-header {
    padding: 24px;
    flex-shrink: 0;
    background: var(--sched-surface-lowest);
}

.scheduling-calendar-title {
    font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
    font-size: 30px;
    line-height: 38px;
    letter-spacing: 0;
    font-weight: 700;
    color: var(--sched-text-main);
}

.scheduling-calendar-subtitle {
    margin-top: 4px;
    font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
    font-size: 14px;
    line-height: 20px;
    color: var(--sched-secondary);
}

.scheduling-primary-button {
    background: #006bff;
    color: #ffffff;
    min-height: 40px;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: background-color 150ms ease;
}

.scheduling-primary-button:hover {
    background: var(--sched-primary);
}

.scheduling-toolbar-button {
    background: var(--sched-surface-lowest);
    border: 1px solid var(--sched-surface-border);
    color: var(--sched-text-main);
    border-radius: 8px;
    min-height: 40px;
    padding: 8px 16px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: background-color 150ms ease;
}

.scheduling-toolbar-button:hover {
    background: var(--sched-surface-low);
}

.scheduling-icon-button {
    width: 32px;
    height: 32px;
    border-radius: 4px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--sched-secondary);
    transition: background-color 150ms ease;
}

.scheduling-icon-button:hover {
    background: var(--sched-surface-low);
}

.scheduling-view-switch {
    display: flex;
    background: var(--sched-surface-low);
    padding: 4px;
    border-radius: 8px;
    border: 1px solid var(--sched-surface-border);
}

.scheduling-view-button {
    padding: 6px 16px;
    border-radius: 6px;
    color: var(--sched-secondary);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    transition: color 150ms ease, background-color 150ms ease;
}

.scheduling-view-button:hover {
    color: var(--sched-text-main);
}

.scheduling-view-button-active {
    background: var(--sched-surface-lowest);
    border: 1px solid var(--sched-surface-border);
    color: var(--sched-text-main);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08);
}

.scheduling-calendar-grid-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    background: var(--sched-surface-lowest);
    padding: 0 24px 24px;
}

.scheduling-calendar-view-host {
    min-width: 0;
    min-height: 100%;
}

.scheduling-calendar-box {
    min-width: 800px;
    height: 100%;
    min-height: 680px;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--sched-surface-border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--sched-surface-lowest);
}

.scheduling-calendar-weekdays {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    border-bottom: 1px solid var(--sched-surface-border);
    background: var(--sched-surface-bright);
    flex-shrink: 0;
}

.scheduling-calendar-weekday {
    padding: 12px 8px;
    text-align: center;
    border-right: 1px solid var(--sched-surface-border);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    line-height: 14px;
    letter-spacing: 0.05em;
    font-weight: 700;
    color: var(--sched-secondary);
    text-transform: uppercase;
}

.scheduling-calendar-weekday:last-child {
    border-right: 0;
}

.scheduling-calendar-grid {
    flex: 1;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-template-rows: repeat(6, minmax(120px, 1fr));
}

.scheduling-calendar-cell {
    min-height: 120px;
    border-right: 1px solid var(--sched-surface-border);
    border-bottom: 1px solid var(--sched-surface-border);
    padding: 8px;
    background: var(--sched-surface-lowest);
    cursor: pointer;
    outline: none;
}

.scheduling-calendar-cell:nth-child(7n) {
    border-right: 0;
}

.scheduling-calendar-cell:nth-last-child(-n + 7) {
    border-bottom: 0;
}

.scheduling-calendar-cell:hover,
.scheduling-calendar-cell:focus-visible {
    background: var(--sched-surface-low);
}

.scheduling-calendar-cell-outside {
    background: #f8fafc;
    color: #9ca3af;
}

.scheduling-calendar-cell-today {
    background: #eff6ff;
}

.scheduling-calendar-day-number {
    display: inline-flex;
    min-width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    margin-bottom: 8px;
    color: var(--sched-secondary);
    font-size: 12px;
    font-weight: 700;
}

.scheduling-calendar-cell-today .scheduling-calendar-day-number {
    color: var(--sched-primary-container);
    background: #ffffff;
    border-radius: 9999px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.scheduling-event-pill {
    border: 1px solid rgba(15, 23, 42, 0.12);
    border-left: 3px solid var(--sched-primary-container);
    border-radius: 4px;
    padding: 4px 8px;
    margin-bottom: 4px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 11px;
    font-weight: 500;
    line-height: 1.25;
    color: var(--sched-text-main);
    cursor: pointer;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.scheduling-event-pill:hover {
    opacity: 0.9;
}

.scheduling-event-pill-blue {
    background: var(--sched-event-blue);
    border-color: rgba(37, 99, 235, 0.32);
    border-left-color: var(--sched-primary-container);
}

.scheduling-event-pill-green {
    background: var(--sched-event-green);
    border-color: rgba(22, 163, 74, 0.32);
    border-left-color: #16a34a;
}

.scheduling-event-pill-orange {
    background: var(--sched-event-orange);
    border-color: rgba(234, 88, 12, 0.32);
    border-left-color: #ea580c;
}

.scheduling-event-pill-purple {
    background: var(--sched-event-purple);
    border-color: rgba(139, 92, 246, 0.32);
    border-left-color: #8b5cf6;
}

.scheduling-event-pill-pink {
    background: var(--sched-event-pink);
    border-color: rgba(236, 72, 153, 0.32);
    border-left-color: #ec4899;
}

.scheduling-more-events {
    font-size: 11px;
    color: var(--sched-on-surface-variant);
}

.scheduling-upcoming-panel {
    width: 340px;
    height: 100%;
    background: var(--sched-surface-lowest);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow-y: auto;
}

.scheduling-upcoming-header {
    padding: 24px;
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid var(--sched-surface-border);
    z-index: 10;
}

.scheduling-upcoming-title {
    display: flex;
    align-items: center;
    font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
    font-size: 18px;
    line-height: 24px;
    font-weight: 600;
    color: var(--sched-text-main);
}

.scheduling-upcoming-list {
    padding: 24px;
    display: grid;
    gap: 16px;
}

.scheduling-upcoming-card {
    width: 100%;
    background: var(--sched-surface-lowest);
    border: 1px solid var(--sched-surface-border);
    border-radius: 8px;
    padding: 16px;
    cursor: pointer;
    text-align: left;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05);
    transition: border-color 150ms ease, opacity 150ms ease;
}

.scheduling-upcoming-card:hover {
    border-color: var(--sched-primary-fixed-dim);
}

.scheduling-upcoming-time {
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
    font-weight: 600;
    color: var(--sched-primary);
    background: rgba(0, 84, 204, 0.1);
    padding: 4px 8px;
    border-radius: 4px;
}

.scheduling-upcoming-card-title {
    margin-top: 8px;
    margin-bottom: 4px;
    font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
    font-size: 16px;
    line-height: 22px;
    font-weight: 600;
    color: var(--sched-text-main);
}

.scheduling-upcoming-meta {
    display: flex;
    align-items: center;
    color: var(--sched-secondary);
    font-family: "Hanken Grotesk", Inter, system-ui, sans-serif;
    font-size: 13px;
    line-height: 18px;
}

.scheduling-upcoming-type {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--sched-surface-border);
    font-family: Inter, system-ui, sans-serif;
    font-size: 11px;
    line-height: 14px;
    font-weight: 500;
    color: var(--sched-outline);
}

.scheduling-color-dot {
    width: 8px;
    height: 8px;
    border-radius: 9999px;
    background: var(--sched-primary-container);
    flex-shrink: 0;
}

.scheduling-color-dot-blue {
    background: var(--sched-primary-container);
}

.scheduling-color-dot-green {
    background: #16a34a;
}

.scheduling-color-dot-orange {
    background: #ea580c;
}

.scheduling-color-dot-purple {
    background: #8b5cf6;
}

.scheduling-color-dot-pink {
    background: #ec4899;
}

.scheduling-agenda-footer {
    margin-top: auto;
    padding: 24px;
    border-top: 1px solid var(--sched-surface-border);
    background: var(--sched-surface-bright);
}

.scheduling-agenda-button {
    width: 100%;
    background: #ffffff;
    border: 1px solid var(--sched-surface-border);
    color: var(--sched-text-main);
    min-height: 40px;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: Inter, system-ui, sans-serif;
    font-size: 12px;
    line-height: 16px;
    letter-spacing: 0.05em;
    font-weight: 600;
    transition: background-color 150ms ease;
}

.scheduling-agenda-button:hover {
    background: var(--sched-surface-low);
}

.scheduling-panel-open .scheduling-upcoming-panel {
    display: none;
}

.scheduling-event-panel {
    width: 0;
    max-width: 100%;
    background: var(--sched-surface-lowest);
    border-left: 1px solid var(--sched-surface-border);
    box-shadow: -10px 0 15px -3px rgba(0, 0, 0, 0.05);
    z-index: 50;
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 300ms ease-in-out, width 300ms ease-in-out;
}

.scheduling-panel-open .scheduling-event-panel {
    width: 480px;
    transform: translateX(0);
}

.scheduling-event-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-bottom: 1px solid var(--sched-surface-border);
    background: var(--sched-surface);
    padding: 16px 24px;
    flex-shrink: 0;
}

.scheduling-panel-icon-button {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 9999px;
    color: var(--sched-on-surface-variant);
}

.scheduling-panel-icon-button:hover {
    background: var(--sched-surface-low);
    color: var(--sched-text-main);
}

.scheduling-event-panel-body {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
    display: grid;
    gap: 20px;
}

.scheduling-event-panel-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--sched-surface-border);
    background: var(--sched-surface);
    padding: 16px 24px;
    flex-shrink: 0;
}

.scheduling-panel-field {
    display: grid;
    gap: 6px;
    color: var(--sched-on-surface-variant);
    font-size: 12px;
    font-weight: 700;
}

.scheduling-panel-field input,
.scheduling-panel-field select,
.scheduling-panel-field textarea {
    width: 100%;
    min-height: 42px;
    border: 1px solid var(--sched-surface-border);
    border-radius: 6px;
    background: var(--sched-surface-lowest);
    color: var(--sched-text-main);
    padding: 9px 12px;
    font-size: 14px;
    font-weight: 500;
}

.scheduling-panel-field textarea {
    min-height: 90px;
    resize: vertical;
}

.scheduling-panel-field input:focus,
.scheduling-panel-field select:focus,
.scheduling-panel-field textarea:focus {
    outline: none;
    border-color: var(--sched-primary);
    box-shadow: 0 0 0 2px rgba(0, 84, 204, 0.16);
}

.scheduling-panel-primary-button,
.scheduling-panel-secondary-button,
.scheduling-panel-danger-button {
    min-height: 40px;
    border-radius: 8px;
    padding: 8px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 700;
}

.scheduling-panel-primary-button {
    background: var(--sched-primary-container);
    color: #ffffff;
}

.scheduling-panel-primary-button:hover {
    background: var(--sched-primary);
}

.scheduling-panel-secondary-button {
    border: 1px solid var(--sched-surface-border);
    background: #ffffff;
    color: var(--sched-text-main);
}

.scheduling-panel-secondary-button:hover {
    background: var(--sched-surface-low);
}

.scheduling-panel-danger-button {
    border: 1px solid #fecaca;
    background: #ffffff;
    color: #b91c1c;
}

.scheduling-panel-danger-button:hover {
    background: #fef2f2;
}

.scheduling-status-badge {
    display: inline-flex;
    border-radius: 9999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 800;
}

.scheduling-status-scheduled {
    background: #dbeafe;
    color: #1d4ed8;
}

.scheduling-status-held {
    background: #dcfce7;
    color: #15803d;
}

.scheduling-status-no-show {
    background: #fef3c7;
    color: #b45309;
}

.scheduling-status-cancelled {
    background: #fee2e2;
    color: #b91c1c;
}

.scheduling-week-view,
.scheduling-day-view {
    width: 100%;
    min-height: 100%;
    display: flex;
}

.scheduling-week-grid,
.scheduling-day-grid {
    flex: 1;
    min-width: 0;
    background: var(--sched-surface-lowest);
    border: 1px solid var(--sched-surface-border);
    border-radius: 8px;
    overflow: auto;
    display: flex;
    flex-direction: column;
}

.scheduling-week-header {
    display: grid;
    grid-template-columns: 60px repeat(7, minmax(120px, 1fr));
    min-width: 900px;
    border-bottom: 1px solid var(--sched-surface-border);
    background: var(--sched-surface-bright);
    flex-shrink: 0;
}

.scheduling-week-time-spacer {
    border-right: 1px solid var(--sched-surface-border);
}

.scheduling-week-day-heading,
.scheduling-day-header {
    min-height: 58px;
    border-right: 1px solid var(--sched-surface-border);
    padding: 10px 12px;
    display: grid;
    gap: 2px;
    color: var(--sched-secondary);
    font-size: 12px;
    font-weight: 700;
    text-transform: capitalize;
}

.scheduling-week-day-heading:last-child {
    border-right: 0;
}

.scheduling-week-day-heading strong,
.scheduling-day-header strong {
    color: var(--sched-text-main);
    font-size: 18px;
}

.scheduling-week-day-today {
    background: #eff6ff;
}

.scheduling-week-body {
    display: grid;
    grid-template-columns: 60px repeat(7, minmax(120px, 1fr));
    min-width: 900px;
    position: relative;
}

.scheduling-week-time-column,
.scheduling-day-time-column {
    border-right: 1px solid var(--sched-surface-border);
    background: var(--sched-surface-low);
    color: var(--sched-secondary);
    font-size: 11px;
    font-weight: 700;
    text-align: right;
}

.scheduling-week-time-column div,
.scheduling-day-time-column div {
    padding: 6px 8px 0 0;
    border-bottom: 1px solid var(--sched-surface-border);
}

.scheduling-week-day-column {
    position: relative;
    border-right: 1px solid var(--sched-surface-border);
}

.scheduling-week-day-column:last-child {
    border-right: 0;
}

.scheduling-time-slot {
    border-bottom: 1px solid var(--sched-surface-border);
    cursor: pointer;
}

.scheduling-time-slot:hover {
    background: rgba(0, 84, 204, 0.06);
}

.scheduling-time-event {
    position: absolute;
    left: 6px;
    right: 6px;
    z-index: 10;
    display: grid;
    gap: 2px;
    min-height: 32px;
    white-space: normal;
    overflow: hidden;
    border-top: 1px solid rgba(255, 255, 255, 0.85);
    border-bottom: 1px solid rgba(15, 23, 42, 0.14);
    outline: 1px solid rgba(15, 23, 42, 0.08);
    outline-offset: 0;
    box-shadow: 0 3px 8px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.scheduling-time-event-compact,
.scheduling-day-event-compact {
    z-index: 20;
    padding: 3px 5px;
    gap: 0;
}

.scheduling-time-event-compact .scheduling-time-event-meta,
.scheduling-day-event-compact .scheduling-time-event-meta {
    display: none;
}

.scheduling-time-event-compact .scheduling-time-event-title,
.scheduling-day-event-compact .scheduling-time-event-title {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scheduling-day-header {
    border-bottom: 1px solid var(--sched-surface-border);
    border-right: 0;
    flex-shrink: 0;
}

.scheduling-day-body {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    position: relative;
}

.scheduling-day-grid-area {
    position: relative;
    min-width: 0;
}

.scheduling-day-event {
    left: 12px;
    right: 12px;
}

.scheduling-current-time-line {
    position: absolute;
    height: 3px;
    background: #dc2626;
    z-index: 80;
    pointer-events: none;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85), 0 4px 12px rgba(220, 38, 38, 0.25);
}

.scheduling-current-time-line::before {
    content: "";
    position: absolute;
    left: -6px;
    top: -5px;
    width: 12px;
    height: 12px;
    border-radius: 9999px;
    background: #dc2626;
}

.scheduling-current-time-label {
    position: absolute;
    left: 8px;
    top: -10px;
    padding: 1px 6px;
    border-radius: 9999px;
    background: #dc2626;
    color: #ffffff;
    font-size: 10px;
    line-height: 14px;
    font-weight: 700;
}

@media (max-width: 1100px) {
    .scheduling-calendar-shell {
        flex-direction: column;
        overflow: auto;
    }

    .scheduling-calendar-main {
        border-right: 0;
    }

    .scheduling-upcoming-panel {
        width: 100%;
        height: auto;
        max-height: none;
        display: flex !important;
    }

    .scheduling-panel-open .scheduling-upcoming-panel {
        display: none !important;
    }
}

@media (max-width: 720px) {
    .scheduling-event-panel,
    .scheduling-panel-open .scheduling-event-panel {
        position: absolute;
        inset: 0;
        width: 100%;
        z-index: 70;
    }
}

@media (max-width: 640px) {
    .site-header,
    .dashboard-head {
        align-items: stretch;
        flex-direction: column;
    }

    .page {
        padding-top: 28px;
    }

    .panel {
        padding: 22px;
    }

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

    .span-two {
        grid-column: auto;
    }

    .actions,
    .links {
        flex-direction: column;
    }
}

@media (max-width: 900px) {
    aside {
        display: none !important;
    }

    .scheduling-upcoming-panel {
        display: flex !important;
    }

    header {
        left: 0;
        width: 100% !important;
    }

    main {
        margin-left: 0 !important;
    }
}
