/* Random name picker */
.np-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); }
@media (max-width: 860px) { .np-grid { grid-template-columns: minmax(0, 1fr); } }
.np-list { display: grid; gap: 8px; align-content: start; }
.np-listbar { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.np-listbar .sel { flex: 1 1 160px; width: auto; min-width: 0; }
.np-rename .in { flex: 1 1 160px; width: auto; }
.np-text { width: 100%; min-height: 280px; resize: vertical; line-height: 1.5; }
@media (max-width: 860px) { .np-text { min-height: 170px; } }
.np-list code { color: var(--text); }
.np-center { justify-content: center; text-align: center; }
.np-out { min-height: 150px; display: grid; place-items: center; text-align: center; padding: 6px 0; outline: none; }
.np-wait { font-size: 88px; font-weight: 800; color: #2b2d38; line-height: 1; }
.np-one { font-size: clamp(34px, 9vw, 64px); font-weight: 800; color: var(--accent); line-height: 1.1; overflow-wrap: anywhere; max-width: 100%; }
.np-one.long { font-size: clamp(24px, 6vw, 40px); }
.np-one.rolling { color: var(--muted); }
.np-many { margin: 0; padding-left: 28px; text-align: left; font-size: 20px; font-weight: 700; display: grid; gap: 2px; max-height: 360px; overflow: auto; }
.np-many li { overflow-wrap: anywhere; }
#roundLine:empty { display: none; }
#afterPick { gap: 6px; }
.np-t.good[aria-pressed="true"] { border-color: var(--good); }
.np-t.bad[aria-pressed="true"] { border-color: var(--bad); }
.np-t[aria-pressed="true"] { background: rgba(255, 255, 255, .06); }
.np-big-go { min-width: 200px; min-height: 52px; font-size: 18px; }
.np-roster-wrap { overflow-x: auto; margin-top: 8px; max-height: 420px; overflow-y: auto; }
.np-roster { border-collapse: collapse; width: 100%; font-size: 13px; }
.np-roster th, .np-roster td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--border); overflow-wrap: anywhere; }
.np-roster th { color: var(--muted); font-weight: 600; position: sticky; top: 0; background: var(--panel); }
.np-roster tr.away td { color: var(--muted); text-decoration: line-through; }
.np-roster tr.away td:first-child { text-decoration: none; }
.np-roster input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.np-roster caption { caption-side: bottom; font-size: 12px; color: var(--muted); padding-top: 6px; text-align: left; }
.np-roster .in { padding: 5px 8px; min-width: 90px; }
.np-put { background: none; border: 0; color: var(--accent); font: inherit; font-size: 12px; cursor: pointer; padding: 2px 0; text-decoration: underline; }
.np-each { display: grid; gap: 4px; }
.np-each-out { margin: 10px 0 0; padding-left: 22px; }
.np-hist { margin: 8px 0 10px; padding-left: 24px; max-height: 300px; overflow: auto; display: grid; gap: 4px; }
.np-hist li { overflow-wrap: anywhere; }
.np-rule { width: 100%; min-height: 48px; resize: vertical; }
.np-traits { margin-top: 10px; max-height: 360px; overflow: auto; }
.np-teams { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 10px; }
.np-team { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--panel-2); min-width: 0; }
.np-team h3 { margin: 0 0 6px; font-size: 15px; }
.np-team ol { margin: 0; padding-left: 22px; }
.np-team li { overflow-wrap: anywhere; }
.np-cap { color: var(--accent); font-size: 12px; font-weight: 600; }
.np-order { margin: 0 0 10px; padding-left: 30px; columns: 2 180px; column-gap: 24px; }
.np-order li { overflow-wrap: anywhere; break-inside: avoid; }
.np-seat-wrap { overflow-x: auto; }
.np-front { text-align: center; font-size: 12px; color: var(--muted); border: 1px dashed var(--border); border-radius: 8px; padding: 4px; margin-bottom: 8px; min-width: max-content; }
.np-seats { border-collapse: separate; border-spacing: 6px; margin: 0 auto; }
.np-seats th { color: var(--muted); font-size: 12px; font-weight: 600; padding-right: 2px; }
.np-seats td { background: var(--panel-2); border: 1px solid var(--border); border-radius: 8px; padding: 8px 6px; min-width: 76px; max-width: 120px; text-align: center; font-size: 13px; overflow-wrap: anywhere; }
.np-seats td.empty { color: #3a3d4a; border-style: dashed; font-size: 11px; }
.np-comments { width: 100%; min-height: 150px; resize: vertical; }
.np-clean { margin: 8px 0; padding-left: 26px; max-height: 300px; overflow: auto; font-size: 13px; }
.np-clean li { overflow-wrap: anywhere; }
.np-proof-h { margin-top: 0; }
#teamsOut, #seatsOut, #cleanOut { display: grid; gap: 10px; }
@media print {
  body.np-print-seats * { visibility: hidden; }
  body.np-print-seats #seatsOut, body.np-print-seats #seatsOut * { visibility: visible; }
  body.np-print-seats #seatsOut { position: absolute; left: 0; top: 0; width: 100%; }
  body.np-print-seats #seatsOut .rz-row { display: none; }
  body.np-print-seats .np-seats td { color: #000; background: #fff; border-color: #888; }
}
