h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid #26b050;
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

.form-floating>.form-control-plaintext::placeholder,
.form-floating>.form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating>.form-control-plaintext:focus::placeholder,
.form-floating>.form-control:focus::placeholder {
    text-align: start;
}

:root {
    --brand-ink: #0f1e2b;
    --brand-ink-soft: #2a3b4a;
    --brand-accent: #f59e0b;
    --brand-accent-2: #10b981;
    --brand-surface: #ffffff;
    --brand-surface-alt: #f7f4ee;
    --brand-border: rgba(15, 30, 43, 0.08);
    --brand-shadow: 0 20px 60px rgba(15, 30, 43, 0.08);
    --owner-layout-appbar-height: 64px;
    --owner-layout-appbar-bg: linear-gradient(90deg, #16181d 0%, #1b1f26 100%);
    --owner-layout-appbar-text: #f5f7ff;
    --owner-layout-sidebar-bg: #171a20;
    --owner-layout-sidebar-text: #d7dbe4;
    --owner-layout-sidebar-muted: #9aa3b2;
    --owner-layout-sidebar-active-bg: rgba(255, 255, 255, 0.1);
    --owner-layout-sidebar-active-text: #ffffff;
    --owner-layout-border: rgba(148, 155, 170, 0.24);
    --owner-layout-main-bg: color-mix(in srgb, var(--mud-palette-background) 92%, #000 8%);
    --owner-page-bg: #101216;
    --owner-surface-1: #ffffff;
    --owner-surface-2: #f7f9ff;
    --owner-surface-border: rgba(61, 72, 108, 0.16);
    --owner-card-shadow: 0 14px 34px rgba(22, 29, 54, 0.08);
    --owner-muted-text: #5f6883;
    --owner-skeleton-base: color-mix(in srgb, var(--owner-surface-2) 84%, #000 16%);
    --owner-skeleton-highlight: color-mix(in srgb, #fff 22%, transparent);
}

html.owner-theme-light {
    --owner-layout-appbar-bg: linear-gradient(90deg, #e9edf4 0%, #e1e7f0 100%);
    --owner-layout-appbar-text: #1d2532;
    --owner-layout-sidebar-bg: #f3f5f9;
    --owner-layout-sidebar-text: #2f3a4a;
    --owner-layout-sidebar-muted: #607086;
    --owner-layout-sidebar-active-bg: rgba(15, 118, 110, 0.12);
    --owner-layout-sidebar-active-text: #0f5f58;
    --owner-layout-border: rgba(110, 124, 143, 0.22);
    --owner-layout-main-bg: #eef2f6;
    --owner-page-bg: #e9edf2;
    --owner-surface-1: #ffffff;
    --owner-surface-2: #f6f8fb;
    --owner-surface-border: rgba(110, 124, 143, 0.2);
    --owner-card-shadow: 0 12px 30px rgba(28, 35, 48, 0.08);
    --owner-muted-text: #5f6d81;
    --owner-skeleton-base: color-mix(in srgb, #d7dee8 82%, #ffffff 18%);
    --owner-skeleton-highlight: color-mix(in srgb, #ffffff 72%, transparent);
    --mud-palette-lines-default: color-mix(in srgb, #d7dee8 82%, #ffffff 18%);
    --mud-palette-primary: #0f766e;
    --mud-palette-primary-rgb: 15, 118, 110;
    --mud-palette-primary-text: #ecfeff;
}

html.owner-theme-dark {
    --owner-layout-appbar-bg: linear-gradient(90deg, #15181d 0%, #1a1f27 100%);
    --owner-layout-appbar-text: #eff2ff;
    --owner-layout-sidebar-bg: #161a20;
    --owner-layout-sidebar-text: #d4d9e3;
    --owner-layout-sidebar-muted: #98a2b3;
    --owner-layout-sidebar-active-bg: rgba(255, 255, 255, 0.1);
    --owner-layout-sidebar-active-text: #ffffff;
    --owner-layout-border: rgba(148, 155, 170, 0.22);
    --owner-layout-main-bg: #14171c;
    --owner-page-bg: #0f1217;
    --owner-surface-1: #1b1f26;
    --owner-surface-2: #171b22;
    --owner-surface-border: rgba(144, 151, 165, 0.22);
    --owner-card-shadow: 0 12px 28px rgba(7, 11, 24, 0.28);
    --owner-muted-text: #aeb6c5;
    --owner-skeleton-base: color-mix(in srgb, #212630 80%, #000 20%);
    --owner-skeleton-highlight: color-mix(in srgb, #ffffff 20%, transparent);
    --mud-palette-lines-default: color-mix(in srgb, #212630 80%, #000 20%);
    --mud-palette-primary: #0f766e;
    --mud-palette-primary-rgb: 15, 118, 110;
    --mud-palette-primary-text: #ecfeff;
}

body {
    font-family: "Space Grotesk", sans-serif;
    color: var(--mud-palette-text-primary);
    background: var(--owner-page-bg);
}

body.owner-hybrid-shell {
    min-height: 100dvh;
    height: auto;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
}

body.owner-hybrid-shell #app {
    min-height: 100dvh;
    height: auto;
    overflow: visible;
    background: var(--owner-layout-main-bg);
}

/* Defensive: if MudOverlay leaves scroll lock class behind, keep mobile content scrollable. */
html.owner-hybrid-shell.scroll-locked,
body.owner-hybrid-shell.scroll-locked {
    overflow-y: auto !important;
}

body.owner-hybrid-shell.scroll-locked {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    height: auto !important;
}

body.owner-hybrid-shell .owner-layout-shell,
body.owner-hybrid-shell .owner-layout-shell .mud-layout {
    min-height: 100dvh;
    height: auto;
    overflow: visible;
}

body.owner-hybrid-shell .owner-main-content {
    min-height: 0;
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: auto;
    touch-action: pan-y;
}

body.owner-hybrid-shell .owner-content-container {
    min-height: auto;
}

body.owner-hybrid-shell .public-layout-shell {
    min-height: 100dvh;
    height: 100dvh;
    overflow: hidden;
}

body.owner-hybrid-shell .auth-shell {
    min-height: 100dvh;
    height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
}

.theme-boot-shell {
    min-height: 100dvh;
    display: grid;
    place-items: center;
}

.theme-boot-loader {
    display: grid;
    justify-items: center;
    gap: 14px;
}

.theme-boot-loader-ring {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    border: 3px solid rgba(148, 163, 184, 0.28);
    border-top-color: #cbd5e1;
    border-right-color: #94a3b8;
    animation: owner-theme-boot-spin 1.1s linear infinite;
    box-shadow: 0 0 0 8px rgba(148, 163, 184, 0.08);
}

.theme-boot-loader-text {
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #cbd5e1;
    animation: owner-theme-boot-pulse 1.35s ease-in-out infinite;
}

.theme-boot-loader-subtext {
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    color: rgba(203, 213, 225, 0.72);
    animation: owner-theme-boot-fade 1.8s ease-in-out infinite;
}

@keyframes owner-theme-boot-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes owner-theme-boot-pulse {
    0%, 100% {
        opacity: 0.45;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-2px);
    }
}

@keyframes owner-theme-boot-fade {
    0%, 100% {
        opacity: 0.5;
    }
    50% {
        opacity: 1;
    }
}

.owner-layout-shell .owner-appbar {
    height: var(--owner-layout-appbar-height);
    border-bottom: 1px solid var(--owner-layout-border);
    background: var(--owner-layout-appbar-bg) !important;
    color: var(--owner-layout-appbar-text) !important;
    box-shadow: 0 10px 26px rgba(8, 11, 24, 0.22);
}

html.owner-theme-light .owner-layout-shell .owner-appbar {
    box-shadow: 0 8px 20px rgba(84, 99, 120, 0.16);
}

html.owner-theme-light .owner-layout-shell .owner-drawer .mud-drawer-content {
    background: linear-gradient(180deg, #f3f5f9 0%, #eef2f7 100%);
}

.owner-layout-shell .owner-appbar .mud-toolbar {
    min-height: var(--owner-layout-appbar-height);
    padding-inline: 14px;
}

.owner-layout-shell .owner-appbar .mud-icon-button-root,
.owner-layout-shell .owner-appbar .mud-button-root,
.owner-layout-shell .owner-appbar .mud-typography {
    color: var(--owner-layout-appbar-text) !important;
}

.owner-layout-shell .owner-trial-chip {
    margin-left: 12px;
    max-width: min(320px, 42vw);
    border: 1px solid rgba(255, 255, 255, 0.18);
    background: color-mix(in srgb, var(--mud-palette-primary) 22%, rgba(0, 0, 0, 0.4)) !important;
    color: var(--owner-layout-appbar-text) !important;
    font-weight: 600;
    letter-spacing: 0.01em;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.owner-layout-shell .owner-trial-chip .mud-chip-icon {
    color: inherit;
}

html.owner-theme-light .owner-layout-shell .owner-trial-chip {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, #ffffff 88%) !important;
    border-color: rgba(15, 118, 110, 0.2);
}

.owner-layout-shell .owner-drawer {
    width: 240px;
}

.owner-layout-shell .owner-drawer .mud-drawer-content {
    background: var(--owner-layout-sidebar-bg);
    color: var(--owner-layout-sidebar-text);
    border-right: 1px solid var(--owner-layout-border);
}

.owner-layout-shell .owner-drawer-header {
    min-height: var(--owner-layout-appbar-height);
    display: flex;
    align-items: center;
    padding-inline: 18px;
    border-bottom: 1px solid var(--owner-layout-border);
    color: var(--owner-layout-sidebar-muted);
}

.owner-navmenu {
    padding: 10px 8px 12px;
}

.owner-navmenu .owner-nav-link {
    min-height: 44px;
    margin: 2px 6px;
    border-radius: 12px;
    padding-inline: 10px;
    color: var(--owner-layout-sidebar-text);
    transition: background-color 0.15s ease, color 0.15s ease;
}

.owner-navmenu .owner-nav-link .mud-nav-link-icon {
    color: var(--owner-layout-sidebar-muted);
}

.owner-navmenu .owner-nav-link:hover {
    background: color-mix(in srgb, var(--owner-layout-sidebar-active-bg) 70%, transparent);
}

.owner-navmenu .owner-nav-link.active,
.owner-navmenu .owner-nav-link.mud-nav-link-active {
    background: var(--owner-layout-sidebar-active-bg);
    color: var(--owner-layout-sidebar-active-text);
    font-weight: 600;
    position: relative;
}

.owner-navmenu .owner-nav-link.active .mud-nav-link-icon,
.owner-navmenu .owner-nav-link.mud-nav-link-active .mud-nav-link-icon {
    color: var(--owner-layout-sidebar-active-text);
}

.owner-navmenu .owner-nav-link.active::before,
.owner-navmenu .owner-nav-link.mud-nav-link-active::before {
    content: "";
    position: absolute;
    left: -6px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 3px;
    background: color-mix(in srgb, var(--mud-palette-primary) 86%, #fff 14%);
}

.owner-layout-shell,
.owner-layout-shell .mud-layout,
.owner-layout-shell .mud-main-content,
.owner-main-content {
    background: var(--owner-layout-main-bg) !important;
}

.owner-main-content {
    min-height: calc(100vh - var(--owner-layout-appbar-height));
}

.owner-content-container {
    padding-top: 18px !important;
    min-height: calc(100vh - var(--owner-layout-appbar-height));
}

.owner-mobile-title,
.owner-mobile-tabbar {
    display: none;
}

.owner-desktop-only {
    display: initial;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "Fraunces", serif;
    letter-spacing: -0.02em;
}

.mud-typography-h4,
.mud-typography-h3,
.mud-typography-h5,
.mud-typography-h6,
.mud-typography-subtitle1 {
    font-weight: 600;
}

.page-hero {
    background: linear-gradient(135deg, #0f1e2b 0%, #203448 55%, #0f1e2b 100%);
    color: #f8f5ee;
    border-radius: 22px;
    padding: 28px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--brand-shadow);
}

.page-hero::after {
    content: "";
    position: absolute;
    inset: -40% 30% auto auto;
    width: 260px;
    height: 260px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(245, 158, 11, 0.6), transparent 65%);
    opacity: 0.7;
}

.business-profile-hero::after {
    inset: -34% -2% auto auto;
    width: 220px;
    height: 220px;
    opacity: 0.45;
    background: radial-gradient(circle at 30% 30%,
            color-mix(in srgb, var(--mud-palette-warning) 34%, transparent),
            transparent 70%);
}

.business-profile-hero .glass-panel {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 72%, transparent);
    background: color-mix(in srgb, var(--owner-surface-1) 86%, transparent);
}

html.owner-theme-light .business-profile-hero {
    background: linear-gradient(135deg, #e6edf5 0%, #dde6f1 56%, #d6e0ec 100%);
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 85%, transparent);
    box-shadow: 0 10px 24px rgba(31, 45, 64, 0.1);
}

html.owner-theme-light .business-profile-hero .mud-typography-h3 {
    color: #243244 !important;
}

html.owner-theme-light .business-profile-hero .mud-typography-body2 {
    color: #4e5d72 !important;
}

html.owner-theme-light .business-profile-hero .mud-typography-subtitle2,
html.owner-theme-light .business-profile-hero .mud-typography-h6 {
    color: #2b394c !important;
}

html.owner-theme-light .business-profile-hero .muted {
    color: #627287 !important;
}

html.owner-theme-light .business-profile-hero .hero-chip {
    background: rgba(255, 255, 255, 0.7);
    border-color: rgba(102, 119, 143, 0.28);
    color: #2e3d51;
}

html.owner-theme-light .business-profile-hero .glass-panel {
    background: color-mix(in srgb, #ffffff 92%, transparent);
    border: 1px solid rgba(108, 124, 147, 0.28);
    box-shadow: 0 8px 20px rgba(34, 49, 68, 0.1);
}

html.owner-theme-light .business-profile-hero .glass-panel .muted {
    color: #6a7a8f !important;
}

.hero-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    font-size: 0.85rem;
}

.section-card {
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
    border: 1px solid var(--owner-surface-border);
    border-radius: 18px;
    box-shadow: var(--owner-card-shadow);
}

.section-card.alt {
    background: color-mix(in srgb, var(--owner-surface-1) 85%, var(--owner-page-bg) 15%);
}

.dashboard-page {
    padding-bottom: 18px;
}

.dashboard-mobile-actions {
    display: none;
}

.dashboard-mobile-action {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent);
    border-radius: 16px;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
    color: var(--mud-palette-text-primary);
    min-height: 72px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font: inherit;
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0;
    box-shadow: var(--owner-card-shadow);
}

.dashboard-mobile-action .mud-icon-root {
    font-size: 1.45rem;
    color: color-mix(in srgb, var(--mud-palette-primary) 78%, var(--mud-palette-text-primary) 22%);
}

.dashboard-hero {
    background: linear-gradient(132deg,
            color-mix(in srgb, var(--owner-surface-1) 90%, #000 10%),
            color-mix(in srgb, var(--owner-surface-2) 82%, var(--mud-palette-primary) 18%) 58%,
            color-mix(in srgb, var(--owner-surface-2) 88%, #000 12%));
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, var(--mud-palette-primary) 22%);
    color: var(--mud-palette-text-primary);
    position: relative;
    overflow: visible;
    z-index: 5;
}

.dashboard-hero::before {
    content: "";
    position: absolute;
    width: 280px;
    height: 280px;
    right: -84px;
    top: -110px;
    border-radius: 50%;
    background: radial-gradient(circle,
            color-mix(in srgb, var(--mud-palette-primary) 26%, transparent) 0%,
            transparent 70%);
}

.dashboard-hero::after {
    content: "";
    position: absolute;
    width: 220px;
    height: 220px;
    left: -70px;
    bottom: -120px;
    border-radius: 50%;
    background: radial-gradient(circle,
            color-mix(in srgb, var(--mud-palette-secondary) 24%, transparent) 0%,
            transparent 70%);
}

.dashboard-hero .mud-grid,
.dashboard-hero .mud-paper {
    position: relative;
    z-index: 1;
}

.dashboard-hero-subtitle {
    color: color-mix(in srgb, var(--mud-palette-text-secondary) 92%, var(--mud-palette-primary) 8%);
    letter-spacing: 0.12em;
    font-weight: 700;
}

.dashboard-hero-description {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 78%, var(--mud-palette-text-secondary) 22%);
    max-width: 720px;
}

.dashboard-filter-stack {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
}

.dashboard-date-filter {
    min-width: 160px;
}

.dashboard-filter-panel {
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, var(--mud-palette-primary) 18%);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
    position: relative;
    z-index: 3;
}

.dashboard-page .mud-popover {
    z-index: 1600;
}

.dashboard-hero-rise {
    animation: dashboard-hero-fade 0.5s ease both;
}

@keyframes dashboard-hero-fade {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.dashboard-kpi-card {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 86%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 92%, #000 8%));
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.dashboard-kpi-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 44%, transparent);
    box-shadow: 0 14px 28px color-mix(in srgb, var(--mud-palette-primary) 16%, transparent);
}

.dashboard-kpi-card .mud-typography-h5 {
    font-weight: 700;
}

.dashboard-kpi-value {
    margin-top: 8px;
    margin-bottom: 5px;
}

.dashboard-kpi-avatar {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 86%, var(--mud-palette-primary) 14%);
    box-shadow: 0 8px 18px rgba(2, 6, 23, 0.16);
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, var(--mud-palette-primary) 22%);
}

.dashboard-kpi-avatar.kpi-a {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 92%, var(--mud-palette-primary) 8%),
            color-mix(in srgb, var(--owner-surface-2) 90%, #000 10%));
}

.dashboard-kpi-avatar.kpi-b {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 92%, var(--mud-palette-primary) 8%),
            color-mix(in srgb, var(--owner-surface-2) 90%, #000 10%));
}

.dashboard-kpi-avatar.kpi-c {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 91%, var(--mud-palette-primary) 9%),
            color-mix(in srgb, var(--owner-surface-2) 90%, #000 10%));
}

.dashboard-kpi-avatar.kpi-d {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 90%, var(--mud-palette-primary) 10%),
            color-mix(in srgb, var(--owner-surface-2) 90%, #000 10%));
}

.dashboard-kpi-avatar.kpi-e {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 93%, var(--mud-palette-primary) 7%),
            color-mix(in srgb, var(--owner-surface-2) 91%, #000 9%));
}

.dashboard-kpi-avatar.kpi-f {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 91%, var(--mud-palette-primary) 9%),
            color-mix(in srgb, var(--owner-surface-2) 90%, #000 10%));
}

.dashboard-kpi-avatar.kpi-g {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 90%, var(--mud-palette-primary) 10%),
            color-mix(in srgb, var(--owner-surface-2) 89%, #000 11%));
}

.dashboard-kpi-avatar.kpi-h {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--owner-surface-1) 92%, var(--mud-palette-primary) 8%),
            color-mix(in srgb, var(--owner-surface-2) 90%, #000 10%));
}

.dashboard-insight-card {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, var(--mud-palette-primary) 18%);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-primary) 8%, var(--owner-surface-1) 92%),
            color-mix(in srgb, var(--owner-surface-2) 91%, #000 9%));
}

.dashboard-insight-label {
    font-weight: 700;
    color: var(--mud-palette-primary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.dashboard-chart-card {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 84%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 91%, #000 9%));
}

.dashboard-chart-card .apexcharts-toolbar {
    display: none !important;
}

.dashboard-chart-card .apexcharts-tooltip {
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent) !important;
    background: color-mix(in srgb, var(--owner-surface-1) 92%, #000 8%) !important;
    color: var(--mud-palette-text-primary) !important;
    box-shadow: 0 12px 24px rgba(2, 6, 23, 0.24);
}

.dashboard-chart-card .apexcharts-tooltip-title {
    border-bottom: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent) !important;
    background: color-mix(in srgb, var(--owner-surface-2) 88%, #000 12%) !important;
    color: var(--mud-palette-text-primary) !important;
}

.dashboard-chart-card .apexcharts-tooltip-text,
.dashboard-chart-card .apexcharts-tooltip-text-y-label,
.dashboard-chart-card .apexcharts-tooltip-text-y-value,
.dashboard-chart-card .apexcharts-tooltip-text-z-label,
.dashboard-chart-card .apexcharts-tooltip-text-z-value,
.dashboard-chart-card .apexcharts-legend-text,
.dashboard-chart-card .apexcharts-xaxis-label,
.dashboard-chart-card .apexcharts-yaxis-label {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 82%, var(--mud-palette-text-secondary) 18%) !important;
    fill: color-mix(in srgb, var(--mud-palette-text-primary) 82%, var(--mud-palette-text-secondary) 18%) !important;
}

.dashboard-chart-card .apexcharts-gridline {
    stroke: color-mix(in srgb, var(--mud-palette-divider) 58%, transparent) !important;
}

.dashboard-chart-card .apexcharts-xcrosshairs,
.dashboard-chart-card .apexcharts-ycrosshairs {
    fill: color-mix(in srgb, var(--mud-palette-primary) 10%, transparent) !important;
}

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

.rise-in {
    animation: rise-in 0.6s ease both;
}

.rise-delay-1 {
    animation-delay: 0.08s;
}

.rise-delay-2 {
    animation-delay: 0.16s;
}

.rise-delay-3 {
    animation-delay: 0.24s;
}

@keyframes rise-in {
    from {
        opacity: 0;
        transform: translateY(12px);
    }

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

.gallery-card {
    border-radius: 16px;
    border: 1px solid var(--owner-surface-border);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 97%, #fff 3%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
    overflow: hidden;
    box-shadow: var(--owner-card-shadow);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 40px rgba(15, 30, 43, 0.16);
}

.business-gallery-action-row {
    gap: 2px;
}

.form-panel {
    display: grid;
    gap: 18px;
}

.soft-divider {
    border-top: 1px dashed rgba(15, 30, 43, 0.12);
    margin: 24px 0;
}

.glass-panel {
    background: rgba(255, 255, 255, 0.65);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.6);
}

.business-map {
    height: 280px;
    border-radius: 16px;
    overflow: hidden;
}

.business-profile-page {
    padding-bottom: 16px;
}

/* Page-scoped hard overrides for BusinessProfile */
.business-profile-page .business-profile-tabs .mud-tabs-panels {
    background: color-mix(in srgb, var(--owner-surface-2) 92%, var(--owner-surface-1) 8%) !important;
}

.business-profile-page .business-profile-tabs .mud-tabs-panels .mud-tab-panel {
    background: transparent !important;
}

.business-profile-page .business-profile-tabs .mud-tabs-panels .business-gallery-panel,
.business-profile-page .business-gallery-panel.section-card.alt {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 64%, var(--mud-palette-primary) 36%) !important;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--owner-surface-1) 98%, var(--mud-palette-primary) 2%),
        color-mix(in srgb, var(--owner-surface-2) 97%, #000 3%)) !important;
}

.business-profile-page .business-profile-selected-image {
    border-color: color-mix(in srgb, var(--owner-surface-border) 62%, var(--mud-palette-info) 38%) !important;
    background: color-mix(in srgb, var(--owner-surface-1) 96%, var(--mud-palette-info) 4%) !important;
}

.business-profile-page .business-gallery-thumb {
    border-color: color-mix(in srgb, var(--owner-surface-border) 70%, transparent) !important;
    background: color-mix(in srgb, var(--owner-surface-1) 95%, var(--owner-surface-2) 5%) !important;
}

.business-profile-page .business-gallery-panel .service-image-dropzone {
    border-color: color-mix(in srgb, var(--owner-surface-border) 66%, var(--mud-palette-primary) 34%) !important;
    background: color-mix(in srgb, var(--owner-surface-1) 95%, var(--owner-surface-2) 5%) !important;
}

.business-profile-page .business-profile-tabs .mud-tabs-toolbar .mud-tab.mud-tab-active {
    border-color: color-mix(in srgb, var(--owner-surface-border) 62%, var(--mud-palette-primary) 38%) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, var(--owner-surface-1) 86%) !important;
}

.business-profile-page .mud-skeleton,
.business-profile-page .mud-skeleton.mud-skeleton-text,
.business-profile-page .mud-skeleton.mud-skeleton-rect,
.business-profile-page .mud-skeleton.mud-skeleton-circle {
    background-color: var(--mud-palette-lines-default) !important;
    background-image: none !important;
}

.business-profile-actionbar {
    margin-top: 16px;
    padding: 12px 16px;
    position: sticky;
    top: 68px;
    z-index: 14;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 74%, var(--mud-palette-primary) 26%);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 92%, var(--mud-palette-primary) 8%),
            color-mix(in srgb, var(--owner-surface-2) 96%, #000 4%));
    backdrop-filter: blur(10px);
    box-shadow: 0 12px 26px color-mix(in srgb, #000 20%, transparent);
}

.business-profile-actionbar-inner {
    gap: 12px;
    flex-wrap: wrap;
}

.business-profile-actionbar-meta {
    gap: 8px;
    flex-wrap: wrap;
}

.business-profile-actionbar-buttons {
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.business-profile-shortcut {
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, transparent);
    background: color-mix(in srgb, var(--owner-surface-1) 88%, var(--owner-surface-2) 12%);
    color: color-mix(in srgb, var(--mud-palette-text-primary) 82%, var(--mud-palette-text-secondary) 18%);
    padding-inline: 14px;
}

.business-profile-shortcut.is-active {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 46%, var(--owner-surface-border) 54%);
    background: color-mix(in srgb, var(--mud-palette-primary) 14%, var(--owner-surface-1) 86%);
    color: color-mix(in srgb, var(--mud-palette-primary) 76%, var(--mud-palette-text-primary) 24%);
}

.business-profile-shortcut:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 30%, var(--owner-surface-border) 70%);
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--owner-surface-1) 92%);
}

