@charset "UTF-8";
:root {
  --bg: #F5F7F4;
  --surface: #FFFFFF;
  --fg: #3F4652;
  --muted: rgba(63,70,82,.64);
  --faint: rgba(63,70,82,.45);
  --line: rgba(63,70,82,.14);
  --inset: rgba(63,70,82,.05);
  --hot: rgba(63,70,82,.09);
  --green: #67AE3A;
  --amber: #EFA635;
  --shadow: 0 2px 8px rgba(63,70,82,.10);
  --pop: 0 6px 24px rgba(63,70,82,.22);
  --radius: 8px;
  --sans: 'Helvetica Now Text','Helvetica Neue',Helvetica,Arial,sans-serif;
  --mono: ui-monospace,SFMono-Regular,Menlo,monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme=light]) {
    --bg: #2B3039;
    --surface: #3F4652;
    --fg: #FFFFFF;
    --muted: rgba(255,255,255,.68);
    --faint: rgba(255,255,255,.48);
    --line: rgba(255,255,255,.16);
    --inset: rgba(255,255,255,.06);
    --hot: rgba(255,255,255,.10);
    --shadow: 0 2px 10px rgba(0,0,0,.30);
    --pop: 0 6px 24px rgba(0,0,0,.45);
    color-scheme: dark;
  }
}
:root[data-theme=dark] {
  --bg: #2B3039;
  --surface: #3F4652;
  --fg: #FFFFFF;
  --muted: rgba(255,255,255,.68);
  --faint: rgba(255,255,255,.48);
  --line: rgba(255,255,255,.16);
  --inset: rgba(255,255,255,.06);
  --hot: rgba(255,255,255,.10);
  --shadow: 0 2px 10px rgba(0,0,0,.30);
  --pop: 0 6px 24px rgba(0,0,0,.45);
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--sans);
  line-height: 1.5;
  margin: 0;
  font-size: 14px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  margin: 0;
  line-height: 1.2;
  letter-spacing: 0.02em;
  font-weight: 700;
  text-wrap: balance;
}

a {
  color: inherit;
}

.wrap {
  max-width: 78rem;
  margin: 0 auto;
  padding-block: 1.75rem 3rem;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}

.top {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  flex-wrap: wrap;
}

h1 {
  font-size: 1.5rem;
}

.lede {
  margin: 0.85rem 0 0;
  color: var(--muted);
  max-width: 42rem;
  font-size: 0.95rem;
}

.modulos {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
  margin-left: auto;
  font-size: 0.82rem;
}

.modulos a {
  text-decoration: none;
  color: var(--muted);
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  border: 1px solid transparent;
  white-space: nowrap;
}
.modulos a:hover {
  background: var(--hot);
  color: var(--fg);
}
.modulos a.aqui {
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}
.modulos a.luego {
  opacity: 0.4;
  cursor: default;
}
.modulos a.luego:hover {
  background: none;
  color: var(--muted);
}

.yosoy {
  font-size: 0.82rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.3rem;
  align-items: baseline;
  margin-top: 1.3rem;
  padding-block: 0.7rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.82rem;
  color: var(--muted);
}
.bar b {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.bar .grow {
  flex: 1 1 auto;
  min-width: 0;
}

.tools {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
  margin-top: 1rem;
}

.tools .spacer {
  flex: 1 1 auto;
}

#lookup {
  flex: 0 1 19rem;
  min-width: 9rem;
}

.tira {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  min-width: 0;
}

.tira-fijo {
  flex: 0 0 auto;
}

.tira-rueda {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  padding-block: 0.2rem;
}
.tira-rueda > * {
  flex: 0 0 auto;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid var(--green);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.2rem 0.3rem 0.2rem 0.6rem;
  box-shadow: var(--shadow);
}
.chip b {
  font-weight: 700;
}
.chip a, .chip button {
  background: transparent;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0.1rem 0.3rem;
  border-radius: 999px;
  text-decoration: none;
}
.chip a:hover, .chip button:hover {
  color: var(--fg);
  background: var(--hot);
}

.vacio {
  color: var(--faint);
  font-size: 0.8rem;
  white-space: nowrap;
}
.vacio b {
  color: var(--muted);
}

