.gae-panel,.gae-records{--gae-green:#235c43;--gae-line:#d9e4da;max-width:850px;margin:2rem auto;font:inherit;color:#20392c}
.gae-panel{padding:clamp(16px,4vw,30px);background:#f7faf5;border:1px solid var(--gae-line);border-radius:14px}
.gae-panel h2,.gae-panel h3{color:#235c43;line-height:1.25}.gae-panel label{display:block;margin:14px 0 6px;font-weight:600}
.gae-panel input:not([type=checkbox]),.gae-panel textarea,.gae-panel select{box-sizing:border-box;width:100%;padding:11px;border:1px solid #a9bbaa;border-radius:6px;background:white;color:#20392c;font:inherit}
.gae-panel textarea{min-height:105px;resize:vertical}.gae-panel .gae-editor textarea{min-height:230px}
.gae-panel button,.gae-panel .gae-link{display:inline-block;padding:10px 15px;margin:6px 6px 6px 0;border:1px solid #235c43;border-radius:6px;background:#235c43;color:white;font:inherit;line-height:1.3;cursor:pointer;text-decoration:none}
.gae-panel button.gae-secondary{background:white;color:#235c43}.gae-panel button:disabled{opacity:.55;cursor:wait}
.gae-panel button:focus-visible,.gae-panel input:focus-visible,.gae-panel select:focus-visible,.gae-panel textarea:focus-visible{outline:3px solid #c99037;outline-offset:3px}
.gae-status{margin:12px 0;white-space:pre-wrap}.gae-error{color:#9f2828}.gae-turn,.gae-entry{background:white;padding:18px;margin:18px 0;border:1px solid var(--gae-line);border-radius:9px}
.gae-question{border-left:3px solid #9ab585;padding-left:12px}.gae-text{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.65}.gae-date{font-size:.85em;color:#596b5d}
.gae-turn img,.gae-entry img{display:block;max-width:100%;height:auto;max-height:450px;object-fit:contain;margin:12px 0}
.gae-panel .gae-check{display:flex;gap:8px;align-items:flex-start;font-weight:400}.gae-check input{margin-top:5px;flex-shrink:0}
.gae-toolbar{display:flex;flex-wrap:wrap;align-items:center;gap:3px}.gae-editor{border:2px solid #9ab585;border-radius:8px;padding:16px;margin-top:14px;background:#f7faf5}
.gae-panel small{display:block;color:#536957;margin-top:6px}.gae-records nav{display:flex;gap:12px;margin:20px 0}.gae-panel [hidden]{display:none!important}
@media(max-width:500px){.gae-panel{padding:14px}.gae-turn{padding:12px}.gae-toolbar button{flex:1 1 auto}}

.gae-description{line-height:1.6;overflow-wrap:anywhere}.gae-detail img{display:block;max-width:100%;height:auto;max-height:650px;object-fit:contain;margin:1rem 0}.gae-detail h2{color:#235c43}

/* Readable advice in both chat answers and public saved entries. */
.gae-text.gae-formatted{white-space:normal;line-height:1.7}
.gae-formatted p{margin:0 0 1em}
.gae-formatted h2,.gae-formatted h3,.gae-formatted h4,.gae-formatted h5,.gae-formatted h6{color:#235c43;font-weight:700;line-height:1.3;margin:1.4em 0 .6em}
.gae-formatted h2{font-size:1.4em}.gae-formatted h3{font-size:1.18em}.gae-formatted h4,.gae-formatted h5,.gae-formatted h6{font-size:1.05em}
.gae-formatted>:first-child{margin-top:0}.gae-formatted>:last-child{margin-bottom:0}
.gae-formatted strong{font-weight:700}.gae-formatted em{font-style:italic}
.gae-formatted ul,.gae-formatted ol{margin:0 0 1.1em;padding-left:1.6em;list-style-position:outside}
.gae-formatted ul{list-style-type:disc}.gae-formatted ol{list-style-type:decimal}.gae-formatted li{margin:.35em 0}
.gae-text.gae-formatted a{color:#235c43;text-decoration:underline;text-underline-offset:3px;overflow-wrap:anywhere}
.gae-text.gae-formatted a:hover{color:#123c29}.gae-text.gae-formatted a:focus-visible{outline:3px solid #c99037;outline-offset:3px}
.gae-formatted pre{white-space:pre-wrap;overflow-wrap:anywhere;padding:12px;background:#edf2e9;border-radius:6px;margin:1em 0}
.gae-formatted code{font-family:monospace;font-size:.9em}

.gae-question,.gae-question strong{font-weight:700}
.gae-save-area:empty{display:none}.gae-save-group{border-top:1px solid var(--gae-line);margin-top:24px;padding-top:16px}
.gae-save-group h3{margin-bottom:8px}.gae-save-question{font-weight:700;overflow-wrap:anywhere}
.gae-panel button.gae-generated-preview{display:flex;flex-wrap:wrap;align-items:center;gap:12px;text-align:left;max-width:100%}
.gae-turn .gae-generated-preview img{width:100px;height:80px;object-fit:contain;margin:0}
.gae-image-viewer{box-sizing:border-box;max-width:94vw;max-height:94vh;padding:16px;border:1px solid #a9bbaa;border-radius:10px;background:#fff;color:#20392c}
.gae-image-viewer::backdrop{background:rgba(0,0,0,.65)}
.gae-image-viewer img{display:block;max-width:85vw;max-height:75vh;object-fit:contain;margin-top:12px}
.gae-image-viewer button{padding:10px 16px;background:#235c43;color:white;border:0;border-radius:6px;cursor:pointer;font:inherit}
.gae-image-viewer button:focus-visible{outline:3px solid #c99037;outline-offset:3px}
