.workflow-bar{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:0 0 18px}.workflow-steps{display:flex;align-items:center;gap:0;list-style:none;margin:0;padding:0;font:500 .875rem/1.4 var(--sans);color:var(--muted,#7b8ba2)}.workflow-steps li{display:flex;align-items:center;gap:9px}.workflow-steps li+li:before{content:'';width:20px;height:1px;background:var(--line);margin:0 9px}.workflow-steps .is-current{color:var(--blue)}.workflow-steps .is-current:after{content:'';width:5px;height:5px;border-radius:50%;background:currentColor}.workflow-steps .is-complete{color:var(--ink)}.workflow-status{border:1px solid var(--line);border-radius:5px;padding:7px 10px;background:transparent;color:var(--blue);font:500 .875rem/1.4 var(--sans);cursor:pointer}.workflow-scope{display:flex;align-items:start;flex-wrap:wrap;gap:18px 28px;padding:17px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line)}.workflow-scope>.text-button{margin-left:auto;align-self:center;font-size:.875rem}.workflow-fact{display:flex;flex-direction:column;gap:5px;min-width:110px;max-width:250px;font-family:var(--sans);overflow-wrap:anywhere}.workflow-fact>span{font-size:.75rem;color:var(--muted,#7b8ba2)}.workflow-fact strong{font-size:.875rem;font-weight:500;line-height:1.4;color:var(--ink)}.workflow-fact strong.is-unset{font-weight:400;color:var(--muted,#7b8ba2)}.workflow-details{margin:0 0 24px;padding:12px 0;font:400 .875rem/1.55 var(--sans)}.workflow-details>summary{color:var(--muted,#7b8ba2);cursor:pointer;width:fit-content}.workflow-details[open]>summary{margin-bottom:14px;color:var(--ink)}.workflow-note{font:400 .8125rem/1.6 var(--sans);color:var(--muted,#7b8ba2);margin:8px 0}.workflow-review-note{white-space:pre-wrap;color:var(--ink);margin:10px 0}.workflow-checklist{display:grid;gap:12px;margin:16px 0}.workflow-checklist label{display:flex;align-items:start;gap:10px;color:var(--ink);cursor:pointer}.workflow-checklist input{width:16px;height:16px;accent-color:var(--blue);margin:3px 0 0;flex-shrink:0}.workflow-details .secondary-button{margin:10px 0 0}.start-workflow{width:100%;margin:-6px 0 17px;text-align:left;padding-left:10px;font-size:.8125rem}.ide-page .workflow-dialog{width:min(700px,calc(100vw - 48px));max-height:calc(100dvh - 48px);overflow:auto}.workflow-dialog .dialog-heading h2{font-family:var(--serif);font-size:2rem;line-height:1.15}.template-options{display:grid;grid-template-columns:1fr 1fr;gap:12px;margin:22px 0}.template-option{position:relative;display:flex;flex-direction:column;gap:10px;text-align:left;min-height:185px;padding:20px 35px 20px 20px;border:1px solid var(--line);border-radius:6px;background:transparent;font:400 .875rem/1.6 var(--sans);color:var(--muted,#7b8ba2);cursor:pointer}.template-option:hover,.template-option:focus-visible{border-color:var(--blue);outline:1px solid var(--blue);outline-offset:2px}.template-option strong{font:500 1.3rem/1.2 var(--serif);color:var(--ink)}.template-number{color:var(--blue);font-size:.75rem;letter-spacing:.06em}.template-arrow{position:absolute;right:17px;top:18px;color:var(--blue)}.workflow-dialog label{font-size:.875rem}.workflow-form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px;margin-bottom:18px}.workflow-dialog input,.workflow-dialog select,.workflow-dialog textarea{width:100%;box-sizing:border-box;font:400 1rem/1.5 var(--sans)}.workflow-dialog .dialog-actions{flex-wrap:wrap}.fund-profile{padding:22px;border:1px solid var(--line);border-radius:6px;margin-bottom:28px}.fund-profile-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:20px}.fund-profile-heading h2{font:500 1.8rem/1.2 var(--serif);margin:0;color:var(--ink)}.fund-profile-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px}.fund-profile-grid .workflow-fact{min-width:0}.fund-profile .module-note{margin-bottom:0}.workflow-review-meta{display:flex;gap:12px;flex-wrap:wrap;margin-top:8px;font:400 .8125rem/1.5 var(--sans);color:var(--muted,#7b8ba2)}
/* Keep the existing desktop workspace on narrow screens; dialogs can still fit the viewport. */
@media(max-width:1100px){.workflow-bar{flex-wrap:wrap;gap:10px}.workflow-scope{gap:16px}.fund-profile-grid{grid-template-columns:1fr 1fr}}
@media(max-width:600px){.workflow-dialog{width:calc(100vw - 24px)}.template-options,.workflow-form-grid{grid-template-columns:1fr}.template-option{min-height:0}.workflow-steps{font-size:.8125rem}.workflow-steps li+li:before{width:10px;margin:0 6px}.fund-profile-heading{align-items:start;flex-direction:column}}

.ide-page .workflow-dialog select{display:block;margin:8px 0 18px;padding:11px 14px;border:1px solid var(--line);border-radius:4px;color:var(--ink);background:var(--workflow-input-bg,#fff)}