.tbox {
  margin-top: 0.9rem;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: auto;
  max-height: min(68vh, 720px);
  overscroll-behavior: contain;
}

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.86rem;
}

thead th {
  text-align: left;
  font-weight: 700;
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0;
  background: var(--surface);
  white-space: nowrap;
  position: sticky;
  top: 0;
  z-index: 3;
  box-shadow: inset 0 -1px 0 var(--line);
  position: relative;
}

.hcell {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.7rem;
  min-height: 2.5rem;
}

.ht {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.dot {
  width: 0.42rem;
  height: 0.42rem;
  border-radius: 50%;
  background: var(--green);
  display: none;
}

th.filtered .dot {
  display: inline-block;
}

th.filtered .ht {
  color: var(--fg);
}

.hbtns {
  display: flex;
  gap: 0.1rem;
  margin-left: auto;
  opacity: 0;
  transition: opacity 0.12s;
}

th:hover .hbtns, th:focus-within .hbtns, th.open .hbtns, th.sorted .hbtns {
  opacity: 1;
}

.hb {
  background: transparent;
  border: 0;
  color: var(--faint);
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1;
  padding: 0.22rem 0.3rem;
  border-radius: 4px;
  font-family: var(--sans);
  text-decoration: none;
  display: inline-block;
}
.hb:hover {
  color: var(--fg);
  background: var(--hot);
}
.hb.on {
  color: #fff;
  background: var(--green);
}
.hb:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
  opacity: 1;
}

tbody td {
  padding: 0.5rem 0.7rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr.busy {
  background: linear-gradient(90deg, var(--amber) 0 3px, transparent 3px);
}

tbody tr.run {
  background: linear-gradient(90deg, var(--green) 0 3px, transparent 3px);
}

tbody tr.done td {
  color: var(--muted);
}

td.c-name {
  font-weight: 700;
  min-width: 13rem;
}

tr.done td.c-name {
  font-weight: 400;
}

td.c-name .sub {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--muted);
  margin-top: 0.1rem;
  max-width: 26rem;
}

.mono {
  font-family: var(--mono);
}

.nw {
  white-space: nowrap;
}

