:root{--yin-visual-height: 100vh;color:#181a1f;background:#f4f3ef;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}*{box-sizing:border-box}html,body,#root{min-height:100%;margin:0}button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed}.app-shell{display:grid;min-height:100vh;grid-template-columns:minmax(0,1fr) 390px;gap:14px;padding:14px;background:linear-gradient(180deg,#ffffffc7,#fff0),#f4f3ef}.chat-panel,.workflow-panel{min-width:0}.chat-panel{display:grid;grid-template-rows:auto minmax(0,1fr);overflow:hidden;border:1px solid rgba(38,41,48,.1);border-radius:8px;background:#fbfaf7;box-shadow:0 18px 45px #23262d14}.topbar{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 20px 12px;border-bottom:1px solid rgba(38,41,48,.08)}.eyebrow{margin-bottom:4px;color:#ce6a3a;font-size:12px;font-weight:750;letter-spacing:0;text-transform:uppercase}.topbar h1{margin:0;font-size:24px;line-height:1.15;letter-spacing:0}.title-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.topbar-actions{display:flex;align-items:center;gap:10px}.account-trigger{display:inline-flex;align-items:center;min-width:0;max-width:180px;height:38px;gap:7px;border:1px solid rgba(38,41,48,.1);border-radius:8px;padding:0 11px;background:#fff;color:#20242b;font-size:13px;font-weight:800;box-shadow:0 8px 20px #23262d0f}.account-trigger span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-badge{display:inline-flex;align-items:center;width:max-content;min-height:22px;border:1px solid rgba(68,115,76,.18);border-radius:999px;padding:0 8px;background:#eef5ed;color:#315f3a;font-size:11px;font-weight:800;line-height:1.2;white-space:nowrap}.status-chip,.icon-button,.send-button,.primary-action{border:0;border-radius:8px}.status-chip{display:inline-flex;align-items:center;min-height:38px;gap:8px;padding:0 12px;background:#eef5ed;color:#315f3a;font-size:13px;font-weight:700;white-space:nowrap}.status-chip[data-busy=true]{background:#fff1e8;color:#a54824}.icon-button{display:inline-grid;width:38px;height:38px;place-items:center;background:#20242b;color:#fff}.mobile-progress-strip{display:none}.assistant-chat-shell{display:grid;height:calc(100vh - 84px);min-height:0;grid-template-rows:minmax(0,1fr) auto}.thread-viewport{display:flex;min-height:0;flex-direction:column;overflow-y:auto;padding:22px;scrollbar-width:thin}.thread-viewport>div:first-child{display:flex;flex-direction:column;gap:14px}.empty-state{display:grid;max-width:360px;margin:10vh auto 0;place-items:center;gap:12px;color:#6d717b;text-align:center}.empty-state p{margin:0;line-height:1.65}.message-row{display:flex;gap:10px;width:100%}.message-row+.message-row{margin-top:14px}.user-message{justify-content:flex-end}.assistant-message{justify-content:flex-start}.assistant-avatar{display:grid;width:32px;height:32px;flex:0 0 auto;place-items:center;border-radius:8px;background:#20242b;color:#fff;font-size:13px;font-weight:850}.message-bubble{max-width:min(720px,78%);border:1px solid rgba(38,41,48,.08);border-radius:8px;padding:12px 14px;background:#fff;box-shadow:0 8px 22px #23262d0f}.user-message .message-bubble{border-color:#20242b2e;background:#20242b;color:#fff}.message-text{margin:0;white-space:pre-wrap;overflow-wrap:anywhere;font-size:15px;line-height:1.65}.message-meta{display:flex;margin-bottom:8px}.assistant-message:has(.message-text[data-status=running]:empty){display:none}.thinking-row{margin-top:14px}.thinking-card{display:grid;grid-template-columns:minmax(0,1fr) auto;max-width:min(520px,78%);gap:12px;align-items:center;border:1px solid rgba(233,128,61,.2);border-radius:8px;padding:12px 14px;background:#fff8f2;box-shadow:0 8px 22px #23262d0f}.thinking-copy{display:grid;min-width:0;gap:3px}.thinking-copy strong{overflow:hidden;color:#68331a;font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.thinking-copy span,.thinking-elapsed{color:#8f6b57;font-size:12px;line-height:1.45}.thinking-dots{display:inline-flex;gap:4px;align-items:center}.thinking-dots span{width:6px;height:6px;border-radius:999px;background:#e9803d;animation:pulse-dot 1.2s ease-in-out infinite}.thinking-dots span:nth-child(2){animation-delay:.18s}.thinking-dots span:nth-child(3){animation-delay:.36s}.thinking-elapsed{grid-column:1 / -1}.message-error,.error-bar{color:#a92323}.error-bar{margin-bottom:10px;border:1px solid rgba(169,35,35,.18);border-radius:8px;padding:10px 12px;background:#fff3f0;font-size:13px}.login-required-bar{display:block;width:100%;margin-bottom:10px;border:1px solid rgba(38,41,48,.1);border-radius:8px;padding:10px 12px;background:#f3f5ef;color:#425038;font-size:13px;font-weight:700;text-align:left}.composer-area{padding:0 22px 22px;background:linear-gradient(180deg,#fbfaf700,#fbfaf7 18px)}.composer-busy{display:none}.composer-shell{display:grid;grid-template-columns:minmax(0,1fr) 42px;gap:10px;margin-top:0;border:1px solid rgba(38,41,48,.12);border-radius:8px;padding:10px;background:#fffffff5;box-shadow:0 14px 35px #23262d14;transition:border-color .18s ease,box-shadow .18s ease,transform .18s ease,background-color .18s ease}.composer-shell:focus-within,.composer-shell:has(.composer-input:not(:placeholder-shown)){border-color:#e9803d61;background:#fff;box-shadow:0 16px 38px #23262d1a;transform:translateY(-1px)}.composer-shell[data-disabled=true]{background:#f1f0ec;box-shadow:none;opacity:.82}.composer-input{width:100%;max-height:180px;min-height:42px;resize:none;border:0;outline:0;padding:11px 8px;background:transparent;color:#181a1f;font-size:15px;line-height:1.45}.composer-input::placeholder{color:#90949f}.send-button{display:inline-grid;width:42px;height:42px;place-items:center;align-self:end;background:#e9803d;color:#fff;transition:background-color .16s ease,color .16s ease,opacity .16s ease,transform .16s ease}.composer-shell:focus-within .send-button:not(:disabled),.composer-shell:has(.composer-input:not(:placeholder-shown)) .send-button:not(:disabled){transform:translateY(-1px)}.send-button:disabled{background:#dedbd3;color:#8f8b82}.workflow-panel{display:flex;flex-direction:column;gap:12px;overflow-y:auto;max-height:calc(100vh - 28px)}.panel-card{border:1px solid rgba(38,41,48,.1);border-radius:8px;padding:14px;background:#ffffffdb;box-shadow:0 12px 28px #23262d0f}.account-modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:30;display:grid;place-items:center;padding:18px;background:#181a1f6b;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.account-modal{display:grid;width:min(420px,100%);gap:13px;border:1px solid rgba(255,255,255,.4);border-radius:8px;padding:16px;background:#fffffffa;box-shadow:0 28px 80px #12161d38}.account-modal-header{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.account-modal-header span{display:block;color:#777c86;font-size:12px;line-height:1.4}.account-modal-header strong{display:block;margin-top:2px;color:#20242b;font-size:18px;line-height:1.25}.icon-button.subtle{width:34px;height:34px;flex:0 0 auto;background:#f4f3ef;color:#555b65}.account-form{display:grid;gap:8px}.account-tabs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}.account-tabs button{min-height:34px;border:1px solid rgba(38,41,48,.12);border-radius:8px;background:#f4f3ef;color:#555b65;font-weight:800}.account-tabs button[data-active=true]{background:#20242b;color:#fff}.account-form input{min-width:0;border:1px solid rgba(38,41,48,.16);border-radius:8px;padding:11px 12px;background:#fff;color:#20242b;font-size:15px}.account-error,.account-notice{margin:0;font-size:12px;line-height:1.45}.account-error{color:#a92323}.account-notice{color:#23724d}.account-code-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px}.secondary-action{display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:36px;border:1px solid rgba(38,41,48,.14);border-radius:8px;padding:0 12px;background:#fff;color:#20242b;font-weight:800}.secondary-action:disabled{opacity:.42}.account-logout{width:100%}.hero-card{background:#20242b;color:#fff}.panel-title{display:flex;align-items:center;gap:8px;margin-bottom:12px;color:inherit;font-size:14px;font-weight:800}.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}.metric-grid div{min-width:0;border-radius:8px;padding:10px;background:#ffffff1a}.metric-grid span,.stage-row span,.stage-placeholder,.quiet-box{color:#777c86;font-size:12px;line-height:1.5}.hero-card .metric-grid span{color:#ffffffad}.metric-grid strong{display:block;overflow:hidden;margin-top:4px;font-size:14px;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.stage-list{display:grid;gap:10px}.stage-row{display:grid;grid-template-columns:12px minmax(0,1fr);gap:10px;align-items:start}.stage-heading{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:2px}.stage-dot{width:10px;height:10px;margin-top:5px;border-radius:999px;background:#d7d4cc}.stage-row[data-status=active] .stage-dot{background:#e9803d}.stage-row[data-status=completed] .stage-dot{background:#3f9153}.stage-row[data-status=failed] .stage-dot{background:#a92323}.stage-row strong{display:block;color:#252830;font-size:13px}.stage-row span{display:block}.actions-card{display:grid;grid-template-columns:1fr 1fr;gap:10px}.primary-action{min-height:42px;padding:0 12px;background:#f1e1d4;color:#9b4c25;font-weight:800}.primary-action.dark{background:#20242b;color:#fff}.primary-action:disabled{opacity:.42}.audio-player{width:100%}.artifact-label{display:flex;margin:10px 0 8px}.quiet-box{border:1px dashed rgba(38,41,48,.18);border-radius:8px;padding:14px;background:#fbfaf7}.timeline-list{display:grid;gap:10px;margin-top:12px;max-height:min(420px,48vh);overflow-y:auto;overscroll-behavior:contain;padding-right:4px;scrollbar-width:thin}.timeline-item{display:grid;grid-template-columns:16px 72px minmax(0,1fr);gap:8px;align-items:start;color:#616670;font-size:12px}.timeline-item p{margin:0;color:#252830;line-height:1.5}.spin{animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@keyframes pulse-dot{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media(max-width:980px){.app-shell{grid-template-columns:1fr}.workflow-panel{max-height:none}.assistant-chat-shell{height:calc(100vh - 110px)}}@media(max-width:720px){html,body,#root{min-height:100dvh}body{background:#fbfaf7}.app-shell{min-height:var(--yin-visual-height, 100dvh);gap:0;padding:0;background:#fbfaf7}.chat-panel{min-height:var(--yin-visual-height, 100dvh);grid-template-rows:auto auto minmax(0,1fr);border:0;border-radius:0;box-shadow:none}.topbar{position:sticky;top:0;z-index:3;gap:10px;padding:max(12px,env(safe-area-inset-top)) 12px 10px;background:#fbfaf7fa;-webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px)}.eyebrow{margin-bottom:2px;font-size:11px}.topbar h1{font-size:20px;line-height:1.2}.topbar-actions{flex:0 0 auto;gap:8px}.status-chip{max-width:46vw;min-height:34px;padding:0 10px;font-size:12px}.status-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.icon-button{width:34px;height:34px}.mobile-progress-strip{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;padding:8px 12px 10px;border-top:1px solid rgba(38,41,48,.06);border-bottom:1px solid rgba(38,41,48,.08);background:#fbfaf7}.mobile-progress-strip div{min-width:0;border-radius:8px;padding:8px 9px;background:#f0eee7}.mobile-progress-strip span{display:block;color:#767b84;font-size:11px;line-height:1.25}.mobile-progress-strip strong{display:block;overflow:hidden;margin-top:3px;color:#20242b;font-size:12px;line-height:1.25;text-overflow:ellipsis;white-space:nowrap}.assistant-chat-shell{height:auto}.thread-viewport{padding:14px 12px 10px;overscroll-behavior:contain}.thread-viewport>div:first-child{gap:12px}.empty-state{margin-top:7vh;padding:0 18px}.assistant-avatar{width:28px;height:28px;border-radius:8px;font-size:12px}.message-row{gap:8px}.message-bubble{max-width:calc(100% - 42px);padding:10px 12px}.user-message .message-bubble{max-width:88%}.message-text{font-size:14px;line-height:1.62}.thinking-card{max-width:calc(100% - 42px);padding:10px 12px}.thinking-copy strong{font-size:13px}.composer-shell{grid-template-columns:minmax(0,1fr) 40px;gap:8px;padding:8px;box-shadow:0 10px 28px #23262d1f}.composer-area{padding:8px 12px calc(10px + env(safe-area-inset-bottom));background:linear-gradient(180deg,#fbfaf700,#fbfaf7 16px)}.composer-busy{display:flex;align-items:center;min-height:28px;gap:8px;margin-bottom:6px;border:1px solid rgba(233,128,61,.18);border-radius:8px;padding:5px 8px;background:#fff8f2;color:#7a3d1f;font-size:12px;line-height:1.25}.composer-busy strong{min-width:0;overflow:hidden;flex:1;font-weight:800;text-overflow:ellipsis;white-space:nowrap}.composer-busy span:not(.composer-busy-dot){color:#9a6a50;font-variant-numeric:tabular-nums}.composer-busy-dot{width:7px;height:7px;flex:0 0 auto;border-radius:999px;background:#e9803d;animation:pulse-dot 1s ease-in-out infinite}.composer-input{min-height:40px;padding:10px 6px;font-size:16px}.send-button{width:40px;height:40px}.icon-button,.send-button,.primary-action{touch-action:manipulation}.workflow-panel{order:2;overflow:visible;max-height:none;padding:10px 10px calc(14px + env(safe-area-inset-bottom));background:#f4f3ef}.workflow-panel .hero-card{display:none}.panel-card{box-shadow:none}.panel-title{margin-bottom:10px}.actions-card,.metric-grid{grid-template-columns:1fr}.timeline-item{grid-template-columns:16px 64px minmax(0,1fr)}}@media(max-width:720px){html[data-keyboard=open],html[data-keyboard=open] body,html[data-keyboard=open] #root{height:var(--yin-visual-height, 100dvh);overflow:hidden}html[data-keyboard=open] .app-shell,html[data-keyboard=open] .chat-panel{height:var(--yin-visual-height, 100dvh);min-height:0;overflow:hidden}html[data-keyboard=open] .topbar,html[data-keyboard=open] .mobile-progress-strip{display:none}html[data-keyboard=open] .composer-area{padding:6px 10px calc(8px + env(safe-area-inset-bottom))}html[data-keyboard=open] .workflow-panel{display:none}}@media(max-width:380px){.topbar h1{font-size:18px}.status-chip{max-width:42vw}.mobile-progress-strip{gap:6px;padding-inline:10px}.mobile-progress-strip div{padding:7px}}
