/*
 * Habilidad Humana — capa de integración de aplicaciones
 *
 * Esta hoja se carga después de los estilos propios del sitio y de los paneles.
 * Mantiene sus layouts y comportamiento, pero unifica la presentación con los
 * tokens y componentes oficiales de private/design_system.
 */
@import url("habilidadhumana.css");

:root {
  /* Alias del sitio público y del CMS legado hacia los tokens oficiales. */
  --bg-main: var(--hh-ivory);
  --bg-deep: var(--hh-ivory);
  --bg-sidebar: linear-gradient(180deg, var(--hh-night) 0%, #07151f 100%);
  --bg-card: var(--hh-white);
  --bg-card-soft: var(--hh-gray-100);
  --bg-card-hover: var(--hh-gray-50);
  --bg-input: var(--hh-white);
  --bg-table: var(--hh-white);
  --text-main: var(--hh-night);
  --text: var(--hh-night);
  --text-soft: var(--hh-gray-600);
  --text-secondary: var(--hh-gray-600);
  --text-muted: var(--hh-gray-500);
  --line-soft: rgba(11, 29, 42, .12);
  --border: var(--hh-gray-200);
  --border-hover: var(--hh-gray-300);
  --acid: var(--hh-coral);
  --acid-soft: #f46b48;
  --acid-green: var(--hh-coral);
  --green: var(--hh-teal);
  --green-dim: rgba(31, 167, 160, .12);
  --blue: var(--hh-blue);
  --blue-dim: rgba(23, 55, 94, .10);
  --purple: var(--hh-teal);
  --purple-dim: rgba(31, 167, 160, .10);
  --diagram-accent: var(--hh-teal);
  --diagram-bg: var(--hh-night);
  --orange: var(--hh-coral);
  --radius-sm: var(--hh-radius-sm);
  --radius-md: var(--hh-radius-md);
  --radius-lg: var(--hh-radius-lg);
  --radius-xl: var(--hh-radius-xl);
  --shadow: var(--hh-shadow-md);
  --shadow-soft: var(--hh-shadow-lg);
  --transition: all var(--hh-duration-fast) var(--hh-ease);
}

body,
body.admin-body {
  color: var(--hh-night);
  background: var(--hh-ivory);
  font-family: var(--hh-font-body);
}

h1, h2, h3,
.header-left h1,
.section-title,
.hero-title,
.card-title,
.metric-value,
.stat-num {
  font-family: var(--hh-font-display);
  letter-spacing: -.02em;
}

a,
button,
input,
textarea,
select {
  transition-duration: var(--hh-duration-fast);
  transition-timing-function: var(--hh-ease);
}

/* -------------------------------------------------------------------------- */
/* Sitio público                                                              */
/* -------------------------------------------------------------------------- */

.site-wrapper {
  min-height: 100vh;
  color: var(--hh-night);
  background:
    radial-gradient(circle at 82% 12%, rgba(31, 167, 160, .13), transparent 25%),
    radial-gradient(circle at 12% 58%, rgba(255, 122, 89, .10), transparent 28%),
    var(--hh-ivory);
}

.container-135 {
  width: min(100%, var(--hh-container-wide));
  padding-top: var(--hh-space-6);
}

.nav-135 {
  align-items: center;
  margin-bottom: var(--hh-space-12);
}

.nav-links a {
  color: var(--hh-gray-600);
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.nav-active {
  color: var(--hh-teal);
}

.nav-links a.nav-active::after {
  background: var(--hh-teal);
}

.nav-flap__shell,
.nav-flap__panel {
  color: var(--hh-night);
  background: rgba(245, 241, 235, .96);
  border-color: rgba(11, 29, 42, .12);
  box-shadow: var(--hh-shadow-md);
}

.nav-flap__toggle { color: var(--hh-night); }
.nav-flap__label { color: var(--hh-teal); }
.nav-flap__chevron { border-color: var(--hh-teal); }
.nav-flap__links a { color: var(--hh-gray-700); }
.nav-flap__links a:hover,
.nav-flap__links a.nav-active {
  color: var(--hh-blue);
  background: rgba(31, 167, 160, .12);
}

.btn-acid,
.hero-subscribe__btn,
.cw-btn-green,
.btn-login {
  color: var(--hh-white) !important;
  background: var(--hh-coral) !important;
  border-color: transparent !important;
  box-shadow: none;
}

.btn-acid:hover,
.hero-subscribe__btn:hover:not(:disabled),
.cw-btn-green:hover,
.btn-login:hover {
  color: var(--hh-white) !important;
  background: #f46b48 !important;
  box-shadow: var(--hh-shadow-sm);
}

.btn-outline-dark135 {
  color: var(--hh-blue);
  background: transparent;
  border-color: var(--hh-blue);
}

.btn-outline-dark135:hover {
  color: var(--hh-white);
  background: var(--hh-blue);
  border-color: var(--hh-blue);
}

.btn-arrow {
  color: var(--hh-white);
  background: var(--hh-blue);
}

.eyebrow,
.hero-subscribe__title,
.section-kicker {
  color: var(--hh-teal);
}

.hero-title {
  color: var(--hh-night);
  font-weight: 600;
  letter-spacing: -.045em;
}

.hero-title em { color: var(--hh-coral); }
.hero-text,
.hero-highlight__text { color: var(--hh-gray-600); }
.hero-highlight__title { color: var(--hh-night); }
.hero-135 { border-color: rgba(11, 29, 42, .12); }

.hero-highlight__icon img {
  filter: none;
}

.hero-subscribe-stack .hero-subscribe,
.hero-subscribe {
  color: var(--hh-night);
  background: rgba(255, 255, 255, .92);
  border-color: var(--hh-gray-200);
  box-shadow: var(--hh-shadow-sm);
}

.hero-subscribe__input,
.cw-form input,
.cw-form textarea,
.cw-form select {
  color: var(--hh-night);
  background: var(--hh-white);
  border-color: var(--hh-gray-300);
}

.hero-subscribe__input:focus,
.cw-form input:focus,
.cw-form textarea:focus,
.cw-form select:focus {
  border-color: var(--hh-teal);
  box-shadow: 0 0 0 3px rgba(31, 167, 160, .13);
}

.hero-subscribe__consent,
.hero-subscribe__consent a { color: var(--hh-gray-600); }

.home-module,
.content-shell,
.section-135,
.home-rich-text,
.home-posts,
.home-ideas,
.newsletter-section {
  color: var(--hh-night);
}

.content-card,
.post-card,
.idea-card,
.service-card,
.pricing-card,
.testimonial-card,
.faq-item,
.media-text-card,
.cw-card {
  color: var(--hh-night);
  background: var(--hh-white);
  border-color: var(--hh-gray-200);
  border-radius: var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-xs);
}

.content-card:hover,
.post-card:hover,
.idea-card:hover,
.service-card:hover,
.pricing-card:hover,
.cw-card:hover {
  border-color: rgba(31, 167, 160, .45);
  box-shadow: var(--hh-shadow-md);
}

.footer-135 {
  color: var(--hh-ivory);
  background: var(--hh-night);
  border-radius: var(--hh-radius-xl) var(--hh-radius-xl) 0 0;
  padding-inline: clamp(1.25rem, 4vw, 3rem);
}

.footer-135-top-line { background: rgba(245, 241, 235, .18); }
.footer-brand p,
.footer-col a,
.footer-social a { color: rgba(245, 241, 235, .72); }
.footer-col h4 { color: var(--hh-ivory); }
.footer-script { color: var(--hh-coral) !important; }

.private-services-widget {
  padding-block: clamp(2rem, 3.5vw, 3.25rem);
  color: var(--hh-night);
}

/* Ritmo entre pisos: evita sumar margen inferior + padding superior. */
.home-how-it-works + .private-services-widget {
  padding-top: 0;
}

.private-services-widget + .home-final-cta {
  margin-top: clamp(36px, 4vw, 56px);
}

.private-services-widget__header {
  max-width: 760px;
  margin-bottom: var(--hh-space-8);
}

.private-services-widget__title {
  margin: 0;
  color: var(--hh-night);
  font-family: var(--hh-font-display);
  font-size: var(--hh-text-3xl);
  font-weight: 600;
  line-height: 1;
}

.private-services-widget__lead {
  margin: var(--hh-space-4) 0 0;
  color: var(--hh-gray-600);
  font-size: var(--hh-text-lg);
}

.private-services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: var(--hh-space-6);
}

