/* KK Club admin — стиль ЛК по макету (тёмный сайдбар + жёлтый акцент) */
:root {
    --sidebar: #10161f;
    --sidebar-2: #161e2a;
    --accent: #f5c400;
    --accent-ink: #1a1a1a;
    --bg: #eef1f5;
    --card: #ffffff;
    --ink: #1b2430;
    --muted: #6b7785;
    --line: #e3e8ef;
    --line-strong: #d0d7e1;
    --ok: #1f9d5c;
    --ok-bg: #e8f8ef;
    --danger: #d14343;
    --danger-bg: #fdeeee;
    --info: #2f6fed;
    --info-bg: #eaf1ff;
    --radius: 12px;
    --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.04);
    --font: "Onest", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
    margin: 0;
    font-family: var(--font);
    color: var(--ink);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }

.app {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 100vh;
}

.sidebar {
    background: linear-gradient(180deg, var(--sidebar) 0%, #0c1118 100%);
    color: #d7dde7;
    display: flex;
    flex-direction: column;
    padding: 20px 14px;
    position: sticky;
    top: 0;
    height: 100vh;
}
.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 10px 22px;
}
.brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: radial-gradient(circle at 30% 30%, #fff3b0, var(--accent));
    display: grid;
    place-items: center;
    color: #111;
    font-weight: 800;
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.15);
}
.brand-text { line-height: 1.15; }
.brand-text strong {
    display: block;
    color: #fff;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}
.brand-text span {
    color: #8b97a8;
    font-size: 0.75rem;
}

.side-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.side-link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #b7c0ce;
    position: relative;
    transition: background .15s, color .15s;
}
.side-link:hover { background: rgba(255,255,255,0.04); color: #fff; }
.side-link.is-active {
    background: rgba(245, 196, 0, 0.12);
    color: var(--accent);
}
.side-link.is-active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 10px;
    bottom: 10px;
    width: 3px;
    border-radius: 0 4px 4px 0;
    background: var(--accent);
}
.side-link svg { width: 18px; height: 18px; flex-shrink: 0; opacity: 0.9; }
.side-link.is-soon { opacity: 0.45; pointer-events: none; }
.side-link--nested {
    padding: 9px 12px 9px 42px;
    font-size: 0.92rem;
}
.side-link--nested.is-active::before {
    left: -14px;
}

.side-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.side-group__toggle {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 12px;
    border-radius: 10px;
    color: #b7c0ce;
    cursor: pointer;
    list-style: none;
    transition: background .15s, color .15s;
    user-select: none;
}
.side-group__toggle::-webkit-details-marker { display: none; }
.side-group__toggle::marker { content: ""; }
.side-group__toggle:hover { background: rgba(255,255,255,0.04); color: #fff; }
.side-group.is-active > .side-group__toggle {
    color: var(--accent);
}
.side-group__toggle > svg:first-child {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    opacity: 0.9;
}
.side-group__toggle > span { flex: 1; min-width: 0; }
.side-group__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    opacity: 0.7;
    transition: transform .15s ease;
}
.side-group[open] > .side-group__toggle .side-group__chevron {
    transform: rotate(180deg);
}
.side-group__items {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding-bottom: 2px;
}

.side-user {
    margin-top: auto;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.06);
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.side-user__profile {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px;
    margin: -2px;
    border-radius: 10px;
    color: inherit;
    text-decoration: none;
    transition: background 0.15s ease;
}
.side-user__profile:hover {
    background: rgba(255,255,255,0.06);
}
.side-user__profile:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #2a3545;
    color: var(--accent);
    display: grid;
    place-items: center;
    font-weight: 700;
    font-size: 0.8rem;
    flex-shrink: 0;
}
.side-user__meta {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.side-user__name {
    display: block;
    color: #fff;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.side-user__role {
    color: #9aa6b5;
    font-size: 0.72rem;
    line-height: 1.3;
}
.side-user__hint {
    color: var(--accent);
    font-size: 0.72rem;
    font-weight: 500;
    line-height: 1.3;
    opacity: 0.9;
}
.side-user__chevron {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    color: #7d8898;
    opacity: 0.85;
}
.side-user__profile:hover .side-user__chevron {
    color: #fff;
}
.side-user__actions {
    display: flex;
    gap: 6px;
}
.side-user__actions form {
    flex: 1;
    min-width: 0;
    margin: 0;
}
.side-user__btn {
    width: 100%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,0.08);
    background: rgba(255,255,255,0.03);
    color: #c9d2de;
    font: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.side-user__btn svg {
    width: 15px;
    height: 15px;
    flex-shrink: 0;
    opacity: 0.9;
}
.side-user__btn:hover {
    background: rgba(255,255,255,0.08);
    border-color: rgba(255,255,255,0.14);
    color: #fff;
}
.side-user__btn--logout:hover {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fecaca;
}

.main {
    display: flex;
    flex-direction: column;
    min-width: 0;
}
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 16px 28px;
    background: rgba(238, 241, 245, 0.92);
    backdrop-filter: blur(8px);
    position: sticky;
    top: 0;
    z-index: 5;
    border-bottom: 1px solid transparent;
}
.breadcrumbs {
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn, .select-pill {
    height: 40px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: var(--card);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0 12px;
    box-shadow: var(--shadow);
}
.icon-btn { width: 40px; justify-content: center; padding: 0; position: relative; cursor: pointer; text-decoration: none; color: inherit; }
a.select-pill { text-decoration: none; color: inherit; cursor: pointer; }
a.select-pill:hover { border-color: #c9d2de; }
.badge-dot {
    position: absolute;
    top: -4px;
    right: -4px;
    min-width: 18px;
    height: 18px;
    border-radius: 999px;
    background: var(--danger);
    color: #fff;
    font-size: 0.68rem;
    display: grid;
    place-items: center;
    padding: 0 4px;
    border: 2px solid var(--bg);
}

.content { padding: 8px 28px 28px; flex: 1; }
.page-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 18px;
}
.page-head h1 {
    margin: 0;
    font-size: 1.75rem;
    letter-spacing: -0.02em;
}
.page-head p {
    margin: 6px 0 0;
    color: var(--muted);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    border: 0;
    cursor: pointer;
    font-weight: 650;
    transition: transform .05s ease, filter .15s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(0.98); }
.btn-secondary {
    background: var(--card);
    color: var(--ink);
    border: 1px solid var(--line-strong);
}
.btn-danger {
    background: #fff;
    color: var(--danger);
    border: 1px solid #f0b4b4;
}
.btn-danger:hover { background: var(--danger-bg); }
.actions-row {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}


.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card-pad { padding: 18px; }
.card + .card { margin-top: 14px; }

.filters {
    display: grid;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    gap: 12px;
    padding: 14px;
    margin-bottom: 14px;
}
.filters--services {
    grid-template-columns: 1.2fr 1fr 1fr 1fr auto;
}
.filters--resources {
    grid-template-columns: repeat(2, 1.2fr) 1fr 1fr auto;
}
.trash-section-head {
    padding: 16px 18px 4px;
}
.trash-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
}
.trash-section-head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.85rem;
}
.field label {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 6px;
    font-weight: 600;
}
.field input, .field select, .field textarea {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0 12px;
    background: #fff;
    color: var(--ink);
}
.field textarea {
    height: auto;
    min-height: 96px;
    padding: 10px 12px;
    resize: vertical;
}
.field input:focus, .field select:focus, .field textarea:focus {
    outline: 2px solid rgba(245, 196, 0, 0.35);
    border-color: #e0b400;
}
.field-check .check-label {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.92rem;
    color: var(--ink);
    font-weight: 600;
    cursor: pointer;
}
.field-check .check-label input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: #c9a000;
    flex-shrink: 0;
}
.search-wrap { position: relative; }
.search-wrap svg {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    color: var(--muted);
}
.search-wrap input { padding-left: 36px; }

