main {
  width: 100%;
}

.gtm-noscript-frame,
.tracking-pixel {
  display: none;
  visibility: hidden;
}

body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-family-base);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-body);
}

h1,
h2,
h3,
h4 {
  color: var(--color-text);
  font-weight: var(--font-weight-heading);
  letter-spacing: -0.02em;
}

p {
  color: var(--color-text-muted);
}

.hero .container {
  row-gap: 0;
}

.hero h1 {
  font-family: "Lora", serif;
  font-weight: var(--font-weight-heading);
}

button,
input,
select,
textarea {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  line-height: 1.4;
}

textarea {
  min-height: 144px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: var(--color-text-subtle);
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

input:disabled,
select:disabled,
textarea:disabled {
  background: var(--color-surface-muted);
  color: var(--color-text-subtle);
}

.btn,
.btn-topbar,
.dashboard-primary-btn,
.dashboard-secondary-btn,
.btn-preview,
.btn-generate,
.history-video-item__caption-btn,
.history-video-item__link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  line-height: 1;
  font-family: inherit;
  cursor: pointer;
  transition:
    background-color 160ms ease,
    border-color 160ms ease,
    color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.btn:focus-visible,
.btn-topbar:focus-visible,
.dashboard-primary-btn:focus-visible,
.dashboard-secondary-btn:focus-visible,
.btn-preview:focus-visible,
.btn-generate:focus-visible,
.history-video-item__caption-btn:focus-visible,
.history-video-item__link:focus-visible,
.topbar-menu-btn:focus-visible,
.topbar-account__trigger:focus-visible,
.dashboard-sidebar__close:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.dashboard-primary-btn,
.btn-topbar--primary,
.btn-generate {
  background: var(--color-primary);
  color: var(--color-surface);
}

.dashboard-primary-btn:hover,
.btn-topbar--primary:hover,
.btn-generate:hover:not(:disabled) {
  background: var(--color-primary-hover);
  transform: translateY(-1px);
}

.dashboard-secondary-btn,
.btn-topbar--ghost,
.btn-preview,
.history-video-item__caption-btn,
.history-video-item__link {
  background: var(--color-surface);
  border-color: var(--color-border);
  color: var(--color-text);
}

.dashboard-secondary-btn:hover,
.btn-topbar--ghost:hover,
.btn-preview:hover,
.history-video-item__caption-btn:hover:not(:disabled),
.history-video-item__link:hover {
  background: var(--color-surface-muted);
  border-color: var(--color-border-strong);
}

.btn-generate:disabled,
.history-video-item__caption-btn:disabled,
.btn-preview:disabled {
  background: var(--color-border);
  border-color: var(--color-border);
  color: var(--color-text-subtle);
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-action-icon {
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition:
    background-color 160ms ease,
    box-shadow 160ms ease,
    color 160ms ease;
}

.btn-action-icon svg {
  width: 14px;
  height: 14px;
  display: block;
}

.btn-action-icon--preview {
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  box-shadow: inset 0 0 0 1px rgba(52, 84, 209, 0.12);
}

.btn-action-icon--generate {
  color: inherit;
  background: var(--color-white-15);
  box-shadow: inset 0 0 0 1px var(--color-white-strong);
}

.btn-preview:hover:not(:disabled) .btn-action-icon--preview {
  background: var(--color-primary-soft-strong);
}

.btn-generate:hover:not(:disabled) .btn-action-icon--generate {
  background: rgba(255, 255, 255, 0.22);
}

.btn-preview:disabled .btn-action-icon,
.btn-generate:disabled .btn-action-icon {
  background: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-border);
}

.topbar-inner {
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  flex-shrink: 0;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-wordmark {
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-heading);
  line-height: 1;
}

.topbar-desktop {
  display: none;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-6);
  flex: 1;
  min-width: 0;
}

.topbar-nav,
.topbar-mobile-nav {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.topbar-nav__link,
.topbar-mobile-link,
.dashboard-nav__link {
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  color: var(--color-text-muted);
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  line-height: 1;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease;
}

.topbar-nav__link:hover,
.topbar-mobile-link:hover,
.dashboard-nav__link:hover {
  background: var(--color-surface-muted);
  color: var(--color-text);
}

.topbar-nav__link.is-active,
.topbar-mobile-link.is-active,
.dashboard-nav__link.is-active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-weight: var(--font-weight-label);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-mobile-controls {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
  flex-shrink: 0;
}

.topbar-inline-form,
.topbar-mobile-form,
.topbar-account__logout-form,
.topbar-app-search {
  margin: 0;
}

.topbar-user {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 12px;
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
}

.topbar-menu-btn span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: var(--radius-pill);
  background: currentColor;
  transition: transform 160ms ease, opacity 160ms ease;
}

