/*
 * Tunnel — web del producto.
 * Sin dependencias remotas. Tipografía: Overpass (OFL, autoalojada), inspirada en la
 * señalética de carreteras; Overpass Mono solo para URLs y teclas.
 */

@font-face {
  font-family: 'Overpass';
  src: url('fonts/overpass-latin-wght-normal.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Overpass Mono';
  src: url('fonts/overpass-mono-latin-wght-normal.woff2') format('woff2');
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light dark;
  --paper: #eef1f5;
  --surface: #ffffff;
  --ink: #132849;
  --ink-2: #46597a;
  --line: #c9d1de;
  --line-soft: #dde3ec;
  --signal: #b84a00;
  --signal-ink: #ffffff;
  --slate: #4a6290;

  /* Entornos de la demo (variantes AA de la paleta por defecto de la extensión) */
  --env-dev: #1d4ed8;
  --env-dev-ink: #ffffff;
  --env-pre: #f59e0b;
  --env-pre-ink: #000000;
  --env-pro: #b91c1c;
  --env-pro-ink: #ffffff;
  --env-dev-text: #1d4ed8;
  --env-pre-text: #a14f00;
  --env-pro-text: #b91c1c;
  --ok: #15803d;

  --sans: 'Overpass', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'Overpass Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --measure: 66ch;
  --wrap: 72rem;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
  --radius-s: 6px;
  --radius-m: 12px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0e1a2f;
    --surface: #15233d;
    --ink: #e8edf5;
    --ink-2: #a9b6cc;
    --line: #2f4268;
    --line-soft: #22335a;
    --signal: #ff8a3d;
    --signal-ink: #0e1a2f;
    --slate: #8fa6d4;
    --env-dev-text: #7aa7ff;
    --env-pre-text: #fbbf24;
    --env-pro-text: #f87171;
    --ok: #4ade80;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.125rem;
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
a:hover {
  text-decoration-thickness: 2px;
}

:focus-visible {
  outline: 3px solid var(--signal);
  outline-offset: 3px;
  border-radius: 2px;
}

code,
kbd,
.mono {
  font-family: var(--mono);
  font-size: 0.92em;
}

h1,
h2,
h3 {
  line-height: 1.1;
  margin: 0;
  text-wrap: balance;
}
p {
  margin: 0 0 1em;
  max-width: var(--measure);
}

.skip {
  position: absolute;
  left: 1rem;
  top: -10rem;
  background: var(--ink);
  color: var(--paper);
  padding: 0.6rem 1rem;
  border-radius: var(--radius-s);
  z-index: 10;
}
.skip:focus {
  top: 1rem;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- Cabecera ---------- */

.site-header {
  border-bottom: 1px solid var(--line-soft);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 4.25rem;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  text-decoration: none;
  margin-right: auto;
}
.brand img {
  width: 32px;
  height: 32px;
}
.site-nav ul {
  display: flex;
  gap: 1.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.98rem;
}
.site-nav a {
  text-decoration: none;
  color: var(--ink-2);
}
.site-nav a:hover {
  color: var(--ink);
  text-decoration: underline;
}
.lang {
  font-size: 0.95rem;
  font-weight: 600;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  text-decoration: none;
}
.lang:hover {
  border-color: var(--ink);
}
@media (max-width: 52rem) {
  .site-nav {
    display: none;
  }
}

/* ---------- Hero ---------- */

.hero {
  padding-block: clamp(3rem, 8vw, 6rem) clamp(3.5rem, 8vw, 6rem);
}
.hero h1 {
  font-size: clamp(2.5rem, 6.2vw, 4.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  max-width: 15ch;
}
.hero .lede {
  font-size: clamp(1.15rem, 1.6vw, 1.3rem);
  color: var(--ink-2);
  margin-top: 1.4rem;
  max-width: 46ch;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  margin-top: 2.25rem;
}
.store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.85rem;
  min-width: 15.5rem;
  padding: 0.95rem 1.6rem;
  border-radius: var(--radius-m);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  line-height: 1.15;
  box-shadow: 0 14px 28px -18px rgba(19, 40, 73, 0.55);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.store:hover,
.store:focus-visible {
  transform: translateY(-2px);
  border-color: var(--ink-2);
  box-shadow: 0 18px 32px -16px rgba(19, 40, 73, 0.6);
  text-decoration: none;
}
.store-ico {
  flex: none;
  width: 30px;
  height: 30px;
}
.store-txt {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.store-txt small {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  opacity: 0.8;
}
.store-txt strong {
  font-size: 1.15rem;
  font-weight: 800;
}
@media (max-width: 34rem) {
  .store {
    flex: 1 1 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .store {
    transition: none;
  }
  .store:hover,
  .store:focus-visible {
    transform: none;
  }
}
.store.is-soon {
  cursor: default;
  box-shadow: none;
  border-style: dashed;
}
.store.is-soon .store-ico {
  filter: grayscale(0.35);
  opacity: 0.85;
}
.store.is-soon .store-txt small {
  color: var(--ink-2);
}
.store.is-soon:hover {
  transform: none;
  border-color: var(--line);
  box-shadow: none;
}
.cta-note {
  margin-top: 0.9rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}

/* ---------- Demo: barra de navegador ---------- */

.demo {
  margin: clamp(2.75rem, 6vw, 4rem) 0 0;
}
.browser {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  box-shadow:
    0 1px 0 var(--line-soft),
    0 24px 48px -28px rgba(19, 40, 73, 0.45);
  overflow: hidden;
}
.browser-top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line-soft);
}
.dots {
  display: flex;
  gap: 6px;
  flex: none;
}
.dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--line);
}
.omnibox {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 0.8rem;
  min-width: 0;
  background: var(--paper);
  border-radius: 999px;
  padding: 0.5rem 0.6rem 0.5rem 1rem;
}
.url {
  flex: 1;
  min-width: 0;
  font-family: var(--mono);
  font-size: clamp(0.82rem, 1.9vw, 1.35rem);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
  color: var(--ink);
}
.u-scheme {
  color: var(--ink-2);
}
.u-slot {
  display: inline-block;
  vertical-align: top;
  height: 1.5em;
  width: 4ch;
  overflow: hidden;
}
.u-reel {
  display: block;
  font-weight: 700;
}
.u-reel span {
  display: block;
  height: 1.5em;
}
.u-reel .r-dev {
  color: var(--env-dev-text);
}
.u-reel .r-pre {
  color: var(--env-pre-text);
}
.u-host {
  font-weight: 600;
}
.u-path {
  color: var(--ink-2);
}

/* Insignia de entorno (como la del icono de la extensión) */
.badge {
  flex: none;
  position: relative;
  width: 3.6rem;
  height: 1.9rem;
  border-radius: var(--radius-s);
  overflow: hidden;
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}
.badge-reel {
  display: block;
}
.badge-reel span {
  display: grid;
  place-items: center;
  height: 1.9rem;
  padding-top: 0.12em;
}
.b-dev {
  background: var(--env-dev);
  color: var(--env-dev-ink);
}
.b-pre {
  background: var(--env-pre);
  color: var(--env-pre-ink);
}
.b-pro {
  background: var(--env-pro);
  color: var(--env-pro-ink);
}

.browser-body {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.5rem;
  align-items: center;
  padding: 1.25rem 1.25rem 1.35rem;
}
.rail {
  display: flex;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
.rail li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.8rem 0.25rem 0.6rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink-2);
}
.rail li::before {
  content: '';
  width: 0.6rem;
  height: 0.6rem;
  border-radius: 50%;
  background: currentColor;
}
.rail .l-dev {
  --c: var(--env-dev-text);
}
.rail .l-pre {
  --c: var(--env-pre-text);
}
.rail .l-pro {
  --c: var(--env-pro-text);
}
.rail .rail-host {
  font-family: var(--mono);
  font-weight: 400;
  font-size: 0.82rem;
}

.keys {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--ink-2);
  font-size: 0.9rem;
}

