.dialog:has(.bundle-form){flex-direction:column;max-height:min(860px,100dvh - 40px);display:flex}.dialog:has(.bundle-form)>.dialog-header{flex:none}.bundle-form{flex-direction:column;flex:auto;min-height:0;display:flex}.bundle-layout{flex:auto;grid-template-columns:minmax(0,1.15fr) minmax(300px,.85fr);gap:0;min-height:0;display:grid}.bundle-document{border-right:1px solid var(--border-subtle);flex-direction:column;gap:14px;min-width:0;min-height:0;padding:16px 18px;display:flex;overflow-y:auto}.bundle-fields{gap:12px 14px}.bundle-check{cursor:pointer;color:var(--text-secondary);align-items:flex-start;gap:9px;display:flex}.bundle-check .checkbox{flex:none;margin-top:2px}.bundle-check span{flex-direction:column;gap:2px;display:flex}.bundle-check b{color:var(--text-primary);font-size:12px;font-weight:500}.bundle-check small{color:var(--text-muted);font-size:11px}.bundle-preview{background:var(--surface-1);border:1px solid var(--border-subtle);border-radius:var(--radius-panel);flex:auto;min-height:280px;max-height:520px;padding:12px;overflow:auto}.bundle-preview .portal-local-preview{gap:12px}.bundle-preview .portal-local-preview figcaption{color:var(--text-faint);margin-top:4px;font-size:10.5px}.bundle-preview .review-document,.bundle-preview .review-pdf{width:100%}.bundle-preview .review-pdf{border:0;min-height:480px}.bundle-preview-empty{text-align:center;height:100%;min-height:250px;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:9px;padding:20px;font-size:12px;line-height:1.5;display:flex}.bundle-workers{flex-direction:column;min-width:0;min-height:0;padding:16px 18px 10px;display:flex}.bundle-workers-head{justify-content:space-between;align-items:baseline;gap:10px;margin-bottom:10px;display:flex}.bundle-workers-head b{color:var(--text-primary);font-size:13px;font-weight:600}.bundle-workers-head span{color:var(--text-muted);font-size:11.5px}.bundle-workers-tools{gap:8px;display:flex}.bundle-workers-tools .search-wrap{flex:auto;min-width:0}.bundle-workers-tools .search-wrap .control{width:100%}.bundle-workers-tools select{flex:0 150px;min-width:0}.bundle-workers-actions{flex-wrap:wrap;gap:4px 14px;margin:9px 0 6px;font-size:11.5px;display:flex}.bundle-workers-actions .link-button:disabled{opacity:.45;cursor:default}.bundle-worker-list{flex:auto;min-height:160px;max-height:560px;margin:0 -6px;padding:0 6px;overflow:hidden auto}.bundle-worker{border-radius:var(--radius-control);cursor:pointer;grid-template-columns:18px minmax(0,1fr) auto;align-items:center;gap:10px;min-height:42px;margin:0 -8px;padding:6px 8px;display:grid}@media (hover:hover){.bundle-worker:hover{background:var(--hover)}}.bundle-worker.is-checked{background:var(--selected)}.bundle-worker.is-locked{cursor:default;opacity:.72}.bundle-worker-name{flex-direction:column;gap:2px;min-width:0;display:flex}.bundle-worker-name b{text-overflow:ellipsis;white-space:nowrap;color:var(--text-primary);font-size:12.5px;font-weight:500;overflow:hidden}.bundle-worker-name small{color:var(--text-muted);font-size:10.5px}.bundle-worker-has{color:var(--status-ready);white-space:nowrap;align-items:center;gap:5px;font-size:11px;display:inline-flex}.bundle-workers-empty{color:var(--text-muted);margin:16px 0;font-size:12px}.bundle-message{margin:0;padding:10px 18px 0}.bundle-failure{border:1px solid color-mix(in srgb, var(--status-missing) 38%, transparent);border-radius:var(--radius-panel);background:color-mix(in srgb, var(--status-missing) 8%, transparent);color:var(--text-secondary);gap:11px;padding:12px 13px;line-height:1.5;display:flex}.bundle-failure>svg{color:var(--status-missing);flex:none;margin-top:2px}.bundle-failure ul{margin:6px 0;padding-left:18px}.bundle-failure small{color:var(--text-muted)}@media (max-width:860px){.dialog:has(.bundle-form){max-height:calc(100dvh - 16px)}.bundle-layout{overscroll-behavior:contain;flex-direction:column;display:flex;overflow-y:auto}.bundle-document,.bundle-workers{flex:none;min-height:auto}.bundle-document{border-right:0;border-bottom:1px solid var(--border-subtle);padding:14px 16px;overflow:visible}.bundle-workers{padding:14px 16px 10px}.bundle-preview{flex:none;min-height:0;max-height:360px}.bundle-preview-empty{min-height:0;padding:14px}.bundle-workers-tools{flex-wrap:wrap}.bundle-workers-tools select{flex:140px}.bundle-workers-actions .link-button{min-height:44px}.bundle-worker-list{flex:none;min-height:0;max-height:none;overflow:visible}.bundle-worker{min-height:48px}}.worker-doc-bundle{color:var(--text-muted);align-items:center;gap:5px;margin-top:4px;font-size:10.5px;display:inline-flex}.worker-doc-bundle svg{color:var(--blue);flex:none}
