:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#202020;background:#f5f5f5;font-size:14px}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button{cursor:pointer;white-space:nowrap}button:disabled{opacity:.45;cursor:wait}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #ef7a83;outline-offset:2px}header{height:86px;background:#111;color:#fff;padding:0 42px;display:flex;align-items:center;justify-content:space-between;gap:24px}.brand{display:flex;align-items:center;gap:13px;text-decoration:none;color:#fff;font-size:27px;font-weight:750;letter-spacing:-1px}.brand img{width:28px;height:38px;object-fit:contain}.brand em{color:#ff4b55;font-style:normal;font-weight:400}.environment{font-size:12px;color:#d6d6d6}.live-dot{height:6px;width:6px;display:inline-block;border-radius:50%;background:#ff4b55;margin-right:7px}.separator{margin:0 15px;color:#565656}.readonly{font-size:11px;padding:7px 11px;border:1px solid #424242;border-radius:4px;color:#c4c4c4}main{max-width:1440px;margin:auto;padding:37px 42px 18px}.heading{margin-bottom:24px}.eyebrow{font-size:10px;font-weight:750;letter-spacing:1.6px;color:#b91e2d}h1{font-size:32px;letter-spacing:-1px;font-weight:650;margin:10px 0}h2{font-size:21px;letter-spacing:-.4px;margin:8px 0}h3{font-size:14px;margin:0 0 7px}p{font-size:13px;line-height:1.65;color:#757575;margin:0}#status{min-height:42px;border:1px solid #dedede;background:#fff;border-radius:6px;font-size:12px;padding:12px 15px;margin-bottom:21px;color:#555}#status.busy{border-left:3px solid #d92336}#status.error{background:#fff1f2;border-color:#e9bfc3;color:#a31d2a}.steps{display:grid;grid-template-columns:1fr 1fr 1fr;margin-bottom:26px;border:1px solid #dedede;border-radius:8px;overflow:hidden;background:#fff}.steps button{display:flex;gap:13px;align-items:center;text-align:left;border:0;border-right:1px solid #e6e6e6;border-bottom:3px solid transparent;padding:20px 25px;background:#fff;color:#606060;font-weight:650;font-size:14px}.steps button:last-child{border-right:0}.steps button.selected{border-bottom-color:#d92336;background:#fffbfb;color:#a7212e}.number{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;background:#f0f0f0;font-size:12px}.selected .number{background:#fde5e7;color:#bb2030}.steps small{display:block;color:#888;font-size:11px;font-weight:400;margin-top:5px}.step-arrow{margin-left:auto;color:#b6b6b6}.panel{border:1px solid #dedede;background:#fff;border-radius:9px;overflow:hidden}.panel-head{display:flex;align-items:center;justify-content:space-between;padding:27px 28px;gap:20px}.actions{display:flex;gap:9px}.primary,.secondary{font-size:12px;font-weight:600;border-radius:5px;padding:11px 15px;border:1px solid #d0d0d0}.primary{color:#fff;background:#cf2334;border-color:#cf2334}.primary:hover{background:#b91e2e}.secondary{background:#fff;color:#424242}.secondary:hover{background:#f4f4f4}.metrics{display:grid;grid-template-columns:repeat(3,1fr);padding:0 28px 23px;gap:18px}.metric{padding:18px 20px;background:#fafafa;border:1px solid #e7e7e7;border-radius:6px}.metric strong{display:block;font-size:27px;letter-spacing:-.7px;font-weight:650;margin-bottom:5px}.metric span{font-size:11px;color:#777}.note{background:#fafafa;border-left:3px solid #d92336;font-size:12px;line-height:1.7;color:#737373;margin:0 28px 22px;padding:12px 15px}.toolbar{display:flex;align-items:center;justify-content:space-between;border-top:1px solid #e7e7e7;padding:14px 28px;gap:18px}.tabs{display:flex;gap:6px}.tabs button{background:none;border:0;color:#797979;padding:9px 15px;border-radius:4px;font-size:12px}.tabs button.selected{color:#b71d2c;background:#fff0f1;font-weight:650}input,select{border:1px solid #d6d6d6;border-radius:4px;padding:10px;color:#303030;background:#fff;min-width:0}input[type=search]{font-size:12px;width:240px}.table-wrap{overflow:auto;max-width:100%}table{border-collapse:collapse;width:100%;font-size:12px}th{text-align:left;background:#fafafa;color:#737373;font-weight:550;font-size:10px;letter-spacing:.3px;padding:13px 17px;border-top:1px solid #e9e9e9;border-bottom:1px solid #e9e9e9;white-space:nowrap}td{padding:13px 17px;border-bottom:1px solid #efefef;max-width:270px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}tbody tr:hover{background:#fdf8f8}.details-button{border:0;background:none;color:#b5212f;font-size:11px;padding:4px}.pagination{display:flex;align-items:center;justify-content:space-between;padding:16px 28px;font-size:11px;color:#777;min-height:54px}.pagination button{padding:7px 12px;margin-left:7px}.empty{padding:40px 28px;text-align:center;color:#858585;font-size:13px}.next-row{display:flex;justify-content:space-between;align-items:center;margin:22px 0;gap:18px}.next-row p{font-size:12px}.source-form{padding:0 28px 25px}.source-form label{display:flex;flex-direction:column;gap:8px;color:#767676;font-size:11px}.url-label input{font-size:11px;background:#fafafa;width:100%;text-overflow:ellipsis}.date-row{display:flex;align-items:flex-end;gap:15px;margin-top:19px}.date-row input{min-width:175px}.date-row #oracle-discover{margin-left:auto}.connection-badge{font-size:11px;color:#6c6c6c}.match-row{display:flex;align-items:center;gap:22px;padding:0 28px 26px}.match-row>div{margin-right:auto;max-width:350px}.match-row p{font-size:11px}.match-row label{display:flex;flex-direction:column;gap:8px;font-size:11px;color:#777}.match-row select{width:200px;font-size:12px}.mapping-table td{white-space:normal}.mapping-table td:nth-child(1){font-family:ui-monospace,monospace;font-size:11px;font-weight:600;min-width:150px}.mapping-table td:nth-child(2){max-width:220px;white-space:nowrap;color:#777}.mapping-table select{width:100%;font-size:12px;max-width:280px}.mapping-table td:nth-child(4){width:32%}.mapping-table td:nth-child(5){width:130px}.preview-footer{display:flex;align-items:center;gap:16px;padding:20px 28px}#saved-at,#mapping-count{font-size:12px;color:#777}#mapped-preview .toolbar{font-size:11px;color:#777}footer{display:flex;justify-content:space-between;gap:20px;font-size:11px;color:#969696;padding:25px 2px}footer span{font-size:10px}dialog{border:1px solid #ddd;border-radius:9px;padding:25px;max-width:900px;width:90%;max-height:85vh}dialog::backdrop{background:#0008}.dialog-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:20px}#record-details td{white-space:pre-wrap;overflow-wrap:anywhere;max-width:none}#record-details td:first-child{width:35%;font-family:ui-monospace,monospace;font-size:11px}[hidden]{display:none!important}@media(max-width:1000px){header{padding:0 24px}main{padding:28px 24px}.steps button{padding:17px}.panel-head{align-items:flex-start;flex-direction:column}.date-row{flex-wrap:wrap}.date-row #oracle-discover{margin-left:0}.match-row{flex-wrap:wrap}.match-row>div{width:100%;max-width:none}.environment{font-size:11px}.metrics{gap:10px}}@media(max-width:650px){header{height:72px;padding:0 18px}.environment{display:none}.brand{font-size:23px}main{padding:23px 13px}.heading h1{font-size:26px}.steps button{padding:14px 10px;font-size:11px;gap:7px}.steps small,.step-arrow{display:none}.number{width:23px;height:23px}.metrics{padding:0 15px 18px;gap:6px}.metric{padding:15px 12px}.metric strong{font-size:23px}.panel-head{padding:22px 18px}.note{margin:0 18px 18px}.toolbar{padding:12px 15px}.toolbar input{width:160px}.source-form{padding:0 18px 20px}.date-row{gap:10px}.date-row input{min-width:140px}.next-row{align-items:flex-start;flex-direction:column}.match-row{padding:0 18px 22px;gap:12px}.match-row select{width:160px}footer{flex-direction:column}.readonly{font-size:10px}.pagination{padding:14px 15px}}
.steps{grid-template-columns:repeat(4,1fr)}.execution-controls{padding:20px 28px;display:flex;align-items:center;gap:14px;flex-wrap:wrap}.ack{display:flex;gap:10px;align-items:flex-start;flex:1;min-width:260px;font-size:12px;line-height:1.7;color:#555}.ack input{margin-top:5px}.schedule-panel{margin:24px 0}.schedule-form{display:flex;gap:20px;padding:0 28px 20px;flex-wrap:wrap}.schedule-form label{display:flex;flex-direction:column;gap:8px;font-size:12px;color:#666}.schedule-form input,.schedule-form select{min-width:190px}#import-review-table td:last-child{white-space:normal}#run-history td:nth-child(5){white-space:normal;max-width:360px}@media(max-width:750px){.steps{grid-template-columns:1fr 1fr}.execution-controls{padding:18px}.schedule-form{padding:0 18px 20px}.steps button{border-bottom:3px solid transparent}}
#import-review-table{max-height:420px}#import-review-table th{position:sticky;top:0;z-index:1}#run-history{max-height:450px}

.login-panel{max-width:680px;padding:36px}.login-button{display:inline-block;text-decoration:none;margin:18px 0}.source-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:24px}.source-selector{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-bottom:20px}.source-selector select{margin-left:12px}.source-selector span{font-size:13px;color:#666}.actions a{text-decoration:none}.login-panel .note:empty{display:none}@media(max-width:760px){header{flex-wrap:wrap;gap:12px}.source-cards{grid-template-columns:1fr}.source-selector{align-items:flex-start;flex-direction:column;gap:12px}.panel-head{flex-direction:column;align-items:flex-start}.actions{flex-wrap:wrap}.heading h1{font-size:34px}.steps{overflow-x:auto}.date-row,.schedule-form{flex-wrap:wrap}}

.value-rule{display:grid;grid-template-columns:1fr 24px 1fr auto;gap:10px;align-items:center;margin:12px 0}.value-rule input{min-width:0;width:100%}.transform-options{display:grid;gap:14px;margin:24px 0}.mapping-table td small{display:block;max-width:260px;white-space:normal;margin-top:8px}#value-error{color:#b52232}#transform-dialog{width:min(760px,95vw)}@media(max-width:600px){.value-rule{grid-template-columns:1fr 16px 1fr}.value-rule button{grid-column:3}}

#import-metrics {grid-template-columns:repeat(4,minmax(0,1fr))} @media(max-width:650px){#import-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}


#import-dialog{width:min(1200px,94vw);max-width:94vw}#confirm-table{max-height:55vh;overflow:auto}#confirm-table td{white-space:pre-wrap;overflow-wrap:anywhere}.preview-create{background:#e8f6ec}.preview-update{background:#e9f1ff}.preview-skip{background:#f2f3f5;color:#555}.preview-blocked{background:#fff2d7}#confirm-import-submit{margin-top:16px}

.refresh-schedule{padding:20px}.refresh-schedule input[type=number],#schedule-interval{width:80px}.refresh-schedule label,.refresh-schedule button,.refresh-schedule select{margin:6px}

.request-badge{display:inline-block;border-radius:20px;padding:5px 12px;font-size:12px;font-weight:700;text-transform:capitalize}.request-badge.success{background:#e5f5eb;color:#146b35}.request-badge.failed{background:#ffe8e8;color:#a51c2c}.request-badge.active{background:#fff1cf;color:#765400}.request-badge.cancelled{background:#eee;color:#555}.request-link{background:transparent;border:0;color:#b91c32;text-align:left;padding:4px 0;font-weight:700;cursor:pointer}.request-message{display:block;max-width:350px;white-space:normal;margin-top:6px}#request-details{width:min(1200px,95vw);max-height:90vh;overflow:auto}#request-details details{margin:20px 0}.request-errors{color:#a51c2c;white-space:pre-wrap;overflow-wrap:anywhere}#requests-page .toolbar{flex-wrap:wrap}#requests-table td small{display:block}#request-confirm{max-width:650px}#requests-page input[type=checkbox]{width:18px;height:18px}

.request-last-activity{display:block;margin-top:6px;color:#444}.request-activity-error{background:#fff2f3}#request-events{overflow:auto;max-height:360px}#request-events pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}#request-events td{vertical-align:top}#request-summary p{overflow-wrap:anywhere}

#requests-table progress{display:block;width:100%;height:8px;margin-top:8px;accent-color:#d61d37}

/* Requests keep results and actions within the panel at every width. */
#requests-table{overflow:visible}#requests-table table{table-layout:fixed;width:100%}#requests-table th,#requests-table td{white-space:normal;overflow-wrap:anywhere;overflow:visible;text-overflow:clip;max-width:none;vertical-align:top;padding:13px 10px}#requests-table th:nth-child(1){width:5%}#requests-table th:nth-child(2){width:15%}#requests-table th:nth-child(3){width:10%}#requests-table th:nth-child(4){width:14%}#requests-table th:nth-child(5){width:22%}#requests-table th:nth-child(6){width:8%}#requests-table th:nth-child(7){width:17%}#requests-table th:nth-child(8){width:9%}#requests-table .request-link{white-space:normal;overflow-wrap:anywhere}#requests-table td:last-child button{display:block;margin:0 0 7px;max-width:100%;padding:9px 10px}#requests-table progress{min-width:0;max-width:100%}
@media(max-width:900px){#requests-table table,#requests-table tr,#requests-table td{display:block;width:100%}#requests-table tr:first-child{display:none}#requests-table tr{padding:14px 16px;border-bottom:1px solid #ddd}#requests-table td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:6px 12px;border:0;padding:6px 0}#requests-table td::before{content:attr(data-label);font-size:11px;font-weight:600;color:#737373;grid-column:1;grid-row:1 / span 20}#requests-table td>*{grid-column:2;min-width:0}#requests-table td:last-child button{width:max-content;margin-bottom:0}#requests-table td:empty{display:none}}

.table-export{display:flex;justify-content:flex-end;align-items:center;gap:12px;padding:10px 15px;background:#fff;position:sticky;left:0}.table-export span{font-size:12px;color:#666}#attention-breakdown{margin:0 28px 24px}#attention-breakdown p{margin-bottom:12px}#attention-breakdown td{white-space:normal}#attention-breakdown td:first-child{width:90px}#attention-dialog{width:min(1200px,95vw);max-width:95vw}#attention-records table{table-layout:fixed}#attention-records th,#attention-records td{white-space:pre-wrap;overflow-wrap:anywhere;vertical-align:top;padding:12px 8px}#attention-records button{white-space:normal}#attention-search{margin:16px 0;width:min(400px,100%)}#request-events td{white-space:pre-wrap;overflow-wrap:anywhere}#attention-breakdown .request-link{font-size:18px;text-decoration:underline}@media(max-width:650px){#attention-breakdown{margin:0 18px 18px}#attention-records table{font-size:11px}}

#requests-table th:nth-child(1){width:4%}#requests-table th:nth-child(2){width:14%}#requests-table th:nth-child(3){width:9%}#requests-table th:nth-child(4){width:13%}#requests-table th:nth-child(5){width:9%}#requests-table th:nth-child(6){width:19%}#requests-table th:nth-child(7){width:8%}#requests-table th:nth-child(8){width:16%}#requests-table th:nth-child(9){width:8%}

@media(max-width:650px){#attention-records table,#attention-records tr,#attention-records td{display:block;width:100%}#attention-records tr:first-child{display:none}#attention-records tr{padding:12px 0;border-bottom:1px solid #ddd}#attention-records td{display:grid;grid-template-columns:90px minmax(0,1fr);gap:8px;border:0}#attention-records td::before{content:attr(data-label);font-weight:600;color:#666}#attention-records td>*{grid-column:2;min-width:0}}
.verify-config-fields{display:grid;gap:16px;margin:20px 0}.verify-config-fields label{display:grid;gap:7px}.verify-config-fields input{width:100%;min-width:0}#verify-config-dialog{width:min(860px,94vw)}#verify-config-results table{table-layout:fixed;width:100%;min-width:0}#verify-config-results td,#verify-config-results th{white-space:normal;overflow-wrap:anywhere}#verify-config-status{display:flex;gap:10px;align-items:center}.config-spinner{display:inline-block;flex-shrink:0;width:18px;height:18px;border:3px solid #f2d1d6;border-top-color:#df1433;border-radius:50%;animation:config-spin 1s linear infinite}@keyframes config-spin{to{transform:rotate(360deg)}}

/* CSV source upload; scoped so REST source layout remains unchanged. */
.csv-upload-panel{padding:0 28px 24px}.csv-upload-panel[hidden],#rest-source-form[hidden],#source-refresh-panel[hidden]{display:none}
.csv-drop-zone{border:2px dashed #bbb;border-radius:8px;background:#fafafa;padding:32px 20px;text-align:center;transition:background .15s,border-color .15s}
.csv-drop-zone.dragging{border-color:#d71932;background:#fff1f3}.csv-drop-zone label{display:inline-flex;align-items:center;gap:10px;margin:12px}.csv-drop-zone p{overflow-wrap:anywhere}
.csv-drop-zone.uploading:before{content:"";display:block;width:24px;height:24px;margin:0 auto 14px;border:3px solid #f5c9d0;border-top-color:#d71932;border-radius:50%;animation:csv-spin 1s linear infinite}
@keyframes csv-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.csv-drop-zone.uploading:before{animation:none}}
#csv-upload-status{overflow-wrap:anywhere}@media(max-width:600px){.csv-upload-panel{padding:0 16px 20px}.csv-drop-zone{padding:20px 12px}}
#request-batches table{width:100%;table-layout:fixed}#request-batches th,#request-batches td{white-space:normal;overflow-wrap:anywhere;text-overflow:clip;vertical-align:top}
