/* alec.css — Alec agent styles
   Extracted from styles.css as part of FEAT-033 (Alec office UI rebuild).
   New Alec-specific styles go here, not in styles.css.
   TODO: remove source blocks from styles.css after extraction verified on staging. */


/* ──────────────────────────────────────────────────────────
   Block 1 — Alec Queue Card + Edit modal overlay
   Source: styles.css lines 770–945
   ────────────────────────────────────────────────────────── */

/* ── Alec Queue Card ── */
.queue-item {
  background: #f8fafa;
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--border);
  position: relative;
}
.queue-item:last-child { margin-bottom: 0; }
.queue-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.queue-item-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.queue-item-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 8px;
  background: var(--teal);
  color: white;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.queue-item-tag.milestone {
  background: #f59e0b;
}
.queue-item-time {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}
.draft-wait-label {
  display: inline-block;
  font-size: 11px;
  color: #999;
  background: #f5f5f5;
  border-radius: 4px;
  padding: 1px 6px;
  margin-left: 6px;
}
.queue-item-subject {
  font-size: 13px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.queue-item-body {
  font-size: 13px;
  line-height: 1.5;
  color: #555;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin-bottom: 10px;
  max-height: 1.5em;
  overflow: hidden;
  transition: max-height 0.2s;
}
.queue-item-body.expanded { max-height: none; white-space: pre-line; text-overflow: clip; }
.queue-item-expand {
  font-size: 12px;
  color: var(--teal);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  margin-bottom: 10px;
}
.queue-item-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.queue-btn {
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  transition: opacity 0.15s;
}
.queue-btn:hover { opacity: 0.85; }
.queue-btn.approve { background: var(--teal); color: white; }
.queue-btn.edit { background: var(--navy); color: white; }
.queue-btn.delay { background: #e2e8f0; color: #475569; }
.queue-btn.dismiss { background: transparent; color: #94a3b8; border: 1px solid #e2e8f0; }
.queue-nag {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 8px;
  font-size: 12px;
  color: #92400e;
  font-weight: 600;
}
.queue-empty {
  font-size: 13px;
  color: #aaa;
  text-align: center;
  padding: 12px 0;
}
.queue-section-header {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal);
  letter-spacing: 1.5px;
  text-transform: uppercase;
  padding: 10px 0 4px;
  margin-top: 6px;
  border-top: 1px solid var(--border);
}
.queue-section-header:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

/* ── Edit modal overlay for queue ── */
.queue-edit-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}
.queue-edit-modal {
  background: white;
  border-radius: 14px;
  padding: 24px;
  width: 90%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
}
.queue-edit-modal h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--navy);
  margin: 0 0 14px;
}
.queue-edit-modal input,
.queue-edit-modal textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  margin-bottom: 10px;
  box-sizing: border-box;
}
.queue-edit-modal textarea {
  min-height: 120px;
  resize: vertical;
}
.queue-edit-modal .queue-edit-btns {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 8px;
}


/* ──────────────────────────────────────────────────────────
   Block 2 — Alec email inbox items
   Source: styles.css lines 5103–5115
   ────────────────────────────────────────────────────────── */

/* Alec email inbox items */
.alec-inbox-item { padding: 12px 0; border-bottom: 1px solid var(--border); }
.alec-inbox-item:last-child { border-bottom: none; }
.alec-inbox-row { display: flex; align-items: flex-start; gap: 10px; }
.alec-inbox-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.alec-inbox-body { flex: 1; min-width: 0; }
.alec-inbox-sender { font-size: 14px; font-weight: 600; color: var(--navy); }
.alec-inbox-email { font-weight: 400; color: var(--gray); font-size: 12px; }
.alec-inbox-subject { font-size: 13px; color: var(--gray); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alec-inbox-time { font-size: 11px; color: var(--light-gray); white-space: nowrap; flex-shrink: 0; }
.alec-inbox-actions { display: flex; gap: 8px; margin-top: 8px; padding-left: 28px; }
.alec-inbox-section-label { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; margin: 14px 0 6px; padding-left: 2px; }
.alec-inbox-unmatched { border-left: 3px solid var(--amber); }


/* ──────────────────────────────────────────────────────────
   Block 3 — Email/Text Send Toggle
   Source: styles.css lines 5626–5648
   ────────────────────────────────────────────────────────── */

/* ═══ Email/Text Send Toggle ═══ */
.draft-send-toggle {
  display: flex;
  gap: 0;
  margin: 6px 0;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border);
  width: fit-content;
}
.send-type-btn {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 14px;
  border: none;
  background: var(--white);
  color: var(--gray);
  cursor: pointer;
  transition: all 0.15s;
}
.send-type-btn:first-child { border-right: 1px solid var(--border); }
.send-type-btn:hover { background: var(--bg); color: var(--navy); }
.send-type-btn.active { background: var(--navy); color: var(--white); }


