.cad-dialog { width:min(1100px,94vw); max-height:90dvh; border:1px solid #ced8e4; border-radius:18px; padding:24px; color:#1c304a; background:#f8fbff; box-shadow:0 20px 80px #102a4c40; }
.cad-dialog::backdrop { background:#10244080; }
.cad-dialog header,.cad-dialog .cad-actions { display:flex; align-items:center; gap:10px; flex-wrap:wrap; }
.cad-dialog header { justify-content:space-between; }
.cad-dialog h2 { margin:6px 0; }
.cad-dialog h3 { margin:8px 0 16px; }
.cad-layout { display:grid; grid-template-columns:1fr 1fr; gap:24px; }
.cad-form,.cad-form>label { display:grid; gap:8px; }
.cad-form { gap:14px; }
.cad-form input:not([type=checkbox]),.cad-form textarea,.cad-device-name { width:100%; box-sizing:border-box; border:1px solid #bfccdc; border-radius:8px; padding:10px; font:inherit; background:white; color:inherit; }
.cad-device-name { max-width:350px; }
.cad-form fieldset { display:flex; gap:12px; flex-wrap:wrap; border:1px solid #d6e0ec; border-radius:8px; }
.cad-form fieldset label { display:flex; align-items:center; gap:6px; }
.cad-status { min-height:1.5em; color:#205686; white-space:pre-wrap; }
.cad-status.cad-error { color:#a51d30; }
.cad-jobs { display:grid; gap:12px; max-height:600px; overflow:auto; }
.cad-jobs article { border:1px solid #d5e0ed; border-radius:12px; padding:14px; background:white; overflow-wrap:anywhere; }
.cad-jobs p { margin:8px 0; }
.cad-spec { white-space:pre-wrap; }
.cad-job-status { font-weight:650; }
.cad-delivered { color:#177345; }
.cad-queued { color:#205eb6; }
.cad-dialog .cad-actions { margin-top:10px; }
.cad-owner { border-top:1px solid #d5e0ed; margin-top:24px; padding-top:16px; }
.cad-devices p { display:flex; gap:12px; align-items:center; flex-wrap:wrap; }
.cad-files { margin:0; padding-left:20px; overflow-wrap:anywhere; }
.cad-dialog [hidden] { display:none !important; }
@media (max-width:760px) { .cad-dialog { padding:16px; } .cad-layout { grid-template-columns:1fr; } .cad-jobs { max-height:420px; } }
.cad-question-pending{font-weight:600;color:#a14d0a}
