


.gitm-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.eye { fill: var(--eye, currentColor); }


#cmd-results { position: absolute; top: 100%; left: 0; right: 0; z-index: 70; display: flex; flex-direction: column;
  gap: 2px; padding: 6px; background: var(--raised, #11141B); border: 1px solid var(--grid); border-radius: 6px; }
#cmd-results[hidden] { display: none; }
.pub-hit { justify-content: flex-start; white-space: normal; text-align: left; overflow-wrap: anywhere; }
.pub-social { display: flex; align-items: center; gap: 2px; }
.pub-social a { color: var(--muted, #8a8f98); }
.pub-social a:hover { color: var(--phosphor); }


a.r-run { text-decoration: none; color: var(--bone, inherit); }


#pg-body { flex: 1 1 auto; display: flex; min-height: 0; }
#pg-canvas { flex: 1 1 auto; min-width: 0; min-height: 320px; display: flex; }
#pg-canvas canvas { flex: 1 1 auto; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
#pg-side { flex: 0 0 300px; overflow-y: auto; overflow-x: hidden; padding: 10px 12px; border-left: 1px solid var(--grid); }
#pg-side[hidden] { display: none; }
.pub-links { margin: 4px 0; padding-left: 18px; }
.graph3d.pub-slice canvas { display: block; width: 100%; height: min(52vh, 420px); border: 1px solid var(--grid);
  border-radius: 6px; touch-action: none; margin: 8px 0 12px; }

#pg-canvas, .graph3d.pub-slice { position: relative; }
.g3-ctl { position: absolute; top: 8px; right: 8px; z-index: 2; display: flex; gap: 6px; align-items: center; }
.graph3d.pub-slice .g3-ctl { top: 16px; }
.g3-ctl button { background: var(--panel); color: var(--dim); border: 1px solid var(--grid); border-radius: 3px;
  font: inherit; font-size: 12px; line-height: 1.1; padding: 5px 9px; cursor: pointer; }
.g3-ctl button:hover, .g3-ctl button.active { color: var(--phosphor); border-color: var(--phosphor); }
.g3-ctl button[hidden] { display: none; }
.g3-ctl { flex-wrap: wrap; justify-content: flex-end; max-width: calc(100% - 16px); }

.g3-depth { display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 0 4px;
  font-size: 12px; color: var(--text); background: var(--panel); border: 1px solid var(--grid); margin-left: -1px; }
.g3-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 9px; font-size: 12px;
  color: #ffd696; background: var(--panel); border: 1px solid #ff9f43; border-radius: 12px; }
.g3-chip[hidden] { display: none; }
.g3-chip button { padding: 1px 7px; border-radius: 10px; }
@media (max-width: 740px) {
  
  #pg-body { flex-direction: column; flex: 1 1 auto; min-height: 0; }
  #pg-canvas { flex: 1 1 auto; height: auto; min-height: 55vh; }
  #pg-side { flex: 0 0 auto; border-left: none; border-top: 1px solid var(--grid); }
}


@media (max-width: 740px) {
  #rep-list { max-height: none; }
  #rep-detail:not(.detail-inline):has(> p.muted:only-child) { display: none; }
}


.pub-pane { flex: 1 1 auto; overflow-y: auto; overflow-x: hidden; padding: 12px 16px; min-width: 0; }
.pub-calls td.left, .pub-calls th.left { text-align: left; }
.pub-calls .rv-mar { margin: 4px 0 0; padding-top: 4px; font-size: 12px; }

.pub-score { max-width: 520px; margin: 0 0 6px; }
.pub-score td.left, .pub-score th.left { text-align: left; }
.pub-score-note { max-width: 760px; font-size: 12px; margin: 0 0 14px; }
.pub-about, .pub-legal { max-width: 760px; }
.pub-about p { font-size: 15px; line-height: 1.55; }
.pub-about .pub-social { gap: 12px; margin-top: 8px; }
.pub-about .pub-social a { display: inline-flex; align-items: center; gap: 6px; color: var(--phosphor); }


#foot a { color: inherit; }
#foot a:hover { color: var(--phosphor); }


#rep-detail .g-chip, #pg-side .g-chip { white-space: normal; overflow-wrap: anywhere; }


@media (max-width: 740px) {
  .pub-calls, .pub-calls tbody, .pub-calls tr, .pub-calls td { display: block; width: auto; min-width: 0; }
  .pub-calls { overflow: visible; contain: none; }
  .pub-calls thead { display: none; }
  .pub-calls tbody.pub-call { border: 1px solid var(--grid); border-radius: 6px; padding: 8px 10px; margin: 0 0 8px; }
  .pub-calls tr:first-child { display: flex; flex-wrap: wrap; gap: 2px 10px; align-items: baseline; }
  .pub-calls td { border: none; padding: 0; white-space: normal; overflow-wrap: anywhere; }
  .pub-calls td.pc-rep { flex: 1 1 100%; }
  .pub-calls .rv-mar { margin-top: 6px; }
}


#pg-tools { flex: 0 0 auto; display: flex; flex-wrap: wrap; gap: 6px 8px; align-items: center; padding: 8px 10px;
  border-bottom: 1px solid var(--grid); min-width: 0; }
#pg-tools .pg-find { position: relative; flex: 1 1 220px; min-width: 0; }
#pg-tools .pg-find input { width: 100%; min-width: 0; }
#pg-tools .pg-hits { position: absolute; left: 0; right: 0; top: 100%; z-index: 6; display: flex; flex-direction: column;
  background: var(--panel); border: 1px solid var(--grid); border-radius: 4px; padding: 4px; max-height: 50vh; overflow-y: auto; }
#pg-tools .pg-hits[hidden] { display: none; }
#pg-tools .pg-hits button { text-align: left; white-space: normal; overflow-wrap: anywhere; }
#pg-tools select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }
#pg-tools .pg-num { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
#pg-tools .pg-num input { width: 4.5em; }
#pg-tools .pg-said { flex: 1 1 100%; font-size: 12px; overflow-wrap: anywhere; }
