/* olympus: el lenguaje de pakotp y del hub. Esquinas rectas, líneas finas, Geist y Geist Mono. */
:root {
  --bg: #ffffff;
  --sec: #f5f5f5;
  --ter: #ececec;
  --ink: #0a0a0a;
  --ink-2: #5c5c5c;
  --ink-3: #757575;
  --line: #e5e5e5;
  --input: #d4d4d4;
  --foco: #5967e8;
  --mal: #d0021b;
  --vidrio: rgba(255, 255, 255, .86);
  /* una tinta por etapa */
  --e-idea: #6b6b6b;
  --e-borrador: #b45f06;
  --e-marcha: #2f6be0;
  --e-github: #23864f;
  --e-archivada: #9a9a9a;
  /* código */
  --c-fondo: #f7f7f7;
  --c-com: #8a8a8a;
  --c-clave: #b4236b;
  --c-cad: #23864f;
  --c-num: #b45f06;
  --c-fun: #2f5fd0;
  --c-tipo: #7a4fd0;
  --sans: Geist, "Geist Fallback", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sale: cubic-bezier(.16, 1, .3, 1);
  --gh: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.58 2 12.23c0 4.52 2.87 8.35 6.84 9.7.5.1.68-.22.68-.49l-.01-1.9c-2.78.62-3.37-1.21-3.37-1.21-.46-1.18-1.11-1.5-1.11-1.5-.91-.64.07-.62.07-.62 1 .07 1.53 1.06 1.53 1.06.9 1.57 2.35 1.12 2.92.86.09-.67.35-1.12.64-1.38-2.22-.26-4.56-1.14-4.56-5.07 0-1.12.39-2.04 1.03-2.76-.1-.26-.45-1.3.1-2.71 0 0 .84-.28 2.75 1.05A9.4 9.4 0 0 1 12 6.84c.85 0 1.7.12 2.5.34 1.91-1.33 2.75-1.05 2.75-1.05.55 1.41.2 2.45.1 2.71.64.72 1.03 1.64 1.03 2.76 0 3.94-2.34 4.8-4.57 5.06.36.32.68.94.68 1.9l-.01 2.81c0 .27.18.6.69.49A10.2 10.2 0 0 0 22 12.23C22 6.58 17.52 2 12 2Z'/%3E%3C/svg%3E");
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0a0a0a;
  --sec: #171717;
  --ter: #222222;
  --ink: #fafafa;
  --ink-2: #a1a1a1;
  --ink-3: #7a7a7a;
  --line: rgba(255, 255, 255, .1);
  --input: rgba(255, 255, 255, .18);
  --foco: #8b95f5;
  --mal: #ff6568;
  --vidrio: rgba(10, 10, 10, .82);
  --e-idea: #a1a1a1;
  --e-borrador: #f3a45a;
  --e-marcha: #6f9bff;
  --e-github: #57bc80;
  --e-archivada: #6e6e6e;
  --c-fondo: #111111;
  --c-com: #6f6f6f;
  --c-clave: #ff7ab6;
  --c-cad: #7fd19b;
  --c-num: #f3b37a;
  --c-fun: #8fb2ff;
  --c-tipo: #c3a6ff;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; background: var(--bg); scrollbar-color: var(--input) transparent; }
body {
  margin: 0; min-height: 100dvh; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--sans); -webkit-font-smoothing: antialiased;
}
::selection { background: var(--ink); color: var(--bg); }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 1.5px solid var(--foco); outline-offset: 2px; }
.ico { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.mono { font-family: var(--mono); }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ------------------------------------------------------------ barra superior */
.barra { position: sticky; top: 0; z-index: 30; display: flex; justify-content: space-between; align-items: stretch;
  height: 56px; padding-top: env(safe-area-inset-top); background: var(--vidrio); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line); }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 20px; border-right: 1px solid var(--line); text-decoration: none; }
.logo-marca { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: square; }
.logo-txt { font: 600 21px/1 var(--sans); letter-spacing: -.045em; }
.barra-der { display: flex; align-items: stretch; }
.celda { display: flex; align-items: center; gap: 8px; border: 0; border-left: 1px solid var(--line); background: none; padding: 0 18px; cursor: pointer;
  font: 500 14px var(--sans); color: var(--ink-2); white-space: nowrap; text-decoration: none; transition: background .2s, color .2s; }
