/* Koordinatsvar (coordinate_points, 04.10.2026): prototype koordinat.html v2. Same look as the workshop. */
.coord-response, .coord-expl { --coord-grid: #dfe8e5; --coord-axis: #3d5654; --coord-seed: #2f4a49; --coord-ink: #1b3f8f; --coord-aim: #c98a00; --coord-aim-soft: #fff1c9;
  --coord-green: #16734d; --coord-green-soft: #e3f4ea; --coord-red: #a74355; --coord-red-soft: #ffebeb; --coord-petrol: #17635f; --coord-paper: #fffefa; --coord-muted: #5b6b6a; --coord-line: #7a3fb0; }
.coord-response { display: grid; gap: 8px; max-width: 28rem; }
.coord-gridcard, .coord-expl { background: var(--coord-paper); border: 1px solid #d3dcda; border-radius: 18px; padding: 6px; margin: 0; color: #1d2b2b; max-width: 28rem; }
.coord-expl figcaption { font-size: 13px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--coord-petrol); padding: 4px 6px 0; }
.coord-plane { display: block; width: 100%; height: auto; touch-action: none; user-select: none; -webkit-user-select: none; cursor: crosshair; }
.coord-plane.locked { cursor: default; touch-action: auto; }
.coord-plane:focus-visible { outline: 3px solid var(--coord-aim); outline-offset: 2px; }
.coord-gl { stroke: var(--coord-grid); stroke-width: 1; }
.coord-ax { stroke: var(--coord-axis); stroke-width: 1.8; }
.coord-axishead { fill: var(--coord-axis); }
.coord-arrowhead { fill: var(--coord-petrol); }
.coord-tick { fill: var(--coord-muted); font-variant-numeric: tabular-nums; }
.coord-axname { fill: var(--coord-axis); font-size: 15px; font-style: italic; font-weight: 700; }
.coord-line { stroke: var(--coord-line); stroke-width: 2.2; }
.coord-linelbl { fill: var(--coord-line); font-size: 13px; font-weight: 700; font-style: italic; paint-order: stroke; stroke: var(--coord-paper); stroke-width: 4px; }
.coord-given { stroke: var(--coord-seed); stroke-width: 2.4; fill: #2f4a4914; stroke-linejoin: round; }
.coord-givenpt { fill: var(--coord-seed); }
.coord-lbl { font-size: 15px; font-weight: 700; paint-order: stroke; stroke: var(--coord-paper); stroke-width: 4px; stroke-linejoin: round; }
.coord-lbl-given { fill: var(--coord-seed); } .coord-lbl-student { fill: var(--coord-ink); } .coord-lbl-ok { fill: var(--coord-green); } .coord-lbl-bad { fill: var(--coord-red); }
.coord-student { stroke: var(--coord-ink); stroke-width: 2.4; fill: #1b3f8f1f; stroke-dasharray: 7 5; stroke-linejoin: round; }
.coord-stupt { fill: var(--coord-ink); stroke: var(--coord-paper); stroke-width: 2.5; }
.coord-stupt.ok { fill: var(--coord-green); } .coord-stupt.bad { fill: var(--coord-red); }
.coord-selring { fill: none; stroke: var(--coord-aim); stroke-width: 3; }
.coord-guide { stroke: var(--coord-ink); stroke-width: 1.4; stroke-dasharray: 3 4; opacity: .7; }
.coord-hint { fill: var(--coord-muted); font-size: 13px; }
.coord-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.discrete-response .coord-chip { min-height: 48px; min-width: 0; flex: 1 1 0; border: 2px solid var(--line, #d3dcda); background: var(--panel, #fff); color: var(--ink, #1d2b2b); border-radius: 14px; padding: 4px 10px; display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 15px; font-weight: 700; cursor: pointer; font-variant-numeric: tabular-nums; }
.coord-chip .c { font-weight: 600; color: var(--coord-muted); }
.coord-chip.set .c { color: var(--coord-ink); }
.discrete-response .coord-chip[aria-pressed="true"] { border-color: var(--coord-aim); background: var(--coord-aim-soft); color: var(--ink, #1d2b2b); }
.discrete-response .coord-chip.ok { border-color: var(--coord-green); background: var(--coord-green-soft); }
.discrete-response .coord-chip.bad { border-color: var(--coord-red); background: var(--coord-red-soft); }
.discrete-response .coord-chip:disabled { cursor: default; opacity: 1; }
.coord-pad { display: flex; gap: 6px; align-items: center; }
.coord-pad[hidden] { display: none; }
.discrete-response .coord-pad button { width: 48px; height: 48px; flex: none; padding: 0; border: 1.5px solid var(--line, #d3dcda); background: var(--panel, #fff); color: var(--ink, #1d2b2b); border-radius: 14px; font-size: 20px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.discrete-response .coord-pad button:disabled { opacity: .4; cursor: default; }
.discrete-response .coord-pad .rm { width: auto; flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 600; color: var(--coord-red); }
.coord-pad .lab { font-size: 12px; color: var(--muted, #5b6b6a); margin-right: 2px; }
.coord-status { margin: 0; font-size: 14px; color: var(--muted, #5b6b6a); min-height: 1.2em; }
.coord-fb { display: grid; gap: 6px; border: 1px solid; border-radius: 18px; padding: 12px; max-width: 28rem; margin-top: 8px; }
.coord-fb h3 { margin: 0; font-size: 17px; }
.coord-fb p { margin: 0; }
.coord-fb.ok { background: #e3f4ea; border-color: #16734d; color: #1d2b2b; } .coord-fb.ok h3 { color: #16734d; }
.coord-fb.bad { background: #ffebeb; border-color: #a74355; color: #1d2b2b; } .coord-fb.bad h3 { color: #a74355; }
.coord-fb ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-variant-numeric: tabular-nums; font-size: 15px; }
.coord-fb b.ok { color: #16734d; } .coord-fb b.bad { color: #a74355; }
.coord-arr { stroke: var(--coord-petrol); stroke-width: 2.6; fill: none; }
.coord-ansfig { stroke: var(--coord-green); stroke-width: 2.6; fill: var(--coord-green-soft); stroke-linejoin: round; stroke-dasharray: 7 5; }
polyline.coord-ansfig, polyline.coord-student, polyline.coord-given { fill: none; }
.coord-anspt { fill: var(--coord-green); }
.coord-helper { stroke: var(--coord-aim); stroke-width: 1.6; stroke-dasharray: 4 4; fill: none; }
.coord-mirror { stroke: var(--coord-aim); stroke-width: 3.2; }
.coord-origin { fill: var(--coord-aim); }
.coord-steplbl { font-size: 13px; font-weight: 700; fill: var(--coord-petrol); paint-order: stroke; stroke: var(--coord-paper); stroke-width: 4px; }
/* Landscape (tablet on its side, laptop; UI review 20.11.2026, M13): the points and the arrows stand beside the
   grid, where there is room, instead of under the fold below it. */
@media (min-width: 900px) and (orientation: landscape) {
  .task-screen .coord-response { grid-template-columns: minmax(0, 28rem) minmax(14rem, 22rem); grid-template-rows: auto auto auto 1fr; column-gap: 20px; max-width: none; align-items: start; }
  .task-screen .coord-response .coord-gridcard { grid-row: 1 / -1; }
  .task-screen .coord-response > :not(.coord-gridcard) { grid-column: 2; }
}
