body {
    min-height: 100vh;
}

.public-main {
    max-width: 1560px;
    padding-left: clamp(1rem, 2.2vw, 2.5rem);
    padding-right: clamp(1rem, 2.2vw, 2.5rem);
}

.public-navbar {
    position: relative;
    z-index: 1040;
    min-height: 82px;
    background: #091b3d;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 14px 34px rgba(8, 18, 40, 0.2);
}

.public-navbar-container {
    max-width: 1680px;
}

.public-brand {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-width: 190px;
    min-height: 68px;
    color: #fff;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.02;
}

.public-brand:hover,
.public-brand:focus {
    color: #fff;
}

.public-brand-logo {
    font-size: clamp(1.25rem, 1.55vw, 1.62rem);
    font-weight: 800;
    color: #fff;
}

.public-brand-prefix,
.public-brand-name {
    font-size: clamp(0.78rem, 0.85vw, 0.9rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.76);
}

.public-navbar-collapse {
    justify-content: space-between;
    gap: 1.1rem;
}

.public-nav-menu {
    align-items: center;
    gap: clamp(1rem, 2.2vw, 2.35rem);
    margin: 0 auto 0 0.85rem;
}

.public-nav-link {
    color: rgba(255, 255, 255, 0.82);
    font-size: clamp(1rem, 1.25vw, 1.35rem);
    font-weight: 500;
    white-space: nowrap;
}

.public-nav-link:hover,
.public-nav-link:focus,
.public-nav-link.show {
    color: #fff;
}

.public-nav-button {
    border: 0;
    background: transparent;
}

.public-nav-actions {
    display: flex;
    align-items: center;
    gap: clamp(0.75rem, 1.4vw, 1.5rem);
}

.public-login-link {
    color: rgba(255, 255, 255, 0.86);
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
}

.public-login-link:hover,
.public-login-link:focus {
    color: #fff;
}

.public-register-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 56px;
    padding: 0.9rem 1.55rem;
    border: 1px solid #fff;
    border-radius: 1.35rem;
    background: #fff;
    color: #091b3d;
    font-size: clamp(1rem, 1.2vw, 1.25rem);
    font-weight: 700;
    text-decoration: none;
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
    white-space: nowrap;
}

.public-register-button:hover,
.public-register-button:focus {
    background: #eef3ff;
    color: #091b3d;
}

.public-language-select {
    width: auto;
    min-width: 96px;
    border-radius: 0.75rem;
    border-color: rgba(255, 255, 255, 0.28);
    background-color: rgba(255, 255, 255, 0.08);
    color: #fff;
}

.public-language-select option {
    color: #091b3d;
}

.public-mega-item {
    position: static;
}

.public-mega-menu {
    left: 50% !important;
    width: min(1420px, calc(100vw - 2rem));
    margin-top: 1.25rem !important;
    padding: 3rem 3.6rem;
    border: 1px solid #edeff4;
    border-radius: 1.6rem;
    box-shadow: 0 28px 70px rgba(22, 27, 38, 0.14);
    transform: translateX(-50%) !important;
}

.public-features-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.9rem 4.2rem;
}

.public-feature-link {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    min-height: 44px;
    color: #2d333d;
    font-size: clamp(1.05rem, 1.35vw, 1.35rem);
    font-weight: 600;
    text-decoration: none;
}

.public-feature-link i {
    width: 28px;
    color: #4b535f;
    font-size: 1.35rem;
    line-height: 1;
}

.public-feature-link:hover,
.public-feature-link:focus {
    color: #05070d;
}

.public-feature-link:hover i,
.public-feature-link:focus i {
    color: #05070d;
}

.public-simple-menu {
    margin-top: 1rem !important;
    padding: 0.75rem;
    border: 1px solid #edeff4;
    border-radius: 1rem;
    box-shadow: 0 22px 46px rgba(22, 27, 38, 0.12);
}

.public-simple-menu .dropdown-item {
    border-radius: 0.65rem;
    padding: 0.65rem 0.85rem;
    color: #2d333d;
    font-weight: 500;
}

.public-navbar-toggler {
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 0.8rem;
}

.public-navbar-toggler .navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.9%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.home-hero-section,
.home-steps-row {
    max-width: 1480px;
    margin-left: auto;
    margin-right: auto;
}

.home-hero-actions {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.75rem;
}

.home-hero-actions .btn {
    white-space: nowrap;
}

.home-industries-section {
    margin: 2.5rem auto 2rem;
    max-width: 1480px;
}

.home-industries-title {
    margin: 0 auto 1.8rem;
    max-width: 820px;
    color: #1f2438;
    font-size: clamp(2rem, 4vw, 3.4rem);
    font-weight: 800;
    line-height: 1.12;
    text-align: center;
}

.home-industries-title span {
    color: #3f7af3;
}

.home-industries-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.25rem;
}

.home-industry-card {
    min-height: 280px;
    padding: 1.9rem 1.8rem;
    border-radius: 0.5rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 36, 56, 0.08);
}

.home-industry-icon {
    display: block;
    margin-bottom: 1.45rem;
    font-size: 2.15rem;
    line-height: 1;
}

.home-industry-icon-beauty {
    color: #db5fb5;
}

.home-industry-icon-health {
    color: #5cc0c3;
}

.home-industry-icon-education {
    color: #ed7a48;
}

.home-industry-icon-sport {
    color: #62be70;
}

.home-industry-card h3 {
    margin: 0 0 1.1rem;
    color: #05070d;
    font-size: 1.55rem;
    font-weight: 800;
}

.home-industry-card p {
    margin: 0;
    color: #8390a1;
    font-size: 1.08rem;
    line-height: 1.45;
}

.home-automation-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
    margin: 2.5rem auto 0;
    max-width: 1480px;
    padding: 2rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 36, 56, 0.08);
}

.home-automation-media {
    min-width: 0;
    overflow: hidden;
    border-radius: 0.75rem;
    background: #f7f8fb;
}

.home-automation-media img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    object-position: left center;
}

.home-automation-copy h2 {
    margin: 0 0 1rem;
    color: #1f2438;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
}

.home-automation-copy p {
    margin: 0;
    color: #667085;
    font-size: 1.25rem;
    line-height: 1.55;
}

.home-insights-section {
    display: grid;
    grid-template-columns: minmax(320px, 0.85fr) minmax(0, 1.15fr);
    gap: 2rem;
    align-items: center;
    margin: 2.5rem auto 0;
    max-width: 1480px;
    padding: 2rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 36, 56, 0.08);
}

.home-insights-copy h2 {
    margin: 0 0 1rem;
    color: #1f2438;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
}

.home-insights-copy p {
    margin: 0;
    color: #667085;
    font-size: 1.25rem;
    line-height: 1.55;
}

.home-insights-preview {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 0.75rem;
    background: #f1f4f8;
}

.home-insights-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9.75;
    object-fit: cover;
    object-position: left top;
}

