/* Vista previa de la app en el tour de /explora-cloob/. Copia la estructura de cloob-frontend:
   canvas #F1F4F9, header y cabecera del sidebar en el color del club, fila de tarjetas del área
   y la vista dentro de un contenedor blanco con borde #E4E9F2, radio 10 px y sin sombra.
   Tokens de UI.md / tailwind.config.js / areaColors.ts. Estados con icono y palabra.
   Se descarga solo tras verificar el correo. Mobile-first. */

.oa {
  --canvas: #f1f4f9;
  --card: #ffffff;
  --sunken: #f7f8fb;
  --subtle: #e4e9f2;
  --strong: #cfd8e6;
  --navy: #013369;
  --link: #0086d4;
  --fg-title: #013369;
  --fg: #26303f;
  --fg-muted: #667085;
  --fg-dark: #101828;
  --ok-bg: #e7f6ec;
  --ok-ink: #12703a;
  --warn-bg: #fdf3dc;
  --warn-ink: #8a5300;
  --err-bg: #fde8ea;
  --err-ink: #a3121f;
  --info-bg: #e6f0fb;
  --info-ink: #1d5aa6;
  --body-font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --display-font: 'Poppins', 'Helvetica Neue', Arial, sans-serif;

  position: fixed;
  inset: 0;
  display: grid;
  grid-template-rows: auto 1fr;
  background: var(--canvas);
  color: var(--fg);
  font: 400 14px/1.45 var(--body-font);
  z-index: 10;
}

/* Barra del tour: fuera del «producto» */
.oa-tourbar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  padding: 4px 12px;
  background: #090122;
  color: #fff;
  font: 500 12px/1.2 var(--display-font);
}
.oa-tourbar__title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.oa-tourbar__progress {
  display: none;
  color: rgba(255, 255, 255, 0.7);
}
.oa-tourbar__cta {
  margin-left: auto;
  flex: none;
  min-height: 32px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: #df3448;
  color: #fff;
  font: 600 12px/1 var(--display-font);
  cursor: pointer;
}
@media (min-width: 768px) {
  .oa-tourbar__progress {
    display: inline;
  }
}

/* Marco: sidebar + columna (header + contenido) */
.oa-frame {
  display: flex;
  min-height: 0;
  position: relative;
}
.oa-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

/* Header en el color del club */
.oa-header {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
  padding: 0 12px;
  background: var(--club, #013369);
  color: #fff;
  flex: none;
}
.oa-menu {
  width: 44px;
  height: 44px;
  margin-left: -6px;
  border: 0;
  background: none;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.oa-menu .oa-ico {
  width: 24px;
  height: 24px;
}
.oa-header__mname {
  font: 700 15px/1.1 var(--display-font);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.oa-chiparea {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--area);
  color: #fff;
  font: 600 13px/1 var(--display-font);
  white-space: nowrap;
}
.oa-chiparea .oa-ico {
  width: 16px;
  height: 16px;
}
.oa-header__spacer {
  flex: 1;
}
.oa-header__plan {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  font: 600 11px/1 var(--display-font);
  white-space: nowrap;
}
.oa-hicon {
  display: none;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  place-items: center;
  color: #fff;
  position: relative;
}
.oa-hicon--dot::after {
  content: '';
  position: absolute;
  top: 7px;
  right: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #df3448;
}
.oa-header__avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.22);
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--display-font);
  flex: none;
}
@media (min-width: 768px) {
  .oa-header {
    height: 64px;
    padding: 0 20px;
  }
  .oa-menu,
  .oa-header__mname {
    display: none;
  }
  .oa-chiparea {
    display: inline-flex;
  }
  .oa-hicon {
    display: grid;
  }
}

/* Sidebar: cabecera en el color del club, lista blanca */
.oa-side {
  position: absolute;
  inset: 0 auto 0 0;
  width: 250px;
  max-width: 85%;
  background: var(--card);
  border-right: 1px solid var(--subtle);
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.2s ease;
  z-index: 5;
}
.oa-side.is-open {
  transform: none;
  box-shadow: 0 10px 40px rgba(16, 24, 40, 0.25);
}
@media (min-width: 768px) {
  .oa-side {
    position: static;
    transform: none;
    width: 210px;
    flex: none;
  }
}
.oa-side__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 58px;
  padding: 0 12px;
  background: var(--club, #013369);
  color: #fff;
  flex: none;
}
@media (min-width: 768px) {
  .oa-side__brand {
    height: 64px;
  }
}
.oa-side__brand b {
  font: 700 14px/1.15 var(--display-font);
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.oa-crest {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #fff;
  color: var(--club, #013369);
  display: grid;
  place-items: center;
  font: 800 13px/1 var(--display-font);
  flex: none;
}
.oa-side__list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
  display: grid;
  gap: 2px;
  align-content: start;
}
.oa-side__foot {
  padding: 12px 16px;
  border-top: 1px solid var(--subtle);
  color: var(--fg-muted);
  font: 500 13px/1 var(--body-font);
}
.oa-side__item {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 5px 8px;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--fg);
  font: 500 14px/1.2 var(--body-font);
  text-align: left;
  cursor: pointer;
  position: relative;
}
.oa-side__item:hover {
  background: var(--sunken);
}
.oa-side__icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  color: var(--area);
  background: color-mix(in srgb, var(--area) 12%, transparent);
  flex: none;
}
.oa-side__icon .oa-ico {
  width: 18px;
  height: 18px;
}
.oa-side__item.is-active {
  background: var(--club, #013369);
  color: #fff;
}
.oa-side__item.is-active .oa-side__icon {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}
.oa-side__item.is-locked {
  opacity: 0.45;
  cursor: help;
}
.oa-side__only {
  flex-basis: 100%;
  padding-left: 40px;
  font: 500 11px/1 var(--body-font);
  color: var(--fg-muted);
}
.oa-star {
  margin-left: auto;
  color: #edb007;
  font-size: 14px;
}
.oa-side__item.is-active .oa-star {
  color: #ffd24d;
}

.oa-main {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  outline: none;
  position: relative;
}
/* En móvil la burbuja ocupa la parte de abajo: hueco para poder subir cualquier objetivo. */
.oa-page {
  padding: 12px 12px 300px;
  max-width: 1180px;
  display: grid;
  gap: 12px;
  min-width: 0;
}
@media (min-width: 768px) {
  .oa-page {
    padding: 18px 20px 140px;
  }
}

/* Iconos */
.oa-ico {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}
.oa-ico--lg {
  width: 28px;
  height: 28px;
}

/* Migas */
.oa-crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  font: 500 12px/1.3 var(--body-font);
  color: var(--fg-muted);
}
.oa-crumbs__ico {
  display: inline-grid;
}
.oa-crumbs__ico .oa-ico {
  width: 16px;
  height: 16px;
}
.oa-crumbs b {
  color: var(--fg-dark);
  font-weight: 600;
}
.oa-crumbs i {
  font-style: normal;
}

