/* Live workflow shell. Scoped to authenticated workspaces only. */
body.workflow-live{background:#f4f5f4;color:#183746}
.workflow-live main#app{max-width:1760px;width:calc(100% - 72px);padding:0;margin:24px auto 70px}
.workflow-live>header{padding-left:max(36px,calc((100vw - 1760px)/2));padding-right:max(36px,calc((100vw - 1760px)/2))}
.workflow-live .practice-main{max-width:none}.workflow-live .practice-nav{max-width:none;margin-bottom:28px}
.flow-title{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:28px 0}
.flow-title h1{font-size:clamp(28px,2.6vw,42px);letter-spacing:-1px;margin:6px 0 12px}.flow-title p{margin:0;color:#5c6c73}
.flow-open{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 15px;min-height:10px}
.flow-open-client{display:inline-flex;align-items:center;gap:2px}.flow-open-client [data-close]{padding:8px;min-width:32px}
.flow-open button,.flow-tools button,.flow-purposes button{border:1px solid #d6dfdf;border-radius:8px;background:white;color:#183746;font:inherit;font-weight:600;cursor:pointer;padding:12px 17px;min-height:44px}
.flow-open button[aria-pressed=true],.flow-tools button[aria-pressed=true],.flow-purposes button[aria-pressed=true]{background:#173c46;color:#fff;border-color:#173c46}
.flow-admin{display:grid;grid-template-columns:260px minmax(0,1fr);gap:24px;align-items:start}
.flow-queue{position:sticky;top:100px;background:#fff;border:1px solid #dce4e3;border-radius:14px;padding:18px;max-height:calc(100dvh - 130px);overflow:auto}
.flow-queue input{width:100%;min-width:0}.flow-queue p{font-size:12px;color:#5c6c73;margin:10px 0}
.flow-queue [data-client-list]{display:grid;gap:4px}.flow-queue [data-client]{display:block;text-align:left;background:white;border:0;border-radius:8px;padding:12px;width:100%;color:#183746;font:inherit;cursor:pointer}
.flow-queue [data-client] strong,.flow-queue [data-client] span{display:block;overflow-wrap:anywhere}.flow-queue [data-client] span{font-size:12px;color:#627078;margin-top:5px}
.flow-queue [data-client][aria-pressed=true]{background:#eef3f3;box-shadow:inset 3px 0 #fa7b22}
.flow-desk{min-width:0;background:#fff;border:1px solid #dce4e3;border-radius:14px;padding:28px}
.flow-client-heading h2{font-size:27px;margin:0 0 8px}.flow-client-heading p{color:#5c6c73;margin:0 0 22px;overflow-wrap:anywhere}
.flow-tools{display:flex;flex-wrap:wrap;gap:7px;padding-bottom:20px;border-bottom:1px solid #e2e8e6;margin-bottom:24px}
.flow-tools button{font-size:13px;padding:9px 13px}.flow-tool-panel{min-width:0}.flow-tool-panel .panel{box-shadow:none}.flow-tool-panel h1{font-size:26px}
.workflow-live .engagement-table{min-width:680px}.workflow-live .engagement-table th,.workflow-live .engagement-table td{padding:14px 10px;line-height:1.5}
.flow-purposes{display:flex;gap:12px;margin:26px 0}.flow-purposes button{min-height:56px;flex:1;font-size:17px}
[data-client-purpose]{background:white;border:1px solid #dce4e3;border-radius:14px;padding:32px;max-width:1280px;margin:0 auto}
.flow-section-title,.flow-context-heading{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-bottom:22px}.flow-section-title h2,.flow-context-heading h3{margin:0 0 7px}.flow-section-title p{margin:0;color:#5c6c73;font-size:15px}
.flow-contexts{display:flex;flex-wrap:wrap;gap:12px;margin:20px 0}.flow-context{border:1px solid #d6dfdf;background:white;border-radius:9px;padding:14px 20px;text-align:left;color:#183746;cursor:pointer;font:inherit}.flow-context strong,.flow-context span{display:block}.flow-context span{font-size:13px;margin-top:5px;color:#5c6c73}.flow-context[aria-pressed=true]{border-color:#fa7b22;background:#fff8f2;box-shadow:inset 0 0 0 1px #fa7b22}
.flow-add{border:1px solid #dce4e3;border-radius:10px;padding:16px 20px;margin:18px 0;background:#fafbfa}.flow-add summary{cursor:pointer;font-weight:600;min-height:24px}.flow-add form{padding-top:16px}.flow-add p{font-size:14px}
.flow-fields{display:grid;grid-template-columns:1fr 2fr 1fr;gap:16px}.flow-fields input,.flow-fields select{width:100%;min-width:0}
.flow-context-heading{margin-top:30px;border-top:1px solid #e0e6e5;padding-top:26px}.flow-context-heading h3{font-size:23px;margin-top:7px}
.flow-request{display:flex;align-items:start;justify-content:space-between;gap:24px;padding:20px 0;border-bottom:1px solid #e1e7e5}.flow-request>div{min-width:0;flex:1}.flow-request>form{width:min(50%,440px)}.flow-request strong{font-size:17px}.flow-request p{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.flow-request .flow-state{color:#64757b}.flow-request .flow-answer{border-left:3px solid #dce6e6;padding-left:12px;color:#193b43}
.flow-inline-actions{display:flex;flex-wrap:wrap;gap:6px;justify-content:flex-end}.flow-request .btn,.flow-inline-actions .btn{font-size:13px;padding:9px 12px;min-height:40px}
.flow-upload{border:1px dashed #94aeb2;background:#f6fafa;padding:24px;border-radius:12px;margin:22px 0}.flow-upload input[type=file]{max-width:100%;width:auto}.flow-camera{display:block;margin:16px 0}
.flow-conversation{margin-top:34px}.flow-conversation article{padding:18px 0;border-top:1px solid #e1e7e5}.flow-conversation p{white-space:pre-wrap;overflow-wrap:anywhere}.flow-conversation small{color:#5c6c73;font-size:12px}.flow-conversation form{margin-top:18px;max-width:740px}.flow-reply{margin:14px 0 0 22px;padding:14px 18px;background:#f2f6f5;border-radius:8px}.flow-followup{background:#fff5e8;border-left:3px solid #ed8d39;padding:14px}
.flow-organizer{display:flex;align-items:center;justify-content:space-between;gap:20px;border-top:1px solid #dce4e3;padding:26px 0 6px;margin-top:32px}.flow-organizer p{margin:6px 0;color:#5c6c73}.flow-empty{color:#5c6c73;padding:20px 0}
.flow-file-panel{border:1px solid #dce4e3;border-radius:10px;padding:20px;margin:18px 0}
.workflow-live .portal-client-layout{max-width:1880px;width:calc(100% - 48px);margin:24px auto;grid-template-columns:minmax(0,1fr) 280px;gap:24px}
.workflow-live .portal-client-layout main#app{width:100%;margin:0;min-width:0}
.workflow-live .document-helper{max-width:280px}
.workflow-live .flow-title{margin:14px 0 18px}.workflow-live .flow-title h1{font-size:30px;margin:4px 0 6px}.workflow-live .flow-title p{font-size:14px}
.flow-purposes{margin:16px 0}.flow-purposes button{min-height:46px;font-size:15px}
[data-client-purpose]{padding:24px 28px}.flow-section-title{margin-bottom:14px}.flow-section-title h2{font-size:22px}.flow-section-title p{font-size:13px;max-width:680px}
.flow-contexts{margin:12px 0}.flow-context{padding:10px 14px}.flow-add{padding:11px 15px;margin:12px 0}.flow-context-heading{margin-top:16px;padding-top:16px}.flow-context-heading h3{font-size:19px}
.flow-queue-count{color:#9b4c13!important;font-weight:600}
.workflow-live :is(button,a,input,select,textarea):focus-visible{outline:3px solid #d36916;outline-offset:3px}
.workflow-live [hidden]{display:none!important}.workflow-live :is(.flow-desk,[data-client-purpose]) textarea{resize:vertical;min-height:70px;max-height:240px;font:inherit}.workflow-live :is(.flow-desk,[data-client-purpose]) input[type=checkbox]{width:18px;height:18px;min-height:0;display:inline-block;vertical-align:middle}
@media(min-width:1500px){.flow-admin{grid-template-columns:300px minmax(0,1fr);gap:32px}.flow-desk{padding:32px}.flow-tools button{font-size:14px}}
@media(max-width:1000px){.workflow-live main#app{width:calc(100% - 32px)}.flow-admin{grid-template-columns:210px minmax(0,1fr);gap:14px}.flow-desk{padding:18px}.flow-fields{grid-template-columns:1fr}.flow-request{flex-wrap:wrap}.flow-request>form{width:100%}.flow-title{align-items:start}.workflow-live>header{padding-left:16px;padding-right:16px}}
@media(max-width:720px){.flow-admin{display:block}.flow-queue{position:static;max-height:230px;margin-bottom:18px}.flow-desk{padding:16px}.flow-title{display:block}.flow-title>a{margin-top:18px}.flow-title h1{font-size:28px}.flow-purposes{display:grid;grid-template-columns:1fr 1fr;gap:8px}.flow-purposes button{font-size:14px;padding:10px;min-height:48px}[data-client-purpose]{padding:18px}.flow-section-title,.flow-context-heading{align-items:start;flex-wrap:wrap;gap:10px}.flow-contexts{display:grid;grid-template-columns:1fr}.flow-context{width:100%}.flow-request{gap:12px}.flow-inline-actions{justify-content:flex-start}.flow-organizer{align-items:start;flex-wrap:wrap}.flow-tools button{flex:1}.flow-open button{font-size:13px}.flow-conversation article{padding:14px 0}.flow-reply{margin-left:10px}.flow-upload{padding:16px}}
@media(max-width:1100px){.workflow-live .portal-client-layout{display:flex;flex-direction:column;width:calc(100% - 32px)}.workflow-live .document-helper{width:100%;max-width:none;position:static}}

/* Restored client upload drop area. */
.flow-upload .flow-dropzone{border:2px dashed #9eb5ba;border-radius:12px;background:#fff;padding:28px 20px;text-align:center;transition:background .15s,border-color .15s}
.flow-upload .flow-dropzone.drag-over{background:#fff3e8;border-color:#ea7024}
.flow-upload .flow-upload-icon{display:block;font-size:32px;line-height:1;color:#254b54;margin-bottom:12px}
.flow-upload .flow-dropzone h4{font-size:20px;margin:0 0 8px}.flow-upload .flow-dropzone p{margin:8px 0 16px}
.flow-upload .flow-dropzone .hint{font-size:14px;color:#52656b;margin:18px 0 0}
.flow-upload [data-files][hidden],.flow-upload [data-selection][hidden]{display:none!important}
.flow-upload [data-names]{max-height:180px;overflow:auto;padding-left:24px;overflow-wrap:anywhere}
.flow-upload .flow-upload-actions{display:flex;gap:12px;flex-wrap:wrap}
.flow-upload [data-choose]:focus-visible{outline:3px solid #254b54;outline-offset:4px}
