/* The cloud occupies the message margin. It never participates in text layout. */
.msg.bot { position:relative; }
html[data-page="index"] #msgs[data-body-placement="beside"] { padding-inline-start:148px!important; box-sizing:border-box; }
.gritt-body-cloud { --body-cloud-rgb:55,156,145; position:absolute; inset-inline-start:-144px; top:-27px; width:140px; height:150px; pointer-events:none; z-index:0; }
[data-theme="carbon-steel"] .gritt-body-cloud, [data-theme="dark"] .gritt-body-cloud { --body-cloud-rgb:105,220,200; }
.msg.bot[data-body-placement="background"] .gritt-body-cloud { inset-inline-start:-60px; width:240px; height:210px; top:-35px; opacity:.48; mask-image:linear-gradient(to right,#000 15%,transparent 95%); }
.msg.bot[data-body-placement="background"] > .text { position:relative; z-index:1; }
.gritt-body-cloud[hidden], .gritt-body-explanation[hidden] { display:none!important; }
.gritt-body-explanation { color:inherit; font-size:.78em; opacity:.8; margin-top:.35em; }
.gritt-body-explanation summary { cursor:pointer; width:fit-content; }
.gritt-body-explanation p { max-width:55ch; margin:.4em 0; }
.gritt-body-preference { display:inline-flex; align-items:center; gap:.45em; font-size:.8em; }
.gritt-body-preference select { color:inherit; font:inherit; padding:.25em .45em; background:transparent; border:1px solid currentColor; border-radius:4px; }
.gritt-body-key { position:relative; font-size:.8em; }
.gritt-body-key[hidden] { display:none!important; }
.gritt-body-key summary { cursor:pointer; white-space:nowrap; }
.gritt-body-key p { position:absolute; bottom:calc(100% + .75rem); inset-inline-end:0; width:min(28rem,85vw); margin:0; padding:1rem 1.2rem; z-index:15; color:var(--text,#24413c); background:var(--card,#f5faf8); border:1px solid var(--line,#b9cec7); border-radius:.6rem; box-shadow:0 .5rem 2rem #0002; font-size:.95rem; line-height:1.5; }
[data-theme="dark"] .gritt-body-key p,[data-theme="carbon-steel"] .gritt-body-key p { color:#d6e7e3; background:#18312e; border-color:#63827a; }
@media(max-width:760px){ html[data-page="index"] #msgs[data-body-placement="beside"]{padding-inline-start:68px!important;} .gritt-body-cloud { inset-inline-start:-64px; top:-24px; width:64px; height:74px; opacity:.85; }.msg.bot[data-body-placement="background"] .gritt-body-cloud { width:170px; height:160px; } }
@media(forced-colors:active){ .gritt-body-cloud{ display:none!important; }.gritt-body-explanation{opacity:1;} }
.body-language-editor { margin-block:2rem; }
.body-language-editor .body-profile-actions { display:flex; gap:.6rem; align-items:end; flex-wrap:wrap; margin-block:1rem; }
.body-language-editor label { display:grid; gap:.25rem; }
.body-language-editor .body-channel-controls { display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:.5rem 2rem; align-content:start; align-items:start; }
.body-language-editor .body-channel-row { display:grid; grid-template-columns:minmax(0,1fr) auto 100px; align-items:center; gap:.6rem; padding-block:.4rem; }
.body-language-editor .body-channel-row input[type="range"] { width:100%; min-width:0; }
.body-language-editor .body-channel-row output { display:block; text-align:end; font-variant-numeric:tabular-nums; font-size:.8em; }
.body-language-editor .body-calibration { display:grid; grid-template-columns:1fr 1fr; gap:.5rem; margin-block:.6rem; }
.body-language-editor .body-calibration label { font-size:.8em; }
.body-language-editor .body-calibration label:has(select),.body-language-editor .body-calibration small { grid-column:1/-1; }
.body-language-editor .body-calibration input { width:100%; min-width:0; }
.body-language-editor .body-study-use { margin-block:1.5rem; }
.body-language-editor .body-study-use > div:last-child { overflow:auto; }
.body-language-editor .body-study-use td,.body-language-editor .body-study-use th { padding:.5rem; text-align:start; font-variant-numeric:tabular-nums; }
.body-language-editor .body-speech-preview { margin-block:1rem; }
.body-language-editor .body-speech-preview audio { display:block; width:100%; margin-block:.7rem; }
.body-language-editor .body-speech-preview audio[hidden], .body-language-editor [hidden] { display:none!important; }
.body-language-editor .body-speech-preview output { display:block; font-size:.85em; line-height:1.5; }
.body-language-editor .body-speech-preview .body-profile-actions input[type="range"] { width:100%; }
.body-language-editor dl { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:.3rem 1rem; }
.body-language-editor dd { margin:0; font-variant-numeric:tabular-nums; }
.body-language-editor input[type="range"],.body-language-editor input[type="checkbox"] { accent-color:var(--green,#087c6c); }
.body-language-editor .body-preview-pair.has-comparison { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:1rem; }
.body-language-editor .body-preview-pair.has-comparison .body-preview { height:210px; }
.body-language-editor .body-preview { width:100%; max-width:420px; height:270px; --body-cloud-rgb:50,145,132; }
[data-theme="carbon-steel"] .body-language-editor .body-preview,[data-theme="dark"] .body-language-editor .body-preview { --body-cloud-rgb:105,220,200; }
.body-language-editor .body-layout { display:grid; grid-template-columns:minmax(240px,420px) minmax(0,1fr); gap:2rem; }
@media(max-width:760px){.body-language-editor .body-layout{grid-template-columns:1fr;}}