/* Fila de tarjetas del área (cluster) */
.oa-tiles {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 -12px;
  padding: 0 12px 2px;
}
.oa-tiles::-webkit-scrollbar {
  display: none;
}
@media (min-width: 768px) {
  .oa-tiles {
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    overflow: visible;
  }
}
.oa-tiles--grid {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  overflow: visible;
}
@media (min-width: 640px) {
  .oa-tiles--grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .oa-tiles--grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.oa-tile {
  flex: none;
  min-width: 190px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--subtle);
  border-radius: 12px;
  background: var(--card);
}
.oa-tiles--grid .oa-tile {
  min-width: 0;
  padding: 14px;
}
.oa-tile__ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--area) 13%, transparent);
  color: var(--ink);
  flex: none;
}
.oa-tile__ico .oa-ico {
  width: 20px;
  height: 20px;
}
.oa-tile b {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font: 600 13px/1.25 var(--display-font);
  color: var(--fg-title);
}
.oa-tile small {
  display: block;
  margin-top: 2px;
  font-size: 12px;
  color: var(--fg-muted);
  line-height: 1.3;
}

/* La vista: contenedor blanco redondeado, como `.view` en la app */
.oa-view {
  background: var(--card);
  border: 1px solid var(--subtle);
  border-radius: 10px;
  padding: 14px;
  display: grid;
  gap: 14px;
  min-width: 0;
}
@media (min-width: 768px) {
  .oa-view {
    padding: 18px;
  }
}
.oa-viewhead {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}
.oa-viewhead__title {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.oa-viewhead__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oa-viewhead--bare {
  padding: 2px 2px 0;
}
.oa-title {
  margin: 0;
  font: 600 18px/1.25 var(--display-font);
  color: var(--fg-title);
}
.oa-title--xl {
  font-size: 24px;
  font-weight: 700;
}
@media (min-width: 768px) {
  .oa-title--xl {
    font-size: 30px;
  }
}
.oa-help {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3e8ff;
  color: #7e22ce;
  font: 600 12px/1 var(--display-font);
}
.oa-help .oa-ico {
  width: 14px;
  height: 14px;
}
.oa-sub {
  margin: -6px 0 0;
  color: var(--fg-muted);
}
.oa-muted {
  color: var(--fg-muted);
  font-size: 12px;
}
.oa-warn-ink {
  color: var(--warn-ink);
}
.oa-ok-ink {
  color: var(--ok-ink) !important;
}
.oa-planpill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--sunken);
  border: 1px solid var(--subtle);
  color: var(--fg-muted);
  font: 600 11px/1 var(--display-font);
  white-space: nowrap;
}
.oa-cat {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--cat) 22%, #fff);
  color: color-mix(in srgb, var(--cat) 60%, #101828);
  font: 700 11px/1.2 var(--display-font);
  white-space: nowrap;
}

/* Filtros: selects con etiqueta flotante, como en la app */
.oa-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.oa-select {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  min-width: 130px;
  min-height: 44px;
  padding: 4px 30px 4px 12px;
  border: 1px solid var(--strong);
  border-radius: 10px;
  background: var(--card);
}
.oa-select small {
  font: 500 10px/1.2 var(--body-font);
  color: var(--fg-muted);
}
.oa-select b {
  font: 500 13px/1.3 var(--body-font);
  color: var(--fg-dark);
  white-space: nowrap;
}
.oa-select i {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-60%);
  font-style: normal;
  color: var(--fg-muted);
}
.oa-select--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.25);
}
.oa-select--dark small,
.oa-select--dark i {
  color: rgba(255, 255, 255, 0.65);
}
.oa-select--dark b {
  color: #fff;
  font-weight: 600;
}

/* Botones de la app */
.oa-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 9px 14px;
  border: 0;
  border-radius: 10px;
  font: 600 13px/1 var(--display-font);
  cursor: pointer;
  white-space: nowrap;
}
.oa-btn--primary {
  background: var(--navy);
  color: #fff;
}
.oa-btn--secondary {
  background: #e6f3fb;
  color: #0069a8;
}
.oa-btn--tertiary {
  background: var(--card);
  color: var(--fg);
  border: 1px solid var(--strong);
}
.oa-btn--green {
  background: #e7f6ec;
  color: #12703a;
}
.oa-btn--link {
  background: none;
  color: #fff;
  padding: 6px 8px;
}
.oa-btn--insta {
  background: linear-gradient(90deg, #f58529, #dd2a7b 50%, #8134af);
  color: #fff;
}
.oa-btn--ai {
  background: #f3e8ff;
  color: #7e22ce;
}
.oa-btn--text {
  background: none;
  color: var(--fg-muted);
}
.oa-btn--dashed {
  width: 100%;
  border: 1.5px dashed #7db9e0;
  min-height: 44px;
}
.oa-btn .oa-ico {
  width: 16px;
  height: 16px;
}
.oa-ctrl .oa-ico {
  fill: currentColor;
}

/* Estados: icono + palabra */
.oa-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  font: 600 11px/1.2 var(--body-font);
  white-space: nowrap;
  justify-self: start;
}
.oa-tag--ok {
  background: var(--ok-bg);
  color: var(--ok-ink);
}
.oa-tag--okfill {
  background: #22a052;
  color: #fff;
}
.oa-tag--warn {
  background: var(--warn-bg);
  color: var(--warn-ink);
}
.oa-tag--err {
  background: var(--err-bg);
  color: var(--err-ink);
}
.oa-tag--info,
.oa-tag--ask {
  background: var(--info-bg);
  color: var(--info-ink);
}

