/* Matching is a card interaction, never a native select control. */
.exam-room .match-area{margin:22px 0 8px;color:#202e42;font-family:'Be Vietnam Pro',Arial,sans-serif}
.match-bank-heading{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:10px}
.match-bank-heading>span{font-size:10px;letter-spacing:1px;font-weight:600;color:#7b8797}
.match-bank-heading>small{font-size:11px;color:#8a94a3;line-height:1.5;text-align:right}
.exam-room .match-area .token-bank{display:flex;flex-wrap:wrap;align-items:center;gap:9px;padding:13px;border:1px solid #e5e9ef;border-radius:10px;min-height:68px;background:#f5f7fa;transition:background .12s,border-color .12s}
.exam-room .match-area .drag-token{display:inline-flex;align-items:center;gap:9px;max-width:100%;min-height:41px;padding:8px 13px;border:1px solid #d8dfe8;border-radius:7px;background:#fff;color:#26374c;font:inherit;font-size:14px;line-height:1.65;box-shadow:0 1px 2px #1c304208;cursor:grab;user-select:none;touch-action:none;text-align:left}
.match-token-text{min-width:0;overflow-wrap:anywhere}.match-grip{font-family:Arial,sans-serif;color:#a4adba;font-size:18px;line-height:1;flex-shrink:0}
.match-token-state{font-size:9px;color:#8c97a5;white-space:nowrap}
.exam-room .match-area .drag-token:hover:not(:disabled){border-color:#b50f2d;background:#fffafb}
.exam-room .match-area .drag-token.selected{border-color:#b50f2d;background:#fff6f8;box-shadow:0 0 0 3px #b50f2d10;color:#a10c29}
.exam-room .match-area .drag-token.used{opacity:.47;cursor:default;background:#f7f8fa;box-shadow:none}
.exam-room .match-area .match-row{display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:15px;align-items:center;margin:15px 0;padding:0;font-size:14px;line-height:1.7}
.match-row-label{display:flex;gap:10px;align-items:baseline;min-width:0}.match-row-label>span:last-child{min-width:0;overflow-wrap:anywhere}
.match-row-number{display:grid;place-items:center;flex-shrink:0;width:23px;height:23px;font-size:10px;line-height:1;color:#8b96a4;background:#f0f2f6;border-radius:50%}
.exam-room .match-area .drop-target{display:flex;position:relative;align-items:stretch;width:100%;min-width:0;min-height:54px;border:1px dashed #c9d2df;border-radius:8px;padding:0;background:#fbfcfe;box-shadow:none;transition:background .12s,border-color .12s,box-shadow .12s}
.exam-room .match-area .drop-target.filled{background:#fff;border:1px solid #bfcbd9;box-shadow:0 1px 2px #1b2c4006}
.exam-room .match-area .match-slot{display:flex;align-items:center;gap:10px;width:100%;min-width:0;min-height:54px;margin:0;padding:12px 14px;border:0;border-radius:8px;background:transparent;color:#8c99aa;text-align:left;font:inherit;font-size:14px;line-height:1.65;box-shadow:none;cursor:pointer}
.exam-room .match-area .filled .match-slot{padding-right:43px;color:#25384f;cursor:grab;touch-action:none;user-select:none}
.match-slot-icon{font-family:Arial,sans-serif;color:#a2adba;font-size:19px;line-height:1;flex-shrink:0}
.exam-room .match-area .drop-display{position:static;display:block;transform:none;inset:auto;flex:1;min-width:0;max-width:100%;font:inherit;font-size:14px;line-height:1.65;pointer-events:none;text-align:left;overflow-wrap:anywhere;color:inherit}
.exam-room .match-area .match-clear{position:absolute;right:8px;top:50%;transform:translateY(-50%);width:27px;height:27px;display:grid;place-items:center;border:0;border-radius:5px;background:#f1f4f8;color:#8491a2;padding:0;cursor:pointer}
.exam-room .match-area .match-clear[hidden]{display:none}.exam-room .match-area .match-clear:hover{color:#b50f2d;background:#fcecf0}
.exam-room .match-area .drop-target.selected,.exam-room .match-area .drop-target.drag-over{border:1px solid #b50f2d;background:#fff4f7;box-shadow:0 0 0 3px #b50f2d0d}
.exam-room .match-area .token-bank.drag-over{border-color:#b50f2d;background:#fff2f6}
.match-drag-source{opacity:.3!important}.match-area.dragging .drop-target:not(.filled){border-color:#bcc7d6;background:#f7f9fc}
.match-help{font-size:11px;line-height:1.65;color:#8c97a5;margin-top:15px;min-height:18px}
.match-area button:focus-visible{outline:2px solid #b50f2d;outline-offset:3px}
.match-drag-ghost{position:fixed;pointer-events:none;z-index:10000;display:flex;align-items:center;gap:9px;max-width:300px;width:max-content;min-height:43px;padding:10px 16px;border:1px solid #b50f2d;border-radius:8px;background:#fff;color:#26374c;font-family:'Be Vietnam Pro',Arial,sans-serif;font-size:14px;line-height:1.65;box-shadow:0 12px 28px #24334c35;text-align:left;opacity:1!important}
.match-drag-ghost .match-token-state{display:none}.match-drag-ghost .drop-display{position:static;transform:none;inset:auto;white-space:normal;color:inherit;font-size:14px}.match-drag-ghost.touch-ghost{left:0;top:0;max-width:230px}
@media(max-width:900px){.match-bank-heading{display:block}.match-bank-heading>small{display:block;text-align:left;margin-top:5px}.exam-room .match-area .match-row{grid-template-columns:minmax(0,1fr);gap:9px;margin:20px 0}.exam-room .match-area .token-bank{padding:10px;gap:8px}}
@media(prefers-reduced-motion:reduce){.exam-room .match-area .drop-target,.exam-room .match-area .token-bank{transition:none}}
/* Used chips keep their original width, so filling an answer never reflows the tray. */
.exam-room .match-area .match-token-state{display:none}

.exam-room .match-area .drag-token.used{pointer-events:none}
