:root {
    --bg: #07111f;
    --bg-soft: #0b1628;
    --panel: rgba(15, 25, 44, 0.78);
    --panel-solid: #101b30;
    --panel-strong: #15233d;
    --line: rgba(255, 255, 255, 0.10);
    --text: #eef4ff;
    --muted: #94a3b8;
    --muted-2: #64748b;
    --primary: #8b5cf6;
    --primary-2: #06b6d4;
    --green: #22c55e;
    --yellow: #f59e0b;
    --red: #ef4444;
    --blue: #38bdf8;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
    --radius: 22px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background:
        radial-gradient(circle at top left, rgba(139, 92, 246, 0.28), transparent 34rem),
        radial-gradient(circle at 80% 10%, rgba(6, 182, 212, 0.18), transparent 32rem),
        linear-gradient(135deg, #050914 0%, #07111f 58%, #0f172a 100%);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

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

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

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

.sidebar {
    position: sticky;
    top: 0;
    height: 100vh;
    padding: 24px 18px;
    border-right: 1px solid var(--line);
    background: rgba(5, 12, 24, 0.78);
    backdrop-filter: blur(24px);
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 18px;
}

.brand.center {
    justify-content: center;
}

.brand-mark {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 45px rgba(139, 92, 246, 0.35);
    color: white;
    font-weight: 900;
    letter-spacing: -0.04em;
}

.brand strong {
    display: block;
    font-size: 16px;
}

.brand small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

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

.nav-link {
    padding: 13px 14px;
    border-radius: 14px;
    color: var(--muted);
    transition: 0.18s ease;
}

.nav-link:hover,
.nav-link.active {
    color: white;
    background: rgba(255, 255, 255, 0.08);
}

.nav-link.active {
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.35);
}

.sidebar-card {
    margin-top: auto;
    padding: 16px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.10));
    border: 1px solid var(--line);
}

.sidebar-card span,
.sidebar-card small {
    display: block;
    color: var(--muted);
}

.sidebar-card a {
    display: inline-block;
    margin: 8px 0;
    color: white;
    font-weight: 800;
}

.logout-link {
    appearance: none;
    width: 100%;
    border: 0;
    background: transparent;
    font: inherit;
    text-align: left;
    cursor: pointer;
    padding: 12px 14px;
    color: var(--muted);
    border-radius: 14px;
}

.logout-link:hover {
    background: rgba(255, 255, 255, 0.08);
    color: white;
}

.logout-form {
    margin-top: auto;
}

.main-content {
    padding: 34px;
    width: min(1440px, 100%);
}

.page-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 24px;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #c4b5fd;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 12px;
    font-weight: 800;
}

h1, h2, h3, p {
    margin-top: 0;
}

h1 {
    margin-bottom: 8px;
    font-size: clamp(32px, 5vw, 54px);
    line-height: 0.95;
    letter-spacing: -0.06em;
}

h2 {
    margin-bottom: 6px;
    font-size: 22px;
    letter-spacing: -0.03em;
}

h3 {
    margin-bottom: 6px;
    font-size: 18px;
}

.lead,
.panel p,
.booking-card p,
.login-hero p {
    color: var(--muted);
    line-height: 1.65;
}

.head-actions,
.actions,
.form-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 16px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    color: white;
    background: rgba(255, 255, 255, 0.08);
    cursor: pointer;
    transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
    box-shadow: 0 16px 34px rgba(139, 92, 246, 0.28);
}

.btn-primary:hover {
    background: linear-gradient(135deg, #9f7aea, #22d3ee);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.10);
}

.btn-ghost {
    background: transparent;
    color: var(--muted);
}

.btn-green {
    background: rgba(34, 197, 94, 0.15);
    border-color: rgba(34, 197, 94, 0.35);
    color: #bbf7d0;
}

.btn-danger {
    background: rgba(239, 68, 68, 0.15);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.btn-mini {
    min-height: 32px;
    padding: 0 10px;
    border-radius: 10px;
    font-size: 13px;
}

.btn.full {
    width: 100%;
}

.flash-stack {
    display: grid;
    gap: 10px;
    margin-bottom: 18px;
}

.flash-stack.compact {
    margin: 16px 0;
}

.flash {
    padding: 13px 15px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.08);
}

.flash-success { border-color: rgba(34, 197, 94, 0.35); color: #bbf7d0; }
.flash-error { border-color: rgba(239, 68, 68, 0.40); color: #fecaca; }
.flash-warning { border-color: rgba(245, 158, 11, 0.42); color: #fde68a; }
.flash-info { border-color: rgba(56, 189, 248, 0.38); color: #bae6fd; }

.stat-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
    margin-bottom: 18px;
}

.stat-card,
.panel,
.client-card,
.service-card,
.login-card,
.booking-card,
.success-card {
    border: 1px solid var(--line);
    background: var(--panel);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.stat-card {
    position: relative;
    overflow: hidden;
    min-height: 150px;
    padding: 20px;
    border-radius: var(--radius);
}

.stat-card.glow::before {
    content: "";
    position: absolute;
    inset: -60% -20% auto auto;
    width: 170px;
    height: 170px;
    border-radius: 50%;
    background: rgba(139, 92, 246, 0.35);
    filter: blur(20px);
}

.stat-card span,
.stat-card small {
    color: var(--muted);
}

.stat-card strong {
    position: relative;
    display: block;
    margin: 14px 0 10px;
    font-size: clamp(26px, 3vw, 36px);
    letter-spacing: -0.04em;
}

.content-grid {
    display: grid;
    gap: 18px;
    margin-bottom: 18px;
}

.content-grid.two-one {
    grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr);
}

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

.panel {
    border-radius: var(--radius);
    padding: 22px;
}

.panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 14px;
}

.panel-head a {
    color: #c4b5fd;
    font-weight: 700;
}

.accent-panel {
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.22), rgba(6, 182, 212, 0.10));
}

.mini-list {
    display: grid;
    gap: 12px;
    margin-top: 20px;
}

.mini-list div {
    padding: 14px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.08);
}

