body { background:#f0f2f5; color:#1f2937; }
.air-wrap { max-width:1280px; margin:0 auto; padding:32px 24px 80px; }
.air-header { display:flex; justify-content:space-between; align-items:flex-start; gap:16px; margin-bottom:22px; flex-wrap:wrap; }
.air-title { margin:0; font:900 1.6rem 'Outfit',sans-serif; color:#111827; }
.air-sub { color:#6b7280; font-size:.88rem; margin:4px 0 0; }
.air-warning { background:#fff7ed; border:1px solid #fed7aa; color:#9a3412; border-radius:10px; padding:12px 16px; font-size:.86rem; font-weight:700; margin-bottom:18px; }
.air-grid { display:grid; grid-template-columns: minmax(300px, .8fr) minmax(0, 1.4fr); gap:20px; align-items:start; }
.air-card { background:#fff; border-radius:12px; box-shadow:0 1px 4px rgba(0,0,0,.06); padding:18px; }
.air-filters { display:flex; gap:7px; flex-wrap:wrap; margin-bottom:14px; }
.air-filter { padding:6px 12px; border:1px solid #e5e7eb; border-radius:99px; background:#fff; color:#4b5563; text-decoration:none; font-size:.78rem; font-weight:700; }
.air-filter.active { background:#1e40af; border-color:#1e40af; color:#fff; }
.air-source { font-size:.7rem; text-transform:uppercase; letter-spacing:.5px; color:#6b7280; font-weight:800; }
.air-item { display:block; border:1px solid #e5e7eb; border-radius:9px; padding:12px; margin-bottom:9px; text-decoration:none; color:inherit; }
.air-item:hover { border-color:#93c5fd; background:#f8fbff; }
.air-item.active { border-color:#1e40af; box-shadow:0 0 0 2px #dbeafe; }
.air-item-top { display:flex; justify-content:space-between; gap:8px; align-items:center; }
.air-customer { font-weight:800; color:#111827; }
.air-time { color:#9ca3af; font-size:.72rem; white-space:nowrap; }
.air-preview { color:#4b5563; font-size:.8rem; line-height:1.45; margin-top:7px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.air-pill { display:inline-block; border-radius:99px; padding:3px 8px; font-size:.68rem; font-weight:800; margin-top:7px; }
.air-pill.pending_review { color:#92400e; background:#fef3c7; }
.air-pill.generation_failed, .air-pill.send_failed { color:#991b1b; background:#fee2e2; }
.air-pill.sent { color:#166534; background:#dcfce7; }
.air-pill.rejected, .air-pill.superseded { color:#6b7280; background:#f3f4f6; }
.air-pill.approved { color:#1e40af; background:#dbeafe; }
.air-section-title { margin:0 0 10px; font:800 .78rem 'Outfit',sans-serif; text-transform:uppercase; letter-spacing:.7px; color:#6b7280; }
.air-detail-head { display:flex; justify-content:space-between; align-items:flex-start; gap:12px; flex-wrap:wrap; border-bottom:1px solid #eef0f3; padding-bottom:14px; margin-bottom:16px; }
.air-detail-title { margin:0; font:800 1.2rem 'Outfit',sans-serif; color:#111827; }
.air-links { display:flex; gap:8px; flex-wrap:wrap; margin-top:7px; }
.air-links a { color:#1e40af; font-size:.76rem; font-weight:700; text-decoration:none; }
.air-context { background:#f8fafc; border:1px solid #e5e7eb; border-radius:9px; padding:12px; max-height:420px; overflow:auto; }
.air-context pre { white-space:pre-wrap; word-break:break-word; font:12px/1.5 ui-monospace,SFMono-Regular,Menlo,monospace; margin:0; color:#374151; }
.air-message { border-bottom:1px solid #e5e7eb; padding:8px 0; }
.air-message:last-child { border-bottom:0; }
.air-message-label { color:#6b7280; font-size:.72rem; font-weight:800; text-transform:uppercase; }
.air-message-body { white-space:pre-wrap; font-size:.84rem; line-height:1.5; margin-top:3px; }
.air-editor { display:grid; gap:9px; }
.air-editor label { color:#6b7280; font-size:.73rem; font-weight:800; text-transform:uppercase; letter-spacing:.4px; }
.air-editor input, .air-editor textarea, .air-reject textarea { width:100%; box-sizing:border-box; border:1px solid #dbe1e8; border-radius:8px; padding:9px 11px; font:inherit; }
.air-editor input:focus, .air-editor textarea:focus, .air-reject textarea:focus, .air-btn:focus-visible, .air-links a:focus-visible, .air-filter:focus-visible { outline:3px solid rgba(30,64,175,.28); outline-offset:2px; }
.air-editor textarea { min-height:190px; resize:vertical; line-height:1.5; }
.air-editor input[readonly], .air-editor textarea[readonly] { background:#f8fafc; color:#6b7280; cursor:not-allowed; }
.air-actions { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin-top:12px; }
.air-btn { border:0; border-radius:8px; padding:9px 14px; font-size:.8rem; font-weight:800; cursor:pointer; }
.air-btn-save { background:#eff6ff; color:#1e40af; }
.air-btn-send { background:#059669; color:#fff; }
.air-btn-reject { background:#fef2f2; color:#b91c1c; }
.air-btn:disabled { cursor:not-allowed; opacity:.55; }
.air-reject { border-top:1px solid #eef0f3; margin-top:14px; padding-top:14px; }
.air-reject textarea { min-height:64px; margin-bottom:7px; }
.air-error { color:#b91c1c; background:#fef2f2; border:1px solid #fecaca; border-radius:8px; padding:9px 11px; font-size:.8rem; margin-bottom:12px; }
.air-success { color:#166534; background:#f0fdf4; border:1px solid #bbf7d0; border-radius:8px; padding:9px 11px; font-size:.8rem; margin-bottom:12px; }
.air-empty { color:#9ca3af; font-size:.85rem; padding:20px 4px; text-align:center; }
.ai-draft-route-notice { margin-bottom:12px; }
.ai-draft-panel { width:100%; }
.ai-draft-panel.ai-draft-panel-compact { box-shadow:none; border:1px solid #e5e7eb; margin:12px 0; }
.ai-draft-state { margin:0 0 12px; color:#374151; font-size:.84rem; line-height:1.45; }
.ai-draft-state strong { color:#111827; }
.ai-draft-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin-top:6px; }
.ai-draft-readonly-note { margin-top:12px; color:#6b7280; font-size:.8rem; }
@media (max-width:850px) { .air-grid { grid-template-columns:1fr; } }
@media (max-width:640px) {
  .air-wrap { padding:22px 14px 60px; }
  .ai-draft-panel .air-detail-head { display:block; }
  .ai-draft-panel .air-detail-head > .air-pill { margin-top:10px; }
  .ai-draft-panel .air-source-record { margin-top:14px; }
}
