:root {
  --soex-red-700: #b5082a;
  --soex-red-600: #d40f35;
  --soex-red-500: #ef1f45;
  --soex-red-300: #ff8ca3;
  --ink-950: #0f1723;
  --ink-800: #1d2d42;
  --ink-600: #465c76;
  --line: #dbe2eb;
  --surface: #ffffff;
  --surface-soft: #f7f9fc;
  --ok: #178660;
  --warn: #b16912;
  --radius-xl: 18px;
  --radius-md: 12px;
  --shadow-strong: 0 24px 46px rgba(16, 26, 38, 0.22);
  --shadow-card: 0 10px 26px rgba(16, 26, 38, 0.09);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink-800);
  font-family: "Aptos", "Segoe UI Variable", "Bahnschrift", "Trebuchet MS", sans-serif;
  background:
    linear-gradient(166deg, rgba(22, 26, 43, 0.98) 0%, rgba(31, 38, 58, 0.98) 39%, transparent 39.1%),
    radial-gradient(circle at 90% 6%, rgba(239, 31, 69, 0.28), transparent 31%),
    linear-gradient(90deg, #f6f8fc 0%, #f6f8fc 72%, #fde1ea 100%);
  min-height: 100vh;
}

.page-glow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(15, 23, 35, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15, 23, 35, 0.03) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: radial-gradient(circle at center, black, transparent 78%);
}

.layout {
  max-width: 1480px;
  margin: 0 auto;
  padding: 14px 22px 32px;
  position: relative;
  z-index: 1;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.hero-topbar {
  border-radius: 16px;
  padding: 22px 24px;
  color: #fff;
  background:
    linear-gradient(118deg, rgba(13, 25, 40, 0.96) 0%, rgba(21, 43, 70, 0.93) 44%, rgba(212, 15, 53, 0.96) 100%),
    linear-gradient(135deg, #132238, #203e63);
  box-shadow: var(--shadow-strong);
  overflow: hidden;
  position: relative;
}

.hero-topbar::before {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -100px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.26) 0%, rgba(255, 255, 255, 0) 70%);
}

.brand-block h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(2rem, 4.1vw, 3rem);
  letter-spacing: 0.03em;
  line-height: 1;
}

.eyebrow {
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.86);
}

.subtitle {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.9);
  max-width: 640px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.topbar-actions span {
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  color: #ffffff;
  font-weight: 700;
  font-size: 0.82rem;
  padding: 7px 12px;
}

.login-shell {
  display: grid;
  justify-items: center;
  padding: 30px 0 8px;
}

.login-product-card {
  width: min(100%, 1120px);
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(380px, 0.88fr);
  overflow: hidden;
  border: 1px solid rgba(86, 86, 87, 0.9);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 26px 62px rgba(18, 37, 58, 0.16);
}

.login-version {
  display: inline-block;
  margin-top: 14px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a97a8;
  text-transform: uppercase;
}

#app-view {
  gap: 12px;
}

.app-shell {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.app-shell.no-sidebar {
  grid-template-columns: minmax(0, 1fr);
}

.side-nav {
  position: sticky;
  top: 12px;
  display: grid;
  gap: 6px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 7px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(58, 18, 36, 0.74);
  box-shadow: var(--shadow-card);
}

.nav-item {
  width: 100%;
  text-align: left;
  padding: 9px 10px;
  color: #ffe8ee;
  background: transparent;
  border: 1px solid transparent;
}

.nav-item:hover,
.nav-item.active {
  color: #fff;
  background: linear-gradient(102deg, var(--soex-red-700), var(--soex-red-500));
  border-color: rgba(255, 255, 255, 0.28);
}

.module-content,
.module-panel {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow-card);
  animation: reveal 420ms ease both;
}

.card h2,
.card h3 {
  margin: 0 0 8px;
  color: var(--ink-950);
}

.card > p {
  margin: 0 0 12px;
  color: var(--ink-600);
}

.login-brand-panel {
  position: relative;
  overflow: hidden;
  padding: 28px 34px;
  display: grid;
  align-content: space-between;
  background:
    radial-gradient(circle at 22% 14%, rgba(239, 31, 69, 0.12), transparent 23%),
    linear-gradient(118deg, #eef4ff 0%, #f8fbff 56%, #fff 100%);
}

.login-brand-panel::before {
  content: "";
  position: absolute;
  width: 520px;
  height: 520px;
  left: -170px;
  top: -160px;
  border-radius: 50%;
  background: rgba(212, 15, 53, 0.08);
}

.login-mark,
.login-welcome,
.login-operator {
  position: relative;
  z-index: 1;
}

.login-mark {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #102238;
}

.login-mark span {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--soex-red-700), var(--soex-red-500));
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.login-mark strong {
  font-size: 1.42rem;
  letter-spacing: 0;
}

