/**
 * Modern Daycare — shared layout and components (public + employee).
 * Colour tokens live in css/themes/<theme>.css (see APP_CONFIG['ui_theme']).
 * Typography: Plus Jakarta Sans (loaded in includes/header.php).
 */

:root {
    --button-radius: 14px;
    --button-height: 2.75rem;
    --button-shadow: 0 10px 24px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.28);
    --button-shadow-hover: 0 15px 32px rgba(15, 23, 42, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.36);
}
*, *::before, *::after { box-sizing: border-box; }
body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, sans-serif;
    font-weight: 500;
    background:
        linear-gradient(145deg, var(--bg-shine) 0%, var(--bg) 42%, var(--bg-alt) 100%);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.6;
}
body.employee-area {
    background: linear-gradient(145deg, var(--bg-shine) 0%, var(--bg) 42%, var(--bg-alt) 100%);
}
body.high-contrast { background: var(--bg); }
a { color: var(--primary-dark); text-decoration: none; }
a:hover { text-decoration: underline; }
body.high-contrast a { color: var(--accent); }
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--card-border);
    box-shadow: var(--shadow);
}
.header-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0.75rem 1.25rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem;
    justify-content: space-between;
}
.logo {
    font-weight: 800;
    font-size: 1.35rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
body.employee-area .logo { color: var(--employee-accent); }
.logo span { font-size: 1.5rem; }
.site-header-brand-mark {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
    border-radius: 6px;
}
nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem 0.75rem;
    align-items: center;
}
nav a {
    padding: 0.4rem 0.65rem;
    border-radius: 8px;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
nav a:hover, nav a.active,
nav .nav-dropdown-toggle:hover,
nav .nav-dropdown-toggle.active,
nav .nav-dropdown.is-open .nav-dropdown-toggle {
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--primary) 28%, #151820),
        color-mix(in srgb, var(--primary-dark) 38%, #080a0f)
    );
    color: #fff;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
body.high-contrast nav a:hover,
body.high-contrast nav a.active,
body.high-contrast nav .nav-dropdown-toggle:hover,
body.high-contrast nav .nav-dropdown-toggle.active,
body.high-contrast nav .nav-dropdown.is-open .nav-dropdown-toggle {
    background: var(--primary);
    color: #000;
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.65rem;
    border: none;
    border-radius: 8px;
    font-family: inherit;
    font-weight: 600;
    font-size: inherit;
    color: var(--text);
    background: transparent;
    cursor: pointer;
    line-height: inherit;
}
.nav-dropdown-toggle::after {
    content: '';
    border: 0.35rem solid transparent;
    border-top-color: currentColor;
    margin-top: 0.2rem;
}
.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 11rem;
    margin: 0;
    /* Padding bridges the toggle so the pointer never leaves the dropdown while moving down */
    padding: 0.35rem;
    padding-top: calc(0.35rem + 0.25rem);
    list-style: none;
    background: var(--header-bg);
    backdrop-filter: blur(12px);
    border: 1px solid var(--card-border);
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 200;
}
.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.is-open .nav-dropdown-menu {
    display: block;
}
.nav-dropdown-menu a {
    display: block;
    white-space: nowrap;
}
.nav-submenu {
    list-style: none;
    margin: 0.25rem 0 0.35rem;
    padding: 0.35rem 0 0;
    border-top: 1px solid var(--border-subtle);
}
.nav-submenu:first-child {
    border-top: none;
    margin-top: 0;
    padding-top: 0;
}
.nav-submenu-label {
    display: block;
    padding: 0.25rem 0.65rem;
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--text-muted);
}
.nav-submenu-items {
    list-style: none;
    margin: 0;
    padding: 0 0 0.15rem;
    /* nav ul { display:flex } applies to all lists in the header; submenu links must stack */
    display: block;
}
.nav-submenu-items a {
    padding-left: 1rem;
    font-size: 0.95rem;
}
@media (max-width: 768px) {
    .header-inner {
        display: grid;
        grid-template-columns: minmax(0, 1fr) auto auto;
        gap: 0.5rem 0.65rem;
        align-items: center;
    }
    .logo {
        grid-column: 1;
        grid-row: 1;
        min-width: 0;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }
    .site-nav-menu-toggle {
        display: inline-flex;
        grid-column: 2;
        grid-row: 1;
        flex-shrink: 0;
    }
    .header-tools {
        grid-column: 3;
        grid-row: 1;
        flex-shrink: 0;
    }
    .site-nav {
        grid-column: 1 / -1;
        grid-row: 2;
        display: none;
        flex: none;
        margin: 0.35rem -1.25rem -0.75rem;
        padding: 0.5rem 1.25rem 1rem;
        border-top: 1px solid var(--card-border);
        background: color-mix(in srgb, var(--header-bg) 92%, var(--bg) 8%);
        max-height: min(70vh, 28rem);
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }
    .site-nav.is-open {
        display: block;
    }
    .site-nav__panel {
        display: block;
        width: 100%;
    }
    .site-nav .site-nav__panel > ul {
        flex-direction: column;
        align-items: stretch;
        flex-wrap: nowrap;
        gap: 0.2rem 0;
        width: 100%;
    }
    .site-nav .site-nav__panel > ul > li {
        width: 100%;
    }
    .site-nav .nav-dropdown-menu a {
        white-space: normal;
    }
    .nav-dropdown { width: 100%; }
    .nav-dropdown-menu {
        position: static;
        margin-top: 0.25rem;
        box-shadow: none;
    }
}
.header-tools { display: flex; align-items: center; gap: 0.5rem; }
.site-nav-menu-toggle {
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.45rem 0.65rem;
    border: 2px solid var(--card-border);
    border-radius: var(--button-radius);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
        color-mix(in srgb, var(--card) 88%, var(--primary) 12%);
    color: var(--text);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
    line-height: 1;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(12px) saturate(1.15);
    -webkit-backdrop-filter: blur(12px) saturate(1.15);
}
.site-nav-menu-toggle:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 2px;
}
.site-nav-menu-toggle__chevron {
    display: inline-block;
    width: 0;
    height: 0;
    border-left: 0.32rem solid transparent;
    border-right: 0.32rem solid transparent;
    border-top: 0.38rem solid currentColor;
    transition: transform 0.2s ease;
    margin-top: 0.08rem;
}
.site-nav-menu-toggle.is-open .site-nav-menu-toggle__chevron {
    transform: rotate(180deg);
}
body.high-contrast .site-nav-menu-toggle {
    border-color: var(--primary);
    background: #000;
    color: #fff;
}
@media (min-width: 769px) {
    .site-nav-menu-toggle {
        display: none;
    }
    .site-nav {
        flex: 1 1 auto;
        min-width: 0;
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }
    .site-nav__panel {
        display: flex;
        flex: 1 1 auto;
        min-width: 0;
        justify-content: flex-end;
    }
}
.btn-contrast {
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.02)),
        color-mix(in srgb, var(--card) 90%, var(--primary) 10%);
    border: 1px solid color-mix(in srgb, var(--text) 45%, var(--card-border));
    color: var(--text);
    padding: 0.45rem 0.7rem;
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    font-size: 0.8rem;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}
.btn-contrast:hover { transform: translateY(-1px); }
.btn-contrast:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
body.high-contrast .btn-contrast {
    background: #000;
    border-color: var(--primary);
    color: #fff;
}
main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
.glass-panel {
    /* Theme tokens only — avoids a fixed grey wash that clashes with dark schemes */
    background: linear-gradient(
        135deg,
        color-mix(in srgb, var(--bg-shine) 58%, var(--card) 42%) 0%,
        var(--card) 46%,
        color-mix(in srgb, var(--bg-alt) 58%, var(--primary) 16%) 100%
    );
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid var(--card-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 1.5rem;
}
body.high-contrast .glass-panel {
    background: #000;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 2px solid #fff;
    box-shadow: none;
}
.hero {
    text-align: center;
    padding: 3rem 1rem;
    margin-bottom: 2rem;
}
.hero h1 { font-size: clamp(2rem, 5vw, 3rem); margin: 0 0 0.5rem; }
.hero p { font-size: 1.15rem; color: var(--text-muted); max-width: 600px; margin: 0 auto 1.5rem; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--button-height);
    padding: 0.7rem 1.2rem;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--card-border));
    border-radius: var(--button-radius);
    appearance: none;
    -webkit-appearance: none;
    color: var(--text);
    background: var(--card);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.035)),
        color-mix(in srgb, var(--card) 90%, var(--primary) 10%);
    box-shadow: var(--button-shadow);
    backdrop-filter: blur(14px) saturate(1.18);
    -webkit-backdrop-filter: blur(14px) saturate(1.18);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    vertical-align: middle;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:visited {
    color: var(--text);
}
.btn:hover {
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 55%, var(--card-border));
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.06)),
        color-mix(in srgb, var(--card) 78%, var(--primary) 22%);
    box-shadow: var(--button-shadow-hover);
    transform: translateY(-2px);
    text-decoration: none;
}
.btn:active {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.14), inset 0 1px 2px rgba(0, 0, 0, 0.12);
    transform: translateY(0);
}
.btn:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
.btn-primary,
.btn-secondary,
.btn-vibrant-purple {
    color: #fff;
    border-color: color-mix(in srgb, var(--primary) 58%, rgba(255, 255, 255, 0.3));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 28%, #151820),
            color-mix(in srgb, var(--primary-dark) 38%, #080a0f)
        );
    box-shadow:
        0 12px 26px color-mix(in srgb, var(--primary) 24%, rgba(15, 23, 42, 0.3)),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
.btn-secondary {
    border-color: color-mix(in srgb, var(--secondary) 58%, rgba(255, 255, 255, 0.3));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--secondary) 28%, #151820),
            color-mix(in srgb, var(--primary-dark) 34%, #080a0f)
        );
}
.btn-primary:visited,
.btn-secondary:visited,
.btn-vibrant-purple:visited,
.btn-primary:hover,
.btn-secondary:hover,
.btn-vibrant-purple:hover {
    color: #fff;
}
.btn-primary:hover,
.btn-secondary:hover,
.btn-vibrant-purple:hover {
    border-color: color-mix(in srgb, var(--primary) 78%, rgba(255, 255, 255, 0.36));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--primary) 32%, #151820),
            color-mix(in srgb, var(--primary-dark) 38%, #080a0f)
        );
}
.btn-secondary:hover {
    border-color: color-mix(in srgb, var(--secondary) 78%, rgba(255, 255, 255, 0.36));
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(
            135deg,
            color-mix(in srgb, var(--secondary) 32%, #151820),
            color-mix(in srgb, var(--primary-dark) 38%, #080a0f)
        );
}
.btn-outline {
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 48%, var(--card-border));
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.02)),
        color-mix(in srgb, var(--card) 72%, transparent);
    box-shadow:
        0 8px 20px rgba(15, 23, 42, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}
