
:root{font-family:Arial,Helvetica,sans-serif;color:#173a3c;background:#fafbf8;font-synthesis:none}*{box-sizing:border-box}body{margin:0;display:flex}button,input,textarea{font:inherit}button{cursor:pointer}aside{width:258px;height:100dvh;position:fixed;padding:34px 22px;background:#102f32;color:#d4e4df;display:flex;flex-direction:column}.brand{color:#fff;text-decoration:none;font-size:49px;font-weight:800;letter-spacing:-5px;display:flex;align-items:center;gap:18px;margin-bottom:40px}.brand span{font-size:10px;line-height:1.6;letter-spacing:2px}.new{background:#29474a;color:white;border:1px solid #4d6463;border-radius:9px;padding:14px;text-align:left;margin-bottom:32px}.navlabel{font-size:9px;letter-spacing:1.9px;color:#8da6a2;margin:18px 10px 12px}.nav{border:0;background:none;color:#b6cbc5;padding:13px 12px;text-align:left;border-radius:8px;margin:3px 0}.nav.active{background:#d9eacb;color:#173a3c}.asidefoot{margin-top:auto;padding-top:20px;border-top:1px solid #355051;display:flex;align-items:center;gap:10px;font-size:12px}.asidefoot small{display:block;font-size:9px;color:#9bb2ac;margin-top:6px}.avatar{border:1px solid #526d66;border-radius:50%;padding:10px;font-size:11px}main{margin-left:258px;width:calc(100% - 258px)}header{height:86px;border-bottom:1px solid #e3e9e1;padding:0 42px;display:flex;align-items:center;justify-content:space-between;font-size:13px}.statusdot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#809f6e;margin-right:10px}.slash{margin:0 15px;color:#b0bbb3}#pageName{color:#7b8b83}.local{font-size:9px;letter-spacing:1.5px;border:1px solid #d9e2d5;border-radius:20px;padding:8px 12px}.view{padding:40px;max-width:1200px;margin:auto}#chat{min-height:calc(100dvh - 86px);display:flex;flex-direction:column;align-items:center;padding-top:44px}#welcome{text-align:center;width:100%;max-width:800px}.eyebrow{font-size:9px;letter-spacing:2.3px;color:#69866d;font-weight:bold}.orb{position:relative;background:radial-gradient(circle at 30% 20%,#f4f7eb,#c3d6b4);box-shadow:0 12px 45px #b5c8a72e;border:5px solid #f0f4e8;width:77px;height:77px;border-radius:50%;margin:29px auto 23px;font-family:Arial,Helvetica,sans-serif;font-size:40px;line-height:67px;color:#46664c}.orb-dot{position:absolute;width:13px;height:13px;background:#739865;bottom:0;right:0;border:3px solid white;border-radius:50%}h1{font-family:Arial,Helvetica,sans-serif;font-weight:400;font-size:49px;letter-spacing:-1.7px;line-height:1.08;margin:0 0 20px}#welcome p{color:#7c8980;font-size:13px;line-height:1.8}.suggestions{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin:34px 0}.suggestions button{background:#fff;border:1px solid #e1e7da;border-radius:10px;text-align:left;padding:18px 15px;color:#385148;font-size:12px;line-height:1.8}.suggestions span{display:block;font-size:8px;letter-spacing:1.4px;color:#8a9a7c;margin-bottom:12px}.composerwrap{width:100%;max-width:800px;margin-top:auto;padding-top:20px}.mode{font-size:11px;color:#7d8064;margin-bottom:10px}form{background:white;border:1px solid #dbe2d4;border-radius:15px;padding:18px;box-shadow:0 7px 25px #143d2910}textarea{resize:vertical;max-height:180px;width:100%;border:0;outline:0;color:#264a41;background:transparent;font-size:14px}.composerbottom{display:flex;justify-content:space-between;align-items:center;color:#879084;font-size:10px}.composerbottom button{border:0;border-radius:9px;width:35px;height:35px;margin-left:9px;background:#edf1e9;color:#28483b;font-size:22px}#send{background:#183c36;color:#fff}.disclosure{display:block;text-align:center;color:#9aa294;font-size:9px;margin:12px}#messages{width:100%;max-width:800px}.message{white-space:pre-wrap;line-height:1.7;font-size:14px;padding:20px;margin:12px 0;border-radius:14px;overflow-wrap:anywhere}.message.user{background:#eaf0e4;margin-left:15%}.message.assistant{background:white;border:1px solid #e2e8dd}h2{font-family:Arial,Helvetica,sans-serif;font-size:43px;font-weight:400;letter-spacing:-1px;margin:20px 0}.sub{color:#829081;font-size:14px}.stats{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:32px 0}.stats article{border:1px solid #dce4d7;border-radius:12px;padding:22px;background:white}.stats span{display:block;font-size:12px;color:#7f8d7b}.stats b{display:block;font-size:34px;font-weight:400;margin-top:16px}#filter{width:100%;padding:15px;border:1px solid #dce4d7;border-radius:9px;margin-bottom:20px;background:white}.tablewrap{overflow:auto;max-height:60vh}table{border-collapse:collapse;width:100%;background:white;font-size:12px}th{text-align:left;font-size:9px;letter-spacing:1px;color:#80917c;background:#eff3e9;padding:15px}td{padding:16px;border-bottom:1px solid #edf0e8;max-width:420px;overflow-wrap:anywhere}.badge{padding:6px 9px;border-radius:20px;display:inline-block;background:#f3eddf;color:#8a6c34;font-size:10px}.badge.ready{background:#e7f0df;color:#4b7545}#history{overflow:visible;max-height:none;flex-shrink:0}#history button{display:block;border:0;background:none;color:#abc0b6;text-overflow:ellipsis;white-space:nowrap;overflow:hidden;width:100%;text-align:left;padding:11px 8px;font-size:11px}.voicecard{background:#eef3e6;border:1px solid #dce5d3;text-align:center;padding:44px 16px;border-radius:20px;margin:30px 0}.wave{font-size:45px;color:#668960;letter-spacing:5px}.voicecard h3{font-weight:400;font-size:22px}.voicecard p,.note{font-size:12px;line-height:1.8;color:#6c806a}.primary{background:#173e36;color:white;border:0;border-radius:8px;padding:14px 24px}audio{display:block;margin:20px auto}.hidden{display:none!important}button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #85a66d;outline-offset:4px}button:disabled{opacity:.5;cursor:wait}@media(max-width:850px){aside{width:190px;padding:24px 12px}main{margin-left:190px;width:calc(100% - 190px)}header{padding:0 20px}.view{padding:25px}h1{font-size:40px}.suggestions{grid-template-columns:1fr}.suggestions button{padding:12px}.suggestions span{margin-bottom:3px}}@media(max-width:600px){aside{position:relative;width:100%;height:auto;flex-direction:row;flex-wrap:wrap;padding:12px;gap:6px}.brand{font-size:30px;margin:0 12px 0 0;gap:12px}.brand span{font-size:7px}.new{margin:0;padding:10px;font-size:11px}.nav{font-size:11px;padding:9px}.navlabel,#history,.asidefoot{display:none}body{display:block}main{margin:0;width:100%}header{height:55px;font-size:11px}#pageName,.slash{display:none}#chat{min-height:calc(100dvh - 170px);padding-top:25px}.view{padding:20px}h1{font-size:38px}h2{font-size:32px}.stats{gap:8px}.stats article{padding:12px}.stats b{font-size:24px}.stats span{font-size:10px}.orb{margin:18px auto}.suggestions{margin:20px 0;gap:8px}}

.admin-only{display:none!important}.is-admin .admin-only{display:block!important}.signed-out>aside,.signed-out>main{display:none}#authScreen{display:none;min-height:100dvh;width:100%;background:#102f32;padding:40px}.signed-out #authScreen{display:block}.authcard{max-width:470px;background:#fafbf8;margin:30px auto;padding:35px;border-radius:18px}.authcard p{font-size:13px;line-height:1.7}.authcard form{box-shadow:none;padding:0;border:0;background:none}.authcard label{display:block;margin:18px 0;font-size:12px}.authcard input{display:block;width:100%;padding:12px;margin-top:7px;border:1px solid #ccd9c9;border-radius:7px}.authcard button{margin:5px 0;width:100%;padding:12px;border-radius:7px;border:1px solid #a9bda3}.authcard a{display:inline-block;margin-top:20px;color:#476a55;font-size:12px}#authError{color:#a03535}.portal{font-size:11px;color:#c9dfbe;padding:12px;text-decoration:none}#logout{background:none;border:0;color:#d9eacb;font-size:11px;padding:8px 0}dialog{border:1px solid #d0dec6;border-radius:20px;padding:35px;max-width:480px;width:90%;color:#173a3c;background:#fafbf8}dialog::backdrop{background:#0b242dcc;backdrop-filter:blur(5px)}#closeVoice{float:right;background:none;border:0;font-size:28px;color:#173a3c}dialog p{font-size:13px;line-height:1.8}#accountLogout{margin-top:22px}

/* Keep the text field and action row in distinct, non-overlapping tracks. */
#composer{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;box-shadow:none;min-width:0}
#composer:focus-within{box-shadow:none;border-color:#9aac94}
#prompt{display:block;min-width:0;min-height:64px;margin:0;padding:0 2px;line-height:1.55;resize:vertical}
#prompt:focus,#prompt:focus-visible{outline:none;box-shadow:none}
#composer .composerbottom{display:flex;flex-wrap:wrap;gap:12px;align-items:center;min-width:0}
#composer .composerbottom>span{flex:1 1 140px;line-height:1.5}
#composer .composerbottom>div{display:flex;flex:0 0 auto;gap:10px;margin-left:auto;align-items:center}
#composer .composerbottom button{display:inline-flex;align-items:center;justify-content:center;flex:0 0 40px;width:40px;height:40px;padding:0;margin:0;line-height:1}

.uploadpanel{background:white;border:1px solid #dce4d7;padding:24px;border-radius:14px;margin-top:24px}.uploadhead{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap}.uploadhead h3{font-size:18px;font-weight:400}.uploadpanel label{font-size:12px;display:block;margin:14px 0 8px}.uploadpanel input:not([type=file]){width:100%;border:1px solid #d2ddcb;border-radius:7px;padding:12px}#dropzone{border:2px dashed #c5d4bc;border-radius:10px;padding:22px;margin:18px 0;background:#fafcf7}#dropzone.dragging{background:#e3eedb;border-color:#537d49}#dropzone p{margin-top:0;font-size:14px}#dropzone small{display:block;margin-top:14px;font-size:11px;color:#73856b}#uploadFiles{max-width:100%;font-size:12px}.uploadactions{display:flex;gap:12px;flex-wrap:wrap}.uploadactions button:not(.primary),.retry{border:1px solid #c5d4bc;background:#f2f6ed;color:#355a40;border-radius:7px;padding:9px 12px}#uploadFeedback{white-space:pre-wrap;font-size:12px;line-height:1.6;color:#607455}.importjob{display:grid;gap:5px;border-top:1px solid #e8eee2;padding:12px 0;font-size:12px;overflow-wrap:anywhere}.importjob strong{font-weight:400}.importjob span{font-size:11px;color:#5c7955}.importjob small{color:#a24b31}#importJobs{max-height:260px;overflow:auto}.retry{font-size:11px;white-space:nowrap}

/* Organic waiting indicator; only the indicator dissolves, never the answer. */
.message.assistant.thinking{background:transparent;border-color:transparent;padding:6px 16px;min-height:92px;display:flex;align-items:center;overflow:visible}
.spore-scene{position:relative;width:80px;height:80px;display:grid;place-items:center}
.mould-spore{width:76px;height:76px;position:relative;z-index:1;transform-origin:center;animation:spore-breathe 1.8s ease-in-out infinite}
.spore-smoke{position:absolute;left:27px;top:27px;width:28px;height:28px;border-radius:50%;background:radial-gradient(circle,#93aa83a0 0%,#a8b99b50 50%,transparent 75%);opacity:0;filter:blur(3px);pointer-events:none}
.dissolving .mould-spore{animation:spore-dissolve .5s ease-out forwards}
.dissolving .spore-smoke{animation:spore-smoke .52s ease-out var(--delay) forwards}
.reply-arrived{animation:reply-arrive .2s ease-out}
@keyframes spore-breathe{0%,100%{transform:scale(.88) rotate(-6deg);opacity:.78}50%{transform:scale(1.04) rotate(5deg);opacity:1}}
@keyframes spore-dissolve{to{transform:scale(1.2) rotate(12deg);filter:blur(9px);opacity:0}}
@keyframes spore-smoke{0%{opacity:0;transform:translate(0,0) scale(.5)}20%{opacity:.65}100%{opacity:0;transform:translate(var(--dx),var(--dy)) scale(2.4);filter:blur(9px)}}
@keyframes reply-arrive{from{opacity:.4;transform:translateY(3px)}to{opacity:1;transform:translateY(0)}}
.review-question{padding:14px 0;border-bottom:1px solid #dce4d7;font-size:14px}.review-question p{margin:0 0 7px;overflow-wrap:anywhere}.review-question small{color:#7c8b73;font-size:11px}
@media(prefers-reduced-motion:reduce){.mould-spore,.dissolving .mould-spore,.dissolving .spore-smoke,.reply-arrived{animation:none!important}.spore-smoke{display:none}}

/* Compact indicator: 34px spore instead of 76px, with proportionate smoke. */
.message.assistant.thinking{min-height:48px;padding:4px 16px}
.spore-scene{width:36px;height:36px}
.mould-spore{width:34px;height:34px}
.spore-smoke{left:12px;top:12px;width:12px;height:12px;filter:blur(2px)}

#voiceDialog{width:min(560px,calc(100vw - 32px));max-height:85dvh;overflow:auto}#voiceDialog audio{width:100%;margin-top:16px}.voice-transcript,.voice-answer{text-align:left;padding:14px 16px;border-radius:14px;overflow-wrap:anywhere}.voice-transcript{background:var(--sage,#eaf0e3)}.voice-answer{border:1px solid #dce3d5}#record:disabled{opacity:.6;cursor:wait}

#voiceSample{font:inherit;color:inherit;background:transparent;border:1px solid #c9d5c1;border-radius:10px;padding:13px 16px;margin:8px 0 0 8px;cursor:pointer;min-height:44px}#voiceSample:hover{background:#eaf0e3}#voiceSample:disabled{opacity:.6;cursor:wait}
@media(max-width:480px){#voiceSample{display:block;margin:10px 0 0;width:100%}#voiceDialog #record{width:100%}}

.voice-active #composer{display:none}
#voiceSession{display:flex;align-items:center;gap:14px;padding:18px 20px;border:1px solid #dce3d5;background:#fff;border-radius:22px;min-height:88px;box-shadow:none}
#voiceSession.hidden{display:none}
.voice-caption{flex:1;min-width:0}.voice-caption strong{display:block;font-size:16px;font-weight:500;overflow-wrap:anywhere}.voice-caption small{display:block;color:#7d8c7e;font-size:12px;margin-top:5px}
#voiceSession button{font:inherit;cursor:pointer;border:0;border-radius:50%;width:44px;height:44px;flex-shrink:0;display:grid;place-items:center;background:#edf1e9;color:#173c36}
#voiceSession button.hidden{display:none}#voiceSession #voiceEnd{background:#173c36;color:#fff;font-size:28px;font-weight:300}
#voiceSession #voiceInterrupt,#voiceSession #voiceResume{width:auto;border-radius:22px;padding:0 16px;font-size:13px}
#voiceMute svg{width:20px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round}
#voiceSession #voiceMute[aria-pressed=true]{color:#963c36;background:#faebe8}
#voiceWave{display:flex;align-items:center;justify-content:center;gap:3px;width:38px;height:38px;flex-shrink:0;--voice-level:0}
#voiceWave i{display:block;width:4px;height:8px;border-radius:4px;background:#819f6b;transition:height .1s}
#voiceSession[data-state=listening] #voiceWave i{height:calc(8px + var(--voice-level)*26px)}
#voiceWave i:nth-child(2n){opacity:.65;max-height:22px}
#voiceSession[data-state=thinking] #voiceWave i,#voiceSession[data-state=speaking] #voiceWave i{animation:voice-wave 1s ease-in-out infinite alternate}
#voiceWave i:nth-child(2){animation-delay:.16s!important}#voiceWave i:nth-child(3){animation-delay:.32s!important}#voiceWave i:nth-child(4){animation-delay:.48s!important}
#voiceSession[data-state=muted] #voiceWave{opacity:.35}
@keyframes voice-wave{to{height:28px}}
@media(prefers-reduced-motion:reduce){#voiceWave i{animation:none!important;transition:none}}
@media(max-width:600px){#voiceSession{padding:14px 12px;gap:8px;flex-wrap:wrap}.voice-caption{flex-basis:calc(100% - 60px)}#voiceSession #voiceMute{margin-left:auto}}

#stopAnswer{display:block;margin:10px auto;padding:8px 18px;border:1px solid #c9d5c1;border-radius:20px;background:transparent;color:#173c36;cursor:pointer}#stopAnswer.hidden{display:none}.message.assistant{position:relative}.departing-spore{position:absolute;left:16px;top:4px;pointer-events:none}.departing-spore .mould-spore{animation:spore-dissolve .6s forwards}.departing-spore .spore-smoke{animation:spore-smoke .65s forwards}

/* Account access stays with the signed-in profile, including on mobile. */
.account-entry{display:flex;align-items:center;gap:12px;width:100%;border:0;border-radius:10px;padding:10px 8px;background:transparent;color:#d4e4df;text-align:left}
.account-entry:hover,.account-entry.active{background:#29474a}
.account-entry .avatar{display:grid;place-items:center;flex:0 0 38px;width:38px;height:38px;padding:0;background:#183c3e}
.account-entry-details{min-width:0;flex:1}.account-entry-details>span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.account-entry-arrow{color:#9bb2ac}
.account-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin-top:30px}.account-card{background:#fff;border:1px solid #dce4d7;border-radius:14px;padding:26px;line-height:1.7}.account-card h3{margin:0 0 18px;font-size:18px;font-weight:500}.account-card p{font-size:14px}.account-card .note{font-size:12px}.account-card dl{margin:0}.account-card dt{font-size:12px;color:#6c806a}.account-card dd{margin:3px 0 18px;overflow-wrap:anywhere}.account-help{grid-column:1/-1}#accountTitle:focus{outline:none}
@media(max-width:600px){.asidefoot{display:flex;margin:0 0 0 auto;padding:0;border:0}.account-entry{width:auto;padding:5px}.account-entry-details,.account-entry-arrow{display:none}.account-entry .avatar{width:36px;height:36px;flex-basis:36px}.account-grid{grid-template-columns:1fr;gap:14px}.account-card{padding:20px}.account-help{grid-column:auto}}

.sidebar-content{min-height:0;flex:1;overflow-y:auto;scrollbar-width:none;display:flex;flex-direction:column}.sidebar-content::-webkit-scrollbar{display:none}.asidefoot{flex-shrink:0}.history-controls{display:flex;gap:12px;padding:4px 8px 14px}.history-controls button{background:transparent;border:0;color:#d9eacb;font-size:11px;padding:6px 0;text-align:left}.history-controls button:hover{text-decoration:underline}
@media(max-width:600px){.sidebar-content{display:contents}.history-controls{display:none}}

/* Readable sidebar labels and supplied brand assets. */
aside .navlabel,aside .portal,#history button,.history-controls button{font-size:12pt;line-height:1.5}
aside .navlabel{letter-spacing:1px;margin-left:8px;margin-right:0}
.brand{display:block;background:#fafbf8;padding:10px;border-radius:8px;letter-spacing:normal;max-width:320px;flex-shrink:0}
.brand img{display:block;width:100%;height:auto}
aside .brand{width:100%}
@media(max-width:600px){aside .brand{width:190px;margin-right:12px}#authScreen .brand{max-width:280px}}

#editSuggestion{display:block;width:100%;text-align:left;border:1px solid #ccd9c4;background:#f3f7ee;color:#173c36;border-radius:10px;padding:12px;margin:10px 0;min-height:48px;line-height:1.5}
#editSuggestion span{display:block}#editSuggestion span:first-child{font-size:12px;font-weight:bold;margin-bottom:4px}#suggestionText{font-size:16px;overflow-wrap:anywhere}
#suggestionHint{font-size:12px;line-height:1.5;color:#607455}
.composerbottom>div{display:flex;align-items:center;gap:8px;flex-shrink:0}
#composer .composerbottom #voiceOpen{flex:0 0 auto;white-space:nowrap;display:flex;align-items:center;justify-content:center;gap:7px;width:auto;min-height:44px;padding:0 12px;margin-left:0;font-size:14px}
#voiceOpen svg{flex-shrink:0;width:20px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round}
#composer .composerbottom #send{flex:0 0 44px;width:44px;height:44px;margin-left:0}
@media(max-width:600px){#prompt{font-size:16px;min-height:80px}#composer{padding:14px}.composerbottom{flex-wrap:wrap;gap:10px}.composerbottom>div{margin-left:auto}.composerwrap{padding-bottom:env(safe-area-inset-bottom)}#voiceSession{flex-wrap:wrap;padding:14px;gap:10px}.voice-caption{min-width:120px}.authcard{padding:22px}#authScreen{padding:20px}}