.business-profile-actionbar .mud-button-root {
    border-radius: 10px;
}

.business-profile-actionbar .mud-button-outlined {
    border-color: color-mix(in srgb, var(--owner-surface-border) 72%, var(--mud-palette-primary) 28%);
}

.business-profile-actionbar .mud-button-filled-primary {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--mud-palette-primary) 72%, #fff 28%),
            color-mix(in srgb, var(--mud-palette-primary) 90%, #000 10%));
}

.business-profile-tabs .mud-tabs-toolbar {
    padding-inline: 4px;
    border-radius: 12px 12px 0 0;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 76%, var(--mud-palette-primary) 24%);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-2) 94%, var(--mud-palette-primary) 6%),
            color-mix(in srgb, var(--owner-surface-1) 92%, #000 8%)) !important;
}

.business-profile-inner-tabs .mud-tabs-toolbar {
    padding-inline: 4px;
    margin-bottom: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent);
    background: color-mix(in srgb, var(--owner-surface-2) 90%, var(--owner-surface-1) 10%) !important;
}

.business-profile-tabs .mud-tabs-tabbar,
.business-profile-inner-tabs .mud-tabs-tabbar {
    background: color-mix(in srgb, var(--owner-surface-2) 92%, var(--owner-surface-1) 8%) !important;
    border-bottom: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent) !important;
}

.business-profile-tabs .mud-tabs-tabbar-content,
.business-profile-inner-tabs .mud-tabs-tabbar-content {
    background: transparent !important;
}

.business-profile-tabs .mud-tab,
.business-profile-inner-tabs .mud-tab {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 78%, var(--mud-palette-text-secondary) 22%) !important;
    font-weight: 600;
}

.business-profile-tabs .mud-tab.mud-tab-active,
.business-profile-inner-tabs .mud-tab.mud-tab-active {
    color: color-mix(in srgb, var(--mud-palette-primary) 76%, var(--mud-palette-text-primary) 24%) !important;
}

.business-profile-tabs .mud-tabs-slider,
.business-profile-inner-tabs .mud-tabs-slider {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 82%, #fff 18%) !important;
}

.business-profile-tabs .mud-tabs-panels {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    border-top: 0;
    border-radius: 0 0 14px 14px;
    background: color-mix(in srgb, var(--owner-surface-2) 96%, #000 4%);
}

.business-profile-tabs .mud-input-control>.mud-input-control-input-container>.mud-input-outlined>.mud-input-outlined-border {
    border-color: color-mix(in srgb, var(--owner-surface-border) 84%, transparent) !important;
}

.business-profile-tabs .mud-input-control .mud-input {
    background: color-mix(in srgb, var(--owner-surface-1) 90%, var(--owner-surface-2) 10%);
}

.business-profile-tabs .mud-input-control .mud-input:focus-within {
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}

.business-profile-tabs .mud-input-label,
.business-profile-tabs .mud-input-slot {
    color: var(--mud-palette-text-primary);
}

.business-profile-kpi-row {
    align-items: stretch;
}

.business-profile-kpi-row>.mud-grid-item {
    display: flex;
}

.business-profile-kpi-row .services-kpi-card {
    width: 100%;
}

.business-profile-kpi-card {
    --kpi-accent: var(--mud-palette-primary);
    height: 100%;
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, var(--mud-palette-primary) 22%) !important;
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 94%, var(--mud-palette-primary) 6%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
    box-shadow: var(--owner-card-shadow);
}

.business-profile-kpi-card::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--kpi-accent), transparent);
}

.business-profile-kpi-card.kpi-completion {
    --kpi-accent: color-mix(in srgb, var(--mud-palette-primary) 86%, #fff 14%);
    border-color: color-mix(in srgb, var(--owner-surface-border) 76%, var(--mud-palette-primary) 24%) !important;
}

.business-profile-kpi-card.kpi-location {
    --kpi-accent: color-mix(in srgb, var(--mud-palette-primary) 74%, #fff 26%);
    border-color: color-mix(in srgb, var(--owner-surface-border) 82%, var(--mud-palette-primary) 18%) !important;
}

.business-profile-kpi-card.kpi-gallery {
    --kpi-accent: color-mix(in srgb, var(--mud-palette-primary) 68%, #fff 32%);
    border-color: color-mix(in srgb, var(--owner-surface-border) 84%, var(--mud-palette-primary) 16%) !important;
}

.business-profile-kpi-card.kpi-hours {
    --kpi-accent: color-mix(in srgb, var(--mud-palette-primary) 62%, #fff 38%);
    border-color: color-mix(in srgb, var(--owner-surface-border) 86%, var(--mud-palette-primary) 14%) !important;
}

.business-profile-kpi-value {
    margin-top: 6px;
    margin-bottom: 4px;
    font-weight: 700;
    color: color-mix(in srgb, var(--mud-palette-text-primary) 88%, var(--mud-palette-primary) 12%);
}

html.owner-theme-light .business-profile-kpi-row .services-kpi-card {
    border-color: color-mix(in srgb, var(--owner-surface-border) 86%, var(--mud-palette-primary) 14%);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 97%, var(--mud-palette-primary) 3%),
            color-mix(in srgb, var(--owner-surface-2) 96%, #000 4%));
}

html.owner-theme-light .business-profile-kpi-row .services-kpi-value {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 90%, var(--mud-palette-primary) 10%);
}

.business-profile-hint {
    border: 1px dashed color-mix(in srgb, var(--mud-palette-warning) 36%, transparent);
    background: color-mix(in srgb, var(--mud-palette-warning) 6%, var(--owner-surface-1) 94%);
}

.business-profile-hint-chips {
    gap: 8px;
    flex-wrap: wrap;
}

.business-gallery-panel {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 74%, var(--mud-palette-primary) 26%);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 95%, var(--mud-palette-primary) 5%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
}

.business-gallery-panel.section-card.alt {
    border-color: color-mix(in srgb, var(--owner-surface-border) 70%, var(--mud-palette-primary) 30%) !important;
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, var(--mud-palette-primary) 4%),
            color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%)) !important;
}