.celda:hover { background: var(--sec); color: var(--ink); }
.celda-icono { padding: 0 18px; }
.celda-fuerte { background: var(--ink); color: var(--bg); }
.celda-fuerte:hover { background: var(--ink); color: var(--bg); opacity: .88; }
.celda[aria-current="page"] { color: var(--ink); background: var(--sec); }
@media (max-width: 640px) {
  .logo { padding: 0 16px; }
  .celda, .celda-icono { padding: 0 14px; }
  .celda-fuerte span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #cuentaBtn { max-width: 34vw; overflow: hidden; text-overflow: ellipsis; display: block; line-height: 55px; }
}

/* ------------------------------------------------------------ armazón */
.vista { outline: none; }
.marco { display: grid; grid-template-columns: minmax(0, 1fr); min-height: calc(100dvh - 56px); }
@media (min-width: 900px) {
  .marco { grid-template-columns: 248px minmax(0, 1fr); }
  .riel { position: sticky; top: 56px; align-self: start; height: calc(100dvh - 56px); overflow-y: auto; border-right: 1px solid var(--line); }
}

/* riel: buscador + etapas */
.buscador { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--ink-3); }
.buscador:focus-within { color: var(--ink); }
.buscador input { flex: 1; min-width: 0; border: 0; background: none; outline: none; font-size: 14px; color: var(--ink); }
.buscador input::placeholder { color: var(--ink-3); }
.etapas { list-style: none; margin: 0; padding: 8px 0; }
.etapas button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 38px; padding: 0 16px; border: 0; background: none; cursor: pointer;
  font-size: 14px; color: var(--ink-2); text-align: left; transition: background .2s, color .2s; }