/* Cajas dentro de la vista */
.oa-box {
  border: 1px solid var(--subtle);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
  background: var(--card);
  display: grid;
  gap: 8px;
  align-content: start;
}
.oa-box--row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.oa-box--row b {
  display: block;
  color: var(--fg-title);
  font: 600 14px/1.3 var(--display-font);
}
.oa-box--row small {
  color: var(--fg-muted);
  font-size: 12px;
}
.oa-box__chev {
  margin-left: auto;
  font-style: normal;
  color: var(--fg-muted);
}
.oa-boxhead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  font: 600 14px/1.3 var(--display-font);
  color: var(--fg-title);
}
.oa-boxhead > span:not([class]) b,
.oa-boxhead > span:not([class]) small {
  display: block;
}
.oa-boxhead__spacer {
  flex: 1;
}
.oa-boxhead--mt {
  margin-top: 8px;
}
.oa-boxfoot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 4px;
}
.oa-chipbtn {
  padding: 5px 10px;
  border-radius: 8px;
  border: 1px solid var(--strong);
  font: 600 11px/1 var(--display-font);
  color: var(--fg-muted);
}
.oa-grid2,
.oa-grid3 {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.oa-grid2 > div,
.oa-grid3 > div {
  min-width: 0;
}
@media (min-width: 900px) {
  .oa-grid2 {
    grid-template-columns: 1fr 1fr;
  }
  .oa-grid2--session {
    grid-template-columns: 1.5fr 1fr;
  }
  .oa-grid2--exam {
    grid-template-columns: 1fr 340px;
  }
  .oa-grid3 {
    grid-template-columns: repeat(3, 1fr);
  }
}
.oa-grid2--exam > div:first-child {
  display: grid;
  gap: 10px;
  align-content: start;
}

/* Contabilidad: hero de balance y KPIs de colores */
.oa-hero {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 12px;
  background: linear-gradient(135deg, #013369, #0086d4);
  color: #fff;
}
@media (min-width: 900px) {
  .oa-hero {
    grid-template-columns: 1fr 260px;
    align-items: center;
    padding: 22px 24px;
  }
}
.oa-hero__label {
  display: block;
  font: 600 11px/1 var(--display-font);
  letter-spacing: 0.08em;
  opacity: 0.8;
}
.oa-hero__value {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 4px;
  font: 700 32px/1 var(--display-font);
  font-variant-numeric: tabular-nums;
}
@media (min-width: 768px) {
  .oa-hero__value {
    font-size: 40px;
  }
}
.oa-hero__ico {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.16);
  display: grid;
  place-items: center;
}
.oa-hero small {
  font-size: 12px;
  opacity: 0.85;
}
.oa-hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-top: 12px;
  font: 600 11px/1.2 var(--display-font);
  letter-spacing: 0.04em;
}
.oa-hero__stats > span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.oa-hero__stats b {
  font-size: 13px;
  letter-spacing: 0;
}
.oa-hero__stats i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.oa-hero__stats i.is-g {
  background: #4ade80;
}
.oa-hero__stats i.is-r {
  background: #f87171;
}
.oa-hero__stats i.is-y {
  background: #facc15;
}
.oa-hero__late {
  padding: 4px 10px;
  border-radius: 999px;
  background: #d92d20;
}
.oa-hero__late .oa-ico {
  width: 14px;
  height: 14px;
}
.oa-hero__proj {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.oa-hero__proj span {
  font: 600 11px/1 var(--display-font);
  letter-spacing: 0.06em;
  opacity: 0.8;
}
.oa-hero__proj b {
  font: 700 22px/1.1 var(--display-font);
}
.oa-kpis {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 900px) {
  .oa-kpis {
    grid-template-columns: repeat(4, 1fr);
  }
}
.oa-kpi {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--subtle);
  background: var(--card);
  min-width: 0;
  text-align: left;
}
.oa-kpi--warn {
  background: #fffaeb;
  border-color: #fde7b0;
}
.oa-kpi--err {
  background: #fef3f2;
  border-color: #fcd5d1;
}
.oa-kpi--ok {
  background: #f0fbf3;
  border-color: #c9ecd3;
}
.oa-kpi[role='button'] {
  cursor: pointer;
}
.oa-kpi__ico {
  grid-row: span 3;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--sunken);
  color: var(--fg-muted);
  align-self: start;
  flex: none;
}
.oa-kpi--warn .oa-kpi__ico,
.oa-kpi__ico--warn {
  background: #fdecc8;
  color: #b54708;
}
.oa-kpi--err .oa-kpi__ico {
  background: #fde4e1;
  color: #b42318;
}
.oa-kpi--ok .oa-kpi__ico {
  background: #d3f3dd;
  color: #12703a;
}
.oa-kpi__ico--club {
  background: #e6f3fb;
  color: #0069a8;
}
.oa-kpi__ico--pb {
  background: #f6e9f3;
  color: #9a3f85;
}
.oa-kpi__ico--pr {
  background: #fff0e6;
  color: #c2410c;
}
.oa-boxhead .oa-kpi__ico,
.oa-li .oa-kpi__ico,
.oa-box--row .oa-kpi__ico {
  grid-row: auto;
  align-self: center;
}
.oa-kpi__label {
  font-size: 12px;
  color: var(--fg-muted);
  min-width: 0;
}
.oa-kpi b {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font: 700 18px/1.15 var(--display-font);
  color: var(--fg-dark);
  font-variant-numeric: tabular-nums;
}
.oa-kpi small {
  font-size: 11px;
  color: var(--fg-muted);
  line-height: 1.3;
}
.oa-kpi__badge {
  font: 600 10px/1 var(--body-font);
  font-style: normal;
  padding: 3px 6px;
  border-radius: 999px;
  background: #fde4e1;
  color: #b42318;
}
.oa-kpi__badge.is-ok {
  background: #d3f3dd;
  color: #12703a;
}
.oa-colchart {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 150px;
  padding-top: 8px;
}
.oa-colchart span {
  flex: 1;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  gap: 2px;
}
.oa-colchart i,
.oa-colchart em {
  display: block;
  width: 70%;
  max-width: 34px;
  border-radius: 4px 4px 0 0;
}
.oa-colchart i {
  height: var(--v);
  background: #22a052;
}
.oa-colchart em {
  height: var(--v);
  background: #f87171;
  border-radius: 0 0 4px 4px;
}
.oa-colchart small {
  margin-top: 4px;
  font-size: 11px;
  color: var(--fg-muted);
}

