.rt-import-editor { min-width: 0; }
.rt-import-source { border: 1px solid var(--rt-line); padding: 10px; border-radius: 8px; min-width: 0; }
.rt-import-source legend { font-weight: 700; font-size: 13px; }
.rt-import-editor button { font-size: 12px; margin: 5px 0; }
.rt-import-pages { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 11px; }
.rt-import-row { margin: 12px 0; border: 1px solid var(--rt-line); border-radius: 9px; padding: 10px; background: #fafbf8; }
.rt-import-row h4 { margin: 0 0 8px; }
.rt-import-row details { font-size: 11px; margin-bottom: 10px; overflow-wrap: anywhere; }
.rt-import-row details ol { max-height: 180px; overflow: auto; white-space: pre-wrap; }
.rt-import-duplicate { display: flex; gap: 8px; align-items: flex-start; color: #85603a; font-size: 12px; }
.rt-import-errors { color: #aa3f3f; font-size: 12px; padding-left: 20px; }
.rt-import-preview { border: 1px solid #aabf9c; border-radius: 9px; padding: 10px; margin-top: 15px; }
.rt-import-preview > ol { max-height: 350px; overflow: auto; padding-left: 22px; }
.rt-import-preview li { padding: 6px 0; overflow-wrap: anywhere; }
.rt-import-preview li small { display: block; color: #78816f; }
.rt-import-source input[type=file] { width: 100%; min-width: 0; }
.rt-import-tree { max-height: 350px; overflow: auto; list-style: none; padding-left: 0; }
.rt-import-tree ul { margin-left: 8px; border-left: 1px solid #c3cfb9; padding-left: 12px; list-style: none; }

/* Shared catalog assignments waiting for an explicit, live Staff placement. */
.rt-pending-people { border: 1px solid #c6d5bc; background: #f7faf3; border-radius: 12px; padding: 16px; margin: 14px 0; }
.rt-pending-people h2 { font-size: 18px; margin: 0 0 7px; }
.rt-pending-people > p { color: #52614b; font-size: 13px; }
.rt-pending-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(270px,100%),1fr)); gap: 12px; }
.rt-pending-grid article { min-width: 0; padding: 12px; border: 1px solid #d8e0d0; border-radius: 8px; background: white; }
.rt-pending-grid h3 { font-size: 15px; margin: 0 0 10px; overflow-wrap: anywhere; }
.rt-pending-role { font-size: 12px; margin: 8px 0; }
.rt-pending-role ul { margin: 5px 0; padding-left: 18px; max-height: 180px; overflow: auto; }
.rt-pending-role li { padding: 3px 0; overflow-wrap: anywhere; }
.rt-pending-role p { color: #77816e; margin: 4px 0; }
.rt-pending-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.rt-pending-actions button, .rt-placement-options button { font-size: 12px; }
.rt-placement-options { display: grid; gap: 8px; margin: 10px 0; }
@media print { .rt-pending-people { display: none; } }

/* Six-column review: source and choices remain separate from a committed plan. */
.rt-import-mode { padding: 10px; border: 1px solid #c3cfb9; border-radius: 8px; background: #f2f6ed; }
.rt-import-source-cells { display: grid; grid-template-columns: 1fr; gap: 4px; margin: 8px 0; max-height: 260px; overflow: auto; }
.rt-import-source-cells > div { display: grid; grid-template-columns: 24px minmax(0,1fr); gap: 6px; border-bottom: 1px solid #e3e9de; padding: 5px 0; }
.rt-import-source-cells dt { font-weight: 700; color: #516046; }
.rt-import-source-cells dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.rt-import-bindings { margin: 14px 0; }
.rt-import-bindings h5 { font-size: 13px; margin: 0 0 6px; }
.rt-import-binding { padding: 10px; margin: 8px 0; background: #fff; border: 1px solid #dce4d5; border-radius: 8px; }
.rt-import-binding-source { display: block; font-size: 13px; overflow-wrap: anywhere; }
.rt-import-binding-status { display: block; font-size: 11px; color: #526c41; padding: 5px 0; }
.rt-import-binding-status.is-pending { color: #a46b24; }
.rt-import-staff-choices { max-height: 180px; overflow: auto; border: 1px solid #e0e5da; border-radius: 5px; }
.rt-import-staff-choices > label { display: flex; align-items: flex-start; gap: 8px; padding: 7px; font-size: 12px; }
.rt-import-staff-choices input { width: auto; flex: 0 0 auto; margin: 2px 0 0; }
.rt-import-staff-choices small { color: #7c8574; }
.rt-import-counts { display: grid; grid-template-columns: repeat(auto-fit,minmax(105px,1fr)); gap: 8px; }
.rt-import-counts > div { border: 1px solid #d9e3d1; border-radius: 6px; padding: 8px; }
.rt-import-counts dt { font-size: 11px; }
.rt-import-counts dd { margin: 4px 0 0; font-size: 20px; font-weight: 700; }
.rt-import-people-preview article { padding: 10px; margin: 8px 0; border: 1px solid #d6dfcd; border-radius: 7px; font-size: 12px; }
.rt-import-people-preview article > strong, .rt-import-people-preview article > span { display: block; margin-bottom: 7px; overflow-wrap: anywhere; }
.rt-import-people-preview article ul { padding-left: 20px; }
.rt-import-warnings { font-size: 12px; color: #8b612c; padding-left: 20px; }
.rt-pending-inactive { margin-top: 14px; border-top: 1px solid #e0d5bc; padding-top: 12px; color: #7f6645; font-size: 12px; }
.rt-pending-inactive summary { cursor: pointer; font-weight: 700; }
.rt-pending-inactive article { margin: 9px 0; }
.rt-import-people-preview li small { display: block; color: #78816f; font-size: 11px; }

.rt-import-position-preview{display:grid;gap:12px;margin:12px 0}
.rt-import-position-preview article{padding:12px;border:1px solid #c9bbda;border-radius:12px;background:#faf8fe;overflow-wrap:anywhere}
.rt-pending-positions .rt-pending-grid article{border-color:#c9bbda}

.rt-google-source,.rt-google-diff{margin:12px 0;padding:14px;border:1px solid #bfcecb;border-radius:12px;background:#f6faf8;overflow-wrap:anywhere}
.rt-google-bindings{padding:0;list-style:none;display:grid;gap:12px}.rt-google-bindings li,.rt-google-conflict{padding:12px;border:1px solid #d7dcd9;border-radius:10px;overflow-wrap:anywhere}.rt-google-bindings small{display:block;margin:6px 0}.rt-google-conflict dl{display:grid;gap:4px}.rt-google-conflict dd{margin:0 0 8px;white-space:pre-wrap}.rt-google-conflict dt{font-weight:700}.rt-import-identity{display:flex;align-items:flex-start;gap:9px;padding:10px;margin:8px 0;background:#f4f1fc;border-radius:8px}.rt-import-identity input{min-width:20px;min-height:20px}

/* Exact-name review is compact; expanded context preserves every source cell. */
.rt-name-mapping { margin: 14px 0 20px; padding: 12px; border: 1px solid #b9cdb1; border-radius: 10px; background: #f3f8ef; min-width: 0; }
.rt-name-mapping h3 { margin: 0 0 8px; font-size: 16px; }
.rt-name-mapping p { font-size: 12px; overflow-wrap: anywhere; }
.rt-name-list { display: grid; gap: 8px; }
.rt-name-group { min-width: 0; padding: 10px; border: 1px solid #d0dcc9; border-radius: 8px; background: #fff; overflow-wrap: anywhere; }
.rt-name-group > strong { font-size: 14px; }
.rt-name-group > p { margin: 5px 0; color: #586751; }
.rt-name-editor { margin-top: 10px; border-top: 1px solid var(--rt-line); padding-top: 8px; }
.rt-name-context { margin: 12px 0; font-size: 12px; }
.rt-name-context > ol { max-height: 420px; overflow: auto; overscroll-behavior: contain; padding: 0 8px 0 22px; }
.rt-name-context li { margin: 10px 0; padding: 8px; border: 1px solid #dde5d7; border-radius: 6px; }
.rt-name-context .rt-import-source-cells { max-height: none; overflow: visible; }
.rt-name-full-title { white-space: pre-wrap; font-weight: 600; }
.rt-name-confirm { padding: 12px; border: 1px solid #a6bd98; border-radius: 8px; background: #edf5e7; font-size: 12px; }
.rt-name-editor button { margin-right: 8px; white-space: normal; overflow-wrap: anywhere; max-width: 100%; }
.rt-name-notice { padding: 8px; background: #e7f3df; border-radius: 6px; }
.rt-name-individual > summary, .rt-name-context > summary { cursor: pointer; font-weight: 600; padding: 8px 0; }
.rt-name-mapping input[type=search], .rt-name-mapping select { min-width: 0; max-width: 100%; }
@media (max-width: 540px) {
    .rt-name-mapping { padding: 8px; }
    .rt-name-group { padding: 8px; }
    .rt-name-editor button { display: block; width: 100%; min-height: 42px; margin: 8px 0; }
    .rt-name-context > ol { max-height: 360px; padding-left: 16px; }
}

/* Common confirmation keeps every recipient visible before updating the draft. */
.rt-common-review { margin: 14px 0; padding: 12px; border: 2px solid #9bb68b; border-radius: 10px; background: #f4f9ef; min-width: 0; overflow-wrap: anywhere; }
.rt-common-review h3 { margin-top: 0; font-size: 16px; }
.rt-common-review p, .rt-common-review details { font-size: 12px; }
.rt-common-review details { margin: 10px 0; }
.rt-common-review summary { cursor: pointer; font-weight: 600; padding: 6px 0; }
.rt-common-review ul { padding-left: 20px; max-height: 340px; overflow: auto; }
.rt-common-review li { margin: 7px 0; }
.rt-common-review .rt-common-bindings { max-height: 440px; }
.rt-common-review button { margin-right: 8px; white-space: normal; max-width: 100%; }
@media (max-width: 540px) { .rt-common-review button { display: block; width: 100%; min-height: 42px; } }
