/* Shared by the first HTML paint and the authenticated workspace loader. */
.crm-loading{box-sizing:border-box;min-height:100vh;min-height:100svh;width:100%;margin:0;display:grid;place-items:center;padding:32px 24px;background:#f5f7f3;color:#203d33;font-family:Arial,sans-serif;text-align:center}
.crm-loading-content{display:flex;align-items:center;flex-direction:column;width:min(100%,360px)}
.crm-loading .crm-loading-logo{display:block;width:72px;height:72px;object-fit:contain;margin:0 0 24px;mix-blend-mode:multiply}
.crm-loading .crm-loading-name{margin:0;font-size:26px;line-height:1.2;font-weight:700;letter-spacing:.15em;padding-left:.15em}
.crm-loading-name span{display:block;font-size:10px;font-weight:500;letter-spacing:.36em;margin-top:10px;padding-left:.2em;color:#64776a}
.crm-loading-track{width:150px;height:3px;margin:32px 0 19px;background:#dfe7dd;border-radius:3px;overflow:hidden}
.crm-loading-track span{display:block;width:45%;height:100%;background:#2c684c;border-radius:3px;animation:crm-loading-progress 1.6s ease-in-out infinite}
.crm-loading-track[data-error=true] span{animation:none;width:100%;background:#a35838}
.crm-loading .crm-loading-label{margin:0;font-size:12px;line-height:1.7;letter-spacing:.02em;color:#64776a;max-width:100%;overflow-wrap:anywhere}
.crm-loading-actions{display:flex;justify-content:center;flex-wrap:wrap;gap:12px;margin-top:20px}
.crm-loading-actions button{border:1px solid #b7c9b8;border-radius:6px;padding:10px 18px;background:white;color:#203d33;cursor:pointer;font:inherit;font-size:13px}
@keyframes crm-loading-progress{0%{transform:translateX(-105%)}100%{transform:translateX(330%)}}
@media(prefers-reduced-motion:reduce){.crm-loading-track span{animation:none;width:100%;opacity:.65}}
body:has(> #root > .crm-loading){margin:0;background:#f5f7f3}

/* Quick loads finish before the branded content appears. Never delay the app itself. */
.crm-loading-content{animation:crm-loading-reveal .18s ease-out 1.2s both}
.crm-loading-content[data-error=true]{animation:none}
@keyframes crm-loading-reveal{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.crm-loading-content{animation-duration:0s}}
