:root {
    --bg: #fcfcfc;
    --surface: #ffffff;
    --surface-alt: #f7f7f8;
    --text: #272727;
    --text-soft: #4f5660;
    --text-muted: #6f7680;
    --border: #e8e8ea;
    --border-strong: #d9dadd;

    --primary: #05a6f0;
    --primary-hover: #0295da;
    --primary-soft: #eaf8fe;

    --success: #81bc06;
    --success-soft: #f3f9e8;

    --warning: #ffba08;
    --warning-soft: #fff8e1;

    --destructive: #f35325;
    --destructive-soft: #fff1ec;

    --focus-ring: rgba(5, 166, 240, 0.34);
    --overlay-light: rgba(39, 39, 39, 0.08);
    --overlay-modal: rgba(39, 39, 39, 0.32);

    --radius-xs: 8px;
    --radius-sm: 10px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-pill: 999px;

    --shadow-xs: 0 1px 2px rgba(16, 24, 40, 0.04);
    --shadow-sm: 0 4px 12px rgba(16, 24, 40, 0.05);
    --shadow-md: 0 8px 24px rgba(16, 24, 40, 0.06);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.08);

    --sidebar-width: 272px;
    --sidebar-collapsed-width: 84px;
    --header-height: 72px;
    --content-max-width: 1440px;

    --font-sans: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;
    --font-display: "Segoe UI", Inter, ui-sans-serif, system-ui, sans-serif;

    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;

    --color-ink: var(--text);
    --color-ink-soft: var(--text-soft);
    --color-ink-faint: var(--text-muted);
    --color-bg: var(--bg);
    --color-surface: var(--surface);
    --color-surface-soft: var(--surface-alt);
    --color-surface-muted: var(--surface-alt);
    --color-border: var(--border);
    --color-border-strong: var(--border-strong);
    --color-blue: var(--primary);
    --color-blue-deep: var(--primary-hover);
    --color-blue-soft: var(--primary-soft);
    --color-red: var(--destructive);
    --color-red-soft: var(--destructive-soft);
    --color-green: var(--success);
    --color-green-soft: var(--success-soft);
    --color-yellow: var(--warning);
    --color-yellow-soft: var(--warning-soft);
    --page-max: var(--content-max-width);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 24px;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body.app-body-shell {
    background:
        radial-gradient(circle at top left, rgba(5, 166, 240, 0.05), transparent 28rem),
        linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}