td.num {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.opencell {
  text-decoration: underline;
  text-decoration-color: var(--line);
  text-underline-offset: 3px;
}
.opencell:hover {
  text-decoration-color: var(--green);
}

.fpanel {
  position: relative;
}

.fpanel > summary {
  list-style: none;
  cursor: pointer;
}
.fpanel > summary::-webkit-details-marker {
  display: none;
}

.fpanel[open] > summary .hb {
  color: #fff;
  background: var(--green);
}

.panel {
  position: absolute;
  z-index: 40;
  top: 100%;
  left: 0;
  margin-top: 0.25rem;
  min-width: 17rem;
  max-width: min(24rem, 86vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--fg);
}
.panel h3 {
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}

.pitems {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  max-height: 14rem;
  overflow-y: auto;
  scrollbar-width: thin;
}

.opt {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.26rem 0.2rem;
  border-radius: 4px;
  cursor: pointer;
}
.opt:hover {
  background: var(--hot);
}
.opt input {
  accent-color: var(--green);
  width: 1rem;
  height: 1rem;
  margin: 0;
  flex: 0 0 auto;
}
.opt .lb {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.opt .ct {
  color: var(--faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
}

.pacts {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}

button, .btn, input[type=submit], input[type=button], input[type=reset] {
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  font-size: 0.84rem;
  border-radius: 6px;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 0.36rem 0.72rem;
  transition: filter 0.12s;
  text-decoration: none;
  display: inline-block;
}
button:focus-visible, .btn:focus-visible, input[type=submit]:focus-visible, input[type=button]:focus-visible, input[type=reset]:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 2px;
}
button[disabled], .btn[disabled], input[type=submit][disabled], input[type=button][disabled], input[type=reset][disabled] {
  cursor: not-allowed;
  opacity: 0.45;
}

.b-go {
  background: var(--green);
  color: #fff;
  border-color: var(--green);
  font-weight: 700;
}
.b-go:hover {
  filter: brightness(1.07);
}

.b-out {
  background: transparent;
  color: var(--fg);
  border-color: var(--line);
}
.b-out:hover {
  border-color: var(--faint);
}

.b-quiet {
  background: transparent;
  border-color: transparent;
  color: var(--faint);
  padding: 0.24rem 0.36rem;
  font-size: 0.78rem;
}
.b-quiet:hover {
  color: var(--fg);
  background: var(--hot);
}

.b-sm {
  padding: 0.28rem 0.55rem;
  font-size: 0.8rem;
}

select, input[type=text], input[type=date], input[type=email], input[type=password], textarea {
  font: inherit;
  font-size: 0.84rem;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.34rem 0.5rem;
  max-width: 100%;
}
select:focus-visible, input[type=text]:focus-visible, input[type=date]:focus-visible, input[type=email]:focus-visible, input[type=password]:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 1px;
}

textarea {
  resize: vertical;
}

.pie {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.6rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.pie b {
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}
.pie .sp {
  flex: 1 1 auto;
}
.pie select {
  width: auto;
}
.pie a {
  color: var(--green);
  font-weight: 700;
  text-decoration: none;
  padding: 0.1rem 0.35rem;
}
.pie a:hover {
  text-decoration: underline;
}
.pie .actual {
  color: var(--fg);
  font-weight: 700;
}

.skillbox {
  background: var(--amber);
  color: #3F4652;
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-top: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.87rem;
  line-height: 1.55;
}
.skillbox code {
  font-family: var(--mono);
  background: rgba(63, 70, 82, 0.16);
  border-radius: 5px;
  padding: 0.08rem 0.4rem;
  font-size: 0.85rem;
  word-break: break-all;
}
.skillbox h2 {
  font-size: 0.8rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}
.skillbox details > summary {
  cursor: pointer;
}

.skillhead {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  flex-wrap: wrap;
}
.skillhead .cuenta {
  font-size: 0.78rem;
  opacity: 0.75;
  margin-left: auto;
  white-space: nowrap;
}

.sk {
  border-top: 1px solid rgba(63, 70, 82, 0.22);
}
.sk:first-child {
  border-top: 0;
}

.skbar {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.15rem;
}
.skbar .nm {
  font-weight: 700;
  font-family: var(--mono);
  font-size: 0.86rem;
}
.skbar .v {
  font-family: var(--mono);
  font-size: 0.78rem;
  opacity: 0.75;
  white-space: nowrap;
}
.skbar .por {
  font-size: 0.78rem;
  opacity: 0.8;
  white-space: nowrap;
}
.skbar .por b {
  font-weight: 700;
}
.skbar .fecha {
  font-weight: 700;
  font-size: 0.78rem;
  background: rgba(63, 70, 82, 0.15);
  border-radius: 5px;
  padding: 0.12rem 0.5rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.skbody {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.1rem 0.15rem 0.75rem 1.35rem;
}
.skbody p {
  margin: 0;
  font-size: 0.82rem;
  max-width: 64ch;
}

.fich {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}

.ficha {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.3rem;
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 1.1rem;
}
.ficha header {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  flex-wrap: wrap;
}
.ficha header h2 {
  flex: 1 1 16rem;
}
.ficha h2 {
  font-size: 1.25rem;
  min-width: 0;
}

.detsec h3 {
  margin: 0 0 0.4rem;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.detsec p {
  margin: 0 0 0.5rem;
  max-width: 62ch;
}
.detsec p:last-child {
  margin-bottom: 0;
}
.detsec + .detsec {
  border-top: 1px solid var(--line);
  padding-top: 0.9rem;
}

.pasos {
  list-style: none;
  counter-reset: p;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.pasos li {
  counter-increment: p;
  display: grid;
  grid-template-columns: 1.6rem minmax(0, 1fr);
  gap: 0.6rem;
  align-items: start;
}
.pasos li::before {
  content: counter(p);
  font-weight: 700;
  color: var(--green);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
}
.pasos .pcuerpo {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.pasos li > *:not(.pcuerpo) {
  grid-column: 2;
  min-width: 0;
}
.pasos .pt {
  font-weight: 700;
}
.pasos code {
  display: block;
  margin-top: 0.25rem;
  background: var(--inset);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

.subl {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.subi {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  background: var(--inset);
  border-radius: 6px;
  padding: 0.55rem 0.65rem;
  border-left: 3px solid var(--line);
}
.subi.e-laeuft, .subi.e-pruefung {
  border-left-color: var(--amber);
}
.subi.e-fertig {
  border-left-color: var(--green);
}
.subi.e-fertig .subt {
  color: var(--muted);
  font-weight: 400;
}
.subi code {
  display: block;
  margin-top: 0.1rem;
  background: var(--surface);
  border-radius: 6px;
  padding: 0.45rem 0.6rem;
  font-family: var(--mono);
  font-size: 0.82rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.subtop {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.subn {
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  font-weight: 700;
  flex: 0 0 1.1rem;
}

.subt {
  font-weight: 700;
  flex: 1 1 12rem;
  min-width: 0;
}

.subq, .sube {
  font-size: 0.78rem;
  color: var(--muted);
  white-space: nowrap;
}

.subd {
  margin: 0;
  max-width: 62ch;
}

.subm {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
}
.subm b {
  color: var(--fg);
  font-weight: 700;
}

.shots {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
.shots figure {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}
.shots img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  border: 1px solid var(--line);
  display: block;
}
.shots figcaption {
  font-size: 0.8rem;
  color: var(--muted);
}

.sinimagen {
  background: var(--inset);
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 0.7rem;
  font-size: 0.8rem;
  color: var(--muted);
}
.sinimagen code {
  font-size: 0.74rem;
}

.tbchips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.fchip {
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.26rem 0.8rem;
  box-shadow: var(--shadow);
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}
.fchip:hover {
  background: var(--hot);
}
.fchip.puesta {
  border-color: var(--green);
  color: var(--green);
  font-weight: 700;
}

.tarjetas {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(21rem, 1fr));
}

.tarj {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.9rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border-left: 3px solid var(--line);
}
.tarj.libre {
  border-left-color: var(--amber);
}
.tarj.mia {
  border-left-color: var(--green);
}
.tarj h3 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.3;
}
.tarj h3 a {
  text-decoration: none;
}
.tarj .meta {
  font-size: 0.8rem;
  color: var(--muted);
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.tarj .pie {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-top: 0.1rem;
}

.barrita {
  height: 5px;
  border-radius: 3px;
  background: var(--inset);
  overflow: hidden;
}
.barrita i {
  display: block;
  height: 100%;
  background: var(--green);
}

.pregn {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}
.pregn.cero {
  color: var(--faint);
  font-weight: 400;
}

.sinasig {
  font-size: 0.78rem;
  color: var(--amber);
  font-weight: 700;
}

.marcapreg {
  display: inline-block;
  margin-left: 0.4rem;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--amber);
  white-space: nowrap;
}

.hilos {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.hilo {
  background: var(--inset);
  border-radius: 6px;
  padding: 0.6rem 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-left: 3px solid var(--amber);
}
.hilo.cerrada {
  border-left-color: var(--line);
  opacity: 0.75;
}
.hilo.contestada {
  border-left-color: var(--green);
}
.hilo .hcab {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--muted);
}
.hilo .hcab b {
  color: var(--fg);
}
.hilo .hest {
  margin-left: auto;
  font-weight: 700;
  white-space: nowrap;
}
.hilo .hasunto {
  font-weight: 700;
}

.msg1 {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  font-size: 0.86rem;
}
.msg1 .qn {
  font-size: 0.76rem;
  color: var(--muted);
}
.msg1 .qn b {
  color: var(--fg);
}
.msg1 p {
  margin: 0;
  white-space: pre-wrap;
  max-width: 62ch;
}

.aviso {
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  margin-top: 1rem;
  font-size: 0.88rem;
}
.aviso.bien {
  background: rgba(103, 174, 58, 0.14);
  border-left: 3px solid var(--green);
}
.aviso.ojo {
  background: rgba(239, 166, 53, 0.18);
  border-left: 3px solid var(--amber);
}

.empty {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.2rem;
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.empty strong {
  color: var(--fg);
  display: block;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
}

.trail {
  margin-top: 2.3rem;
}
.trail h2 {
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  padding-bottom: 0.45rem;
}
.trail ol {
  list-style: none;
  margin: 0.6rem 0 0;
  padding: 0;
}
.trail li {
  display: flex;
  flex-wrap: wrap;
  gap: 0.1rem 0.55rem;
  font-size: 0.83rem;
  color: var(--muted);
  padding-block: 0.35rem;
  border-bottom: 1px solid var(--line);
}
.trail time {
  font-variant-numeric: tabular-nums;
  color: var(--faint);
  flex: 0 0 9.5rem;
}
.trail b {
  color: var(--fg);
}

footer {
  margin-top: 2.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  font-size: 0.78rem;
  color: var(--faint);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.acceso {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.pista {
  font-size: 0.76rem;
  color: var(--muted);
  font-weight: 400;
  text-transform: none;
  letter-spacing: 0;
}

.acceso-caja {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 1.6rem;
  width: 100%;
  max-width: 23rem;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}
.acceso-caja label {
  display: grid;
  gap: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.acceso-caja input {
  font-size: 16px;
}

@media (hover: none) {
  .hbtns {
    opacity: 1;
  }
  .hcell {
    min-height: 46px;
  }
  .panel {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    top: auto;
    max-width: none;
    border-radius: var(--radius) var(--radius) 0 0;
    max-height: 80vh;
    overflow-y: auto;
    padding-bottom: calc(0.9rem + env(safe-area-inset-bottom, 0px));
  }
  .opt {
    min-height: 46px;
  }
  .tarjetas {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}
:root {
  --cielo: #85CEE4;
  --tira-alto: 24px;
}

@media (hover: none) {
  :root {
    --tira-alto: 40px;
  }
}
.tira {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.7rem;
  min-width: 0;
  line-height: 1;
}
.tira > *, .tira .tira-rueda > * {
  display: flex;
  align-items: center;
}
.tira .btn, .tira button, .tira .chip, .tira .vchip, .tira .pieza, .tira .vacio, .tira .atajo, .tira summary > .btn {
  min-height: var(--tira-alto);
  line-height: 1;
}

.tira-fijo {
  flex: 0 0 auto;
}

.tira-der {
  flex: 0 0 auto;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.tira-rueda {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-padding-inline: 1.7rem;
  padding-block: 0.2rem;
}
.tira-rueda > * {
  flex: 0 0 auto;
}
.tira-rueda::-webkit-scrollbar {
  height: 6px;
}
.tira-rueda::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 3px;
}

.tira-vistas {
  margin-top: 1rem;
}

.chip {
  border-color: var(--cielo);
}
.chip b {
  font-weight: 700;
  color: color-mix(in srgb, var(--cielo) 55%, var(--fg));
}

th.filtered .dot {
  background: var(--cielo);
}

.vchip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--fg);
  font-weight: 700;
  border-radius: 999px;
  padding: 0.24rem 0.75rem;
  box-shadow: var(--shadow);
  text-decoration: none;
}
.vchip:hover {
  background: var(--hot);
}
.vchip.puesta {
  border-color: var(--green);
  color: var(--green);
}
.vchip .vcam {
  font-weight: 400;
  color: var(--amber);
}

.pieza {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  font-size: 0.78rem;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.pieza .lbl {
  color: var(--muted);
  padding: 0.2rem 0.05rem 0.2rem 0.6rem;
}
.pieza .niv {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.2rem 0.4rem;
  white-space: nowrap;
  border-radius: 999px;
}
.pieza .niv:hover, .pieza .niv:focus-within {
  background: var(--hot);
}
.pieza .sep {
  color: var(--faint);
  padding: 0 0.22rem;
  font-size: 0.95rem;
}
.pieza a {
  opacity: 0;
  width: 0;
  padding: 0;
  overflow: hidden;
  transition: opacity 0.12s;
  color: var(--muted);
  text-decoration: none;
}
.pieza .niv:hover a, .pieza .niv:focus-within a {
  opacity: 1;
  width: auto;
  padding: 0 0.12rem;
}

@media (hover: none) {
  .pieza a {
    opacity: 1;
    width: auto;
    padding: 0.2rem 0.3rem;
  }
}
.atajo {
  color: var(--faint);
  font-size: 0.78rem;
  white-space: nowrap;
}
.atajo b {
  color: var(--muted);
}

.sombra {
  display: none;
  opacity: 0.7;
  font-size: 0.7rem;
}

body.mayus .hbtns {
  opacity: 1;
}
body.mayus .hb .sombra {
  display: inline;
}
body.mayus .hb {
  color: var(--green);
}
body.mayus .atajo, body.mayus .atajo b {
  color: var(--green);
}

.pliegue > summary {
  list-style: none;
  cursor: pointer;
}
.pliegue > summary::-webkit-details-marker {
  display: none;
}

.plegar {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--muted);
  font-size: 0.74rem;
  padding: 0.18rem 0.4rem;
  border-radius: 5px;
}
.plegar:hover {
  background: var(--hot);
  color: var(--fg);
}
.plegar::before {
  content: "⌄";
  display: inline-block;
  transition: transform 0.14s;
}

.pliegue[open] > summary .plegar::before {
  transform: rotate(180deg);
}

.pliegue[open] > summary .cerrado {
  display: none;
}

.fpanel > summary {
  list-style: none;
  cursor: pointer;
}
.fpanel > summary::-webkit-details-marker {
  display: none;
}

.fpanel[open] > summary .hb {
  color: #fff;
  background: var(--green);
}

.panel.flotando {
  position: fixed;
  z-index: 60;
}

.panel {
  min-width: 17rem;
  max-width: min(24rem, 90vw);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--pop);
  padding: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.84rem;
  font-weight: 400;
  color: var(--fg);
  line-height: 1.5;
}
.panel form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.panel .psec {
  border-top: 1px solid var(--line);
  padding-top: 0.5rem;
}
.panel .miss {
  color: var(--muted);
  font-size: 0.78rem;
  margin: 0;
}
.panel .estado {
  margin: 0 0 0.2rem;
  font-size: 0.78rem;
  color: var(--muted);
}
.panel .estado b {
  color: var(--fg);
}

.colpanel {
  min-width: 18rem;
  max-height: 70vh;
  overflow-y: auto;
}

.collista {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.colrow {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}
.colrow form {
  flex: 0 0 auto;
}
.colrow form:first-child {
  flex: 1 1 auto;
  min-width: 0;
}
.colrow .colbtn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  color: var(--fg);
  padding: 0.26rem 0.2rem;
  border-radius: 4px;
  font-size: 0.84rem;
}
.colrow .colbtn:hover {
  background: var(--hot);
}
.colrow .colbtn .marca {
  color: var(--green);
  width: 1rem;
}
.colrow .colbtn.apagada {
  color: var(--muted);
}
.colrow .colbtn.apagada .marca {
  color: var(--faint);
}
.colrow .opt.locked {
  flex: 1 1 auto;
  cursor: not-allowed;
  opacity: 0.75;
}
.colrow .opt.locked .ct {
  color: var(--cielo);
}
.colrow .mv {
  background: transparent;
  border: 0;
  color: var(--faint);
  cursor: pointer;
  padding: 0.2rem 0.3rem;
  border-radius: 4px;
  font-size: 0.8rem;
}
.colrow .mv:hover:not([disabled]) {
  color: var(--fg);
  background: var(--hot);
}
.colrow .mv[disabled] {
  opacity: 0.3;
}

th.th-cols, td.c-cols {
  width: 3rem;
  padding-left: 0.25rem;
  padding-right: 0.35rem;
}

thead th.th-cols {
  position: sticky;
  right: 0;
  background: var(--surface);
  z-index: 7;
}

.b-ic {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.cuentita {
  font-size: 0.7rem;
  font-variant-numeric: tabular-nums;
  color: var(--amber);
  font-weight: 700;
}

.xtxt {
  font-size: 0.76rem;
}

.ht .agarre {
  display: inline-block;
  width: 11px;
  margin-right: 1px;
  opacity: 0;
  transition: opacity 0.12s;
  font-size: 11px;
  color: var(--faint);
}

th:hover .ht .agarre, th:focus-within .ht .agarre {
  opacity: 0.6;
}

.hb sup {
  font-size: 0.6rem;
  vertical-align: super;
}

.enlinea {
  display: inline;
}

.enlinea-sel {
  font-size: 0.8rem;
  padding: 0.18rem 1.1rem 0.18rem 0.35rem;
  max-width: 9rem;
  border-color: transparent;
  background-color: transparent;
}
.enlinea-sel:hover {
  border-color: var(--line);
  background: var(--surface);
}
.enlinea-sel:focus {
  border-color: var(--green);
  background: var(--surface);
}

.vlista {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.vfila {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  border-radius: 5px;
}
.vfila.puesta {
  background: var(--inset);
}
.vfila .vsel {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  color: var(--fg);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 0.3rem 0.4rem;
  border-radius: 5px;
  text-decoration: none;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.vfila .vsel:hover {
  background: var(--hot);
}
.vfila .vren {
  flex: 0 0 auto;
  display: flex;
}
.vfila .vren input {
  width: 5rem;
  font-size: 0.76rem;
}
.vfila .ic {
  background: transparent;
  border: 0;
  color: var(--faint);
  cursor: pointer;
  padding: 0.24rem 0.3rem;
  border-radius: 4px;
  text-decoration: none;
  font-size: 0.8rem;
}
.vfila .ic:hover {
  color: var(--fg);
  background: var(--hot);
}
.vfila .ic.malo:hover {
  color: #fff;
  background: #b1400a;
}

.vnota {
  margin: 0;
  font-size: 0.76rem;
  color: var(--faint);
}

.campos {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
}
.campos label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}
.campos label span {
  font-size: 0.72rem;
  letter-spacing: 0.03em;
  color: var(--muted);
  text-transform: uppercase;
}
.campos label.ancho {
  grid-column: 1/-1;
}
.campos input, .campos select, .campos textarea {
  width: 100%;
}

.buscador {
  display: contents;
}

.detsec.acordado {
  border-left: 3px solid var(--green);
  padding-left: 0.9rem;
  background: var(--inset);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-block: 0.8rem;
  padding-right: 0.9rem;
}
.detsec.acordado p {
  max-width: 68ch;
}
.detsec.acordado strong {
  font-weight: 700;
}

.detsec.contexto {
  border-left: 3px solid var(--cielo);
  padding-left: 0.9rem;
  background: color-mix(in srgb, var(--cielo) 9%, transparent);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding-block: 0.8rem;
  padding-right: 0.9rem;
}
.detsec.contexto p {
  max-width: 68ch;
}

.detsec.reglas .reggrupo {
  margin: 0 0 1rem;
  padding: 0.1rem 0 0.1rem 0.85rem;
  border-left: 3px solid var(--cielo);
}
.detsec.reglas .reghead {
  margin: 0 0 0.45rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--cielo) 60%, var(--fg));
}
.detsec.reglas .reglist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.detsec.reglas .reglist li {
  display: grid;
  grid-template-columns: 1.6rem 1fr;
  align-items: baseline;
  gap: 0.1rem 0.15rem;
  margin: 0 0 0.3rem;
  line-height: 1.45;
}
.detsec.reglas .regn {
  font-variant-numeric: tabular-nums;
  font-size: 0.8rem;
  color: var(--muted);
}
.detsec.reglas .pcuerpo {
  min-width: 0;
  overflow-wrap: anywhere;
}
.detsec.reglas .regnota {
  margin: 0.35rem 0 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.tcat {
  table-layout: fixed;
}
.tcat thead th {
  padding: 0.4rem 0.5rem;
  white-space: normal;
  line-height: 1.25;
}
.tcat td {
  padding: 0.3rem 0.5rem;
  vertical-align: middle;
}
.tcat tbody tr + tr td {
  border-top: 1px solid var(--line);
}
.tcat input[type=text] {
  width: 100%;
}
.tcat code {
  font-size: 0.78rem;
}
.tcat .tcacc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  justify-content: flex-end;
  align-items: center;
}

.filanueva {
  display: flex;
  gap: 0.4rem;
  margin-top: 0.5rem;
}
.filanueva input[type=text] {
  flex: 1;
  min-width: 0;
}

.nodisp {
  font-size: 0.78rem;
  color: var(--muted);
  cursor: help;
}

.pill {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0 0.35rem;
  border-radius: 3px;
  font-size: 0.68rem;
  background: color-mix(in srgb, var(--cielo) 22%, transparent);
  color: color-mix(in srgb, var(--cielo) 55%, var(--fg));
}

.d-none {
  display: none;
}