.etapas button:hover { background: var(--sec); color: var(--ink); }
.etapas button[aria-pressed="true"] { color: var(--ink); background: var(--sec); font-weight: 500; }
.etapas .n { margin-left: auto; font: 400 12px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.etapas .sin-punto { width: 8px; flex: none; }
@media (max-width: 899px) {
  .riel { border-bottom: 1px solid var(--line); }
  .etapas { display: flex; overflow-x: auto; padding: 0; scrollbar-width: none; }
  .etapas li { flex: none; }
  .etapas button { min-height: 44px; border-right: 1px solid var(--line); }
}

/* punto de etapa: cuadrado, nunca late */
.punto { width: 8px; height: 8px; flex: none; background: var(--e, var(--e-idea)); }
[data-e="idea"] { --e: var(--e-idea); }
[data-e="borrador"] { --e: var(--e-borrador); }
[data-e="marcha"] { --e: var(--e-marcha); }
[data-e="github"] { --e: var(--e-github); }
[data-e="archivada"] { --e: var(--e-archivada); }

/* ------------------------------------------------------------ hoja de ideas */
.hoja-cab { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 52px; padding: 0 24px; border-bottom: 1px solid var(--line); }
.hoja-cab h1 { margin: 0; font: 600 15px/1 var(--sans); letter-spacing: -.01em; }
.hoja-cab .cuenta { font: 400 12px var(--mono); color: var(--ink-3); font-variant-numeric: tabular-nums; }
.filas { list-style: none; margin: 0; padding: 0; }
.fila { position: relative; border-bottom: 1px solid var(--line); }
.fila a { display: grid; grid-template-columns: minmax(0, 1fr) 132px; gap: 6px 28px; padding: 18px 24px 17px; text-decoration: none; }
.fila-relleno { position: absolute; inset: 0; background: var(--sec); clip-path: inset(0 100% 0 0); pointer-events: none; }
.fila a > * { position: relative; }
.fila-t { margin: 0; font: 600 17px/1.3 var(--sans); letter-spacing: -.015em; text-wrap: balance; }
.fila-x { grid-column: 1; margin: 0; font-size: 14px; color: var(--ink-2); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.fila-m { grid-column: 1; display: flex; flex-wrap: wrap; gap: 4px 14px; font: 400 12px/1.5 var(--mono); color: var(--ink-3); }
.fila-m .repo { display: inline-flex; align-items: center; gap: 6px; }
.fila-m .repo .ico { width: 13px; height: 13px; }
.fila-e { grid-column: 2; grid-row: 1 / span 3; align-self: start; display: flex; align-items: center; gap: 8px; padding-top: 5px;
  font-size: 13px; color: var(--ink-2); }
.fila[data-e="archivada"] .fila-t, .fila[data-e="archivada"] .fila-x { color: var(--ink-3); }
@media (max-width: 640px) {
  .hoja-cab { padding: 0 16px; }
  .fila a { grid-template-columns: 1fr; padding: 16px; }
  .fila-e { grid-column: 1; grid-row: auto; padding-top: 2px; order: -1; font-size: 12px; }
  .fila-x { -webkit-line-clamp: 2; }
}

.vacio { padding: 72px 24px; max-width: 520px; }
.vacio h2 { margin: 0 0 8px; font: 600 22px/1.25 var(--sans); letter-spacing: -.02em; }
.vacio p { margin: 0 0 20px; color: var(--ink-2); }

/* ------------------------------------------------------------ botones y campos */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; cursor: pointer;
  border: 1px solid var(--input); background: none; font: 500 14px var(--sans); color: var(--ink); text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, opacity .2s; }
.boton:hover { background: var(--sec); }
.boton-fuerte { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.boton-fuerte:hover { background: var(--ink); opacity: .86; }
.boton-peligro { color: var(--mal); }
.boton:disabled { opacity: .45; cursor: default; }
.boton-chico { min-height: 32px; padding: 0 12px; font-size: 13px; }
.campo { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.campo > span { font-size: 13px; font-weight: 500; color: var(--ink-2); }
.entrada { width: 100%; min-height: 42px; padding: 0 12px; border: 1px solid var(--input); background: var(--bg); outline: none; font-size: 15px; transition: border-color .2s; }
.entrada:focus { border-color: var(--ink); }
.entrada::placeholder { color: var(--ink-3); }
.error { margin: 0; font-size: 13.5px; color: var(--mal); }
.nota { margin: 0; font-size: 13px; color: var(--ink-3); }
kbd { font: 500 11px var(--mono); padding: 1px 5px; border: 1px solid var(--line); color: var(--ink-2); }

/* ------------------------------------------------------------ acceso (entrar / invitación) */
.acceso { min-height: calc(100dvh - 56px); display: grid; grid-template-columns: 1fr; }
.acceso-lado { display: none; }
@media (min-width: 900px) {
  .acceso { grid-template-columns: minmax(0, 1fr) 480px; }
  .acceso-lado { display: flex; flex-direction: column; justify-content: space-between; padding: 48px; border-right: 1px solid var(--line); }
  .acceso-lado p { max-width: 22ch; margin: 0; font: 600 34px/1.12 var(--sans); letter-spacing: -.035em; text-wrap: balance; }
  .acceso-lado ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); max-width: 560px; }
  .acceso-lado li { display: flex; align-items: center; gap: 14px; height: 64px; border-bottom: 1px solid var(--line); font: 500 20px var(--sans); letter-spacing: -.02em; color: var(--ink-2); }
  .acceso-lado li .punto { width: 10px; height: 10px; }
  .acceso-lado li span:last-child { margin-left: auto; font: 400 12px var(--mono); color: var(--ink-3); }
}
.acceso-form { display: grid; align-content: center; gap: 18px; padding: 48px 32px; max-width: 480px; width: 100%; margin: 0 auto; }
.acceso-form h1 { margin: 0; font: 600 30px/1.1 var(--sans); letter-spacing: -.035em; }
.acceso-form .sub { margin: -8px 0 6px; color: var(--ink-2); }
.acceso-form .boton { min-height: 44px; }

/* ------------------------------------------------------------ idea */
.doc { padding: 40px 24px 96px; }
.doc-in { max-width: 760px; margin: 0 auto; }
.volver { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; font-size: 14px; color: var(--ink-2); text-decoration: none; transition: color .2s; }
.volver:hover { color: var(--ink); }
.doc-t { margin: 0 0 14px; font: 600 clamp(28px, 4.2vw, 42px)/1.08 var(--sans); letter-spacing: -.035em; text-wrap: balance; overflow-wrap: anywhere; }
.doc-m { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-bottom: 28px; font: 400 12.5px/1.5 var(--mono); color: var(--ink-3); }
.doc-m b { font-weight: 500; color: var(--ink-2); }
.doc-acc { display: flex; gap: 8px; margin-left: auto; font-family: var(--sans); }

/* riel de etapas (la firma): el relleno se desliza entre celdas */
.riel-etapas { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); margin-bottom: 12px; }
.riel-etapas button { position: relative; z-index: 1; display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 14px; border: 0; border-left: 1px solid var(--line);
  background: none; cursor: pointer; font-size: 14px; color: var(--ink-2); text-align: left; transition: color .45s var(--sale); }
