:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;background:#f8fafc;color:#0f172a}*{box-sizing:border-box}body,html,#root{margin:0;height:100%;min-height:100%}button,input,textarea{font:inherit}button{cursor:pointer}.app-shell{height:100vh;display:flex;flex-direction:column;gap:1rem;background:#f8fafc;overflow:hidden}.app-header{display:flex;align-items:center;justify-content:space-between;padding:10px 20px;gap:12px;background:#fff;border-bottom:1px solid #e2e8f0}.logo{display:flex;align-items:center;gap:8px;white-space:nowrap}.logo-text{display:flex;flex-direction:column;gap:1px}.logo-brand{font-weight:700;font-size:18px;color:#111827;line-height:1.2}.logo-tagline{font-size:12px;font-weight:400;color:#94a3b8;line-height:1.2;letter-spacing:.01em}.logo-mark{width:34px;height:34px;border-radius:12px;background:#4f46e5;color:#fff;display:inline-flex;align-items:center;justify-content:center;font-weight:700}.pipeline-nav{display:flex;align-items:center;gap:0}.pipeline-step{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:5px 12px;font-size:13px;color:#64748b;white-space:nowrap;transition:background .12s,border-color .12s,color .12s}.pipeline-step:hover{background:#f1f5f9;border-color:#cbd5e1}.pipeline-step--active{border-color:#6366f1;background:#eef2ff;color:#3730a3}.pipeline-step--done{border-color:#86efac;background:#f0fdf4;color:#15803d}.pipeline-step--done:hover{background:#dcfce7}.pipeline-step--{border-color:#e2e8f0;color:#64748b}.pipeline-num{font-size:11px;font-weight:700;width:18px;height:18px;border-radius:50%;background:currentColor;color:#fff;display:grid;place-items:center;flex-shrink:0}.pipeline-step--done .pipeline-num{background:#16a34a;color:#fff}.pipeline-step--active .pipeline-num{background:#4f46e5;color:#fff}.pipeline-step .pipeline-num{color:#fff;background:#94a3b8}.pipeline-label{font-weight:600}.pipeline-connector{width:20px;height:2px;background:#e2e8f0;flex-shrink:0}.pipeline-divider{width:1px;height:22px;background:#e2e8f0;margin:0 8px;flex-shrink:0}.workflow-context-bar{display:flex;align-items:center;gap:8px;padding:8px 16px;background:#f8fafc;border-bottom:1px solid #e2e8f0;font-size:12px;color:#64748b;flex-shrink:0}.workflow-context-bar--track{background:#fffbeb;border-bottom-color:#fde68a}.workflow-context-bar--manage{background:#f0fdf4;border-bottom-color:#bbf7d0}.wcb-badge{font-size:11px;font-weight:700;padding:2px 8px;border-radius:999px;background:#e2e8f0;color:#475569;white-space:nowrap}.wcb-badge--hint,.workflow-context-bar--track .wcb-badge{background:#fef3c7;color:#92400e}.workflow-context-bar--manage .wcb-badge{background:#dcfce7;color:#15803d}.wcb-desc{color:#475569;flex:1}.wcb-id{font-family:ui-monospace,monospace;font-size:11px;background:#fff;border:1px solid #e2e8f0;border-radius:4px;padding:1px 6px;color:#334155}.success-ids{display:grid;gap:6px}.copy-box{width:100%;border:1px solid #e2e8f0;border-radius:10px;padding:8px 10px;text-align:left;background:#fff;display:flex;flex-direction:column;gap:2px;transition:border-color .12s,background .12s}.copy-box:hover{border-color:#a5b4fc;background:#f5f3ff}.copy-box-label{font-size:10px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#6366f1}.copy-box-val{font-family:ui-monospace,monospace;font-size:11px;color:#334155;word-break:break-all}.next-step-btn{width:100%;border:none;border-radius:10px;padding:10px 14px;background:#4f46e5;color:#fff;font-size:13px;font-weight:700;text-align:center;cursor:pointer;transition:background .12s}.next-step-btn:hover{background:#4338ca}.next-step-btn--done{background:#16a34a}.next-step-btn--done:hover{background:#15803d}.env-selector-wrap{display:flex;align-items:center;gap:6px;padding:4px 10px;border:1px solid #bbf7d0;background:#f0fdf4;border-radius:999px}.env-selector-wrap:has(.env-dot--shadow){border-color:#fde68a;background:#fffbeb}.env-select:has(option[value=shadow]:checked){color:#b45309}.env-dot{width:7px;height:7px;border-radius:50%;flex-shrink:0}.env-dot--live{background:#22c55e;box-shadow:0 0 0 2px #bbf7d0}.env-dot--shadow{background:#f59e0b;box-shadow:0 0 0 2px #fde68a}.env-select{border:none;background:transparent;font-size:12px;font-weight:600;color:#15803d;cursor:pointer;outline:none;-webkit-appearance:auto;-moz-appearance:auto;appearance:auto;padding:0}.header-actions{display:flex;align-items:center;gap:6px;flex-shrink:0}.session-badge{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:6px 12px;font-size:13px;color:#475569;white-space:nowrap}.body{flex:1;min-height:0;width:min(100%,1760px);margin:0 auto;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,3fr) minmax(0,1fr);gap:18px;padding:0 24px 24px}.body.servicing-mode{grid-template-columns:minmax(0,1fr) minmax(0,4fr)}.body.labs-mode{grid-template-columns:minmax(0,1fr)}.prompts-pane,.draft-pane,.chat-pane{background:#fff;border:1px solid #e2e8f0;border-radius:22px;box-shadow:0 10px 30px #0f172a0d}.prompts-pane,.draft-pane{display:flex;flex-direction:column;gap:10px;padding:14px;overflow-y:auto;min-height:0;font-size:12px}.chat-pane{display:flex;flex-direction:column;min-height:0;overflow:hidden;height:100%}.input-bar{display:flex;gap:10px;padding:16px;background:#fff;border-top:1px solid #e2e8f0;position:sticky;bottom:0;z-index:2}.quick-start-guide{display:flex;flex-direction:column;gap:12px;padding-bottom:6px;border-bottom:1px solid #e2e8f0}.qs-title{font-size:.8rem;font-weight:700;color:#0f172a}.qs-toggle{display:flex;align-items:center;gap:6px;background:none;border:none;padding:0;cursor:pointer;font-size:inherit;font-family:inherit}.qs-chevron{transition:transform .2s}.qs-chevron--open{transform:rotate(180deg)}.qs-step{display:flex;gap:12px}.qs-step-num{width:20px;height:20px;border-radius:50%;background:#eef2ff;color:#4338ca;display:grid;place-items:center;font-size:.7rem;font-weight:700;flex-shrink:0}.qs-step-body{display:flex;flex-direction:column;gap:4px}.qs-step-title{font-size:.75rem;font-weight:700}.qs-step-desc{color:#64748b;font-size:.72rem;line-height:1.4}.qs-arrow{font-size:.75rem;color:#64748b;text-align:center}.prompts-header{display:flex;align-items:center;gap:5px;font-size:.88rem;font-weight:700;margin-top:4px;color:#0f172a}.prompts-body{display:grid;gap:6px}.prompt-card,.prompt-chip{text-align:left;background:#eef2ff;border:1px solid #e0e7ff;border-radius:10px;padding:7px 10px;position:relative}.prompt-card:hover,.prompt-chip:hover{background:#e0e7ff}.prompt-card-title{font-size:.75rem;font-weight:600;margin-bottom:3px}.prompt-card-preview{color:#475569;font-size:.7rem;line-height:1.4}.prompt-section{display:grid;gap:10px}.prompt-section-title{display:flex;align-items:center;gap:5px;font-size:.84rem;font-weight:700;color:#0f172a;margin-bottom:4px}.prompt-section-title--toggle{cursor:pointer;-webkit-user-select:none;user-select:none;margin-bottom:0}.prompt-section-title--toggle:hover{color:#4f46e5}.section-icon{display:inline-flex;align-items:center;flex-shrink:0}.section-chevron{margin-left:auto;color:#94a3b8;transition:transform .2s}.section-chevron--open{transform:rotate(180deg)}.prompt-section-title--wip{color:#dc2626}.prompt-section-body{display:grid;gap:5px}.prompt-section--accordion{display:flex;flex-direction:column;gap:5px}.prompt-section-body--indented{padding-left:12px;border-left:2px solid #e0e7ff}.merchant-scope{display:flex;flex-direction:column;gap:5px;padding:8px 10px;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:10px;margin-top:2px}.scope-header{font-size:.65rem;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#15803d}.scope-row{display:flex;align-items:center;gap:5px}.scope-dot{width:6px;height:6px;border-radius:50%;flex-shrink:0}.scope-dot--active{background:#22c55e;box-shadow:0 0 0 2px #bbf7d0}.scope-dot--neutral{background:#94a3b8}.scope-label{font-size:.68rem;font-weight:600;color:#475569;min-width:44px}.scope-id-chip{all:unset;cursor:pointer;font-family:SFMono-Regular,ui-monospace,Consolas,monospace;font-size:.65rem;background:#fff;border:1px solid #bbf7d0;border-radius:4px;padding:1px 5px;color:#15803d;max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;transition:background .1s}.scope-id-chip:hover{background:#dcfce7}.scope-clear{all:unset;cursor:pointer;font-size:.85rem;color:#94a3b8;line-height:1;padding:1px 4px;border-radius:4px;transition:color .1s,background .1s}.scope-clear:hover{color:#ef4444;background:#fee2e2}.scope-hint{font-size:.72rem;color:#64748b;margin-top:2px}.scope-hint-card{display:flex;align-items:center;gap:5px;margin-top:6px;padding:5px 8px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:6px;font-size:.71rem;color:#94a3b8}.prompt-chip--resolved{background:#f0fdf4;border-color:#bbf7d0;position:relative}.prompt-chip--resolved:hover{background:#dcfce7}.chip-resolved-dot{display:inline-block;width:6px;height:6px;border-radius:50%;background:#22c55e;position:absolute;top:8px;right:10px}.token-counter{font-size:11px;color:#94a3b8;text-align:right;padding:2px 4px 0}.token-counter--over{color:#dc2626;font-weight:600}.error-banner{margin-top:12px;padding:12px 14px;background:#fee2e2;border:1px solid #fca5a5;color:#b91c1c;border-radius:14px;display:flex;justify-content:space-between;align-items:center;gap:10px}.retry-btn{border:none;background:#dc2626;color:#fff;padding:8px 12px;border-radius:999px;cursor:pointer}.user-avatar{width:24px;height:24px;border-radius:50%;object-fit:cover}.user-name{font-weight:600;font-size:13px;color:#0f172a;max-width:160px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.qs-id-pill{display:inline-flex;padding:2px 8px;background:#eef2ff;border-radius:999px;color:#1d4ed8;font-weight:700}.auth-warning{color:#b91c1c;font-size:.9rem}.login-gate-shell{min-height:100vh;display:grid;place-items:center;padding:24px;background:#f8fafc}.login-gate-card{width:min(540px,100%);border-radius:24px;background:#fff;padding:32px;box-shadow:0 18px 60px #0f172a14;text-align:center;display:grid;gap:18px}.login-gate-logo{font-size:1.4rem;font-weight:800;color:#4f46e5}.login-gate-buttons{display:grid;gap:12px}.login-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;border:1px solid #e2e8f0;background:#fff;color:#111827;border-radius:14px;padding:12px 16px;text-decoration:none;font-weight:600}.login-btn.github{border-color:#24292e;color:#24292e}.login-btn.linkedin{border-color:#0a66c2;color:#0a66c2}.session-badge{display:inline-flex;align-items:center;gap:6px;border-radius:999px;padding:6px 12px}.session-badge svg{width:14px;height:14px}.messages{flex:1;overflow-y:auto;padding:20px;display:flex;flex-direction:column;gap:14px;background:#f8fafc}.msg{display:flex;gap:12px;max-width:100%}.msg.structured-msg{width:100%}.msg.structured-msg .bubble{flex:1;min-width:0}.msg.ai{justify-content:flex-start}.msg.user{justify-content:flex-end}.avatar{width:36px;height:36px;border-radius:50%;display:grid;place-items:center;font-size:1rem;color:#fff;background:#4f46e5;flex-shrink:0}.msg.ai .avatar{background:transparent}.bubble{max-width:100%;background:#fff;border:1px solid #e2e8f0;border-radius:18px;padding:14px 16px;color:#0f172a;line-height:1.6;white-space:pre-wrap;word-break:break-word}.bubble.structured-data-card{background:#f8fafc;border-color:#cbd5e1}.input-bar{display:flex;gap:10px;padding:16px;background:#fff;border-top:1px solid #e2e8f0}textarea{flex:1;resize:none;min-height:46px;border-radius:16px;border:1px solid #e2e8f0;padding:14px 16px;outline:none}textarea:disabled{background:#f1f5f9}.send-btn{width:52px;height:52px;border-radius:50%;border:none;background:#4f46e5;color:#fff;display:grid;place-items:center}.send-btn:disabled{opacity:.55;cursor:not-allowed}.draft-header{font-weight:700;margin-bottom:14px}.phase-indicator{display:flex;align-items:center;gap:8px;margin-bottom:10px}.phase-indicator-label{font-size:.9rem;color:#475569;font-weight:600}.phase-indicator-badge{display:inline-flex;align-items:center;justify-content:center;padding:5px 10px;border-radius:999px;background:#ecfdf5;color:#047857;font-size:.85rem;font-weight:700;border:1px solid #a7f3d0}.phase-tracker,.phase-tag,.phase-tag--active,.phase-tag--completed,.phase-tag-icon,.phase-connector,.phase-step:last-child .phase-connector{display:none!important}.progress-bar-wrap{display:flex;align-items:center;gap:10px}.progress-label{color:#475569;font-size:.9rem;white-space:nowrap}.progress-bar{flex:1;min-width:0;background:#e2e8f0;border-radius:999px;height:12px}.progress-fill{height:100%;background:#4f46e5;border-radius:999px;transition:width .2s ease}.draft-body{display:grid;gap:6px}.field-row{display:flex;gap:10px;align-items:center;padding:6px 0}.field-row--filled{opacity:1}.field-content{display:flex;flex-wrap:wrap;gap:8px;align-items:center;min-width:0;flex:1}.field-val{color:#475569;font-size:.92rem;white-space:normal}.field-pending{opacity:.7}.field-icon{min-width:24px;width:24px;height:24px;display:inline-grid;place-items:center;font-size:.85rem;color:#475569;background:#fff;border:1px solid #cbd5e1;border-radius:999px}.field-icon--filled{color:#047857;background:#dcfce7;border-color:#86efac}.field-row--filled .field-key{color:#0f5132}.field-row--filled .field-val{color:#134e4a}.draft-status{color:#0f766e;font-size:.85rem;font-weight:600;margin-top:8px}.draft-section{margin-bottom:6px}.draft-section-header{font-size:.72rem;font-weight:700;text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;padding:8px 0 4px;border-bottom:1px solid #f1f5f9;margin-bottom:2px}.draft-section:first-child .draft-section-header{padding-top:2px}.phase-indicator-badge--detect{background:#ede9fe;color:#6d28d9;border-color:#c4b5fd}.detect-summary{font-size:.8rem;color:#6d28d9;font-weight:600;margin:2px 0 6px}.field-key{font-size:.92rem;font-weight:600;color:#0f172a;margin-bottom:0}.field-val{color:#475569;font-size:.92rem}.success-card{display:grid;gap:8px;padding:10px;background:#eff6ff;border:1px solid #c7d2fe;border-radius:12px}.success-card h4{margin:0;font-size:.96rem;line-height:1.3}.success-tick{font-size:.85em}.copy-box{width:100%;border:1px solid transparent;border-radius:12px;padding:10px;text-align:left;background:#fff}.toast{position:fixed;bottom:22px;right:22px;min-width:220px;padding:10px 14px;background:#111827;color:#fff;border-radius:999px;opacity:0;transition:opacity .2s ease;pointer-events:none}.toast.show{opacity:1}.error-banner{margin:0 16px 16px;padding:12px 14px;background:#fee2e2;border:1px solid #fecaca;border-radius:14px;color:#991b1b}.structured-data-card{padding:6px;border-radius:14px;background:#f8fafc;border:1px solid #cbd5e1}.structured-header{display:flex;align-items:flex-start;justify-content:space-between;gap:6px;margin-bottom:4px}.structured-label{font-size:.88rem;font-weight:700;color:#0f172a;margin-bottom:3px}.structured-grid{display:grid;grid-template-columns:1fr;gap:12px}.structured-grid--dynamic{display:grid;grid-template-columns:repeat(auto-fit,minmax(300px,1fr));gap:12px;align-items:start}.structured-grid--dominant{display:grid;grid-template-columns:1fr 1fr;gap:12px;align-items:start}.structured-grid--dominant-row{display:flex;flex-direction:row;gap:12px;align-items:flex-start;margin-top:12px}.dominant-primary{flex:1;min-width:0}.dominant-secondary{flex:1;min-width:0;display:flex;flex-direction:column;gap:12px}.structured-section{background:#fff;border:1px solid #e2e8f0;border-radius:10px;padding:10px;min-width:0}.structured-section h3{font-size:.78rem;font-weight:700;letter-spacing:.02em;color:#475569;margin-bottom:8px;padding-bottom:4px;border-bottom:1px solid #f1f5f9}.structured-section>dl{display:grid;grid-template-columns:1fr;gap:8px}.structured-inner-subgrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:10px;margin-top:10px}.structured-inner-subgrid--dominant{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:10px;align-items:start}.structured-subgrid-rest{display:flex;flex-direction:column;gap:10px}.structured-subcell{background:#f8fafc;border:1px solid #f1f5f9;border-radius:6px;padding:8px 10px;min-width:0}.structured-subcell h4{font-size:.72rem;font-weight:700;letter-spacing:.02em;color:#475569;margin-bottom:6px;padding-bottom:4px;border-bottom:1px solid #f1f5f9}.structured-subcell>dl{display:grid;grid-template-columns:1fr;gap:6px}.structured-item{display:grid;grid-template-columns:minmax(0,max-content) minmax(56px,1fr);align-items:baseline;gap:8px;padding:5px 0;border-bottom:1px solid #f1f5f9}.structured-item:last-child,.structured-group:last-child{border-bottom:none}.structured-item dt{font-size:.78rem;color:#475569;font-weight:600;text-align:left}.structured-item dd{margin:0;font-size:.78rem;color:#64748b;line-height:1.4;word-break:normal;overflow-wrap:break-word;min-width:0}.structured-group{padding:3px 0;border-bottom:1px solid #f1f5f9;grid-column:1 / -1}.structured-group>dt{font-size:.72rem;color:#64748b;letter-spacing:.01em;font-weight:600;margin-bottom:6px}.structured-value.mono{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;color:#475569}.structured-value.tag-list{display:flex;flex-wrap:wrap;gap:4px;padding-top:2px}.tag-pill{display:inline-block;padding:1px 8px;border-radius:999px;background:#eff6ff;border:1px solid #bfdbfe;color:#1d4ed8;font-size:.78rem;font-weight:500;white-space:nowrap}.task-stepper{display:flex;flex-direction:column;padding:2px 0}.task-step{display:flex;align-items:center;gap:10px;padding:5px 0;position:relative}.task-step:not(:last-child):after{content:"";position:absolute;left:11px;top:calc(50% + 11px);height:calc(100% - 11px);width:2px;background:#e2e8f0}.task-step-icon{width:22px;height:22px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-size:11px;font-weight:700;flex-shrink:0}.task-step--completed .task-step-icon{background:#16a34a;color:#fff}.task-step--failed .task-step-icon{background:#dc2626;color:#fff}.task-step--pending .task-step-icon{background:#fff;border:2px solid #cbd5e1;color:#94a3b8}.task-step-body{display:flex;align-items:center;gap:8px;flex:1;min-width:0}.task-step-label{font-size:.78rem;font-weight:500;color:#0f172a}.task-step-badge{font-size:.62rem;font-weight:700;letter-spacing:.07em;text-transform:uppercase;padding:2px 7px;border-radius:999px}.task-step--completed .task-step-badge{background:#dcfce7;color:#15803d}.task-step--pending .task-step-badge{background:#fef3c7;color:#92400e}.task-step--failed .task-step-badge{background:#fee2e2;color:#b91c1c}.task-step-optional{font-size:.65rem;color:#9ca3af;font-style:italic;margin-right:4px}.msg-list{padding-left:18px;margin:0}.msg-list li{margin-bottom:4px}.msg-sublist{padding-left:16px;margin:4px 0 2px;border-left:2px solid rgba(99,102,241,.35);list-style-type:none}.msg-sublist li{margin-bottom:3px;opacity:.88;font-size:.93em}.raw-data-block{background:#111827;color:#f8fafc;border-radius:12px;padding:12px;overflow-x:auto}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.profile-dropdown-wrap{position:relative}.user-chip{display:inline-flex;align-items:center;gap:6px;border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:5px 10px;cursor:pointer;transition:background .12s,border-color .12s}.user-chip:hover{background:#f1f5f9;border-color:#cbd5e1}.profile-chevron{color:#94a3b8;transition:transform .15s;flex-shrink:0}.profile-chevron--open{transform:rotate(180deg)}.profile-dropdown-menu{position:absolute;top:calc(100% + 6px);right:0;min-width:140px;background:#fff;border:1px solid #e2e8f0;border-radius:12px;box-shadow:0 8px 24px #0f172a1a;z-index:100;overflow:hidden}.profile-menu-item{display:block;width:100%;text-align:left;background:none;border:none;padding:10px 14px;font-size:13px;font-weight:500;color:#374151;cursor:pointer;transition:background .1s}.profile-menu-item:hover{background:#f1f5f9}.profile-menu-item--danger{color:#dc2626}.profile-menu-item--danger:hover{background:#fee2e2}.chat-pane-toolbar{display:flex;align-items:center;gap:8px;padding:6px 14px;border-bottom:1px solid #f1f5f9;background:#fff;flex-shrink:0;font-size:12px;color:#64748b}.chat-pane-toolbar--track{background:#fffbeb;border-bottom-color:#fde68a}.chat-pane-toolbar--manage{background:#f0fdf4;border-bottom-color:#bbf7d0}.chat-pane-toolbar--labs{background:#faf5ff;border-bottom-color:#e9d5ff}.wcb-badge--labs{background:#ede9fe;color:#6d28d9}.chat-pane-toolbar .wcb-desc{flex:1}.chat-pane-toolbar .chat-action-btn{margin-left:auto}.chat-pane-toolbar .chat-action-btn+.chat-action-btn{margin-left:0}.chat-action-btn{border:1px solid #e2e8f0;background:#fff;border-radius:999px;padding:4px 12px;font-size:12px;font-weight:600;color:#475569;cursor:pointer;transition:background .12s,border-color .12s,color .12s;white-space:nowrap}.chat-action-btn:hover{background:#f1f5f9;border-color:#cbd5e1}.chat-action-btn--destructive{color:#dc2626;border-color:#fecaca}.chat-action-btn--destructive:hover{background:#fee2e2;border-color:#fca5a5}