.home-retention-section {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
    gap: 2rem;
    align-items: center;
    margin: 2.5rem auto 0;
    max-width: 1480px;
    padding: 2rem;
    border-radius: 0.75rem;
    background: #fff;
    box-shadow: 0 18px 44px rgba(31, 36, 56, 0.08);
}

.home-retention-copy h2 {
    margin: 0 0 1rem;
    color: #1f2438;
    font-size: clamp(2rem, 3.2vw, 3rem);
    font-weight: 800;
    line-height: 1.12;
}

.home-retention-copy p {
    margin: 0;
    color: #667085;
    font-size: 1.25rem;
    line-height: 1.55;
}

.home-retention-preview {
    min-width: 0;
    overflow: hidden;
    border: 1px solid #dfe5ee;
    border-radius: 0.75rem;
    background: #f7f9fc;
}

.home-retention-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 7.35;
    object-fit: cover;
    object-position: left center;
}

.home-startup-offer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1.5rem;
    margin: 2.5rem auto 0;
    max-width: 1480px;
    padding: 2rem;
    border: 1px solid rgba(63, 122, 243, 0.18);
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
    box-shadow: 0 18px 44px rgba(31, 36, 56, 0.08);
}

.home-startup-offer h2 {
    margin: 0 0 0.75rem;
    color: #1f2438;
    font-size: clamp(1.7rem, 2.8vw, 2.5rem);
    font-weight: 800;
    line-height: 1.12;
}

.home-startup-offer p {
    margin: 0;
    max-width: 780px;
    color: #667085;
    font-size: 1.15rem;
    line-height: 1.55;
}

.home-startup-offer .btn {
    flex: 0 0 auto;
}

.public-footer {
    margin-top: 3rem;
    background: #17243a;
    color: #f7f9ff;
}

.public-footer-inner {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, max-content));
    gap: clamp(2rem, 4vw, 4.5rem);
    justify-content: center;
    max-width: 1840px;
    margin: 0 auto;
    padding: clamp(2.4rem, 4vw, 4.5rem) clamp(1.25rem, 3.8vw, 4.5rem);
}

.public-footer-column {
    text-align: left;
}

.public-footer-column h2 {
    margin: 0 0 2.6rem;
    color: #a8b2c4;
    font-size: clamp(0.88rem, 1vw, 1.1rem);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.15;
    text-transform: uppercase;
}

.public-footer-links {
    display: grid;
    grid-template-columns: repeat(2, minmax(180px, 1fr));
    gap: 2rem clamp(2rem, 5vw, 5.5rem);
    justify-items: start;
}

.public-footer-links a,
.public-footer-contact a {
    color: #fff;
    font-size: clamp(0.9rem, 1.05vw, 1.12rem);
    font-weight: 500;
    line-height: 1.25;
    text-decoration: none;
}

.public-footer-links a:hover,
.public-footer-links a:focus,
.public-footer-contact a:hover,
.public-footer-contact a:focus {
    color: #cfe0ff;
}

.public-footer-app-row {
    display: flex;
    align-items: center;
    justify-content: center;
    grid-column: 1 / -1;
    gap: 1.5rem;
    margin-top: -0.5rem;
}

.public-footer-app-row span {
    color: #9faabd;
    font-size: clamp(0.9rem, 1.05vw, 1.12rem);
    font-weight: 500;
    line-height: 1.2;
}

.public-footer-apps {
    display: flex;
    flex: 0 0 auto;
    gap: clamp(0.8rem, 1.6vw, 1.5rem);
}

.public-footer-app-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: clamp(2.6rem, 3.2vw, 3.45rem);
    height: clamp(2.6rem, 3.2vw, 3.45rem);
    border-radius: 50%;
    background: #303d53;
    color: #fff;
    text-decoration: none;
}

.public-footer-app-link i {
    font-size: clamp(1.3rem, 1.75vw, 1.8rem);
    line-height: 1;
}

.public-footer-app-link:hover,
.public-footer-app-link:focus {
    background: #3d4d67;
    color: #fff;
}

.employee-card {
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.employee-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.08);
}

.empty-state {
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    background: #f8fafc;
}

.slot-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 0.25rem;
}