.riel-etapas button:first-child { border-left: 0; }
.riel-etapas button:disabled { cursor: default; }
.riel-etapas button:not(:disabled):not([aria-pressed="true"]):hover { color: var(--ink); }
.riel-etapas button[aria-pressed="true"] { color: var(--bg); }
.riel-etapas .paso { font: 400 11px var(--mono); color: inherit; opacity: .6; }
.riel-relleno { position: absolute; inset: 0; z-index: 0; background: var(--ink); pointer-events: none;
  clip-path: inset(0 calc(100% - var(--hasta, 25%)) 0 var(--desde, 0%)); transition: clip-path .7s var(--sale); }
.riel-relleno::after { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--e, transparent); transition: background .7s var(--sale); }
.riel-relleno[data-fuera] { clip-path: inset(0 100% 0 0); }
.archivo { display: flex; align-items: center; gap: 10px; margin-bottom: 36px; font-size: 13.5px; color: var(--ink-3); }
.archivo button { border: 0; background: none; padding: 0; cursor: pointer; font-size: 13.5px; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--input); }
.boton-link { border: 0; background: none; padding: 0; cursor: pointer; font-size: inherit; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--input); }
.boton-link:hover { color: var(--ink); text-decoration-color: currentColor; }
.archivo button:hover { color: var(--ink); text-decoration-color: currentColor; }
@media (max-width: 640px) {
  .riel-etapas { grid-template-columns: repeat(2, 1fr); }
  .riel-etapas button:nth-child(3) { border-left: 0; }
  .riel-etapas button:nth-child(n+3) { border-top: 1px solid var(--line); }
  .riel-relleno { display: none; }
  .riel-etapas button[aria-pressed="true"] { background: var(--ink); }
}

/* tarjeta del repo */
.repo-c { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 14px; padding: 16px 18px; margin-bottom: 36px;
  border: 1px solid var(--line); text-decoration: none; transition: background .2s, border-color .2s; }
.repo-c:hover { background: var(--sec); border-color: var(--input); }
.repo-c > .ico { width: 22px; height: 22px; grid-row: 1 / span 2; }
.repo-n { font: 500 14px var(--mono); overflow-wrap: anywhere; }
.repo-d { grid-column: 2; font-size: 13.5px; color: var(--ink-2); }
.repo-d:empty { display: none; }
.repo-s { grid-column: 3; grid-row: 1 / span 2; display: flex; align-items: center; gap: 14px; font: 400 12px var(--mono); color: var(--ink-3); }
.repo-s span { display: inline-flex; align-items: center; gap: 5px; }
.repo-s .ico { width: 13px; height: 13px; }
@media (max-width: 640px) { .repo-s { grid-column: 2; grid-row: auto; } }

/* ------------------------------------------------------------ markdown */
.md { max-width: 68ch; font-size: 16px; line-height: 1.7; overflow-wrap: break-word; }
.md > :first-child { margin-top: 0; }
.md > :last-child { margin-bottom: 0; }
.md p, .md ul, .md ol, .md blockquote, .md pre, .md table { margin: 0 0 1.1em; }
.md h1, .md h2, .md h3, .md h4 { margin: 1.9em 0 .55em; line-height: 1.25; letter-spacing: -.02em; font-weight: 600; }
.md h1 { font-size: 26px; }
.md h2 { font-size: 21px; }
.md h3 { font-size: 17px; }
.md h4 { font-size: 15px; }
.md a { text-decoration: underline; text-decoration-color: var(--input); text-underline-offset: 3px; transition: text-decoration-color .2s; }
.md a:hover { text-decoration-color: currentColor; }
.md a.gh { display: inline-flex; align-items: baseline; gap: 5px; }
.md a.gh::before { content: ""; width: .85em; height: .85em; align-self: center; background: currentColor;
  -webkit-mask: var(--gh) center / contain no-repeat; mask: var(--gh) center / contain no-repeat; }
