.ui-help{font-size:12px;line-height:1.65;color:var(--text-muted,#64748b);margin:8px 0;overflow-wrap:anywhere}
.ui-feedback{display:flex;align-items:center;flex-wrap:wrap;gap:12px;padding:14px 16px;margin:12px 0;border:1px solid #c5d9f2;border-radius:10px;background:var(--card-bg,#f1f6ff);color:inherit;font-size:14px;line-height:1.6}
.ui-feedback span{flex:1 1 250px}.ui-feedback a{color:#2563a8;text-decoration:underline;text-underline-offset:3px}
.conversation{position:relative}.ui-new-messages{position:absolute;right:20px;bottom:125px;z-index:3;background:var(--card-bg,#fff);box-shadow:0 2px 12px #152d4d20}.ui-new-messages[hidden]{display:none}
[data-ui="quota-preview"]{padding:12px;background:var(--card-bg,#edf4fd);border:1px solid #c5d9f2;border-radius:8px;font-variant-numeric:tabular-nums;color:inherit}
.overlay .modal,.overlay .dialog{max-height:calc(100dvh - 32px);overflow:auto;overscroll-behavior:contain}
.modal-footer,.dialog>.form-actions{position:sticky;bottom:0;z-index:2;background:var(--card-bg,#fff);padding-bottom:max(16px,env(safe-area-inset-bottom));border-top:1px solid #d9e3ef}
.message-translation{margin-top:8px;font-size:.9em;line-height:1.6}.message-translation.pending{color:var(--text-muted,#64748b);font-size:12px}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible{outline:3px solid #4989db;outline-offset:2px}
button:disabled{cursor:not-allowed}.ui-feedback .btn,.conversation-actions .btn{min-height:36px}
[data-theme="dark"] .ui-help{color:#a5b4c8}[data-theme="dark"] .ui-feedback,[data-theme="dark"] .modal-footer,[data-theme="dark"] .dialog>.form-actions,[data-theme="dark"] .ui-new-messages,[data-theme="dark"] [data-ui="quota-preview"]{background:#182638;color:#e5edf8;border-color:#3b506b}
@media(max-width:700px){.overlay{padding:0}.overlay .modal,.overlay .dialog{box-sizing:border-box;width:calc(100vw - 24px);max-width:100%;margin:12px;max-height:calc(100dvh - 24px)}.conversation-actions{flex-wrap:wrap;gap:6px}.modal-footer,.form-actions{flex-wrap:wrap;gap:8px}.ui-feedback{align-items:flex-start}.conversation-compose{flex-wrap:wrap}.conversation-compose textarea{min-width:150px;flex:1 1 55%}.table-wrap{overflow-x:auto}.dialog .form{grid-template-columns:1fr}.ui-new-messages{bottom:170px}}
