/* ==========================================================================
   dulus.ai — models.css
   The /models/ page, loaded after dulus.css: the hero and its /model
   picker, the hosted lineup, bring-your-own-keys, local runtimes, the
   reasoning dial, Mesa Redonda, the API example and the closing call to
   action — in page order. Tokens and components come from dulus.css; this
   file only composes them.
   ========================================================================== */

/* -------------------------------------------------------------- shared -- */

/* Inline code inside prose: a quiet plumage pill. */
.mc {
  padding: 0.1em 0.42em;
  border-radius: 6px;
  font-size: 0.84em;
  color: var(--gold);
  background: rgba(245, 152, 42, 0.08);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.2) inset;
  white-space: nowrap;
}

/* Syntax tokens, shared by every snippet on the page. */
.tok-k {
  color: var(--orange);
}
.tok-s {
  color: var(--gold);
}
.tok-p,
.tok-f {
  color: var(--ink);
}
.tok-n {
  color: var(--gold-1);
}

/* ---------------------------------------------------------------- hero -- */

.mhero {
  position: relative;
  padding: calc(var(--nav-h) + clamp(64px, 8vw, 116px)) 0 0;
  overflow: clip;
  isolation: isolate;
}
.mhero__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(36% 46% at 77% 38%, rgba(245, 152, 42, 0.13), transparent 70%),
    radial-gradient(22% 26% at 80% 30%, rgba(255, 210, 122, 0.07), transparent 70%),
    radial-gradient(60% 50% at 0% 100%, rgba(200, 92, 35, 0.08), transparent 70%);
  -webkit-mask: linear-gradient(180deg, #000 55%, transparent);
  mask: linear-gradient(180deg, #000 55%, transparent);
}
.mhero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(40px, 5vw, 96px);
}
.mhero__copy {
  display: grid;
  justify-items: start;
  gap: 26px;
}
.mhero__title {
  font-size: clamp(3.1rem, 1.3rem + 5.2vw, 6.9rem);
  line-height: 0.9;
  letter-spacing: -0.052em;
}
.mhero__title > span,
.mhero__title > .serif {
  display: block;
}
.mhero__lede {
  max-width: 33rem;
}
.mhero__ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 4px;
}
.mhero__ctas .cmd {
  height: 56px;
  padding-left: 22px;
}
.mhero__visual {
  position: relative;
  justify-self: end;
  width: 100%;
  max-width: 580px;
}

/* -------------------------------------------------- the /model picker -- */
/* A recreation of the picker, not a screenshot: crisp at any DPR, and
   models.js types into it. Without JS (or with reduced motion) it rests on
   the full list with dulus-b-27b highlighted. */

.mpick {
  position: relative;
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.035), transparent 34%), rgba(17, 16, 15, 0.94);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 50px 120px -30px rgba(0, 0, 0, 0.95),
    0 0 90px -30px rgba(245, 152, 42, 0.4);
  overflow: hidden;
}
.mpick::before {
  content: "";
  position: absolute;
  inset: 0 12% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 231, 190, 0.4), transparent);
}
.mpick__head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 60px;
  padding: 0 16px 0 18px;
  border-bottom: 1px solid var(--line);
  color: var(--ink-3);
}
.mpick__head > .ico {
  width: 18px;
  height: 18px;
}
.mpick__field {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.95rem;
}
.mpick__cmd {
  margin-right: 0.6em;
  color: var(--gold);
}
.mpick__query {
  border-radius: 3px;
  color: var(--ink);
  transition: background-color var(--t-fast);
}
.mpick__query.is-sel {
  color: var(--gold-hi);
  background: rgba(245, 152, 42, 0.34);
}
.mpick__caret {
  flex: none;
  width: 2px;
  height: 1.2em;
  margin-left: 1px;
  border-radius: 1px;
  background: var(--gold-1);
  box-shadow: 0 0 10px rgba(255, 210, 122, 0.7);
}
html.js .mpick:not(.is-paused) .mpick__caret {
  animation: blink 1.06s steps(1) infinite;
}
.mpick__ph {
  margin-left: 0.55em;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--ink-4);
}
.mpick__count {
  flex: none;
  padding: 3px 9px;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-4);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.mpick__count span {
  color: var(--ink-2);
}
.mpick__list {
  padding: 4px 8px 8px;
}
.mpick__label {
  padding: 12px 12px 6px;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.mpick__label-note {
  color: var(--gold-ink);
}
.mpick__row {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 0.85rem;
  color: var(--ink-2);
  transition: background-color var(--t-fast), box-shadow var(--t-fast), color var(--t-fast);
}
.mpick__row .ico {
  width: 16px;
  height: 16px;
  color: var(--ink-4);
  transition: color var(--t-fast);
}
.mpick__row code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
}
.mpick__meta {
  margin-left: auto;
  font-size: 0.78rem;
  color: var(--ink-4);
  white-space: nowrap;
}
.mpick__meta[translate="no"] {
  font-family: var(--mono);
  font-size: 0.72rem;
}
.mpick__rate {
  flex: none;
  min-width: 30px;
  padding: 2px 7px;
  border-radius: 6px;
  text-align: center;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--gold-ink);
  background: rgba(245, 152, 42, 0.08);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.2) inset;
}
.mpick__row.is-active {
  color: var(--ink);
  background: rgba(245, 152, 42, 0.09);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.24) inset;
}
.mpick__row.is-active .ico {
  color: var(--gold-ink);
}
/* Hovering a row takes the highlight, like the real thing. Only for real
   pointers: a tap must never leave a sticky highlight behind. */