.topbar.is-menu-open .topbar-menu-btn span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}

.topbar.is-menu-open .topbar-menu-btn span:nth-child(2) {
  opacity: 0;
}

.topbar.is-menu-open .topbar-menu-btn span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}

.topbar-mobile-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  z-index: 30;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
}

.topbar-mobile-panel__inner {
  padding: var(--space-4) 0 var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.topbar-mobile-nav {
  display: grid;
  gap: var(--space-2);
}

.topbar-mobile-link {
  justify-content: flex-start;
}

.topbar-mobile-actions {
  display: grid;
  gap: var(--space-3);
}

.topbar-mobile-actions .btn-topbar {
  width: 100%;
}

.topbar-mobile-user,
.topbar-account__email {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar--dashboard .topbar-desktop {
  gap: var(--space-6);
}

.topbar-nav--app {
  flex-shrink: 0;
}

.topbar-actions--app {
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.topbar-app-search {
  flex: 1 1 360px;
  max-width: 420px;
}

.dashboard-search {
  position: relative;
  display: block;
  width: 100%;
}

.dashboard-search__icon {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 12px;
  width: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-subtle);
  pointer-events: none;
}

.dashboard-search__icon svg {
  display: block;
  width: 16px;
  height: 16px;
}

.dashboard-search input {
  display: block;
  height: 40px;
  padding-left: 40px;
}

.topbar-create-btn {
  position: relative;
  flex-shrink: 0;
  min-width: 184px;
  justify-content: center;
  gap: 10px;
  padding-inline: 14px;
  border-color: transparent;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}

.topbar-create-btn:hover {
  background: linear-gradient(135deg, var(--color-primary-hover), var(--color-primary));
  box-shadow: var(--shadow-md);
}

.topbar-create-btn:focus-visible {
  box-shadow: var(--shadow-md), var(--focus-ring);
}

.topbar-create-btn__icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-create-btn__icon svg {
  width: 16px;
  height: 16px;
}

.topbar-create-btn__label {
  line-height: 1;
}

.topbar-mobile-trigger-cta {
  min-height: 36px;
  min-width: 0;
  padding: 0 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.topbar-mobile-trigger-cta.topbar-create-btn {
  gap: var(--space-2);
}

.topbar-mobile-trigger-cta .topbar-create-btn__icon {
  width: 20px;
  height: 20px;
}

.topbar-mobile-trigger-cta .topbar-create-btn__icon svg {
  width: 14px;
  height: 14px;
}

.topbar-account {
  position: relative;
  flex-shrink: 0;
}

.topbar-account__trigger {
  max-width: 260px;
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.topbar-account__trigger:hover,
.topbar-account.is-open .topbar-account__trigger {
  background: var(--color-surface-muted);
}

.topbar-account__trigger.is-active {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-subtle);
  color: var(--color-primary);
}

.topbar-account__chevron {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.topbar-account__chevron svg {
  width: 16px;
  height: 16px;
  transition: transform 160ms ease;
}

.topbar-account.is-open .topbar-account__chevron svg {
  transform: rotate(180deg);
}

.topbar-account__menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 30;
  width: 220px;
  padding: var(--space-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-md);
  display: grid;
  gap: var(--space-1);
}

.topbar-account__menu[hidden] {
  display: none;
}

.topbar-account__menu-item {
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--radius-md);
  background: transparent;
  color: var(--color-text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  text-align: left;
}

.topbar-account__menu-item:hover,
.topbar-account__menu-item.is-active {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.topbar-account__menu-item--danger,
.topbar-mobile-link--danger {
  color: var(--color-danger);
}

.topbar-mobile-link--danger:hover,
.topbar-account__menu-item--danger:hover {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}

.topbar-mobile-actions--account {
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.topbar-mobile-account {
  display: grid;
  gap: var(--space-1);
  padding: 0 12px;
}

.topbar-mobile-account__label {
  color: var(--color-text-subtle);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.topbar-mobile-link--button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
}

body.dashboard-page {
  background: var(--color-bg);
}

.dashboard-shell {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - var(--topbar-height));
}

.dashboard-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 94;
  background: var(--color-overlay);
}

.dashboard-overlay.is-open {
  display: block;
}

.dashboard-sidebar {
  position: sticky;
  top: var(--topbar-height);
  height: calc(100vh - var(--topbar-height));
  padding: var(--space-4) var(--space-3);
  background: var(--color-surface);
  border-right: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  overflow-y: auto;
}

.dashboard-sidebar__header {
  display: none;
}

.dashboard-sidebar__close {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text);
}

.dashboard-sidebar__close svg {
  width: 18px;
  height: 18px;
  margin: auto;
}

.dashboard-sidebar__navigation {
  display: grid;
  gap: var(--space-1);
  align-content: start;
}

.dashboard-nav__link {
  width: 100%;
  justify-content: flex-start;
}

.dashboard-nav__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-nav__icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-sidebar__utility-group {
  margin-top: auto;
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-2);
}

.dashboard-sidebar__utility-link {
  width: 100%;
  justify-content: flex-start;
}

.dashboard-sidebar__utility-link--whatsapp {
  color: var(--color-whatsapp);
}

.dashboard-sidebar__utility-link--whatsapp:hover {
  background: var(--color-whatsapp-subtle);
  color: var(--color-whatsapp);
}

.dashboard-mobile-bar {
  display: none;
  align-items: center;
  justify-content: space-between;
  min-height: var(--mobile-toolbar-height);
  padding: 0 var(--space-4);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface);
  position: sticky;
  top: var(--topbar-height);
  z-index: 40;
}

