/* SCOUT — solo lo que NO trae la hoja importada.
 *
 * `sm.css` es la compilada de la marca (antes `app-wobawo.css`) e incluye todo
 * el interface: armazon de feed, tarjetas, historias, composer, buscador,
 * botones y formularios. Aqui solo vive el andamio de las vistas propias de
 * SCOUT (pila, campos, avisos) y la pantalla de sesion, que no existe en el
 * armazon del feed.
 *
 * Regla: no redefinir nada que ya este en `sm.css`. Si hace falta un color, se
 * toma de las variables de la marca.
 */

#app,
.sm-shell {
  min-height: 100dvh;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  padding: 10px 16px;
  background: #fff;
  color: #111;
  border-radius: 0 0 12px 0;
}

.skip-link:focus {
  left: 0;
}

:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

/* --- andamio de las vistas ------------------------------------------------ */

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wrap {
  flex-wrap: wrap;
}

.muted {
  opacity: 0.68;
}

.small {
  font-size: 0.86em;
}

.tiny {
  font-size: 0.76em;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field > label {
  font-size: 0.72em;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.66;
}

.field input,
.field select,
.field textarea {
  width: 100%;
}

.empty {
  padding: 22px 16px;
  border: 1px dashed currentColor;
  border-radius: 14px;
  text-align: center;
  font-size: 0.88em;
  opacity: 0.7;
}

.notice {
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid currentColor;
  font-size: 0.88em;
}

.notice--error {
  color: #b3261e;
}

.skeleton {
  height: 62px;
  border-radius: 12px;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.06), rgba(0, 0, 0, 0.02), rgba(0, 0, 0, 0.06));
  background-size: 200% 100%;
  animation: scout-sweep 1.2s linear infinite;
}