/* Franja de resumen */
.oa-strip {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border: 1px solid var(--subtle);
  border-radius: 12px;
  overflow: hidden;
}
@media (min-width: 768px) {
  .oa-strip {
    grid-template-columns: repeat(auto-fit, minmax(0, 1fr));
    grid-auto-flow: column;
  }
}
.oa-strip > div {
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  border-right: 1px solid var(--subtle);
  border-bottom: 1px solid var(--subtle);
  min-width: 0;
}
.oa-strip b {
  font: 700 20px/1.1 var(--display-font);
  color: var(--fg-title);
  font-variant-numeric: tabular-nums;
}
.oa-strip span {
  font-size: 12px;
  color: var(--fg-muted);
}
.oa-strip__list {
  align-content: start;
}
.oa-strip__list small {
  font: 600 10px/1 var(--display-font);
  color: var(--fg-muted);
  letter-spacing: 0.05em;
}
.oa-strip__list span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: var(--fg);
}
.oa-strip__list b {
  font-size: 12px;
}
.oa-strip__donut {
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.oa-strip__donut svg {
  width: 44px;
  height: 44px;
  flex: none;
  transform: rotate(-90deg);
}
.oa-strip__donut circle {
  fill: none;
  stroke: var(--subtle);
  stroke-width: 6;
}
.oa-strip__donut circle.is-a {
  stroke: #b3519c;
}
.oa-strip__donut circle.is-b {
  stroke: #0086d4;
}
.oa-strip__donut span b {
  display: block;
  font-size: 13px;
}
.oa-strip__donut span small {
  font-size: 11px;
  color: var(--fg-muted);
}

/* Tablas */
.oa-table {
  border: 1px solid var(--subtle);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.oa-tr {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-top: 1px solid var(--subtle);
  width: 100%;
  background: var(--card);
  font: inherit;
  color: inherit;
  text-align: left;
}
.oa-tr:first-child {
  border-top: 0;
}
.oa-tr:nth-child(even) {
  background: #f8faff;
}
.oa-tr--head {
  background: var(--sunken) !important;
  font: 600 11px/1.2 var(--body-font);
  color: var(--fg-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.oa-tr--3 {
  grid-template-columns: minmax(0, 1fr) auto auto;
}
.oa-tr--pbp {
  grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr) auto;
}
.oa-tr--more {
  display: block;
  text-align: center;
  color: var(--fg-muted);
}
.oa-tr--btn {
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  cursor: pointer;
}
.oa-tr--btn.is-on {
  background: #eef3fb !important;
}
.oa-tr.is-on {
  background: #eef3fb !important;
}
@media (min-width: 640px) {
  .oa-tr {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) minmax(0, 0.8fr) auto auto;
  }
  .oa-tr--3 {
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
  }
  .oa-tr--pbp {
    grid-template-columns: 70px minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 0.8fr) 60px;
  }
}
.oa-tr__who {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.oa-tr__who > span {
  min-width: 0;
}
.oa-tr b {
  color: var(--fg-dark);
  font-weight: 600;
}
.oa-tr__who b {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-tr small {
  display: block;
  color: var(--fg-muted);
  font-size: 12px;
}
.oa-hide-sm {
  display: none !important;
}
@media (min-width: 640px) {
  .oa-hide-sm {
    display: block !important;
  }
}
.oa-num {
  font-variant-numeric: tabular-nums;
  text-align: right;
  font-weight: 600;
  color: var(--fg-dark);
  white-space: nowrap;
}
.oa-av {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #e6f0fb;
  color: var(--navy);
  display: inline-grid;
  place-items: center;
  font: 700 11px/1 var(--display-font);
  flex: none;
}
.oa-li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--subtle);
}
.oa-boxhead + .oa-li {
  border-top: 0;
}
.oa-li > span:not([class]) {
  flex: 1;
  min-width: 0;
}
.oa-li b {
  display: block;
  color: var(--fg-dark);
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.oa-li small {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
}

.oa-capchips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.oa-capchips span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: var(--sunken);
  border: 1px solid var(--subtle);
  font-size: 12px;
  font-weight: 500;
}
.oa-capchips .oa-ico {
  width: 16px;
  height: 16px;
  color: #0069a8;
}
.oa-chip,
.oa-playchip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 4px 4px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f6e9f3;
  color: #9a3f85;
  font: 600 12px/1.3 var(--body-font);
  font-style: normal;
}
.oa-playchip .oa-ico {
  width: 14px;
  height: 14px;
}
.oa-chip--pr,
.oa-playchip--pr {
  background: #fff0e6;
  color: #c2410c;
}
.oa-playchip.is-new {
  outline: 2px solid #f97316;
  animation: oa-pop 0.4s ease;
}
@keyframes oa-pop {
  from {
    transform: scale(0.6);
    opacity: 0;
  }
}

/* Formularios */
.oa-mini3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  text-align: center;
  padding: 6px 0;
}
.oa-mini3 span {
  font-size: 11px;
  color: var(--fg-muted);
}
.oa-mini3 b {
  display: block;
  font: 700 22px/1.1 var(--display-font);
  color: var(--fg-title);
}
.oa-share {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--sunken);
  animation: oa-pop 0.3s ease;
}
.oa-share p {
  margin: 0;
}
.oa-link {
  color: var(--link);
  font-weight: 600;
}
.oa-qr {
  width: 84px;
  height: 84px;
  background: #fff;
  fill: var(--fg-dark);
  flex: none;
  border-radius: 6px;
}

/* Matriz de documentación */
.oa-matrix {
  overflow-x: auto;
}
.oa-mrow {
  display: grid;
  grid-template-columns: minmax(170px, 1.3fr) repeat(4, minmax(104px, 1fr));
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-top: 1px solid var(--subtle);
  min-width: 620px;
}
.oa-mrow--head {
  border-top: 0;
  background: var(--sunken);
  font: 600 11px/1.2 var(--body-font);
  color: var(--fg-muted);
  text-transform: uppercase;
}
.oa-mrow__name {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.oa-mrow__name > span {
  display: grid;
  gap: 2px;
  justify-items: start;
  min-width: 0;
}
.oa-mrow__name b {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--fg-dark);
  max-width: 100%;
}
.oa-mrow .oa-cat {
  font-size: 10px;
  padding: 2px 8px;
}