.dashboard-mobile-bar__context {
  min-width: 0;
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dashboard-mobile-bar__actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-left: auto;
}

.dashboard-mobile-menu-btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  gap: var(--space-1);
}

.dashboard-mobile-menu-btn span {
  width: 18px;
  height: 2px;
  margin: 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-text);
}

.dashboard-mobile-generate-btn {
  min-height: 36px;
  min-width: 0;
  padding: 0 12px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
  flex-shrink: 0;
}

.dashboard-mobile-generate-btn .btn-action-icon {
  width: 18px;
  height: 18px;
}

.dashboard-mobile-generate-btn .btn-action-icon svg {
  width: 12px;
  height: 12px;
}

.dashboard-main {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.dashboard-content__inner {
  width: 100%;
  max-width: var(--content-max-width);
  margin: 0 auto;
}

.dashboard-content {
  flex: 1;
  background: repeating-linear-gradient(125deg, #0000, #0000 2px, #e9e9e980 2px 3px);
}

.dashboard-content__inner {
  padding: var(--space-6) var(--space-6) var(--space-6);
  display: grid;
  gap: var(--space-6);
}

.dashboard-section-card,
.dashboard-chart-card,
.dashboard-campaign-card,
.video-preview-panel,
.dashboard-settings-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
}

.dash-promo-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-6);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-primary-subtle), var(--color-surface));
  box-shadow: var(--shadow-sm);
}

.dash-promo-banner[hidden] {
  display: none;
}

.dash-promo-banner__close {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-text-muted);
}

.dash-promo-banner__close:hover {
  background: var(--color-surface-muted);
}

.dash-promo-banner__close svg {
  width: 16px;
  height: 16px;
  margin: auto;
}

.dash-promo-banner__media {
  width: clamp(120px, 16vw, 168px);
  flex-shrink: 0;
}

.dash-promo-banner__media img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--color-border);
}

.dash-promo-banner__content {
  display: grid;
  gap: var(--space-3);
  min-width: 0;
}

.dash-promo-banner__badge {
  width: fit-content;
  min-height: 28px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
  display: inline-flex;
  align-items: center;
}

.dash-promo-banner__title {
  font-size: var(--font-size-xl);
  line-height: 1.25;
}

.dash-promo-banner__description {
  font-size: var(--font-size-sm);
}

.dash-promo-banner__cta {
  width: fit-content;
}

.dashboard-kpi-grid {
  display: grid;
  gap: var(--space-4);
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.has-dismissed-ulzeo-tutorial-banner .dashboard-tutorial-banner {
  display: none;
}

.dashboard-tutorial-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(180px, 2fr);
  align-items: center;
  gap: var(--space-8);
  padding: var(--space-8) var(--space-10);
  border-radius: var(--radius-lg);
  background: var(--color-primary);
  color: var(--color-surface);
}