.table-wrap { overflow: auto; }
table.data {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}
table.data th {
    text-align: left;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.02em;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    background: #fafbfc;
}
table.data td {
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
table.data tr:last-child td { border-bottom: 0; }
.cell-name {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 650;
}
.cell-ico {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: #f3f6fa;
    display: grid;
    place-items: center;
    color: #5b6b7f;
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 650;
}
.pill-ok { background: var(--ok-bg); color: var(--ok); }
.pill-danger { background: var(--danger-bg); color: var(--danger); }
.pill-warn { background: #fef3c7; color: #b45309; }
.pill-muted { background: #eef1f5; color: #5b6b7f; }
.pill-series { background: #e8eefc; color: #2f56a6; }

.amenity-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.amenity-checks {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
}
.amenity-check {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    font-size: 0.95rem;
    cursor: pointer;
}
.amenity-check input {
    width: auto;
    height: auto;
    margin: 0;
}
.booking-tables-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 8px 12px;
    margin-top: 6px;
}
.booking-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 12px;
}
.booking-actions form {
    margin: 0;
}
.booking-edit-form {
    display: grid;
    gap: 14px;
}
.booking-edit-section-head {
    margin-bottom: 14px;
}
.booking-edit-section-head h2 {
    margin: 0;
    font-size: 1.05rem;
}
.booking-edit-section-head p {
    margin: 4px 0 0;
}
.booking-edit-links {
    display: grid;
    gap: 10px;
}
.booking-edit-link-row {
    display: grid;
    grid-template-columns: minmax(140px, 200px) 1fr;
    gap: 12px 16px;
    align-items: start;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--surface, #fff);
}
.booking-edit-link-row.is-active {
    border-color: color-mix(in srgb, var(--accent, #2f6fed) 35%, var(--line));
    background: color-mix(in srgb, var(--accent, #2f6fed) 4%, #fff);
}
.booking-edit-table-check {
    padding-top: 8px;
    font-weight: 600;
}
.booking-edit-link-times {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
}
.booking-edit-link-times .field {
    margin: 0;
}
.booking-edit-link-times label {
    font-size: 0.82rem;
    color: var(--muted);
}
.booking-edit-link-times input {
    height: 40px;
}
.booking-edit-actions .form-actions {
    margin-top: 0;
}
@media (max-width: 720px) {
    .booking-edit-link-row {
        grid-template-columns: 1fr;
    }
    .booking-edit-link-times {
        grid-template-columns: 1fr;
    }
}
.dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}
.dot-ok { background: var(--ok); }
.dot-muted { background: #b0bac7; }

.row-actions { display: flex; gap: 8px; justify-content: flex-end; }
.col-check {
    width: 40px;
    text-align: center;
    vertical-align: middle;
}
.col-check input { width: auto; height: auto; margin: 0; cursor: pointer; }
.bulk-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    padding: 12px 14px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    position: sticky;
    top: 64px;
    z-index: 4;
}
.bulk-bar-meta { font-size: 0.92rem; }
.bulk-bar-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(16, 22, 31, 0.45);
}
.modal-backdrop[hidden] {
    display: none !important;
}
.modal {
    width: min(400px, 100%);
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 24px 64px rgba(16, 24, 40, 0.18);
    padding: 20px 20px 16px;
}
.modal h2 {
    margin: 0 0 6px;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}
.modal-text {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}
.modal-choice {
    margin: 0 0 18px;
    padding: 0;
    border: 0;
    display: grid;
    gap: 8px;
}
.modal-choice[hidden] {
    display: none !important;
}
.modal-choice-legend {
    padding: 0;
    margin: 0 0 2px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--muted);
}
.modal-choice-option {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    align-items: start;
    margin: 0;
    padding: 11px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    cursor: pointer;
    background: #fff;
    transition: border-color .12s ease, background .12s ease;
}
.modal-choice-option:hover {
    border-color: var(--line-strong);
    background: #fafbfc;
}
.modal-choice-option:has(input:checked) {
    border-color: #c9d6f5;
    background: var(--info-bg);
}
.modal-choice-option input {
    width: auto;
    height: auto;
    margin-top: 3px;
    accent-color: var(--info);
}
.modal-choice-option strong {
    display: block;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
}
.modal-choice-option small {
    display: block;
    margin-top: 2px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
}
.modal-actions {
    display: flex;
    gap: 8px;
    justify-content: flex-end;
    border-top: 1px solid var(--line);
    margin: 0 -4px;
    padding: 14px 4px 0;
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-top: 14px;
}
.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
}
.stat-ico {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
}
.stat-ico.info { background: var(--info-bg); color: var(--info); }
.stat-ico.ok { background: var(--ok-bg); color: var(--ok); }
.stat strong { display: block; font-size: 1.05rem; }
.stat span { color: var(--muted); font-size: 0.84rem; }

.flash {
    background: var(--ok-bg);
    color: #146c3f;
    border: 1px solid #bfe8cf;
    padding: 12px 14px;
    border-radius: 10px;
    margin-bottom: 14px;
}
.flash-err {
    background: var(--danger-bg);
    color: var(--danger);
    border-color: #f0c4c4;
}
.error { color: var(--danger); font-size: 0.84rem; margin-top: 6px; }

.footer {
    margin-top: auto;
    padding: 16px 28px 22px;
    color: var(--muted);
    font-size: 0.8rem;
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 18px;
}
.tabs {
    display: flex;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 18px;
    overflow: auto;
}
.tab {
    padding: 10px 2px 12px;
    color: var(--muted);
    font-weight: 600;
    font-size: 0.9rem;
    border: 0;
    border-bottom: 2px solid transparent;
    background: transparent;
    cursor: pointer;
    white-space: nowrap;
    font-family: inherit;
}
.tab.is-active { color: var(--ink); border-color: var(--accent); }
.tab.is-soon { opacity: 0.4; cursor: default; }

.login-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
    background:
        radial-gradient(circle at 20% 20%, rgba(245, 196, 0, 0.18), transparent 35%),
        radial-gradient(circle at 80% 0%, rgba(47, 111, 237, 0.12), transparent 30%),
        linear-gradient(160deg, #0f141c, #1a2330 50%, #121820);
}
.login-card {
    width: min(420px, 100%);
    background: var(--card);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.login-card h1 { margin: 0 0 6px; font-size: 1.45rem; }
.login-card p { margin: 0 0 18px; color: var(--muted); }

@media (max-width: 1100px) {
    .filters,
    .filters--services,
    .filters--resources { grid-template-columns: 1fr 1fr; }
    .stats { grid-template-columns: 1fr; }
}
.booking-grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 14px;
    align-items: start;
}
.booking-grid-panel { padding: 14px; overflow: hidden; }
.booking-grid-legend {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 10px;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
}
.bg-swatch {
    display: inline-block;
    width: 14px;
    height: 14px;
    border-radius: 4px;
    margin-right: 6px;
    vertical-align: -2px;
    border: 1px solid var(--line-strong);
}
.bg-swatch.is-free { background: #fff; }
.bg-swatch.is-selected { background: rgba(245, 196, 0, 0.55); border-color: #e0b400; }
.bg-swatch.is-occupied { background: #e8edf5; border-color: #7b8798; }
.bg-swatch.is-carvable {
    background: repeating-linear-gradient(
        -45deg,
        #fff7e0,
        #fff7e0 4px,
        #f0d48a 4px,
        #f0d48a 8px
    );
    border-color: #c97800;
}
.booking-grid-scroll { overflow: auto; max-height: min(70vh, 720px); border: 1px solid var(--line); border-radius: 10px; }
.booking-grid {
    border-collapse: separate;
    border-spacing: 0;
    min-width: 100%;
    font-size: 0.78rem;
}
.booking-grid th, .booking-grid td {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 0;
    text-align: center;
    white-space: nowrap;
    vertical-align: middle;
}
.booking-grid thead th {
    position: sticky;
    top: 0;
    z-index: 2;
    background: #f7f9fc;
    color: var(--muted);
    font-weight: 650;
    padding: 8px 4px;
    min-width: 52px;
}
.booking-grid-corner,
.booking-grid tbody th {
    position: sticky;
    left: 0;
    z-index: 1;
    background: #fff;
    text-align: left;
    padding: 8px 12px;
    min-width: 110px;
    font-weight: 650;
    border-right: 1px solid var(--line-strong);
}
.booking-grid thead .booking-grid-corner { z-index: 3; background: #f7f9fc; }
.bg-cell {
    display: table-cell;
    width: 52px;
    min-width: 52px;
    height: 36px;
    border: 0;
    background: #fff;
    cursor: cell;
    padding: 0;
    user-select: none;
    -webkit-user-select: none;
    touch-action: none;
}
.bg-cell.is-free:hover { background: #f5f7fa; }
.bg-cell.is-selected { background: rgba(245, 196, 0, 0.55); }
.bg-cell.is-occupied {
    background: #eef1f6;
    cursor: default;
    padding: 2px;
}
.bg-cell.is-carvable {
    --carve-intensity: 0.45;
    background: repeating-linear-gradient(
        -45deg,
        rgba(255, 248, 232, calc(0.35 + var(--carve-intensity) * 0.65)),
        rgba(255, 248, 232, calc(0.35 + var(--carve-intensity) * 0.65)) 5px,
        rgba(245, 223, 160, calc(0.25 + var(--carve-intensity) * 0.75)) 5px,
        rgba(245, 223, 160, calc(0.25 + var(--carve-intensity) * 0.75)) 10px
    );
    box-shadow: inset 0 0 0 calc(1px + var(--carve-intensity) * 2px) rgba(201, 120, 0, calc(0.25 + var(--carve-intensity) * 0.55));
    cursor: cell;
    opacity: calc(0.55 + var(--carve-intensity) * 0.45);
}
.booking-grid--carve .bg-cell.is-carvable:hover {
    opacity: 1;
}
.bg-cell.is-booking-block {
    background: transparent;
    border-left: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.bg-booking {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
    height: 100%;
    min-height: 32px;
    padding: 4px 8px;
    border: 1.5px solid #7b8798;
    border-radius: 8px;
    background: linear-gradient(180deg, #f7f9fc 0%, #e8edf5 100%);
    color: var(--ink);
    text-decoration: none;
    overflow: hidden;
    box-shadow: inset 0 0 0 1px rgba(255,255,255,0.6);
    text-align: center;
}
.bg-cell.is-multi-table .bg-booking {
    min-height: 100%;
    flex-direction: column;
    gap: 4px;
}
.bg-booking-muted {
    min-height: 32px;
}
.bg-booking:hover {
    border-color: #4d5b70;
    background: linear-gradient(180deg, #fff 0%, #eef2f8 100%);
}
.bg-booking-name {
    font-weight: 700;
    font-size: 0.78rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.bg-booking-dur {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}
.bg-booking-members {
    color: var(--ink);
    font-size: 0.72rem;
    font-weight: 700;
    flex-shrink: 0;
    padding: 1px 6px;
    border-radius: 999px;
    background: rgba(27, 36, 48, 0.08);
}
.bg-booking-phone-inline {
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 600;
    flex-shrink: 0;
}
.bg-booking-phone-btn {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    border: 0;
    border-radius: 6px;
    background: rgba(27, 36, 48, 0.06);
    color: var(--ink);
    display: inline-grid;
    place-items: center;
    cursor: pointer;
    padding: 0;
}
.bg-booking-phone-btn:hover,
.bg-booking-phone-btn[aria-expanded="true"] {
    background: var(--accent);
    color: var(--accent-ink);
}
.bg-booking-phone-pop {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 6px;
    padding: 2px 6px;
    white-space: nowrap;
}
.booking-grid-hint { margin: 10px 0 0; font-size: 0.8rem; }
.booking-grid-sidebar h2 {
    margin: 0 0 12px;
    font-size: 1.05rem;
}
.booking-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-bottom: 14px;
}
.booking-summary-item {
    background: #f7f9fc;
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 10px 8px;
    text-align: center;
}
.booking-summary-item span {
    display: block;
    color: var(--muted);
    font-size: 0.72rem;
    font-weight: 650;
    margin-bottom: 4px;
}
.booking-summary-item strong {
    font-size: 0.95rem;
}
.booking-selection-list { display: flex; flex-direction: column; gap: 8px; min-height: 48px; }
.booking-selection-item {
    display: grid;
    gap: 2px;
    padding: 10px 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fafbfc;
    position: relative;
}
.booking-selection-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.booking-selection-item strong { font-size: 0.9rem; }
.booking-selection-item span { color: var(--muted); font-size: 0.8rem; }
.booking-selection-item em { font-style: normal; font-weight: 700; font-size: 0.9rem; }
.booking-selection-remove {
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    font-size: 1.25rem;
    line-height: 1;
    cursor: pointer;
    flex-shrink: 0;
}
.booking-selection-remove:hover {
    background: var(--danger-bg);
    color: var(--danger);
}
.booking-total {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}
.booking-total strong { font-size: 1.15rem; }
@media (max-width: 1100px) {
    .booking-grid-layout { grid-template-columns: 1fr; }
}

.series-confirm-summary { margin-bottom: 0; }
.series-confirm-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px 18px;
}
.series-confirm-meta span {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 600;
    margin-bottom: 4px;
}
.series-confirm-meta strong { font-size: 0.95rem; }
.series-section-title {
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.series-free-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 8px;
}
.series-free-list li {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    padding: 10px 12px;
    background: #f4faf6;
    border: 1px solid #cfe8d8;
    border-radius: 10px;
}
.series-conflict {
    padding: 14px 0;
    border-top: 1px solid var(--line);
}
.series-conflict:first-of-type { border-top: 0; padding-top: 0; }
.series-conflict-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 6px;
}
.series-conflict-head strong { display: block; font-size: 1rem; }
.series-conflict-head .muted { font-size: 0.86rem; }
.series-conflict-badge {
    flex-shrink: 0;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #8a4b00;
    background: #fff3d6;
    border: 1px solid #f0d48a;
    border-radius: 999px;
    padding: 4px 10px;
}
.series-conflict-reason {
    margin: 0 0 12px;
    color: var(--danger);
    font-size: 0.86rem;
}
.series-alt-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 10px;
}
.series-alt-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 14px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
    min-height: 112px;
}
.series-alt-card:hover {
    border-color: #e0b400;
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.18);
}
.series-alt-card:has(input:checked) {
    border-color: #e0b400;
    background: rgba(245, 196, 0, 0.12);
    box-shadow: 0 0 0 3px rgba(245, 196, 0, 0.22);
}
.series-alt-card.is-skip {
    background: #f7f8fa;
}
.series-alt-card input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.series-alt-kind {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.series-alt-label {
    font-size: 0.95rem;
    line-height: 1.25;
}
.series-alt-summary {
    font-size: 0.8rem;
    color: var(--muted);
}
.series-alt-changes {
    list-style: none;
    margin: 4px 0 0;
    padding: 0;
    display: grid;
    gap: 4px;
    font-size: 0.78rem;
}
.series-alt-changes li {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 6px;
    align-items: baseline;
}
.series-alt-changes span:first-child {
    color: var(--muted);
    font-weight: 600;
}
.series-alt-changes em {
    font-style: normal;
    font-weight: 600;
}
.series-confirm-actions {
    position: sticky;
    bottom: 0;
    background: linear-gradient(180deg, transparent, #f3f5f8 28%);
    padding: 18px 0 8px;
    margin-top: 8px;
}
.series-confirm-form .error { margin-top: 8px; }

.notification-card { margin-bottom: 12px; }
.notification-card.is-done { opacity: 0.72; }
.notification-card-head {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    align-items: flex-start;
}
.notification-card-head h2 {
    margin: 4px 0 0;
    font-size: 1.05rem;
}
.notification-type {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--muted);
}
.notification-body { margin: 10px 0 0; line-height: 1.45; }

.call-board {
    margin: 0 0 18px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.call-board-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    margin-bottom: 12px;
}
.call-board-head h2 {
    margin: 0;
    font-size: 1.05rem;
}
.call-board-subhead {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 16px 0 10px;
}
.call-board-subhead h3 {
    margin: 0;
    font-size: 0.95rem;
}
.call-missed-nav {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.call-missed-count {
    margin: 4px 0 0;
    font-size: 0.86rem;
    color: var(--danger);
    font-weight: 600;
}
.call-card-list { display: grid; gap: 10px; }

.telephony-live-banner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: var(--radius);
    border: 1px solid color-mix(in srgb, var(--ok) 45%, var(--line));
    background: color-mix(in srgb, var(--ok-bg, #e8f6ee) 85%, #fff);
    box-shadow: var(--shadow);
}
.telephony-live-banner[hidden] { display: none !important; }
.telephony-live-banner__body {
    display: grid;
    gap: 2px;
}
.telephony-live-banner__body strong {
    font-size: 0.95rem;
}
.telephony-live-banner__body span {
    color: var(--muted);
    font-size: 0.88rem;
}
.telephony-live-banner__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.call-empty { margin: 0; }
.call-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-left: 4px solid var(--ok);
}
.call-card--missed { border-left-color: var(--danger); }
.call-card--needs-outcome { border-left-color: #c97800; }
.call-card-head {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}
.call-card-title {
    margin: 8px 0 2px;
    font-size: 1.05rem;
}
.call-card-phone {
    margin: 0;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.call-card-meta { font-size: 0.82rem; white-space: nowrap; }
.call-lead-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin-top: 8px;
    font-size: 0.85rem;
}
.call-lead-flag {
    color: #8a4b00;
    font-weight: 600;
}
.call-ktokyda-hint {
    margin-top: 10px;
    padding: 10px 12px;
    background: #f3f7ff;
    border: 1px dashed #7aa2d6;
    border-radius: 8px;
    font-size: 0.9rem;
}
.call-ktokyda-hint p { margin: 0 0 8px; }
.call-habit {
    margin: 10px 0 0;
    padding: 8px 10px;
    background: var(--info-bg);
    color: #1e3a6e;
    border-radius: 8px;
    font-size: 0.9rem;
}
.call-active {
    margin-top: 10px;
    padding: 10px 12px;
    background: #eef8f1;
    border: 1px solid #9ec9ab;
    border-radius: 8px;
    font-size: 0.9rem;
}
.call-active__head {
    font-weight: 650;
    color: #1a4d2e;
    margin-bottom: 8px;
}
.call-active__list {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.call-active__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #b7d9c2;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    font-weight: 600;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.call-active__link:hover {
    border-color: #3d8f5a;
    box-shadow: 0 0 0 2px rgba(61, 143, 90, 0.15);
}
.call-active__main { min-width: 0; }
.call-active__go {
    flex-shrink: 0;
    font-size: 0.82rem;
    font-weight: 650;
    color: #2f6b45;
}
.call-branches { margin-top: 10px; }
.call-branch-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.call-branch-switch .is-active {
    background: var(--accent);
    color: var(--accent-ink);
    border-color: var(--accent);
}
.call-card-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.btn-sm {
    padding: 6px 12px;
    font-size: 0.85rem;
    border-radius: 8px;
}

.dash-surplus {
    margin: 0 0 18px;
    padding: 12px 14px 10px;
    border: 1px solid color-mix(in srgb, #c97800 28%, var(--line));
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    background: linear-gradient(180deg, #fffbf3 0%, #fff 28%);
}
.dash-surplus__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}
.dash-surplus__title {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.2;
}
.dash-surplus__hint {
    margin: 2px 0 0;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.3;
}
.dash-surplus__total {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #8a4b00;
    background: #fff4df;
    border: 1px solid #f0d9a8;
    font-variant-numeric: tabular-nums;
}
.dash-surplus__list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.dash-surplus__row {
    display: grid;
    grid-template-columns: 3.2rem minmax(0, 1fr) auto auto auto;
    gap: 8px 10px;
    align-items: center;
    padding: 8px 4px;
    margin: 0 -4px;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    border-top: 1px solid var(--line);
    transition: background 0.12s ease;
}
.dash-surplus__list > li:first-child .dash-surplus__row {
    border-top: none;
}
.dash-surplus__row:hover {
    background: #fff8eb;
}
.dash-surplus__when {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8a4b00;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.dash-surplus__main {
    min-width: 0;
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 2px 8px;
}
.dash-surplus__name {
    font-size: 0.88rem;
    font-weight: 600;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 100%;
}
.dash-surplus__branch {
    font-size: 0.75rem;
    color: var(--muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dash-surplus__fill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}
.dash-surplus__bar {
    width: 36px;
    height: 5px;
    border-radius: 999px;
    background: #ece7dc;
    overflow: hidden;
}
.dash-surplus__bar-fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #f0c14a, #c97800);
}
.dash-surplus__ratio {
    font-size: 0.75rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
    min-width: 2.6rem;
}
.dash-surplus__free {
    font-size: 0.8rem;
    font-weight: 700;
    color: #8a4b00;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
}
.dash-surplus__go {
    font-size: 0.85rem;
    font-weight: 650;
    color: #c97800;
    opacity: 0.7;
}
.dash-surplus__row:hover .dash-surplus__go {
    opacity: 1;
}
@media (max-width: 720px) {
    .dash-surplus__row {
        grid-template-columns: 2.8rem minmax(0, 1fr) auto;
        grid-template-areas:
            "when main free"
            "when fill go";
        row-gap: 4px;
    }
    .dash-surplus__when { grid-area: when; align-self: start; padding-top: 2px; }
    .dash-surplus__main { grid-area: main; }
    .dash-surplus__fill { grid-area: fill; }
    .dash-surplus__free { grid-area: free; }
    .dash-surplus__go { grid-area: go; justify-self: end; }
    .dash-surplus__bar { width: 28px; }
}

.photo-gallery__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 16px;
}
.photo-gallery__title {
    margin: 0 0 6px;
    font-size: 1.05rem;
}
.photo-gallery__hint {
    margin: 0;
    color: var(--muted);
    font-size: 0.86rem;
    line-height: 1.4;
    max-width: 52ch;
}
.photo-gallery__counter {
    flex-shrink: 0;
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--muted);
    background: #f3f5f8;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 6px 12px;
}
.photo-dropzone {
    border: 1.5px dashed #c5ced9;
    border-radius: 16px;
    background:
        linear-gradient(180deg, #fbfcfe 0%, #f4f7fb 100%);
    padding: 28px 20px;
    text-align: center;
    cursor: pointer;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
    margin-bottom: 16px;
}
.photo-dropzone:hover,
.photo-dropzone.is-dragover {
    border-color: #e0b400;
    background: rgba(245, 196, 0, 0.08);
    box-shadow: 0 0 0 4px rgba(245, 196, 0, 0.12);
}
.photo-dropzone.is-busy { opacity: 0.65; pointer-events: none; }
.photo-dropzone__inner {
    display: grid;
    gap: 6px;
    justify-items: center;
    color: var(--muted);
    font-size: 0.9rem;
}
.photo-dropzone__inner strong {
    color: var(--ink);
    font-size: 1rem;
}
.photo-dropzone__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--ink);
    margin-bottom: 4px;
}
.photo-dropzone__icon svg { width: 22px; height: 22px; }
.photo-dropzone__link {
    border: 0;
    background: none;
    color: var(--info);
    font: inherit;
    font-weight: 700;
    cursor: pointer;
    padding: 0;
    text-decoration: underline;
    text-underline-offset: 2px;
}
.photo-dropzone__meta { font-size: 0.78rem; }
.photo-gallery__error {
    margin: -6px 0 14px;
    color: var(--danger);
    font-size: 0.86rem;
}
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px;
    min-height: 40px;
}
.photo-grid__empty {
    margin: 0;
    color: var(--muted);
    font-size: 0.9rem;
    grid-column: 1 / -1;
    padding: 8px 0;
}
.photo-thumb {
    position: relative;
    margin: 0;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line-strong);
    background: #e8edf5;
    cursor: grab;
    user-select: none;
    box-shadow: 0 8px 18px rgba(20, 30, 45, 0.06);
    transition: transform .15s ease, box-shadow .15s ease, outline-color .15s ease;
}
.photo-thumb:active { cursor: grabbing; }
.photo-thumb.is-dragging {
    opacity: 0.55;
    transform: scale(0.98);
}
.photo-thumb.is-drop-target {
    outline: 2px solid #e0b400;
    outline-offset: 2px;
}
.photo-thumb.is-cover {
    box-shadow: 0 0 0 2px #e0b400, 0 10px 22px rgba(20, 30, 45, 0.1);
}
.photo-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    pointer-events: none;
}
.photo-thumb__badge {
    position: absolute;
    left: 8px;
    bottom: 8px;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: var(--accent-ink);
    background: var(--accent);
    border-radius: 999px;
    padding: 4px 8px;
}
.photo-thumb__remove {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    border: 0;
    border-radius: 8px;
    background: rgba(15, 20, 28, 0.72);
    color: #fff;
    font-size: 1.1rem;
    line-height: 1;
    cursor: pointer;
    display: grid;
    place-items: center;
    opacity: 0;
    transition: opacity .15s ease;
}
.photo-thumb:hover .photo-thumb__remove,
.photo-thumb:focus-within .photo-thumb__remove { opacity: 1; }
.photo-thumb__handle {
    position: absolute;
    top: 8px;
    left: 8px;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255,255,255,0.88);
    color: var(--muted);
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    letter-spacing: -1px;
    opacity: 0;
    pointer-events: none;
}
.photo-thumb:hover .photo-thumb__handle { opacity: 1; }

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}
.data-table th, .data-table td {
    text-align: left;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}
.data-table th {
    font-size: 0.75rem;
    color: var(--muted);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.city-select { position: relative; }
.city-select__box { position: relative; }
.city-select__input {
    width: 100%;
    height: 42px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    padding: 0 36px 0 12px;
    background: #fff;
    font: inherit;
}
.city-select__clear {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 26px;
    height: 26px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 1.1rem;
    line-height: 1;
}
.city-select__clear:hover { background: #f0f3f7; color: var(--ink); }
.city-select__list {
    position: absolute;
    z-index: 40;
    left: 0;
    right: 0;
    top: calc(100% + 6px);
    margin: 0;
    padding: 6px;
    list-style: none;
    max-height: 240px;
    overflow: auto;
    background: #fff;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    box-shadow: 0 16px 40px rgba(20, 30, 45, 0.12);
}
.city-select__option {
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.92rem;
}
.city-select__option:hover,
.city-select__option.is-active {
    background: rgba(245, 196, 0, 0.16);
}
.city-select__empty {
    padding: 12px;
    color: var(--muted);
    font-size: 0.86rem;
}
.city-select__hint {
    margin: 6px 0 0;
    font-size: 0.78rem;
}

.phone-row {
    display: grid;
    grid-template-columns: 148px 1fr;
    gap: 8px;
}
.phone-country { height: 42px; border: 1px solid var(--line-strong); border-radius: 10px; padding: 0 8px; background: #fff; }
@media (max-width: 860px) {
    .phone-row { grid-template-columns: 1fr; }
    .app { grid-template-columns: 1fr; }
    .sidebar {
        height: auto;
        position: relative;
        padding-bottom: 8px;
    }
    .side-nav { flex-direction: row; flex-wrap: wrap; }
    .side-link.is-active::before { display: none; }
    .side-group { width: 100%; }
    .side-group__items { flex-direction: row; flex-wrap: wrap; gap: 4px; }
    .side-link--nested { padding-left: 12px; }
    .side-user { margin-top: 12px; }
    .grid-2 { grid-template-columns: 1fr; }
    .grid-3 { grid-template-columns: 1fr; }
    .content, .topbar, .footer { padding-left: 16px; padding-right: 16px; }
    .choice-grid--2 { grid-template-columns: 1fr; }
    .staff-form-section__head { flex-direction: column; align-items: stretch; }
}

/* Staff users */
.staff-form {
    max-width: 820px;
}
.staff-page-head {
    align-items: flex-end;
}
.staff-page-head__main {
    min-width: 0;
}
.staff-back {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}
.staff-back:hover { color: var(--ink); }
.staff-form-section {
    padding-bottom: 26px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--line);
}
.staff-form-section--profile {
    padding-bottom: 28px;
}
.staff-form-section--last {
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 4px;
}
.staff-form-section__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
}
.staff-form-section__head h2 {
    margin: 0;
    font-size: 1.05rem;
    letter-spacing: -0.01em;
}
.staff-form-section__head p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.35;
}
.staff-readonly {
    min-height: 42px;
    display: flex;
    align-items: center;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f7f8fa;
    border: 1px solid var(--line);
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.35;
}
.staff-form-section__tools {
    display: flex;
    gap: 4px;
    flex-shrink: 0;
}
.staff-link-btn {
    height: 32px;
    padding: 0 10px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--muted);
}
.staff-link-btn:hover {
    color: var(--ink);
    background: #f3f6fa;
}
.field-note {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.35;
}
.field-hint-inline {
    margin-left: 6px;
    font-weight: 500;
    color: var(--muted);
    font-size: 0.8rem;
    text-transform: none;
    letter-spacing: 0;
}
.staff-profile {
    display: grid;
    grid-template-columns: minmax(240px, 280px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}
.staff-profile__fields {
    display: grid;
    gap: 14px;
}
.staff-avatar-upload {
    display: grid;
    gap: 14px;
    justify-items: start;
}
.staff-avatar-upload__frame {
    position: relative;
    width: 148px;
    height: 148px;
    padding: 0;
    border: 2px dashed var(--line-strong);
    border-radius: 28px;
    background: linear-gradient(160deg, #f7f9fc, #eef2f7);
    overflow: hidden;
    cursor: pointer;
    color: var(--muted);
    transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.staff-avatar-upload.is-dragover .staff-avatar-upload__frame,
.staff-avatar-upload__frame:hover {
    border-color: #c9d4e4;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    transform: translateY(-1px);
}
.staff-avatar-upload[data-has-photo="1"] .staff-avatar-upload__frame {
    border-style: solid;
    border-color: var(--line);
}
.staff-avatar-upload__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.staff-avatar-upload__placeholder {
    position: absolute;
    inset: 0;
    display: grid;
    place-content: center;
    gap: 6px;
    text-align: center;
    padding: 12px;
}
.staff-avatar-upload__initials {
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: 0.02em;
    color: #4b5b70;
}
.staff-avatar-upload__hint {
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--muted);
}
.staff-avatar-upload__overlay {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 36px;
    background: rgba(16, 22, 31, 0.72);
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity .15s ease;
}
.staff-avatar-upload__frame:hover .staff-avatar-upload__overlay,
.staff-avatar-upload__frame:focus-visible .staff-avatar-upload__overlay {
    opacity: 1;
}
.staff-avatar-upload__meta strong {
    display: block;
    font-size: 0.95rem;
}
.staff-avatar-upload__meta p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.4;
}
.staff-avatar-upload__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}
.btn-sm {
    height: 34px;
    padding: 0 12px;
    font-size: 0.84rem;
}
.btn-ghost-danger {
    height: 34px;
    padding: 0 12px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--danger);
    font-weight: 650;
    cursor: pointer;
}
.btn-ghost-danger:hover {
    background: var(--danger-bg);
}
.is-hidden { display: none !important; }

