@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Outfit:wght@400;600;700;800&display=swap');

:root {
    --bg-base: #f8fafc;
    --bg-glass: rgba(255, 255, 255, 0.7);
    --bg-glass-strong: rgba(255, 255, 255, 0.9);
    --bg-card: #ffffff;
    --text-main: #0f172a;
    --text-muted: #64748b;
    --accent: #f97316;
    --accent-hover: #ea580c;
    --accent-glow: rgba(249, 115, 22, 0.3);
    --border-light: rgba(15, 23, 42, 0.08);
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-md: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
    --shadow-lg: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --success-bg: #dcfce7;
    --success-text: #166534;
    --danger-bg: #fee2e2;
    --danger-text: #991b1b;
    --warning-bg: #ffedd5;
    --warning-text: #9a3412;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-base);
    background-image:
        radial-gradient(circle at 15% 50%, rgba(249, 115, 22, 0.05), transparent 25%),
        radial-gradient(circle at 85% 30%, rgba(15, 23, 42, 0.03), transparent 25%);
    background-attachment: fixed;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
.brand-text {
    font-family: 'Outfit', sans-serif;
    color: var(--text-main);
    line-height: 1.2;
    margin-top: 0;
}

a {
    color: inherit;
    text-decoration: none;
    transition: all 0.2s ease;
}

/* --- Layout --- */

.site-nav {
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--bg-glass);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border-light);
    transition: all 0.3s ease;
}

.site-nav-inner,
.page-container,
.admin-container {
    width: min(1200px, 100% - 3rem);
    margin: 0 auto;
}

.site-nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 5rem;
}

.site-brand {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.site-brand-mark {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: white;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    font-size: 1.1rem;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.site-brand-logo {
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 0.75rem;
    object-fit: contain;
    background: var(--bg-card);
    box-shadow: 0 4px 12px var(--accent-glow);
}

.site-brand .brand-text {
    display: flex;
    flex-direction: column;
}

.site-brand strong {
    font-size: 1.1rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.site-brand small {
    font-family: 'Inter', sans-serif;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.site-nav-links {
    display: flex;
    align-items: center;
    gap: 1.2rem;
}

.site-nav-links a.nav-item {
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    position: relative;
    white-space: nowrap;
}

.site-nav-links a.nav-item:hover,
.site-nav-links a.nav-item.active {
    color: var(--text-main);
}

.site-nav-links a.nav-item::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -4px;
    left: 0;
    background-color: var(--accent);
    transition: width 0.3s ease;
}

.site-nav-links a.nav-item:hover::after {
    width: 100%;
}

/* --- Nav Dropdown Menus --- */

.nav-dropdown {
    position: relative;
    padding-bottom: 0.5rem;
    margin-bottom: -0.5rem;
}

.nav-dropdown::after {
    content: '';
    position: absolute;
    top: 100%;
    left: -0.75rem;
    right: -0.75rem;
    height: 0.75rem;
}

.nav-dropdown-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    background: none;
    border: none;
    padding: 0;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.95rem;
    cursor: pointer;
    white-space: nowrap;
    font-family: 'Inter', sans-serif;
    transition: color 0.2s ease;
    border-radius: 0;
    box-shadow: none;
}

.nav-dropdown-trigger:hover {
    color: var(--text-main);
    background: none;
    transform: none;
}

.nav-dropdown-chevron {
    transition: transform 0.25s ease;
    flex-shrink: 0;
    opacity: 0.55;
}

.nav-dropdown:hover .nav-dropdown-chevron,
.nav-dropdown.is-open .nav-dropdown-chevron {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-dropdown-menu {
    position: absolute;
    top: calc(100% - 0.35rem);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    min-width: 10rem;
    padding: 0.45rem;
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 0.85rem;
    box-shadow:
        0 10px 38px -10px rgba(15, 23, 42, 0.12),
        0 6px 14px -6px rgba(15, 23, 42, 0.06);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
    z-index: 100;
}

.nav-dropdown-menu-right {
    left: auto;
    right: 0;
    transform: translateX(0) translateY(4px);
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateX(-50%) translateY(0);
}

.nav-dropdown:hover .nav-dropdown-menu.nav-dropdown-menu-right,
.nav-dropdown.is-open .nav-dropdown-menu.nav-dropdown-menu-right {
    transform: translateX(0) translateY(0);
}

.nav-dropdown.is-click-closed:hover .nav-dropdown-chevron {
    transform: none;
    opacity: 0.55;
}

.nav-dropdown.is-click-closed:hover .nav-dropdown-menu {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateX(-50%) translateY(4px);
}

.nav-dropdown.is-click-closed:hover .nav-dropdown-menu.nav-dropdown-menu-right {
    transform: translateX(0) translateY(4px);
}

.nav-dropdown-item {
    display: block;
    padding: 0.55rem 0.85rem;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--text-main);
    border-radius: 0.55rem;
    transition: background 0.15s ease, color 0.15s ease;
    white-space: nowrap;
    text-decoration: none;
    border: none;
    background: none;
    width: 100%;
    text-align: left;
    cursor: pointer;
    font-family: 'Inter', sans-serif;
    box-shadow: none;
}

.nav-dropdown-item:hover {
    background: rgba(15, 23, 42, 0.05);
    color: var(--text-main);
    transform: none;
}

.nav-dropdown-item-danger {
    color: var(--danger-text);
}

.nav-dropdown-item-danger:hover {
    background: var(--danger-bg);
    color: var(--danger-text);
}

/* Admin user trigger inside dropdown — override pill reset */
.nav-dropdown .nav-user.nav-dropdown-trigger {
    padding: 0.5rem 1rem;
    border-radius: 2rem;
}

.nav-user {
    font-size: 0.85rem;
    font-weight: 600;
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    border: 1px solid transparent;
    white-space: nowrap;
}

.nav-user.role-admin {
    color: white;
    background: linear-gradient(135deg, var(--text-main), #1e293b);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nav-user.role-admin svg {
    color: var(--accent);
}

.nav-user.role-admin:hover {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.nav-user.role-customer {
    color: white;
    background: linear-gradient(135deg, var(--text-main), #1e293b);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nav-user.role-customer svg {
    color: #3b82f6;
}

.nav-user.role-customer:hover {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

.nav-user.role-staff {
    color: white;
    background: linear-gradient(135deg, var(--text-main), #1e293b);
    border-color: rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
}

.nav-user.role-staff svg {
    color: #10b981;
}

.nav-user.role-staff:hover {
    background: linear-gradient(135deg, #1e293b, #0f172a);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.25);
}

/* --- Buttons --- */

.button,
button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.8rem 1.6rem;
    border-radius: 2rem;
    font-family: 'Inter', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.button-primary {
    background: var(--accent);
    color: white;
    box-shadow: 0 4px 12px var(--accent-glow);
}

.button-primary:hover {
    background: var(--accent-hover);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px var(--accent-glow);
}

.button-outline {
    background: transparent;
    color: var(--text-main);
    border: 1px solid var(--border-light);
}

.button-outline:hover {
    border-color: var(--text-main);
    background: rgba(15, 23, 42, 0.02);
}

.button-clear {
    background: transparent;
    color: var(--text-muted);
    padding: 0.5rem 1rem;
    white-space: nowrap;
}

.button-clear:hover {
    color: var(--danger-text);
    background: var(--danger-bg);
}

.button-danger {
    background: transparent;
    color: var(--danger-text);
    border: 1px solid var(--danger-text);
}

.button-danger:hover {
    background: var(--danger-bg);
    color: var(--danger-text);
    transform: translateY(-2px);
}

/* --- Forms --- */

.form-control {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
    position: relative;
}

.form-control label {
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--text-main);
}

.form-control input,
.form-control textarea,
.form-control select {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    background: var(--bg-card);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.form-control input:focus,
.form-control textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-hint {
    display: block;
    margin-top: 0.45rem;
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.feedback-form {
    margin-top: 1.25rem;
}

.feedback-rating-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.feedback-rating-field {
    min-width: 0;
    margin: 0;
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    background: var(--bg-card);
}

.feedback-rating-field legend {
    padding: 0 0.35rem;
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.rating-radio-group {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 0.5rem;
}

.rating-radio-group label {
    cursor: pointer;
}

.rating-radio-group input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.rating-radio-group span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.rating-radio-group input:focus-visible+span,
.rating-radio-group span:hover {
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.12);
}

.rating-radio-group input:checked+span {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    box-shadow: 0 8px 16px rgba(249, 115, 22, 0.18);
}

.feedback-summary-list span {
    overflow-wrap: anywhere;
}

.address-autocomplete-widget {
    display: block;
    width: 100%;
    margin-bottom: 0.75rem;
    color-scheme: light;
}

.address-autocomplete-original {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

.address-autocomplete-manual {
    align-self: flex-start;
    margin: -0.25rem 0 1rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: underline;
    box-shadow: none;
}

.address-autocomplete-manual:hover {
    color: var(--text-main);
    background: transparent;
    transform: none;
}

.address-autocomplete-fallback .address-autocomplete-widget {
    display: none;
}

/* --- Utilities --- */

.glass-panel {
    background: var(--bg-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-lg);
}

.eyebrow {
    display: inline-block;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.page-shell {
    padding: 3rem 0 6rem;
    min-height: calc(100vh - 5rem - 6rem);
}

.site-footer {
    padding: 3rem 0;
    text-align: center;
    border-top: 1px solid var(--border-light);
    color: var(--text-muted);
    font-size: 0.9rem;
}

.site-footer p {
    margin: 0.5rem 0 0;
}

.footer-socials {
    display: flex;
    justify-content: center;
    gap: 0.85rem;
    margin: 1.5rem 0 1rem;
}

.footer-social-link {
    width: 2.75rem;
    height: 2.75rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    color: var(--text-main);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 245, 249, 0.95));
    border: 1px solid var(--border-light);
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.06);
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.footer-social-link:hover {
    color: var(--accent);
    border-color: rgba(14, 165, 233, 0.28);
    box-shadow: 0 14px 30px rgba(14, 165, 233, 0.14);
    transform: translateY(-2px);
}

.footer-social-link svg {
    width: 1.15rem;
    height: 1.15rem;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

/* --- Components: Hero --- */

.hero-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    margin-bottom: 6rem;
    min-height: 480px;
}

.hero-copy h1 {
    font-size: clamp(3rem, 5vw, 4.5rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-main) 0%, #334155 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-lead {
    font-size: 1.15rem;
    color: var(--text-muted);
    margin-bottom: 2.5rem;
    max-width: 90%;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
    animation: fadeInUp 0.8s ease backwards;
    animation-delay: 0.2s;
}

.hero-stats {
    display: flex;
    gap: 3rem;
    border-top: 1px solid var(--border-light);
    padding-top: 1.5rem;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item strong {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-main);
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    height: 100%;
    min-height: 400px;
    isolation: isolate;
}

.hero-visual-backdrop {
    position: absolute;
    inset: 1rem 1.5rem 1rem 0;
    border-radius: 2.5rem;
    background:
        linear-gradient(135deg, rgba(15, 23, 42, 0.2), rgba(15, 23, 42, 0.55)),
        radial-gradient(circle at 18% 18%, rgba(249, 115, 22, 0.3), transparent 30%),
        radial-gradient(circle at 80% 25%, rgba(59, 130, 246, 0.2), transparent 28%),
        linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(226, 232, 240, 0.9));
    box-shadow: 0 25px 50px -20px rgba(15, 23, 42, 0.35);
    overflow: hidden;
}

.hero-visual-backdrop::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(125deg, rgba(248, 250, 252, 0.4) 0%, rgba(248, 250, 252, 0.05) 36%, rgba(15, 23, 42, 0.15) 100%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.35)),
        url("/img/home/hero-moving-background-v1.svg");
    background-size: cover;
    background-position: 38% center;
    transform: scale(1.02);
}

.hero-visual-backdrop::after {
    content: "";
    position: absolute;
    inset: auto 6% 10% 12%;
    height: 8rem;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(249, 115, 22, 0.22), rgba(59, 130, 246, 0.12));
    filter: blur(36px);
    opacity: 0.9;
}

.hero-visual-card {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 85%;
    padding: 3rem;
    background: linear-gradient(145deg, var(--text-main), #1e293b);
    color: white;
    border-radius: 2rem;
    box-shadow: 0 25px 50px -12px rgba(15, 23, 42, 0.25);
    z-index: 2;
}

.hero-visual-card h2 {
    color: white;
    font-size: 2rem;
    margin-bottom: 1rem;
}

.hero-visual-card p {
    color: #94a3b8;
    margin-bottom: 0;
}

.hero-visual-deco {
    position: absolute;
    width: 200px;
    height: 200px;
    background: var(--accent);
    filter: blur(100px);
    border-radius: 50%;
    opacity: 0.2;
    bottom: -20px;
    left: -20px;
    z-index: -1;
}

/* --- Components: Grid --- */

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 6rem;
}

.feature-card {
    padding: 2.5rem;
    display: flex;
    flex-direction: column;
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border-light);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-lg);
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card h2 {
    font-size: 1.4rem;
    margin-bottom: 1rem;
}

.feature-card p {
    color: var(--text-muted);
    margin: 0 0 1.5rem;
    font-size: 0.95rem;
}

.feature-more-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: 0;
    background: transparent;
    color: var(--accent);
    font-family: 'Outfit', sans-serif;
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    padding: 0;
    margin-top: auto;
    cursor: pointer;
}

.feature-more-button::after {
    content: '->';
    font-size: 0.9rem;
}

.feature-more-button:hover {
    color: var(--accent-hover);
}

.feature-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 1.5rem;
}

.feature-modal[hidden] {
    display: none;
}

.feature-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.58);
    backdrop-filter: blur(8px);
}