.dashboard-tutorial-banner[hidden] {
  display: none;
}

.dashboard-tutorial-banner__content {
  min-width: 0;
}

.dashboard-tutorial-banner__greeting {
  margin: 0 0 var(--space-5);
  color: var(--color-surface);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-label);
  line-height: 1.5;
}

.dashboard-tutorial-banner__eyebrow {
  margin: 0 0 var(--space-2);
  color: var(--color-white-70);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
  letter-spacing: 0.08em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-tutorial-banner h2 {
  margin: 0;
  color: var(--color-surface);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-heading);
  line-height: 1.3;
}

.dashboard-tutorial-banner__description {
  max-width: 440px;
  margin: var(--space-2) 0 var(--space-5);
  color: var(--color-white-80);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.dashboard-tutorial-banner__cta {
  width: fit-content;
  min-height: 44px;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  line-height: 1;
}

.dashboard-tutorial-banner__cta:hover {
  color: var(--color-primary-hover);
}

.dashboard-tutorial-banner__cta-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-tutorial-banner__cta-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.dashboard-tutorial-banner__media {
  display: flex;
  justify-content: center;
  align-items: center;
}

.dashboard-tutorial-banner__media-art {
  width: 180px;
  max-width: 100%;
  height: auto;
  display: block;
}

.dashboard-tutorial-banner__dismiss {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-white-60);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}

.dashboard-tutorial-banner__dismiss:hover {
  color: var(--color-surface);
}

.dashboard-kpi-card {
  display: grid;
  gap: var(--space-3);
  align-content: start;
  min-height: 0;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-sm);
  text-align: left;
}

.dashboard-kpi-card__icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border);
  background: var(--color-surface-muted);
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.dashboard-kpi-card__icon svg {
  width: 20px;
  height: 20px;
}

.dashboard-kpi-card__value {
  margin: 0;
  color: var(--color-text);
  font-size: var(--font-size-2xl);
  font-weight: var(--font-weight-heading);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.dashboard-kpi-card__label {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  line-height: 1.4;
}

.dashboard-kpi-card__delta {
  margin: 0;
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  line-height: 1.4;
}

.dashboard-kpi-card__delta.is-positive {
  color: var(--color-success);
}

.dashboard-kpi-card__delta.is-negative {
  color: var(--color-danger);
}

.dashboard-chart-card {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.dashboard-chart-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-5);
}

.dashboard-chart-card__head h2,
.dashboard-campaign-card__head h2 {
  font-size: var(--font-size-lg);
  line-height: 1.4;
}

.dashboard-chart-card__head p,
.dashboard-campaign-card__head p {
  margin-top: var(--space-1);
  font-size: var(--font-size-sm);
}

.dashboard-chart-card__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-4);
}

.dashboard-chart-card__legend li {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-chart-card__legend li::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
}

.dashboard-chart-card__legend .legend-completed::before {
  background: var(--color-primary);
}

.dashboard-chart-card__legend .legend-failures::before {
  background: var(--color-danger);
}

.dashboard-chart-card__legend .legend-queued::before {
  background: var(--color-warning);
}

.dashboard-chart {
  overflow-x: auto;
}

.dashboard-chart__svg {
  width: 100%;
  min-width: 640px;
  height: auto;
}

.dashboard-chart__grid line {
  stroke: var(--color-border);
  stroke-width: 1;
}

.dashboard-chart .line-completed,
.dashboard-chart .line-failures,
.dashboard-chart .line-queued {
  fill: none;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.dashboard-chart .line-completed {
  stroke: var(--color-primary);
}

.dashboard-chart .line-failures {
  stroke: var(--color-danger);
}

.dashboard-chart .line-queued {
  stroke: var(--color-warning);
}

.dashboard-chart .points-completed circle {
  fill: var(--color-primary);
}

.dashboard-chart .points-failures circle {
  fill: var(--color-danger);
}

.dashboard-chart .points-queued circle {
  fill: var(--color-warning);
}

.dashboard-chart .axis-labels text {
  fill: var(--color-text-subtle);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-body);
}

.dashboard-campaign-card {
  overflow: hidden;
}

.dashboard-campaign-card__head {
  padding: var(--space-6) var(--space-6) 0;
}

