.match-grid .match-tile{position:relative;gap:9px;min-width:0}
.match-grid .match-copy{min-width:0;overflow-wrap:anywhere}
.match-grid .match-tile.matched{opacity:1;background:linear-gradient(135deg,color-mix(in srgb,var(--pair-color) 12%,#18131f),#18131f);border-color:var(--pair-color);color:#eee8f7}
.match-pair-badge{display:inline-flex;align-items:center;justify-content:center;flex:0 0 25px;width:25px;height:25px;border:1px solid var(--pair-color);border-radius:8px;background:#17121f;color:var(--pair-color);font:700 13px/1 Consolas,monospace}
.match-pair-legend{display:flex;align-items:center;gap:8px;color:#d2c4e4;font-size:12px;line-height:1.6;margin-top:14px}
.match-pair-legend>span{display:inline-flex;align-items:center;justify-content:center;width:22px;height:22px;flex:0 0 22px;border:1px solid #c6a5ff;border-radius:7px;color:#c6a5ff;font:700 12px Consolas,monospace}
.order-task-guide{border:1px solid #4c3b62;border-left:3px solid #a885de;background:#201729;border-radius:12px;padding:13px 15px;margin:17px 0}
.order-task-guide h2{font-size:15px;font-weight:700;line-height:1.4;margin:0 0 6px;color:#dfccfb}
.order-task-guide p{font-size:12px;font-weight:450;line-height:1.65;margin:0;color:#c9bfd5}
.order-task-guide .order-constraints{margin-top:7px;color:#93d8c3}
.order-task-guide .order-specific-goal{margin-top:8px;color:#eee4fa}
.order-task-guide .expected-output{margin:12px 0 0;background:#15111d;border-color:#50415e}
.order-task-guide .expected-output code{white-space:pre-wrap;overflow-wrap:anywhere}
.order-task-guide[data-order-kind="program"] .expected-output{display:flex;align-items:center;gap:12px;margin-top:9px;padding:7px 10px;border:0;border-radius:6px}
.order-task-guide[data-order-kind="program"] .expected-output span{margin:0;font-size:9px}
.order-task-guide[data-order-kind="program"] .expected-output code{font-size:12px}
.order-controls-help{margin:10px 0 14px;color:#b0a1c1;font-size:11px;line-height:1.6}
.order-controls-help summary{cursor:pointer;width:fit-content;padding:4px 0;text-decoration:underline;text-underline-offset:3px}
.order-controls-help .order-gesture-help{margin:7px 0}
.activity-assumptions{font-size:11px;line-height:1.65;color:#a69aae;margin:8px 0 16px}
.order-solution{margin-top:18px;min-width:0}
.order-solution-label{display:flex;justify-content:space-between;gap:14px;color:#cbb9e1;font-size:11px;line-height:1.5;font-weight:650;letter-spacing:.2px}
.order-solution-label>span{flex-shrink:0;color:#a2cfbf;font-family:Consolas,monospace}
.order-solution .order-answer{margin-top:9px;min-height:100px;padding:12px 0;border-top:1px dashed #614974;border-bottom:1px dashed #614974}
.order-solution .order-placeholder{padding:10px 4px;font-size:12px;line-height:1.7}
.order-program{overflow:hidden;min-width:0;margin-top:18px;padding:15px;border:1px solid #4b365c;border-radius:14px;background:#130f1b}
.order-program-label{display:flex;justify-content:space-between;gap:12px;margin-bottom:15px;color:#bfa3de;font:10px/1.5 Consolas,monospace}
.order-program-label>span:last-child{color:#a49bad}
.order-fixed-code{margin:0;font:12px/1.8 'Cascadia Code',Consolas,monospace;color:#a99bb9;white-space:pre-wrap;overflow-wrap:anywhere;tab-size:2}
.order-fixed-code code{font:inherit;white-space:pre-wrap;overflow-wrap:anywhere}
.order-program .order-solution{margin:12px 0 12px 15px;padding:12px;border:1px dashed #71518b;border-radius:10px;background:#1c1424}
.order-program .order-solution .order-answer{border:0;padding:4px 0 0;min-height:82px}
.order-program .order-selected{background:#251c30}
.order-step-number{display:flex;align-items:center;justify-content:center;min-width:25px;flex-shrink:0;color:#bba0da;font:700 12px/1 Consolas,monospace}
.order-text-steps .code-tile,.order-text-steps code{font-family:inherit;font-size:13px;font-weight:500}
.order-text-steps.order-bank{flex-direction:column;align-items:stretch}
.order-text-steps.order-bank .code-tile{width:100%;min-height:49px}
@media(max-width:600px){.match-grid{gap:12px;grid-template-columns:1fr 1.15fr}.match-grid .match-tile{padding:11px 8px;gap:6px;font-size:12px}.match-pair-badge{flex-basis:21px;width:21px;height:21px;font-size:12px;border-radius:6px}.order-task-guide{padding:11px 12px}.order-task-guide h2{font-size:14px}}
@media(max-width:430px){.order-program{padding:12px}.order-program .order-solution{margin-left:7px;padding:9px}.order-fixed-code{font-size:11px;line-height:1.8}.order-solution-label{font-size:10px}.order-solution .order-placeholder{font-size:11px}.order-text-steps .code-tile,.order-text-steps code{font-size:12px}.order-step-number{min-width:20px}}
@media(prefers-reduced-motion:reduce){.match-grid .match-tile{animation:none}}