@media (hover: hover) {
  .mpick__row:hover {
    color: var(--ink);
    background: rgba(245, 152, 42, 0.09);
    box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.24) inset;
  }
  .mpick__row:hover .ico {
    color: var(--gold-ink);
  }
  .mpick__list:has(.mpick__row:hover) .mpick__row.is-active:not(:hover) {
    color: var(--ink-2);
    background: none;
    box-shadow: none;
  }
  .mpick__list:has(.mpick__row:hover) .mpick__row.is-active:not(:hover) .ico {
    color: var(--ink-4);
  }
  .mpick__row.is-dim:hover {
    opacity: 1;
  }
}
.mpick__label,
.mpick__row {
  transition-property: opacity, background-color, box-shadow, color;
  transition-duration: 280ms, var(--t-fast), var(--t-fast), var(--t-fast);
}
.mpick__row.is-dim {
  opacity: 0.26;
}
.mpick__group.is-dim .mpick__label {
  opacity: 0.4;
}
.mpick__row mark {
  color: var(--gold-1);
  background: none;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.mpick__row.is-picked {
  animation: mpick-pick 700ms var(--ease-out);
}
@keyframes mpick-pick {
  0% {
    box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.85) inset, 0 0 26px -4px rgba(245, 152, 42, 0.75);
    background: rgba(245, 152, 42, 0.2);
  }
}
.mpick__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 11px 18px;
  border-top: 1px solid var(--line);
  font-size: 0.75rem;
  color: var(--ink-4);
}
.mpick__foot > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.mpick__foot-end {
  margin-left: auto;
}
.mpick kbd {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  color: var(--ink-3);
  background: rgba(255, 245, 230, 0.06);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 1px 0 rgba(0, 0, 0, 0.4);
}
.mpick__status {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 18px 0 0 8px;
  font-family: var(--mono);
  font-size: 0.76rem;
  line-height: 1.5;
  color: var(--ink-3);
}
.mpick__status > span {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.mpick__status .ico {
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: var(--live);
}
.mpick__status b {
  font-weight: 500;
  color: var(--ink);
}
.mpick__status.is-new {
  animation: mpick-status 600ms var(--ease-out);
}
@keyframes mpick-status {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

/* ------------------------------------------------------- three ways -- */

.mways {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: clamp(72px, 8vw, 120px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.mways li + li {
  border-left: 1px solid var(--line);
}
.mways__item {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 16px;
  height: 100%;
  padding: 28px clamp(18px, 2.2vw, 32px) 30px;
  transition: background-color var(--t) var(--ease);
}
.mways li:first-child .mways__item {
  padding-left: 0;
}
.mways__item::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-1), transparent);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
@media (hover: hover) {
  .mways__item:hover::after {
    opacity: 0.7;
  }
}
.mways__text {
  flex: 1;
  display: grid;
  gap: 4px;
}
.mways__title {
  font-family: var(--display);
  font-size: 1.18rem;
  font-weight: 600;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.mways__sub {
  max-width: 22rem;
  font-size: var(--fs-sm);
  line-height: 1.5;
  color: var(--ink-3);
}
.mways__arrow {
  width: 18px;
  height: 18px;
  margin-top: 4px;
  color: var(--ink-4);
  transition: transform var(--t) var(--ease), color var(--t);
}
@media (hover: hover) {
  .mways__item:hover .mways__arrow {
    color: var(--gold-ink);
    transform: translateY(3px);
  }
}

@media (max-width: 900px) {
  .mhero {
    padding-top: calc(var(--nav-h) + 44px);
  }
  .mhero__grid {
    grid-template-columns: 1fr;
  }
  .mhero__visual {
    justify-self: center;
  }
  .mhero__glow {
    background:
      radial-gradient(70% 30% at 50% 62%, rgba(245, 152, 42, 0.13), transparent 70%),
      radial-gradient(80% 40% at 0% 100%, rgba(200, 92, 35, 0.08), transparent 70%);
  }
  .mways {
    grid-template-columns: 1fr;
    margin-top: 56px;
  }
  .mways li + li {
    border-left: 0;
    border-top: 1px solid var(--line);
  }
  .mways__item,
  .mways li:first-child .mways__item {
    padding: 20px 0;
  }
}
@media (max-width: 520px) {
  .mhero__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .mhero__ctas .btn,
  .mhero__ctas .cmd {
    width: 100%;
    justify-content: center;
  }
  .mhero__ctas .cmd {
    justify-content: space-between;
  }
  .mpick__head {
    height: 54px;
    padding: 0 12px 0 14px;
    gap: 10px;
  }
  .mpick__field {
    font-size: 0.86rem;
  }
  .mpick__ph {
    font-size: 0.84rem;
  }
  .mpick__list {
    padding: 2px 6px 6px;
  }
  .mpick__row {
    gap: 10px;
    height: 40px;
    padding: 0 10px;
  }
  .mpick__row code {
    font-size: 0.78rem;
  }
  .mpick__meta:not(.mpick__meta--end) {
    display: none;
  }
  .mpick__rate {
    margin-left: auto;
  }
  .mpick__meta--end {
    font-size: 0.72rem;
  }
  .mpick__foot {
    gap: 14px;
    padding: 10px 14px;
  }
  .mpick__foot-end {
    display: none !important;
  }
  .mpick__status {
    margin-left: 4px;
    font-size: 0.7rem;
  }
}

/* -------------------------------------------------------------- lineup -- */

.lineup__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 28px 48px;
}
.lineup__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
html:not(.js) .lineup__filters {
  display: none;
}
.lineup__chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 38px;
  padding: 0 8px 0 15px;
  border-radius: var(--pill);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ink-3);
  background: rgba(255, 245, 230, 0.03);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  transition: color var(--t-fast), background-color var(--t-fast), box-shadow var(--t-fast);
}
@media (hover: hover) {
  .lineup__chip:hover {
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--line-3) inset;
  }
}
.lineup__chip[aria-pressed="true"] {
  color: var(--gold);
  background: rgba(245, 152, 42, 0.1);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.45) inset, 0 8px 24px -14px rgba(245, 152, 42, 0.8);
}
.lineup__n {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 22px;
  padding: 0 6px;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--ink-3);
  background: rgba(255, 245, 230, 0.05);
  transition: color var(--t-fast), background-color var(--t-fast);
}
.lineup__chip[aria-pressed="true"] .lineup__n {
  color: var(--gold-ink);
  background: rgba(245, 152, 42, 0.14);
}