.dashboard-section-head--split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.dashboard-section-head__copy {
  min-width: 0;
  display: grid;
  gap: var(--space-1);
}

.dashboard-campaign-list {
  padding-top: var(--space-3);
}

.dashboard-campaign-item {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-3);
}

.dashboard-campaign-item__identity {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-width: 0;
}

.dashboard-campaign-item__badge,
.dashboard-campaign-item__avatar-image {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  flex-shrink: 0;
}

.dashboard-campaign-item__badge {
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-hover));
  color: var(--color-surface);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-heading);
}

.dashboard-campaign-item__avatar-image {
  object-fit: cover;
  border: 1px solid var(--color-border);
}

.dashboard-campaign-item__name-wrap {
  min-width: 0;
}

.dashboard-campaign-item__name-wrap h3 {
  font-size: var(--font-size-base);
  line-height: 1.4;
}

.dashboard-campaign-item__success,
.dashboard-campaign-item__subtle,
.dashboard-campaign-item__meta p,
.dashboard-campaign-item__failures {
  font-size: var(--font-size-xs);
  line-height: 1.5;
}

.dashboard-campaign-item__success {
  color: var(--color-success);
}

.dashboard-campaign-item__success.is-warning {
  color: var(--color-warning);
}

.dashboard-campaign-item__subtle {
  color: var(--color-text-subtle);
}

.dashboard-campaign-item__meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-2) var(--space-3);
}

.dashboard-campaign-item__meta p,
.dashboard-campaign-item__failures {
  color: var(--color-text-muted);
}

.dashboard-campaign-item__meta strong {
  color: var(--color-text);
  font-weight: var(--font-weight-label);
}

.dashboard-campaign-item__failures {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
}

.dashboard-failure-pill {
  min-width: 24px;
  min-height: 20px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.dashboard-failure-pill.is-danger {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}

.dashboard-failure-pill.is-success {
  background: var(--color-success-subtle);
  color: var(--color-success);
}

.dashboard-campaign-card__footer {
  padding: var(--space-4) var(--space-6);
  border-top: 1px solid var(--color-border);
  background: var(--color-surface-muted);
}

.dashboard-campaign-card__footer p {
  font-size: var(--font-size-sm);
}

.dashboard-campaign-empty {
  padding: var(--space-6);
  border-top: 1px solid var(--color-border);
  display: grid;
  gap: var(--space-3);
  justify-items: start;
}

.dashboard-history__head {
  padding-bottom: var(--space-2);
}

.history-video-grid {
  display: grid;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-6) var(--space-6);
}

.history-video-item {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: var(--space-5);
  align-items: start;
  padding: var(--space-5);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
}

.history-video-item__media {
  width: 100%;
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  background: var(--color-text);
  object-fit: cover;
}

.history-video-item__content {
  min-width: 0;
  display: grid;
  gap: var(--space-4);
}

.history-video-item__topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-4);
}

.history-video-item__title-group {
  display: grid;
  gap: var(--space-2);
}

.history-video-item__label,
.history-video-item__status-label {
  color: var(--color-text-subtle);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.history-video-item__content h3 {
  font-size: var(--font-size-lg);
  line-height: 1.4;
}

.history-video-item__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--space-2);
}

.history-video-item__chip {
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
  display: inline-flex;
  align-items: center;
}

.history-video-item__chip[data-state="ready"] {
  background: var(--color-success-subtle);
  color: var(--color-success);
}

.history-video-item__chip[data-state="pending"],
.history-video-item__chip[data-state="generating"] {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.history-video-item__chip[data-state="failed"] {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}

.history-video-item__meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2) 0;
}

.history-video-item__meta-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
}

.history-video-item__meta-item + .history-video-item__meta-item {
  padding-left: 24px;
}

.history-video-item__meta-item + .history-video-item__meta-item::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 50%;
  width: 4px;
  height: 4px;
  margin-top: -2px;
  border-radius: var(--radius-pill);
  background: var(--color-border-strong);
}

.history-video-item__status-list {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-4);
  border-top: 1px solid var(--color-border);
}

.history-video-item__status-row {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: var(--space-4);
}

.history-video-item__status-text {
  color: var(--color-text-muted);
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.history-video-item[data-caption-state="pending"] [data-caption-status] {
  color: var(--color-primary);
}

.history-video-item[data-caption-state="ready"] [data-caption-status] {
  color: var(--color-success);
}

.history-video-item[data-caption-state="failed"] [data-caption-status] {
  color: var(--color-danger);
}

.history-video-item__actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
}