.login-operator {
  width: min(100%, 480px);
  height: auto;
  aspect-ratio: 520 / 420;
  object-fit: contain;
  justify-self: center;
  align-self: center;
}

.login-welcome {
  max-width: 430px;
}

.login-welcome h2 {
  margin: 0 0 10px;
  color: #17304d;
  font-size: 2rem;
  letter-spacing: 0;
}

.login-welcome p {
  margin: 0;
  color: #506783;
  line-height: 1.5;
  font-weight: 700;
}

.login-form-panel {
  padding: 76px 48px;
  display: grid;
  align-content: center;
  background: #ffffff;
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 12px;
  border-radius: 999px;
  background: #fff3f6;
  color: var(--soex-red-700);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.login-kicker-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #ffe7ee;
  margin-bottom: 12px;
}

.login-form-panel h2 {
  font-size: 2.15rem;
  margin-bottom: 14px;
  letter-spacing: 0;
}

.login-form-panel p {
  font-size: 1.02rem;
  line-height: 1.48;
  margin-bottom: 22px;
  color: #516983;
}

.login-form-panel label {
  color: #47617f;
  font-weight: 700;
}

.login-form-panel input {
  min-height: 48px;
  border-radius: 10px;
  background: #f4f7fc;
  border-color: #e4eaf3;
}