.lineup__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 372px);
  align-items: start;
  gap: 24px;
  margin-top: clamp(36px, 4vw, 56px);
}
.lineup__table {
  position: relative;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.03), rgba(255, 245, 230, 0.008)), var(--bg-1);
  box-shadow: 0 0 0 1px var(--line) inset, var(--shadow-2);
  overflow: hidden;
}
.lineup__t {
  width: 100%;
  border-collapse: collapse;
}
.lineup__t thead th {
  padding: 18px 24px 14px;
  border-bottom: 1px solid var(--line-2);
  text-align: left;
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.lineup__t tbody th,
.lineup__t tbody td {
  height: 56px;
  padding: 0 24px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-weight: 400;
  transition: background-color var(--t-fast), box-shadow var(--t-fast);
}
.lineup__t tbody tr:last-child > *,
.lineup__t tbody tr.is-last > * {
  border-bottom-color: transparent;
}
@media (hover: hover) {
  .lineup__t tbody tr:hover > * {
    background: rgba(255, 245, 230, 0.028);
  }
}
html.js .lineup__t tbody tr {
  cursor: pointer;
}
.lineup__t tbody tr.is-selected > * {
  background: rgba(245, 152, 42, 0.065);
}
.lineup__t tbody tr.is-selected > th {
  box-shadow: 2px 0 0 var(--orange) inset;
}
.lineup__t tbody th code {
  white-space: nowrap;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  border-radius: 6px;
  transition: color var(--t-fast);
}
.lineup__t tbody tr.is-selected th code {
  color: var(--gold);
}

/* Rate: the multiplier and a four-cell gauge that warms as it fills. */
.rate {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.rate b {
  min-width: 2.1em;
  font-family: var(--mono);
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--gold-ink);
}
.rate__pips {
  display: inline-flex;
  gap: 3px;
}
.rate__pips i {
  width: 15px;
  height: 6px;
  border-radius: 2px;
  background: rgba(255, 236, 210, 0.09);
}
.rate__pips i:nth-child(1) {
  --c: var(--gold-1);
}
.rate__pips i:nth-child(2) {
  --c: #fbbd52;
}
.rate__pips i:nth-child(3) {
  --c: var(--orange);
}
.rate__pips i:nth-child(4) {
  --c: var(--orange-2);
}
tr[data-rate="1"] .rate__pips i:nth-child(-n + 1),
tr[data-rate="2"] .rate__pips i:nth-child(-n + 2),
tr[data-rate="3"] .rate__pips i:nth-child(-n + 3),
tr[data-rate="4"] .rate__pips i {
  background: var(--c);
  box-shadow: 0 0 10px -2px var(--c);
}
tr[data-rate="0"] .rate b {
  color: var(--live);
}

.role {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: var(--pill);
  font-size: 0.8rem;
  color: var(--ink-2);
  background: rgba(255, 245, 230, 0.04);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  white-space: nowrap;
}
.role--gold {
  color: var(--gold);
  background: rgba(245, 152, 42, 0.08);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.3) inset;
}
.role--free {
  color: var(--live);
  background: rgba(62, 230, 160, 0.07);
  box-shadow: 0 0 0 1px rgba(62, 230, 160, 0.26) inset;
}