.slot-card {
    border: 1px solid #dbe3ef;
    border-radius: 0.9rem;
    padding: 0.9rem;
    background: #fff;
    min-height: 110px;
    min-width: calc(160px * var(--slot-width-ratio, 1));
    width: calc(160px * var(--slot-width-ratio, 1));
    flex: 0 0 calc(160px * var(--slot-width-ratio, 1));
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.slot-card-free {
    cursor: pointer;
    background: linear-gradient(180deg, #ffffff 0%, #f4fbf6 100%);
}

.slot-card-free:hover,
.slot-card-free:focus {
    transform: translateY(-1px);
    box-shadow: 0 0.5rem 1rem rgba(25, 135, 84, 0.12);
    border-color: #8fd19e;
    outline: none;
}

.slot-card-booked {
    background: linear-gradient(180deg, #fff5f8 0%, #ffd9e4 100%);
    border-color: #f0a8bc;
}

.past-day-card {
    background: #f3f4f6;
    color: #6b7280;
}

.past-day-panel {
    background: #e5e7eb !important;
}

.slot-card-locked {
    background: linear-gradient(180deg, #f3f4f6 0%, #e5e7eb 100%);
    border-color: #cbd5e1;
    color: #6b7280;
    cursor: default;
    pointer-events: none;
    box-shadow: none;
}

.dashboard-body {
    margin: 0;
    background:
        radial-gradient(circle at top left, rgba(255, 236, 214, 0.65), transparent 24%),
        linear-gradient(180deg, #f7f4ef 0%, #f2f6fb 100%);
    color: #2f3444;
}

.dashboard-shell {
    display: flex;
    flex-direction: row-reverse;
    min-height: 100vh;
    gap: 1.25rem;
    padding: 1rem;
    position: relative;
    overflow: visible;
}

.dashboard-sidebar {
    width: 320px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(18px);
    border: 1px solid rgba(222, 226, 235, 0.9);
    border-radius: 2rem;
    box-shadow: 0 24px 60px rgba(39, 51, 89, 0.1);
    padding: 1.4rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    position: relative;
    z-index: 30;
    overflow: visible;
}

.dashboard-main {
    flex: 1;
    min-width: 0;
    position: relative;
}

.dashboard-brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    padding: 0.25rem 0.25rem 0.75rem;
}

.dashboard-brand-logo {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #f0c986, #c89644);
    color: #fff;
    font-weight: 700;
}

.dashboard-brand-title {
    font-size: 1.1rem;
    font-weight: 700;
}

.dashboard-brand-subtitle {
    color: #8b90a0;
    font-size: 0.9rem;
}

.dashboard-calendar-card,
.studio-panel {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(222, 226, 235, 0.9);
    border-radius: 1.75rem;
    box-shadow: 0 18px 44px rgba(39, 51, 89, 0.08);
}

.dashboard-calendar-card {
    padding: 1rem;
}

.dashboard-calendar-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.9rem;
}

.calendar-nav-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    color: #596074;
    text-decoration: none;
    background: #f5f6fa;
}

.dashboard-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.35rem;
    margin-bottom: 0.35rem;
}

.dashboard-calendar-weekdays span {
    text-align: center;
    font-size: 0.8rem;
    color: #8d93a5;
    text-transform: lowercase;
}

.calendar-day {
    height: 2.4rem;
    border-radius: 0.85rem;
    display: grid;
    place-items: center;
    text-decoration: none;
    color: #31384b;
    font-weight: 500;
}

.calendar-day-muted {
    color: #bcc1cf;
}

.calendar-day-today {
    box-shadow: inset 0 0 0 1px #d8ac56;
}

.calendar-day-selected {
    background: #ffe7a8;
}

.calendar-day-working {
    background: #d8f0dd;
    box-shadow: inset 0 0 0 1px #93c7a0;
}

.calendar-day-working.calendar-day-selected {
    background: linear-gradient(180deg, #ffe7a8 0%, #d8f0dd 100%);
}

.dashboard-nav {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.dashboard-nav-group {
    display: grid;
    gap: 0.25rem;
}

.dashboard-nav-caret {
    margin-left: auto;
    font-size: 0.85rem;
}

.dashboard-nav-children {
    display: none;
    gap: 0.15rem;
    padding: 0.25rem;
    border: 1px solid #e2e7f0;
    border-radius: 0.9rem;
    background: rgba(255, 255, 255, 0.82);
}

.dashboard-nav-group.expanded .dashboard-nav-children {
    display: grid;
}

.dashboard-nav-child {
    display: block;
    padding: 0.65rem 0.9rem 0.65rem 2.75rem;
    border-radius: 0.55rem;
    color: #596074;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.93rem;
}

.dashboard-nav-child.active {
    background: #fff;
    color: #1f2433;
    box-shadow: inset 3px 0 0 #d9473f;
}

.dashboard-sidebar-checkpoint-label {
    color: #8b90a0;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.55rem;
}

.dashboard-sidebar-toggle {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.45rem;
    background: #f5f6fa;
    border-radius: 1rem;
    padding: 0.35rem;
}

.dashboard-sidebar-toggle-btn {
    border: 0;
    background: transparent;
    color: #667089;
    border-radius: 0.8rem;
    padding: 0.7rem 0.85rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.dashboard-sidebar-toggle-btn.active {
    background: #fff;
    color: #2f3444;
    box-shadow: 0 10px 22px rgba(39, 51, 89, 0.08);
}

.dashboard-sidebar-toggle-btn:disabled {
    color: #a8afbf;
    cursor: not-allowed;
    opacity: 0.65;
}

.dashboard-sidebar-panel-stack {
    margin-top: auto;
    position: relative;
    overflow: visible;
}

.dashboard-sidebar-panel {
    min-height: 332px;
}

.dashboard-assistant-card {
    position: absolute;
    top: 0;
    right: 0;
    width: min(680px, calc(100vw - 3rem));
    min-width: min(680px, calc(100vw - 3rem));
    z-index: 60;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 28px 60px rgba(39, 51, 89, 0.16);
}

.modal-backdrop {
    z-index: 1050;
}

.modal {
    z-index: 1055;
}

.dashboard-assistant-head {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    align-items: flex-start;
}

.dashboard-assistant-head-actions {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.dashboard-assistant-status {
    background: #e1f6e8;
    color: #2c7d4f;
    border-radius: 999px;
    padding: 0.35rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
}

.dashboard-assistant-close {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 50%;
    background: #f5f6fa;
    color: #596074;
    display: grid;
    place-items: center;
}

.dashboard-assistant-messages {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    max-height: 420px;
    overflow-y: auto;
    padding-right: 0.2rem;
}

.dashboard-assistant-message {
    border-radius: 1rem;
    padding: 0.8rem 0.9rem;
    font-size: 0.92rem;
    line-height: 1.4;
}

.dashboard-assistant-message-bot {
    background: #f5f6fa;
    color: #2f3444;
}

.dashboard-assistant-message-user {
    background: #ffe7a8;
    color: #2f3444;
    margin-left: 1.5rem;
}

.dashboard-assistant-input {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    margin-top: auto;
}

.dashboard-assistant-send {
    margin-top: 0;
}

.dashboard-assistant-send:disabled {
    opacity: 0.7;
    cursor: wait;
}

.dashboard-assistant-status-error {
    background: #fde7e7;
    color: #b44a4a;
}

.dashboard-nav-item,
.dashboard-logout-btn {
    border: 0;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 0.95rem 1rem;
    border-radius: 1rem;
    background: transparent;
    color: #42485a;
    text-decoration: none;
    font-size: 1.05rem;
}

.dashboard-nav-item.active {
    background: #f1f4fb;
    color: #1f2433;
    font-weight: 700;
}

.dashboard-nav-item-disabled {
    opacity: 0.5;
}

.dashboard-nav-item {
    min-height: 56px;
}

.dashboard-disabled-by-role {
    opacity: 0.5;
    pointer-events: none;
    cursor: not-allowed;
}

.dashboard-logout-btn {
    justify-content: center;
    background: #232837;
    color: #fff;
}

.dashboard-flashes {
    margin-bottom: 1rem;
}

.settings-page {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.settings-hero,
.settings-action-card,
.settings-log-card,
.settings-section-card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(222, 226, 235, 0.9);
    border-radius: 0.75rem;
    box-shadow: 0 10px 28px rgba(39, 51, 89, 0.05);
}

.settings-hero {
    padding: 1.5rem 1.6rem;
}

.settings-title {
    margin: 0;
    font-size: 2rem;
    font-weight: 700;
}

.settings-subtitle {
    margin: 0.45rem 0 0;
    color: #667089;
    max-width: 760px;
}

.settings-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1rem;
}

.settings-action-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.2rem 1.25rem;
    color: #2f3444;
    text-decoration: none;
    font: inherit;
    border: 1px solid rgba(222, 226, 235, 0.9);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.settings-action-card:hover,
.settings-action-card:focus {
    transform: translateY(-1px);
    border-color: #d8ac56;
    box-shadow: 0 20px 46px rgba(39, 51, 89, 0.12);
}

.settings-action-card.active {
    border-color: #d8ac56;
    background: linear-gradient(180deg, rgba(255, 247, 224, 0.95) 0%, rgba(255, 255, 255, 0.96) 100%);
}

.settings-action-icon {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: #f6ead0;
    color: #8f6924;
    font-size: 1.15rem;
    flex: 0 0 auto;
}

.settings-action-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.settings-action-description {
    color: #667089;
    margin-top: 0.3rem;
    line-height: 1.45;
}

.settings-language-form {
    width: 100%;
    text-align: left;
}

.settings-language-body {
    flex: 1;
    min-width: 0;
}

.settings-language-controls {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
    align-items: center;
}

.settings-language-controls .dashboard-logout-btn {
    width: auto;
    white-space: nowrap;
}

.settings-log-section {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
    gap: 1rem;
}

.settings-log-card {
    padding: 1.15rem;
    min-width: 0;
}

.settings-log-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: flex-start;
    margin-bottom: 0.85rem;
}

.settings-log-title {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 700;
}

.settings-log-path {
    color: #8b90a0;
    font-size: 0.8rem;
    text-align: right;
    word-break: break-all;
    max-width: 46%;
}

.settings-log-output {
    margin: 0;
    min-height: 320px;
    max-height: 640px;
    overflow: auto;
    padding: 1rem;
    border-radius: 1.2rem;
    background: #1f2433;
    color: #edf2ff;
    font-size: 0.84rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
}

.settings-page-board {
    gap: 1rem;
}

.settings-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(260px, 1fr));
    gap: 1rem;
    align-items: start;
}

.settings-board-column {
    display: grid;
    gap: 1rem;
}

.settings-section-card {
    padding: 1.45rem 1.55rem;
    min-width: 0;
}

.settings-section-card.active {
    border-color: #d8ac56;
}

.settings-section-card-wide {
    grid-column: span 1;
}

.settings-section-title {
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 1rem;
    font-weight: 700;
    color: #303544;
}

.settings-section-title i {
    color: #768092;
    font-size: 1.05rem;
}

.settings-link-list {
    display: grid;
    gap: 0.75rem;
    color: #667089;
    font-size: 0.95rem;
}

.settings-link-list span,
.settings-link-list a {
    width: fit-content;
}

.settings-link-list a {
    color: inherit;
    text-decoration: none;
}

.settings-link-list span:hover,
.settings-link-list a:hover,
.settings-link-list a:focus {
    color: #303544;
}

.settings-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin-bottom: 1rem;
}

