.shaft-token-mark {
  --token-brand: var(--desk-teal, #0c7f70);
  --token-ink: var(--desk-white, #f0f3f3);
  position: relative;
  width: 48px;
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--token-ink);
  background: var(--token-brand);
  border: 2px solid var(--desk-ink, #032d28);
  box-shadow: inset 0 -7px 0 rgba(3, 45, 40, 0.35), 3px 3px 0 var(--desk-ink, #032d28);
  image-rendering: pixelated;
}

.shaft-token-glyph {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  color: currentColor;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 0.82rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.08em;
  text-transform: none;
}

.shaft-token-glyph--word {
  max-width: 90%;
  font-size: 0.6rem;
  letter-spacing: -0.09em;
}

.shaft-token-glyph--window {
  width: 23px;
  height: 23px;
  grid-template-columns: 1fr 1fr;
  gap: 2px;
  place-items: stretch;
}

.shaft-token-glyph--window i { display: block; }

.shaft-token-glyph--window i:nth-child(1) { background: #f25022; }
.shaft-token-glyph--window i:nth-child(2) { background: #7fba00; }
.shaft-token-glyph--window i:nth-child(3) { background: #00a4ef; }
.shaft-token-glyph--window i:nth-child(4) { background: #ffb900; }

.shaft-token-glyph--round {
  width: 28px;
  height: 28px;
  border: 2px solid currentColor;
  border-radius: 50%;
  font-size: 0.66rem;
}

.shaft-token-glyph--angular { font-size: 0.58rem; }
.shaft-token-glyph--snow { font-size: 1.35rem; }
.shaft-token-glyph--tesla { font-family: Georgia, serif; font-size: 1.45rem; }

.shaft-token-glyph--palantir {
  width: 23px;
  height: 23px;
  border-top: 4px solid currentColor;
  border-radius: 50%;
}

.shaft-token-glyph--palantir::before,
.shaft-token-glyph--palantir::after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.shaft-token-glyph--palantir::before {
  top: -9px;
  width: 10px;
  height: 10px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.shaft-token-glyph--palantir::after {
  bottom: 1px;
  width: 19px;
  height: 4px;
  border: solid currentColor;
  border-width: 0 4px 3px;
}

.shaft-token-glyph--apple {
  width: 19px;
  height: 20px;
  border-radius: 47% 47% 50% 50%;
  background: currentColor;
  color: transparent;
}

.shaft-token-glyph--apple::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 1px;
  width: 8px;
  height: 5px;
  border-radius: 8px 0;
  background: var(--token-ink);
  transform: rotate(-28deg);
}

.shaft-token-glyph--apple::after {
  content: "";
  position: absolute;
  top: 4px;
  right: -4px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--token-brand);
}

.shaft-token-glyph--eye {
  width: 27px;
  height: 18px;
  border: 3px solid currentColor;
  border-radius: 55% 15% 55% 15%;
  transform: rotate(-8deg);
}

.shaft-token-glyph--eye::after {
  content: "";
  position: absolute;
  width: 7px;
  height: 7px;
  border: 3px solid currentColor;
  border-radius: 50%;
}

.shaft-token-mark[data-ticker="intc"] { --token-brand: #0071c5; }
.shaft-token-mark[data-ticker="msft"] { --token-brand: #f3f3f3; --token-ink: #111; }
.shaft-token-mark[data-ticker="ge"] { --token-brand: #0870d8; }
.shaft-token-mark[data-ticker="amd"] { --token-brand: #ed1c24; }
.shaft-token-mark[data-ticker="pltr"] { --token-brand: #141414; }
.shaft-token-mark[data-ticker="snow"] { --token-brand: #29b5e8; }
.shaft-token-mark[data-ticker="tsla"] { --token-brand: #e82127; }
.shaft-token-mark[data-ticker="aapl"] { --token-brand: #55585b; }
.shaft-token-mark[data-ticker="qqq"] { --token-brand: #6538a5; }
.shaft-token-mark[data-ticker="nvda"] { --token-brand: #76b900; --token-ink: #101810; }

/* Compact route badges retain a readable ticker below each mark. */
body .docs-stock-routes {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 9px;
  width: max-content;
  max-width: 100%;
}
body .docs-route-token {
  display: grid;
  justify-items: center;
  gap: 5px;
}
body .docs-stock-routes .shaft-token-mark {
  width: 34px;
  height: 34px;
  box-shadow: inset 0 -5px 0 rgba(3, 45, 40, 0.3), 2px 2px 0 #032d28;
}
body .docs-route-ticker {
  color: #032d28;
  font: 700 10px/1.2 "Courier New", monospace;
  letter-spacing: 0;
}
body .docs-tool-table td {
  vertical-align: middle;
}