.business-profile-tabs .mud-tabs-panels .business-gallery-panel {
    border-color: color-mix(in srgb, var(--owner-surface-border) 70%, var(--mud-palette-primary) 30%) !important;
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, var(--mud-palette-primary) 4%),
            color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%)) !important;
}

.business-gallery-panel .service-image-dropzone {
    border-color: color-mix(in srgb, var(--owner-surface-border) 72%, var(--mud-palette-primary) 28%);
    background: color-mix(in srgb, var(--owner-surface-1) 92%, var(--owner-surface-2) 8%);
}

.business-profile-tabs .mud-tab.mud-tab-active {
    background: color-mix(in srgb, var(--mud-palette-primary) 10%, var(--owner-surface-1) 90%);
    border-radius: 8px 8px 0 0;
}

.business-profile-tabs .mud-tabs-toolbar .mud-tab {
    border: 1px solid transparent;
    margin-right: 2px;
}

.business-profile-tabs .mud-tabs-toolbar .mud-tab.mud-tab-active {
    border-color: color-mix(in srgb, var(--owner-surface-border) 68%, var(--mud-palette-primary) 32%) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--owner-surface-1) 88%) !important;
    box-shadow: none !important;
}

.business-gallery-panel .mud-button-outlined {
    border-color: color-mix(in srgb, var(--owner-surface-border) 76%, var(--mud-palette-primary) 24%);
}

.business-gallery-panel .mud-button-filled-primary {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--mud-palette-primary) 72%, #fff 28%),
            color-mix(in srgb, var(--mud-palette-primary) 88%, #000 12%));
}

.business-gallery-dropzone {
    min-height: 148px;
}

.business-gallery-dropzone-content {
    min-height: 148px;
}

.business-gallery-url-button {
    height: 40px;
}

.business-gallery-grid {
    align-items: stretch;
}

.business-gallery-thumb {
    overflow: hidden;
    cursor: grab;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    background: color-mix(in srgb, var(--owner-surface-1) 94%, #000 6%);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.business-gallery-thumb.is-dragging {
    cursor: grabbing;
    opacity: 0.72;
    transform: scale(0.985);
}

.business-gallery-thumb.is-drop-target {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 75%, transparent) !important;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary) 35%, transparent);
}

.business-gallery-empty {
    border-radius: 14px;
    border: 1px dashed color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface) 92%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.business-gallery-empty-icon {
    color: color-mix(in srgb, var(--mud-palette-primary) 78%, #fff 22%);
}

.business-profile-address-status {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 72%, var(--mud-palette-info) 28%);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-info) 5%, var(--owner-surface-1) 95%),
            color-mix(in srgb, var(--owner-surface-2) 92%, #000 8%));
}

.business-profile-address-status-header {
    gap: 10px;
    flex-wrap: wrap;
}

.business-profile-address-status-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.business-profile-map-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.business-profile-checklist {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, var(--mud-palette-primary) 20%);
}

.business-profile-checklist-header {
    gap: 10px;
    flex-wrap: wrap;
}

.business-profile-checklist-item {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--owner-surface-1) 95%, #000 5%);
}

.business-profile-checklist-item.is-complete {
    border-color: color-mix(in srgb, var(--mud-palette-success) 30%, var(--owner-surface-border) 70%);
    background: color-mix(in srgb, var(--mud-palette-success) 5%, var(--owner-surface-1) 95%);
}

.business-profile-checklist-item.is-missing {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 32%, var(--owner-surface-border) 68%);
    background: color-mix(in srgb, var(--mud-palette-warning) 5%, var(--owner-surface-1) 95%);
}

.business-profile-checklist-item-row {
    gap: 10px;
}

.business-profile-checklist-item.is-complete .mud-chip.mud-chip-filled.mud-chip-color-success {
    border: 1px solid color-mix(in srgb, var(--mud-palette-success) 34%, transparent);
    background: color-mix(in srgb, var(--mud-palette-success) 16%, var(--owner-surface-1) 84%);
    color: color-mix(in srgb, var(--mud-palette-success) 82%, var(--mud-palette-text-primary) 18%);
}

.business-profile-visibility-card {
    border: 1px solid color-mix(in srgb, var(--mud-palette-info) 28%, transparent);
}

.business-profile-seo-url {
    font-family: "Space Grotesk", sans-serif;
    color: color-mix(in srgb, var(--mud-palette-info) 72%, var(--mud-palette-text-primary) 28%);
    word-break: break-all;
}

.business-profile-visibility-list .mud-list-item {
    padding-left: 0;
    padding-right: 0;
}

.business-profile-visibility-item {
    gap: 8px;
}

.business-profile-selected-image {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 72%, var(--mud-palette-info) 28%);
    background: color-mix(in srgb, var(--mud-palette-info) 5%, var(--owner-surface-1) 95%);
}

.business-profile-selected-image-row {
    gap: 12px;
    flex-wrap: wrap;
}

.business-profile-selected-image-meta {
    gap: 10px;
}

.business-profile-selected-image-avatar {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 70%, transparent);
}

.business-profile-specialday-editor {
    border: 1px dashed color-mix(in srgb, var(--mud-palette-info) 30%, var(--owner-surface-border) 70%);
    background: color-mix(in srgb, var(--mud-palette-info) 4%, var(--owner-surface-1) 96%);
}

.business-profile-specialday-editor {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 34%, var(--owner-surface-border) 66%) !important;
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 94%, var(--mud-palette-primary) 6%),
            color-mix(in srgb, var(--owner-surface-2) 95%, #000 5%)) !important;
}

.business-profile-specialday-editor .mud-input-control>.mud-input-control-input-container>.mud-input-outlined>.mud-input-outlined-border {
    border-color: color-mix(in srgb, var(--owner-surface-border) 84%, transparent) !important;
}

.business-profile-specialday-editor .mud-input-control .mud-input {
    background: color-mix(in srgb, var(--owner-surface-1) 90%, var(--owner-surface-2) 10%);
}

.business-profile-specialday-editor .mud-button-filled-primary {
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--mud-palette-primary) 72%, #fff 28%),
            color-mix(in srgb, var(--mud-palette-primary) 88%, #000 12%));
}

.business-profile-specialday-editor .mud-switch .mud-switch-base.mud-checked+.mud-switch-track {
    background-color: color-mix(in srgb, var(--mud-palette-warning) 52%, transparent) !important;
}

.business-profile-specialday-editor .mud-switch .mud-switch-base.mud-checked .mud-switch-thumb {
    background-color: color-mix(in srgb, var(--mud-palette-warning) 84%, #fff 16%) !important;
}

.business-profile-specialday-list {
    gap: 10px;
}

.business-profile-specialday-item {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, #000 8%);
}

.business-profile-hours-panel {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, var(--mud-palette-primary) 20%);
}

.business-profile-workingday-row {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    border-radius: 12px;
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 95%, var(--owner-surface-2) 5%),
            color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%));
}

.business-profile-workingday-row .mud-switch .mud-switch-base.mud-checked+.mud-switch-track {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 52%, transparent) !important;
}

.business-profile-workingday-row .mud-switch .mud-switch-base.mud-checked .mud-switch-thumb {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 88%, #fff 12%) !important;
}

.business-gallery-panel .service-image-toolbar {
    background: color-mix(in srgb, var(--owner-surface-1) 82%, #000 18%);
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 76%, transparent);
}

.business-profile-specialday-row {
    gap: 10px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .business-profile-actionbar {
        top: 56px;
    }

    .business-profile-actionbar-buttons {
        width: 100%;
        justify-content: flex-start;
    }

    .business-profile-actionbar .mud-divider-vertical {
        display: none;
    }

    .business-profile-checklist-header .mud-button-root {
        width: 100%;
    }

    .business-profile-specialday-row {
        justify-content: flex-start;
    }

    .business-profile-address-status-actions {
        width: 100%;
        justify-content: flex-start;
    }

    .business-profile-map-actions .mud-button-root {
        width: 100%;
    }

    .business-profile-selected-image .mud-button-root {
        width: 100%;
    }
}

