.gl-bar {
  position: sticky;
  top: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: var(--nav-h, 64px);
  padding: max(10px, env(safe-area-inset-top, 0px)) var(--gutter, 14px) 10px;
  background: linear-gradient(180deg, rgba(5, 6, 12, 0.94), rgba(5, 6, 12, 0.72));
  border-bottom: 1px solid rgba(61, 240, 255, 0.18);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.gl-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
}
.gl-brand-stack { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.gl-brand-name {
  font-family: Orbitron, var(--display), Syne, system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  line-height: 1.15;
  white-space: nowrap;
}
.gl-brand-short {
  font-family: var(--mono), ui-monospace, monospace;
  font-size: 0.52rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-transform: none;
  color: var(--cyan, #3df0ff);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 34rem;
}
.gl-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 10px;
  background: rgba(61, 240, 255, 0.06);
  border: 1px solid rgba(61, 240, 255, 0.45);
  box-shadow: 0 0 16px rgba(176, 38, 255, 0.35);
}
.gl-mark svg { width: 22px; height: 22px; display: block; }
.gl-brand em { font-style: normal; color: var(--cyan, #3df0ff); }
.gl-meta { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.gl-stamp {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 30px; min-width: 30px; padding: 0 8px;
  border: 1px solid var(--cyan, #3df0ff); border-radius: 999px;
  font-family: var(--mono), ui-monospace, monospace;
  font-size: 0.58rem; letter-spacing: 0.12em; color: var(--cyan, #3df0ff);
  box-shadow: 0 0 12px rgba(61, 240, 255, 0.25);
}
.gl-clock {
  font-family: var(--mono), ui-monospace, monospace;
  font-size: 0.66rem; font-variant-numeric: tabular-nums;
  color: var(--dim, rgba(255,236,248,0.42)); min-width: 5.6ch;
}
.gl-links {
  display: none;
  align-items: center;
  gap: 2px;
  padding: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.gl-links a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 14px; border-radius: 999px;
  font-family: var(--mono), ui-monospace, monospace;
  font-size: 0.62rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: rgba(255,236,248,0.62);
}
.gl-links a:hover { color: #fff; }
.gl-links a.is-on {
  color: #041018;
  background: linear-gradient(90deg, #3df0ff, #e39bff);
  box-shadow: 0 0 16px rgba(61, 240, 255, 0.28);
}
.gl-dock { display: none; }
.site-nav { display: none !important; }
.spine {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  z-index: 40;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  padding: 1.2rem 0.55rem;
  font-family: var(--mono);
  font-size: 0.58rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: rgba(61, 240, 255, 0.45);
  pointer-events: none;
}

@media (min-width: 760px) {
  .gl-links { display: flex; }
  .gl-meta { margin-left: 0; }
  .gl-brand { margin-right: auto; }
  .spine { display: block; }
  body.home-page { padding-left: 28px; }
}
@media (max-width: 759px) {
  .gl-bar { padding-left: 12px; padding-right: 12px; }
  .gl-brand-name {
    font-size: 0.58rem;
    letter-spacing: 0.04em;
    max-width: 42vw;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .gl-brand-short { display: none; }
  .gl-mark { width: 28px; height: 28px; }
  .gl-clock { display: block; font-size: 0.52rem; min-width: 0; letter-spacing: 0; }
  .gl-dock {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
    padding: 6px 8px calc(8px + env(safe-area-inset-bottom, 0px));
    background: rgba(5, 6, 12, 0.96);
    border-top: 1px solid rgba(61, 240, 255, 0.22);
    box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.45);
  }
  .gl-dock a {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 3px; min-height: 48px;
    font-family: var(--mono), ui-monospace, monospace;
    font-size: 0.52rem; letter-spacing: 0.08em; text-transform: uppercase;
    color: rgba(255,236,248,0.45); border-radius: 10px;
  }
  .gl-dock a svg {
    width: 18px; height: 18px; stroke: currentColor; fill: none;
    stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round;
  }
  .gl-dock a.is-on {
    color: #3df0ff;
    background: rgba(61, 240, 255, 0.1);
    box-shadow: inset 0 0 14px rgba(176, 38, 255, 0.28);
  }
}
