.auth-required {
  color: var(--accent);
  border-color: var(--accent);
}

.auth-optional {
  color: var(--muted);
  border-color: var(--soft);
}

.auth-dialog input.is-auth-missing,
.auth-dialog select.is-auth-missing {
  border-color: var(--accent);
  background: #fff5f5;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.auth-check.is-auth-missing {
  padding: 6px;
  border: 1px solid var(--accent);
  background: #fff5f5;
}

.auth-label-with-help {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.auth-label-with-help label {
  margin: 0;
}

.auth-help {
  width: 21px;
  min-width: 21px;
  min-height: 21px;
  height: 21px;
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1;
  background: #eeeeee;
  box-shadow: none;
}

.auth-help:hover,
.auth-help:focus-visible {
  color: #000000;
  background: #ffffff;
}

.auth-check {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 7px;
  align-items: start;
  margin-top: 10px;
  font-size: var(--text-table);
  font-weight: 400;
}

.auth-check input {
  width: 14px;
  margin-top: 2px;
}

.auth-check a {
  font-weight: 700;
}

.auth-consent-summary {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  padding: 8px;
  border: 1px solid var(--rule);
  background: #ffffff;
}

.auth-consent-summary p {
  margin: 0;
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
}

.auth-consent-summary dl {
  display: grid;
  gap: 5px;
  margin: 0;
}

.auth-consent-summary dl > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: baseline;
}

.auth-consent-summary dt,
.auth-consent-summary dd {
  margin: 0;
  font-size: var(--text-table);
  line-height: 1.3;
}

.auth-consent-summary dd {
  font-weight: 700;
  text-align: right;
}

.auth-consent-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.auth-consent-pills span {
  border: 1px solid var(--rule);
  background: #f7f7f7;
  padding: 3px 6px;
  font-size: var(--text-xs);
  line-height: 1.25;
}

.auth-consent-summary > small {
  color: var(--muted);
  font-size: var(--text-xs);
  line-height: 1.35;
}

.auth-verification-panel {
  display: grid;
  gap: 9px;
  margin-top: 8px;
  padding: 12px;
  border: 1px solid var(--rule);
  background: #fbfbf8;
}

.auth-verification-panel[hidden] {
  display: none;
}

.auth-verification-panel p {
  margin: 0;
  font-size: var(--text-body);
  line-height: 1.45;
}

.auth-verification-kicker {
  font-family: var(--font-mono);
  font-size: var(--text-xs) !important;
  font-weight: 800;
  text-transform: uppercase;
}

.auth-verification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 3px;
}

.auth-dialog .auth-verification-actions button {
  min-height: 34px;
  padding: 6px 10px;
  border: 1px solid var(--rule);
  color: #000000;
  font-size: var(--text-table);
  font-weight: 700;
  background: #ffffff;
  box-shadow: none;
}

.auth-dialog .auth-verification-actions button:first-child {
  border-width: 2px;
  font-weight: 800;
}

.auth-dialog button[type="submit"] {
  margin-top: 10px;
  min-width: 140px;
  border: 2px solid #000000;
  color: #ffffff;
  font-family: var(--font-mono);
  font-weight: 800;
  text-transform: uppercase;
  background: var(--accent);
  box-shadow: var(--button-shadow);
}

.auth-dialog button[type="submit"]:hover,
.auth-dialog button[type="submit"]:focus-visible {
  color: #ffffff;
  background: #7f1515;
}

.auth-message {
  min-height: 20px;
  margin: 8px 0 0;
  font-size: var(--text-table);
}

.aim-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: block;
  color: #000000;
  background: #ffffff;
}

.aim-hud {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 8;
  min-height: 5px;
  height: auto;
  overflow: visible;
  border: 0;
  background:
    linear-gradient(
      to bottom,
      rgba(255, 255, 255, 0.18) 0,
      rgba(255, 255, 255, 0.18) 5px,
      transparent 5px
    );
  box-shadow: none;
  pointer-events: none;
}

.aim-progress-fill {
  display: block;
  width: 0%;
  height: 5px;
  background: #12c85f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.24),
    0 0 10px rgba(18, 200, 95, 0.58);
  transition: width 120ms linear;
}

.aim-instruction {
  display: block;
  width: fit-content;
  max-width: min(92vw, 520px);
  margin: 4px auto 0;
  padding: 2px 8px 3px;
  border: 0;
  font-family: var(--font-sans);
  font-size: clamp(11px, 1.35vw, 15px);
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  color: rgba(255, 255, 255, 0.76);
  text-shadow: none;
  background: rgba(0, 0, 0, 0.28);
  pointer-events: none;
  user-select: none;
}

