
.smart-insights-title button {
  min-height: 34px;
}

.smart-insights-list {
  min-height: 0;
  height: calc(100% - 8px);
  margin-top: 14px;
  display: grid;
  align-content: start;
  gap: 12px;
  overflow-y: auto;
  padding-right: 4px;
}

.insight-card {
  padding: 14px;
  border: 1px solid var(--line);
  border-left-width: 4px;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(7, 27, 52, 0.04);
}

.insight-card-header,
.insight-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.insight-card-header span,
.insight-card-header strong,
.insight-meta span,
.insight-action span {
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.insight-card-header span,
.insight-meta span {
  color: #71809d;
}

.insight-card h4 {
  margin: 9px 0 6px;
  color: #06112b;
  font-size: 14px;
  line-height: 1.25;
}

.insight-card p {
  color: #5f6f89;
  font-size: 12px;
  line-height: 1.45;
}

.insight-meta {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef2f8;
}

.insight-action {
  margin-top: 10px;
  padding: 10px;
  border-radius: 11px;
  background: #f8fbff;
}

.insight-action span {
  display: block;
  margin-bottom: 5px;
  color: #1f64ff;
}

.severity-high {
  border-left-color: #e11d48;
}

.severity-high .insight-card-header strong {
  color: #be123c;
}

.severity-medium {
  border-left-color: #f59e0b;
}

.severity-medium .insight-card-header strong {
  color: #b45309;
}

.severity-low {
  border-left-color: #10b981;
}

.severity-low .insight-card-header strong {
  color: #047857;
}

.insight-tone-red {
  background: #fff7f7;
}

.insight-tone-red .insight-meta,
.insight-tone-red .insight-action {
  border-color: #fecdd3;
}

.insight-tone-red .insight-action {
  background: #fff1f2;
}

.insight-tone-yellow {
  background: #fffdf2;
}

.insight-tone-yellow .insight-action {
  background: #fffbeb;
}

.insight-tone-green {
  background: #f4fff9;
}

.insight-tone-green .insight-action {
  background: #ecfdf5;
}

.priority-strip {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(6, minmax(92px, 1fr));
  gap: 10px;
}

.priority-card {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #f8fafd;
}

.priority-card span,
.priority-card strong {
  display: block;
}

.priority-card span {
  color: #71809d;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.priority-card strong {
  margin-top: 4px;
  font-size: 22px;
}

.priority-1 { background: #ffe4e6; color: #9f1239; }
.priority-2 { background: #ffedd5; color: #9a3412; }
.priority-3 { background: #fef9c3; color: #854d0e; }
.priority-4 { background: #dcfce7; color: #166534; }
.priority-5 { background: #e0f2fe; color: #075985; }
.priority-backlog { background: #f1f5f9; color: #334155; }

.priority-pill {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  min-height: 24px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.summary-row td {
  background: #eef4ff;
  font-weight: 900;
}

.management-grid {
  min-height: 0;
  height: calc(100vh - 215px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.management-grid .table-wrap {
  max-height: none;
  height: 100%;
}

.section-title h3 {
  font-size: 20px;
  text-transform: none;
  font-style: normal;
  letter-spacing: -0.02em;
}

.section-title {
  display: block;
}

.section-title:has(.template-download-row) {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}
