.aiw-operations, .aiw-tools, .aiw-card, .aiw-review, .aiw-review-evidence, .aiw-report-result {
  display: grid;
  min-width: 0;
  gap: 9px;
}
.aiw-tools { padding: 10px; border: 1px solid var(--line-light); border-radius: 3px; background: var(--paper-light); }
.aiw-tools .field { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aiw-tools .field select { min-width: min(220px, 100%); max-width: 100%; }
.aiw-tools > button, .aiw-review > button, .aiw-preview > button, .aiw-report-result > button { justify-self: start; }
.aiw-card { padding: 12px; border: 1px solid var(--line); border-radius: 3px; background: var(--white); }
.aiw-card h3 { color: var(--forest-dark); }
.aiw-card details > summary, .aiw-saved summary { cursor: pointer; color: var(--forest-dark); font-weight: 680; }
.aiw-saved { display: grid; gap: 8px; }
.aiw-saved .aiw-card { margin-top: 8px; }
.aiw-metrics, .aiw-experiment { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 96px), 1fr)); gap: 7px; }
.aiw-metrics > div, .aiw-experiment > div, .aiw-diff > div { padding: 7px; min-width: 0; border: 1px solid var(--line-light); border-radius: 3px; }
.aiw-metrics dt, .aiw-experiment dt, .aiw-diff dt { font-size: 11px; color: var(--muted); }
.aiw-metrics dd, .aiw-experiment dd { font-variant-numeric: tabular-nums; font-weight: 680; }
.aiw-photos { display: flex; flex-wrap: wrap; gap: 8px; }
.aiw-photo { margin: 0; }
.aiw-photo img { display: block; width: min(100%, 345px); max-height: 250px; object-fit: contain; object-position: left center; border-radius: 3px; }
.aiw-copy { padding-block: 6px; border-top: 1px solid var(--line-light); }
.aiw-copy p { white-space: pre-line; }
.aiw-copy ul, .aiw-lines { display: grid; gap: 5px; margin-block: 6px; padding-inline-start: 19px; }
.aiw-lines .aiw-metrics { margin-top: 5px; }
.aiw-preview { background: var(--paper-light); }
.aiw-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.aiw-diff dd { margin-top: 4px; font-weight: 680; }
.aiw-diff > div:last-child { background: var(--green); }
.aiw-proposal-state { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px; border: 1px solid var(--line); background: var(--green); color: var(--forest-dark); border-radius: 3px; }
.aiw-registration-form, .aiw-registration-results { display: grid; gap: 8px; }
.aiw-registration-form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
.aiw-registration-form .field { min-width: 0; display: grid; gap: 3px; }
.aiw-registration-form select, .aiw-registration-form input { min-width: 0; width: 100%; box-sizing: border-box; }
.aiw-registration-form .button, .aiw-registration-results > button { justify-self: start; }
.aiw-registration-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: 7px; }
.aiw-registration-facts > div { padding: 7px; min-width: 0; border: 1px solid var(--line-light); border-radius: 3px; }
.aiw-registration-facts dt { font-size: 11px; color: var(--muted); }
.aiw-registration-facts dd { font-weight: 680; overflow-wrap: anywhere; }
.aiw-registration .cw-error { padding: 7px; }
.aiw-creative-comparison { display: grid; gap: 8px; min-width: 0; margin-block-start: 3px; padding-block-start: 10px; border-top: 1px solid var(--line-light); }
.aiw-creative-comparison h4 { color: var(--forest-dark); }
.aiw-creative-comparison-table .data-table { min-width: 0; }
.aiw-creative-comparison-table .data-table th[scope='row'] { white-space: normal; background: none; }
.aiw-creative-comparison-table .data-table :is(th, td):not(:first-child) { text-align: right; }
.aiw-creative-comparison-table th[scope='row'] :is(strong, span, small) { display: block; }
.aiw-creative-comparison-table th[scope='row'] :is(strong, span) { color: var(--forest-dark); }
.aiw-creative-comparison-table th[scope='row'] small { overflow-wrap: anywhere; }
.aiw-more-actions > summary { cursor: pointer; color: var(--forest-dark); font-weight: 650; }
.aiw-more-actions > .actions { margin-top: 7px; }
.aiw-creative-evidence, .aiw-mybox-review { display: grid; min-width: 0; gap: 8px; }
.aiw-creative-evidence select { min-width: 0; width: 100%; }
.aiw-creative-evidence > .button { justify-self: start; }
.aiw-mybox-review { overflow-wrap: anywhere; }
.aiw-mybox-review li > p { white-space: pre-line; }

@media (max-width: 440px) {
  .aiw-diff, .aiw-registration-form { grid-template-columns: 1fr; }
}