.btn-outline:visited,
.btn-outline:hover {
    color: var(--text);
}
.btn-outline:hover {
    border-color: color-mix(in srgb, var(--primary) 70%, var(--card-border));
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.04)),
        color-mix(in srgb, var(--card) 62%, var(--primary) 18%);
}
.btn:disabled,
.btn[disabled],
.btn[aria-disabled="true"] {
    opacity: 0.52;
    cursor: not-allowed;
    pointer-events: none;
    transform: none;
    box-shadow: none;
}

/* Glass outline CTA — public home “View all providers”, employee dashboard roster, etc. */
.md-glass-outline-cta-wrap {
    text-align: center;
    margin: 1.5rem 0 0;
}
.md-glass-outline-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--button-height);
    padding: 0.7rem 1.2rem;
    border-radius: var(--button-radius);
    font-weight: 700;
    font-size: 1rem;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
    color: var(--text);
    border: 1px solid var(--card-border);
    background: var(
        --md-landing-feature-card-bg,
        linear-gradient(
            145deg,
            color-mix(in srgb, var(--card) 90%, var(--bg-shine)) 0%,
            color-mix(in srgb, var(--card) 78%, color-mix(in srgb, var(--primary) 16%, var(--bg))) 100%
        )
    );
    backdrop-filter: var(--md-landing-feature-card-backdrop, blur(16px));
    -webkit-backdrop-filter: var(--md-landing-feature-card-backdrop, blur(16px));
    box-shadow: var(--md-landing-feature-card-shadow, var(--shadow));
}
.md-glass-outline-cta:visited {
    color: var(--text);
}
.md-glass-outline-cta:hover {
    transform: translateY(-2px);
    text-decoration: none;
    color: var(--text);
    border-color: color-mix(in srgb, var(--primary) 42%, var(--card-border));
    box-shadow: var(
        --md-landing-feature-card-hover-shadow,
        0 12px 36px color-mix(in srgb, var(--primary) 14%, transparent)
    );
}
.md-glass-outline-cta:focus-visible {
    outline: 3px solid var(--focus);
    outline-offset: 3px;
}
body.high-contrast .md-glass-outline-cta {
    background: #000 !important;
    color: #fff !important;
    border: 2px solid #fff !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
}

