.commerce-settings {
  max-width: 1040px;
}
.commerce-settings .hint {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 12px;
}
.commerce-check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  margin-top: 18px;
}
.commerce-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--accent);
}
.commerce-endpoint {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
  overflow-wrap: anywhere;
}
.commerce-notice {
  padding: 14px 18px;
  border: 1px solid #eadac8;
  background: #fff9f2;
  border-radius: 10px;
  color: #875f37;
  font-size: 14px;
  line-height: 1.7;
  margin-bottom: 20px;
}
.commerce-import {
  display: inline-flex;
  cursor: pointer;
  flex-shrink: 0;
}
.commerce-import input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.commerce-import:focus-within {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.commerce-feedback {
  color: var(--primary);
  font-size: 14px;
  margin-bottom: 16px;
}
.commerce-entry {
  display: grid;
  gap: 4px;
  margin-top: 8px;
}
.commerce-entry .text-action {
  width: fit-content;
}
.commerce-fit {
  color: #816a43;
}
.commerce-dialog {
  width: min(920px, calc(100vw - 32px));
  max-height: calc(100dvh - 40px);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0;
  color: var(--ink);
  background: white;
}
.commerce-dialog .dialog-body {
  overflow: auto;
  max-height: calc(100dvh - 220px);
  padding: 28px 32px;
}
.commerce-dialog .dialog-header {
  padding: 20px 28px;
}
.commerce-dialog .dialog-header h2 {
  font-size: 21px;
}
.commerce-dialog h3 {
  font-size: 18px;
  margin-bottom: 12px;
}
.commerce-dialog h4 {
  font-size: 15px;
  margin: 12px 0 7px;
}
.commerce-dialog p,
.commerce-dialog li,
.commerce-dialog blockquote {
  font-size: 14px;
  line-height: 1.85;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.commerce-dialog ul {
  padding-left: 20px;
  list-style: disc;
}
.commerce-dialog p {
  margin-bottom: 10px;
}
.commerce-dialog section {
  margin-top: 28px;
}
.commerce-elderly {
  border: 1px solid #edc9b7;
  background: #fff7f1;
  border-radius: 12px;
  padding: 22px;
}
.commerce-elderly > span {
  color: #a65a35;
  font-size: 13px;
}
.commerce-elderly h3 {
  color: #c84d27;
  font-size: 27px;
  margin-top: 8px;
}
.commerce-products {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.commerce-products > div {
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 16px;
}
.commerce-products h4 {
  margin-top: 0;
}
.commerce-products small,
.commerce-dialog .hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.commerce-adaptation {
  border-bottom: 1px solid var(--line);
  padding: 4px 0 18px;
  margin-bottom: 18px;
}
.commerce-adaptation blockquote {
  border-left: 3px solid #e8b595;
  background: #faf8f4;
  padding: 12px 16px;
  margin: 12px 0;
}
.commerce-report-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 10px;
  padding: 16px 28px;
  border-top: 1px solid var(--line);
}
.commerce-pending {
  text-align: center;
  padding: 45px 16px;
  color: var(--muted);
}
.commerce-pending > svg {
  width: 38px;
  height: 38px;
  margin: 0 auto 18px;
}
.commerce-pending h3 {
  color: var(--ink);
}
@media (max-width: 650px) {
  .commerce-settings .panel-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .commerce-dialog .dialog-body {
    padding: 20px 18px;
  }
  .commerce-products {
    grid-template-columns: 1fr;
  }
}

.commerce-framework {
  display: grid;
  gap: 14px;
}
.commerce-framework > div {
  padding: 1px 0 1px 16px;
  border-left: 3px solid #e6ded3;
}
.commerce-framework h4 {
  margin-top: 0;
}
.commerce-framework h4 small {
  display: block;
  margin-top: 4px;
  font-weight: 400;
}

/* Shared report summaries: the same grade, audience and categories across surfaces. */
.commerce-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.commerce-tag {
  display: inline-flex;
  border-radius: 5px;
  padding: 3px 7px;
  background: #f0f2ed;
  color: #586352;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.commerce-tag.positive {
  background: #e9f2eb;
  color: #285847;
}
.commerce-tag.score {
  background: #fbede5;
  color: #ba512f;
  font-weight: 650;
}
.commerce-tag.neutral {
  background: #f0f0ed;
  color: #666c65;
}
.commerce-tag.category {
  background: #f5f2eb;
  color: #7b6c50;
}
.commerce-excerpt {
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  margin: 8px 0 0;
  background: none;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}
.commerce-excerpt > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
  max-height: 5.1em;
  line-height: 1.7;
  color: #697266;
  font-size: 13px;
}
.commerce-excerpt > small {
  display: block;
  margin-top: 5px;
  color: #315e4e;
  font-size: 12px;
}
.commerce-card .commerce-excerpt > button {
  display: block;
  margin-top: 5px;
  padding: 0;
  color: #315e4e;
  font-size: 12px;
  text-align: left;
}
.commerce-card .commerce-excerpt > button small {
  font: inherit;
}
.commerce-card .commerce-excerpt > button:hover {
  text-decoration: underline;
}
.commerce-card .commerce-excerpt > button:focus-visible {
  outline: 2px solid #d75b37;
  outline-offset: 4px;
}
.commerce-excerpt:hover > small {
  text-decoration: underline;
}
.commerce-excerpt:focus-visible {
  outline: 2px solid #d75b37;
  outline-offset: 4px;
  border-radius: 3px;
}
.commerce-category-preview {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  margin: 6px 0 0;
  color: #78806f;
  font-size: 12px;
  max-width: 100%;
}
.commerce-card {
  border-top: 1px solid #e6e8e0;
  padding-top: 12px;
  margin-top: 12px;
  min-width: 0;
}
.commerce-card h3,
.commerce-detail h3,
.analysis-sections h3 {
  margin: 0 0 9px;
  font-size: 14px;
  font-weight: 650;
}
.commerce-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  margin-bottom: 2px;
}
.commerce-entry .commerce-heading > h3 {
  margin: 0;
}
.commerce-card .commerce-heading > h3 {
  font-size: 13px;
}
.commerce-heading > .commerce-tag {
  white-space: nowrap;
}
.commerce-card .commerce-heading > .commerce-tag {
  padding: 2px 4px;
  font-size: 10px;
}
.commerce-card .commerce-excerpt > span,
.commerce-list .commerce-excerpt > span {
  -webkit-line-clamp: 2;
  line-clamp: 2;
  max-height: 3.4em;
}
.commerce-detail {
  margin-top: 20px;
}
.analysis-sections {
  display: grid;
  gap: 22px;
  padding-top: 20px;
  border-top: 1px solid #e6e8e0;
}
.analysis-sections .commerce-entry {
  margin: 0;
}
.material-recommendation p {
  font-size: 14px;
  line-height: 1.85;
  color: #626e60;
  margin: 0;
  white-space: pre-line;
  overflow-wrap: anywhere;
}
.commerce-dialog .material-recommendation {
  margin-bottom: 18px;
}
.commerce-review,
.commerce-score-reason,
.commerce-wait {
  color: #85816d;
  font-size: 12px;
}
.commerce-table-cell {
  min-width: 150px;
  max-width: 210px;
  white-space: normal;
}
.commerce-table-cell .commerce-entry {
  margin: 0;
}
@media (max-width: 600px) {
  .commerce-tag {
    font-size: 12px;
  }
  .analysis-sections {
    gap: 18px;
  }
}