.login-form-panel .btn-primary {
  min-height: 48px;
  margin-top: 8px;
  font-size: 0.94rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.login-footnote {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  color: #617793;
  font-size: 0.78rem;
  font-weight: 700;
}

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

.status-card {
  border-radius: 14px;
  border: 1px solid #f1c2cc;
  background:
    linear-gradient(152deg, #fff 0%, #ffeef2 78%),
    linear-gradient(152deg, #fff, #f8fbff);
  padding: 11px 13px;
  box-shadow: 0 10px 24px rgba(180, 16, 52, 0.12);
}

.status-card span {
  display: block;
  color: #8a3550;
  font-size: 0.84rem;
}

.status-card strong {
  display: block;
  margin-top: 7px;
  color: var(--soex-red-700);
  font-size: 1.42rem;
}

.loading-line {
  margin: -2px 0 12px;
  color: #f7dce4;
  font-size: 0.86rem;
  font-weight: 700;
}

.loading-line.is-loading::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 7px;
  border-radius: 999px;
  background: #ff315d;
  box-shadow: 0 0 0 0 rgba(255, 49, 93, 0.55);
  animation: pulseDot 900ms ease infinite;
}

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

.grid {
  display: grid;
  gap: 8px;
}

.grid.one {
  grid-template-columns: 1fr;
}

.grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.full {
  grid-column: 1 / -1;
}

.toolbar {
  display: grid;
  gap: 7px;
  margin-bottom: 10px;
  grid-template-columns: minmax(260px, 2fr) minmax(180px, 1fr) auto;
}

.report-toolbar {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.dashboard-toolbar {
  grid-template-columns: repeat(5, minmax(140px, 1fr));
}

.dashboard-kpis {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 12px;
}

.mini-kpi {
  border: 1px solid #f3ccd5;
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(165deg, #fff, #fff4f7);
}

.mini-kpi span {
  display: block;
  color: #91334f;
  font-size: 0.8rem;
}

.mini-kpi strong {
  display: block;
  margin-top: 6px;
  color: var(--soex-red-700);
  font-size: 1.48rem;
}

.dashboard-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
  grid-template-columns: minmax(280px, 2fr) minmax(220px, 1fr) minmax(220px, 1fr);
}

.export-box {
  display: grid;
  gap: 16px;
  border: 1px solid #ead4da;
  border-radius: 14px;
  background: #fff;
  padding: 18px;
  margin: 12px 0 18px;
  box-shadow: 0 14px 34px rgba(16, 26, 38, 0.07);
}

.audited-section {
  position: relative;
}

.audited-section-pending {
  border-color: rgba(223, 26, 68, 0.18);
  background: linear-gradient(180deg, #fffafc, #fff);
}

.audited-section-history {
  margin-top: 26px;
  border-color: #dde7f2;
}

.audited-history-toggle {
  display: grid;
  gap: 8px;
  margin: 8px 0 4px;
}

.audited-history-toggle small {
  color: var(--ink-600);
  font-size: 0.82rem;
  font-weight: 700;
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fff1f5;
  color: var(--soex-red-700);
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-divider {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 28px 0 10px;
  color: #667a94;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.section-divider::before,
.section-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, rgba(202, 216, 232, 0), rgba(202, 216, 232, 1), rgba(202, 216, 232, 0));
}

.export-box h3,
.export-box p,
.export-box small {
  margin: 0;
}

.export-box-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f6;
}

.export-box-head h3 {
  font-size: 1.2rem;
  margin-bottom: 4px;
}

.export-box-head p {
  color: var(--ink-600);
  font-size: 0.92rem;
  max-width: 720px;
}

.export-box-head .btn-primary {
  min-width: 240px;
  min-height: 42px;
}

.export-box-head-compact {
  padding-bottom: 8px;
  border-bottom: 0;
}

.export-controls-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.85fr) minmax(360px, 1.45fr) minmax(220px, 0.75fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fbfcff;
}

.field-group {
  display: grid;
  gap: 6px;
}

.field-group > span {
  color: var(--ink-700);
  font-weight: 800;
  font-size: 0.76rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.field-group small {
  color: var(--ink-600);
  font-size: 0.78rem;
  line-height: 1.35;
}

.field-group-wide select[multiple] {
  min-height: 148px;
}

.field-inline-actions {
  display: flex;
  justify-content: flex-end;
}

.btn-link {
  border: 0;
  background: transparent;
  color: var(--soex-red-700);
  font-weight: 800;
  padding: 0;
}

.btn-link:hover {
  color: var(--soex-red-500);
  transform: none;
  box-shadow: none;
}

.export-status-row {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(320px, 1fr);
  gap: 12px;
  align-items: stretch;
}

.campaign-amounts {
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fbfcff;
  padding: 14px;
  display: grid;
  gap: 10px;
}

.campaign-amounts h4 {
  margin: 0;
  color: var(--ink-950);
  font-size: 0.95rem;
}

.campaign-amounts p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.84rem;
  line-height: 1.4;
}

.campaign-amount-row {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) 130px 160px;
  gap: 10px;
  align-items: center;
  border: 1px solid #edf1f6;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
}

.campaign-amount-row strong {
  color: var(--ink-950);
  overflow-wrap: anywhere;
}

.campaign-amount-row span {
  color: var(--ink-600);
  font-size: 0.84rem;
  font-weight: 800;
}

.campaign-amount-row input {
  min-height: 38px;
}

.campaign-amount-row.invalid {
  border-color: #ef1f45;
  background: #fff3f6;
}

.campaign-amount-row.invalid input {
  border-color: #ef1f45;
  box-shadow: 0 0 0 3px rgba(239, 31, 69, 0.14);
}

.campaign-amount-error {
  grid-column: 1 / -1;
  color: #b5082a;
  font-size: 0.8rem;
  font-weight: 800;
}

.export-status-card {
  border: 1px solid #e6ebf2;
  border-radius: 12px;
  background: #fbfcff;
  padding: 14px;
  display: grid;
  gap: 6px;
  align-content: start;
}

.export-status-card > span {
  color: var(--ink-700);
  font-weight: 800;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.export-status-card > strong {
  color: var(--accent);
  font-size: 1.8rem;
  line-height: 1;
}

.export-status-card > small {
  color: var(--ink-600);
  line-height: 1.4;
}

.export-status-card-wide {
  background: #fff;
}

.hint-line {
  color: var(--ink-600);
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.45;
}

.hint-line p {
  margin: 0 0 8px;
}

.field-dictionary {
  margin: 12px 0 16px;
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff, #fff);
}

.field-dictionary summary {
  cursor: pointer;
  padding: 14px 16px;
  font-weight: 900;
  color: var(--accent-dark);
  list-style: none;
}

.field-dictionary summary::-webkit-details-marker {
  display: none;
}

.field-dictionary summary::after {
  content: "Mostrar";
  float: right;
  color: var(--ink-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.field-dictionary[open] summary::after {
  content: "Ocultar";
}

.field-dictionary-body {
  padding: 0 16px 16px;
}

.field-dictionary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.field-dictionary-grid article {
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.field-dictionary-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-950);
}

.field-dictionary-grid p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.84rem;
  line-height: 1.45;
}

.distribution-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  max-height: 92px;
  overflow: auto;
  padding-right: 4px;
}

.distribution-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  border: 1px solid #e6ebf2;
  border-radius: 999px;
  background: #f8fafd;
  padding: 5px 8px 5px 10px;
}

.distribution-chip strong {
  color: var(--ink-800);
  font-size: 0.78rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 260px;
}

.distribution-chip em {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  color: #fff;
  background: var(--soex-red-600);
  font-style: normal;
  font-size: 0.74rem;
  font-weight: 900;
}

.campaign-progress-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 12px;
}

