#messagesList, #mobileMessagesList { transition: background-color .18s ease; }
#messagesList .message.my-message .message-content,
#mobileMessagesList .mobile-message.mobile-my-message .mobile-message-content {
    border-color: color-mix(in srgb, var(--shiz-chat-accent, transparent) 38%, transparent);
}
.shiz-enhance-overlay {
    position: fixed; inset: 0; z-index: 10020; display: grid; place-items: center;
    padding: 18px; background: rgba(0,0,0,.62); backdrop-filter: blur(6px);
}
.shiz-enhance-dialog {
    position: relative; width: min(460px, 100%); max-height: min(82vh, 760px); overflow: auto;
    padding: 24px; border: 1px solid rgba(255,255,255,.14); border-radius: 18px;
    background: var(--modal-bg, #20232a); color: var(--text-primary, #f4f6fa);
    box-shadow: 0 20px 70px rgba(0,0,0,.45);
}
.shiz-enhance-dialog h2 { margin: 0 38px 20px 0; font-size: 20px; }
.shiz-enhance-dialog label { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 16px 0; }
.shiz-enhance-dialog input[type="color"] { width: 54px; height: 40px; padding: 3px; border: 1px solid rgba(255,255,255,.2); border-radius: 8px; background: transparent; }
.shiz-enhance-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255,255,255,.08); color: inherit; font-size: 24px; cursor: pointer; }
.shiz-enhance-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; }
.shiz-enhance-actions button, .shiz-archive-list button { min-height: 40px; padding: 8px 14px; border: 1px solid rgba(255,255,255,.16); border-radius: 10px; background: rgba(255,255,255,.07); color: inherit; cursor: pointer; }
.shiz-enhance-actions .shiz-appearance-save { background: #3a79df; border-color: #3a79df; }
.shiz-color-presets { display: flex; gap: 10px; margin-top: 18px; }
.shiz-color-presets button { width: 42px; height: 42px; border: 3px solid var(--preset-accent); border-radius: 50%; background: var(--preset-bg); cursor: pointer; }
.shiz-preview-dialog { width: min(900px, 100%); height: min(82vh, 760px); display: flex; flex-direction: column; }
.shiz-preview-dialog header { display:flex; align-items:center; justify-content:space-between; gap: 16px; }
.shiz-preview-dialog header h2 { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.shiz-preview-content { flex:1; min-height:0; overflow:auto; border-radius:10px; background:rgba(0,0,0,.16); }
.shiz-preview-content iframe { width:100%; height:100%; border:0; }
.shiz-preview-content img { display:block; max-width:100%; max-height:100%; margin:auto; object-fit:contain; }
.shiz-preview-content pre, .shiz-archive-text { margin:0; padding:16px; white-space:pre-wrap; overflow-wrap:anywhere; font:13px/1.55 ui-monospace,monospace; }
.shiz-archive-list { padding: 0 24px 12px 40px; }
.shiz-archive-list li { margin: 6px 0; }
.shiz-transcript { max-width: 360px; margin: 5px 0 8px 44px; color: var(--text-secondary, #aeb6c3); font-size: 13px; line-height: 1.45; overflow-wrap:anywhere; }
.shiz-transcribe { display:inline-flex; align-items:center; justify-content:center; flex:0 0 36px; width:36px; height:36px; padding:0; border:0; border-radius:50%; background:transparent; color:#fff; cursor:pointer; touch-action:manipulation; }
.shiz-transcribe svg { width:22px; height:22px; fill:none; stroke:currentColor; stroke-width:1.5; stroke-linecap:round; stroke-linejoin:round; }
.shiz-transcribe:hover { background:transparent; opacity:.75; }
.shiz-transcribe:focus-visible { outline:2px solid currentColor; outline-offset:2px; }
.shiz-transcribe:disabled { cursor:wait; }
@media (max-width: 600px) {
    .shiz-enhance-dialog { padding: 20px; }
}
