/* Atomic Inventory — /dept/sales?tab=eventsales&subtab=atomic
   Kanban of upcoming events × level buckets, plus the bundle rollup. Uses the
   shared department theme tokens so it tracks light/dark with the rest of app.

   Atomic Inventory is a SUBTAB of Event Sales: its panel lives inside
   #es-sub-atomic, whose visibility is driven by the [hidden] attribute
   (event_sales.js showSub). So #panel-atomic just displays normally — the
   parent subpanel hides it when another Event Sales subtab is active. */

#panel-atomic { display: block; }

/* ── toolbar ─────────────────────────────────────────────────────────── */
.ai-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin: 4px 2px 14px;
}
.ai-view-toggle { display: inline-flex; gap: 6px; }
.ai-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: auto; }
.ai-input, .ai-select {
  font-size: 12.5px; padding: 6px 9px; border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb); background: var(--bg-card, #fff);
  color: var(--text-primary, #111827); max-width: 220px;
}
.ai-input:focus, .ai-select:focus { outline: none; border-color: var(--accent, #3b82f6); }
.ai-check { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--text-muted); }
.ai-clear {
  font-size: 12px; padding: 6px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border, #e5e7eb); background: transparent; color: var(--text-secondary);
}
.ai-clear:hover { border-color: var(--accent, #3b82f6); color: var(--accent, #3b82f6); }

/* ── summary strip ───────────────────────────────────────────────────── */
.ai-summary { display: flex; flex-wrap: wrap; align-items: stretch; gap: 12px; margin: 0 2px 14px; }
.ai-stat {
  padding: 10px 16px; border: 1px solid var(--border, #e5e7eb); border-radius: 12px;
  background: var(--bg-card, #fff); min-width: 130px;
}
.ai-stat-v { font-size: 20px; font-weight: 800; color: var(--text-primary, #111827); }
.ai-stat-l { font-size: 11.5px; color: var(--text-muted); margin-top: 2px; }
.ai-fresh { align-self: center; font-size: 11px; color: var(--text-muted); margin-left: auto; }
.ai-note { font-size: 13px; color: var(--text-muted); padding: 6px 2px; }

/* ── board ───────────────────────────────────────────────────────────── */
.ai-board-wrap { padding-bottom: 8px; }
.ai-board {
  display: grid; gap: 14px; align-items: start; min-height: 200px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}
.ai-board > .dept-empty { grid-column: 1 / -1; }
.ai-lane {
  width: auto; border: 1px solid var(--border, #e5e7eb);
  border-radius: 14px; background: var(--bg-secondary, #f8fafc);
  display: flex; flex-direction: column;
}
.ai-lane-head {
  padding: 12px 14px; border-bottom: 1px solid var(--border, #e5e7eb);
  background: var(--bg-secondary, #f8fafc);
  border-radius: 14px 14px 0 0;
}
.ai-lane-title { font-size: 14px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-lane-meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.ai-badge {
  font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px;
  background: rgba(59,130,246,0.12); color: var(--accent, #3b82f6);
}
.ai-badge.soon { background: rgba(234,179,8,0.15); color: #a16207; }
.ai-badge.warn { background: rgba(249,115,22,0.15); color: #c2410c; }
.ai-badge.crit { background: rgba(239,68,68,0.16); color: #dc2626; }
.ai-chip {
  font-size: 11px; padding: 1px 8px; border-radius: 999px;
  background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb); color: var(--text-secondary);
}
.ai-lane-nums { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-secondary); }
.ai-lane-val { font-weight: 800; color: var(--text-primary); }
.ai-lane-body { padding: 10px; }

/* ── work-score power bar — how hard to push this event ───────────────────── */
.ai-power { display: flex; align-items: center; gap: 8px; margin: 6px 0 2px; cursor: default; }
.ai-power-track {
  flex: 1 1 auto; height: 7px; border-radius: 999px; overflow: hidden;
  background: var(--bg-card, #eef2f7); border: 1px solid var(--border, #e5e7eb);
}
.ai-power-fill { height: 100%; border-radius: 999px; transition: width .2s ease; }
.ai-power-lbl { flex: 0 0 auto; font-size: 10.5px; font-weight: 800; letter-spacing: .02em; white-space: nowrap; }
.ai-power-push  .ai-power-fill { background: #dc2626; }
.ai-power-push  .ai-power-lbl  { color: #dc2626; }
.ai-power-steady .ai-power-fill { background: #d97706; }
.ai-power-steady .ai-power-lbl  { color: #b45309; }
.ai-power-coast .ai-power-fill { background: #16a34a; }
.ai-power-coast .ai-power-lbl  { color: #16a34a; }

/* "Push now" summary tile doubles as a one-click focus toggle. */
.ai-stat-push { cursor: pointer; transition: box-shadow .12s, border-color .12s; }
.ai-stat-push:hover { border-color: #dc2626; box-shadow: 0 0 0 1px rgba(239,68,68,0.4) inset; }
.ai-stat-push .ai-stat-v { color: #dc2626; }

/* ── revenue pacing — booked + pipeline vs target ────────────────────────── */
.ai-rev { margin: 4px 0 2px; }
.ai-rev-bar {
  display: flex; height: 7px; border-radius: 999px; overflow: hidden;
  background: var(--bg-card, #eef2f7); border: 1px solid var(--border, #e5e7eb);
}
.ai-rev-booked { background: #16a34a; height: 100%; }
.ai-rev-pipe {
  height: 100%;
  background: repeating-linear-gradient(45deg, #93c5fd, #93c5fd 3px, #bfdbfe 3px, #bfdbfe 6px);
}
.ai-rev-nums {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 11px; color: var(--text-secondary); margin-top: 3px;
}
.ai-rev-b { color: #16a34a; font-weight: 700; }
.ai-rev-p { color: #2563eb; font-weight: 700; }
.ai-rev-g { color: #b45309; font-weight: 700; }
.ai-rev-pace { margin-left: auto; font-weight: 800; color: var(--text-primary); }

/* ── bundle split — actual pipeline vs prospective ───────────────────────── */
.ai-split { margin: 2px 0 6px; }
.ai-split-bar {
  display: flex; height: 6px; border-radius: 999px; overflow: hidden;
  background: var(--bg-secondary, #eef2f7);
}
.ai-split-live { background: #2563eb; height: 100%; }
.ai-split-prosp {
  height: 100%;
  background: repeating-linear-gradient(45deg, #94a3b8, #94a3b8 3px, #cbd5e1 3px, #cbd5e1 6px);
}
.ai-split-nums {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  font-size: 11px; margin-top: 3px;
}
.ai-split-l { color: #2563eb; font-weight: 700; }
.ai-split-p { color: #64748b; font-weight: 700; }
/* Tint bundle event chips by source so live pipeline reads apart from prospects */
.ai-be-live { box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .45); }
.ai-be-prosp { box-shadow: inset 0 0 0 1px rgba(148, 163, 184, .35); }

/* ── collapsible event lane + sticky header for navigation ───────────────── */
.ai-lane-head { position: sticky; top: 0; z-index: 2; }
.ai-lane-titlebar { display: flex; align-items: center; gap: 6px; cursor: pointer; user-select: none; }
.ai-lane-caret { font-size: 11px; color: var(--text-muted); flex: 0 0 auto; }
.ai-lane-titlebar:hover .ai-lane-title { color: var(--accent, #3b82f6); }
.ai-lane.collapsed .ai-lane-body { display: none; }
.ai-lane.collapsed { align-self: flex-start; }

/* ── bucket ──────────────────────────────────────────────────────────── */
.ai-bucket { margin-bottom: 12px; }
.ai-bucket-head {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px;
  border-radius: 8px; background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5e7eb); margin-bottom: 6px;
}
.ai-bucket-head.sold-out { opacity: 0.6; }
.ai-bucket-name { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-secondary); }
.ai-bucket-inv { font-size: 11.5px; color: var(--text-muted); }
.ai-bucket-inv b { color: var(--text-primary); }
.ai-add {
  margin-left: auto; font-size: 11px; padding: 2px 8px; border-radius: 6px; cursor: pointer;
  border: 1px dashed var(--border, #cbd5e1); background: transparent; color: var(--accent, #3b82f6);
}
.ai-add:hover { border-style: solid; }

.ai-cards { display: flex; flex-direction: column; gap: 6px; }
.ai-slot-empty { font-size: 11.5px; color: var(--text-muted); font-style: italic; padding: 2px 4px; }
.ai-more { font-size: 11px; color: var(--text-muted); padding: 2px 4px; }

/* ── prospect card ───────────────────────────────────────────────────── */
.ai-card {
  border: 1px solid var(--border, #e5e7eb); border-radius: 9px; padding: 8px 9px;
  background: var(--bg-card, #fff); transition: border-color .12s ease, box-shadow .12s ease;
}
.ai-card:hover { border-color: var(--accent, #3b82f6); box-shadow: 0 3px 10px rgba(0,0,0,0.06); }
.ai-card.pinned { border-color: #16a34a; background: rgba(22,163,74,0.05); }
.ai-card-top { display: flex; align-items: center; gap: 6px; }
.ai-card-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-src { margin-left: auto; font-size: 9.5px; font-weight: 700; padding: 1px 6px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.ai-src-m { background: rgba(59,130,246,0.14); color: #2563eb; }
.ai-src-p { background: rgba(139,92,246,0.15); color: #7c3aed; }
.ai-src-a { background: rgba(22,163,74,0.15); color: #16a34a; }
.ai-src-x { background: rgba(234,179,8,0.18); color: #a16207; }
.ai-card-sub { display: flex; flex-wrap: wrap; gap: 6px; margin: 3px 0; font-size: 11px; color: var(--text-muted); }
.ai-owner { color: var(--text-secondary); }
.ai-card-actions { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.ai-a {
  font-size: 10.5px; padding: 2px 7px; border-radius: 6px; cursor: pointer;
  border: 1px solid var(--border, #e5e7eb); background: transparent; color: var(--text-secondary);
}
.ai-a:hover { border-color: var(--accent, #3b82f6); color: var(--accent, #3b82f6); }
.ai-a-pin { color: #16a34a; border-color: rgba(22,163,74,0.4); }
.ai-a-danger { color: #dc2626; border-color: rgba(239,68,68,0.4); margin-left: auto; }
.ai-a-mute { color: var(--text-muted); }

/* ── bundle view ─────────────────────────────────────────────────────── */
.ai-bundle-cols { display: grid; grid-template-columns: 320px 1fr; gap: 16px; }
.ai-bundle-col { border: 1px solid var(--border, #e5e7eb); border-radius: 14px; background: var(--bg-card, #fff); overflow: hidden; }
.ai-bundle-head { padding: 10px 14px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--text-secondary); border-bottom: 1px solid var(--border, #e5e7eb); background: var(--bg-secondary, #f8fafc); }
.ai-bundle-list { padding: 8px; max-height: calc(100vh - 260px); overflow-y: auto; }

.ai-owner-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 10px; border-bottom: 1px solid var(--border, #f1f5f9); }
.ai-owner-name { font-size: 13px; font-weight: 600; color: var(--text-primary); }
.ai-owner-nums { display: flex; gap: 10px; font-size: 11.5px; color: var(--text-muted); align-items: center; }
.ai-owner-val { font-weight: 800; color: var(--text-primary); }

.ai-bundle-acct { border: 1px solid var(--border, #e5e7eb); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; }
.ai-ba-head { display: flex; align-items: baseline; justify-content: space-between; }
.ai-ba-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.ai-ba-val { font-size: 14px; font-weight: 800; color: #16a34a; }
.ai-ba-meta { font-size: 11.5px; color: var(--text-muted); margin: 3px 0 6px; }
.ai-ba-events { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.ai-be { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg-secondary, #f1f5f9); color: var(--text-secondary); }
.ai-ba-actions { display: flex; gap: 6px; }
.ai-tag { font-size: 10px; padding: 1px 7px; border-radius: 999px; background: var(--bg-secondary, #f1f5f9); color: var(--text-secondary); }
.ai-tag-bundle { background: rgba(59,130,246,0.14); color: #2563eb; font-weight: 700; }
.ai-tag-pin { background: rgba(22,163,74,0.15); color: #16a34a; }

/* ── assign modal ────────────────────────────────────────────────────── */
.ai-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; }
.ai-modal[hidden] { display: none; }
.ai-modal-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.5); }
.ai-modal-card { position: relative; width: min(460px, 92vw); background: var(--bg-card, #fff); border-radius: 14px; box-shadow: 0 20px 60px rgba(0,0,0,0.3); overflow: hidden; }
.ai-modal-head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--border, #e5e7eb); font-weight: 700; color: var(--text-primary); }
.ai-modal-x { font-size: 20px; line-height: 1; border: 0; background: transparent; cursor: pointer; color: var(--text-muted); }
.ai-modal-body { padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.ai-assign-context { font-size: 12.5px; color: var(--text-secondary); }
.ai-field { display: flex; flex-direction: column; gap: 4px; position: relative; }
.ai-field > span { font-size: 11.5px; font-weight: 600; color: var(--text-secondary); }
.ai-field .ai-input { max-width: none; }
.ai-typeahead { position: absolute; top: 100%; left: 0; right: 0; z-index: 5; background: var(--bg-card, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; margin-top: 2px; max-height: 220px; overflow-y: auto; box-shadow: 0 8px 24px rgba(0,0,0,0.12); }
.ai-ta-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: 12.5px; cursor: pointer; color: var(--text-primary); }
.ai-ta-row:hover { background: var(--bg-secondary, #f1f5f9); }
.ai-ta-owner { font-size: 11px; color: var(--text-muted); }
.ai-modal-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 12px 16px; border-top: 1px solid var(--border, #e5e7eb); }
.ai-btn { font-size: 12.5px; padding: 7px 14px; border-radius: 8px; cursor: pointer; border: 1px solid var(--border, #e5e7eb); background: transparent; color: var(--text-secondary); }
.ai-btn-primary { background: var(--accent, #3b82f6); border-color: var(--accent, #3b82f6); color: #fff; font-weight: 600; }
.ai-btn-ghost:hover { border-color: var(--accent, #3b82f6); }

/* ── toolbar actions (export / compact / collapse) ───────────────────────── */
.ai-actions { display: inline-flex; gap: 8px; align-items: center; }
.ai-btn.active,
.ai-btn[aria-pressed="true"] {
  background: var(--accent, #3b82f6); border-color: var(--accent, #3b82f6); color: #fff;
}
.ai-btn-ghost.active { background: rgba(59,130,246,0.12); color: var(--accent, #3b82f6); border-color: var(--accent, #3b82f6); }

/* ── likelihood pill — the single ranking signal on every card ───────────── */
.ai-like {
  font-size: 10px; font-weight: 800; padding: 1px 6px; border-radius: 999px;
  line-height: 1.5; flex: 0 0 auto;
}
.ai-like-hi { background: rgba(22,163,74,0.16); color: #16a34a; }
.ai-like-mid { background: rgba(234,179,8,0.18); color: #a16207; }
.ai-like-lo { background: rgba(148,163,184,0.22); color: var(--text-muted, #64748b); }

/* ── coverage badge (supply vs need) ─────────────────────────────────────── */
.ai-cov { font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 999px; }
.ai-cov-ok { background: rgba(22,163,74,0.14); color: #16a34a; }
.ai-cov-warn { background: rgba(234,179,8,0.16); color: #a16207; }
.ai-cov-crit { background: rgba(239,68,68,0.16); color: #dc2626; }

.ai-lane-nums { flex-wrap: wrap; gap: 8px; justify-content: flex-start; align-items: center; }

/* ── level bucket collapse ───────────────────────────────────────────────── */
.ai-bucket-head { cursor: pointer; user-select: none; }
.ai-caret { font-size: 11px; color: var(--text-muted); width: 12px; flex: 0 0 auto; }
.ai-bucket.collapsed .ai-cards { display: none; }

/* ── fixed card dimensions + compact stacking ────────────────────────────── */
.ai-card { min-height: 70px; }
.ai-board.ai-compact .ai-card { min-height: 0; padding: 4px 8px; }
.ai-board.ai-compact .ai-card-sub,
.ai-board.ai-compact .ai-card-actions { display: none; }
.ai-board.ai-compact .ai-card:hover .ai-card-actions {
  display: flex; position: absolute; right: 8px; margin-top: -2px; background: var(--bg-card, #fff);
  border: 1px solid var(--border, #e5e7eb); border-radius: 6px; padding: 2px 4px; z-index: 3;
}
.ai-board.ai-compact .ai-card { position: relative; }
.ai-board.ai-compact .ai-cards { gap: 3px; }

/* ── bundle: clickable owners + per-event level ──────────────────────────── */
.ai-owner-row { cursor: pointer; border-radius: 8px; }
.ai-owner-row:hover { background: var(--bg-secondary, #f1f5f9); }
.ai-owner-row.active { background: rgba(59,130,246,0.12); box-shadow: inset 3px 0 0 var(--accent, #3b82f6); }
.ai-ba-owner { color: var(--accent, #3b82f6); text-decoration: none; }
.ai-ba-owner:hover { text-decoration: underline; }
.ai-be { display: inline-flex; align-items: center; gap: 4px; }
.ai-be-lvl { font-size: 9.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }

/* ── scoped generate buttons (lane / bucket) ─────────────────────────────── */
.ai-gen-btn {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  border: 1px solid var(--border, #e5e7eb); background: var(--bg-card, #fff);
  color: var(--accent, #3b82f6); cursor: pointer; line-height: 1.5; white-space: nowrap;
}
.ai-gen-btn:hover { background: rgba(59,130,246,0.10); border-color: var(--accent, #3b82f6); }
.ai-bucket-head .ai-gen-btn { margin-left: auto; }
.ai-a-kit.ready { background: rgba(22,163,74,0.14); color: #16a34a; border-color: rgba(22,163,74,0.4); }

/* ── clickable bundle candidate ──────────────────────────────────────────── */
.ai-bundle-acct { cursor: pointer; transition: box-shadow .12s, background .12s; }
.ai-bundle-acct:hover { box-shadow: 0 0 0 1px var(--accent, #3b82f6) inset; }

/* ── toast ───────────────────────────────────────────────────────────────── */
.ai-toast {
  position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%);
  background: #111827; color: #fff; padding: 9px 16px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; z-index: 1200; box-shadow: 0 6px 20px rgba(0,0,0,0.25);
}
.ai-toast-ok { background: #166534; }
.ai-toast-err { background: #b91c1c; }

/* ── gen estimate modal ──────────────────────────────────────────────────── */
.ai-gen-estimate { font-size: 13px; line-height: 1.5; margin-bottom: 10px; }
.ai-gen-force { display: inline-flex; gap: 6px; align-items: center; font-size: 12px; color: var(--text-muted); }

/* ── slide-in drawer ─────────────────────────────────────────────────────── */
.ai-drawer { position: fixed; inset: 0; z-index: 1100; }
.ai-drawer-backdrop { position: absolute; inset: 0; background: rgba(15,23,42,0.42); }
.ai-drawer-panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(560px, 96vw);
  background: var(--bg-card, #fff); box-shadow: -12px 0 32px rgba(0,0,0,0.22);
  display: flex; flex-direction: column; animation: ai-slide-in .16s ease-out;
}
@keyframes ai-slide-in { from { transform: translateX(24px); opacity: .6; } to { transform: none; opacity: 1; } }
.ai-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 12px 16px; border-bottom: 1px solid var(--border, #e5e7eb); flex: 0 0 auto;
}
.ai-drawer-title { font-size: 14px; font-weight: 800; }
.ai-drawer-body { padding: 14px 16px; overflow: auto; flex: 1 1 auto; }

/* ── kit drawer ──────────────────────────────────────────────────────────── */
.ai-kit-slot { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.ai-kit-slot-txt { display: flex; flex-direction: column; }
.ai-kit-slot-txt span { font-size: 11.5px; color: var(--text-muted); }
.ai-kit-actions { display: flex; gap: 8px; margin-bottom: 12px; }
.ai-kit-empty, .ai-kit-facts { color: var(--text-muted); font-size: 12.5px; }
.ai-kit-headline { font-size: 15px; font-weight: 800; margin-bottom: 10px; }
.ai-kit-sec { margin-bottom: 12px; }
.ai-kit-sec-h { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 4px; }
.ai-kit-sec p { margin: 0; font-size: 13px; line-height: 1.5; }
.ai-kit-sec ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.ai-kit-obj { font-size: 12.5px; margin-bottom: 6px; }
.ai-kit-obj b { display: block; }
.ai-kit-obj span { color: var(--text-muted); }
.ai-kit-conf { font-size: 10px; font-weight: 700; padding: 1px 6px; border-radius: 999px; }
.ai-kit-conf-high { background: rgba(22,163,74,0.16); color: #16a34a; }
.ai-kit-conf-medium { background: rgba(234,179,8,0.18); color: #a16207; }
.ai-kit-conf-low { background: rgba(148,163,184,0.22); color: var(--text-muted); }
.ai-kit-email { background: var(--bg-secondary, #f8fafc); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 10px; }
.ai-kit-email-subj { font-weight: 700; font-size: 12.5px; margin-bottom: 6px; }
.ai-kit-email-body { white-space: pre-wrap; font-family: inherit; font-size: 12.5px; line-height: 1.5; margin: 0 0 8px; }
.ai-kit-facts { margin-top: 16px; border-top: 1px dashed var(--border, #e5e7eb); padding-top: 12px; }
.ai-kit-facts-h { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 8px; }
.ai-fact { margin-bottom: 10px; }
.ai-fact-h { font-size: 11px; font-weight: 700; margin-bottom: 3px; }
.ai-fact-row { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; padding: 1px 0; }
.ai-fact-row span:last-child { color: var(--text-muted); text-align: right; }

/* ── bundle drawer ───────────────────────────────────────────────────────── */
.ai-bd-summary { background: var(--bg-secondary, #f8fafc); border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 10px 12px; margin-bottom: 12px; }
.ai-bd-line { font-size: 12.5px; margin-bottom: 4px; }
.ai-bd-dim { color: var(--text-muted); }
.ai-bd-contact { margin-right: 10px; }
.ai-bd-slots-h { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--text-muted); margin-bottom: 6px; }
.ai-bd-slots { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.ai-bd-slot {
  display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px;
  border: 1px solid var(--border, #e5e7eb); cursor: pointer; font-size: 12.5px;
}
.ai-bd-slot.sel { background: rgba(59,130,246,0.07); border-color: rgba(59,130,246,0.4); }
.ai-bd-ev { display: flex; flex-direction: column; flex: 1 1 auto; min-width: 0; }
.ai-bd-ev b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-bd-sub { font-size: 10.5px; color: var(--text-muted); }
.ai-bd-val { font-weight: 700; white-space: nowrap; }
.ai-bd-actions { margin-bottom: 12px; }
.ai-bd-prop-card { border: 1px solid var(--border, #e5e7eb); border-radius: 8px; padding: 12px; }
body.ai-drawer-open { overflow: hidden; }

/* ── curated confident packages ──────────────────────────────────────────── */
.ai-bundle-modebar {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  margin-bottom: 10px;
}
.ai-bundle-modenote { font-size: 11.5px; color: var(--text-muted); margin-left: auto; }
#ai-bundle-products-wrap { font-size: 12px; }

.ai-model {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  white-space: nowrap;
}
.ai-model-m12 { background: rgba(59,130,246,0.14); color: #2563eb; }
.ai-model-m10 { background: rgba(22,163,74,0.15); color: #15803d; }
.ai-model-m7  { background: rgba(168,85,247,0.14); color: #7e22ce; }
.ai-model-m14 { background: rgba(236,72,153,0.13); color: #be185d; }
.ai-model-pinned { background: rgba(234,179,8,0.18); color: #a16207; }
.ai-model-match  { background: var(--bg-secondary, #f1f5f9); color: var(--text-muted); }

.ai-st {
  font-size: 10px; font-weight: 700; padding: 1px 7px; border-radius: 999px;
  white-space: nowrap;
}
.ai-st-power { background: rgba(22,163,74,0.15); color: #15803d; }
.ai-st-hold { background: rgba(59,130,246,0.12); color: #2563eb; }
.ai-st-caution { background: rgba(220,38,38,0.12); color: #b91c1c; }
.ai-st-insufficient, .ai-st-none { background: var(--bg-secondary, #f1f5f9); color: var(--text-muted); }

.ai-pkg-prods { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 6px; }
.ai-prod {
  font-size: 11px; font-weight: 700; padding: 2px 9px; border-radius: 999px;
  background: rgba(168,85,247,0.10); color: #7e22ce;
  border: 1px dashed rgba(168,85,247,0.45);
}
.ai-pkg-story {
  margin: 4px 0 8px; padding: 8px 10px; font-size: 12.5px; line-height: 1.55;
  color: var(--text-secondary); background: var(--bg-secondary, #f8fafc);
  border-left: 3px solid var(--accent, #3b82f6); border-radius: 0 8px 8px 0;
}

@media (max-width: 900px) {
  .ai-bundle-cols { grid-template-columns: 1fr; }
  .ai-filters { margin-left: 0; }
  .ai-bundle-modenote { margin-left: 0; width: 100%; }
}
