.cc-incident-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: clamp(14px, 2.2vw, 24px);
  border: 1px solid var(--web-line, #c9bac8);
  border-radius: 12px;
  background: var(--web-panel, #fffbf4);
  color: var(--web-ink, #2b2133);
}

.cc-incident-panel h2 {
  font-size: clamp(1.25rem, 4.5vw, 1.75rem);
}

.cc-incident-panel h3 {
  font-size: 1.06rem;
}

.cc-incident-panel h4 {
  margin: 0;
  font-size: .92rem;
}

.cc-incident-panel :is(h2, h3, h4, p, small, strong, button, summary) {
  overflow-wrap: anywhere;
}

.cc-incident-header,
.cc-incident-block,
.cc-incident-list,
.cc-incident-form,
.cc-incident-history {
  display: grid;
  min-width: 0;
  gap: 8px;
}

.cc-incident-note,
.cc-incident-summary small,
.cc-incident-updates small {
  color: var(--web-muted, #62536a);
  font-size: .84rem;
}

.cc-incident-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.cc-incident-card,
.cc-incident-disclosure {
  min-width: 0;
  border: 1px solid #ddd0da;
  border-radius: 8px;
  background: #fffdf8;
}

.cc-incident-card {
  display: grid;
  align-content: start;
  justify-items: start;
  gap: 8px;
  padding: 12px;
}

.cc-incident-card .cc-incident-disclosure {
  width: 100%;
}

.cc-incident-disclosure {
  padding: 0 11px;
}

.cc-incident-disclosure > summary {
  min-height: 44px;
  padding: 10px 0;
  color: var(--web-ink, #2b2133);
  cursor: pointer;
  font-weight: 750;
}

.cc-incident-disclosure[open] {
  padding-bottom: 11px;
}

.cc-incident-disclosure[open] > :not(summary) + :not(summary) {
  margin-top: 8px;
}

.cc-incident-summary {
  display: inline-flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 5px 10px;
  max-width: calc(100% - 18px);
  vertical-align: top;
}

.cc-incident-summary-copy {
  display: grid;
  min-width: 0;
}

.cc-incident-summary small {
  font-weight: 500;
}

.cc-incident-badge {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ece4ee;
  color: #513659;
  font-size: .77rem;
  font-weight: 750;
}

.cc-incident-badge[data-tone="wait"] {
  background: #f7e6d1;
  color: #693819;
}

.cc-incident-badge[data-tone="good"] {
  background: #e0eee5;
  color: #25543b;
}

.cc-incident-badge[data-tone="alert"] {
  background: #f8e3e6;
  color: #7c2a3a;
}

.cc-incident-field {
  display: grid;
  gap: 3px;
  min-width: 0;
  max-width: 34rem;
  font-size: .88rem;
  font-weight: 700;
}

.cc-incident-field :is(select, textarea) {
  width: 100%;
  min-width: 0;
  min-height: 44px;
  padding: 7px 9px;
  border: 1px solid #a591a7;
  border-radius: 6px;
  background: #fffefa;
  font-size: 1rem;
  font-weight: 450;
}

.cc-incident-field textarea {
  resize: vertical;
}

.cc-incident-button {
  justify-self: start;
  min-height: 44px;
  max-width: 100%;
  padding: 7px 12px;
  border: 1px solid var(--web-purple, #493657);
  border-radius: 6px;
  background: var(--web-purple, #493657);
  color: #fff;
  font-size: .88rem;
  font-weight: 750;
}

.cc-incident-button--quiet {
  border-color: var(--web-line, #c9bac8);
  background: #fffdf8;
  color: var(--web-ink, #2b2133);
}

.cc-incident-feedback {
  color: #7c2a3a;
  font-size: .84rem;
}

.cc-incident-history p {
  white-space: pre-wrap;
}

.cc-incident-updates {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid #dcd0e1;
  list-style: none;
}

@media (max-width: 520px) {
  .cc-incident-grid { grid-template-columns: 1fr; }
}
