.e2ee-status{padding:12px 14px;margin:12px 0;border:1px solid var(--line);border-radius:9px;color:var(--muted);font-size:13px;line-height:1.6}
.e2ee-verify{min-height:40px;padding:8px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel);color:var(--text);font:inherit;cursor:pointer}
.e2ee-dialog{box-sizing:border-box;width:min(520px,calc(100% - 32px));max-height:calc(100dvh - 32px);overflow:auto;padding:24px;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text)}
.e2ee-dialog::backdrop{background:#000c}
.e2ee-dialog p{line-height:1.6;color:var(--muted);overflow-wrap:anywhere}
.e2ee-dialog form{display:grid;gap:14px}
.e2ee-dialog textarea,.e2ee-dialog input:not([type=checkbox]){box-sizing:border-box;width:100%;min-width:0;padding:12px;border:1px solid var(--line);border-radius:8px;background:var(--bg);color:var(--text);font:16px monospace}
.e2ee-dialog textarea{min-height:110px;overflow-wrap:anywhere}
.e2ee-dialog button{min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:8px;background:var(--panel2);color:var(--text);font:inherit;cursor:pointer}
.e2ee-dialog :focus-visible{outline:2px solid var(--accent);outline-offset:3px}
.device-qr{padding:16px;background:#fff;justify-self:center;border-radius:10px;max-width:100%;box-sizing:border-box}
.device-qr img,.device-qr canvas{max-width:100%;height:auto}
.device-code{font:700 26px monospace;text-align:center;letter-spacing:3px;color:var(--text)!important}
.device-list{display:grid;gap:12px}
.device-row{display:flex;gap:10px;align-items:center;flex-wrap:wrap;padding:12px;border:1px solid var(--line);border-radius:8px}
.device-row span{flex:1 1 140px;overflow-wrap:anywhere}
.device-row small{color:var(--muted)}
.device-camera{width:100%;max-height:280px;border-radius:8px;background:#000;object-fit:contain}
#e2ee-device-progress{font-size:13px;line-height:1.6;color:var(--muted)}
.message-encryption-label{display:block;font-size:11px;line-height:1.5;color:inherit;margin-top:8px}
.message-bubble.mine .message-encryption-label{color:inherit;font-weight:500}
.message-bubble.mine time{font-size:11px}
.message-bubble .message-actions button{opacity:1;font-size:12px;font-weight:600}
html[data-theme=day] .message-bubble.mine .edit-message-button{color:inherit}
html[data-primary-neutral=true]:not([data-theme=day]) .message-bubble.mine{background:#e0e2e6;border-color:#e0e2e6;color:#15171b}
html[data-primary-neutral=true]:not([data-theme=day]) .message-bubble.mine time{color:#343941}
html[data-primary-neutral=true]:not([data-theme=day]) .message-bubble.mine .delete-message-button{color:#921c30}