kbd {
  display: inline-block;
  min-width: 2em;
  padding: 0.2em 0.5em 0.1em;
  border: 1px solid var(--line);
  border-bottom-width: 3px;
  border-radius: var(--radius-s);
  background: var(--surface);
  color: var(--ink);
  font-weight: 600;
  text-align: center;
  line-height: 1.4;
}
.keys .k-arrow {
  transform-origin: 50% 100%;
}

.demo figcaption {
  margin-top: 1rem;
  font-size: 0.98rem;
  color: var(--ink-2);
  max-width: 60ch;
}

/* Animación: 9 s, tres fases (DEV → PRE → PRO → DEV). */
@media (prefers-reduced-motion: no-preference) {
  .u-slot {
    animation: slot 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  .u-reel {
    animation: reel 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  .badge-reel {
    animation: badge 9s cubic-bezier(0.65, 0, 0.35, 1) infinite;
  }
  .rail li {
    animation: lit 9s step-end infinite;
  }
  .rail .l-pre {
    animation-delay: -6s;
  }
  .rail .l-pro {
    animation-delay: -3s;
  }
  .keys .k-arrow {
    animation: press 9s ease-out infinite;
  }
}

@keyframes slot {
  0%,
  62% {
    width: 4ch;
  }
  66%,
  96% {
    width: 0;
  }
  100% {
    width: 4ch;
  }
}
@keyframes reel {
  0%,
  29% {
    margin-top: 0;
  }
  33%,
  95% {
    margin-top: -1.5em;
  }
  96%,
  100% {
    margin-top: 0;
  }
}
@keyframes badge {
  0%,
  29% {
    margin-top: 0;
  }
  33%,
  62% {
    margin-top: -1.9rem;
  }
  66%,
  96% {
    margin-top: -3.8rem;
  }
  100% {
    margin-top: -5.7rem;
  }
}
@keyframes lit {
  0% {
    color: var(--c);
    border-color: currentColor;
    background: var(--surface);
  }
  33.33% {
    color: var(--ink-2);
    border-color: var(--line);
    background: transparent;
  }
}
.rail li {
  color: var(--ink-2);
}
@keyframes press {
  0%,
  28%,
  31%,
  61%,
  64%,
  94%,
  97%,
  100% {
    transform: translateY(0);
    border-bottom-width: 3px;
  }
  29.5%,
  62.5%,
  95.5% {
    transform: translateY(2px);
    border-bottom-width: 1px;
  }
}

/* Movimiento reducido: estado fijo en PRE */
@media (prefers-reduced-motion: reduce) {
  .u-reel {
    margin-top: -1.5em;
  }
  .badge-reel {
    margin-top: -1.9rem;
  }
  .rail .l-pre {
    color: var(--c);
    border-color: currentColor;
    background: var(--surface);
  }
}

@media (max-width: 40rem) {
  .u-scheme {
    display: none;
  }
  .url {
    white-space: normal;
    font-size: 0.9rem;
  }
  .u-path {
    white-space: nowrap;
  }
  .omnibox {
    border-radius: var(--radius-m);
    align-items: flex-start;
  }
  .browser-body {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .rail .rail-host {
    display: none;
  }
  .dots {
    display: none;
  }
  .browser-top {
    padding: 0.7rem;
  }
  .badge {
    width: 3.1rem;
  }
}

/* ---------- Secciones ---------- */

.section {
  padding-block: clamp(3.5rem, 8vw, 6rem);
  border-top: 1px solid var(--line-soft);
}
.section-grid {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 2rem clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.section-head p {
  margin-top: 1rem;
  color: var(--ink-2);
}
@media (min-width: 60rem) {
  .section-head {
    position: sticky;
    top: 2rem;
  }
}
@media (max-width: 60rem) {
  .section-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Pasos (secuencia real) */
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  gap: 0;
}
.steps li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 3.5rem 1fr;
  gap: 0 1.25rem;
  padding: 1.6rem 0;
  border-top: 1px solid var(--line);
}
.steps li:first-child {
  border-top: 0;
  padding-top: 0;
}
.steps li::before {
  content: counter(step);
  grid-row: span 2;
  font-size: 3rem;
  font-weight: 800;
  line-height: 0.9;
  color: var(--signal);
}
.steps h3 {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 0.4rem;
}
.steps p {
  margin: 0;
  color: var(--ink-2);
}

/* Funciones: lista de definiciones a dos columnas */
.features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.25rem 2.5rem;
  margin: 0;
}
.features div {
  border-top: 2px solid var(--ink);
  padding-top: 0.9rem;
}
.features dt {
  font-weight: 700;
  font-size: 1.12rem;
  margin-bottom: 0.35rem;
}
.features dd {
  margin: 0;
  color: var(--ink-2);
  font-size: 1.02rem;
}
@media (max-width: 40rem) {
  .features {
    grid-template-columns: 1fr;
  }
}

/* Tabla de coincidencias */
.match-config {
  font-size: 1rem;
  color: var(--ink-2);
  margin-bottom: 1.25rem;
}
.match-config code {
  color: var(--ink);
}
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
  background: var(--surface);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.98rem;
}
caption {
  text-align: left;
  padding: 1rem 1.1rem 0.25rem;
  font-weight: 700;
}
th,
td {
  text-align: left;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line-soft);
  vertical-align: top;
}
thead th {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-2);
  border-top: 0;
}
td code {
  white-space: nowrap;
}
.res {
  font-weight: 700;
  white-space: nowrap;
}
.res-pre {
  color: var(--env-pre-text);
}
.res-pro {
  color: var(--env-pro-text);
}
.res-none {
  color: var(--ink-2);
  font-weight: 600;
}
.why {
  color: var(--ink-2);
}