.private-services-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.private-services-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.private-services-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.private-service-card {
  display: flex;
  flex-direction: column;
  min-height: 250px;
  padding: clamp(1.25rem, 2.5vw, 2rem);
  background: var(--hh-white);
  border: 1px solid var(--hh-gray-200);
  border-radius: var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-xs);
  transition: transform var(--hh-duration-fast) var(--hh-ease), box-shadow var(--hh-duration-fast) var(--hh-ease), border-color var(--hh-duration-fast) var(--hh-ease);
}

.private-service-card:hover {
  transform: translateY(-3px);
  border-color: rgba(31, 167, 160, .45);
  box-shadow: var(--hh-shadow-md);
}

.private-service-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--hh-space-4);
  margin-bottom: var(--hh-space-6);
}

.private-service-card__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  color: var(--hh-teal);
  background: rgba(31, 167, 160, .12);
  border-radius: 14px;
  font-size: 1.35rem;
}

.private-service-card__code {
  padding: .32rem .6rem;
  color: var(--hh-blue);
  background: rgba(23, 55, 94, .08);
  border-radius: var(--hh-radius-pill);
  font-size: var(--hh-text-xs);
  font-weight: 700;
  letter-spacing: .05em;
}

.private-service-card__title {
  margin: 0 0 var(--hh-space-3);
  color: var(--hh-night);
  font-family: var(--hh-font-display);
  font-size: var(--hh-text-xl);
  font-weight: 600;
  line-height: 1.05;
}

