/* R435: template scrolling with browser and keyboard. No page-level body lock. */
.shell:not(.editor-focused-shell) { min-height:100dvh; }
.shell:not(.editor-focused-shell) .main { min-height:0; }
.shell:not(.editor-focused-shell) .view { min-width:0; }
.tg-template-standalone { max-height:none!important; overflow:visible!important; }
.tg-template-dialog { overflow-y:auto!important; overscroll-behavior:contain; scrollbar-gutter:stable; max-height:min(92dvh,920px)!important; }
.tg-template-dialog .tg-template-grid { max-height:none!important; overflow:visible!important; }
.tg-template-replace { max-height:min(92dvh,920px)!important; overflow-y:auto!important; overscroll-behavior:contain; }
.modal-backdrop:has(.tg-template-dialog), .modal-backdrop:has(.tg-template-replace) { overflow-y:auto; align-items:safe center; }
@media (max-width:740px){.shell:not(.editor-focused-shell) .sidebar{height:auto;position:relative}.tg-template-dialog{width:min(100%,96vw)!important;max-height:94dvh!important}.tg-template-standalone{max-height:none!important}}

.r435-ai-suggestions{display:flex;flex-wrap:wrap;gap:6px;padding:8px 0 12px;align-items:center}
.r435-ai-suggestions small{width:100%;font-weight:700;color:#b8d0e5}
.r435-ai-suggestions button{border:1px solid #6a8aad;background:#203e59;color:#eff8ff;border-radius:20px;padding:6px 10px;min-height:34px;font-size:11px;cursor:pointer}
.r435-ai-suggestions button:hover,.r435-ai-suggestions button:focus-visible{background:#315d82;outline:2px solid #9ed8f8}
.r435-suggestions-owner textarea{width:100%;min-height:165px;resize:vertical}

.r435-confirm-public{display:flex;align-items:flex-start;gap:9px;padding:12px;margin:10px 0;color:#ecf6ff;background:#243c50;border:1px solid #5e849c;border-radius:9px;font-size:12px;line-height:1.5}
.r435-confirm-public input{margin-top:3px;min-width:16px;accent-color:#5eb9e2}

.r435-imagehost-setup{padding:14px;border-radius:12px;background:var(--card,#162638);border:1px solid var(--border,#56697d);margin:16px 0}
.r435-imagehost-setup h3{margin:0 0 8px;font-size:15px}
.r435-imagehost-setup p{font-size:12px;line-height:1.5;opacity:.9}
.r435-imagehost-setup .field{display:block;margin:10px 0}
.r435-imagehost-setup .input{width:100%;box-sizing:border-box}

/* R436: the short bots dashboard should start at the top, not be vertically
   centred by .main {margin:auto} after removal of promotional cards. */
.shell:not(.editor-focused-shell) > .main { margin:0 auto; align-self:start; }
@media(max-width:850px){.shell:not(.editor-focused-shell) > .main { margin:0 auto; }}
