@font-face{font-family:Pretendard;src:url('/demos/ai-response-streaming/font.woff2') format('woff2');font-weight:100 900;font-display:swap}
:root{--ink:#203d36;--muted:#829083;--green:#2c7255;--paper:#f3f5ee;--navy:#183e36}*{box-sizing:border-box}html,body{margin:0;min-width:0;background:var(--paper);color:var(--ink);font:16px/1.5 Pretendard,'Apple SD Gothic Neo',sans-serif;letter-spacing:-.025em;-webkit-font-smoothing:antialiased}button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default}button:focus-visible,textarea:focus-visible,summary:focus-visible{outline:3px solid #76ad8d;outline-offset:3px}[hidden]{display:none!important}p,h2,ol{margin:0}.demo{max-width:1280px;width:100%;margin:auto;padding:14px 18px 11px;overflow-anchor:none}.journey{display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px;padding:0 0 11px;list-style:none;border-bottom:1px solid #d4ddcf;margin-bottom:11px}.journey li{position:relative;display:flex;gap:9px;align-items:center;min-width:0;color:#93a18d}.journey li+li:before{content:'';width:18px;height:1px;position:absolute;left:-22px;top:50%;background:#cad6c3}.journey li>b{width:29px;height:29px;display:grid;place-items:center;flex-shrink:0;border:1px solid #d1ddc9;border-radius:50%;font-size:13px;font-weight:600;background:#eef2e7}.journey li>div{min-width:0}.journey strong{display:block;font-size:14px;line-height:1.4;font-weight:600}.journey span{display:block;font-size:11px;line-height:1.6;color:#98a18e}.journey em{font-size:12px;font-style:normal;margin-left:6px;white-space:nowrap}.journey li[data-state=current]{color:#2b7252}.journey li[data-state=current]>b{background:#2b7252;color:white;border-color:#2b7252;box-shadow:0 0 0 4px #2b72520b}.journey li[data-state=current] span{color:#65826b}.journey li[data-state=done]>b{background:#e1ecdb;border-color:#bad1ad;color:#4f7e47}.journey li[data-state=done]{color:#58764e}.journey li[data-state=warning]{color:#a17c3d}.journey li[data-state=warning]>b{border-color:#d7bf85;background:#fff3d9;color:#a17c3d}.workspace{display:grid;grid-template-columns:minmax(240px,.94fr) 58px minmax(0,1fr) 58px minmax(0,.94fr);gap:10px;align-items:stretch}.role{min-width:0}.role-heading{height:27px;display:flex;justify-content:space-between;align-items:flex-start;gap:5px;margin-bottom:8px;padding:0 2px}.role-heading h2{font-size:14px;line-height:1.4;font-weight:600;color:#62775f;white-space:nowrap}.role-heading>span{font-size:11px;color:#91a18a;line-height:1.65;white-space:nowrap}.app-inner,.server-inner,.ai-inner{height:410px;min-height:0}.app-inner{display:flex;justify-content:center}.phone{display:grid;grid-template-rows:17px 44px minmax(0,1fr) auto;width:232px;max-width:100%;height:410px;overflow:hidden;border:1px solid #a8bcb0;border-radius:18px;background:white;box-shadow:0 6px 18px #173f2a0a}.status-bar{display:flex;justify-content:space-between;align-items:center;padding:0 13px;color:#5f766b;font-size:9px}.app-header{display:flex;align-items:center;gap:8px;padding:0 12px;border-bottom:1px solid #edf0e8}.app-avatar{width:30px;height:30px;border-radius:10px;background:#2e7455;color:white;display:grid;place-items:center;font-size:11px;font-weight:600}.app-header>div:last-child{display:flex;flex-direction:column}.app-header strong{font-size:15px;line-height:1.4;font-weight:600}.app-header div>span{font-size:10px;color:#8a9986;line-height:1.5}.chat-scroll{min-height:0;overflow-y:auto;padding:12px 11px;background:#fafbf7;scrollbar-width:thin;overscroll-behavior:contain}.empty-conversation{display:flex;flex-direction:column;justify-content:center;align-items:center;text-align:center;min-height:100%;padding:12px 0}.empty-conversation>b{font-size:14px;font-weight:500;color:#647b61}.empty-conversation>p{font-size:12px;line-height:1.8;color:#9aa38e;margin-top:7px}.user-message{background:#e1eddd;border-radius:12px 12px 3px 12px;padding:9px 11px;margin:0 0 12px 14px}.user-message>span{font-size:9px;color:#82a175}.user-message>p{font-size:15px;line-height:1.5;word-break:keep-all;overflow-wrap:anywhere;margin-top:3px}.assistant-message{padding:10px 11px;border:1px solid #e0e7d9;border-radius:12px 12px 12px 3px;background:white}.answer-label{display:flex;justify-content:space-between;align-items:center;gap:4px;margin-bottom:7px}.answer-label>b{font-size:10px;color:#4e7b42;font-weight:600}.answer-label>span{font-size:9px;color:#91a188}.assistant-message>p{font-size:16px;line-height:1.65;white-space:pre-wrap;word-break:keep-all;overflow-wrap:anywhere}.assistant-message[data-state=partial]{background:#f4f5ef;border-style:dashed}.typing-cursor{display:none;width:2px;height:16px;vertical-align:middle;background:#458552;margin-left:2px}.demo[data-phase=streaming] .typing-cursor{display:inline-block;animation:blink .65s step-end infinite}.composer{padding:9px 11px 10px;display:grid;gap:6px;background:white;border-top:1px solid #e2e9dc}.composer label{font-size:10px;color:#7c9072;line-height:1.5}.composer textarea{resize:none;width:100%;height:90px;min-width:0;padding:8px 10px;background:#f4f7f0;border:1px solid #d7e2cf;border-radius:9px;font-size:15px;line-height:1.5;color:#4f6a45;word-break:keep-all;overflow-y:hidden;cursor:default}.composer[data-used=true] textarea{display:none}.composer[data-used=true] label{font-size:9px}.composer-actions{display:flex;gap:5px}.send-button{border:1px solid #2d7253;border-radius:9px;background:#2d7253;color:white;display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:15px;font-weight:600;line-height:1.4;padding:10px 12px;min-width:0;flex:1}.send-button>span{font-size:20px;line-height:1;font-weight:400}.send-button:disabled{opacity:.6}.demo[data-phase=completed] .send-button{background:#f4f7ef;color:#79906d;border-color:#d0ddc5;font-weight:500}.stop-button{font-size:12px;border:1px solid #d1dccc;border-radius:8px;color:#8a734c;background:#faf7ed;padding:8px}.server-inner{border-radius:13px;background:var(--navy);padding:13px;display:flex;flex-direction:column;gap:10px;color:#eef4e8;border:1px solid #173c32;box-shadow:0 5px 16px #143b2208}.server-heading{display:flex;align-items:center;gap:7px;height:22px;flex-shrink:0}.server-heading>strong{font-size:14px;font-weight:500}.server-heading>span:last-child{font-size:10px;color:#7fa28b;margin-left:auto}.server-live-dot{width:5px;height:5px;border-radius:50%;background:#84b78e}.server-steps{list-style:none;padding:0;display:grid;grid-template-rows:1fr 1.15fr 1fr;gap:8px;min-height:0;flex:1}.server-steps li{min-width:0;min-height:0;border:1px solid #3c5c4e;border-radius:8px;background:#22483d;padding:9px 10px}.step-top{display:flex;align-items:center;gap:6px}.step-number{display:grid;place-items:center;width:17px;height:17px;flex-shrink:0;border-radius:50%;background:#41614c;color:#bbcfb3;font-size:10px}.step-top>strong{font-size:13px;line-height:1.4;font-weight:500;word-break:keep-all}.step-status{margin-left:auto;font-size:9px;color:#80a07d;font-weight:400;white-space:nowrap}.server-steps p{font-size:12px;line-height:1.5;color:#90ad8c;margin-top:5px;word-break:keep-all;overflow-wrap:anywhere}.server-steps li[data-state=active]{border-color:#94bc81;background:#2b523e}.server-steps li[data-state=active] .step-number{background:#a5ca8c;color:#2b5134}.server-steps li[data-state=done] .step-status{color:#b3d198}.server-steps li[data-state=warning]{border-color:#b59c66}.server-steps li[data-state=warning] .step-status{color:#d8bd82}.relay-preview{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-height:2.8em;font-size:14px;line-height:1.4;margin-top:5px;color:#d0e2bf}.saved-record{background:#dce9d2;border:1px solid #bfd2b0;border-radius:8px;padding:8px 10px;color:#3d633a;min-height:55px}.saved-record>div{display:flex;justify-content:space-between;align-items:center;gap:7px;font-size:11px}.saved-record strong{font-size:18px;line-height:1.2;color:#3e6c32}.saved-record p{font-size:10px;line-height:1.5;color:#78916a;margin-top:3px}.ai-inner{background:#faf7ec;border:1px solid #ded6b9;border-radius:13px;padding:15px;display:flex;flex-direction:column;gap:12px}.generation-title{display:flex;align-items:center;gap:7px}.generation-title strong{font-size:14px;line-height:1.4;font-weight:500;color:#7e774d}.activity-dot{width:6px;height:6px;background:#c5c19f;border-radius:50%;flex-shrink:0}.ai-request{border-bottom:1px solid #e7e0c8;padding-bottom:12px}.ai-request>span{font-size:10px;color:#a59b73}.ai-request>p{font-size:13px;line-height:1.6;color:#a19870;margin-top:5px;word-break:keep-all}.fragment-box{flex:1;display:flex;flex-direction:column;justify-content:center;min-height:0;padding:5px 0}.fragment-box>span{font-size:11px;color:#aa9b63}.fragment-box>p{font-size:19px;line-height:1.6;color:#8b783e;margin-top:9px;word-break:keep-all;overflow-wrap:anywhere}.progress-heading{display:flex;align-items:center;justify-content:space-between;gap:6px;font-size:11px;color:#a49970}.progress-heading>strong{font-size:13px;line-height:1.4;color:#8b814c}.progress-track{display:grid;grid-template-columns:repeat(10,minmax(0,1fr));gap:4px;margin-top:-6px}.progress-track>i{height:5px;border-radius:3px;background:#e6dfc5}.progress-track>i[data-received=true]{background:#a5ae75}.source-caption{font-size:11px;line-height:1.65;color:#b0a57d;border-top:1px solid #e9e1ca;padding-top:10px}.connection{position:relative;display:grid;grid-template-rows:35px 35px;gap:28px;align-content:center;padding-top:35px}.lane{display:grid;grid-template-rows:15px 8px;gap:7px;text-align:center;color:#7fa088;font-size:11px}.lane span{line-height:1.4;font-size:11px;white-space:nowrap}.lane i{display:block;position:relative;align-self:center;height:2px;width:100%;background:#b7c9b4}.lane i:after{position:absolute;content:'';right:-1px;top:-3px;border-left:6px solid #9db897;border-top:4px solid transparent;border-bottom:4px solid transparent}.lane.inbound{grid-template-rows:8px 15px}.lane.inbound i:after{right:auto;left:-1px;border-left:0;border-right:6px solid #9db897}.packet{display:none;position:absolute;top:-3px;left:0;width:8px;height:8px;border-radius:50%;background:#428563;box-shadow:0 0 0 4px #5d9b6d12}.connection-state{position:absolute;bottom:83px;left:50%;transform:translateX(-50%);font-size:10px;white-space:nowrap;color:#91a48c}.demo[data-phase=request] .outbound .packet{display:block;animation:travel .65s linear infinite}.demo[data-phase=streaming] .inbound .packet{display:block;animation:travel .7s linear infinite reverse}.demo[data-phase=streaming] .activity-dot,.demo[data-phase=request] .server-live-dot{background:#86a755;animation:pulse .7s ease-in-out infinite alternate}.result{margin-top:11px;padding:11px 14px;display:flex;align-items:center;justify-content:space-between;gap:16px;border:1px solid #d5dfce;border-radius:10px;background:white;min-height:65px}.result-copy{min-width:0}.result-copy>strong{display:block;font-size:14px;line-height:1.5;font-weight:600;color:#4c7047}.result-copy>p{font-size:12px;line-height:1.6;color:#8c9b80;margin-top:2px;word-break:keep-all}.result[data-tone=success]{border-color:#b5cc9f;background:#eef5e6}.result[data-tone=warning]{border-color:#d9c596;background:#fff8e9}.result[data-tone=warning] strong{color:#9c7f45}.restore-button{flex-shrink:0;background:#2f7052;color:white;border:1px solid #2f7052;border-radius:8px;padding:10px 13px;font-size:13px;font-weight:600;white-space:nowrap}.restore-button:disabled{opacity:.55}.restore-button>span{margin-left:7px;font-weight:400}.demo-footer{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;margin-top:10px}.auxiliary{display:flex;gap:20px;min-width:0;flex:1}.auxiliary details{font-size:11px;color:#91a188}.auxiliary details[open]{flex:1}.auxiliary summary{cursor:pointer;font-size:11px;white-space:nowrap}.auxiliary summary>span{color:#acb59e;margin-left:5px}.scenario-options,.technical-content{margin-top:10px;background:white;border:1px solid #dce4d5;border-radius:8px;padding:12px;max-width:100%}.scenario-options p,.technical-content p{font-size:12px;line-height:1.6;color:#819376;word-break:keep-all}.scenarios{display:flex;flex-wrap:wrap;gap:5px;margin:10px 0}.scenarios button{border:1px solid #cddbc5;border-radius:6px;background:white;color:#7b8f70;padding:6px 8px;font-size:12px;line-height:1.4;white-space:nowrap}.scenarios button[aria-pressed=true]{background:#3b7955;color:white;border-color:#3b7955}.scenarios button:disabled{opacity:.4}.technical ol{padding-left:19px;max-height:180px;overflow-y:auto;font:10px/1.9 ui-monospace,monospace;margin:9px 0;overflow-wrap:anywhere}.technical-actions{display:flex;flex-wrap:wrap;gap:8px;align-items:center}.technical-actions button{font-size:11px;background:#f7f9f2;border:1px solid #d3dfca;color:#7a906e;border-radius:6px;padding:7px 8px}.technical-actions span{font:9px/1.5 ui-monospace,monospace;overflow-wrap:anywhere}.saved-list{display:grid;gap:6px;margin-top:8px}.saved-list button{text-align:left;background:#f6f8ef;border:1px solid #d6e0cd;border-radius:6px;padding:7px;font-size:11px;color:#788b6e}.demo-notice{font-size:10px;color:#a4ad99;line-height:1.7;text-align:right;white-space:nowrap}.mobile-tabs{display:none}@keyframes travel{from{left:0}to{left:calc(100% - 8px)}}@keyframes pulse{to{opacity:.3}}@keyframes blink{50%{opacity:0}}
@media(max-width:1060px){.demo{padding-inline:12px}.workspace{grid-template-columns:minmax(230px,.92fr) 42px minmax(0,1fr) 42px minmax(0,.92fr);gap:8px}.role-heading h2{font-size:12px}.role-heading>span{font-size:10px}.server-inner{padding:10px}.ai-inner{padding:12px}.step-top>strong{font-size:12px}.step-status{font-size:8px}.server-steps li{padding:8px}.server-steps p{font-size:11px}.relay-preview{font-size:12px}.server-heading>span:last-child{display:none}.fragment-box>p{font-size:17px}.journey{gap:15px}.journey li+li:before{left:-18px;width:12px}.demo-notice{font-size:9px}.auxiliary{gap:12px}.restore-button{font-size:12px;padding:10px}.result-copy>p{font-size:11px}}
@media(max-width:850px){.demo{padding:12px}.journey{gap:8px;margin-bottom:9px;padding-bottom:10px}.journey li{gap:5px;align-items:flex-start}.journey li+li:before{display:none}.journey li>b{width:21px;height:21px;font-size:10px;margin-top:2px}.journey strong{font-size:11px;line-height:1.6}.journey span{display:none}.journey em{display:block;font-size:10px;line-height:1.5;margin-left:0;min-height:15px}.journey li:first-child strong{margin-top:2px}.journey li:last-child strong{margin-top:2px}.mobile-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-bottom:10px}.mobile-tabs button{font-size:12px;line-height:1.4;background:#e7eddf;border:1px solid transparent;color:#8f9d83;border-radius:7px;padding:7px 4px}.mobile-tabs button[aria-selected=true]{border-color:#bfd0b1;background:white;color:#3f764b;font-weight:600}.workspace{display:block;max-width:440px;margin:auto}.workspace .role{display:none}.workspace[data-panel=app] .app-panel,.workspace[data-panel=server] .server-panel,.workspace[data-panel=ai] .ai-panel{display:block}.role-heading{height:21px;margin-bottom:7px}.role-heading h2{font-size:13px}.role-heading>span{font-size:11px}.app-inner,.server-inner,.ai-inner{height:410px}.phone{width:232px;height:410px}.connection{display:none}.server-inner{padding:13px}.step-top>strong{font-size:14px}.step-status{font-size:11px}.server-steps li{padding:10px}.server-steps p{font-size:13px}.relay-preview{font-size:15px}.server-heading>span:last-child{display:block}.ai-inner{padding:15px}.fragment-box>p{font-size:20px}.result{align-items:stretch;flex-direction:column;gap:9px;min-height:76px;padding:10px 12px;margin-top:11px}.result-copy>strong{font-size:13px}.result-copy>p{font-size:11px;line-height:1.6}.restore-button{font-size:13px;line-height:1.4;padding:11px;width:100%}.demo-footer{flex-direction:column;gap:8px}.auxiliary{width:100%;flex-wrap:wrap;gap:10px 16px}.auxiliary details[open]{flex-basis:100%;order:2}.auxiliary summary{font-size:11px}.demo-notice{font-size:9px;text-align:left;white-space:normal}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;scroll-behavior:auto!important}.packet{left:45%!important}}
