/* loading.css v7 — Token-aligned loading & notification surfaces */

@layer loading {

@keyframes _ld_spin      { to { transform: rotate(360deg); } }
@keyframes _ld_in        { from { opacity: 0; } to { opacity: 1; } }
@keyframes _ld_out       { from { opacity: 1; } to { opacity: 0; } }
@keyframes _ld_notif_in  { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes _ld_notif_out { from { opacity: 1; transform: translateY(0); }     to { opacity: 0; transform: translateY(-10px); } }

:root { --clp-top: 0px; }

#clp-overlay {
  position: fixed; top: var(--clp-top); left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: var(--space-6, 24px); background: var(--fv-surface-page, #ffffff); z-index: var(--fv-z-overlay, 500);
  contain: strict;
}
#clp-overlay[hidden]  { display: none !important; }
#clp-overlay.entering { will-change: opacity; animation: _ld_in 0.15s ease-out forwards; }
#clp-overlay.leaving  { will-change: opacity; animation: _ld_out 0.18s ease-in forwards; pointer-events: none; }

#clp-overlay 
#clp-overlay .clp-spinner svg { width: 100%; height: 100%; overflow: visible; display: block; }
#clp-overlay 
#clp-overlay 

#clp-overlay 
#clp-overlay 
#clp-overlay 
#clp-overlay .clp-sub:empty { display: none; }

#content-loading-overlay, 
#content-loading-overlay[hidden], #instant-loading-overlay[hidden],
#content-loading-overlay.hidden,  #instant-loading-overlay.hidden { display: none !important; opacity: 0; pointer-events: none; }

#content-loading-overlay .fg, #content-loading-overlay .svg-fg, #instant-loading-overlay 

/* ── Calm, white-canvas notification toasts ──────────────────────────── */
.notification {
  position: fixed; top: var(--space-5, 20px); right: var(--space-5, 20px); padding: var(--space-3, 12px) var(--space-4, 16px);
  border-radius: var(--radius-xl, 28px);
  border: 1px solid var(--border-subtle, rgba(0, 0, 0, 0.06));
  background: var(--surface-card, #ffffff);
  color: var(--text-main, #0f172a);
  box-shadow: none; z-index: var(--fv-z-toast, 700);
  opacity: 0; animation: _ld_notif_in 0.2s ease-out forwards;
  display: flex; align-items: flex-start; gap: var(--space-3, 12px);
  max-width: 340px; min-height: 44px;
  font-family: var(--font-sans, system-ui, -apple-system, sans-serif);
}







.notification-icon              { font-size: 16px; flex-shrink: 0; line-height: 1.3; color: var(--color-brand-primary, #009688); }
.notification-message-container { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.notification-title             { font-size: var(--step--1, 0.875rem); font-weight: var(--font-semibold, 600); color: var(--text-main, #0f172a); line-height: 1.3; }
.notification-content           { font-size: var(--step--1, 0.8125rem); color: var(--text-muted, #757575); word-break: break-word; line-height: 1.4; }
.notification-close             { background: none; border: none; color: var(--text-muted, #757575); font-size: 16px; cursor: pointer; padding: 0; width: 28px; height: 28px; min-width: 28px; min-height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; opacity: 0.7; margin-top: -2px; border-radius: var(--radius-full, 9999px); transition: opacity 0.15s ease, background 0.15s ease; }
.notification-close:hover       { opacity: 1; background: var(--surface-hover, rgba(0, 0, 0, 0.04)); }
.notification-loading .notification-icon { display: inline-block; animation: _ld_spin 0.7s linear infinite; }
.notification-slideout { animation: _ld_notif_out 0.18s ease-in forwards; }

@media (prefers-reduced-motion: reduce) {
  #clp-overlay.entering, #clp-overlay.leaving { animation: none; will-change: auto; }
  #clp-overlay 
  #content-loading-overlay .fg, #content-loading-overlay .svg-fg, #instant-loading-overlay 
  .notification { animation: none; opacity: 1; }
  .notification-slideout { animation: none; opacity: 0; }
  .notification-loading .notification-icon { animation: none; }
}

} /* end @layer loading */