/* Barras */
.oa-bar {
  display: grid;
  grid-template-columns: 96px 1fr 48px;
  align-items: center;
  gap: 8px;
  margin: 4px 0;
  font-size: 12px;
}
.oa-bar i {
  height: 10px;
  border-radius: 6px;
  background: var(--canvas);
  position: relative;
  overflow: hidden;
}
.oa-bar i::after {
  content: '';
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: 6px;
  background: var(--bar, #27ab3a);
}
.oa-bar b {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.oa-bar--inline {
  display: block;
  margin: 0;
}
.oa-bar--inline i {
  display: block;
}

/* Tienda */
.oa-products {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.oa-product {
  display: grid;
  gap: 4px;
  justify-items: start;
  font-size: 12px;
  min-width: 0;
}
.oa-product b {
  color: var(--fg-dark);
  font-size: 13px;
  line-height: 1.25;
}
.oa-product__img {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 10px;
  background: var(--club);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  font: 800 20px/1 var(--display-font);
}
.oa-product__img i {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font: 700 12px/1 var(--display-font);
  font-style: normal;
  opacity: 0.6;
}
.oa-locked {
  display: grid;
  gap: 8px;
  justify-items: start;
  padding: 16px;
  border: 1.5px dashed var(--strong);
  border-radius: 12px;
  position: relative;
  overflow: hidden;
}
.oa-locked > b {
  font: 600 16px/1.3 var(--display-font);
  color: var(--fg-title);
}
.oa-locked p {
  margin: 0;
  color: var(--fg-muted);
  max-width: 560px;
}
.oa-locked > .oa-ico {
  color: var(--fg-muted);
}
.oa-locked__peek {
  width: 100%;
  margin-top: 8px;
  max-height: 260px;
  overflow: hidden;
  opacity: 0.45;
  filter: blur(1.5px) grayscale(0.5);
  pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 40%, transparent);
  mask-image: linear-gradient(#000 40%, transparent);
}

/* Campo de juego: verde con líneas blancas, como el editor de la app */
.oa-field {
  display: block;
  width: 100%;
  height: auto;
  background: #3a8a3f;
  border-radius: 8px;
}
.oa-field__lines line {
  stroke: rgba(255, 255, 255, 0.55);
  stroke-width: 1.2;
}
.oa-field__lines line.is-hash {
  stroke: #fff;
  stroke-width: 1.4;
}
.oa-route {
  fill: none;
  stroke: #fff;
  stroke-width: 2.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: #fff;
}
.oa-route.is-b {
  stroke: #ffd24d;
  color: #ffd24d;
}
.oa-field--mini .oa-route {
  stroke-width: 3.4;
}
.oa-field.is-anim .oa-route {
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: oa-draw 1.6s ease forwards;
}
@keyframes oa-draw {
  to {
    stroke-dashoffset: 0;
  }
}
.oa-pl circle {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 2;
}
.oa-pl text {
  font: 700 8px/1 var(--display-font);
  fill: var(--navy);
  text-anchor: middle;
}
.oa-field--mini .oa-pl text {
  font-size: 6px;
}
.oa-dl {
  margin: 0;
  display: grid;
  gap: 4px;
}
.oa-dl dt {
  font: 600 11px/1.2 var(--body-font);
  color: var(--fg-muted);
  text-transform: uppercase;
  margin-top: 6px;
}
.oa-dl dd {
  margin: 0;
}

/* Lista de jugadas del playbook */
.oa-playrow {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border-top: 1px solid var(--subtle);
  align-items: center;
}
.oa-playrow:first-child {
  border-top: 0;
}
@media (min-width: 768px) {
  .oa-playrow {
    grid-template-columns: 170px minmax(0, 1fr) auto;
  }
}
.oa-playrow__thumb .oa-field {
  border-radius: 6px;
}
.oa-playrow__info {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2px 10px;
  align-items: center;
  font-size: 12px;
  min-width: 0;
}
.oa-playrow__info > b {
  grid-column: 1 / -1;
  font: 700 14px/1.3 var(--display-font);
  color: var(--fg-title);
  margin-bottom: 4px;
}
.oa-playrow__info small {
  font: 600 10px/1.2 var(--body-font);
  color: var(--fg-muted);
  letter-spacing: 0.04em;
}
.oa-playrow__info .oa-chip {
  font-size: 11px;
  padding: 2px 8px;
  margin-bottom: 2px;
}
.oa-playrow__acts {
  grid-column: 1 / -1;
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
@media (min-width: 768px) {
  .oa-playrow__acts {
    grid-column: auto;
    flex-direction: column;
  }
}
.oa-iconbtn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid var(--subtle);
  display: grid;
  place-items: center;
  color: var(--navy);
  background: var(--card);
}
.oa-iconbtn[role='button'] {
  cursor: pointer;
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.oa-iconbtn[role='button'] .oa-ico {
  fill: currentColor;
}

/* Jugada en directo */
.oa-live {
  display: grid;
  gap: 12px;
}
@media (min-width: 1000px) {
  .oa-live {
    grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr);
    align-items: start;
  }
}
.oa-live__main {
  background: #0b1f3f;
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  min-width: 0;
}
.oa-live__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.oa-live__bar .oa-select {
  flex: 1;
  min-width: 0;
}
.oa-live__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}
.oa-ctrl {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  flex: none;
}
.oa-ctrl[role='button'] {
  background: #22a052;
  cursor: pointer;
}
.oa-live__track {
  flex: 1;
  height: 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
  overflow: hidden;
}
.oa-live__track i {
  display: block;
  height: 100%;
  width: 0;
  background: #22a052;
}
.oa-live__track.is-run i {
  width: 100%;
  transition: width 1.8s linear;
}
.oa-live__clips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
}
.oa-clip {
  flex: none;
  width: 110px;
  border-radius: 8px;
  overflow: hidden;
  border: 2px solid transparent;
}
.oa-clip.is-on {
  border-color: #22a052;
}
.oa-clip--video {
  height: 70px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  background: linear-gradient(135deg, #1e3a5f, #0c1b33);
  color: rgba(255, 255, 255, 0.85);
}
.oa-clip--video .oa-ico {
  fill: currentColor;
}
.oa-clip--video small {
  font-size: 10px;
}
.oa-live__side {
  display: grid;
  gap: 12px;
  min-width: 0;
}
.oa-assign {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 6px 10px;
  font-size: 13px;
}
.oa-assign > span:nth-child(-n + 2) {
  font: 600 10px/1.2 var(--body-font);
  color: var(--fg-muted);
  text-transform: uppercase;
}
.oa-assign b {
  color: #9a3f85;
}
.oa-ai {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #faf5ff;
  border-color: #e9d5ff;
}
.oa-ai b {
  display: block;
  color: #7e22ce;
}
.oa-ai small {
  color: var(--fg-muted);
  font-size: 12px;
}
.oa-ai__ico {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: #f3e8ff;
  color: #7e22ce;
  display: grid;
  place-items: center;
  flex: none;
}

/* Exámenes */
.oa-exam.is-on {
  border-color: #b3519c;
}
.oa-phone {
  width: 100%;
  max-width: 340px;
  margin: 0 auto;
  padding: 10px;
  border-radius: 30px;
  background: #101828;
  position: relative;
}
.oa-phone__notch {
  width: 90px;
  height: 18px;
  margin: 0 auto 6px;
  border-radius: 0 0 12px 12px;
  background: #000;
}
.oa-phone__screen {
  border-radius: 22px;
  background: var(--card);
  padding: 16px;
  display: grid;
  gap: 8px;
}
.oa-phone__screen > b {
  font: 600 14px/1.35 var(--display-font);
  color: var(--fg-title);
}
.oa-phone__progress {
  height: 6px;
  border-radius: 6px;
  background: var(--canvas);
  overflow: hidden;
}
.oa-phone__progress i {
  display: block;
  height: 100%;
  background: #b3519c;
}
.oa-opt {
  min-height: 44px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--strong);
  background: var(--card);
  font: 500 13px/1.2 var(--body-font);
  color: var(--fg);
  text-align: left;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.oa-opt__k {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--sunken);
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--display-font);
  color: var(--fg-muted);
  flex: none;
}
.oa-opt .oa-ico {
  margin-left: auto;
}
.oa-opt.is-right {
  border-color: #27ab3a;
  background: var(--ok-bg);
  color: var(--ok-ink);
  font-weight: 600;
}
.oa-opt.is-dim {
  opacity: 0.45;
}