/* Use via API */
.lineup__aside {
  position: sticky;
  top: calc(var(--nav-h) + 28px);
}
.lineup__use-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.lineup__use-lede {
  margin-top: 16px;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.lineup__use-hint {
  margin-top: 4px;
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
html:not(.js) .lineup__use-hint {
  display: none;
}
.snip {
  display: grid;
  gap: 8px;
  margin-top: 20px;
}
.snip__label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.snip__label:not(:first-child) {
  margin-top: 8px;
}
.snip__line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 48px;
  padding: 0 6px 0 16px;
  border-radius: 12px;
  background: var(--sunk);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.snip__line code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.84rem;
  color: var(--ink-2);
}
.snip__line .cmd__copy {
  flex: none;
  margin: 0;
}
[data-use-id] {
  display: inline-block;
}
.lineup__spec {
  display: grid;
  gap: 10px;
  margin: 22px 0 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}
.lineup__spec div {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 12px;
  font-size: var(--fs-xs);
}
.lineup__spec dt {
  color: var(--ink-3);
}
.lineup__spec code {
  font-size: 0.74rem;
  color: var(--ink-2);
}

/* Holder free tier */
.lineup__free {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 28px;
  margin-top: 24px;
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--r-lg);
  background: radial-gradient(50% 140% at 0% 0%, rgba(62, 230, 160, 0.055), transparent 60%), var(--bg-1);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.lineup__free-ico {
  align-self: start;
}
.lineup__free-text {
  display: grid;
  gap: 8px;
}
.lineup__free-text p {
  max-width: 60rem;
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.lineup__free-text code {
  font-size: 0.86em;
  white-space: nowrap;
  color: var(--ink-2);
}
.lineup__free-text .lineup__legal {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

@media (max-width: 1180px) {
  .lineup__t thead th,
  .lineup__t tbody th,
  .lineup__t tbody td {
    padding-inline: 16px;
  }
  .rate__pips i {
    width: 12px;
  }
}
@media (max-width: 1100px) {
  .lineup__body {
    grid-template-columns: 1fr;
  }
  .lineup__aside {
    position: static;
  }
}
/* Tablet: the card is as wide as the table, so it splits in two. */
@media (min-width: 701px) and (max-width: 1100px) {
  .lineup__use .card__pad {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
    column-gap: clamp(32px, 5vw, 64px);
    align-items: start;
  }
  .lineup__use .card__pad > * {
    grid-column: 1;
  }
  .lineup__use .lineup__spec {
    grid-column: 2;
    grid-row: 1 / span 5;
    align-self: center;
    margin: 0;
    padding: 0 0 0 clamp(24px, 3vw, 40px);
    border-top: 0;
    border-left: 1px solid var(--line);
  }
  .lineup__use .link {
    margin-top: 22px;
  }
}
@media (max-width: 1000px) {
  .lineup__free {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .lineup__free-cta {
    grid-column: 2;
    justify-self: start;
  }
}
/* On a phone each row becomes a two-line card. The explicit ARIA roles in
   the markup keep the table semantics that display:grid would drop. */
@media (max-width: 640px) {
  .lineup__t thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
  }
  .lineup__t tbody tr {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    row-gap: 6px;
    padding: 12px 16px;
    border-bottom: 1px solid var(--line);
    transition: background-color var(--t-fast);
  }
  .lineup__t tbody tr:last-child,
  .lineup__t tbody tr.is-last {
    border-bottom-color: transparent;
  }
  .lineup__t tbody th,
  .lineup__t tbody td {
    height: auto;
    padding: 0;
    border: 0;
    background: none !important;
  }
  .lineup__t tbody td:nth-child(2) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }
  .lineup__t tbody td:nth-child(3) {
    grid-column: 1;
    grid-row: 2;
  }
  .lineup__t tbody tr.is-selected {
    background: rgba(245, 152, 42, 0.065);
    box-shadow: 2px 0 0 var(--orange) inset;
  }
  .lineup__t tbody tr.is-selected > th {
    box-shadow: none;
  }
  .lineup__t tbody th code {
    font-size: 0.86rem;
  }
  .rate {
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
  }
  .rate b {
    min-width: 0;
  }
  .rate__pips i {
    width: 10px;
    height: 5px;
  }
  .role {
    height: 22px;
    padding: 0 8px;
    font-size: 0.74rem;
  }
  .lineup__free {
    grid-template-columns: 1fr;
  }
  .lineup__free-cta {
    grid-column: auto;
  }
}
@media (max-width: 520px) {
  .lineup__filters {
    gap: 6px;
  }
  .lineup__chip {
    height: 34px;
    gap: 6px;
    padding: 0 5px 0 12px;
    font-size: 0.8125rem;
  }
  .lineup__n {
    min-width: 20px;
    height: 20px;
    padding: 0 5px;
    font-size: 0.62rem;
  }
}

/* ---------------------------------------------------------- your keys -- */

.keys__group {
  margin-top: clamp(40px, 4.5vw, 64px);
}
.keys__group + .keys__group {
  margin-top: 28px;
}
.keys__label {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  line-height: 1.4;
  text-transform: uppercase;
  color: var(--ink-3);
}
.keys__count {
  padding: 2px 8px;
  border-radius: var(--pill);
  letter-spacing: 0.04em;
  color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
/* Hairline grid: the 1px gaps show the container's line colour. Column
   counts divide both groups (12 and 6) exactly at every width. */
.keys__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1px;
  border-radius: var(--r-lg);
  background: var(--line);
  box-shadow: 0 0 0 1px var(--line);
  overflow: hidden;
}
.keys__cell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  min-height: 128px;
  padding: 22px 22px 20px;
  background: var(--bg-1);
  isolation: isolate;
}
.keys__cell::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: radial-gradient(130% 100% at 0% 0%, rgba(250, 211, 139, 0.075), transparent 62%);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
@media (hover: hover) {
  .keys__cell:hover::after {
    opacity: 1;
  }
}
.keys__mark {
  font-family: var(--display);
  font-size: 1.24rem;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--ink-2);
  transition: color var(--t);
}
@media (hover: hover) {
  .keys__cell:hover .keys__mark {
    color: var(--ink);
  }
}
.keys__prefix {
  margin-top: auto;
  padding: 3px 8px;
  border-radius: 7px;
  font-size: 0.76rem;
  color: var(--gold-ink);
  background: rgba(245, 152, 42, 0.06);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.16) inset;
}
.keys__prefix i {
  font-style: normal;
  color: var(--ink-4);
}
.keys__prefixes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: auto;
}
.keys__prefixes .keys__prefix {
  margin-top: 0;
}
.keys__note {
  margin-top: -4px;
  font-size: 0.78rem;
  line-height: 1.35;
  color: var(--ink-3);
}
.keys__note:last-child {
  margin-top: auto;
}

@media (max-width: 1100px) {
  .keys__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .keys__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-radius: var(--r);
  }
  .keys__cell {
    min-height: 112px;
    padding: 18px 16px 16px;
  }
  .keys__mark {
    font-size: 1.06rem;
  }
  .keys__prefix {
    font-size: 0.72rem;
  }
}

/* -------------------------------------------------------------- local -- */

