.logic-matching{max-width:1180px;margin:0 auto;color:#28333a}.lm-head{background:#f5efe3;border:1px solid #dacbae;border-radius:20px;padding:clamp(1.3rem,4vw,2.5rem);margin-bottom:1.2rem}.lm-head h1{font-family:Georgia,serif;font-size:clamp(2rem,4vw,3rem);color:#2d241e}.lm-head a{font-weight:700;color:#096473}.lm-eyebrow{text-transform:uppercase;letter-spacing:.12em;color:#975b36;font-weight:700}.lm-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(220px,1fr);gap:1.2rem}.lm-main,.lm-side{background:#fff;border:1px solid #e2d5c3;border-radius:18px;padding:clamp(1rem,3vw,2rem)}.lm-toolbar,.lm-actions,.lm-navigation{display:flex;gap:.7rem;flex-wrap:wrap;align-items:center}.lm-toolbar label{font-weight:700;display:grid;gap:.4rem}.lm-toolbar select{padding:.6rem;border:1px solid #b6b2ab;border-radius:9px;max-width:100%}.lm-level{padding:.35rem .65rem;background:#e5f1ef;border-radius:999px;color:#14586a;font-weight:700}.lm-main h2,.lm-side h2{font-family:Georgia,serif;margin-top:1rem}.lm-clues{padding-left:1.5rem}.lm-clues li{padding:.2rem 0}.lm-grid-wrap{overflow-x:auto;margin:1.2rem 0}.lm-grid{border-collapse:collapse;width:100%;min-width:510px;text-align:center}.lm-grid th,.lm-grid td{border:1px solid #d4ccbf;padding:.3rem}.lm-grid th{background:#f5efe3}.lm-grid button{width:2.6rem;height:2.4rem;border:1px solid #d5ccc1;background:#fff;border-radius:8px;font-size:1.2rem}.lm-grid button[data-state="no"]{background:#fae8e1;color:#a03525}.lm-grid button[data-state="yes"]{background:#dff0e7;color:#1a6a46;font-weight:700}.lm-help{font-size:.9rem;color:#665f55}.lm-status{min-height:3rem;background:#edf5f4;padding:.8rem;border-radius:10px}.lm-status[data-kind="error"]{background:#fff0eb;color:#9f2c1d}.lm-status[data-kind="success"]{background:#e7f4ea;color:#17623b}.lm-actions button,.lm-navigation button{border:1px solid #b8a98e;border-radius:10px;background:white;padding:.6rem .9rem;font-weight:700}.lm-actions button:first-child{background:#0c5e6a;color:white;border-color:#0c5e6a}.lm-navigation{margin-top:1.2rem;justify-content:space-between}.lm-reasoning{border:1px solid #d5e5e2;background:#f2f8f6;border-radius:12px;padding:1rem;margin-top:1rem}.lm-side{align-self:start}.lm-side h2{margin-top:0}@media(max-width:850px){.lm-layout{grid-template-columns:1fr}}
