/* ===== DOMASHNIE OBYAZANNOSTI: kartochka v soobschenii + modalka sozdaniya ===== */
/* Peremennye base.css: --accent, --text, --text-secondary, --border, --bubble-other, --bg. Palitra kak lists.css. */

.aya-chores-host { display: block; margin: 2px 0; }
.aya-chores {
    box-sizing: border-box;
    max-width: min(360px, 86vw);
    background: var(--bubble-other, #fff);
    border: 1px solid var(--border, rgba(0,56,65,.1));
    border-radius: 16px;
    padding: 12px;
    color: var(--text, #1A1D21);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.aya-chores-loading { color: var(--text-secondary, #65676B); font-size: 14px; text-align: center; padding: 16px 8px; }

.aya-chores-title { font-weight: 700; font-size: 15px; margin-bottom: 10px; display: flex; align-items: center; gap: 6px; }
.aya-chores-count { margin-left: auto; font-size: 12px; font-weight: 600; color: var(--text-secondary, #65676B); }

.aya-chores-items { display: flex; flex-direction: column; gap: 4px; }
.aya-chores-empty { color: var(--text-secondary, #65676B); font-size: 13px; text-align: center; padding: 10px 4px; }

.aya-chore-item { display: flex; align-items: flex-start; gap: 8px; padding: 7px 4px; border-radius: 10px; }
.aya-chore-item:active { background: var(--border, rgba(0,0,0,.05)); }
.aya-chore-item.inactive { opacity: .55; }

.aya-chore-check {
    appearance: none; border: none; background: transparent; cursor: pointer;
    font-size: 18px; line-height: 1; padding: 1px 0 0; flex: 0 0 auto;
}
.aya-chore-check:active { transform: scale(.9); }

.aya-chore-body { flex: 1 1 auto; min-width: 0; }
.aya-chore-name { font-size: 14px; font-weight: 600; line-height: 1.3; word-break: break-word; }
.aya-chore-item.done .aya-chore-name { text-decoration: line-through; color: var(--text-secondary, #65676B); }
.aya-chore-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; margin-top: 2px; font-size: 11.5px; color: var(--text-secondary, #65676B); }
.aya-chore-off { color: #e0245e; }

.aya-chore-del {
    appearance: none; border: none; background: transparent; cursor: pointer;
    font-size: 14px; line-height: 1; padding: 2px 4px; flex: 0 0 auto;
    color: var(--text-secondary, #65676B); opacity: .55;
}
.aya-chore-del:active { opacity: 1; }

.aya-chores-add-btn {
    appearance: none; width: 100%; margin-top: 10px;
    border: 1px dashed var(--border, rgba(0,56,65,.25)); border-radius: 12px;
    padding: 10px; font-size: 14px; font-weight: 600; cursor: pointer;
    background: transparent; color: var(--accent, #ff8c42);
}
.aya-chores-add-btn:active { transform: scale(.98); }

/* ===== Modalka sozdaniya (v duhe aya-list-modal) ===== */
.aya-chores-modal-ov {
    position: fixed; inset: 0; z-index: 4200;
    background: rgba(0,0,0,.45);
    display: flex; align-items: flex-end; justify-content: center; padding: 0;
}
.aya-chores-modal {
    width: 100%; max-width: 480px; box-sizing: border-box;
    background: var(--bg, #fff); color: var(--text, #1A1D21);
    border-radius: 18px 18px 0 0;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom));
    box-shadow: 0 -6px 24px rgba(0,0,0,.2);
    max-height: 88vh; overflow-y: auto;
}
.aya-chores-modal-title { font-weight: 700; font-size: 16px; text-align: center; margin-bottom: 14px; }

.aya-chore-field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; font-size: 13px; color: var(--text-secondary, #65676B); }
.aya-chore-field > span { font-weight: 600; }
.aya-chore-field input[type="text"],
.aya-chore-field input[type="time"],
.aya-chore-field input[type="number"],
.aya-chore-field select {
    box-sizing: border-box; width: 100%;
    border: 1px solid var(--border, rgba(0,56,65,.14)); border-radius: 10px;
    padding: 10px 12px; font-size: 15px; font-family: inherit;
    background: var(--bubble-other, #fff); color: var(--text, #1A1D21);
}
.aya-chore-field input:focus, .aya-chore-field select:focus { outline: none; border-color: var(--accent, #ff8c42); }

.aya-chore-days { display: flex; flex-wrap: wrap; gap: 6px; }
.aya-chore-day {
    display: inline-flex; align-items: center; gap: 4px;
    border: 1px solid var(--border, rgba(0,56,65,.14)); border-radius: 10px;
    padding: 7px 9px; font-size: 13px; color: var(--text, #1A1D21); cursor: pointer;
}
.aya-chore-day input { accent-color: var(--accent, #ff8c42); }

.aya-chores-modal-actions { display: flex; gap: 10px; margin-top: 6px; }
.aya-chores-cancel, .aya-chores-save {
    flex: 1 1 0; appearance: none; border: none; border-radius: 12px;
    padding: 13px; font-size: 15px; font-weight: 600; cursor: pointer;
}
.aya-chores-cancel { background: var(--border, rgba(0,0,0,.08)); color: var(--text, #1A1D21); }
.aya-chores-save { background: var(--accent, #ff8c42); color: #fff; }
.aya-chores-save:active, .aya-chores-cancel:active { transform: scale(.98); }

/* ===== Tyomnaya tema ===== */
body.dark-theme .aya-chores-modal { background: #161D27; }
body.dark-theme .aya-chore-field input,
body.dark-theme .aya-chore-field select { background: #1c2530; }
body.dark-theme .aya-chore-day { background: #222b35; }
body.dark-theme .aya-chores-cancel { background: #222b35; }