@keyframes scout-sweep {
  from {
    background-position: 200% 0;
  }
  to {
    background-position: -200% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton {
    animation: none;
  }
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.78em;
  font-weight: 700;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar--sm {
  width: 30px;
  height: 30px;
}

.avatar--lg {
  width: 60px;
  height: 60px;
  font-size: 1.1em;
}

/* Huecos del armazon importado que el JS de la plataforma rellenaba solo. */
.sm-feed-post-card__media {
  margin-top: 10px;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

.sm-feed-post-card__media img,
.sm-feed-post-card__media video {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: cover;
}

.sm-feed-post-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.sm-feed-post-card__counts {
  display: flex;
  gap: 14px;
  font-size: 0.78em;
  opacity: 0.66;
}

.sm-feed-story {
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  font: inherit;
}

.sm-feed-story__name {
  display: block;
  margin-top: 6px;
  font-size: 0.72em;
  text-align: center;
  max-width: 72px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sm-feed-story__avatar-letter {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-weight: 700;
}

.sm-feed-suggestion {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 0;
  border: 0;
  background: none;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.sm-feed-suggestion__avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
  flex: 0 0 auto;
}

.sm-feed-suggestion__copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.sm-feed-suggestion__copy span {
  font-size: 0.76em;
  opacity: 0.66;
}

/* --- secciones y listas dentro de la columna central ---------------------- */

.section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.section__head h2 {
  font-size: 0.78em;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.6;
}

.chiprow {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

/* --- reels del perfil ----------------------------------------------------- */

.sm-feed-native__reel-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.sm-feed-native__reel-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid var(--wb-line, #e3e8f1);
  background: var(--wb-surface, #fff);
}

.sm-feed-native__reel-thumb {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 12px;
  background: var(--wb-bg, #f6f8fc);
  color: var(--wb-muted, #5b6b85);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
}

.sm-feed-native__reel-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sm-feed-native__reel-time {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(8, 31, 59, 0.78);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0;
}

.sm-feed-native__reel-caption {
  color: var(--wb-ink, #081f3b);
  font-size: 0.86rem;
  line-height: 1.25;
}

.sm-feed-native__reel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.sm-feed-native__reel-like {
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--wb-line, #e3e8f1);
  background: var(--wb-bg, #f6f8fc);
  color: var(--wb-ink, #081f3b);
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
}

.sm-feed-native__reel-like[aria-pressed="true"] {
  border-color: var(--wb-magenta, #ff3d9a);
  background: rgba(255, 61, 154, 0.12);
  color: #c9186c;
}

/* --- ficha y filas de jugador (componentes propios de SCOUT) -------------- */

.playercard {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-radius: 20px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(246, 244, 240, 0.9));
  box-shadow: 0 18px 40px rgba(30, 24, 16, 0.08);
}

.playercard__top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.playercard__id {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.playercard__id b {
  font-size: 1.2em;
}

.playercard__id span {
  font-size: 0.82em;
  opacity: 0.68;
}

.playercard__number {
  margin-left: auto;
  font-size: 2.2em;
  font-weight: 800;
  line-height: 1;
  opacity: 0.18;
}

.playercard__facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

@media (min-width: 640px) {
  .playercard__facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.fact {
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
}

.fact label {
  display: block;
  font-size: 0.68em;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.6;
}

.fact b {
  font-size: 0.9em;
  font-weight: 600;
}

.skills {
  display: grid;
  gap: 8px;
}

.skill {
  display: grid;
  grid-template-columns: 96px 1fr 32px;
  align-items: center;
  gap: 8px;
  font-size: 0.82em;
}

.skill__bar {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.skill__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.7;
}

.timeline {
  display: grid;
  gap: 8px;
  border-left: 2px solid rgba(0, 0, 0, 0.1);
  padding-left: 12px;
}

.timeline__item b {
  display: block;
  font-size: 0.88em;
}

.playerrow {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 13px;
  border-radius: 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.playerrow__main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.playerrow__main b {
  font-size: 0.9em;
}

.playerrow__main span {
  font-size: 0.78em;
  opacity: 0.66;
}

.playerrow__pos {
  flex: 0 0 auto;
  padding: 3px 9px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.06);
  font-size: 0.72em;
  font-weight: 700;
}

/* --- convocatorias -------------------------------------------------------- */

/* --- mensajes ------------------------------------------------------------- */

.thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 50vh;
  overflow-y: auto;
  padding: 4px 2px;
}

.bubble {
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 14px;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.bubble--in {
  align-self: flex-start;
  background: rgba(0, 0, 0, 0.05);
  border-bottom-left-radius: 4px;
}

.bubble--out {
  align-self: flex-end;
  background: #101014;
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble__time {
  display: block;
  margin-top: 3px;
  font-size: 0.68em;
  opacity: 0.6;
}

.composer {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

/* --- hoja modal ----------------------------------------------------------- */

#sheet:empty {
  display: none;
}

.sheet {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  align-items: end;
  background: rgba(12, 10, 8, 0.55);
}

.sheet__panel {
  max-height: 88dvh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px 20px 0 0;
  padding: 18px 16px calc(20px + env(safe-area-inset-bottom, 0px));
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sheet__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sheet__head h2 {
  flex: 1;
  font-size: 1.05em;
}

@media (min-width: 640px) {
  .sheet {
    place-items: center;
  }

  .sheet__panel {
    width: min(560px, 92vw);
    border-radius: 20px;
  }
}

/* --- identidad de marca (kit SCOUT AGENCY) -------------------------------- */
/* Piezas servidas en `/scout/brand/`; las genera
   `scripts/brand/make-scout-agency-art.py` desde `assets/scout`. */

@font-face {
  font-family: "Montserrat";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/scout/brand/fonts/montserrat-latin-var.woff2") format("woff2");
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/scout/brand/fonts/inter-latin-var.woff2") format("woff2");
}

/* La paleta del tablero, aplicada sobre los tokens que ya usa el armazon
   importado: asi el vertical hereda la marca sin reescribir la hoja de base. */
body[data-app="wobawo"][data-page="feed"] {
  --default-font-family: "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  --wb-ink: #081f3b;
  --wb-muted: #5b6b85;
  --wb-line: #e3e8f1;
  --wb-surface: #ffffff;
  --wb-bg: #f6f8fc;
  --wb-blue: #2a6be0;
  --wb-magenta: #ff3d9a;
  --wb-red: #ff7849;
  --wb-orange: #ff7849;
  --wb-yellow: #ffc94d;
  --wb-green: #00c2a8;
  --wb-violet: #00b5a6;
  --wb-shadow: 0 12px 34px rgba(8, 31, 59, 0.1);
  --sm-rust: #2a6be0;
  --sm-plum: #081f3b;
  font-family: var(--default-font-family);
}

body[data-app="wobawo"][data-page="feed"] :is(
  .sm-feed-native__brand-mark,
  .sm-eyebrow,
  .wb-svc__title,
  .wb-svc__h3,
  .sm-feed-native__hero-copy h2,
  .sm-feed-native__profile-title-wrap h2,
  .sm-feed-settings__panel-head .sm-eyebrow
) {
  font-family: "Montserrat", "Inter", ui-sans-serif, system-ui, sans-serif;
  letter-spacing: 0.06em;
}

/* --- sesion --------------------------------------------------------------- */
/* Composicion del tablero: hero de marca a la izquierda y tarjeta blanca a la
   derecha, con el lockup, los campos, el degradado y los accesos por rol. */

/* El simbolo es vertical (190x232): la caja del rail crece para que respire. */
body[data-app="wobawo"][data-page="feed"] .sm-feed-native__brand-logo {
  width: 58px;
  height: 62px;
  flex: 0 0 58px;
}

.auth {
  --auth-ink: #081f3b;
  --auth-muted: #5b6b85;
  --auth-line: #e3e8f1;
  --auth-soft: #f6f8fc;
  --auth-blue: #2a6be0;
  --auth-pink: #ff3d9a;
  --auth-grad: linear-gradient(96deg, #ff7849 0%, #ff3d9a 100%);

  display: grid;
  gap: 0;
  min-height: 100dvh;
  background: var(--auth-soft);
  color: var(--auth-ink);
  font-family: "Inter", ui-sans-serif, system-ui, "Segoe UI", sans-serif;
}

.auth__art {
  position: relative;
  margin: 0;
  overflow: hidden;
  background: #eaf1fb;
}

.auth__art picture,
.auth__media {
  display: block;
  width: 100%;
}

.auth__media {
  height: auto;
  object-fit: cover;
  object-position: center 30%;
}

.auth__panel {
  display: grid;
  align-content: start;
  justify-items: center;
  gap: 0;
  padding: 0 16px 30px;
  margin-top: -22px;
}

.auth__card {
  position: relative;
  display: grid;
  gap: 4px;
  width: 100%;
  max-width: 460px;
  padding: 22px 20px 20px;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 44px rgba(8, 31, 59, 0.12);
}

.auth__eyebrow {
  margin: 0;
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--auth-muted);
}

.auth__title {
  margin: 0;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.1;
  color: var(--auth-ink);
}

.auth__subtitle {
  margin: 0 0 8px;
  font-size: 12.5px;
  color: var(--auth-muted);
}

.auth__form {
  display: grid;
  gap: 6px;
}

.auth__field[hidden] {
  display: none;
}

.auth__label {
  margin-top: 6px;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--auth-ink);
}

.auth__control {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.auth__control:focus-within {
  border-color: var(--auth-blue);
  box-shadow: 0 0 0 3px rgba(59, 130, 255, 0.16);
}

.auth__control-icon {
  display: inline-flex;
  flex: 0 0 auto;
  color: var(--auth-muted);
}

.auth__control-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.auth__control input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--auth-ink);
  font: inherit;
  font-size: 14.5px;
}

.auth__control input:focus {
  outline: none;
}

.auth__control input::placeholder {
  color: #9aa6ba;
}

.auth__reveal {
  display: inline-flex;
  flex: 0 0 auto;
  padding: 4px;
  border: 0;
  background: none;
  color: var(--auth-muted);
  cursor: pointer;
}

.auth__reveal svg {
  display: block;
  width: 19px;
  height: 19px;
}

.auth__reveal[aria-pressed="true"] {
  color: var(--auth-pink);
}

.auth__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  margin-top: 12px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: var(--auth-grad);
  color: #fff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 61, 154, 0.28);
  transition: transform 0.12s ease, box-shadow 0.12s ease;
}

.auth__submit:hover {
  box-shadow: 0 12px 28px rgba(255, 61, 154, 0.34);
}

.auth__submit:active {
  transform: translateY(1px);
}

.auth__submit:disabled {
  opacity: 0.65;
  cursor: progress;
}

.auth__submit-icon svg {
  display: block;
  width: 18px;
  height: 18px;
}

.auth__divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 10px;
  color: var(--auth-muted);
  font-size: 11.5px;
  text-transform: lowercase;
}

.auth__divider::before,
.auth__divider::after {
  content: "";
  flex: 1 1 auto;
  height: 1px;
  background: var(--auth-line);
}

.auth__secondary {
  min-height: 42px;
  padding: 0 18px;
  border: 1px solid #cfe0ff;
  border-radius: 999px;
  background: #fff;
  color: var(--auth-blue);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.auth__secondary:hover {
  border-color: var(--auth-blue);
  background: #f5f9ff;
}

.auth__access {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.auth__access-label {
  font-size: 11.5px;
  color: var(--auth-muted);
}

.auth__roles {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
}

.auth__role {
  min-height: 36px;
  padding: 0 4px;
  border: 1px solid var(--auth-line);
  border-radius: 10px;
  background: #fff;
  color: var(--auth-ink);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.auth__role:hover {
  border-color: var(--auth-blue);
  color: var(--auth-blue);
}

.auth__role:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* Escritorio: hero a la izquierda, tarjeta a la derecha. */
@media (min-width: 1024px) {
  .auth {
    grid-template-columns: minmax(0, 1.06fr) minmax(430px, 0.94fr);
    align-items: stretch;
  }

  .auth__art {
    min-height: 100dvh;
  }

  /* La foto no manda en la altura de la fila: se ancla al panel. */
  .auth__art picture {
    position: absolute;
    inset: 0;
    display: block;
  }

  .auth__media {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: left top;
  }

  .auth__panel {
    align-content: center;
    padding: 40px clamp(24px, 4vw, 64px);
    margin-top: 0;
  }

  .auth__card {
    max-width: 440px;
    padding: 30px 28px 26px;
    border-radius: 28px;
  }

  .auth__title {
    font-size: 26px;
  }
}

/* Movil bajo: la tarjeta se pega al hero y todo entra sin desplazar. */
@media (max-width: 1023px) and (max-height: 780px) {
  .auth__media {
    height: 128px;
  }

  .auth__panel {
    margin-top: -16px;
    padding-bottom: 22px;
  }

  .auth__card {
    padding: 16px 16px 14px;
    gap: 2px;
  }

  .auth__title {
    font-size: 18px;
  }

  .auth__subtitle {
    margin-bottom: 4px;
    font-size: 11.5px;
  }

  .auth__control input {
    min-height: 38px;
  }

  .auth__submit {
    min-height: 42px;
    margin-top: 8px;
  }

  .auth__divider {
    margin: 8px 0 6px;
  }

  .auth__secondary {
    min-height: 38px;
  }

  .auth__access {
    margin-top: 10px;
  }

  .auth__role {
    min-height: 32px;
  }
}
/* --- barra movil --------------------------------------------------------- */
/* La plataforma la pinta oscura; aqui se viste de marca (blanco, tinta azul
   profundo) para que case con el resto. */

body[data-page="feed"] .sm-feed-native__mobile-bar {
  border-bottom: 1px solid var(--wb-line, #e3e8f1);
  background: rgba(255, 255, 255, 0.98);
}

body[data-page="feed"] .sm-mobile-bar__back,
body[data-page="feed"] .sm-mobile-bar__lupa {
  border-color: var(--wb-line, #e3e8f1);
  background: var(--wb-bg, #f6f8fc);
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-mobile-bar__eyebrow {
  color: var(--wb-magenta, #ff3d9a);
}

body[data-page="feed"] .sm-mobile-bar__tagline {
  color: var(--wb-ink, #081f3b);
  font-family: "Montserrat", "Inter", sans-serif;
  font-weight: 600;
}

/* --- menu movil ---------------------------------------------------------- */
/* La plataforma trae `.sm-mobile-menu` con la paleta oscura anterior; aqui se
   viste con la marca: panel blanco, tinta azul profundo y acentos coral/rosa. */

body[data-page="feed"] .sm-mobile-menu__panel {
  background: #fff;
  border-right: 1px solid var(--wb-line, #e3e8f1);
  box-shadow: 24px 0 60px rgba(8, 31, 59, 0.18);
}

body[data-page="feed"] .sm-mobile-menu__head strong {
  color: var(--wb-ink, #081f3b);
  font-family: "Montserrat", "Inter", sans-serif;
  letter-spacing: 0.04em;
}

body[data-page="feed"] .sm-mobile-menu__close {
  border-color: var(--wb-line, #e3e8f1);
  background: var(--wb-bg, #f6f8fc);
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-mobile-menu__user {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  border-color: var(--wb-line, #e3e8f1);
  background: var(--wb-bg, #f6f8fc);
}

body[data-page="feed"] .sm-mobile-menu__user-avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 999px;
  background: linear-gradient(135deg, #2a6be0, #081f3b);
  color: #fff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
}

body[data-page="feed"] .sm-mobile-menu__user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body[data-page="feed"] .sm-mobile-menu__user-copy strong {
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-mobile-menu__user-copy span {
  color: var(--wb-muted, #5b6b85);
}

body[data-page="feed"] .sm-mobile-menu__item {
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-mobile-menu__item:hover {
  background: var(--wb-bg, #f6f8fc);
}

body[data-page="feed"] .sm-mobile-menu__icon {
  color: var(--wb-magenta, #ff3d9a);
}

body[data-page="feed"] .sm-mobile-menu__badge {
  background: rgba(255, 61, 154, 0.12);
  color: #c9186c;
}

body[data-page="feed"] .sm-mobile-menu__foot {
  border-top-color: var(--wb-line, #e3e8f1);
}

body[data-page="feed"] .sm-mobile-menu__item-logout {
  color: #c62828;
}

body[data-page="feed"] .sm-mobile-menu__item-logout .sm-mobile-menu__icon {
  color: #c62828;
}

/* La hoja esconde el icono del primer elemento y lo cambia por un PNG de la
   marca anterior: SCOUT usa sus propios SVG en todos. */
body[data-app="wobawo"] .sm-mobile-menu__list > .sm-mobile-menu__item:first-child .sm-mobile-menu__icon svg,
body[data-app="wobawo"] .sm-feed-native__menu-list[data-brand-menu] > .sm-feed-native__menu-link:first-child .sm-feed-native__menu-icon svg {
  display: block;
}

body[data-app="wobawo"] :is(.sm-feed-native__menu-icon, .sm-mobile-menu__icon) {
  --wb-menu-icon: none;
}

/* La cabecera del menu pinta el lockup por variable; sin ella quedaba vacia. */
body[data-page="feed"] .sm-mobile-menu__head {
  --wb-logo: url("/scout/brand/logo.png");
}

/* El cierre se coloca en la fila de la cabecera en vez de flotar fuera del
   panel cuando la cabecera pierde el contexto de posicionado. */
body[data-page="feed"] .sm-mobile-menu__head > .sm-mobile-menu__close {
  position: static;
  grid-column: 2;
  grid-row: 1;
  justify-self: end;
  margin: 0;
}

/* --- tira de historias ---------------------------------------------------- */
/* Propia, no la de la hoja: la de la plataforma recorta el nombre en cuanto la
   fila se estira. Aqui la altura la marca el contenido. */

.scout-stories {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  height: 94px;
  max-height: 94px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 2px 0 6px;
  scrollbar-width: none;
}

.scout-stories::-webkit-scrollbar {
  display: none;
}

.scout-stories__empty {
  margin: 0;
  color: var(--wb-muted, #5b6b85);
  font-size: 0.82rem;
}

.scout-story {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 74px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.scout-story__ring {
  display: inline-grid;
  place-items: center;
  width: 62px;
  height: 62px;
  padding: 3px;
  border-radius: 999px;
  background: linear-gradient(135deg, #00e5d0, #3b82ff 45%, #ff3d9a 80%, #ffc94d);
}

.scout-story.is-seen .scout-story__ring {
  background: var(--wb-line, #e3e8f1);
}

.scout-story__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 999px;
  background: #081f3b;
  color: #fff;
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 1rem;
  font-weight: 700;
}

.scout-story__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 999px;
  display: block;
}

.scout-story__name {
  max-width: 74px;
  overflow: hidden;
  color: var(--wb-ink, #081f3b);
  font-size: 0.72rem;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scout-story.is-seen .scout-story__name {
  color: var(--wb-muted, #5b6b85);
}

/* --- banner de superficie ------------------------------------------------- */
/* El banner elige el modo del centro (feed, reels, historias, biblos) y, a su
   lado, el boton de filtro que abre los ambitos de la marca. La hoja importada
   los pinta en oscuro (oro sobre negro): aqui pasan a tinta sobre lienzo. */

/* En <= 1100 px la hoja esconde el banner y deja solo la barra. SCOUT lo
   mantiene, pero en una fila: sin el saludo, con el selector y el filtro. */
@media (max-width: 1100px) {
  body[data-page="feed"] .sm-feed-shell[data-feed-profile="false"] .sm-feed-native__hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 6px;
    padding: 8px 10px;
  }

  body[data-page="feed"] .sm-feed-shell[data-feed-profile="false"] .sm-feed-native__hero-copy {
    display: none;
  }

  body[data-page="feed"] .sm-feed-native__hero-tools {
    justify-content: space-between;
    width: 100%;
  }

  body[data-page="feed"] .sm-feed-native__view-toggle-item {
    padding: 6px 9px;
    font-size: 0.74rem;
  }
}

body[data-page="feed"] .sm-feed-native__view-toggle {
  border-color: var(--wb-line, #e3e8f1);
  background: var(--wb-bg, #f6f8fc);
}

body[data-page="feed"] .sm-feed-native__view-toggle-item {
  color: var(--wb-muted, #5b6b85);
}

body[data-page="feed"] .sm-feed-native__view-toggle-item:hover {
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-feed-native__view-toggle-item.is-active {
  background: var(--wb-ink, #081f3b);
  color: #fff;
}

body[data-page="feed"] .sm-feed-scope-select__trigger {
  border-color: var(--wb-line, #e3e8f1);
  background: var(--wb-bg, #f6f8fc);
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-feed-scope-select__trigger:hover {
  border-color: var(--wb-blue, #2a6be0);
  color: var(--wb-blue, #2a6be0);
}

body[data-page="feed"] .sm-feed-scope-select__caret svg {
  width: 12px;
  height: 12px;
  display: block;
}

body[data-page="feed"] .sm-feed-scope-pill {
  border: 1px solid var(--wb-line, #e3e8f1);
  background: #fff;
  color: var(--wb-muted, #5b6b85);
}

body[data-page="feed"] .sm-feed-scope-pill:hover {
  border-color: var(--wb-blue, #2a6be0);
  color: var(--wb-blue, #2a6be0);
}

body[data-page="feed"] .sm-feed-scope-pill.is-active {
  border-color: var(--wb-ink, #081f3b);
  background: var(--wb-ink, #081f3b);
  color: #fff;
}

/* --- selector de vista de la barra movil ---------------------------------- */

body[data-page="feed"] .sm-mobile-bar__view-select {
  border-color: var(--wb-line, #e3e8f1);
  background: var(--wb-bg, #f6f8fc);
}

body[data-page="feed"] .sm-mobile-bar__view-select-main,
body[data-page="feed"] .sm-mobile-bar__view-select-caret {
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-mobile-bar__view-select-caret {
  border-left-color: var(--wb-line, #e3e8f1);
}

body[data-page="feed"] .sm-mobile-bar__view-menu {
  border-color: var(--wb-line, #e3e8f1);
  background: #fff;
  box-shadow: 0 14px 32px rgba(8, 31, 59, 0.16);
}

body[data-page="feed"] .sm-mobile-bar__view-menu button {
  color: var(--wb-ink, #081f3b);
}

body[data-page="feed"] .sm-mobile-bar__view-menu button:hover {
  background: var(--wb-bg, #f6f8fc);
}

body[data-page="feed"] .sm-mobile-bar__view-menu button.is-active {
  background: var(--wb-ink, #081f3b);
  color: #fff;
}

/* --- primario de marca ---------------------------------------------------- */
/* La hoja importada pinta el primario en verde y oro (marca anterior). Aqui se
   cambia por el degradado coral -> rosa del tablero, sin tocar la forma. */

body[data-app="wobawo"][data-page="feed"] .sm-button-primary {
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(96deg, #ff7849 0%, #ff3d9a 100%);
  box-shadow: 0 8px 20px rgba(255, 61, 154, 0.26);
  text-shadow: none;
}

body[data-app="wobawo"][data-page="feed"] .sm-button-primary:hover {
  filter: brightness(1.06);
}

body[data-app="wobawo"][data-page="feed"] .sm-button-primary::after {
  content: none;
}

/* --- capa de compatibilidad del tema ------------------------------------- */
/* La hoja de la marca repinta el armazon con sus tokens `--wb-*`, pero varias
   superficies del prototipo base (composer, tarjetas de ajustes, conversaciones
   y hoja de creacion) quedan fuera de esa lista: conservan el fondo oscuro del
   tema oscuro mientras la tinta ya paso a `var(--wb-ink)`, y el texto
   desaparece. Aqui se alinean con los mismos tokens, asi que siguen al tema. */

body[data-app="wobawo"][data-page="feed"] :is(
  .sm-feed-native__composer,
  .sm-feed-settings__stat-card,
  .sm-feed-settings__info-card,
  .sm-feed-settings__wallet-block,
  .sm-conversation-list,
  .sm-conversation-card,
  .sm-feed-native__create-sheet-panel,
  .sm-feed-native__create-sheet-item
) {
  background: var(--wb-surface, #fff) !important;
  border-color: var(--wb-line, #e3e6ee) !important;
  color: var(--wb-ink, #14161c) !important;
}

body[data-app="wobawo"][data-page="feed"] :is(
  .sm-feed-native__composer textarea,
  .sm-feed-native__composer input,
  .sm-feed-native__create-sheet-close
) {
  background: var(--wb-bg, #fbfbfd) !important;
  border-color: var(--wb-line, #e3e6ee) !important;
  color: var(--wb-ink, #14161c) !important;
}

/* Tinta del tema para los nodos cuya regla base gana a la del tema. */
body[data-app="wobawo"][data-page="feed"] :is(
  .sm-feed-settings__panel-head .sm-eyebrow,
  .sm-feed-settings__panel-head h3,
  .sm-feed-settings__nav-item,
  .sm-feed-settings__nav-item strong,
  .sm-feed-settings__nav-item.is-active,
  .sm-feed-settings__toggle-row,
  .sm-feed-native__profile-stats strong,
  .sm-feed-native__hero-copy p,
  .sm-feed-native__create-sheet-head strong,
  .sm-feed-native__create-sheet-item strong,
  .sm-feed-story-placeholder
) {
  color: var(--wb-ink, #14161c) !important;
}

body[data-app="wobawo"][data-page="feed"] :is(
  .sm-feed-settings__nav-item span,
  .sm-feed-settings__placeholder-copy,
  .sm-feed-settings__pref-field label,
  .sm-feed-settings__pref-hint,
  .sm-feed-settings__age-hint,
  .sm-feed-settings__stat-card span,
  .sm-feed-native__profile-stats span,
  .sm-feed-native__create-sheet-item small
) {
  color: var(--wb-muted, #5c6472) !important;
}
/* --- avisos --------------------------------------------------------------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 90px;
  z-index: 90;
  max-width: min(420px, 90vw);
  padding: 10px 16px;
  border-radius: 12px;
  background: #101014;
  color: #fff;
  font-size: 0.86em;
  opacity: 0;
  transform: translate(-50%, 10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
}

.toast[data-show="1"] {
  opacity: 1;
  transform: translate(-50%, 0);
}

.toast[data-tone="error"] {
  background: #7f1d1d;
}

/* --- piezas de las vistas propias ---------------------------------------- */
/* Componentes de SCOUT que no existen en la hoja de la plataforma. Se estilan
   aqui para que convivan con las tarjetas del feed, sin tocar `sm.css`. */

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

@media (min-width: 640px) {
  .grid-2 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  overflow: hidden;
}

.progress__fill {
  display: block;
  height: 100%;
  background: currentColor;
  opacity: 0.7;
}

/* Convocatorias y retos: tarjeta con la misma silueta que la del feed. */
.event {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.event__head {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.event__title {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.event__title b {
  font-size: 1em;
}

.event__title span {
  font-size: 0.82em;
  opacity: 0.66;
}

.event__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.event__foot {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Publicacion guardada (radar): mismo marco que la tarjeta del feed. */
.post {
  display: grid;
  gap: 10px;
  padding: 16px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.post__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.post__who {
  display: grid;
  gap: 1px;
  min-width: 0;
}

.post__who b {
  font-size: 0.9em;
}

.post__who span,
.post__stats {
  font-size: 0.78em;
  opacity: 0.66;
}

.post__body {
  font-size: 0.94em;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.post__media {
  border-radius: 12px;
  overflow: hidden;
  background: #000;
}

.post__media img,
.post__media video {
  display: block;
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.post__stats {
  display: flex;
  gap: 14px;
}

/* Contadores y acciones del rail. */
.sm-feed-native__menu-badge {
  margin-left: auto;
  min-width: 20px;
  padding: 1px 6px;
  border-radius: 999px;
  background: currentColor;
  color: #fff;
  font-size: 0.7em;
  font-weight: 700;
  text-align: center;
}

.sm-feed-native__utility-action,
.sm-feed-native__utility-link {
  border: 0;
  background: none;
  padding: 0;
  font: inherit;
  font-size: 0.86em;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.wb-rservices__list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}