.notification-item {
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.notification-item:hover {
    background-color: rgba(15, 30, 43, 0.04);
    border-color: rgba(15, 30, 43, 0.2);
}

/* Snackbar styling to match left-bottom compact toast look */
.mud-snackbar-location-bottom-left {
    left: 24px;
    bottom: 24px;
    align-items: flex-start;
}

.mud-snackbar-location-bottom-left .mud-snackbar {
    background: #1f2430;
    color: #f8fafc;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25);
    min-width: 260px;
    max-width: 360px;
    padding: 4px 8px;
}

.mud-snackbar-location-bottom-left .mud-snackbar+.mud-snackbar {
    margin-top: 10px;
}

.mud-snackbar-location-bottom-left .mud-snackbar-content {
    gap: 8px;
}

.mud-snackbar-location-bottom-left .mud-snackbar-message {
    font-size: 0.92rem;
}

.mud-snackbar-location-bottom-left .mud-icon-button {
    color: #cbd5f5;
}

/* Notification badge sizing/position */
.notification-icon {
    position: relative;
    display: inline-flex;
}

.notification-count {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    padding: 1px 5px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 0.7rem;
    line-height: 16px;
    text-align: center;
    box-shadow: 0 0 0 2px var(--mud-palette-surface);
}

.notification-panel {
    max-height: 520px;
    display: flex;
    flex-direction: column;
}

.notification-list {
    overflow-y: auto;
    padding-right: 4px;
    max-height: 360px;
}

.notification-list::-webkit-scrollbar {
    width: 6px;
}

.notification-list::-webkit-scrollbar-thumb {
    background: rgba(148, 163, 184, 0.4);
    border-radius: 999px;
}

/* Appointments grid scroll with sticky header/footer (only rows scroll) */
.appointments-filter-panel {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 92%, #fff 8%),
            color-mix(in srgb, var(--mud-palette-surface) 88%, #000 12%));
}

.appointments-filter-quick {
    gap: 8px;
    flex-wrap: wrap;
}

.appointments-filter-status-quick {
    gap: 8px;
    flex-wrap: wrap;
}

.appointments-quick-status-btn {
    border-radius: 999px;
}

.appointments-filter-footer {
    gap: 10px;
    flex-wrap: wrap;
}

.group-appointments-page {
    padding-bottom: 16px;
}

.group-appointments-filter-panel {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 93%, #fff 7%),
            color-mix(in srgb, var(--mud-palette-surface) 88%, #000 12%));
}

.group-appointments-filter-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.group-appointments-grid .mud-table-body .mud-table-row:hover td {
    background: color-mix(in srgb, var(--mud-palette-primary) 7%, transparent);
}

.group-appointments-datetime {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.group-appointments-service {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.group-host-cell {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.group-host-avatar {
    background: linear-gradient(145deg,
            color-mix(in srgb, var(--mud-palette-secondary) 68%, #fff 32%),
            color-mix(in srgb, var(--mud-palette-secondary) 88%, #000 12%));
    color: #fff;
    font-size: 0.74rem;
    font-weight: 700;
}

.group-invites-cell {
    gap: 4px;
}

.group-invite-overflow {
    opacity: 0.9;
}

.group-invite-drawer-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1500;
    background: rgba(3, 6, 18, 0.52);
}

.group-invite-drawer {
    position: fixed;
    top: 0;
    right: -420px;
    width: min(420px, 92vw);
    height: 100vh;
    z-index: 1510;
    border-radius: 0;
    border-left: 1px solid color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 94%, #fff 6%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
    padding: 16px;
    overflow-y: auto;
    transition: right 0.22s ease;
}

.group-invite-drawer.open {
    right: 0;
}

.group-invite-drawer-list {
    gap: 8px;
}

.group-invite-drawer-item {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, #000 8%);
}

.appointments-selection-tools {
    gap: 10px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.appointments-selection-tools-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.appointments-bulk-bar {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 24%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-primary) 10%, var(--mud-palette-surface) 90%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.appointments-bulk-bar-content {
    gap: 10px;
    flex-wrap: wrap;
}

.appointments-bulk-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.appointments-bulk-progress-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1600;
    background: rgba(8, 11, 20, 0.64);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.appointments-bulk-progress-modal {
    width: min(560px, 100%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 25%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-surface) 94%, #fff 6%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.appointments-bulk-progress-stats {
    gap: 8px;
    flex-wrap: wrap;
}

.appointments-bulk-progress-fails {
    margin-top: 6px;
    max-height: 160px;
    overflow-y: auto;
    border: 1px dashed color-mix(in srgb, var(--mud-palette-divider) 70%, transparent);
    border-radius: 10px;
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.appointments-grid-container .mud-table-container {
    /* Fill viewport without outer scroll; adjust offset if needed */
    max-height: calc(100vh - 370px);
    overflow-y: auto;
    position: relative;
    background: color-mix(in srgb, var(--owner-surface-1) 96%, #000 4%);
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent);
    border-radius: 12px;
}

.appointments-grid-container thead,
.appointments-grid-container .mud-table-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: color-mix(in srgb, var(--owner-surface-2) 96%, #000 4%);
}

.appointments-grid-container .mud-table-footer {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: color-mix(in srgb, var(--owner-surface-2) 95%, #000 5%);
}

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

.appointments-mobile-card,
.appointments-mobile-empty {
    padding: 14px;
    margin-bottom: 10px;
}

.appointments-mobile-card-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}

.appointments-mobile-card-body {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.appointments-mobile-card-main {
    min-width: 0;
    display: grid;
    gap: 3px;
}

.appointments-mobile-card-main .mud-typography {
    min-width: 0;
    overflow-wrap: anywhere;
}

.appointments-mobile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.appointments-mobile-actions .mud-button-root {
    flex: 1 1 auto;
    min-width: 92px;
}

.appointment-quick-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    gap: 2px;
    min-width: 0;
    white-space: nowrap;
}

.appointment-quick-actions>* {
    flex: 0 0 auto;
}

.appointment-quick-actions .mud-tooltip-root {
    display: inline-flex !important;
    flex: 0 0 auto;
}

.appointment-quick-actions .mud-icon-button {
    padding: 4px;
    flex-shrink: 0;
}

.appointments-data-grid .mud-table-body .mud-table-row td {
    transition: background-color 0.16s ease;
}

.appointments-data-grid .mud-table-body .mud-table-row:hover td {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, transparent);
}

.appointment-date-cell,
.appointment-time-cell,
.appointment-service-cell {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.appointment-identity-cell {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.appointment-avatar {
    background: linear-gradient(145deg,
            color-mix(in srgb, var(--mud-palette-primary) 70%, #fff 30%),
            color-mix(in srgb, var(--mud-palette-primary) 88%, #000 12%));
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
}

.appointment-cell-main {
    display: block;
    font-weight: 600;
    line-height: 1.2;
}

.appointment-cell-sub {
    display: block;
    font-size: 0.74rem;
    color: color-mix(in srgb, var(--mud-palette-text-secondary) 92%, transparent);
    line-height: 1.2;
}

.appointment-price-cell {
    display: flex;
    justify-content: flex-end;
}

.appointment-price-main {
    font-weight: 700;
    color: color-mix(in srgb, var(--mud-palette-primary) 68%, var(--mud-palette-text-primary) 32%);
}

.appointment-status-chip.pending {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 70%, transparent) !important;
}

.appointment-status-chip.confirmed {
    border-color: color-mix(in srgb, var(--mud-palette-success) 70%, transparent) !important;
}

.appointment-status-chip.completed {
    border-color: color-mix(in srgb, var(--mud-palette-info) 70%, transparent) !important;
}

.appointment-status-chip.cancelled {
    border-color: color-mix(in srgb, var(--mud-palette-error) 70%, transparent) !important;
}

.appointment-status-chip.checkedin {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 70%, transparent) !important;
}

.appointment-quick-actions .appointment-action-btn-primary {
    border-radius: 10px;
    background: color-mix(in srgb, var(--mud-palette-primary) 28%, transparent);
}

.appointment-quick-actions .appointment-action-btn-detail {
    opacity: 0.82;
}

.create-appointment-dialog .mud-dialog {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 72%, var(--mud-palette-primary) 28%);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
    box-shadow: var(--owner-card-shadow);
}

.create-appointment-dialog .mud-dialog-title,
.create-appointment-dialog .mud-dialog-content,
.create-appointment-dialog .mud-dialog-actions {
    background: color-mix(in srgb, var(--owner-surface-1) 96%, #000 4%) !important;
}

.create-appointment-dialog .mud-dialog-content {
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
}

.create-appointment-dialog .mud-dialog-title {
    border-bottom: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    color: var(--mud-palette-text-primary);
}

.create-appointment-dialog .mud-dialog-actions {
    border-top: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    padding-block: 10px;
}

.create-appointment-dialog-content {
    gap: 14px;
}

.create-appointment-section {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 84%, transparent) !important;
    background: color-mix(in srgb, var(--owner-surface-2) 92%, #000 8%) !important;
}

.create-appointment-section-title {
    letter-spacing: 0.01em;
    color: color-mix(in srgb, var(--mud-palette-text-primary) 90%, var(--mud-palette-primary) 10%);
}

.create-appointment-mode-switch {
    flex-wrap: wrap;
}

.create-appointment-mode-btn {
    min-width: 170px;
}

.create-appointment-customer-list {
    max-height: 220px;
    overflow: auto;
    padding-right: 2px;
}

.create-appointment-empty-state {
    padding: 10px 6px 4px;
    display: block;
}

.create-appointment-customer-option {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    text-align: left;
    border-radius: 10px;
    padding: 10px 12px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 50%, transparent);
    background: color-mix(in srgb, var(--owner-surface-1) 92%, #000 8%);
    color: var(--mud-palette-text-primary);
    transition: border-color 0.16s ease, background-color 0.16s ease, transform 0.16s ease;
}

.create-appointment-customer-option:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 72%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--owner-surface-1) 88%);
    transform: translateY(-1px);
}

.create-appointment-customer-option.selected {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 84%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 18%, var(--owner-surface-1) 82%);
}

.create-appointment-customer-option.keyboard-active {
    outline: 2px solid color-mix(in srgb, var(--mud-palette-primary) 62%, transparent);
    outline-offset: 0;
}

.create-appointment-customer-main {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.create-appointment-customer-name {
    font-size: 0.95rem;
    line-height: 1.25;
    font-weight: 600;
    color: var(--mud-palette-text-primary);
    overflow-wrap: anywhere;
}

.create-appointment-customer-meta {
    font-size: 0.8rem;
    color: color-mix(in srgb, var(--mud-palette-text-secondary) 92%, transparent);
    overflow-wrap: anywhere;
}

.create-appointment-customer-option mark.customer-highlight {
    background: color-mix(in srgb, var(--mud-palette-primary) 26%, transparent);
    color: inherit;
    padding: 0 2px;
    border-radius: 4px;
}

.create-appointment-cancel-btn,
.create-appointment-submit-btn {
    min-height: 40px;
    min-width: 140px;
    border-radius: 10px;
}

.appointment-details-page {
    padding-bottom: 16px;
}

.appointment-details-hero {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 24%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-surface) 94%, #fff 6%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.appointment-details-hero-top {
    gap: 10px;
    flex-wrap: wrap;
}

.appointment-details-loading {
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.appointment-details-summary {
    --appt-detail-accent: var(--mud-palette-primary);
    border: 1px solid color-mix(in srgb, var(--appt-detail-accent) 35%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--appt-detail-accent) 12%, var(--mud-palette-surface) 88%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
    position: relative;
    overflow: hidden;
}

.appointment-details-summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--appt-detail-accent);
}

.appointment-details-summary.status-pending {
    --appt-detail-accent: var(--mud-palette-warning);
}

.appointment-details-summary.status-confirmed {
    --appt-detail-accent: var(--mud-palette-success);
}

.appointment-details-summary.status-completed {
    --appt-detail-accent: var(--mud-palette-info);
}

.appointment-details-summary.status-cancelled {
    --appt-detail-accent: var(--mud-palette-error);
}

.appointment-details-summary.status-checkedin {
    --appt-detail-accent: var(--mud-palette-primary);
}

.appointment-summary-caption {
    color: color-mix(in srgb, var(--mud-palette-text-secondary) 85%, transparent);
    letter-spacing: 0.08em;
}

.appointment-summary-chips {
    gap: 8px;
    flex-wrap: wrap;
}

.appointment-summary-side {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 68%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, #000 8%);
    border-radius: 12px;
}

.appointment-details-info-card {
    height: 100%;
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-surface) 95%, #fff 5%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.appointment-info-list {
    gap: 8px;
}

.appointment-info-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--mud-palette-text-secondary);
}

.appointment-info-row .mud-icon-root {
    color: color-mix(in srgb, var(--mud-palette-primary) 75%, var(--mud-palette-text-secondary) 25%);
    font-size: 1.05rem;
}

.appointment-details-avatar {
    background: linear-gradient(145deg,
            color-mix(in srgb, var(--mud-palette-primary) 70%, #fff 30%),
            color-mix(in srgb, var(--mud-palette-primary) 88%, #000 12%));
    color: #fff;
    font-weight: 700;
}

.appointment-details-note {
    border: 1px dashed color-mix(in srgb, var(--mud-palette-divider) 68%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 94%, #000 6%);
}

.appointment-details-actions {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-primary) 8%, var(--mud-palette-surface) 92%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.appointment-details-mobile-actions {
    display: none;
}

.datagrid-loading-skeleton,
.appointments-loading-skeleton {
    width: 100%;
    padding: 6px 0;
}

.datagrid-loading-skeleton-desktop,
.appointments-loading-skeleton-desktop {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.datagrid-loading-skeleton-row,
.appointments-loading-skeleton-row {
    display: grid;
    gap: 10px;
    align-items: center;
    border: 1px solid var(--owner-surface-border);
    border-radius: 10px;
    padding: 10px 12px;
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 95%, #fff 5%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
}

.datagrid-loading-skeleton-actions,
.appointments-loading-skeleton-actions {
    display: flex;
    align-items: center;
    gap: 6px;
}

.datagrid-loading-skeleton-mobile,
.appointments-loading-skeleton-mobile {
    display: none;
    flex-direction: column;
    gap: 10px;
}

.datagrid-loading-skeleton-card,
.appointments-loading-skeleton-card {
    border: 1px solid var(--owner-surface-border);
    border-radius: 10px;
    padding: 10px 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 95%, #fff 5%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
}

.datagrid-loading-skeleton-line,
.appointments-loading-skeleton-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.datagrid-loading-skeleton .mud-skeleton,
.appointments-loading-skeleton .mud-skeleton {
    background: var(--owner-skeleton-base) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 68%, transparent);
}

.datagrid-loading-skeleton .mud-skeleton::after,
.appointments-loading-skeleton .mud-skeleton::after {
    background: linear-gradient(90deg,
            transparent,
            var(--owner-skeleton-highlight),
            transparent) !important;
}

/* Reviews responsive layout */
.reviews-filter-panel {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 93%, #fff 7%),
            color-mix(in srgb, var(--mud-palette-surface) 88%, #000 12%));
}

.reviews-filter-footer {
    gap: 10px;
    flex-wrap: wrap;
}

.reviews-user-cell {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
}

.reviews-mobile-card {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
}

.reviews-empty-state {
    text-align: center;
}

.reviews-empty-state .mud-icon-root {
    opacity: 0.85;
}

.reviews-pagination {
    gap: 10px;
    flex-wrap: wrap;
}

.reviews-kpi-skeleton-card {
    border-color: color-mix(in srgb, var(--owner-surface-border) 82%, transparent) !important;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
    box-shadow: none;
}

.reviews-kpi-skeleton-card .mud-skeleton {
    background: var(--owner-skeleton-base) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 68%, transparent);
}

.staff-page {
    padding-bottom: 16px;
}

.staff-header-row {
    gap: 12px;
    flex-wrap: wrap;
}

.staff-header-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.staff-panel {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, var(--mud-palette-primary) 18%);
}

.staff-filter-panel {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, var(--mud-palette-primary) 20%);
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 95%, #fff 5%),
        color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%));
}

.staff-quick-filters {
    gap: 8px;
    flex-wrap: wrap;
}

.staff-data-grid .mud-table-body .mud-table-row:hover td {
    background: color-mix(in srgb, var(--mud-palette-primary) 8%, var(--owner-surface-2) 92%) !important;
}

.staff-data-grid .mud-table-container {
    max-height: calc(100vh - 430px);
    overflow-y: auto;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent);
    border-radius: 12px;
    background: color-mix(in srgb, var(--owner-surface-1) 96%, #000 4%);
}

.staff-data-grid thead,
.staff-data-grid .mud-table-header {
    position: sticky;
    top: 0;
    z-index: 3;
    background: color-mix(in srgb, var(--owner-surface-2) 95%, #000 5%) !important;
}

.staff-data-grid .mud-table-footer,
.staff-data-grid .mud-table-pagination,
.staff-data-grid .mud-table-pagination-toolbar {
    position: sticky;
    bottom: 0;
    z-index: 3;
    background: color-mix(in srgb, var(--owner-surface-2) 95%, #000 5%) !important;
    border-top: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent);
}

.staff-data-grid .mud-table-cell {
    padding-top: 8px;
    padding-bottom: 8px;
}

.staff-grid-desktop {
    display: block;
}

.staff-grid-mobile {
    display: none;
}

.staff-mobile-card {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, transparent);
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
}

.staff-mobile-actions {
    gap: 8px;
    flex-wrap: wrap;
}

.staff-row-actions {
    gap: 2px;
}

.staff-empty-state {
    text-align: center;
    align-items: center;
    justify-content: center;
    min-height: 150px;
}

.staff-empty-actions {
    gap: 8px;
    flex-wrap: wrap;
}

@media (max-width: 960px) {
    .staff-grid-desktop {
        display: none;
    }

    .staff-grid-mobile {
        display: block;
    }

    .staff-data-grid .mud-table-container {
        max-height: none;
        overflow-y: visible;
    }
}

.checkins-qr-panel {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 93%, #fff 7%),
            color-mix(in srgb, var(--mud-palette-surface) 88%, #000 12%));
}

.checkins-filter-panel {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 93%, #fff 7%),
            color-mix(in srgb, var(--mud-palette-surface) 88%, #000 12%));
}

.checkins-filter-footer {
    gap: 10px;
    flex-wrap: wrap;
}

.checkins-row-actions {
    gap: 6px;
    flex-wrap: wrap;
}

.checkins-desktop {
    display: block;
}

.checkins-mobile {
    display: none;
}

.checkins-mobile-card {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
}

.checkins-qr-actions {
    gap: 10px;
    flex-wrap: wrap;
}

.checkins-qr-status {
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.checkins-qr-preview-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1400;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, #000 62%, transparent);
}

.checkins-qr-preview-card {
    width: min(460px, 100%);
    max-height: calc(100vh - 32px);
    overflow: auto;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 30%, transparent);
}

.checkins-qr-preview-image {
    display: block;
    width: 100%;
    max-width: 340px;
    margin: 12px auto;
    background: #fff;
    border-radius: 10px;
    padding: 10px;
}

.reviews-desktop {
    display: block;
}

.reviews-mobile {
    display: none;
}

@media (max-width: 960px) {
    .reviews-desktop {
        display: none;
    }

    .reviews-mobile {
        display: block;
    }

    .checkins-desktop {
        display: none;
    }

    .checkins-mobile {
        display: block;
    }
}

@media (max-width: 768px) {

    .appointments-filter-quick,
    .appointments-filter-status-quick,
    .appointments-filter-footer,
    .group-appointments-filter-actions,
    .checkins-filter-footer {
        justify-content: flex-start;
    }

    .checkins-qr-actions {
        justify-content: flex-start;
    }

    .appointments-selection-tools {
        justify-content: flex-start;
    }

    .appointments-bulk-bar-content {
        justify-content: flex-start;
    }

    .appointment-details-hero-top {
        justify-content: flex-start;
    }

    .appointment-summary-chips {
        justify-content: flex-start;
    }

    .dashboard-filter-stack {
        justify-content: flex-start;
    }

    .dashboard-date-filter {
        min-width: 140px;
        width: 100%;
    }

    .dashboard-filter-panel .mud-stack {
        width: 100%;
    }

    .datagrid-loading-skeleton-desktop,
    .appointments-loading-skeleton-desktop {
        display: none;
    }

    .datagrid-loading-skeleton-mobile,
    .appointments-loading-skeleton-mobile {
        display: flex;
    }

    .appointments-grid-container {
        display: none;
    }

    .appointments-mobile-list {
        display: block;
    }

    .appointments-selection-tools,
    .appointments-selection-tools-actions,
    .appointments-bulk-bar-content,
    .appointments-bulk-actions {
        flex-wrap: wrap;
        gap: 8px;
    }

    .appointments-filter-quick,
    .appointments-filter-status-quick {
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .appointments-filter-quick .mud-button-root,
    .appointments-filter-status-quick .mud-button-root {
        flex: 0 0 auto;
    }

    .create-appointment-mode-btn {
        min-width: 100%;
    }

    .create-appointment-customer-option {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 600px) {
    .group-invite-drawer {
        width: 100vw;
    }

    .appointment-details-page {
        padding-bottom: calc(88px + env(safe-area-inset-bottom));
    }

    .appointment-details-mobile-actions {
        display: block;
        position: fixed;
        left: 12px;
        right: 12px;
        bottom: calc(10px + env(safe-area-inset-bottom));
        z-index: 25;
        border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 24%, transparent);
        background: color-mix(in srgb, var(--mud-palette-surface) 92%, #000 8%);
        border-radius: 12px;
        padding: 8px;
        box-shadow: 0 12px 24px rgba(2, 6, 23, 0.28);
        backdrop-filter: blur(8px);
    }

    .appointment-details-mobile-actions-row {
        width: 100%;
        gap: 6px;
    }

    .appointment-details-mobile-actions-row .mud-button-root {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 8px;
    }

    .appointments-bulk-actions {
        width: 100%;
    }

    .appointments-bulk-actions .mud-button-root {
        flex: 1 1 auto;
        min-width: 120px;
    }

    .appointments-selection-tools-actions {
        width: 100%;
    }

    .appointments-selection-tools-actions .mud-button-root {
        flex: 1 1 auto;
        min-width: 140px;
    }

    .appointments-bulk-progress-modal {
        width: 100%;
    }

    .appointment-details-actions .mud-button-root {
        min-height: 40px;
    }

    .appointments-mobile-card-header {
        align-items: flex-start;
    }

    .appointments-mobile-card-header > .mud-stack {
        max-width: 58%;
        justify-content: flex-end;
        flex-wrap: wrap;
    }

    .appointments-mobile-actions .mud-button-root {
        min-width: 0;
        flex-basis: calc(50% - 4px);
    }

    .staff-header-actions .mud-button-root {
        width: 100%;
    }

    .staff-quick-filters {
        justify-content: flex-start !important;
    }
}

.calendar-appointment-card {
    cursor: pointer;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 85%, transparent);
    background: color-mix(in srgb, var(--owner-surface-1) 97%, #000 3%);
    box-shadow: 0 1px 0 color-mix(in srgb, #000 16%, transparent);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.calendar-appointment-card:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 30, 43, 0.12);
    border-color: rgba(15, 30, 43, 0.24);
}

.calendar-appointment-card-overlap {
    border-left: 4px solid #ef5350;
    background: color-mix(in srgb, #ef5350 8%, var(--owner-surface-1));
}

.calendar-overlap-caption {
    color: #d84315;
    font-weight: 600;
    margin-top: 2px;
    margin-bottom: 2px;
}


.calendar-status-marker {
    font-weight: 600;
    letter-spacing: 0.01em;
}

.calendar-status-marker-month {
    margin-left: 4px;
}

.calendar-page .calendar-status-chip {
    font-weight: 600;
    border-width: 1px;
    backdrop-filter: blur(2px);
}

.calendar-page .calendar-status-chip.mud-chip-outlined.mud-chip-color-warning {
    color: color-mix(in srgb, var(--mud-palette-warning) 86%, var(--mud-palette-text-primary) 14%);
    border-color: color-mix(in srgb, var(--mud-palette-warning) 38%, transparent);
    background: color-mix(in srgb, var(--mud-palette-warning) 12%, transparent);
}

.calendar-page .calendar-status-chip.mud-chip-outlined.mud-chip-color-primary {
    color: color-mix(in srgb, var(--mud-palette-primary) 84%, var(--mud-palette-text-primary) 16%);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 36%, transparent);
    background: color-mix(in srgb, var(--mud-palette-primary) 11%, transparent);
}

.calendar-page .calendar-status-chip.mud-chip-outlined.mud-chip-color-info {
    color: color-mix(in srgb, var(--mud-palette-info) 84%, var(--mud-palette-text-primary) 16%);
    border-color: color-mix(in srgb, var(--mud-palette-info) 36%, transparent);
    background: color-mix(in srgb, var(--mud-palette-info) 11%, transparent);
}

.calendar-page .calendar-status-chip.mud-chip-outlined.mud-chip-color-error {
    color: color-mix(in srgb, var(--mud-palette-error) 84%, var(--mud-palette-text-primary) 16%);
    border-color: color-mix(in srgb, var(--mud-palette-error) 38%, transparent);
    background: color-mix(in srgb, var(--mud-palette-error) 11%, transparent);
}

.calendar-page .calendar-status-marker.mud-chip-filled {
    font-weight: 700;
    border: 1px solid transparent;
}

.calendar-page .calendar-status-marker.mud-chip-filled.mud-chip-color-warning {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 42%, transparent);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mud-palette-warning) 70%, #fff 30%),
        color-mix(in srgb, var(--mud-palette-warning) 90%, #000 10%));
}

.calendar-page .calendar-status-marker.mud-chip-filled.mud-chip-color-primary {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 42%, transparent);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mud-palette-primary) 70%, #fff 30%),
        color-mix(in srgb, var(--mud-palette-primary) 90%, #000 10%));
}

.calendar-page .calendar-status-marker.mud-chip-filled.mud-chip-color-info {
    border-color: color-mix(in srgb, var(--mud-palette-info) 42%, transparent);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mud-palette-info) 70%, #fff 30%),
        color-mix(in srgb, var(--mud-palette-info) 90%, #000 10%));
}

.calendar-page .calendar-status-marker.mud-chip-filled.mud-chip-color-error {
    border-color: color-mix(in srgb, var(--mud-palette-error) 44%, transparent);
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mud-palette-error) 70%, #fff 30%),
        color-mix(in srgb, var(--mud-palette-error) 90%, #000 10%));
}

.calendar-day-desktop {
    display: block;
}

.calendar-day-mobile {
    display: none;
}

.calendar-mobile-agenda-item {
    padding: 10px;
    margin-bottom: 8px;
    cursor: pointer;
}

.calendar-day-mobile-compact .calendar-mobile-agenda-item {
    padding: 8px;
    margin-bottom: 6px;
}

.calendar-day-mobile-compact .mud-typography.mud-typography-subtitle2 {
    line-height: 1.2;
}

.calendar-day-mobile-compact .mud-typography.mud-typography-body2,
.calendar-day-mobile-compact .mud-typography.mud-typography-caption {
    line-height: 1.15;
}

@media (max-width: 768px) {
    .calendar-day-desktop {
        display: none;
    }

    .calendar-day-mobile {
        display: block;
    }

    .calendar-mobile-agenda-item {
        border-radius: 10px;
    }
}

.calendar-day-list {
    max-width: 900px;
}

.calendar-risk-heatmap-panel {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent);
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%));
}

.calendar-risk-heatmap-grid {
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(12, minmax(0, 1fr));
}

.calendar-risk-slot {
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, transparent);
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 58px;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.calendar-risk-slot:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px color-mix(in srgb, #000 14%, transparent);
}

.calendar-risk-slot.high {
    border-color: color-mix(in srgb, var(--mud-palette-error) 42%, transparent);
    background: color-mix(in srgb, var(--mud-palette-error) 14%, transparent);
}

.calendar-risk-slot.medium {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 42%, transparent);
    background: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent);
}

.calendar-risk-slot.low {
    border-color: color-mix(in srgb, var(--mud-palette-success) 42%, transparent);
    background: color-mix(in srgb, var(--mud-palette-success) 12%, transparent);
}

.calendar-risk-slot.none {
    border-color: color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    background: color-mix(in srgb, var(--owner-surface-1) 92%, transparent);
}

.calendar-risk-hour {
    font-size: 0.74rem;
    line-height: 1;
    color: var(--owner-muted-text);
}

.calendar-risk-value {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--mud-palette-text-primary);
}


