.app{min-height:100dvh;padding:calc(1rem + var(--safe-top)) 1.25rem calc(1.5rem + var(--safe-bottom));flex-direction:column;display:flex}.app--chat{height:100dvh;max-height:100dvh;padding-bottom:calc(.75rem + var(--safe-bottom));flex-direction:column;width:100%;max-width:40rem;margin:0 auto;display:flex;overflow:hidden}.topbar{justify-content:flex-end;align-items:center;margin-bottom:1.5rem;display:flex}.topbar--chat{flex-shrink:0;grid-template-columns:1fr auto 1fr;align-items:center;gap:.5rem;margin-bottom:.75rem;display:grid}.topbar--chat .chat-title{max-width:100%;font-family:var(--font-display);text-align:center;color:var(--ink);white-space:nowrap;justify-self:center;margin:0;font-size:clamp(1.05rem,4.2vw,1.35rem);font-weight:600;line-height:1.2}.topbar--chat .profile{justify-self:end}.chat{flex-direction:column;flex:1 1 0;width:100%;min-height:0;display:flex;overflow:hidden}.chat-log{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;flex-direction:column;flex:1 1 0;gap:.65rem;min-height:0;padding:.25rem .15rem 1rem;display:flex;overflow:hidden auto}.chat-bubble{word-break:break-word;border-radius:.85rem;max-width:92%;padding:.7rem .9rem;font-size:.95rem;line-height:1.45}.chat-bubble--user{background:var(--teal,#1f6f6a);color:#fff;white-space:pre-wrap;border-bottom-right-radius:.25rem;align-self:flex-end}.chat-bubble--assistant{background:var(--surface);border:1px solid var(--line);color:var(--ink);border-bottom-left-radius:.25rem;align-self:flex-start}.chat-bubble--system{max-width:100%;color:var(--ink-muted);text-align:center;background:0 0;align-self:center;padding:.35rem .5rem;font-size:.88rem}.chat-md>:first-child{margin-top:0}.chat-md>:last-child{margin-bottom:0}.chat-md p{margin:0 0 .55em}.chat-md p:last-child{margin-bottom:0}.chat-md strong{font-weight:650}.chat-md em{font-style:italic}.chat-md ol,.chat-md ul{margin:.35em 0 .55em;padding-left:1.25em}.chat-md li{margin:.2em 0}.chat-md li>p{margin:0}.chat-md a{color:var(--teal);text-underline-offset:2px;text-decoration:underline}.chat-md code{background:var(--teal-soft);border-radius:.3em;padding:.1em .35em;font-size:.9em}.chat-md pre{background:var(--bg-accent);border-radius:.5rem;margin:.45em 0;padding:.55rem .7rem;font-size:.85em;overflow-x:auto}.chat-md pre code{background:0 0;padding:0}.chat-bubble--pending{opacity:.85;align-items:center;gap:.28rem;min-height:1.1rem;padding-block:.85rem;display:inline-flex}.chat-bubble--pending .dot{background:var(--ink-muted);border-radius:50%;width:.38rem;height:.38rem;animation:1.05s ease-in-out infinite chat-dot-pulse}.chat-bubble--pending .dot:nth-child(2){animation-delay:.15s}.chat-bubble--pending .dot:nth-child(3){animation-delay:.3s}@keyframes chat-dot-pulse{0%,80%,to{opacity:.25;transform:translateY(0)}40%{opacity:1;transform:translateY(-.18rem)}}.chat-composer{--composer-line-height:1.35;--composer-pad-y:.45rem;--composer-send-size:2rem;--composer-send-inset:.4rem;--composer-min-height:calc(var(--composer-send-size) + var(--composer-send-inset) * 2);--composer-max-lines:3;border-top:1px solid var(--line);background:var(--bg);flex:none;padding-top:.5rem;display:block}.composer-field{width:100%;position:relative}.chat-composer textarea{box-sizing:border-box;width:100%;min-width:0;height:auto;min-height:var(--composer-min-height);max-height:calc((var(--composer-line-height) * 1em * var(--composer-max-lines)) + (var(--composer-pad-y) * 2) + 2px);resize:none;border:1px solid var(--line);padding:var(--composer-pad-y) calc(var(--composer-send-size) + var(--composer-send-inset) * 2) var(--composer-pad-y) .7rem;font:inherit;line-height:var(--composer-line-height);color:var(--ink);appearance:none;scrollbar-width:none;background:#fff;border-radius:.75rem;outline:none;margin:0;display:block;overflow:hidden auto}.chat-composer textarea::-webkit-scrollbar{width:0;height:0;display:none}.chat-composer textarea:focus,.chat-composer textarea:focus-visible{border-color:var(--teal,#1f6f6a);box-shadow:none;outline:none}.chat-composer .composer-send{right:var(--composer-send-inset);bottom:var(--composer-send-inset);box-sizing:border-box;width:var(--composer-send-size);height:var(--composer-send-size);min-height:var(--composer-send-size);border:none;border-radius:999px;outline:none;justify-content:center;align-items:center;padding:0;line-height:1;display:inline-flex;position:absolute}.chat-composer .composer-send:disabled{opacity:.45;cursor:not-allowed}.chat-composer .composer-send-icon{display:block}.chat-composer .composer-send:focus-visible{outline:2px solid var(--teal,#1f6f6a);outline-offset:2px}.profile{border:1px solid var(--line);background:var(--surface);min-height:44px;color:var(--ink-muted);border-radius:999px;align-items:center;gap:.55rem;padding:.25rem .35rem .25rem .75rem;font-size:.95rem;font-weight:500;display:inline-flex}.auth-panel{justify-content:center;width:100%;display:flex}.auth-panel .cl-rootBox{width:100%;max-width:24rem}.result{white-space:pre-wrap;word-break:break-word;max-height:min(50vh,22rem);font-family:var(--font-body);color:var(--ink);margin:0;font-size:.92rem;line-height:1.45;overflow:auto}.profile-dot{background:var(--teal);border-radius:50%;width:.55rem;height:.55rem}.hero{flex-direction:column;flex:1;justify-content:center;gap:1.75rem;width:100%;max-width:28rem;margin:0 auto;display:flex}.brand-block{text-align:left}.brand{font-family:var(--font-display);letter-spacing:-.03em;color:var(--ink);margin:0;font-size:clamp(2.6rem,11vw,3.6rem);font-weight:600;line-height:1.05}.tagline{color:var(--ink-muted);margin:.85rem 0 0;font-size:1.05rem;font-weight:400;line-height:1.45}.actions{flex-direction:column;gap:.75rem;width:100%;display:flex}.action{border:1px solid var(--line);border-radius:var(--radius);background:var(--surface);width:100%;min-height:52px;color:var(--ink);box-shadow:var(--shadow);cursor:pointer;text-align:left;justify-content:flex-start;align-items:center;gap:.85rem;padding:.9rem 1.1rem;transition:background .16s,border-color .16s,transform .16s;display:flex}.action:hover,.action:focus-visible{border-color:var(--teal);background:#fff;outline:none}.action:active{transform:scale(.99)}.action-icon{background:var(--teal-soft);width:2rem;height:2rem;color:var(--teal);border-radius:10px;flex-shrink:0;justify-content:center;align-items:center;display:inline-flex}.action-label{font-size:1.02rem;font-weight:500}.panel{border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);background:#fff;margin-top:.25rem;padding:1rem 1.1rem 1.15rem}.panel h2{font-family:var(--font-display);margin:0 0 .65rem;font-size:1.25rem;font-weight:600}.panel p{color:var(--ink-muted);margin:0 0 .9rem;font-size:.95rem;line-height:1.45}.panel textarea,.panel input[type=file]{width:100%;margin-bottom:.85rem}.panel textarea{resize:vertical;border:1px solid var(--line);background:var(--bg);min-height:7rem;color:var(--ink);border-radius:12px;outline:none;padding:.85rem .95rem}.panel textarea:focus,.panel textarea:focus-visible{border-color:var(--teal);outline:none}.panel-actions{flex-direction:column;gap:.55rem;display:flex}.primary,.ghost{cursor:pointer;border-radius:12px;min-height:48px;padding:.7rem 1rem;font-weight:500}.primary{background:var(--teal);color:#fff;border:none}.ghost{border:1px solid var(--line);color:var(--ink-muted);background:0 0}.primary.chat-back{box-sizing:border-box;border:none;border-radius:999px;outline:none;flex:none;justify-content:center;justify-self:start;align-items:center;width:2rem;height:2rem;min-height:2rem;padding:0;line-height:1;display:inline-flex}.primary.chat-back:disabled{opacity:.45;cursor:not-allowed}.primary.chat-back .chat-back-icon{display:block}.primary.chat-back:focus-visible{outline:2px solid var(--teal,#1f6f6a);outline-offset:2px}.status{color:var(--ink-muted);margin:.75rem 0 0;font-size:.9rem}.status-panel--failure{background:#fff5f4;border-color:#b42318}.status-panel--success{border-color:#0f6b5c}.outcome-headline{font-family:var(--font-display);color:var(--ink);margin:0 0 .35rem;font-size:1.15rem;font-weight:600}.status-panel--failure .outcome-headline{color:#b42318}.outcome-detail{color:var(--ink-muted);margin:0 0 .75rem;font-size:.92rem;line-height:1.4}.status-panel--failure .outcome-detail{color:#7a271a}@media (width<=360px){.topbar--chat{gap:.35rem;margin-bottom:.5rem}.topbar--chat .chat-title{letter-spacing:-.01em;font-size:.95rem}.primary.chat-back{width:1.75rem;height:1.75rem;min-height:1.75rem}.chat-back-icon{width:16px;height:16px}.topbar--chat .profile{gap:.35rem;min-height:38px;padding:.2rem .25rem .2rem .5rem;font-size:.82rem}.topbar--chat .profile>span:not(.profile-dot){display:none}.profile-dot{width:.45rem;height:.45rem}.chat-bubble{padding:.6rem .8rem;font-size:.9rem}}@media (width>=361px) and (width<=400px){.topbar--chat{gap:.4rem;margin-bottom:.6rem}.topbar--chat .chat-title{letter-spacing:-.01em;font-size:1rem}.primary.chat-back{width:1.85rem;height:1.85rem;min-height:1.85rem}.chat-back-icon{width:17px;height:17px}.topbar--chat .profile{gap:.4rem;min-height:40px;padding:.2rem .3rem .2rem .6rem;font-size:.85rem}.topbar--chat .profile>span:not(.profile-dot){display:none}.profile-dot{width:.5rem;height:.5rem}.chat-bubble{font-size:.92rem}}@media (width>=401px) and (width<=500px){.topbar--chat{gap:.45rem}.topbar--chat .chat-title{font-size:1.1rem}.topbar--chat .profile{gap:.45rem;min-height:42px;padding:.25rem .3rem .25rem .65rem;font-size:.88rem}.topbar--chat .profile>span:not(.profile-dot){text-overflow:ellipsis;white-space:nowrap;max-width:4rem;overflow:hidden}}@media (width>=501px) and (width<=719px){.topbar--chat .profile>span:not(.profile-dot){text-overflow:ellipsis;white-space:nowrap;max-width:6rem;overflow:hidden}}@media (width>=720px){.app{padding-inline:2rem}.hero{max-width:34rem}.actions{gap:.85rem}.panel-actions{flex-direction:row}.primary,.ghost{flex:1}.primary.chat-back{flex:none}}:root{--bg:#f4f7f6;--bg-accent:#e8efed;--ink:#1c2b33;--ink-muted:#5a6b73;--teal:#2f6f6a;--teal-soft:#d7e6e3;--line:#c5d4d0;--surface:#ffffffb8;--shadow:0 12px 40px #1c2b3314;--radius:14px;--font-display:"Fraunces", "Iowan Old Style", Georgia, serif;--font-body:"Outfit", "Segoe UI", sans-serif;--safe-bottom:env(safe-area-inset-bottom,0px);--safe-top:env(safe-area-inset-top,0px);color:var(--ink);background:var(--bg);font-family:var(--font-body);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased}*,:before,:after{box-sizing:border-box}html,body,#root{min-height:100%}html:has(.app--chat){height:100%;overflow:hidden}body:has(.app--chat){height:100%;overflow:hidden}#root:has(.app--chat){height:100%;overflow:hidden}#root:has(.app--chat){flex-direction:column;display:flex}body{background:radial-gradient(120% 80% at 10% -10%, #dff0ec 0%, transparent 55%), radial-gradient(90% 60% at 100% 0%, #e7ece8 0%, transparent 45%), var(--bg);min-width:320px;margin:0}button,input,textarea{font:inherit}a{color:inherit}
