.conv { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 22px; margin: 0 0 18px; box-shadow: var(--shadow-sm); }
.conv h3 { margin: 0 0 16px; font-size: 16px; display: flex; align-items: center; gap: 9px; }
.conv h3::before { content: ""; width: 6px; height: 18px; border-radius: 3px; background: var(--accent); }

.enc-controls { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 14px; }
.enc-controls label { font-size: 13px; color: var(--text-muted); }
.enc-controls select,
.enc-controls .toggle-group { height: 36px; }
.enc-controls select { border: 1px solid var(--border); border-radius: var(--r); background: var(--bg);
  color: var(--text); padding: 0 10px; font-size: 14px; cursor: pointer; }

.toggle-group { display: flex; border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.toggle-group button { border: none; background: var(--bg); color: var(--text); font-size: 13px;
  padding: 0 14px; cursor: pointer; transition: background 0.15s, color 0.15s; white-space: nowrap; }
.toggle-group button.active { background: var(--accent); color: #fff; }

.enc-io { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 680px) { .enc-io { grid-template-columns: 1fr; } }

.enc-io .field { display: flex; flex-direction: column; gap: 6px; }
.enc-io .field label { font-size: 12px; font-weight: 600; color: var(--text-muted); text-transform: uppercase;
  letter-spacing: 0.04em; }
.enc-io textarea { resize: vertical; min-height: 110px; font-family: var(--font-mono, monospace);
  font-size: 13px; line-height: 1.55; border: 1px solid var(--border); border-radius: var(--r);
  background: var(--bg); color: var(--text); padding: 10px; width: 100%; box-sizing: border-box; }
.enc-io textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.enc-io textarea[readonly] { background: var(--surface); cursor: default; }

.enc-copy { align-self: flex-end; }
.enc-error { color: var(--danger, #c0392b); font-size: 13px; margin-top: 6px; min-height: 1.2em; }
