:root{font-family:Inter,"Segoe UI",system-ui,sans-serif;color:#182e39;background:#edf2f5;font-synthesis:none;font-size:16px;--ink:#182e39;--muted:#687d89;--line:#e3eaee;--teal:#176b69;--navy:#132833}*{box-sizing:border-box}body{margin:0}button,textarea{font:inherit}button{cursor:pointer}button:disabled{cursor:default;opacity:.48}button,textarea{transition:background .15s,border-color .15s,box-shadow .15s}button:focus-visible,a:focus-visible{outline:3px solid #52b7b1;outline-offset:3px}textarea:focus{outline:0}button{border:0}h1,h2,h3,p{margin:0}button[hidden],[hidden]{display:none!important}.app-shell{display:grid;grid-template-columns:280px minmax(320px,1fr) 300px;max-width:1800px;height:100dvh;min-height:550px;margin:0 auto;background:#fff}.sidebar{background:var(--navy);color:#f0f7f8;padding:34px 18px 25px;display:flex;flex-direction:column;min-width:0;overflow:auto}.brand{display:flex;gap:13px;align-items:center;padding:0 12px 45px}.brand-mark{display:grid;place-items:center;width:43px;height:43px;border:1px solid #6c999c;border-radius:15px;font-size:31px;font-weight:500;line-height:1;color:#bce5dc;background:#1d3b47}.brand h1{font-size:27px;font-weight:650;letter-spacing:-1px}.brand p{font-size:13px;color:#96b0ba;margin-top:2px}.sidebar-heading{display:flex;align-items:center;justify-content:space-between;padding:0 12px 17px}.sidebar-heading h2{font-size:14px;font-weight:500;color:#b5cad1}.count{font-size:12px;background:#29414d;color:#cfe1e5;border-radius:6px;padding:2px 7px}.persona-list{display:flex;flex-direction:column;gap:8px}.persona-button{display:flex;text-align:left;gap:12px;align-items:center;width:100%;padding:16px 12px;border-radius:12px;color:#e4eff2;background:transparent;border:1px solid transparent}.persona-button:hover{background:#1c3642}.persona-button[aria-current=true]{background:#264450;border-color:#3c5b67}.persona-button .avatar{width:44px;height:44px;border-radius:15px;flex-shrink:0}.persona-copy{min-width:0;flex:1}.persona-name-line{display:flex;align-items:center;gap:8px}.persona-name{font-size:17px;font-weight:600;letter-spacing:-.2px}.persona-preview{font-size:14px;line-height:1.5;color:#abc3cd;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;margin-top:4px}.presence-dot{height:7px;width:7px;border-radius:100%;background:#758c95;display:inline-block;flex-shrink:0}.presence-dot.online{background:#77d4b1;box-shadow:0 0 0 3px #77d4b115}.sidebar-note{margin: auto 12px 0;padding-top:40px}.note-icon{font-size:28px;color:#7dbbb7;display:block;margin-bottom:12px}.sidebar-note p{font-size:20px;line-height:1.45;letter-spacing:-.4px;color:#dbe9ec}.sidebar-note small{display:block;font-size:13px;line-height:1.7;color:#94aeb9;margin-top:18px}.sidebar-muted{font-size:14px;color:#b5cad1;padding:12px}.conversation{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff}.chat-header{display:flex;align-items:center;gap:13px;padding:24px 32px;border-bottom:1px solid var(--line);min-height:100px}.avatar{width:48px;height:48px;display:grid;place-items:center;flex-shrink:0;border-radius:17px;font-size:21px;font-weight:600;background:#d1e8e5;color:#173c40;position:relative;isolation:isolate;overflow:hidden}.avatar::after{content:"";position:absolute;width:70%;height:70%;border:1px solid #ffffff5c;border-radius:50%;right:-25%;bottom:-25%;z-index:-1}.header-copy{min-width:0;flex:1}.name-line{display:flex;align-items:center;gap:10px}.name-line h2{font-size:20px;letter-spacing:-.4px}.ai-label{font-size:11px;letter-spacing:.5px;font-weight:600;color:#58727e;background:#edf3f5;border-radius:4px;padding:3px 5px}.header-copy p{font-size:14px;line-height:1.5;color:var(--muted);margin-top:4px}.icon-button{background:transparent;font-size:14px;color:#42616d;padding:9px 10px;border-radius:7px}.icon-button:hover{background:#edf4f5}#profile-toggle,#profile-close{display:none}.banner{padding:12px 32px;font-size:14px;line-height:1.5;background:#eff7f7;color:#235e63;border-bottom:1px solid #d2e9e7}.error-banner{background:#fff2ec;color:#924c2e}.message-area{flex:1;overflow-y:auto;min-height:0;padding:32px;scrollbar-width:thin;scrollbar-color:#c6d7df transparent}.welcome{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;max-width:460px;margin:5vh auto 24px}.avatar-large{width:80px;height:80px;border-radius:27px;font-size:34px;margin-bottom:26px}.eyebrow{font-size:11px;letter-spacing:2px;color:#7b939e;font-weight:650}.welcome h2{font-size:28px;line-height:1.3;font-weight:600;letter-spacing:-1px;margin-top:12px}.welcome>p{font-size:16px;line-height:1.7;color:var(--muted);margin:13px 0 26px}.starters{display:flex;flex-direction:column;align-items:center;gap:9px;width:100%}.starter{background:#f5f8fa;border:1px solid #e2eaf0;color:#3e5d69;padding:11px 17px;border-radius:12px;font-size:14px;line-height:1.5;text-align:left;max-width:100%}.starter:hover{background:#eaf3f3;border-color:#bbd9d6}.messages{display:flex;flex-direction:column;gap:23px}.message{max-width:85%;align-self:flex-start}.message.user{align-self:flex-end}.message-label{font-size:12px;color:#728a96;margin:0 3px 7px;display:flex;gap:9px;align-items:center}.message.user .message-label{justify-content:flex-end}.message-content{font-size:16px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;background:#f0f5f7;border:1px solid #e7eef1;padding:14px 18px;border-radius:4px 17px 17px 17px;color:#243e49}.message.user .message-content{background:#1d6a68;border-color:#1d6a68;color:#f6ffff;border-radius:17px 4px 17px 17px}.queue-status{font-size:14px;color:#587581;line-height:1.5;min-height:35px;padding:8px 32px 5px;display:flex;gap:12px;align-items:center}.queue-status::before{content:"";width:6px;height:6px;border-radius:50%;background:#87aaa9;flex-shrink:0}.text-button{background:transparent;color:var(--teal);padding:4px 0;font-size:14px;font-weight:600;white-space:nowrap}.composer{padding:19px 32px 20px}.composer-box{display:flex;align-items:flex-end;gap:14px;background:#fff;border:1px solid #cddce2;border-radius:14px;padding:12px 12px 12px 17px;box-shadow:0 2px 8px #19374704}.composer-box:focus-within{border-color:#79b0ac;box-shadow:0 0 0 3px #176b690c}.composer textarea{resize:none;flex:1;min-width:0;max-height:160px;min-height:48px;border:0;background:transparent;color:var(--ink);font-size:16px;line-height:1.5;padding:2px 0}.composer textarea::placeholder{color:#8ba0aa}.composer textarea:disabled{background:transparent}.composer button[type=submit]{background:var(--teal);color:#fff;border-radius:9px;padding:12px 17px;font-size:14px;font-weight:600;min-height:44px}.composer button[type=submit]:hover:not(:disabled){background:#115855}.composer-footer{display:flex;justify-content:space-between;gap:12px;font-size:12px;color:#8a9ea8;line-height:1.5;padding:9px 2px 0}.send-error{font-size:14px;color:#a14a35;line-height:1.5;margin-top:10px}.profile-panel{border-left:1px solid var(--line);background:#f8fafb;overflow-y:auto;padding:29px 24px 22px;scrollbar-width:thin;scrollbar-color:#c6d7df transparent}.profile-heading{display:flex;align-items:center;justify-content:space-between}.profile-heading h2{font-size:14px;font-weight:500;color:#718792}.profile-hero{text-align:center;padding-top:28px}.avatar-profile{width:94px;height:94px;border-radius:32px;font-size:39px;margin:0 auto 17px}.profile-hero h3{font-size:24px;font-weight:600;letter-spacing:-.7px;line-height:1.3}.profile-hero p{font-size:14px;line-height:1.6;color:#728a96;margin-top:7px}.profile-description{font-size:14px;line-height:1.7;color:#59727e;margin-top:22px}.profile-section{margin-top:24px}.profile-section h3,.simulation-box h3{font-size:14px;line-height:1.5;font-weight:600;color:#36525f;margin-bottom:11px}.state-card{background:#fff;border:1px solid #e2eaee;border-radius:12px;padding:14px}.state-card>div:not(.energy-track){display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:9px;font-size:13px}.state-card strong{font-size:13px;font-weight:500;text-align:right}.detail-label{color:#8296a0}.energy-track{height:4px;background:#e8f0f0;border-radius:4px;overflow:hidden;margin-top:12px}.energy-track span{display:block;height:100%;width:0;background:#64a69b;border-radius:4px;transition:width .3s}.schedule-copy{font-size:12px;line-height:1.7;color:#8296a0;margin:9px 2px 0}.tags{display:flex;gap:7px;flex-wrap:wrap}.tag{font-size:13px;padding:5px 9px;background:#eaf1f4;border-radius:6px;line-height:1.5;color:#526f7d}.interest-tags .tag{background:transparent;border:1px solid #dce6ea;padding:4px 8px}.detail-copy{font-size:14px;line-height:1.7;color:#59727e}.simulation-box{background:#eaf3f2;border:1px solid #dbe9e6;padding:15px;border-radius:12px;margin-top:28px}.simulation-box h3{font-size:13px;color:#386563;margin-bottom:7px}.simulation-box>p{font-size:12px;line-height:1.6;color:#698d8b}.presence-actions{display:flex;gap:7px;margin-top:13px}.presence-actions button{flex:1;border-radius:7px;background:#fff;border:1px solid #cee1de;color:#376a67;padding:9px 6px;font-size:12px;min-height:36px}.presence-actions button:hover:not(:disabled){background:#dcece8}.presence-actions button[aria-pressed=true]{background:#d7e9e5;border-color:#aacdc4}.simulation-box .override-info{margin-top:9px}.profile-disclaimer{font-size:12px;line-height:1.7;color:#8a9da6;margin-top:20px}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(min-width:1500px){.chat-header{padding-left:45px;padding-right:45px}.message-area{padding-left:45px;padding-right:45px}.composer{padding-left:45px;padding-right:45px}}@media(max-width:1190px){.app-shell{grid-template-columns:240px minmax(320px,1fr)}.profile-panel{display:none}.profile-panel.open{display:block;position:fixed;right:0;top:0;bottom:0;width:320px;z-index:5;box-shadow:-15px 0 50px #182e3920}#profile-toggle,#profile-close{display:block}.chat-header,.message-area{padding-left:26px;padding-right:26px}.composer{padding-left:26px;padding-right:26px}.queue-status,.banner{padding-left:26px;padding-right:26px}}@media(max-width:650px){.app-shell{display:flex;flex-direction:column;min-height:0;height:100dvh}.sidebar{padding:13px 12px 10px;flex-shrink:0;overflow:visible}.brand{padding:0 3px 12px;gap:8px}.brand-mark{width:29px;height:29px;border-radius:9px;font-size:21px}.brand h1{font-size:21px}.brand p{display:none}.sidebar-heading,.sidebar-note{display:none}.persona-list{flex-direction:row;gap:6px}.persona-button{padding:10px 8px;gap:8px;min-width:0;border-radius:10px}.persona-button .avatar{width:32px;height:32px;font-size:15px;border-radius:11px}.persona-name{font-size:14px}.persona-preview{font-size:11px;margin-top:2px}.persona-name-line{gap:5px}.presence-dot{height:5px;width:5px}.conversation{flex:1}.chat-header{padding:14px 16px;min-height:77px;gap:10px}.chat-header .avatar{width:39px;height:39px;border-radius:13px;font-size:18px}.name-line h2{font-size:18px}.header-copy p{font-size:12px}.icon-button{font-size:12px;padding:8px}.message-area{padding:22px 16px}.welcome{margin:3vh auto 12px}.avatar-large{width:63px;height:63px;border-radius:23px;font-size:29px;margin-bottom:20px}.welcome h2{font-size:24px}.welcome>p{font-size:14px;margin-bottom:19px}.starter{font-size:13px;padding:9px 12px}.message{max-width:90%}.message-content{padding:11px 14px;font-size:16px}.messages{gap:18px}.composer{padding:12px 14px 13px}.composer-box{padding:10px 10px 10px 13px;gap:8px;border-radius:12px}.composer button[type=submit]{padding:10px 12px;font-size:12px;min-height:40px}.composer-footer{font-size:10px}.queue-status{padding:8px 16px 0;font-size:12px}.banner{padding:10px 16px;font-size:12px}.profile-panel.open{width:min(340px,100%);padding-top:22px}.profile-description,.detail-copy,.profile-hero p{font-size:16px}.presence-actions button,.simulation-box>p,.schedule-copy{font-size:14px}.profile-disclaimer{font-size:13px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}
/* Keep status and controls comfortable to read at every viewport. */
.profile-source{font-size:13px;line-height:1.6;color:#728a96;margin-top:9px;overflow-wrap:anywhere}
.emotion-details{margin:0}.emotion-details dt{font-size:14px;font-weight:500;color:#36525f;margin-top:14px}.emotion-details dt:first-child{margin-top:0}.emotion-details dd{font-size:16px;line-height:1.65;color:#59727e;margin:5px 0 0;overflow-wrap:anywhere}
.persona-preview{display:block}.state-card>div:not(.energy-track),.state-card strong,.schedule-copy,.simulation-box h3,.simulation-box>p,.presence-actions button,.tag{font-size:14px}.presence-actions button{min-height:40px}.profile-disclaimer{font-size:13px}.composer-footer{font-size:12px}
@media(max-width:650px){.header-copy p,.icon-button,.queue-status,.banner,.composer button[type=submit],.starter{font-size:14px}.persona-preview{font-size:12px}.composer-footer{font-size:11px}.composer-footer #character-count{display:none}}

/* Imported profiles keep their photos and details within the existing chat layout. */
.header-copy .chat-languages{font-size:14px;line-height:1.5;color:#587581;overflow-wrap:anywhere;margin-top:3px}
.sidebar{overflow:hidden;min-height:0}.brand,.sidebar-heading,.sidebar-note{flex-shrink:0}.brand{padding-bottom:27px}.persona-list{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#4b6875 transparent;padding-right:3px}.persona-button{flex-shrink:0}.persona-name{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.sidebar-note{padding-top:20px}.sidebar-note p{font-size:16px}.sidebar-note .note-icon{font-size:22px;margin-bottom:8px}.avatar-image{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}.name-line h2{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ai-label{flex-shrink:0}.profile-facts{font-size:14px;line-height:1.7;color:#59727e;text-align:center;margin-top:11px}.source-about{font-size:16px;white-space:pre-wrap;overflow-wrap:anywhere}.language-note{font-size:13px;line-height:1.6;color:#728a96;margin-top:9px}.section-heading{display:flex;justify-content:space-between;align-items:baseline;gap:10px}.photo-count{font-size:13px;color:#728a96}.profile-photo-main{display:block;position:relative;width:100%;height:280px;border-radius:13px;overflow:hidden;background:#e4ecef;padding:0}.profile-photo-main>img{width:100%;height:100%;object-fit:cover;object-position:center}.profile-photo-main:disabled{opacity:1;min-height:150px;height:150px}.profile-photo-main:disabled .photo-enlarge{display:none}.photo-enlarge{position:absolute;left:10px;bottom:10px;border-radius:7px;background:#132833d9;color:#fff;font-size:13px;padding:7px 10px;pointer-events:none}.photo-thumbnails{display:flex;gap:7px;overflow-x:auto;margin-top:9px;padding:3px 2px 7px;scrollbar-width:thin;scrollbar-color:#bfd0d8 transparent;overscroll-behavior:contain}.photo-thumbnail{width:48px;height:60px;flex:0 0 48px;padding:0;border-radius:7px;overflow:hidden;background:#e2ebee;border:2px solid transparent;color:#42616d}.photo-thumbnail img{width:100%;height:100%;object-fit:cover}.photo-thumbnail[aria-pressed=true]{border-color:#176b69;box-shadow:0 0 0 2px #176b6925}.photo-thumbnail:focus-visible{outline-offset:1px}.photo-dialog{width:min(920px,calc(100vw - 32px));max-height:calc(100dvh - 32px);border:1px solid #36505e;border-radius:16px;background:#10232d;color:#f4fafb;padding:18px;overflow:auto;box-shadow:0 25px 80px #0006}.photo-dialog::backdrop{background:#08161dcc}.photo-dialog-top{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:14px}.photo-dialog-top p{font-size:14px;line-height:1.5}.photo-dialog-button{background:#29434f;color:#f4fafb;border:1px solid #44606d;border-radius:8px;font-size:14px;min-height:40px;padding:8px 13px}.photo-dialog-button:hover:not(:disabled){background:#365763}.photo-dialog-image-wrap{min-height:100px;display:flex;align-items:center;justify-content:center;background:#0b1a22;border-radius:10px;overflow:hidden}.photo-dialog-image-wrap>img{display:block;max-width:100%;max-height:calc(100dvh - 200px);object-fit:contain}.photo-dialog-image-wrap>p{padding:32px 16px;text-align:center;font-size:16px;color:#d4e4eb}.photo-dialog-controls{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:14px}
@media(max-height:760px) and (min-width:651px){.sidebar-note{display:none}.brand{padding-bottom:20px}}
@media(max-width:650px){.sidebar{overflow:hidden}.brand{padding-bottom:12px}.persona-list{overflow-x:auto;overflow-y:hidden;flex-direction:row;width:100%;padding:2px 2px 7px;scroll-snap-type:x proximity}.persona-button{flex:0 0 160px;width:160px;scroll-snap-align:start}.profile-facts{font-size:14px}.profile-photo-main{height:320px}.photo-dialog{padding:12px;width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:12px}.photo-dialog-top{gap:8px}.photo-dialog-top p{font-size:13px}.photo-dialog-button{padding:8px 10px}.photo-dialog-image-wrap>img{max-height:calc(100dvh - 180px)}}

.sidebar-top{display:flex;align-items:center;gap:8px;flex-shrink:0;margin-bottom:27px}.sidebar-top .brand{min-width:0;flex:1;padding:0;gap:10px}.sidebar-top .brand h1{font-size:24px}.sidebar-top .brand p{display:none}.logout-button{flex-shrink:0;background:transparent;color:#bed3db;border:1px solid #496571;border-radius:8px;font-size:14px;padding:8px;min-height:40px}.logout-button:hover{background:#294550;color:#fff}.login-page{min-height:100dvh;background:#132833;color:#edf6f7;display:grid;place-items:center;padding:42px 22px}.login-layout{width:min(100%,440px)}.login-brand{padding:0 0 32px;justify-content:center}.login-brand .login-wordmark{color:#f0f7f8;font-size:29px;font-weight:650;letter-spacing:-1px;margin:0}.login-brand p:not(.login-wordmark){font-size:14px;color:#a6c1cb}.login-card{background:#fff;color:var(--ink);border:1px solid #dae7eb;border-radius:20px;padding:34px 32px 28px;box-shadow:0 18px 60px #03121840}.login-card h1{font-size:28px;line-height:1.25;letter-spacing:-.8px;font-weight:600;margin:12px 0 15px}.login-description{font-size:16px;line-height:1.7;color:#627c88}.login-card form{margin-top:27px}.login-card label{display:block;font-size:14px;font-weight:600;color:#36525f;margin-bottom:9px}.login-card input{display:block;width:100%;min-height:50px;border:1px solid #bdcfd7;border-radius:9px;padding:12px 13px;background:#fafcfd;color:var(--ink);font:inherit;font-size:16px}.login-card input:focus{outline:3px solid #176b6915;border-color:#6fa7a3}.login-card input:disabled{background:#f1f5f7}.login-submit{display:block;width:100%;min-height:49px;margin-top:16px;border:0;border-radius:9px;padding:12px 18px;background:var(--teal);color:#fff;font-size:16px;font-weight:600}.login-submit:hover:not(:disabled){background:#115855}.login-status{font-size:14px;line-height:1.6;color:#994a35;background:#fff2ec;border-radius:8px;padding:11px 12px;margin-top:16px}.login-footnote{font-size:14px;line-height:1.7;color:#a5bec8;text-align:center;margin-top:23px}.session-exit{min-height:100dvh;max-width:440px;margin:0 auto;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:20px;padding:32px;text-align:center}.session-exit h1{font-size:25px;line-height:1.4;letter-spacing:-.5px}.session-exit p{font-size:16px;line-height:1.7;color:#627c88}.session-exit .login-submit{margin-top:0;max-width:280px}@media(max-width:650px){.sidebar-top{margin:0 3px 11px}.sidebar-top .brand h1{font-size:21px}.logout-button{font-size:14px;min-height:34px;padding:5px 9px}.login-page{padding:28px 18px}.login-card{padding:28px 24px 24px}.login-card h1{font-size:26px}.login-brand{padding-bottom:26px}}@media(max-width:360px){.login-card{padding:24px 19px}.login-card h1{font-size:24px}}