.history-video-item__link--subtle {
  min-height: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-primary);
}

.history-video-item__link--subtle:hover {
  background: transparent;
  border: 0;
  color: var(--color-primary-hover);
}

.dashboard-settings-shell {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
}

.dashboard-settings-card {
  padding: var(--space-6);
  display: grid;
  gap: var(--space-5);
}

.dashboard-settings-body,
.dashboard-settings-form {
  display: grid;
  gap: var(--space-4);
}

.dashboard-settings-field {
  display: grid;
  gap: var(--space-2);
}

.dashboard-settings-field label,
.config-field label {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
}

.dashboard-settings-field__hint,
.dashboard-settings-field__error,
.config-field__hint,
.script-tip,
.char-counter,
.generate-hint {
  font-size: var(--font-size-xs);
  line-height: 1.5;
}

.dashboard-settings-field__hint,
.config-field__hint,
.script-tip,
.char-counter,
.generate-hint {
  color: var(--color-text-subtle);
}

.dashboard-settings-field__error,
.generate-hint.is-error {
  color: var(--color-danger);
}

.dashboard-settings-alert {
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-size: var(--font-size-sm);
}

.dashboard-settings-alert.is-success {
  background: var(--color-success-subtle);
  color: var(--color-success);
}

.dashboard-settings-alert.is-error {
  background: var(--color-danger-subtle);
  color: var(--color-danger);
}

.dashboard-settings-actions {
  padding-top: var(--space-2);
}

.criar-video-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: var(--space-8);
  align-items: start;
}

.cv-left-col,
.cv-right-col {
  display: grid;
  gap: var(--space-6);
}

.cv-right-col {
  position: sticky;
  top: calc(var(--topbar-height) + var(--space-4));
}

.cv-sections {
  display: grid;
}

.cv-section {
  padding-bottom: var(--space-8);
}

.cv-section + .cv-section {
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.cv-section:last-child {
  padding-bottom: 0;
}

.cv-section__header {
  margin-bottom: var(--space-4);
}

.cv-section__header h2 {
  font-size: var(--font-size-lg);
  line-height: 1.4;
}

.avatar-picker__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
  flex-wrap: wrap;
}


.avatar-filters {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
  overflow-x: auto;
}

.avatar-filter-btn {
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.avatar-filter-btn:hover {
  background: var(--color-surface-muted);
}

.avatar-filter-btn.is-active {
  background: var(--color-primary-subtle);
  border-color: var(--color-primary-subtle);
  color: var(--color-primary);
}

.avatar-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-3);
}

.avatar-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.avatar-card:hover {
  border-color: var(--color-border-strong);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.avatar-card.is-selected {
  border-color: var(--color-primary);
  box-shadow: var(--focus-ring);
}

.avatar-card__visual {
  aspect-ratio: 3 / 4;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-hover));
  color: var(--color-surface);
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-heading);
  position: relative;
  overflow: hidden;
}

.avatar-card__visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.avatar-card__check {
  position: absolute;
  top: var(--space-2);
  right: var(--space-2);
  width: 22px;
  height: 22px;
  border-radius: var(--radius-pill);
  background: var(--color-primary);
  color: var(--color-surface);
  display: none;
  align-items: center;
  justify-content: center;
}

.avatar-card.is-selected .avatar-card__check {
  display: inline-flex;
}

.avatar-card__check svg {
  width: 12px;
  height: 12px;
}

.avatar-card__info {
  padding: var(--space-3);
  display: grid;
  gap: var(--space-1);
}

.avatar-card__name {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar-card__tags,
.preview-info__tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1);
}

.avatar-tag {
  min-height: 20px;
  padding: 0 6px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-muted);
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  display: inline-flex;
  align-items: center;
}

.avatar-tag.is-lang {
  background: var(--color-primary-subtle);
  color: var(--color-primary);
}

.script-textarea {
  min-height: 180px;
}

.script-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-3);
}

.script-tip {
  display: inline-flex;
  align-items: flex-start;
  gap: var(--space-2);
}

.script-tip svg {
  width: 14px;
  height: 14px;
  color: var(--color-warning);
  flex-shrink: 0;
  margin-top: 2px;
}

