.thyros-welcome{display:flex;align-items:center;gap:24px;padding:28px 32px;margin:0 0 30px;background:linear-gradient(115deg,#f6e3d6,#f0e7fa 58%,#e4f3eb);border:1px solid #fff;border-radius:28px;color:#342b45}.thyros-welcome>div{flex:1}.thyros-welcome h2{font-size:24px;margin:5px 0 10px}.thyros-welcome p{margin:4px 0;line-height:1.65}.thyros-welcome .button{white-space:nowrap;background:linear-gradient(110deg,#7845b0,#286f8e)}
.thyros-back,.thyros-source-link{background:none;border:0;padding:6px 0;color:#6944a1;text-align:left;cursor:pointer;font:inherit}.thyros-back{margin-bottom:24px;font-weight:700}.thyros-grid{display:grid;grid-template-columns:minmax(0,1fr) 335px;gap:24px;align-items:start}.thyros-conversation,.thyros-next,.thyros-memory{background:#fffdfaeb;border:1px solid #fff;border-radius:28px;overflow:hidden;box-shadow:0 6px 24px #43344805}.thyros-head{display:flex;align-items:center;gap:16px;padding:28px 30px;background:linear-gradient(120deg,#faeadd,#f0e7fc,#e7f1ed)}.thyros-head h2{margin:0 0 6px;font-size:24px}.thyros-head p{margin:0;line-height:1.55}.thyros-notice{font-size:12px;color:#6d6679;line-height:1.7;padding:0 28px;margin:20px 0}.thyros-feed{padding:4px 28px;max-height:670px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.thyros-bubble{max-width:94%;padding:20px 22px;margin:16px 0;border-radius:4px 22px 22px;background:#f3eee8;overflow-wrap:anywhere}.thyros-bubble--user{background:#eae0f6;margin-left:auto;border-radius:22px 4px 22px 22px}.thyros-speaker{font-size:12px;color:#73529e;font-weight:800;margin:0 0 10px}.thyros-text{white-space:pre-wrap;line-height:1.85;margin:0;font-size:16px}.thyros-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.thyros-action{font:inherit;font-size:13px;font-weight:650;border:1px solid #d5c8e5;border-radius:13px;background:#fffdfb;color:#623d90;padding:11px 14px;cursor:pointer}.thyros-proposal{background:#fffdfa;border:1px solid #cfc1e3;border-radius:17px;padding:18px;margin-top:20px}.thyros-proposal p{font-size:12px;color:#756385}.thyros-proposal blockquote{margin:10px 0;padding-left:14px;border-left:3px solid #8dcab4;line-height:1.7}.thyros-sources{border-top:1px solid #ddcfdf;margin-top:18px;padding-top:12px;display:grid;gap:4px}.thyros-source-link{text-decoration:underline;text-underline-offset:3px;font-size:13px;line-height:1.7}.thyros-next,.thyros-memory{padding:24px}.thyros-next h2,.thyros-memory h2{font-size:21px;margin:10px 0 14px}.thyros-next>p{line-height:1.7}.thyros-next>small{display:block;color:#706779;margin:12px 0}.thyros-shortcuts{display:grid;grid-template-columns:1fr 1fr;gap:8px;border-top:1px solid #e5dbe9;margin-top:22px;padding-top:18px}.thyros-memory{margin-top:20px}.thyros-small{font-size:12px;color:#776c7e;line-height:1.8}.thyros-empty{font-size:14px;padding:20px 0;color:#706778}.thyros-memory-item{border-top:1px solid #e4dbe9;padding:16px 0}.thyros-memory-item strong{font-size:12px;color:#71548c}.thyros-memory-item p{font-size:14px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.thyros-memory-item .thyros-actions{margin:0;gap:20px}.thyros-add-memory{margin:18px 0}.thyros-add-memory summary{font-size:13px;color:#684393;cursor:pointer}.thyros-add-memory .thyros-source-link{display:block;margin:6px 0}.thyros-composer{padding:0 28px 26px}.thyros-composer fieldset{border:0;padding:0;margin:0;min-width:0}.thyros-composer label,.thyros-editor label{display:block;font-size:13px;font-weight:700;margin:8px 0}.thyros-composer textarea,.thyros-editor textarea{display:block;box-sizing:border-box;width:100%;border:1px solid #cbbdd9;background:#fffdfa;border-radius:16px;padding:14px;font:inherit;font-size:15px;resize:vertical;line-height:1.6;margin-top:10px}.thyros-composer-footer{display:flex;align-items:center;justify-content:space-between;gap:18px;margin-top:12px}.thyros-composer-footer small{font-size:11px;color:#766b7e}.thyros-page .button{background:linear-gradient(115deg,#7943b5,#347994);border-radius:16px;font-size:14px;padding:13px 20px}.thyros-status{padding:0 28px;color:#694395;font-size:13px;min-height:18px}.thyros-error{margin:10px 28px;padding:12px;background:#fff0eb;color:#913d39;border-radius:10px}.thyros-page button:disabled{opacity:.55;cursor:wait}.thyros-page :focus-visible{outline:3px solid #8661b1;outline-offset:4px}.thyros-page fieldset:disabled{opacity:.6}
@media(max-width:1000px){.thyros-grid{grid-template-columns:minmax(0,1fr) 290px}.thyros-welcome{flex-wrap:wrap}.thyros-welcome .button{margin-left:86px}.thyros-shortcuts{grid-template-columns:1fr}}
@media(max-width:720px){.thyros-grid{grid-template-columns:1fr}.thyros-welcome{padding:22px;gap:16px}.thyros-welcome h2{font-size:21px}.thyros-welcome .button{margin-left:0;width:100%}.thyros-welcome>.thyros-mark{display:none}.thyros-head{padding:22px 18px}.thyros-head h2{font-size:21px}.thyros-feed{padding:0 16px;max-height:65vh}.thyros-bubble{max-width:100%;padding:18px}.thyros-composer{padding:0 18px 22px}.thyros-composer-footer{align-items:flex-start;flex-direction:column}.thyros-composer-footer .button{align-self:flex-end}.thyros-notice{padding:0 18px}.thyros-shortcuts{grid-template-columns:1fr 1fr}.thyros-next,.thyros-memory{padding:22px}}
.thyros-attachment{display:block;margin:18px 0 8px;padding:13px 18px;border:1px solid #cdbbe4;border-radius:18px;background:linear-gradient(115deg,#f0e5fa,#e1f2ed);color:#53327c;font:inherit;font-weight:700;cursor:pointer}.thyros-attachment:hover{border-color:#74509a}.thyros-attachment:focus-visible{outline:3px solid #7145ab;outline-offset:3px}.thyros-attachment:disabled{opacity:.55;cursor:wait}
/* Thyromi: conversation at the heart of the patient space. */
.patient-thyromi-home .screen-header{margin-bottom:20px}.patient-thyromi-home .screen-header h1{font-size:26px}
.thyromi-home{margin-bottom:38px;scroll-margin-top:110px}.thyromi-home .thyros-grid{grid-template-columns:minmax(0,1fr) 295px;gap:22px}.thyromi-home .thyros-head{padding:24px}.thyromi-home .thyros-head h2{font-size:26px;line-height:1.3}.thyros-head .tc-eyebrow{font-size:10px;margin-bottom:8px}.thyromi-home .thyros-head>div{flex:1}.thyromi-expand{align-self:flex-start;background:transparent;border:0;border-bottom:1px solid #b5a0c8;color:#654486;padding:6px 0;font:inherit;font-size:12px;cursor:pointer;white-space:nowrap}.thyromi-home .thyros-head{flex-wrap:wrap}.thyromi-home .thyros-feed{max-height:270px}.thyromi-home .thyros-bubble{margin:8px 0;padding:16px 20px}.thyromi-home .thyros-text{font-size:15px;line-height:1.7}.thyromi-home .thyros-notice{margin:14px 0 8px}.thyromi-home .thyros-status{margin:6px 0;min-height:0}.thyromi-home .thyros-composer{padding-top:8px}.thyromi-home .thyros-composer label{font-size:14px}.thyromi-home .thyros-attachment{display:inline-block;margin:14px 10px 0 0;padding:9px 12px;font-size:12px}.thyromi-home .thyros-composer .thyros-small{font-size:10px}.thyromi-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px}.thyromi-suggestions[hidden]{display:none}.thyromi-suggestions .thyros-action{font-size:12px;padding:9px 12px;background:#f9f4fc;border-color:#e8dbef}.thyromi-memory-details{margin-top:16px;border:1px solid #e6dceb;border-radius:22px;background:#fffaf4cc}.thyromi-memory-details>summary{padding:18px 22px;font-size:14px;color:#654781;cursor:pointer;font-weight:650}.thyromi-memory-details .thyros-memory{margin:0;border:0;background:transparent;border-radius:0;box-shadow:none;padding-top:0}.thyromi-memory-details .thyros-memory h2{display:none}
.thyromi-launcher{position:fixed;bottom:24px;right:28px;z-index:80;display:flex;align-items:center;gap:12px;border:1px solid #fff;border-radius:50px;padding:8px 22px 8px 8px;color:#fff;background:linear-gradient(115deg,#7045a2 0%,#575397 55%,#236b80 100%);box-shadow:0 7px 24px #49336b40,0 0 0 1px #64468538;font:inherit;font-size:14px;font-weight:750;cursor:pointer}.thyromi-launcher .thyros-mark{transform:scale(.72);margin:-8px;flex-basis:62px}.thyromi-launcher:hover{background:linear-gradient(115deg,#623a91 0%,#494789 55%,#195d72 100%);box-shadow:0 9px 28px #49336b55}.thyromi-launcher:focus-visible{outline:3px solid #7950a6;outline-offset:4px}
.thyromi-dialog{position:fixed;inset:12px 12px 12px auto;margin:0;width:min(570px,calc(100vw - 24px));max-width:none;height:calc(100dvh - 24px);max-height:none;box-sizing:border-box;padding:20px;border:1px solid white;border-radius:28px;background:linear-gradient(150deg,#fff4e6,#f1eaf7 65%,#e7f2ec);color:#342b45;box-shadow:-16px 0 70px #30264030;overflow:auto;overscroll-behavior:contain}.thyromi-dialog::backdrop{background:#33283c40;backdrop-filter:blur(3px)}.thyromi-drawer .thyros-grid{grid-template-columns:minmax(0,1fr);gap:16px}.thyromi-drawer .thyros-back{display:block;margin-left:auto;margin-bottom:14px;font-size:13px;min-height:36px}.thyromi-drawer .thyros-head{padding:20px}.thyromi-drawer .thyros-head h2{font-size:21px}.thyromi-drawer .thyros-feed{max-height:40dvh;padding:0 18px}.thyromi-drawer .thyros-composer{padding:0 18px 22px}.thyromi-drawer .thyros-notice{padding:0 20px;font-size:11px}.thyromi-drawer .thyros-text{font-size:14px;line-height:1.75}.thyromi-drawer .thyros-bubble{padding:16px}.thyromi-drawer .thyros-next{padding:20px}.thyromi-drawer .thyros-shortcuts{grid-template-columns:1fr 1fr}.thyromi-drawer .thyros-composer-footer{flex-direction:row;align-items:center}.thyromi-drawer .thyros-attachment{font-size:13px}.thyromi-drawer .thyros-small{display:block}.thyromi-drawer .thyros-status{min-height:0}.thyromi-drawer .thyros-next>h2{font-size:19px}.thyromi-loading{padding:30px 12px}
@media(max-width:1050px){.thyromi-home .thyros-grid{grid-template-columns:minmax(0,1fr) 255px}.thyromi-home .thyros-head h2{font-size:23px}.thyromi-home .thyros-head>.thyros-mark{display:none}.thyromi-home .thyros-next{padding:20px}.thyromi-expand{white-space:normal}}
@media(max-width:760px){.thyromi-home .thyros-grid{grid-template-columns:minmax(0,1fr)}.thyromi-home .thyros-aside{display:grid;grid-template-columns:minmax(0,1fr)}.thyromi-home .thyros-shortcuts{grid-template-columns:1fr 1fr}.thyromi-home .thyros-head{padding:22px 18px;gap:12px}.thyromi-home .thyros-head h2{font-size:24px}.thyromi-home .thyros-feed{max-height:300px}.thyromi-home .thyros-composer-footer{flex-direction:row;align-items:center}.thyromi-home .thyros-composer-footer small{max-width:52%}.thyromi-home .thyros-composer .thyros-small{display:block;margin-top:8px}.thyromi-launcher{right:16px;bottom:max(16px,env(safe-area-inset-bottom));font-size:13px;padding-right:18px}.thyromi-dialog{inset:6px;width:calc(100vw - 12px);height:calc(100dvh - 12px);padding:12px;border-radius:22px}.thyromi-drawer .thyros-head{gap:12px}.thyromi-drawer .thyros-head h2{font-size:19px}.thyromi-drawer .thyros-head .thyros-mark{transform:scale(.8);margin:-6px}.thyromi-drawer .thyros-head p:not(.tc-eyebrow){font-size:13px}.thyromi-drawer textarea{font-size:16px}body:has(.thyromi-launcher) main{padding-bottom:100px}}
.thyromi-home .thyros-notice{margin:0;padding:14px 28px;border-top:1px solid #ece3eb;background:#faf6f2;font-size:11px}.thyromi-home .thyros-feed{padding-top:10px}.thyromi-home .thyros-composer{padding-bottom:18px}.thyromi-home .thyros-bubble--assistant:first-child{background:transparent;padding:8px 0}.thyromi-home .thyros-bubble--assistant:first-child .thyros-speaker{display:none}
body:has(.thyromi-dialog[open]){overflow:hidden}.thyromi-drawer .thyros-back{position:sticky;top:0;z-index:2;background:#faf1e9f2;border-radius:12px;padding:8px 12px;backdrop-filter:blur(8px)}
@media(max-width:760px){.thyromi-home .thyros-head>div{flex-basis:100%}.thyromi-home .thyromi-expand{margin-top:2px}.thyromi-home .thyros-head h2{font-size:24px;line-height:1.3}}
/* Thyromi's illustrated mascot. Motion is brief at rest, tied to request state in chat. */
.thyros-mark.thyromi-mascot{position:relative;display:inline-block;flex:0 0 78px;width:78px;height:78px;background:none;border-radius:0;box-shadow:none;isolation:isolate;transform:none;margin:0}
.thyromi-mascot-motion{display:block;width:100%;height:100%;transform-origin:50% 85%}
.thyromi-mascot img{display:block;width:100%;height:100%;object-fit:contain;transform-origin:50% 82%;filter:drop-shadow(0 5px 5px #77518515);user-select:none}
.thyromi-mascot-dots{position:absolute;bottom:0;left:50%;transform:translateX(-50%);display:none;gap:4px;padding:4px 7px;border-radius:20px;background:#fffaf4}
.thyromi-mascot-dots i{width:5px;height:5px;border-radius:50%;background:#45b9da}.thyromi-mascot-dots i:nth-child(2){background:#78cdb9}.thyromi-mascot-dots i:nth-child(3){background:#a397e4}
.thyromi-launcher .thyros-mark.thyromi-mascot{width:56px;height:56px;flex-basis:56px;margin:-5px 0 -3px;transform:none;background:#f4eef9;border-radius:50%;box-shadow:inset 0 0 0 1px #ffffffa6}
.thyros-head .thyros-mark.thyromi-mascot{display:inline-block;flex-basis:86px;width:86px;height:86px;margin:0;transform:none}
[data-mascot-state=thinking] .thyros-head .thyromi-mascot-dots{display:flex}
@media(prefers-reduced-motion:no-preference){
 .thyromi-mascot-motion{animation:thyromi-breathe 3.8s ease-in-out 1}
 .thyromi-mascot img{animation:thyromi-hello 1.2s ease-in-out 1}
 .thyromi-launcher:hover .thyromi-mascot-motion,.thyromi-launcher:focus-visible .thyromi-mascot-motion,.tc-arrival-help:hover .thyromi-mascot-motion{animation:thyromi-greet .8s ease-in-out 1}
 [data-mascot-state=thinking] .thyros-head .thyromi-mascot-motion{animation:thyromi-thinking 1.8s ease-in-out infinite}
 [data-mascot-state=thinking] .thyromi-mascot-dots i{animation:thyromi-dot 1.2s ease-in-out infinite}
 [data-mascot-state=thinking] .thyromi-mascot-dots i:nth-child(2){animation-delay:.15s}
 [data-mascot-state=thinking] .thyromi-mascot-dots i:nth-child(3){animation-delay:.3s}
 [data-mascot-state=reply] .thyros-head .thyromi-mascot-motion{animation:thyromi-greet .7s ease-out 1}
}
@keyframes thyromi-hello{0%,100%{transform:rotate(0)}30%{transform:rotate(-7deg)}65%{transform:rotate(5deg)}}
@keyframes thyromi-breathe{0%,50%,100%{transform:translateY(0) scale(1)}25%,75%{transform:translateY(-3px) scale(1.025)}}
@keyframes thyromi-greet{0%,100%{transform:translateY(0) rotate(0)}35%{transform:translateY(-5px) rotate(-5deg)}70%{transform:translateY(-1px) rotate(3deg)}}
@keyframes thyromi-thinking{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-3px) rotate(3deg)}}
@keyframes thyromi-dot{0%,75%,100%{transform:translateY(0);opacity:.6}35%{transform:translateY(-3px);opacity:1}}
@media(prefers-reduced-motion:reduce){.thyromi-mascot-motion,.thyromi-mascot img,.thyromi-mascot-dots i{animation:none!important;transition:none!important}}
@media(max-width:760px){.thyros-head .thyros-mark.thyromi-mascot{width:64px;height:64px;flex-basis:64px}.thyromi-launcher .thyros-mark.thyromi-mascot{width:48px;height:48px;flex-basis:48px}}
/* One quiet attachment control inside the message box. */
.thyromi-composer-box{border:1px solid #cbbdd9;border-radius:20px;background:#fffdfa;padding:10px;transition:border-color .15s}
.thyromi-composer-box:focus-within{border-color:#78529e;box-shadow:0 0 0 2px #78529e14}
.thyros-composer .thyromi-composer-box textarea{border:0;background:transparent;box-shadow:none;border-radius:10px;margin:0;padding:8px;min-height:90px;outline:none}
.thyros-composer .thyromi-composer-box textarea:focus-visible{outline:none}
.thyromi-composer-box .thyros-composer-footer{margin:4px 0 0;flex-direction:row;align-items:center;justify-content:space-between}
.thyromi-attach{display:grid;place-items:center;min-width:42px;min-height:42px;padding:8px;background:transparent;border:0;border-radius:12px;color:#79658c;cursor:pointer}
.thyromi-attach:hover{background:#eee6f5;color:#694293}.thyromi-attach svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.thyromi-image-preview{display:flex;align-items:center;gap:10px;max-width:100%;padding:8px;margin-bottom:6px;background:#f0e9f5;border-radius:13px}
.thyromi-image-preview img{width:58px;height:58px;object-fit:cover;border-radius:8px}.thyromi-image-preview>span{font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.thyromi-image-remove{min-width:36px;min-height:36px;border:0;border-radius:50%;background:#fff9;color:#63467e;font-size:24px;cursor:pointer}
.thyros-composer .thyromi-image-consent{display:flex;align-items:flex-start;gap:8px;font-size:11px;font-weight:400;line-height:1.6;margin:12px 0 6px;color:#71647c}.thyromi-image-consent input{width:16px;height:16px;flex:0 0 16px;margin-top:2px;accent-color:#78529e}
.thyromi-image-hint,.thyromi-image-receipt{display:block;font-size:11px;color:#796b83;line-height:1.6}.thyromi-image-receipt{margin-top:12px}
.thyromi-image-preview[hidden],.thyromi-image-consent[hidden],.thyromi-image-hint[hidden]{display:none}
.thyromi-drawer .thyros-next{border:0;background:transparent;box-shadow:none;padding-top:0}.thyromi-drawer .thyros-next>h2,.thyromi-drawer .thyros-next>.tc-eyebrow{display:none}

/* A compact avatar bar leaves the conversation in focus. */
.thyros-page .thyros-head{padding:12px 24px;min-height:56px;gap:12px;background:transparent;justify-content:space-between}
.thyros-page .thyros-head .thyros-mark.thyromi-mascot{width:56px;height:56px;flex-basis:56px}
.thyromi-drawer .thyros-head .thyros-back{position:static;margin:0 0 0 auto;padding:8px 4px;background:transparent;backdrop-filter:none;align-self:center}
.thyromi-drawer .thyros-notice{margin:0 0 12px;padding:0 20px}
.thyromi-drawer .thyros-feed{max-height:48dvh}
.thyros-page .thyros-status:empty{display:none}
@media(max-width:760px){.thyros-page .thyros-head{padding:10px 18px}.thyromi-drawer .thyros-head .thyros-back{font-size:12px}}
/* Home: the conversation is already open in the arrival layout. */
.tc-arrival-chat{min-width:0;align-self:start;border:1px solid #d8c6e4;border-radius:26px;overflow:hidden;background:linear-gradient(125deg,#fff8ef,#f2eaf8 70%,#e9f3ee);box-shadow:0 8px 28px #7150840b}
.patient-thyromi-home .tc-arrival-situation{align-self:start;min-height:180px}
.thyromi-inline .thyros-grid{display:block}.thyromi-inline .thyros-conversation{border:0;border-radius:0;background:transparent;box-shadow:none}
.thyromi-inline.thyros-page .thyros-head{justify-content:flex-start;padding:10px 22px;border-bottom:1px solid #e5d8e9;min-height:0;gap:10px}
.thyromi-inline.thyros-page .thyros-head .thyromi-mascot{width:44px;height:44px;flex-basis:44px}.thyromi-inline .thyros-head h2{font-size:18px;font-weight:700;margin:0;color:#49375d}
.thyromi-inline .thyros-feed{max-height:210px;padding:6px 22px 0;scrollbar-gutter:stable}
.thyromi-inline .thyros-bubble{margin:8px 0;padding:12px 16px;max-width:96%}.thyromi-inline .thyros-text{font-size:14px;line-height:1.7}.thyromi-inline .thyros-speaker{font-size:11px;margin-bottom:6px}
.thyromi-inline .thyros-bubble--assistant:first-child{background:transparent;padding:6px 0}.thyromi-inline .thyros-bubble--assistant:first-child .thyros-speaker{display:none}
.thyromi-inline .thyros-composer{padding:8px 22px 14px}.thyromi-inline .thyros-composer fieldset>label:first-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.thyromi-inline .thyros-composer textarea{min-height:68px;font-size:14px}.thyromi-inline .thyros-composer-footer{flex-direction:row;align-items:center}
.thyromi-inline .thyromi-suggestions{margin-top:10px;gap:6px}.thyromi-inline .thyromi-suggestions .thyros-action{font-size:11px;padding:7px 10px}
.thyromi-inline .thyros-status{padding:0 22px;margin:5px 0;min-height:0}.thyromi-inline .thyros-notice{margin:0;padding:10px 22px;border-top:1px solid #e5d8e9;font-size:10px;line-height:1.6;color:#71617e;background:#fffaf778}
.tc-arrival-chat>.button{margin:0 22px 22px}
@media(max-width:760px){.patient-thyromi-home .tc-arrival-situation{min-height:0}.thyromi-inline .thyros-feed{max-height:230px;padding-inline:16px}.thyromi-inline .thyros-composer{padding-inline:16px}.thyromi-inline .thyros-composer textarea{font-size:16px}.thyromi-inline .thyros-notice{padding-inline:16px}.thyromi-inline.thyros-page .thyros-head{padding-inline:16px}}
.journal-proposal{overflow-wrap:anywhere;display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 16px;background:linear-gradient(120deg,#f3eaf9,#eaf4f0);border-color:#c9b5de}
.journal-proposal-summary{display:flex;gap:10px;align-items:center;flex:1;min-width:180px}.journal-proposal-summary strong{font-size:13px;color:#453354}.journal-proposal-summary .journal-proposal-label{margin:4px 0 0;font-size:13px;color:#655570;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.journal-proposal-icon{display:grid;place-items:center;flex:none;width:34px;height:38px;border:1px solid #fff;border-radius:12px;background:#ffffffac;color:#7854a3;font-size:21px}
.journal-proposal-open{border:1px solid #9c7cbe;border-radius:12px;background:#fffdfb;color:#5a3b80;font:inherit;font-size:12px;font-weight:700;padding:10px 14px;min-height:44px;cursor:pointer}.journal-proposal-open[hidden]{display:none}
.journal-proposal .journal-proposal-receipt{margin:0;font-size:13px;color:#28665c;flex-basis:100%}
.journal-entry-dialog{position:fixed;inset:0;margin:auto;padding:0;width:min(580px,calc(100vw - 32px));max-width:none;max-height:calc(100dvh - 40px);border:1px solid #c8b1df;border-radius:26px;background:#fffaf6;color:#3c304d;box-shadow:0 24px 90px #2e17444d;text-align:left;overflow:hidden;font-size:14px}
.journal-entry-dialog::backdrop{background:#29203466;backdrop-filter:blur(5px)}
.journal-entry-form{display:flex;flex-direction:column;max-height:calc(100dvh - 42px);margin:0}
.journal-entry-header{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:22px 26px 18px;flex:none;background:linear-gradient(120deg,#f7e6dd,#eee6f7 65%,#e4f2ed);border-bottom:1px solid #e4d8ec}
.journal-entry-header .journal-entry-eyebrow{margin:0 0 7px;color:#704b95;font-size:10px;font-weight:700;letter-spacing:.12em}
.journal-entry-header h2{font-size:23px;font-weight:650;line-height:1.25;letter-spacing:-.025em;margin:0;color:#3d304e}
.journal-entry-close{flex:none;border:1px solid #d9c9e4;background:#fff9;border-radius:50%;width:44px;height:44px;font-size:26px;line-height:1;color:#5e4877;cursor:pointer}
.journal-entry-dialog .journal-proposal-fields{border:0;padding:20px 26px;margin:0;min-width:0;min-height:0;overflow-y:auto;overscroll-behavior:contain;display:grid;gap:15px;scrollbar-width:thin}
.journal-entry-intro>p:first-child{font-size:11px;font-weight:650;color:#7b638f;margin:0 0 5px}.journal-entry-intro blockquote{margin:0;padding:10px 14px;border-left:3px solid #a693ca;background:#f4eef7;border-radius:0 10px 10px 0;font-size:14px;line-height:1.5;max-height:90px;overflow:auto}
.journal-entry-intro>p:last-child{font-size:12px;color:#73647e;line-height:1.6;margin:10px 0 0}
.journal-entry-dialog .journal-proposal-fields>label{display:grid;gap:7px;font-size:13px;font-weight:600;line-height:1.5}.journal-entry-dialog .journal-proposal-fields>label[hidden]{display:none}
.journal-entry-dialog .journal-proposal-fields>label>input,.journal-entry-dialog .journal-proposal-fields>label>select{box-sizing:border-box;min-width:0;width:100%;max-width:100%;padding:11px 12px;border:1px solid #cbb8dc;background:#fffdfa;color:#3b2e4d;border-radius:12px;font:inherit;font-size:15px;min-height:46px}
.journal-entry-severity{border:0;padding:0;margin:3px 0 0;min-width:0}.journal-entry-severity legend{font-size:13px;font-weight:650;margin-bottom:10px}.journal-entry-scale{display:flex;flex-wrap:wrap;gap:5px}.journal-entry-scale>label{position:relative;flex:1;min-width:36px;cursor:pointer}.journal-entry-scale input{position:absolute;opacity:0;width:1px;height:1px;left:50%;top:50%}.journal-entry-scale span{display:grid;place-items:center;min-height:44px;border:1px solid #d8c8e5;border-radius:10px;background:#fffdfa;font-size:14px;font-weight:650;color:#624680}.journal-entry-scale input:checked+span{color:white;background:linear-gradient(130deg,#7950ad,#347e8d);border-color:#7152a0;box-shadow:0 3px 9px #64468b25}.journal-entry-scale input:focus-visible+span{outline:3px solid #8661b1;outline-offset:2px}.journal-entry-scale-labels{display:flex;justify-content:space-between;gap:12px;margin-top:8px;font-size:10px;color:#746480}
.journal-entry-footer{flex:none;padding:14px 26px 20px;background:#fffaf6;border-top:1px solid #e5daed}.journal-entry-footer .journal-entry-hint{font-size:11px;color:#776581;margin:0 0 12px;line-height:1.5}.journal-entry-footer .journal-entry-status{font-size:13px;line-height:1.5;color:#664386;margin:0 0 10px}.journal-entry-status:empty{display:none}
.journal-entry-actions{display:flex;align-items:center;justify-content:space-between;gap:12px}.journal-entry-cancel{min-height:44px;padding:10px 4px;border:0;background:transparent;color:#6d5683;font:inherit;font-size:13px;cursor:pointer}.journal-entry-actions>.button{min-height:46px;border-radius:14px;background:linear-gradient(115deg,#7943b5,#347994);color:white;padding:12px 18px;font-size:14px;font-weight:650}
.journal-entry-dialog :focus-visible,.journal-proposal-open:focus-visible{outline:3px solid #8661b1;outline-offset:3px}.journal-entry-dialog button:disabled{opacity:.55;cursor:wait}.journal-entry-dialog fieldset:disabled{opacity:.65}
@media(max-width:600px){.journal-entry-dialog{width:calc(100vw - 20px);max-height:calc(100dvh - 20px);border-radius:20px}.journal-entry-form{max-height:calc(100dvh - 22px)}.journal-entry-header{padding:18px}.journal-entry-header h2{font-size:21px}.journal-entry-dialog .journal-proposal-fields{padding:18px}.journal-entry-dialog .journal-proposal-fields>label>input,.journal-entry-dialog .journal-proposal-fields>label>select{font-size:16px}.journal-entry-footer{padding:12px 18px 16px}.journal-entry-scale{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px}.journal-entry-scale>label{min-width:0}.journal-entry-actions>.button{font-size:13px;padding:12px}.journal-proposal-open{width:100%}}

.basedow-point{margin:14px 20px;padding:18px;border:1px solid #d2c3e6;border-radius:20px;background:linear-gradient(125deg,#eee8f4ad,#e8f4efb0);box-shadow:inset 0 1px 0 #fff}.basedow-point h3{font-size:1rem;line-height:1.5;margin:8px 0 12px}.basedow-point .thyros-actions{gap:8px;flex-wrap:wrap}.basedow-point details{margin-top:14px}.basedow-point summary{font-size:.82rem;color:#634587;cursor:pointer}.basedow-edit{display:flex;align-items:flex-end;gap:10px;margin:14px 0}.basedow-edit label{flex:1;font-size:.85rem}.basedow-edit select,.thyros-proposal select{display:block;max-width:100%;width:100%;margin-top:6px;padding:10px;border:1px solid #cdb8e4;border-radius:10px;background:#fff;color:#453657;font:inherit}.basedow-point .tc-eyebrow{font-size:.65rem}.basedow-point .thyros-action{min-height:38px}.basedow-point .thyros-small:empty{display:none}@media(max-width:600px){.basedow-point{margin:10px;padding:14px}.basedow-edit{align-items:stretch;flex-direction:column}}
.thyromi-save-reply{display:flex;align-items:flex-start;gap:12px;margin:14px 22px 8px;padding:17px;border:1px solid #a992c3;border-radius:19px;background:linear-gradient(120deg,#f1e6fb,#fcfafc 58%,#e0f2ec);box-shadow:inset 0 1px 0 #fff,0 5px 18px #6145820c}
.thyromi-save-reply[hidden]{display:none}.thyromi-save-reply>.thyromi-mascot{width:48px;height:48px;flex:0 0 48px}.thyromi-save-copy{min-width:0;flex:1}.thyromi-save-copy>strong{font-size:13px;color:#62428a}.thyromi-save-text{font-size:14px;line-height:1.7;margin:6px 0 0;color:#43334f;overflow-wrap:anywhere}.thyromi-save-reply .thyros-actions{margin-top:12px}.thyromi-save-reply .thyros-action{font-size:12px;min-height:42px;background:#fff;border-color:#ac94c4}.thyromi-save-reply .thyros-action:first-child{background:#644785;color:#fff;border-color:#644785}
.basedow-point-complete{padding:12px 16px;background:#faf7fc94}.basedow-point-complete>strong{font-size:13px;color:#59416f}.basedow-point-complete>.thyros-small{margin:5px 0;font-size:12px}.basedow-point-complete details{margin-top:8px}
@media(max-width:600px){.thyromi-save-reply{margin:10px 14px;padding:14px;gap:9px}.thyromi-save-reply>.thyromi-mascot{width:36px;height:36px;flex-basis:36px}.thyromi-save-text{font-size:13px}.thyromi-save-reply .thyros-actions{flex-direction:column;align-items:stretch}.thyromi-save-reply .thyros-action{width:100%}}

/* More space for the actual conversation; questionnaires live in their own hub. */
.thyromi-inline .thyros-conversation{display:flex;flex-direction:column;min-height:590px}
.thyromi-inline .thyros-feed{flex:1;min-height:280px;max-height:420px;padding-top:14px}
.thyromi-inline .thyros-composer{margin-top:auto}
.thyromi-inline.thyros-page .thyros-head{padding-block:14px}
.thyromi-inline.thyros-page .thyros-head .thyromi-mascot{width:52px;height:52px;flex-basis:52px}
.thyromi-inline .thyros-head h2{font-size:21px}
@media(max-width:760px){.thyromi-inline .thyros-conversation{min-height:490px}.thyromi-inline .thyros-feed{min-height:185px;max-height:300px}}

/* A quiet, consistent identity beside each assistant message. */
.thyros-bubble--assistant .thyros-speaker,
.thyromi-home .thyros-bubble--assistant:first-child .thyros-speaker,
.thyromi-inline .thyros-bubble--assistant:first-child .thyros-speaker{display:flex;align-items:center;gap:8px;min-height:30px;color:#68478e}
.thyros-speaker-avatar{display:block;flex:0 0 30px;width:30px;height:30px;object-fit:contain;user-select:none}

/* Drawer layout is shared by every host, including Mes bilans. */
.thyromi-drawer,.thyromi-drawer *{box-sizing:border-box}
.thyromi-drawer{width:100%;min-width:0}
.thyromi-drawer .thyros-grid{display:block;width:100%;min-width:0}
.thyromi-drawer .thyros-conversation{width:100%;min-width:0}
.thyromi-drawer .thyros-feed{max-height:clamp(120px,32dvh,340px);min-width:0}
.thyromi-drawer .thyros-head .thyros-back{flex:0 1 auto;max-width:calc(100% - 70px);text-align:right;line-height:1.4}
.thyromi-drawer .thyros-bubble{max-width:100%}
.thyromi-drawer .thyros-composer textarea{max-height:180px}
body:has(.bl-chat-dialog[open]){overflow:hidden}

/* Frosted companion pill, with Thyromi standing above its glass edge. */
.thyromi-launcher,.bl-thyromi{
 position:fixed;right:24px;bottom:max(24px,env(safe-area-inset-bottom));
 display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;
 min-height:56px;padding:15px 24px 15px 82px;gap:0;border:1px solid #ffffffe6;border-radius:999px;
 color:#49375e;font:750 14px/1.4 Manrope,Arial,sans-serif;white-space:nowrap;
 background:radial-gradient(ellipse at 83% 20%,#9bd9ee70,transparent 50%),radial-gradient(ellipse at 66% 100%,#c4a8ef60,transparent 58%),radial-gradient(ellipse at 8% 100%,#abe5ce5c,transparent 52%),linear-gradient(130deg,#fffdf4eb,#f7f2f6cf);
 backdrop-filter:blur(18px) saturate(1.3);-webkit-backdrop-filter:blur(18px) saturate(1.3);
 box-shadow:inset 0 2px 2px #ffffffee,inset 0 -2px 4px #a9a1b826,0 10px 28px #44335324,0 0 0 1px #9b87ae29;
 overflow:visible;isolation:isolate;cursor:pointer;text-shadow:0 1px 1px #fff9;
}
.thyromi-launcher .thyros-mark.thyromi-mascot,.bl-thyromi .thyros-mark.thyromi-mascot{
 position:absolute;left:7px;bottom:3px;width:74px;height:74px;flex:none;margin:0;
 background:none;border-radius:0;box-shadow:none;transform:none;pointer-events:none;
}
.thyromi-launcher .thyromi-mascot img,.bl-thyromi .thyromi-mascot img{filter:drop-shadow(0 5px 4px #56416b2b)}
.thyromi-launcher:hover,.bl-thyromi:hover{background:radial-gradient(ellipse at 83% 20%,#9bd9ee88,transparent 50%),radial-gradient(ellipse at 66% 100%,#c4a8ef7d,transparent 58%),linear-gradient(130deg,#fffef6,#f4eff9eb);box-shadow:inset 0 2px 2px #fff,0 12px 30px #44335330,0 0 0 1px #9b87ae45}
.thyromi-launcher:focus-visible,.bl-thyromi:focus-visible{outline:3px solid #7950a6;outline-offset:5px}
@media(max-width:760px){
 .thyromi-launcher,.bl-thyromi{right:16px;bottom:max(16px,env(safe-area-inset-bottom));min-height:52px;padding:14px 20px 14px 73px;font-size:13px}
 .thyromi-launcher .thyros-mark.thyromi-mascot,.bl-thyromi .thyros-mark.thyromi-mascot{width:66px;height:66px;left:6px;bottom:3px}
}

/* One flexible reading area, anchored header and composer, shared by both chat dialogs. */
.thyromi-dialog,.bl-chat-dialog{height:calc(var(--thyromi-visible-height,100dvh) - 24px);max-height:calc(var(--thyromi-visible-height,100dvh) - 24px);width:min(640px,calc(100vw - 24px));max-width:none;padding:10px;overflow:hidden;box-sizing:border-box;top:calc(var(--thyromi-viewport-top,0px) + 12px);bottom:auto}
.bl-chat-dialog{position:fixed;margin:0 auto;left:0;right:0}
.thyromi-drawer,.thyromi-drawer .thyros-grid{height:100%;min-height:0}
.thyromi-drawer .thyros-conversation{height:100%;min-height:0;display:flex;flex-direction:column;border-radius:22px}
.thyromi-drawer .thyros-head{flex:none;padding:10px 20px}
.thyromi-drawer .thyros-notice{flex:none;padding:0 20px;margin:0 0 10px;font-size:11px;line-height:1.55}
.thyromi-conversation-scroll{flex:1 1 0;min-height:0;overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scrollbar-width:thin;scroll-padding:12px;outline-offset:-3px}
.thyromi-drawer .thyros-feed{height:auto;min-height:0;max-height:none;overflow:visible;padding:0 18px 10px}
.thyromi-drawer .thyros-bubble{margin:12px 0;padding:16px 18px;border-radius:18px;background:#f3eef5}
.thyromi-drawer .thyros-bubble--user{margin-left:24px;background:#e9def4}
.thyromi-drawer .thyros-status{flex:none;padding:0 20px;margin:5px 0;font-size:11px;line-height:1.5}
.thyromi-drawer .thyros-error{flex:none;max-height:70px;overflow:auto;margin:6px 18px;padding:10px}
.thyromi-drawer .thyros-composer{flex:none;padding:10px 18px 14px;margin:0;background:#fffdfa;border-top:1px solid #e9dfee;max-height:45%;overflow-y:auto;scrollbar-width:thin}
.thyromi-drawer .thyros-composer label{margin:0 0 6px;font-size:12px}
.thyromi-drawer .thyromi-composer-box{padding:6px;border-radius:17px}
.thyromi-drawer .thyros-composer .thyromi-composer-box textarea{height:56px;min-height:48px;max-height:120px;resize:none;font-size:15px;line-height:1.5;padding:8px;overflow-y:auto}
.thyromi-drawer .thyros-composer-footer{margin:0}.thyromi-drawer .thyros-composer-footer>.button{min-height:40px;padding:9px 16px;font-size:13px;border-radius:12px}
.thyromi-drawer .thyromi-suggestions{margin-top:8px;gap:6px}.thyromi-drawer .thyromi-suggestions .thyros-action{padding:7px 10px;font-size:11px}
.thyromi-drawer .thyromi-save-reply{margin:10px 18px 18px}
@media(max-width:760px){.thyromi-dialog,.bl-chat-dialog{inset:calc(var(--thyromi-viewport-top,0px) + 6px) 6px auto;width:calc(100vw - 12px);height:calc(var(--thyromi-visible-height,100dvh) - 12px);max-height:calc(var(--thyromi-visible-height,100dvh) - 12px);margin:0;padding:5px;border-radius:22px}.thyromi-drawer .thyros-conversation{border-radius:18px}.thyromi-drawer .thyros-head{padding:8px 14px}.thyromi-drawer .thyros-notice{padding:0 14px;font-size:10px;margin-bottom:8px}.thyromi-drawer .thyros-feed{padding:0 12px 8px}.thyromi-drawer .thyros-composer{padding:8px 12px max(10px,env(safe-area-inset-bottom))}.thyromi-drawer .thyros-composer .thyromi-composer-box textarea{font-size:16px}.thyromi-drawer .thyros-bubble{padding:14px}.thyromi-drawer .thyros-status{padding:0 14px}.thyromi-drawer .thyros-head .thyros-mark.thyromi-mascot{width:42px;height:42px;flex-basis:42px}}
@media(max-height:550px){.thyromi-drawer .thyros-head{padding-block:4px}.thyromi-drawer .thyros-head .thyros-mark.thyromi-mascot{width:34px;height:34px;flex-basis:34px}.thyromi-drawer .thyros-notice{font-size:10px;line-height:1.3;margin-bottom:4px}.thyromi-drawer .thyromi-suggestions{display:none}.thyromi-drawer .thyros-composer{max-height:48%}}

/* Reviewable actions prepared in the conversation. */
.td-dialog{box-sizing:border-box;width:min(620px,calc(100vw - 24px));max-height:88dvh;overflow:auto;padding:26px;border:1px solid #decde9;border-radius:24px;background:#fffaf6;color:#39334d;font-family:Manrope,Arial,sans-serif;box-shadow:0 25px 90px #3c254c40}.td-dialog::backdrop{background:#30243c66;backdrop-filter:blur(4px)}.td-dialog h2{font-size:23px;line-height:1.3;margin:0 0 14px}.td-field{display:flex;flex-direction:column;gap:8px;margin:18px 0;font-size:14px;font-weight:650}.td-field input,.td-field select,.td-field textarea{box-sizing:border-box;width:100%;min-width:0;min-height:46px;border:1px solid #cebbdf;border-radius:12px;padding:11px;font:inherit;font-weight:450;background:#fff;color:#39334d}.td-field textarea{resize:vertical}.td-check{display:flex;align-items:flex-start;gap:10px;margin:22px 0;font-size:13px;line-height:1.6}.td-check input{flex:none;width:18px;height:18px;accent-color:#7546a7;margin-top:3px}.td-existing{padding:0 12px;border-left:3px solid #ddd0ea;font-size:13px}.td-status{font-size:14px;line-height:1.65;overflow-wrap:anywhere}.td-status:empty{display:none}.td-proposal>button{margin:8px 8px 0 0}.td-dialog :focus-visible{outline:3px solid #4a9298;outline-offset:3px}.td-dialog button{min-height:44px;white-space:normal}.td-dialog button:disabled{opacity:.55;cursor:wait}@media(max-width:540px){.td-dialog{padding:20px}.td-dialog h2{font-size:20px}.td-field input,.td-field select,.td-field textarea{font-size:16px}.td-dialog form>.button{width:100%}}
/* Read at your pace; memory is available from every conversation layout. */
.tm-access{flex:none;padding:0 24px 12px;display:flex;justify-content:flex-end}.tm-access .thyros-action{font-size:12px;min-height:42px;background:#f5eff9;border-color:#d8c7e5}.thyros-text+.thyros-text{margin-top:12px}.tr-choices{display:flex;flex-wrap:wrap;gap:8px;padding-top:14px;margin-top:16px;border-top:1px solid #dfd2e6}.tr-choices .thyros-action{font-size:12px;min-height:44px;white-space:normal;text-align:left;background:#fffdfc}.tr-sources summary{cursor:pointer;font-size:12px;color:#684588;min-height:32px;line-height:1.6}.tr-sources[open]{display:block}.tr-sources .thyros-source-link{display:block;margin-top:8px}.thyromi-drawer .tm-access{padding:0 18px 8px}.thyromi-inline .tm-access{padding:10px 22px 0}
.tm-dialog,.tm-dialog *{box-sizing:border-box}.tm-dialog{width:min(650px,calc(100vw - 24px));max-height:90dvh;margin:auto;padding:0;overflow:auto;border:1px solid #d5c4e3;border-radius:26px;background:#fffaf6;color:#39334d;font:14px Manrope,Arial,sans-serif;box-shadow:0 24px 90px #39264a44}.tm-dialog::backdrop{background:#30243c66;backdrop-filter:blur(4px)}.tm-header{display:flex;align-items:flex-start;justify-content:space-between;gap:15px;padding:22px 24px;border-bottom:1px solid #e6dce9;background:linear-gradient(120deg,#f4eafa,#f4f6ef)}.tm-header h2{font-size:21px;line-height:1.35;margin:0;max-width:370px}.tm-header button{flex:none;min-height:44px}.tm-body{padding:20px 24px 26px;overflow-wrap:anywhere}.tm-intro{margin:0 0 20px;line-height:1.7;color:#65556d}.tm-card{border:1px solid #e1d6e8;border-radius:16px;background:#fffdfb;padding:17px;margin:12px 0}.tm-card-heading{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px}.tm-card h3{font-size:14px;line-height:1.45;margin:0}.tm-origin{display:inline-block;color:#576957;background:#ecf3ed;padding:5px 9px;border-radius:20px;font-size:10px;line-height:1.4}.tm-value{line-height:1.75;white-space:pre-wrap;margin:12px 0;color:#45364f}.tm-card small{font-size:11px;color:#776c7e}.tm-actions{display:flex;flex-wrap:wrap;gap:9px;margin-top:14px}.tm-dialog button,.tm-dialog summary{min-height:44px}.tm-dialog .thyros-action{white-space:normal;font-size:12px}.tm-add,.tm-origins{border-top:1px solid #e4d9e8;margin-top:20px;padding-top:12px}.tm-dialog summary{cursor:pointer;line-height:1.6;font-weight:650;padding:9px 0;color:#634183}.tm-add button{display:block;margin:8px 0}.tm-note,.tm-validation{font-size:12px;line-height:1.7;color:#74667e}.tm-validation{padding:14px;border-radius:12px;background:#f0edf5}.tm-document{border-top:1px solid #eee5f0;padding:15px 0}.tm-document p{margin:8px 0;line-height:1.65}.tm-document a{display:block;margin-top:8px}.tm-status{margin:14px 24px 0;line-height:1.7;color:#614080}.tm-status:empty{display:none}.tm-field{display:grid;gap:10px;font-weight:650;margin:20px 0}.tm-field textarea{width:100%;max-width:100%;padding:13px;border:1px solid #cbb8db;border-radius:12px;font:inherit;font-size:15px;font-weight:400;line-height:1.7;resize:vertical;background:white;color:#39334d}.tm-check{display:flex;align-items:flex-start;gap:10px;font-size:13px;line-height:1.6}.tm-check input{width:18px;height:18px;flex:none;margin-top:2px;accent-color:#71459a}.tm-dialog .button{border:0;border-radius:13px;background:#7049a0;color:#fff;padding:12px 16px;font:inherit;cursor:pointer}.tm-dialog :focus-visible{outline:3px solid #4a9298;outline-offset:3px}.tm-dialog button:disabled{opacity:.55;cursor:wait}.tm-empty{padding:12px 0;color:#75687d;line-height:1.7}
@media(max-width:540px){.tm-access{padding:0 16px 10px}.thyromi-inline .tm-access{padding:8px 16px 0}.tr-choices{gap:7px}.tr-choices .thyros-action{flex:1 1 auto;padding:10px}.tr-choices .thyros-action:last-child{flex-basis:100%}.tm-dialog{width:calc(100vw - 16px);max-height:92dvh;border-radius:20px}.tm-header{padding:18px;gap:10px}.tm-header h2{font-size:19px}.tm-body{padding:18px}.tm-status{margin-inline:18px}.tm-field textarea{font-size:16px}.tm-card{padding:14px}.tm-card-heading{align-items:flex-start;flex-direction:column}.tm-dialog form .tm-actions>.button{flex-basis:100%}}
.tr-role>p{margin:0}.tr-role details{margin-top:5px}.tr-role summary{cursor:pointer;line-height:1.6;color:#684588;padding:4px 0}.tr-role details>p{margin:8px 0 0}

/* Clearly visible response preparation in page, inline and drawer layouts. */
.thyros-status.thyros-status--thinking,.thyromi-drawer .thyros-status.thyros-status--thinking{display:flex;align-items:center;gap:14px;flex:none;margin:12px 20px;padding:15px 18px;border:1px solid #cbb4e4;border-radius:16px;background:#f0e7fa;color:#63358c;font-size:17px;font-weight:750;line-height:1.5;box-shadow:0 3px 12px #7049a00b}
.thyromi-thinking-dots{display:inline-flex;align-items:center;gap:5px;flex:none;height:22px}
.thyromi-thinking-dots>span{display:block;width:8px;height:8px;border-radius:50%;background:currentColor;animation:thyromi-thinking-dot 1.35s ease-in-out infinite}
.thyromi-thinking-dots>span:nth-child(2){animation-delay:.18s}.thyromi-thinking-dots>span:nth-child(3){animation-delay:.36s}
@keyframes thyromi-thinking-dot{0%,60%,100%{transform:translateY(0);opacity:.45}30%{transform:translateY(-5px);opacity:1}}
@media(max-width:540px){.thyros-status.thyros-status--thinking,.thyromi-drawer .thyros-status.thyros-status--thinking{margin:10px 12px;padding:12px 14px;gap:11px;font-size:16px}}
@media(prefers-reduced-motion:reduce){.thyromi-thinking-dots>span{animation:none;opacity:1}}

/* More breathing room below memory access; assistant replies gain one typographic point. */
.thyros-page .tm-access{padding-bottom:20px}
.thyros-bubble--assistant .thyros-text{font-size:calc(16px + 1pt)}
.thyromi-home .thyros-bubble--assistant .thyros-text{font-size:calc(15px + 1pt)}
.thyromi-drawer .thyros-bubble--assistant .thyros-text,
.thyromi-inline .thyros-bubble--assistant .thyros-text{font-size:calc(14px + 1pt)}

/* Keep memory controls above the inline chat, beside its return action. */
.tc-chat-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:12px}
.tc-chat-toolbar[hidden]{display:none}
.tc-chat-toolbar .tc-search-return{margin:0}
.tc-chat-toolbar .tm-access{padding:0;margin-left:auto}

.thyros-content-card{display:flex;align-items:center;gap:12px;max-width:min(100%,420px);padding:10px 14px;border:1px solid #d5c8e5;border-radius:14px;background:#fffdfb;color:#50356e;font:inherit;text-align:left;cursor:pointer;transition:box-shadow .18s ease}
.thyros-content-card img{width:64px;height:48px;object-fit:cover;border-radius:8px;flex:none}
.thyros-content-card span{display:grid;gap:4px}.thyros-content-card small{font-size:11px;color:#786887}.thyros-content-card strong{font-size:14px;line-height:1.45;font-weight:650}
.thyros-content-card:hover{box-shadow:0 4px 14px #49336b18}.thyros-content-card:focus-visible{outline:3px solid #8060aa;outline-offset:3px}
.thyromi-official-sources{margin-top:14px;padding-top:12px;border-top:1px solid #d5c8e5;font-size:13px;line-height:1.55;overflow-wrap:anywhere}.thyromi-official-sources p{margin:8px 0}.thyromi-official-sources a{color:#50356e;text-decoration:underline;text-underline-offset:3px}.thyromi-official-sources a:focus-visible{outline:3px solid #8060aa;outline-offset:3px}.thyromi-official-sources small,.thyromi-research-status{color:#655670}.thyromi-research-status{display:block;margin-top:12px}

/* A quieter conversation surface, shared by page, drawer and home. */
.thyros-page{--chat-ink:#392f49;--chat-muted:#776880;--chat-line:#ded3e9;color:var(--chat-ink)}
.thyros-page .thyros-conversation{background:linear-gradient(145deg,#ffffffdf,#f8f6fcdf 62%,#f0f9f6d9);border:1px solid #fff;border-radius:25px;box-shadow:inset 0 1px 0 #fff,0 10px 32px #58406e0a;min-width:0}
.thyros-page .thyros-head{padding:18px 24px;justify-content:flex-start;gap:13px;border-bottom:1px solid #e8e0ee;background:#ffffff70}
.thyros-page .thyros-head .thyromi-mascot{width:48px;height:48px;flex-basis:48px}
.thyromi-chat-identity{flex:1;min-width:0}.thyros-page .thyromi-chat-identity h2{font-size:20px;margin:0 0 3px;font-weight:750;letter-spacing:-.025em}.thyros-page .thyromi-chat-identity p{font-size:12px;line-height:1.5;color:#74647e;margin:0}
.thyros-page .tm-access,.tc-chat-toolbar .tm-access{display:flex;flex-wrap:wrap;gap:8px;padding:14px 22px;align-items:center}
.thyros-page .tm-access .thyros-action,.tc-chat-toolbar .tm-access .thyros-action{min-height:40px;border-radius:13px;background:linear-gradient(125deg,#ffffffe0,#f2edf7bd);border:1px solid #d8cbe4;color:#60417d;font-size:12px;padding:10px 14px;box-shadow:inset 0 1px 0 #fff}
.tc-chat-toolbar{gap:12px;margin-bottom:16px;align-items:center}.tc-chat-toolbar .tm-access{padding:0;margin:0 0 0 auto}.tc-chat-toolbar .tc-search-return{font-size:12px;padding:10px 14px;min-height:40px;border-radius:13px}
.thyros-page .thyros-feed{padding:8px 24px 20px;scrollbar-width:thin;scrollbar-color:#c5b3d3 transparent;scroll-padding-top:18px;overscroll-behavior:contain;outline-offset:-4px}
.thyros-page .thyros-bubble{box-sizing:border-box;width:fit-content;max-width:92%;margin:18px 0;padding:19px 22px;border:1px solid #e4dbea;border-radius:7px 22px 22px 22px;background:#fffefa;box-shadow:0 3px 12px #4a355b05;color:var(--chat-ink)}
.thyros-page .thyros-bubble--assistant{background:linear-gradient(130deg,#fffffff5,#fcfafde8);box-shadow:inset 0 1px 0 #fff,0 4px 16px #5b416409}
.thyros-page .thyros-bubble--user{margin-left:auto;max-width:82%;background:linear-gradient(125deg,#eee4f8,#e5ddf2);border-color:#d6c5e7;border-radius:22px 7px 22px 22px;box-shadow:inset 0 1px 0 #ffffffa6;color:#443155}
.thyros-page .thyros-speaker{display:flex;align-items:center;gap:8px;font-size:11px;letter-spacing:.015em;color:#79568f;margin:0 0 9px;min-height:0}
.thyros-page .thyros-speaker-avatar{width:27px;height:27px;object-fit:contain}
.thyros-page .thyros-bubble .thyros-text{font-size:15px;line-height:1.8;color:inherit;letter-spacing:0}
.thyros-page .thyros-bubble--user .thyros-speaker{color:#75518e;font-size:10px;margin-bottom:7px}
.thyros-page .thyros-text+.thyros-text{margin-top:12px}
.thyros-page .thyros-actions:empty{display:none}
.thyros-page .thyros-action{background:linear-gradient(130deg,#fff,#f8f5fbbd);border-color:#d4c5e0;border-radius:12px;font-size:12px;line-height:1.5;padding:10px 13px;min-height:40px;transition:background .15s,border-color .15s}
.thyros-page .thyros-action:hover,.tc-chat-toolbar .thyros-action:hover{background:#fff;border-color:#b097c7}
.thyros-page .tr-choices{gap:7px;margin-top:18px;padding-top:14px;border-color:#e6dfea}.thyros-page .tr-choices .thyros-action{font-size:11px;min-height:36px;padding:8px 11px}
.thyros-page .thyros-composer{padding:16px 22px 18px;background:#ffffff8c;border-top:1px solid #e7dfed}
.thyros-page .thyros-composer fieldset>label:first-child{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.thyros-page .thyromi-composer-box{padding:10px 12px;border:1px solid #cdbbdf;border-radius:20px;background:linear-gradient(130deg,#fffffff5,#fcfafde8);box-shadow:inset 0 1px 0 #fff,0 5px 20px #5b3f7609}
.thyros-page .thyromi-composer-box:focus-within{border-color:#9571b6;box-shadow:0 0 0 3px #ae91ce24,inset 0 1px 0 #fff}
.thyros-page .thyros-composer .thyromi-composer-box textarea{min-height:64px;max-height:160px;height:64px;padding:9px 8px;resize:none;line-height:1.65;font-size:15px;overflow-y:auto;color:#3c304b}
.thyros-page .thyros-composer textarea::placeholder{color:#908297;opacity:1}
.thyros-page .thyros-composer-footer{gap:12px;padding:2px 3px 0;align-items:center;flex-direction:row}
.thyros-page .thyromi-attach{display:inline-flex;align-items:center;gap:7px;width:auto;min-height:40px;height:auto;padding:8px 11px;border:1px solid transparent;border-radius:12px;background:#f4eff891;color:#76548d;font-size:12px;line-height:1.5;font-weight:600}
.thyros-page .thyromi-attach svg{width:19px;height:19px;flex:none}.thyros-page .thyromi-attach:hover{background:#eee5f7;border-color:#d9c7e7}
.thyros-page .thyros-composer-footer>.button{display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 17px;border-radius:14px;background:linear-gradient(120deg,#7954ad,#51467e);border:1px solid #8c70a8;box-shadow:inset 0 1px 0 #ffffff70,0 4px 12px #61418720;color:#fff;font:inherit;font-size:13px;font-weight:750}
.thyros-page .thyros-composer-footer>.button svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.thyros-page .thyros-composer-footer>.button:disabled{opacity:.48;cursor:default;box-shadow:inset 0 1px 0 #fff5}
.thyros-page .thyros-status:empty{margin:0;min-height:0;padding:0}
.thyros-page .thyros-status--quiet{position:absolute!important;width:1px;height:1px;padding:0!important;margin:-1px!important;overflow:hidden;clip-path:inset(50%);white-space:nowrap;min-height:0!important}
.thyros-page .thyros-status.thyros-status--thinking{font-size:13px;line-height:1.6;font-weight:650;margin:0 22px 12px;padding:12px 15px;background:linear-gradient(115deg,#f2ecf8,#edf7f4);border:1px solid #d9cce5;border-radius:14px;box-shadow:inset 0 1px 0 #fff;gap:12px}
.thyros-page .thyros-notice.tr-role{flex:none;margin:0;padding:12px 22px;border-top:1px solid #e7dfed;background:#ffffff61;font-size:10px;line-height:1.65;color:#7e7189}
.thyros-page .tr-role summary{font-size:10px;min-height:28px;color:#6c5484;padding:5px 0}.thyros-page .tr-role details>p{max-width:76ch}
.thyros-page .thyromi-suggestions{gap:8px;margin-top:12px}.thyros-page .thyromi-suggestions .thyros-action{font-size:11px;min-height:36px;padding:8px 11px}
.thyros-page .thyros-bubble--assistant:first-child{background:linear-gradient(130deg,#fffffff5,#fcfafde8);padding:19px 22px}
.thyros-page .thyros-bubble--assistant:first-child .thyros-speaker{display:flex;min-height:0}
.patient-thyromi-home .tc-search-conversation .thyros-conversation{border:1px solid #fff;border-radius:24px;background:linear-gradient(145deg,#fffaf5b0,#f9f7fddd 62%,#edf7f4bb);box-shadow:inset 0 1px 0 #fff,0 8px 26px #57406c08;min-height:0}
.patient-thyromi-home .tc-search-conversation .thyros-feed{min-height:240px;max-height:440px;max-height:clamp(280px,44dvh,460px);flex:0 1 auto;padding:10px 24px 22px}
.patient-thyromi-home .tc-search-conversation .thyros-composer{margin-top:0;padding-top:16px}
.thyromi-inline .thyros-conversation{min-height:0}.thyromi-inline .thyros-feed{min-height:220px;max-height:420px}
.thyromi-drawer .thyromi-conversation-scroll{padding-top:4px}.thyromi-drawer .thyros-feed{min-height:0;max-height:none;padding:0 18px 14px;overflow:visible}.thyromi-drawer .thyros-bubble--user{margin-left:auto}
.thyromi-drawer .thyros-composer{max-height:44%;padding:12px 16px;flex:none}.thyromi-drawer .thyros-composer .thyromi-composer-box textarea{min-height:56px;max-height:120px;font-size:15px}
.thyromi-drawer .thyros-head .thyros-back{max-width:90px;flex:none;font-size:11px;line-height:1.5;color:#715584}
@media(max-width:760px){
 .thyros-page .thyros-head{padding:13px 16px;gap:10px}.thyros-page .thyromi-chat-identity h2{font-size:18px}.thyros-page .thyromi-chat-identity p{font-size:11px}
 .thyros-page .thyros-head .thyromi-mascot{width:40px;height:40px;flex-basis:40px}
 .thyros-page .thyros-feed{padding:6px 14px 16px}.thyros-page .thyros-bubble,.thyros-page .thyros-bubble--assistant:first-child{max-width:96%;padding:15px 16px;margin-block:14px;border-radius:6px 18px 18px 18px}
 .thyros-page .thyros-bubble--user{max-width:88%;border-radius:18px 6px 18px 18px}.thyros-page .thyros-bubble .thyros-text{font-size:14px;line-height:1.8}
 .thyros-page .thyros-composer{padding:12px 13px}.thyros-page .thyromi-composer-box{padding:8px;border-radius:18px}.thyros-page .thyros-composer .thyromi-composer-box textarea,.thyromi-drawer .thyros-composer .thyromi-composer-box textarea{font-size:16px;min-height:58px}
 .thyros-page .thyros-notice.tr-role{padding:11px 16px;font-size:10px}.thyros-page .thyros-status.thyros-status--thinking{margin:0 14px 10px;padding:11px 13px;font-size:12px}
 .thyros-page .tm-access{padding:12px 15px;gap:7px}.tc-chat-toolbar{gap:10px}.tc-chat-toolbar .tm-access{padding:0;margin:0;gap:7px}.tc-chat-toolbar .tm-access .thyros-action{font-size:11px;padding:9px 12px;min-height:38px}
 .patient-thyromi-home .tc-search-conversation .thyros-feed{min-height:210px;max-height:360px;max-height:clamp(240px,46dvh,370px);padding:6px 14px 16px}.patient-thyromi-home .tc-search-conversation .thyros-conversation{border-radius:21px}
 .thyros-page .tr-choices .thyros-action{flex:1 1 auto;font-size:11px}.thyros-page .tr-choices .thyros-action:last-child{flex-basis:100%}
 .thyromi-drawer .thyros-feed{max-height:none;min-height:0;padding-inline:12px}.thyromi-drawer .thyros-notice.tr-role{padding:8px 14px;font-size:9px;line-height:1.5}.thyromi-drawer .thyros-composer{padding:9px 11px max(9px,env(safe-area-inset-bottom));max-height:44%}
}
@media(max-height:550px){.thyromi-drawer .thyros-head{padding-block:5px}.thyromi-drawer .thyromi-chat-identity p{display:none}.thyromi-drawer .thyros-notice.tr-role{padding-block:5px}.thyromi-drawer .thyros-notice.tr-role>p{font-size:9px}.thyromi-drawer .thyros-composer{max-height:48%}}
@media(prefers-reduced-motion:reduce){.thyros-page .thyros-action{transition:none}}
/* Daily accompaniment shares the conversation; the home no longer has two prompts. */
.patient-thyromi-home .gh-entry-row.gh-entry-row--conversation{grid-template-columns:minmax(0,1fr)}
.tc-conversation-home .tc-chat-toolbar{gap:12px;flex-wrap:wrap}
.tc-conversation-home .tc-chat-toolbar .tm-access{flex-wrap:wrap;gap:8px}
.tc-conversation-home .thyros-bubble{max-width:900px}
.thyros-page .td-date{font-size:11px;font-weight:700;letter-spacing:.05em;color:#685084;margin:0 0 12px;text-transform:uppercase}
.td-controls{margin-top:20px;display:flex;flex-wrap:wrap;gap:10px;border-top:1px solid #d9cde4;padding-top:18px}
.td-options{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;width:100%}
.td-options .thyros-action{min-height:48px;text-align:left;padding:12px 16px;color:#392949;border:1px solid #cbb8dc;background:linear-gradient(120deg,#ffffffed,#f4edf8cc 65%,#e7f3f3cc);box-shadow:inset 0 1px 0 #fff,0 3px 9px #41285309;border-radius:14px;font-weight:600;white-space:normal}
.td-options .thyros-action:hover{border-color:#77529c;background:#f0e6f8;box-shadow:0 4px 12px #56397719}
.td-controls .td-primary{color:#fff;background:linear-gradient(110deg,#7850a5,#504875);border-color:#74529b;box-shadow:inset 0 1px 0 #b79bcc,0 4px 12px #56397726}
.td-controls .thyros-action.td-primary:not(:disabled):is(:hover,:focus-visible){color:#fff;background:linear-gradient(110deg,#684292,#443b68);border-color:#63418b;box-shadow:inset 0 1px 0 #b79bcc,0 5px 14px #56397733}
.td-controls button:focus-visible{outline:3px solid #8a64ad;outline-offset:3px}
.td-controls button:disabled{opacity:.55;cursor:wait}
.td-review{width:100%;display:grid;grid-template-columns:minmax(120px,1fr) 2fr;gap:10px 20px;margin:0 0 12px;font-size:14px}
.td-review dt{font-weight:600;color:#665570}.td-review dd{margin:0;color:#30213f}
@media(max-width:700px){.td-options{grid-template-columns:1fr}.td-review{grid-template-columns:1fr;gap:4px}.td-review dd{margin-bottom:10px}.tc-conversation-home .tc-chat-toolbar{align-items:stretch}.tc-conversation-home .tm-access{margin-left:0}.td-controls{gap:8px}.td-controls>.thyros-action{flex:1 1 auto}.td-options .thyros-action{min-height:48px}}

.tc-conversation-home .thyros-page .td-message{max-width:min(100%,1050px)}
@media(min-width:1000px){.tc-conversation-home .td-options{grid-template-columns:repeat(3,minmax(0,1fr))}}

@media(max-width:700px){.tc-conversation-home .tc-chat-toolbar .tm-access{display:flex;flex-wrap:wrap;min-width:0;width:100%;max-width:100%;justify-content:flex-start}.tc-conversation-home .tc-chat-toolbar{display:flex;flex-direction:column;align-items:flex-start}}

/* Make Thyromi’s identity easier to read above assistant messages. */
.thyros-page .thyros-bubble--assistant .thyros-speaker{font-size:13px;gap:10px;min-height:36px}
.thyros-page .thyros-bubble--assistant .thyros-speaker-avatar{flex:0 0 36px;width:36px;height:36px}