.mini-list span,
.mini-list strong {
    display: block;
}

.mini-list span {
    color: var(--muted);
    font-size: 13px;
    margin-bottom: 5px;
}

.mini-list strong {
    word-break: break-word;
}

.table-wrap {
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    min-width: 760px;
}

th, td {
    padding: 14px 12px;
    text-align: left;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

th {
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

td small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

tr:hover td {
    background: rgba(255, 255, 255, 0.025);
}

.empty-cell {
    color: var(--muted);
    text-align: center;
    padding: 28px;
}

.badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    font-size: 12px;
    font-weight: 800;
}

.status-pending { color: #fde68a; background: rgba(245, 158, 11, 0.13); border-color: rgba(245, 158, 11, 0.36); }
.status-scheduled { color: #bae6fd; background: rgba(56, 189, 248, 0.13); border-color: rgba(56, 189, 248, 0.34); }
.status-completed { color: #bbf7d0; background: rgba(34, 197, 94, 0.13); border-color: rgba(34, 197, 94, 0.34); }
.status-cancelled { color: #fecaca; background: rgba(239, 68, 68, 0.13); border-color: rgba(239, 68, 68, 0.34); }
.status-no-show { color: #ddd6fe; background: rgba(139, 92, 246, 0.13); border-color: rgba(139, 92, 246, 0.34); }

.bar-chart {
    height: 200px;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    align-items: end;
    gap: 12px;
    padding-top: 18px;
}

.bar-item {
    display: grid;
    justify-items: center;
    gap: 7px;
    min-width: 0;
}

.bar-track {
    width: 100%;
    height: 128px;
    display: flex;
    align-items: end;
    justify-content: center;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
    overflow: hidden;
}

.bar-track span {
    display: block;
    width: 72%;
    border-radius: 14px 14px 0 0;
    background: linear-gradient(180deg, var(--primary-2), var(--primary));
    min-height: 8px;
}

.bar-item small,
.bar-item em {
    color: var(--muted);
    font-style: normal;
    font-size: 12px;
    text-align: center;
}

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

.rank-item {
    display: grid;
    grid-template-columns: 38px 1fr auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.rank-item > span {
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 12px;
    background: rgba(139, 92, 246, 0.22);
    color: #ddd6fe;
    font-weight: 900;
}

.rank-item small {
    display: block;
    color: var(--muted);
    margin-top: 3px;
}

.filters-panel {
    margin-bottom: 18px;
}

.filter-form {
    display: grid;
    grid-template-columns: 1.7fr 1fr 1fr auto auto;
    gap: 12px;
    align-items: end;
}

.form-panel.narrow {
    max-width: 680px;
}

.smart-form,
.form-stack {
    display: grid;
    gap: 18px;
}

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

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

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

label {
    display: grid;
    gap: 8px;
    color: #dbeafe;
    font-weight: 700;
}

input,
select,
textarea {
    width: 100%;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    background: rgba(3, 8, 18, 0.52);
    color: white;
    outline: none;
    padding: 13px 14px;
    transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

textarea {
    resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
    border-color: rgba(139, 92, 246, 0.62);
    box-shadow: 0 0 0 4px rgba(139, 92, 246, 0.14);
    background: rgba(3, 8, 18, 0.72);
}

select option {
    background: #101827;
    color: white;
}

.check-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.check-row input {
    width: auto;
}

.client-grid,
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.client-card,
.service-card {
    border-radius: var(--radius);
    padding: 20px;
}

.client-top,
.service-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.client-top p,
.service-head p,
.client-note {
    color: var(--muted);
    margin-bottom: 0;
}

.client-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0 0;
}

.client-stats div {
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.06);
}

.client-stats span,
.client-stats strong {
    display: block;
}

.client-stats span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.client-note {
    margin-top: 14px;
}

.service-price {
    font-size: 30px;
    letter-spacing: -0.04em;
    font-weight: 900;
    margin: 16px 0;
}

.service-meta {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.service-meta span {
    padding: 8px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    color: var(--muted);
    font-size: 13px;
}

.service-actions {
    margin-top: 12px;
}

.muted-card {
    opacity: 0.68;
}

.login-body,
.booking-body {
    min-height: 100vh;
    overflow-x: hidden;
}

.login-bg {
    position: fixed;
    inset: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(139, 92, 246, 0.36), transparent 30rem),
        radial-gradient(circle at 85% 20%, rgba(6, 182, 212, 0.24), transparent 32rem),
        radial-gradient(circle at 60% 90%, rgba(34, 197, 94, 0.12), transparent 30rem);
    pointer-events: none;
}

.login-wrap,
.booking-shell {
    position: relative;
    width: min(1120px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) 460px;
    align-items: center;
    gap: 34px;
    padding: 48px 0;
}

.login-hero h1,
.booking-hero h1 {
    font-size: clamp(44px, 7vw, 78px);
}

.hero-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin-top: 26px;
}

.hero-grid div,
.booking-info div,
.success-details div {
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.07);
}

.hero-grid strong,
.hero-grid span,
.booking-info span,
.booking-info strong,
.success-details span,
.success-details strong {
    display: block;
}

.hero-grid span,
.booking-info span,
.success-details span {
    color: var(--muted);
    margin-top: 6px;
    font-size: 13px;
}

.login-card,
.booking-card,
.success-card {
    border-radius: 30px;
    padding: 30px;
}

.hint,
.public-link {
    color: var(--muted);
    line-height: 1.6;
}

.public-link {
    display: inline-block;
    margin-top: 14px;
    color: #c4b5fd;
    font-weight: 700;
}

.booking-shell {
    grid-template-columns: minmax(0, 1fr) 520px;
}

.booking-info {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.booking-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.success-shell {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px;
}

.success-card {
    width: min(560px, 100%);
    text-align: center;
}

.success-icon {
    display: inline-grid;
    place-items: center;
    width: 72px;
    height: 72px;
    border-radius: 24px;
    background: rgba(34, 197, 94, 0.18);
    border: 1px solid rgba(34, 197, 94, 0.34);
    color: #bbf7d0;
    font-weight: 900;
    margin-bottom: 18px;
}

.success-details {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 22px 0;
    text-align: left;
}

.empty-page {
    text-align: center;
    max-width: 620px;
    margin: 10vh auto;
}

@media (max-width: 1180px) {
    .app-shell {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: relative;
        height: auto;
        padding: 16px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }
    .nav-list {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
    .sidebar-card,
    .logout-link {
        display: none;
    }
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .content-grid.two-one,
    .content-grid.half,
    .client-grid,
    .service-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 880px) {
    .main-content {
        padding: 22px 16px;
    }
    .page-head {
        align-items: flex-start;
        flex-direction: column;
    }
    .stat-grid,
    .content-grid.two-one,
    .content-grid.half,
    .client-grid,
    .service-grid,
    .form-grid,
    .filter-form,
    .login-wrap,
    .booking-shell,
    .hero-grid,
    .success-details {
        grid-template-columns: 1fr;
    }
    .span-two {
        grid-column: span 1;
    }
    .nav-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .nav-link {
        white-space: nowrap;
    }
    .booking-row {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    .brand small {
        display: none;
    }
    .sidebar {
        gap: 12px;
    }
    .stat-grid {
        gap: 12px;
    }
    .panel,
    .stat-card,
    .client-card,
    .service-card,
    .login-card,
    .booking-card,
    .success-card {
        border-radius: 18px;
        padding: 18px;
    }
    .actions {
        align-items: flex-start;
        flex-direction: column;
    }
    .actions .btn,
    .actions form {
        width: 100%;
    }
    .actions form button {
        width: 100%;
    }
}

/* SalonPanel scheduling, workers and calendar */
.stat-grid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
}

.field-help {
    display: block;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

input[readonly] {
    color: #cbd5e1;
    background: rgba(255, 255, 255, 0.045);
    cursor: default;
}

.settings-section + .settings-section {
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

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

.choice-card {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    min-height: 130px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
    transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.choice-card:hover {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.48);
    background: rgba(139, 92, 246, 0.09);
}

.choice-card:has(input:checked) {
    border-color: rgba(139, 92, 246, 0.72);
    background: linear-gradient(145deg, rgba(139, 92, 246, 0.18), rgba(6, 182, 212, 0.08));
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.18);
}

.choice-card input {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--primary);
}

.choice-card span,
.choice-card strong,
.choice-card small {
    display: block;
}

.choice-card strong {
    margin-bottom: 7px;
}

.choice-card small {
    color: var(--muted);
    font-weight: 500;
    line-height: 1.55;
}

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

.worker-card {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    backdrop-filter: blur(22px);
    box-shadow: var(--shadow);
}

.worker-card-head {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
}

.worker-card-head h3,
.worker-card-head p {
    margin-bottom: 0;
}

.worker-card-head p {
    color: var(--muted);
    margin-top: 4px;
}

.worker-avatar {
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.92), rgba(6, 182, 212, 0.9));
    font-size: 20px;
    font-weight: 900;
}

.worker-stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 18px 0;
}

.worker-stats div,
.worker-services-preview {
    padding: 13px;
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.055);
}

.worker-stats span,
.worker-stats strong,
.worker-services-preview span {
    display: block;
}

.worker-stats span,
.worker-services-preview span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 5px;
}

.worker-services-preview p,
.worker-note {
    margin-bottom: 0;
    color: #dbeafe;
    line-height: 1.55;
}

.worker-note {
    color: var(--muted);
    margin-top: 14px;
}

.align-end {
    align-self: end;
    min-height: 48px;
}

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

.assignment-row {
    display: grid;
    grid-template-columns: minmax(260px, 1.7fr) minmax(140px, 0.7fr) minmax(140px, 0.7fr);
    align-items: end;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.045);
    transition: opacity 0.16s ease, border-color 0.16s ease, background 0.16s ease;
}