.settings-tab {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0.35rem 0.65rem;
    border: 1px solid transparent;
    border-radius: 0.5rem;
    color: #667089;
    text-decoration: none;
    font-size: 0.92rem;
    line-height: 1.2;
}

.settings-tab:hover,
.settings-tab:focus {
    color: #303544;
    border-color: #e2e6ef;
}

.settings-tab.active {
    color: #303544;
    background: #fff3bf;
    border-color: #f2dc87;
}

.settings-logs-panel {
    display: block;
}

.settings-logs-panel .settings-log-head {
    align-items: center;
}

.settings-logs-panel .settings-section-title {
    margin-bottom: 0;
}

.settings-logs-panel .settings-log-path {
    max-width: none;
    text-align: left;
    margin-bottom: 0.75rem;
}

.analytics-page {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-height: calc(100vh - 2rem);
    background: #f1f3f7;
    border: 1px solid #dde3ec;
    border-radius: 0.75rem;
    overflow: hidden;
}

.analytics-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.05rem 1.4rem;
    background: #fff;
    border-bottom: 1px solid #e3e7ef;
}

.analytics-menu-button {
    width: 38px;
    height: 38px;
    border: 1px solid #dce3ee;
    border-radius: 0.55rem;
    background: #fff;
    color: #546074;
}

.analytics-title {
    margin: 0;
    font-size: 1.45rem;
    font-weight: 600;
    color: #3a4050;
}

.analytics-subtitle {
    color: #c1c6d0;
    font-size: 0.9rem;
}

.analytics-info-icon {
    color: #8f97a8;
}

.analytics-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(180px, 1fr));
    gap: 0.8rem 1.35rem;
    padding: 1.15rem 1.4rem;
    background: #fff;
    border-bottom: 1px solid #e3e7ef;
}

.analytics-date-field,
.analytics-select {
    min-height: 42px;
    border: 1px solid #dce2eb;
    background: #fff;
    color: #7d8494;
}

.analytics-date-field {
    display: grid;
    grid-template-columns: 42px 1fr;
}

.analytics-date-field span {
    display: grid;
    place-items: center;
    border-right: 1px solid #dce2eb;
    color: #8190a4;
    font-size: 0.9rem;
}

.analytics-date-field input,
.analytics-select {
    width: 100%;
    border: 0;
    padding: 0 0.75rem;
    color: #7d8494;
    background: transparent;
}

.analytics-select {
    padding: 0 0.75rem;
}

.analytics-show-button {
    grid-column: 3;
    min-height: 42px;
    border: 0;
    border-radius: 0.25rem;
    background: #e7aa5b;
    color: #fff;
    font-weight: 600;
}

.analytics-period-note {
    grid-column: 1 / 3;
    color: #7f8799;
    align-self: center;
    font-size: 0.94rem;
}

.analytics-reports-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(280px, 1fr));
    gap: 1.4rem;
    padding: 1.4rem;
}

.analytics-report-card {
    min-height: 166px;
    padding: 1.65rem 1.75rem;
    border: 1px solid #dfe5ee;
    border-radius: 0.55rem;
    background: #fff;
}

.analytics-report-title {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    color: #4f5665;
    font-size: 1.05rem;
    font-weight: 700;
}

.analytics-report-title i {
    color: #727987;
    font-size: 1rem;
}

.analytics-report-links {
    display: grid;
    gap: 0.7rem;
}

.analytics-report-links a {
    width: fit-content;
    color: #7b8393;
    font-size: 0.95rem;
    line-height: 1.25;
    text-decoration: none;
}

.analytics-report-links a:hover,
.analytics-report-links a:focus {
    color: #303544;
}

.analytics-export-button {
    position: absolute;
    top: 2.55rem;
    right: 1.55rem;
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    padding: 0.45rem 0.95rem;
    border: 1px solid #dce3ee;
    border-radius: 0.45rem;
    background: #fff;
    color: #596074;
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
}

.analytics-return-filter {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) minmax(260px, 1fr);
    gap: 1.9rem;
    padding: 1.15rem 1.35rem 4.4rem;
    background: #fff;
    border-bottom: 1px solid #e3e7ef;
}

.analytics-return-filter .analytics-show-button {
    grid-column: 3;
    justify-self: end;
    width: min(100%, 290px);
    margin-top: 1.85rem;
}

.analytics-return-table-wrap {
    margin: 2.75rem 1.35rem 1.35rem;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #dfe5ee;
}

.analytics-return-table {
    width: 100%;
    min-width: 980px;
    border-collapse: collapse;
    color: #8a92a2;
    font-size: 0.94rem;
}

.analytics-return-table th,
.analytics-return-table td {
    padding: 0.85rem 1rem;
    border: 1px solid #edf0f4;
    text-align: center;
    vertical-align: middle;
}

.analytics-return-table th {
    color: #686f7c;
    font-weight: 700;
    background: #fff;
}

.analytics-return-table th:first-child,
.analytics-return-table td:first-child {
    width: 34%;
    text-align: left;
}

.analytics-return-table tbody tr:nth-child(odd) {
    background: #fbfbfc;
}

.analytics-return-employee {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.analytics-return-employee img,
.analytics-return-employee > span {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    flex: 0 0 38px;
}

.analytics-return-employee img {
    object-fit: cover;
}

.analytics-return-employee > span {
    display: grid;
    place-items: center;
    background: #d9deea;
    color: #fff;
    font-size: 1.3rem;
}

.analytics-return-employee strong,
.analytics-return-employee small {
    display: block;
}

.analytics-return-employee strong {
    color: #666d7b;
}

.analytics-return-employee small {
    margin-top: 0.15rem;
    color: #8a92a2;
}

.analytics-metric-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(220px, 1fr));
    gap: 1.35rem;
    padding: 1.35rem 1.4rem 0;
}