.md ul, .md ol { padding-left: 1.4em; }
.md li + li { margin-top: .3em; }
.md li::marker { color: var(--ink-3); }
.md input[type="checkbox"] { margin: 0 .5em 0 0; accent-color: var(--ink); vertical-align: -1px; }
.md li:has(> input[type="checkbox"]) { list-style: none; margin-left: -1.4em; }
.md blockquote { padding: 2px 0 2px 18px; border-left: 1px solid var(--input); color: var(--ink-2); }
.md hr { margin: 2.2em 0; border: 0; border-top: 1px solid var(--line); }
.md img { max-width: 100%; height: auto; border: 1px solid var(--line); }
.md table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 14px; }
.md th, .md td { padding: 8px 14px; border: 1px solid var(--line); text-align: left; }
.md th { font-weight: 600; background: var(--sec); }
.md :not(pre) > code { padding: .12em .38em; background: var(--sec); border: 1px solid var(--line); font: 400 .86em var(--mono); }
.bloque { position: relative; margin: 0 0 1.3em; border: 1px solid var(--line); background: var(--c-fondo); }
.bloque-cab { display: flex; align-items: center; justify-content: space-between; height: 34px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line);
  font: 400 11.5px var(--mono); color: var(--ink-3); }
.bloque-cab button { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 8px; border: 0; background: none; cursor: pointer;
  font: 400 11.5px var(--mono); color: var(--ink-3); transition: color .2s, background .2s; }
.bloque-cab button:hover { color: var(--ink); background: var(--ter); }
.bloque-cab .ico { width: 13px; height: 13px; }
.md pre { margin: 0; padding: 14px 16px; overflow-x: auto; font: 400 13.5px/1.65 var(--mono); tab-size: 2; scrollbar-width: thin; }
.md pre code { font: inherit; }

/* resaltado (highlight.js) con la paleta de la casa */
.hljs-comment, .hljs-quote { color: var(--c-com); font-style: italic; }
.hljs-keyword, .hljs-selector-tag, .hljs-literal, .hljs-built_in, .hljs-meta .hljs-keyword { color: var(--c-clave); }
.hljs-string, .hljs-regexp, .hljs-addition, .hljs-template-tag, .hljs-meta .hljs-string { color: var(--c-cad); }
.hljs-number, .hljs-symbol, .hljs-bullet { color: var(--c-num); }
.hljs-title, .hljs-title.function_, .hljs-section, .hljs-selector-id { color: var(--c-fun); }
.hljs-type, .hljs-title.class_, .hljs-class .hljs-title, .hljs-attr, .hljs-attribute, .hljs-variable.language_ { color: var(--c-tipo); }
.hljs-deletion { color: var(--mal); }
.hljs-meta, .hljs-params, .hljs-variable, .hljs-property { color: var(--ink); }
.hljs-emphasis { font-style: italic; }
.hljs-strong { font-weight: 600; }

