/* ============================================================
   Automation Hub — base comum da home do hub e das ferramentas
   (Playlist Generator, MetaData Generator, Trimmer, Media Formatter,
   MetaCheck, Playlist Convert, Validador de Thumbnails). Prefixo: au-
   Mesmo padrão das páginas de conteúdo (Home, Storage, Configurações,
   Schedule Export, As-Run Report): céu estrelado em camadas, cabeçalho
   com aurora, eyebrow teal e título em degradê; números; painéis em vidro
   com cabeçalho de ícone, título e subtítulo; luz girando no contorno;
   campos, dropdowns e calendário do Octa (nada nativo do navegador).
   Comportamentos comuns (dropdown, modal, área de envio) em
   /js/automation-ui.js. Cada ferramenta tem só o que é dela no seu CSS.
   ============================================================ */

@property --au-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

@keyframes auEdge { to { --au-angle: 360deg; } }
@keyframes auAurora {
  0%   { transform: translate3d(-5%, 0, 0) scale(1); }
  100% { transform: translate3d(5%, -8%, 0) scale(1.1); }
}
@keyframes auFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes auRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes auMenuIn { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
@keyframes auSpin { to { transform: rotate(360deg); } }
@keyframes auShimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }
@keyframes auStripes { to { background-position: 28px 0; } }
@keyframes auDriftA { 0% { transform: translate3d(-4%, -2%, 0) scale(1); }   100% { transform: translate3d(5%, 4%, 0) scale(1.12); } }
@keyframes auDriftB { 0% { transform: translate3d(3%, 3%, 0) scale(1.08); }  100% { transform: translate3d(-5%, -3%, 0) scale(0.96); } }
@keyframes auDriftC { 0% { transform: translate3d(0, 4%, 0) scale(1); }      100% { transform: translate3d(-3%, -4%, 0) scale(1.15); } }

/* ── Céu (o mesmo do Schedule Export e do As-Run Report) ── */
.au-sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: radial-gradient(120% 90% at 50% 120%, rgba(22, 10, 78, 0.85), transparent 60%);
}
.au-nebula { position: absolute; border-radius: 50%; will-change: transform; }
.au-nebula--a { width: 75vw; height: 75vw; left: -22vw; top: -28vw; background: radial-gradient(circle, rgba(94, 57, 188, 0.30), rgba(94, 57, 188, 0.08) 45%, transparent 68%); animation: auDriftA 70s ease-in-out infinite alternate; }
.au-nebula--b { width: 65vw; height: 65vw; right: -20vw; bottom: -30vw; background: radial-gradient(circle, rgba(67, 210, 208, 0.16), rgba(70, 164, 242, 0.06) 45%, transparent 68%); animation: auDriftB 90s ease-in-out infinite alternate; }
.au-nebula--c { width: 50vw; height: 50vw; left: 30vw; top: 20vh; background: radial-gradient(circle, rgba(167, 139, 250, 0.10), transparent 65%); animation: auDriftC 110s ease-in-out infinite alternate; }
body:has(.au-page) #nebula-canvas,
body:has(.au-page) .nebula-sky-layers { z-index: 1; }
body:has(.au-page) { background: #03011f; }

.au-page {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 18px;
  width: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 76px 24px 40px;
  font-family: 'Space Grotesk', system-ui, sans-serif;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.88);
}