.analytics-metric-card {
    min-height: 120px;
    border: 1px solid #dfe5ee;
    background: #fff;
}

.analytics-metric-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e3e7ef;
    color: #5c6474;
}

.analytics-metric-head i,
.analytics-chart-tabs i {
    color: #c0c5cf;
}

.analytics-metric-value {
    padding: 0.8rem 1rem 0;
    color: #7c838f;
    font-size: 1.8rem;
    font-weight: 300;
}

.analytics-metric-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0 1rem 0.85rem;
    color: #7d8494;
    font-size: 0.9rem;
}

.analytics-metric-foot strong {
    white-space: nowrap;
}

.analytics-metric-foot .is-positive {
    color: #5caf8c;
}

.analytics-metric-foot .is-negative {
    color: #dd6f79;
}

.analytics-chart-panel {
    margin: 0 1.4rem 1.4rem;
    min-height: 330px;
    border: 1px solid #dfe5ee;
    background: #fff;
}

.analytics-chart-tabs {
    display: flex;
    align-items: center;
    gap: 0;
    padding: 0.8rem 1rem;
    color: #7d8494;
}

.analytics-tab-button {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dce2eb;
    padding: 0.25rem 0.5rem;
    background: #fff;
    color: #7d8494;
    font-size: 0.82rem;
    text-decoration: none;
}

.analytics-tab-button.active {
    background: #f7f8fa;
    color: #576071;
}

.analytics-tab-panel {
    display: none;
}

.analytics-tab-panel.active {
    display: grid;
}

.analytics-chart-layout {
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 1.4rem;
    padding: 0.6rem 1rem 1rem;
}

.analytics-chart {
    height: 260px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(18px, 1fr));
    align-items: end;
    gap: 0.45rem;
    padding: 1rem 0 1.6rem;
    border-left: 1px solid #cfd6e1;
    border-bottom: 1px solid #cfd6e1;
    background:
        linear-gradient(180deg, transparent calc(25% - 1px), #edf0f4 calc(25% - 1px), #edf0f4 25%, transparent 25%),
        linear-gradient(180deg, transparent calc(50% - 1px), #edf0f4 calc(50% - 1px), #edf0f4 50%, transparent 50%),
        linear-gradient(180deg, transparent calc(75% - 1px), #edf0f4 calc(75% - 1px), #edf0f4 75%, transparent 75%);
}

.analytics-chart-column {
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
}

.analytics-chart-bar {
    width: 72%;
    min-height: 1px;
    background: rgba(102, 192, 169, 0.42);
}

.analytics-chart-column span {
    color: #8a92a2;
    font-size: 0.7rem;
    writing-mode: vertical-rl;
    transform: rotate(180deg);
}

.analytics-client-panel {
    display: grid;
    gap: 0.85rem;
    align-content: start;
}

.analytics-client-card {
    position: relative;
    padding: 0.9rem 1rem;
    background: #fff;
    box-shadow: 0 4px 12px rgba(39, 51, 89, 0.1);
}

.analytics-client-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.75rem;
}

.analytics-client-top strong {
    color: #8a8f9b;
    font-size: 1.45rem;
    font-weight: 300;
}

.analytics-client-top a {
    color: #5d8fcc;
    text-decoration: none;
    font-size: 0.82rem;
}

.analytics-client-label,
.analytics-client-share {
    color: #8a92a2;
    font-size: 0.82rem;
}

.analytics-client-progress {
    height: 4px;
    margin-top: 0.5rem;
    background: #e7ecef;
}

.analytics-client-progress span {
    display: block;
    height: 100%;
    background: #60b99c;
}

.analytics-client-share {
    position: absolute;
    right: 1rem;
    bottom: 0.82rem;
}

.analytics-bookings-view {
    gap: 1.3rem;
    padding: 0.8rem 1rem 1.2rem;
}

.analytics-booking-card-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(160px, 1fr));
    gap: 1.35rem;
}

.analytics-booking-card,
.analytics-booking-pie-panel {
    border: 1px solid #dfe5ee;
    background: #fff;
}

.analytics-booking-card-head,
.analytics-booking-pie-panel header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    min-height: 54px;
    padding: 0.85rem 1rem;
    border-bottom: 1px solid #e3e7ef;
    color: #5c6474;
}

.analytics-booking-card-head i,
.analytics-booking-pie-panel header i {
    color: #c0c5cf;
}

.analytics-booking-card-body {
    padding: 0.85rem 1rem 1rem;
}

.analytics-booking-card-value {
    color: #b5bac3;
    font-size: 1.9rem;
    font-weight: 300;
    line-height: 1.1;
}

.analytics-booking-card-foot {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    color: #7d8494;
    font-size: 0.88rem;
}

.analytics-booking-card-foot strong {
    white-space: nowrap;
}

.analytics-booking-card-foot .is-positive {
    color: #5caf8c;
}

.analytics-booking-card-foot .is-negative {
    color: #dd6f79;
}

.analytics-booking-card-foot .is-neutral {
    color: #628fcc;
}

.analytics-booking-pie-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.35rem;
}

.analytics-booking-pie-layout {
    min-height: 260px;
    display: grid;
    grid-template-columns: minmax(180px, 290px) minmax(150px, 1fr);
    align-items: center;
    gap: 1.2rem;
    padding: 1.1rem 1.4rem 1.2rem;
}

.analytics-booking-pie-layout.is-centered {
    justify-content: center;
}

.analytics-booking-pie {
    width: min(100%, 230px);
    aspect-ratio: 1;
    border-radius: 50%;
    justify-self: center;
}

.analytics-booking-legend {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    padding: 0;
    list-style: none;
    color: #6d7481;
    font-size: 0.86rem;
}

.analytics-booking-legend li {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    min-width: 0;
}

.analytics-booking-legend span {
    width: 13px;
    height: 13px;
    flex: 0 0 13px;
    border: 2px solid #e3e7ef;
}

.analytics-occupancy-list {
    min-height: 260px;
    display: grid;
    align-content: start;
    gap: 0.85rem;
    padding: 1.1rem 1.25rem 1.2rem;
}

.analytics-occupancy-row {
    display: grid;
    gap: 0.38rem;
}

.analytics-occupancy-row-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    color: #5c6474;
    font-size: 0.92rem;
}

.analytics-occupancy-row-head span {
    color: #628fcc;
    font-weight: 700;
}

.analytics-occupancy-bar {
    height: 8px;
    background: #e7ecef;
}

.analytics-occupancy-bar span {
    display: block;
    height: 100%;
    background: #61b596;
}

.analytics-occupancy-row-meta,
.analytics-occupancy-empty {
    color: #8a92a2;
    font-size: 0.82rem;
}

.board-topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0.5rem 0.25rem 1rem;
    flex-wrap: wrap;
}

