/* Simulated microscope: controls, the eyepiece view (a canvas at true
   angular size), the overview map, the table of structures. Status colours
   always come with a symbol and a sentence. */
.mc-cols { margin-top: 14px; }
.mc-controls { display: grid; gap: 14px; }
.mc-group { border: 0; margin: 0; padding: 0; min-width: 0; }
.mc-group legend { font-size: 0.85rem; font-weight: 600; color: var(--ink-2); margin-bottom: 4px; padding: 0; }
.mc-choices { display: flex; flex-wrap: wrap; gap: 6px; }
.mc-choices button {
  font: inherit; font-size: 0.9rem; color: var(--ink); background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 6px 12px; min-height: 40px; cursor: pointer; text-align: left; line-height: 1.25;
}
.mc-choices button:hover { background: var(--surface-2); }
.mc-choices button[aria-pressed="true"] { background: var(--cyan-wash); border-color: var(--cyan-strong); font-weight: 650; }
.mc-choices button small { display: block; font-weight: 400; color: var(--ink-2); font-size: 0.78rem; }
.mc-specimens { display: grid; gap: 6px; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }
.mc-specimens button { display: grid; grid-template-columns: 52px 1fr; gap: 8px; align-items: center; padding: 5px 8px 5px 5px; }
.mc-specimens img { width: 52px; height: 52px; object-fit: cover; border-radius: 6px; display: block; background: var(--surface-2); }
.mc-specimens button small { font-style: normal; }
.mc-check { display: inline-flex; gap: 8px; align-items: center; font-size: 0.9rem; cursor: pointer; min-height: 36px; }
.mc-check input { width: 18px; height: 18px; accent-color: var(--cyan-strong); }

.mc-stage { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr) minmax(0, 260px); align-items: start; margin-top: 12px; }
.mc-row { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: flex-start; }
.mc-checks { display: grid; gap: 2px; padding-top: 20px; }
@media (max-width: 880px) { .mc-stage { grid-template-columns: minmax(0, 1fr); } }
.mc-view {
  position: relative; height: min(68vh, 560px); min-height: 300px; border-radius: 12px; overflow: hidden;
  background: #1b1f1e; touch-action: none; cursor: grab; outline-offset: 3px;
}
.mc-view.dragging { cursor: grabbing; }
.mc-view canvas { display: block; width: 100%; height: 100%; }
.mc-banner {
  position: absolute; left: 10px; right: 10px; top: 10px; margin: 0; padding: 6px 10px; border-radius: 8px;
  background: color-mix(in oklab, var(--note) 92%, transparent); color: var(--ink); font-size: 0.85rem; pointer-events: none;
}
.mc-banner[hidden] { display: none; }
.mc-scale {
  position: absolute; left: 12px; bottom: 12px; color: #fff; font-size: 0.8rem; font-variant-numeric: tabular-nums;
  text-shadow: 0 0 3px #000, 0 0 2px #000; pointer-events: none;
}
.mc-scale span { display: block; height: 4px; background: #fff; box-shadow: 0 0 2px #000; margin-bottom: 3px; }
.mc-side { display: grid; gap: 10px; }
.mc-map { width: 100%; max-width: 260px; height: auto; aspect-ratio: 1; display: block; border-radius: 10px; background: var(--surface-2); cursor: crosshair; touch-action: none; }
.mc-readout { font-size: 0.9rem; }
.mc-readout { font-size: 0.85rem; }
.mc-readout th { font-weight: 600; color: var(--ink-2); }
.mc-readout td.v { white-space: normal; }
.mc-readout small { display: block; color: var(--ink-2); font-size: 0.78rem; }
.mc-verdict { border-radius: 10px; padding: 8px 10px; font-size: 0.9rem; margin: 0; border: 1px solid var(--border); }
.mc-verdict b { font-size: 1rem; }
.mc-verdict[data-v="useful"] { background: color-mix(in oklab, var(--green) 14%, var(--surface)); }
.mc-verdict[data-v="empty"] { background: var(--note); }
.mc-verdict[data-v="low"] { background: color-mix(in oklab, var(--cyan) 14%, var(--surface)); }
.mc-sym { display: inline-grid; place-items: center; width: 1.4em; height: 1.4em; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); margin-right: 6px; font-weight: 700; }

.mc-table-wrap { overflow-x: auto; }
.mc-struct { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.mc-struct th, .mc-struct td { text-align: left; padding: 6px 5px; border-bottom: 1px solid var(--hairline); vertical-align: top; }
.mc-struct td.mc-r { text-align: center; white-space: nowrap; }
.mc-struct th.mc-r { text-align: center; }
.mc-struct .mc-cur { background: color-mix(in oklab, var(--cyan) 10%, transparent); }
.mc-struct small { display: block; color: var(--ink-2); font-size: 0.78rem; }
.mc-res-no { color: var(--ink-2); }
.mc-credit { font-size: 0.88rem; }
.mc-credit li { margin-bottom: 6px; overflow-wrap: anywhere; }
.mc-photo-meta { font-size: 0.85rem; color: var(--ink-2); margin: 6px 0 0; }
.mc-pair { display: grid; gap: 8px; grid-template-columns: 1fr 1fr; }
@media (max-width: 560px) {
  .mc-specimens { display: flex; overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 6px; }
  .mc-specimens button { flex: 0 0 210px; scroll-snap-align: start; }
  .mc-view { height: min(62vh, 520px); }
}
