/* /home/host1/web/xpms.ru/public_html/css/settings.css */

.settings-layout { display: flex; min-height: calc(100vh - 64px); }

.settings-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-right: 1px solid #e2e8f0;
    position: sticky;
    top: 64px;
    height: calc(100vh - 64px);
    overflow-y: auto;
}

.settings-nav-section {
    font-size: 11px;
    font-weight: 700;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 16px 20px 8px;
}

.settings-nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    cursor: pointer;
    color: #475569;
    font-size: 14px;
    font-weight: 500;
    border-left: 3px solid transparent;
    transition: all 0.15s;
}

.settings-nav-item:hover { background: #f8fafc; color: #1e293b; }
.settings-nav-item.is-active { background: #eff6ff; color: #2563eb; border-left-color: #3b82f6; }
.settings-nav-item i { width: 18px; height: 18px; flex-shrink: 0; }

.settings-content { flex: 1; padding: 32px; min-width: 0; }
.settings-title-block { margin-bottom: 24px; }

.settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 16px;
}

@media (max-width: 1024px) {
    .settings-layout { flex-direction: column; min-height: 0; }

    /* Меню настроек — одна горизонтальная лента, а не несколько строк */
    .settings-sidebar {
        width: 100%;
        height: auto;
        position: sticky;
        top: 64px;
        z-index: 20;
        display: flex;
        flex-wrap: nowrap;
        gap: 2px;
        overflow-x: auto;
        overflow-y: hidden;
        border-right: none;
        border-bottom: 1px solid #e2e8f0;
        background: #fff;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    .settings-sidebar::-webkit-scrollbar { display: none; }
    .settings-nav-section { display: none; }
    .settings-nav-item {
        flex: 0 0 auto;
        border-left: none;
        border-bottom: 3px solid transparent;
        padding: 10px 12px;
        font-size: 13px;
        white-space: nowrap;
        gap: 8px;
    }
    .settings-nav-item i { width: 16px; height: 16px; }
    .settings-nav-item.is-active { border-left-color: transparent; border-bottom-color: #3b82f6; }
    .settings-content { padding: 16px; }
}

@media (max-width: 640px) {
    .settings-content { padding: 12px; }
    .settings-card { padding: 14px; border-radius: 12px; }
    .settings-title-block { margin-bottom: 14px; }

}

/* ---------- Карточки локаций и объектов (как в прототипе) ---------- */
.loc-card, .obj-card {
    position: relative;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all 0.2s;
}
.loc-card:hover, .obj-card:hover {
    border-color: #3b82f6;
    box-shadow: 0 4px 12px rgba(59,130,246,0.1);
    transform: translateY(-2px);
}

.loc-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-bottom: 12px;
}

.obj-count {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.obj-status {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}
.obj-status.active { background: #dcfce7; color: #166534; }
.obj-status.inactive { background: #f1f5f9; color: #64748b; }

.obj-image {
    position: relative;
    width: 100%;
    height: 96px;
    border-radius: 12px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    overflow: hidden;
}

/* Иконка поверх фото: метка локации / домик объекта */
.obj-image-icon {
    position: absolute;
    left: 10px;
    bottom: 10px;
    width: 30px;
    height: 30px;
    border-radius: 10px;
    background: rgba(15, 23, 42, 0.6);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

/* Фото из настроек вписываем в голубую область карточки */
.obj-image .obj-cover {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 12px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #64748b;
    margin-bottom: 16px;
}
.breadcrumb a { color: #3b82f6; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.breadcrumb .current { color: #0f172a; font-weight: 600; }

/* Статус локации в карточке (не перекрывает счётчик домов) */
.status-inline {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    font-weight: 600;
}
.status-inline.on { color: #166534; }
.status-inline.off { color: #64748b; }

/* Секции карточки объекта (как в прототипе) */
.section-list { display: flex; flex-direction: column; gap: 12px; }
.section-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    padding: 16px;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 14px;
}
.section-card:hover { border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,0.1); transform: translateY(-1px); }
.section-icon { width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.section-info { flex: 1; min-width: 0; }
.section-title { font-size: 15px; font-weight: 600; color: #1e293b; margin-bottom: 2px; }
.section-preview { font-size: 12px; color: #64748b; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.section-arrow { color: #cbd5e1; flex-shrink: 0; }

/* Счётчик у пункта меню */
.nav-badge {
    margin-left: auto;
    min-width: 20px;
    height: 20px;
    padding: 0 6px;
    border-radius: 999px;
    background: #2563eb;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* display:inline-flex выше перебивает tailwind-класс hidden — без этого
   нулевой счётчик остаётся висеть в меню */
.nav-badge.hidden { display: none; }

/* Чат */
.chat-messages { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; padding: 8px 0 16px; }
.chat-msg { max-width: 85%; padding: 9px 12px; border-radius: 12px; background: #f1f5f9; font-size: 14px; line-height: 1.4; align-self: flex-start; }
.chat-msg.mine { background: #2563eb; color: #fff; align-self: flex-end; }
.chat-msg .meta { font-size: 11px; opacity: .7; margin-bottom: 3px; }
.chat-empty { color: #94a3b8; font-size: 13px; text-align: center; padding: 24px 0; }
.chat-footer { display: flex; gap: 8px; align-items: center; }
.chat-input { flex: 1; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 14px; }
.chat-send { width: 40px; height: 40px; border-radius: 10px; background: #2563eb; color: #fff; display: flex; align-items: center; justify-content: center; border: 0; cursor: pointer; }
.chat-send:hover { background: #1d4ed8; }

/* Счётчик непрочитанных у колокольчика */
.bell-count.hidden { display: none; }
.bell-count {
    position: absolute;
    top: 2px;
    right: 2px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

/* Точка непрочитанных сообщений в карточке */
.unread-dot {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #ef4444;
    display: inline-block;
    flex-shrink: 0;
}

/* Страница задач */
.tasks-page { padding: 24px 20px 60px; }

/* ===== Задачи: лента по дням ===== */
.task-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.type-chip { border: 1px solid #e2e8f0; background: #fff; border-radius: 20px; padding: 5px 11px; font-size: 12px; color: #475569; cursor: pointer; }
.type-chip.active { background: #3b82f6; border-color: #3b82f6; color: #fff; }
.task-day { margin-bottom: 18px; }
.task-day-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.task-day-title span { background: #f1f5f9; color: #64748b; border-radius: 999px; padding: 1px 8px; font-size: 11px; }
.task-object { margin-bottom: 10px; }
.task-object-name { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: #94a3b8; font-weight: 700; display: flex; align-items: center; gap: 5px; margin: 6px 0; }
.task-card { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; margin-bottom: 8px; cursor: pointer; transition: all .15s; }
.task-card:hover { border-color: #3b82f6; box-shadow: 0 2px 8px rgba(59,130,246,.08); transform: translateY(-1px); }
.task-card.overdue { border-left: 4px solid #ef4444; }
.task-card.completed { opacity: .55; }
.task-icon { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.task-body { flex: 1; min-width: 0; }
.task-title { font-size: 14px; font-weight: 600; color: #0f172a; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-meta { font-size: 12px; color: #64748b; display: flex; gap: 5px; flex-wrap: wrap; margin-top: 3px; }
.task-deadline.overdue { color: #b91c1c; font-weight: 600; }
.task-deadline.soon { color: #b45309; font-weight: 600; }
.task-assignee { width: 28px; height: 28px; border-radius: 50%; background: #e2e8f0; color: #475569; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* Детали задачи */
.detail-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.detail-title { font-size: 13px; font-weight: 700; color: #0f172a; margin-bottom: 8px; display: flex; justify-content: space-between; align-items: center; }
.detail-title span { font-size: 11px; color: #64748b; font-weight: 600; }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.detail-grid > div { background: #f8fafc; border-radius: 10px; padding: 8px 10px; }
.detail-grid span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .04em; color: #94a3b8; font-weight: 700; }
.detail-grid b { font-size: 13px; color: #0f172a; font-weight: 600; }
.detail-grid b.overdue { color: #b91c1c; }
.detail-section { margin-bottom: 16px; }
.detail-text { font-size: 13px; color: #475569; line-height: 1.5; margin: 0; white-space: pre-line; }
.detail-text.muted { color: #94a3b8; }
.progress { height: 6px; background: #f1f5f9; border-radius: 999px; overflow: hidden; margin: 8px 0; }
.progress > div { height: 100%; background: #10b981; }
.checklist-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 12px; border: 1px solid #e2e8f0; border-radius: 8px; margin-bottom: 6px; cursor: pointer; font-size: 13px; }
.checklist-item:hover { background: #f8fafc; }
.checklist-item.done { background: #f0fdf4; border-color: #bbf7d0; }
.checklist-item.done .checklist-text { text-decoration: line-through; color: #64748b; }
.checklist-item .chk { width: 18px; height: 18px; border: 1px solid #cbd5e1; border-radius: 5px; display: flex; align-items: center; justify-content: center; font-size: 11px; color: #16a34a; flex-shrink: 0; }
.checklist-item.done .chk { background: #dcfce7; border-color: #86efac; }
.comment { border-left: 2px solid #e2e8f0; padding-left: 10px; margin-bottom: 8px; font-size: 13px; color: #334155; }
.comment b { font-size: 12px; }
.comment span { font-size: 11px; color: #94a3b8; margin-left: 4px; }
.comment-form { display: flex; gap: 8px; margin-top: 8px; }
.comment-form input { flex: 1; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; font-size: 13px; }
.comment-form button { border: 0; border-radius: 10px; background: #2563eb; color: #fff; padding: 0 14px; font-size: 13px; font-weight: 600; cursor: pointer; }
.history-row { font-size: 12px; color: #64748b; padding: 3px 0; }
.history-row span { color: #94a3b8; }

/* Форма задачи */
.type-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.type-card { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1px solid #e2e8f0; border-radius: 10px; font-size: 13px; cursor: pointer; }
.type-card.selected { border-color: #3b82f6; background: #eff6ff; color: #1d4ed8; font-weight: 600; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.form-grid label, .detail-section label { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: #64748b; font-weight: 700; margin-bottom: 5px; }
.form-grid select, .form-grid input, .detail-section input, .detail-section textarea { width: 100%; border: 1px solid #e2e8f0; border-radius: 10px; padding: 9px 12px; font-size: 13px; font-family: inherit; }
.add-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 9px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: #fff;
    color: #334155;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background .15s, border-color .15s;
}
.add-item:hover { background: #f8fafc; border-color: #cbd5e1; }
.draft-item { display: flex; gap: 6px; margin-bottom: 6px; }
.draft-item input { flex: 1; }
.draft-item button { border: 1px solid #e2e8f0; background: #fff; border-radius: 8px; width: 36px; color: #94a3b8; cursor: pointer; }
.draft-item button:hover { color: #ef4444; }

/* Фотоотчёт задачи */
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.photo-cell { position: relative; aspect-ratio: 1; border-radius: 10px; background-size: cover; background-position: center; border: 1px solid #e2e8f0; }
.photo-del { position: absolute; top: 4px; right: 4px; width: 22px; height: 22px; border: 0; border-radius: 999px; background: rgba(15,23,42,.6); color: #fff; font-size: 11px; cursor: pointer; }
.photo-add { aspect-ratio: 1; border: 1px dashed #cbd5e1; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-size: 22px; color: #94a3b8; cursor: pointer; transition: all .15s; }
.photo-add:hover { border-color: #3b82f6; color: #3b82f6; background: #f8fafc; }
.photo-add svg { width: 30px; height: 30px; }

/* Одиночные чекбоксы — как переключатель */
.switch {
    appearance: none;
    -webkit-appearance: none;
    position: relative;
    flex: 0 0 auto;
    width: 46px;
    height: 26px;
    margin: 0;
    border: 0;
    border-radius: 999px;
    background: #cbd5e1;
    cursor: pointer;
    transition: background .15s;
}
.switch::after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 1px 3px rgba(15, 23, 42, .25);
    transition: left .15s;
}
.switch:checked { background: #3b82f6; }
.switch:checked::after { left: 23px; }
.switch:focus-visible { outline: 2px solid #93c5fd; outline-offset: 2px; }
.switch:disabled { opacity: .45; cursor: not-allowed; }
.switch:disabled::after { box-shadow: none; }

/* В формах (.detail-section/.form-grid) поля тянутся на 100% — возвращаем тумблеру размер */
.detail-section .switch,
.form-grid .switch,
.check-row .switch {
    width: 46px;
    height: 26px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    flex: 0 0 auto;
}

/* Строка с одиночным тумблером в форме задачи */
.detail-section .check-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 0;
    text-transform: none;
    letter-spacing: normal;
    font-size: 13px;
    font-weight: 500;
    color: #334155;
}

/* Описание объекта — повыше */
.obj-description { min-height: 170px; resize: vertical; line-height: 1.5; }
.photo-add:hover { border-color: #3b82f6; color: #3b82f6; }
.check-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #334155; cursor: pointer; }

/* Мобильные правки страницы задач (после базовых правил, чтобы перекрыть их) */
@media (max-width: 640px) {
    .tasks-page { padding: 12px 12px 40px; }

    /* Фильтры — одна горизонтальная лента вместо трёх строк */
    .task-filters {
        flex-wrap: nowrap;
        overflow-x: auto;
        gap: 6px;
        margin-bottom: 8px;
        padding-bottom: 2px;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }
    .task-filters::-webkit-scrollbar { display: none; }
    .task-filters .type-chip { flex: 0 0 auto; }
    .type-chip { padding: 5px 9px; font-size: 11px; }
    .task-card { padding: 10px; gap: 10px; }
    .task-icon { width: 30px; height: 30px; border-radius: 8px; }
    .task-title { font-size: 13px; }
    .detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }\n    .detail-grid > div { padding: 6px 8px; }\n    .detail-grid span { font-size: 9px; }\n    .detail-grid b { font-size: 12px; line-height: 1.25; }
    .form-grid { grid-template-columns: 1fr; gap: 8px; }
    .type-cards { grid-template-columns: 1fr 1fr; gap: 6px; }
    .type-card { padding: 8px 10px; font-size: 12px; }
}

/* Сезоны и праздники: читаемые поля и компактные цены */
.pricing-label { color: #475569; font-size: 11px; line-height: 1.2; }
.pricing-input {
    width: 100%;
    background: #fff;
    color: #0f172a;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    padding: 4px 6px;
    font-size: 12px;
    line-height: 1.4;
}
.pricing-input:focus { outline: 2px solid #10b981; outline-offset: 1px; }
html[data-theme="dark"] .pricing-label { color: #cbd5e1; }
html[data-theme="dark"] .pricing-input {
    background: #0f172a;
    color: #f8fafc;
    border-color: #475569;
}

/* Контраст подписей цен в тёмной теме */
html[data-theme="dark"] .pricing-label {
    color: #E2E8F0 !important;
    font-weight: 600;
}
html[data-theme="dark"] .pricing-label input {
    color: #F8FAFC !important;
}

/* Задачи: выбор, быстрые действия, массовые операции */
.task-card { position: relative; }
.task-card.selected { border-color: #3b82f6; background: #eff6ff; }
.task-check { width: 16px; height: 16px; flex-shrink: 0; accent-color: #2563eb; margin-top: 2px; cursor: pointer; }
.task-quick-btn {
    display: inline-flex; align-items: center; justify-content: center;
    width: 26px; height: 26px; border: 0; border-radius: 8px;
    background: #e2e8f0; color: #334155; font-size: 13px; font-weight: 800;
    cursor: pointer; flex-shrink: 0;
}
.task-quick-btn:hover { background: #cbd5e1; }
.task-quick-btn.done { background: #dcfce7; color: #15803d; }
.task-bulk-bar {
    display: flex; align-items: center; gap: 7px; flex-wrap: wrap;
    margin: 4px 0 10px; padding: 8px 10px;
    border: 1px solid #bfdbfe; border-radius: 10px; background: #eff6ff;
    font-size: 11px; color: #1e3a8a;
}
.task-bulk-bar b { font-size: 12px; }
.task-bulk-bar button, .task-bulk-bar select {
    border: 1px solid #bfdbfe; border-radius: 7px; background: #fff;
    padding: 4px 7px; font-size: 11px; color: #1e40af; cursor: pointer;
}
.task-bulk-bar button:hover { background: #dbeafe; }
.task-bulk-bar button.muted { color: #64748b; border-color: #e2e8f0; }

/* Мобильный экран горничной */
.maid-tasks { padding: 14px 12px 80px; max-width: 760px; margin: 0 auto; }
.maid-hero { margin-bottom: 14px; }
.maid-hello { font-size: 24px; font-weight: 800; color: #0f172a; letter-spacing: -.02em; }
.maid-sub { margin-top: 3px; font-size: 13px; color: #64748b; }
.maid-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.maid-stat {
    border: 1px solid #e2e8f0; border-radius: 14px; background: #fff;
    padding: 10px 8px; text-align: left; cursor: pointer;
}
.maid-stat b { display: block; font-size: 22px; line-height: 1.1; color: #0f172a; }
.maid-stat span { display: block; margin-top: 4px; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #64748b; }
.maid-stat.active { border-color: #93c5fd; background: #eff6ff; }
.maid-stat.danger b { color: #dc2626; }
.maid-stat.danger.active { border-color: #fca5a5; background: #fef2f2; }
.maid-list { display: flex; flex-direction: column; gap: 10px; }
.maid-task-card {
    background: #fff; border: 1px solid #e2e8f0; border-radius: 16px;
    padding: 13px 14px; box-shadow: 0 2px 8px rgba(15, 23, 42, .04);
    cursor: pointer;
}
.maid-task-card.overdue { border-color: #fca5a5; box-shadow: 0 2px 10px rgba(220, 38, 38, .08); }
.maid-task-card.completed { opacity: .65; }
.maid-task-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.maid-task-object { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: #2563eb; }
.maid-task-deadline { font-size: 11px; font-weight: 700; color: #64748b; }
.maid-task-deadline.overdue { color: #dc2626; }
.maid-task-deadline.soon { color: #d97706; }
.maid-task-title { margin-top: 6px; font-size: 15px; font-weight: 700; line-height: 1.35; color: #0f172a; }
.maid-task-progress { margin-top: 10px; }
.maid-task-progress > div:first-child { display: flex; justify-content: space-between; font-size: 10px; color: #64748b; margin-bottom: 4px; }
.maid-progress-track { height: 6px; border-radius: 99px; background: #f1f5f9; overflow: hidden; }
.maid-progress-track span { display: block; height: 100%; border-radius: 99px; background: #22c55e; }
.maid-task-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.maid-task-status { font-size: 10px; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .05em; }
.maid-task-actions { display: flex; gap: 6px; }
.maid-task-action {
    border: 1px solid #e2e8f0; border-radius: 9px; background: #fff;
    padding: 7px 10px; font-size: 12px; font-weight: 700; color: #334155; cursor: pointer;
}
.maid-task-action.primary { background: #1e293b; border-color: #1e293b; color: #fff; }
.maid-task-action:active { transform: scale(.98); }
.maid-empty { text-align: center; padding: 48px 20px; color: #64748b; }
.maid-empty div { font-size: 32px; color: #22c55e; }
.maid-empty b { display: block; margin-top: 8px; font-size: 16px; color: #334155; }
.maid-empty span { display: block; margin-top: 4px; font-size: 12px; }
@media (max-width: 420px) {
    .maid-task-action { padding: 7px 8px; }
    .maid-task-bottom { align-items: flex-end; }
}

.maid-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.maid-add-btn {
    display: inline-flex; align-items: center; gap: 5px;
    border: 0; border-radius: 11px; background: #1e293b; color: #fff;
    padding: 9px 11px; font-size: 12px; font-weight: 700; white-space: nowrap;
    cursor: pointer; flex-shrink: 0;
}
.maid-add-btn span { font-size: 16px; line-height: 1; }
.maid-add-btn:active { transform: scale(.98); }
@media (max-width: 380px) {
    .maid-add-btn { padding: 8px; font-size: 0; gap: 0; }
    .maid-add-btn span { font-size: 20px; }
}

.maid-summary { display: flex; gap: 14px; align-items: center; margin: 0 0 12px; font-size: 12px; color: #64748b; }
.maid-summary b { color: #0f172a; font-size: 14px; }
.maid-summary span { color: #94a3b8; }
.maid-days { display: flex; flex-direction: column; gap: 16px; }
.maid-day-head { display: flex; align-items: baseline; gap: 7px; margin-bottom: 7px; padding: 0 2px; }
.maid-day-head b { font-size: 15px; color: #0f172a; }
.maid-day-head span { font-size: 12px; color: #64748b; }
.maid-day-head em { margin-left: auto; font-style: normal; font-size: 11px; font-weight: 800; color: #94a3b8; }
.maid-day-list { display: flex; flex-direction: column; gap: 8px; }
.maid-day-empty { padding: 10px 12px; border: 1px dashed #e2e8f0; border-radius: 11px; color: #94a3b8; font-size: 12px; }

.maid-report-row { display: flex; gap: 7px; margin: 0 0 14px; flex-wrap: wrap; }
.maid-report-btn {
    flex: 1; min-width: 130px; border: 1px solid #fecaca; border-radius: 10px;
    background: #fff7f7; color: #b91c1c; padding: 8px 9px;
    font-size: 11px; font-weight: 700; cursor: pointer;
}
.maid-report-btn:last-child { border-color: #bfdbfe; background: #eff6ff; color: #1d4ed8; }
.maid-report-btn:active { transform: scale(.99); }

.role-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 12px; color: #475569; }
.role-checks label { display: flex; align-items: center; gap: 5px; cursor: pointer; }
html[data-theme="dark"] .role-checks { color: #CBD5E1; }

.maid-task-desc { margin-top: 5px; font-size: 12px; color: #64748b; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html[data-theme="dark"] .maid-task-desc { color: #94A3B8; }

/* Крупные действия задачи */
.task-action-primary {
    background: #2563EB !important;
    border-color: #2563EB !important;
    color: #fff !important;
    padding: 10px 18px !important;
    font-size: 14px !important;
    font-weight: 700 !important;
    min-height: 42px;
}
.task-action-primary:hover { background: #1D4ED8 !important; }
.task-action-danger {
    background: #FEF2F2 !important;
    border-color: #FCA5A5 !important;
    color: #B91C1C !important;
    padding: 10px 16px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    min-height: 42px;
}
.maid-task-action.primary {
    background: #2563EB;
    border-color: #2563EB;
    color: #fff;
    padding: 9px 13px;
    font-size: 13px;
    min-height: 36px;
}

.checklist-item.locked { opacity: .55; cursor: not-allowed; }
.checklist-item.locked .chk { background: #e2e8f0; }
html[data-theme="dark"] .checklist-item.locked .chk { background: #334155; }

.maid-wait-label { font-size: 10px; font-weight: 700; color: #b45309; white-space: nowrap; }
html[data-theme="dark"] .maid-wait-label { color: #FCD34D; }

.task-deadline.done {
    color: #15803d; background: #DCFCE7; border-radius: 999px; padding: 1px 7px; font-weight: 700;
}
.maid-task-deadline.done {
    color: #15803d; background: #DCFCE7; border-radius: 999px; padding: 2px 7px; font-weight: 700;
}
.task-card.completed { opacity: .82; }
.maid-task-card.done { border-left: 3px solid #22C55E; }
html[data-theme="dark"] .task-deadline.done,
html[data-theme="dark"] .maid-task-deadline.done { background: #14532D; color: #86EFAC; }

/* Просьбы к следующему заезду */
.next-stay-block { background: #F0F9FF; border: 1px solid #BAE6FD; border-radius: 12px; padding: 10px 12px; }
.next-stay-block .detail-title { margin-bottom: 6px; }
.next-stay-list { display: flex; flex-direction: column; gap: 5px; }
.next-stay-row { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 12px; color: #0F172A; }
.next-stay-row span { color: #0369A1; font-size: 10px; white-space: nowrap; }
.maid-next-badge { margin-top: 6px; display: inline-flex; align-items: center; padding: 2px 7px; border-radius: 999px; background: #E0F2FE; color: #0369A1; font-size: 10px; font-weight: 800; }
html[data-theme="dark"] .next-stay-block { background: #0C4A6E; border-color: #075985; }
html[data-theme="dark"] .next-stay-row { color: #E2E8F0; }
html[data-theme="dark"] .next-stay-row span { color: #7DD3FC; }
html[data-theme="dark"] .maid-next-badge { background: #075985; color: #BAE6FD; }

/* Booking widget style preview */
.style-preview {
    display: flex;
    align-items: center;
    gap: 7px;
    height: 42px;
    padding: 0 11px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
}
.style-preview span {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    border: 1px solid rgba(15, 23, 42, .12);
    flex: none;
}
.style-preview small {
    font-size: 11px;
    color: #64748b;
    white-space: nowrap;
}
html[data-theme="dark"] .style-preview { background: #182a30; border-color: #2b4148; }
html[data-theme="dark"] .style-preview small { color: #afc3c7; }