/* Step 10. Inside the work console, on the console's tokens. The visual job: a shape's grade must be readable without
   colour, because a thesis chapter gets printed. Solid, dashed, dotted and a line through it do that work in the
   canvas; the list beside it repeats each grade in words, so nothing depends on seeing the drawing. */
.sc-head { margin: 0 0 10px; }
.sc-head h2 { margin: 0 0 4px; font-size: 1.05rem; }
.sc-lead, .sc-note { margin: 0 0 8px; color: var(--cs-dim, #6b7280); font-size: .86rem; line-height: 1.45; }
.sc-empty { color: var(--cs-dim, #6b7280); }
.sc-counts { margin: 0 0 2px; font-size: .82rem; color: var(--cs-dim, #6b7280); }
.sc-mine { margin: 0 0 8px; font-size: .82rem; }

/* the cross-section */
.sc-canvas { display: block; width: 100%; height: auto; max-width: 640px; margin: 0 0 12px;
  border: 1px solid var(--cs-line, #e5e7eb); border-radius: 10px; background: var(--cs-pre, rgba(127, 127, 127, .04)); }

/* the argument, one beat at a time */
.sc-beats { margin: 0 0 14px; }
.sc-beats h3, .sc-missing h3 { margin: 0 0 6px; font-size: .95rem; }
.sc-beat { padding: 10px 12px; border-left: 3px solid var(--cs-accent, #2563eb);
  background: var(--cs-pre, rgba(127, 127, 127, .06)); border-radius: 0 8px 8px 0; }
.sc-btext { margin: 0; font-size: .95rem; line-height: 1.5; }
.sc-bmeta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 6px 0 0; font-size: .78rem; color: var(--cs-dim, #6b7280); }
.sc-controls { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }

/* the parts, in words */
.sc-objs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; }
.sc-obj { display: grid; gap: 2px; padding: 8px 10px; border: 1px solid var(--cs-line, #e5e7eb); border-radius: 8px; cursor: pointer; }
.sc-obj:hover { border-color: var(--cs-accent, #2563eb); }
.sc-oname { font-size: .92rem; }
.sc-okind, .sc-ograde, .sc-onum { font-size: .76rem; color: var(--cs-dim, #6b7280); }
.sc-ograde { text-transform: uppercase; letter-spacing: .04em; }
.sc-ocaution { font-size: .78rem; font-style: italic; color: var(--cs-dim, #6b7280); }
.sc-osrc { font-size: .8rem; line-height: 1.45; }

/* what is missing: named, with where it could be looked up */
.sc-missing { margin: 0 0 12px; }
.sc-miss { display: grid; gap: 3px; margin: 0 0 8px; padding: 9px 11px; border-left: 3px dotted var(--cs-dim, #9ca3af);
  background: var(--cs-pre, rgba(127, 127, 127, .05)); border-radius: 0 8px 8px 0; }
.sc-mname { font-size: .92rem; }
.sc-mwhy, .sc-mwhere, .sc-cannot { font-size: .8rem; color: var(--cs-dim, #6b7280); line-height: 1.45; }
.sc-look { justify-self: start; margin: 4px 0 0; }
.sc-exhaust { margin: 8px 0 0; padding: 9px 11px; font-size: .86rem; line-height: 1.5;
  border-left: 3px solid var(--cs-accent, #2563eb); background: var(--cs-pre, rgba(127, 127, 127, .08)); }
.sc-honesty { margin: 10px 0 0; font-size: .8rem; font-style: italic; color: var(--cs-dim, #6b7280); line-height: 1.5; }
.sc-vocab { margin: 10px 0 0; font-size: .86rem; }
.sc-vocab summary { cursor: pointer; }

/* the two views, and the lit envelope (step 10, part 2) */
.sc-views { display: flex; gap: 6px; margin: 0 0 10px; }
.sc-deep { margin: 0 0 12px; color: var(--cs-dim, #6b7280); font-size: .86rem; }
.sc3-stage { position: relative; width: 100%; max-width: 760px; border: 1px solid var(--cs-line, #e5e7eb);
  border-radius: 10px; overflow: hidden; background: var(--cs-pre, rgba(127, 127, 127, .04)); }
.sc3-stage canvas { display: block; width: 100%; height: auto; cursor: grab; }
.sc3-stage canvas:active { cursor: grabbing; }
/* the labels sit over the canvas and follow their shapes, so a name is always on its part and never in a legend */
.sc3-labels { position: absolute; inset: 0; pointer-events: none; }
.sc3-tag { position: absolute; transform: translate(-50%, -140%); pointer-events: auto;
  padding: 2px 7px; border: 1px solid var(--cs-line, #d1d5db); border-radius: 999px;
  /* the fallbacks are a pair: a white pill with dark text, so a label stays readable even where the console's own
     tokens are not set, which is how it looked wrong the first time it was rendered */
  background: var(--cs-panel, #ffffff); color: var(--cs-text, #111827); font: inherit; font-size: .72rem;
  line-height: 1.3; white-space: nowrap; cursor: pointer; }
.sc3-tag:hover { border-color: var(--cs-accent, #2563eb); }
