.modal .ir-review { gap: 0; color: #252525; }
.ir-review h3, .ir-review p { margin: 0; }
.ir-kicker { color: #70706c; font: 500 10px/1.35 var(--mono); letter-spacing: .03em; text-transform: uppercase; }
.ir-intro h3 { margin-top: 7px; color: #1d1d1d; font: 500 23px/1.17 var(--display); letter-spacing: -.05em; }
.ir-intro p { margin-top: 7px; color: #707070; font-size: 12px; line-height: 1.55; }
.ir-source { display: grid; grid-template-columns: 1fr auto; gap: 4px 15px; align-items: baseline; margin-top: 16px; padding: 12px 14px; border: 1px solid #e4e4e1; border-radius: 12px; background: #f9f9f7; }
.ir-source .ir-kicker { grid-column: 1 / -1; }
.ir-source strong { min-width: 0; overflow-wrap: anywhere; color: #333; font-size: 12px; font-weight: 600; }
.ir-source small { color: #777; font-size: 11px; white-space: nowrap; }
.ir-review .ir-warning { margin-top: 13px; padding: 11px 13px; border: 1px solid #dbc9b9; border-radius: 10px; background: #fbf5ee; color: #76513f; font-size: 11px; line-height: 1.55; }
.ir-owner { display: flex; flex-direction: column; gap: 6px; margin-top: 16px; min-width: 0; }
.ir-owner label { color: #383838; font-size: 12px; font-weight: 600; }
.ir-owner select { width: 100%; min-width: 0; min-height: 40px; padding: 8px 10px; border: 1px solid #dcdcd9; border-radius: 8px; background: #fff; color: #333; font: inherit; font-size: 12px; }
.ir-owner small { color: #696965; font-size: 11px; line-height: 1.5; }
.modal .ir-people { min-width: 0; margin: 20px 0 0; padding: 0; border: 0; }
.ir-people legend { margin: 0 0 9px; padding: 0; color: #383838; font-size: 12px; font-weight: 600; }
.ir-selection-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-bottom: 9px; }
.ir-selection-tools > span { margin-right: auto; color: #696965; font-size: 11px; }
.ir-selection-tools button { min-height: 32px; padding: 6px 9px; border: 1px solid #dededb; border-radius: 8px; background: #fff; color: #484848; font: inherit; font-size: 11px; cursor: pointer; }
.ir-people-list { max-height: min(46vh, 380px); overflow: auto; overscroll-behavior: contain; border: 1px solid #e5e5e2; border-radius: 12px; }
.ir-person-row + .ir-person-row { border-top: 1px solid #e5e5e2; }
.ir-person { display: flex; align-items: center; gap: 12px; min-width: 0; min-height: 56px; padding: 11px 13px; background: #fff; cursor: pointer; }
.ir-person:has(input:checked) { background: #f8f9f6; }
@media (hover: hover) and (pointer: fine){.ir-person:hover { background: #f4f5f2; }}
.ir-person input { width: 16px; height: 16px; flex: 0 0 auto; margin: 0; accent-color: #343a34; }
.ir-person-copy { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ir-person-copy strong { color: #282828; font-size: 12px; font-weight: 600; overflow-wrap: anywhere; }
.ir-person-copy small { color: #696965; font-size: 11px; line-height: 1.4; }
.ir-check-label { margin-left: auto; color: #70706c; font: 500 10px/1.2 var(--mono); text-transform: uppercase; }
.ir-empty { padding: 13px 15px; background: #fafaf9; color: #696965; font-size: 11px; line-height: 1.5; }
.ir-retention-details { margin: 0 12px 12px; border: 1px solid #e4ded5; border-radius: 8px; background: #fcfaf6; color: #544b3f; font-size: 11px; line-height: 1.5; }
.ir-retention-details > summary { padding: 8px 10px; font-weight: 600; cursor: pointer; }
.ir-retention-body { padding: 0 10px 10px; }
.ir-evidence + .ir-evidence { margin-top: 12px; padding-top: 10px; border-top: 1px solid #e4ded5; }
.ir-evidence > strong, .ir-evidence > small { display: block; }
.ir-evidence > small { margin-top: 6px; color: #696056; }
.ir-evidence-excerpt { white-space: pre-wrap; overflow-wrap: anywhere; }
.ir-evidence-excerpt > span { display: block; margin: 5px 0 2px; font-size: 10px; color: #696056; }
.ir-evidence-text { max-height: 200px; overflow: auto; margin-top: 5px; padding: 9px; border: 1px solid #e4ded5; border-radius: 7px; background: #fff; color: #3f3c37; white-space: pre-wrap; overflow-wrap: anywhere; }
.ir-evidence-note { margin-top: 6px !important; color: #696056; }
.ir-self { margin-top: 10px !important; color: #868686; font-size: 10px; line-height: 1.5; overflow-wrap: anywhere; }
.ir-existing { display: flex; flex-direction: column; gap: 6px; margin-top: 19px; }
.ir-existing label { color: #404040; font-size: 11px; font-weight: 600; }
.ir-existing select { display: block; width: 100%; min-height: 36px; padding: 7px 10px; border: 1px solid #dcdcd9; border-radius: 8px; background: #fff; color: #333; font-size: 11px; }
.ir-existing small { color: #888; font-size: 10px; }
.ir-limits { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 20px; }
.ir-limits > div { min-width: 0; padding: 12px 13px; border: 1px solid #e8e8e5; border-radius: 10px; background: #fafaf9; }
.ir-limits strong { color: #4a4a48; font-size: 10px; font-weight: 600; }
.ir-limits p { margin-top: 5px; color: #696965; font-size: 11px; line-height: 1.5; }
.ir-footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 13px; margin-top: 20px; padding-top: 16px; border-top: 1px solid #e9e9e7; }
.ir-footer button { min-height: 36px; padding: 7px 12px; border: 1px solid #dededb; border-radius: 8px; background: #fff; color: #484848; font: 500 11px/1.2 var(--font); }
@media (hover: hover) and (pointer: fine){.ir-footer .ir-back:hover { border-color: #aaa; color: #222; }}
.ir-footer .ir-save { margin-left: auto; border-color: #222; background: #222; color: #fff; }
@media (hover: hover) and (pointer: fine){.ir-footer .ir-save:hover { background: #3b3b3b; }}
.ir-footer .ir-save:disabled { border-color: #b9b9b6; background: #b9b9b6; cursor: not-allowed; }
.ir-footer [data-import-selection-help] { flex: 1 1 190px; color: #696965; font-size: 11px; line-height: 1.5; }
.ir-review :is(button, select, input, summary, [tabindex]):focus-visible { outline: 2px solid #343a34; outline-offset: 2px; }
@media (max-width: 560px) {
  .ir-source { grid-template-columns: 1fr; }
  .ir-source small { white-space: normal; }
  .ir-limits { grid-template-columns: 1fr; }
  .ir-footer .ir-save { margin-left: 0; }
  .ir-footer [data-import-selection-help] { flex-basis: 100%; order: 3; }
}

.ir-dateorder { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; align-items: center; margin-top: 12px; padding: 12px 14px; border: 1px solid #e4e4e1; border-radius: 12px; background: #fafaf9; }
.ir-dateorder label { color: #333; font-size: 12px; font-weight: 600; }
.ir-dateorder select { min-height: 44px; min-width: 150px; padding: 0 10px; border: 1px solid #d9d9d5; border-radius: 8px; background: #fff; font: inherit; font-size: 14px; }
.ir-dateorder p { grid-column: 1 / -1; margin: 0; color: #696965; font-size: 11px; line-height: 1.5; }
.ir-details { margin-top: 16px; }
.ir-details > summary { cursor: pointer; color: #696965; font-size: 11px; min-height: 32px; display: flex; align-items: center; }