/* Atajos */
.shortcuts {
  display: grid;
  gap: 1rem;
  margin: 0 0 1.5rem;
}
.shortcuts div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  padding: 1.1rem 1.25rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-m);
}
.shortcuts dt {
  display: inline-flex;
  gap: 0.3rem;
  align-items: center;
  font-size: 1.1rem;
}
.shortcuts dd {
  margin: 0;
  font-weight: 600;
}
.plus {
  color: var(--ink-2);
}

/* Privacidad */
.privacy-lead {
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
  max-width: 34ch;
  margin-bottom: 1.5rem;
}
.checks {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
  display: grid;
  gap: 0.6rem;
}
.checks li {
  position: relative;
  padding-left: 1.75rem;
}
.checks li::before {
  content: '';
  position: absolute;
  left: 0.15rem;
  top: 0.45em;
  width: 0.7rem;
  height: 0.4rem;
  border-left: 2.5px solid var(--ok);
  border-bottom: 2.5px solid var(--ok);
  transform: rotate(-45deg);
}
.table-scroll + .match-config {
  margin-top: 1.25rem;
}
.perms {
  min-width: 0;
}
.perms th[scope='row'] {
  white-space: nowrap;
}
.perms th[scope='row'] code {
  font-weight: 600;
  color: var(--ink);
}

