* { margin: 0; padding: 0; box-sizing: border-box; }
body { background: #001638; display: flex; align-items: center; justify-content: center; min-height: 100vh; font-family: -apple-system, BlinkMacSystemFont, sans-serif; }
#__bundler_loading { position: fixed; bottom: 20px; right: 20px; font: 13px/1.4 -apple-system, BlinkMacSystemFont, sans-serif; color: #666; background: #fff; padding: 8px 14px; border-radius: 8px; box-shadow: 0 1px 4px rgba(0,0,0,0.12); z-index: 10000; }
#__bundler_thumbnail { position: fixed; inset: 0; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; background: #001638; z-index: 9999; }
#__bundler_thumbnail svg { width: 100%; height: 100%; object-fit: contain; }
#__bundler_placeholder { color: #999; font-size: 14px; }

/* ── Auth overlay ── */
#auth-overlay {
  display: flex;
  position: fixed;
  inset: 0;
  z-index: 100000;
  background: #001638;
  align-items: center;
  justify-content: center;
}

.auth-card {
  background: #fff;
  border-radius: 10px;
  padding: 48px 52px;
  width: 380px;
  text-align: center;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5);
}

.auth-title {
  font-family: Garamond, Georgia, serif;
  font-size: 26px;
  font-weight: bold;
  color: #001638;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-family: Garamond, Georgia, serif;
  font-size: 13px;
  color: #7A8290;
  margin-bottom: 36px;
  letter-spacing: 0.3px;
}

.auth-ms-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 11px 16px;
  background: #fff;
  color: #3D3D3D;
  border: 1px solid #8C8C8C;
  border-radius: 4px;
  font-size: 15px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  cursor: pointer;
  justify-content: center;
}

.auth-ms-btn:hover { background: #f5f5f5; }

#auth-spinner {
  display: none;
  color: #7A8290;
  font-size: 14px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
}

#auth-denied { display: none; }

.auth-denied-msg {
  color: #C00000;
  font-size: 14px;
  margin-bottom: 20px;
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  line-height: 1.6;
}

.auth-denied-signout {
  padding: 10px 24px;
  background: #001638;
  color: #fff;
  border: none;
  border-radius: 4px;
  font-size: 14px;
  cursor: pointer;
  font-family: Garamond, Georgia, serif;
  letter-spacing: 0.5px;
}

/* ── User bar ── */
#auth-userbar {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 99998;
  background: rgba(0,22,56,0.88);
  color: #fff;
  font: 13px/1 -apple-system, BlinkMacSystemFont, sans-serif;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 16px;
  border-bottom-left-radius: 6px;
  backdrop-filter: blur(4px);
}

#auth-userbar span { opacity: 0.8; }

#auth-userbar button {
  background: rgba(255,255,255,0.13);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 3px;
  padding: 3px 10px;
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
}