.feature-modal-panel {
    position: relative;
    width: min(100%, 42rem);
    max-height: 85vh;
    overflow-y: auto;
    padding: 2.5rem;
    border-radius: 1.75rem;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    border: 1px solid rgba(148, 163, 184, 0.18);
    box-shadow: 0 30px 80px rgba(15, 23, 42, 0.24);
}

.feature-modal-panel h2 {
    margin-bottom: 1rem;
    font-size: 2rem;
}

.feature-modal-panel p {
    color: var(--text-muted);
    margin: 0 0 1rem;
}

.feature-modal-summary {
    color: var(--text-main);
    font-size: 1.05rem;
    font-weight: 600;
}

.feature-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.06);
    color: var(--text-main);
    font-size: 1.5rem;
    cursor: pointer;
}

.feature-modal-close:hover {
    background: rgba(15, 23, 42, 0.12);
}

.feature-modal-actions {
    margin-top: 1.5rem;
}

body.modal-open {
    overflow: hidden;
}

/* --- Components: CTA --- */

.cta-panel {
    background: linear-gradient(135deg, var(--bg-card) 0%, rgba(249, 115, 22, 0.05) 100%);
    border-radius: 2rem;
    padding: 4rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid var(--border-light);
}

.cta-copy h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
}

.cta-copy p {
    max-width: 35rem;
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0;
}

/* --- Components: Auth / Contact Form --- */

.auth-wrapper,
.contact-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
}

.contact-wrapper {
    max-width: 700px;
}

.auth-card {
    padding: 3rem;
}

.auth-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.auth-header h1 {
    font-size: 2.2rem;
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-muted);
}

.unified-login-card {
    max-width: 640px;
}

.unified-login-helper {
    margin-top: 1.5rem;
    text-align: center;
    color: var(--text-muted);
}

.form-grid-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 1.5rem;
}

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

/* --- Components: Admin --- */

.admin-header {
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.admin-header h1 {
    font-size: 2.5rem;
    margin: 0;
}

.resource-tabs {
    display: inline-flex;
    max-width: 100%;
    gap: 0.35rem;
    margin: -0.75rem 0 1.5rem;
    padding: 0.35rem;
    overflow-x: auto;
    background: white;
    border: 1px solid var(--border-light);
    border-radius: 999px;
    box-shadow: var(--shadow-sm);
}

.resource-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.5rem;
    padding: 0 1rem;
    border-radius: 999px;
    color: var(--text-muted);
    font-size: 0.92rem;
    font-weight: 700;
    white-space: nowrap;
}

.resource-tab:hover,
.resource-tab:focus {
    color: var(--text-main);
    background: rgba(255, 107, 26, 0.08);
}

.resource-tab.active {
    color: white;
    background: var(--accent);
    box-shadow: 0 10px 18px rgba(255, 107, 26, 0.22);
}

.dashboard-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    margin-bottom: 2.5rem;
}

.dashboard-stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-height: 7.5rem;
    padding: 1.25rem 1.35rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    border: 1px solid var(--border-light);
    border-radius: 1.5rem;
    box-shadow: var(--shadow-md);
}

a.dashboard-stat-card {
    color: inherit;
}

.security-callout-card {
    border-color: rgba(124, 58, 237, 0.18);
    background: linear-gradient(180deg, #ffffff 0%, #faf5ff 100%);
}

.security-callout-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.dashboard-stat-icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    color: var(--accent);
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.16), rgba(251, 146, 60, 0.08));
    border: 1px solid rgba(249, 115, 22, 0.18);
}

.dashboard-stat-icon svg {
    width: 1.45rem;
    height: 1.45rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.dashboard-stat-copy {
    min-width: 0;
}

.dashboard-stat-copy strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-main);
    font-size: 2rem;
    line-height: 1;
    font-weight: 700;
}

.dashboard-stat-copy p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.98rem;
}

.dashboard-stat-copy small {
    display: block;
    margin-top: 0.3rem;
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.35;
}

.table-cell-note {
    display: block;
    margin-top: 0.35rem;
    color: var(--warning-text);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.dashboard-section-title {
    margin: 0 0 1rem;
    color: var(--text-main);
    font-size: 1.35rem;
}

.refund-alert-panel {
    margin-bottom: 2rem;
    overflow: hidden;
    border: 1px solid rgba(154, 52, 18, 0.22);
    border-radius: 1.5rem;
    background: #ffffff;
    box-shadow: var(--shadow-md);
}

.refund-alert-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.35rem 1.5rem;
    background: linear-gradient(180deg, rgba(255, 237, 213, 0.86), rgba(255, 247, 237, 0.94));
    border-bottom: 1px solid rgba(154, 52, 18, 0.16);
}

.refund-alert-header .eyebrow {
    margin-bottom: 0.45rem;
    color: var(--warning-text);
}

.refund-alert-header h2 {
    margin-bottom: 0;
    font-size: 1.35rem;
}

.refund-alert-header strong {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 3rem;
    height: 3rem;
    border-radius: 999px;
    background: var(--warning-bg);
    color: var(--warning-text);
    font-size: 1.25rem;
    box-shadow: inset 0 0 0 1px rgba(154, 52, 18, 0.16);
}

.admin-helper-copy {
    color: var(--text-muted);
    margin-top: 0.75rem;
    margin-bottom: 0;
    font-size: 0.95rem;
}

.claim-booking-panel {
    display: grid;
    grid-template-columns: minmax(16rem, 1fr) minmax(26rem, 1.35fr);
    gap: 1.5rem;
    align-items: end;
    margin-bottom: 1.5rem;
    padding: 1.25rem;
}

.claim-booking-copy .dashboard-section-title {
    margin-bottom: 0.4rem;
}

.claim-booking-copy .admin-helper-copy {
    max-width: 36rem;
    margin-top: 0;
}

.claim-booking-form {
    margin: 0;
}

