.combinatorics-lab { padding-top: 2rem; padding-bottom: 4rem; }
.combinatorics-guidance { max-width: 70ch; margin: 0 0 1.5rem; color: #365266; line-height: 1.65; }
.combinatorics-grid { display: grid; grid-template-columns: minmax(280px, 0.85fr) minmax(320px, 1.15fr); gap: 1.5rem; align-items: start; }
.combinatorics-panel { padding: clamp(1.25rem, 3vw, 2rem); border: 1px solid #d6cbb8; border-radius: 1.25rem; background: #fffdf7; box-shadow: 0 10px 28px rgb(37 54 63 / 6%); }
.combinatorics-panel h2 { margin: 0 0 1.25rem; font-size: clamp(1.4rem, 2vw, 1.8rem); }
.combinatorics-panel h3 { margin: 1.5rem 0 0.5rem; font-size: 1.15rem; }
.combinatorics-panel label { display: block; margin: 1rem 0 0.45rem; font-weight: 700; }
.combinatorics-panel .form-control, .combinatorics-panel .form-select { background: white; min-height: 3rem; }
.combinatorics-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.combinatorics-hint { color: #5b6871; font-size: 0.95rem; line-height: 1.5; margin: 0.75rem 0 1rem; }
.combinatorics-answer { font-size: clamp(2rem, 5vw, 3rem); font-weight: 800; color: #0b6267; margin: 0.25rem 0; }
.combinatorics-formula { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; background: #edf6f4; border-radius: 0.55rem; padding: 0.8rem; overflow-wrap: anywhere; }
.combinatorics-cases { display: flex; flex-wrap: wrap; gap: 0.45rem; padding: 0; list-style: none; max-height: 18rem; overflow: auto; }
.combinatorics-cases li { padding: 0.35rem 0.6rem; border-radius: 0.4rem; background: #f2ece0; font-family: ui-monospace, SFMono-Regular, Consolas, monospace; }
@media (max-width: 780px) { .combinatorics-grid { grid-template-columns: 1fr; } }