.campaign-progress-card {
  border: 1px solid #f0c8d2;
  border-radius: 12px;
  background: linear-gradient(180deg, #fff, #fff7f9);
  padding: 10px 12px;
}

.campaign-progress-head,
.campaign-progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.campaign-progress-head strong {
  color: var(--ink-950);
}

.campaign-progress-head span,
.campaign-progress-meta small {
  color: var(--ink-600);
  font-weight: 700;
}

.progress-track {
  height: 14px;
  border-radius: 999px;
  overflow: hidden;
  background: #f3d6de;
  margin: 8px 0;
}

.progress-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--soex-red-700), var(--soex-red-500));
}

.dashboard-panel {
  border: 1px solid #ebd4da;
  border-radius: 14px;
  background: #fff;
  padding: 10px;
}

.dashboard-panel h3 {
  margin: 0 0 10px;
  font-size: 0.95rem;
}

.admin-quick-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.admin-quick-card p {
  margin: 0;
}

.users-drawer {
  width: min(760px, 100vw);
}

.user-create-box {
  border: 1px solid #f3ccd5;
  border-radius: 12px;
  background: #fff;
  padding: 10px;
  margin-bottom: 10px;
}

.users-table-wrap {
  max-height: 55vh;
}

.audio-audit-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.audio-audit-summary-card {
  border: 1px solid #ebd4da;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff8fa);
  padding: 10px 12px;
}

.audio-audit-summary-card span {
  display: block;
  color: #617792;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.audio-audit-summary-card strong {
  display: block;
  margin-top: 5px;
  color: #15243c;
  font-size: 1.35rem;
}

.users-summary-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 10px;
}

.users-summary-card {
  border: 1px solid #e8edf5;
  border-radius: 14px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #fff, #fff7fa);
}

.users-summary-card span {
  display: block;
  color: #617792;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.users-summary-card strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
  color: #1a2740;
}

#dashboard-agent-chart {
  width: 100%;
  display: block;
}

.tipification-metrics {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.tipification-metrics li {
  border: 1px solid #f3d0d9;
  border-radius: 10px;
  padding: 7px 9px;
  background: #fff8fa;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.84rem;
}

.dashboard-matrix-table th,
.dashboard-matrix-table td {
  min-width: 220px;
  vertical-align: top;
}

.dashboard-matrix-table th:first-child,
.dashboard-matrix-table td:first-child {
  min-width: 210px;
  position: sticky;
  left: 0;
  background: #fffafc;
  z-index: 2;
}

.dashboard-matrix-head-cell {
  display: grid;
  gap: 4px;
}

.dashboard-matrix-head-cell span {
  color: #7d4f5d;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.dashboard-matrix-head-cell strong {
  color: #8a1230;
  font-size: 0.88rem;
  line-height: 1.3;
}

.dashboard-matrix-user-card {
  display: grid;
  gap: 4px;
}

.dashboard-matrix-user-card strong {
  color: #17253d;
  font-size: 0.92rem;
}

.dashboard-matrix-user-card small {
  color: #617792;
}

.dashboard-matrix-cell {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid #e9edf4;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff, #fff8fa);
  min-height: 100px;
}

.dashboard-matrix-cell.is-empty {
  opacity: 0.72;
}

.dashboard-matrix-cell-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.dashboard-matrix-cell-top span {
  color: #617792;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.dashboard-matrix-cell strong {
  color: #16243b;
  font-size: 1.25rem;
}

.dashboard-matrix-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.dashboard-matrix-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 0.73rem;
  font-weight: 800;
}

.dashboard-matrix-pill.is-ok {
  color: #167b58;
  background: rgba(22, 123, 88, 0.12);
}

.dashboard-matrix-pill.is-no {
  color: #9f2343;
  background: rgba(159, 35, 67, 0.12);
}

.dashboard-matrix-progress {
  height: 7px;
  border-radius: 999px;
  background: #f4dbe2;
  overflow: hidden;
}

.dashboard-matrix-progress span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #b5082a, #ef1f45);
}

.dashboard-matrix-cell small {
  color: #617792;
  line-height: 1.2;
}

#auto-refresh-label,
#last-sync-label {
  margin: 4px 0;
  font-size: 0.84rem;
}

label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: var(--ink-600);
  font-size: 0.88rem;
  font-weight: 600;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid #d7dfe9;
  border-radius: 10px;
  padding: 8px 9px;
  font-size: 0.9rem;
  color: var(--ink-950);
  background: #fff;
  outline: none;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--soex-red-500);
  box-shadow: 0 0 0 3px rgba(239, 31, 69, 0.18);
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--ink-950);
  margin-top: 21px;
}

.checkbox input,
.chip-input input {
  width: auto;
  accent-color: var(--soex-red-600);
}