.btn-vibrant-purple {
    border-color: rgba(196, 181, 253, 0.55);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%),
        linear-gradient(135deg, #5b21b6, #3b0764);
}
.btn-vibrant-purple:hover {
    border-color: rgba(221, 214, 254, 0.72);
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.16), transparent 55%),
        linear-gradient(135deg, #6d28d9, #4c1d95);
}
body.high-contrast .btn,
body.high-contrast .btn-primary,
body.high-contrast .btn-secondary,
body.high-contrast .btn-outline,
body.high-contrast .btn-vibrant-purple {
    color: #fff;
    background: #000;
    border: 2px solid #fff;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}
body.high-contrast .btn:hover,
body.high-contrast .btn-primary:hover,
body.high-contrast .btn-secondary:hover,
body.high-contrast .btn-outline:hover,
body.high-contrast .btn-vibrant-purple:hover {
    color: #000;
    background: #fff;
}
@media (prefers-reduced-motion: reduce) {
    .btn,
    .btn-contrast,
    .site-nav-menu-toggle,
    .md-glass-outline-cta {
        transition: none;
    }
}
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Pay grids — prevent grid column blowout; scroll wide grade tables horizontally */
.pay-grids-layout {
    align-items: start;
}
.pay-grids-layout > .glass-panel {
    min-width: 0;
}
.pay-grids-right-scroll {
    overflow-x: auto;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}
.pay-grids-right-scroll .pay-grids-grades-table {
    width: max-content;
    min-width: 100%;
}
.pay-grids-right-scroll .pay-grade-progression > div {
    overflow-wrap: anywhere;
    word-break: break-word;
    max-width: 100%;
}

/* Schedule (shifts) — keep grid columns from blowing out; scroll shift list inside panel */
.shifts-page-grid {
    align-items: start;
}
.shifts-page-grid > .glass-panel {
    min-width: 0;
}
.shifts-scheduled-scroll {
    overflow: auto;
    max-width: 100%;
    max-height: min(70vh, 42rem);
    -webkit-overflow-scrolling: touch;
}
.shifts-scheduled-scroll table {
    min-width: max(100%, 28rem);
}
.shifts-form-scroll {
    max-height: min(70vh, 42rem);
    overflow-y: auto;
    overflow-x: hidden;
    max-width: 100%;
    -webkit-overflow-scrolling: touch;
}

.grid-3 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.card-title { font-size: 1.25rem; font-weight: 700; margin: 0 0 0.5rem; }
.muted { color: var(--text-muted); }
.alert {
    padding: 1rem 1.25rem;
    border-radius: 12px;
    margin-bottom: 1.5rem;
    font-weight: 600;
}
.alert-success { background: rgba(220, 236, 225, 0.85); color: #2d4a36; border: 1px solid rgba(138, 170, 150, 0.45); backdrop-filter: blur(8px); }
.alert-error { background: rgba(240, 220, 220, 0.85); color: #5c3333; border: 1px solid rgba(180, 140, 140, 0.45); backdrop-filter: blur(8px); }
.alert-info { background: rgba(220, 228, 238, 0.9); color: #3a4a5c; border: 1px solid var(--border-subtle); backdrop-filter: blur(8px); }
body.high-contrast .alert-success,
body.high-contrast .alert-error,
body.high-contrast .alert-info {
    background: #000; color: #fff; border: 2px solid #fff;
}
.dev-pin-banner {
    background: linear-gradient(90deg, #3f4d5a, #5a6a7a);
    color: #e8ecf0;
    padding: 0.75rem 1rem;
    text-align: center;
    font-weight: 700;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}
form label { display: block; font-weight: 700; margin-bottom: 0.35rem; }
form label:has(input[type="radio"]),
form label:has(input[type="checkbox"]) {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: fit-content;
    max-width: 100%;
    font-weight: 600;
    margin-bottom: 0.5rem;
    cursor: pointer;
}
form input, form select, form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.65rem 0.85rem;
    border: 2px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    font-family: inherit;
    font-size: 1rem;
    margin-bottom: 1rem;
}
form input[type="radio"],
form input[type="checkbox"] {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
    flex-shrink: 0;
    accent-color: var(--primary-dark);
}
body.high-contrast form input,
body.high-contrast form select,
body.high-contrast form textarea {
    background: #000; color: #fff; border-color: #fff;
}
table { width: 100%; border-collapse: collapse; }
.pricing-table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    max-width: 100%;
}
table.pricing-table {
    width: max-content;
    min-width: 100%;
}
table.pricing-table th,
table.pricing-table td {
    vertical-align: middle;
}
table.pricing-table th:not(:first-child),
table.pricing-table td:not(:first-child) {
    width: 1%;
    white-space: nowrap;
}
table.pricing-table th:not(:first-child) {
    white-space: normal;
    min-width: 6.5rem;
    max-width: 9rem;
    font-size: 0.9rem;
    line-height: 1.3;
}
table.pricing-table td:first-child,
table.pricing-table th:first-child {
    white-space: nowrap;
    min-width: 10rem;
}
table.pricing-table .price-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
}
/* Public costs page: fit all columns without horizontal scroll */
.pricing-table-scroll--fit {
    overflow-x: visible;
}
table.pricing-table.pricing-table-public {
    width: 100%;
    min-width: 0;
    table-layout: fixed;
}
table.pricing-table.pricing-table-public th,
table.pricing-table.pricing-table-public td {
    padding: 0.5rem 0.35rem;
    font-size: 0.85rem;
    line-height: 1.25;
}
table.pricing-table.pricing-table-public th:first-child,
table.pricing-table.pricing-table-public td:first-child {
    white-space: normal;
    min-width: 0;
    width: 12%;
    word-wrap: break-word;
    overflow-wrap: anywhere;
    hyphens: auto;
}
table.pricing-table.pricing-table-public th:not(:first-child),
table.pricing-table.pricing-table-public td:not(:first-child) {
    min-width: 0;
    max-width: none;
    width: auto;
    white-space: nowrap;
    text-align: center;
    font-size: 0.82rem;
}
table.pricing-table.pricing-table-public th:not(:first-child) {
    white-space: normal;
    font-size: 0.72rem;
    line-height: 1.2;
    hyphens: auto;
}
@media (max-width: 640px) {
    table.pricing-table.pricing-table-public th,
    table.pricing-table.pricing-table-public td {
        padding: 0.4rem 0.2rem;
        font-size: 0.78rem;
    }
    table.pricing-table.pricing-table-public th:not(:first-child) {
        font-size: 0.65rem;
    }
    table.pricing-table.pricing-table-public th:first-child,
    table.pricing-table.pricing-table-public td:first-child {
        width: 14%;
    }
}
form table.pricing-table .price-cell input[type="number"] {
    width: 6.5rem;
    max-width: 6.5rem;
    margin-bottom: 0;
    flex-shrink: 0;
}
th, td { padding: 0.75rem; text-align: left; border-bottom: 1px solid var(--border-subtle); }
body.high-contrast th, body.high-contrast td { border-color: #fff; }
th { font-weight: 800; }
.badge {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
}
.badge-pending { background: rgba(200, 208, 216, 0.9); color: #4a5d6e; }
.badge-confirmed { background: rgba(200, 220, 208, 0.95); color: #2d4a36; }
.badge-cancelled { background: rgba(220, 210, 210, 0.95); color: #5c3333; }
.badge-sick { background: rgba(255, 235, 180, 0.98); color: #8a4b00; border: 1px solid #e65100; }
.badge-vacation { background: rgba(200, 230, 255, 0.98); color: #0d47a1; border: 1px solid #1565c0; }
body.high-contrast .badge-sick,
body.high-contrast .badge-vacation {
    background: #ff0;
    color: #000;
    border-color: #000;
}
.form-row { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.slot-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1rem 0; }
.slot-btn {
    min-height: 2.5rem;
    padding: 0.5rem 0.85rem;
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--card-border));
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.03)),
        color-mix(in srgb, var(--card) 90%, var(--primary) 10%);
    color: var(--text);
    border-radius: 12px;
    cursor: pointer;
    font-family: inherit;
    font-weight: 700;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.slot-btn.selected, .slot-btn:hover {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 52%),
        linear-gradient(135deg, color-mix(in srgb, var(--primary) 28%, #151820), #080a0f);
    color: #fff;
    border-color: color-mix(in srgb, var(--primary) 65%, rgba(255, 255, 255, 0.3));
}
.slot-btn:hover { transform: translateY(-1px); }
.slot-btn:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.slot-btn:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
body.high-contrast .slot-btn {
    color: #fff;
    background: #000;
    border: 2px solid #fff;
    box-shadow: none;
}
body.high-contrast .slot-btn.selected,
body.high-contrast .slot-btn:hover {
    color: #000;
    background: #fff;
}
.holiday-row-open, .shift-holiday-open {
    background: linear-gradient(90deg, #fff9c4 0%, #ffe082 100%) !important;
    color: #3e2723;
}
.holiday-row-closed, .shift-holiday-closed {
    background: linear-gradient(90deg, #ffccbc 0%, #f8bbd0 100%) !important;
    color: #4a148c;
}
.holiday-badge {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 0.15rem 0.45rem;
    background: #fff59d;
    border: 1px solid #f9a825;
    border-radius: 0;
}
.shift-holiday-closed .holiday-badge {
    background: #f8bbd0;
    border-color: #ec407a;
}
body.high-contrast .holiday-row-open,
body.high-contrast .shift-holiday-open,
body.high-contrast .holiday-row-closed,
body.high-contrast .shift-holiday-closed {
    background: #000 !important;
    color: #fff !important;
}
body.high-contrast .holiday-badge {
    background: #000;
    color: #fff;
    border: 2px solid #fff;
}
@media (max-width: 768px) {
    .header-inner { flex-direction: column; align-items: flex-start; }
    nav ul { flex-direction: column; align-items: flex-start; width: 100%; }
}

/**
 * High contrast — always black background + yellow accents, regardless of colour theme.
 * Toggle restores the active theme’s variables from css/themes/<slug>.css.
 */
body.high-contrast {
    --bg: #000;
    --bg-alt: #000;
    --bg-shine: #0a0a0a;
    --text: #fff;
    --text-muted: #ffff00;
    --primary: #ffff00;
    --primary-dark: #ffea00;
    --secondary: #ffff00;
    --accent: #fff;
    --card: #000;
    --card-border: #ffff00;
    --glass-highlight: #222;
    --shadow: none;
    --radius: 0;
    --header-bg: #000;
    --focus: #ffff00;
    --success: #0f0;
    --danger: #f66;
    --employee-accent: #ffff00;
    --border-subtle: #ffff00;
}

.employee-bottom-nav {
    display: none;
}

@media (max-width: 768px) {
    body.employee-area {
        padding-bottom: calc(4.35rem + env(safe-area-inset-bottom, 0px));
    }
    .employee-bottom-nav {
        position: fixed;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1000;
        display: grid;
        grid-template-columns: repeat(5, minmax(0, 1fr));
        padding: 0.3rem 0.25rem calc(0.3rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--card-border);
        background: color-mix(in srgb, var(--card) 94%, transparent);
        box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.16);
        backdrop-filter: blur(16px);
    }
    .employee-bottom-nav a {
        display: flex;
        min-width: 0;
        min-height: 3.5rem;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.1rem;
        color: var(--text-muted);
        border-radius: 10px;
        font-size: 0.68rem;
        font-weight: 800;
        text-decoration: none;
    }
    .employee-bottom-nav a span:first-child {
        font-size: 1.05rem;
        line-height: 1;
    }
    .employee-bottom-nav a.is-active {
        color: var(--text);
        background: color-mix(in srgb, var(--primary) 16%, transparent);
    }
    .employee-bottom-nav a:focus-visible {
        outline: 3px solid var(--focus, #6b8cae);
        outline-offset: -2px;
    }
}

body.high-contrast .employee-bottom-nav {
    color: #fff;
    background: #000;
    border-color: #fff;
    box-shadow: none;
}

body.high-contrast.employee-area {
    background: var(--bg);
}

/* General settings — full width of employee main (same as dashboard), stacked panels */
.md-general-settings {
    width: 100%;
}
.md-general-settings > h1 {
    margin: 0 0 0.35rem;
    font-size: clamp(1.5rem, 3vw, 1.85rem);
    font-weight: 800;
    letter-spacing: -0.02em;
}
.md-general-settings__lede {
    margin: 0 0 1.25rem;
    font-size: 1rem;
}
.md-general-settings__alert {
    margin-bottom: 1.25rem;
}
.md-general-settings__form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding-bottom: 1.75rem;
}
.md-general-settings__form > section[id] {
    scroll-margin-top: 5.5rem;
}
.md-general-settings__toc .md-general-settings__toc-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.35rem 1.25rem;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
}
.md-general-settings__toc .md-general-settings__toc-list a {
    display: block;
    padding: 0.35rem 0.5rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.92rem;
    text-decoration: none;
    border: 1px solid transparent;
}
.md-general-settings__toc .md-general-settings__toc-list a:hover {
    background: rgba(74, 93, 110, 0.1);
    border-color: var(--border-subtle);
}
body.high-contrast .md-general-settings__toc .md-general-settings__toc-list a:hover {
    background: rgba(255, 255, 0, 0.12);
}
.md-general-settings__panel {
    width: 100%;
    max-width: none;
    margin-bottom: 0;
}
.md-general-settings__hint {
    margin: 0 0 0.75rem;
    font-size: 0.9rem;
    line-height: 1.45;
}
.md-general-settings__check-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    margin-top: 1.25rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    cursor: pointer;
}
.md-general-settings__preview-label {
    margin: 0.75rem 0 0;
    font-size: 0.9rem;
}
.md-general-settings__logo-preview {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 800;
}
form label.md-general-settings__banner-toggle {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    font-weight: 600;
    margin-bottom: 0.75rem;
    cursor: pointer;
}
form label.md-general-settings__banner-toggle input {
    margin-top: 0.25rem;
    flex-shrink: 0;
}
.md-general-settings__option-toggles {
    display: flex;
    flex-direction: column;
    gap: 0;
    margin: 0 0 1rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    overflow: hidden;
    background: color-mix(in srgb, var(--card) 55%, transparent);
}
.md-general-settings__option-toggle {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    margin: 0;
    border-bottom: 1px solid var(--border-subtle);
    cursor: pointer;
    font-weight: 600;
    width: 100%;
    max-width: 100%;
}
.md-general-settings__option-toggle:last-child {
    border-bottom: 0;
}
.md-general-settings__option-toggle__body {
    flex: 1 1 auto;
    min-width: 0;
}
.md-general-settings__option-toggle__title {
    display: block;
    font-weight: 700;
    line-height: 1.35;
}
.md-general-settings__option-toggle__desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.88rem;
    font-weight: 500;
    line-height: 1.4;
}
.md-general-settings__option-toggle__switch {
    position: relative;
    flex: 0 0 2.85rem;
    width: 2.85rem;
    height: 1.55rem;
    margin-top: 0.1rem;
}
.md-general-settings__option-toggle__switch input {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    margin: 0;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}
.md-general-settings__option-toggle__track {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 999px;
    background: color-mix(in srgb, var(--text-muted) 28%, transparent);
    border: 1px solid color-mix(in srgb, var(--text-muted) 35%, transparent);
    transition: background 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    pointer-events: none;
}
.md-general-settings__option-toggle__track::after {
    content: '';
    position: absolute;
    top: 0.14rem;
    left: 0.14rem;
    width: 1.15rem;
    height: 1.15rem;
    border-radius: 50%;
    background: var(--card, #fff);
    box-shadow: 0 1px 3px color-mix(in srgb, var(--text, #0c1222) 18%, transparent);
    transition: transform 0.18s ease, background 0.18s ease;
}
.md-general-settings__option-toggle__switch input:checked + .md-general-settings__option-toggle__track {
    background: color-mix(in srgb, var(--primary) 72%, var(--primary-dark) 28%);
    border-color: color-mix(in srgb, var(--primary-dark) 55%, transparent);
    box-shadow: 0 0 0 1px color-mix(in srgb, var(--primary) 25%, transparent);
}
.md-general-settings__option-toggle__switch input:checked + .md-general-settings__option-toggle__track::after {
    transform: translateX(1.3rem);
    background: #fff;
}
.md-general-settings__option-toggle__switch input:focus-visible + .md-general-settings__option-toggle__track {
    outline: 2px solid var(--focus, var(--primary));
    outline-offset: 2px;
}
.md-general-settings__option-toggle.is-disabled {
    opacity: 0.62;
    cursor: not-allowed;
}
.md-general-settings__option-toggle.is-disabled .md-general-settings__option-toggle__switch input {
    cursor: not-allowed;
}
body.high-contrast .md-general-settings__option-toggle__switch input:checked + .md-general-settings__option-toggle__track {
    background: #ff0;
    border-color: #fff;
}
body.high-contrast .md-general-settings__option-toggle__switch input:checked + .md-general-settings__option-toggle__track::after {
    background: #000;
}
.md-general-settings-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr));
    gap: 1rem;
    align-items: stretch;
}
.md-general-settings-feature-card {
    margin: 0;
    padding: 1rem 1.1rem 0.25rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.28);
}
.md-general-settings-feature-card__legend {
    padding: 0 0.35rem;
    font-size: 0.95rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}
.md-general-settings-feature-card input,
.md-general-settings-feature-card textarea {
    margin-bottom: 0.75rem;
}
.md-general-settings-feature-card textarea {
    margin-bottom: 0.5rem;
    min-height: 7rem;
    resize: vertical;
}
.md-general-settings__subsection-title {
    margin: 1.25rem 0 0.5rem;
    font-size: 0.85rem;
    font-weight: 800;
}
.md-general-settings__table-wrap {
    overflow-x: auto;
    margin-bottom: 0.5rem;
}
.md-general-settings__tz-table select {
    margin-bottom: 0;
}
.md-general-settings__panel input[readonly] {
    cursor: default;
    background: color-mix(in srgb, var(--card) 88%, var(--border-subtle) 12%);
    color: var(--text-muted);
}
body.high-contrast .md-general-settings__panel input[readonly] {
    background: #000;
    color: #fff;
    border-color: #fff;
}
.md-general-settings__actions {
    margin-top: 1.5rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-subtle);
}
.md-general-settings-layout-fieldset {
    border: 0;
    margin: 0 0 1.25rem;
    padding: 0;
}
.md-general-settings-layout-legend {
    font-size: 0.95rem;
    font-weight: 800;
    margin: 0 0 0.5rem;
    padding: 0;
}
.md-general-settings-layout-toggle-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    margin-top: 0.35rem;
}
.md-general-settings-layout-option {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-weight: 600;
    max-width: 100%;
    cursor: pointer;
}
.md-general-settings-layout-option input {
    margin-top: 0.2rem;
    flex-shrink: 0;
}
.md-general-settings-stack-options {
    margin-top: 1rem;
    padding: 1rem 1.1rem 1.1rem;
    border-radius: var(--radius);
    border: 1px solid var(--border-subtle);
    background: rgba(255, 255, 255, 0.22);
}
.md-general-settings-stack-heading {
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 0.35rem;
}
.md-general-settings-photo-uploads {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.md-general-settings-photo-slot {
    padding: 0.75rem 0.85rem;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.35);
}
.md-general-settings-photo-slot__label {
    margin: 0 0 0.5rem;
    font-size: 0.9rem;
}
.md-general-settings-photo-slot__preview {
    margin: 0 0 0.5rem;
}
.md-general-settings__check-label--inline {
    margin-top: 0.65rem;
    font-size: 0.88rem;
}
.md-general-settings-emoji-fieldset {
    margin-top: 1.25rem;
}
.md-general-settings-emoji-fields {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
    gap: 0.75rem 1rem;
    margin-top: 0.75rem;
}
.md-general-settings-emoji-fields--dual {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-top: 0.75rem;
}
@media (min-width: 768px) {
    .md-general-settings-emoji-fields--dual {
        flex-direction: row;
        align-items: flex-start;
    }
    .md-general-settings-emoji-fields--dual > .md-general-settings-emoji-channel {
        flex: 1 1 45%;
        min-width: 0;
    }
}
.md-general-settings-emoji-channel__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr));
    gap: 0.75rem 1rem;
}
.md-general-settings-emoji-fields.is-disabled {
    opacity: 0.55;
}
.md-general-settings-emoji-slot label {
    font-size: 0.88rem;
}
select.home-feature-emoji-select {
    width: 100%;
    max-width: 100%;
    min-height: 2.5rem;
    font-size: 1.05rem;
    line-height: 1.35;
}
select.home-feature-band-transition-select {
    width: 100%;
    max-width: min(100%, 28rem);
    margin-top: 0.35rem;
}
body.high-contrast .md-general-settings-stack-options,
body.high-contrast .md-general-settings-photo-slot {
    background: #000;
    border-color: #fff;
}
body.high-contrast .md-general-settings-feature-card {
    background: #000;
    border-color: #fff;
}
body.high-contrast .md-general-settings-feature-card__legend {
    color: #fff;
}