/* FAQ */
.faq details {
  border-top: 1px solid var(--line);
}
.faq details:last-child {
  border-bottom: 1px solid var(--line);
}
.faq summary {
  cursor: pointer;
  list-style: none;
  padding: 1.15rem 2.5rem 1.15rem 0;
  font-weight: 700;
  font-size: 1.12rem;
  position: relative;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '';
  position: absolute;
  right: 0.4rem;
  top: 50%;
  width: 0.6rem;
  height: 0.6rem;
  border-right: 2px solid var(--ink-2);
  border-bottom: 2px solid var(--ink-2);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}
@media (prefers-reduced-motion: reduce) {
  .faq summary::after {
    transition: none;
  }
}
.faq details > div {
  padding: 0 0 1.25rem;
  color: var(--ink-2);
}
.faq details > div p:last-child {
  margin-bottom: 0;
}

/* Café */
.coffee {
  background: var(--ink);
  color: var(--paper);
  border-top: 0;
}
.coffee .section-head p,
.coffee p {
  color: inherit;
  opacity: 0.86;
}
.coffee h2 {
  color: inherit;
}
.btn-donate {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 0.5rem;
  padding: 0.9rem 1.4rem 0.8rem;
  border-radius: var(--radius-m);
  background: var(--signal);
  color: var(--signal-ink);
  font-weight: 800;
  font-size: 1.08rem;
  text-decoration: none;
}
.btn-donate:hover {
  filter: brightness(1.08);
}
.donate-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.donate-row .btn-donate {
  margin-top: 0;
}
.btn-donate-alt {
  display: inline-flex;
  align-items: center;
  padding: 0.85rem 1.2rem 0.75rem;
  border-radius: var(--radius-m);
  border: 1.5px solid currentColor;
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  opacity: 0.9;
}
.btn-donate-alt:hover {
  opacity: 1;
}
.coffee :focus-visible {
  outline-color: var(--paper);
}
.coffee .small {
  font-size: 0.95rem;
  margin-top: 1rem;
}
@media (prefers-color-scheme: dark) {
  .coffee {
    background: var(--surface);
    color: var(--ink);
  }
  .coffee :focus-visible {
    outline-color: var(--signal);
  }
}

