/* Random number draw (tools.d, 2026-10-11). Every rule under #visu-tools.vt-number-draw; borders stay 1px hairline. */
#visu-tools.vt-number-draw .vt-nd-range { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
#visu-tools.vt-number-draw .vt-nd-range input { font-variant-numeric: tabular-nums; }
#visu-tools.vt-number-draw .vt-nd-presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
/* !important: the theme styles bare <button> elements (colour, padding, radius). */
#visu-tools.vt-number-draw .vt-nd-preset { min-height: 36px !important; width: auto !important; margin: 0 !important; padding: 6px 14px !important; border-radius: 999px !important; border: 1px solid var(--vt-line-2) !important;
  background: #fff !important; box-shadow: none !important; color: var(--vt-ink) !important; font: 550 14px/1 inherit !important; letter-spacing: 0 !important; text-transform: none !important; cursor: pointer; }
#visu-tools.vt-number-draw .vt-nd-preset:hover { border-color: var(--vt-ink) !important; }
#visu-tools.vt-number-draw #vt-nd-plan { margin-top: 10px !important; min-height: 1.5em; }
#visu-tools.vt-number-draw #vt-nd-plan[data-kind="error"] { color: var(--vt-err); }
#visu-tools.vt-number-draw .vt-check { min-height: 0; margin-top: 8px; align-items: flex-start; }
#visu-tools.vt-number-draw .vt-nd-order { margin-top: 16px; }
#visu-tools.vt-number-draw .vt-nd-title { margin-top: 16px; display: grid; }
#visu-tools.vt-number-draw .vt-in > .vt-actions { margin-top: 18px; }
#visu-tools.vt-number-draw .vt-nd-note { margin-top: 14px !important; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--vt-line); background: var(--vt-bg); font-size: 13.5px; line-height: 1.5; color: var(--vt-text); }
#visu-tools.vt-number-draw .vt-nd-note + .vt-hint { margin-top: 10px !important; }
#visu-tools.vt-number-draw .vt-nd-empty { padding: 28px 16px; text-align: center; font-size: 15px; color: var(--vt-muted); border: 1px solid var(--vt-line); border-radius: 14px; background: var(--vt-bg); }
#visu-tools.vt-number-draw #vt-nd-out:not([hidden]) { display: grid; gap: 12px; }
#visu-tools.vt-number-draw .vt-nd-shared { padding: 10px 14px; border-radius: 12px; background: var(--vt-tint); font-size: 14px; }
#visu-tools.vt-number-draw .vt-nd-heading { font-size: 20px; font-weight: 720; color: var(--vt-ink); letter-spacing: -0.02em; overflow-wrap: anywhere; }
#visu-tools.vt-number-draw .vt-nd-balls { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0 !important; padding: 0 !important; max-height: 420px; overflow-y: auto; }
#visu-tools.vt-number-draw .vt-nd-ball { display: grid; place-items: center; min-width: 52px; height: 52px; padding: 0 12px; border-radius: 26px; background: var(--vt-tint); color: var(--vt-accent-text);
  font-size: 20px; font-weight: 740; font-variant-numeric: tabular-nums; animation: vt-nd-pop .3s ease-out both; }
#visu-tools.vt-number-draw .vt-nd-few .vt-nd-ball { min-width: 72px; height: 72px; border-radius: 36px; font-size: 28px; }
#visu-tools.vt-number-draw .vt-nd-one .vt-nd-ball { min-width: 148px; height: 148px; padding: 0 28px; border-radius: 74px; font-size: 64px; letter-spacing: -0.03em; }
#visu-tools.vt-number-draw .vt-nd-long.vt-nd-one .vt-nd-ball { font-size: 40px; }
#visu-tools.vt-number-draw .vt-nd-long.vt-nd-few .vt-nd-ball { font-size: 20px; }
#visu-tools.vt-number-draw .vt-nd-one { justify-content: center; }
#visu-tools.vt-number-draw .vt-nd-proof .vt-kv { grid-template-columns: 110px minmax(0, 1fr); }
#visu-tools.vt-number-draw .vt-nd-linkbox:not([hidden]) { display: grid; gap: 6px; }
#visu-tools.vt-number-draw .vt-nd-linkbox input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important; font-size: 13px !important; color: var(--vt-muted) !important; text-overflow: ellipsis; }
@keyframes vt-nd-pop { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { #visu-tools.vt-number-draw .vt-nd-ball { animation: none; } }
@media (max-width: 600px) {
  #visu-tools.vt-number-draw .vt-nd-range { gap: 10px; }
  #visu-tools.vt-number-draw .vt-nd-order .vt-seg-items { flex-wrap: wrap; overflow: visible; margin: 0; padding: 0; }
  #visu-tools.vt-number-draw .vt-nd-one .vt-nd-ball { min-width: 120px; height: 120px; border-radius: 60px; font-size: 52px; }
}
