/* Swimphony innovations layer — styles for the 24 new features.
   Scoped by either surface body class (.admin/.poolside/.portal/.wt) or by .inn-*/.atp-* markers. */

/* ---------- 1. Ask the Pool ---------- */
.atp-wrap { position: relative; }
.atp-panel {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0;
  background: rgba(20,35,56,0.98); color: #EAF2FA;
  border-radius: 12px; padding: 14px 16px;
  border: 1px solid rgba(27,184,237,0.24);
  box-shadow: 0 24px 60px -16px rgba(0,0,0,.6);
  max-height: 420px; overflow: auto;
  opacity: 0; transform: translateY(-6px) scale(.98); pointer-events: none;
  transition: opacity .18s var(--ease,cubic-bezier(.2,.7,.2,1)), transform .18s;
  z-index: 100; font-size: 13px;
}
.atp-panel.is-open { opacity: 1; transform: translateY(0) scale(1); pointer-events: auto; }
.atp-hint { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; color: rgba(234,242,250,.65); }
.atp-hint button {
  background: rgba(27,184,237,.14); color: #c9eaf9; border: 1px solid rgba(27,184,237,.28);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; cursor: pointer;
}
.atp-hint button:hover { background: rgba(27,184,237,.28); color: #fff; }
.atp-loading { display: flex; align-items: center; gap: 10px; color: rgba(234,242,250,.75); padding: 8px 0; }
.atp-spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(27,184,237,.3); border-top-color: #1bb8ed; animation: spinATP 0.9s linear infinite; }
@keyframes spinATP { to { transform: rotate(360deg); } }
.atp-head { display: flex; align-items: center; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 10px; font-size: 12.5px; }
.atp-pill { background: rgba(27,184,237,.24); color: #8BDFFB; padding: 2px 10px; border-radius: 999px; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.atp-count { margin-left: auto; color: rgba(234,242,250,.55); }
.atp-scroll { max-height: 320px; overflow: auto; }
.atp-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.atp-table th { text-align: left; padding: 6px 10px; color: rgba(234,242,250,.55); font-weight: 600; border-bottom: 1px solid rgba(255,255,255,.08); text-transform: uppercase; letter-spacing: .06em; font-size: 10.5px; }
.atp-table td { padding: 7px 10px; border-bottom: 1px solid rgba(255,255,255,.04); }
.atp-table tr:hover td { background: rgba(27,184,237,.05); }
.atp-muted { color: rgba(234,242,250,.4); }
.atp-empty { padding: 14px; color: rgba(234,242,250,.5); text-align: center; }
.atp-sev { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 600; }
.atp-sev-info { background: rgba(122,215,245,.18); color: #8BDFFB; }
.atp-sev-minor { background: rgba(245,162,10,.18); color: #F5C074; }
.atp-sev-major { background: rgba(220,50,50,.22); color: #FF9B9B; }
.atp-sev-critical { background: #dc3232; color: #fff; }

/* Light-mode overrides for admin shell (white background) */
.admin .atp-panel { background: #0D1A26; color: #EAF2FA; }
.admin .mc-search input { min-width: 320px; }

/* ---------- 7. Voice register ---------- */
.inn-voice-bar { display: flex; gap: 10px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.inn-voice-form { display: flex; gap: 6px; align-items: center; flex: 1; min-width: 220px; }
.inn-voice-input { flex: 1; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(0,0,0,.12); font: inherit; font-size: 13px; background: #fff; }
.inn-voice-input:focus { outline: 2px solid rgba(74,144,208,.35); border-color: #4A90D0; }
.inn-voice-apply { background: #2C3E50; color: #fff; border: 0; border-radius: 999px; padding: 9px 16px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.inn-voice-apply:hover { background: #3A5069; }
.inn-voice-err { color: #dc3232; font-size: 12.5px; padding: 4px 0; min-height: 0; }
.inn-voice-err:empty { display: none; }

.inn-voice-btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, #4A90D0, #1bb8ed); color: #fff;
  border: 0; border-radius: 999px; padding: 10px 16px;
  font-size: 13px; font-weight: 600; cursor: pointer;
  box-shadow: 0 6px 18px -6px rgba(27,184,237,.55);
  user-select: none; touch-action: manipulation; white-space: nowrap;
}
.inn-voice-btn.is-active { background: linear-gradient(135deg, #dc3232, #ff6b6b); animation: voicePulse 1.2s ease-in-out infinite; }
.inn-voice-btn.is-disabled { opacity: .5; cursor: not-allowed; }
.inn-voice-dot { width: 10px; height: 10px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 0 rgba(255,255,255,.6); }
.inn-voice-btn.is-active .inn-voice-dot { animation: voicePulse 0.9s ease-out infinite; }
@keyframes voicePulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.55); } 70% { box-shadow: 0 0 0 12px rgba(255,255,255,0); } 100% { box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.inn-voice-tray {
  display: none; background: #0d315c; color: #fff;
  border-radius: 12px; padding: 12px 16px; margin-bottom: 12px;
  border: 1px solid rgba(27,184,237,.3);
}
.inn-voice-tray.is-open { display: block; }
.inn-voice-tx { font-size: 14px; color: rgba(255,255,255,.8); font-style: italic; min-height: 1.2em; }
.inn-voice-hits { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.inn-voice-hit {
  padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  background: rgba(255,255,255,.08); color: #fff;
}
.inn-voice-hit-present { background: rgba(111,196,138,.3); color: #B3E6C3; }
.inn-voice-hit-late    { background: rgba(245,162,10,.3);   color: #F5C074; }
.inn-voice-hit-absent  { background: rgba(220,50,50,.3);    color: #FF9B9B; }

/* ---------- 9. Lesson script ---------- */
.inn-script-host { background: rgba(20,30,45,0.04); border-radius: 12px; padding: 14px 18px; }
.poolside .inn-script-host { background: rgba(255,255,255,.7); backdrop-filter: blur(8px); border: 1px solid rgba(0,0,0,.06); }
.inn-script-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; font-size: 14px; }
.inn-sos { background: #dc3232; color: #fff; border: 0; border-radius: 999px; padding: 6px 14px; font-weight: 700; font-size: 12px; cursor: pointer; }
.inn-script { list-style: none; padding: 0; margin: 0; }
.inn-script li { display: flex; gap: 12px; align-items: center; padding: 6px 0; font-size: 13px; border-bottom: 1px dashed rgba(0,0,0,.08); }
.inn-script li.is-now { background: rgba(27,184,237,.1); border-radius: 6px; padding-left: 10px; font-weight: 600; }
.inn-script .inn-t { font-variant-numeric: tabular-nums; color: rgba(0,0,0,.5); width: 42px; text-align: right; font-weight: 600; }
.inn-metro { display: flex; align-items: center; gap: 12px; margin-top: 10px; }
.inn-metro-btn { background: #4A90D0; color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 600; cursor: pointer; }
.inn-tempo { color: rgba(0,0,0,.5); font-size: 12px; }
.inn-pulse::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  box-shadow: inset 0 0 0 2px #1bb8ed; border-radius: inherit;
  animation: pulseGlow .8s ease;
}
@keyframes pulseGlow { from { opacity: .8; } to { opacity: 0; } }

/* ---------- 8. Video evidence ---------- */
.inn-video-bar { border-top: 1px solid rgba(0,0,0,.08); margin-top: 14px; padding-top: 12px; display: flex; align-items: center; gap: 12px; }
.inn-video-start { background: #2C3E50; color: #fff; border: 0; border-radius: 999px; padding: 8px 16px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.inn-video-start:hover { background: #3A5069; }
.inn-video-state { font-size: 12.5px; color: rgba(0,0,0,.65); display: flex; align-items: center; gap: 6px; }
.inn-rec-dot { width: 10px; height: 10px; border-radius: 50%; background: #dc3232; animation: recBlink .7s ease infinite; }
@keyframes recBlink { 50% { opacity: .3; } }

/* ---------- 10. Pickup ETA board ---------- */
.inn-eta-board { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 14px; }
.inn-eta-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,.06); font-size: 13px; }
.inn-eta-row:last-child { border-bottom: 0; }
.eta-dot { width: 10px; height: 10px; border-radius: 50%; background: #ddd; }
.eta-dot.near { background: #4CAF7D; box-shadow: 0 0 0 0 #4CAF7D66; animation: voicePulse 1.3s ease infinite; }
.eta-dot.mid  { background: #E9C46A; }
.eta-dot.far  { background: #CED9E4; }
.eta-value { font-variant-numeric: tabular-nums; font-weight: 700; color: #2C3E50; }
.eta-name  { font-weight: 500; color: #2C3E50; }
.eta-note  { font-size: 11.5px; color: rgba(0,0,0,.5); }

/* ---------- 11. Auto-grouper ---------- */
.inn-group-btn { background: #1bb8ed; color: #fff; border: 0; border-radius: 999px; padding: 10px 20px; font-size: 13.5px; font-weight: 700; cursor: pointer; box-shadow: 0 8px 22px -10px #1bb8ed; }
.inn-group-btn:hover { background: #39c4ef; }
.inn-group-out { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.inn-group { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 14px; }
.inn-group h4 { margin: 0 0 6px; display: flex; justify-content: space-between; font-size: 14px; color: #2C3E50; }
.inn-group h4 span { font-size: 11px; color: rgba(0,0,0,.5); font-weight: 500; }
.inn-group-activity { color: #4A90D0; font-size: 12.5px; font-weight: 600; margin-bottom: 6px; }
.inn-group ul { list-style: none; padding: 0; margin: 0; font-size: 12.5px; }
.inn-group ul li { padding: 3px 0; color: #2C3E50; }
.inn-group ul li em { color: rgba(0,0,0,.5); font-style: normal; font-size: 11.5px; margin-left: 4px; }

/* ---------- 19. Franchise health score ---------- */
.inn-health-chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #fff; padding: 3px 10px; border-radius: 999px; background: #1bb8ed; }
.inn-health-chip.h-green { background: #6fc48a; }
.inn-health-chip.h-amber { background: #f5a20a; }
.inn-health-chip.h-red   { background: #dc3232; }
.inn-health-drivers { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; margin-top: 10px; }
.inn-health-driver { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 10px; padding: 10px 12px; }
.inn-health-driver .k { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: rgba(234,242,250,.55); }
.inn-health-driver .v { font-size: 18px; color: #fff; font-weight: 700; margin-top: 3px; }
.inn-health-driver .bar { height: 4px; background: rgba(255,255,255,.08); border-radius: 2px; margin-top: 6px; overflow: hidden; }
.inn-health-driver .bar span { display: block; height: 100%; background: #1bb8ed; }
.inn-health-driver.up .bar span   { background: #6fc48a; }
.inn-health-driver.down .bar span { background: #dc3232; }

/* ---------- 20. Royalty slider ---------- */
.inn-slider-row { display: grid; grid-template-columns: 1fr; gap: 6px; margin-bottom: 14px; }
.inn-slider-row label { display: flex; justify-content: space-between; font-size: 13px; color: rgba(234,242,250,.8); }
.inn-slider-row input[type=range] { width: 100%; accent-color: #1bb8ed; }
.inn-s-val { color: #1bb8ed; font-weight: 800; }
.inn-slider-out { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.08); font-size: 13px; }
.inn-slider-out > div { display: flex; justify-content: space-between; padding: 4px 0; color: rgba(234,242,250,.85); }
.inn-slider-out strong { color: #fff; font-weight: 700; font-variant-numeric: tabular-nums; }
.inn-delta.up   { color: #6fc48a !important; }
.inn-delta.down { color: #FF9B9B !important; }

/* ---------- 21. Territory map ---------- */
.inn-map-wrap { position: relative; }
.inn-map { height: 460px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); background: #0a2548; }
.inn-map-legend { position: absolute; bottom: 14px; left: 14px; background: rgba(13,49,92,.88); color: #fff; padding: 10px 14px; border-radius: 10px; font-size: 12px; backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.12); z-index: 400; }
.inn-map-legend strong { display: block; margin-bottom: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .12em; color: #1bb8ed; }
.inn-map-legend span { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: middle; }
.inn-map-legend .dot-franchise { background: #1bb8ed; }
.inn-map-legend .dot-demand    { background: #f5a20a; }
.inn-map-legend .dot-hot       { background: #dc3232; }

/* ---------- 22. Peer ring ---------- */
.inn-peer-radar { width: 100%; max-width: 360px; margin: 0 auto; }
.inn-peer-legend { display: flex; gap: 16px; justify-content: center; margin-top: 8px; font-size: 12px; color: rgba(234,242,250,.7); }
.inn-peer-legend span.k { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; vertical-align: middle; }
.inn-peer-legend .this-k  { background: #1bb8ed; }
.inn-peer-legend .peer-k  { background: rgba(234,242,250,.3); }

/* ---------- 23. Brand scan ---------- */
.inn-drop { display: flex; align-items: center; justify-content: center; padding: 32px; border: 2px dashed rgba(27,184,237,.3); border-radius: 14px; cursor: pointer; color: rgba(234,242,250,.65); font-size: 14px; }
.inn-drop:hover { background: rgba(27,184,237,.06); color: #fff; }
.inn-scan-preview img { width: 100%; max-height: 260px; object-fit: cover; margin-top: 14px; border-radius: 10px; }
.inn-scan-findings { margin-top: 14px; }
.inn-scan-progress { display: flex; align-items: center; gap: 10px; color: rgba(234,242,250,.7); }
.inn-scan-progress span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(27,184,237,.3); border-top-color: #1bb8ed; animation: spinATP 0.9s linear infinite; }
.inn-scan-score { margin-bottom: 10px; color: #fff; font-size: 14px; }
.inn-scan-score strong { color: #1bb8ed; font-size: 20px; margin: 0 4px; }
.inn-scan-row { display: grid; grid-template-columns: 22px 1fr auto; gap: 10px; padding: 8px 12px; border-radius: 8px; font-size: 13px; border: 1px solid rgba(255,255,255,.06); margin-bottom: 6px; }
.inn-scan-row.ok  { background: rgba(111,196,138,.1); }
.inn-scan-row.bad { background: rgba(220,50,50,.12); }
.inn-scan-tick { font-weight: 800; }
.inn-scan-row.ok .inn-scan-tick  { color: #6fc48a; }
.inn-scan-row.bad .inn-scan-tick { color: #FF9B9B; }
.inn-scan-sev { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; padding: 2px 8px; border-radius: 999px; background: rgba(255,255,255,.08); color: rgba(234,242,250,.7); }
.inn-scan-row.bad.sev-major .inn-scan-sev { background: #dc3232; color: #fff; }

/* ---------- 24. P&L ingest ---------- */
[data-pnl-ingest] textarea { width: 100%; min-height: 140px; background: rgba(255,255,255,.05); color: #EAF2FA; border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: 12px; font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }
.inn-pnl-actions { display: flex; align-items: center; gap: 14px; margin: 10px 0; }
.inn-pnl-actions .btn.solid { background: #1bb8ed; color: #0d315c; border: 0; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; }
.inn-pnl-msg { color: rgba(234,242,250,.7); font-size: 12.5px; }
.inn-pnl { width: 100%; border-collapse: collapse; font-size: 13px; }
.inn-pnl th, .inn-pnl td { padding: 8px 12px; border-bottom: 1px solid rgba(255,255,255,.06); }
.inn-pnl th { text-align: left; color: rgba(234,242,250,.5); font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; }
.inn-pnl td.r, .inn-pnl th.r { text-align: right; font-variant-numeric: tabular-nums; }
.inn-pnl tr.is-anom { background: rgba(245,162,10,.12); }
.inn-pnl tfoot td { font-size: 14px; color: #fff; }
.inn-pnl td.down { color: #FF9B9B; }
.inn-pnl td.up   { color: #6fc48a; }

/* ---------- 13. Journey scrollytelling ---------- */
.pp-journey-scroll { margin: 0 -16px; }
.pp-journey-act {
  position: relative; padding: 72px 24px; min-height: 60vh;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 32px;
  align-items: center; opacity: 0; transform: translateY(40px);
  transition: opacity .6s ease, transform .6s ease;
}
.pp-journey-act.is-visible { opacity: 1; transform: translateY(0); }
.pp-journey-act .art { position: relative; transform: translateY(var(--parallax, 0)); }
.pp-journey-act .art .bubble { position: absolute; border-radius: 50%; background: radial-gradient(circle at 30% 30%, rgba(255,255,255,.8), rgba(74,144,208,.5)); opacity: .6; }
.pp-journey-act h2 { font-size: 28px; letter-spacing: -0.01em; margin: 0 0 8px; color: #1B4F7C; }
.pp-journey-act .date { font-size: 12px; text-transform: uppercase; letter-spacing: .14em; color: rgba(0,0,0,.5); font-weight: 600; }
.pp-journey-act p { color: rgba(0,0,0,.7); line-height: 1.6; margin: 10px 0; }
.pp-journey-act .chips { display: flex; gap: 6px; flex-wrap: wrap; }
.pp-journey-act .chip-j { padding: 3px 10px; border-radius: 999px; background: rgba(74,144,208,.12); color: #1B4F7C; font-size: 12px; font-weight: 600; }
@media (max-width: 800px) { .pp-journey-act { grid-template-columns: 1fr; min-height: 30vh; padding: 40px 16px; } }

/* ---------- 15. Stage-up predictor ---------- */
.inn-stage-predictor {
  background: linear-gradient(135deg, rgba(74,144,208,.1), rgba(27,184,237,.05));
  border: 1px solid rgba(74,144,208,.2); border-radius: 10px;
  padding: 10px 14px; display: flex; align-items: center; gap: 10px;
  font-size: 13px; margin-top: 8px;
}
.inn-stage-predictor strong { color: #1B4F7C; font-weight: 700; }
.inn-stage-predictor small { color: rgba(0,0,0,.55); }

/* ---------- 16. ICS calendar subscribe ---------- */
.inn-ics-btn { background: #2C3E50; color: #fff; padding: 8px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.inn-ics-btn:hover { background: #3A5069; }

/* ---------- 17. Sibling modeller ---------- */
[data-sibling-model] { background: #fff; border-radius: 14px; padding: 18px 20px; border: 1px solid rgba(0,0,0,.06); }
.inn-sib-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 12px; }
.inn-sib-head strong { font-size: 16px; color: #2C3E50; }
.inn-sib-head span { font-size: 12px; color: rgba(0,0,0,.5); }
.inn-sib-slider { margin-bottom: 14px; }
.inn-sib-slider label { display: flex; justify-content: space-between; font-size: 13px; color: rgba(0,0,0,.6); margin-bottom: 6px; }
.inn-sib-slider input[type=range] { width: 100%; accent-color: #4A90D0; }
.inn-sib-val { color: #4A90D0; font-weight: 700; }
.inn-sib-price { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px 0; border-top: 1px dashed rgba(0,0,0,.1); }
.inn-sib-price > div { text-align: center; }
.inn-sib-price span { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: rgba(0,0,0,.5); }
.inn-sib-price strong { display: block; margin-top: 4px; font-size: 18px; color: #2C3E50; font-weight: 700; }
.inn-sib-save { color: #4CAF7D !important; }
.inn-sib-slots { margin-top: 14px; font-size: 13px; color: rgba(0,0,0,.7); }
.inn-sib-slots h4 { margin: 0 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: rgba(0,0,0,.5); }
.inn-sib-slot { display: grid; grid-template-columns: 1fr auto; gap: 4px; padding: 8px 10px; background: rgba(74,144,208,.06); border-radius: 8px; margin-bottom: 6px; font-size: 12.5px; }
.inn-sib-slot strong { color: #1B4F7C; }
.inn-sib-slot span { grid-column: 1 / -1; color: rgba(0,0,0,.55); font-size: 11.5px; }
.inn-sib-slot em { font-style: normal; color: #4A90D0; font-size: 11.5px; grid-column: 2; grid-row: 1; text-align: right; }

/* ---------- 18. Lesson feedback ---------- */
.inn-fb { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 14px 18px; }
.inn-fb h4 { margin: 0 0 10px; color: #2C3E50; font-size: 14px; }
.inn-fb-faces { display: flex; gap: 8px; margin-bottom: 10px; }
.inn-fb-faces button { flex: 1; font-size: 28px; background: rgba(74,144,208,.06); border: 2px solid transparent; border-radius: 10px; padding: 10px; cursor: pointer; transition: transform .15s, border-color .15s; }
.inn-fb-faces button:hover  { transform: scale(1.08); }
.inn-fb-faces button.is-sel { border-color: #4A90D0; background: rgba(74,144,208,.15); }
.inn-fb-cm { width: 100%; padding: 8px 12px; border: 1px solid rgba(0,0,0,.1); border-radius: 8px; font: inherit; resize: vertical; min-height: 60px; }
.inn-fb-status { font-size: 12px; color: rgba(0,0,0,.55); margin-top: 8px; }

/* ---------- 2. Churn risk card (admin) ---------- */
.mc-risk-card { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 16px 18px; }
.mc-risk-card h3 { margin: 0 0 10px; font-size: 15px; color: #2C3E50; display: flex; justify-content: space-between; align-items: center; }
.mc-risk-card h3 .n { background: #dc3232; color: #fff; padding: 2px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.mc-risk-list { list-style: none; padding: 0; margin: 0; }
.mc-risk-row { display: grid; grid-template-columns: 34px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px dashed rgba(0,0,0,.08); font-size: 13px; }
.mc-risk-row:last-child { border-bottom: 0; }
.mc-risk-row .r-av { width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(135deg,#4A90D0,#1bb8ed); color: #fff; display: grid; place-items: center; font-size: 11px; font-weight: 700; }
.mc-risk-row .r-reason { font-size: 11.5px; color: rgba(0,0,0,.5); }
.mc-risk-score { font-weight: 700; font-size: 14px; color: #dc3232; font-variant-numeric: tabular-nums; }
.mc-risk-score.amber { color: #f5a20a; }
.mc-risk-score.green { color: #4CAF7D; }

/* ---------- 4. Capacity heatmap ---------- */
.mc-heatmap { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 16px 18px; }
.mc-heatmap h3 { margin: 0 0 12px; font-size: 15px; color: #2C3E50; }
.mc-heatmap-grid { display: grid; gap: 4px; }
.mc-heat-cell {
  border-radius: 6px; padding: 12px 10px; font-size: 11px; color: #fff; font-weight: 700;
  cursor: pointer; transition: transform .15s; text-align: center; min-height: 44px;
  display: grid; place-items: center;
}
.mc-heat-cell:hover { transform: scale(1.04); }
.mc-heat-head { color: rgba(0,0,0,.5); font-size: 10px; text-align: center; padding: 4px 0; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.mc-heat-pool { color: rgba(0,0,0,.6); font-size: 11.5px; font-weight: 600; padding: 6px 0; display: grid; place-items: center; }

/* ---------- 5. Incident timeline ---------- */
.mc-incidents { background: #fff; border: 1px solid rgba(0,0,0,.06); border-radius: 12px; padding: 18px 22px; }
.mc-incident-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; padding: 10px 0; border-bottom: 1px dashed rgba(0,0,0,.08); align-items: start; font-size: 13px; }
.mc-inc-type { padding: 3px 10px; border-radius: 999px; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.mc-inc-type.safeguarding { background: rgba(220,50,50,.15); color: #B91C1C; }
.mc-inc-type.first_aid    { background: rgba(245,162,10,.15); color: #9F6914; }
.mc-inc-type.chemistry    { background: rgba(27,184,237,.15); color: #137491; }
.mc-inc-type.equipment    { background: rgba(100,100,120,.15); color: #555; }
.mc-inc-type.other        { background: rgba(100,100,120,.15); color: #555; }
.mc-inc-meta { color: rgba(0,0,0,.55); font-size: 11.5px; }
.mc-inc-hash { font-family: ui-monospace, Menlo, monospace; font-size: 10.5px; color: rgba(0,0,0,.35); }
.mc-inc-sev { padding: 2px 8px; border-radius: 999px; font-size: 10.5px; font-weight: 700; }
.mc-inc-sev.info     { background: #eaf5ff; color: #1B4F7C; }
.mc-inc-sev.minor    { background: rgba(245,162,10,.18); color: #9F6914; }
.mc-inc-sev.major    { background: rgba(220,50,50,.18); color: #B91C1C; }
.mc-inc-sev.critical { background: #dc3232; color: #fff; }

/* ---------- 3. Revenue forecast ---------- */
/* (handled inline via Chart.js dataset — nothing here yet) */

/* ---------- 6. Waitlist matcher ---------- */
.inn-match-out { margin-top: 12px; background: rgba(74,144,208,.06); border-radius: 10px; padding: 12px; }
.inn-match-out h4 { margin: 0 0 10px; font-size: 13px; color: #1B4F7C; }
.inn-match-row { display: grid; grid-template-columns: 1fr auto auto; gap: 10px; padding: 8px 0; border-bottom: 1px dashed rgba(74,144,208,.15); align-items: center; font-size: 13px; }
.inn-match-score { background: #4A90D0; color: #fff; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; font-variant-numeric: tabular-nums; }
.inn-match-row ul { grid-column: 1 / -1; margin: 4px 0 0; padding-left: 20px; font-size: 11.5px; color: rgba(0,0,0,.55); }
.inn-match-offer { grid-column: 3; grid-row: 1; background: #4A90D0; color: #fff; border: 0; border-radius: 999px; padding: 4px 12px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.inn-match-offer:disabled { background: #A9BFD5; cursor: default; }

/* ---------- 14. Weekly digest ---------- */
.inn-digest { background: linear-gradient(135deg, #EFF7FD, #FFFFFF); border: 1px solid rgba(74,144,208,.15); border-radius: 14px; padding: 20px 24px; color: #2C3E50; }
.inn-digest h3 { margin: 0 0 6px; font-size: 18px; letter-spacing: -.01em; }
.inn-digest .meta { font-size: 12px; color: rgba(0,0,0,.5); text-transform: uppercase; letter-spacing: .1em; font-weight: 600; margin-bottom: 14px; }
.inn-digest p { margin: 0 0 10px; line-height: 1.55; font-size: 14px; }
.inn-digest ul { padding-left: 22px; margin: 8px 0; font-size: 13.5px; }
.inn-digest ul li { margin: 4px 0; }
.inn-digest .digest-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 12px; }
.inn-digest .digest-stats > div { text-align: center; }
.inn-digest .digest-stats strong { display: block; font-size: 22px; color: #1B4F7C; }
.inn-digest .digest-stats span { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: rgba(0,0,0,.5); }