.board-topbar-left,
.board-topbar-right {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    flex-wrap: wrap;
}

.today-btn,
.board-filter-pill,
.board-nav-pager a,
.studio-chip,
.board-nav-arrow {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(222, 226, 235, 0.9);
    color: #31384b;
    border-radius: 0.95rem;
    padding: 0.75rem 1rem;
    text-decoration: none;
}

.board-filter-form {
    margin: 0;
}

.board-filter-nav {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.board-filter-select {
    min-width: 220px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(222, 226, 235, 0.9);
    color: #31384b;
    border-radius: 0.95rem;
    padding: 0.75rem 2.5rem 0.75rem 1rem;
    appearance: none;
}

.board-nav-arrow-disabled {
    opacity: 0.45;
    pointer-events: none;
}

.board-nav-pager {
    display: flex;
}

.board-nav-pager a {
    width: 44px;
    text-align: center;
    padding: 0.75rem 0;
}

.board-nav-arrow {
    width: 44px;
    text-align: center;
    padding: 0.75rem 0;
}

.board-title,
.studio-page-title {
    font-size: clamp(1.7rem, 2.6vw, 2.45rem);
    font-weight: 700;
    margin: 0;
}

.board-title-inline {
    margin-inline: 0.15rem;
}

.section-eyebrow {
    color: #9aa0af;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.studio-panel {
    padding: 1.4rem;
}

.studio-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.2rem;
}

.studio-input {
    border-radius: 1rem;
    border: 1px solid #d7deea;
    padding: 0.85rem 1rem;
    background: #fafbfd;
}

.service-form-aligned-field {
    display: flex;
    flex-direction: column;
}

.service-form-aligned-field .form-label {
    min-height: 3rem;
}

.studio-primary-btn {
    background: linear-gradient(135deg, #232837, #414a66);
    color: #fff;
    border: 0;
    padding: 0.9rem 1rem;
    border-radius: 1rem;
}

.studio-primary-btn:disabled {
    background: #c7cedd;
    color: #667089;
    cursor: not-allowed;
}

.localized-file-control {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-width: 0;
}

.localized-file-button {
    flex: 0 0 auto;
    border: 1px solid #d7deea;
    border-radius: 0.8rem;
    padding: 0.62rem 0.9rem;
    background: #fff;
    color: #232837;
    font-weight: 600;
    cursor: pointer;
}

.localized-file-button:hover,
.localized-file-button:focus-visible {
    border-color: #9aa8c0;
    background: #f6f8fc;
}

.localized-file-name {
    min-width: 0;
    color: #667089;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.integration-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.integration-form {
    margin: 0;
}

.integration-meta {
    display: grid;
    gap: 0.45rem;
    color: #3c465d;
}

.integration-status-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 160px;
    padding: 0.8rem 1rem;
    border-radius: 1rem;
    font-size: 0.92rem;
    font-weight: 600;
}

.integration-status-chip.is-enabled {
    background: rgba(214, 243, 226, 0.95);
    color: #236846;
}

.integration-status-chip.is-pending {
    background: rgba(255, 244, 219, 0.95);
    color: #8a5b0a;
}

.employee-sheet {
    height: 100%;
    border: 1px solid #e5e9f1;
    border-radius: 1.4rem;
    padding: 1rem;
    background: linear-gradient(180deg, #fff 0%, #f9fbff 100%);
    display: flex;
    flex-direction: column;
}

.service-card-button {
    width: 100%;
    text-align: left;
    transition: transform 0.18s ease, box-shadow 0.18s ease;
    cursor: pointer;
}

.service-card-button:hover,
.service-card-button:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 18px 28px rgba(31, 38, 58, 0.08);
}

.employee-sheet-top {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin-bottom: 0.9rem;
}

.employee-avatar,
.board-staff-avatar {
    width: 44px;
    height: 44px;
    border-radius: 1rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #c48f42, #f3db9d);
    color: #fff;
    font-weight: 700;
    overflow: hidden;
    flex: 0 0 44px;
}

.employee-avatar-image,
.board-staff-avatar-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.employee-meta {
    display: flex;
    gap: 0.55rem;
    flex-wrap: wrap;
    font-size: 0.85rem;
    color: #6f7688;
    margin-bottom: 0.75rem;
}

.employee-inline-calendar {
    padding: 1rem;
    box-shadow: none;
}

.employee-detail-photo-card {
    width: 100%;
    min-height: 280px;
    border: 1px dashed #d8dee9;
    border-radius: 1.4rem;
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9ff 100%);
    display: grid;
    place-items: center;
    overflow: hidden;
    padding: 0;
    cursor: pointer;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.employee-detail-photo-card:hover,
.employee-detail-photo-card:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 28px rgba(86, 95, 130, 0.1);
    border-color: #bcc8da;
    outline: none;
}

.employee-detail-photo-modal-preview {
    min-height: 260px;
    border-radius: 1.25rem;
    overflow: hidden;
    display: grid;
    place-items: center;
    background: linear-gradient(180deg, #fcfdff 0%, #f6f9ff 100%);
    border: 1px solid #e0e6f0;
}

.employee-detail-photo-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.employee-detail-photo-fallback {
    width: 112px;
    height: 112px;
    border-radius: 2rem;
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, #c48f42, #f3db9d);
    color: #fff;
    font-size: 2rem;
    font-weight: 700;
}

.employee-service-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.employee-service-badge {
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: #eef2f8;
    color: #445066;
    font-size: 0.85rem;
    line-height: 1.1;
}

.board-staff-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    padding: 1.2rem 72px 1rem;
    border-bottom: 1px solid #edf0f5;
}

.board-staff-card {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

.board-staff-name {
    font-weight: 700;
}

.board-staff-role {
    color: #878ea1;
}

.schedule-board {
    display: grid;
    grid-template-columns: 72px 1fr 72px;
    min-height: 860px;
}

.schedule-time-axis {
    border-right: 1px solid #edf0f5;
}

.schedule-hour-label {
    height: 120px;
    color: #545c70;
    font-size: 1.15rem;
    padding-left: 1rem;
    font-weight: 500;
}

.schedule-time-axis-right {
    border-right: 0;
    border-left: 1px solid #e1e6ee;
}

.schedule-time-axis-right .schedule-hour-label {
    padding-left: 0;
    padding-right: 1rem;
    text-align: right;
}

.schedule-board-columns {
    position: relative;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.schedule-column {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 860px;
    border-right: 1px solid #edf0f5;
}

.schedule-column-off {
}

.schedule-column-body {
    position: relative;
    flex: 1;
    min-height: 0;
    background: rgba(255, 255, 255, 0.96);
}

.schedule-column-body::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 8;
    pointer-events: none;
    background: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 119px,
        rgba(148, 159, 178, 0.36) 119px,
        rgba(148, 159, 178, 0.36) 120px
    );
}

.schedule-column-off .schedule-column-body {
    background: rgba(229, 233, 240, 0.96);
}

.schedule-hour-line {
    display: none;
}