body.app-body-auth {
    background: linear-gradient(180deg, #f7f8fa 0%, #fcfcfc 100%);
}

body.sidebar-open {
    overflow: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

.skip-link {
    position: fixed;
    left: 16px;
    top: 16px;
    z-index: 200;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    background: var(--text);
    color: #ffffff;
    box-shadow: var(--shadow-md);
    opacity: 0;
    pointer-events: none;
    transform: translateY(calc(-100% - 24px));
    transition: transform 0.18s ease, opacity 0.18s ease;
}

.skip-link:focus-visible {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

img {
    display: block;
    max-width: 100%;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    color: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6,
p {
    margin: 0;
}

h1 {
    font-size: 32px;
    line-height: 40px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

h2 {
    font-size: 24px;
    line-height: 32px;
    font-weight: 600;
    letter-spacing: -0.015em;
}

h3 {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

h4 {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

[hidden] {
    display: none !important;
}

.app-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}

.app-shell.is-sidebar-collapsed {
    grid-template-columns: var(--sidebar-collapsed-width) minmax(0, 1fr);
}

.shell-main {
    min-width: 0;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
}

.sidebar-backdrop {
    display: none;
}

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    display: grid;
    grid-template-rows: auto 1fr auto;
    gap: var(--space-6);
    padding: var(--space-6) var(--space-5);
    background: rgba(255, 255, 255, 0.94);
    border-right: 1px solid var(--border);
    backdrop-filter: blur(14px);
    overflow: visible;
    z-index: 30;
}

.sidebar-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: var(--space-4);
    min-width: 0;
}

.sidebar-collapse-toggle {
    display: inline-grid;
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
    flex: none;
    position: relative;
    place-items: center;
}

.sidebar-collapse-icon-open {
    display: none;
}

.sidebar-collapse-icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    position: absolute;
    inset: 0;
    margin: auto;
}

.sidebar-collapse-toggle:hover,
.sidebar-collapse-toggle:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--text);
}

.brand-mark {
    width: 48px;
    height: 48px;
    flex: none;
    padding: 8px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.brand-mark img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 10px;
}

.brand-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.brand-copy strong,
.user-meta strong {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.brand-copy small,
.user-meta small,
.hero-meta,
.muted,
.lead,
.field-caption,
.table-meta,
.table-caption,
.page-note,
.detail-note,
.empty-state,
.sidebar-footer-note {
    color: var(--text-soft);
}

.sidebar-nav {
    display: grid;
    align-content: start;
    gap: var(--space-6);
}

.sidebar-section {
    display: grid;
    gap: var(--space-2);
}

.sidebar-section + .sidebar-section {
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.sidebar-heading {
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    color: var(--text-muted);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding-left: var(--space-3);
}

.nav {
    display: grid;
    gap: var(--space-2);
}

.nav-link {
    position: relative;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: var(--text-soft);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.nav-link::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    width: 3px;
    height: 18px;
    transform: translateY(-50%);
    border-radius: var(--radius-pill);
    background: transparent;
}

.nav-link-icon {
    width: 18px;
    height: 18px;
    color: var(--text-muted);
    flex: none;
}

.nav-link-label {
    min-width: 0;
}

.nav-link-icon svg,
.icon-button svg {
    width: 100%;
    height: 100%;
}

.nav-link:hover,
.nav-link:focus-visible {
    background: var(--surface-alt);
    color: var(--text);
}

.nav-link:hover .nav-link-icon,
.nav-link:focus-visible .nav-link-icon {
    color: var(--text);
}

.nav-link.is-active {
    background: var(--primary-soft);
    color: var(--text);
}

.nav-link.is-active::before {
    background: var(--primary);
}

.nav-link.is-active .nav-link-icon {
    color: var(--primary);
}

.support-nav-item {
    position: relative;
}

.support-nav-item > .nav-link {
    width: 100%;
}

.support-nav-trigger {
    width: 100%;
    border: none;
    background: transparent;
    text-align: left;
    font: inherit;
    cursor: pointer;
}

.support-popover {
    position: absolute;
    left: calc(100% + 16px);
    top: 50%;
    width: min(340px, 72vw);
    padding: 16px;
    border-radius: 18px;
    border: 1px solid rgba(5, 166, 240, 0.22);
    background: #061c2d;
    box-shadow: 0 24px 54px rgba(6, 28, 45, 0.22);
    color: #ffffff;
    transform: translateY(-50%) translateX(-10px);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.18s ease, opacity 0.18s ease;
    z-index: 120;
    user-select: text;
    max-height: min(68vh, 460px);
    overflow-y: auto;
}

.support-popover::before {
    content: "";
    position: absolute;
    left: -7px;
    top: 50%;
    width: 14px;
    height: 14px;
    border-left: 1px solid rgba(5, 166, 240, 0.22);
    border-bottom: 1px solid rgba(5, 166, 240, 0.22);
    background: #061c2d;
    transform: translateY(-50%) rotate(45deg);
}

.support-popover::after {
    content: "";
    position: absolute;
    left: -18px;
    top: 0;
    bottom: 0;
    width: 18px;
    background: transparent;
}

.support-nav-item:hover .support-popover,
.support-nav-item:focus-within .support-popover,
.support-nav-item.is-open .support-popover {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
}

.support-popover-header {
    display: grid;
    gap: 4px;
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.support-popover-header strong {
    font-size: 14px;
    line-height: 20px;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.support-popover-header span {
    font-size: 12px;
    line-height: 18px;
    color: rgba(255, 255, 255, 0.72);
}

.support-popover-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 12px;
}

.support-popover-list li {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
}

.support-popover-icon {
    width: 18px;
    height: 18px;
    display: inline-grid;
    place-items: center;
    color: rgba(255, 255, 255, 0.82);
}

.support-popover-copy {
    display: grid;
    gap: 3px;
}

.support-popover-copy span {
    font-size: 11px;
    line-height: 16px;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.support-popover-copy p {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    color: #ffffff;
    overflow-wrap: anywhere;
}

.support-popover-copy p span {
    display: inline;
    margin: 0 6px;
    letter-spacing: normal;
    text-transform: none;
}

.support-popover a {
    color: #ffffff;
    text-decoration: none;
}

.support-popover a:hover,
.support-popover a:focus-visible {
    color: #8cd8ff;
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
}

.support-selectable {
    user-select: text;
}

.sidebar-footer {
    margin-top: auto;
    display: grid;
    gap: var(--space-4);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.sidebar-sync-card {
    display: grid;
    gap: 14px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
    box-shadow: var(--shadow-xs);
}

.sidebar-sync-meta {
    display: grid;
    gap: 6px;
}

.sidebar-sync-card .sidebar-heading {
    padding-left: 0;
}

.sidebar-sync-value {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: var(--text);
}

.sidebar-sync-help {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.sidebar-sync-form {
    display: grid;
    gap: 10px;
}

.sidebar-sync-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    position: relative;
    overflow: hidden;
}

.sidebar-sync-button-icon {
    width: 16px;
    height: 16px;
    display: inline-grid;
    place-items: center;
    flex: none;
}

.sidebar-sync-button-icon svg {
    width: 100%;
    height: 100%;
}

.sidebar-sync-button-label {
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sidebar-sync-spinner,
.sync-toast-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
    border-radius: 50%;
}

.sidebar-sync-spinner {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0;
    transition: opacity 0.18s ease;
    animation: sidebar-spinner-spin 0.72s linear infinite;
}

.sidebar-sync-status {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    color: var(--primary-hover);
}

.sidebar-sync-form.is-syncing .sidebar-sync-button {
    padding-right: 42px;
}

.sidebar-sync-form.is-syncing .sidebar-sync-button-label {
    opacity: 0.92;
    transform: translateX(-6px);
}

.sidebar-sync-form.is-syncing .sidebar-sync-spinner {
    opacity: 1;
}

.sidebar-sync-form.is-syncing .sidebar-sync-status[hidden] {
    display: block !important;
}

.app-shell.is-sidebar-collapsed .sidebar {
    padding-inline: 12px;
}

.app-shell.is-sidebar-collapsed .sidebar-brand {
    display: grid;
    width: 44px;
    margin-inline: auto;
    justify-content: center;
    justify-items: center;
}

.app-shell.is-sidebar-collapsed .brand {
    display: none;
}

.app-shell.is-sidebar-collapsed .brand-copy,
.app-shell.is-sidebar-collapsed .nav-link-label,
.app-shell.is-sidebar-collapsed .sidebar-heading,
.app-shell.is-sidebar-collapsed .sidebar-sync-meta,
.app-shell.is-sidebar-collapsed .sidebar-sync-status,
.app-shell.is-sidebar-collapsed .sidebar-footer-note {
    display: none;
}

.app-shell.is-sidebar-collapsed .sidebar-section {
    justify-items: center;
}

.app-shell.is-sidebar-collapsed .sidebar-section + .sidebar-section {
    padding-top: var(--space-3);
    border-top: none;
}

.app-shell.is-sidebar-collapsed .sidebar-nav {
    gap: var(--space-4);
}

.app-shell.is-sidebar-collapsed .support-nav-item {
    justify-self: center;
}

.app-shell.is-sidebar-collapsed .nav-link {
    width: 44px;
    min-width: 44px;
    padding: 0;
    justify-content: center;
}

.app-shell.is-sidebar-collapsed .nav-link::before {
    left: -2px;
}

.app-shell.is-sidebar-collapsed .sidebar-sync-card {
    justify-items: center;
    padding: 0;
    border: none;
    background: transparent;
    box-shadow: none;
}

.app-shell.is-sidebar-collapsed .sidebar-sync-form {
    justify-items: center;
}

.app-shell.is-sidebar-collapsed .sidebar-sync-button {
    width: 44px;
    min-height: 44px;
    padding: 0;
}

.app-shell.is-sidebar-collapsed .sidebar-sync-button-label {
    display: none;
}

.app-shell.is-sidebar-collapsed .sidebar-sync-spinner {
    right: 12px;
}

.app-shell.is-sidebar-collapsed .sidebar-sync-form.is-syncing .sidebar-sync-button {
    padding-right: 0;
}

.app-shell.is-sidebar-collapsed .sidebar-collapse-toggle {
    width: 44px;
    height: 44px;
    justify-self: center;
}

.app-shell.is-sidebar-collapsed .sidebar-collapse-toggle .sidebar-collapse-icon-close {
    display: none;
}

.app-shell.is-sidebar-collapsed .sidebar-collapse-toggle .sidebar-collapse-icon-open {
    display: inline-grid;
}

.app-shell.is-sidebar-collapsed .support-popover {
    left: calc(100% + 12px);
}

.sidebar-footer-note {
    font-size: 13px;
    line-height: 20px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    min-height: var(--header-height);
    background: rgba(252, 252, 252, 0.92);
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(12px);
}

.topbar-inner {
    min-height: var(--header-height);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    padding: 0 var(--space-6);
}

.topbar-left,
.topbar-right,
.user-shell {
    display: flex;
    align-items: center;
    gap: var(--space-4);
}

.topbar-right {
    justify-content: flex-end;
    flex-wrap: wrap;
}

.topbar-copy {
    display: grid;
    gap: 2px;
}

.topbar-kicker,
.eyebrow {
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    color: var(--primary-hover);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.topbar-title {
    font-size: 18px;
    line-height: 26px;
    font-weight: 600;
    color: var(--text);
}

.icon-button {
    width: 40px;
    height: 40px;
    flex: none;
    display: inline-grid;
    place-items: center;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text-soft);
    box-shadow: var(--shadow-xs);
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

.icon-button.sidebar-collapse-toggle {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--text-muted);
}

.icon-button.sidebar-collapse-toggle .sidebar-collapse-icon {
    position: static;
    inset: auto;
    margin: 0;
}

.icon-button.sidebar-collapse-toggle .sidebar-collapse-icon-open {
    display: none;
}

.icon-button:hover,
.icon-button:focus-visible {
    background: var(--surface-alt);
    color: var(--text);
}

.icon-button.sidebar-collapse-toggle:hover,
.icon-button.sidebar-collapse-toggle:focus-visible {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
    color: var(--text);
}

.sidebar-toggle,
.sidebar-close {
    display: none;
}

.user-chip {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 4px 10px 4px 4px;
    border-radius: var(--radius-pill);
    background: rgba(255, 255, 255, 0.72);
    box-shadow: none;
}

.user-avatar {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--surface-alt);
    color: var(--text);
    font-size: 13px;
    line-height: 20px;
    font-weight: 700;
}

.user-meta {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    white-space: nowrap;
}

.user-meta strong,
.user-meta small {
    font-size: 14px;
    line-height: 20px;
}

.user-meta small {
    color: var(--text-soft);
}

.user-meta-separator {
    color: var(--text-muted);
}

.page-shell {
    width: min(var(--content-max-width), 100%);
    margin: 0 auto;
    padding: 24px 32px 56px;
}

.page-shell > * + * {
    margin-top: var(--space-6);
}

.alert + .alert {
    margin-top: var(--space-3);
}

.page-footer {
    margin-top: var(--space-10);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
    font-size: 13px;
    line-height: 20px;
    color: var(--text-muted);
    text-align: center;
}

.page-footer a {
    color: var(--text-soft);
    font-weight: 600;
}

.page-footer a:hover,
.page-footer a:focus-visible {
    color: var(--text);
    text-decoration: underline;
}

.hero,
.section-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: var(--space-6);
}

.hero-copy,
.section-heading {
    display: grid;
    gap: var(--space-2);
}

.hero-copy > p:not(.eyebrow),
.section-heading > p:not(.eyebrow),
.lead {
    font-size: 15px;
    line-height: 24px;
    color: var(--text-soft);
    max-width: 72ch;
}

.lead-inline {
    max-width: none;
    white-space: nowrap;
}

.hero-side {
    display: grid;
    justify-items: end;
    gap: var(--space-3);
}

.hero-inline-meta,
.page-subnav,
.member-badges {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-2);
}

.meta-pill {
    min-height: 32px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.page-subnav {
    padding: 6px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.subnav-link {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 12px;
    border-radius: var(--radius-md);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: var(--text-soft);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.subnav-link:hover,
.subnav-link:focus-visible {
    background: var(--surface-alt);
    color: var(--text);
}

.subnav-link.is-active,
.subnav-link[aria-current="page"] {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.card,
.table-shell,
.member-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xs);
}

.card {
    padding: 24px;
}

.table-shell {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
}

.cards-grid,
.analytics-kpi-grid {
    display: grid;
    grid-template-columns: repeat(12, minmax(0, 1fr));
    gap: var(--space-5);
}

.cards-grid > *,
.analytics-kpi-grid > * {
    grid-column: span 3;
}

.metric {
    min-height: 112px;
    display: grid;
    align-content: start;
    gap: var(--space-3);
    padding: 20px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    box-shadow: var(--shadow-xs);
}

.metric-kicker {
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    color: var(--text-muted);
}

.metric strong,
.metric-value {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.metric-meta {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.metric-featured,
.spotlight-card {
    grid-column: span 6;
}

.dashboard-spotlight {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
    gap: 24px;
}

.dashboard-spotlight-main,
.dashboard-spotlight-side,
.stack-column {
    display: grid;
    align-content: start;
    gap: 24px;
}

.dashboard-spotlight-date {
    width: 96px;
    min-height: 96px;
    display: grid;
    place-items: center;
    gap: var(--space-1);
    padding: var(--space-3);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
}

.dashboard-spotlight-date small {
    font-size: 13px;
    line-height: 20px;
    font-weight: 500;
    color: var(--text-soft);
}

.dashboard-spotlight-meta,
.detail-grid,
.field-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: var(--space-4);
}

.dashboard-spotlight-actions {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
}

.dashboard-spotlight-note {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

.dashboard-spotlight-note strong {
    display: block;
    margin-bottom: var(--space-2);
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.booking-tools-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(320px, 0.9fr);
    gap: 24px;
    align-items: start;
}

.split-grid,
.detail-layout,
.form-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.85fr);
    gap: 24px;
    align-items: start;
}

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

.subsection-gap-top {
    margin-top: 20px;
}

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

.dialog-actions {
    justify-content: flex-end;
}

.inline-form {
    display: inline;
}

.button {
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0 16px;
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: transparent;
    color: var(--text);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.button:hover,
.button:focus-visible {
    box-shadow: 0 0 0 4px transparent;
}

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

.button-primary:hover,
.button-primary:focus-visible {
    background: var(--primary-hover);
}

.button-secondary {
    background: #f3f4f6;
    color: var(--text);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: #eaedf1;
}

.button-admin-followup {
    background: var(--warning-soft);
    color: #8a5a00;
    border-color: rgba(255, 186, 8, 0.35);
}

.button-admin-followup:hover,
.button-admin-followup:focus-visible {
    background: #fff1bd;
}

.button-outline {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.button-outline:hover,
.button-outline:focus-visible {
    background: var(--surface-alt);
}

.logout-button {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 40px;
    height: 40px;
    padding: 0;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    background-color: rgb(255, 65, 65);
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.199);
    transition: width 0.3s ease, border-radius 0.3s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.logout-button-sign {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: none;
    transition: width 0.3s ease, padding-left 0.3s ease;
}

.logout-button-sign svg {
    width: 15px;
    height: 15px;
}

.logout-button-sign svg path {
    fill: #ffffff;
}

.logout-button-text {
    position: absolute;
    right: 0;
    width: 0;
    opacity: 0;
    color: #ffffff;
    font-size: 0.95rem;
    line-height: 1;
    font-weight: 600;
    white-space: nowrap;
    transition: opacity 0.3s ease, width 0.3s ease, padding-right 0.3s ease;
}

.logout-button:hover,
.logout-button:focus-visible {
    width: 142px;
    border-radius: 40px;
    box-shadow: 0 8px 18px rgba(243, 83, 37, 0.24);
}

.logout-button:hover .logout-button-sign,
.logout-button:focus-visible .logout-button-sign {
    width: 28%;
    padding-left: 16px;
}

.logout-button:hover .logout-button-text,
.logout-button:focus-visible .logout-button-text {
    width: 72%;
    opacity: 1;
    padding-right: 20px;
}

.logout-button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(243, 83, 37, 0.18), 0 8px 18px rgba(243, 83, 37, 0.24);
}

.logout-button:active {
    transform: translate(2px, 2px);
}

.button-ghost {
    background: transparent;
    color: var(--text-soft);
}

.button-ghost:hover,
.button-ghost:focus-visible {
    background: var(--surface-alt);
    color: var(--text);
}

.button-danger,
.button-destructive {
    background: var(--destructive);
    color: #ffffff;
}

.button-danger:hover,
.button-danger:focus-visible,
.button-destructive:hover,
.button-destructive:focus-visible {
    background: #de491f;
}

.button-compact {
    min-height: 36px;
    padding: 0 12px;
}

.button-block {
    width: 100%;
}

.button.is-pending,
.button[disabled],
.icon-button[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
    box-shadow: none;
}

.button.is-pending {
    position: relative;
    padding-right: 38px;
}

.button.is-pending::after {
    content: "";
    position: absolute;
    right: 14px;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border: 2px solid rgba(39, 39, 39, 0.18);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin 0.72s linear infinite;
}

.button-primary.is-pending::after,
.button-danger.is-pending::after,
.button-destructive.is-pending::after {
    border-color: rgba(255, 255, 255, 0.28);
    border-top-color: #ffffff;
}

input:not([type="checkbox"]):not([type="radio"]),
select,
textarea {
    width: 100%;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    line-height: 22px;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

textarea {
    min-height: 104px;
    padding-top: 12px;
    padding-bottom: 12px;
    resize: vertical;
}

input::placeholder,
textarea::placeholder {
    color: var(--text-muted);
}

input:hover,
select:hover,
textarea:hover {
    border-color: var(--border-strong);
}

a:focus-visible,
input:focus,
select:focus,
textarea:focus,
.button:focus-visible,
.nav-link:focus-visible,
.subnav-link:focus-visible,
.icon-button:focus-visible,
input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

a:focus-visible {
    border-radius: 6px;
}

input[type="checkbox"]:focus-visible,
input[type="radio"]:focus-visible {
    border-radius: 4px;
}

.field {
    display: grid;
    gap: var(--space-2);
}

.field label {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: var(--text);
}

fieldset.field {
    margin: 0;
    padding: 0;
    border: none;
    min-width: 0;
}

fieldset.field legend {
    padding: 0;
    margin-bottom: var(--space-2);
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: var(--text);
}

.field-caption {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.field-error {
    font-size: 13px;
    line-height: 20px;
    color: var(--destructive);
}

.validation-summary {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid rgba(243, 83, 37, 0.22);
    background: var(--destructive-soft);
    color: var(--destructive);
    font-size: 13px;
    line-height: 20px;
}

.validation-summary ul {
    margin: 0;
    padding-left: 18px;
}

.form-stack,
.journal-filter {
    display: grid;
    gap: 20px;
}

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

.filter-toolbar .actions {
    grid-column: 1 / -1;
}

.filter-card .filter-toolbar,
.journal-filter {
    grid-template-columns: 1fr;
}

.checkbox {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: var(--text);
}

.checkbox input {
    width: 16px;
    min-height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

.table-shell table {
    width: 100%;
    min-width: 720px;
    border-collapse: separate;
    border-spacing: 0;
}

.selection-card {
    gap: 18px;
}

.selection-toolbar {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.selection-copy {
    display: grid;
    gap: 8px;
}

.selection-actions {
    display: grid;
    justify-items: end;
    gap: 12px;
    flex: none;
}

.selection-toggle {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    line-height: 22px;
    color: var(--text-soft);
}

.selection-toggle .table-checkbox {
    margin: 0;
}

.selection-count {
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    color: var(--text-soft);
}

.selection-feedback--error {
    color: var(--destructive);
}

.selection-feedback--success {
    color: #587f04;
}

.table-checkbox-cell {
    width: 52px;
    padding-inline: 14px;
    text-align: center;
}

.table-checkbox {
    width: 16px;
    height: 16px;
    margin: 0;
    accent-color: var(--primary);
}

th,
td {
    padding: 16px;
    vertical-align: top;
}

thead th {
    height: 48px;
    padding-top: 14px;
    padding-bottom: 14px;
    background: #fafafa;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    color: var(--text-soft);
}

tbody tr {
    transition: background-color 0.18s ease;
}

tbody tr:hover {
    background: rgba(17, 24, 39, 0.02);
}

.booking-row--confirmed td {
    background: rgba(129, 188, 6, 0.08);
}

.booking-row--confirmed:hover td {
    background: rgba(129, 188, 6, 0.12);
}

tbody td {
    min-height: 56px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    line-height: 22px;
    font-weight: 500;
    color: var(--text);
}

tbody tr:first-child td {
    border-top: none;
}

.table-primary-cell {
    display: grid;
    gap: 4px;
}

.table-primary-cell strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.table-meta,
.table-caption {
    display: block;
    font-size: 13px;
    line-height: 20px;
    color: var(--text-muted);
}

.booking-date-cell strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.booking-date-cell.is-confirmed strong {
    color: #587f04;
}

.table-actions {
    justify-content: flex-end;
}

.table-actions .button {
    min-height: 36px;
    padding: 0 12px;
}

.badge {
    min-height: 28px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border-radius: var(--radius-pill);
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.badge-upcoming,
.badge-info {
    background: var(--primary-soft);
    color: var(--primary-hover);
}

.badge-success {
    background: var(--success-soft);
    color: #476602;
}

.badge-warning {
    background: var(--warning-soft);
    color: #8a6500;
}

.badge-cancelled,
.badge-destructive {
    background: var(--destructive-soft);
    color: var(--destructive);
}

.badge-completed,
.badge-neutral {
    background: var(--surface-alt);
    color: var(--text-soft);
}

.alert {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    font-size: 14px;
    line-height: 22px;
    box-shadow: var(--shadow-xs);
}

.status-stack {
    display: grid;
    gap: 12px;
    margin-bottom: 24px;
}

.alert::before {
    content: "";
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.2;
}

.alert-copy {
    display: grid;
    gap: 2px;
}

.alert-copy strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.alert-copy span {
    font-size: 13px;
    line-height: 20px;
}

.alert-success {
    background: var(--success-soft);
    border-color: rgba(129, 188, 6, 0.22);
    color: #476602;
}

.alert-error,
.alert-destructive {
    background: var(--destructive-soft);
    border-color: rgba(243, 83, 37, 0.22);
    color: var(--destructive);
}

.alert-info {
    background: var(--primary-soft);
    border-color: rgba(5, 166, 240, 0.22);
    color: var(--primary-hover);
}

.empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 28px 24px;
    border: 1px dashed rgba(5, 166, 240, 0.2);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(234, 248, 254, 0.5) 100%);
    font-size: 14px;
    line-height: 22px;
    color: var(--text-soft);
    text-align: center;
}

.empty-state::before {
    content: "";
    width: 36px;
    height: 36px;
    border-radius: 12px;
    border: 1px solid rgba(5, 166, 240, 0.16);
    background:
        radial-gradient(circle at center, rgba(5, 166, 240, 0.22) 0 5px, transparent 6px),
        linear-gradient(180deg, #ffffff 0%, rgba(234, 248, 254, 0.8) 100%);
    box-shadow: var(--shadow-xs);
}

td.empty-state {
    padding: 32px 16px;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

td.empty-state::before {
    display: none;
}

.detail-item {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

.detail-item strong,
.data-list strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.detail-item span,
.data-list span {
    color: var(--text-soft);
}

.data-list {
    display: grid;
    gap: 12px;
}

.data-list > div {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

.feature-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 10px;
    color: var(--text-soft);
}

.callout {
    padding: 16px 18px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
}

.callout strong {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.callout-warning {
    background: var(--warning-soft);
    border-color: rgba(255, 186, 8, 0.22);
}

.callout-info {
    background: var(--primary-soft);
    border-color: rgba(5, 166, 240, 0.22);
}

.filter-card {
    position: sticky;
    top: calc(var(--header-height) + 24px);
}

.booking-calendar-card {
    position: relative;
    overflow: hidden;
}

.booking-calendar-board {
    display: grid;
    gap: 0;
}

.booking-embed-card {
    overflow: hidden;
}

.booking-embed-shell {
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
    min-height: 760px;
}

.booking-embed-loading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 16px;
    margin: 8px 8px 12px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(5, 166, 240, 0.16);
    background: rgba(234, 248, 254, 0.72);
    box-shadow: var(--shadow-xs);
}

.booking-embed-loading-spinner {
    width: 18px;
    height: 18px;
    flex: none;
    margin-top: 2px;
    border: 2px solid rgba(5, 166, 240, 0.18);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.72s linear infinite;
}

.booking-embed-loading-copy {
    display: grid;
    gap: 2px;
}

.booking-embed-loading-copy strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
    color: var(--text);
}

.booking-embed-loading-copy span {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.booking-embed-shell .tidycal-embed {
    min-height: 760px;
}

.booking-calendar-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
}

.booking-calendar-nav {
    display: grid;
    justify-items: end;
    gap: 12px;
}

.booking-calendar-nav strong {
    font-size: 20px;
    line-height: 28px;
    font-weight: 600;
}

.booking-calendar-nav-actions,
.filter-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

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

.booking-calendar-weekdays {
    margin-bottom: 12px;
}

.booking-calendar-weekdays span {
    font-size: 13px;
    line-height: 20px;
    font-weight: 600;
    color: var(--text-muted);
    text-align: center;
}

.calendar-day-spacer,
.calendar-day {
    min-height: 104px;
    border-radius: var(--radius-md);
}

.calendar-day {
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 12px;
    padding: 12px;
    text-align: left;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.calendar-day:hover,
.calendar-day:focus-visible {
    background: var(--surface-alt);
    border-color: var(--border-strong);
    transform: translateY(-1px);
}

.calendar-day:focus-visible {
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.calendar-day:disabled {
    cursor: default;
}

.calendar-day:disabled:hover {
    background: var(--surface);
    border-color: var(--border);
    transform: none;
}

.calendar-day--today {
    box-shadow: inset 0 0 0 1px var(--primary);
}

.calendar-day--upcoming {
    background: linear-gradient(180deg, var(--surface), var(--primary-soft));
}

.calendar-day--confirmed {
    background: linear-gradient(180deg, var(--surface), rgba(129, 188, 6, 0.18));
    border-color: rgba(129, 188, 6, 0.38);
}

.calendar-day--completed {
    background: linear-gradient(180deg, var(--surface), #f5f6f7);
}

.calendar-day--cancelled {
    background: linear-gradient(180deg, var(--surface), var(--destructive-soft));
}

.calendar-day--mixed {
    background: linear-gradient(180deg, var(--surface), #f4f7f9);
}

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

.calendar-day__number {
    font-size: 16px;
    line-height: 24px;
    font-weight: 600;
}

.calendar-day__count {
    min-width: 24px;
    min-height: 24px;
    display: inline-grid;
    place-items: center;
    padding: 0 8px;
    border-radius: var(--radius-pill);
    background: rgba(39, 39, 39, 0.08);
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
}

.calendar-day__foot {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calendar-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.calendar-dot-upcoming {
    background: var(--primary);
}

.calendar-dot-confirmed {
    background: var(--success);
}

.calendar-dot-completed {
    background: var(--text-muted);
}

.calendar-dot-cancelled {
    background: var(--destructive);
}

.calendar-dot-mixed {
    background: #7d8793;
}

.booking-calendar-legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin-top: 20px;
}

.booking-calendar-legend span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.booking-calendar-empty {
    margin-top: 16px;
}

.booking-calendar-tooltip {
    position: absolute;
    z-index: 10;
    max-width: min(320px, calc(100% - 24px));
    pointer-events: none;
}

.booking-calendar-tooltip-body {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.booking-calendar-tooltip-list {
    display: grid;
    gap: 12px;
}

.booking-calendar-tooltip-item {
    display: grid;
    gap: 4px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
}

.booking-calendar-tooltip-item:first-child {
    padding-top: 0;
    border-top: none;
}

.booking-calendar-tooltip-item strong,
.booking-calendar-tooltip-item span {
    font-size: 13px;
    line-height: 20px;
}

.timeslot-list {
    display: grid;
    gap: 12px;
}

.timeslot-option {
    display: block;
    cursor: pointer;
}

.timeslot-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.timeslot-option-body {
    position: relative;
    display: grid;
    gap: 4px;
    padding: 16px 16px 16px 44px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    background: var(--surface);
    transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.timeslot-option-body::before {
    content: "";
    position: absolute;
    left: 16px;
    top: 50%;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    border: 2px solid var(--border-strong);
    transform: translateY(-50%);
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

.timeslot-option input:checked + .timeslot-option-body {
    border-color: rgba(5, 166, 240, 0.32);
    background: var(--primary-soft);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.timeslot-option input:checked + .timeslot-option-body::before {
    border-color: var(--primary);
    background: var(--primary);
    box-shadow: inset 0 0 0 3px #ffffff;
}

.timeslot-option:hover .timeslot-option-body,
.timeslot-option:focus-within .timeslot-option-body {
    border-color: var(--border-strong);
}

.timeslot-option input:focus-visible + .timeslot-option-body {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px var(--focus-ring);
}

.member-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
}

.member-card {
    padding: 20px;
    display: grid;
    gap: 20px;
}

.member-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.member-header h3 {
    font-size: 18px;
    line-height: 26px;
}

.member-password-form {
    display: grid;
    gap: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.danger-card {
    border-color: rgba(243, 83, 37, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fff9f7 100%);
}

.state-card {
    display: grid;
    gap: 20px;
    align-content: start;
}

.state-panel {
    display: grid;
    gap: 20px;
    align-content: start;
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    background: linear-gradient(180deg, #ffffff 0%, var(--surface-alt) 100%);
    box-shadow: var(--shadow-xs);
}

.state-panel-header {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: start;
    gap: 16px;
}

.state-panel-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    border: 1px solid rgba(5, 166, 240, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, rgba(234, 248, 254, 0.88) 100%);
    box-shadow: var(--shadow-xs);
    position: relative;
}

.state-panel-icon::before {
    content: "";
    position: absolute;
    inset: 50% auto auto 50%;
    width: 16px;
    height: 16px;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: rgba(5, 166, 240, 0.2);
    box-shadow: inset 0 0 0 4px rgba(5, 166, 240, 0.34);
}

.state-panel-copy {
    display: grid;
    gap: 6px;
}

.state-panel-copy h2,
.state-panel-copy h3 {
    margin: 0;
}

.state-panel-copy p {
    color: var(--text-soft);
}

.state-panel-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.state-panel-list {
    margin: 0;
    padding-left: 18px;
    display: grid;
    gap: 8px;
    color: var(--text-soft);
}

.state-panel-compact {
    padding: 20px;
    gap: 16px;
}

.state-panel-empty {
    background: linear-gradient(180deg, #ffffff 0%, rgba(247, 247, 248, 0.9) 100%);
}

.state-panel-empty .state-panel-icon {
    border-color: rgba(125, 135, 147, 0.16);
    background: linear-gradient(180deg, #ffffff 0%, rgba(247, 247, 248, 0.92) 100%);
}

.state-panel-empty .state-panel-icon::before {
    background: rgba(125, 135, 147, 0.18);
    box-shadow: inset 0 0 0 4px rgba(125, 135, 147, 0.26);
}

.state-panel-error {
    border-color: rgba(243, 83, 37, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fff7f3 100%);
}

.state-panel-error .state-panel-icon {
    border-color: rgba(243, 83, 37, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, rgba(255, 241, 236, 0.94) 100%);
}

.state-panel-error .state-panel-icon::before {
    background: rgba(243, 83, 37, 0.18);
    box-shadow: inset 0 0 0 4px rgba(243, 83, 37, 0.28);
}

.state-panel-info {
    border-color: rgba(5, 166, 240, 0.2);
    background: linear-gradient(180deg, #ffffff 0%, rgba(234, 248, 254, 0.76) 100%);
}

.state-panel-info .state-panel-icon {
    border-color: rgba(5, 166, 240, 0.2);
}

.state-panel-loading {
    border-color: rgba(5, 166, 240, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, rgba(247, 248, 250, 0.92) 100%);
}

.state-panel-loading .state-panel-icon::before {
    width: 18px;
    height: 18px;
    background: transparent;
    border: 2px solid rgba(5, 166, 240, 0.22);
    border-top-color: var(--primary);
    box-shadow: none;
    animation: spin 0.72s linear infinite;
}

.state-card-error {
    border-color: rgba(243, 83, 37, 0.22);
    background: linear-gradient(180deg, #ffffff 0%, #fff7f3 100%);
}

.analytics-note,
.analytics-panel {
    display: grid;
    gap: 16px;
}

.analytics-history-note,
.analytics-comparison-note {
    margin-top: 24px;
}

.analytics-summary-list,
.analytics-mini-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.analytics-summary-list > div,
.analytics-mini-list > div {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    display: grid;
    gap: 4px;
}

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

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

.analytics-period-card {
    padding: 16px;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    display: grid;
    gap: 12px;
}

.analytics-period-kicker {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    color: var(--primary-hover);
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.analytics-period-card h3 {
    margin: 0;
}

.analytics-period-meta {
    margin: 0;
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.analytics-period-list {
    display: grid;
    gap: 8px;
}

.analytics-period-list > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.analytics-period-list > div:first-child {
    padding-top: 0;
    border-top: none;
}

.analytics-period-list span {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.analytics-period-list strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.analytics-kpi-grid > * {
    grid-column: span 4;
}

.analytics-kpi {
    gap: 10px;
}

.analytics-kpi-label,
.analytics-bar-meta {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-muted);
}

.analytics-kpi-value {
    font-size: 28px;
    line-height: 34px;
    font-weight: 700;
}

.analytics-kpi-subtitle {
    font-size: 13px;
    line-height: 20px;
    color: var(--text-soft);
}

.analytics-delta-list {
    display: grid;
    gap: 8px;
}

.analytics-bar-list {
    display: grid;
    gap: 16px;
}

.analytics-bar-row {
    display: grid;
    gap: 10px;
}

.analytics-bar-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.analytics-bar-value {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.analytics-bar-track {
    height: 8px;
    border-radius: var(--radius-pill);
    background: var(--surface-alt);
    overflow: hidden;
}

.analytics-bar-fill {
    height: 100%;
    border-radius: inherit;
    background: var(--primary);
}

.analytics-bar-fill--secondary {
    background: #58b3ea;
}

.analytics-highlight-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 16px;
}

.analytics-highlight-item {
    padding: 20px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface-alt);
    display: grid;
    gap: 8px;
}

.admin-analytics-filterbar {
    align-items: end;
}

.admin-analytics-selection-card {
    margin-top: 12px;
    border-color: rgba(255, 186, 8, 0.28);
    background: linear-gradient(180deg, #ffffff 0%, #fffaf0 100%);
}

.admin-analytics-filter-actions {
    align-self: stretch;
}

.admin-analytics-context {
    display: grid;
    gap: 6px;
}

.admin-analytics-upcoming-summary {
    margin-top: 8px;
}

.admin-analytics-table-shell {
    margin-top: 12px;
}

.admin-analytics-table-shell a {
    word-break: break-word;
}

.admin-analytics-booking-link {
    color: inherit;
    text-decoration: none;
}

.admin-analytics-booking-link:hover,
.admin-analytics-booking-link:focus-visible {
    color: var(--primary-hover);
    text-decoration: underline;
}

.auth-link-button {
    background: none;
    border: none;
    padding: 0;
    color: var(--primary-hover);
    cursor: pointer;
}

.auth-link-button:hover,
.auth-link-button:focus-visible {
    text-decoration: underline;
}

.portal-dialog {
    width: min(520px, calc(100% - 24px));
    margin: auto;
    padding: 0;
    border: none;
    background: transparent;
}

.portal-dialog::backdrop {
    background: var(--overlay-modal);
}

.sync-toast {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 80;
    display: flex;
    align-items: center;
    gap: 14px;
    width: min(360px, calc(100% - 32px));
    padding: 16px 18px;
    border-radius: var(--radius-lg);
    border: 1px solid rgba(5, 166, 240, 0.18);
    background: rgba(39, 39, 39, 0.92);
    color: #ffffff;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    transform: translateY(12px);
    pointer-events: none;
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.sync-toast.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.sync-toast-spinner {
    animation: spin 0.72s linear infinite;
}

.sync-toast-copy {
    display: grid;
    gap: 2px;
}

.sync-toast-copy strong {
    font-size: 14px;
    line-height: 22px;
    font-weight: 600;
}

.sync-toast-copy span {
    font-size: 13px;
    line-height: 20px;
    color: rgba(255, 255, 255, 0.78);
}

.portal-dialog-panel {
    width: 100%;
    padding: 24px;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--shadow-lg);
}

.confirm-dialog-panel {
    display: grid;
    gap: 20px;
}

.confirm-dialog-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--destructive-soft);
}

.dialog-spacing-top {
    margin-top: 24px;
}

.login-stage {
    position: relative;
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: clamp(5rem, 10vh, 6.5rem) 1rem 2rem;
    overflow: hidden;
    isolation: isolate;
}

.login-stage::before {
    content: "";
    position: absolute;
    inset: -1.5rem;
    background:
        linear-gradient(180deg, rgba(7, 12, 18, 0.32), rgba(7, 12, 18, 0.68)),
        url("../images/branding/login-background.jpg") center / cover no-repeat;
    transform: scale(1.06);
    filter: saturate(0.82);
    z-index: -2;
}

.login-stage::after {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 20% 18%, rgba(243, 83, 37, 0.16), transparent 18rem),
        radial-gradient(circle at 82% 12%, rgba(255, 186, 8, 0.12), transparent 20rem),
        radial-gradient(circle at 50% 0%, rgba(5, 166, 240, 0.16), transparent 24rem),
        linear-gradient(180deg, rgba(8, 13, 18, 0.18), rgba(8, 13, 18, 0.46));
    z-index: -1;
}

.login-content {
    width: min(31rem, 100%);
    display: grid;
    justify-items: center;
    gap: 20px;
    text-align: center;
    color: #ffffff;
}

.login-copy {
    display: grid;
    gap: 12px;
}

.login-kicker {
    margin: 0;
    font-size: 12px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.8);
}

.login-copy h1 {
    color: #ffffff;
    font-size: clamp(2.2rem, 4vw, 3.2rem);
    line-height: 1;
    letter-spacing: -0.05em;
}

.login-copy p,
.login-checkbox,
.login-link-button {
    color: rgba(255, 255, 255, 0.9);
}

.login-panel {
    width: min(22rem, 100%);
    display: grid;
    gap: 0.85rem;
}

.login-field {
    display: grid;
    gap: 0.35rem;
    text-align: left;
}

.login-input {
    min-height: 3.35rem;
    width: 100%;
    padding: 0.95rem 1rem;
    border: 2px solid #2b3040 !important;
    border-radius: var(--radius-md);
    background: #222630 !important;
    background-color: #222630 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    caret-color: #ffffff !important;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    color-scheme: dark;
    transition: border-color 0.1s ease, background-color 0.1s ease, box-shadow 0.1s ease;
}

.login-input::placeholder {
    color: rgba(255, 255, 255, 0.72) !important;
}

.login-input:hover {
    border-color: #384056 !important;
    background: #222630 !important;
    background-color: #222630 !important;
}

.login-input:focus {
    border-color: #596a95 !important;
    background: #222630 !important;
    background-color: #222630 !important;
    box-shadow: 0 0 0 4px rgba(89, 106, 149, 0.16) !important;
}

.login-input:-webkit-autofill,
.login-input:-webkit-autofill:hover,
.login-input:-webkit-autofill:focus,
.login-input:-webkit-autofill:active {
    -webkit-text-fill-color: #ffffff;
    caret-color: #ffffff;
    border: 2px solid #2b3040;
    -webkit-box-shadow: 0 0 0 1000px #222630 inset;
    box-shadow: 0 0 0 1000px #222630 inset;
    transition: background-color 9999s ease-in-out 0s;
}

.login-input:-webkit-autofill:focus {
    border-color: #596a95;
    -webkit-box-shadow: 0 0 0 1000px #222630 inset, 0 0 0 4px rgba(89, 106, 149, 0.16);
    box-shadow: 0 0 0 1000px #222630 inset, 0 0 0 4px rgba(89, 106, 149, 0.16);
}

.login-submit {
    width: 100%;
    min-height: 3.35rem;
    margin: 0.5rem 0 0;
    border: none;
    border-radius: 0.625em;
    background: #000000;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    position: relative;
    z-index: 1;
    overflow: hidden;
    transition: color 0.25s ease, transform 0.18s ease;
}

.login-submit::after {
    content: "";
    position: absolute;
    z-index: -1;
    left: -20%;
    right: -20%;
    top: 0;
    bottom: 0;
    background: #ffffff;
    transform: skewX(-45deg) scale(0, 1);
    transition: transform 0.5s ease;
}

.login-submit:hover,
.login-submit:focus-visible {
    color: #000000;
}

.login-submit:hover::after,
.login-submit:focus-visible::after {
    transform: skewX(-45deg) scale(1, 1);
}

.login-submit:focus-visible {
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.18);
}

.login-submit:active {
    transform: translateY(1px);
}

.login-utility-row {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 20px;
    margin-top: 4px;
}

.login-checkbox {
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    line-height: 22px;
}

.login-checkbox input {
    accent-color: var(--primary);
}

.login-link-button {
    font-size: 14px;
    line-height: 22px;
    text-decoration: none;
}

.login-link-button:hover,
.login-link-button:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.login-validation {
    padding: 14px 16px;
    border-radius: 16px;
    background: rgba(243, 83, 37, 0.16);
    border: 1px solid rgba(243, 83, 37, 0.18);
    color: #ffffff;
}

.login-validation ul {
    margin: 0;
    padding-left: 16px;
}

.login-field-error {
    padding-left: 8px;
    color: rgba(255, 255, 255, 0.92);
    font-size: 13px;
    line-height: 20px;
}

.login-copyright {
    position: absolute;
    left: 50%;
    bottom: 1rem;
    transform: translateX(-50%);
    width: min(56rem, calc(100% - 2rem));
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px 8px;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    font-size: 13px;
    line-height: 20px;
}

.login-copyright a {
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
}

.login-copyright a:hover,
.login-copyright a:focus-visible {
    color: #ffffff;
    text-decoration: underline;
}

.login-copyright-heart {
    color: rgba(243, 83, 37, 0.95);
}

.login-footer-separator {
    opacity: 0.65;
}

@media (min-width: 1440px) {
    .page-shell {
        padding-inline: 40px;
    }
}

@media (max-width: 1280px) {
    .cards-grid > *,
    .analytics-kpi-grid > * {
        grid-column: span 6;
    }

    .metric-featured,
    .spotlight-card {
        grid-column: span 12;
    }

    .dashboard-spotlight,
    .booking-tools-grid,
    .split-grid,
    .detail-layout,
    .form-layout,
    .analytics-panel-grid {
        grid-template-columns: 1fr;
    }

    .analytics-period-grid {
        grid-template-columns: 1fr;
    }

    .filter-card {
        position: static;
    }

    .section-header-bookings {
        grid-template-columns: 1fr;
    }

    .section-header-bookings .hero-side {
        justify-items: start;
    }

    .section-header-bookings .lead-inline {
        white-space: normal;
    }
}

@media (max-width: 1024px) {
    .app-shell {
        grid-template-columns: 1fr;
    }

    .sidebar {
        position: fixed;
        left: 0;
        top: 0;
        bottom: 0;
        width: min(var(--sidebar-width), calc(100% - 48px));
        height: 100vh;
        transform: translateX(-100%);
        transition: transform 0.2s ease;
        z-index: 50;
        box-shadow: var(--shadow-lg);
    }

    .app-shell.is-sidebar-open .sidebar {
        transform: translateX(0);
    }

    .sidebar-backdrop {
        display: block;
        position: fixed;
        inset: 0;
        background: var(--overlay-modal);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;
        z-index: 40;
    }

    .app-shell.is-sidebar-open .sidebar-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .sidebar-toggle,
    .sidebar-close {
        display: inline-grid;
    }

    .sidebar-collapse-toggle {
        display: none;
    }

    .topbar-inner {
        padding-inline: 24px;
    }

    .page-shell {
        padding-inline: 24px;
    }

    .sidebar-close {
        margin-left: auto;
    }

    .lead-inline {
        white-space: normal;
    }

    .support-popover {
        position: fixed;
        left: 24px;
        right: 24px;
        bottom: 24px;
        top: auto;
        width: auto;
        max-width: none;
        max-height: min(60vh, 420px);
        transform: translateY(12px);
        border-radius: 20px;
    }

    .support-popover::before {
        display: none;
    }

    .support-popover::after {
        display: none;
    }

    .support-nav-item:hover .support-popover,
    .support-nav-item:focus-within .support-popover,
    .support-nav-item.is-open .support-popover {
        transform: translateY(0);
    }

    .selection-toolbar {
        flex-direction: column;
    }

    .selection-actions {
        width: 100%;
        justify-items: stretch;
    }
}

@media (max-width: 768px) {
    .topbar,
    .topbar-inner {
        min-height: 64px;
    }

    .topbar-inner,
    .page-shell {
        padding-inline: 16px;
    }

    .page-shell {
        padding-top: 20px;
        padding-bottom: 40px;
    }

    .topbar-left,
    .topbar-right,
    .hero,
    .booking-calendar-header {
        gap: 16px;
    }

    .hero,
    .section-header,
    .booking-calendar-header {
        grid-template-columns: 1fr;
    }

    .hero-side,
    .booking-calendar-nav {
        justify-items: start;
    }

    .booking-calendar-nav strong {
        font-size: 18px;
        line-height: 26px;
    }

    .cards-grid > *,
    .analytics-kpi-grid > * {
        grid-column: span 12;
    }

    .detail-grid,
    .field-grid,
    .dashboard-spotlight-meta,
    .analytics-summary-list,
    .analytics-mini-list {
        grid-template-columns: 1fr;
    }

    .actions,
    .table-actions,
    .member-actions,
    .dialog-actions,
    .state-panel-actions,
    .booking-calendar-nav-actions,
    .filter-actions {
        flex-direction: column;
        align-items: stretch;
    }

    .actions .button,
    .table-actions .button,
    .member-actions .button,
    .dialog-actions .button,
    .state-panel-actions .button,
    .booking-calendar-nav-actions .button,
    .filter-actions .button,
    .button-block {
        width: 100%;
    }

    .filter-toolbar {
        grid-template-columns: 1fr;
    }

    .booking-calendar-weekdays,
    .booking-calendar-grid {
        gap: 8px;
    }

    .booking-calendar-board {
        overflow-x: auto;
        padding-bottom: 6px;
        margin-inline: -4px;
        padding-inline: 4px;
        -webkit-overflow-scrolling: touch;
    }

    .booking-calendar-weekdays,
    .booking-calendar-grid {
        min-width: 616px;
    }

    .booking-embed-shell .tidycal-embed {
        min-height: 680px;
    }

    .calendar-day-spacer,
    .calendar-day {
        min-height: 88px;
    }

    .bookings-table-shell {
        overflow: visible;
        border: none;
        background: transparent;
        box-shadow: none;
    }

    .bookings-table-shell table,
    .bookings-table-shell thead,
    .bookings-table-shell tbody,
    .bookings-table-shell tr,
    .bookings-table-shell td {
        display: block;
        width: 100%;
    }

    .bookings-table-shell table {
        min-width: 0;
    }

    .bookings-table-shell thead {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }

    .bookings-table-shell thead .table-checkbox {
        display: none;
    }

    .bookings-table-shell tbody {
        display: grid;
        gap: 12px;
    }

    .bookings-table-shell tbody tr {
        display: grid;
        gap: 12px;
        padding: 18px;
        border: 1px solid var(--border);
        border-radius: var(--radius-lg);
        background: var(--surface);
        box-shadow: var(--shadow-xs);
    }

    .bookings-table-shell tbody tr:hover {
        background: var(--surface);
    }

    .bookings-table-shell .booking-row--confirmed {
        border-color: rgba(129, 188, 6, 0.32);
        background: rgba(129, 188, 6, 0.06);
    }

    .bookings-table-shell .booking-row--confirmed td,
    .bookings-table-shell .booking-row--confirmed:hover td {
        background: transparent;
    }

    .bookings-table-shell tbody td {
        min-height: 0;
        padding: 0;
        border-top: none;
        display: grid;
        grid-template-columns: minmax(90px, auto) minmax(0, 1fr);
        gap: 12px;
        align-items: start;
    }

    .bookings-table-shell tbody td::before {
        content: attr(data-label);
        font-size: 12px;
        line-height: 18px;
        font-weight: 600;
        color: var(--text-muted);
        text-transform: uppercase;
        letter-spacing: 0.08em;
    }

    .bookings-table-shell .table-checkbox-cell {
        width: auto;
        padding: 0;
    }

    .bookings-table-shell td[data-label="Actions"] {
        display: block;
    }

    .bookings-table-shell td[data-label="Actions"]::before {
        display: block;
        margin-bottom: 10px;
    }

    .bookings-table-shell .table-actions {
        justify-content: flex-start;
    }

    .bookings-table-shell .table-actions .button {
        flex: 1 1 100%;
    }

    .bookings-table-shell .empty-state,
    .bookings-table-shell .empty-state td,
    .bookings-table-shell [data-empty-bookings-row] td {
        display: block;
    }

    .bookings-table-shell [data-empty-bookings-row] td::before {
        display: none;
    }

    .card {
        padding: 20px;
    }

    .sync-toast {
        right: 16px;
        bottom: 16px;
        width: calc(100% - 32px);
    }

    .login-stage {
        padding: 4rem 1rem 1.75rem;
    }

    .login-content {
        width: min(100%, 24rem);
    }

    .login-panel {
        width: 100%;
    }

    .login-utility-row {
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .login-copyright {
        width: calc(100% - 1.5rem);
        font-size: 12px;
        line-height: 18px;
    }
}

@media (max-width: 480px) {
    .brand-copy small,
    .topbar-kicker,
    .user-meta small {
        display: none;
    }

    .topbar-title {
        font-size: 16px;
        line-height: 24px;
    }

    .support-popover {
        left: 16px;
        right: 16px;
        bottom: 16px;
    }

    .metric strong,
    .analytics-kpi-value {
        font-size: 24px;
        line-height: 32px;
    }

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

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes sidebar-spinner-spin {
    to {
        transform: translateY(-50%) rotate(360deg);
    }
}