.local__head {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  align-items: end;
  gap: 32px 64px;
}
.local__ram {
  padding: 26px 28px 24px;
  border-radius: var(--r-lg);
  background: radial-gradient(70% 120% at 0% 0%, rgba(245, 152, 42, 0.07), transparent 60%), var(--sunk);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.local__ram-top {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
}
.local__ram-num {
  padding-right: 0.04em;
  font-family: var(--display);
  font-size: clamp(2.6rem, 2rem + 2vw, 3.6rem);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.05em;
  background: var(--plumage);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.local__ram-title {
  font-weight: 500;
  color: var(--ink);
}
.local__meter {
  position: relative;
  height: 8px;
  margin: 22px 0 34px;
  border-radius: var(--pill);
  background: rgba(255, 236, 210, 0.07);
}
.local__meter-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 12.5%;
  border-radius: inherit;
  background: var(--plumage-x);
  box-shadow: 0 0 18px -2px rgba(245, 152, 42, 0.65);
}
.local__tick {
  position: absolute;
  top: 18px;
  left: var(--at);
  transform: translateX(-50%);
  font-family: var(--mono);
  font-size: 0.66rem;
  color: var(--ink-4);
}
.local__tick::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -14px;
  width: 1px;
  height: 10px;
  background: var(--line-3);
}
.local__tick:last-child {
  transform: translateX(-100%);
}
.local__tick:last-child::before {
  left: auto;
  right: 0;
}
.local__tick--on {
  color: var(--gold-ink);
}
.local__tick--on::before {
  background: var(--gold-1);
}
.local__ram-text {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.local__ram-text code {
  font-size: 0.86em;
  color: var(--ink-2);
}
.local__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: clamp(36px, 4vw, 56px);
}
.local__rt .card__pad {
  display: flex;
  flex-direction: column;
  gap: 14px;
  height: 100%;
}
.local__rt-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
}
.local__name {
  font-size: 1.5rem;
  letter-spacing: -0.035em;
}
.local__name-and {
  font-weight: 500;
  color: var(--ink-3);
}
.local__host {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 11px;
  border-radius: var(--pill);
  font-size: 0.74rem;
  color: var(--ink-2);
  background: rgba(255, 245, 230, 0.04);
  box-shadow: 0 0 0 1px var(--line-2) inset;
  white-space: nowrap;
}
.local__host .dot {
  width: 6px;
  height: 6px;
}
.local__host--plain {
  font-family: var(--mono);
  color: var(--ink-3);
}
.local__rt-text {
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.local__cmd {
  display: block;
  margin-top: auto;
  padding: 12px 14px;
  border-radius: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8rem;
  color: var(--ink-2);
  background: var(--sunk);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.local__cmd i {
  font-style: normal;
  color: var(--ink-4);
}
.local__cmd--sh::before {
  content: "$ ";
  color: var(--ink-4);
}

@media (max-width: 1000px) {
  .local__head {
    grid-template-columns: 1fr;
  }
  .local__grid {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------- dial -- */
/* Pure CSS: the radios are the state, :has() paints the rest. Browsers
   without :has() keep the default level (3) everywhere. */

.dial__body {
  margin-top: clamp(44px, 5vw, 72px);
}
.dial__ladder {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.dial__stop {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 10px;
  padding: 0 6px 6px;
  text-align: center;
  cursor: pointer;
}
/* The string between two beads: a hairline, and a plumage line over it
   that fills up to the chosen level. */
.dial__stop::before,
.dial__stop::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 27px;
  width: calc(100% + 12px);
  height: 2px;
  pointer-events: none;
}
.dial__stop::before {
  background: var(--line-2);
}
.dial__stop::after {
  --lit: 0;
  background: linear-gradient(90deg, var(--gold-1), var(--orange));
  box-shadow: 0 0 12px rgba(245, 152, 42, 0.5);
  transform: scaleX(var(--lit));
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.dial__stop:last-of-type::before,
.dial__stop:last-of-type::after {
  display: none;
}
.dial__stop:nth-of-type(-n + 3)::after {
  --lit: 1;
}
.dial__body:has(.dial__input:checked) .dial__stop::after {
  --lit: 0;
}
.dial__body:has(.dial__input[value="1"]:checked) .dial__stop:nth-of-type(-n + 1)::after,
.dial__body:has(.dial__input[value="2"]:checked) .dial__stop:nth-of-type(-n + 2)::after,
.dial__body:has(.dial__input[value="3"]:checked) .dial__stop:nth-of-type(-n + 3)::after,
.dial__body:has(.dial__input[value="4"]:checked) .dial__stop:nth-of-type(-n + 4)::after {
  --lit: 1;
}
.dial__input {
  position: absolute;
  top: 0;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}
.dial__knob {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 1.1rem;
  line-height: 1;
  color: var(--ink-3);
  background: var(--bg-1);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 0 0 6px var(--bg);
  transition: color var(--t), background-color var(--t), box-shadow var(--t), transform var(--t) var(--spring);
}
.dial__glyph {
  display: block;
}
.dial__stop:nth-of-type(2) .dial__glyph {
  font-size: 1.9rem;
  transform: translateY(-1px);
}
.dial__knob .ico {
  width: 22px;
  height: 22px;
}
.dial__ring {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  box-shadow: 0 0 0 1.5px currentColor inset;
}
/* Levels below the chosen one keep a gold ring. */
.dial__stop:nth-of-type(-n + 3) .dial__knob {
  color: var(--gold-ink);
  box-shadow: 0 0 0 1px var(--line-gold) inset, 0 0 0 6px var(--bg);
}
.dial__body:has(.dial__input:checked) .dial__stop .dial__knob {
  color: var(--ink-3);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 0 0 6px var(--bg);
}
.dial__body:has(.dial__input[value="1"]:checked) .dial__stop:nth-of-type(-n + 1) .dial__knob,
.dial__body:has(.dial__input[value="2"]:checked) .dial__stop:nth-of-type(-n + 2) .dial__knob,
.dial__body:has(.dial__input[value="3"]:checked) .dial__stop:nth-of-type(-n + 3) .dial__knob,
.dial__body:has(.dial__input[value="4"]:checked) .dial__stop:nth-of-type(-n + 4) .dial__knob {
  color: var(--gold-ink);
  box-shadow: 0 0 0 1px var(--line-gold) inset, 0 0 0 6px var(--bg);
}
@media (hover: hover) {
  .dial__body .dial__stop:hover .dial__input:not(:checked) + .dial__knob {
    color: var(--ink);
    box-shadow: 0 0 0 1px var(--line-3) inset, 0 0 0 6px var(--bg);
  }
}
.dial__body .dial__stop .dial__input:checked + .dial__knob {
  color: #1d1003;
  background: var(--plumage);
  box-shadow: var(--glow), 0 0 0 6px var(--bg);
  transform: scale(1.06);
}
.dial__input:focus-visible + .dial__knob {
  outline: 2px solid var(--gold-1);
  outline-offset: 4px;
}
.dial__level {
  display: inline-flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
}
.dial__num {
  color: var(--ink-3);
}
.dial__name {
  font-weight: 600;
  color: var(--ink-2);
  transition: color var(--t);
}
.dial__input:checked ~ .dial__level .dial__name {
  color: var(--gold);
}
.dial__desc {
  max-width: 14rem;
  font-size: 0.875rem;
  line-height: 1.45;
  color: var(--ink-3);
  transition: color var(--t);
}
.dial__input:checked ~ .dial__desc {
  color: var(--ink-2);
}
@media (hover: hover) {
  .dial__stop:hover .dial__desc {
    color: var(--ink-2);
  }
}

.dial__out {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  gap: 20px;
  margin-top: clamp(36px, 4vw, 56px);
}
.dial__term {
  overflow: hidden;
  border-radius: var(--r-lg);
  box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow-2);
}
.dial__term-bar {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 42px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--ink-4);
  background: rgba(255, 245, 230, 0.02);
}
.dial__term-bar .ico {
  width: 15px;
  height: 15px;
}
.dial__term-bar b {
  font-weight: 500;
}
.dial__term-body {
  padding: 24px 24px 26px;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.95;
  color: var(--ink-2);
}
.dial__line {
  display: none;
  white-space: pre;
}
.dial__line[data-l="3"] {
  display: block;
}
.dial__body:has(.dial__input:checked) .dial__line {
  display: none;
}
.dial__body:has(.dial__input[value="0"]:checked) .dial__line[data-l="0"],
.dial__body:has(.dial__input[value="1"]:checked) .dial__line[data-l="1"],
.dial__body:has(.dial__input[value="2"]:checked) .dial__line[data-l="2"],
.dial__body:has(.dial__input[value="3"]:checked) .dial__line[data-l="3"],
.dial__body:has(.dial__input[value="4"]:checked) .dial__line[data-l="4"] {
  display: block;
  animation: dial-line 420ms var(--ease-out) both;
}
.dial__line b {
  font-weight: 600;
  color: var(--ink);
}
.dial__row {
  white-space: pre;
  color: var(--ink-3);
}
.dial__row--cmd {
  margin-top: 14px;
  color: var(--ink-2);
}
.dial__mx {
  transition: color var(--t);
}
.dial__mk {
  visibility: hidden;
  color: var(--gold-ink);
}
.dial__mx[data-m="3"] {
  color: var(--gold);
}
.dial__mx[data-m="3"] .dial__mk {
  visibility: visible;
}
.dial__body:has(.dial__input:checked) .dial__mx {
  color: var(--ink-3);
}
.dial__body:has(.dial__input:checked) .dial__mk {
  visibility: hidden;
}
.dial__body:has(.dial__input[value="0"]:checked) .dial__mx[data-m="0"],
.dial__body:has(.dial__input[value="1"]:checked) .dial__mx[data-m="1"],
.dial__body:has(.dial__input[value="2"]:checked) .dial__mx[data-m="2"],
.dial__body:has(.dial__input[value="3"]:checked) .dial__mx[data-m="3"],
.dial__body:has(.dial__input[value="4"]:checked) .dial__mx[data-m="4"] {
  color: var(--gold);
}
.dial__body:has(.dial__input[value="0"]:checked) .dial__mx[data-m="0"] .dial__mk,
.dial__body:has(.dial__input[value="1"]:checked) .dial__mx[data-m="1"] .dial__mk,
.dial__body:has(.dial__input[value="2"]:checked) .dial__mx[data-m="2"] .dial__mk,
.dial__body:has(.dial__input[value="3"]:checked) .dial__mx[data-m="3"] .dial__mk,
.dial__body:has(.dial__input[value="4"]:checked) .dial__mx[data-m="4"] .dial__mk {
  visibility: visible;
}
@keyframes dial-line {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
.t-dim {
  color: var(--ink-4);
}
.t-gold {
  color: var(--gold-ink);
}
.t-ok {
  color: var(--live);
}
.t-fill {
  background: linear-gradient(90deg, var(--orange-2), var(--orange) 40%, var(--gold-1));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.t-empty {
  color: var(--ink-4);
  opacity: 0.55;
}

.dial__dialects {
  display: flex;
  flex-direction: column;
  padding: 22px 24px 20px;
  border-radius: var(--r-lg);
  background: linear-gradient(180deg, rgba(255, 245, 230, 0.03), rgba(255, 245, 230, 0.01)), var(--bg-1);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.dial__dialects-title {
  margin-bottom: 6px;
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.dial__dialect {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.dial__dialect-name {
  font-size: 0.95rem;
  font-weight: 560;
  color: var(--ink);
}
.dial__dialect-desc {
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.dial__budget {
  position: relative;
  flex: none;
  width: 112px;
  height: 8px;
  border-radius: var(--pill);
  background: rgba(255, 236, 210, 0.07);
  overflow: hidden;
}
.dial__budget span {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--plumage-x);
  transform: scaleX(0.75);
  transform-origin: left center;
  transition: transform 520ms var(--ease-out);
}
.dial__body:has(.dial__input[value="0"]:checked) .dial__budget span {
  transform: scaleX(0);
}
.dial__body:has(.dial__input[value="1"]:checked) .dial__budget span {
  transform: scaleX(0.25);
}
.dial__body:has(.dial__input[value="2"]:checked) .dial__budget span {
  transform: scaleX(0.5);
}
.dial__body:has(.dial__input[value="4"]:checked) .dial__budget span {
  transform: scaleX(1);
}
.dial__word {
  flex: none;
  min-width: 112px;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.86rem;
  color: var(--gold);
}
.dial__word span {
  display: none;
}
.dial__word [data-l="3"] {
  display: inline;
}
.dial__body:has(.dial__input:checked) .dial__word span {
  display: none;
}
.dial__body:has(.dial__input[value="0"]:checked) .dial__word [data-l="0"],
.dial__body:has(.dial__input[value="1"]:checked) .dial__word [data-l="1"],
.dial__body:has(.dial__input[value="2"]:checked) .dial__word [data-l="2"],
.dial__body:has(.dial__input[value="3"]:checked) .dial__word [data-l="3"],
.dial__body:has(.dial__input[value="4"]:checked) .dial__word [data-l="4"] {
  display: inline;
}
.dial__word [data-l="0"] {
  color: var(--ink-4);
}
.dial__switch {
  position: relative;
  flex: none;
  width: 44px;
  height: 24px;
  margin-left: 68px;
  border-radius: var(--pill);
  background: linear-gradient(90deg, var(--orange), var(--gold-1));
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.4) inset, 0 6px 18px -8px rgba(245, 152, 42, 0.8);
  transition: background-color var(--t), box-shadow var(--t);
}
.dial__switch span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #1d1003;
  transform: translateX(20px);
  transition: transform var(--t) var(--spring), background-color var(--t);
}
.dial__body:has(.dial__input[value="0"]:checked) .dial__switch {
  background: rgba(255, 236, 210, 0.08);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.dial__body:has(.dial__input[value="0"]:checked) .dial__switch span {
  background: var(--ink-4);
  transform: none;
}
.dial__note {
  margin-top: auto;
  padding-top: 16px;
  font-size: var(--fs-xs);
  line-height: 1.6;
  color: var(--ink-3);
}
.dial__note code {
  color: var(--ink-2);
}

@media (max-width: 1000px) {
  .dial__out {
    grid-template-columns: 1fr;
  }
}
/* On a phone the ladder stands up: beads on a vertical string. */
@media (max-width: 760px) {
  .dial__ladder {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .dial__stop {
    grid-template-columns: 56px minmax(0, 1fr);
    justify-items: start;
    align-items: center;
    column-gap: 18px;
    row-gap: 0;
    padding: 8px 0;
    text-align: left;
  }
  .dial__stop::before,
  .dial__stop::after {
    left: 27px;
    top: 36px;
    width: 2px;
    height: 100%;
  }
  .dial__stop::after {
    background: linear-gradient(180deg, var(--gold-1), var(--orange));
    transform: scaleY(var(--lit));
    transform-origin: center top;
  }
  .dial__knob {
    grid-row: 1 / span 2;
    align-self: start;
  }
  .dial__level {
    margin-top: 0;
    align-self: end;
  }
  .dial__desc {
    align-self: start;
    max-width: none;
  }
  .dial__term-body {
    padding: 18px 16px 20px;
    font-size: 0.66rem;
  }
  .dial__dialects {
    padding: 18px 18px 16px;
  }
  .dial__switch {
    margin-left: 0;
  }
  .dial__budget,
  .dial__word {
    width: 84px;
    min-width: 84px;
  }
}

/* --------------------------------------------------------------- mesa -- */

.mesa__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 540px);
  align-items: center;
  gap: clamp(40px, 6vw, 110px);
}
.mesa__copy {
  display: grid;
  justify-items: start;
  gap: 22px;
}
.mesa__link {
  margin-top: 4px;
}
.mesa__visual {
  justify-self: center;
  width: 100%;
  max-width: 540px;
}
.mesa__table {
  position: relative;
  aspect-ratio: 1;
  container-type: inline-size;
}
.mesa__ring {
  position: absolute;
  inset: 10%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(245, 152, 42, 0.11), rgba(245, 152, 42, 0.02) 70%, transparent);
  box-shadow: 0 0 0 1px var(--line-2) inset;
}
.mesa__ring--inner {
  inset: 29%;
  background: radial-gradient(closest-side, rgba(255, 210, 122, 0.08), transparent);
  box-shadow: 0 0 0 1px var(--line) inset;
}
.mesa__spokes {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: rgba(250, 211, 139, 0.3);
  stroke-width: 1;
  stroke-dasharray: 2 4;
  vector-effect: non-scaling-stroke;
}
.mesa__spokes path {
  vector-effect: non-scaling-stroke;
}
.mesa__chair {
  position: absolute;
  left: 50%;
  top: 50%;
  display: grid;
  justify-items: center;
  gap: 8px;
  transform: translate(-50%, -50%);
}
.mesa__chair img {
  width: 76px;
  height: auto;
  filter: drop-shadow(0 12px 28px rgba(245, 152, 42, 0.5));
}
.mesa__chair span {
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  white-space: nowrap;
  color: var(--gold-ink);
}
.mesa__seats li {
  --rad: min(216px, 40vw);
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--a)) translateX(var(--rad)) rotate(calc(var(--a) * -1));
}
@supports (width: 1cqi) {
  .mesa__seats li {
    --rad: 40cqi;
  }
}
.mesa__seat {
  position: absolute;
  left: 0;
  top: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px 0 11px;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.74rem;
  white-space: nowrap;
  color: var(--ink-2);
  background: rgba(19, 18, 17, 0.94);
  box-shadow: 0 0 0 1px var(--line-2) inset, 0 12px 30px -12px rgba(0, 0, 0, 0.9);
  transform: translate(-50%, -50%);
}
.mesa__seat::before {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ink-4);
}
.mesa__seat--gold {
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.32) inset, 0 12px 30px -12px rgba(0, 0, 0, 0.9);
}
.mesa__seat--gold::before {
  background: var(--orange);
  box-shadow: 0 0 10px rgba(245, 152, 42, 0.8);
}
.mesa__caption {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.mesa__caption span:first-child {
  color: var(--gold-ink);
}

@media (max-width: 900px) {
  .mesa__grid {
    grid-template-columns: 1fr;
  }
  .mesa__visual {
    max-width: 440px;
  }
}
@media (max-width: 520px) {
  .mesa__seats li {
    --rad: 34cqi;
  }
  .mesa__seat {
    height: 28px;
    gap: 6px;
    padding: 0 10px 0 9px;
    font-size: 0.64rem;
  }
  .mesa__chair img {
    width: 58px;
  }
  .mesa__chair span {
    font-size: 0.58rem;
  }
}

/* ---------------------------------------------------------- from code -- */

.mcode__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(40px, 5vw, 88px);
}
.mcode__copy {
  display: grid;
  justify-items: start;
  gap: 24px;
}
.mcode__url {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  max-width: 100%;
  height: 52px;
  padding: 0 6px 0 8px;
  border-radius: var(--pill);
  background: rgba(245, 152, 42, 0.06);
  box-shadow: 0 0 0 1px rgba(245, 152, 42, 0.26) inset;
}
.mcode__url-label {
  flex: none;
  padding: 6px 10px;
  border-radius: var(--pill);
  font-family: var(--mono);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-3);
  background: rgba(255, 245, 230, 0.05);
}
.mcode__url-text {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: var(--mono);
  font-size: 0.9rem;
  color: var(--gold);
}
.mcode__url .cmd__copy {
  flex: none;
  margin-left: 0;
}
.mcode__facts {
  display: grid;
  width: 100%;
  border-top: 1px solid var(--line);
}
.mcode__facts li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 14px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
  font-size: var(--fs-sm);
  color: var(--ink-3);
}
.mcode__facts code {
  font-size: 0.8rem;
  color: var(--ink);
}
.mcode__panel {
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--sunk);
  box-shadow: 0 0 0 1px var(--line-2) inset, var(--shadow-3), 0 0 90px -40px rgba(245, 152, 42, 0.35);
}
.mcode__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 50px;
  padding: 0 8px 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 245, 230, 0.02);
}
.mcode__file {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
  font-size: 0.76rem;
  color: var(--ink-3);
}
.mcode__file::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 1px;
  background: var(--orange);
  transform: rotate(45deg);
}
.mcode__bar .cmd__copy {
  margin-left: 0;
}
.mcode__pre {
  margin: 0;
  padding: 24px 24px 26px;
  overflow-x: auto;
  font-size: 0.84rem;
  line-height: 1.8;
  color: var(--ink-2);
  tab-size: 4;
}
.mcode__hl {
  display: inline-block;
  min-width: calc(100% + 48px);
  margin: 0 -24px;
  padding: 0 24px;
  background: linear-gradient(90deg, rgba(245, 152, 42, 0.11), rgba(245, 152, 42, 0.015) 80%);
  box-shadow: 2px 0 0 var(--orange) inset;
}
.mcode__cap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}
.mcode__cap-mark {
  flex: none;
  width: 14px;
  height: 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(245, 152, 42, 0.4), rgba(245, 152, 42, 0.08));
  box-shadow: 2px 0 0 var(--orange) inset;
}