.claim-booking-fields {
    display: grid;
    grid-template-columns: minmax(13rem, 1fr) auto;
    gap: 1rem;
    align-items: end;
}

.claim-code-control {
    margin-bottom: 0;
}

.claim-booking-button {
    min-width: 10.5rem;
    min-height: 3.05rem;
    white-space: nowrap;
}

.payment-prototype-card {
    display: flex;
    flex-direction: column;
}

.payment-card-form {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

.payment-card-form-header {
    margin-bottom: 1rem;
}

.payment-card-form-header h3 {
    margin: 0 0 0.35rem;
    font-size: 1rem;
}

.payment-card-form-header p,
.payment-state-note {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.payment-card-fields {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 0.75fr);
    gap: 1rem;
}

.payment-state-note {
    margin-top: 1.25rem;
    padding: 0.85rem 1rem;
    border-radius: 0.75rem;
    background: rgba(15, 23, 42, 0.04);
}

.payment-state-note-paid {
    background: var(--success-bg);
    color: var(--success-text);
    font-weight: 700;
}

.payment-state-note-review {
    background: var(--warning-bg);
    color: var(--warning-text);
    font-weight: 700;
}

.schedule-header {
    gap: 1.5rem;
}

.schedule-week-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: flex-end;
}

.schedule-week-actions-bottom {
    justify-content: center;
    margin-top: 1.25rem;
}

.schedule-toolbar {
    margin-bottom: 1.5rem;
    padding: 0;
}

.schedule-resource-panel {
    margin-bottom: 1.5rem;
    padding: 1.35rem;
}

.schedule-resource-heading {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.schedule-resource-heading .admin-helper-copy {
    margin: 0;
    text-align: right;
}

.schedule-resource-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
}

.schedule-resource-grid h3 {
    margin: 0 0 0.75rem;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.schedule-resource-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.schedule-resource-card {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 10rem;
    margin: 0;
    padding: 0.8rem 0.95rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.92));
    box-shadow: var(--shadow-sm);
    color: var(--text-main);
    cursor: grab;
    line-height: 1.25;
    text-align: left;
}

.schedule-resource-card:hover,
.schedule-resource-card:focus {
    border-color: rgba(249, 115, 22, 0.3);
    background: #ffffff;
    color: var(--text-main);
    transform: translateY(-1px);
}

.schedule-resource-card:active {
    cursor: grabbing;
}

.schedule-resource-card strong {
    font-size: 0.92rem;
}

.schedule-resource-card span {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.schedule-resource-card-vehicle {
    border-left: 4px solid #2563eb;
}

.schedule-resource-card-driver {
    border-left: 4px solid #16a34a;
}

.schedule-resource-card-mover {
    border-left: 4px solid #d97706;
}

.schedule-empty-state,
.schedule-day-empty {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.schedule-calendar-wrap {
    overflow-x: auto;
    padding: 0;
}

.schedule-calendar-grid {
    --schedule-header-height: 3.25rem;
    --schedule-hour-height: 5.25rem;
    display: grid;
    grid-template-columns: 4.75rem repeat(7, minmax(0, 1fr));
    min-width: 72rem;
}

.schedule-time-column,
.schedule-day-column {
    border-right: 1px solid var(--border-light);
}

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

.schedule-day-header {
    position: sticky;
    top: 0;
    z-index: 5;
    display: flex;
    flex-direction: column;
    justify-content: center;
    box-sizing: border-box;
    height: var(--schedule-header-height);
    min-height: 0;
    overflow: hidden;
    padding: 0.45rem 0.9rem;
    border-bottom: 1px solid var(--border-light);
    background: #f8fafc;
}

.schedule-day-header strong {
    font-size: 0.95rem;
    line-height: 1.15;
}

.schedule-day-header span {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.2;
}

.schedule-time-header {
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 700;
}

.schedule-time-body,
.schedule-day-body {
    position: relative;
    height: calc(var(--schedule-hour-count) * var(--schedule-hour-height));
}

.schedule-time-body {
    background: #f8fafc;
}

.schedule-time-body span {
    display: block;
    height: var(--schedule-hour-height);
    padding: 0.45rem 0.65rem;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 700;
}

.schedule-day-body {
    background:
        repeating-linear-gradient(to bottom,
            rgba(15, 23, 42, 0.045) 0,
            rgba(15, 23, 42, 0.045) 1px,
            transparent 1px,
            transparent var(--schedule-hour-height)),
        #ffffff;
}

.schedule-booking-card {
    --schedule-card-accent: #2563eb;
    --schedule-card-accent-faint: rgba(37, 99, 235, 0.12);
    --schedule-card-accent-soft: rgba(37, 99, 235, 0.32);
    --schedule-card-accent-strong: rgba(37, 99, 235, 0.42);
    --schedule-card-accent-ring: rgba(37, 99, 235, 0.16);
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 9.25rem;
    overflow: hidden;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
}

.schedule-booking-card:hover {
    border-color: var(--schedule-card-accent-soft);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    outline: 0;
    transform: translateY(-1px);
}

.schedule-booking-summary:hover {
    outline: 0;
}

.schedule-booking-card:focus {
    outline: 0;
}

.schedule-booking-card:focus-visible {
    border-color: var(--schedule-card-accent-strong);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14), 0 0 0 3px var(--schedule-card-accent-ring);
    outline: 0;
    transform: translateY(-1px);
}

.schedule-booking-summary:focus {
    outline: 0;
}

.schedule-booking-summary:focus-visible {
    border-radius: 0.5rem;
    box-shadow: inset 0 0 0 2px var(--schedule-card-accent-ring);
    outline: 0;
}

.schedule-booking-card-pending {
    --schedule-card-accent: #d97706;
    --schedule-card-accent-faint: rgba(217, 119, 6, 0.12);
    --schedule-card-accent-soft: rgba(217, 119, 6, 0.32);
    --schedule-card-accent-strong: rgba(217, 119, 6, 0.42);
    --schedule-card-accent-ring: rgba(217, 119, 6, 0.16);
    border-left-color: #d97706;
}

.schedule-booking-card-approved,
.schedule-booking-card-in_progress {
    --schedule-card-accent: #2563eb;
    --schedule-card-accent-faint: rgba(37, 99, 235, 0.12);
    --schedule-card-accent-soft: rgba(37, 99, 235, 0.32);
    --schedule-card-accent-strong: rgba(37, 99, 235, 0.42);
    --schedule-card-accent-ring: rgba(37, 99, 235, 0.16);
    border-left-color: #2563eb;
}

.schedule-booking-card-completed {
    --schedule-card-accent: #16a34a;
    --schedule-card-accent-faint: rgba(22, 163, 74, 0.12);
    --schedule-card-accent-soft: rgba(22, 163, 74, 0.32);
    --schedule-card-accent-strong: rgba(22, 163, 74, 0.42);
    --schedule-card-accent-ring: rgba(22, 163, 74, 0.16);
    border-left-color: #16a34a;
}

.schedule-booking-card-rejected,
.schedule-booking-card-cancelled {
    --schedule-card-accent: #dc2626;
    --schedule-card-accent-faint: rgba(220, 38, 38, 0.12);
    --schedule-card-accent-soft: rgba(220, 38, 38, 0.32);
    --schedule-card-accent-strong: rgba(220, 38, 38, 0.42);
    --schedule-card-accent-ring: rgba(220, 38, 38, 0.16);
    border-left-color: #dc2626;
}

.schedule-overlap-stack {
    position: absolute;
    left: 0.25rem;
    right: 0.25rem;
    min-height: 11rem;
    overflow: visible;
    transition: top 180ms ease, height 180ms ease;
}

.schedule-overlap-header {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    z-index: 3;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-areas:
        "controls"
        "dots";
    gap: 0.16rem;
    padding: 0.4rem 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 0.8rem;
    background: rgba(248, 250, 252, 0.98);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.06);
}

.schedule-overlap-controls {
    grid-area: controls;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.2rem;
}

.schedule-overlap-controls span {
    min-width: 2.2rem;
    color: var(--text-main);
    font-size: 0.68rem;
    font-weight: 900;
    text-align: center;
}

.schedule-overlap-nav {
    display: inline-grid;
    place-items: center;
    width: 1.55rem;
    min-height: 1.55rem;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(37, 99, 235, 0.2);
    border-radius: 0.6rem;
    background: #eef4ff;
    color: #0f172a;
    box-shadow: none;
    font-size: 0.8rem;
    font-weight: 900;
}

.schedule-overlap-nav:hover,
.schedule-overlap-nav:focus {
    background: #dbeafe;
    color: #1d4ed8;
    transform: none;
}

.schedule-overlap-nav:disabled {
    cursor: not-allowed;
    opacity: 0.35;
}

.schedule-overlap-dots {
    grid-area: dots;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    min-height: 0.35rem;
}

.schedule-overlap-dots span {
    display: block;
    width: 0.35rem;
    height: 0.35rem;
    border-radius: 999px;
    background: #cbd5e1;
    transition: width 140ms ease, background-color 140ms ease;
}

.schedule-overlap-dots span.is-active {
    width: 0.9rem;
    background: #2563eb;
}

.schedule-overlap-pages {
    position: absolute;
    top: 3.15rem;
    right: 0;
    bottom: 0.15rem;
    left: 0;
    z-index: 2;
    overflow: visible;
}

