/* Kakuro combinations table */
.kc-bar { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: flex-end; }
.kc-bar .field input { width: 110px; } .kc-bar .field select { width: 100px; }
.kc-l { margin: 14px 0 6px; }
.kc-digits .chip { min-width: 40px; min-height: 40px; font-family: var(--mono); font-size: 16px; padding: 4px 0; }
.kc-legend { font-size: 14px; color: var(--muted); margin: 18px 0 8px; display: flex; align-items: center; gap: 8px; }
.kc-sw { width: 18px; height: 14px; border-radius: 4px; display: inline-block; border: 1px solid var(--line); }
.kc-sw.u, .kc-t tr.u th { background: var(--lilac); color: #000; }
.kc-tables { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 16px; align-items: start; }
.kc-sec { background: var(--soft); border-radius: var(--r-lg); padding: 16px 18px; break-inside: avoid; }
.kc-sec h2 { margin: 0 0 8px; font-size: 18px; }
.kc-t { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; }
.kc-t th, .kc-t td { padding: 5px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; font-size: 15px; }
.kc-t thead th { font-family: var(--mono); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); }
.kc-t tbody th { font-family: var(--mono); font-weight: 600; color: var(--ink); width: 52px; border-radius: 4px; }
.kc-t td { font-family: var(--mono); color: var(--body); line-height: 1.7; }
.kc-t td span { display: inline-block; margin-right: 6px; }
.kc-t td span.off { display: none; }
.kc-t tr.hit td span:not(.off) { color: var(--ink); font-weight: 600; }
@media (max-width: 420px) { .kc-tables { grid-template-columns: minmax(0, 1fr); } .kc-sec { padding: 12px; } }
@media print {
  .kc-tables { display: block; columns: 2; column-gap: 18px; }
  .kc-sec { background: #fff; padding: 0; margin-bottom: 10px; }
  .kc-t th, .kc-t td { padding: 2px 6px; font-size: 9.5pt; }
  .kc-t tr[hidden], .kc-sec[hidden] { display: table-row !important; }
  .kc-sec[hidden] { display: block !important; }
  .kc-t td span.off { display: inline-block; }
  .kc-legend { margin: 0 0 6px; }
}
