/* Quinn Outreach Studio. Brand palette layered on the existing tokens in
   styles.css; nothing global is overridden. */
:root {
  --o-blue: var(--blue);
  --o-coral: var(--red);
  --o-sun: var(--yellow);
  --o-green: var(--green);
  --o-orange: var(--amber);
  --o-teal: var(--teal-bg);
}

/* ---------- Safe Mode banner ----------
   Safe Mode is the loudest thing on screen: a bold yellow bar with a navy
   outline and shield icon. Live sending is red. They must never look alike. */
.o-banner { display: flex; align-items: center; gap: 12px; padding: 14px 20px; margin: 0 0 16px; border-radius: var(--radius); font-size: 14px; font-weight: 600; line-height: 1.45; border: var(--line-w) solid var(--ink); box-shadow: var(--shadow-sm); }
.o-banner b { font-weight: 800; }
.o-banner a { color: inherit; text-decoration: underline; }
.o-banner .o-banner-icon { flex-shrink: 0; width: 22px; height: 22px; }
.o-banner.safe { background: var(--yellow); color: var(--ink); }
.o-banner.live { background: var(--red); color: #fff; }

/* ---------- Quinn avatar (briefing and empty states only) ---------- */
.o-quinn { width: 44px; height: 44px; flex: none; border-radius: 50%; object-fit: cover; }
.o-empty-mark { display: flex; justify-content: center; margin-bottom: 10px; }
.o-empty-mark .o-quinn { width: 56px; height: 56px; }

/* ---------- Morning briefing: the hero of the Dashboard ---------- */
.o-brief {
  display: flex; gap: 18px; align-items: flex-start;
  background: var(--ink); color: var(--surface); margin-bottom: 18px;
}
.o-brief .o-quinn { width: 88px; height: 88px; box-shadow: 0 0 0 3px var(--yellow); }
.o-brief-body { flex: 1; min-width: 0; }
.o-brief-hello { font-family: var(--font-head); font-size: 26px; font-weight: 700; color: var(--surface); }
.o-brief-sub { color: var(--surface); opacity: .8; font-size: 13.5px; margin-top: 3px; }
.o-brief-lines { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.o-brief-lines a {
  display: inline-flex; align-items: center; gap: 6px; color: var(--ink);
  text-decoration: none; padding: 7px 14px; font-size: 13.5px; font-weight: 600;
  background: var(--surface); border-radius: 999px; border: var(--line-w) solid var(--ink);
  transition: transform .12s var(--ease), box-shadow .12s var(--ease);
}
.o-brief-lines a:hover { box-shadow: 0 3px 0 var(--ink); transform: translateY(-2px); }
.o-brief-lines a svg { width: 13px; height: 13px; opacity: .6; }
.o-brief-locked { align-items: center; text-decoration: none; color: inherit; }

/* ---------- Pills ---------- */
.o-pri, .o-seg { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; border: 1px solid transparent; }
.o-pri.red { background: #FDE8E9; color: #B3202A; border-color: #F6B9BC; }
.o-pri.amber { background: #FEF4DA; color: #7A5300; border-color: #F8DB94; }
.o-pri.green { background: #E5F6EC; color: #1E7A44; border-color: #A9DDBE; }
.o-pri.blue { background: #E6F2FB; color: #1D6AA6; border-color: #A9CFEE; }
.o-pri.orange { background: #FEF0DE; color: #9A5A0A; border-color: #F8CE95; }
.o-pri.neutral { background: var(--neutral-bg); color: var(--ink-soft); border-color: var(--border); }
.o-seg.warm { background: #E5F6EC; color: #1E7A44; }
.o-seg.lapsed { background: #FEF0DE; color: #9A5A0A; }
.o-seg.prospect { background: #E6F2FB; color: #1D6AA6; }
.o-seg.radar { background: #FDE8E9; color: #B3202A; }

/* ---------- Metric cards ---------- */
.o-metrics { margin-bottom: 20px; }
.o-metric { text-decoration: none; color: inherit; border-top: 3px solid var(--border); transition: box-shadow .15s var(--ease), transform .15s var(--ease); }
.o-metric:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }
.o-metric.red { border-top-color: var(--o-coral); }
.o-metric.amber, .o-metric.sun { border-top-color: var(--o-sun); }
.o-metric.green { border-top-color: var(--o-green); }
.o-metric.blue { border-top-color: var(--o-blue); }
.o-metric.orange { border-top-color: var(--o-orange); }
.o-metric.picked { border-top-color: var(--o-blue); box-shadow: 0 0 0 2px var(--o-blue); }
.o-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; background: var(--border-strong); }
.o-dot.red { background: var(--o-coral); } .o-dot.amber, .o-dot.sun { background: var(--o-sun); }
.o-dot.green { background: var(--o-green); } .o-dot.blue { background: var(--o-blue); }
.o-dot.orange { background: var(--o-orange); }

/* ---------- Rows and lists ---------- */
.o-today, .o-schools { display: grid; gap: 10px; }
.o-row { display: flex; gap: 14px; align-items: center; padding: 14px 16px; background: var(--surface); border: var(--line-w) solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow-xs); }
.o-row-main { flex: 1; min-width: 0; }
.o-row-top { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.o-row-title { font-weight: 600; color: var(--ink); margin-left: 2px; }
.o-row-actions { display: flex; gap: 8px; flex: none; flex-wrap: wrap; justify-content: flex-end; }
.o-school { text-decoration: none; color: inherit; }
.o-school-facts { color: var(--ink-soft); font-size: 13px; margin-top: 4px; }
.o-open { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--o-blue); }
.o-block { padding: 10px 14px; border-radius: var(--radius-sm); background: var(--red-bg); border: var(--line-w) solid var(--red-line); color: var(--red); font-size: 13px; margin: 10px 0; }
.o-check { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--ink-soft); }
.o-bulk { position: sticky; bottom: 12px; display: flex; gap: 10px; align-items: center; padding: 10px 14px; margin-top: 14px; background: var(--surface); border: var(--line-w) solid var(--border-strong); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.o-bulk-pick { width: 17px; height: 17px; flex: none; }

/* ---------- Pickers (contacts, candidates) ---------- */
.o-scroll { max-height: 360px; overflow: auto; }
.o-picks { display: grid; gap: 8px; }
.o-pick { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border: var(--line-w) solid var(--border); border-radius: var(--radius-sm); cursor: pointer; background: var(--surface); }
.o-pick:hover { border-color: var(--o-blue); }
.o-pick input { margin-top: 3px; }
.o-pick-reasons { color: var(--ink-soft); font-size: 12.5px; margin-top: 2px; }
.o-contact { padding: 10px 12px; background: var(--o-teal); border-radius: var(--radius-sm); font-size: 13.5px; }
.o-hist { font-size: 13px; color: var(--ink-soft); padding: 4px 0; border-bottom: 1px dashed var(--border); }
.o-hist:last-child { border-bottom: 0; }

/* ---------- Previews ---------- */
.o-preview-wrap { background: var(--surface-sunken); border: var(--line-w) solid var(--border); border-radius: var(--radius); padding: 12px; display: flex; justify-content: center; }
.o-preview { border: var(--line-w) solid var(--border); border-radius: var(--radius-sm); background: #fff; height: 640px; }
.o-preview.desktop { width: 100%; }
.o-preview.mobile { width: 375px; max-width: 100%; }
.o-sms { max-width: 340px; padding: 12px 14px; border-radius: 16px 16px 16px 4px; background: #E9EDF2; color: var(--ink); font-size: 14px; white-space: pre-wrap; line-height: 1.45; }
.o-cand { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid var(--border); }
.o-cand:last-child { border-bottom: 0; }
.o-ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-soft); font-size: 13.5px; }

/* ---------- Passport preview modal ---------- */
.o-pp { display: grid; gap: 12px; }
.o-pp-head { display: flex; gap: 14px; align-items: center; }
.o-pp-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; flex: none; background: var(--o-teal); display: flex; align-items: center; justify-content: center; font-weight: 700; color: #1D6AA6; font-size: 22px; }
.o-avail { display: inline-block; margin-top: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--neutral-bg); color: var(--ink-soft); }
.o-avail.ok { background: #E5F6EC; color: #1E7A44; }

@media (max-width: 720px) {
  .o-row { flex-direction: column; align-items: stretch; }
  .o-row-actions { justify-content: flex-start; }
  .o-preview { height: 520px; }
}