.schedule-overlap-page {
    --schedule-card-accent: #2563eb;
    --schedule-card-accent-faint: rgba(37, 99, 235, 0.12);
    --schedule-card-accent-soft: rgba(37, 99, 235, 0.32);
    --schedule-card-accent-strong: rgba(37, 99, 235, 0.42);
    --schedule-card-accent-ring: rgba(37, 99, 235, 0.16);
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    height: 100%;
    overflow-y: auto;
    padding: 0.65rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-left: 4px solid var(--accent);
    border-radius: 0.75rem;
    background: rgba(255, 255, 255, 0.97);
    box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.schedule-overlap-page:hover {
    border-color: var(--schedule-card-accent-soft);
    box-shadow: 0 16px 34px rgba(15, 23, 42, 0.14);
    transform: translateY(-1px);
}

.schedule-overlap-page.is-page-entering {
    animation: schedule-page-enter 180ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.schedule-overlap-page.is-card-activated,
.schedule-booking-card.is-card-activated {
    animation: schedule-card-activate 220ms ease-out;
}

.schedule-booking-summary {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.45rem;
    min-height: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
}

.schedule-overlap-page[hidden] {
    display: none;
}

.schedule-overlap-page-pending {
    --schedule-card-accent: #d97706;
    --schedule-card-accent-faint: rgba(217, 119, 6, 0.12);
    --schedule-card-accent-soft: rgba(217, 119, 6, 0.32);
    --schedule-card-accent-strong: rgba(217, 119, 6, 0.42);
    --schedule-card-accent-ring: rgba(217, 119, 6, 0.16);
    border-left-color: #d97706;
}

.schedule-overlap-page-approved,
.schedule-overlap-page-in_progress {
    --schedule-card-accent: #2563eb;
    --schedule-card-accent-faint: rgba(37, 99, 235, 0.12);
    --schedule-card-accent-soft: rgba(37, 99, 235, 0.32);
    --schedule-card-accent-strong: rgba(37, 99, 235, 0.42);
    --schedule-card-accent-ring: rgba(37, 99, 235, 0.16);
    border-left-color: #2563eb;
}

.schedule-overlap-page-completed {
    --schedule-card-accent: #16a34a;
    --schedule-card-accent-faint: rgba(22, 163, 74, 0.12);
    --schedule-card-accent-soft: rgba(22, 163, 74, 0.32);
    --schedule-card-accent-strong: rgba(22, 163, 74, 0.42);
    --schedule-card-accent-ring: rgba(22, 163, 74, 0.16);
    border-left-color: #16a34a;
}

.schedule-overlap-page-rejected,
.schedule-overlap-page-cancelled {
    --schedule-card-accent: #dc2626;
    --schedule-card-accent-faint: rgba(220, 38, 38, 0.12);
    --schedule-card-accent-soft: rgba(220, 38, 38, 0.32);
    --schedule-card-accent-strong: rgba(220, 38, 38, 0.42);
    --schedule-card-accent-ring: rgba(220, 38, 38, 0.16);
    border-left-color: #dc2626;
}

.schedule-overlap-page>.schedule-booking-card-header,
.schedule-overlap-page>.schedule-payment-line,
.schedule-overlap-page>.schedule-overlap-page-context,
.schedule-overlap-page>.schedule-assignment-form,
.schedule-overlap-page>.schedule-readonly-allocation {
    margin-left: 0;
    margin-right: 0;
}

.schedule-overlap-page>.schedule-booking-card-header {
    margin-top: 0;
}

.schedule-overlap-page>.schedule-assignment-form,
.schedule-overlap-page>.schedule-readonly-allocation {
    margin-bottom: 0;
}

.schedule-overlap-page-context {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 800;
}

@keyframes schedule-page-enter {
    from {
        opacity: 0.64;
        transform: translateY(0.22rem);
    }

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

@keyframes schedule-card-activate {
    0% {
        border-color: var(--schedule-card-accent-faint);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    }

    45% {
        border-color: var(--schedule-card-accent-strong);
        box-shadow: 0 16px 34px rgba(15, 23, 42, 0.16), 0 0 0 3px var(--schedule-card-accent-ring);
    }

    100% {
        border-color: rgba(15, 23, 42, 0.08);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
    }
}

.schedule-booking-card-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.35rem;
}

.schedule-booking-card h3,
.schedule-overlap-page h3 {
    margin: 0 0 0.2rem;
    font-size: 0.88rem;
    line-height: 1.18;
}

.schedule-booking-card p,
.schedule-overlap-page p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.74rem;
    line-height: 1.35;
}

.schedule-payment-line {
    font-weight: 700;
}

.schedule-time-line,
.schedule-assignment-line {
    font-weight: 700;
}

.schedule-assignment-line {
    display: -webkit-box;
    overflow: hidden;
    color: var(--text-muted);
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.schedule-modal {
    position: fixed;
    inset: 0;
    z-index: 5000;
    display: grid;
    place-items: start center;
    padding: 4vh 1rem 1rem;
}

.schedule-modal[hidden] {
    display: none;
}

.schedule-modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(15, 23, 42, 0.34);
    backdrop-filter: blur(5px);
    animation: schedule-backdrop-enter 140ms ease-out;
}

.schedule-modal-panel {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    width: min(50rem, calc(100vw - 2rem));
    max-height: 90vh;
    min-height: min(40rem, 90vh);
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(226, 232, 240, 0.95);
    border-radius: 1.2rem;
    background: #ffffff;
    box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
    animation: schedule-modal-enter 160ms ease-out;
}

.schedule-modal-panel:focus {
    outline: 0;
}

.schedule-modal-toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 0.75rem 0.85rem 0;
}

.schedule-modal-close {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    min-height: 2rem;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: #475569;
    box-shadow: none;
    font-size: 1.25rem;
    line-height: 1;
}

.schedule-modal-close:hover,
.schedule-modal-close:focus {
    background: rgba(148, 163, 184, 0.22);
    color: #0f172a;
    transform: none;
}

.schedule-modal-title-row {
    display: grid;
    grid-template-columns: 0.65rem 1fr;
    gap: 0.9rem;
    align-items: start;
    padding: 0.55rem 1.15rem 0.85rem;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-modal-title-row h2 {
    margin: 0;
    font-size: 1.38rem;
    line-height: 1.18;
    letter-spacing: 0;
}

.schedule-modal-title-row p {
    margin: 0.25rem 0 0;
    color: var(--text-muted);
}

.schedule-modal-status-dot {
    width: 0.7rem;
    height: 0.7rem;
    margin-top: 0.45rem;
    border-radius: 999px;
    background: #2563eb;
}

.schedule-modal-status-pending {
    background: #d97706;
}

.schedule-modal-status-completed {
    background: #16a34a;
}

.schedule-modal-status-rejected,
.schedule-modal-status-cancelled {
    background: #dc2626;
}

.schedule-modal-detail-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0;
    padding: 0.9rem 1.15rem;
    border-bottom: 1px solid #e2e8f0;
}

.schedule-modal-detail-list div {
    display: grid;
    gap: 0.22rem;
    min-width: 0;
}