.private-service-card__text {
  margin: 0;
  color: var(--hh-gray-600);
  line-height: 1.6;
}

.private-service-card__price {
  margin: auto 0 0;
  padding-top: var(--hh-space-6);
  color: var(--hh-coral);
  font-size: var(--hh-text-lg);
  font-weight: 700;
}

.private-services-widget__empty {
  padding: var(--hh-space-8);
  color: var(--hh-gray-600);
  background: var(--hh-white);
  border: 1px dashed var(--hh-gray-300);
  border-radius: var(--hh-radius-lg);
  text-align: center;
}

@media (max-width: 900px) {
  .private-services-grid--3,
  .private-services-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .private-services-grid,
  .private-services-grid--2,
  .private-services-grid--3,
  .private-services-grid--4 { grid-template-columns: 1fr; }
}

/* Bootstrap usado en estados de instalación y acceso del CMS. */
.text-light { color: var(--hh-night) !important; }
.text-secondary { color: var(--hh-gray-600) !important; }
.btn-success {
  color: var(--hh-white);
  background: var(--hh-coral);
  border-color: var(--hh-coral);
}

/* -------------------------------------------------------------------------- */
/* CMS principal                                                              */
/* -------------------------------------------------------------------------- */

body.admin-body {
  --bg-deep: var(--hh-ivory);
  --bg-card: var(--hh-white);
  --bg-card-hover: var(--hh-gray-50);
  --bg-input: var(--hh-white);
  --bg-table: var(--hh-white);
  --border: var(--hh-gray-200);
  --border-hover: var(--hh-gray-300);
  --text: var(--hh-night);
  --text-secondary: var(--hh-gray-600);
  --text-muted: var(--hh-gray-500);
  --green: var(--hh-teal);
  --acid-green: var(--hh-teal);
  --blue: var(--hh-blue);
  --purple: var(--hh-coral);
  --shadow: var(--hh-shadow-md);
}