.chip-input {
  border: 1px solid #efcad3;
  border-radius: 999px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--ink-950);
  min-height: 42px;
}

button {
  border: 0;
  cursor: pointer;
  font-weight: 700;
  border-radius: 10px;
  padding: 9px 12px;
  transition: transform 120ms ease, filter 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.btn-primary {
  color: #fff;
  background: linear-gradient(102deg, var(--soex-red-700), var(--soex-red-500));
  box-shadow: 0 8px 18px rgba(186, 10, 46, 0.27);
}

.btn-primary:hover {
  filter: brightness(1.04);
}

.btn-outline {
  color: var(--soex-red-700);
  background: #fff;
  border: 1px solid var(--soex-red-500);
}

#open-config-btn {
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 999px;
  font-size: 0;
  line-height: 1;
  display: inline-grid;
  place-items: center;
}

#open-config-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-button {
  flex: 0 0 auto;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.btn-danger {
  color: #fff;
  background: linear-gradient(102deg, #8b0f2a, #c9133f);
  box-shadow: 0 8px 16px rgba(139, 15, 42, 0.25);
}

.btn-sm {
  font-size: 0.78rem;
  padding: 6px 9px;
}

.btn-sm.danger {
  color: #861732;
  border-color: #cc4166;
}

.cleanup-box {
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid #e9edf4;
}

.cleanup-box h3 {
  margin: 0 0 4px;
  font-size: 1rem;
}

.cleanup-box p {
  margin: 0 0 8px;
  color: #4e6482;
}

.compact-toolbar {
  align-items: center;
}

#ti-source-query {
  width: 100%;
  min-height: 130px;
  font-family: "Consolas", "Courier New", monospace;
}

.ti-grid {
  display: grid;
  gap: 14px;
}

.ti-card {
  padding: 18px;
}

.ti-card-head {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.ti-card-head h3,
.ti-card-head p {
  margin: 0;
}

.ti-card-head p {
  margin-top: 4px;
  color: var(--ink-600);
  max-width: 760px;
}

.ti-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}

.ti-status-tile {
  border: 1px solid #e6ebf2;
  border-radius: 14px;
  padding: 14px 16px;
  background: linear-gradient(180deg, #fbfcff, #fff);
}

.ti-status-tile > span {
  display: block;
  color: var(--ink-700);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}

.ti-status-tile > strong {
  display: block;
  color: var(--ink-950);
  font-size: 1rem;
  line-height: 1.35;
}

.ti-schedule-summary-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid #e6d8de;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff8fa, #fff);
}

.ti-schedule-summary-card strong {
  display: block;
  margin-bottom: 4px;
  color: var(--ink-900);
}

.ti-schedule-summary-card p {
  margin: 0;
  color: #4b6280;
  font-weight: 700;
}

.ti-schedule-summary-card.is-active {
  border-color: rgba(32, 157, 112, 0.28);
  background: linear-gradient(180deg, #f3fff8, #fff);
}

.ti-schedule-history {
  max-width: 100%;
  color: #415a7a;
}

.ti-schedule-history summary {
  cursor: pointer;
  list-style: none;
  font-weight: 800;
  color: var(--accent-dark);
  text-align: left;
}

.ti-schedule-history summary::-webkit-details-marker {
  display: none;
}

.ti-schedule-history summary::after {
  content: "▾";
  margin-left: 8px;
  font-size: 0.9rem;
}

.ti-schedule-history[open] summary::after {
  content: "▴";
}

.ti-schedule-history-body {
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid #e7d9df;
  border-radius: 14px;
  background: linear-gradient(180deg, #fff7f9, #fff);
  color: #4b6280;
  font-weight: 700;
  line-height: 1.5;
  text-align: left;
}

.ti-output-box {
  margin-top: 12px;
}

.ti-output-box summary {
  cursor: pointer;
  font-weight: 800;
  color: var(--accent-dark);
  margin-bottom: 10px;
}

.ti-help-box {
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff, #fff);
  margin-bottom: 12px;
}

.ti-help-box summary {
  cursor: pointer;
  padding: 12px 14px;
  font-weight: 800;
  color: var(--accent-dark);
  list-style: none;
}

.ti-help-box summary::-webkit-details-marker {
  display: none;
}

.ti-help-box summary::after {
  content: "Mostrar";
  float: right;
  color: var(--ink-600);
  font-size: 0.78rem;
  font-weight: 800;
}

.ti-help-box[open] summary::after {
  content: "Ocultar";
}

.ti-help-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  padding: 0 14px 14px;
}

.ti-help-grid article {
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.ti-help-grid strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink-950);
}

.ti-help-grid p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.84rem;
  line-height: 1.45;
}

.row-selected {
  background: #fff5f8;
}