.schedule-modal-detail-list dt {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.schedule-modal-detail-list dd {
    margin: 0;
    color: var(--text-main);
    font-weight: 700;
    overflow-wrap: anywhere;
}

.schedule-allocation-heading {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.15rem 0;
}

.schedule-allocation-heading h3 {
    margin: 0;
    font-size: 1rem;
    line-height: 1.2;
}

.schedule-allocation-heading p {
    max-width: 23rem;
    margin: 0;
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
    text-align: right;
}

.schedule-allocation-heading p.is-valid {
    color: #166534;
}

.schedule-allocation-heading p.is-warning {
    color: #b45309;
}

.schedule-modal-resource-grid {
    display: grid;
    flex: 1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    min-height: 0;
    padding: 0 1.15rem;
}

.schedule-resource-picker {
    display: flex;
    flex-direction: column;
    min-width: 0;
    min-height: 0;
    margin: 0;
    padding: 0.95rem 0.75rem 0.75rem;
    border: 0;
    border-radius: 0.9rem;
    background: #f8fafc;
}

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

.schedule-resource-picker-head {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 0 0 0.55rem;
}

.schedule-resource-title {
    display: block;
    color: #64748b;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    line-height: 1;
    text-transform: uppercase;
}

.schedule-resource-count {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: center;
    gap: 0.32rem;
    color: #64748b;
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: none;
    min-height: 1.9rem;
}

.schedule-resource-count span {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.18rem;
    min-height: 1.55rem;
    min-width: 0;
    padding: 0.2rem 0.35rem;
    border: 1px solid #e2e8f0;
    border-radius: 999px;
    background: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.schedule-resource-count strong {
    color: var(--text-main);
    font-size: 0.72rem;
}

.schedule-resource-search {
    width: 100%;
    min-height: 2.35rem;
    margin: 0 0 0.55rem;
    padding: 0.45rem 0.7rem;
    border: 1px solid #dbe3ef;
    border-radius: 0.65rem;
    background: #ffffff;
    color: var(--text-main);
    font-size: 0.82rem;
    font-weight: 700;
    box-shadow: none;
}

.schedule-resource-search:focus {
    border-color: rgba(37, 99, 235, 0.55);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
    outline: 0;
}

.schedule-resource-list {
    display: grid;
    gap: 0.5rem;
    min-height: 0;
    max-height: min(22rem, 34vh);
    overflow-y: auto;
    padding: 0.05rem 0.2rem 0.05rem 0;
    scrollbar-color: #94a3b8 transparent;
    scrollbar-width: thin;
}

.schedule-resource-list::-webkit-scrollbar {
    width: 0.5rem;
}

.schedule-resource-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #cbd5e1;
}

.schedule-resource-list::-webkit-scrollbar-track {
    background: transparent;
}

.schedule-resource-option {
    position: relative;
    display: grid;
    grid-template-columns: 1.1rem 1fr;
    gap: 0.65rem;
    align-items: center;
    padding: 0.72rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.72rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 140ms ease, background 140ms ease, box-shadow 140ms ease;
}

.schedule-resource-option input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.schedule-resource-check {
    display: inline-grid;
    place-items: center;
    width: 1.05rem;
    height: 1.05rem;
    border: 1.5px solid #94a3b8;
    border-radius: 0.28rem;
    background: #ffffff;
    transition: border-color 140ms ease, background 140ms ease;
}

.schedule-resource-check::after {
    width: 0.32rem;
    height: 0.56rem;
    border: solid #ffffff;
    border-width: 0 2px 2px 0;
    content: "";
    opacity: 0;
    transform: rotate(45deg) translateY(-1px);
}

.schedule-resource-content {
    display: grid;
    gap: 0.12rem;
    min-width: 0;
}

.schedule-resource-name-row {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.schedule-resource-option strong,
.schedule-resource-meta {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-resource-option strong {
    min-width: 0;
    color: var(--text-main);
    font-size: 0.86rem;
}

.schedule-resource-name-row em {
    flex: 0 0 auto;
    padding: 0.12rem 0.34rem;
    border-radius: 999px;
    background: #fee2e2;
    color: #991b1b;
    font-size: 0.58rem;
    font-style: normal;
    font-weight: 900;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.schedule-resource-option small,
.schedule-resource-meta {
    color: var(--text-muted);
    font-size: 0.76rem;
}

.schedule-resource-reason {
    display: -webkit-box;
    overflow: hidden;
    color: #b45309;
    font-weight: 800;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.schedule-resource-option:has(input:checked) {
    order: -1;
    border-color: rgba(37, 99, 235, 0.4);
    background: #eff6ff;
    box-shadow: inset 3px 0 0 #2563eb;
}

.schedule-resource-option:has(input:checked) .schedule-resource-check {
    border-color: #2563eb;
    background: #2563eb;
}

.schedule-resource-option:has(input:checked) .schedule-resource-check::after {
    opacity: 1;
}

.schedule-resource-option:has(input:disabled) {
    background: #f8fafc;
    color: #64748b;
    cursor: not-allowed;
    opacity: 0.82;
}

.schedule-resource-option:has(input:disabled) .schedule-resource-check {
    border-color: #cbd5e1;
    background: #e2e8f0;
}

.schedule-resource-option:has(input:disabled) strong {
    color: #64748b;
}

.schedule-resource-option:has(input:disabled) .schedule-resource-reason {
    color: #64748b;
}

.schedule-resource-option:hover,
.schedule-resource-option:focus-within {
    border-color: rgba(37, 99, 235, 0.34);
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.schedule-resource-option:has(input:disabled):hover,
.schedule-resource-option:has(input:disabled):focus-within {
    border-color: #e2e8f0;
    box-shadow: none;
}

.schedule-resource-option[hidden] {
    display: none;
}

.schedule-resource-option.is-search-pinned::before {
    position: absolute;
    top: 0.45rem;
    right: 0.55rem;
    color: #2563eb;
    content: "Selected";
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

@keyframes schedule-backdrop-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes schedule-modal-enter {
    from {
        opacity: 0;
        transform: translateY(0.5rem) scale(0.98);
    }

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

.schedule-modal-rule {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    font-weight: 700;
}

.schedule-assignment-form {
    display: flex;
    flex: 1;
    flex-direction: column;
    gap: 0.9rem;
    min-height: 0;
    margin: 0;
    overflow: hidden;
}

.schedule-dropzone {
    display: grid;
    gap: 0.55rem;
    min-height: 5.65rem;
    padding: 0.55rem;
    border: 1px dashed rgba(100, 116, 139, 0.45);
    border-radius: 0.7rem;
    background: rgba(248, 250, 252, 0.8);
}

.schedule-dropzone.is-dragover {
    border-color: var(--accent);
    background: rgba(255, 247, 237, 0.95);
    box-shadow: inset 0 0 0 1px rgba(249, 115, 22, 0.18);
}

.schedule-selected-group>strong {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--text-muted);
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.schedule-selected-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.schedule-empty-token {
    color: var(--text-muted);
    font-size: 0.78rem;
}

.schedule-token {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    max-width: 100%;
    min-height: 1.8rem;
    padding: 0.25rem 0.35rem 0.25rem 0.55rem;
    border-radius: 999px;
    background: #e2e8f0;
    color: #334155;
    font-size: 0.75rem;
    font-weight: 800;
}

.schedule-token span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-token-vehicle {
    background: #dbeafe;
    color: #1d4ed8;
}

.schedule-token-driver {
    background: #dcfce7;
    color: #166534;
}

.schedule-token-mover {
    background: #fef3c7;
    color: #92400e;
}

.schedule-token button {
    min-height: 1.35rem;
    margin: 0;
    padding: 0.15rem 0.35rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.6);
    color: inherit;
    box-shadow: none;
    font-size: 0.68rem;
}

.schedule-token button:hover,
.schedule-token button:focus {
    background: rgba(255, 255, 255, 0.9);
    color: inherit;
    transform: none;
}

.schedule-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.schedule-modal-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.65rem;
    margin-top: 0.15rem;
    padding: 0.85rem 1.15rem 1rem;
    border-top: 1px solid #e2e8f0;
    background: #ffffff;
}

.schedule-card-actions .button,
.schedule-card-actions button,
.schedule-readonly-allocation .button,
.schedule-modal-actions .button,
.schedule-modal-actions button {
    min-height: 2.25rem;
    padding: 0.42rem 0.62rem;
    font-size: 0.74rem;
}

.schedule-readonly-allocation {
    display: grid;
    gap: 0.9rem;
    min-height: 0;
    overflow-y: auto;
}

.schedule-readonly-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.85rem;
    padding: 0 1.15rem;
}

.schedule-readonly-resource {
    display: grid;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #f8fafc;
}

.schedule-readonly-resource span {
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.07em;
    text-transform: uppercase;
}

.schedule-readonly-resource strong {
    overflow: hidden;
    color: var(--text-main);
    font-size: 0.92rem;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.schedule-readonly-note {
    margin: 0 1.15rem;
    padding: 0.7rem 0.85rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.8rem;
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
}

.schedule-day-empty {
    position: absolute;
    top: 1rem;
    left: 1rem;
    right: 1rem;
}

@media (max-width: 1180px) {
    .schedule-calendar-grid {
        grid-template-columns: 4.75rem repeat(7, minmax(9.5rem, 1fr));
        min-width: 71.25rem;
    }
}

@media (max-width: 760px) {
    .schedule-modal {
        align-items: stretch;
        padding: 0.75rem;
    }

    .schedule-modal-panel {
        width: 100%;
        max-height: calc(100vh - 1.5rem);
        border-radius: 1rem;
    }

    .schedule-modal-resource-grid {
        grid-template-columns: 1fr;
        overflow-y: auto;
        padding-bottom: 0.2rem;
    }

    .schedule-resource-list {
        max-height: 16rem;
    }

    .schedule-readonly-grid {
        grid-template-columns: 1fr;
    }

    .schedule-allocation-heading {
        display: grid;
        gap: 0.25rem;
    }

    .schedule-allocation-heading p {
        max-width: none;
        text-align: left;
    }

    .schedule-modal-detail-list {
        grid-template-columns: 1fr;
    }

    .schedule-modal-detail-list div {
        grid-template-columns: 1fr;
        gap: 0.25rem;
    }
}

.admin-search-panel {
    margin-bottom: 1.5rem;
}

.cms-management-shell {
    display: grid;
    gap: 1.25rem;
}

.cms-section-panel {
    display: grid;
    gap: 1rem;
    padding: 1.25rem;
}

.cms-section-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e2e8f0;
}

.cms-section-header h2 {
    margin: 0.2rem 0;
    font-size: 1.35rem;
}

.cms-section-header p {
    max-width: 42rem;
    margin: 0;
    color: var(--text-muted);
}

.cms-section-count,
.cms-block-type {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    min-height: 1.8rem;
    padding: 0.2rem 0.6rem;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}

.cms-block-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.cms-block-editor {
    display: grid;
    gap: 0.9rem;
    min-width: 0;
    padding: 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 0.85rem;
    background: #ffffff;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.cms-block-summary {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.85rem;
}

.cms-block-summary h3 {
    margin: 0 0 0.25rem;
    font-size: 1rem;
}

.cms-block-summary p {
    margin: 0;
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.45;
}

.cms-block-preview {
    display: grid;
    gap: 0.45rem;
    min-height: 4rem;
    padding: 0.75rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.7rem;
    background: #f8fafc;
}

.cms-block-preview strong {
    color: #64748b;
    font-size: 0.74rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.cms-block-preview span {
    color: var(--text-main);
    font-size: 0.9rem;
    line-height: 1.5;
}

.cms-image-preview {
    width: 7rem;
    max-height: 5rem;
    object-fit: contain;
}

.cms-block-form {
    display: grid;
    gap: 0.9rem;
}

.cms-block-form .form-control {
    margin-bottom: 0;
}

.cms-block-form .input {
    display: grid;
    gap: 0.5rem;
}

.cms-block-form label {
    color: var(--text-main);
    font-size: 0.85rem;
    font-weight: 700;
}

.cms-block-form input[type="file"] {
    width: 100%;
    padding: 0.65rem;
    border: 1px dashed #cbd5e1;
    border-radius: 0.75rem;
    background: #f8fafc;
    color: var(--text-muted);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
}

.cms-block-form input[type="file"]::file-selector-button {
    margin-right: 0.85rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid #dbe3ef;
    border-radius: 999px;
    background: #ffffff;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-weight: 700;
    cursor: pointer;
}

.cms-block-form textarea {
    min-height: 7rem;
    resize: vertical;
}

.cms-block-form .help {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.4;
}

.cms-block-actions {
    display: flex;
    justify-content: flex-end;
}

@media (max-width: 860px) {
    .cms-block-grid {
        grid-template-columns: 1fr;
    }

    .cms-section-header,
    .cms-block-summary {
        display: grid;
    }
}

.admin-search-form {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.94));
    border: 1px solid var(--border-light);
    border-radius: 1.25rem;
    padding: 1.25rem;
    box-shadow: var(--shadow-md);
}

.admin-filter-form {
    display: grid;
    grid-template-columns: repeat(4, minmax(13rem, 1fr));
    align-items: end;
    gap: 1rem;
}

.admin-search-input-wrap {
    grid-column: span 2;
    min-width: 0;
    position: relative;
}

.admin-filter-form .admin-search-actions {
    align-self: end;
    justify-content: flex-start;
    min-height: 3.35rem;
}

.feedback-date-group {
    display: contents;
}

@media (max-width: 1180px) {
    .admin-filter-form {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .admin-search-input-wrap {
        grid-column: span 2;
    }

    .admin-filter-form .admin-search-actions {
        grid-column: 1 / -1;
        justify-content: flex-start;
    }
}

.ai-feedback-summary-panel {
    margin-bottom: 1.5rem;
    padding: 1.5rem;
}

.ai-feedback-summary-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1rem;
}

.ai-summary-generate-form {
    flex: 0 0 auto;
}

.ai-summary-generate-form.is-generating .button {
    cursor: wait;
    opacity: 0.78;
}

.ai-summary-progress {
    margin: 0.35rem 0 1rem;
    padding: 0.85rem 1rem;
    border: 1px solid rgba(249, 115, 22, 0.18);
    border-radius: 0.9rem;
    background: rgba(255, 247, 237, 0.74);
}

.ai-summary-progress-track {
    height: 0.55rem;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(249, 115, 22, 0.14);
}

.ai-summary-progress-track span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--accent), #fb923c);
    box-shadow: 0 0 16px rgba(249, 115, 22, 0.32);
    transition: width 0.35s ease;
}

.ai-summary-progress p {
    margin: 0.55rem 0 0;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 650;
}

.ai-summary-progress.is-error {
    border-color: rgba(220, 38, 38, 0.18);
    background: rgba(254, 226, 226, 0.74);
}

.ai-summary-progress.is-error .ai-summary-progress-track {
    background: rgba(220, 38, 38, 0.12);
}

.ai-summary-progress.is-error .ai-summary-progress-track span {
    background: linear-gradient(90deg, #dc2626, #f87171);
}

.ai-summary-progress.is-error p {
    color: var(--danger-text);
}

.ai-summary-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.ai-summary-metrics span {
    min-width: 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border-light);
    border-radius: 0.9rem;
    background: var(--bg-base);
    color: var(--text-main);
    font-weight: 700;
}

.ai-summary-metrics strong {
    display: block;
    margin-bottom: 0.25rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    text-transform: uppercase;
}

.ai-summary-content {
    display: grid;
    gap: 1.25rem;
    margin-top: 1rem;
}

.ai-summary-main,
.ai-summary-grid section {
    padding: 1rem;
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    background: var(--bg-base);
}

.ai-summary-main h3,
.ai-summary-grid h3 {
    margin: 0 0 0.75rem;
    font-size: 1rem;
}

.ai-summary-main p {
    margin: 0 0 0.75rem;
    line-height: 1.6;
}

.ai-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.ai-summary-list {
    margin: 0;
    padding-left: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
}

.ai-summary-list li+li {
    margin-top: 0.45rem;
}

.admin-filter-control {
    flex: 0 1 15rem;
    min-width: min(15rem, 100%);
}

.admin-filter-control .input {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    position: relative;
}

.admin-filter-form .admin-filter-control {
    width: 100%;
    min-width: 0;
}

.admin-filter-form .admin-filter-control .input {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.65rem;
}

.admin-filter-form .admin-filter-control .input label {
    min-width: 3.15rem;
    text-align: right;
}

.admin-filter-form .input input,
.admin-filter-form .input select,
.admin-filter-form .admin-filter-select-button {
    width: 100%;
}

.admin-search-actions {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 0 0 auto;
}

.admin-search-form .input {
    margin-bottom: 0;
}

.admin-search-form .input label {
    color: var(--text-muted);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
}

.admin-filter-control .input label {
    flex: 0 0 auto;
    margin-bottom: 0;
}

.admin-search-form .input input,
.admin-search-form .input select {
    height: 3.35rem;
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(148, 163, 184, 0.22);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

.admin-search-form .input input {
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1;
    padding: 0 0.95rem;
}

.admin-search-form .input select {
    appearance: none;
    color: var(--text-main);
    font-weight: 600;
    padding: 0 2.5rem 0 0.95rem;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
        linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
    background-position:
        calc(100% - 1.05rem) 50%,
        calc(100% - 0.7rem) 50%;
    background-size: 0.36rem 0.36rem, 0.36rem 0.36rem;
    background-repeat: no-repeat;
}

.admin-filter-form input[type="date"] {
    min-width: 8.7rem;
    padding-inline: 0.85rem;
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 650;
}

.admin-filter-form input[type="date"]::-webkit-datetime-edit,
.admin-filter-form input[type="date"]::-webkit-datetime-edit-fields-wrapper {
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 650;
    letter-spacing: 0;
}

.admin-filter-form input[type="date"]::-webkit-datetime-edit-text {
    color: var(--text-muted);
    padding-inline: 0.06rem;
}

.admin-filter-form input[type="date"]::-webkit-calendar-picker-indicator {
    margin-left: 0.35rem;
    opacity: 0.72;
}

.admin-search-form .admin-search-input-wrap .input input {
    padding-left: 3rem;
}

.admin-search-form .input input::placeholder {
    color: #94a3b8;
}

.admin-search-form .input input:focus,
.admin-search-form .input select:focus {
    outline: 0;
    border-color: rgba(249, 115, 22, 0.42);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.admin-search-form.filter-ui-ready .admin-filter-control select.admin-native-select {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    border: 0;
    opacity: 0;
    pointer-events: none;
}

.admin-filter-select {
    position: relative;
    flex: 1 1 auto;
    min-width: 0;
}

.admin-filter-select-button {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.85rem;
    width: 100%;
    min-height: 3.35rem;
    margin: 0;
    padding: 0 0.95rem;
    border: 1px solid rgba(148, 163, 184, 0.22);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.92);
    color: var(--text-main);
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.2;
    text-align: left;
    text-transform: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.admin-filter-select-button:hover,
.admin-filter-select.is-open .admin-filter-select-button {
    background: #ffffff;
    border-color: rgba(249, 115, 22, 0.38);
}

.admin-filter-select-button:focus-visible {
    outline: 0;
    border-color: rgba(249, 115, 22, 0.46);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.admin-filter-select-value {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.admin-filter-select-chevron {
    width: 0.52rem;
    height: 0.52rem;
    flex: 0 0 auto;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: translateY(-0.12rem) rotate(45deg);
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-filter-select.is-open .admin-filter-select-chevron {
    border-color: var(--accent);
    transform: translateY(0.12rem) rotate(225deg);
}

.admin-filter-options {
    position: absolute;
    z-index: 30;
    top: calc(100% + 0.5rem);
    left: 0;
    right: 0;
    display: grid;
    gap: 0.2rem;
    max-height: 18rem;
    overflow-y: auto;
    padding: 0.45rem;
    border: 1px solid rgba(15, 23, 42, 0.08);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-0.25rem) scale(0.98);
    transform-origin: top center;
    transition: opacity 0.16s ease, transform 0.16s ease;
}

.admin-filter-options[hidden] {
    display: none;
}

.admin-filter-select.is-open .admin-filter-options {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.admin-filter-option {
    width: 100%;
    min-height: 2.35rem;
    margin: 0;
    padding: 0.55rem 0.7rem;
    border: 0;
    border-radius: 0.65rem;
    background: transparent;
    color: var(--text-main);
    box-shadow: none;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0;
    line-height: 1.25;
    text-align: left;
    text-transform: none;
}

.admin-filter-option:hover,
.admin-filter-option:focus {
    outline: 0;
    background: rgba(15, 23, 42, 0.04);
    color: var(--text-main);
    transform: none;
}

.admin-filter-option.is-selected {
    background: rgba(249, 115, 22, 0.12);
    color: var(--accent-hover);
}

.admin-search-icon {
    position: absolute;
    top: 50%;
    left: 1rem;
    transform: translateY(-50%);
    width: 1rem;
    height: 1rem;
    color: var(--text-muted);
    pointer-events: none;
    z-index: 1;
}

.admin-search-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.admin-search-form .button {
    white-space: nowrap;
    min-height: 3.35rem;
    margin: 0;
}

.table-pagination,
.paginator {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
    color: var(--text-muted);
    font-size: 0.9rem;
}

.table-pagination .pagination,
.paginator .pagination {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
}

.table-pagination .pagination li,
.paginator .pagination li {
    list-style: none;
    margin: 0;
}

.table-pagination .pagination a,
.table-pagination .pagination .current,
.table-pagination .pagination .active a,
.paginator .pagination a,
.paginator .pagination .current,
.paginator .pagination .active a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    min-height: 2.25rem;
    padding: 0.35rem 0.7rem;
    border: 1px solid var(--border-light);
    border-radius: 0.75rem;
    background: var(--bg-card);
    color: var(--text-main);
    font-weight: 700;
}

.table-pagination .pagination .current,
.table-pagination .pagination .active a,
.paginator .pagination .current,
.paginator .pagination .active a {
    border-color: var(--accent);
    background: var(--accent);
    color: #ffffff;
    box-shadow: 0 6px 14px rgba(249, 115, 22, 0.22);
    cursor: default;
}

.table-pagination .pagination .disabled,
.paginator .pagination .disabled {
    opacity: 0.45;
}

.table-pagination p,
.paginator p {
    margin: 0;
}

.admin-panel {
    background: var(--bg-card);
    border-radius: 1.5rem;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}

.table-scroll {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(71, 85, 105, 0.72) rgba(226, 232, 240, 0.72);
}

.table-scroll::-webkit-scrollbar {
    height: 0.75rem;
}

.table-scroll::-webkit-scrollbar-track {
    background: rgba(226, 232, 240, 0.72);
    border-radius: 999px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: rgba(71, 85, 105, 0.58);
    border-radius: 999px;
    border: 2px solid rgba(226, 232, 240, 0.72);
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(71, 85, 105, 0.78);
}

.table-scroll>table {
    width: max-content;
    min-width: 100%;
}

.table-scroll-shell {
    position: relative;
    width: 100%;
}

.table-scroll-shell::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 4.5rem;
    pointer-events: none;
    opacity: 0;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0),
            rgba(255, 255, 255, 0.9) 62%,
            rgba(248, 250, 252, 0.98)
        );
    box-shadow: inset -1.35rem 0 1.15rem -1.2rem rgba(15, 23, 42, 0.42);
    transition: opacity 160ms ease;
}

.table-scroll-shell.has-horizontal-overflow:not(.is-scroll-end)::after {
    opacity: 1;
}

.table-scroll-hint {
    position: absolute;
    top: 0.8rem;
    right: 0.9rem;
    z-index: 4;
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.42rem 0.7rem;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    color: var(--text-main);
    box-shadow: 0 0.7rem 1.6rem rgba(15, 23, 42, 0.14);
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1;
    pointer-events: none;
    opacity: 0;
    transform: translateX(0.35rem);
    transition:
        opacity 160ms ease,
        transform 160ms ease;
    white-space: nowrap;
}

.table-scroll-hint-arrow {
    color: var(--accent);
    font-size: 0.9rem;
    line-height: 1;
}

.table-scroll-shell.has-horizontal-overflow:not(.is-scrolled-x) .table-scroll-hint {
    opacity: 1;
    transform: translateX(0);
}

.site-table,
.admin-table,
.responsive-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.site-table th,
.site-table td,
.admin-table th,
.admin-table td,
.responsive-table th,
.responsive-table td {
    padding: 1.2rem 1.5rem;
    border-bottom: 1px solid var(--border-light);
    vertical-align: middle;
}

.site-table th,
.admin-table th,
.responsive-table th {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(15, 23, 42, 0.02);
    white-space: nowrap;
}

.site-table th a,
.admin-table th a,
.responsive-table th a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    color: inherit;
    border-radius: 0.45rem;
    text-decoration: none;
}

.site-table th a:hover,
.admin-table th a:hover,
.responsive-table th a:hover {
    color: var(--text-main);
}

.site-table th a.asc,
.site-table th a.desc,
.admin-table th a.asc,
.admin-table th a.desc,
.responsive-table th a.asc,
.responsive-table th a.desc {
    color: var(--accent-hover);
}

.site-table th a.asc::after,
.admin-table th a.asc::after,
.responsive-table th a.asc::after {
    content: "\2191";
    font-size: 0.75rem;
}

.site-table th a.desc::after,
.admin-table th a.desc::after,
.responsive-table th a.desc::after {
    content: "\2193";
    font-size: 0.75rem;
}

.site-table tbody tr,
.admin-table tbody tr,
.responsive-table tbody tr {
    transition: background 0.2s ease;
}

.site-table tbody tr:nth-child(even),
.admin-table tbody tr:nth-child(even),
.responsive-table tbody tr:nth-child(even) {
    background: rgba(15, 23, 42, 0.015);
}

.site-table tbody tr:hover,
.admin-table tbody tr:hover,
.responsive-table tbody tr:hover {
    background: rgba(15, 23, 42, 0.01);
}

.site-table td,
.admin-table td,
.responsive-table td {
    font-size: 0.95rem;
    color: var(--text-main);
}

.site-table td>*:first-child,
.admin-table td>*:first-child,
.responsive-table td>*:first-child {
    margin-top: 0;
}

.site-table td>*:last-child,
.admin-table td>*:last-child,
.responsive-table td>*:last-child {
    margin-bottom: 0;
}

.site-table.site-table-compact th {
    width: 34%;
    min-width: 12rem;
}

.site-table.site-table-compact th,
.site-table.site-table-compact td {
    padding: 1rem 1.25rem;
}

.table-action-heading {
    text-align: center;
}

.site-table th.table-action-heading,
.site-table th.actions,
.admin-table th.table-action-heading,
.admin-table th.actions,
.responsive-table th.table-action-heading,
.responsive-table th.actions,
.site-table td.table-action-cell,
.site-table td.actions,
.admin-table td.table-action-cell,
.admin-table td.actions,
.responsive-table td.table-action-cell,
.responsive-table td.actions {
    position: sticky;
    right: 0;
    background: var(--bg-card);
    box-shadow: -10px 0 16px -14px rgba(15, 23, 42, 0.45);
    min-width: 10.5rem;
}

.site-table th.table-action-heading,
.site-table th.actions,
.admin-table th.table-action-heading,
.admin-table th.actions,
.responsive-table th.table-action-heading,
.responsive-table th.actions {
    z-index: 4;
    background: #f8fafc;
}

.site-table td.table-action-cell,
.site-table td.actions,
.admin-table td.table-action-cell,
.admin-table td.actions,
.responsive-table td.table-action-cell,
.responsive-table td.actions {
    z-index: 3;
    border-left: 1px solid var(--border-light);
}

.site-table tbody tr:nth-child(even) td.table-action-cell,
.site-table tbody tr:nth-child(even) td.actions,
.admin-table tbody tr:nth-child(even) td.table-action-cell,
.admin-table tbody tr:nth-child(even) td.actions,
.responsive-table tbody tr:nth-child(even) td.table-action-cell,
.responsive-table tbody tr:nth-child(even) td.actions {
    background: #fbfcfe;
}

.site-table tbody tr:hover td.table-action-cell,
.site-table tbody tr:hover td.actions,
.admin-table tbody tr:hover td.table-action-cell,
.admin-table tbody tr:hover td.actions,
.responsive-table tbody tr:hover td.table-action-cell,
.responsive-table tbody tr:hover td.actions {
    background: #fcfdff;
}

.action-links {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}

.table-inline-actions {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.site-table td.table-action-cell,
.site-table td.actions,
.admin-table td.table-action-cell,
.admin-table td.actions,
.responsive-table td.table-action-cell,
.responsive-table td.actions {
    text-align: center;
    vertical-align: middle;
}

.site-table td.table-action-cell .action-links,
.site-table td.table-action-cell .table-inline-actions,
.site-table td.actions .action-links,
.site-table td.actions .table-inline-actions,
.admin-table td.table-action-cell .action-links,
.admin-table td.table-action-cell .table-inline-actions,
.admin-table td.actions .action-links,
.admin-table td.actions .table-inline-actions,
.responsive-table td.table-action-cell .action-links,
.responsive-table td.table-action-cell .table-inline-actions,
.responsive-table td.actions .action-links,
.responsive-table td.actions .table-inline-actions {
    align-items: center;
    justify-content: center;
}

.table-inline-actions form {
    margin: 0;
}

.table-inline-actions .button {
    margin: 0;
    white-space: nowrap;
}

.site-table td .button,
.admin-table td .button,
.responsive-table td .button,
.site-table td button,
.admin-table td button,
.responsive-table td button {
    padding: 0.55rem 1.05rem;
    font-size: 0.84rem;
    line-height: 1.1;
}

.site-table td .button-clear,
.admin-table td .button-clear,
.responsive-table td .button-clear {
    padding: 0.45rem 0.8rem;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.7rem;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    background: #e2e8f0;
    color: #334155;
    white-space: nowrap;
}

.status-badge-pending,
.status-badge-draft,
.status-badge-not-selected,
.status-badge-overdue,
.status-badge-unassigned,
.status-badge-unhandled {
    background: #fef3c7;
    color: #92400e;
}

.status-badge-approved,
.status-badge-issued,
.status-badge-in-progress,
.status-badge-available,
.status-badge-active,
.status-badge-handled {
    background: #dbeafe;
    color: #1d4ed8;
}

.status-badge-completed,
.status-badge-paid,
.status-badge-received {
    background: var(--success-bg);
    color: var(--success-text);
}

.status-badge-rejected,
.status-badge-cancelled,
.status-badge-void,
.status-badge-failed,
.status-badge-refunded,
.status-badge-unavailable,
.status-badge-inactive {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.status-badge-info,
.status-badge-auth,
.status-badge-system,
.status-badge-customer,
.status-badge-staff {
    background: #e0f2fe;
    color: #075985;
}

.status-badge-notice,
.status-badge-data-change,
.status-badge-admin-action,
.status-badge-webhook,
.status-badge-payment,
.status-badge-admin {
    background: #ede9fe;
    color: #5b21b6;
}

.status-badge-warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.status-badge-critical {
    background: var(--danger-bg);
    color: var(--danger-text);
}

.event-meta-pre {
    margin: 0;
    padding: 1rem;
    border-radius: 0.75rem;
    background: #0f172a;
    color: #e2e8f0;
    overflow-x: auto;
    white-space: pre-wrap;
}

.checkbox-control .input.checkbox {
    margin-bottom: 0;
}

.checkbox-control .input.checkbox>label {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0;
    min-height: 2.5rem;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 600;
}

.checkbox-control input[type='checkbox'] {
    width: 1rem;
    height: 1rem;
    margin: 0;
    accent-color: var(--accent);
}

.switch-control {
    gap: 0.55rem;
}

.switch-label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
}

.switch-field {
    display: flex;
    align-items: center;
    gap: 1rem;
    width: 100%;
    min-height: 4.5rem;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
    border: 1px solid var(--border-light);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.9));
    box-shadow: var(--shadow-sm);
    cursor: pointer;
}

.switch-field input[type='checkbox'] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.switch-track {
    position: relative;
    width: 3.25rem;
    height: 1.9rem;
    flex-shrink: 0;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.28);
    background: linear-gradient(180deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.2));
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.12);
    transition: background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.switch-track::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0.22rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: #ffffff;
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.18);
    transform: translateY(-50%);
    transition: transform 0.2s ease;
}

