.app-shell .dialog-overlay{position:fixed;inset:0;background:var(--ui-overlay);display:flex;align-items:center;justify-content:center;z-index:1000}.app-shell .dialog-modal{background:var(--ui-bg);border:1px solid var(--ui-surface);border-radius:var(--sb-radius);box-shadow:var(--sb-shadow-pop);width:fit-content!important;min-width:600px!important;max-width:800px!important;max-height:90vh;display:flex;flex-direction:column;color:var(--ui-text-strong)}.app-shell .dialog-header{display:flex;justify-content:space-between;align-items:center;padding:24px 24px 0;border-bottom:1px solid var(--ui-surface);margin-bottom:0}.app-shell .dialog-header h2{font-size:18px;font-weight:600;margin:0}.app-shell .btn-close{background:transparent;border:none;color:var(--ui-text-secondary);font-size:20px;cursor:pointer;padding:4px 8px;transition:color .15s ease}.app-shell .btn-close:hover{color:var(--ui-text-strong)}.app-shell .dialog-content{flex:1;overflow-y:auto;padding:28px 28px 24px;display:flex;flex-direction:column;gap:24px}.app-shell .step-indicator{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px;padding:0 16px}.app-shell .step{display:flex;flex-direction:column;align-items:center;gap:4px;flex:1;position:relative}.app-shell .step-number{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:var(--ui-surface);color:var(--ui-text-secondary);font-weight:600;font-size:13px;border:2px solid var(--ui-surface-raised);transition:all .15s ease;flex-shrink:0}.app-shell .step.active .step-number{background:var(--ui-info);color:var(--ui-canvas-bg);border-color:var(--ui-info)}.app-shell .step.completed .step-number{background:var(--ui-success);color:var(--ui-text-on-accent);border-color:var(--ui-success)}.app-shell .step.completed .step-number:after{content:"✓";position:absolute;font-size:14px}.app-shell .step.completed .step-number{font-size:0}.app-shell .step-label{font-size:11px;color:var(--ui-text-secondary);text-align:center;font-weight:500;white-space:nowrap;overflow:visible}.app-shell .step.active .step-label,.app-shell .step.completed .step-label{color:var(--ui-info)}.app-shell .step-connector{flex:1;height:2px;background:var(--ui-surface);margin:0 8px;min-width:20px}.app-shell .step:nth-child(2n) .step-connector{display:none}.app-shell .step.completed~.step-connector{background:var(--ui-success)}.app-shell .alert{display:flex;justify-content:space-between;align-items:center;padding:12px 16px;border-radius:var(--sb-radius);font-size:13px;margin-bottom:16px}.app-shell .alert-error{background:var(--ui-error);color:var(--ui-error-text);border:1px solid var(--ui-error)}.app-shell .alert-success{background:var(--ui-success);color:var(--ui-success-text-strong);border:1px solid var(--ui-success)}.app-shell .alert button{padding:4px 8px;background:transparent;border:1px solid currentColor;border-radius:var(--sb-radius);color:inherit;cursor:pointer;font-size:11px;transition:all .15s ease}.app-shell .alert-error button:hover{background:var(--ui-error)}.app-shell .alert-success button:hover{background:var(--ui-success)}.app-shell .step-content{display:flex;flex-direction:column;gap:20px;padding:0 4px}.app-shell .step-content h3{font-size:16px;font-weight:600;margin:0;color:var(--ui-text-strong)}.app-shell .step-description{font-size:13px;color:var(--ui-text-secondary);margin:0}.app-shell .form-group{display:flex;flex-direction:column;gap:8px}.app-shell .form-group label{font-size:13px;font-weight:500;color:var(--ui-text-secondary)}.app-shell .form-input,.app-shell .form-textarea{padding:8px 12px;background:var(--ui-canvas-bg);border:1px solid var(--ui-surface-raised);border-radius:var(--sb-radius);color:var(--ui-text-strong);font-size:13px;font-family:inherit;transition:all .15s ease}.app-shell .form-input:focus,.app-shell .form-textarea:focus{outline:none;border-color:var(--ui-info);box-shadow:0 0 0 2px var(--ui-info-subtle)}.app-shell .form-input::placeholder,.app-shell .form-textarea::placeholder{color:var(--ui-text-secondary)}.app-shell .source-tabs{display:flex;gap:0;border-bottom:1px solid var(--ui-surface);margin-bottom:4px}.app-shell .source-tab{padding:8px 20px;background:transparent;border:none;border-bottom:2px solid transparent;color:var(--ui-text-secondary);font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease}.app-shell .source-tab:hover{color:var(--ui-text-strong)}.app-shell .source-tab.active{color:var(--ui-info);border-bottom-color:var(--ui-info)}.app-shell .file-upload-section{margin:16px 0}.app-shell .file-upload-label{display:block;padding:24px;background:var(--ui-canvas-bg);border:2px dashed var(--ui-surface-raised);border-radius:var(--sb-radius);text-align:center;cursor:pointer;transition:all .15s ease}.app-shell .file-upload-label:hover{border-color:var(--ui-info);background:var(--ui-bg)}.app-shell .file-input{display:none}.app-shell .file-upload-text{font-size:13px;color:var(--ui-text-secondary);font-weight:500}.app-shell .file-upload-label:hover .file-upload-text{color:var(--ui-info)}.app-shell .divider{text-align:center;color:var(--ui-text-secondary);font-size:12px;margin:12px 0;position:relative}.app-shell .divider:before,.app-shell .divider:after{content:"";position:absolute;top:50%;width:calc(50% - 60px);height:1px;background:var(--ui-surface)}.app-shell .divider:before{left:0}.app-shell .divider:after{right:0}.app-shell .file-list{display:flex;flex-direction:column;gap:8px;max-height:300px;overflow-y:auto}.app-shell .file-option{padding:12px;background:var(--ui-canvas-bg);border:1px solid var(--ui-surface-raised);border-radius:var(--sb-radius);cursor:pointer;transition:all .15s ease;display:flex;flex-direction:column;gap:4px}.app-shell .file-option:hover{background:var(--ui-bg);border-color:var(--ui-border)}.app-shell .file-option.selected{background:var(--ui-bg);border-color:var(--ui-info)}.app-shell .file-option-header{display:flex;justify-content:space-between;align-items:center}.app-shell .file-option-name{font-weight:500;font-size:13px;color:var(--ui-text-strong)}.app-shell .checkmark{color:var(--ui-info);font-weight:600}.app-shell .file-option-meta{font-size:12px;color:var(--ui-text-secondary)}.app-shell .empty-selection{padding:24px;text-align:center;color:var(--ui-text-secondary);background:var(--ui-canvas-bg);border-radius:var(--sb-radius);border:1px dashed var(--ui-surface-raised)}.app-shell .empty-selection p{margin:0;font-size:13px}.app-shell .selected-info{padding:12px;background:var(--ui-canvas-bg);border-left:3px solid var(--ui-info);border-radius:var(--sb-radius);font-size:13px;color:var(--ui-text-secondary)}.app-shell .selected-info strong{color:var(--ui-info)}.app-shell .review-section{display:flex;flex-direction:column;gap:12px;padding:16px;background:var(--ui-canvas-bg);border-radius:var(--sb-radius);border:1px solid var(--ui-surface)}.app-shell .review-item{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;font-size:13px}.app-shell .review-label{color:var(--ui-text-secondary);font-weight:500;min-width:100px}.app-shell .review-value{color:var(--ui-text-strong);font-weight:500;text-align:right;flex:1}.app-shell .dialog-footer{display:flex;justify-content:flex-end;gap:8px;padding:16px 24px;border-top:1px solid var(--ui-surface);background:var(--ui-bg)}.app-shell .btn{padding:8px 16px;border-radius:var(--sb-radius);border:none;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s ease;white-space:nowrap}.app-shell .btn-primary{background:var(--ui-info);color:var(--ui-canvas-bg)}.app-shell .btn-primary:hover:not(:disabled){background:var(--ui-info)}.app-shell .btn-primary:disabled{opacity:.5;cursor:not-allowed}.app-shell .btn-secondary{background:transparent;color:var(--ui-text-secondary);border:1px solid var(--ui-surface-raised)}.app-shell .btn-secondary:hover{background:var(--ui-surface);color:var(--ui-text-strong);border-color:var(--ui-border)}.app-shell .loading-spinner{width:22px;height:22px;border:2px solid var(--ui-surface);border-top-color:var(--ui-info);border-radius:50%;animation:dialog-spin .6s linear infinite;margin:0 auto 8px}@keyframes dialog-spin{to{transform:rotate(360deg)}}.app-shell .dialog-content::-webkit-scrollbar,.app-shell .file-list::-webkit-scrollbar{width:6px}.app-shell .dialog-content::-webkit-scrollbar-track,.app-shell .file-list::-webkit-scrollbar-track{background:var(--ui-bg)}.app-shell .dialog-content::-webkit-scrollbar-thumb,.app-shell .file-list::-webkit-scrollbar-thumb{background:var(--sb-line-strong);border-radius:var(--sb-radius)}.app-shell .dialog-content::-webkit-scrollbar-thumb:hover,.app-shell .file-list::-webkit-scrollbar-thumb:hover{background:var(--ui-border)}@media(max-width:768px){.app-shell .step-indicator{gap:8px;padding:0 12px}.app-shell .step-number{width:28px;height:28px;font-size:12px}.app-shell .step-label{font-size:10px}}@media(max-width:600px){.app-shell .dialog-modal{width:95%;max-height:95vh}.app-shell .dialog-header,.app-shell .dialog-content,.app-shell .dialog-footer{padding-left:16px;padding-right:16px}.app-shell .dialog-header h2{font-size:16px}.app-shell .step-indicator{gap:4px;padding:0 8px}.app-shell .step-label{display:none}.app-shell .step-number{width:24px;height:24px;font-size:11px}.app-shell .file-list{max-height:200px}.app-shell .dialog-footer{flex-wrap:wrap}.app-shell .btn{flex:1;min-width:100px}}.ctd-seg{display:inline-flex;border:1px solid var(--ui-border);border-radius:var(--sb-radius);overflow:hidden;margin-bottom:12px}.ctd-seg-btn{padding:4px 14px;border:none;background:transparent;color:var(--ui-text-secondary);font-size:12px;cursor:pointer}.ctd-seg-btn.active{background:var(--sb-accent-fill);color:#fff}