/* General settings — theme picker preview cards (6 themes: fixed 2×3 / 3×2 so none sit alone stretched) */
.md-theme-preview-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0.75rem 0 0;
}
@media (min-width: 48rem) {
    .md-theme-preview-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.md-theme-preview-option {
    min-width: 0;
    border: 2px solid var(--border-subtle);
    border-radius: 12px;
    padding: 0.5rem 0.65rem 0.6rem;
    cursor: pointer;
    background: var(--card);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.md-theme-preview-option:hover {
    border-color: var(--primary);
}

.md-theme-preview-option:has(input:checked) {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px var(--accent);
}

.md-theme-preview-option input {
    margin: 0 0 0.35rem;
}

.md-theme-preview-option .md-theme-preview-label {
    display: block;
    font-weight: 700;
    font-size: 0.88rem;
    margin-bottom: 0.25rem;
}

.md-theme-preview-swatch {
    display: flex;
    height: 1.75rem;
    border-radius: 6px;
    overflow: hidden;
    margin-top: 0.2rem;
}

.md-theme-preview-swatch span {
    flex: 1;
    min-width: 0;
}

.md-general-settings-custom-theme {
    margin-top: 1rem;
    padding: 1rem 1.15rem;
    border-radius: 12px;
    border: 1px solid var(--border-subtle);
    background: color-mix(in srgb, var(--card) 88%, transparent);
}
.md-general-settings-custom-theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(13.5rem, 1fr));
    gap: 1rem 1.25rem;
    margin-top: 0.75rem;
}
.md-general-settings-custom-theme-grid label > span:first-child {
    display: block;
    font-weight: 700;
    margin-bottom: 0.35rem;
    font-size: 0.9rem;
}
.md-general-settings-custom-theme-grid input[type="color"] {
    width: 100%;
    height: 2.5rem;
    padding: 0.2rem;
    border-radius: 8px;
    border: 1px solid var(--border-subtle);
    cursor: pointer;
    background: var(--card);
}