.admin-main {
  background:
    radial-gradient(ellipse at 18% 0%, rgba(31, 167, 160, .08), transparent 44%),
    radial-gradient(ellipse at 90% 100%, rgba(255, 122, 89, .07), transparent 42%),
    var(--hh-ivory);
}

.admin-sidebar {
  --border: rgba(245, 241, 235, .10);
  --border-hover: rgba(245, 241, 235, .20);
  --text: var(--hh-ivory);
  --text-secondary: rgba(245, 241, 235, .72);
  --text-muted: rgba(245, 241, 235, .48);
  --green: var(--hh-teal);
  --blue: var(--hh-teal);
  --blue-dim: rgba(31, 167, 160, .12);
  background: linear-gradient(180deg, var(--hh-night) 0%, #07151f 100%);
}

.sidebar-logo img {
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.menu-item:hover { background: rgba(31, 167, 160, .12); }
.menu-item.active {
  color: var(--hh-white);
  background: rgba(31, 167, 160, .16);
  box-shadow: none;
}
.menu-item.active::before {
  background: var(--hh-coral);
  box-shadow: none;
}
.menu-item.active i { color: var(--hh-teal); filter: none; }

.sidebar-site-link { background: rgba(255, 255, 255, .04); }
.sidebar-site-link:hover {
  background: rgba(31, 167, 160, .12);
  border-color: rgba(31, 167, 160, .32);
  box-shadow: none;
}

.admin-header {
  padding-top: var(--hh-space-6);
}

.header-left h1 {
  color: var(--hh-night);
  font-size: clamp(1.8rem, 2.4vw, 2.5rem);
  font-weight: 600;
}

.search-bar input,
.form-input,
.form-textarea,
.form-select-input,
.filter-select,
.filter-search,
.tox-tinymce {
  color: var(--hh-night);
  background: var(--hh-white);
  border-color: var(--hh-gray-300);
}

.search-bar input:focus,
.form-input:focus,
.form-textarea:focus,
.form-select-input:focus,
.filter-select:focus,
.filter-search:focus {
  border-color: var(--hh-teal);
  box-shadow: 0 0 0 3px rgba(31, 167, 160, .13);
}

.btn-new,
.btn-save,
.btn-save--compact {
  color: var(--hh-white);
  background: var(--hh-coral);
  border-radius: var(--hh-radius-pill);
}

.btn-new:hover,
.btn-save:hover,
.btn-save--compact:hover {
  background: #f46b48;
  box-shadow: var(--hh-shadow-sm);
}

.metric-card,
.content-card,
.table-card,
.form-card,
.footer-admin-card,
.seo-card,
.settings-card,
.section-placeholder,
.admin-avatar,
.avatar-dropdown {
  background: var(--hh-white);
  border-color: var(--hh-gray-200);
  box-shadow: var(--hh-shadow-xs);
}

.metric-card:hover,
.content-card:hover,
.table-card:hover,
.form-card:hover {
  border-color: rgba(31, 167, 160, .4);
  box-shadow: var(--hh-shadow-sm);
}

.metric-value { color: var(--hh-blue); }
.status-published,
.badge-published { color: var(--hh-success); background: rgba(36, 122, 90, .12); }

.login-wrapper {
  background:
    radial-gradient(circle at 18% 20%, rgba(31, 167, 160, .13), transparent 25%),
    radial-gradient(circle at 82% 76%, rgba(255, 122, 89, .12), transparent 26%),
    var(--hh-ivory);
}

.login-card {
  background: var(--hh-white) !important;
  border-color: var(--hh-gray-200) !important;
  box-shadow: var(--hh-shadow-lg) !important;
}

.login-card label { color: var(--hh-gray-600) !important; }
.login-card .form-control {
  color: var(--hh-night) !important;
  background: var(--hh-white) !important;
  border-color: var(--hh-gray-300) !important;
}
.login-card .form-control:focus {
  border-color: var(--hh-teal) !important;
  box-shadow: 0 0 0 3px rgba(31, 167, 160, .13) !important;
}

/* -------------------------------------------------------------------------- */
/* Aplicación y administración dentro de /private                            */
/* -------------------------------------------------------------------------- */

.topbar {
  min-height: 74px;
  padding-inline: clamp(1rem, 3vw, 2rem);
  background: rgba(245, 241, 235, .94);
  border-color: rgba(11, 29, 42, .10);
  box-shadow: var(--hh-shadow-xs);
}

.brand-mini img { height: 38px; }
.topbar nav a { color: var(--hh-gray-600); }
.topbar nav a:hover {
  color: var(--hh-night);
  background: rgba(31, 167, 160, .10);
}
.topbar nav a.active {
  color: var(--hh-white);
  background: var(--hh-blue);
}

.container { width: min(100% - 2rem, var(--hh-container)); }

.card,
.stat-card,
.scenario-card,
.auth-card,
.modal {
  border-radius: var(--hh-radius-lg);
  box-shadow: var(--hh-shadow-xs);
}

.card:hover,
.stat-card:hover,
.scenario-card:hover {
  box-shadow: var(--hh-shadow-sm);
}

.btn {
  min-height: 42px;
  border-radius: var(--hh-radius-pill);
}
.btn-primary {
  color: var(--hh-white);
  background: var(--hh-coral);
}
.btn-primary:hover { background: #f46b48; }

input,
textarea,
select {
  border-radius: var(--hh-radius-sm);
}

.auth-page {
  background:
    radial-gradient(circle at 18% 20%, rgba(31, 167, 160, .13), transparent 25%),
    radial-gradient(circle at 82% 76%, rgba(255, 122, 89, .12), transparent 26%),
    var(--hh-ivory);
}

.auth-card {
  border-color: var(--hh-gray-200);
  box-shadow: var(--hh-shadow-lg);
}

.footer {
  color: rgba(245, 241, 235, .7);
  background: var(--hh-night);
}

@media (max-width: 992px) {
  .nav-135 { margin-bottom: var(--hh-space-8); }
  .nav-mobile-brand .logo-img { height: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* -------------------------------------------------------------------------- */
/* Navegación móvil compacta + experiencia enfocada de conversación           */
/* -------------------------------------------------------------------------- */

.private-nav-toggle,
.topbar-focus-title {
  display: none;
}

.participant-report-generating,
#requestParticipantReport[aria-busy="true"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
}

.report-progress-spinner {
  display: inline-block;
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: hh-report-spin .75s linear infinite;
}

@keyframes hh-report-spin {
  to { transform: rotate(360deg); }
}

.participant-report-progress #participantReportCheckNow {
  margin-top: .35rem;
}

@media (max-width: 720px) {
  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: .65rem;
    min-height: 62px;
    padding:
      max(.55rem, env(safe-area-inset-top, 0px))
      max(1rem, env(safe-area-inset-right, 0px))
      .55rem
      max(1rem, env(safe-area-inset-left, 0px));
  }

  .brand-mini {
    min-width: 0;
  }

  .brand-mini img {
    width: auto;
    height: 31px;
    max-width: min(52vw, 190px);
  }

  .private-nav-toggle {
    display: inline-grid;
    grid-template-columns: 20px auto;
    grid-template-rows: repeat(3, 4px);
    align-items: center;
    column-gap: 8px;
    width: auto;
    min-height: 42px;
    padding: 8px 12px;
    border: 1px solid var(--hh-gray-300);
    border-radius: var(--hh-radius-pill);
    color: var(--hh-night);
    background: rgba(255,255,255,.72);
    font: inherit;
    cursor: pointer;
  }

  .private-nav-toggle span {
    grid-column: 1;
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 99px;
    background: currentColor;
    transition: transform .2s ease, opacity .2s ease;
  }

  .private-nav-toggle span:nth-child(1) { grid-row: 1; align-self: end; }
  .private-nav-toggle span:nth-child(2) { grid-row: 2; }
  .private-nav-toggle span:nth-child(3) { grid-row: 3; align-self: start; }
  .private-nav-toggle b {
    grid-column: 2;
    grid-row: 1 / 4;
    font-size: .78rem;
    line-height: 1;
  }

  .topbar--menu-open .private-nav-toggle span:nth-child(1) {
    align-self: center;
    transform: translateY(4px) rotate(45deg);
  }
  .topbar--menu-open .private-nav-toggle span:nth-child(2) { opacity: 0; }
  .topbar--menu-open .private-nav-toggle span:nth-child(3) {
    align-self: center;
    transform: translateY(-4px) rotate(-45deg);
  }

  .topbar nav {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .45rem;
    width: 100%;
    max-height: min(58vh, 430px);
    padding: .75rem 0 .25rem;
    overflow-y: auto;
    border-top: 1px solid var(--hh-gray-200);
  }

  .topbar nav a {
    display: flex;
    min-height: 43px;
    align-items: center;
    justify-content: center;
    padding: .55rem .65rem;
    text-align: center;
    font-size: .82rem;
  }

  .topbar-user {
    display: none;
    grid-column: 1 / -1;
    justify-content: space-between;
    width: 100%;
    padding-top: .55rem;
    border-top: 1px solid var(--hh-gray-200);
  }

  .topbar--menu-open nav {
    display: grid;
  }

  .topbar--menu-open .topbar-user {
    display: flex;
  }

  /* En una prueba no se muestra el menú completo: solo contexto y salida. */
  .topbar--focus {
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 56px;
    padding-top: max(.45rem, env(safe-area-inset-top, 0px));
    padding-bottom: .45rem;
  }

  .topbar--focus .brand-mini img {
    height: 28px;
    max-width: 170px;
  }

  .topbar--focus .private-nav-toggle,
  .topbar--focus nav {
    display: none !important;
  }

  .topbar--focus .topbar-focus-title {
    display: none;
  }

  .topbar--focus .topbar-user {
    display: flex;
    grid-column: 2;
    grid-row: 1;
    width: auto;
    padding: 0;
    border: 0;
  }

  .topbar--focus .topbar-user__identity {
    display: none;
  }

  .topbar--focus .topbar-user .btn {
    min-height: 38px;
    padding: .35rem .85rem;
    font-size: .76rem;
  }

  .topbar--focus + .container {
    width: 100%;
    max-width: 760px;
    padding: .65rem .75rem 1rem;
  }

  .topbar--focus + .container .play-layout--active > .alert,
  .topbar--focus ~ .footer {
    display: none;
  }

  .topbar--focus + .container .play-layout > .card {
    margin-top: .35rem;
    padding: 1rem;
    border-radius: 20px;
  }

  .topbar--focus + .container .play-area {
    height: calc(100dvh - 76px);
    min-height: 0;
    margin-top: 0;
  }

  .topbar--focus + .container .play-header {
    gap: .65rem;
    padding-bottom: .7rem;
  }

  .topbar--focus + .container .hero-portrait {
    width: 52px;
    height: 52px;
    border-width: 2px;
    font-size: 1.55rem;
  }

  .topbar--focus + .container .customer-hero {
    min-width: 0;
    gap: .65rem;
  }

  .topbar--focus + .container .hero-info {
    min-width: 0;
  }

  .topbar--focus + .container .hero-info strong {
    overflow: hidden;
    font-size: 1rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .topbar--focus + .container .play-header .btn-danger {
    flex-shrink: 0;
    min-height: 38px;
    padding: .35rem .75rem;
    font-size: 0;
  }

  .topbar--focus + .container .play-header .btn-danger::after {
    content: "Terminar";
    font-size: .74rem;
  }

  .topbar--focus + .container .chat-box {
    min-height: 0;
    max-height: none;
    padding: .8rem 0;
  }

  .topbar--focus + .container .bubble {
    max-width: 90%;
    padding: .65rem .8rem;
    font-size: .88rem;
  }

  .topbar--focus + .container .voice-controls {
    padding-bottom: max(.25rem, env(safe-area-inset-bottom, 0px));
  }

  .scenario-card .scenario-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .55rem;
  }

  .scenario-card .scenario-actions .btn {
    display: inline-flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    justify-content: center;
    padding-inline: .65rem;
  }
}