.char-counter.is-near-limit {
  color: var(--color-warning);
}

.char-counter.is-at-limit {
  color: var(--color-danger);
}

.config-fields {
  display: grid;
  gap: var(--space-4);
}

.config-range {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
}

.config-range__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
}

.config-range__eyebrow {
  color: var(--color-text-muted);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.config-range__value,
.config-model-badge {
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-subtle);
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
  display: inline-flex;
  align-items: center;
}

.config-range__input {
  padding: 0;
  border: 0;
  background: transparent;
  accent-color: var(--color-primary);
  box-shadow: none;
}

.config-range__scale {
  margin-top: var(--space-2);
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  color: var(--color-text-subtle);
  font-size: var(--font-size-xs);
}

.config-model-row {
  min-height: 40px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
}

.config-model-name {
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
}

.config-actions {
  display: grid;
  gap: var(--space-3);
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}

.credit-info {
  display: grid;
  gap: var(--space-2);
}

.credit-info__headline {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-text);
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-label);
}

.credit-info__headline svg {
  width: 16px;
  height: 16px;
  color: var(--color-success);
}

.credit-info__meta,
.credit-info__estimate,
.credit-info__available {
  color: var(--color-text-subtle);
  font-size: var(--font-size-xs);
}

.generate-hint[hidden] {
  display: none;
}

.btn-generate__badge {
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--color-white-soft);
  color: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.btn-generate__badge[hidden] {
  display: none;
}

.preview-progress {
  padding: var(--space-3);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface-muted);
}

.preview-progress__meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-2);
}

.preview-progress__label {
  color: var(--color-text);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.preview-progress__value {
  color: var(--color-primary);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

.preview-progress__track {
  height: 8px;
  border-radius: var(--radius-pill);
  background: var(--color-primary-subtle);
  overflow: hidden;
}

.preview-progress__bar {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-hover));
}

.preview-progress.is-complete .preview-progress__bar {
  background: linear-gradient(90deg, var(--color-success), var(--color-success));
}

.preview-progress.is-error .preview-progress__bar {
  background: linear-gradient(90deg, var(--color-danger), var(--color-danger));
}

.preview-progress.is-complete .preview-progress__value {
  color: var(--color-success);
}

.preview-progress.is-error .preview-progress__value {
  color: var(--color-danger);
}

.video-preview-panel {
  padding: var(--space-5);
  display: grid;
  gap: var(--space-4);
}

.preview-panel__title {
  color: var(--color-text);
  font-size: var(--font-size-lg);
  line-height: 1.4;
}

.preview-frame {
  width: 100%;
  max-width: 220px;
  aspect-ratio: 9 / 16;
  margin: 0 auto;
  border: 1px solid var(--color-border);
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--color-surface-muted);
  overflow: hidden;
  position: relative;
}

.preview-frame.has-avatar {
  border-color: var(--color-primary);
}

.preview-frame__empty,
.preview-frame__fill,
.preview-avatar-bg {
  width: 100%;
  height: 100%;
}

.preview-frame__empty {
  display: grid;
  place-items: center;
  gap: var(--space-3);
  padding: var(--space-5);
  text-align: center;
  color: var(--color-text-subtle);
}

.preview-frame__empty svg {
  width: 40px;
  height: 40px;
}

.preview-frame__empty p {
  font-size: var(--font-size-sm);
  line-height: 1.6;
}

.preview-frame__fill {
  display: none;
  position: absolute;
  inset: 0;
}

.preview-frame__fill.is-visible {
  display: block;
}

.preview-avatar-bg {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(145deg, var(--color-primary), var(--color-primary-hover));
  color: var(--color-surface);
  font-size: 44px;
  font-weight: var(--font-weight-heading);
}

.preview-generated-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.preview-rec {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 4px 8px;
  border-radius: var(--radius-pill);
  background: var(--color-scrim);
  color: var(--color-surface);
}

.preview-rec__dot {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-danger);
  animation: preview-rec-blink 1.8s ease-in-out infinite;
}

.preview-rec__label {
  color: inherit;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
}

@keyframes preview-rec-blink {
  0%,
  100% {
    opacity: 1;
  }

  50% {
    opacity: 0.25;
  }
}

.preview-script-overlay {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2;
  padding: 36px 12px 14px;
  background: linear-gradient(to top, var(--color-scrim), transparent);
}

