/* Three contextual suggestions remain visible on phone and desktop. */
#quick-replies{display:block;height:clamp(84px,15vh,132px);min-height:0;margin:0 0 8px;overflow:auto;overscroll-behavior:contain;overflow-anchor:none;scrollbar-gutter:stable}
#quick-replies>span{display:none}
#template-chips{display:block;width:100%;overflow:visible}
.reply-panel-top{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:12px;color:var(--ui-muted);margin-bottom:6px}
.reply-panel-top div{display:flex;gap:8px}
.reply-panel-top button{border:0;background:transparent;color:var(--ui-muted);font-size:12px;padding:5px 0}
.reply-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:7px}
.reply-choice{min-width:0;border:1px solid var(--ui-border);border-radius:8px;background:var(--ui-bg);overflow:hidden}
.reply-choice>button[data-reply-choice]{display:block;width:100%;border:0;background:transparent;text-align:left;color:var(--ui-text);padding:9px;font-size:12px;line-height:1.45}
.reply-choice>button[data-reply-choice]:hover{background:var(--ui-accent-soft)}
.reply-choice span{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.reply-preview-action{border:0;background:transparent;color:var(--ui-muted);font-size:11px;padding:4px 9px 7px}
.reply-panel-status{color:var(--ui-muted);font-size:12px;line-height:1.4;padding:4px 0}
.reply-full-preview{position:fixed;z-index:1100;padding:14px;border:1px solid var(--ui-border);border-radius:9px;background:var(--ui-bg);box-shadow:0 8px 32px #17233425;font-size:14px;line-height:1.55;color:var(--ui-text);white-space:pre-wrap;overflow-wrap:anywhere;max-height:70vh;overflow:auto}
.reply-undo{border:0;background:var(--ui-accent-soft);color:var(--ui-muted);padding:6px 10px;border-radius:7px;font-size:12px}
@media(max-width:767px){.reply-choices{grid-template-columns:minmax(0,1fr)}.reply-choice>button[data-reply-choice]{font-size:13px;padding:8px 10px}.reply-choice span{-webkit-line-clamp:2}.reply-preview-action{padding:2px 10px 6px}.reply-panel-top button{min-height:36px}#quick-replies{height:clamp(96px,21svh,160px)}.reply-full-preview{max-height:65dvh}}
.reply-auto-line{display:flex;flex-wrap:wrap;align-items:center;gap:6px;font-size:12px;line-height:1.4;margin-bottom:5px;color:var(--ui-muted)}.reply-auto-line strong,.reply-manager-badge{color:#a45a13}.reply-auto-line button{border:1px solid var(--ui-border);border-radius:8px;padding:5px 8px;background:white;color:var(--ui-muted);font:inherit}.reply-auto-preview{max-height:140px;overflow:auto;white-space:pre-wrap;font-size:13px;padding:8px;background:var(--ui-surface-muted);border-radius:8px;margin:4px 0}.reply-settings header{display:flex;align-items:center;justify-content:space-between;gap:12px}.reply-settings details{margin:12px 0}.reply-settings ul{max-height:240px;overflow:auto;padding-left:20px}.reply-settings p,.reply-settings li{overflow-wrap:anywhere}
@media(max-width:600px){.reply-auto-line{font-size:11px}.reply-auto-line button{min-height:32px}.reply-settings header h2{font-size:20px}}