.analysis-sections .material-recommendation p {
  max-width: 90ch;
}

.analysis-sections {
  font-weight: 400;
}
.commerce-editor {
  max-width: 900px;
}

.commerce-output-rules {
  margin-bottom: 16px;
  font-size: 13px;
  color: #64705f;
}
.commerce-output-rules summary {
  cursor: pointer;
}
.commerce-output-rules pre {
  white-space: pre-wrap;
  line-height: 1.8;
  font: inherit;
  max-height: 320px;
  overflow: auto;
  padding: 14px;
  background: #f7f8f4;
  border-radius: 8px;
}

.commerce-dimension-note {
  display: block;
  margin-top: 7px;
  color: #7d8477;
  font-size: 12px;
  font-weight: 400;
}
.commerce-dimension-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.commerce-dimension-grid article {
  padding: 14px;
  border: 1px solid #e6e8e0;
  border-radius: 8px;
  min-width: 0;
}
.commerce-dimension-grid h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin: 0 0 8px;
}
.commerce-dimension-grid h4 span {
  font-size: 12px;
  font-weight: 500;
  color: #63715e;
}
.commerce-dimension-grid p,
.commerce-dimension-grid li {
  font-size: 13px;
}
@media (max-width: 600px) {
  .commerce-dimension-grid {
    grid-template-columns: 1fr;
  }
}

.commerce-basis-note {
  font-size: 13px;
  color: #52664d;
  margin: 10px 0;
}
.commerce-migration {
  margin: 14px 0;
  padding: 18px;
  border: 1px solid #e5e8df;
  border-radius: 10px;
  background: #fafbf8;
}
.commerce-event-mapping {
  padding-left: 20px;
}
.commerce-event-mapping li {
  padding: 8px 0;
  border-bottom: 1px solid #e8ebe3;
}
.commerce-event-mapping p {
  margin: 4px 0;
}
.commerce-source-assessment {
  color: #75816d;
}
@media (max-width: 600px) {
  .commerce-migration {
    padding: 12px;
  }
}