@media (max-width: 1000px) {
  .mcode__grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 420px) {
  .mcode__url-label {
    display: none;
  }
  .mcode__url {
    padding-left: 18px;
  }
}
@media (max-width: 520px) {
  .mcode__url {
    width: 100%;
  }
  .mcode__url-text {
    flex: 1;
    font-size: 0.8rem;
  }
  .mcode__pre {
    padding: 18px 16px 20px;
    font-size: 0.74rem;
  }
  .mcode__hl {
    min-width: calc(100% + 32px);
    margin: 0 -16px;
    padding: 0 16px;
  }
}

/* --------------------------------------------------------------- join -- */

.mjoin {
  position: relative;
  padding: clamp(110px, 12vw, 180px) 0 clamp(100px, 11vw, 160px);
  overflow: clip;
  isolation: isolate;
  text-align: center;
}
.mjoin::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-2) 30%, var(--line-2) 70%, transparent);
}
.mjoin__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(44% 46% at 50% 42%, rgba(245, 152, 42, 0.12), transparent 70%),
    radial-gradient(70% 50% at 50% 100%, rgba(200, 92, 35, 0.1), transparent 70%);
}
.mjoin__inner {
  display: grid;
  justify-items: center;
  gap: 26px;
}
.mjoin__bird {
  width: 72px;
  height: auto;
  filter: drop-shadow(0 12px 30px rgba(245, 152, 42, 0.5));
}
.mjoin h2 {
  max-width: 14ch;
}
.mjoin__lede {
  max-width: 36rem;
  margin-inline: auto;
}
.mjoin__ctas {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 8px;
}
.mjoin__ctas .cmd {
  height: 56px;
  padding-left: 22px;
}
@media (max-width: 520px) {
  .mjoin__ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
  }
  .mjoin__ctas .btn,
  .mjoin__ctas .cmd {
    width: 100%;
    justify-content: center;
  }
  .mjoin__ctas .cmd {
    justify-content: space-between;
  }
}

/* -------------------------------------------------------- preferences -- */

@media (prefers-reduced-motion: reduce) {
  .mpick__caret {
    animation: none;
  }
  .dial__body .dial__stop .dial__input:checked + .dial__knob {
    transform: none;
  }
}
@media (forced-colors: active) {
  .t-fill,
  .local__ram-num {
    color: CanvasText;
    background: none;
  }
  .lineup__t tbody tr.is-selected > th {
    outline: 2px solid Highlight;
  }
}
