.sto-report {
  font-family: system-ui, -apple-system, sans-serif;
  font-size: 13px;
  color: #1a1a1a;
  line-height: 1.5;
  background: #fff;
  padding: 16px;
  margin-bottom: 64px;
  border-radius: 16px;
}

.sto-report-title {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 12px;
  color: #111;
}

.sto-empty {
  color: #4b5563;
  font-size: 13.5px;
  line-height: 1.65;
  margin-bottom: 10px;
}

.sto-intro {
  font-size: 13px;
  color: #4b5563;
  margin-bottom: 14px;
  line-height: 1.65;
}

.sto-help-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12.5px;
  color: #3b5bdb;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}
.sto-help-link::before {
  content: "";
  display: inline-block;
  width: 13px; height: 13px;
  background-color: currentColor;
  mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  mask-size: contain;
  mask-repeat: no-repeat;
  flex-shrink: 0;
}
.sto-help-link:hover { text-decoration: underline; }

@media (prefers-color-scheme: dark) {
  .sto-empty  { color: #9ca3af; }
  .sto-intro  { color: #9ca3af; }
  .sto-help-link { color: #79aaff; }
}

/* ── Summary-Badges ───────────────────────────────────────── */
.sto-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.sto-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.sto-badge--high   { background: #fee2e2; color: #991b1b; }
.sto-badge--medium { background: #fef3c7; color: #92400e; }
.sto-badge--low    { background: #d1fae5; color: #065f46; }
.sto-badge--combo  { background: #ede9fe; color: #4c1d95; }

/* ── Store-Abschnitt ──────────────────────────────────────── */
.sto-store {
  margin-bottom: 28px;
}

.sto-store-title {
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 10px;
  color: #1a1a1a;
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.sto-store-meta {
  font-size: 11px;
  font-weight: 400;
  color: #6b7280;
}

/* ── Kombinations-Risiken ─────────────────────────────────── */
.sto-combos {
  margin-bottom: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
}

.sto-combos-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #6b7280;
  padding: 6px 12px;
  background: #f9fafb;
  border-bottom: 1px solid #e5e7eb;
}

.sto-combo {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 7px 12px;
  border-bottom: 1px solid #f3f4f6;
  font-size: 12px;
}
.sto-combo:last-child { border-bottom: none; }

.sto-combo-level {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 6px;
  border-radius: 4px;
}

.sto-combo--high .sto-combo-level   { background: #fee2e2; color: #991b1b; }
.sto-combo--medium .sto-combo-level { background: #fef3c7; color: #92400e; }
.sto-combo--low .sto-combo-level    { background: #d1fae5; color: #065f46; }

.sto-combo-tags {
  font-weight: 600;
  color: #374151;
}

.sto-combo-note {
  color: #6b7280;
}

/* ── Findings-Tabelle ─────────────────────────────────────── */
.sto-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 6px;
  overflow: hidden;
  table-layout: fixed;
}

.sto-table col.col-risk   { width: 68px; }
.sto-table col.col-key    { width: 20%; }
.sto-table col.col-tags   { width: 18%; }
.sto-table col.col-val    { width: 25%; }
.sto-table col.col-reason { width: auto; }

.sto-th {
  background: #f9fafb;
  text-align: left;
  padding: 7px 10px;
  font-weight: 600;
  color: #374151;
  border-bottom: 1px solid #e5e7eb;
  white-space: nowrap;
}

.sto-td {
  padding: 7px 10px;
  vertical-align: top;
  border-bottom: 1px solid #f3f4f6;
}

.sto-row:last-child .sto-td {
  border-bottom: none;
}

/* Zeilen-Einfärbung nach Risiko */
.sto-row--high   { background: #fffafa; }
.sto-row--medium { background: #fffdf5; }
.sto-row--low    { background: #f9fef9; }

.sto-row:hover {
  filter: brightness(0.97);
}

/* ── Level-Pill ───────────────────────────────────────────── */
.sto-level {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  padding: 2px 7px;
  border-radius: 4px;
  white-space: nowrap;
}

.sto-level--high   { background: #fee2e2; color: #991b1b; }
.sto-level--medium { background: #fef3c7; color: #92400e; }
.sto-level--low    { background: #d1fae5; color: #065f46; }
.sto-level--info   { background: #f3f4f6; color: #4b5563; }

/* ── Tags & Flags ─────────────────────────────────────────── */
.sto-tag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #e0e7ff;
  color: #3730a3;
  margin: 1px 2px 1px 0;
  white-space: nowrap;
}

.sto-flag {
  display: inline-block;
  font-size: 10px;
  padding: 1px 5px;
  border-radius: 3px;
  background: #fce7f3;
  color: #9d174d;
  margin: 1px 2px 1px 0;
  white-space: nowrap;
}

/* ── Key & Value-Zellen ───────────────────────────────────── */
.sto-key {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  font-size: 11px;
  word-break: break-all;
  color: #1a1a1a;
}

.sto-val {
  font-family: ui-monospace, "Cascadia Code", "Fira Code", monospace;
  font-size: 11px;
  color: #4b5563;
  word-break: break-all;
}

.sto-reason {
  color: #4b5563;
  font-size: 11.5px;
  line-height: 1.6;
}

/* ── Dark Mode ────────────────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  .sto-report              { color: #e5e7eb; }
  .sto-report-title        { color: #f9fafb; }
  .sto-empty               { color: #9ca3af; }

  .sto-badge--high         { background: #450a0a; color: #fca5a5; }
  .sto-badge--medium       { background: #451a03; color: #fcd34d; }
  .sto-badge--low          { background: #052e16; color: #6ee7b7; }
  .sto-badge--combo        { background: #2e1065; color: #c4b5fd; }

  .sto-store-title         { color: #f9fafb; }
  .sto-store-meta          { color: #9ca3af; }

  .sto-combos              { border-color: #374151; }
  .sto-combos-label        { background: #1f2937; border-color: #374151; color: #9ca3af; }
  .sto-combo               { border-color: #1f2937; }
  .sto-combo--high .sto-combo-level   { background: #450a0a; color: #fca5a5; }
  .sto-combo--medium .sto-combo-level { background: #451a03; color: #fcd34d; }
  .sto-combo--low .sto-combo-level    { background: #052e16; color: #6ee7b7; }
  .sto-combo-tags          { color: #d1d5db; }
  .sto-combo-note          { color: #9ca3af; }

  .sto-table               { border-color: #374151; }
  .sto-th                  { background: #1f2937; color: #d1d5db; border-color: #374151; }
  .sto-td                  { border-color: #1f2937; }

  .sto-row--high           { background: #1c0808; }
  .sto-row--medium         { background: #1c1408; }
  .sto-row--low            { background: #081c0e; }
  .sto-row:hover           { filter: brightness(1.1); }

  .sto-level--high         { background: #450a0a; color: #fca5a5; }
  .sto-level--medium       { background: #451a03; color: #fcd34d; }
  .sto-level--low          { background: #052e16; color: #6ee7b7; }
  .sto-level--info         { background: #1f2937; color: #9ca3af; }

  .sto-tag                 { background: #1e1b4b; color: #a5b4fc; }
  .sto-flag                { background: #500724; color: #f9a8d4; }

  .sto-key                 { color: #e5e7eb; }
  .sto-val                 { color: #9ca3af; }
  .sto-reason              { color: #9ca3af; }
}