/* Employee compliance logs (admin) */
.md-compliance-form label {
    display: block;
    margin-top: 0.85rem;
    font-weight: 600;
    font-size: 0.92rem;
}
.md-compliance-form label:first-of-type {
    margin-top: 0;
}
.md-compliance-form input[type="text"],
.md-compliance-form input[type="date"],
.md-compliance-form input[type="time"],
.md-compliance-form input[type="datetime-local"],
.md-compliance-form select,
.md-compliance-form textarea {
    width: 100%;
    max-width: 32rem;
    margin-top: 0.25rem;
}
.md-compliance-form button[type="submit"] {
    margin-top: 1.1rem;
}

/* Employee footer — micro page feedback */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

body.employee-area .employee-page-feedback {
    max-width: 1200px;
    margin: 0 auto 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

body.employee-area .employee-page-feedback__inner {
    text-align: center;
}

body.employee-area .employee-page-feedback__prompt {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

body.employee-area .employee-page-feedback__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
}

body.employee-area .employee-page-feedback__sentiment {
    display: inline-flex;
    gap: 0.35rem;
}

body.employee-area .employee-page-feedback__face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body.employee-area .employee-page-feedback__face:hover {
    border-color: color-mix(in srgb, var(--employee-accent) 45%, var(--card-border));
    transform: translateY(-1px);
}

body.employee-area .employee-page-feedback__face.is-selected {
    border-color: var(--employee-accent);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--employee-accent) 25%, transparent);
}