.calendar-week-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-week-column {
    border: 1px solid var(--owner-surface-border);
    border-radius: 12px;
    padding: 10px;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 95%, #fff 5%),
        color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%));
    min-height: 220px;
}

.calendar-week-column-drop-target {
    border-color: var(--mud-palette-primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--mud-palette-primary) 28%, transparent);
}

.calendar-week-column-drop-disabled {
    opacity: 0.65;
    background: color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%);
}

.calendar-appointment-card[draggable="true"] {
    cursor: grab;
}

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

.calendar-month-cell {
    border: 1px solid var(--owner-surface-border);
    border-radius: 12px;
    padding: 8px;
    min-height: 140px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 95%, #fff 5%),
        color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%));
}


.calendar-month-cell-muted {
    opacity: 0.6;
}

.calendar-appointment-card .mud-skeleton,
.calendar-week-column>.mud-skeleton,
.calendar-month-cell>.mud-skeleton {
    background: var(--owner-skeleton-base) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 70%, transparent);
}

.calendar-page .calendar-appointment-card .mud-skeleton::after,
.calendar-page .calendar-week-column > .mud-skeleton::after,
.calendar-page .calendar-month-cell > .mud-skeleton::after {
    background: linear-gradient(90deg,
        transparent,
        var(--owner-skeleton-highlight),
        transparent) !important;
}

.calendar-page .calendar-appointment-card .mud-skeleton::before,
.calendar-page .calendar-week-column > .mud-skeleton::before,
.calendar-page .calendar-month-cell > .mud-skeleton::before {
    background: linear-gradient(90deg,
        transparent,
        var(--owner-skeleton-highlight),
        transparent) !important;
}

.calendar-month-chip {
    justify-content: flex-start;
    width: 100%;
    margin: 0;
    text-transform: none;
}

.calendar-month-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4px;
}

.calendar-month-item .mud-button {
    flex: 1;
    min-width: 0;
    justify-content: flex-start;
}

.calendar-now-line {
    position: relative;
    height: 2px;
    background: #ef5350;
    border-radius: 999px;
    margin: 8px 0 10px;
}

.calendar-now-line-label {
    position: absolute;
    top: -9px;
    left: 0;
    font-size: 10px;
    line-height: 1;
    color: #ef5350;
    background: color-mix(in srgb, var(--owner-surface-1) 94%, #000 6%);
    padding: 0 4px;
    border-radius: 999px;
    letter-spacing: 0.02em;
}

@media (max-width: 1200px) {
    .calendar-week-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .calendar-month-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {

    .calendar-page {
        padding: 0;
    }

    .calendar-header-grid .mud-stack {
        justify-content: flex-start !important;
        overflow-x: auto;
        flex-wrap: nowrap !important;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .calendar-header-grid .mud-select {
        min-width: 132px !important;
    }

    .calendar-week-grid,
    .calendar-month-grid {
        grid-template-columns: repeat(1, minmax(0, 1fr));
        gap: 10px;
    }

    .calendar-week-column {
        min-height: 0;
        padding: 12px;
        border-radius: 16px;
    }

    .calendar-week-column > .mud-typography {
        position: sticky;
        top: calc(var(--owner-layout-appbar-height) + env(safe-area-inset-top));
        z-index: 2;
        margin: -12px -12px 10px;
        padding: 10px 12px;
        border-radius: 16px 16px 0 0;
        background: color-mix(in srgb, var(--owner-surface-2) 96%, #000 4%);
        border-bottom: 1px solid color-mix(in srgb, var(--owner-surface-border) 76%, transparent);
    }

    .calendar-week-column:empty {
        display: none;
    }

    .calendar-appointment-card {
        border-radius: 14px !important;
        padding: 12px !important;
        margin-bottom: 8px !important;
    }

    .calendar-appointment-card .mud-stack {
        flex-wrap: wrap;
    }

    .calendar-month-grid {
        display: block;
    }

    .calendar-month-cell {
        min-height: 0;
        margin-bottom: 10px;
        padding: 12px;
        border-radius: 16px;
    }

    .calendar-month-cell-muted {
        display: none;
    }

    .calendar-month-cell:not(:has(.calendar-month-item)) {
        display: none;
    }

    .calendar-month-cell > .mud-typography-caption {
        font-size: 0.82rem;
        font-weight: 800;
        color: var(--owner-muted-text);
    }

    .calendar-month-item {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
        padding: 8px 0;
        border-top: 1px solid color-mix(in srgb, var(--owner-surface-border) 68%, transparent);
    }

    .calendar-month-chip {
        min-height: 36px;
        justify-content: flex-start;
        white-space: normal;
        text-align: left;
    }

    .calendar-risk-heatmap-grid {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }

    .calendar-risk-heatmap-panel {
        display: none;
    }
}

.settings-placeholder-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: 1fr;
    margin-top: 8px;
    max-width: 860px;
}

.settings-form-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 8px;
    max-width: 920px;
}

.settings-tabs .mud-tabs-toolbar {
    background: color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%) !important;
    border: 1px solid var(--owner-surface-border);
    border-radius: 12px 12px 0 0;
}

.settings-tabs .mud-tabs-tabbar {
    background: color-mix(in srgb, var(--owner-surface-2) 92%, var(--owner-surface-1) 8%) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 84%, transparent);
    border-bottom: 0;
    border-radius: 12px 12px 0 0;
}

.settings-tabs .mud-tabs-panels {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 84%, transparent);
    border-top: 0;
    border-radius: 0 0 12px 12px;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
}

.settings-tabs .mud-tab-panel {
    background: transparent !important;
}

.settings-tabs .mud-tab {
    min-height: 44px;
    color: var(--mud-palette-text-primary) !important;
    border-radius: 10px 10px 0 0;
}

.settings-tabs .mud-tab.mud-tab-active {
    color: var(--mud-palette-primary) !important;
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--owner-surface-1) 88%) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 76%, var(--mud-palette-primary) 24%);
    border-bottom-color: transparent;
}

.settings-tabs .mud-tabs-slider {
    background-color: color-mix(in srgb, var(--mud-palette-primary) 86%, #fff 14%) !important;
}

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

@media (max-width: 768px) {
    .settings-form-grid {
        grid-template-columns: 1fr;
    }

    .settings-grid-span-2 {
        grid-column: span 1;
    }
}

.services-shell {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
}

.services-header {
    gap: 12px;
}

.services-kpi-card {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 70%, transparent);
    box-shadow: none;
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 95%, #fff 5%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
    transition: border-color 0.18s ease, transform 0.18s ease;
}

.services-kpi-card:hover {
    transform: translateY(-1px);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 42%, transparent);
}

.services-kpi-value {
    margin-top: 6px;
    margin-bottom: 2px;
    font-weight: 700;
}

.services-kpi-total {
    border-color: color-mix(in srgb, var(--mud-palette-info) 36%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-info) 12%, var(--mud-palette-surface) 88%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.services-kpi-total .services-kpi-value {
    color: color-mix(in srgb, var(--mud-palette-info) 72%, var(--mud-palette-text-primary) 28%);
}

.services-kpi-published {
    border-color: color-mix(in srgb, var(--mud-palette-success) 36%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-success) 12%, var(--mud-palette-surface) 88%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.services-kpi-published .services-kpi-value {
    color: color-mix(in srgb, var(--mud-palette-success) 74%, var(--mud-palette-text-primary) 26%);
}

.services-kpi-draft {
    border-color: color-mix(in srgb, var(--mud-palette-warning) 38%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-warning) 12%, var(--mud-palette-surface) 88%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.services-kpi-draft .services-kpi-value {
    color: color-mix(in srgb, var(--mud-palette-warning) 78%, var(--mud-palette-text-primary) 22%);
}

.services-kpi-price {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 40%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-primary) 12%, var(--mud-palette-surface) 88%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
}

.services-kpi-price .services-kpi-value {
    color: color-mix(in srgb, var(--mud-palette-primary) 78%, var(--mud-palette-text-primary) 22%);
}

.services-kpi-skeleton .mud-skeleton {
    border-radius: 8px;
    background: var(--owner-skeleton-base) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 66%, transparent);
}

.services-kpi-skeleton-card {
    border-color: color-mix(in srgb, var(--owner-surface-border) 82%, transparent) !important;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
    box-shadow: none;
}

.services-kpi-skeleton-card .mud-skeleton {
    background: var(--owner-skeleton-base) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 68%, transparent);
}

.section-card .mud-skeleton {
    border-radius: 9px;
    background: var(--owner-skeleton-base) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 66%, transparent);
}

.section-card .mud-skeleton::after {
    background: linear-gradient(90deg,
            transparent,
            var(--owner-skeleton-highlight),
            transparent);
}

.owner-main-content .mud-skeleton {
    border-radius: 9px;
    background: var(--owner-skeleton-base);
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 66%, transparent);
}

.owner-main-content .mud-skeleton::after {
    background: linear-gradient(90deg,
            transparent,
            var(--owner-skeleton-highlight),
            transparent);
}

/* Ensure skeleton tone consistency even outside section-card wrappers */
.owner-layout-shell .mud-skeleton {
    background: var(--owner-skeleton-base) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 66%, transparent);
    border-radius: 9px;
}

.owner-layout-shell .mud-skeleton.mud-skeleton-text,
.owner-layout-shell .mud-skeleton.mud-skeleton-rect,
.owner-layout-shell .mud-skeleton.mud-skeleton-circle {
    background: var(--owner-skeleton-base) !important;
}

.owner-layout-shell .mud-skeleton::after {
    background: linear-gradient(90deg,
            transparent,
            var(--owner-skeleton-highlight),
            transparent) !important;
}

.owner-layout-shell .mud-skeleton::before {
    background: linear-gradient(90deg,
            transparent,
            var(--owner-skeleton-highlight),
            transparent) !important;
}

.services-filter-panel {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 70%, transparent);
    box-shadow: none;
}

.services-filter-footer {
    gap: 10px;
}

.services-grid-desktop {
    display: block;
}

.services-grid-mobile {
    display: none;
}

.services-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 700;
    border: 1px solid transparent;
}

.services-status-badge .mud-icon-root {
    width: 15px;
    height: 15px;
}

.services-status-badge-published {
    color: color-mix(in srgb, var(--mud-palette-success) 78%, var(--mud-palette-text-primary) 22%);
    background: color-mix(in srgb, var(--mud-palette-success) 14%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-success) 34%, transparent);
}

.services-status-badge-draft {
    color: color-mix(in srgb, var(--mud-palette-warning) 86%, var(--mud-palette-text-primary) 14%);
    background: color-mix(in srgb, var(--mud-palette-warning) 14%, transparent);
    border-color: color-mix(in srgb, var(--mud-palette-warning) 36%, transparent);
}

.services-row-actions {
    align-items: center;
    gap: 2px;
}

.services-row-actions .mud-icon-button {
    padding: 4px;
}

.services-empty-state {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 10px;
    padding: 20px;
}

.services-empty-icon {
    color: color-mix(in srgb, var(--mud-palette-primary) 72%, var(--mud-palette-text-primary) 28%);
}

.services-mobile-card {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 70%, transparent);
    box-shadow: none;
    position: relative;
    overflow: hidden;
}

