* { box-sizing: border-box; }
body { margin: 0; background: #f3f4f6; color: #1f2937; font: 14px/1.45 system-ui, sans-serif; }
.corrections-page { max-width: 1160px; margin: auto; padding: 16px; }
.corrections-page a:not(.hero a) { color: var(--rct-brand); text-underline-offset: 3px; }
.corrections-panel { border: 1px solid #dbe2e9; background: #fff; border-radius: 12px; padding: 14px 16px; }
.corrections-filters, .corrections-prefixes { display: grid; align-items: end; gap: 12px; }
.corrections-filters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.corrections-prefixes { grid-column: 1 / 4; grid-template-columns: repeat(3, minmax(0, 1fr)); }

.corrections-filters label { display: grid; gap: 4px; font-weight: 650; }
.corrections-filters :is(input:not(.rct-calendar-proxy, [type=checkbox]), select) {
    min-height: 36px; width: 100%; padding: 6px 8px; border: 1px solid #b8c4d2; border-radius: 6px;
    background: #fff; color: inherit; font: inherit; font-weight: 400;
}
.corrections-filter-note { grid-column: 1 / -1; margin: 0; }
.corrections-filters .corrections-checkbox { display: flex; align-items: center; }
.corrections-filters .corrections-checkbox[hidden] { display: none; }
.corrections-actions { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.corrections-actions button {
    min-height: 36px; padding: 7px 14px; border: 1px solid transparent; border-radius: 7px;
    background: var(--rct-brand); color: #fff; font: inherit; font-weight: 700; cursor: pointer;
}
.corrections-actions button:disabled { opacity: .55; cursor: default; }
.corrections-bulk { margin-bottom: 12px; }
.corrections-bulk small { flex: 1 1 100%; }
.corrections-page input[type=checkbox] { accent-color: var(--rct-brand); }
.corrections-page :focus-visible { outline: 2px solid var(--rct-brand); outline-offset: 3px; }
.corrections-results-heading { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: baseline; margin: 20px 0 10px; }
.corrections-results-heading h2 { font-size: 19px; margin: 0; }
.corrections-results-heading span, .corrections-note, .corrections-bulk small { color: #475569; }
.corrections-group { margin-bottom: 6px; padding: 7px 10px; }
.corrections-group header { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; justify-content: space-between; }
.corrections-group h3 { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.corrections-group h3 span { color: #475569; font-size: 13px; font-weight: 550; }
.corrections-group .corrections-note { margin: 3px 0 0; }
.corrections-tags { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.corrections-tags span, .corrections-value-issue { color: #854d0e; }
.corrections-tags span { background: #fef3c7; padding: 1px 6px; border-radius: 5px; font-size: 12px; font-weight: 650; }
.corrections-table-scroll { overflow-x: auto; margin-top: 4px; }
.corrections-group table { border-collapse: collapse; width: 100%; min-width: 760px; }
.corrections-group :is(th, td) { text-align: left; vertical-align: middle; padding: 3px 6px; border-top: 1px solid #e2e8f0; }
.corrections-group th { background: #f8fafc; color: #475569; font-size: 12px; }
.corrections-group :is(th, td):first-child { width: 44px; text-align: center; }
.corrections-group td:first-child input { margin: 0; vertical-align: middle; }
.corrections-group :is(th, td):is(:nth-child(3), :nth-child(4), :last-child),
.corrections-group td:nth-child(5) strong { white-space: nowrap; }
.corrections-group td a + a { margin-left: 8px; }
.corrections-pages { justify-content: flex-end; }
.corrections-error, .corrections-success { padding: 10px 14px; border-radius: 7px; }
.corrections-error { background: #fee2e2; color: #991b1b; }
.corrections-success { background: #dcfce7; color: #166534; }
@media (max-width: 720px) {
    .corrections-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .corrections-prefixes { grid-column: 1 / -1; }
    .corrections-filters .corrections-actions { grid-column: span 2; }
}
@media (max-width: 480px) {
    .corrections-page { padding: 10px; }
    .corrections-prefixes { grid-template-columns: minmax(0, 1fr); }
}
.corrections-skipped { margin-bottom: 12px; }
.corrections-skipped summary { color: #854d0e; cursor: pointer; font-weight: 650; }
.corrections-skipped li + li { margin-top: 6px; }
.corrections-skipped li a { margin-left: 8px; }