.preview-script-text {
  color: var(--color-surface);
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-label);
  line-height: 1.6;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

.preview-info {
  display: none;
  gap: var(--space-2);
  justify-items: center;
  text-align: center;
}

.preview-info.is-visible {
  display: grid;
}

.preview-info__name {
  color: var(--color-text);
  font-size: var(--font-size-base);
  font-weight: var(--font-weight-heading);
}

.empty-state-message {
  padding: var(--space-4) 0;
  color: var(--color-text-subtle);
  font-size: var(--font-size-sm);
}

.empty-state-message.is-error {
  color: var(--color-danger);
}

.skeleton {
  position: relative;
  overflow: hidden;
  background: var(--color-surface-muted);
  color: transparent;
  user-select: none;
}

.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, var(--color-surface), transparent);
  animation: skeleton-pulse 1.3s ease-in-out infinite;
}

.skeleton--text {
  min-height: 14px;
  border-radius: var(--radius-sm);
}

.skeleton--chip {
  min-width: 56px;
}

.skeleton-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--color-surface);
}

.skeleton-card__visual {
  aspect-ratio: 3 / 4;
}

.skeleton-card__body {
  padding: var(--space-3);
  display: grid;
  gap: var(--space-2);
}

.skeleton-card__tags {
  display: flex;
  gap: var(--space-1);
}

.skeleton-card__tag {
  width: 44px;
  min-height: 18px;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-pulse {
  100% {
    transform: translateX(100%);
  }
}

@media (min-width: 960px) {
  .topbar-desktop {
    display: flex;
  }

  .topbar-mobile-controls {
    display: none;
  }
}

@media (max-width: 1199px) {
  .dashboard-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 980px) {
  .dashboard-shell {
    display: block;
  }

  .dashboard-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 95;
    width: 280px;
    height: 100vh;
    transform: translateX(-100%);
    transition: transform 200ms ease;
  }

  .dashboard-sidebar.is-open {
    transform: translateX(0);
  }

  .dashboard-sidebar__header {
    display: flex;
    justify-content: flex-end;
  }

  .dashboard-mobile-bar {
    display: none;
  }

  .dashboard-content__inner {
    padding-left: var(--space-4);
    padding-right: var(--space-4);
  }

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

  .history-video-item {
    grid-template-columns: minmax(0, 200px) minmax(0, 1fr);
  }

  .criar-video-layout {
    grid-template-columns: 1fr;
  }

  .cv-right-col {
    position: static;
  }

  .btn-generate--panel {
    display: none;
  }
}

@media (max-width: 720px) {
  .dash-promo-banner,
  .dashboard-chart-card__head,
  .history-video-item__topline {
    flex-direction: column;
    align-items: flex-start;
  }

  .dashboard-kpi-grid {
    display: flex;
    flex-wrap: wrap;
  }

  .dashboard-kpi-card {
    flex: 1 1 calc(50% - var(--space-2));
    min-width: calc(50% - var(--space-2));
  }

  .history-video-item {
    grid-template-columns: 1fr;
  }

  .history-video-item__chips {
    justify-content: flex-start;
  }

  .history-video-item__status-row {
    grid-template-columns: 1fr;
    gap: var(--space-1);
  }

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

@media (max-width: 767px) {
  .dashboard-tutorial-banner {
    margin: 0;
    grid-template-columns: 1fr;
    padding: var(--space-6);
  }

  .dashboard-tutorial-banner__media {
    display: none;
  }
}

@media (max-width: 560px) {
  .topbar-inner {
    min-height: 64px;
  }

  .topbar-mobile-trigger-cta {
    padding-inline: 10px;
  }

  .dashboard-mobile-bar {
    top: 64px;
  }

  .dashboard-mobile-generate-btn {
    padding-inline: 10px;
  }

  .dashboard-chart__svg {
    min-width: 560px;
  }

  .dashboard-kpi-grid {
    gap: var(--space-3);
  }

  .dashboard-kpi-card {
    flex-basis: calc(50% - var(--space-2));
    min-width: calc(50% - var(--space-2));
    padding: var(--space-4);
  }

  .history-video-item__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .history-video-item__link:not(.history-video-item__link--subtle),
  .history-video-item__caption-btn {
    width: 100%;
  }

  .avatar-picker__toolbar,
  .script-footer {
    flex-direction: column;
    align-items: stretch;
  }

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