.services-mobile-image-wrap {
    width: 64px;
    height: 64px;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--mud-palette-surface) 88%, #000 12%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 72%, transparent);
}

.services-mobile-image-wrap .mud-image {
    display: block;
}

.services-mobile-image-wrap .mud-icon-root {
    color: var(--mud-palette-text-secondary);
}

.services-mobile-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.services-mobile-title {
    line-height: 1.2;
}

.services-mobile-meta {
    color: var(--mud-palette-text-secondary);
}

.services-mobile-card-swipe {
    padding-right: 58px;
}

.services-mobile-content {
    position: relative;
    z-index: 1;
}

.services-mobile-swipe-hint {
    position: absolute;
    top: 8px;
    right: 8px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 7px;
    font-size: 0.66rem;
    letter-spacing: 0.01em;
    border-radius: 999px;
    color: color-mix(in srgb, var(--mud-palette-info) 76%, var(--mud-palette-text-secondary) 24%);
    background: color-mix(in srgb, var(--mud-palette-info) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-info) 24%, transparent);
}

.services-mobile-action-rail {
    position: absolute;
    top: 50%;
    right: 6px;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 6px 4px;
    border-radius: 12px;
    background: linear-gradient(180deg,
            color-mix(in srgb, var(--mud-palette-surface) 80%, #000 20%),
            color-mix(in srgb, var(--mud-palette-surface) 88%, #000 12%));
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 76%, transparent);
    box-shadow: 0 8px 16px color-mix(in srgb, #000 22%, transparent);
    z-index: 2;
}

.services-mobile-action-btn {
    width: 30px;
    height: 30px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 78%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, #000 8%);
}

.services-mobile-action-edit {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 36%, transparent);
}

.services-mobile-action-toggle {
    border-color: color-mix(in srgb, var(--mud-palette-success) 34%, transparent);
}

.services-mobile-action-delete {
    border-color: color-mix(in srgb, var(--mud-palette-error) 34%, transparent);
}

@media (max-width: 768px) {
    .services-header {
        align-items: flex-start;
    }

    .services-header .mud-button-root {
        width: 100%;
    }

    .services-filter-footer {
        flex-direction: column;
        align-items: stretch;
    }
}

@media (max-width: 960px) {
    .services-grid-desktop {
        display: none;
    }

    .services-grid-mobile {
        display: block;
    }
}

.service-editor-shell {
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 20%, transparent);
}

.service-editor-header {
    gap: 12px;
}

.service-editor-header .mud-stack {
    flex-wrap: wrap;
    justify-content: flex-end;
}

.service-editor-block {
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 70%, transparent);
    box-shadow: none;
}

.service-editor-skeleton-card {
    border: 1px solid var(--owner-surface-border);
    box-shadow: none;
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 93%, #000 7%));
}

.service-editor-skeleton .mud-skeleton,
.service-editor-header .mud-skeleton {
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 65%, transparent);
    background: var(--owner-skeleton-base);
}

.service-editor-skeleton .mud-skeleton::after,
.service-editor-header .mud-skeleton::after {
    background: linear-gradient(90deg,
            transparent,
            var(--owner-skeleton-highlight),
            transparent);
}

.service-editor-header-skeleton-btn {
    border-radius: 8px;
}

.service-editor-summary {
    position: sticky;
    top: 86px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 22%, transparent);
}

.service-preview-card {
    width: 100%;
    margin-inline: auto;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 28%, transparent);
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--mud-palette-surface) 95%, #fff 5%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
    color: var(--mud-palette-text-primary);
    overflow: hidden;
    box-shadow: 0 16px 34px color-mix(in srgb, #000 26%, transparent);
}

.service-preview-hero {
    position: relative;
    background: color-mix(in srgb, var(--mud-palette-surface) 82%, #000 18%);
    min-height: 210px;
}

.service-preview-hero .mud-image {
    display: block;
}

.service-preview-hero-empty {
    min-height: 210px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--mud-palette-text-secondary);
}

.service-preview-hero-count {
    position: absolute;
    right: 10px;
    bottom: 10px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    color: #fff;
    background: color-mix(in srgb, var(--mud-palette-primary) 68%, #000 32%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 56%, transparent);
}

.service-preview-content {
    padding: 14px 14px 4px;
}

.service-preview-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.service-preview-heading {
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.75rem;
    color: color-mix(in srgb, var(--mud-palette-primary) 80%, var(--mud-palette-text-secondary) 20%);
    font-weight: 700;
}

.service-preview-business {
    margin-top: 4px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.84rem;
    font-weight: 600;
}

.service-preview-title-row {
    margin-top: 6px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
}

.service-preview-title {
    font-size: 2.1rem;
    line-height: 1.02;
    font-family: "Space Grotesk", sans-serif;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.service-preview-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    color: #fbbf24;
    font-weight: 700;
}

.service-preview-category {
    margin-top: 8px;
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
    border: 1px solid color-mix(in srgb, var(--mud-palette-primary) 30%, transparent);
    font-size: 0.76rem;
    color: var(--mud-palette-text-primary);
}

.service-preview-meta {
    margin-top: 10px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
    color: var(--mud-palette-text-secondary);
    font-size: 0.82rem;
}

.service-preview-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.service-preview-section-title {
    margin-top: 16px;
    margin-bottom: 6px;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--mud-palette-text-primary);
}

.service-preview-description {
    color: var(--mud-palette-text-secondary);
    font-size: 0.9rem;
    line-height: 1.5;
}