/* Installs */
.oa-weeks {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .oa-weeks {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1000px) {
  .oa-weeks {
    grid-template-columns: repeat(4, 1fr);
  }
}
.oa-week.is-now {
  border-color: #b3519c;
  box-shadow: inset 0 3px 0 #b3519c;
}
.oa-week .oa-playchip {
  justify-self: start;
  margin: 0;
}

/* Exportación */
.oa-thumbs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
@media (min-width: 900px) {
  .oa-thumbs {
    grid-template-columns: repeat(4, 1fr);
  }
}
.oa-thumb {
  display: grid;
  gap: 6px;
  justify-items: center;
  padding: 14px 12px;
  border: 1px solid var(--subtle);
  border-radius: 12px;
  background: var(--sunken);
  font: 600 13px/1.2 var(--body-font);
  color: var(--fg-dark);
  cursor: pointer;
}
.oa-thumb.is-on {
  border: 2px solid var(--navy);
  background: var(--card);
}
.oa-thumb__paper {
  width: 74px;
  height: 96px;
  border-radius: 4px;
  background: #fff;
  border: 1px solid var(--subtle);
  padding: 8px 6px;
  display: grid;
  gap: 5px;
  align-content: start;
  box-shadow: 0 2px 0 var(--subtle);
}
.oa-thumb__paper i {
  display: block;
  height: 8px;
  border-radius: 2px;
  background: #dfe5ef;
}
.oa-thumb__paper i.is-t {
  background: var(--club);
  height: 10px;
}
.oa-thumb__paper i.is-f {
  height: 28px;
  background: #3a8a3f;
}
.oa-thumb__paper--wrist {
  width: 96px;
  height: 56px;
  grid-template-columns: repeat(4, 1fr);
  align-content: center;
}
.oa-thumb__paper--call {
  grid-template-columns: 1fr 1fr;
}
.oa-thumb__paper--call i.is-t {
  grid-column: 1 / -1;
}
.oa-sheet {
  animation: oa-pop 0.3s ease;
}
.oa-sheet__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 900px) {
  .oa-sheet__grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
.oa-sheet__grid div {
  border: 1px solid var(--subtle);
  border-radius: 8px;
  padding: 8px;
  display: grid;
  gap: 2px;
  font-size: 12px;
}
.oa-sheet__grid b {
  color: var(--club);
}

/* Calendario de la app: cabecera navy, rejilla con bordes y chips de evento */
.oa-calwrap {
  display: grid;
  gap: 12px;
}
@media (min-width: 1000px) {
  .oa-calwrap {
    grid-template-columns: minmax(0, 1fr) 280px;
    align-items: start;
  }
}
.oa-cal {
  border: 1px solid var(--subtle);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.oa-cal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  background: var(--navy);
  color: #fff;
  font: 700 14px/1 var(--display-font);
  letter-spacing: 0.04em;
}
.oa-cal__nav {
  display: flex;
  gap: 4px;
}
.oa-cal__nav i {
  min-width: 28px;
  height: 28px;
  padding: 0 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--body-font);
  font-style: normal;
  letter-spacing: 0;
}
.oa-cal__dows {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  background: var(--sunken);
  border-bottom: 1px solid var(--subtle);
}
.oa-cal__dows span {
  padding: 6px 0;
  text-align: center;
  font: 600 10px/1 var(--body-font);
  color: var(--fg-muted);
}
.oa-cal__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}
.oa-cal__day {
  min-height: 58px;
  padding: 3px;
  border-right: 1px solid var(--subtle);
  border-bottom: 1px solid var(--subtle);
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
}
.oa-cal__day:nth-child(7n) {
  border-right: 0;
}
.oa-cal__day > b {
  font: 600 11px/1 var(--body-font);
  color: var(--fg-dark);
  padding: 2px;
}
.oa-cal__day.is-out {
  background: var(--sunken);
}
.oa-cal__day.is-out > b {
  color: #b0b8c6;
}
.oa-cal__day.is-sel {
  background: #eef5fd;
}
.oa-cal__day.is-sel > b {
  justify-self: start;
  min-width: 18px;
  padding: 3px 4px;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  text-align: center;
}
@media (min-width: 768px) {
  .oa-cal__day {
    min-height: 84px;
    padding: 4px;
  }
}
.oa-ev {
  display: block;
  padding: 2px 4px;
  border-radius: 4px;
  border-left: 3px solid;
  min-width: 0;
  overflow: hidden;
}
.oa-ev b,
.oa-ev small {
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 9px/1.25 var(--body-font);
}
.oa-ev small {
  display: none;
  font-weight: 500;
}
@media (min-width: 768px) {
  .oa-ev b {
    font-size: 11px;
  }
  .oa-ev small {
    display: block;
    font-size: 10px;
  }
}
.oa-ev--practice {
  background: #fff0e6;
  color: #c2410c;
  border-color: #f97316;
}
.oa-ev--match {
  background: #fde8ea;
  color: #b00c1c;
  border-color: #d3091f;
}
.oa-ev[role='button'] {
  cursor: pointer;
}
.oa-daypanel {
  border: 1px solid var(--subtle);
  border-radius: 12px;
  padding: 12px;
  display: grid;
  gap: 10px;
  align-content: start;
}
.oa-daypanel__title {
  font: 600 14px/1.3 var(--display-font);
  color: var(--fg-title);
}
.oa-dayev {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 10px;
  background: var(--sunken);
  border-left: 4px solid var(--strong);
}
.oa-dayev--practice {
  border-left-color: #f97316;
  background: #fff8f2;
}
.oa-dayev b {
  color: var(--fg-dark);
}
.oa-dayev small {
  color: var(--fg-muted);
  font-size: 12px;
}