.assignment-row:not(.assignment-disabled) {
    border-color: rgba(139, 92, 246, 0.36);
    background: rgba(139, 92, 246, 0.07);
}

.assignment-disabled {
    opacity: 0.62;
}

.assignment-check {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 48px;
}

.assignment-check input {
    width: 20px;
    height: 20px;
    accent-color: var(--primary);
}

.assignment-check span,
.assignment-check strong,
.assignment-check small {
    display: block;
}

.assignment-check small {
    color: var(--muted);
    margin-top: 4px;
    font-weight: 500;
}

.input-suffix {
    position: relative;
}

.input-suffix input {
    padding-right: 50px;
}

.input-suffix span {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 13px;
}

.sticky-actions {
    position: sticky;
    bottom: 16px;
    z-index: 5;
    width: max-content;
    padding: 10px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(7, 17, 31, 0.9);
    backdrop-filter: blur(18px);
    box-shadow: var(--shadow);
}

.appointments-filter {
    grid-template-columns: minmax(220px, 1.6fr) minmax(145px, 0.8fr) minmax(165px, 0.9fr) minmax(150px, 0.8fr) auto auto;
}

.calendar-layout {
    grid-template-columns: minmax(0, 2fr) minmax(330px, 0.78fr);
    align-items: start;
}