/* ──────────────────────────────────────────────────────────
   Block 4 — Draft Email Modal
   Source: styles.css lines 5913–5945
   ────────────────────────────────────────────────────────── */

/* ═══ Draft Email Modal ═══ */
.draft-email-modal { max-width: 480px; }
.draft-email-tabs {
  display: flex; gap: 4px; padding-bottom: 12px;
  border-bottom: 1px solid var(--border); margin-bottom: 12px;
}
.draft-tab {
  padding: 6px 14px; border-radius: 8px 8px 0 0; font-size: 13px;
  font-weight: 600; border: none; background: none;
  color: var(--gray); cursor: pointer; border-bottom: 2px solid transparent;
}
.draft-tab:hover { color: var(--navy); }
.draft-tab.active { color: var(--navy); border-bottom-color: var(--teal); }
.draft-email-search-wrap { margin-bottom: 8px; }
.draft-email-search {
  width: 100%; border: 1.5px solid var(--border); border-radius: 8px;
  padding: 8px 12px; font-size: 13px; font-family: inherit; outline: none;
}
.draft-email-search:focus { border-color: var(--teal); }
.draft-contact-list { max-height: 220px; overflow-y: auto; }
.draft-contact-row {
  display: flex; flex-direction: column; padding: 10px 8px;
  border-radius: 8px; cursor: pointer; transition: background 0.1s;
}
.draft-contact-row:hover { background: var(--bg); }
.draft-contact-name { font-size: 14px; font-weight: 600; color: var(--navy); }
.draft-contact-sub { font-size: 12px; color: var(--gray); margin-top: 2px; }
.draft-contact-empty { color: var(--gray); font-size: 13px; padding: 20px; text-align: center; }
.draft-email-divider {
  text-align: center; color: var(--light-gray); font-size: 12px;
  padding: 8px 0; border-top: 1px solid var(--border); margin-top: 4px;
}
.draft-email-custom { padding-top: 8px; }


/* ──────────────────────────────────────────────────────────
   Block 5 — FEAT-033 office v2 layout (Chunk 5)
   ────────────────────────────────────────────────────────── */