@media (max-width: 980px) {
  .ti-status-grid {
    grid-template-columns: 1fr;
  }

  .ti-card-head {
    flex-direction: column;
    align-items: stretch;
  }
}

.weekday-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(64px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}

.weekday-grid label {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid #f2c6d2;
  border-radius: 999px;
  padding: 8px 10px;
  background: #fff7fa;
  color: #8a1230;
  font-weight: 900;
}

.compact-weekday-grid {
  grid-column: 1 / -1;
  margin-top: 4px;
}

.inline-schedule-assign {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.inline-schedule-assign select {
  min-width: 180px;
}

.inline-actions-wrap {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-actions-cell {
  display: grid;
  gap: 8px;
  min-width: 250px;
}

.user-schedule-cell {
  display: grid;
  gap: 4px;
}

.user-schedule-cell strong {
  font-size: 0.88rem;
  color: #1d2b45;
}

.user-schedule-cell small {
  color: #617792;
  line-height: 1.35;
}

.users-toolbar {
  margin-bottom: 10px;
  align-items: center;
  justify-content: space-between;
}

.users-toolbar input,
.users-toolbar select {
  min-width: 220px;
}

.log-output {
  margin-top: 10px;
  background: #0f1a2b;
  color: #dbe7ff;
  border-radius: 10px;
  padding: 10px;
  min-height: 150px;
  max-height: 260px;
  overflow: auto;
  font-size: 0.78rem;
  white-space: pre-wrap;
}

.log-output.is-active {
  border: 1px solid rgba(229, 31, 73, 0.45);
  box-shadow: 0 14px 30px rgba(15, 26, 43, 0.12);
}

.user-create-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 12px;
  align-items: start;
}

#role-privileges-card {
  margin: 0;
  padding: 12px;
}

#role-privileges-card h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

#role-privileges-card p {
  margin: 0;
  color: #4b6280;
  line-height: 1.4;
}

@media (max-width: 1100px) {
  .user-create-layout {
    grid-template-columns: 1fr;
  }

  .users-summary-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .audio-audit-summary-strip {
    grid-template-columns: 1fr;
  }
}

.table-wrap {
  overflow: auto;
  border: 1px solid #e6ebf2;
  border-radius: 10px;
}

.pagination-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  color: #526782;
  font-size: 0.84rem;
  font-weight: 700;
}

.compact-row {
  gap: 6px;
}

.compact-row button {
  padding: 7px 10px;
}

.compact-row button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
  transform: none;
}

.audio-insights-panel {
  margin: 10px 0 14px;
  border: 1px solid #dde7f2;
  border-radius: 14px;
  background: linear-gradient(180deg, #fbfcff, #fff);
  padding: 14px;
}

.audio-insights-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.audio-insights-head h3,
.audio-insights-head p {
  margin: 0;
}

.audio-insights-head p {
  margin-top: 4px;
  color: var(--ink-600);
}

.audio-insights-body {
  display: grid;
  gap: 8px;
}

.audio-insight-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid #edf1f6;
  border-radius: 12px;
  background: #fff;
  padding: 10px 12px;
}

.audio-insight-main {
  display: grid;
  gap: 8px;
}

.audio-insight-row strong {
  color: var(--ink-950);
  overflow-wrap: anywhere;
}

.audio-insight-total {
  min-width: 56px;
  text-align: right;
  color: var(--soex-red-700);
  font-size: 1rem;
  font-weight: 900;
}

.audio-insight-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.audio-insight-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 4px 9px;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
  border: 1px solid #e2e9f2;
  color: #4b607d;
  background: #f7f9fc;
}

.audio-insight-chip.is-total {
  color: #23405f;
  background: #eef4fb;
  border-color: #d7e4f2;
}

.audio-insight-chip.is-ok {
  color: #167b58;
  background: rgba(22, 123, 88, 0.12);
  border-color: rgba(22, 123, 88, 0.2);
}

.audio-insight-chip.is-no {
  color: #a04e12;
  background: rgba(177, 105, 18, 0.12);
  border-color: rgba(177, 105, 18, 0.2);
}

.cleanup-toolbar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.cleanup-actions {
  margin-top: 10px;
  gap: 10px;
  align-items: center;
}

table {
  width: 100%;
  min-width: 760px;
  border-collapse: collapse;
  background: #fff;
}

th,
td {
  text-align: left;
  font-size: 0.8rem;
  padding: 7px;
  border-bottom: 1px solid #edf1f6;
  vertical-align: top;
}

th {
  color: #7e1f3b;
  background: #fff2f5;
  position: sticky;
  top: 0;
}

