/* Use the available workspace, including iframe workstreams with a hidden sidebar. */
@media screen {
  #main.page-shell { width:100%; max-width:none; max-inline-size:none; margin-inline:0; min-width:0; }
  #main :where(.journey,.banking-workspace,.asset-ledger-workspace,.group-workspace,.ct-workspace,.invoice-workspace,.quote-editor,.bank-account-setup) {
    width:100%; max-width:none; max-inline-size:none; min-width:0; margin-inline:0; box-sizing:border-box;
  }
  body.setup-panel { padding-inline:0; }
  body.setup-panel #main { padding:clamp(16px,2vw,32px); }
  .journey-editor,.workspace-editor { width:calc(100vw - clamp(16px,3vw,48px)); max-width:calc(100vw - 16px); height:94dvh; }
  .journey-editor.editor-expanded { width:100vw; max-width:100vw; height:100dvh; }
  :where(button,.button) { overflow-wrap:normal; word-break:normal; }
  .action-row > :where(button,.button),.page-heading > .button { flex-shrink:0; }
  .setup-progress { container:setup-checks / inline-size; min-width:0; }
  .setup-progress table { width:100%; min-width:0; table-layout:fixed; }
  .setup-progress :is(th,td):first-child { width:15%; }
  .setup-progress :is(th,td):nth-child(2) { width:19%; }
  .setup-progress :is(th,td):last-child { width:12rem; }
  .setup-progress .journey-chip { max-width:100%; white-space:normal; overflow-wrap:normal; }
  .setup-progress .setup-check-actions { align-items:flex-start; }
  .setup-check-actions form { width:100%; align-items:flex-start; }
  .setup-progress .setup-check-actions button { width:auto; min-width:max-content; white-space:nowrap; overflow-wrap:normal; word-break:normal; min-height:44px; }
  .setup-inline-resolver form { min-width:0; }
  .setup-inline-resolver [data-save-answer] { justify-self:start; width:auto; white-space:normal; }
  .setup-inline-feedback { border-left:3px solid var(--accent); padding:.8rem 1rem; background:var(--surface-soft); border-radius:8px; }
  .setup-inline-feedback[data-kind=error] { border-color:var(--negative); }
  .setup-inline-feedback strong,.setup-inline-feedback span { display:block; }
  .setup-inline-feedback p { margin:.4rem 0 0; }
  .setup-inline-feedback a { display:inline-flex; margin-top:.65rem; }
  @container setup-checks (max-width:60rem) {
    .setup-progress-table table,.setup-progress-table tbody,.setup-progress-table tr,.setup-progress-table th,.setup-progress-table td { display:block; min-width:0; width:auto!important; }
    .setup-progress-table thead { position:absolute; width:1px; height:1px; overflow:hidden; clip:rect(0,0,0,0); }
    .setup-progress-table tr { border-bottom:1px solid var(--line); padding:1rem 0; }
    .setup-progress-table :is(th,td) { border:0; padding:.35rem 0; }
    .setup-progress-table td[data-label]::before { content:attr(data-label); display:block; color:var(--muted); font-size:.75rem; margin-bottom:.3rem; }
    .setup-progress-table { overflow:visible; }
    .setup-progress-table .setup-check-actions { margin-top:.6rem; }
  }
  @media(max-width:700px) {
    .journey-card { padding:20px; }
    .journey-editor,.workspace-editor { width:100vw; max-width:100vw; height:100dvh; border-radius:0; }
  }
}