body.employee-area .employee-page-feedback__face:focus-visible {
    outline: 2px solid var(--focus, var(--employee-accent));
    outline-offset: 2px;
}

body.employee-area .employee-page-feedback__comment-wrap {
    flex: 1 1 12rem;
    max-width: 20rem;
    min-width: 10rem;
}

body.employee-area .employee-page-feedback__comment {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--bg-shine);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
}

body.employee-area .employee-page-feedback__submit {
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
}

body.employee-area .employee-page-feedback__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body.employee-area .employee-page-feedback__status {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

body.employee-area .employee-page-feedback__status--success {
    color: var(--success, #15803d);
}

body.employee-area .employee-page-feedback__status--error {
    color: var(--danger, #b91c1c);
}

@media (max-width: 520px) {
    body.employee-area .employee-page-feedback__controls {
        flex-direction: column;
        align-items: stretch;
    }
    body.employee-area .employee-page-feedback__sentiment {
        justify-content: center;
    }
    body.employee-area .employee-page-feedback__comment-wrap {
        max-width: none;
    }
}

/* Public tenant site footer — micro page feedback */
body:not(.employee-area) .public-page-feedback {
    max-width: 1200px;
    margin: 0 auto 1.25rem;
    padding: 0 0 1.25rem;
    border-bottom: 1px solid var(--card-border);
}

body:not(.employee-area) .public-page-feedback__inner {
    text-align: center;
}

body:not(.employee-area) .public-page-feedback__prompt {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}

body:not(.employee-area) .public-page-feedback__controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.5rem 0.65rem;
}

body:not(.employee-area) .public-page-feedback__sentiment {
    display: inline-flex;
    gap: 0.35rem;
}

body:not(.employee-area) .public-page-feedback__face {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    border-radius: 999px;
    border: 1px solid var(--card-border);
    background: var(--card);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

body:not(.employee-area) .public-page-feedback__face:hover {
    border-color: color-mix(in srgb, var(--primary) 45%, var(--card-border));
    transform: translateY(-1px);
}

body:not(.employee-area) .public-page-feedback__face.is-selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent);
}

body:not(.employee-area) .public-page-feedback__face:focus-visible {
    outline: 2px solid var(--focus, var(--primary));
    outline-offset: 2px;
}

body:not(.employee-area) .public-page-feedback__comment-wrap {
    flex: 1 1 12rem;
    max-width: 20rem;
    min-width: 10rem;
}

body:not(.employee-area) .public-page-feedback__comment {
    width: 100%;
    padding: 0.45rem 0.65rem;
    border-radius: 8px;
    border: 1px solid var(--card-border);
    background: var(--bg-shine);
    color: var(--text);
    font: inherit;
    font-size: 0.9rem;
}

body:not(.employee-area) .public-page-feedback__submit {
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
}

body:not(.employee-area) .public-page-feedback__submit:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

body:not(.employee-area) .public-page-feedback__status {
    margin: 0.65rem 0 0;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-muted);
}

body:not(.employee-area) .public-page-feedback__status--success {
    color: var(--success, #15803d);
}

body:not(.employee-area) .public-page-feedback__status--error {
    color: var(--danger, #b91c1c);
}

@media (max-width: 520px) {
    body:not(.employee-area) .public-page-feedback__controls {
        flex-direction: column;
        align-items: stretch;
    }
    body:not(.employee-area) .public-page-feedback__sentiment {
        justify-content: center;
    }
    body:not(.employee-area) .public-page-feedback__comment-wrap {
        max-width: none;
    }
}