.switch-copy {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
}

.switch-copy strong {
    font-size: 0.96rem;
    line-height: 1.25;
    color: var(--text-main);
}

.switch-copy small {
    color: var(--text-muted);
    font-size: 0.82rem;
    line-height: 1.4;
}

.switch-field input[type='checkbox']:checked+.switch-track {
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.95), rgba(234, 88, 12, 0.92));
    border-color: rgba(249, 115, 22, 0.4);
    box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.14), 0 0 0 3px rgba(249, 115, 22, 0.1);
}

.switch-field input[type='checkbox']:checked+.switch-track::before {
    transform: translate(1.34rem, -50%);
}

.switch-field:has(input[type='checkbox']:checked) {
    border-color: rgba(249, 115, 22, 0.22);
    background: linear-gradient(180deg, rgba(255, 247, 237, 0.98), rgba(255, 237, 213, 0.88));
}

.switch-field input[type='checkbox']:focus-visible+.switch-track {
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.12);
}

.staff-management-grid {
    display: grid;
    grid-template-columns: minmax(28rem, 2fr) minmax(0, 3fr);
    gap: 2rem;
}

.assignment-summary-grid {
    display: grid;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.assignment-summary-item {
    background: rgba(15, 23, 42, 0.02);
    border: 1px solid var(--border-light);
    border-radius: 1rem;
    padding: 1rem 1.25rem;
}

.assignment-summary-item strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.assignment-summary-item span {
    display: block;
    overflow-wrap: anywhere;
}

.assignment-archive-note {
    color: var(--text-muted);
    margin: 0;
}

.message-snippet-cell {
    color: var(--text-muted);
    max-width: 250px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Message View */
.view-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
}

.booking-admin-view-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.view-card {
    background: var(--bg-base);
    border-radius: 1rem;
    padding: 2rem;
    border: 1px solid var(--border-light);
}

.view-card h2 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.5rem;
}