.staff-pin-panel {
    display: grid;
    grid-template-columns: 44px 1fr;
    gap: 14px;
    align-items: start;
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--line);
    background: #f8fafc;
}
.staff-pin-panel--set {
    background: var(--ok-bg);
    border-color: #c7ebd7;
}
.staff-pin-panel__icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: #fff;
    color: #445468;
    border: 1px solid var(--line);
}
.staff-pin-panel--set .staff-pin-panel__icon {
    color: var(--ok);
    border-color: #c7ebd7;
}
.staff-pin-panel__body strong {
    display: block;
    font-size: 0.95rem;
}
.staff-pin-panel__body p {
    margin: 4px 0 0;
    color: var(--muted);
    font-size: 0.84rem;
    line-height: 1.4;
}
.staff-check--panel {
    margin-top: 12px;
    color: var(--ink);
    font-weight: 600;
}

.choice-grid {
    margin: 0;
    padding: 0;
    border: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
}
.choice-grid--2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}
.choice-card {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 12px;
    align-items: start;
    margin: 0;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
    background: #fff;
    transition: border-color .12s ease, background .12s ease;
}
.choice-card:hover {
    border-color: var(--line-strong);
    background: #fafbfc;
}
.choice-card:has(input:checked) {
    border-color: #e0b400;
    background: #fffbeb;
}
.choice-card input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #c9a000;
}
.choice-card__body strong {
    display: block;
    font-size: 0.94rem;
    font-weight: 650;
    color: var(--ink);
}
.choice-card__body small {
    display: block;
    margin-top: 3px;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.35;
}
.coach-flags {
    max-width: none;
}
.coach-mode-panel {
    margin: 0;
}
.coach-mode-panel__field {
    margin-top: 14px;
}
.field--narrow {
    max-width: 220px;
}
.coach-duration-grid {
    margin-top: 16px;
}
.branch-hours-field {
    margin: 0;
}
.coach-branch-warning {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid #f0d4a0;
    background: #fff8eb;
    color: #8a5a10;
    font-size: 0.9rem;
    line-height: 1.45;
}
.coach-branch-warning[hidden] {
    display: none;
}
.coach-branch-club-group {
    margin-top: 14px;
}
.coach-branch-club-group:first-of-type {
    margin-top: 0;
}
.coach-branch-club-group__title {
    margin: 0 0 10px;
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text);
}
.staff-empty-hint {
    padding: 14px 16px;
    border-radius: 12px;
    background: #f3f6fa;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.4;
}
.staff-form-actions {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
}
.staff-avatar {
    font-size: 0.72rem;
    font-weight: 700;
    color: #3d4b5c;
    background: #e8eef5;
}
.staff-cell-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.staff-cell-meta strong {
    font-weight: 650;
}
.staff-cell-meta span {
    color: var(--muted);
    font-size: 0.84rem;
    font-weight: 500;
}
.pill-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    max-width: 360px;
}
.staff-table-empty {
    text-align: center;
    padding: 40px 20px !important;
}
.staff-table-empty strong {
    display: block;
    font-size: 1rem;
    margin-bottom: 6px;
}
.staff-table-empty span {
    display: block;
    color: var(--muted);
    margin-bottom: 16px;
}
.staff-delete-lead {
    margin: 0;
    color: var(--muted);
    line-height: 1.45;
}
.btn:disabled,
.btn[disabled] {
    opacity: 0.55;
    cursor: not-allowed;
    filter: none;
}