/* Marcador */
.oa-crest2 {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--club);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 14px/1 var(--display-font);
  border: 3px solid #fff;
  box-shadow: 0 0 0 1px var(--subtle);
  flex: none;
}
.oa-score {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 14px 10px;
  border-radius: 12px;
  background: var(--sunken);
}
.oa-score__team {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  min-width: 0;
}
.oa-score__team b {
  font: 700 11px/1.2 var(--display-font);
  color: var(--fg-dark);
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.oa-score__box {
  padding: 8px 14px;
  border-radius: 10px;
  background: var(--navy);
  color: #fff;
  font: 700 24px/1 var(--display-font);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.oa-score__box small {
  font-size: 11px;
  opacity: 0.7;
  margin: 0 4px;
}
@media (min-width: 768px) {
  .oa-score__box {
    font-size: 32px;
    padding: 10px 20px;
  }
  .oa-crest2 {
    width: 56px;
    height: 56px;
    font-size: 17px;
  }
  .oa-score__team b {
    font-size: 13px;
  }
}
.oa-score--sm {
  padding: 10px 6px;
}
.oa-score--sm .oa-crest2 {
  width: 36px;
  height: 36px;
  font-size: 12px;
}
.oa-score--sm .oa-score__box {
  font-size: 18px;
  padding: 6px 10px;
}
.oa-score--sm .oa-score__team b {
  font-size: 10px;
}
.oa-matchcard {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--subtle);
  border-radius: 12px;
}
.oa-matchcard__top,
.oa-matchcard__meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.oa-matchhead {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.oa-tabs {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--subtle);
  overflow-x: auto;
  scrollbar-width: none;
  flex-wrap: nowrap;
}
.oa-tabs > span:not(.oa-tabs__actions) {
  padding: 10px 12px;
  font: 600 13px/1 var(--display-font);
  color: var(--fg-muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}
.oa-tabs > span.is-on {
  color: var(--navy);
  border-bottom-color: var(--navy);
}
.oa-tabs__actions {
  margin-left: auto;
  padding: 4px 0;
  flex: none;
}
.oa-tabs--inline {
  border-bottom: 0;
  background: var(--canvas);
  border-radius: 10px;
  padding: 3px;
}
.oa-tabs--inline > span:not(.oa-tabs__actions) {
  border-bottom: 0;
  border-radius: 8px;
  padding: 10px 12px;
}
.oa-tabs--inline > span.is-on {
  background: var(--card);
}
.oa-seg {
  display: inline-flex;
  padding: 3px;
  border-radius: 10px;
  background: var(--canvas);
  border: 1px solid var(--subtle);
}
.oa-seg button {
  min-height: 36px;
  padding: 6px 12px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: 600 13px/1 var(--body-font);
  color: var(--fg-muted);
  cursor: pointer;
  white-space: nowrap;
}
.oa-seg button.is-on {
  background: var(--card);
  color: var(--navy);
}
.oa-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}
@media (min-width: 768px) {
  .oa-gallery {
    grid-template-columns: repeat(4, 1fr);
  }
}
.oa-photo {
  aspect-ratio: 4 / 3;
  border-radius: 10px;
  background: linear-gradient(135deg, hsl(var(--h) 35% 38%), hsl(calc(var(--h) + 40) 40% 24%));
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.7);
}
.oa-depth {
  overflow-x: auto;
}
.oa-drow {
  display: grid;
  grid-template-columns: 56px repeat(3, minmax(110px, 1fr));
  gap: 8px;
  align-items: center;
  padding: 8px 12px;
  border-top: 1px solid var(--subtle);
  min-width: 440px;
}
.oa-drow--head {
  border-top: 0;
  background: var(--sunken);
  font: 600 11px/1 var(--body-font);
  color: var(--fg-muted);
}
.oa-drow > span {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.oa-drow > span small {
  display: block;
  color: var(--fg-muted);
  font-size: 11px;
}
.oa-drow > b {
  color: #b00c1c;
}

/* Entrenamientos */
.oa-blocks {
  display: grid;
  gap: 8px;
  align-content: start;
}
.oa-block {
  width: 100%;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
  border-radius: 10px;
  background: var(--sunken);
  border-left: 4px solid #f97316;
}
.oa-block__time {
  font: 700 15px/1 var(--display-font);
  color: #c2410c;
}
.oa-block__body b {
  display: block;
  color: var(--fg-dark);
}
.oa-block__body small {
  display: block;
  font-size: 12px;
  color: var(--fg-muted);
}
.oa-block__drills {
  display: block;
  margin-top: 6px;
}
.oa-drawer {
  background: var(--card);
  border: 1px solid var(--subtle);
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 10px;
}
.oa-drills {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (min-width: 900px) {
  .oa-drills {
    grid-template-columns: repeat(4, 1fr);
  }
}
.oa-drill {
  display: grid;
  gap: 6px;
  justify-items: start;
  padding: 8px;
  border: 1px solid var(--subtle);
  border-radius: 10px;
  background: var(--card);
  font: 600 13px/1.2 var(--body-font);
  color: var(--fg-dark);
  cursor: pointer;
  text-align: left;
}
.oa-drill svg {
  width: 100%;
  height: 64px;
  background: #3a8a3f;
  border-radius: 6px;
}
.oa-drill path {
  fill: none;
  stroke: #fff;
  stroke-width: 2;
}
.oa-drill path.is-d {
  stroke: #ffd24d;
  stroke-dasharray: 3 3;
}
.oa-drill circle {
  fill: #fff;
  stroke: var(--navy);
  stroke-width: 1.5;
}
.oa-drill rect {
  fill: #f97316;
}
.oa-mini-lines line {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 0.8;
}
.oa-drill__tags .oa-chip {
  font-size: 11px;
  padding: 2px 8px;
}
.oa-goal {
  margin: 0;
  display: flex;
  gap: 6px;
  align-items: flex-start;
  flex-wrap: wrap;
}
.oa-phase.is-now {
  border-color: #f97316;
  box-shadow: inset 0 3px 0 #f97316;
}
.oa-timeline {
  position: relative;
  height: 8px;
  border-radius: 8px;
  background: var(--canvas);
}
.oa-timeline span {
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--v);
  border-radius: 8px;
  background: #f97316;
}
.oa-timeline small {
  position: absolute;
  left: 38%;
  top: 12px;
  transform: translateX(-50%);
  font-size: 11px;
  color: #c2410c;
  font-weight: 600;
}
.oa-timeline + .oa-grid3 {
  margin-top: 14px;
}
.oa-line {
  width: 100%;
  height: 130px;
}
.oa-line__grid line {
  stroke: var(--subtle);
}
.oa-line polyline {
  fill: none;
  stroke: #f97316;
  stroke-width: 2.5;
}
.oa-line__dots circle {
  fill: #fff;
  stroke: #f97316;
  stroke-width: 2;
}
.oa-line__x {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--fg-muted);
}

