/* the constellation, its details card, and composed charts — shared by the
   manual glass and the product surfaces. Tokens come from tokens.css. */
    .g3d-claim { display: block; margin-top: 0.35rem; padding: 0.3rem 0.5rem; border-left: 2px solid var(--amber);
      background: color-mix(in srgb, var(--raised) 70%, transparent); font-size: var(--fs-2); line-height: 1.5;
      color: #c9d2e0; text-transform: none; letter-spacing: normal; border-radius: 0 3px 3px 0; }
    .g3d-more { display: block; margin-top: 0.25rem; color: var(--cyan); }
    .g3d-kind { color: var(--lavender); }
    #g3d-caption strong { color: var(--amber); text-transform: none; letter-spacing: 0.02em; font-size: 0.8rem; }
    .g3d-sum { display: block; margin-top: 0.25rem; color: #c9d2e0; text-transform: none; letter-spacing: normal;
      font-size: var(--fs-2); line-height: 1.5; }
    .g3d-conn { display: block; margin-top: 0.25rem; }
    .g3d-open { display: inline-block; margin-top: 0.45rem; font-family: var(--font-display); font-size: var(--fs-1);
      letter-spacing: 0.05em; text-transform: uppercase; color: #0b0f16; background: var(--amber); border: none;
      border-radius: 3px; padding: 0.35rem 0.7rem; cursor: pointer; }
    .g3d-open:hover { filter: brightness(1.12); }
    canvas.kg, .g3d canvas { display: block; width: 100%; background: var(--raised);
      border: 1px solid var(--line); border-radius: 6px; touch-action: none; cursor: grab; }
    #glass-lattice, .viz.g3d-float { position: relative; }
    .viz.g3d-float { position: fixed; }
    .viz.g3d-float.g3d-tl { right: auto; left: 0.75rem; top: 4.4rem; bottom: auto; }
    .viz.g3d-float.g3d-bl { right: auto; left: 0.75rem; top: auto; bottom: 3.2rem; }
    .viz.g3d-float.g3d-br { right: 0.75rem; left: auto; top: auto; bottom: 3.2rem; }
    .g3d-ctl { display: none; position: absolute; top: 0.25rem; right: 0.3rem; gap: 0.2rem; z-index: 5; }
    .g3d-float .g3d-ctl { display: flex; }
    .g3d-ctl button { width: 1.35rem; height: 1.35rem; border-radius: 4px; border: 1px solid var(--line);
      background: color-mix(in srgb, #0b0f16 85%, transparent); color: var(--muted); cursor: pointer;
      font-size: 0.75rem; line-height: 1; padding: 0; }
    .g3d-ctl button:hover { color: var(--cyan); border-color: var(--cyan); }
    .g3d-ctl .gc-drag { cursor: grab; }
    .g3d-float .viz-t { cursor: grab; user-select: none; }
    .hand-prev { position: absolute; left: 0.4rem; bottom: 1.9rem; width: 76px; border-radius: 5px;
      border: 1px solid var(--line); transform: scaleX(-1); opacity: 0.85; z-index: 5; }
    .hand-live .hand-prev { border-color: var(--cyan); box-shadow: 0 0 0 2px color-mix(in srgb, var(--cyan) 35%, transparent); }
    .viz.g3d-float.g3d-lg { width: min(48vw, 580px); }
    .viz.g3d-float.g3d-mini { width: min(70vw, 260px); padding: 0.3rem 0.35rem 0.35rem; }
    .viz.g3d-float.g3d-mini.g3d-peek { width: min(88vw, 580px); }
    .viz.g3d-float.g3d-mini .viz-t { font-size: 0.48rem; margin-bottom: 0.2rem; white-space: nowrap;
      overflow: hidden; text-overflow: ellipsis; }
    .viz.g3d-float.g3d-mini .viz-note { display: none; }
    /* the staged graph must clear the header too — a glass omni is two rows,
       and this three-class selector out-specifies the --omni-h rule the host
       page sets. The desk sets no --omni-h and keeps its 3.4rem. */
    .viz.g3d-float.ob-stage { left: 50%; right: auto; transform: translateX(-50%);
      top: calc(var(--omni-h, 2.85rem) + 0.55rem); width: min(60vw, 720px); }
    .viz.g3d-float { position: fixed; right: 0.75rem; top: 4.4rem; width: min(38vw, 460px);
      z-index: 70; margin: 0; background: #0b0f16; border: 1px solid var(--cyan); border-radius: 8px;
      padding: 0.5rem 0.6rem 0.6rem; box-shadow: 0 12px 36px rgba(0,0,0,0.65);
      overflow: hidden; transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1); }
    .viz .g3d { overflow: hidden; }
    .viz.g3d-float .g3d canvas { max-width: 100%; }
    body.g3d-right .paper { padding-right: 288px; }
    body.g3d-right.g3d-peeked .paper { padding-right: min(620px, 50vw); }
    #viz-chart { position: fixed; left: 0.75rem; bottom: 3.2rem; z-index: 72; width: min(88vw, 380px);
      background: #0b0f16; border: 1px solid var(--cyan); border-radius: 8px; padding: 0.6rem 0.75rem 0.55rem;
      box-shadow: 0 12px 36px rgba(0,0,0,0.65); animation: obIn 0.22s ease; }
    #viz-chart .vc-t { font-family: var(--font-display); font-size: var(--fs-1); letter-spacing: var(--track-wide);
      color: var(--cyan); margin-bottom: 0.45rem; text-transform: uppercase; }
    #viz-chart .vc-row { display: grid; grid-template-columns: 7.5rem 1fr 2rem; gap: 0.4rem; align-items: center;
      margin: 0.18rem 0; font-size: var(--fs-1); }
    #viz-chart .vc-l { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #c9d2e0; }
    #viz-chart .vc-bar { display: block; height: 0.55rem; background: var(--amber); border-radius: 2px; }
    #viz-chart .vc-v { text-align: right; font-family: var(--font-display); color: var(--muted); }
    #viz-chart .vc-line { display: flex; gap: 0.45rem; align-items: baseline; margin: 0.22rem 0;
      font-size: var(--fs-2); line-height: 1.45; color: #c9d2e0; }
    #viz-chart .vc-tag { flex: none; font-family: var(--font-display); font-size: var(--fs-1);
      letter-spacing: 0.06em; text-transform: uppercase; color: var(--amber); }
    #viz-chart .vc-wire { margin-top: 0.5rem; font-family: ui-monospace, SFMono-Regular, monospace; font-size: 0.6rem;
      color: var(--lavender); border-top: 1px solid var(--line); padding-top: 0.35rem; }
    #viz-chart .g3d-card-x { position: absolute; top: 0.3rem; right: 0.35rem; width: 1.3rem; height: 1.3rem;
      border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--muted);
      cursor: pointer; font-size: 0.75rem; line-height: 1; padding: 0; }
    #g3d-card { position: fixed; z-index: 95; width: min(88vw, 320px); background: #0b0f16;
      max-height: 56vh; overflow-y: auto;
      border: 1px solid var(--lavender); border-radius: 8px; padding: 0.6rem 0.75rem 0.7rem;
      box-shadow: 0 12px 36px rgba(0,0,0,0.65); font-size: var(--fs-2); line-height: 1.5; animation: obIn 0.22s ease; }
    #g3d-card .g3d-card-x { position: absolute; top: 0.3rem; right: 0.35rem; width: 1.3rem; height: 1.3rem;
      border-radius: 4px; border: 1px solid var(--line); background: transparent; color: var(--muted);
      cursor: pointer; font-size: 0.75rem; line-height: 1; padding: 0; }
    #g3d-card .g3d-card-x:hover { color: var(--cyan); border-color: var(--cyan); }
    #g3d-card .g3d-row { display: block; font-family: var(--font-display); font-size: var(--fs-1);
      letter-spacing: var(--track-label); text-transform: uppercase; color: var(--muted); margin: 0.5rem 0 0.15rem; }
    #g3d-card .g3d-go, #g3d-card .g3d-fo { display: inline-block; margin: 0.12rem 0.25rem 0.12rem 0;
      padding: 0.12rem 0.5rem; border-radius: 999px; border: 1px solid var(--line); background: var(--raised);
      color: var(--fg); font: inherit; font-size: var(--fs-1); cursor: pointer; }
    #g3d-card .g3d-go:hover { border-color: var(--amber); color: var(--amber); }
    #g3d-card .go-ord { display: inline-block; min-width: 1.05em; margin-right: 0.3em; text-align: center;
      font-family: var(--font-display); color: var(--amber); border-right: 1px solid var(--line); padding-right: 0.25em; }
    #g3d-card .g3d-fo:hover { border-color: var(--cyan); color: var(--cyan); }
    .viz.g3d-float .viz-note { font-size: 0.55rem; }