.staff-avatar--photo,
.avatar--photo {
    object-fit: cover;
    padding: 0;
    border: 0;
}
.staff-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: 0.88rem;
    color: var(--muted);
    cursor: pointer;
}
.staff-check input {
    width: auto;
    height: auto;
}

@media (max-width: 860px) {
    .staff-profile {
        grid-template-columns: 1fr;
        gap: 18px;
    }
    .staff-avatar-upload__frame {
        width: 132px;
        height: 132px;
    }
}

.staff-kiosk {
    min-height: 100vh;
    padding: 32px 20px 48px;
    background:
        radial-gradient(circle at 18% 12%, rgba(245, 196, 0, 0.16), transparent 34%),
        radial-gradient(circle at 82% 8%, rgba(47, 111, 237, 0.12), transparent 28%),
        linear-gradient(160deg, #0f141c, #1a2330 50%, #121820);
    color: #e8edf5;
}
.staff-kiosk__head {
    max-width: 960px;
    margin: 0 auto 28px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-end;
}
.staff-kiosk__head .brand-text strong { color: #fff !important; }
.staff-kiosk__head .brand-text span { color: #9aa6b8; }
.staff-kiosk__hint {
    margin: 0;
    color: #9aa6b8;
    font-size: 0.9rem;
}
.staff-kiosk__grid {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 16px;
}
.staff-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    padding: 18px 14px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.08);
    text-decoration: none;
    color: #f2f5fa;
    transition: transform .15s ease, background .15s ease, border-color .15s ease;
}
.staff-tile:hover {
    transform: translateY(-2px);
    background: rgba(255,255,255,0.1);
    border-color: rgba(245, 196, 0, 0.45);
}
.staff-tile__photo {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    background: #2a3545;
}
.staff-tile__photo--lg {
    width: 72px;
    height: 72px;
}
.staff-tile__initials {
    width: 96px;
    height: 96px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: linear-gradient(145deg, #2f6fed, #1d4bb8);
    font-weight: 800;
    font-size: 1.6rem;
    letter-spacing: 0.02em;
}
.staff-tile__initials--lg {
    width: 72px;
    height: 72px;
    font-size: 1.25rem;
}
.staff-tile__name {
    text-align: center;
    font-weight: 650;
    font-size: 0.95rem;
    line-height: 1.3;
}
.staff-kiosk__empty {
    max-width: 420px;
    margin: 40px auto;
    text-align: center;
    padding: 28px;
    border-radius: 16px;
    background: rgba(255,255,255,0.06);
}
.staff-kiosk__empty strong { display: block; margin-bottom: 8px; }
.staff-kiosk__empty span { display: block; color: #9aa6b8; margin-bottom: 16px; }
.staff-kiosk__footer {
    max-width: 960px;
    margin: 28px auto 0;
    text-align: center;
}
.staff-kiosk__footer a,
.staff-kiosk__back {
    color: #c5d0e0;
    text-decoration: none;
    font-size: 0.9rem;
}
.staff-kiosk__footer a:hover,
.staff-kiosk__back:hover { color: #fff; }
.staff-kiosk--pin {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 18px;
}
.staff-pin-card {
    width: min(400px, 100%);
    background: var(--card);
    color: var(--ink);
    border-radius: 16px;
    padding: 28px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.35);
}
.staff-pin-card h1 { margin: 0 0 6px; font-size: 1.35rem; }
.staff-pin-card > p { margin: 0 0 16px; color: var(--muted); }
.staff-pin-card__who {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}
.staff-pin-card__who strong { display: block; }
.staff-pin-card__who span { color: var(--muted); font-size: 0.85rem; }
.staff-pin-card input[name="pin"],
.staff-pin-card input[name="pin_confirmation"] {
    font-size: 1.5rem;
    letter-spacing: 0.35em;
    text-align: center;
    font-weight: 700;
}
.staff-pin-card__hint {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.4;
}
.staff-pin-form__submit-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* Platform club edit */
.platform-flag-list {
    display: grid;
    gap: 10px;
}
.platform-flag {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #f8fafc;
    cursor: pointer;
}
.platform-flag:hover { border-color: var(--line-strong); }
.platform-flag:has(input:checked) {
    border-color: color-mix(in srgb, var(--accent) 55%, var(--line));
    background: color-mix(in srgb, var(--accent) 8%, #fff);
}
.platform-flag input {
    margin-top: 3px;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}
.platform-flag span {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}
.platform-flag strong {
    font-size: 0.95rem;
    font-weight: 650;
    color: var(--ink);
}
.platform-flag small {
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.35;
}
.platform-owner-list {
    list-style: none;
    margin: 0 0 16px;
    padding: 0;
    display: grid;
    gap: 8px;
}
.platform-owner-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.platform-owner-list strong {
    display: block;
    font-size: 0.95rem;
}
.platform-owner-list span {
    display: block;
    color: var(--muted);
    font-size: 0.82rem;
}

/* —— Форма тарифа —— */
.service-form {
    display: grid;
    gap: 14px;
    max-width: 920px;
}
.service-form__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.service-form__section-head h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}
.service-form__section-head p {
    margin: 0;
}
.service-price-list {
    display: grid;
    gap: 12px;
}
.service-price-card {
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg, #f6f7f9) 70%, #fff);
}
.service-price-card__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 12px;
}
.service-price-card__title {
    font-size: 0.92rem;
}
.service-price-card__grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}
.day-chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.day-chip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 8px 10px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    user-select: none;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.day-chip input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}
.day-chip.is-on {
    background: color-mix(in srgb, var(--accent) 16%, #fff);
    border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
    color: var(--ink);
}
.service-req-list {
    display: grid;
    gap: 10px;
}
.service-req-row {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.7fr) auto;
    gap: 12px;
    align-items: end;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.service-req-row__remove {
    margin-bottom: 2px;
}
.service-form__actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    flex-wrap: wrap;
}
@media (max-width: 800px) {
    .service-price-card__grid {
        grid-template-columns: 1fr 1fr;
    }
    .service-price-card__grid .field:last-child {
        grid-column: 1 / -1;
    }
    .service-req-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .service-req-row__remove {
        justify-self: start;
    }
    .service-form__actions {
        align-items: stretch;
    }
    .service-form__actions .form-actions {
        width: 100%;
        justify-content: stretch;
    }
    .service-form__actions .form-actions .btn {
        flex: 1;
    }
}

