.br-dots { display: grid; grid-template-rows: repeat(3, 1fr); grid-auto-flow: column; gap: 4px 6px; width: 1.4rem; }
.br-dots i { display: block; width: 0.55rem; height: 0.55rem; border-radius: 50%; border: 1px solid var(--border); background: transparent; box-sizing: border-box; }
.br-dots i.on { background: var(--text); border-color: var(--text); }

.br-cells { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.br-cell { display: flex; flex-direction: column; align-items: center; gap: 0.25rem; min-width: 2.6rem; padding: 0.4rem 0.3rem 0.3rem; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); }
.br-cell.prefix { background: var(--pt-accent-soft, #f3f0fa); }
.br-cell.bad { border-color: #dc2626; }
.br-cell.blank { border-style: dashed; }
.br-cell .br-dots { width: 1.4rem; }
.br-lab { font-size: 0.78rem; line-height: 1.2; min-height: 0.95rem; color: var(--text-sub); text-align: center; }
.br-cell.base .br-lab { color: var(--text); font-weight: 700; font-size: 0.9rem; }
.br-linebreak { flex-basis: 100%; height: 0; }
.br-empty { color: var(--text-sub); font-size: 0.88rem; }
.br-more { align-self: center; font-size: 0.85rem; color: var(--text-sub); }

.br-pad { display: flex; align-items: center; gap: 1.6rem; padding: 0.8rem 1rem; border: 1px solid var(--border); border-radius: 6px; width: fit-content; max-width: 100%; box-sizing: border-box; }
.br-pad:focus-visible { outline: 2px solid var(--pt-accent); outline-offset: 2px; }
.br-pad-dots { display: grid; grid-template-rows: repeat(3, 1fr); grid-auto-flow: column; gap: 0.6rem 1.1rem; }
.br-dot { width: 3rem; height: 3rem; border-radius: 50%; border: 2px solid var(--border); background: var(--surface); color: var(--text-sub); font-size: 0.9rem; font-weight: 700; cursor: pointer; padding: 0; }
.br-dot[aria-pressed="true"] { background: var(--text); border-color: var(--text); color: var(--surface); }
.br-pad-now { font-size: 3rem; line-height: 1; min-width: 3rem; }
.br-pad-guess { font-size: 0.85rem; color: var(--text-sub); margin-top: 0.4rem; min-height: 1.2rem; }
.br-pad-actions { margin-top: 0.8rem; }
.br-pad-lead { margin-top: 0; }

.br-chart-wrap summary { cursor: pointer; font-weight: 700; }
.br-chart-title { font-weight: 700; font-size: 0.88rem; margin: 0.9rem 0 0.3rem; }
.br-chart { display: grid; grid-template-columns: repeat(auto-fill, minmax(3.4rem, 1fr)); gap: 0.3rem; }
.br-chart .br-cell { min-width: 0; }
.br-chart .br-cell.wide { grid-column: span 3; }

@media (max-width: 560px) {
  .br-pad { gap: 1rem; padding: 0.6rem; }
  .br-dot { width: 2.8rem; height: 2.8rem; }
  .br-pad-dots { gap: 0.5rem 0.8rem; }
  .br-pad-now { font-size: 2.2rem; }
}