/* phones only — these were authored inside a media query and must stay there */
@media (max-width: 900px) {
      /* A phone has no corners worth parking in: a parked graph spans the
         width and sits under the header. This rule had escaped the media
         query (the indentation it still carries is the tell), so on a DESK
         every g3d-tl / g3d-bl / g3d-br graph was stretched full-width with
         width:auto beating the .g3d-mini thumbnail it was supposed to be. */
      .viz.g3d-float.g3d-tl, .viz.g3d-float.g3d-bl, .viz.g3d-float.g3d-br {
        right: 0.4rem; left: 0.4rem; top: 3.1rem; bottom: auto; width: auto; }
      .viz.g3d-float .g3d canvas { max-height: 22vh; width: auto !important; margin: 0 auto; display: block; }
      .viz.g3d-float.g3d-peek .g3d canvas { max-height: 34vh; }
      body.g3d-right .paper, body.g3d-left .paper { padding-top: calc(22vh + 5.4rem); }
      .viz.g3d-float.g3d-rail .g3d, .viz.g3d-float.g3d-rail .viz-note { display: none; }
      .viz.g3d-float.g3d-rail { padding-bottom: 0.3rem; }
      body.g3d-railed.g3d-right .paper, body.g3d-railed.g3d-left .paper { padding-top: 3.4rem; }
      #g3d-card { left: 0.4rem !important; right: 0.4rem !important; top: auto !important;
        bottom: 4.6rem; width: auto; max-height: 46vh; }
      #viz-chart { left: 0.4rem; right: 0.4rem; bottom: 4.6rem; width: auto; max-height: 46vh; overflow-y: auto; }
}

