.research-project-dialog{width:min(1080px,calc(100vw - 32px));max-height:calc(100dvh - 32px)}
.research-project-dialog .dialog-body{padding:20px 26px;overflow:auto}
.project-intro{display:grid;grid-template-columns:1fr 1fr;gap:26px}
.project-step{display:flex;gap:14px;min-width:0}.project-step-number{flex:0 0 28px;width:28px;height:28px;display:grid;place-items:center;background:#e8f0fc;color:#285f9d;border-radius:50%;font-weight:700}
.project-step h3,.project-preview h3{margin:0 0 7px;font-size:16px}.project-step p,.project-preview p{font-size:13px;color:#66778a;line-height:1.55;margin:0 0 13px}
.project-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.project-folder-name{font-size:12px;color:#486179;max-width:250px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.project-source-switch{display:flex;gap:3px;padding:3px;background:#f0f3f8;border-radius:8px;margin-bottom:12px;width:max-content;max-width:100%}.project-source-switch button{font-size:12px;border:0;background:none;padding:8px 11px;border-radius:6px;color:#617389;cursor:pointer}.project-source-switch button[aria-pressed=true]{background:white;color:#215d9f;box-shadow:0 1px 4px #20375215}
.project-step .project-note{font-size:11px;color:#798b9e;margin:11px 0 0}.project-prefix{display:grid;gap:5px;font-size:12px;color:#536a83;margin-bottom:10px}.project-prefix input{width:100%;border:1px solid #ccd8e7;border-radius:6px;padding:9px 11px;background:white;font:inherit}
.project-preview{border-top:1px solid #e0e7ef;margin-top:25px;padding-top:20px}.project-preview-heading{display:flex;justify-content:space-between;gap:16px;align-items:start}.project-preview-heading>span{font-size:12px;color:#6f8195}.project-match-list{max-height:300px;overflow:auto;border:1px solid #e0e7ef;border-radius:9px}.project-match{display:flex;gap:15px;justify-content:space-between;align-items:center;padding:11px 14px;border-bottom:1px solid #edf1f6}.project-match:last-child{border:0}.project-match strong{font-size:13px;font-weight:600}.project-match small{display:block;font-size:11px;color:#8292a3;margin-top:3px}.project-match>span{white-space:nowrap;font-size:12px;color:#596d83}.project-empty{padding:15px;margin:0!important}
.project-import-action{display:flex;gap:15px;align-items:center;justify-content:space-between;margin-top:18px}.project-import-action span{font-size:12px;color:#74869b;max-width:500px}.project-import-action button{white-space:nowrap}
.project-progress{margin-top:20px;padding:14px 17px;background:#f0f6ff;border:1px solid #d6e4f7;border-radius:9px;display:grid;gap:8px}.project-progress strong{font-size:13px}.project-progress progress{width:100%;height:7px;accent-color:#2868ad}.project-progress span{font-size:12px;color:#647991}
.project-unmatched{margin:15px 0;background:#fffcf5;border:1px solid #eaddbc;border-radius:8px;padding:13px}.project-unmatched summary{font-weight:600;font-size:13px;cursor:pointer;color:#7d632d}.project-unmatched p{margin-top:10px}.project-unmatched>label:not(.project-partial){display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:center;margin:9px 0}.project-unmatched strong{font-size:12px}.project-unmatched small{display:block;color:#7c6e51;font-size:11px}.project-unmatched select{font-size:12px;padding:7px;border:1px solid #daccac;border-radius:5px;background:white;min-width:0;max-width:100%}.project-partial{display:flex;align-items:center;gap:8px;font-size:12px;color:#735f38;margin-top:15px}.project-warning{padding:12px;color:#8b602d;background:#fff8e8;border:1px solid #ecdfbd;border-radius:8px;font-size:13px}.project-status{color:#58718c;font-size:13px;min-height:1.5em;margin:12px 0 0}
@media(max-width:720px){.project-intro{grid-template-columns:1fr;gap:22px}.research-project-dialog .dialog-body{padding:16px}.project-import-action{align-items:stretch;flex-direction:column}.project-unmatched>label:not(.project-partial){grid-template-columns:1fr}.project-match strong{overflow-wrap:anywhere}.project-match-list{max-height:230px}}

/* Project controls fit the same narrow modal without pushing its fixed action out. */
.project-step>div{min-width:0;flex:1}.project-actions>button{max-width:100%;white-space:normal}.research-project-dialog .dialog-footer{min-width:0;flex-wrap:wrap;justify-content:flex-end}.research-project-dialog .dialog-footer>button{max-width:100%}
@media(max-width:480px){.project-source-switch{width:100%}.project-source-switch button{min-width:0;flex:1;white-space:normal;padding:7px 8px}.project-folder-name{max-width:100%;min-width:0}.research-project-dialog .dialog-footer{padding:10px 14px}}