/* ------------------------------------------------------------ editor */
.editor { display: grid; grid-template-rows: auto 1fr; min-height: calc(100dvh - 56px); }
.ed-cab { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 12px 0 24px; border-bottom: 1px solid var(--line); }
.ed-cab .volver { margin: 0; }
.ed-cab .error { margin-left: auto; min-height: 0; text-align: right; }
.ed-cab .boton { flex: none; }
.ed-cuerpo { padding: 32px 24px 64px; }
.ed-in { max-width: 860px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.ed-titulo { width: 100%; border: 0; border-bottom: 1px solid var(--line); background: none; outline: none; padding: 0 0 12px;
  font: 600 clamp(26px, 3.6vw, 36px)/1.15 var(--sans); letter-spacing: -.035em; transition: border-color .2s; }
.ed-titulo:focus { border-color: var(--ink); }
.ed-titulo::placeholder { color: var(--ink-3); }
.ed-fila { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 900px) { .ed-fila { grid-template-columns: max-content minmax(0, 1fr); gap: 20px; } }
.selector { display: grid; grid-template-columns: repeat(5, auto); border: 1px solid var(--input); width: max-content; max-width: 100%; overflow-x: auto; }
.selector button { display: flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px; border: 0; border-left: 1px solid var(--input); background: none; cursor: pointer;
  font-size: 13.5px; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s; }
.selector button:first-child { border-left: 0; }
.selector button:hover { color: var(--ink); background: var(--sec); }
.selector button[aria-pressed="true"] { color: var(--ink); background: var(--sec); font-weight: 500; }
.selector .punto { opacity: .9; }
.repo-campo { position: relative; }
.repo-campo .ico { position: absolute; left: 12px; top: 13px; color: var(--ink-3); }
.repo-campo .entrada { padding-left: 36px; font: 400 14px var(--mono); }

.escritorio { border: 1px solid var(--input); transition: border-color .2s; }
.escritorio:focus-within { border-color: var(--ink-3); }
.esc-barra { display: flex; align-items: stretch; height: 40px; border-bottom: 1px solid var(--line); }
.esc-pest { display: flex; }
.esc-pest button { white-space: nowrap; border: 0; border-right: 1px solid var(--line); background: none; padding: 0 14px; cursor: pointer; font-size: 13.5px; color: var(--ink-2); transition: background .2s, color .2s; }
.esc-pest button:hover { color: var(--ink); }
.esc-pest button[aria-selected="true"] { color: var(--ink); background: var(--sec); font-weight: 500; }
.herr { display: flex; margin-left: auto; }
.herr button { display: grid; place-items: center; width: 40px; border: 0; border-left: 1px solid var(--line); background: none; cursor: pointer; color: var(--ink-2); transition: background .2s, color .2s; }
.herr button:hover { color: var(--ink); background: var(--sec); }
.texto { display: block; width: 100%; min-height: 46vh; padding: 16px 18px; border: 0; background: var(--bg); outline: none; resize: vertical;
  font: 400 14px/1.7 var(--mono); tab-size: 2; caret-color: var(--ink); }
.texto::placeholder { color: var(--ink-3); }
.previa { min-height: 46vh; padding: 20px 22px; }
.previa .vacia { color: var(--ink-3); font-size: 14px; }
.ayuda { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--ink-3); }
.ayuda code { font: 400 12px var(--mono); color: var(--ink-2); }
@media (max-width: 640px) {
  .ed-cab { padding-left: 16px; }
  .ed-cuerpo { padding: 24px 16px 48px; }
  .herr button { width: 36px; }
  .herr [data-h="titulo"], .herr [data-h="lista"] { display: none; }
  .esc-pest button { padding: 0 10px; }
  .doc { padding: 28px 16px 72px; }
}

/* ------------------------------------------------------------ equipo */
.equipo { padding: 40px 24px 96px; max-width: 808px; margin: 0 auto; }
.equipo h1 { margin: 0 0 6px; font: 600 30px/1.1 var(--sans); letter-spacing: -.035em; }
.equipo .sub { margin: 0 0 36px; color: var(--ink-2); }
.equipo h2 { margin: 44px 0 14px; font: 600 17px/1.3 var(--sans); letter-spacing: -.015em; }
.lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lista li { display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.lista .quien { font-weight: 500; }
.lista .dato { font: 400 12.5px var(--mono); color: var(--ink-3); }
.lista .acc { margin-left: auto; display: flex; gap: 8px; }
.lista .enlace { flex: 1; min-width: 0; font: 400 12.5px var(--mono); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.invitar { display: flex; gap: 8px; margin-bottom: 18px; }
.invitar .entrada { max-width: 320px; }
.form-fila { display: grid; gap: 12px; max-width: 420px; }

/* ------------------------------------------------------------ aviso */
.aviso { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 50; translate: -50% 12px; padding: 11px 16px;
  background: var(--ink); color: var(--bg); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .35s var(--sale), translate .5s var(--sale); }
.aviso.ver { opacity: 1; translate: -50% 0; }

/* ------------------------------------------------------------ movimiento */
::view-transition-old(root) { animation: .26s var(--sale) both vt-sale; }
::view-transition-new(root) { animation: .5s var(--sale) both vt-entra; }
@keyframes vt-sale { to { opacity: 0; } }
@keyframes vt-entra { from { opacity: 0; transform: translateY(8px); } }
.barra { view-transition-name: barra; }
::view-transition-group(barra) { animation: none; }

@media (prefers-reduced-motion: reduce) {
  ::view-transition-new(root) { animation-name: vt-funde; }
  @keyframes vt-funde { from { opacity: 0; } }
  .riel-relleno, .riel-relleno::after { transition-duration: .01s; }
}