.calendar-form-panel {
    position: sticky;
    top: 24px;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 14px;
    margin-bottom: 18px;
}

.calendar-toolbar h2 {
    margin: 0;
    text-align: center;
}

.calendar-filter {
    justify-self: end;
    width: min(220px, 100%);
}

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

.calendar-weekdays {
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.calendar-weekdays div {
    padding: 10px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    text-align: center;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.calendar-days {
    border-top: 1px solid var(--line);
    border-left: 1px solid var(--line);
}

.calendar-day {
    min-width: 0;
    min-height: 132px;
    padding: 10px;
    border: 0;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    color: var(--text);
    background: rgba(255, 255, 255, 0.025);
    text-align: left;
    cursor: pointer;
    overflow: hidden;
    transition: background 0.15s ease, box-shadow 0.15s ease;
}

.calendar-day:hover,
.calendar-day.selected {
    background: rgba(139, 92, 246, 0.11);
    box-shadow: inset 0 0 0 1px rgba(139, 92, 246, 0.42);
}

.calendar-day.outside {
    opacity: 0.38;
}

.calendar-day.today .calendar-day-number {
    color: white;
    background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.calendar-day-number {
    width: 30px;
    height: 30px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    font-weight: 900;
}

.calendar-day-events {
    display: grid;
    gap: 5px;
    margin-top: 8px;
}

.calendar-event {
    display: block;
    min-width: 0;
    padding: 6px 7px;
    border: 1px solid rgba(245, 158, 11, 0.24);
    border-radius: 9px;
    background: rgba(245, 158, 11, 0.1);
    color: #fde68a;
    overflow: hidden;
}

.calendar-event strong,
.calendar-event small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-event strong {
    font-size: 11px;
}

.calendar-event small,
.calendar-more {
    color: var(--muted);
    font-size: 10px;
    margin-top: 2px;
}

.calendar-help {
    margin: 12px 0 0;
}

.is-hidden {
    display: none !important;
}

.absence-list {
    display: grid;
    gap: 10px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.absence-list h3 {
    margin-bottom: 2px;
}

.absence-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.absence-item strong,
.absence-item span,
.absence-item small {
    display: block;
}

.absence-item span,
.absence-item small {
    color: var(--muted);
    font-size: 12px;
    margin-top: 3px;
}

.booking-shell-wide {
    width: min(1320px, calc(100% - 32px));
    grid-template-columns: minmax(300px, 0.78fr) minmax(560px, 1.32fr);
    align-items: start;
    padding-top: 70px;
}

.booking-shell-wide .booking-hero {
    position: sticky;
    top: 48px;
    padding-top: 28px;
}

.booking-card-large {
    padding: 30px;
}

.booking-card-head {
    margin-bottom: 22px;
}

.step-kicker {
    display: inline-block;
    color: #c4b5fd;
    margin-bottom: 8px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.booking-mode-pill {
    display: flex;
    align-items: center;
    gap: 12px;
    max-width: 470px;
    margin-top: 22px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.065);
}

.booking-mode-pill strong,
.booking-mode-pill small {
    display: block;
}

.booking-mode-pill small {
    color: var(--muted);
    margin-top: 3px;
}

.mode-dot {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    border-radius: 50%;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.mode-dot.automatic {
    background: var(--green);
}

.mode-dot.manual {
    background: var(--yellow);
}

.booking-form {
    gap: 14px;
}

.booking-form-section {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.035);
}

.booking-step-number {
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    background: rgba(139, 92, 246, 0.2);
    color: #ddd6fe;
    font-weight: 900;
}

.booking-section-content {
    min-width: 0;
}

.booking-section-content h3 {
    margin-bottom: 14px;
}

.booking-selection-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 12px;
}

.booking-selection-summary div {
    padding: 11px 13px;
    border-radius: 13px;
    background: rgba(255, 255, 255, 0.055);
}

.booking-selection-summary span,
.booking-selection-summary strong {
    display: block;
}

.booking-selection-summary span {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 3px;
}

.date-choice-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(68px, 1fr));
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
}

.date-choice {
    min-width: 72px;
    padding: 11px 8px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(255, 255, 255, 0.045);
    cursor: pointer;
    text-align: center;
}

.date-choice:hover,
.date-choice.active {
    border-color: rgba(139, 92, 246, 0.65);
    background: rgba(139, 92, 246, 0.16);
}

.date-choice span,
.date-choice strong {
    display: block;
}

.date-choice span {
    color: var(--muted);
    font-size: 11px;
    margin-bottom: 5px;
    text-transform: capitalize;
}

.date-choice strong {
    font-size: 13px;
    white-space: nowrap;
}

.custom-date-label {
    margin-top: 12px;
    max-width: 260px;
}

.time-slot-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.time-slot-heading h3,
.time-slot-heading p {
    margin-bottom: 0;
}

.time-slot-heading p {
    color: var(--muted);
    margin-top: 4px;
}

.ten-minute-badge {
    padding: 7px 10px;
    border-radius: 999px;
    color: #bae6fd;
    background: rgba(56, 189, 248, 0.11);
    border: 1px solid rgba(56, 189, 248, 0.28);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.time-slot-status {
    margin: 14px 0 10px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
}

.time-slot-status.loading {
    color: #bae6fd;
}

.time-slot-status.ready,
.time-slot-status.selected {
    color: #bbf7d0;
}

.time-slot-status.empty {
    color: #fde68a;
}

.time-slot-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(70px, 1fr));
    gap: 8px;
    max-height: 290px;
    overflow-y: auto;
    padding-right: 3px;
}