/* ── the claims, in words ─────────────────────────────────────────────
   The graph shows how claims relate; this shows what they SAY. A claim is a
   sentence you can agree with or reject — the dot above it cannot be argued
   with, so the dot is never the whole answer. */
.g3d-claims { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.g3d-claims-h {
  font: 600 10px/1.4 var(--mono, ui-monospace, monospace);
  letter-spacing: .18em; color: var(--dim, #8b8578); margin-bottom: 2px;
}
.g3d-claim {
  display: grid; grid-template-columns: auto 1fr; gap: 2px 10px;
  align-items: baseline; width: 100%; text-align: left; cursor: pointer;
  background: color-mix(in srgb, var(--cc) 7%, transparent);
  border: 1px solid color-mix(in srgb, var(--cc) 26%, transparent);
  border-left: 3px solid var(--cc);
  border-radius: 3px; padding: 7px 10px; color: inherit; font: inherit;
  transition: background .16s ease, border-color .16s ease;
}
.g3d-claim:hover, .g3d-claim:focus-visible {
  background: color-mix(in srgb, var(--cc) 15%, transparent);
  border-color: color-mix(in srgb, var(--cc) 52%, transparent);
  outline: none;
}
.g3d-claim-k {
  font: 600 9px/1.5 var(--mono, ui-monospace, monospace);
  letter-spacing: .14em; text-transform: uppercase; color: var(--cc);
  grid-row: 1; grid-column: 1; white-space: nowrap;
}
.g3d-claim-t { grid-row: 1; grid-column: 2; font-size: 13px; line-height: 1.45; }
.g3d-claim-m {
  grid-row: 2; grid-column: 2; font-size: 10.5px; line-height: 1.4;
  color: var(--dim, #8b8578);
}
@media (max-width: 900px) {
  .g3d-claim { grid-template-columns: 1fr; gap: 3px; padding: 8px 9px; }
  .g3d-claim-k, .g3d-claim-t, .g3d-claim-m { grid-column: 1; grid-row: auto; }
  .g3d-claim-t { font-size: 12.5px; }
}