.schedule-card {
    position: absolute;
    left: 0.5rem;
    right: 0.5rem;
    border-radius: 1rem;
    padding: 0.55rem 0.7rem;
    box-shadow: 0 10px 18px rgba(86, 95, 130, 0.08);
    overflow: hidden;
}

.schedule-card-content {
    position: relative;
    z-index: 1;
}

.schedule-card-break {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100% - var(--service-height, 100%));
    min-height: 0.45rem;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.34) 0,
            rgba(255, 255, 255, 0.34) 6px,
            rgba(44, 51, 67, 0.08) 6px,
            rgba(44, 51, 67, 0.08) 12px
        ),
        rgba(255, 255, 255, 0.32);
    border-top: 1px solid rgba(44, 51, 67, 0.14);
    pointer-events: none;
}

.schedule-card-break-label {
    color: rgba(34, 37, 46, 0.64);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.28rem;
}

.schedule-free-space {
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    border-radius: 0.9rem;
    background: transparent;
    cursor: pointer;
}

.schedule-free-space:hover,
.schedule-free-space:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(112, 120, 144, 0.24);
}

.schedule-lunch-space {
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    box-sizing: border-box;
    border-radius: 0.9rem;
    background: linear-gradient(180deg, rgba(212, 217, 226, 0.96) 0%, rgba(191, 198, 210, 0.98) 100%);
    border: 1px solid #b8c0cc;
    color: #5f6878;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.schedule-lunch-space span {
    padding: 0 0.4rem;
}

.schedule-card-editable {
    cursor: pointer;
}

.schedule-card-editable:hover,
.schedule-card-editable:focus {
    transform: translateY(-1px);
    box-shadow: 0 14px 24px rgba(86, 95, 130, 0.16);
    outline: none;
}

.schedule-card-mint {
    background: #bfeecf;
}

.schedule-card-lavender {
    background: #d6caf6;
}

.schedule-card-gold {
    background: #f9e79c;
}

.schedule-card-rose {
    background: #efb1b1;
}

.schedule-card-sky {
    background: #bee4f3;
}

.schedule-card-free {
    background-image: repeating-linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.55) 0,
        rgba(255, 255, 255, 0.55) 7px,
        transparent 7px,
        transparent 14px
    );
}

.schedule-card-time {
    font-size: 0.92rem;
    font-weight: 700;
    margin-bottom: 0.2rem;
}

.schedule-card-title {
    font-weight: 700;
    line-height: 1.2;
}

.schedule-card-subtitle {
    color: rgba(34, 37, 46, 0.75);
    line-height: 1.2;
    margin-top: 0.2rem;
}

.schedule-empty-day {
    position: absolute;
    inset: 1rem 0.75rem 3.5rem;
    border-radius: 1.2rem;
    border: 1px dashed #d6dbe6;
    display: grid;
    place-items: center;
    color: #9ba2b3;
    background: rgba(249, 251, 255, 0.7);
}

.employee-timeline {
    position: relative;
    min-height: 420px;
    border-radius: 1.1rem;
    border: 1px solid #e3e8f0;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.96) calc(100% - 1px), #eef2f7 calc(100% - 1px));
    background-size: 100% 64px;
    overflow: hidden;
}

.employee-timeline-off {
    background:
        linear-gradient(180deg, rgba(231, 235, 241, 0.96) calc(100% - 1px), #d9dfe8 calc(100% - 1px));
    background-size: 100% 64px;
}

.employee-timeline-free {
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    border-radius: 0.85rem;
    background: rgba(255, 255, 255, 0.96);
    cursor: pointer;
}

.employee-timeline-free:hover,
.employee-timeline-free:focus {
    outline: none;
    box-shadow: inset 0 0 0 1px rgba(112, 120, 144, 0.24);
}

.employee-timeline-lunch {
    position: absolute;
    left: 0.4rem;
    right: 0.4rem;
    box-sizing: border-box;
    border-radius: 0.85rem;
    background: linear-gradient(180deg, rgba(212, 217, 226, 0.96) 0%, rgba(191, 198, 210, 0.98) 100%);
    border: 1px solid #b8c0cc;
    color: #5f6878;
    display: grid;
    place-items: center;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    pointer-events: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45);
}

.employee-timeline-lunch span {
    padding: 0 0.5rem;
}

.employee-timeline-appointment {
    position: absolute;
    left: 0.45rem;
    right: 0.45rem;
    border-radius: 0.95rem;
    padding: 0.55rem 0.7rem;
    background: linear-gradient(180deg, #fff5f8 0%, #ffd9e4 100%);
    border: 1px solid #f0a8bc;
    box-shadow: 0 8px 18px rgba(86, 95, 130, 0.08);
    cursor: pointer;
    overflow: hidden;
}

.employee-timeline-appointment-content {
    position: relative;
    z-index: 1;
}

.employee-timeline-appointment-break {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: calc(100% - var(--service-height, 100%));
    min-height: 0.45rem;
    background:
        repeating-linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.4) 0,
            rgba(255, 255, 255, 0.4) 6px,
            rgba(94, 74, 88, 0.1) 6px,
            rgba(94, 74, 88, 0.1) 12px
        ),
        rgba(255, 255, 255, 0.36);
    border-top: 1px solid rgba(94, 74, 88, 0.14);
    pointer-events: none;
}

.employee-timeline-break-label {
    color: rgba(95, 68, 82, 0.72);
    font-size: 0.76rem;
    font-weight: 700;
    line-height: 1.1;
    margin-top: 0.28rem;
}

.employee-timeline-appointment:hover,
.employee-timeline-appointment:focus {
    outline: none;
    transform: translateY(-1px);
}

.employee-timeline-off-text {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: #7f8697;
    font-weight: 600;
}

.schedule-mode-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.85rem;
}

.schedule-generator-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
}

.schedule-generator-form .modal-body {
    overflow-y: auto;
}

.booking-flow-form {
    display: flex;
    flex-direction: column;
    min-height: 0;
    max-height: inherit;
}

.booking-flow-body {
    overflow-y: auto;
    max-height: calc(100vh - 14rem);
    padding-right: 1rem;
}

.appointment-paid-line {
    color: #4f596b;
    font-size: 0.95rem;
}

.appointment-paid-line strong {
    color: #2f8d69;
}

.schedule-mode-card {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0.95rem 1rem;
    border: 1px solid #dfe5ee;
    border-radius: 1rem;
    background: #fbfcff;
}

.schedule-mode-card input[type="radio"] {
    margin-bottom: 0.2rem;
}

.weekday-config-list {
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}

.weekday-config-card {
    border: 1px solid #e2e7f0;
    border-radius: 1rem;
    padding: 0.9rem 1rem;
    background: #fbfcff;
}

.weekday-config-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.weekday-custom-fields {
    margin-top: 0.85rem;
}