.aim-error-hud {
  position: absolute;
  inset: auto 0 0 0;
  z-index: 8;
  height: 5px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.aim-error-progress-fill {
  display: block;
  width: 0%;
  height: 100%;
  background: #d51f1f;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.2),
    0 0 8px rgba(213, 31, 31, 0.48);
  transition: width 120ms linear;
}

.aim-stage {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31' height='31' viewBox='0 0 31 31'%3E%3Cpath d='M15.5 4v23M4 15.5h23' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='square'/%3E%3Cpath d='M15.5 4v23M4 15.5h23' stroke='%2300d7ff' stroke-width='0.95' stroke-linecap='square'/%3E%3C/svg%3E") 15 15, crosshair;
  background: #151715;
}

.aim-stage-2d {
  background:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    #151715;
  background-size: 44px 44px;
}

.aim-stage-3d {
  cursor: none;
  background: #151715;
  perspective: 900px;
}

.aim-scene-grid {
  display: none;
}

.aim-stage-3d .aim-scene-grid {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: block;
  pointer-events: none;
  overflow: hidden;
  perspective: 760px;
  perspective-origin: calc(50% + var(--aim-room-pan-x, 0px)) calc(50% + var(--aim-room-pan-y, 0px));
}

.aim-three-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

.aim-stage-3d .aim-scene-grid.is-three-ready {
  background: #151715;
}

.aim-stage-3d .aim-scene-grid.is-three-ready::before,
.aim-stage-3d .aim-scene-grid.is-three-ready::after,
.aim-stage-3d .aim-scene-grid.is-three-ready .aim-room {
  display: none;
}

.aim-stage-3d .aim-scene-grid::before,
.aim-stage-3d .aim-scene-grid::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.aim-stage-3d .aim-scene-grid::before {
  inset: 0;
  background:
    radial-gradient(circle at 50% 48%, rgba(156, 29, 29, 0.08), transparent 0 33%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0));
}

.aim-stage-3d .aim-scene-grid::after {
  left: 50%;
  top: 50%;
  width: min(82vw, 940px);
  height: min(72vh, 680px);
  border: 2px solid rgba(0, 0, 0, 0.48);
  transform: translate(-50%, -50%);
}

.aim-room {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(82vw, 940px);
  height: min(72vh, 680px);
  transform:
    translate(calc(-50% + var(--aim-room-pan-x, 0px)), calc(-50% + var(--aim-room-pan-y, 0px)))
    rotateX(calc(var(--aim-room-pitch, 0) * 1deg))
    rotateY(calc(var(--aim-room-yaw, 0) * -1deg));
  transform-style: preserve-3d;
}

.aim-room-face {
  position: absolute;
  border: 1px solid rgba(0, 0, 0, 0.42);
  backface-visibility: hidden;
  background:
    linear-gradient(90deg, rgba(0, 0, 0, 0.2) 1px, transparent 1px),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18) 1px, transparent 1px),
    rgba(255, 255, 255, 0.62);
  background-size: 56px 56px;
}

.aim-room-back {
  inset: 0;
  background-color: rgba(255, 255, 255, 0.7);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.78),
    inset 0 0 90px rgba(0, 0, 0, 0.08);
  transform: translateZ(-260px);
}

.aim-room-floor {
  left: 0;
  top: 100%;
  width: 100%;
  height: 74%;
  transform: rotateX(72deg);
  transform-origin: 50% 0;
  background-color: rgba(238, 238, 232, 0.82);
}

.aim-room-ceiling {
  left: 0;
  bottom: 100%;
  width: 100%;
  height: 48%;
  transform: rotateX(-72deg);
  transform-origin: 50% 100%;
  background-color: rgba(248, 248, 246, 0.58);
}

.aim-room-left,
.aim-room-right {
  top: 0;
  width: 48%;
  height: 100%;
  background-color: rgba(246, 246, 242, 0.76);
  background-size: 52px 52px;
}

.aim-room-left {
  right: 100%;
  transform: rotateY(-68deg);
  transform-origin: 100% 50%;
}

.aim-room-right {
  left: 100%;
  transform: rotateY(68deg);
  transform-origin: 0 50%;
}

.aim-stage-3d::before,
.aim-stage-3d::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.aim-stage-3d::before {
  width: 31px;
  height: 31px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='31' height='31' viewBox='0 0 31 31'%3E%3Cpath d='M15.5 4v23M4 15.5h23' stroke='%23ffffff' stroke-width='2.1' stroke-linecap='square'/%3E%3Cpath d='M15.5 4v23M4 15.5h23' stroke='%2300d7ff' stroke-width='0.95' stroke-linecap='square'/%3E%3C/svg%3E") center / contain no-repeat;
}

.aim-stage-3d::after {
  display: none;
}

.aim-target {
  position: absolute;
  display: block;
  min-height: 0;
  padding: 0;
  cursor: inherit;
  background: #ff3333;
  border: 1.5px solid #ffffff;
  border-radius: 50%;
  box-shadow: 0 0 0 1px #000000;
  transform: none;
}

.aim-stage-2d .aim-target:hover,
.aim-stage-2d .aim-target:focus-visible {
  background: #ffffff;
  border-color: #00d7ff;
}

.aim-stage-3d .aim-target {
  z-index: 3;
  pointer-events: none;
  opacity: 0;
  border-color: transparent;
  background: transparent;
  box-shadow: 0 0 0 2px rgba(156, 29, 29, 0.12);
}

