/* Z - DISASSEMBLY: exam widget (neutral exam look; Battleground styles .z-qtext). */
.zds {
	--zds-ink: #1f2430; --zds-muted: #6b7280; --zds-accent: #2f5bd3; --zds-accent-d: #2747a8;
	--zds-soft: #f5f7fb; --zds-line: #e6e8ee; --zds-bad: #d64545;
	color: var(--zds-ink); max-width: 980px;
}
.zds * { box-sizing: border-box; }
.zds-ins { margin: 0 0 10px; }
.zds-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.zds-title { margin: 0; font-size: 1.2em; color: var(--zds-ink); }
.zds-marks { background: var(--zds-soft); color: var(--zds-accent-d); border-radius: 999px; padding: 3px 12px; font-size: .85em; font-weight: 600; }
.zds-instr { color: var(--zds-muted); margin: 8px 0 12px; font-size: .95em; }

.zds-progress { display: flex; align-items: center; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.zds-prog-l { font-size: .85em; color: var(--zds-muted); margin-right: 6px; }
.zds-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .78em; font-weight: 700; background: var(--zds-soft); color: var(--zds-muted); border: 1px solid var(--zds-line); cursor: pointer; }
.zds-dot.is-done { background: #dfe7fb; color: var(--zds-accent-d); }
.zds-dot.is-cur { background: var(--zds-accent); color: #fff; border-color: var(--zds-accent); }

.zds-stage { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px; align-items: start; }
@media (max-width: 760px) { .zds-stage { grid-template-columns: 1fr; } }
.zds-board { position: relative; width: 100%; margin: 0 auto; background: var(--zds-soft); border-radius: 14px; overflow: hidden; user-select: none; -webkit-user-select: none; border: 1px solid var(--zds-line); }
.zds-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: fill; pointer-events: none; }
.zds-piece { position: absolute; transform: translate(-50%, -50%); touch-action: none; pointer-events: none; }
.zds-board { touch-action: none; }
.zds-piece img { display: block; width: 100%; height: auto; max-width: none; pointer-events: none; transition: filter .15s; }
.zds-piece.is-hot img, .zds-piece:focus img { filter: drop-shadow(0 0 3px rgba(47, 91, 211, .95)); }
.zds-piece:focus { outline: none; }
.zds-piece.is-out { visibility: hidden; }
.zds-piece.is-dragging img { opacity: .35; }
.zds-tags { position: absolute; inset: 0; z-index: 500; pointer-events: none; }
.zds-tag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); white-space: nowrap; font-size: 11px; line-height: 1.2; font-weight: 600; color: #fff; background: rgba(31, 36, 48, .75); padding: 2px 7px; border-radius: 999px; pointer-events: auto; cursor: grab; touch-action: none; }
.zds-tag:hover { background: #2747a8; }

.zds-side { display: flex; flex-direction: column; gap: 10px; position: sticky; top: 12px; }
@media (max-width: 760px) { .zds-side { position: static; } }
.zds-task { background: var(--zds-soft); border: 1px solid var(--zds-line); border-radius: 14px; padding: 12px 14px; }
.zds-task-n { font-size: .78em; font-weight: 700; color: var(--zds-accent-d); text-transform: uppercase; letter-spacing: .03em; }
.zds-task-p { margin: 6px 0 0; font-size: 1em; line-height: 1.45; color: var(--zds-ink); }
.zds-boxes { display: flex; flex-direction: column; gap: 10px; }
.zds-box { border: 2px dashed #c7cfe0; border-radius: 14px; background: #fff; transition: border-color .15s, background .15s; }
.zds-box.is-over { border-color: var(--zds-accent); background: #eaf0ff; }
.zds-box-h { font-size: .85em; font-weight: 700; color: var(--zds-accent-d); padding: 8px 12px 0; }
.zds-drop { min-height: 76px; max-height: 236px; overflow-y: auto; padding: 8px 10px 10px; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.zds-drop-hint { color: #9aa3b5; font-size: .85em; margin: auto; }
.zds-chip { position: relative; display: flex; flex-direction: column; align-items: center; gap: 3px; width: 72px; background: #fff; border: 1px solid var(--zds-line); border-radius: 10px; padding: 6px 6px 7px; cursor: grab; touch-action: none; }
.zds-chip img { width: 100%; height: 36px; object-fit: contain; pointer-events: none; }
.zds-chip-l { font-size: .72em; text-align: center; line-height: 1.2; }
.zds button.zds-chip-x { margin: 0; box-shadow: none; min-height: 0; position: absolute; top: 1px; right: 1px; width: 20px; height: 20px; border-radius: 50%; border: 1px solid var(--zds-line); background: #fff; color: var(--zds-muted); font-size: 13px; line-height: 1; cursor: pointer; padding: 0; }
.zds-chip.is-dragging { opacity: .35; }
.zds-ghost { position: fixed; z-index: 99999; transform: translate(-50%, -50%); pointer-events: none; height: auto; max-width: none; filter: drop-shadow(0 8px 14px rgba(0,0,0,.3)); }

.zds-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.zds-msg { flex: 1; color: var(--zds-bad); font-size: .9em; min-width: 160px; }
.zds button.zds-btn { margin: 0; text-transform: none; letter-spacing: 0; box-shadow: none; appearance: none; border: 1px solid var(--zds-line); background: #fff; color: var(--zds-accent-d); border-radius: 8px; padding: 8px 14px; font-weight: 600; font-size: .92em; cursor: pointer; transition: background .15s, transform .1s; }
.zds button.zds-btn:hover { background: var(--zds-soft); }
.zds button.zds-btn:active { transform: scale(.97); }
.zds button.zds-btn:disabled { opacity: .6; cursor: wait; }
.zds button.zds-primary { background: var(--zds-accent); color: #fff; border-color: transparent; }
.zds button.zds-primary:hover { background: var(--zds-accent-d); }

.zds-bg { max-width: none; }
.zds-msg { color: var(--zds-muted); }
