/* Área conectada do Enomera Site: entrar, estados de carregamento e erro, operação.
   As telas do profissional (perguntas, revisão, Sob medida) ficam em site-modelo.css. */
#etha-live-overlay {
  --etha-ease: cubic-bezier(0.23, 1, 0.32, 1);
  --etha-accent: #53459A;
  --etha-accent-hover: #433780;
  --etha-focus: #42367D;
  --etha-ink: #202D50;
  --etha-muted: #516083;
  --etha-petal: #C7BDF4;
  --etha-line: #D7CFF6;
  --etha-err-ink: #992F49;
  position: fixed;
  inset: 0;
  z-index: 999;
  overflow: auto;
  background: radial-gradient(circle at 14% 12%, rgba(199,189,244,0.45), transparent 42%), radial-gradient(circle at 86% 24%, rgba(222,214,248,0.52), transparent 46%), linear-gradient(180deg, #F2EFFE 0%, #F9F7FF 100%);
  color: var(--etha-ink);
  font-family: Manrope, system-ui, sans-serif;
  padding: 24px 18px 72px;
}
#etha-live-overlay, #etha-live-overlay * { box-sizing: border-box; }
#etha-live-overlay *:focus-visible { outline: 2px solid var(--etha-focus); outline-offset: 3px; }
#etha-live-overlay .etha-shell { max-width: 1120px; margin: 0 auto; display: grid; gap: 20px; }
#etha-live-overlay .etha-topbar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; padding: 14px 22px; border-radius: 999px; }
#etha-live-overlay .etha-topbar-side { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
#etha-live-overlay .etha-brand-lockup { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
#etha-live-overlay .etha-brand-dot { width: 10px; height: 10px; border-radius: 99px; background: var(--etha-petal); display: inline-block; }
#etha-live-overlay .etha-brand-word { font-size: 24px; font-weight: 600; letter-spacing: -0.04em; color: var(--etha-ink); }
#etha-live-overlay .etha-brand-sub { font-size: 12px; font-weight: 600; color: var(--etha-accent); }
#etha-live-overlay .etha-btn {
  min-height: 46px; padding: 10px 20px; border-radius: 999px; font: 600 14px/1.3 Manrope, system-ui, sans-serif; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  transition: transform 140ms var(--etha-ease), background-color 160ms var(--etha-ease), border-color 160ms var(--etha-ease), box-shadow 160ms var(--etha-ease), opacity 140ms ease;
}
#etha-live-overlay .etha-btn:active:not(:disabled) { transform: scale(0.975); }
#etha-live-overlay .etha-btn:disabled { opacity: 0.64; cursor: not-allowed; }
#etha-live-overlay .etha-btn-p { border: 1px solid transparent; background: var(--etha-accent); color: #FFFFFF; box-shadow: 0 6px 18px rgba(83, 69, 154, 0.22); }
#etha-live-overlay .etha-btn-s { border: 1px solid var(--etha-petal); background: rgba(255, 255, 255, 0.86); color: var(--etha-ink); }
#etha-live-overlay .etha-btn-s[aria-checked="true"] { border-color: var(--etha-accent); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(83, 69, 154, .14); color: var(--etha-accent-hover); }
#etha-live-overlay .etha-btn-ghost { border: 1px solid transparent; background: transparent; color: var(--etha-accent); padding: 10px 14px; }
#etha-live-overlay .etha-btn-wide { width: 100%; min-height: 52px; }
@media (hover: hover) and (pointer: fine) {
  #etha-live-overlay .etha-btn-p:hover:not(:disabled) { background: var(--etha-accent-hover); }
  #etha-live-overlay .etha-btn-s:hover:not(:disabled) { background: #FFFFFF; border-color: var(--etha-accent); }
  #etha-live-overlay .etha-btn-ghost:hover:not(:disabled) { background: rgba(199, 189, 244, 0.24); }
}
/* Entrada do painel: enoGlassIn em ux-polish.css (vidro materializando). */
#etha-live-overlay .etha-card { border-radius: 26px; padding: 24px; display: grid; gap: 16px; }
#etha-live-overlay .etha-card h2 { margin: 0; font-size: 24px; font-weight: 500; letter-spacing: -0.03em; }
#etha-live-overlay .etha-card h3 { margin: 8px 0 0; font-size: 18px; font-weight: 500; letter-spacing: -0.03em; }
#etha-live-overlay .etha-card p { margin: 0; }
#etha-live-overlay .etha-card-narrow { width: 100%; max-width: 440px; margin: clamp(16px, 8vh, 72px) auto 0; }
#etha-live-overlay .etha-card-mid { width: 100%; max-width: 620px; margin: clamp(16px, 6vh, 56px) auto 0; }
#etha-live-overlay .etha-sub { color: var(--etha-muted); font-size: 14px; line-height: 1.5; }
#etha-live-overlay .etha-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
#etha-live-overlay .etha-stack { display: grid; gap: 10px; }
#etha-live-overlay .etha-field { display: grid; gap: 6px; }
#etha-live-overlay .etha-field-head { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
#etha-live-overlay .etha-field-err { margin: 2px 0 0; color: #B3261E; font-size: 13.5px; font-weight: 600; line-height: 1.4; }
#etha-live-overlay .etha-login-note { margin: 0; padding: 10px 14px; border-radius: 14px; background: #F2EFFE; color: #3D3275; font-size: 13.5px; line-height: 1.45; }
#etha-live-overlay .etha-label { font-size: 13.5px; font-weight: 700; color: var(--etha-ink); }
#etha-live-overlay .etha-inp {
  min-height: 48px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--etha-petal); background: #FFFFFF; color: var(--etha-ink);
  font: 500 16px/1.4 Manrope, system-ui, sans-serif; width: 100%; transition: border-color 150ms var(--etha-ease), box-shadow 150ms var(--etha-ease);
}
/* Um anel só (borda + halo suave), sem contorno duplo: padrão dos campos em vidro. */
#etha-live-overlay .etha-inp:focus { border-color: var(--etha-focus); outline: none; box-shadow: 0 0 0 3px rgba(83, 69, 154, .22); }
#etha-live-overlay .etha-inp[aria-invalid="true"] { border-color: var(--etha-err-ink); }
#etha-live-overlay .etha-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.25; background: #F2EFFE; color: var(--etha-accent); }
#etha-live-overlay .etha-badge[data-tone="ok"] { background: #DFF4E8; color: #1B653E; }
#etha-live-overlay .etha-badge[data-tone="warn"] { background: #F8EDD3; color: #7D5112; }
#etha-live-overlay .etha-split { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 12px; }
#etha-live-overlay .etha-waitlist { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px; align-items: end; padding-top: 16px; border-top: 1px solid var(--etha-line); }
#etha-live-overlay .etha-op-form { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; background: rgba(255,255,255,0.82); padding: 12px 16px; border-radius: 18px; border: 1px solid var(--etha-line); }
#etha-live-overlay .etha-op-form .etha-inp { width: 110px; }
#etha-live-overlay .etha-op-list { display: grid; gap: 12px; }
#etha-live-overlay .etha-op-item { padding: 18px; border-radius: 18px; border: 1px solid var(--etha-line); background: #FAF8FF; display: grid; gap: 10px; }
#etha-live-overlay .etha-op-meta { font-size: 13px; color: var(--etha-muted); display: flex; gap: 16px; flex-wrap: wrap; }
#etha-live-overlay .etha-op-wait { padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,0.8); border: 1px solid var(--etha-line); font-size: 13.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
/* Esqueleto de vidro enquanto a conta e o projeto carregam. */
#etha-live-overlay .etha-skel { display: grid; gap: 14px; }
#etha-live-overlay .etha-skel i { display: block; height: 16px; border-radius: 10px; background: linear-gradient(90deg, rgba(199,189,244,.28) 0%, rgba(199,189,244,.56) 50%, rgba(199,189,244,.28) 100%); background-size: 200% 100%; animation: ethaSkel 1.4s linear infinite; }
#etha-live-overlay .etha-skel i:nth-child(1) { height: 28px; width: 62%; }
#etha-live-overlay .etha-skel i:nth-child(2) { width: 88%; }
#etha-live-overlay .etha-skel i:nth-child(3) { width: 74%; }
#etha-live-overlay .etha-skel i:nth-child(4) { height: 52px; border-radius: 999px; margin-top: 8px; }
#etha-live-overlay .etha-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@keyframes ethaSkel { from { background-position: 200% 0; } to { background-position: -200% 0; } }
@media (max-width: 720px) {
  #etha-live-overlay .etha-topbar { border-radius: 24px; padding: 14px 16px; }
  #etha-live-overlay .etha-card { padding: 18px 16px; border-radius: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  #etha-live-overlay *, #etha-live-overlay *::before, #etha-live-overlay *::after {
    animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important;
  }
  #etha-live-overlay .etha-skel i { animation: none; }
}
