/* PREVIEW ONLY — pendiente de integrar los tres PNG transparentes aprobados.
   Mantiene la preferencia clara/oscura del dispositivo; no modifica funciones. */
.ui1a-aviso {
  padding: 4px 8px; font-size: 10px; line-height: 1.3;
  letter-spacing: 0; font-weight: 600;
}
.ui2a-top.ui2a-top { padding: 4px 0 6px; gap: 4px; }
.ui2a-top .ui2a-logo { height: 68px; max-width: 100%; object-fit: contain; }
@media (min-width:700px) { .ui2a-top .ui2a-logo { height: 78px; } }
.screen-head { padding: 10px 0; }
.ui1a-top ~ .screen-head h1 > span:first-child { font-size: 21px; }
.ui1a-top ~ .screen-head h1 .count { font-size: 15px; }

/* Recupera tarjeta lavanda suave y jerarquía compacta; la figura será solo la cara. */
body .startcard.ui1a-card {
  padding: 16px; border-radius: 22px; color: #35252c;
  background: linear-gradient(165deg, #f4effa, #e8dff3);
  border: 1px solid #d5b783; box-shadow: 0 6px 20px rgb(55 34 68 / .10);
}
body .startcard.ui1a-card .startcard-k { font-size: 11px; margin: 0 0 8px; }
body .startcard.ui1a-card .startcard-task,
body .startcard.ui1a-card .ui1d-h,
body .startcard.ui1a-card .ui1e-h {
  font-size: clamp(23px, 6vw, 30px); line-height: 1.12; margin: 0 0 8px;
}
body .startcard.ui1a-card .startcard-msg,
body .startcard.ui1a-card .lede,
body .startcard.ui1a-card .ui1d-date {
  font-family: var(--font-body); font-size: 14px; line-height: 1.45; margin-bottom: 10px;
}
body .startcard.ui1a-card .btn.on-accent {
  min-height: 48px; font-family: var(--font-body); font-size: 15px;
}
body .startcard.ui1a-card > *:not(.ui1a-card-maia):not(.btn) { max-width: 62%; }
body .startcard.ui1a-card .ui1a-card-maia.ui2a-ref {
  width: 34%; max-width: 150px; height: 135px; aspect-ratio: auto;
  right: 6px; top: 10px; bottom: auto; background: none;
  border: 0; border-radius: 0; overflow: visible;
}
body .startcard.ui1a-card .ui1a-card-maia.ui2a-ref img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%;
  object-fit: contain; object-position: center; background: none;
  -webkit-mask-image: none; mask-image: none; transform: none;
}
/* Los PNG RGBA se muestran completos, con su transparencia real. */
body .startcard.ui1a-card .ui1a-card-maia.ui2a-ref img { visibility: visible; }
body .startcard.ui1a-card:has(> .btn) { min-height: 205px; }
body .startcard.ui1a-card:not(:has(> .btn)),
body .startcard.ui1a-card.ui1d-card.ui1d-cap { min-height: 156px; }
body .startcard.ui1a-card.ui1d-card.ui1e-card,
body .ui1e2-guide .startcard.ui1a-card.ui1d-card.ui1e2-gcard { min-height: 150px; }

/* Retira la imagen con cartel flotante; la pose asomada irá en el acceso central. */
.ui1b-pose.ui2a-pose { display: none; }
.ask, .ask-list ~ .ask-bar, .ask-links ~ .ask-bar { margin-top: 12px; }
body.on-chat #app { padding-bottom: calc(var(--tabbar) + var(--safe-b) + var(--composer, 72px) + 24px); }
body.on-chat.kb-open #app, body.on-chat.kb-focus #app {
  padding-bottom: calc(var(--kb, 0px) + var(--composer, 72px) + 24px);
}
@media (max-width:899px) {
  #app { padding-top: calc(var(--safe-t) + 10px); }
  #tabs.ui1c-tabs {
    left: 6px; right: 6px; bottom: calc(var(--safe-b) + 6px);
    grid-template-columns: repeat(7,minmax(0,1fr)); gap: 0; padding: 4px;
  }
  #tabs.ui1c-tabs .tab { min-width: 0; min-height: 62px; padding: 3px 0; border-radius: 14px; }
  #tabs.ui1c-tabs .tab .tab-label { font-size: 10px; letter-spacing: -.15px; white-space: nowrap; }
  #tabs.ui1c-tabs .ui2a-tab-maia .tab-ico { height: 38px; }
  #tabs .ui2a-tabbody.ui1a-ref {
    left: 50%; width: 42px; height: 38px; margin-left: -21px; bottom: 0;
    aspect-ratio: auto; overflow: visible; background: none; filter: none;
  }
  #tabs .ui2a-tabbody.ui1a-ref img {
    position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%;
    object-fit: contain; background: none; -webkit-mask-image: none; mask-image: none;
    visibility: visible;
  }
}

/* Assets RGBA: sin recortes, máscaras ni fondos fingidos. */
.ui2a-top .ui2a-logo { mix-blend-mode: normal; background: none; }
.l3-ident.ui2a-ident { background: transparent; border: 0; box-shadow: none; overflow: visible; }
body .ui1a-ref.ui2a-ref-cara { background: transparent; }
body .ui1a-ref.ui2a-ref-cara img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%;
  object-fit: contain; mix-blend-mode: normal; -webkit-mask-image: none; mask-image: none;
}
.toast-maia, .voz .maia-poke, .rt-live .maia-poke {
  background: transparent url('/ui_visual_aprobada/cara-alpha.png') center / contain no-repeat;
}
#tabs .ui2a-tabbody.ui1a-ref {
  width: 42px; height: 38px; margin-left: -21px; bottom: 0;
  aspect-ratio: auto; overflow: visible; background: none; filter: none;
}
#tabs .ui2a-tabbody.ui1a-ref img {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: 100%;
  object-fit: contain; background: none; -webkit-mask-image: none; mask-image: none;
  visibility: visible;
}
@media (min-width:900px) {
  body.authed #tabs .ui2a-tabbody.ui1a-ref { width: 40px; height: 34px; margin-left: -20px; bottom: -3px; }
}
/* Un espacio real entre el compositor fijo y el dock; con teclado abierto
   se conserva la regla original que coloca el compositor sobre el teclado. */
@media (max-width:899px) {
  body:not(.kb-open):not(.kb-focus) .composer {
    bottom: calc(var(--tabbar) + var(--safe-b) + 12px);
  }
  body.on-chat:not(.kb-open):not(.kb-focus) #app {
    padding-bottom: calc(var(--tabbar) + var(--safe-b) + var(--composer, 72px) + 36px);
  }
}