.time-slot {
    min-height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #e0f2fe;
    background: rgba(56, 189, 248, 0.07);
    cursor: pointer;
    font-weight: 800;
    transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}

.time-slot:hover,
.time-slot.active {
    transform: translateY(-1px);
    border-color: rgba(139, 92, 246, 0.72);
    background: linear-gradient(135deg, rgba(139, 92, 246, 0.46), rgba(6, 182, 212, 0.3));
    color: white;
}

.booking-submit {
    min-height: 54px;
    font-size: 16px;
}

.success-card-wide {
    width: min(720px, 100%);
}

.success-details-four {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.success-details strong + small {
    display: block;
    color: var(--muted);
    margin-top: 4px;
}

@media (max-width: 1280px) {
    .stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .worker-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .time-slot-grid {
        grid-template-columns: repeat(5, minmax(68px, 1fr));
    }
}

@media (max-width: 1180px) {
    .nav-list {
        display: flex;
        overflow-x: auto;
        padding-bottom: 4px;
    }
    .nav-link {
        white-space: nowrap;
    }
    .calendar-layout {
        grid-template-columns: 1fr;
    }
    .calendar-form-panel {
        position: static;
    }
}

@media (max-width: 980px) {
    .booking-shell-wide {
        grid-template-columns: 1fr;
        width: min(760px, calc(100% - 28px));
        padding-top: 34px;
    }
    .booking-shell-wide .booking-hero {
        position: static;
        padding-top: 0;
    }
    .assignment-row,
    .appointments-filter {
        grid-template-columns: 1fr 1fr;
    }
    .assignment-check {
        grid-column: span 2;
    }
    .calendar-day {
        min-height: 112px;
    }
}

@media (max-width: 760px) {
    .choice-grid,
    .worker-grid,
    .assignment-row,
    .booking-selection-summary,
    .success-details-four,
    .appointments-filter {
        grid-template-columns: 1fr;
    }
    .assignment-check {
        grid-column: span 1;
    }
    .worker-card-head {
        grid-template-columns: 44px minmax(0, 1fr);
    }
    .worker-card-head .badge {
        grid-column: 1 / -1;
        justify-self: start;
    }
    .calendar-toolbar {
        grid-template-columns: 1fr;
    }
    .calendar-toolbar h2 {
        grid-row: 1;
    }
    .calendar-filter {
        justify-self: stretch;
        width: 100%;
    }
    .calendar-grid {
        min-width: 720px;
    }
    .calendar-panel {
        overflow-x: auto;
    }
    .calendar-help {
        min-width: 720px;
    }
    .booking-form-section {
        grid-template-columns: 1fr;
    }
    .booking-step-number {
        margin-bottom: -4px;
    }
    .date-choice-grid {
        grid-template-columns: repeat(7, 78px);
    }
    .time-slot-grid {
        grid-template-columns: repeat(4, minmax(64px, 1fr));
    }
}

@media (max-width: 520px) {
    .booking-card-large {
        padding: 16px;
    }
    .booking-form-section {
        padding: 14px;
    }
    .time-slot-grid {
        grid-template-columns: repeat(3, minmax(64px, 1fr));
    }
    .time-slot-heading {
        flex-direction: column;
    }
    .sticky-actions {
        width: 100%;
    }
}

@media (max-width: 880px) {
    .stat-grid {
        grid-template-columns: 1fr;
    }
}

/* Mobile navigation and phone-first refinements */
.mobile-topbar,
.mobile-nav-close,
.sidebar-backdrop {
    display: none;
}

.booking-section-help {
    margin: -4px 0 12px;
    color: var(--muted);
    line-height: 1.55;
}

.date-availability-status {
    margin-bottom: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.045);
    font-size: 13px;
}