/* View show/hide — css/agents/alec-office.css (:not(.active) / .active) */
.alec-office-shell.office-layout {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}
.avatar-dani { background: linear-gradient(135deg, var(--teal) 0%, #06b6d4 100%); }
.avatar-trac { background: linear-gradient(135deg, var(--green) 0%, #059669 100%); }

.alec-office-stats { display: flex; gap: 24px; padding: 12px 20px; background: var(--bg); border-bottom: 1px solid var(--border); }
.alec-office-stat { display: flex; align-items: baseline; gap: 6px; font-size: 13px; }
.alec-office-stat-num { font-size: 18px; font-weight: 700; color: var(--navy); }
.alec-office-stat-label { color: var(--gray); }

/* Tab chrome — see css/agents/alec-office.css */
.alec-office-tab { display: flex; align-items: center; gap: 6px; font-family: inherit; cursor: pointer; }
.alec-tab-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; color: white; min-width: 18px; text-align: center; }
.badge-orange { background: #f97316; color: white; }
.badge-amber { background: var(--amber); color: white; }
.badge-new-contact { background: var(--amber-light); color: #92400e; }
.badge-known-contact { background: var(--green-light); color: #065f46; }
.badge-teal { background: var(--teal); }
.badge-purple { background: #8b5cf6; }

.alec-office-body { display: flex; flex: 1; min-height: 0; overflow: hidden; }
.alec-office-inbox-pane { overflow-y: auto; }
.alec-office-detail-pane { flex: 1; display: flex; flex-direction: column; overflow: hidden; transition: margin-right 0.3s ease; min-width: 0; }


/* ──────────────────────────────────────────────────────────
   Block 6 — FEAT-033 inbox pane (Chunk 3 classes)
   ────────────────────────────────────────────────────────── */

.alec-inbox-pane { display: flex; flex-direction: column; }
.alec-inbox-pending { padding: 12px; }
.alec-inbox-pane-title { font-size: 11px; font-weight: 700; color: var(--gray); text-transform: uppercase; letter-spacing: 0.5px; padding: 4px 0 10px; display: flex; align-items: center; gap: 8px; }
.alec-inbox-pane-count { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; background: var(--border); color: var(--gray); }
.alec-inbox-pane-empty { padding: 20px; text-align: center; color: var(--light-gray); font-size: 13px; }
.alec-inbox-empty-hint { margin: 10px 0 0; font-size: 12px; line-height: 1.45; color: var(--gray); text-align: left; max-width: 280px; margin-left: auto; margin-right: auto; }
.alec-inbox-pane-loading { padding: 20px; text-align: center; color: var(--gray); font-size: 13px; }
.alec-pending-row { padding: 10px 12px; border-radius: 8px; cursor: pointer; transition: background 0.15s; border-left: 3px solid transparent; margin-bottom: 4px; }
.alec-pending-row:hover { background: var(--bg); }
.alec-pending-row.high { border-left-color: var(--red); }
.alec-pending-row.medium { border-left-color: var(--amber); }
.alec-pending-row.selected { background: var(--teal-light); }
.alec-row-meta { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 2px; }
.alec-row-from { font-size: 13px; font-weight: 600; color: var(--navy); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70%; }
.alec-row-time { font-size: 11px; color: var(--light-gray); white-space: nowrap; }
.alec-row-subject { font-size: 12px; color: var(--gray); margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.alec-row-badges { display: flex; gap: 4px; }
.alec-row-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: var(--border); color: var(--gray); }
.alec-row-badge.badge-known { background: var(--teal-light); color: var(--teal-dark); }
.alec-row-badge.badge-new { background: var(--amber-light); color: #92400e; }
.alec-row-badge.badge-agent { background: #ddd6fe; color: #5b21b6; }
.alec-row-badge.badge-vendor { background: var(--green-light); color: #065f46; }
.alec-row-badge.badge-txn { background: #dbeafe; color: #1e40af; }
.alec-row-badge.badge-manual { background: var(--red-light); color: #991b1b; }
.alec-archived-section { padding: 12px; border-top: 1px solid var(--border); }
.alec-archived-filters { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.alec-archived-search { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 6px 8px; font-size: 12px; font-family: inherit; outline: none; box-sizing: border-box; }
.alec-archived-search:focus { border-color: var(--teal); }
.alec-archived-range { display: flex; gap: 4px; }
.alec-range-btn { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 6px; border: 1px solid var(--border); background: var(--white); color: var(--gray); cursor: pointer; font-family: inherit; }
.alec-range-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.alec-archived-rows { display: flex; flex-direction: column; gap: 4px; }
.alec-archived-row { padding: 8px 10px; border-radius: 6px; background: var(--bg); }
.alec-archived-reason { font-size: 11px; color: var(--light-gray); margin: 4px 0; }
.alec-archived-actions { display: flex; gap: 4px; }
.alec-rescue-btn { font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 4px; border: 1px solid var(--border); background: var(--white); color: var(--gray); cursor: pointer; font-family: inherit; }
.alec-rescue-btn:hover { border-color: var(--teal); color: var(--teal); }


/* ──────────────────────────────────────────────────────────
   Block 7 — FEAT-033 step 5/9 row decorations (rebuild)
   ────────────────────────────────────────────────────────── */
.alec-row-tx-badge { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: #dbeafe; color: #1e40af; cursor: pointer; }
.alec-row-tx-badge:hover { opacity: 0.85; }
.alec-row-confidence { font-size: 10px; font-weight: 600; padding: 2px 6px; border-radius: 10px; }
.alec-row-confidence.confidence-green { background: var(--green-light); color: #065f46; }
.alec-row-confidence.confidence-amber { background: var(--amber-light); color: #92400e; }
.alec-row-confidence.confidence-red { background: var(--red-light); color: #991b1b; }
.alec-inbox-sync-row { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-bottom: 0.5px solid var(--border); flex-wrap: wrap; }
.alec-inbox-sync-btn { font-size: 12px; font-weight: 600; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--teal); background: var(--white); color: var(--navy); cursor: pointer; }
.alec-inbox-sync-btn:hover { background: var(--teal-light, #e8f8f5); }
.alec-inbox-sync-hint { font-size: 11px; color: var(--gray); }
.alec-inbox-filtered-link { font-size: 11px; color: var(--gray); padding: 4px 10px; cursor: pointer; border-bottom: 0.5px solid var(--border); }
.alec-inbox-filtered-link:hover { color: var(--teal); text-decoration: underline; }
.alec-filtered-modal-box { max-width: 560px; max-height: 85vh; display: flex; flex-direction: column; }
.alec-filtered-modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.alec-filtered-modal-close { background: none; border: none; font-size: 22px; cursor: pointer; color: var(--gray); line-height: 1; padding: 4px 8px; }
.alec-filtered-modal-intro { font-size: 12px; color: var(--gray); margin: 0 0 12px; line-height: 1.45; }
.alec-filtered-modal-list { overflow-y: auto; flex: 1; min-height: 120px; max-height: 50vh; }
.alec-filtered-modal-empty { padding: 16px; text-align: center; color: var(--light-gray); font-size: 13px; }
.alec-filtered-modal-row { padding: 12px 0; border-bottom: 0.5px solid var(--border); }
.alec-filtered-modal-row:last-child { border-bottom: none; }
.alec-filtered-modal-row-top { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.alec-filtered-modal-from { font-weight: 600; font-size: 13px; color: var(--navy); word-break: break-all; }
.alec-filtered-modal-time { font-size: 11px; color: var(--gray); flex-shrink: 0; }
.alec-filtered-modal-subject { font-size: 13px; color: var(--text); margin-bottom: 6px; }
.alec-filtered-modal-reason { font-size: 12px; color: var(--gray); line-height: 1.4; }
.alec-filtered-modal-foot { font-size: 11px; color: var(--gray); padding: 12px 0 4px; line-height: 1.4; border-top: 0.5px solid var(--border); margin-top: 4px; }
.alec-filtered-modal-actions { margin-top: 8px; }
.alec-filtered-rescue-btn { font-size: 12px; padding: 6px 12px; }
.alec-row-source-badge { font-size: 10px; font-weight: 700; padding: 2px 7px; border-radius: 10px; }
.alec-row-source-badge.alec-source-trac { background: #dbeafe; color: #1e40af; }
.alec-row-source-badge.alec-source-dani { background: var(--green-light); color: #065f46; }
.alec-row-source-badge.alec-source-alec { background: var(--teal-light); color: var(--teal-dark); }
.alec-row-source-badge.alec-source-user { background: var(--border); color: var(--gray); }
.alec-row-warning-tag { font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 10px; background: var(--red-light); color: #991b1b; }
.alec-pending-row.alec-row-needs-recipient { border-left-color: var(--red); }
.alec-row-badge.alec-row-pipeline-badge { background: var(--teal-light); color: var(--teal-dark); }
.alec-row-badge.alec-row-status-badge.alec-status-sent,
.alec-row-badge.alec-row-status-badge.alec-status-completed,
.alec-row-badge.alec-row-status-badge.alec-status-approved { background: var(--green-light); color: #065f46; }
.alec-row-badge.alec-row-status-badge.alec-status-rejected { background: var(--red-light); color: #991b1b; }
.alec-row-badge.alec-row-status-badge.alec-status-dismissed { background: var(--border); color: var(--gray); }

.alec-inbox-hint { font-size: 11px; color: var(--gray); line-height: 1.45; padding: 8px 10px 0; border-bottom: 0.5px solid var(--border); }
.alec-detail-empty { padding: 24px 16px; text-align: center; color: var(--gray); font-size: 13px; line-height: 1.5; }
.alec-autofile-note-wrap { margin-top: 12px; }
.alec-autofile-note-label { display: block; font-size: 11px; font-weight: 600; color: var(--gray); margin-bottom: 6px; text-transform: uppercase; letter-spacing: 0.03em; }
.alec-autofile-note-input { width: 100%; box-sizing: border-box; min-height: 56px; }
.alec-autofile-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px; }
.alec-autofile-actions .alec-yellow-btn { flex: 1 1 auto; min-height: 44px; }

.alec-link-results { margin-top: 4px; }
.alec-link-hint { font-size: 12px; color: var(--gray); padding: 8px 0; line-height: 1.45; }
.alec-link-row { display: block; width: 100%; text-align: left; padding: 10px 12px; margin-bottom: 6px; border: 1px solid var(--border); border-radius: 6px; background: var(--white); cursor: pointer; font-family: inherit; }
.alec-link-row:hover { border-color: var(--teal); background: var(--bg); }
.alec-link-row-name { display: block; font-size: 13px; font-weight: 600; color: var(--navy); }
.alec-link-row-meta { display: block; font-size: 11px; color: var(--gray); margin-top: 2px; }


/* ──────────────────────────────────────────────────────────
   Block 8 — FEAT-033 slide-in panels (Chunk 4 classes)
   ────────────────────────────────────────────────────────── */

.alec-panel-overlay { position: fixed; top: 0; right: -400px; width: 380px; height: 100vh; background: var(--white); transition: right 0.3s ease; z-index: 200; box-shadow: -4px 0 24px rgba(0,0,0,0.08); overflow-y: auto; display: flex; flex-direction: column; }
.alec-panel-overlay.open { right: 0; }
body.alec-panel-open #alecEmailDetail { margin-right: 380px; }
.alec-panel { display: flex; flex-direction: column; height: 100%; }
.alec-panel-accent { height: 4px; flex-shrink: 0; }
.alec-panel-accent.dani-accent { background: var(--teal); }
.alec-panel-accent.trac-accent { background: var(--green); }
.alec-panel-accent.alec-accent { background: linear-gradient(90deg, var(--navy) 0%, var(--teal) 100%); }
.alec-panel-header { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.alec-panel-avatar { width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; color: white; flex-shrink: 0; }
.alec-panel-avatar-img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid var(--border); }
.alec-panel-title { flex: 1; font-size: 14px; font-weight: 600; color: var(--navy); }
.alec-panel-close { background: none; border: none; font-size: 22px; color: var(--gray); cursor: pointer; padding: 0 4px; line-height: 1; font-family: inherit; }
.alec-panel-close:hover { color: var(--navy); }
.alec-panel-intro { padding: 12px 16px; font-size: 12px; color: var(--gray); background: var(--bg); border-bottom: 1px solid var(--border); flex-shrink: 0; line-height: 1.5; }
.alec-panel-body { flex: 1; padding: 14px 16px; overflow-y: auto; }
.alec-panel-chat-body { padding: 14px 16px; overflow-y: auto; flex: 1; }
.alec-panel-field { margin-bottom: 10px; }
.alec-panel-label { display: block; font-size: 11px; font-weight: 600; color: var(--gray); margin-bottom: 4px; text-transform: uppercase; letter-spacing: 0.4px; }
.alec-panel-input, .alec-panel-select, .alec-panel-textarea { width: 100%; border: 1px solid var(--border); border-radius: 6px; padding: 7px 10px; font-size: 13px; font-family: inherit; outline: none; box-sizing: border-box; }
.alec-panel-input:focus, .alec-panel-select:focus, .alec-panel-textarea:focus { border-color: var(--teal); }
.alec-panel-textarea { resize: vertical; min-height: 60px; }
.alec-panel-footer { padding: 12px 16px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-shrink: 0; background: var(--white); }
.alec-panel-btn { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 6px; border: none; cursor: pointer; font-family: inherit; }
.alec-panel-btn-cancel { background: var(--white); color: var(--gray); border: 1px solid var(--border); }
.alec-panel-btn-cancel:hover { color: var(--navy); }
.alec-panel-btn-primary { background: var(--teal); color: var(--white); }
.alec-panel-btn-primary:hover { opacity: 0.9; }
.alec-chat-panel-area { min-height: 280px; max-height: calc(100vh - 240px); overflow-y: auto; padding: 8px 0; }
.alec-panel-chat-input-row { display: flex; gap: 8px; padding: 10px 16px; border-top: 1px solid var(--border); flex-shrink: 0; }
.alec-chat-panel-input { flex: 1; border: 1px solid var(--border); border-radius: 6px; padding: 8px 10px; font-size: 13px; font-family: inherit; outline: none; resize: none; min-height: 40px; max-height: 120px; }
.alec-chat-panel-input:focus { border-color: var(--teal); }
.alec-chat-panel-send { font-size: 13px; font-weight: 600; padding: 8px 14px; border-radius: 6px; background: var(--teal); color: var(--white); border: none; cursor: pointer; font-family: inherit; }
.alec-chat-panel-send:hover { opacity: 0.9; }

/* ──────────────────────────────────────────────────────────
   Mobile responsive — Alec office (max-width: 768px)
   Matches the canonical mobile breakpoint in styles.css
   ────────────────────────────────────────────────────────── */

@media (max-width: 768px) {
  .alec-office-inbox-shell.mobile-hidden,
  .alec-office-detail-shell.mobile-hidden { display: none; }

  .alec-office-tabs { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .alec-office-tab { white-space: nowrap; }

  /* Scenario filter -- wrap on mobile */
  .alec-scenario-filter { flex-wrap: wrap; }

  /* Detail panel -- ensure frozen footer is visible on mobile */
  .alec-detail-frozen-footer { position: sticky; bottom: 0; }

  /* Action buttons -- wrap on small screens */
  .alec-detail-action-row { flex-wrap: wrap; }
  .alec-action-btn { flex: 1 1 auto; min-width: 80px; text-align: center; }

  /* Touch targets -- minimum 44px height */
  .alec-action-btn, .alec-scenario-btn, .alec-office-tab, #viewAlecOffice .office-action-btn { min-height: 44px; }
}

@media (max-width: 480px) {
  /* Very narrow screens -- single button per row */
  .alec-action-btn { flex: 1 1 100%; }
}