.schedule-column-footer {
    min-height: var(--schedule-column-footer-height, 58px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem;
    border-top: 1px solid #edf0f5;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(6px);
}

.schedule-column-footer .btn {
    white-space: nowrap;
}

.schedule-column-footer .small {
    text-align: right;
    margin-left: auto;
}

@media (max-width: 1200px) {
    .public-navbar {
        min-height: 72px;
    }

    .public-navbar-collapse {
        align-items: stretch;
        gap: 1rem;
        padding: 1rem 0 0.25rem;
    }

    .public-nav-menu {
        align-items: stretch;
        gap: 0.25rem;
        margin: 0;
    }

    .public-nav-link,
    .public-nav-button {
        width: 100%;
        min-height: 44px;
        text-align: left;
    }

    .public-nav-actions {
        align-items: stretch;
        flex-wrap: wrap;
        gap: 0.75rem;
        padding-top: 0.75rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .public-login-link,
    .public-register-button {
        min-height: 46px;
    }

    .public-mega-menu {
        width: 100%;
        margin-top: 0.25rem !important;
        padding: 1.2rem;
        border-radius: 1rem;
        box-shadow: 0 16px 34px rgba(22, 27, 38, 0.1);
        transform: none !important;
    }

    .public-features-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
        gap: 1rem 1.25rem;
    }

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

    .home-automation-section {
        grid-template-columns: 1fr;
    }

    .home-insights-section {
        grid-template-columns: 1fr;
    }

    .home-retention-section {
        grid-template-columns: 1fr;
    }

    .public-footer-inner {
        grid-template-columns: minmax(0, max-content);
        gap: 3rem;
    }

    .schedule-column-footer {
        position: static;
        min-height: 0;
    }
}

@media (max-width: 1200px) {
    .analytics-filter-bar,
    .analytics-metric-grid,
    .analytics-return-filter,
    .analytics-booking-card-grid {
        grid-template-columns: repeat(2, minmax(220px, 1fr));
    }

    .analytics-show-button,
    .analytics-return-filter .analytics-show-button,
    .analytics-period-note {
        grid-column: auto;
    }

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

    .analytics-client-panel {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

    .dashboard-shell {
        flex-direction: column;
    }

    .dashboard-sidebar {
        width: 100%;
    }

    .dashboard-sidebar-panel {
        min-height: 0;
    }

    .dashboard-assistant-card {
        position: relative;
        width: 100%;
        min-width: 0;
    }
}

@media (max-width: 768px) {
    .public-brand {
        min-width: 0;
        max-width: calc(100vw - 6rem);
        overflow: hidden;
        align-items: center;
    }

    .public-brand-prefix,
    .public-brand-name {
        max-width: 100%;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .public-nav-actions {
        display: grid;
        grid-template-columns: 1fr;
    }

    .public-language-select,
    .public-login-link,
    .public-register-button {
        width: 100%;
    }

    .public-login-link {
        display: inline-flex;
        align-items: center;
    }

    .public-features-grid {
        grid-template-columns: 1fr;
    }

    .public-feature-link {
        font-size: 1rem;
    }

    .home-hero-section {
        padding-inline: 1.25rem !important;
    }

    .home-hero-actions {
        gap: 0.5rem;
    }

    .home-hero-actions .btn {
        flex: 1 1 0;
        min-width: 0;
        padding-inline: 0.55rem;
        font-size: 0.88rem;
    }

    .home-industries-title {
        font-size: 2rem;
    }

    .home-industries-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .home-industry-card {
        min-height: 0;
        padding: 1.35rem;
    }

    .home-industry-card h3 {
        font-size: 1.3rem;
    }

    .home-industry-card p {
        font-size: 1rem;
    }

    .home-automation-section {
        gap: 1.35rem;
        margin-top: 2rem;
        padding: 1.25rem;
    }

    .home-automation-copy h2 {
        font-size: 1.75rem;
    }

    .home-automation-copy p {
        font-size: 1.05rem;
    }

    .home-insights-section {
        gap: 1.35rem;
        margin-top: 2rem;
        padding: 1.25rem;
    }

    .home-insights-copy h2 {
        font-size: 1.75rem;
    }

    .home-insights-copy p {
        font-size: 1.05rem;
    }

    .home-insights-preview img {
        aspect-ratio: 16 / 10.5;
    }

    .home-retention-section {
        gap: 1.35rem;
        margin-top: 2rem;
        padding: 1.25rem;
    }

    .home-retention-copy h2 {
        font-size: 1.75rem;
    }

    .home-retention-copy p {
        font-size: 1.05rem;
    }

    .home-retention-preview img {
        aspect-ratio: 16 / 9;
    }

    .home-startup-offer {
        display: grid;
        gap: 1.25rem;
        margin-top: 2rem;
        padding: 1.25rem;
    }

    .home-startup-offer h2 {
        font-size: 1.65rem;
    }

    .home-startup-offer p {
        font-size: 1.05rem;
    }

    .home-startup-offer .btn {
        width: 100%;
    }

    .public-footer {
        margin-top: 2rem;
    }

    .public-footer-column h2 {
        margin-bottom: 1.5rem;
    }

    .public-footer-links {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .public-footer-app-row {
        align-items: flex-start;
        flex-direction: column;
        margin-top: 1.7rem;
    }

    .analytics-filter-bar,
    .analytics-metric-grid,
    .analytics-reports-grid,
    .analytics-return-filter,
    .analytics-client-panel,
    .analytics-booking-card-grid,
    .analytics-booking-pie-grid,
    .analytics-booking-pie-layout {
        grid-template-columns: 1fr;
    }

    .analytics-header,
    .analytics-filter-bar,
    .analytics-return-filter {
        padding-inline: 1rem;
    }

    .analytics-export-button {
        position: static;
        width: fit-content;
        margin: 1rem 1rem 0;
    }

    .analytics-return-filter {
        gap: 0.8rem;
        padding-block: 1rem;
    }

    .analytics-return-filter .analytics-show-button {
        width: 100%;
        margin-top: 0;
    }

    .analytics-return-table-wrap {
        margin: 1rem;
    }

    .analytics-reports-grid {
        padding: 1rem;
    }

    .analytics-report-card {
        padding: 1.2rem;
    }

    .analytics-title {
        font-size: 1.2rem;
    }

    .analytics-chart-panel,
    .analytics-metric-grid {
        margin-inline: 1rem;
        padding-inline: 0;
    }

    .settings-board-grid {
        grid-template-columns: 1fr;
    }

    .settings-section-card {
        padding: 1.15rem;
    }

    .settings-log-head {
        display: grid;
        gap: 0.75rem;
    }

    .settings-log-path {
        max-width: none;
        text-align: left;
    }

    .settings-language-controls {
        grid-template-columns: 1fr;
    }

    .settings-language-controls .dashboard-logout-btn {
        width: 100%;
    }

    .board-staff-row {
        padding-inline: 52px;
    }

    .schedule-board {
        grid-template-columns: 52px 1fr 52px;
        min-height: 720px;
    }

    .schedule-column {
        min-height: 720px;
    }

    .schedule-column {
        min-width: 220px;
    }

    .schedule-hour-label {
        min-height: 120px;
        height: 120px;
    }

    .schedule-board-columns {
        overflow-x: auto;
        display: flex;
    }

    .schedule-column {
        width: 220px;
        flex: 0 0 220px;
    }
}