/* —— Форма филиала —— */
.branch-form {
    display: grid;
    gap: 14px;
    max-width: 920px;
}
.branch-form-page {
    max-width: 920px;
}
.branch-form__section-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}
.branch-form__section-head h2 {
    margin: 0 0 4px;
    font-size: 1.05rem;
}
.branch-form__section-head p {
    margin: 0;
}
.branch-form__actions {
    display: flex;
    justify-content: flex-end;
}
.branch-hours {
    display: grid;
    gap: 8px;
}
.branch-hours-row {
    display: grid;
    grid-template-columns: minmax(110px, 140px) minmax(0, 1fr) auto;
    align-items: end;
    gap: 12px 16px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}
.branch-hours-day {
    font-weight: 650;
    font-size: 0.95rem;
    padding-bottom: 10px;
}
.branch-hours-times {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: end;
    gap: 8px;
}
.branch-hours-label {
    font-size: 0.78rem !important;
    color: var(--muted);
}
.branch-hours-sep {
    color: var(--muted);
    padding-bottom: 12px;
    font-weight: 600;
}
.branch-hours-closed {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: #f7f8fa;
    cursor: pointer;
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--muted);
    white-space: nowrap;
    user-select: none;
}
.branch-hours-closed input {
    width: auto;
    height: auto;
    margin: 0;
}
.branch-hours-row.is-closed {
    background: color-mix(in srgb, var(--bg, #f6f7f9) 80%, #fff);
}
.branch-hours-row.is-closed .branch-hours-times {
    opacity: 0.4;
    pointer-events: none;
}
.branch-hours-row.is-closed .branch-hours-closed {
    background: color-mix(in srgb, var(--accent) 14%, #fff);
    border-color: color-mix(in srgb, var(--accent) 40%, var(--line));
    color: var(--ink);
}
@media (max-width: 800px) {
    .branch-hours-row {
        grid-template-columns: 1fr;
        align-items: stretch;
    }
    .branch-hours-day {
        padding-bottom: 0;
    }
    .branch-hours-closed {
        justify-content: flex-start;
    }
    .branch-form__actions .form-actions {
        width: 100%;
    }
    .branch-form__actions .form-actions .btn {
        flex: 1;
    }
}

/* Выбор активного клуба */
.club-switch {
    max-width: 720px;
}
.club-switch-list {
    display: grid;
    gap: 10px;
}
.club-switch-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .12s ease, background .12s ease;
}
.club-switch-item:hover {
    border-color: var(--line-strong);
    background: #fafbfc;
}
.club-switch-item.is-current {
    border-color: #e0b400;
    background: #fffbeb;
}
.club-switch-item__main {
    display: grid;
    gap: 10px;
    min-width: 0;
}
.club-switch-item .pill-wrap {
    max-width: none;
}
@media (max-width: 640px) {
    .club-switch-item {
        flex-direction: column;
        align-items: stretch;
    }
    .club-switch-item .row-actions {
        justify-content: stretch;
    }
    .club-switch-item .row-actions .btn {
        width: 100%;
    }
}

/* Vision — камеры и занятость на дашборде owner */
.vision-board {
    margin: 0 0 18px;
    padding: 16px 18px;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.vision-board__head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.vision-board__title {
    margin: 0;
    font-size: 1.05rem;
}
.vision-board__hint {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.9rem;
}
.vision-cameras {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 12px;
    margin-bottom: 14px;
}
.vision-cam {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: calc(var(--radius) - 2px);
    overflow: hidden;
    background: #0f1419;
}
.vision-cam__head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    color: #e8eef5;
    font-size: 0.85rem;
    background: #1a222c;
}
.vision-cam__live {
    color: #f87171;
    font-weight: 600;
    letter-spacing: 0.04em;
    font-size: 0.75rem;
}
.vision-cam__img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    background: #111;
}
.vision-cam figcaption {
    padding: 6px 10px 8px;
    color: var(--muted);
    font-size: 0.8rem;
    background: var(--card);
}
.vision-tables {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
    gap: 8px;
}
.vision-table {
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 10px 8px;
    display: grid;
    gap: 4px;
    background: var(--bg);
}
.vision-table__name {
    font-weight: 600;
    font-size: 0.9rem;
}
.vision-table__status {
    font-size: 0.8rem;
    color: var(--muted);
    font-variant-numeric: tabular-nums;
}
.vision-table.is-busy {
    border-color: #f0a0a0;
    background: #fef2f2;
}
.vision-table.is-busy .vision-table__status {
    color: #b91c1c;
    font-weight: 600;
}
.vision-table.is-free {
    border-color: #bbf7d0;
}


/* KK Volleychild � brand mark letters */
.brand-mark--vc { font-size: 0.72rem; letter-spacing: -0.02em; }

/* Tabs used under schedule / users */
.tabs {
    display: flex;
    gap: 4px;
    flex-wrap: wrap;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--line);
}
.tabs a {
    padding: 10px 14px;
    color: var(--muted);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    font-size: 0.9rem;
    font-weight: 500;
}
.tabs a:hover { color: var(--ink); }
.tabs a.is-active {
    color: var(--ink);
    border-bottom-color: var(--accent);
    font-weight: 700;
}

.calendar-placeholder {
    min-height: 360px;
    display: grid;
    grid-template-columns: 64px repeat(7, 1fr);
    border-top: 1px solid var(--line);
}
.calendar-placeholder__head,
.calendar-placeholder__cell {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 8px;
    font-size: 0.78rem;
    color: var(--muted);
}
.calendar-placeholder__head {
    background: #f8fafc;
    font-weight: 600;
    text-align: center;
}
.calendar-placeholder__time {
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    padding: 6px 4px;
    font-size: 0.72rem;
    color: var(--muted);
    text-align: right;
}

.hours-grid { display: flex; flex-direction: column; gap: 8px; }
.hours-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}
.hours-row__day { min-width: 72px; font-weight: 600; }

/* VC helpers missing from core patterns */
.check-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 8px 0 0;
    font-size: 0.92rem;
    cursor: pointer;
}
.check-row input {
    width: 16px;
    height: 16px;
    accent-color: #c9a000;
}
.toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
}
