:root{color-scheme:light;font-family:Inter,Arial,Helvetica,sans-serif;background:#f4f7fb;color:#111827;--sidebar-width:336px}*{box-sizing:border-box}body,html{margin:0;min-height:100%}body{min-height:100vh;background:linear-gradient(180deg,#eef4ff,#f8fafc)}body.is-resizing-sidebar{cursor:col-resize;-webkit-user-select:none;-moz-user-select:none;user-select:none}.username-overlay{min-height:100vh;display:flex;align-items:center;justify-content:center;padding:24px;background:linear-gradient(180deg,rgba(219,234,254,.68),rgba(248,250,252,.96))}.username-gate-form{width:min(100%,420px);display:flex;flex-direction:column;gap:14px;padding:32px 28px;border:1px solid #dbe4f0;border-radius:20px;background:rgba(255,255,255,.96);box-shadow:0 24px 60px rgba(15,23,42,.12)}.username-gate-form h2{margin:0;font-size:1.5rem}.username-gate-form input{width:100%;min-height:48px;padding:12px 14px;border:1px solid #cbd5e1;border-radius:14px;font:inherit;background:#ffffff}.username-gate-form input:focus{outline:2px solid rgba(37,99,235,.18);border-color:#2563eb}.username-gate-form button{min-height:48px;border:0;border-radius:14px;background:#2563eb;color:#ffffff;font:inherit;font-weight:700;cursor:pointer}.username-gate-form button:disabled{opacity:.65;cursor:wait}.username-gate-error{margin:0;color:#b91c1c}main{padding:0;overflow:hidden}.chat-shell,main{height:100dvh;min-height:100vh}.chat-shell{width:100%;margin:0 auto;padding:32px 24px 24px calc(var(--sidebar-width) + 24px);position:relative}.chat-shell,.workspace-grid{display:flex;flex-direction:column}.workspace-grid{flex:1 1;min-height:0;padding-top:24px}.workflow-panel{position:fixed;top:0;left:0;bottom:0;width:var(--sidebar-width);padding:88px 20px 24px;background:rgba(255,255,255,.72);-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);border-right:1px solid #dbe4f0;box-shadow:16px 0 40px rgba(15,23,42,.08);overflow-y:auto;transition:transform .24s ease,box-shadow .24s ease;z-index:20}.workflow-resize-handle{position:absolute;top:0;right:-8px;width:16px;height:100%;cursor:col-resize}.workflow-resize-handle:before{content:"";position:absolute;top:50%;right:6px;transform:translateY(-50%);width:4px;height:72px;border-radius:999px;background:rgba(148,163,184,.55);transition:background .2s ease}.workflow-resize-handle:hover:before{background:rgba(100,116,139,.8)}.workflow-panel-collapsed{transform:translateX(calc(-100% + 28px));box-shadow:none}.chat-panel{flex:1 1;min-height:0;min-width:0;display:flex;flex-direction:column;max-width:960px;width:100%;margin:0 auto}.final-recap-card{flex-shrink:0;margin-bottom:16px;background:rgba(255,255,255,.92)}.final-recap-toggle{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:0;border:0;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}.final-recap-label{margin-bottom:0}.final-recap-chevron{width:32px;height:32px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(219,234,254,.9);color:#1d4ed8;font-size:1.35rem;font-weight:700;line-height:1;flex-shrink:0}.final-recap-content{margin-top:12px}.final-recap-content p+p{margin-top:14px}.chat-header h1{margin:0 0 8px;font-size:2rem}.chat-header{padding:18px 20px;display:flex;flex-direction:column;gap:16px;border:1px solid rgba(191,219,254,.92);border-radius:22px;background:rgba(255,255,255,.84);box-shadow:0 18px 40px rgba(15,23,42,.08);-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.chat-header p{margin:0;color:#4b5563}.chat-header-main{display:flex;flex-direction:column;gap:16px}.chat-header-top-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.chat-header-copy{display:flex;flex-direction:column;gap:8px}.chat-header-progress{display:flex;align-items:center;gap:12px;padding-top:2px}.chat-header-progress-track{position:relative;flex:1 1;min-width:0;height:8px;overflow:hidden;border-radius:999px;background:rgba(191,219,254,.72)}.chat-header-progress-fill{position:absolute;inset:0 auto 0 0;display:block;border-radius:inherit;background:linear-gradient(90deg,#60a5fa,#7dd3fc)}.chat-header-progress-label{flex-shrink:0;color:#2563eb;font-size:.88rem;font-weight:700;white-space:nowrap}.header-info-wrap{position:relative;flex-shrink:0}.header-info-button{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:10px;background:rgba(255,255,255,.95);color:#1d4ed8;font:inherit;font-size:1rem;font-weight:800;cursor:help;box-shadow:0 12px 28px rgba(15,23,42,.08)}.header-info-button:focus-visible,.header-info-button:hover{background:#ffffff;border-color:#93c5fd;outline:none}.header-info-tooltip{position:absolute;top:calc(100% + 10px);right:0;width:min(320px,calc(100vw - 48px));padding:14px 16px;border:1px solid #dbe4f0;border-radius:16px;background:rgba(255,255,255,.98);color:#334155;box-shadow:0 22px 46px rgba(15,23,42,.14);opacity:0;visibility:hidden;transform:translateY(-6px);transition:opacity .18s ease,transform .18s ease,visibility .18s ease;pointer-events:none;z-index:25}.header-info-wrap:focus-within .header-info-tooltip,.header-info-wrap:hover .header-info-tooltip{opacity:1;visibility:visible;transform:translateY(0)}.header-info-tooltip strong{display:block;margin-bottom:8px;color:#0f172a}.header-info-tooltip p{margin:0;font-size:.92rem;line-height:1.45;color:#475569}.header-info-tooltip p+p{margin-top:8px}.username-welcome{color:#1d4ed8;font-weight:700}.secondary-button{border:1px solid #cbd5e1;border-radius:999px;background:rgba(255,255,255,.9);color:#111827;padding:10px 16px;font:inherit;font-weight:600;cursor:pointer}.secondary-button:hover{background:#ffffff}.sidebar-toggle-button{position:fixed;top:28px;left:24px;z-index:30;border:1px solid #cbd5e1;border-radius:999px;background:rgba(255,255,255,.95);color:#111827;padding:10px 16px;font:inherit;font-weight:700;cursor:pointer;box-shadow:0 14px 30px rgba(15,23,42,.08)}.sidebar-toggle-button.is-collapsed{left:14px}.chat-content{flex:1 1;display:flex;align-items:flex-start;min-height:0;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding:8px 0 24px}.message-list{min-width:0;flex-direction:column;gap:18px}.message-list,.message-row{width:100%;display:flex}.message-row-user{justify-content:flex-end}.message-row-assistant{justify-content:flex-start}.message-bubble{max-width:min(82%,720px);padding:14px 16px;border-radius:20px;white-space:pre-wrap;line-height:1.65;border:1px solid #dbe4f0;box-shadow:0 12px 30px rgba(15,23,42,.05)}.message-bubble p{margin:0}.message-bubble p+p{margin-top:12px}.thinking-indicator{display:inline-flex;align-items:center;gap:10px}.thinking-spinner{width:14px;height:14px;border-radius:999px;border:2px solid rgba(37,99,235,.18);border-top-color:#2563eb;animation:thinking-spin .8s linear infinite;flex-shrink:0}.message-bubble-user{background:#2563eb;color:#ffffff;border-bottom-right-radius:8px;border-color:#2563eb}.message-bubble-assistant{background:rgba(255,255,255,.88);color:#111827;border-bottom-left-radius:8px}.chat-form{display:flex;align-items:center;gap:10px;min-width:0;padding:8px 10px;border:1px solid #dbe4f0;border-radius:20px;background:rgba(255,255,255,.92);box-shadow:0 20px 45px rgba(15,23,42,.08)}.chat-input{flex:1 1;display:block;min-width:0;height:0;min-height:38px;max-height:160px;margin:0;padding:8px 4px;border:0;font:inherit;background:transparent;line-height:1.35;resize:none;overflow-y:hidden}.chat-input:focus{outline:none}.chat-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}.chat-button{width:-moz-fit-content;width:fit-content;min-width:42px;min-height:42px;border:0;border-radius:999px;background:#2563eb;color:white;padding:8px 16px;font-weight:600;cursor:pointer}.chat-button:disabled{opacity:.6;cursor:wait}.chat-icon-button{display:inline-flex;align-items:center;justify-content:center;padding:8px 0;font-size:1.2rem;line-height:1}.chat-record-button{min-width:52px;padding:8px 12px;background:#e2e8f0;color:#0f172a;font-size:.95rem}.chat-record-icon,.chat-record-spinner{width:18px;height:18px;display:block}.chat-record-spinner{border-radius:999px;border:2px solid rgba(255,255,255,.35);border-top-color:currentcolor;animation:thinking-spin .8s linear infinite}.chat-record-button.is-recording{background:#dc2626;color:#ffffff;background-image:linear-gradient(110deg,rgba(255,255,255,0),rgba(255,255,255,.2) 38%,rgba(255,255,255,.48) 50%,rgba(255,255,255,.2) 62%,rgba(255,255,255,0));background-size:220% 100%;box-shadow:0 0 0 0 rgba(220,38,38,.32);animation:record-shimmer 1.25s linear infinite,record-pulse 1.8s ease-out infinite}.chat-record-button.is-transcribing{background:#0f172a;color:#ffffff}.chat-record-button:not(:disabled):hover{background:#cbd5e1}.chat-record-button.is-recording:not(:disabled):hover{background:#b91c1c}.chat-record-button.is-transcribing:not(:disabled):hover{background:#020617}.composer-secondary-button{padding:8px 14px}.response-card{width:100%;padding:18px;border-radius:16px;background:rgba(255,255,255,.8);border:1px solid #dbe4f0;white-space:pre-wrap;line-height:1.6;box-shadow:0 12px 30px rgba(15,23,42,.05)}.response-card h2{margin:0 0 8px;font-size:1.1rem}.section-panel-title{margin:0 0 16px;font-size:1.85rem;color:#1d4ed8}.response-card p{margin:0}.response-empty{min-height:220px;display:flex;flex-direction:column;justify-content:center;color:#4b5563}.response-label{display:block;font-size:.9rem;font-weight:700;color:#1d4ed8;margin-bottom:8px}.error-text{margin:0 0 12px;color:#b91c1c}.chat-composer-wrap{flex-shrink:0;padding-top:6px;padding-bottom:2px;background:linear-gradient(180deg,rgba(248,250,252,0),#f8fafc 22%)}.field-chip-wrap{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.field-chip{display:inline-flex;align-items:center;border-radius:999px;padding:6px 10px;background:#e5e7eb;color:#374151;font-size:.85rem;font-weight:600}.muted-text{color:#6b7280}.step-list{list-style:none;padding:0;margin:0;gap:12px}.step-list,.step-list-item{display:flex;flex-direction:column}.step-list-item{gap:14px;border-radius:14px;border:1px solid #dbe4f0;padding:14px}.step-list-item strong{display:block;margin-bottom:0}.step-list-item p{margin:0;color:#4b5563;font-size:.92rem}.step-toggle{width:100%;display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border:0;background:transparent;padding:0;text-align:left;cursor:pointer;color:inherit;font:inherit}.step-toggle-copy{min-width:0}.step-toggle-copy strong{font-size:1.05rem}.step-toggle-meta{display:flex;align-items:center;gap:10px;flex-shrink:0}.step-chevron{width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center;border-radius:999px;background:rgba(219,234,254,.9);color:#1d4ed8;font-size:1.2rem;font-weight:700;line-height:1}.step-details{display:flex;flex-direction:column;gap:12px}.step-status{align-self:flex-start;border-radius:999px;padding:4px 10px;font-size:.8rem;font-weight:700;background:#e5e7eb;color:#374151}.step-current{border-color:#fde68a;background:rgba(254,249,195,.92)}.step-current .step-status{background:#fef3c7;color:#92400e}.step-complete{border-color:#bbf7d0;background:rgba(240,253,244,.9)}.step-complete .step-status{background:#dcfce7;color:#15803d}.step-pending{border-color:#fecaca;background:rgba(254,242,242,.94)}.step-pending .step-status{background:#fee2e2;color:#b91c1c}@keyframes thinking-spin{0%{transform:rotate(0deg)}to{transform:rotate(1turn)}}@keyframes record-shimmer{0%{background-position:200% 0}to{background-position:-20% 0}}@keyframes record-pulse{0%{box-shadow:0 0 0 0 rgba(220,38,38,.32)}70%{box-shadow:0 0 0 10px rgba(220,38,38,0)}to{box-shadow:0 0 0 0 rgba(220,38,38,0)}}@media (max-width:640px){.chat-shell{padding:96px 12px 12px}.workflow-panel{width:min(88vw,320px);padding-top:84px;box-shadow:16px 0 40px rgba(15,23,42,.12)}.workflow-panel-collapsed{transform:translateX(-100%)}.workflow-resize-handle{display:none}.chat-content{padding:24px 0 20px}.chat-header h1{font-size:1.7rem;overflow-wrap:anywhere}.chat-header{gap:10px}.chat-header-main{gap:14px}.chat-header-top-row{flex-direction:column;gap:10px}.chat-header-progress{align-items:flex-start;flex-direction:column;gap:8px}.chat-header-progress-track{width:100%}.header-info-wrap{align-self:flex-end}.header-info-tooltip{right:0;width:min(320px,calc(100vw - 24px))}.message-bubble{max-width:100%}.sidebar-toggle-button{top:20px;left:12px;max-width:calc(100vw - 24px);padding:9px 14px}.sidebar-toggle-button.is-collapsed{left:12px}.step-toggle{flex-direction:column}.step-toggle-meta{width:100%;justify-content:space-between}.chat-form{align-items:stretch;flex-wrap:wrap;gap:8px;padding:10px;border-radius:24px}.chat-actions{width:100%;justify-content:space-between}.chat-button,.composer-secondary-button{min-height:44px}.chat-record-button{min-width:56px}.composer-secondary-button{flex:1 1;text-align:center}}