/*
 * Automation prioritization matrix styles. Moved verbatim from the live page's inline <style> block
 * (projects/sentiencegrowth-site/ai-priority-matrix/index.html:100-217), plus the quadrant colour classes
 * that replace the inline style attributes the live script used (the local CSP forbids inline styles).
 */
.matrix-surface {
  background: radial-gradient(circle at top right, rgba(59,130,246,.18), transparent 35%), #0b1220;
  max-width: 100%;
  overflow: hidden;
}
.matrix-panel {
  background: linear-gradient(180deg, rgba(15,23,42,.96), rgba(15,23,42,.9));
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: 0 24px 70px rgba(15,23,42,.22);
  min-width: 0;
}
.matrix-input {
  width: 100%;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.72);
  color: #f8fafc;
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  font-size: 0.9rem;
  outline: none;
}
.matrix-input::placeholder { color: #64748b; }
.matrix-input:focus {
  border-color: rgba(96,165,250,.85);
  box-shadow: 0 0 0 4px rgba(59,130,246,.16);
}
.matrix-mini {
  width: 100%;
  border: 1px solid rgba(148,163,184,.2);
  background: rgba(15,23,42,.74);
  color: #e2e8f0;
  border-radius: 10px;
  padding: 0.55rem 0.45rem;
  font-size: 0.78rem;
  text-align: center;
  outline: none;
}
.matrix-row {
  display: grid !important;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "dot main delete"
    ". controls controls";
  align-items: start;
  column-gap: .75rem;
  row-gap: .75rem;
  border: 1px solid transparent;
  background: rgba(15,23,42,.52);
}
.matrix-dot { grid-area: dot; margin-top: .35rem; }
.matrix-row-main { grid-area: main; min-width: 0; }
.matrix-row-title {
  color: #f8fafc;
  font-weight: 650;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.matrix-row-controls {
  grid-area: controls;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: .55rem;
  min-width: 0;
}
.matrix-row:hover, .matrix-row.is-active {
  border-color: rgba(96,165,250,.34);
  background: rgba(30,41,59,.7);
}
.matrix-row.is-top {
  border-color: rgba(56,189,248,.38);
  background: rgba(37,99,235,.12);
}
.task-delete {
  grid-area: delete;
  width: 2rem;
  height: 2rem;
  min-height: 2rem;
  border: 1px solid rgba(148,163,184,.22);
  background: rgba(15,23,42,.64);
  color: #94a3b8;
  border-radius: 999px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .35rem;
  cursor: pointer;
  transition: color .14s ease, border-color .14s ease, background .14s ease;
}
.task-delete:hover, .task-delete:focus-visible {
  color: #f8fafc;
  border-color: rgba(248,113,113,.45);
  background: rgba(248,113,113,.1);
  outline: none;
}
.task-delete-x {
  font-size: 1rem;
  line-height: 1;
}
.matrix-svg text {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}
.matrix-node circle {
  transition: fill-opacity .14s ease, stroke-width .14s ease, transform .14s ease;
}
.matrix-node:hover circle {
  fill-opacity: .44;
  stroke-width: 2;
}
@media (max-width: 760px) {
  .matrix-svg-wrap { overflow-x: auto; }
  .matrix-svg { min-width: 560px; }
}
@media (max-width: 640px) {
  .matrix-row { row-gap: .65rem; }
}

/* Quadrant colours (were inline style attributes in the live script). */
.mx-bg-automate { background: #38bdf8; }
.mx-bg-batch { background: #60a5fa; }
.mx-bg-quickwin { background: #2dd4bf; }
.mx-bg-manual { background: #64748b; }
.mx-fg-automate { color: #38bdf8; }
.mx-fg-batch { color: #60a5fa; }
.mx-fg-quickwin { color: #2dd4bf; }
.mx-fg-manual { color: #94a3b8; }

.mx-legend-swatch {
  border-radius: 2px;
  display: inline-block;
  height: 0.5rem;
  margin-right: 0.25rem;
  width: 0.5rem;
}