.message-content-box {
    padding: 1.5rem;
    background: var(--bg-card);
    border-radius: 0.75rem;
    border: 1px solid var(--border-light);
    font-size: 1.05rem;
    line-height: 1.8;
    color: var(--text-main);
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    word-break: break-word;
}

.detail-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.detail-list li {
    margin-bottom: 1rem;
}

.detail-list strong {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.2rem;
}

.booking-timeline-card {
    margin-bottom: 2rem;
}

.booking-timeline-card h2 {
    margin-bottom: 0.35rem;
}

.booking-timeline-header {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 0.9rem;
}

.booking-timeline-header .admin-helper-copy {
    margin: 0;
}

.booking-timeline {
    --timeline-line: rgba(100, 116, 139, 0.22);
    display: grid;
    grid-template-columns: repeat(7, minmax(7.2rem, 1fr));
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
}

.booking-timeline-step {
    position: relative;
    min-width: 0;
    padding: 0 0.75rem 0 0;
}

.booking-timeline-step::before {
    content: "";
    position: absolute;
    top: 0.65rem;
    left: 0.45rem;
    right: -0.45rem;
    height: 2px;
    background: var(--timeline-line);
}

.booking-timeline-step:last-child::before {
    display: none;
}

.booking-timeline-marker {
    position: relative;
    z-index: 1;
    display: block;
    width: 0.9rem;
    height: 0.9rem;
    border-radius: 999px;
    border: 2px solid #94a3b8;
    background: var(--bg-card);
    margin-bottom: 0.75rem;
}