.service-preview-cta-wrap {
    position: relative;
    padding: 12px 12px 14px;
    border-top: 1px solid color-mix(in srgb, var(--mud-palette-divider) 70%, transparent);
    background: color-mix(in srgb, var(--mud-palette-surface) 92%, #000 8%);
}

.service-preview-cta {
    width: 100%;
    border: 0;
    border-radius: 12px;
    background: linear-gradient(135deg,
            color-mix(in srgb, var(--mud-palette-primary) 72%, #fff 28%),
            color-mix(in srgb, var(--mud-palette-primary) 90%, #000 10%));
    color: #fff;
    font-size: 0.95rem;
    font-weight: 700;
    padding: 12px 10px;
}

.service-image-mode-toggle {
    flex-wrap: wrap;
}

.service-image-dropzone {
    position: relative;
    border: 1px dashed color-mix(in srgb, var(--mud-palette-primary) 42%, transparent);
    border-radius: 14px;
    background: linear-gradient(160deg,
            color-mix(in srgb, var(--mud-palette-surface) 94%, #fff 6%),
            color-mix(in srgb, var(--mud-palette-surface) 90%, #000 10%));
    min-height: 156px;
    overflow: hidden;
}

.service-image-dropzone:hover {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 70%, transparent);
}

.service-image-dropzone-input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

.service-image-dropzone-content {
    position: relative;
    z-index: 1;
    min-height: 156px;
    text-align: center;
    padding: 18px;
}

.service-image-grid {
    align-items: stretch;
}

.service-image-thumb {
    position: relative;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 64%, transparent);
}

.service-image-thumb .mud-image {
    display: block;
}

.service-image-toolbar {
    position: absolute;
    top: 10px;
    right: 10px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px;
    border-radius: 10px;
    backdrop-filter: blur(6px);
    background: color-mix(in srgb, var(--mud-palette-surface) 72%, #000 28%);
    border: 1px solid color-mix(in srgb, var(--mud-palette-divider) 66%, transparent);
    z-index: 3;
}

.service-image-toolbar .mud-icon-button {
    width: 28px;
    height: 28px;
}

.service-image-meta {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    z-index: 2;
}

.service-image-meta .mud-chip {
    backdrop-filter: blur(4px);
    background: color-mix(in srgb, var(--mud-palette-surface) 78%, #000 22%);
}

/* Forced overrides: business gallery panel + skeleton harmony */
.business-profile-tabs .mud-tabs-panels .mud-tab-panel .business-gallery-panel,
.business-profile-tabs .mud-tabs-panels .mud-paper.business-gallery-panel,
.business-profile-tabs .business-gallery-panel.section-card.alt {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 68%, var(--mud-palette-primary) 32%) !important;
    background: linear-gradient(160deg,
        color-mix(in srgb, var(--owner-surface-1) 97%, var(--mud-palette-primary) 3%),
        color-mix(in srgb, var(--owner-surface-2) 95%, #000 5%)) !important;
    box-shadow: inset 0 1px 0 color-mix(in srgb, #fff 8%, transparent), var(--owner-card-shadow) !important;
}

.owner-layout-shell .mud-skeleton,
.owner-layout-shell .mud-skeleton.mud-skeleton-text,
.owner-layout-shell .mud-skeleton.mud-skeleton-rect,
.owner-layout-shell .mud-skeleton.mud-skeleton-circle {
    background-color: var(--mud-palette-lines-default) !important;
    background-image: none !important;
}

@media (max-width: 1200px) {
    .service-editor-summary {
        position: static;
    }
}

@media (max-width: 768px) {
    .service-editor-header {
        align-items: flex-start;
    }

    .service-editor-header .mud-stack {
        width: 100%;
        justify-content: flex-start;
    }

    .service-image-toolbar {
        top: 8px;
        right: 8px;
    }

    .service-image-meta {
        left: 8px;
        right: 8px;
        bottom: 8px;
    }

    .service-preview-title {
        font-size: 1.75rem;
    }
}

/* Global surface harmony for all page panels/cards */
.dashboard-filter-panel,
.appointments-filter-panel,
.group-appointments-filter-panel,
.reviews-filter-panel,
.checkins-qr-panel,
.checkins-filter-panel,
.services-filter-panel,
.business-profile-card,
.appointment-details-card {
    border: 1px solid var(--owner-surface-border) !important;
    background: linear-gradient(165deg,
            color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
            color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
}

.services-kpi-card,
.dashboard-kpi-card {
    border-color: color-mix(in srgb, var(--owner-surface-border) 86%, var(--mud-palette-primary) 14%);
}

/* Grid harmony: unify table/datagrid layers with page surfaces */
.section-card .mud-table-container {
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 84%, transparent);
    border-radius: 12px;
}

.section-card .mud-table-root,
.section-card .mud-table-wrapper,
.section-card .mud-table {
    background: transparent !important;
}

.section-card .mud-table-head,
.section-card .mud-table-header {
    background: color-mix(in srgb, var(--owner-surface-2) 96%, #000 4%) !important;
}

.section-card .mud-table-head th,
.section-card .mud-table-header th {
    border-bottom-color: color-mix(in srgb, var(--owner-surface-border) 85%, transparent) !important;
}

.section-card .mud-table-body .mud-table-row td,
.section-card .mud-table-cell {
    background: color-mix(in srgb, var(--owner-surface-1) 96%, #000 4%);
    border-color: color-mix(in srgb, var(--owner-surface-border) 80%, transparent);
}

.section-card .mud-table-body,
.section-card .mud-table-empty-row,
.section-card .mud-table-empty-row td,
.section-card .mud-table-loading {
    background: color-mix(in srgb, var(--owner-surface-1) 96%, #000 4%) !important;
}

.section-card .mud-table-body .mud-table-row:hover td {
    background: color-mix(in srgb, var(--mud-palette-primary) 9%, var(--owner-surface-2) 91%) !important;
}

.section-card .mud-table-footer,
.section-card .mud-table-pagination,
.section-card .mud-table-pagination-toolbar {
    background: color-mix(in srgb, var(--owner-surface-2) 95%, #000 5%) !important;
    border-top-color: color-mix(in srgb, var(--owner-surface-border) 85%, transparent) !important;
}

.section-card .mud-table-pagination .mud-select,
.section-card .mud-table-pagination .mud-typography,
.section-card .mud-table-pagination .mud-button-root,
.section-card .mud-table-pagination .mud-icon-button {
    color: var(--mud-palette-text-primary) !important;
}

/* Forced calendar overrides to prevent MudPaper/MudSkeleton color drift */
.calendar-page .calendar-week-column,
.calendar-page .calendar-month-cell {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 84%, transparent) !important;
    background: linear-gradient(165deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
}

.calendar-page .calendar-appointment-card.mud-paper,
.calendar-page .calendar-mobile-agenda-item.mud-paper {
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, transparent) !important;
    background: color-mix(in srgb, var(--owner-surface-1) 97%, #000 3%) !important;
    box-shadow: 0 1px 0 color-mix(in srgb, #000 16%, transparent) !important;
}

.calendar-page .calendar-appointment-card.calendar-appointment-card-overlap.mud-paper {
    border-left: 4px solid color-mix(in srgb, var(--mud-palette-error) 80%, #fff 20%) !important;
    background: color-mix(in srgb, var(--mud-palette-error) 8%, var(--owner-surface-1)) !important;
}

.calendar-page .calendar-appointment-card .mud-skeleton,
.calendar-page .calendar-week-column > .mud-skeleton,
.calendar-page .calendar-month-cell > .mud-skeleton,
.calendar-page .calendar-mobile-agenda-item .mud-skeleton {
    background-color: var(--mud-palette-lines-default) !important;
    background-image: none !important;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 70%, transparent);
}

.calendar-page .calendar-appointment-card .mud-skeleton::after,
.calendar-page .calendar-week-column > .mud-skeleton::after,
.calendar-page .calendar-month-cell > .mud-skeleton::after,
.calendar-page .calendar-mobile-agenda-item .mud-skeleton::after,
.calendar-page .calendar-appointment-card .mud-skeleton::before,
.calendar-page .calendar-week-column > .mud-skeleton::before,
.calendar-page .calendar-month-cell > .mud-skeleton::before,
.calendar-page .calendar-mobile-agenda-item .mud-skeleton::before {
    background: linear-gradient(90deg,
        transparent,
        var(--owner-skeleton-highlight),
        transparent) !important;
}

.owner-ai-assistant {
    position: fixed;
    right: 20px;
    bottom: 20px;
    z-index: 1400;
}

.owner-ai-fab {
    box-shadow: 0 10px 26px color-mix(in srgb, var(--mud-palette-primary) 36%, transparent) !important;
}

.owner-ai-fab-button {
    width: 56px;
    height: 56px;
    border: 0;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg,
        color-mix(in srgb, var(--mud-palette-primary) 74%, #fff 26%),
        color-mix(in srgb, var(--mud-palette-primary) 88%, #000 12%));
    color: #fff;
    cursor: pointer;
    padding: 0;
}

.owner-ai-fab-icon {
    font-size: 1.45rem !important;
    color: #fff !important;
}

.owner-ai-panel {
    width: min(360px, calc(100vw - 32px));
    margin-bottom: 12px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, transparent);
    background: linear-gradient(145deg,
        color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%),
        color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%)) !important;
    box-shadow: var(--owner-card-shadow);
    padding: 12px;
}

.owner-ai-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.owner-ai-messages {
    max-height: 280px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 4px 2px;
}

.owner-ai-message {
    border-radius: 12px;
    padding: 8px 10px;
    font-size: 0.9rem;
    line-height: 1.35;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
}

.owner-ai-message.assistant {
    background: color-mix(in srgb, var(--owner-surface-2) 92%, #000 8%);
    align-self: flex-start;
}

.owner-ai-message-shell {
    display: inline-flex;
    align-items: flex-start;
    gap: 8px;
}

.owner-ai-message-icon {
    font-size: 1rem;
    margin-top: 2px;
    color: color-mix(in srgb, var(--mud-palette-primary) 70%, #fff 30%);
    flex: 0 0 auto;
}

.owner-ai-message.user {
    background: color-mix(in srgb, var(--mud-palette-primary) 12%, var(--owner-surface-1) 88%);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 30%, var(--owner-surface-border) 70%);
    align-self: flex-end;
}

.owner-ai-actions {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.owner-ai-action-chip {
    cursor: pointer;
}

.owner-ai-meta {
    margin-top: 8px;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.owner-ai-input {
    margin-top: 10px;
    display: grid;
    gap: 8px;
}

@media (max-width: 768px) {
    .owner-ai-assistant {
        right: 12px;
        bottom: 12px;
    }
}

.public-layout-shell {
    min-height: 100vh;
}

.auth-shell {
    position: relative;
    min-height: 100vh;
    overflow: hidden;
    padding: 32px;
    background:
        radial-gradient(circle at top left, rgba(147, 163, 184, 0.14), transparent 32%),
        radial-gradient(circle at bottom right, rgba(99, 102, 110, 0.14), transparent 28%),
        linear-gradient(145deg, #0b0d12 0%, #131720 46%, #0f131a 100%);
}

.auth-shell-backdrop {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, rgba(255, 255, 255, 0.02), transparent 36%),
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.05), transparent 18%),
        radial-gradient(circle at 80% 60%, rgba(255, 255, 255, 0.04), transparent 18%);
    pointer-events: none;
}

.auth-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(280px, 1fr) minmax(380px, 480px);
    gap: 28px;
    align-items: stretch;
    width: min(1180px, 100%);
    min-height: calc(100vh - 64px);
    margin: 0 auto;
}

.auth-grid-wide {
    grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.1fr);
}

.auth-story,
.auth-card {
    position: relative;
    border: 1px solid rgba(150, 168, 206, 0.18);
    backdrop-filter: blur(14px);
}

.auth-story {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 52px);
    border-radius: 32px;
    color: #e6edf9;
    background:
        linear-gradient(180deg, rgba(11, 14, 20, 0.7), rgba(11, 14, 20, 0.86)),
        linear-gradient(135deg, rgba(148, 163, 184, 0.12), rgba(71, 85, 105, 0.1));
    box-shadow: 0 28px 80px rgba(5, 10, 24, 0.34);
}

.auth-story-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    width: fit-content;
    margin-bottom: 24px;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: #dce8ff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.auth-story-badge .mud-icon-root {
    font-size: 1.1rem;
    color: #cbd5e1;
}

.auth-title {
    max-width: 11ch;
    margin-bottom: 16px;
    color: #ffffff;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: -0.03em;
}

.auth-subtitle {
    max-width: 58ch;
    margin-bottom: 28px;
    color: rgba(230, 237, 249, 0.76);
    line-height: 1.7;
}

.auth-story-points {
    display: grid;
    gap: 14px;
}

.auth-story-point {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px 18px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
}

.auth-story-point .mud-icon-root {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(148, 163, 184, 0.18);
    color: #d1d5db;
    font-size: 1.2rem;
}

.auth-story-point strong {
    display: block;
    margin-bottom: 4px;
    color: #ffffff;
    font-size: 0.98rem;
}

.auth-story-point span {
    color: rgba(230, 237, 249, 0.72);
    font-size: 0.92rem;
    line-height: 1.5;
}

.auth-card-wrap {
    display: flex;
    align-items: center;
}

.auth-card-wrap-wide {
    align-items: stretch;
}

.auth-card {
    width: 100%;
    padding: clamp(24px, 4vw, 36px);
    border-radius: 32px;
    background: rgba(10, 16, 31, 0.82);
    box-shadow: 0 28px 80px rgba(5, 10, 24, 0.4);
}

.auth-card-register {
    padding-bottom: 28px;
}

.subscriptions-page .subscriptions-hero {
    background: linear-gradient(132deg, #121722 0%, #1a2233 58%, #121823 100%);
    color: #f2f6ff;
    border: 1px solid rgba(164, 178, 206, 0.2);
    border-radius: 24px;
    text-align: center;
}

.subscriptions-page .subscriptions-kicker {
    letter-spacing: 0.1em;
    font-weight: 800;
    color: rgba(238, 243, 255, 0.78);
}

.subscriptions-page .subscriptions-billing-period {
    background: color-mix(in srgb, var(--owner-surface-1) 82%, #000 18%);
    border-radius: 18px;
}

.subscriptions-page .subscriptions-period-toggle {
    display: inline-flex;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 76%, transparent);
    border-radius: 999px;
    padding: 4px;
    gap: 4px;
    background: color-mix(in srgb, var(--owner-surface-2) 84%, #000 16%);
}

.subscriptions-page .subscriptions-period-toggle .mud-button-root {
    border-radius: 999px !important;
    min-height: 36px;
    min-width: 96px;
}

.subscriptions-page .subscription-plan-card {
    border: 1px solid rgba(144, 154, 174, 0.24);
    border-radius: 22px;
    padding: 24px !important;
    background: linear-gradient(165deg, rgba(29, 34, 47, 0.95), rgba(24, 28, 40, 0.95));
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.subscriptions-page .subscription-plan-card:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--mud-palette-primary-rgb), 0.48);
    box-shadow: 0 18px 38px rgba(8, 14, 28, 0.28);
}

.subscriptions-page .subscription-plan-card.featured {
    background: linear-gradient(165deg, rgba(43, 48, 88, 0.95), rgba(33, 37, 76, 0.95));
    border-color: rgba(119, 130, 255, 0.55);
    box-shadow: 0 20px 42px rgba(28, 35, 82, 0.35);
}

.subscriptions-page .subscription-plan-card .mud-typography-h6 {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.subscriptions-page .subscription-plan-card .mud-typography-h5 {
    font-size: 2.2rem;
    font-weight: 800;
    line-height: 1;
    color: #f8fafc;
}

.subscriptions-page .subscription-plan-card .mud-button-root {
    min-height: 48px;
    border-radius: 14px !important;
    font-weight: 700;
}

.subscriptions-page .subscriptions-plan-grid .mud-grid-item {
    display: flex;
}

.subscriptions-page .subscriptions-plan-grid .subscription-plan-card {
    width: 100%;
}

.subscriptions-page .subscription-plan-cta {
    margin-top: auto !important;
}

.payment-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 20px;
    align-items: start;
}

.payment-card {
    padding: clamp(20px, 2vw, 26px);
}

.auth-grid-payment {
    grid-template-columns: minmax(0, 980px);
    justify-content: center;
}

.payment-card .auth-card-header {
    margin-bottom: 14px;
}

.payment-card .auth-card-title {
    margin-bottom: 4px;
    font-size: 3rem;
    line-height: 0.98;
    letter-spacing: -0.02em;
}

.payment-card .auth-card-copy {
    max-width: 62ch;
    font-size: 1.02rem;
    line-height: 1.45;
    color: rgba(226, 232, 240, 0.78);
}

.payment-form-column {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: clamp(16px, 2vw, 20px);
    border: 1px solid rgba(156, 176, 214, 0.16);
    border-radius: 18px;
    background:
        linear-gradient(180deg, rgba(15, 23, 42, 0.66), rgba(15, 23, 42, 0.42)),
        rgba(255, 255, 255, 0.025);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.payment-contact-fields {
    display: grid;
    gap: 10px;
}

.payment-contact-readonly {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 16px !important;
    background: rgba(255, 255, 255, 0.035);
}

.payment-contact-readonly .mud-button-root {
    min-height: 30px;
    font-size: 0.8rem;
}

.payment-form-column .mud-input-control {
    margin-top: 0;
}

.payment-summary-column {
    display: grid;
    gap: 14px;
    position: sticky;
    top: 24px;
    align-self: start;
}

.payment-period-toggle-wrap {
    display: grid;
    gap: 10px;
    margin-top: 2px;
}

.payment-period-toggle-wrap .mud-typography-subtitle2,
.payment-selected-plan .mud-typography-subtitle2,
.payment-summary-card .mud-typography-subtitle2 {
    color: rgba(241, 245, 249, 0.92);
    font-size: 0.82rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.payment-period-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 240px;
    gap: 4px;
    padding: 4px;
    border: 1px solid rgba(156, 176, 214, 0.22);
    border-radius: 999px;
    background: rgba(2, 6, 23, 0.34);
}

.payment-period-toggle .mud-button-root {
    border-radius: 999px !important;
    min-width: 0;
    min-height: 34px;
    padding-inline: 14px;
    font-size: 0.84rem;
    font-weight: 800;
}

.payment-plan-grid {
    margin-top: 0 !important;
}

.payment-plan-grid .mud-grid-item {
    padding-top: 8px !important;
}

.payment-plan-card,
.payment-selected-plan {
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 18px !important;
    background: rgba(255, 255, 255, 0.035);
}

.payment-plan-card {
    display: grid;
    gap: 8px;
    min-height: 136px;
    transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

.payment-plan-card:hover {
    transform: translateY(-1px);
    border-color: rgba(var(--mud-palette-primary-rgb), 0.48);
    background: rgba(255, 255, 255, 0.055);
}

.payment-plan-card .mud-typography-subtitle1,
.payment-selected-plan .mud-typography-h6 {
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.payment-plan-card .mud-button-root {
    min-height: 38px;
    border-radius: 12px !important;
    font-size: 0.82rem;
    font-weight: 800;
}

.payment-summary-card,
.payment-embed-card {
    border: 1px solid rgba(148, 163, 184, 0.18);
    border-radius: 24px !important;
    background:
        linear-gradient(180deg, rgba(30, 41, 59, 0.9), rgba(15, 23, 42, 0.92)),
        color-mix(in srgb, var(--owner-surface-1) 82%, #000 18%);
    box-shadow: 0 20px 46px rgba(3, 7, 18, 0.32);
}

.payment-summary-card {
    padding: 16px !important;
    background: linear-gradient(180deg, rgba(58, 62, 78, 0.95), rgba(42, 46, 61, 0.95)) !important;
    min-height: 420px;
}

.payment-summary-card .mud-typography-body2.muted {
    margin-top: 3px;
    color: rgba(203, 213, 225, 0.74) !important;
}

.payment-summary-title {
    font-size: 2.62rem !important;
    line-height: 0.95;
    margin-bottom: 12px;
    letter-spacing: -0.02em;
}

.payment-summary-plan-name {
    color: rgba(226, 232, 240, 0.82);
}

.payment-summary-lines {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.payment-summary-lines > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: rgba(226, 232, 240, 0.78);
    font-size: 1rem;
}

.payment-summary-lines strong {
    color: #f8fafc;
    font-size: 1.08rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    white-space: nowrap;
}

.payment-summary-lines .payment-summary-total {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid rgba(148, 163, 184, 0.18);
}

.payment-summary-lines .payment-summary-total span {
    color: #f8fafc;
    font-weight: 800;
}

.payment-summary-lines .payment-summary-total strong {
    color: #ffffff;
    font-size: 1.42rem;
}

.payment-summary-cta {
    margin-top: 22px;
    min-height: 56px !important;
    border-radius: 999px !important;
    font-size: 1.08rem;
    font-weight: 800;
}

.payment-form-content-host {
    max-height: 460px;
    overflow: auto;
}

.payment-summary-column .mud-button-root {
    min-height: 44px;
    border-radius: 14px !important;
    font-weight: 800;
    letter-spacing: -0.01em;
}

.payment-embed-card iframe {
    min-height: 330px !important;
}

.auth-card-header {
    margin-bottom: 22px;
}

.auth-kicker {
    display: inline-block;
    margin-bottom: 8px;
    color: #cbd5e1;
    font-weight: 800;
    letter-spacing: 0.12em;
}

.auth-card-title {
    margin-bottom: 10px;
    color: #ffffff;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.auth-card-copy {
    color: rgba(230, 237, 249, 0.72);
    line-height: 1.65;
}

.auth-mini-note {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 8px 12px;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: rgba(148, 163, 184, 0.1);
    color: #dbe7ff;
    font-size: 0.82rem;
    font-weight: 600;
    width: fit-content;
}

.auth-mini-note .mud-icon-root {
    font-size: 1rem;
    color: #cbd5e1;
}

.auth-form {
    display: grid;
    gap: 0;
}

.auth-form .mud-input-control {
    margin-top: 0;
}

.auth-form .mud-input-outlined .mud-input-outlined-border {
    border-color: rgba(156, 176, 214, 0.24);
}

.auth-form .mud-input-outlined:hover .mud-input-outlined-border {
    border-color: rgba(148, 163, 184, 0.42);
}

.auth-form .mud-input-slot,
.auth-form .mud-input-label,
.auth-form .mud-input-helper-text,
.auth-form .mud-select-input {
    color: #e6edf9;
}

.auth-form .mud-input-helper-text {
    color: rgba(230, 237, 249, 0.58);
}

.auth-form .mud-icon-root {
    color: rgba(230, 237, 249, 0.72);
}

.auth-form-register {
    gap: 0;
}

.auth-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.auth-section-header .mud-typography-subtitle1 {
    color: #ffffff;
    font-weight: 700;
}

.auth-section-header .mud-typography-body2 {
    color: rgba(230, 237, 249, 0.66);
}

.auth-section-gap {
    margin-top: 24px;
}

.auth-location-button {
    flex-shrink: 0;
    height: 44px;
    border-color: rgba(148, 163, 184, 0.4);
    color: #d1d5db;
}

.auth-inline-alert {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border: 1px solid rgba(255, 112, 112, 0.22);
    border-radius: 16px;
    background: rgba(255, 112, 112, 0.08);
    color: #ffb7b7;
    font-size: 0.92rem;
}

.auth-inline-alert .mud-icon-root {
    color: #ff8f8f;
}

.auth-submit {
    height: 52px;
    margin-top: 24px;
    border-radius: 18px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%);
    color: #f8fafc;
    font-weight: 800;
    letter-spacing: 0.01em;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35);
}

.auth-submit:hover {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%);
}

.auth-submit-secondary {
    margin-top: 18px;
}

.auth-shell .mud-button-filled-primary {
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: #f8fafc !important;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.35) !important;
}

.auth-shell .mud-button-filled-primary:hover {
    background: linear-gradient(135deg, #374151 0%, #1f2937 100%) !important;
}

.auth-shell .mud-button-outlined-primary {
    border-color: rgba(148, 163, 184, 0.4) !important;
    color: #d1d5db !important;
}

.auth-shell .auth-submit .mud-progress-circular {
    color: #e5e7eb !important;
}

.auth-reset-trigger {
    margin-top: 12px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d1d5db;
    font-weight: 700;
    cursor: pointer;
    text-align: left;
}

.auth-reset-panel {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid rgba(156, 176, 214, 0.16);
}

.auth-reset-action {
    height: 46px;
    margin-top: 10px;
    border-radius: 16px;
    border-color: rgba(148, 163, 184, 0.4);
    color: #d1d5db;
}

.auth-reset-grid {
    display: grid;
    gap: 14px;
    margin-top: 14px;
}

.auth-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 18px;
    color: rgba(230, 237, 249, 0.72);
}

.auth-footer .mud-link {
    color: #cbd5e1;
    font-weight: 700;
}

.auth-inline-alert-info {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.auth-inline-alert-info .mud-icon-root {
    color: #cbd5e1;
}

.auth-inline-alert-warning {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(148, 163, 184, 0.12);
    color: #e2e8f0;
}

.auth-inline-alert-warning .mud-icon-root {
    color: #cbd5e1;
}

.business-block-card {
    max-width: 460px;
}

@media (max-width: 1100px) {
    .auth-grid,
    .auth-grid-wide {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .auth-story {
        min-height: 0;
    }

    .payment-layout {
        grid-template-columns: 1fr;
    }

    .payment-summary-column {
        position: static;
        top: auto;
    }
}

/* Subscriptions V2 */
.subscriptions-v2-page {
    display: grid;
    gap: 16px;
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 10px 8px 24px;
}

.subscriptions-v2-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 320px);
    gap: 18px;
    padding: clamp(20px, 2.4vw, 30px);
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, var(--mud-palette-primary) 22%);
    background:
        radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--mud-palette-primary) 16%, transparent), transparent 42%),
        linear-gradient(145deg, color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%), color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
}

.subscriptions-v2-chip {
    margin-bottom: 10px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: #f8fafc !important;
}

.subscriptions-v2-title {
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 3.6vw, 3rem) !important;
    line-height: 1.08;
    margin-bottom: 6px;
}

.subscriptions-v2-subtitle {
    margin-top: 6px;
    color: color-mix(in srgb, var(--mud-palette-text-primary) 70%, var(--mud-palette-text-secondary) 30%);
    max-width: 70ch;
}

.subscriptions-v2-hero-panel,
.subscriptions-v2-status-card,
.subscriptions-v2-toggle-card,
.subscriptions-v2-plan-card {
    border-radius: 18px !important;
}

.subscriptions-v2-hero-panel {
    display: grid;
    gap: 6px;
    align-content: center;
    padding: 16px 18px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, var(--mud-palette-primary) 18%);
    background: color-mix(in srgb, var(--owner-surface-1) 90%, var(--mud-palette-primary) 10%);
}

.subscriptions-v2-status-card,
.subscriptions-v2-toggle-card {
    padding: 18px;
}

.subscriptions-v2-toggle {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 260px;
    gap: 4px;
    padding: 4px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, transparent);
    border-radius: 999px;
    background: color-mix(in srgb, var(--owner-surface-2) 82%, #000 18%);
}

.subscriptions-v2-toggle .mud-button-root {
    min-width: 0;
    border-radius: 999px !important;
    min-height: 36px;
    font-weight: 800;
}

.subscriptions-v2-yearly-wrap {
    position: relative;
}

.subscriptions-v2-yearly-badge {
    position: absolute;
    top: -18px;
    left: 50%;
    transform: translateX(-50%);
    padding: 2px 8px;
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    white-space: nowrap;
    color: #022c22;
    background: color-mix(in srgb, #34d399 78%, #ffffff 22%);
    border: 1px solid color-mix(in srgb, #34d399 70%, #064e3b 30%);
}

.subscriptions-v2-plan-card {
    position: relative;
    display: grid;
    align-content: start;
    min-height: 100%;
    padding: 18px;
    transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}

.subscriptions-v2-plan-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--mud-palette-primary) 42%, transparent);
    box-shadow: 0 16px 28px color-mix(in srgb, var(--mud-palette-primary) 18%, transparent);
}

.subscriptions-v2-plan-card .mud-typography-h3 {
    font-size: clamp(2rem, 2.8vw, 3.1rem) !important;
    line-height: 1.02;
    letter-spacing: -0.02em;
}

.subscriptions-v2-plan-card.featured {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 52%, transparent);
    padding-top: 52px;
}

.subscriptions-v2-featured {
    position: absolute !important;
    top: 12px !important;
    right: 12px !important;
    z-index: 2;
}

.subscriptions-v2-plan-name {
    padding-right: 88px;
}

.subscriptions-v2-plan-description {
    margin-top: 6px;
    min-height: 42px;
    color: var(--owner-muted-text);
}

.subscriptions-v2-highlights {
    margin-top: 8px;
    margin-bottom: 2px;
    padding-top: 0;
    padding-bottom: 0;
}

.subscriptions-v2-highlight-item {
    min-height: 24px;
    padding-top: 2px;
    padding-bottom: 2px;
    gap: 6px;
    color: color-mix(in srgb, var(--mud-palette-text-primary) 80%, var(--mud-palette-text-secondary) 20%);
}

.subscriptions-v2-highlight-icon {
    color: color-mix(in srgb, var(--mud-palette-primary) 72%, #fff 28%);
}

.subscriptions-v2-price-lines .mud-typography-caption {
    color: var(--owner-muted-text);
}

.subscriptions-v2-entitlements {
    margin-top: 12px;
    display: grid;
    gap: 8px;
}

.subscriptions-v2-entitlements-label {
    color: var(--owner-muted-text);
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.subscriptions-v2-entitlements-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.subscriptions-v2-entitlement-chip {
    min-height: 30px;
    height: auto;
    border-radius: 999px !important;
    font-size: 0.78rem;
    font-weight: 700;
}

.subscriptions-v2-cta {
    min-height: 44px !important;
    border-radius: 12px !important;
    font-weight: 800;
}

.subscription-management-page {
    display: grid;
    gap: 16px;
    width: min(1400px, 100%);
    margin: 0 auto;
    padding: 10px 8px 24px;
}

.subscription-management-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(340px, 0.9fr);
    gap: 18px;
    padding: clamp(20px, 2.4vw, 30px);
    border-radius: 22px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 78%, var(--mud-palette-primary) 22%);
    background:
        radial-gradient(circle at 12% 0%, color-mix(in srgb, var(--mud-palette-primary) 16%, transparent), transparent 44%),
        linear-gradient(145deg, color-mix(in srgb, var(--owner-surface-1) 96%, #fff 4%), color-mix(in srgb, var(--owner-surface-2) 94%, #000 6%));
}

.subscription-management-hero-copy {
    display: grid;
    gap: 14px;
    align-content: start;
}

.subscription-management-chip {
    width: fit-content;
    margin-bottom: 2px;
    background: linear-gradient(135deg, #1f2937 0%, #111827 100%) !important;
    color: #f8fafc !important;
}

.subscription-management-title {
    letter-spacing: -0.02em;
    font-size: clamp(2rem, 3.4vw, 3rem) !important;
    line-height: 1.08;
    margin-bottom: 0;
}

.subscription-management-subtitle {
    color: color-mix(in srgb, var(--mud-palette-text-primary) 70%, var(--mud-palette-text-secondary) 30%);
    max-width: 72ch;
}

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

.subscription-management-kpi {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, var(--mud-palette-primary) 18%);
    background: color-mix(in srgb, var(--owner-surface-1) 88%, var(--mud-palette-primary) 12%);
}

.subscription-management-kpi-label,
.subscription-management-summary-kicker,
.subscription-management-summary-stat-label {
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.subscription-management-kpi-label {
    color: var(--owner-muted-text);
}

.subscription-management-kpi-value {
    letter-spacing: -0.02em;
}

.subscription-management-summary {
    display: grid;
    gap: 14px;
    padding: 18px;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 82%, var(--mud-palette-primary) 18%);
    background: color-mix(in srgb, var(--owner-surface-1) 90%, var(--mud-palette-primary) 10%);
    align-content: start;
}

.subscription-management-summary-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.subscription-management-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.subscription-management-summary-stat {
    display: grid;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--owner-surface-border) 80%, transparent);
    background: color-mix(in srgb, var(--owner-surface-2) 88%, #000 12%);
}

.subscription-management-summary-stat-label {
    color: var(--owner-muted-text);
    font-size: 0.72rem;
}

.subscription-management-summary-stat-value {
    font-size: 1rem;
    font-weight: 700;
}

.subscription-management-muted {
    color: var(--owner-muted-text);
}

.subscription-management-demo-banner {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid color-mix(in srgb, var(--mud-palette-warning) 32%, var(--owner-surface-border) 68%);
    background: color-mix(in srgb, var(--mud-palette-warning) 14%, var(--owner-surface-1) 86%);
}

.subscription-management-period-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px 20px;
    border-radius: 18px;
}

.subscription-management-plan-card.current {
    border-color: color-mix(in srgb, var(--mud-palette-primary) 48%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--mud-palette-primary) 12%, transparent);
}

.subscription-management-plan-topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    min-height: 34px;
}

.subscription-management-current-chip {
    flex-shrink: 0;
}

.subscription-management-plan-card .subscriptions-v2-entitlements {
    margin-top: 14px;
}

.payment-period-card {
    margin-top: 10px;
}

@media (max-width: 960px) {
    .subscriptions-v2-hero {
        grid-template-columns: 1fr;
    }

    .subscriptions-v2-page {
        padding: 6px 2px 18px;
    }

    .subscription-management-hero {
        grid-template-columns: 1fr;
    }

    .subscription-management-kpis {
        grid-template-columns: 1fr;
    }

    .subscription-management-period-card {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 720px) {
    .auth-shell {
        min-height: 100dvh;
        height: 100dvh;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 16px;
        padding-bottom: calc(28px + env(safe-area-inset-bottom));
        -webkit-overflow-scrolling: touch;
        overscroll-behavior-y: contain;
        touch-action: pan-y;
    }

    .public-layout-shell {
        min-height: 100dvh;
        height: 100dvh;
        overflow: hidden;
    }

    .auth-shell-backdrop {
        position: fixed;
    }

    .auth-grid,
    .auth-grid-wide {
        min-height: auto;
        gap: 16px;
    }

    .auth-card-wrap,
    .auth-card-wrap-wide {
        align-items: flex-start;
    }

    .auth-story,
    .auth-card {
        border-radius: 24px;
        padding: 22px;
    }

    .auth-story {
        display: none;
    }

    .auth-card {
        margin: 0 auto;
    }

    .auth-section-header,
    .auth-footer {
        flex-direction: column;
        align-items: flex-start;
    }

    .auth-location-button {
        width: 100%;
        justify-content: center;
    }

    .auth-submit,
    .auth-reset-action {
        min-height: 50px;
    }
}

@media (max-width: 768px) {
    :root {
        --owner-layout-appbar-height: 56px;
    }

    html,
    body {
        min-height: 100%;
        overflow-x: hidden;
        -webkit-tap-highlight-color: transparent;
    }

    body {
        background: var(--owner-layout-main-bg);
        overscroll-behavior-y: contain;
    }

    body.owner-theme-dark.scroll-locked,
    body.owner-theme-light.scroll-locked,
    body.scroll-locked,
    html.owner-theme-dark.scroll-locked,
    html.owner-theme-light.scroll-locked,
    html.scroll-locked {
        overflow-y: auto !important;
        position: static !important;
        height: auto !important;
        inset: auto !important;
    }

    .owner-desktop-only {
        display: none !important;
    }

    .owner-mobile-title {
        display: block;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        max-width: 46vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        color: var(--owner-layout-appbar-text) !important;
        font-weight: 800 !important;
        letter-spacing: 0;
    }

    .owner-layout-shell .owner-appbar {
        height: calc(var(--owner-layout-appbar-height) + env(safe-area-inset-top));
        padding-top: env(safe-area-inset-top);
        border-bottom: 1px solid color-mix(in srgb, var(--owner-layout-border) 76%, transparent);
        box-shadow: 0 8px 18px rgba(8, 11, 24, 0.18);
    }

    .owner-layout-shell .owner-appbar .mud-toolbar {
        min-height: var(--owner-layout-appbar-height);
        padding-inline: 8px;
        position: relative;
    }

    .owner-layout-shell .owner-appbar .mud-icon-button-root {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .owner-layout-shell .owner-drawer {
        width: min(86vw, 320px) !important;
    }

    .owner-layout-shell .owner-drawer .mud-drawer-content {
        padding-top: env(safe-area-inset-top);
        border-radius: 0 20px 20px 0;
        box-shadow: 12px 0 34px rgba(4, 8, 20, 0.28);
    }

    .owner-layout-shell .owner-drawer-header {
        min-height: 60px;
    }

    .owner-navmenu {
        padding: 10px 10px 24px;
    }

    .owner-navmenu .owner-nav-link {
        min-height: 50px;
        border-radius: 14px;
        margin: 3px 2px;
        font-size: 0.98rem;
    }

    .owner-main-content {
        min-height: calc(100dvh - var(--owner-layout-appbar-height));
        padding-bottom: calc(78px + env(safe-area-inset-bottom));
    }

    body.owner-hybrid-shell .owner-main-content {
        min-height: 0;
        height: auto;
        max-height: none;
    }

    .owner-content-container {
        padding: 12px !important;
        padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
        min-height: calc(100dvh - var(--owner-layout-appbar-height));
    }

    body.owner-hybrid-shell .owner-content-container {
        min-height: auto;
    }

    .owner-mobile-tabbar {
        position: fixed;
        left: 0;
        right: 0;
        bottom: 0;
        z-index: 1300;
        display: grid;
        grid-template-columns: repeat(6, minmax(0, 1fr));
        gap: 2px;
        padding: 7px 8px calc(7px + env(safe-area-inset-bottom));
        border-top: 1px solid color-mix(in srgb, var(--owner-layout-border) 78%, transparent);
        background: color-mix(in srgb, var(--owner-surface-1) 94%, #000 6%);
        box-shadow: 0 -12px 28px rgba(4, 8, 20, 0.2);
        backdrop-filter: none;
    }

    .owner-mobile-tabbar-item {
        min-width: 0;
        min-height: 54px;
        border: 0;
        border-radius: 15px;
        background: transparent;
        color: var(--owner-muted-text);
        display: inline-flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 3px;
        text-decoration: none;
        font: inherit;
        font-size: 0.7rem;
        font-weight: 700;
        line-height: 1;
        letter-spacing: 0;
        cursor: pointer;
    }

    .owner-mobile-tabbar-item .mud-icon-root {
        font-size: 1.32rem;
        color: currentColor;
    }

    .owner-mobile-tabbar-item.active,
    .owner-mobile-tabbar-item.active:hover {
        color: var(--owner-layout-sidebar-active-text);
        background: linear-gradient(135deg,
            color-mix(in srgb, var(--mud-palette-primary) 78%, #fff 22%),
            color-mix(in srgb, var(--mud-palette-primary) 86%, #000 14%));
        box-shadow: 0 8px 20px color-mix(in srgb, var(--mud-palette-primary) 24%, transparent);
    }

    html.owner-theme-light .owner-mobile-tabbar-item.active {
        color: #ffffff;
    }

    .owner-mobile-tabbar-button {
        appearance: none;
    }

    .section-card,
    .dashboard-filter-panel,
    .appointments-filter-panel,
    .group-appointments-filter-panel,
    .reviews-filter-panel,
    .checkins-qr-panel,
    .checkins-filter-panel,
    .services-filter-panel,
    .business-profile-card,
    .appointment-details-card {
        border-radius: 14px !important;
        box-shadow: 0 8px 22px rgba(4, 8, 20, 0.14) !important;
    }

    .page-hero,
    .dashboard-hero {
        border-radius: 16px;
        padding: 18px !important;
    }

    .dashboard-page {
        padding-bottom: 0;
    }

    .dashboard-mobile-actions {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        margin-bottom: 12px;
    }

    .dashboard-mobile-action {
        min-width: 0;
        padding: 8px 4px;
    }

    .dashboard-mobile-action span {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .dashboard-kpi-card {
        min-height: 122px;
    }

    .dashboard-chart-card .apexcharts-canvas {
        max-width: 100% !important;
    }

    .dashboard-filter-stack,
    .appointments-filter-panel .mud-stack,
    .services-filter-panel .mud-stack,
    .group-appointments-filter-panel .mud-stack,
    .reviews-filter-panel .mud-stack,
    .checkins-filter-panel .mud-stack {
        justify-content: flex-start;
        gap: 8px;
    }

    .mud-button-root,
    .mud-icon-button-root,
    .mud-input-control,
    .mud-select,
    .mud-chip {
        touch-action: manipulation;
    }

    .mud-button-root {
        min-height: 42px;
        border-radius: 12px !important;
    }

    .mud-icon-button-root {
        width: 42px;
        height: 42px;
    }

    .mud-input-control {
        margin-top: 6px;
        margin-bottom: 6px;
    }

    .mud-table-container {
        border-radius: 14px !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .section-card .mud-table-head th,
    .section-card .mud-table-body .mud-table-row td,
    .section-card .mud-table-cell {
        white-space: nowrap;
    }

    .mud-data-grid,
    .mud-table {
        font-size: 0.88rem;
    }

    .notification-panel {
        width: min(94vw, 360px) !important;
        max-height: min(72dvh, 560px);
        overflow: hidden;
        border-radius: 18px !important;
    }

    .notification-list {
        max-height: min(56dvh, 430px);
    }

    .owner-ai-assistant {
        right: 12px;
        bottom: calc(84px + env(safe-area-inset-bottom));
    }

    .owner-ai-panel {
        width: calc(100vw - 24px);
        max-height: min(70dvh, 560px);
        overflow: hidden;
    }

    .owner-ai-messages {
        max-height: 42dvh;
    }

    .mud-dialog {
        margin: 10px !important;
        max-width: calc(100vw - 20px) !important;
        border-radius: 18px !important;
    }

    .mud-popover {
        max-width: calc(100vw - 16px);
    }
}