.sort-header {
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.sort-header:hover {
  transform: none;
  color: var(--soex-red-700);
}

.sort-header.active {
  color: var(--soex-red-700);
}

tbody tr:hover {
  background: #fff8fa;
}

.badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid #f2c6d0;
  padding: 3px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  color: #7d2b43;
  background: #ffeef3;
}

.badge.ok {
  color: var(--ok);
  border-color: rgba(23, 134, 96, 0.28);
  background: rgba(23, 134, 96, 0.12);
}

.badge.warn {
  color: var(--warn);
  border-color: rgba(177, 105, 18, 0.25);
  background: rgba(177, 105, 18, 0.12);
}

.log-timeline {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.log-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 12px;
  border: 1px solid #efd4dc;
  border-radius: 16px;
  padding: 12px;
  background: linear-gradient(135deg, #fff 0%, #fff7f9 100%), #fff;
  box-shadow: 0 8px 20px rgba(70, 17, 35, 0.06);
}

.log-card h4 {
  margin: 8px 0 4px;
  color: var(--ink-950);
  overflow-wrap: anywhere;
}

.log-card p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.85rem;
}

.log-card-meta {
  display: grid;
  align-content: start;
  justify-items: end;
  gap: 4px;
  color: var(--ink-600);
  font-size: 0.78rem;
  text-align: right;
}

.log-card-meta strong {
  color: var(--ink-950);
  font-size: 0.9rem;
}

.log-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 9px;
}

.log-chip-row span,
.empty-state {
  border: 1px solid #f0ced7;
  border-radius: 999px;
  padding: 5px 8px;
  background: #fff;
  color: #7d2b43;
  font-size: 0.78rem;
  font-weight: 700;
}

.empty-state {
  border-radius: 14px;
  padding: 14px;
}

.player-shell {
  border: 1px solid #ffd3dd;
  border-radius: 14px;
  padding: 10px;
  background: linear-gradient(155deg, #fff8fa, #fff);
  margin-bottom: 10px;
}

.player-notice {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--ink-600);
}

audio {
  width: 100%;
  margin-bottom: 8px;
}

.player-quick {
  justify-content: space-between;
  align-items: center;
}

.inline-label {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.inline-label select {
  width: auto;
  min-width: 96px;
  padding: 6px 8px;
}

.pill {
  border: 1px solid #ecc7d1;
  border-radius: 999px;
  padding: 5px 9px;
  color: #7a2a44;
  background: #fff;
  font-size: 0.78rem;
  font-weight: 700;
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(16, 8, 14, 0.42);
  backdrop-filter: blur(3px);
  animation: fadeIn 180ms ease both;
}

.listen-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 90;
  width: min(520px, 100vw);
  height: 100vh;
  overflow: auto;
  padding: 18px;
  border-left: 1px solid rgba(255, 255, 255, 0.55);
  background:
    radial-gradient(circle at 86% 0%, rgba(255, 21, 71, 0.2), transparent 32%),
    linear-gradient(180deg, #fff, #fff5f7 72%, #ffffff);
  box-shadow: -24px 0 54px rgba(20, 10, 16, 0.28);
  animation: drawerIn 220ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.drawer-header h2,
.drawer-header p {
  margin: 0;
}

.record-summary {
  border: 1px solid #f3c7d1;
  border-radius: 18px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 10px 24px rgba(104, 19, 45, 0.08);
  margin-bottom: 12px;
}

#current-audio-label {
  margin: 0 0 10px;
  font-weight: 800;
  color: var(--ink-950);
  overflow-wrap: anywhere;
}

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

.record-grid div {
  border: 1px solid #f2d5dc;
  border-radius: 12px;
  padding: 9px;
  background: #fff;
}

.record-grid span {
  display: block;
  color: #8a3550;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.record-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--ink-950);
  font-size: 0.9rem;
  overflow-wrap: anywhere;
}

body.drawer-open {
  overflow: hidden;
}

code {
  border-radius: 7px;
  border: 1px solid #ecd3da;
  background: #fff4f7;
  padding: 2px 6px;
}

.muted {
  color: #64748b;
  font-size: 0.88em;
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.toast-region {
  position: fixed;
  right: 18px;
  top: 18px;
  z-index: 70;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.app-toast {
  pointer-events: auto;
  border: 1px solid #e3eaf3;
  border-left: 5px solid var(--soex-red-600);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 35, 0.16);
  padding: 12px 14px;
  color: var(--ink-800);
  animation: reveal 180ms ease both;
}

.app-toast strong {
  display: block;
  color: var(--ink-950);
  margin-bottom: 4px;
}

.app-toast p {
  margin: 0;
  color: var(--ink-600);
  font-size: 0.9rem;
  line-height: 1.4;
}

.app-toast.success {
  border-left-color: var(--ok);
}

.app-toast.info {
  border-left-color: #1e3f64;
}

.app-dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(15, 23, 35, 0.46);
  backdrop-filter: blur(3px);
}

.app-dialog {
  width: min(100%, 520px);
  border-radius: 16px;
  border: 1px solid #e5ebf3;
  background: #fff;
  box-shadow: 0 28px 70px rgba(15, 23, 35, 0.26);
  padding: 18px;
  animation: reveal 180ms ease both;
}

.app-dialog-header {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.app-dialog-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  color: #fff;
  background: linear-gradient(135deg, var(--soex-red-700), var(--soex-red-500));
  font-weight: 900;
}

.app-dialog h2 {
  margin: 0 0 6px;
  color: var(--ink-950);
  font-size: 1.15rem;
}

.app-dialog p {
  margin: 0;
  color: var(--ink-600);
  line-height: 1.45;
}

.app-dialog-input-wrap {
  margin-top: 16px;
}

.app-dialog-input-wrap small {
  color: var(--ink-600);
  font-size: 0.8rem;
}

.app-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.reset-overlay {
  position: fixed;
  inset: 0;
  z-index: 95;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(18, 36, 62, 0.9), rgba(122, 22, 53, 0.88)),
    rgba(15, 23, 35, 0.72);
  backdrop-filter: blur(6px);
}

