/* ===== KAPSULA VREMENI: kartochka-zaglushka v soobschenii + modalka sozdaniya ===== */
/* Palitra iz base.css: --accent, --text, --text-secondary, --border, --bubble-other, --bg. */

.aya-capsule-host { display: block; margin: 2px 0; }

.aya-capsule {
    box-sizing: border-box;
    max-width: min(340px, 86vw);
    display: flex;
    gap: 10px;
    align-items: flex-start;
    background: var(--bubble-other, #fff);
    border: 1px solid var(--border, rgba(0,56,65,.1));
    border-radius: 16px;
    padding: 12px 14px;
    color: var(--text, #1A1D21);
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.aya-capsule.sealed {
    background: linear-gradient(135deg, rgba(120,90,200,.10), rgba(255,140,66,.08));
    border-color: rgba(120,90,200,.28);
}
.aya-capsule.opened { border-color: rgba(46,158,91,.4); }
.aya-capsule-loading { color: var(--text-secondary, #65676B); font-size: 14px; text-align: center; padding: 14px 8px; justify-content: center; }

.aya-capsule-ic { font-size: 26px; line-height: 1; flex: 0 0 auto; margin-top: 2px; }
.aya-capsule-body { min-width: 0; flex: 1 1 auto; }

.aya-capsule-title { font-weight: 700; font-size: 15px; line-height: 1.25; }
.aya-capsule-when { font-size: 13px; color: var(--text, #1A1D21); margin-top: 3px; font-weight: 600; }
.aya-capsule-hint { font-size: 12px; color: var(--text-secondary, #65676B); margin-top: 3px; font-style: italic; }
.aya-capsule-author { font-size: 12px; color: var(--text-secondary, #65676B); margin-top: 4px; }
.aya-capsule-preview {
    font-size: 12px; color: var(--text-secondary, #65676B);
    margin-top: 6px; padding: 6px 8px; border-radius: 8px;
    background: rgba(0,0,0,.04); word-break: break-word;
}
.aya-capsule-del {
    appearance: none; border: none; background: transparent;
    color: #d64545; font-size: 12px; font-weight: 600;
    padding: 4px 0; margin-top: 4px; cursor: pointer;
}
.aya-capsule-del:active { opacity: .6; }

/* ===== Modalka sozdaniya (klassy sheet iz base.css: .modal-overlay/.sheet-modal) ===== */
.capsule-sheet .cap-intro {
    font-size: 13px; color: var(--text-secondary, #65676B);
    line-height: 1.4; margin-bottom: 14px;
}
.capsule-sheet .cap-label {
    display: block; font-size: 12px; font-weight: 600;
    color: var(--text-secondary, #65676B); margin: 12px 0 6px;
    text-transform: uppercase; letter-spacing: .3px;
}
.capsule-sheet .cap-presets { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.capsule-sheet .cap-preset {
    appearance: none; flex: 1 1 auto; min-width: 90px;
    border: 1px solid var(--border, rgba(0,56,65,.14)); border-radius: 12px;
    padding: 9px 8px; font-size: 13px; font-family: inherit; cursor: pointer;
    background: var(--bg, #fff); color: var(--text, #1A1D21);
}
.capsule-sheet .cap-preset:active { transform: scale(.97); }
.capsule-sheet .cap-datetime,
.capsule-sheet .cap-input {
    box-sizing: border-box; width: 100%;
    border: 1px solid var(--border, rgba(0,56,65,.14)); border-radius: 12px;
    padding: 10px 12px; font-size: 15px; font-family: inherit;
    background: var(--bg, #fff); color: var(--text, #1A1D21);
}
.capsule-sheet .cap-datetime:focus,
.capsule-sheet .cap-input:focus { outline: none; border-color: var(--accent, #ff8c42); }
.capsule-sheet .cap-input { resize: vertical; min-height: 88px; line-height: 1.4; }
.capsule-sheet .cap-submit {
    appearance: none; width: 100%; border: none; border-radius: 14px;
    padding: 13px; margin-top: 16px; font-size: 15px; font-weight: 700;
    cursor: pointer; background: var(--accent, #ff8c42); color: #fff;
}
.capsule-sheet .cap-submit:active { transform: scale(.98); }
.capsule-sheet .cap-submit:disabled { opacity: .6; }