/* Pie */
.site-footer {
  padding-block: 2.5rem 3rem;
  font-size: 0.95rem;
  color: var(--ink-2);
}
.site-footer .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  align-items: center;
}
.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.5rem;
  list-style: none;
  margin: 0 0 0 auto;
  padding: 0;
}
.site-footer p {
  margin: 0;
}

/* ---------- Páginas de texto (privacidad, 404) ---------- */

.doc {
  padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(3rem, 8vw, 6rem);
}
.doc-inner {
  max-width: 44rem;
}
.doc h1 {
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.doc .updated {
  color: var(--ink-2);
  margin-top: 0.75rem;
}
.doc .summary {
  margin: 2rem 0 2.5rem;
  padding: 1.25rem 1.4rem;
  border-left: 4px solid var(--ok);
  background: var(--surface);
  border-radius: 0 var(--radius-m) var(--radius-m) 0;
  font-size: 1.15rem;
  font-weight: 600;
}
.doc .summary p {
  margin: 0;
}
.doc h2 {
  font-size: 1.45rem;
  font-weight: 800;
  margin: 2.5rem 0 0.8rem;
}
.doc ul {
  padding-left: 1.2rem;
  margin: 0 0 1em;
}
.doc li {
  margin-bottom: 0.45rem;
}
.doc .table-scroll {
  margin: 1rem 0 1.25rem;
}
.notfound {
  min-height: 60vh;
  display: grid;
  align-content: center;
}
.notfound .url {
  flex: none;
  font-size: 1.1rem;
  margin: 1.5rem 0 2rem;
  padding: 0.7rem 1.1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.btn-plain {
  margin-right: 1rem;
  display: inline-block;
  padding: 0.75rem 1.2rem 0.65rem;
  border-radius: var(--radius-m);
  background: var(--ink);
  color: var(--paper);
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 40rem) {
  .match thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
  }
  .match tr {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.2rem 0.75rem;
    padding: 0.85rem 1rem;
    border-top: 1px solid var(--line-soft);
  }
  .match tbody tr:first-child {
    border-top: 0;
  }
  .match td {
    display: block;
    padding: 0;
    border: 0;
  }
  .match td:first-child {
    grid-column: 1 / -1;
  }
  .steps li {
    grid-template-columns: 2.25rem 1fr;
    gap: 0 0.75rem;
  }
  .steps li::before {
    font-size: 2.2rem;
  }
}

.perms td code {
  overflow-wrap: anywhere;
}
