/* Pollux stays within the site's existing article and form vocabulary. */
.pollux-tool { margin-top: 28px; padding: 24px; border-radius: var(--r-tile); background: var(--panel); }
.article .pollux-tool h2 { margin-top: 0; font-size: 26px; }
.pollux-app, .pollux-results, .pollux-alignments, .pollux-crib-field { display: grid; gap: 12px; min-width: 0; }
.pollux-app label, .pollux-app legend { font-weight: 650; }
.pollux-tool :is(input, select, textarea) { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--tile); color: var(--ink); }
.pollux-tool textarea { resize: vertical; line-height: 1.5; overflow-wrap: anywhere; }
.pollux-tool :is(input, textarea)::placeholder { color: var(--sec); }
.pollux-key { min-width: 0; margin: 0; padding: 16px 0; border: 0; border-block: 1px solid var(--line); }
.pollux-key legend { padding: 0 8px 0 0; }
.pollux-key-fields { display: flex; flex-wrap: wrap; gap: 12px; }
.pollux-key-fields > div { flex: 1 1 150px; min-width: 0; }
.pollux-key-fields label { display: block; margin-bottom: 6px; }
.pollux-key-fields input { letter-spacing: 0.08em; font-variant-numeric: tabular-nums; }
.pollux-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.pollux-results > .btn { justify-self: start; }
.article .pollux-tool p { margin: 0 0 12px; }
.article .pollux-tool .pollux-note, .article .pollux-key > p { font-size: 15px; color: var(--sec); }
.article .pollux-tool .pollux-status { margin: 0; min-height: 1.5em; font-weight: 600; overflow-wrap: anywhere; }
.pollux-results { border-top: 1px solid var(--line); padding-top: 18px; }
.pollux-results details { min-width: 0; }
.pollux-results summary { min-height: 44px; padding: 10px 0; cursor: pointer; font-weight: 600; }
.article .pollux-stream { padding: 14px; border-radius: var(--r-tile); background: var(--tile); font-family: ui-monospace, monospace; overflow-wrap: anywhere; letter-spacing: 0.08em; }
.pollux-tool .table { font-size: 15px; }
.pollux-tool .table :is(th, td) { padding: 10px; overflow-wrap: anywhere; }
.pollux-tool .table-scroll { margin: 0; }
@media (max-width: 520px) {
  .pollux-tool { padding: 18px 16px; }
  .pollux-actions .btn { flex: 1 1 100%; }
  .pollux-key-fields > div { flex-basis: 100%; }
}
