/* MindSpace live integration layer — keeps the uploaded design intact. */
body.mindspace-live-loading .app{visibility:hidden}
.mindspace-live-loader{position:fixed;inset:0;z-index:10000;display:grid;place-items:center;background:linear-gradient(180deg,#f8fbff,#f2f8ff)}
.mindspace-live-loader-box{display:grid;justify-items:center;gap:14px;color:#527092;font:600 12px/1.4 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}
.mindspace-live-loader-orb{width:62px;height:62px;border-radius:50%;background:radial-gradient(circle at 36% 32%,#fff 0 7%,#9bd1ff 12%,#52a8ff 40%,#1976f3 68%,#9bd1ff 100%);box-shadow:0 18px 46px rgba(25,118,243,.25);animation:liveBoot 1.7s ease-in-out infinite}
@keyframes liveBoot{50%{transform:scale(1.07);box-shadow:0 22px 54px rgba(25,118,243,.32)}}
.mindspace-auth{position:fixed;inset:0;z-index:10001;display:grid;place-items:center;padding:20px;background:radial-gradient(70rem 40rem at 80% -10%,rgba(104,178,255,.18),transparent 60%),linear-gradient(180deg,#f8fbff,#f2f8ff)}
.mindspace-auth-card{width:min(430px,100%);padding:28px;border:1px solid #dce9f7;border-radius:28px;background:rgba(255,255,255,.92);box-shadow:0 28px 80px rgba(44,97,161,.15);backdrop-filter:blur(20px)}
.mindspace-auth-brand{display:flex;align-items:center;gap:12px;margin-bottom:26px}.mindspace-auth-mark{width:38px;height:38px;border-radius:50%;background:conic-gradient(from 210deg,#1976f3,#9bd1ff,#1976f3);position:relative}.mindspace-auth-mark:after{content:"";position:absolute;inset:8px;border-radius:50%;background:#fff}
.mindspace-auth h1{margin:0;font-size:28px;letter-spacing:-.04em;color:#10233f}.mindspace-auth p{margin:8px 0 20px;color:#7184a2;font-size:11px;line-height:1.6}
.mindspace-auth-form{display:grid;gap:12px}.mindspace-auth-field{display:grid;gap:6px}.mindspace-auth-field span{font-size:10px;font-weight:700;color:#607794}.mindspace-auth-field input{height:44px;border:1px solid #d5e3f4;border-radius:13px;background:#fff;padding:0 13px;outline:none}.mindspace-auth-field input:focus{border-color:#9bd1ff;box-shadow:0 0 0 4px rgba(25,118,243,.10)}
.mindspace-auth-submit{height:44px;border:0;border-radius:13px;background:linear-gradient(135deg,#1976f3,#52a8ff);color:#fff;font-weight:800;box-shadow:0 9px 24px rgba(25,118,243,.20)}
.mindspace-auth-error{min-height:17px;color:#b14c5d;font-size:10px}
.state-demo{display:none!important}
.live-only-hidden{display:none!important}
body[data-live-background="1"] .ambient{background-size:cover!important;background-position:center top!important;background-repeat:no-repeat!important}
@media(max-width:720px){body[data-live-background="1"] .ambient{background-position:56% top!important}.mindspace-auth-card{padding:22px;border-radius:22px}}

.voice-fab,#voice-dialog{display:none!important}
@media(max-width:980px){.shell{padding-bottom:92px}}

/* Custom dashboard background: one real photo layer + one soft translucent overlay.
   The old blue ambient blobs are disabled so the uploaded image is not double-tinted. */
body[data-live-background="1"]{
  background:#f7faff;
  --surface:rgba(255,255,255,.78);
  --surface-soft:rgba(248,251,255,.76);
}
body[data-live-background="1"] .ambient{
  background-color:#f7faff!important;
  background-size:cover!important;
  background-position:center top!important;
  background-repeat:no-repeat!important;
}
body[data-live-background="1"] .ambient::before{
  inset:0!important;
  width:auto!important;
  height:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  left:auto!important;
  border-radius:0!important;
  filter:none!important;
  opacity:1!important;
  animation:none!important;
  background:linear-gradient(180deg,rgba(249,252,255,.18) 0%,rgba(246,250,255,.22) 46%,rgba(239,247,255,.30) 100%)!important;
}
body[data-live-background="1"] .ambient::after{
  inset:0!important;
  width:auto!important;
  height:auto!important;
  right:auto!important;
  top:auto!important;
  bottom:auto!important;
  left:auto!important;
  border-radius:0!important;
  filter:none!important;
  opacity:1!important;
  animation:none!important;
  background:radial-gradient(70rem 42rem at 82% 4%,rgba(72,151,240,.07),transparent 68%)!important;
}
body[data-live-background="1"] .sidebar,
body[data-live-background="1"] .topbar,
body[data-live-background="1"] .mobile-nav{
  background:rgba(255,255,255,.72)!important;
  backdrop-filter:blur(20px) saturate(1.08)!important;
  -webkit-backdrop-filter:blur(20px) saturate(1.08)!important;
}
body[data-live-background="1"] .card{
  background:rgba(255,255,255,.79)!important;
  backdrop-filter:blur(18px) saturate(1.06);
  -webkit-backdrop-filter:blur(18px) saturate(1.06);
}
body[data-live-background="1"] .today-card,
body[data-live-background="1"] .graph-card,
body[data-live-background="1"] .brain-core-card,
body[data-live-background="1"] .full-graph-card{
  background:rgba(255,255,255,.76)!important;
}
@media(max-width:720px){
  body[data-live-background="1"] .ambient{background-position:56% top!important}
  body[data-live-background="1"] .card{background:rgba(255,255,255,.82)!important}
}
