/* Sign-in page and the live account menu. Uses the app's own fonts and colours (style.css). */

/* ---- sign-in page: brand at the top, one narrow centred column ---- */
.lg-page{min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;box-sizing:border-box;padding:20px 24px 24px;background:#fff}
.lg-brand{display:flex;align-items:center;gap:10px;font:800 17px/1 Manrope,sans-serif;letter-spacing:-.4px;color:#263044}
.lg-logo{width:32px;height:32px;flex:none;border-radius:10px;background:var(--blue,#3156da);color:#fff;font:800 17px/32px Manrope,sans-serif;text-align:center}
.lg-center{flex:1;display:flex;align-items:center;justify-content:center;padding:24px 0 12vh}
.lg-col{width:100%;max-width:320px;text-align:center}
.lg-title{margin:0 0 24px;font:700 28px/1.2 Manrope,sans-serif;letter-spacing:-.6px;color:#263044}
.lg-note{margin:0 0 16px;font-size:14px;line-height:1.5;color:#4a5468}
.lg-error{padding:10px 14px;border-radius:10px;background:#fdf1f1;color:#a12a2e;text-align:left}
.lg-busy{margin:0;min-height:46px;display:flex;align-items:center;justify-content:center;gap:10px;font-size:15px;color:var(--muted,#778092)}
.lg-busy::before,.lg-working::before{content:'';width:16px;height:16px;flex:none;border-radius:50%;border:2px solid currentColor;border-right-color:transparent;animation:lg-spin .8s linear infinite}
/* Sign-in methods stack here; further rows can be added without changing the layout. */
.lg-methods{display:flex;flex-direction:column;gap:10px}
.lg-btn{width:100%;height:46px;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 16px;box-sizing:border-box;border:1px solid #d6dbe6;border-radius:12px;background:#fff;color:#263044;font:500 15px 'DM Sans',sans-serif;cursor:pointer}
.lg-btn:hover{background:#f6f7fb}
.lg-btn:focus-visible{outline:3px solid rgba(49,86,218,.35);outline-offset:2px}
.lg-btn:disabled{cursor:default;color:var(--muted,#778092);background:#fff}
.lg-google:not(.lg-working)::before{content:'';width:18px;height:18px;flex:none;background:center/contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 48 48'%3E%3Cpath fill='%23EA4335' d='M24 9.5c3.5 0 6.6 1.2 9.1 3.6l6.8-6.8C35.8 2.4 30.3 0 24 0 14.6 0 6.5 5.4 2.6 13.2l7.9 6.2C12.4 13.6 17.7 9.5 24 9.5z'/%3E%3Cpath fill='%234285F4' d='M46.5 24.5c0-1.6-.1-3.1-.4-4.5H24v9h12.7c-.6 3-2.3 5.5-4.8 7.2l7.7 6c4.5-4.2 6.9-10.3 6.9-17.7z'/%3E%3Cpath fill='%23FBBC05' d='M10.5 28.6c-.5-1.5-.8-3-.8-4.600s.3-3.1.8-4.600l-7.900-6.200C.9 16.500 0 20.100 0 24s.9 7.500 2.600 10.800l7.900-6.200z'/%3E%3Cpath fill='%2334A853' d='M24 48c6.5 0 11.9-2.100 15.900-5.800l-7.700-6c-2.100 1.400-4.900 2.300-8.200 2.300-6.300 0-11.600-4.100-13.500-9.900l-7.900 6.200C6.500 42.600 14.600 48 24 48z'/%3E%3C/svg%3E")}
@keyframes lg-spin{to{transform:rotate(360deg)}}
@media (prefers-reduced-motion:reduce){.lg-busy::before,.lg-working::before{animation-duration:2.4s}}
@media (max-width:480px){.lg-page{padding:16px 20px 20px}.lg-title{font-size:25px}.lg-center{padding-bottom:16vh}}

/* ---- account trigger (the app's Profile button) and its menu ---- */
.live-trigger:not(.profile){display:inline-flex;align-items:center;gap:7px}
.live-avatar{width:22px;height:22px;flex:none;border-radius:50%;background:var(--blue,#3156da);color:#fff;font:700 11px/22px 'DM Sans',sans-serif;text-align:center}
.live-trigger-name{max-width:110px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-chevron{font-size:10px;color:var(--muted,#778092)}
.live-menu{position:fixed;z-index:1000;width:248px;max-width:calc(100vw - 16px);box-sizing:border-box;padding:6px;border:1px solid var(--line,#e8ebf2);border-radius:14px;background:#fff;box-shadow:0 12px 32px rgba(38,48,68,.14);font:14px 'DM Sans',sans-serif;color:#263044}
.live-menu-who{display:flex;flex-direction:column;gap:2px;padding:8px 10px 10px}
.live-menu-who b,.live-menu-who span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.live-menu-who span{font-size:13px;color:var(--muted,#778092)}
.live-menu-item{display:block;width:100%;padding:9px 10px;border:0;border-radius:8px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer}
.live-menu-item:hover,.live-menu-item:focus-visible{background:#f3f5fa;outline:none}
.live-menu-divider{height:1px;margin:6px 4px;background:var(--line,#e8ebf2)}
.live-menu-note{padding:8px 10px 4px;margin-top:4px;border-top:1px solid var(--line,#e8ebf2);font-size:11px;color:var(--muted,#778092)}

/* ---- cloud save status (Slice 2) and the conflict notice ---- */
.live-save{position:fixed;right:16px;bottom:16px;z-index:900;padding:6px 12px;border-radius:999px;border:1px solid var(--line,#e8ebf2);background:#fff;color:var(--muted,#778092);font:500 12px 'DM Sans',sans-serif;box-shadow:0 4px 14px rgba(38,48,68,.08);cursor:default}
.live-save-pending,.live-save-saving{color:#4a5468}
.live-save-error{border-color:#f1c4c6;background:#fdf1f1;color:#a12a2e}
.live-save-conflict{border-color:#f1c4c6;background:#fdf1f1;color:#a12a2e;cursor:pointer}
.live-conflict{position:fixed;inset:0;z-index:1100;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(38,48,68,.35)}
.live-conflict-box{width:100%;max-width:400px;box-sizing:border-box;padding:24px;border-radius:16px;background:#fff;box-shadow:0 16px 40px rgba(38,48,68,.2);font:14px/1.5 'DM Sans',sans-serif;color:#263044}
.live-conflict-box h2{margin:0 0 8px;font:700 18px/1.3 Manrope,sans-serif}
.live-conflict-box p{margin:0 0 18px;color:#4a5468}
.live-conflict-box button{height:40px;padding:0 16px;border-radius:10px;font:600 14px 'DM Sans',sans-serif;cursor:pointer}
.live-conflict-reload{border:1px solid var(--blue,#3156da);background:var(--blue,#3156da);color:#fff}
.live-conflict-later{margin-left:8px;border:1px solid var(--line,#e8ebf2);background:#fff;color:#263044}

/* ---- form error shown inside an open modal (Live mode; the page toast sits under the backdrop) ---- */
.form-error{margin:14px 0 0;padding:10px 14px;border-radius:10px;background:#fdf1f1;color:#a12a2e;font:14px/1.45 'DM Sans',sans-serif}

/* ---- Slice 4A: no prototype preview badge in Live mode; account trigger in a project's top bar ---- */
#app .demo{display:none!important}
.live-top-account{flex:none}
@media (max-width:480px){.live-top-account .live-trigger-name{display:none}}

/* ---- Slice 4B: Export my Workspace ---- */
.live-export-status{min-height:1.5em;font-size:13px}
.live-export-ok{color:#1f6b3a}
.live-export-error{color:#a12a2e}
.live-export button:disabled{opacity:.6;cursor:default}
