/* ── Laci Assistant V1 — Inbox + Capture CSS ─────────────────────────────── */

/* Page */
.ai-page { max-width: 720px; margin: 0 auto; padding: 16px 16px 80px; }
.ai-page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.ai-page-title { font-size: 1.25rem; font-weight: 700; color: var(--text); }
.ai-gate { text-align: center; padding: 60px 24px; color: var(--text-muted); font-size: 0.95rem; }

/* Section header */
.ai-section-hdr { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-muted); padding: 8px 0 6px; border-bottom: 1px solid var(--border); margin-bottom: 12px; }
.ai-section-hdr--reviewed { margin-top: 28px; }

/* Empty state */
.ai-empty { text-align: center; padding: 48px 24px; }
.ai-empty-icon { font-size: 2.5rem; margin-bottom: 10px; }
.ai-empty-title { font-size: 1.05rem; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.ai-empty-sub { font-size: 0.88rem; color: var(--text-muted); margin-bottom: 20px; }

/* Entry card */
.ai-entry { background: var(--card-bg, var(--card)); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 14px; overflow: hidden; }
.ai-entry--reviewed { opacity: 0.6; }
.ai-entry-meta { display: flex; align-items: center; gap: 8px; padding: 9px 14px 7px; border-bottom: 1px solid var(--border); font-size: 0.75rem; color: var(--text-muted); }
.ai-entry-source { font-weight: 600; color: var(--gold, #f5a623); }
.ai-entry-date { margin-left: auto; }
.ai-entry-dismiss { background: none; border: none; color: var(--text-muted); cursor: pointer; font-size: 0.85rem; padding: 2px 4px; border-radius: 4px; }
.ai-entry-dismiss:hover { background: var(--border); color: var(--text); }
.ai-entry-text-preview { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-entry-items { padding: 10px 14px; display: flex; flex-direction: column; gap: 10px; }
.ai-entry-footer { padding: 10px 14px 12px; border-top: 1px solid var(--border); }

/* Item rows */
.ai-item { display: flex; flex-direction: column; gap: 4px; }
.ai-item-top { display: flex; align-items: flex-start; gap: 8px; }
.ai-item-cat { font-size: 1.1rem; flex-shrink: 0; margin-top: 1px; }
.ai-item-text { font-size: 0.9rem; color: var(--text); line-height: 1.4; flex: 1; }
.ai-item-text--done { text-decoration: line-through; opacity: 0.6; }
.ai-item-assignee { font-size: 0.78rem; color: var(--gold, #f5a623); white-space: nowrap; }
.ai-item-cat-label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.04em; padding-left: 28px; }
.ai-item-actioned-label { font-size: 0.75rem; color: var(--text-muted); padding-left: 28px; }
.ai-item--actioned { opacity: 0.6; }

/* Item action buttons */
.ai-item-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-left: 28px; margin-top: 2px; }
.ai-btn { font-size: 0.75rem; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--bg); color: var(--text); cursor: pointer; transition: background 0.15s, border-color 0.15s; white-space: nowrap; }
.ai-btn:hover { background: var(--border); }
.ai-btn--task     { border-color: var(--blue, #3b82f6); color: var(--blue, #3b82f6); }
.ai-btn--task:hover { background: var(--blue, #3b82f6); color: #fff; }
.ai-btn--waiting  { border-color: #9b59b6; color: #9b59b6; }
.ai-btn--waiting:hover { background: #9b59b6; color: #fff; }
.ai-btn--delegate { border-color: var(--gold, #f5a623); color: var(--gold, #f5a623); }
.ai-btn--delegate:hover { background: var(--gold, #f5a623); color: var(--text); }
.ai-btn--ignore   { border-color: transparent; color: var(--text-muted); }
.ai-btn--ignore:hover { background: var(--border); color: var(--text); }

/* Approve all + topbar capture */
.ai-entry-approve-all { font-size: 0.8rem; font-weight: 600; padding: 6px 14px; border-radius: 7px; border: 1px solid var(--green, #22c55e); color: var(--green, #22c55e); background: none; cursor: pointer; }
.ai-entry-approve-all:hover { background: var(--green, #22c55e); color: var(--text); }
.ai-capture-btn-topbar { font-size: 0.8rem; font-weight: 700; padding: 8px 16px; border-radius: 8px; background: var(--gold, #f5a623); color: var(--text); border: none; cursor: pointer; white-space: nowrap; }
.ai-capture-btn-topbar:hover { opacity: 0.88; }
.ai-capture-btn-lg { font-size: 0.9rem; font-weight: 700; padding: 10px 22px; border-radius: 9px; background: var(--gold, #f5a623); color: var(--text); border: none; cursor: pointer; margin-top: 4px; }
.ai-capture-btn-lg:hover { opacity: 0.88; }

/* Today chip */
.ai-today-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--card-bg, var(--card)); border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px; cursor: pointer; transition: border-color 0.15s; margin-bottom: 10px; width: 100%; box-sizing: border-box; }
.ai-today-chip:hover { border-color: var(--gold, #f5a623); }
.ai-today-chip-icon { font-size: 1.1rem; }
.ai-today-chip-label { font-size: 0.88rem; font-weight: 600; color: var(--text); flex: 1; }
.ai-inbox-badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold, #f5a623); color: var(--text); font-size: 0.7rem; font-weight: 800; padding: 0 5px; }
.ai-plan-day-btn { font-size: 0.8rem; font-weight: 700; padding: 8px 16px; border-radius: 8px; background: var(--blue, #3b82f6); color: #fff; border: none; cursor: pointer; display: block; width: 100%; margin-bottom: 12px; }
.ai-plan-day-btn:hover { opacity: 0.88; }

/* Capture modal */
.ai-modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.65); z-index: 9990; display: flex; align-items: center; justify-content: center; padding: 16px; }
.ai-modal { background: var(--card-bg, var(--card)); border: 1px solid var(--border); border-radius: 14px; padding: 24px; width: 100%; max-width: 540px; }
.ai-capture-modal { max-width: 560px; }
.ai-modal-title { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.ai-modal-sub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 14px; line-height: 1.5; }
.ai-capture-textarea { width: 100%; box-sizing: border-box; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 12px; color: var(--text); font-size: 0.9rem; line-height: 1.55; resize: vertical; font-family: inherit; }
.ai-capture-textarea:focus { outline: none; border-color: var(--gold, #f5a623); }
.ai-capture-actions { display: flex; gap: 10px; margin-top: 14px; }
.ai-btn-primary { flex: 1; padding: 10px 18px; border-radius: 8px; background: var(--gold, #f5a623); color: var(--text); font-weight: 700; font-size: 0.88rem; border: none; cursor: pointer; }
.ai-btn-primary:hover { opacity: 0.88; }
.ai-btn-ghost { padding: 10px 14px; border-radius: 8px; background: none; border: 1px solid var(--border); color: var(--text-muted); font-size: 0.88rem; cursor: pointer; }
.ai-btn-ghost:hover { background: var(--border); color: var(--text); }
.ai-modal-cancel { width: 100%; margin-top: 12px; padding: 8px; border-radius: 8px; background: none; border: 1px solid var(--border); color: var(--text-muted); font-size: 0.85rem; cursor: pointer; }
.ai-modal-cancel:hover { background: var(--border); }

/* Delegate picker */
.ai-delegate-list { display: flex; flex-direction: column; gap: 8px; margin: 14px 0; }
.ai-delegate-btn { padding: 10px 16px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); font-size: 0.9rem; font-weight: 600; cursor: pointer; text-align: left; }
.ai-delegate-btn:hover { border-color: var(--gold, #f5a623); background: var(--border); }

/* ── Inline item edit form ──────────────────────────────────────────────────── */
.ai-edit-form        { padding: 8px 4px 4px; display: flex; flex-direction: column; gap: 8px; }
.ai-edit-row         { display: flex; flex-direction: column; gap: 3px; }
.ai-edit-label       { font-size: 11px; font-weight: 600; color: var(--text-muted, #888); text-transform: uppercase; letter-spacing: .04em; }
.ai-edit-input       { width: 100%; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border, #ddd); border-radius: 6px; background: var(--surface, #fff); color: var(--text, var(--text)); box-sizing: border-box; resize: vertical; }
.ai-edit-select      { width: 100%; font-size: 13px; padding: 6px 8px; border: 1px solid var(--border, #ddd); border-radius: 6px; background: var(--surface, #fff); color: var(--text, var(--text)); }
.ai-edit-actions     { display: flex; gap: 8px; margin-top: 4px; }
.ai-btn--primary     { background: var(--gold, #b8953d); color: #fff; border: none; border-radius: 6px; padding: 7px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ai-btn--ghost       { background: transparent; color: var(--text-muted, #888); border: 1px solid var(--border, #ddd); border-radius: 6px; padding: 7px 14px; font-size: 13px; cursor: pointer; }
.ai-btn--edit        { background: transparent; color: var(--text-muted, #999); border: 1px solid var(--border, #ddd); border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer; }
.ai-btn--edit:hover  { border-color: var(--gold, #b8953d); color: var(--gold, #b8953d); }
.ai-item-due         { font-size: 11px; color: var(--text-muted, #888); margin-left: 6px; white-space: nowrap; }
