.redaction-selection-card,
.redaction-finalize-card,
.redaction-collection-card { padding: 12px 14px; border: 1px solid #dbe2ec; border-radius: 8px; background: #fff; }
.redaction-selection-card { border-color: #ef9dc7; background: #fff8fc; }
.redaction-section-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.redaction-section-heading > div { min-width: 0; flex: 1; }
.redaction-section-heading h3,
.redaction-section-heading p { margin: 0; }
.redaction-section-heading h3 { color: #202635; font-size: 13px; font-weight: 700; line-height: 1.3; }
.redaction-section-heading p { margin-top: 3px; color: #7c8798; font-size: 9px; line-height: 1.45; }
.redaction-section-heading > span { color: #75839a; font-size: 8px; font-weight: 800; white-space: nowrap; }

.redaction-selection-visual { display: grid; grid-template-columns: minmax(0, 1fr) 22px minmax(0, 1fr) 22px minmax(0, 1fr); align-items: center; gap: 5px; margin-bottom: 9px; padding: 9px; border: 1px solid #e1e7ef; border-radius: 6px; background: #fff; }
.redaction-selection-visual div { display: grid; min-width: 0; gap: 2px; text-align: center; }
.redaction-selection-visual span { color: #7a8799; font-size: 7px; }
.redaction-selection-visual strong { color: #253a51; font-size: 12px; }
.redaction-selection-visual i { border-top: 1px dashed #91a5ba; }
.redaction-selection-preview { min-height: 39px; margin-bottom: 10px; padding: 8px 10px; border-radius: 6px; background: #f3f6fa; color: #77859a; font-size: 9px; line-height: 1.45; overflow-wrap: anywhere; }
.redaction-selection-preview.has-selection { box-shadow: inset 3px 0 #c2c2c2; color: #293d54; font-weight: 650; }

.redaction-process { display: grid; grid-template-columns: minmax(0, 1fr) 28px minmax(0, 1fr); align-items: center; gap: 7px; margin-bottom: 11px; padding: 9px; border: 1px solid #e1e7ef; border-radius: 6px; background: #f8fafc; }
.redaction-process div { display: grid; grid-template-columns: 20px minmax(0, 1fr); align-items: center; gap: 1px 7px; min-width: 0; }
.redaction-process strong { overflow: hidden; color: #273b52; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.redaction-process small { grid-column: 2; color: #7d899a; font-size: 7px; }
.redaction-process > i { position: relative; border-top: 1px dashed #90a4ba; }
.redaction-process > i::after { position: absolute; top: -3px; right: -1px; width: 5px; height: 5px; border-top: 1px solid #90a4ba; border-right: 1px solid #90a4ba; content: ""; transform: rotate(45deg); }
.redaction-process__swatch { grid-row: 1 / span 2; display: block; width: 20px; height: 20px; border-radius: 4px; }
.redaction-process__swatch--review { border: 1px solid #aeb8c5; background: #c2c2c2; }
.redaction-process__swatch--final { background: #15171b; }

.redaction-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 7px; }
.redaction-list > p { margin: 0; color: #7b889b; font-size: 9px; }
.redaction-list-item { display: grid; grid-template-columns: minmax(0, 1fr) 28px; align-items: stretch; min-width: 0; overflow: hidden; border: 1px solid #e1e7ef; border-radius: 6px; background: #f9fbfd; }
.redaction-list-item:hover,
.redaction-list-item:focus-within { border-color: #ec168c; background: #fff4fa; }
.redaction-list-item__locate { display: grid; grid-template-columns: 29px minmax(0, 1fr); align-items: center; gap: 8px; min-width: 0; padding: 7px 9px; border: 0; background: transparent; color: #18263a; text-align: left; }
.redaction-list-item__locate:focus-visible,
.redaction-list-item__remove:focus-visible { outline: 2px solid #ec168c; outline-offset: -2px; }
.redaction-list-item__number { display: grid; width: 27px; height: 27px; place-items: center; border-radius: 5px; background: #25292f; color: #fff; font-size: 9px; font-weight: 800; }
.redaction-list-item__locate > span:last-child { display: grid; min-width: 0; gap: 2px; }
.redaction-list-item strong,
.redaction-list-item small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.redaction-list-item strong { font-size: 10px; }
.redaction-list-item small { color: #77859a; font-size: 8px; }
.redaction-list-item__remove { border: 0; border-left: 1px solid #e1e7ef; background: transparent; color: #78869a; font-size: 17px; line-height: 1; }
.redaction-list-item__remove:hover { background: #fde5f2; color: #b20e69; }

@media (max-width: 620px) {
    .redaction-selection-visual { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .redaction-selection-visual i { display: none; }
    .redaction-process { grid-template-columns: 1fr; }
    .redaction-process > i { display: none; }
}