.date-availability-status.loading {
    color: #bae6fd;
}

.date-availability-status.ready {
    color: #bbf7d0;
}

.date-availability-status.empty {
    color: #fde68a;
}

.date-choice small {
    display: block;
    margin-top: 5px;
    color: #93c5fd;
    font-size: 10px;
    white-space: nowrap;
}

.table-wrap {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
}

@media (max-width: 880px) {
    body.nav-open {
        overflow: hidden;
    }

    .mobile-topbar {
        position: sticky;
        top: 0;
        z-index: 70;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        min-height: 68px;
        padding: 10px 14px;
        border-bottom: 1px solid var(--line);
        background: rgba(5, 12, 24, 0.94);
        backdrop-filter: blur(22px);
    }

    .mobile-brand {
        display: flex;
        align-items: center;
        gap: 10px;
        min-width: 0;
    }

    .mobile-brand .brand-mark {
        width: 42px;
        height: 42px;
        border-radius: 14px;
        flex: 0 0 auto;
    }

    .mobile-brand strong,
    .mobile-brand small {
        display: block;
        max-width: 58vw;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .mobile-brand small {
        margin-top: 2px;
        color: var(--muted);
        font-size: 11px;
    }

    .mobile-nav-toggle {
        width: 46px;
        height: 46px;
        display: grid;
        place-content: center;
        gap: 5px;
        flex: 0 0 auto;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 14px;
        background: rgba(255, 255, 255, 0.07);
        cursor: pointer;
    }

    .mobile-nav-toggle span {
        width: 21px;
        height: 2px;
        border-radius: 999px;
        background: white;
    }

    .app-shell {
        display: block;
        min-height: calc(100vh - 68px);
    }

    .sidebar {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 90;
        width: min(86vw, 330px);
        height: 100dvh;
        padding: 20px 16px;
        overflow-y: auto;
        border-right: 1px solid var(--line);
        border-bottom: 0;
        background: #07111f;
        transform: translateX(-105%);
        transition: transform 0.22s ease;
        box-shadow: 20px 0 70px rgba(0, 0, 0, 0.5);
    }

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

    .sidebar .nav-list {
        display: grid;
        overflow: visible;
        padding-bottom: 0;
    }

    .sidebar .nav-link {
        white-space: normal;
    }

    .sidebar .sidebar-card,
    .sidebar .logout-link {
        display: block;
    }

    .mobile-nav-close {
        position: absolute;
        top: 14px;
        right: 14px;
        display: grid;
        place-items: center;
        width: 40px;
        height: 40px;
        padding: 0;
        border: 1px solid var(--line);
        border-radius: 13px;
        color: white;
        background: rgba(255, 255, 255, 0.07);
        font-size: 27px;
        line-height: 1;
        cursor: pointer;
    }

    .sidebar > .brand {
        padding-right: 48px;
    }

    .sidebar-backdrop {
        position: fixed;
        inset: 0;
        z-index: 80;
        background: rgba(0, 0, 0, 0.58);
        backdrop-filter: blur(3px);
    }

    body.nav-open .sidebar-backdrop {
        display: block;
    }

    .main-content {
        width: 100%;
        padding: 20px 14px 34px;
    }

    .page-head {
        gap: 16px;
    }

    .page-head > .head-actions,
    .page-head > .btn {
        width: 100%;
    }

    .page-head > .head-actions .btn,
    .page-head > .btn {
        flex: 1 1 auto;
    }

    .panel-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .filter-form .btn,
    .form-actions .btn {
        min-height: 46px;
    }

    input,
    select,
    textarea {
        min-height: 48px;
        font-size: 16px;
    }

    textarea {
        min-height: 110px;
    }

    .check-row input,
    input[type="checkbox"],
    input[type="radio"] {
        min-height: 0;
    }
}

@media (max-width: 560px) {
    h1 {
        font-size: clamp(30px, 11vw, 44px);
        line-height: 1;
    }

    .booking-shell-wide {
        width: min(100% - 20px, 760px);
        gap: 20px;
        padding: 22px 0 34px;
    }

    .booking-shell-wide .booking-hero {
        padding: 0 4px;
    }

    .booking-hero h1 {
        font-size: clamp(38px, 13vw, 58px);
    }

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

    .booking-card-large {
        border-radius: 22px;
        padding: 14px;
    }

    .booking-card-head {
        padding: 4px 2px 0;
    }

    .booking-card-head h2 {
        font-size: 22px;
    }

    .booking-form-section {
        gap: 10px;
        padding: 13px;
        border-radius: 17px;
    }

    .booking-step-number {
        width: 30px;
        height: 30px;
    }

    .date-choice-grid {
        grid-template-columns: repeat(7, 94px);
        margin-right: -13px;
        padding-right: 13px;
        scroll-snap-type: x proximity;
    }

    .date-choice {
        min-width: 94px;
        min-height: 72px;
        scroll-snap-align: start;
    }

    .custom-date-label {
        max-width: none;
    }

    .time-slot-grid {
        max-height: none;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .time-slot {
        min-height: 48px;
    }

    .booking-submit {
        position: sticky;
        bottom: 8px;
        z-index: 10;
        min-height: 56px;
        box-shadow: 0 16px 35px rgba(0, 0, 0, 0.45);
    }

    .calendar-panel {
        margin-left: -2px;
        margin-right: -2px;
    }

    .sticky-actions {
        bottom: 8px;
        display: grid;
        grid-template-columns: 1fr;
    }

    .sticky-actions .btn {
        width: 100%;
    }
}

/* Paket 1: radno vreme, pravi kalendar i bezbednosna obavestenja */
.inline-form {
    display: inline;
    margin-left: 8px;
}

.link-button {
    padding: 0;
    border: 0;
    color: #b9c7ff;
    background: transparent;
    font: inherit;
    font-weight: 700;
    text-decoration: underline;
    cursor: pointer;
}

.verification-banner {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
}

.weekly-hours-table,
.worker-schedule-table {
    display: grid;
    gap: 8px;
}

.weekly-hours-head,
.weekly-hours-row {
    display: grid;
    grid-template-columns: minmax(130px, 1.3fr) minmax(120px, .9fr) minmax(130px, 1fr) minmax(130px, 1fr);
    gap: 12px;
    align-items: center;
}

.worker-schedule-head,
.worker-schedule-row {
    display: grid;
    grid-template-columns: minmax(120px, 1.2fr) minmax(145px, 1.2fr) repeat(4, minmax(112px, 1fr));
    gap: 10px;
    align-items: center;
}

.weekly-hours-head,
.worker-schedule-head {
    padding: 0 12px 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.weekly-hours-row,
.worker-schedule-row {
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: rgba(255,255,255,.025);
}

.weekly-hours-row.day-closed,
.worker-schedule-row.schedule-row-off {
    opacity: .62;
    background: rgba(255,255,255,.012);
}

.switch-label {
    display: flex;
    align-items: center;
    gap: 8px;
}

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

.calendar-command-bar {
    margin-bottom: 16px;
}

.calendar-toolbar-wide {
    grid-template-columns: auto minmax(180px, 1fr) auto;
}

.calendar-current-date {
    text-align: center;
    font-size: 18px;
}

.calendar-view-filter {
    display: flex;
    gap: 10px;
}

.day-calendar-panel {
    overflow: hidden;
}

.day-calendar-scroll {
    overflow-x: auto;
    padding-bottom: 8px;
}

.day-calendar-header,
.day-calendar-body {
    display: grid;
    min-width: 760px;
}

.day-calendar-header {
    position: sticky;
    top: 0;
    z-index: 15;
    border-bottom: 1px solid var(--line);
    background: #0b1628;
}

.worker-column-head {
    padding: 13px 12px;
    border-left: 1px solid var(--line);
    text-align: center;
}

.worker-column-head strong,
.worker-column-head span {
    display: block;
}

.worker-column-head span {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.day-calendar-body {
    position: relative;
}

.time-axis {
    position: relative;
    border-right: 1px solid var(--line);
}

.time-axis span {
    position: absolute;
    right: 10px;
    transform: translateY(-50%);
    color: var(--muted);
    font-size: 11px;
}

.worker-lane {
    position: relative;
    min-width: 190px;
    border-left: 1px solid rgba(255,255,255,.045);
    background-image: repeating-linear-gradient(
        to bottom,
        transparent 0,
        transparent 23px,
        rgba(255,255,255,.055) 24px
    );
}

.calendar-appointment,
.calendar-block {
    position: absolute;
    left: 6px;
    right: 6px;
    overflow: hidden;
    border-radius: 10px;
}

.calendar-appointment {
    z-index: 5;
    display: block;
    padding: 7px 9px;
    border: 1px solid rgba(56,189,248,.38);
    color: white;
    background: linear-gradient(135deg, rgba(37,99,235,.9), rgba(14,165,233,.74));
    text-decoration: none;
    box-shadow: 0 7px 20px rgba(0,0,0,.28);
}

.calendar-appointment strong,
.calendar-appointment span,
.calendar-appointment small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.calendar-appointment strong { font-size: 12px; }
.calendar-appointment span { margin-top: 2px; font-size: 11px; }
.calendar-appointment small { margin-top: 2px; opacity: .75; font-size: 10px; }

.calendar-appointment.status-pending {
    border-color: rgba(250,204,21,.45);
    background: linear-gradient(135deg, rgba(161,98,7,.9), rgba(234,179,8,.7));
}

.calendar-appointment.status-completed {
    border-color: rgba(34,197,94,.45);
    background: linear-gradient(135deg, rgba(21,128,61,.9), rgba(34,197,94,.65));
}

.calendar-block {
    z-index: 2;
    display: grid;
    place-items: center;
    padding: 5px;
    border: 1px dashed rgba(148,163,184,.38);
    color: #aab7cb;
    background: rgba(71,85,105,.42);
    font-size: 11px;
    text-align: center;
}

.all-day-block { z-index: 1; }

.week-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, minmax(230px, 1fr));
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.week-day-card {
    min-height: 290px;
    padding: 14px;
}

.week-day-card.today-card {
    border-color: rgba(56,189,248,.52);
    box-shadow: inset 0 0 0 1px rgba(56,189,248,.12);
}

.week-day-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding-bottom: 11px;
    border-bottom: 1px solid var(--line);
}

.week-day-head span,
.week-day-head strong {
    display: block;
}

.week-day-head span {
    color: var(--muted);
    font-size: 12px;
}

.week-appointments {
    display: grid;
    gap: 8px;
    margin-top: 10px;
}

.week-appointment {
    display: block;
    padding: 10px;
    border: 1px solid var(--line);
    border-left: 3px solid #38bdf8;
    border-radius: 10px;
    color: white;
    background: rgba(255,255,255,.035);
    text-decoration: none;
}

.week-appointment strong,
.week-appointment span,
.week-appointment small {
    display: block;
}

.week-appointment span,
.week-appointment small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.status-border-pending { border-left-color: #eab308; }
.status-border-completed { border-left-color: #22c55e; }
.status-border-no_show { border-left-color: #f97316; }

.legal-shell {
    width: min(920px, calc(100% - 28px));
    margin: 0 auto;
    padding: 42px 0 70px;
}

.legal-card {
    padding: 28px;
}

.legal-card h2 { margin-top: 28px; }
.legal-card p,
.legal-card li { color: #b7c3d6; line-height: 1.7; }

.consent-stack {
    display: grid;
    gap: 10px;
    margin: 8px 0 2px;
}

.consent-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.45;
}

.consent-row input {
    margin-top: 2px;
    flex: 0 0 auto;
}

.auth-links {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    margin-top: 14px;
    flex-wrap: wrap;
}

@media (max-width: 980px) {
    .weekly-hours-head,
    .worker-schedule-head {
        display: none;
    }

    .weekly-hours-row {
        grid-template-columns: 1fr 1fr;
    }

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

    .worker-schedule-row strong {
        grid-column: 1 / -1;
    }

    .worker-schedule-row input,
    .worker-schedule-row select {
        min-width: 0;
    }

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

    .calendar-current-date {
        text-align: left;
    }

    .calendar-view-filter {
        width: 100%;
    }

    .calendar-view-filter select {
        flex: 1 1 0;
    }
}

@media (max-width: 560px) {
    .weekly-hours-row,
    .worker-schedule-row {
        grid-template-columns: 1fr;
    }

    .weekly-hours-row strong,
    .worker-schedule-row strong {
        font-size: 16px;
    }

    .verification-banner {
        align-items: flex-start;
    }

    .inline-form {
        display: block;
        width: 100%;
        margin: 6px 0 0;
    }

    .calendar-view-filter {
        display: grid;
    }

    .legal-card {
        padding: 18px;
    }
}

.btn-warning {
    border-color: rgba(249, 115, 22, .42);
    color: #fed7aa;
    background: rgba(154, 52, 18, .28);
}

.single-card-wrap {
    grid-template-columns: minmax(0, 460px);
    justify-content: center;
}

.calendar-swipe-hint {
    display: none;
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
}

@media (max-width: 560px) {
    .calendar-swipe-hint {
        display: block;
    }
}