/* ── Cabeçalho ── */
.au-hero {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 20px;
  padding: 22px 28px;
  border-radius: 20px;
  background: rgba(6, 3, 38, 0.35);
  border: 1px solid rgba(94, 57, 188, 0.35);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.35), 0 0 50px rgba(94, 57, 188, 0.12);
  animation: auRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
}
.au-hero-aurora { position: absolute; inset: 0; overflow: hidden; border-radius: inherit; pointer-events: none; }
.au-hero-aurora::before {
  content: '';
  position: absolute;
  inset: -60% -10%;
  background:
    radial-gradient(35% 55% at 15% 50%, rgba(67, 210, 208, 0.18), transparent 70%),
    radial-gradient(30% 50% at 60% 30%, rgba(94, 57, 188, 0.30), transparent 70%),
    radial-gradient(25% 45% at 95% 70%, rgba(70, 164, 242, 0.16), transparent 70%);
  filter: blur(12px);
  animation: auAurora 16s ease-in-out infinite alternate;
}
.au-hero > :not(.au-hero-aurora) { position: relative; z-index: 1; }
.au-hero-text { display: flex; flex-direction: column; align-items: flex-start; flex: 1; min-width: 0; }
.au-hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.au-eyebrow {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--nebula-teal);
}
.au-eyebrow a { color: inherit; text-decoration: none; opacity: 0.8; transition: opacity 0.2s ease; }
.au-eyebrow a:hover { opacity: 1; text-decoration: underline; }
.au-eyebrow-sep { opacity: 0.5; }
.au-title {
  margin: 6px 0;
  font-size: clamp(1.6rem, 2.4vw, 2.1rem);
  font-weight: 700 !important;
  line-height: 1.2;
  letter-spacing: -0.02em;
  background: linear-gradient(90deg, #ffffff 0%, #c9f5f4 45%, #b9a4f5 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.au-subtitle { max-width: 760px; margin: 0; font-size: 0.9rem; line-height: 1.5; color: rgba(255, 255, 255, 0.6); }
/* Arte da ferramenta no cabeçalho (o mesmo ícone do card no hub) */
.au-hero-art { width: 64px; height: 64px; flex-shrink: 0; overflow: hidden; border-radius: 18px; box-shadow: 0 0 0 1px rgba(67, 210, 208, 0.3), 0 10px 30px rgba(94, 57, 188, 0.35); }
.au-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.au-hero:has(.au-hero-art) { justify-content: flex-start; }
.au-hero:has(.au-hero-art) .au-hero-actions { margin-left: auto; }

/* ── Números ── */
.au-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.au-kpi {
  --tone: var(--nebula-teal);
  --tone-bg: rgba(67, 210, 208, 0.12);
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 14px 18px;
  border-radius: 16px;
  font: inherit;
  text-align: left;
  color: #fff;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.15s ease;
  animation: auRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.06s + var(--i, 0) * 0.06s);
}
button.au-kpi { cursor: pointer; }
button.au-kpi:hover:not(:disabled) { background: rgba(255, 255, 255, 0.05); transform: translateY(-1px); }
button.au-kpi:focus-visible { outline: 2px solid var(--nebula-teal); outline-offset: 2px; }
button.au-kpi[aria-pressed="true"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--tone) 14%, transparent), rgba(94, 57, 188, 0.2));
  border-color: color-mix(in srgb, var(--tone) 60%, transparent);
}
.au-kpi[data-tone="ok"]  { --tone: #34d399; --tone-bg: rgba(52, 211, 153, 0.12); }
.au-kpi[data-tone="warn"] { --tone: #fbbf24; --tone-bg: rgba(251, 191, 36, 0.12); }
.au-kpi[data-tone="bad"] { --tone: #f87171; --tone-bg: rgba(239, 68, 68, 0.14); border-color: rgba(239, 68, 68, 0.35); }
.au-kpi[data-tone="muted"] { --tone: rgba(255, 255, 255, 0.4); --tone-bg: rgba(255, 255, 255, 0.05); }
.au-kpi-icon { width: 42px; height: 42px; flex-shrink: 0; display: grid; place-items: center; border-radius: 12px; font-size: 1.15rem; color: var(--tone); background: var(--tone-bg); }
.au-kpi-text { display: flex; flex-direction: column; min-width: 0; }
.au-kpi-value { overflow: hidden; font-size: 1.45rem; font-weight: 700; line-height: 1.15; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; }
.au-kpi-label { font-size: 0.76rem; color: rgba(255, 255, 255, 0.62); }
.au-kpi-hint { overflow: hidden; font-size: 0.7rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: var(--tone); }

/* ── Painéis ── */
.au-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.au-grid--side { grid-template-columns: minmax(0, 1fr) 380px; }
.au-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.au-span-2 { grid-column: 1 / -1; }
.au-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  border-radius: 20px;
  background: linear-gradient(160deg, rgba(94, 57, 188, 0.08), rgba(6, 3, 38, 0.3) 60%);
  border: 1px solid rgba(94, 57, 188, 0.28);
  box-shadow: 0 16px 50px rgba(0, 0, 0, 0.3);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  animation: auRise 0.55s cubic-bezier(0.22, 1, 0.36, 1) backwards;
  animation-delay: calc(0.1s + var(--i, 0) * 0.05s);
}
.au-panel:has(.au-select.is-open),
.au-panel:has(.au-datepick.is-open),
.au-panel:has(.is-open) { z-index: 20; }
.au-panel-head { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; padding: 15px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.au-panel-icon {
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  border-radius: 11px;
  font-size: 1rem;
  color: var(--nebula-teal);
  background: linear-gradient(135deg, rgba(67, 210, 208, 0.18), rgba(94, 57, 188, 0.28));
  border: 1px solid rgba(67, 210, 208, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.au-panel:hover .au-panel-icon { transform: rotate(-8deg) scale(1.08); }
.au-panel-icon[data-tone="ok"] { color: #34d399; border-color: rgba(52, 211, 153, 0.35); background: linear-gradient(135deg, rgba(52, 211, 153, 0.16), rgba(94, 57, 188, 0.24)); }
.au-panel-icon[data-tone="warn"] { color: #fbbf24; border-color: rgba(251, 191, 36, 0.3); background: linear-gradient(135deg, rgba(251, 191, 36, 0.16), rgba(94, 57, 188, 0.24)); }
.au-panel-icon[data-tone="bad"] { color: #f87171; border-color: rgba(239, 68, 68, 0.35); background: linear-gradient(135deg, rgba(239, 68, 68, 0.16), rgba(94, 57, 188, 0.24)); }
.au-panel-title { flex: 1; min-width: 160px; }
.au-panel-title h2 { margin: 0; font-size: 1rem; font-weight: 600; color: #fff; }
.au-panel-title p { margin: 2px 0 0; font-size: 0.78rem; color: rgba(255, 255, 255, 0.55); }
.au-panel-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.au-panel-body { display: flex; flex-direction: column; gap: 16px; padding: 16px 18px 18px; }
.au-panel-foot { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* Luz girando no contorno (mesma da Home) */
.au-hero::before,
.au-kpi::before,
.au-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  padding: 1px;
  border-radius: inherit;
  background: conic-gradient(from var(--au-angle),
    transparent 0deg,
    var(--edge-a, rgba(67, 210, 208, 0.9)) 50deg,
    var(--edge-b, rgba(70, 164, 242, 0.8)) 95deg,
    var(--edge-c, rgba(94, 57, 188, 0.9)) 140deg,
    transparent 200deg,
    transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.55;
  animation: auEdge 9s linear infinite;
  animation-delay: calc(var(--i, 0) * -1.4s);
  transition: opacity 0.3s ease;
}
.au-kpi:hover::before,
.au-panel:hover::before { opacity: 1; }
.au-panel--still::before { display: none; }

/* ── Campos ── */
.au-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.au-form--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.au-form--1 { grid-template-columns: minmax(0, 1fr); }
.au-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.au-field--full { grid-column: 1 / -1; }
.au-label { display: flex; align-items: baseline; gap: 6px; font-size: 0.76rem; font-weight: 600; color: rgba(255, 255, 255, 0.72); }
.au-label-note { font-weight: 400; color: rgba(255, 255, 255, 0.4); }
.au-hint { margin: 0; font-size: 0.74rem; line-height: 1.45; color: rgba(255, 255, 255, 0.45); }
.au-input,
.au-select-trigger,
.au-textarea {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.86rem;
  color: #fff;
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  outline: none;
  color-scheme: dark;
  transition: background 0.2s ease, box-shadow 0.2s ease;
}
.au-textarea { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
.au-input::placeholder,
.au-textarea::placeholder { color: rgba(255, 255, 255, 0.38); }
.au-input:hover,
.au-textarea:hover,
.au-select-trigger:hover:not(:disabled) { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.2); }
.au-input:focus,
.au-textarea:focus,
.au-select-trigger:focus-visible,
.au-select.is-open .au-select-trigger { background: rgba(67, 210, 208, 0.04); box-shadow: inset 0 0 0 1px var(--nebula-teal), 0 0 0 3px rgba(67, 210, 208, 0.12); }
.au-input:disabled,
.au-select-trigger:disabled { cursor: not-allowed; opacity: 0.5; }
.au-input.is-invalid,
.au-select.is-invalid .au-select-trigger { box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.75), 0 0 0 3px rgba(248, 113, 113, 0.1); }
.au-input[type="number"] { font-variant-numeric: tabular-nums; }
.au-input-group { position: relative; display: flex; align-items: center; }
.au-input-group > .bi { position: absolute; left: 12px; font-size: 0.88rem; color: rgba(255, 255, 255, 0.45); pointer-events: none; }
.au-input-group > .au-input { padding-left: 36px; }

/* Dropdown do Octa (o <select> original fica escondido e continua sendo a fonte do valor — /js/automation-ui.js) */
.au-select { position: relative; min-width: 0; }
.au-select > select { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.au-select-trigger { display: flex; align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.au-select-value { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.au-select-value.is-placeholder { color: rgba(255, 255, 255, 0.45); }
.au-select-chevron { flex-shrink: 0; font-size: 0.72rem; opacity: 0.7; transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1); }
.au-select.is-open .au-select-chevron { transform: rotate(180deg); opacity: 1; }
.au-select-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 60;
  display: none;
  flex-direction: column;
  gap: 2px;
  min-width: 100%;
  width: max-content;
  max-width: min(420px, 90vw);
  max-height: 320px;
  overflow-y: auto;
  padding: 6px;
  border-radius: 14px;
  background: rgb(8, 5, 40);
  border: 1px solid rgba(94, 57, 188, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.55), 0 0 30px rgba(94, 57, 188, 0.18);
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(94, 57, 188, 0.5) transparent;
}
.au-select.is-open .au-select-panel { display: flex; animation: auMenuIn 0.16s ease; }
.au-select.is-up .au-select-panel { top: auto; bottom: calc(100% + 6px); }
.au-option {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-size: 0.84rem;
  text-align: left;
  color: rgba(255, 255, 255, 0.82);
  background: transparent;
  cursor: pointer;
}
.au-option > span { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.au-option > .bi { color: var(--nebula-teal); opacity: 0; }
.au-option:hover,
.au-option:focus-visible { outline: none; color: #fff; background: rgba(67, 210, 208, 0.1); }
.au-option[aria-selected="true"] { color: #fff; background: linear-gradient(135deg, rgba(67, 210, 208, 0.14), rgba(94, 57, 188, 0.26)); box-shadow: inset 0 0 0 1px rgba(67, 210, 208, 0.4); }
.au-option[aria-selected="true"] > .bi { opacity: 1; }
.au-option:disabled { opacity: 0.4; cursor: not-allowed; }
.au-option-group { padding: 8px 12px 4px; font-size: 0.66rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.4); }

/* Marcação: caixa (gota das Configurações) e interruptor */
.au-check { display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 0.84rem; color: rgba(255, 255, 255, 0.82); cursor: pointer; user-select: none; }
.au-check > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.au-check-box {
  position: relative;
  width: 18px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
  border: 2px solid rgba(70, 164, 242, 0.45);
  background: rgba(255, 255, 255, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.4s ease;
}
.au-check-box::after { content: ''; position: absolute; inset: -2px; border-radius: inherit; background: linear-gradient(135deg, #43D2D0 0%, #5E39BC 100%); opacity: 0; transform: scale(0.35); transition: opacity 0.3s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1); }
.au-check:hover .au-check-box { border-color: rgba(67, 210, 208, 0.75); }
.au-check > input:checked + .au-check-box { border-color: #43D2D0; box-shadow: -3px -3px 12px rgba(67, 210, 208, 0.5), 3px 3px 12px rgba(94, 57, 188, 0.7); }
.au-check > input:checked + .au-check-box::after { opacity: 1; transform: none; }
.au-check > input:focus-visible + .au-check-box { outline: 2px solid var(--nebula-teal); outline-offset: 3px; }
.au-switch { display: inline-flex; align-items: flex-start; gap: 12px; margin: 0; cursor: pointer; }
.au-switch > input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.au-switch-track { position: relative; flex-shrink: 0; width: 36px; height: 22px; margin-top: 1px; border-radius: 999px; background: rgba(255, 255, 255, 0.12); transition: background 0.25s ease; }
.au-switch-track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35); transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1); }
.au-switch > input:checked + .au-switch-track { background: var(--nebula-gradient); }
.au-switch > input:checked + .au-switch-track::after { transform: translateX(14px); }
.au-switch > input:focus-visible + .au-switch-track { outline: 2px solid var(--nebula-teal); outline-offset: 2px; }
.au-switch-text { display: flex; flex-direction: column; gap: 2px; }
.au-switch-text strong { font-size: 0.84rem; font-weight: 600; color: #fff; }
.au-switch-text span { font-size: 0.74rem; color: rgba(255, 255, 255, 0.5); }

/* Alternador segmentado */
.au-seg { display: flex; gap: 2px; padding: 3px; border-radius: 12px; background: rgba(255, 255, 255, 0.04); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); }
.au-seg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex: 1 1 auto;
  min-width: 0;
  height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  white-space: nowrap;
  color: rgba(255, 255, 255, 0.62);
  background: transparent;
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.au-seg-btn:hover { color: #fff; background: rgba(67, 210, 208, 0.08); }
.au-seg-btn[aria-selected="true"],
.au-seg-btn[aria-pressed="true"],
.au-seg-btn.is-active,
.au-seg-btn.active { color: #fff; background: radial-gradient(circle at 30% 25%, rgba(67, 210, 208, 0.32), rgba(94, 57, 188, 0.3) 75%); box-shadow: inset 0 0 0 1px rgba(67, 210, 208, 0.35); }
.au-seg-btn:focus-visible { outline: 2px solid var(--nebula-teal); outline-offset: 1px; }

/* ── Botões ── */
.au-btn,
.au-icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  margin: 0;
  padding: 0 16px;
  border: 0;
  border-radius: 11px;
  font: inherit;
  font-size: 0.84rem;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease, opacity 0.2s ease, transform 0.15s ease;
}
.au-icon-btn { width: 34px; height: 34px; padding: 0; border-radius: 10px; }
.au-btn:hover:not(:disabled),
.au-icon-btn:hover:not(:disabled) { color: #fff; background: rgba(67, 210, 208, 0.12); box-shadow: inset 0 0 0 1px rgba(67, 210, 208, 0.45); }
.au-btn:active:not(:disabled) { transform: scale(0.98); }
.au-btn:focus-visible,
.au-icon-btn:focus-visible { outline: 2px solid var(--nebula-teal); outline-offset: 2px; }
.au-btn:disabled,
.au-icon-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.au-btn--primary,
.au-btn--primary:hover:not(:disabled) { color: #fff; background: var(--nebula-gradient); box-shadow: 0 6px 18px rgba(67, 210, 208, 0.25); }
.au-btn--primary:hover:not(:disabled) { filter: brightness(1.1); }
.au-btn--danger:hover:not(:disabled) { color: #fca5a5; background: rgba(239, 68, 68, 0.12); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.45); }
.au-btn--lg { height: 46px; padding: 0 22px; border-radius: 13px; font-size: 0.9rem; }
.au-btn--block { width: 100%; }
.au-btn.is-loading { pointer-events: none; }
.au-btn.is-loading > .bi { display: none; }
.au-btn.is-loading::before { content: ''; width: 15px; height: 15px; border: 2px solid rgba(255, 255, 255, 0.35); border-top-color: #fff; border-radius: 50%; animation: auSpin 0.8s linear infinite; }
/* Botão de ação principal com estrelas — o mesmo "Gerar exportação" do Schedule Export
   (.se-launch, inspirado em uiverse.io/MuhammadHasann/silent-lizard-44): parado é cheio no
   degradê; com o mouse (ou o foco do teclado) vira contorno em degradê com brilho, e seis
   estrelas saem de trás do texto. A estrela vem do <symbol id="au-star"> da página. */
.au-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.au-launch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  margin: 0;
  padding: 0 26px;
  border: 0;
  border-radius: 14px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  text-decoration: none;
  color: #fff;
  background: var(--nebula-gradient);
  box-shadow: 0 8px 24px rgba(67, 210, 208, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: color 0.3s ease-in-out, box-shadow 0.3s ease-in-out, transform 0.2s ease;
}
/* Menor, para caber em avisos e linhas compactas (mesma animação) */
.au-launch.au-launch--sm { height: 38px; padding: 0 18px; border-radius: 12px; font-size: 0.84rem; }
.au-launch.au-launch--sm::before { border-radius: 10px; }
/* Miolo escuro que aparece no hover, deixando só o contorno em degradê */
.au-launch::before {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 12px;
  background: linear-gradient(160deg, #110a3f, #08052a);
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
}
.au-launch-label { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; }
.au-launch-label > .bi { font-size: 1.05rem; }
.au-launch-star {
  position: absolute;
  z-index: 2;
  top: 42%;
  left: 48%;
  height: auto;
  fill: #f0fffe;
  opacity: 0;
  filter: drop-shadow(0 0 0 rgba(201, 245, 244, 0));
  pointer-events: none;
}
.au-launch-star--1 { width: 22px; transition: all 1s cubic-bezier(0.05, 0.83, 0.43, 0.96); }
.au-launch-star--2 { width: 14px; transition: all 1s cubic-bezier(0, 0.4, 0, 1.01); }
.au-launch-star--3 { width: 6px; transition: all 1s cubic-bezier(0, 0.4, 0, 1.01); }
.au-launch-star--4 { width: 9px; transition: all 0.8s cubic-bezier(0, 0.4, 0, 1.01); }
.au-launch-star--5 { width: 15px; transition: all 0.6s cubic-bezier(0, 0.4, 0, 1.01); }
.au-launch-star--6 { width: 6px; transition: all 0.8s ease; }
.au-launch:hover:not(:disabled),
.au-launch:focus-visible { color: var(--nebula-teal); box-shadow: 0 0 25px rgba(67, 210, 208, 0.45), 0 0 50px rgba(94, 57, 188, 0.3); }
.au-launch:focus-visible { outline: 2px solid var(--nebula-teal); outline-offset: 3px; }
.au-launch:hover:not(:disabled)::before,
.au-launch:focus-visible::before { opacity: 1; }
.au-launch:hover:not(:disabled) .au-launch-star,
.au-launch:focus-visible .au-launch-star { opacity: 1; filter: drop-shadow(0 0 8px rgba(201, 245, 244, 0.95)); }
.au-launch:hover:not(:disabled) .au-launch-star--1,
.au-launch:focus-visible .au-launch-star--1 { top: -62%; left: 5%; }
.au-launch:hover:not(:disabled) .au-launch-star--2,
.au-launch:focus-visible .au-launch-star--2 { top: -28%; left: 23%; }
.au-launch:hover:not(:disabled) .au-launch-star--3,
.au-launch:focus-visible .au-launch-star--3 { top: 62%; left: 15%; }
.au-launch:hover:not(:disabled) .au-launch-star--4,
.au-launch:focus-visible .au-launch-star--4 { top: 30%; left: 84%; }
.au-launch:hover:not(:disabled) .au-launch-star--5,
.au-launch:focus-visible .au-launch-star--5 { top: -50%; left: 92%; }
.au-launch:hover:not(:disabled) .au-launch-star--6,
.au-launch:focus-visible .au-launch-star--6 { top: -14%; left: 66%; }
.au-launch:active:not(:disabled) { transform: scale(0.985); }
.au-launch:disabled { opacity: 0.55; cursor: not-allowed; }
.au-link { display: inline-flex; align-items: center; gap: 6px; padding: 2px 4px; border: 0; border-radius: 6px; font: inherit; font-size: 0.8rem; font-weight: 600; text-decoration: none; color: var(--nebula-teal); background: none; cursor: pointer; }
.au-link:hover { color: #7ee8e6; }
.au-link:focus-visible { outline: 2px solid var(--nebula-teal); outline-offset: 2px; }

/* ── Área de envio (arrastar ou clicar) ── */
.au-drop {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 190px;
  margin: 0;
  padding: 28px 20px;
  border-radius: 16px;
  text-align: center;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(67, 210, 208, 0.3);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.2s ease;
}
.au-drop > input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.au-drop:hover,
.au-drop.is-over,
.au-drop:has(> input:focus-visible) { background: rgba(67, 210, 208, 0.06); border-color: rgba(67, 210, 208, 0.7); }
.au-drop.is-over { transform: scale(1.01); }
.au-drop:has(> input:focus-visible) { outline: 2px solid var(--nebula-teal); outline-offset: 2px; }
.au-drop strong { font-size: 0.95rem; color: #fff; }
.au-drop-sub { max-width: 460px; font-size: 0.78rem; line-height: 1.5; color: rgba(255, 255, 255, 0.5); }
.au-drop-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 8px;
  border-radius: 15px;
  font-size: 1.4rem;
  color: var(--nebula-teal);
  background: linear-gradient(135deg, rgba(67, 210, 208, 0.18), rgba(94, 57, 188, 0.28));
  box-shadow: inset 0 0 0 1px rgba(67, 210, 208, 0.25);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.au-drop:hover .au-drop-icon,
.au-drop.is-over .au-drop-icon { transform: translateY(-3px); }
.au-drop.has-file { border-style: solid; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.05); }
.au-drop.has-file .au-drop-icon { color: #34d399; background: rgba(52, 211, 153, 0.12); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.au-drop--compact { flex-direction: row; justify-content: flex-start; gap: 14px; min-height: 0; padding: 14px 16px; text-align: left; }
.au-drop--compact .au-drop-icon { width: 42px; height: 42px; margin: 0; font-size: 1.15rem; }
.au-drop--compact > span:not(.au-drop-icon) { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-spec-pills { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }
.au-pill { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: rgba(255, 255, 255, 0.75); background: rgba(255, 255, 255, 0.05); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1); }
.au-pill > .bi { color: var(--nebula-teal); }

/* Arquivo escolhido */
.au-file { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08); animation: auFade 0.25s ease; }
.au-file-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; border-radius: 10px; font-size: 1.05rem; color: var(--nebula-teal); background: rgba(67, 210, 208, 0.1); }
.au-file-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.au-file-text strong { overflow: hidden; font-size: 0.84rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.au-file-text span { font-size: 0.72rem; color: rgba(255, 255, 255, 0.5); }

/* ── Progresso ── */
.au-progress { position: relative; height: 8px; overflow: hidden; border-radius: 999px; background: rgba(255, 255, 255, 0.08); }
.au-progress-fill { width: 0; height: 100%; border-radius: inherit; background: var(--nebula-gradient); transition: width 0.4s ease; }
.au-progress.is-indeterminate .au-progress-fill { width: 100% !important; background: repeating-linear-gradient(-45deg, rgba(67, 210, 208, 0.9) 0 10px, rgba(94, 57, 188, 0.9) 10px 20px); background-size: 28px 100%; animation: auStripes 0.8s linear infinite; }
.au-progress-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; font-size: 0.84rem; font-weight: 600; color: #fff; }
.au-progress-pct { font-weight: 700; font-variant-numeric: tabular-nums; color: var(--nebula-teal); }
.au-spinner { display: inline-block; width: 16px; height: 16px; flex-shrink: 0; border: 2px solid rgba(67, 210, 208, 0.25); border-top-color: var(--nebula-teal); border-radius: 50%; animation: auSpin 0.8s linear infinite; }

/* ── Avisos ── */
.au-note { display: flex; align-items: flex-start; gap: 10px; margin: 0; padding: 12px 14px; border-radius: 12px; font-size: 0.8rem; line-height: 1.5; color: rgba(255, 255, 255, 0.72); background: rgba(70, 164, 242, 0.07); box-shadow: inset 0 0 0 1px rgba(70, 164, 242, 0.25); }
.au-note > .bi { flex-shrink: 0; margin-top: 1px; color: #7cc0f7; }
.au-note[data-tone="ok"] { color: #a7f3d0; background: rgba(52, 211, 153, 0.07); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.au-note[data-tone="ok"] > .bi { color: #34d399; }
.au-note[data-tone="warn"] { color: #fde68a; background: rgba(251, 191, 36, 0.07); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3); }
.au-note[data-tone="warn"] > .bi { color: #fbbf24; }
.au-note[data-tone="bad"] { color: #fecaca; background: rgba(239, 68, 68, 0.08); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.32); }
.au-note[data-tone="bad"] > .bi { color: #f87171; }
.au-note[hidden],
[hidden].au-note { display: none; }

/* Selos */
.au-badge { --c: rgba(255, 255, 255, 0.6); display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; white-space: nowrap; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 32%, transparent); }
.au-badge[data-tone="ok"] { --c: #4ade80; }
.au-badge[data-tone="warn"] { --c: #fbbf24; }
.au-badge[data-tone="bad"] { --c: #f87171; }
.au-badge[data-tone="info"] { --c: #43D2D0; }
.au-badge[data-tone="purple"] { --c: #a78bfa; }

/* ── Tabela ── */
.au-table-wrap { position: relative; max-height: 560px; overflow: auto; border-radius: 0 0 20px 20px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(94, 57, 188, 0.6) transparent; }
.au-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 0.82rem; }
.au-table th { position: sticky; top: 0; z-index: 1; padding: 10px 14px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; white-space: nowrap; color: rgba(255, 255, 255, 0.55); background: rgb(13, 9, 48); border-bottom: 1px solid rgba(67, 210, 208, 0.25); }
.au-table td { padding: 9px 14px; vertical-align: middle; color: rgba(255, 255, 255, 0.85); border-bottom: 1px solid rgba(255, 255, 255, 0.045); }
.au-table tbody tr { transition: background 0.15s ease; }
.au-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.022); }
.au-table tbody tr:hover { background: rgba(67, 210, 208, 0.07); }
.au-table tbody tr:last-child td { border-bottom: 0; }
.au-table .is-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.au-table .is-center { text-align: center; }

/* Vazio */
.au-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 44px 24px 48px; text-align: center; }
.au-empty[hidden] { display: none; }
.au-empty-icon { display: grid; place-items: center; width: 50px; height: 50px; margin-bottom: 6px; border-radius: 50%; font-size: 1.25rem; color: var(--nebula-teal); background: rgba(67, 210, 208, 0.1); box-shadow: inset 0 0 0 1px rgba(67, 210, 208, 0.25); }
.au-empty strong { font-size: 0.95rem; color: #fff; }
.au-empty span:not(.au-empty-icon) { max-width: 440px; font-size: 0.8rem; line-height: 1.5; color: rgba(255, 255, 255, 0.55); }

/* Passos numerados (só onde o fluxo é mesmo uma sequência) */
.au-steps { display: flex; flex-direction: column; gap: 0; margin: 0; padding: 0; list-style: none; counter-reset: au-step; }
.au-steps li { position: relative; display: flex; gap: 12px; padding: 0 0 14px; font-size: 0.82rem; line-height: 1.5; color: rgba(255, 255, 255, 0.72); counter-increment: au-step; }
.au-steps li::before { content: counter(au-step); display: grid; place-items: center; flex-shrink: 0; width: 22px; height: 22px; border-radius: 7px; font-size: 0.72rem; font-weight: 700; color: #fff; background: var(--nebula-gradient); }
.au-steps li:not(:last-child)::after { content: ''; position: absolute; left: 10px; top: 26px; bottom: 4px; width: 2px; border-radius: 2px; background: rgba(255, 255, 255, 0.08); }
.au-steps strong { color: #fff; }

/* ── Classes das ferramentas (montadas também pelo JS de cada uma) ──
   Área de envio .drop-zone (com .drop-icon e .drop-text), alertas *-custom,
   resumo .badge-stat e registro .log-area. */
.drop-zone {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.02);
  border: 1.5px dashed rgba(67, 210, 208, 0.3);
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.drop-zone input[type="file"] { display: none; }
.drop-zone:hover,
.drop-zone.dragover { background: rgba(67, 210, 208, 0.06); border-color: rgba(67, 210, 208, 0.7); }
.drop-zone:focus-visible { outline: 2px solid var(--nebula-teal); outline-offset: 2px; }
.drop-zone .drop-icon { display: grid; place-items: center; flex-shrink: 0; width: 50px; height: 50px; border-radius: 14px; font-size: 1.35rem; color: var(--nebula-teal); background: linear-gradient(135deg, rgba(67, 210, 208, 0.18), rgba(94, 57, 188, 0.28)); box-shadow: inset 0 0 0 1px rgba(67, 210, 208, 0.25); transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1); }
.drop-zone:hover .drop-icon { transform: translateY(-2px); }
.drop-zone .drop-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.drop-zone .drop-text strong { overflow: hidden; font-size: 0.92rem; font-weight: 600; white-space: nowrap; text-overflow: ellipsis; color: #fff; }
.drop-zone .drop-text span { font-size: 0.76rem; color: rgba(255, 255, 255, 0.5); }
.drop-zone.has-file { border-style: solid; border-color: rgba(52, 211, 153, 0.45); background: rgba(52, 211, 153, 0.05); }
.drop-zone.has-file .drop-icon { color: #34d399; background: rgba(52, 211, 153, 0.12); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.badge-stat { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.03); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); }
.badge-stat span { font-size: 0.7rem; color: rgba(255, 255, 255, 0.5); }
.badge-stat strong { overflow: hidden; font-size: 0.95rem; font-weight: 700; white-space: nowrap; text-overflow: ellipsis; font-variant-numeric: tabular-nums; color: #fff; }
.alert-success-custom,
.alert-error-custom,
.alert-warn-custom { display: none; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 0.82rem; line-height: 1.5; animation: auFade 0.25s ease; }
.alert-success-custom[style*="block"],
.alert-error-custom[style*="block"],
.alert-warn-custom[style*="block"] { display: flex !important; }
.alert-success-custom { color: #a7f3d0; background: rgba(52, 211, 153, 0.08); box-shadow: inset 0 0 0 1px rgba(52, 211, 153, 0.3); }
.alert-success-custom > .bi { color: #34d399; }
.alert-error-custom { color: #fecaca; background: rgba(239, 68, 68, 0.08); box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.32); }
.alert-error-custom > .bi { color: #f87171; }
.alert-warn-custom { color: #fde68a; background: rgba(251, 191, 36, 0.07); box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.3); }
.alert-warn-custom > .bi { color: #fbbf24; }
.alert-success-custom > .bi,
.alert-error-custom > .bi,
.alert-warn-custom > .bi { flex-shrink: 0; margin-top: 2px; }
/* Registro da geração */
.log-area { max-height: 220px; overflow-y: auto; padding: 12px 14px; border-radius: 12px; font-size: 0.76rem; line-height: 1.6; font-variant-numeric: tabular-nums; white-space: pre-wrap; word-break: break-word; color: rgba(255, 255, 255, 0.7); background: rgba(3, 1, 20, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); scrollbar-width: thin; scrollbar-color: rgba(94, 57, 188, 0.5) transparent; }
.log-area .log-ok { color: #6ee7b7; }
.log-area .log-err { color: #fca5a5; }
.log-area .log-info { color: #8be4e2; }
.log-area .log-warn { color: #fde68a; }

/* ── Modal (mesmo dos modais do EPG Manager) ── */
.au-ov {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(3, 1, 20, 0.62);
  -webkit-backdrop-filter: blur(6px);
          backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}
.au-ov.op { opacity: 1; visibility: visible; pointer-events: auto; }
.au-ov--top { z-index: 1300; }
.au-modal {
  display: flex;
  flex-direction: column;
  width: 520px;
  max-width: 100%;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(120% 60% at 100% 0%, rgba(94, 57, 188, 0.22), transparent 60%), rgba(8, 5, 40, 0.98);
  border: 1px solid rgba(94, 57, 188, 0.4);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 40px rgba(94, 57, 188, 0.18);
  transform: translateY(10px) scale(0.98);
  transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.au-ov.op .au-modal { transform: none; }
.au-modal--wide { width: 1080px; }
.au-modal--lg { width: 780px; }
.au-modal-head { display: flex; align-items: center; gap: 12px; flex-shrink: 0; padding: 16px 18px; border-bottom: 1px solid rgba(255, 255, 255, 0.06); }
.au-modal-icon { display: grid; place-items: center; flex-shrink: 0; width: 36px; height: 36px; overflow: hidden; border-radius: 10px; font-size: 0.95rem; color: #fff; background: var(--nebula-gradient); box-shadow: 0 6px 18px rgba(67, 210, 208, 0.25); }
.au-modal-icon img { width: 100%; height: 100%; object-fit: cover; }
.au-modal-heading { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.au-modal-title { margin: 0; font-size: 1rem; font-weight: 700; color: #fff; }
.au-modal-sub { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 0.76rem; color: rgba(255, 255, 255, 0.55); }
.au-modal-close { margin-left: auto; }
.au-modal-body { display: flex; flex-direction: column; gap: 14px; flex: 1; min-height: 0; overflow-y: auto; padding: 16px 18px; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: rgba(94, 57, 188, 0.5) transparent; }
.au-modal-foot { display: flex; align-items: center; justify-content: flex-end; gap: 8px; flex-shrink: 0; padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); }

/* ── Telas menores (mesmos cortes da Home) ── */
@media (max-width: 1199.98px) {
  .au-grid--side { grid-template-columns: minmax(0, 1fr) 320px; }
  .au-form--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991.98px) {
  .au-grid,
  .au-grid--side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 767.98px) {
  .au-page { gap: 14px; padding: 68px 12px 32px; }
  .au-hero { padding: 18px; }
  .au-hero-actions,
  .au-hero-actions > * { width: 100%; }
  .au-panel-head { padding: 14px; }
  .au-panel-body { padding: 14px; }
  .au-form,
  .au-form--3 { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .au-nebula,
  .au-page,
  .au-page *,
  .au-page *::before,
  .au-page *::after,
  .au-ov,
  .au-ov * { animation: none !important; transition-duration: 0.01ms !important; }
  .au-hero::before,
  .au-kpi::before,
  .au-panel::before,
  .au-launch-star { display: none; }
}
