:root{font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#191b1d;background:#fafafa;font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,a,input,textarea{-webkit-tap-highlight-color:transparent}button,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer}button:disabled{opacity:.5;cursor:wait}button:focus-visible,a:focus-visible,textarea:focus-visible{outline:2px solid #748dc4;outline-offset:4px}a{color:inherit}.lab-header{height:64px;display:flex;align-items:center;justify-content:space-between;gap:22px;padding:0 30px;border-bottom:1px solid #e4e4e4;background:#fff}.brand{text-decoration:none;font-size:22px;letter-spacing:-1px}.brand span{color:#999;font-size:16px;letter-spacing:0}.lab-header nav{display:flex;gap:24px;font-size:13px}.lab-header nav a{text-decoration:none;color:#666}.lab-header nav a[aria-current]{color:#111;border-bottom:1px solid #111;padding-bottom:5px}.lab-header button,.test-bar button{border:1px solid #dedfe0;background:transparent;border-radius:24px;padding:9px 16px;font-size:12px}.test-bar{height:58px;display:flex;align-items:center;gap:22px;padding:0 30px;border-bottom:1px solid #e5e5e5;background:#fff;font-size:12px}.test-bar>div:first-child{flex:1;display:flex;align-items:center;gap:8px}.live-dot{height:6px;width:6px;border-radius:50%;background:#638064}.switcher{display:flex;gap:3px;padding:3px;background:#f1f1f1;border-radius:25px}.switcher button{border:0}.switcher button[aria-pressed=true]{background:#fff;box-shadow:0 1px 5px #00000012}.website{position:relative;min-height:calc(100svh - 122px);overflow:hidden;background:#eeeef0;color:#222;padding:34px 48px 38px;transition:background .3s,color .3s}.website[data-bg=blue]{background:#263d59;color:#f5f5f5}.website[data-bg=dark]{background:#222324;color:#eee}.site-nav{display:flex;justify-content:space-between;font-size:13px;align-items:center}.site-nav strong{font-size:24px;letter-spacing:4px;font-weight:500}.site-nav div{display:flex;gap:30px}.site-copy{padding:11vh 0 15vh;position:relative;z-index:1;max-width:55%}.eyebrow{font-size:10px;letter-spacing:3px;opacity:.55;margin-bottom:26px}.site-copy h1{font:400 clamp(48px,6.6vw,110px)/.99 Georgia,serif;letter-spacing:-4px;margin:0 0 32px}.site-copy p{font:400 21px/1.5 Georgia,serif;opacity:.68}.site-copy a{display:flex;width:170px;justify-content:space-between;border-bottom:1px solid currentColor;text-decoration:none;padding:15px 0;margin-top:35px;font-size:13px}.site-art{position:absolute;bottom:-8%;left:34%;width:40%;opacity:.1;mix-blend-mode:multiply;pointer-events:none}.site-art img{width:100%;filter:grayscale(1);mask-image:radial-gradient(ellipse,black 25%,transparent 68%)}.site-footer{position:absolute;left:48px;right:48px;bottom:25px;display:flex;justify-content:space-between;font-size:9px;letter-spacing:2px;opacity:.6}.widget{--w:350px;position:relative;float:right;margin:35px 0 16px;width:var(--w);height:622px;display:flex;flex-direction:column;z-index:3;color:#191919}.website>.widget{position:absolute;right:32px;bottom:28px;margin:0}.widget.panel{background:#fff;border:1px solid #ebebeb;border-radius:24px;box-shadow:0 15px 60px #00000014;overflow:hidden}.widget-head{display:flex;align-items:center;justify-content:space-between;flex:0 0 42px;padding:12px 19px;font-size:12px;letter-spacing:3px}.widget-head button{border:0;background:transparent;font-size:21px;color:inherit;line-height:1;padding:2px 6px}.widget.floating .widget-head{color:inherit;text-shadow:0 1px 5px #ffffff66}.website[data-bg=blue] .widget.floating .widget-head,.website[data-bg=dark] .widget.floating .widget-head{color:white;text-shadow:none}.conversation{flex:1;min-height:0;overflow-y:auto;overflow-x:hidden;scrollbar-width:thin;scrollbar-color:#ddd transparent;padding:8px 16px 14px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain;scroll-behavior:smooth}.bubble{font-size:13px;line-height:1.5;max-width:90%;padding:10px 14px;word-break:break-word;border-radius:18px;flex-shrink:0;white-space:pre-wrap;box-shadow:0 2px 8px #00000004}.bubble.ohm{align-self:flex-end;background:#191919;color:#fff;border-bottom-right-radius:5px}.bubble.user{align-self:flex-start;background:#fff;color:#1b1b1b;border:1px solid #dedede;border-bottom-left-radius:5px}.bubble.pending{opacity:.55}.bubble.system{align-self:center;color:#757575;font-size:11px;border:0;background:transparent;text-align:center;box-shadow:none}.bubble a{color:inherit}.conversation>.welcome{margin:auto 0;display:flex;flex-direction:column;align-items:flex-end;gap:15px;font-size:14px;line-height:1.5}.welcome span{background:#191919;color:#fff;padding:12px 16px;border-radius:20px 20px 5px 20px;max-width:85%}.welcome button{border:1px solid #ccc;background:white;padding:10px 17px;border-radius:24px}.ohm-stage{position:relative;flex:0 0 auto;aspect-ratio:1;width:100%;background:transparent;overflow:hidden;isolation:isolate;mask-image:radial-gradient(ellipse at 50% 54%,black 40%,#000e 55%,transparent 72%);-webkit-mask-image:radial-gradient(ellipse at 50% 54%,black 40%,#000e 55%,transparent 72%)}.ohm-stage img,.ohm-stage video{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;transition:opacity .04s;background:white}.ohm-stage video{opacity:0}.ohm-stage button{position:absolute;inset:0;border:0;background:none;z-index:4;cursor:pointer}.composer-wrap{position:relative;flex:0 0 61px;padding:2px 14px 14px}.composer-wrap form{display:flex;align-items:center;gap:6px;min-height:44px;background:white;border:1px solid #e6e6e6;border-radius:26px;padding:4px 5px 4px 7px;box-shadow:0 2px 12px #00000004}.composer-wrap textarea{resize:none;border:0;outline:none;background:transparent;flex:1;min-width:0;max-height:80px;padding:6px 2px;font-size:13px;line-height:1.5;color:#222}.composer-wrap button{border:0;flex-shrink:0;width:33px;height:33px;border-radius:50%;background:#f6f6f6;font-size:23px;color:#555}.composer-wrap button[type=submit]{background:#181818;color:white;font-size:23px}.widget.floating{background:transparent;border:0;box-shadow:none}.widget.floating .conversation{padding-left:0;padding-right:0}.widget.floating .bubble{box-shadow:0 4px 14px #00000012}.widget.floating .ohm-stage{margin-top:2px}.widget.floating .composer-wrap{padding-left:0;padding-right:0}.reopen{position:absolute;right:36px;bottom:28px;border:0;border-radius:30px;background:#fff;padding:16px 24px;box-shadow:0 8px 30px #0002;z-index:3}.chat-error{font-size:11px;padding:7px 15px;color:#923725;background:#fff4ef}.chat-error button{background:none;border:0;text-decoration:underline;color:inherit;font-size:inherit}.upload-hint{position:absolute;inset:-58px 0 0;padding:20px;background:#fffffff5;text-align:center;border:1px dashed #aaa;font-size:12px;z-index:5}.chat-actions{display:flex;flex-direction:column;gap:7px;align-self:flex-end;max-width:95%;flex-shrink:0}.chat-actions button{border:1px solid #dedede;border-radius:16px;padding:10px 12px;background:white;color:#222;text-align:left;font-size:12px;line-height:1.4}.chat-actions button.primary{background:#191919;color:#fff;border-color:#191919}.chat-actions small{font-size:10px;color:#888}.design-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}.design-options button{padding:4px}.design-options img{width:100%;aspect-ratio:1;object-fit:contain;display:block}.test-tools{position:fixed;z-index:20;right:0;top:64px;bottom:0;width:340px;padding:24px;background:#fff;box-shadow:-12px 0 50px #0002;overflow:auto;color:#292929;font-size:13px}.test-tools header{display:flex;align-items:center;justify-content:space-between}.test-tools h2{font:400 24px/1.2 Georgia,serif;margin:0}.test-tools header button{border:0;background:none;font-size:24px}.test-tools p{font-size:12px;line-height:1.6;color:#777}.test-tools h3{margin:24px 0 10px;font-size:13px}.test-tools dl{display:grid;grid-template-columns:100px 1fr;font-size:12px;gap:12px 0;padding:20px 0;border-block:1px solid #eee}.test-tools dd{margin:0;word-break:break-word}.test-tools dt{color:#888}.test-tools pre{white-space:pre-wrap;font:12px/1.6 inherit}.test-tools button{font-size:12px;padding:9px 12px;background:white;border:1px solid #ddd;border-radius:10px}.tool-options,.scenarios{display:flex;gap:7px;flex-wrap:wrap}.test-tools #new-chat{display:block;margin:15px 0}.test-tools a{font-size:12px}.widget[hidden],[hidden]{display:none!important}@media(min-height:940px){.widget{--w:390px;height:694px}}@media(max-height:820px) and (min-width:701px){.widget{--w:310px;height:550px}.website>.widget{bottom:16px}.site-copy{padding-top:9vh}.conversation{gap:7px}.bubble{font-size:12px;padding:8px 12px}}@media(max-width:1000px){.site-copy{max-width:52%}.site-copy h1{font-size:65px}.site-copy p{font-size:17px}.site-nav>div{display:none}.lab-header{padding:0 16px;gap:12px}.lab-header nav{gap:12px;font-size:11px}.website{padding:30px}.site-art{display:none}}@media(max-width:700px){.lab-header{height:auto;min-height:65px;flex-wrap:wrap;padding:12px 16px}.lab-header nav{order:3;width:100%;justify-content:space-between}.test-bar{height:auto;min-height:65px;gap:8px;flex-wrap:wrap;padding:10px 16px}.test-bar>div:first-child{font-size:10px;flex-basis:100%}.test-bar .switcher{margin-right:auto}.website{min-height:740px;padding:20px 16px}.site-nav{font-size:10px}.site-nav strong{font-size:17px}.site-copy{padding:30px 0;max-width:100%;opacity:.15}.site-copy h1{font-size:56px}.site-copy p,.site-copy a,.site-footer{display:none}.website>.widget{top:78px;bottom:auto;right:50%;transform:translateX(50%);--w:min(350px,calc(100vw - 32px));height:622px}.test-tools{top:0;width:min(360px,100vw)}.reopen{top:300px;bottom:auto}}@media(prefers-reduced-motion:reduce){*{animation:none!important;scroll-behavior:auto!important;transition:none!important}}

.widget[aria-busy=true]{cursor:progress}
@media(max-width:700px){.website>.widget{height:min(622px,calc(100svh - 250px));min-height:470px}.widget .ohm-stage{width:min(100%,36svh);align-self:center}.website{min-height:calc(100svh - 170px)}}

.widget-controls{display:flex;align-items:center;gap:4px;letter-spacing:normal}
.widget-controls button:not(#minimize){display:inline-flex;align-items:center;gap:5px;font-weight:500;font-size:11px;line-height:1.2;min-height:32px;padding:6px;border-radius:8px;white-space:nowrap}
.widget-controls button:hover{background:#8882}
.widget-controls svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round;flex:none}
#widget-sound[aria-pressed=false] .sound-waves,#widget-sound[aria-pressed=true] .sound-mute{display:none}

/* Bubbles keep their colour: make room first, then pop in or shrink out. */
.conversation{position:relative;mask-image:none;-webkit-mask-image:none;overflow-anchor:none}
.bubble{--message-opacity:1;opacity:var(--message-opacity);scale:var(--scroll-scale,1);transform-origin:center;animation:none;transition:scale .18s cubic-bezier(.4,0,1,1)}
.bubble.pending{--message-opacity:.55}
.bubble[data-arriving]{transform:scale(0)}
@media(prefers-reduced-motion:reduce){.bubble{scale:none;transform:none}}

/* Floating mode: messages sit close to OHM; controls appear when needed. */
.widget.floating .conversation{z-index:2}
.widget.floating .conversation::before{content:"";margin-top:auto;flex:0 0 0}
.widget.floating .ohm-stage{z-index:1;margin-top:-44px}
.widget.floating .composer-wrap{z-index:3;margin-top:-32px}
.widget.floating .widget-head{position:relative;z-index:3}
.widget.floating :is(.widget-head,.composer-wrap,.chat-actions,.welcome button){transition:opacity .18s ease}
@media(hover:hover) and (pointer:fine){
 .widget.floating:not(:hover):not(:focus-within) :is(.widget-head,.composer-wrap,.chat-actions,.welcome button){opacity:0;pointer-events:none}
}

/* White panel keeps OHM at full size and lends the top of his square to chat. */
.widget.panel .conversation{z-index:2;margin-bottom:-72px}
.widget.panel .conversation::before{content:"";margin-top:auto;flex:0 0 0}
.widget.panel .ohm-stage{z-index:1}
.widget.panel .composer-wrap{z-index:3}
.widget .bubble{transition:scale .1s ease-out}
.widget.panel .bubble[data-arriving]{transform:scale(.88);visibility:hidden}
@media(prefers-reduced-motion:reduce){.widget.panel .bubble[data-arriving]{visibility:visible}}

/* Absolute bubbles use the widget as their containing block, escaping the scroll crop.
   Their empty rows retain native scrolling and one accessible copy of every message. */
.widget .conversation{position:static}
.message-row{flex:0 0 auto;align-self:stretch;min-width:0}
.widget .message-row{position:static}
.widget .message-row>.bubble{position:absolute;margin:0;visibility:visible}
.widget .message-row>.bubble[data-presence=hidden]{transform:scale(0);pointer-events:none}
.widget .message-row>.bubble[data-presence=visible]{transform:none}


/* Keep the same playing video elements when OHM becomes the corner launcher. */
.website>.widget.minimized{position:fixed;inset:auto 24px 24px auto;width:104px;height:104px;min-height:0;margin:0;transform:none;border:1px solid #e5e5e5;border-radius:24px;background:#fff;box-shadow:0 7px 28px #0002;overflow:hidden;z-index:10}
.widget.minimized>:not(.ohm-stage){display:none}
.widget.minimized .ohm-stage{width:100%;height:100%;aspect-ratio:1;align-self:stretch;margin:0;mask-image:none;-webkit-mask-image:none;border-radius:0;background:#fff}
.widget.minimized .ohm-stage img,.widget.minimized .ohm-stage video{transform:translateY(-6%) scale(1.25);transform-origin:50% 60%}
.widget.minimized:focus-within{outline:2px solid #748dc4;outline-offset:4px}
@media(max-width:700px){.website>.widget.minimized{width:88px;height:88px;inset:auto max(16px,env(safe-area-inset-right)) max(16px,env(safe-area-inset-bottom)) auto;min-height:0}}

.bubble.failed{outline:1px solid #b87763}

/* A persistent, quiet reply marker; motion happens only on the first unread reply. */
.widget.minimized.has-unread::after{content:"";position:absolute;right:14px;top:14px;width:9px;height:9px;border:2px solid white;border-radius:50%;background:#638064;z-index:5;pointer-events:none}

/* Show the settled transcript only after the shell reaches its full size. */
.widget.launcher-transition>:not(.ohm-stage){opacity:0;visibility:hidden;pointer-events:none}
.widget.launcher-transition .bubble{visibility:hidden!important}

/* Long placeholder page for testing the embedded widget while scrolling. */
.website>.widget:not(.minimized){position:fixed}
.demo-sections{position:relative;z-index:1;margin-top:12vh;padding-bottom:100px}
.demo-section{min-height:85svh;padding:90px 0;border-top:1px solid #8884}
.demo-section h2{font:400 clamp(40px,5.5vw,78px)/1.05 Georgia,serif;letter-spacing:-2px;margin:24px 0;max-width:650px}
.demo-section>p{font:400 20px/1.6 Georgia,serif;max-width:560px;opacity:.7}
.demo-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;margin-top:60px;max-width:900px}
.demo-cards article{padding:32px;background:#ffffff55;border:1px solid #8883;border-radius:20px;min-height:240px}
.demo-cards article>span{font-size:12px;opacity:.5}
.demo-cards h3{font:400 28px/1.2 Georgia,serif;margin-top:50px}
.demo-cards p{font-size:14px;line-height:1.6;opacity:.7}
.demo-statement{font:400 clamp(32px,4vw,60px)/1.2 Georgia,serif;padding:80px 0;opacity:.45}
.website .site-art{top:330px;bottom:auto}
@media(max-width:700px){.website>.widget:not(.minimized){top:auto;bottom:max(16px,env(safe-area-inset-bottom))}.demo-cards{grid-template-columns:1fr}.demo-section{padding:64px 0}.demo-section>p{font-size:18px}}

/* Long bubbles scroll internally; the original transcript motion stays intact. */
.widget .bubble{overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-behavior:auto;touch-action:pan-y;scrollbar-width:thin;scrollbar-color:#9998 transparent}
.widget .bubble.scrollable{scrollbar-gutter:stable}

.widget .bubble::-webkit-scrollbar{width:6px}
.widget .bubble::-webkit-scrollbar-thumb{background:#9999;border-radius:6px}
.widget .bubble::-webkit-scrollbar-track{background:transparent}

.widget .bubble{scrollbar-width:auto;scrollbar-color:auto}

/* Mouse wheel enters a long bubble only after a one-second hover. */
.widget[data-mouse-scroll-gate] .bubble.scrollable:not([data-scroll-ready]):not(:focus-visible){overflow-y:hidden}

/* The current pair is top-aligned and always rests at full scale. */
.widget .bubble{scale:1;transition:none}
.widget .chat-actions{overflow-y:auto;overscroll-behavior:contain}

/* Finished short replies slide right after their left-to-right typewriter reveal. */
.widget .bubble[data-align-settle]{transition:left .24s cubic-bezier(.22,.8,.25,1)}
@media(prefers-reduced-motion:reduce){.widget .bubble[data-align-settle]{transition:none}}

/* Text-only message takes need their full frame, including wide gestures. */
.ohm-stage[data-full-frame=true]{mask-image:none;-webkit-mask-image:none}
