.controller-integration-dialog{width:min(1120px,94vw);max-width:1120px;min-width:min(760px,94vw);border:0;padding:0;border-radius:18px;box-shadow:0 24px 80px rgba(15,23,42,.28);overflow:hidden;background:#fff;color:#1f2937}
.controller-integration-dialog::backdrop{background:rgba(15,23,42,.32);backdrop-filter:blur(2px)}
.controller-integration-shell{display:flex;flex-direction:column;max-height:min(86vh,920px);min-height:560px;background:#f8fafc}
.controller-integration-head{display:flex;gap:14px;align-items:center;padding:18px 20px;background:#fff;border-bottom:1px solid #e5e7eb;cursor:move}
.controller-integration-head-icon{width:44px;height:44px;display:grid;place-items:center;border-radius:12px;background:#eef2ff;color:#1e2a78;font-size:1.15rem;flex:0 0 auto}
.controller-integration-head-copy{min-width:0;flex:1}.controller-integration-kicker{font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#6674b8}.controller-integration-head h2{font-size:1.15rem;line-height:1.2;margin:2px 0 4px}.controller-integration-head p{margin:0;color:#64748b;font-size:.84rem}
.controller-integration-close{width:38px;height:38px;border:1px solid #e2e8f0;border-radius:10px;background:#fff;color:#475569;display:grid;place-items:center;cursor:pointer}.controller-integration-close:hover{background:#f1f5f9}
.controller-integration-banner{display:flex;gap:8px;flex-wrap:wrap;padding:10px 18px;background:#f1f5ff;border-bottom:1px solid #dfe5ff}.controller-integration-banner span{font-size:.76rem;color:#43548f;background:#fff;border:1px solid #dfe5ff;border-radius:999px;padding:5px 9px}
.controller-integration-body{overflow:auto;padding:16px;display:grid;gap:14px}
.controller-card{background:#fff;border:1px solid #e2e8f0;border-radius:14px;padding:15px;box-shadow:0 1px 2px rgba(15,23,42,.03)}
.controller-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:14px;margin-bottom:12px}.controller-card-head span{font-size:.68rem;text-transform:uppercase;letter-spacing:.08em;color:#64748b;font-weight:800}.controller-card-head h3{margin:2px 0 2px;font-size:1rem}.controller-card-head p{margin:0;color:#64748b;font-size:.78rem}
.controller-grid{display:grid;gap:10px}.controller-grid.cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.controller-grid label{display:flex;flex-direction:column;gap:5px}.controller-grid label>span{font-size:.72rem;font-weight:700;color:#475569}.controller-grid input,.controller-grid select{width:100%;height:38px;border:1px solid #cbd5e1;border-radius:9px;background:#fff;padding:0 10px;color:#0f172a}.controller-grid small{font-size:.68rem;color:#64748b}.controller-span-2{grid-column:span 2}
.controller-actions,.controller-integration-footer{display:flex;align-items:center;gap:8px}.controller-actions{margin-top:12px;justify-content:flex-end}.controller-primary,.controller-secondary,.controller-danger{border-radius:9px;min-height:36px;padding:7px 12px;border:1px solid transparent;font-weight:700;cursor:pointer}.controller-primary{background:#1e2a78;color:#fff}.controller-secondary{background:#fff;border-color:#cbd5e1;color:#334155}.controller-danger{background:#fff;border-color:#fecaca;color:#b91c1c}.controller-primary:disabled,.controller-secondary:disabled,.controller-danger:disabled{opacity:.55;cursor:not-allowed}
.controller-summary{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:8px;margin:8px 0 12px}.controller-summary>div{padding:9px;border:1px solid #e2e8f0;border-radius:10px;background:#f8fafc}.controller-summary span{display:block;color:#64748b;font-size:.66rem}.controller-summary strong{font-size:1.02rem}.controller-summary .controller-empty{grid-column:1/-1;color:#64748b;font-size:.78rem}
.controller-table-wrap{overflow:auto;border:1px solid #e2e8f0;border-radius:10px}.controller-table-wrap table{width:100%;border-collapse:collapse;font-size:.76rem}.controller-table-wrap th,.controller-table-wrap td{padding:9px 10px;text-align:left;border-bottom:1px solid #edf2f7;vertical-align:top}.controller-table-wrap th{background:#f8fafc;color:#475569;position:sticky;top:0}.controller-table-wrap td small{display:block;color:#94a3b8;margin-top:2px}.controller-status{display:inline-block;padding:3px 7px;border-radius:999px;font-weight:800;text-transform:capitalize}.controller-status.aligned{background:#dcfce7;color:#166534}.controller-status.review{background:#fef3c7;color:#92400e}.controller-status.missing,.controller-status.extra{background:#fee2e2;color:#991b1b}
.controller-integration-footer{justify-content:space-between;padding:11px 16px;background:#fff;border-top:1px solid #e2e8f0}.controller-integration-message{font-size:.76rem;color:#64748b;min-height:1.2em}.controller-integration-message.success{color:#166534}.controller-integration-message.error{color:#b91c1c}
@media(max-width:850px){.controller-integration-dialog{min-width:0;width:96vw}.controller-grid.cols-3{grid-template-columns:1fr 1fr}.controller-summary{grid-template-columns:repeat(4,minmax(0,1fr))}.controller-span-2{grid-column:1/-1}}
@media(max-width:600px){.controller-grid.cols-3{grid-template-columns:1fr}.controller-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.controller-card-head{flex-direction:column}.controller-actions{justify-content:stretch;flex-wrap:wrap}.controller-actions button{flex:1}.controller-integration-shell{min-height:0;max-height:92vh}}