.aim-offscreen-indicator {
  position: absolute;
  z-index: 5;
  width: 26px;
  height: 18px;
  pointer-events: none;
  background: #ffd23f;
  clip-path: polygon(0 18%, 58% 18%, 58% 0, 100% 50%, 58% 100%, 58% 82%, 0 82%);
  filter:
    drop-shadow(1px 0 0 #000000)
    drop-shadow(-1px 0 0 #000000)
    drop-shadow(0 1px 0 #000000)
    drop-shadow(0 -1px 0 #000000);
}

.aim-target:active {
  box-shadow: 0 0 0 1px #000000;
  transform: none;
}

.aim-exit-prompt {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 12px;
  background: rgba(255, 255, 255, 0.9);
}

.aim-exit-box {
  width: min(420px, 100%);
  padding: 12px;
  border: 2px solid #000000;
  background: #ffffff;
}

.aim-exit-box h2 {
  margin: 0 0 8px;
  padding: 0 0 5px;
  font-size: var(--title-md);
  border-bottom: 1px solid #000000;
}

.aim-exit-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

#aimExitConfirm,
#aimQualityConfirm {
  color: #ffffff;
  background: var(--accent);
  border-color: #000000;
}

#aimExitConfirm:hover,
#aimExitConfirm:focus-visible,
#aimQualityConfirm:hover,
#aimQualityConfirm:focus-visible {
  color: #ffffff;
  background: #7f1515;
}

.back-to-top {
  position: fixed;
  right: max(14px, calc((100vw - 960px) / 2 - 78px));
  bottom: 74px;
  z-index: 50;
  min-width: 68px;
  height: 42px;
  padding: 7px 10px;
  border: 2px solid #000000;
  color: #000000;
  font-family: var(--font-mono);
  font-size: var(--text-table);
  font-weight: 700;
  line-height: 1;
  background: #ffffff;
  box-shadow: 2px 2px 0 #000000;
}

.back-to-top:hover,
.back-to-top:focus-visible {
  color: #000000;
  background: #ffffff;
}

@media (min-width: 820px) {
  .method-figures {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  body,
  header,
  main,
  .ad-slot,
  .page-view,
  .entry-subnav,
  .benchmark-view-panel,
  .benchmark-records-section {
    max-width: 100%;
  }

  main,
  .ad-slot {
    width: calc(100% - 10px);
  }

  main {
    margin-top: 5px;
    padding: 12px;
  }

  .bar-inner,
  .site-identity {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
    width: 100%;
  }

  .home-legal-strip {
    display: grid;
    gap: 3px;
  }

  .home-team-head {
    gap: 4px 7px;
  }

  .home-team-section .compact-people-list {
    grid-template-columns: 1fr;
    gap: 5px;
  }

  .home-team-section .compact-people-list li {
    min-height: 0;
    padding: 6px 7px;
  }

  .site-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    gap: 6px 8px;
  }

  .site-notice {
    grid-template-columns: auto auto minmax(0, 1fr);
    gap: 4px;
    padding: 5px 6px;
    border-left-width: 3px;
  }

  .site-notice-label {
    min-height: 20px;
    width: max-content;
    padding: 2px 5px;
    border: 0;
    font-size: 10px;
    background: transparent;
  }

  .site-notice-date {
    min-height: 20px;
    font-size: 10px;
  }

  .site-notice-marquee {
    grid-column: auto;
    height: 20px;
  }

  .site-notice-marquee p {
    font-size: var(--text-table);
    line-height: 1.2;
    animation-duration: 10s;
  }

  .language-switcher {
    justify-self: start;
    width: auto;
    max-width: none;
    min-height: 26px;
  }

  .language-switcher span {
    display: none;
  }

  .language-switcher select {
    width: 100%;
    min-width: 86px;
    min-height: 26px;
    padding-left: 6px;
    font-size: 12px;
  }

  #auth-nav {
    display: inline-flex;
    flex: none;
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
    padding: 0;
    width: auto;
    max-width: 100%;
    min-width: 0;
    border: 0;
    white-space: nowrap;
    box-shadow: none;
  }

  #auth-nav.is-signed-in {
    display: inline-flex;
    grid-template-columns: none;
    align-items: center;
    justify-content: flex-end;
    width: auto;
    max-width: 100%;
    padding: 0;
  }

  .auth-status {
    min-height: 26px;
    border-right: 0;
    border-bottom: 0;
  }

  .auth-nickname {
    display: flex;
    flex: 0 1 auto;
    max-width: 98px;
    min-width: 38px;
    min-height: 24px;
    padding: 0 4px;
    border-right: 0;
    border-bottom: 0;
  }

  .auth-contribution-badge {
    flex: 1 1 auto;
    grid-template-columns: none;
    grid-template-rows: none;
    align-content: center;
    gap: 4px;
    width: auto;
    min-width: 0;
    min-height: 24px;
    max-width: 100%;
    padding: 2px 5px;
    border-right: 0;
    border-bottom: 0;
  }

  .auth-contribution-runs {
    display: none;
  }

  .auth-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    width: auto;
    min-width: 0;
  }

  #auth-nav.is-signed-in .auth-actions {
    width: auto;
    min-width: 0;
  }

  .auth-actions-signed-out {
    display: inline-flex;
    width: auto;
  }

  #auth-nav button {
    min-height: 26px;
    padding: 1px 7px;
    font-size: 12px;
  }

  #auth-nav.is-signed-in button {
    width: auto;
    padding: 1px 7px;
  }

  #auth-nav .auth-verify {
    padding: 0 6px;
  }

  .auth-dialog {
    width: min(520px, calc(100% - 12px));
    max-height: calc(100vh - 18px);
    margin-top: 9px;
  }

  .auth-profile-details {
    grid-template-columns: minmax(0, 1fr);
  }

  .auth-profile-actions {
    justify-content: stretch;
  }

  .auth-dialog .auth-profile-actions button,
  .auth-dialog .auth-profile-actions .auth-profile-link-button {
    width: 100%;
  }

  h1 {
    font-size: 30px;
  }

  #site-title {
    min-width: 0;
    font-size: 30px;
  }

  .site-logo {
    gap: 4px 6px;
    padding: 0;
  }

  .brand-icon {
    width: 27px;
    height: 27px;
  }

  .page-view > h1 {
    margin-top: 0;
    padding: 0 6px 5px;
    font-size: 23px;
  }

  main h2 {
    font-size: 18px;
  }

  .entry-subnav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: 6px;
    position: relative;
    z-index: 20;
    margin: 0 0 14px;
    padding: 6px;
    border: 1px solid #000000;
    border-bottom-width: 2px;
    background: #f2f2ea;
    box-shadow: 1px 1px 0 #000000;
  }

  .entry-subnav.is-open {
    z-index: 80;
  }

  .entry-subnav::before {
    content: none;
  }

  .entry-subnav-toggle {
    display: flex;
    grid-column: 1 / 2;
    grid-row: 1;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    min-height: 40px;
    padding: 8px 10px;
    border: 1px solid #000000;
    border-bottom-width: 2px;
    color: #000000;
    font: inherit;
    font-size: var(--text-sm);
    font-weight: 800;
    line-height: 1.1;
    text-align: left;
    background: #f2f2ea;
    box-shadow: none;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .entry-subnav-toggle:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
  }

  .entry-subnav-kicker {
    flex: 0 0 auto;
    color: #666666;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }

  .entry-subnav-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .entry-subnav-caret {
    flex: 0 0 auto;
    font-size: 14px;
    line-height: 1;
  }

  .entry-subnav.is-open .entry-subnav-caret {
    transform: rotate(180deg);
  }

  .entry-subnav.is-open::after {
    content: "";
    position: absolute;
    top: calc(100% - 1px);
    right: 6px;
    left: 6px;
    z-index: 1;
    height: 200px;
    border: 1px solid #000000;
    background: #ffffff;
    box-shadow: 2px 2px 0 #000000;
    pointer-events: none;
  }

  .entry-subnav a {
    display: none;
    grid-column: 1 / -1;
    min-width: 0;
    justify-content: flex-start;
    min-height: 38px;
    padding: 7px 10px;
    border: 1px solid var(--rule);
    border-top: 0;
    opacity: 1;
    font-size: var(--text-table);
    background: #ffffff;
    box-shadow: none;
  }

  .entry-subnav a.entry-back-link {
    display: inline-flex;
    grid-column: 2 / 3;
    grid-row: 1;
    justify-content: center;
    min-width: 52px;
    min-height: 40px;
    margin-left: 0;
    padding: 8px;
    border: 1px solid #000000;
    border-bottom-width: 2px;
    background: #f2f2ea;
    box-shadow: none;
  }

  .entry-subnav.is-open a:not(.entry-back-link) {
    display: flex;
    position: absolute;
    right: 6px;
    left: 6px;
    z-index: 2;
    min-height: 40px;
    border: 0;
    border-bottom: 1px solid var(--soft);
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
  }

  .entry-subnav.is-open a:nth-of-type(2) {
    top: calc(100% + 0px);
  }

  .entry-subnav.is-open a:nth-of-type(3) {
    top: calc(100% + 40px);
  }

  .entry-subnav.is-open a:nth-of-type(4) {
    top: calc(100% + 80px);
  }

  .entry-subnav.is-open a:nth-of-type(5) {
    top: calc(100% + 120px);
  }

  .entry-subnav.is-open a:nth-of-type(6) {
    top: calc(100% + 160px);
  }

  .entry-subnav a.active {
    background: #dcdcdc;
    border-color: #000000;
    box-shadow: inset 1px 1px 0 #ffffff;
    transform: none;
  }

  .entry-subnav a.active::after {
    display: none;
  }

  .benchmark-snapshot-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .condition-filter-panel {
    z-index: 40;
    margin: 12px 0 8px;
  }

  .condition-filter-shell {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .condition-filter-toggle {
    display: none;
  }

  .condition-filter-popover {
    position: relative;
    top: auto;
    left: auto;
    z-index: 1;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
    max-width: none;
    padding: 8px;
    box-sizing: border-box;
    border: 1px solid var(--soft);
    box-shadow: none;
  }

  .condition-filter-popover[data-mobile-hidden="true"] {
    display: grid;
  }

  .condition-filter-message {
    text-align: center;
  }

  .condition-filter-message strong {
    font-size: var(--text-table);
  }

  .condition-filter-message span {
    font-size: var(--text-xs);
  }

  .condition-filter-current {
    display: none;
  }

  .condition-filter-row {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
    justify-items: stretch;
  }

  .condition-filter-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .condition-filter-button,
  .condition-filter-clear {
    width: 100%;
    min-height: 28px;
    padding: 3px 7px;
    font-size: var(--text-table);
    text-align: center;
  }

  .home-entry-grid {
    grid-template-columns: 1fr;
  }

  .home-entry-choice {
    min-height: 72px;
    justify-content: flex-start;
    padding: 14px 48px 18px 14px;
    font-size: 18px;
  }

  .home-entry-icon {
    width: 32px;
    height: 32px;
    padding: 3px;
  }

  .home-shortcut-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .home-shortcut-button {
    min-height: 46px;
    padding: 8px 27px 8px 7px;
    font-size: var(--text-sm);
  }

  .home-shortcut-button .home-entry-icon {
    width: 24px;
    height: 24px;
    padding: 2px;
  }

  .auth-dialog {
    width: calc(100% - 14px);
    max-height: calc(100svh - 14px);
    margin-top: 7px;
  }

  .auth-signup-grid {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auth-password-change-fields {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .auth-signup-grid input,
  .auth-signup-grid select,
  .auth-password-change-fields input {
    margin-bottom: 4px;
  }

  .auth-hand-measure-card {
    grid-template-columns: 1fr;
  }

  .auth-hand-measure-card img {
    max-width: 240px;
    justify-self: center;
  }

  .best-pick-grid {
    grid-template-columns: 1fr;
  }

  .best-pick-overall-row {
    grid-template-columns: 1fr;
  }

  .best-pick-category-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .best-pick-card {
    border-width: 5px;
    gap: 9px;
  }

  .best-pick-header {
    min-height: 0;
    gap: 7px;
    padding-bottom: 9px;
    text-align: center;
  }

  .best-pick-card h3 {
    font-size: clamp(15px, 4vw, 18px);
    font-weight: 500;
    line-height: 1.15;
  }

  .best-pick-category {
    white-space: normal;
  }

  .best-pick-header p {
    font-size: 15px;
    line-height: 1.3;
  }

  .best-pick-brand {
    font-size: clamp(22px, 6vw, 28px);
  }

  .best-pick-card[data-leader-key="overallBest"] .best-pick-brand {
    font-size: clamp(24px, 6.8vw, 32px);
  }

  .best-pick-card:last-child {
    border-bottom-width: 5px;
  }

  .best-pick-card[data-leader-key="overallBest"] {
    min-height: 0;
    aspect-ratio: auto;
  }

  .search-row {
    grid-template-columns: 1fr;
  }

  .benchmark-simulator-grid {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .benchmark-simulator-action,
  .benchmark-simulator-action .trajectory-open {
    width: 100%;
  }

  .mouse-picker-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .mouse-picker-action {
    justify-self: start;
  }

  .data-sort-row {
    display: grid;
    grid-template-columns: 1fr;
  }

  .records-sort-controls {
    display: block;
    margin: 6px 0;
    padding: 0;
    border: 0;
    background: transparent;
  }

  .records-sort-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 4px;
    width: 100%;
    overflow: visible;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .records-sort-buttons::-webkit-scrollbar {
    display: none;
  }

  .records-sort-button {
    flex: 0 1 auto;
    min-width: 48px;
    min-height: 28px;
    padding: 3px 8px;
    font-size: var(--text-table);
  }

  .records-table-head {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    margin: 8px 0;
    border-bottom: 1px solid var(--rule);
  }

  .records-head-mouse {
    display: none;
  }

  .records-head-cell,
  button.records-head-cell {
    min-height: 30px;
    justify-content: center;
    padding-inline: 3px;
    border-width: 0 1px 1px 0;
    font-size: 10px;
    white-space: nowrap;
  }

  .records-head-cell:nth-child(2n + 1),
  .records-head-cell:nth-child(2n),
  .records-head-cell:nth-child(3n) {
    border-right: 1px solid var(--rule);
  }

  .records-table-head .records-head-cell:last-child {
    border-right: 0;
    grid-column: auto;
  }

  .people-list li {
    grid-template-columns: 1fr;
    gap: 3px;
  }

  .method-stage-grid {
    grid-template-columns: 1fr;
  }

  .instruction-panel {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: start;
  }

  .instruction-callout {
    grid-template-columns: 1fr;
  }

  .instruction-rule-list {
    grid-template-columns: 1fr;
  }

  .instruction-start-link {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .instruction-task-figure {
    width: min(100%, 292px);
  }

  .instruction-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .instruction-facts div {
    min-height: 76px;
    padding: 10px 8px;
  }

  .instruction-facts div:nth-child(2n) {
    border-right: 0;
  }

  .instruction-facts div:nth-child(n + 3) {
    border-top: 1px solid var(--soft);
  }

  .method-steps li {
    padding: 8px 0 8px 30px;
  }

  .method-steps li::before {
    top: 8px;
    left: 0;
  }

  .study-setup-fields {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 8px;
  }

  .study-task-picker {
    gap: 6px;
    justify-content: center;
    padding: 0;
  }

  .study-task-picker label > span {
    border-right-width: 2px;
  }

  .benchmark-simulator-grid {
    grid-template-columns: 1fr;
  }

  .benchmark-simulator-action {
    align-items: start;
  }

  .study-setup-group,
  .study-setup-group-wide {
    grid-column: auto;
    grid-template-columns: 1fr;
  }

  .study-pad-choice-buttons {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .study-setup-group-display {
    padding: 10px;
    border: 1px solid var(--soft);
  }

  .study-identify-row {
    grid-template-columns: 1fr;
  }

  .study-card-calibration {
    min-height: 280px;
    padding: 18px;
  }

  .study-card-hint {
    right: 12px;
    bottom: 12px;
    max-width: calc(100% - 54px);
    text-align: center;
  }

  .study-start-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .study-start-panel button {
    width: 100%;
  }

  .study-credit-rules {
    padding: 7px;
  }

  .study-credit-rules-head {
    display: grid;
    gap: 4px;
  }

  .study-credit-rules-head span {
    text-align: left;
  }

  .study-credit-rule-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
  }

  .study-credit-rule-card {
    min-height: 78px;
    padding: 6px;
  }

  .study-credit-rule-card.is-active {
    padding: 5px;
  }

  .study-credit-rule-card.is-active b {
    padding-right: 0;
  }

  .study-credit-rule-card.is-active::after {
    position: static;
    justify-self: start;
    margin-bottom: 2px;
  }

  .study-result-grid {
    grid-template-columns: 1fr;
  }

  .study-result-metric-wide {
    grid-column: auto;
  }

  .fact-grid {
    grid-template-columns: 1fr;
  }

  .record-recommendation-grid {
    grid-template-columns: 1fr;
  }

  .record-recommendation-value-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .recommendation-buy-link {
    width: 100%;
  }

  .trajectory-controls {
    order: 3;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
    min-width: 0;
    max-width: 100%;
  }

  .trajectory-control {
    min-width: 0;
    padding: 6px;
    border: 1px solid var(--soft);
    background: #ffffff;
  }

  .trajectory-control-label {
    display: grid;
    gap: 2px;
    font-size: var(--text-sm);
    line-height: 1.15;
  }

  .trajectory-controls output {
    min-width: 0;
    font-size: var(--text-xs);
    text-align: left;
  }

  .trajectory-controls input[type="range"] {
    height: 30px;
  }

  .range-labels {
    font-size: 10px;
  }

  .trajectory-svg {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: min(42svh, 270px);
    min-height: 0;
    aspect-ratio: 340 / 220;
  }

  .trajectory-modal,
  .terms-modal,
  .study-result-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    padding: max(6px, env(safe-area-inset-top)) max(6px, env(safe-area-inset-right)) max(6px, env(safe-area-inset-bottom)) max(6px, env(safe-area-inset-left));
    place-items: stretch;
  }

  .trajectory-modal {
    padding: 0;
  }

  .trajectory-dialog,
  .terms-dialog,
  .study-result-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }

  .trajectory-dialog {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    overflow-x: hidden;
    border-width: 1px;
  }

  .trajectory-dialog-header,
  .terms-dialog-header,
  .study-result-header {
    align-items: center;
    flex-direction: row;
    gap: 6px;
  }

  .trajectory-dialog-header {
    padding: 6px 7px;
  }

  .trajectory-dialog-header h2 {
    font-size: var(--text-table);
  }

  .trajectory-dialog .trajectory-body {
    display: grid;
    grid-template-rows: minmax(170px, min(42svh, 270px)) auto auto auto auto;
    gap: 6px;
    min-width: 0;
    padding: 7px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .trajectory-modal-close,
  .terms-modal-close,
  .study-result-close {
    width: auto;
  }

  .trajectory-randomize {
    grid-column: 1 / -1;
    width: 100%;
    min-height: 28px;
    height: 28px;
    margin-left: 0;
  }

  .trajectory-plots {
    order: 1;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    gap: 0;
  }

  .trajectory-plot {
    min-width: 0;
    min-height: 0;
    overflow: hidden;
  }

  .trajectory-condition-picker {
    order: 2;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 5px;
  }

  .trajectory-condition-group {
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 5px;
  }

  .trajectory-condition-label {
    padding-top: 3px;
    font-size: var(--text-xs);
  }

  .trajectory-condition-options {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .trajectory-condition-option {
    min-height: 24px;
    padding: 2px 6px;
    font-size: var(--text-xs);
  }

  .trajectory-profile-picker {
    order: 4;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 5px;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    padding: 5px;
  }

  .trajectory-profile-picker legend {
    grid-column: 1 / -1;
    font-size: var(--text-xs);
  }

  .trajectory-profile-picker label {
    justify-content: center;
    min-height: 28px;
    padding: 4px 5px;
    border: 1px solid var(--rule);
    font-size: var(--text-xs);
    line-height: 1.15;
    text-align: center;
    background: #ffffff;
    overflow-wrap: anywhere;
  }

  .trajectory-note {
    order: 5;
    font-size: 10px;
    line-height: 1.25;
    overflow-wrap: anywhere;
  }

  @supports (height: 100dvh) {
    .trajectory-modal,
    .terms-modal,
    .study-result-modal {
      height: 100dvh;
      max-height: 100dvh;
    }

    .trajectory-svg {
      height: auto;
      min-height: 0;
    }
  }

  @media (max-width: 390px) {
    .trajectory-dialog .trajectory-body {
      grid-template-rows: minmax(150px, min(38svh, 230px)) auto auto auto auto;
      padding: 6px;
    }

    .trajectory-controls {
      grid-template-columns: 1fr;
    }

    .trajectory-svg {
      max-height: min(38svh, 230px);
    }
  }

  @media (max-height: 620px) {
    .trajectory-dialog .trajectory-body {
      grid-template-rows: minmax(128px, 34svh) auto auto auto auto;
      gap: 5px;
    }

    .trajectory-svg {
      max-height: 34svh;
    }

    .trajectory-condition-picker {
      max-height: 24svh;
      overflow: auto;
    }

    .trajectory-profile-picker label {
      min-height: 24px;
      padding: 3px 4px;
    }
  }

  .trajectory-dialog .trajectory-body {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr) auto auto auto;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    gap: 5px;
    padding: 6px;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .trajectory-dialog .trajectory-body > * {
    min-width: 0;
    max-width: 100%;
  }

  .trajectory-plots {
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .trajectory-plot {
    width: 100%;
    max-width: 100%;
    height: 100%;
  }

  .trajectory-svg {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
  }

  .trajectory-condition-picker {
    width: 100%;
    max-height: none;
    overflow: visible;
  }

  .trajectory-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
    max-width: 100%;
    gap: 5px;
  }

  .trajectory-control {
    padding: 4px 5px;
  }

  .trajectory-control-label {
    font-size: var(--text-xs);
  }

  .trajectory-controls input[type="range"] {
    height: 24px;
  }

  .trajectory-controls .range-labels {
    display: none;
  }

  .trajectory-profile-picker {
    width: 100%;
    max-height: none;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .trajectory-profile-picker label {
    min-height: 24px;
    padding: 3px 4px;
  }

  .trajectory-randomize {
    min-height: 24px;
    height: 24px;
  }

  .trajectory-note {
    display: none;
  }

  .trajectory-launch {
    align-items: stretch;
    flex-direction: column;
  }

  .trajectory-open {
    width: 100%;
  }

  .heatmap-legend {
    grid-template-columns: 1fr;
  }

  .heatmap-legend span {
    white-space: normal;
  }

  .heatmap-gradient {
    min-width: 0;
    width: 100%;
  }

  .condition-heatmaps {
    padding: 6px;
  }

  .heatmap-title {
    gap: 6px;
    padding: 5px 6px;
  }

  .heatmap-meta {
    gap: 4px 8px;
    padding: 6px 6px 0;
    font-size: 10px;
  }

  .cpi-heatmap {
    grid-template-columns: 28px repeat(11, minmax(0, 1fr));
    gap: 1px;
    padding: 5px;
  }

  .heatmap-axis,
  .heatmap-cell {
    min-height: 19px;
    padding: 2px 1px;
    font-size: 8px;
  }

  .heatmap-corner {
    font-size: 8px;
  }

  .search-row button {
    width: 100%;
  }

  .measured-item summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 8px;
    align-items: start;
  }

  .measured-item[open] > summary {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px 6px;
  }

  .measured-item .measured-toggle {
    grid-row: auto;
  }

  .measured-item[open] .measured-toggle {
    grid-row: auto;
  }

  .measured-item[open] .measured-primary {
    grid-column: 1 / -1;
  }

  .measured-pins,
  .measured-vote-score {
    grid-column: 1;
    justify-content: flex-start;
  }

  .measured-metric,
  .measured-vote-score {
    grid-column: 1;
    justify-self: start;
  }

  .measured-metric,
  .measured-vote-score {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    text-align: right;
  }

  .measured-metric::before,
  .measured-vote-score::before {
    content: attr(data-label);
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
  }

  .measured-vote-score::before {
    content: none;
  }

  .measured-list[data-mobile-metric] .measured-metric,
  .measured-list[data-mobile-metric] .measured-vote-score {
    display: none;
  }

  .measured-list[data-mobile-metric="cpiBias"] .measured-metric[data-metric-key="cpiBias"],
  .measured-list[data-mobile-metric="cpiJitter"] .measured-metric[data-metric-key="cpiJitter"],
  .measured-list[data-mobile-metric="cpiDrift"] .measured-metric[data-metric-key="cpiDrift"],
  .measured-list[data-mobile-metric="aggregateScore"] .measured-metric[data-metric-key="aggregateScore"],
  .measured-list[data-mobile-metric="popularity"] .measured-vote-score[data-metric-key="popularity"] {
    display: flex;
  }

  .measured-list[data-mobile-metric] .measured-item[open] > summary .measured-metric,
  .measured-list[data-mobile-metric] .measured-item[open] > summary .measured-vote-score {
    display: flex;
  }

  .record-buy-prompt {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .record-action-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: stretch;
  }

  .record-buy-prompt .measured-buy-link,
  .record-buy-prompt .measured-trajectory-open,
  .record-buy-prompt .mouse-reaction-button {
    min-width: 0;
    width: 100%;
  }

  .best-pick-actions {
    flex-wrap: nowrap;
  }

  .best-pick-actions .measured-buy-link,
  .best-pick-actions .measured-trajectory-open,
  .best-pick-actions .best-pick-data-link {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
  }

  .compare-chart-heading {
    grid-template-columns: 1fr;
  }

  .tune-pair-form {
    grid-template-columns: 1fr;
  }

  .tune-pair-form button {
    width: 100%;
  }

  .muscle-memory-device-grid {
    grid-template-columns: 1fr;
  }

  .muscle-memory-device {
    grid-template-columns: 82px minmax(0, 1fr);
  }

  .muscle-memory-thumb {
    width: 82px;
    height: 62px;
  }

  .muscle-memory-thumb img {
    max-width: 76px;
    max-height: 56px;
  }

  .muscle-memory-match-badge {
    flex-direction: row;
    justify-content: space-between;
    min-width: 0;
    gap: 8px;
    text-align: left;
  }

  .muscle-memory-setting-strip {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 5px;
    padding: 5px;
  }

  .muscle-memory-equals {
    width: 22px;
    height: 22px;
    font-size: var(--text-sm);
  }

  .tune-skate-form,
  .tune-placeholder-grid {
    grid-template-columns: 1fr;
  }

  th,
  td {
    font-size: var(--text-table);
    overflow-wrap: anywhere;
  }

  table {
    table-layout: fixed;
    white-space: normal;
  }

  .mobile-card-table,
  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td,
  .mobile-condition-table,
  .mobile-condition-table tbody,
  .mobile-condition-table tr,
  .mobile-condition-table td,
  .mobile-key-value-table,
  .mobile-key-value-table tbody,
  .mobile-key-value-table tr,
  .mobile-key-value-table td {
    max-width: 100%;
    box-sizing: border-box;
  }

  .mobile-card-table,
  .mobile-condition-table,
  .mobile-key-value-table {
    display: block;
    width: 100%;
    overflow: hidden;
  }

  .cpi-group {
    overflow: hidden;
  }

  .record-detail-modal {
    width: 100vw;
    max-width: 100vw;
    height: 100svh;
    max-height: 100svh;
    padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    place-items: stretch;
  }

  .record-detail-dialog {
    width: 100%;
    max-width: 100%;
    height: 100%;
    max-height: 100%;
  }

  .record-detail-dialog-header {
    padding: 7px 8px;
  }

  .record-detail-dialog-header h2 {
    font-size: var(--text-body);
  }

  .record-detail-dialog-body {
    padding: 8px;
  }

  .records-compare-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .records-compare-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
  }

  .records-compare-toolbar button {
    width: 100%;
  }

  .cpi-group summary {
    align-items: flex-start;
    gap: 6px;
    padding: 7px 8px;
  }

  .cpi-group-pills {
    flex-basis: 100%;
    justify-content: flex-start;
  }

  .cpi-group-pills span {
    font-size: 9px;
  }

  .cpi-group-body {
    padding: 8px;
  }

  .cpi-summary-card-list,
  .condition-card-list {
    grid-template-columns: 1fr;
  }

  .cpi-metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-card-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .mobile-card-table tbody,
  .mobile-card-table tr,
  .mobile-card-table td,
  .mobile-condition-table tbody,
  .mobile-condition-table tr,
  .mobile-condition-table td,
  .mobile-key-value-table tbody,
  .mobile-key-value-table tr,
  .mobile-key-value-table td {
    display: block;
  }

  .mobile-card-table tr,
  .mobile-condition-table tr {
    margin-bottom: 6px;
    border: 1px solid var(--rule);
  }

  .mobile-accordion-table tr {
    position: relative;
    cursor: pointer;
  }

  .mobile-accordion-table tr:focus-visible {
    outline: 2px solid #000000;
    outline-offset: 2px;
  }

  .mobile-card-table td,
  .mobile-condition-table td,
  .mobile-key-value-table td {
    width: 100%;
    min-width: 0;
    padding: 5px 6px;
    border: 0;
    border-bottom: 1px solid var(--soft);
    white-space: normal;
  }

  .mobile-card-table tr > :last-child,
  .mobile-condition-table tr > :last-child,
  .mobile-key-value-table tr > :last-child {
    border-bottom: 0;
  }

  .mobile-condition-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .cpi-group .mobile-condition-table tbody tr:last-child td {
    border-bottom: 1px solid var(--soft);
  }

  .cpi-group .mobile-condition-table tbody tr:last-child td:last-child {
    border-bottom: 0;
  }

  .mobile-accordion-table tr:not(.is-open) td:nth-child(n+3) {
    display: none;
  }

  .mobile-accordion-table tr:not(.is-open) td:first-child {
    padding-right: 34px;
    border-bottom: 0;
    font-weight: 700;
  }

  .mobile-accordion-table tr.is-open td:first-child {
    padding-right: 34px;
  }

  .mobile-accordion-table tr:not(.is-open) td:first-child::after {
    content: "+";
    position: absolute;
    top: 5px;
    right: 8px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--rule);
    text-align: center;
    line-height: 16px;
    background: #ffffff;
  }

  .mobile-accordion-table tr.is-open td:first-child::after {
    content: "-";
    position: absolute;
    top: 5px;
    right: 8px;
    width: 18px;
    height: 18px;
    border: 1px solid var(--rule);
    text-align: center;
    line-height: 16px;
    background: #ffffff;
  }

  .mobile-accordion-table tr:not(.is-open) td:nth-child(2) {
    padding-top: 0;
    padding-right: 34px;
    border-bottom: 0;
    color: var(--muted);
    font-size: var(--text-sm);
  }

  .mobile-accordion-table tr:not(.is-open) td:first-child::before,
  .mobile-accordion-table tr:not(.is-open) td:nth-child(2)::before {
    content: none;
  }

  .mobile-card-table tr.is-open td[data-label],
  .mobile-condition-table td[data-label],
  .mobile-key-value-table td[data-label] {
    display: grid;
    grid-template-columns: minmax(74px, 36%) minmax(0, 1fr);
    gap: 8px;
    align-items: baseline;
  }

  .mobile-card-table tr.is-open td[data-label]::before,
  .mobile-condition-table td[data-label]::before,
  .mobile-key-value-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin: 0;
    color: var(--muted);
    font-size: var(--text-xs);
    font-weight: 700;
    line-height: 1.25;
  }

  .mobile-key-value-table th[scope="row"] {
    display: none;
  }

  .compact-table th,
  .compact-table td {
    min-width: 0;
  }

  .publication-header {
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
  }

  .publication-header span:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .publication-header span:last-child {
    grid-column: 2;
    grid-row: 1;
  }

  .publication-list li {
    grid-template-columns: 1fr auto;
    gap: 2px 8px;
  }

  .publication-list cite {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .paper-link,
  .paper-status {
    grid-column: 2;
    grid-row: 1;
  }

  .formula-cell {
    min-width: 0;
  }

  .formula-cell .inline-formula {
    white-space: normal;
  }

  .definition-table .inline-formula {
    white-space: normal;
  }

  .seo-nav {
    width: 100%;
    margin-left: 0;
  }

  .seo-card-grid {
    grid-template-columns: 1fr;
  }

  .seo-facts {
    grid-template-columns: 1fr;
  }

  .seo-facts dd {
    border-left: 0;
  }

  .back-to-top {
    right: 8px;
    bottom: 58px;
    min-width: 58px;
    height: 38px;
    padding: 6px 8px;
  }
}
