/* AUSAPE V10.22 · Auto Supabase Session + Entrada con progreso */
.ausape-entry-sync-overlay{
  position:fixed; inset:0; z-index:999999;
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(circle at top left, rgba(20,151,207,.22), transparent 38%), linear-gradient(135deg, rgba(245,251,255,.96), rgba(234,246,252,.98));
  backdrop-filter: blur(14px);
  opacity:0; pointer-events:none; transition:opacity .24s ease;
  font-family: inherit;
}
.ausape-entry-sync-overlay.is-visible{opacity:1; pointer-events:auto;}
.ausape-entry-sync-card{
  width:min(760px, calc(100vw - 34px));
  background:rgba(255,255,255,.92);
  border:1px solid rgba(0,141,207,.18);
  box-shadow:0 28px 80px rgba(2,59,87,.18);
  border-radius:30px; padding:26px;
}
.ausape-entry-sync-head{display:flex; gap:16px; align-items:center; margin-bottom:18px;}
.ausape-entry-sync-logo{width:58px; height:58px; object-fit:contain; border-radius:18px; background:#fff; box-shadow:0 10px 28px rgba(0,78,120,.12); padding:8px;}
.ausape-entry-sync-title{margin:0; font-size:25px; color:#003b5c; letter-spacing:-.03em;}
.ausape-entry-sync-subtitle{margin:4px 0 0; color:#60708a; font-size:15px;}
.ausape-progress-wrap{margin-top:18px; background:#e8f4fb; border-radius:999px; overflow:hidden; height:16px; border:1px solid rgba(0,141,207,.13);}
.ausape-progress-bar{height:100%; width:0%; background:linear-gradient(90deg, #008dcf, #14b8d4, #003b5c); border-radius:999px; transition:width .28s ease; position:relative;}
.ausape-progress-bar:after{content:""; position:absolute; inset:0; background:linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); animation:ausapeProgressShine 1.2s linear infinite;}
@keyframes ausapeProgressShine{from{transform:translateX(-100%);}to{transform:translateX(100%);}}
.ausape-entry-sync-status{display:flex; justify-content:space-between; gap:12px; margin-top:10px; color:#43556e; font-size:14px;}
.ausape-entry-sync-stage{font-weight:800; color:#004b73;}
.ausape-entry-sync-grid{display:grid; grid-template-columns:repeat(3, 1fr); gap:12px; margin-top:18px;}
.ausape-entry-sync-metric{border:1px solid #dbeaf2; border-radius:18px; padding:12px 14px; background:#fbfdff;}
.ausape-entry-sync-metric span{display:block; color:#6b7890; font-size:12px; font-weight:800; text-transform:uppercase; letter-spacing:.04em;}
.ausape-entry-sync-metric b{display:block; color:#0b1733; font-size:25px; margin-top:4px;}
.ausape-entry-sync-login{display:none; margin-top:18px; padding:16px; border-radius:22px; background:#f6fbff; border:1px dashed #9ed5f0;}
.ausape-entry-sync-login.is-visible{display:block;}
.ausape-entry-sync-login p{margin:0 0 10px; color:#4e6079;}
.ausape-entry-sync-login-grid{display:grid; grid-template-columns:1fr 1fr auto; gap:10px; align-items:end;}
.ausape-entry-sync-login label{font-weight:800; color:#003b5c; font-size:13px;}
.ausape-entry-sync-login input{width:100%; margin-top:6px; padding:11px 12px; border:1px solid #cfe4ef; border-radius:14px; background:#fff;}
.ausape-entry-sync-actions{display:flex; flex-wrap:wrap; gap:10px; justify-content:flex-end; margin-top:18px;}
.ausape-entry-sync-error{display:none; margin-top:14px; padding:12px 14px; border-radius:16px; background:#fff3f3; color:#a01818; border:1px solid #ffd0d0; font-weight:700;}
.ausape-entry-sync-error.is-visible{display:block;}
.ausape-freshness-badge{
  position:fixed; right:18px; bottom:16px; z-index:99990;
  display:flex; align-items:center; gap:10px; flex-wrap:wrap;
  padding:10px 12px; border-radius:999px;
  background:rgba(255,255,255,.92); border:1px solid rgba(0,141,207,.2);
  box-shadow:0 14px 38px rgba(0,59,92,.14); backdrop-filter:blur(10px);
  color:#003b5c; font-size:13px;
}
.ausape-freshness-badge b{font-weight:900;}
.ausape-freshness-badge button{border:0; border-radius:999px; padding:8px 12px; cursor:pointer; background:#008dcf; color:#fff; font-weight:900;}
.ausape-freshness-badge[data-state="error"]{border-color:#ffbcbc; color:#9a1b1b;}
.ausape-freshness-badge[data-state="loading"] button{opacity:.65; pointer-events:none;}
@media(max-width:760px){
  .ausape-entry-sync-card{padding:20px; border-radius:24px;}
  .ausape-entry-sync-grid{grid-template-columns:1fr;}
  .ausape-entry-sync-login-grid{grid-template-columns:1fr;}
  .ausape-freshness-badge{left:12px; right:12px; bottom:12px; border-radius:20px; justify-content:space-between;}
}
@media print{.ausape-entry-sync-overlay,.ausape-freshness-badge{display:none!important;}}