/* Scouting */
.oa-scouts {
  display: grid;
  gap: 10px;
}
@media (min-width: 640px) {
  .oa-scouts {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1100px) {
  .oa-scouts {
    grid-template-columns: repeat(3, 1fr);
  }
}
.oa-scout {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--subtle);
  border-radius: 12px;
  background: var(--card);
  min-width: 0;
}
.oa-scout[role='button'] {
  cursor: pointer;
}
.oa-scout__top,
.oa-scout__foot {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.oa-scout__foot small {
  flex: 1;
  min-width: 0;
}
.oa-scout .oa-iconbtn {
  width: 34px;
  height: 34px;
}
.oa-video {
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a3d22, #0c1b33);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.oa-video__play {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
}
.oa-video__play .oa-ico {
  fill: #fff;
  stroke: none;
  width: 26px;
  height: 26px;
}
.oa-video__bar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 28px;
  height: 4px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.25);
}
.oa-video__bar i {
  display: block;
  width: 34%;
  height: 100%;
  border-radius: 4px;
  background: #27ab3a;
}
.oa-video small {
  position: absolute;
  bottom: 8px;
  left: 10px;
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
}
.oa-split {
  display: flex;
  height: 38px;
  border-radius: 10px;
  overflow: hidden;
  font: 600 12px/1 var(--display-font);
  color: #fff;
}
.oa-split span {
  width: var(--v);
  display: grid;
  place-items: center;
  background: #27ab3a;
}
.oa-split span + span {
  background: #0086d4;
}
.oa-insight {
  width: 100%;
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: 1px solid #27ab3a;
  border-radius: 12px;
  background: #e9f7ec;
  color: #1a7d2b;
  text-align: left;
  cursor: pointer;
}
.oa-insight > .oa-ico {
  width: 28px;
  height: 28px;
}
.oa-insight b {
  display: block;
  font: 700 16px/1.3 var(--display-font);
}
.oa-insight small {
  display: block;
  color: #2f6b3a;
  font-size: 13px;
}
.oa-dir {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  height: 120px;
  align-items: end;
}
.oa-dir span {
  display: grid;
  justify-items: center;
  align-content: end;
  gap: 2px;
  height: calc(var(--v) * 220%);
  max-height: 100%;
  border-radius: 8px 8px 0 0;
  background: rgba(39, 171, 58, calc(0.25 + var(--v)));
  color: #fff;
  font-size: 11px;
  padding-bottom: 6px;
}
.oa-ready {
  min-height: 55vh;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  gap: 10px;
}
.oa-ready__crest {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--club);
  color: #fff;
  display: grid;
  place-items: center;
  font: 800 34px/1 var(--display-font);
  animation: oa-pop 0.6s ease;
}

/* Coachmarks */
.oa-spot {
  position: fixed;
  border-radius: 12px;
  box-shadow: 0 0 0 200vmax rgba(9, 1, 34, 0.5);
  outline: 2px solid #df3448;
  outline-offset: 0;
  pointer-events: none;
  z-index: 20;
  transition: left 0.18s ease, top 0.18s ease, width 0.18s ease, height 0.18s ease;
}
.oa-bubble {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 21;
  background: var(--card);
  border-radius: 18px 18px 0 0;
  padding: 16px 16px calc(12px + env(safe-area-inset-bottom));
  box-shadow: 0 -10px 30px rgba(9, 1, 34, 0.25);
  color: var(--fg);
}
.oa-bubble h2 {
  margin: 0 0 4px;
  font: 700 17px/1.25 var(--display-font);
  color: var(--fg-title);
}
.oa-bubble p {
  margin: 0;
}
.oa-bubble__kicker {
  font: 600 11px/1 var(--display-font) !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #df3448;
  margin-bottom: 6px !important;
}
.oa-bubble__hint {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 8px !important;
  font-size: 12px;
  color: var(--fg-muted);
}
.oa-bubble__hint .oa-ico {
  width: 14px;
  height: 14px;
  color: #df3448;
}
.oa-bubble__actions {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin-top: 12px;
}
.oa-bubble__actions .oa-btn {
  min-height: 44px;
}
@media (min-width: 768px) {
  .oa-bubble {
    right: auto;
    bottom: auto;
    width: 340px;
    border-radius: 14px;
    box-shadow: 0 16px 40px rgba(9, 1, 34, 0.3);
  }
  .oa-bubble.is-corner {
    left: auto;
    right: 24px;
    top: auto;
    bottom: 24px;
    width: 360px;
  }
  .oa-bubble.is-center {
    left: 50% !important;
    top: 50% !important;
    transform: translate(-50%, -50%);
    width: 420px;
  }
}
.oa-pulse {
  position: relative;
  z-index: 1;
  cursor: pointer;
}
.oa-pulse::after {
  content: '';
  position: absolute;
  top: -6px;
  right: -6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #df3448;
  box-shadow: 0 0 0 0 rgba(223, 52, 72, 0.6);
  animation: oa-ping 1.4s infinite;
  pointer-events: none;
}
@keyframes oa-ping {
  70% {
    box-shadow: 0 0 0 12px rgba(223, 52, 72, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(223, 52, 72, 0);
  }
}
.oa-tip {
  position: fixed;
  z-index: 30;
  max-width: 260px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  font: 500 13px/1.4 var(--body-font);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
.oa-tip.is-sheet {
  left: 12px !important;
  right: 12px;
  bottom: 16px;
  top: auto !important;
  max-width: none;
}
.oa-fab {
  position: fixed;
  right: 16px;
  bottom: calc(16px + env(safe-area-inset-bottom));
  z-index: 15;
  min-height: 48px;
  padding: 12px 18px;
  border: 0;
  border-radius: 12px;
  background: #df3448;
  color: #fff;
  font: 600 14px/1 var(--display-font);
  box-shadow: 0 10px 24px rgba(223, 52, 72, 0.35);
  cursor: pointer;
}
.oa-toast {
  position: fixed;
  left: 50%;
  top: 110px;
  transform: translateX(-50%);
  z-index: 25;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  background: #101828;
  color: #fff;
  font: 500 13px/1.3 var(--body-font);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  transition: opacity 0.3s;
  max-width: calc(100% - 32px);
}
.oa-toast .oa-ico {
  color: #6ee7a0;
}
.oa-toast.is-out {
  opacity: 0;
}

.oa [hidden] {
  display: none !important;
}

.oa button:focus-visible,
.oa [role='button']:focus-visible {
  outline: 3px solid #0086d4;
  outline-offset: 2px;
}

@media (prefers-reduced-motion: reduce) {
  .oa *,
  .oa *::after {
    animation: none !important;
    transition: none !important;
  }
  .oa-field.is-anim .oa-route {
    stroke-dashoffset: 0;
  }
}
