.cipher-tool { margin-block: 40px; padding-block: 28px; border-block: 1px solid var(--line); min-width: 0; }
.cipher-tool h2 { font-size: 30px; }
.cipher-tool label { display: block; margin-block: 20px 8px; font-weight: 650; }
.cipher-tool textarea, .cipher-tool select { width: 100%; min-width: 0; max-width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--ink); font: inherit; }
.cipher-tool textarea { display: block; resize: vertical; }
.cipher-tool select { min-height: 48px; }
.cipher-settings { display: flex; flex-wrap: wrap; gap: 0 20px; }
.cipher-settings > div { flex: 1 1 180px; min-width: 0; }
.cipher-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-block: 20px; }
.cipher-tool .btn { min-height: 44px; white-space: normal; overflow-wrap: anywhere; }
.cipher-tool p { overflow-wrap: anywhere; }
.cipher-output { max-width: 100%; padding: 16px; border-radius: 12px; background: var(--tile); color: var(--ink); font: inherit; white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word; }
.cipher-tool [data-cipher-status] { min-height: 1.55em; }
.cipher-tool .cipher-candidates { padding-left: 24px; }
.cipher-candidates li { padding-block: 16px; border-bottom: 1px solid var(--line); min-width: 0; }
.cipher-tool :is(button, select, textarea, pre):focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
@media (max-width: 390px) { .cipher-actions .btn { width: 100%; } }