.booking-timeline-copy {
    display: grid;
    gap: 0.25rem;
    min-width: 0;
}

.booking-timeline-copy strong,
.booking-timeline-copy time,
.booking-timeline-copy small {
    overflow-wrap: anywhere;
}

.booking-timeline-copy strong {
    font-size: 0.9rem;
    line-height: 1.25;
}

.booking-timeline-copy time {
    color: var(--text-muted);
    font-size: 0.78rem;
    line-height: 1.3;
}

.booking-timeline-copy small {
    color: var(--text-muted);
    font-size: 0.75rem;
    line-height: 1.35;
}

.booking-timeline-step-complete .booking-timeline-marker {
    background: #16a34a;
    border-color: #16a34a;
}

.booking-timeline-step-current .booking-timeline-marker {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.16);
}

.booking-timeline-step-warning .booking-timeline-marker {
    background: #f59e0b;
    border-color: #f59e0b;
}

.booking-timeline-step-exception .booking-timeline-marker {
    background: #dc2626;
    border-color: #dc2626;
}

.booking-timeline-step-refunded .booking-timeline-marker {
    background: #2563eb;
    border-color: #2563eb;
}

.booking-timeline-step-inactive {
    color: var(--text-muted);
}

.booking-timeline-step-inactive .booking-timeline-marker {
    opacity: 0.65;
}

.booking-timeline-step-warning .booking-timeline-copy strong,
.booking-timeline-step-warning .booking-timeline-copy small {
    color: var(--warning-text);
}

.booking-timeline-step-exception .booking-timeline-copy strong,
.booking-timeline-step-exception .booking-timeline-copy small {
    color: var(--danger-text);
}

.booking-timeline-step-refunded .booking-timeline-copy strong {
    color: #1d4ed8;
}

.view-actions {
    padding: 1.5rem 2rem;
    background: rgba(15, 23, 42, 0.02);
    border-top: 1px solid var(--border-light);
    display: flex;
    gap: 1rem;
}

/* Alerts */
.message {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 2rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

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

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

.message.warning {
    background: var(--warning-bg);
    color: var(--warning-text);
}

.contact-form .error-message {
    color: var(--danger-text);
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    margin-top: 0.5rem;
}

.contact-form .input.error input,
.contact-form .input.error textarea,
.contact-form .input.error select {
    border-color: var(--danger-text);
    box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.12);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

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

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease backwards;
}

/* Responsive */
@media (max-width: 900px) {

    .hero-panel,
    .feature-grid,
    .cta-panel {
        grid-template-columns: 1fr;
    }

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

    .feedback-rating-grid {
        grid-template-columns: 1fr;
    }

    .admin-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

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

    .dashboard-stat-card {
        min-height: auto;
    }

    .hero-visual {
        min-height: 300px;
    }

    .hero-visual-backdrop {
        inset: 0;
    }

    .hero-visual-card {
        width: 100%;
    }

    .cta-panel {
        flex-direction: column;
        text-align: center;
        gap: 2rem;
        padding: 3rem 2rem;
    }

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

    .admin-search-form {
        flex-direction: column;
        align-items: stretch;
    }

    .claim-booking-panel,
    .claim-booking-fields {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .claim-booking-button {
        width: 100%;
    }

    .payment-card-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .admin-search-input-wrap,
    .admin-filter-control,
    .admin-search-actions {
        width: 100%;
    }

    .admin-search-actions .button {
        flex: 1 1 0;
    }

    .ai-feedback-summary-header {
        flex-direction: column;
    }

    .ai-summary-generate-form,
    .ai-summary-generate-form .button {
        width: 100%;
    }

    .ai-summary-metrics,
    .ai-summary-grid {
        grid-template-columns: 1fr;
    }

    .schedule-resource-heading {
        flex-direction: column;
        align-items: flex-start;
    }

    .schedule-resource-heading .admin-helper-copy {
        text-align: left;
    }

    .schedule-resource-grid {
        grid-template-columns: 1fr;
    }

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

    .admin-filter-form .admin-search-input-wrap,
    .admin-filter-form .admin-search-actions {
        grid-column: auto;
    }

    .admin-filter-form .admin-filter-control .input {
        grid-template-columns: 4.5rem minmax(0, 1fr);
    }

    .admin-filter-form .admin-search-actions {
        justify-content: stretch;
    }

    .booking-timeline-header {
        flex-direction: column;
        gap: 0.35rem;
    }

    .booking-timeline {
        grid-template-columns: 1fr;
        gap: 0.9rem;
    }

    .booking-timeline-step {
        display: grid;
        grid-template-columns: 1.2rem minmax(0, 1fr);
        gap: 0.8rem;
        padding: 0;
    }

    .booking-timeline-step::before {
        top: 1.1rem;
        bottom: -1rem;
        left: 0.45rem;
        right: auto;
        width: 2px;
        height: auto;
    }

    .booking-timeline-marker {
        margin: 0.25rem 0 0;
    }

    .table-scroll {
        border-radius: 1rem;
    }

    .table-scroll>table:not(.site-table-compact) {
        min-width: max(100%, 42rem);
    }

    .site-table th,
    .site-table td,
    .admin-table th,
    .admin-table td,
    .responsive-table th,
    .responsive-table td {
        padding: 1rem 1.1rem;
    }

    .responsive-table td.table-action-cell .action-links,
    .responsive-table td.table-action-cell .table-inline-actions,
    .responsive-table td.actions {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.75rem;
    }

    .responsive-table td.table-action-cell .button,
    .responsive-table td.table-action-cell form,
    .responsive-table td.actions .button,
    .responsive-table td.actions a,
    .responsive-table td.actions form {
        margin: 0;
        width: 100%;
    }

    .responsive-table td.table-action-cell .table-inline-actions .button,
    .responsive-table td.table-action-cell .table-inline-actions form {
        width: auto;
    }

    .message-snippet-cell {
        max-width: none;
        white-space: nowrap;
        overflow: visible;
        text-overflow: initial;
    }
}

@media (max-width: 600px) {
    .site-nav-links {
        display: none;
    }

    .hero-copy h1 {
        font-size: 2.5rem;
    }

    .hero-stats {
        flex-direction: column;
        gap: 1.5rem;
    }
}

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

    .staff-management-grid {
        grid-template-columns: 1fr;
    }
}