.reset-overlay-card {
  position: relative;
  width: min(100%, 560px);
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(249, 250, 252, 0.94));
  box-shadow: 0 32px 90px rgba(8, 15, 30, 0.35);
  padding: 34px 30px;
  text-align: center;
  animation: reveal 180ms ease both;
}

.reset-overlay-watermark {
  position: absolute;
  inset: 10px 16px auto auto;
  margin: 0;
  font-size: clamp(2.8rem, 8vw, 5.2rem);
  line-height: 1;
  font-weight: 900;
  letter-spacing: 0.18em;
  color: rgba(207, 17, 53, 0.08);
  user-select: none;
  pointer-events: none;
}

.reset-spinner {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 50%;
  border: 5px solid rgba(207, 17, 53, 0.16);
  border-top-color: var(--soex-red-600);
  border-right-color: var(--ink-900);
  animation: spin 850ms linear infinite;
}

.reset-overlay-card h2 {
  margin: 0 0 10px;
  color: var(--ink-950);
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.reset-overlay-card p {
  margin: 0;
  color: var(--ink-700);
  line-height: 1.55;
  font-weight: 600;
}

@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes drawerIn {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes pulseDot {
  to {
    box-shadow: 0 0 0 9px rgba(255, 49, 93, 0);
  }
}

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

@media (max-width: 1050px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .login-shell {
    padding-top: 16px;
  }

  .login-product-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .login-brand-panel,
  .login-form-panel {
    padding: 28px 24px;
  }

  .login-operator {
    max-width: 360px;
  }

  .status-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .toolbar {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .export-box {
    padding: 14px;
  }

  .export-controls-grid,
  .export-status-row {
    grid-template-columns: 1fr;
  }

  .campaign-amount-row {
    grid-template-columns: 1fr;
  }

  .export-box-head {
    grid-template-columns: 1fr;
  }

  .export-box-head .btn-primary {
    width: 100%;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .side-nav {
    position: static;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .nav-item {
    text-align: center;
  }

  .log-card {
    grid-template-columns: 1fr;
  }

  .log-card-meta {
    justify-items: start;
    text-align: left;
  }

  .listen-drawer {
    width: 100vw;
  }

  .record-grid {
    grid-template-columns: 1fr;
  }

  .grid.two,
  .grid.three,
  .grid.four {
    grid-template-columns: 1fr;
  }

  .users-summary-strip {
    grid-template-columns: 1fr 1fr;
  }

  .player-quick {
    justify-content: flex-start;
  }
}

@media (max-width: 620px) {
  .status-grid {
    grid-template-columns: 1fr;
  }

  .users-summary-strip {
    grid-template-columns: 1fr;
  }

  .dashboard-kpis {
    grid-template-columns: 1fr;
  }

  .side-nav {
    grid-template-columns: 1fr 1fr;
  }

  .layout {
    padding: 12px 10px 34px;
  }

  .hero-topbar {
    padding: 16px;
  }

  .login-brand-panel {
    padding: 22px 18px;
  }

  .login-form-panel {
    padding: 24px 18px;
  }

  .login-mark strong {
    font-size: 1.1rem;
  }

  .login-operator {
    max-width: 280px;
  }

  .login-form-panel h2 {
    font-size: 1.75rem;
  }

  .login-footnote {
    flex-direction: column;
  }
}
