/* Scoped to account entry;
   the signed-in planner keeps its existing tokens. */
body.signed-out{background:var(--brand-canvas);
  color:var(--brand-ink);
  font-family:var(--brand-body)}
body.signed-out #app{display:block;
  max-width:none;
  margin:0;
  min-height:100svh;
  border:0;
  border-radius:0;
  box-shadow:none}
body.signed-out .workspace-shell{display:block;
  border:0;
  border-radius:0;
  box-shadow:none;
  background:transparent;
  min-height:100svh}
body.signed-out .sidebar-shell,body.signed-out .topbar,body.signed-out #dayChips,body.signed-out #accountMode{display:none}
body.signed-out #main{padding:0;
  max-width:none;
  margin:0;
  min-height:100svh}
.auth-stage{display:grid;
  grid-template-columns:1fr 1fr;
  min-height:100svh;
  font-family:var(--brand-body);
  color:var(--brand-ink)}
.auth-story{position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#143740;
  color:#fff;
  padding:42px 50px;
  display:flex;
  flex-direction:column;
  min-height:100svh}
.auth-story::before{content:'';
  position:absolute;
  inset:0;
  background:radial-gradient(circle at 20% 90%,#24758f24,transparent 55%);
  z-index:-1}
.auth-story::after{content:'';
  position:absolute;
  width:380px;
  height:380px;
  border:1px solid #ffffff08;
  border-radius:50%;
  right:-230px;
  top:21%;
  z-index:-1}
.auth-story-copy{margin-block:auto;
  padding-block:65px;
  max-width:460px}
.auth-story-copy>.brand-label{color:#B9DAD9;
  font-size:10px;
  margin-bottom:25px}
.auth-story h2{font:400 clamp(36px,4.1vw,59px)/1.13 var(--brand-display);
  letter-spacing:-.025em;
  margin:0}
.auth-story h2>span{color:#8DCEE0}
.auth-story-copy>p:not(.brand-label){font-size:15px;
  line-height:1.8;
  color:#BDCECA;
  max-width:350px;
  margin:25px 0 0}
.auth-story-note{margin-top:35px;
  padding-top:22px;
  border-top:1px solid #3c5e63;
  display:flex;
  gap:12px;
  color:#BDCECA;
  font-size:12px;
  max-width:350px;
  line-height:1.8}
.auth-story-note>span{display:grid;
  place-items:center;
  flex:none;
  width:28px;
  height:28px;
  border:1px solid #527f88;
  border-radius:50%;
  color:#B9DAD9}
.auth-story footer{display:flex;
  gap:18px;
  align-items:center;
  font-size:11px;
  color:#BDCECA}
.auth-story footer a{min-height:44px;
  display:inline-flex;
  align-items:center;
  text-decoration:none}
.auth-story footer a:hover{color:white;
  text-decoration:underline}
.auth-content{display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:center;
  min-width:0;
  padding:45px 50px;
  background:var(--brand-canvas)}
.auth-content-top{display:flex;
  align-items:center;
  justify-content:space-between;
  gap:15px;
  width:min(100%,420px);
  margin-bottom:23px}
.auth-content-top>.brand-label{font-size:9px;
  letter-spacing:.08em;
  color:var(--brand-muted)}
.auth-theme-toggle{display:inline-flex;
  align-items:center;
  gap:8px;
  font:500 11px var(--brand-body);
  background:var(--brand-card);
  color:var(--brand-ink);
  border:1px solid var(--brand-line);
  border-radius:8px;
  min-height:44px;
  padding:9px 12px;
  cursor:pointer}
.auth-theme-toggle:hover{border-color:var(--brand-link)}
#authFormMount{width:min(100%,420px)}
.auth-card{background:var(--brand-card);
  border:1px solid var(--brand-line);
  border-radius:16px;
  padding:30px;
  box-shadow:0 2px 4px #14374003}
.auth-card h1{font:650 25px/1.3 var(--brand-body);
  letter-spacing:-.8px;
  margin:0;
  color:var(--brand-ink)}
.auth-card .auth-subtitle{color:var(--brand-muted);
  font-size:13px;
  line-height:1.65;
  margin:9px 0 27px}
.auth-card .field{margin:0 0 20px}
.auth-card .field>label{display:block;
  font-size:12px;
  font-weight:600;
  color:var(--brand-ink);
  margin:0 0 8px}
.auth-card input[type=email],.auth-card input[type=password],.auth-card input[type=text]{width:100%;
  min-height:48px;
  border:1px solid var(--brand-line);
  border-radius:9px;
  background:var(--brand-card);
  color:var(--brand-ink);
  padding:12px;
  font:400 14px/1.4 var(--brand-body);
  box-shadow:none}
.auth-card input::placeholder{color:var(--brand-muted);
  opacity:.8}
.auth-card input:focus{outline:3px solid color-mix(in srgb,var(--brand-blue) 30%,transparent);
  outline-offset:2px;
  border-color:var(--brand-blue)}
.auth-card .helptext{font:400 11px/1.7 var(--brand-body);
  color:var(--brand-muted);
  margin:7px 0 0}
.auth-password-wrap{position:relative}
.auth-card .auth-password-wrap>input{padding-right:66px}
.auth-password-toggle{position:absolute;
  right:5px;
  top:3px;
  bottom:3px;
  min-width:54px;
  min-height:42px;
  padding:8px;
  border:0;
  border-radius:6px;
  background:transparent;
  color:var(--brand-link);
  font:600 11px var(--brand-body);
  cursor:pointer}
.auth-password-toggle:hover{background:var(--brand-wash)}
.auth-remember{display:flex;
  gap:9px;
  align-items:center;
  font-size:12px;
  color:var(--brand-ink);
  line-height:1.6;
  min-height:44px;
  margin-top:-6px;
  cursor:pointer}
.auth-remember input{accent-color:var(--brand-blue);
  width:16px;
  height:16px;
  margin:0;
  flex:none}
.auth-card .shared-device-note{margin:0 0 18px;
  font-size:10px;
  line-height:1.65;
  color:var(--brand-muted)}
.auth-card .auth-primary{width:100%;
  display:flex;
  align-items:center;
  justify-content:center;
  min-height:48px;
  background:var(--brand-action);
  border:0;
  border-radius:9px;
  color:#fff;
  font:600 13px var(--brand-body);
  margin-top:18px;
  box-shadow:0 4px 12px #24758f18;
  cursor:pointer;
  transition:transform .2s,box-shadow .2s}
.auth-card .auth-primary:hover{transform:translateY(-1px);
  box-shadow:0 6px 18px #24758f30}
.auth-card button:disabled{opacity:.6;
  cursor:wait;
  transform:none}
.auth-method-divider{display:flex;
  align-items:center;
  gap:12px;
  margin:18px 0;
  color:var(--brand-muted);
  font:500 12px/1.5 var(--brand-body);
  text-align:center}
.auth-method-divider::before,.auth-method-divider::after{content:"";
  flex:1;
  border-block-start:1px solid var(--brand-line)}
.auth-google-button{display:flex;
  align-items:center;
  justify-content:center;
  gap:12px;
  width:100%;
  min-height:48px;
  padding:10px 14px;
  border:1px solid #747775;
  border-radius:8px;
  background:#fff;
  color:#1f1f1f;
  font:600 14px/1.25 var(--brand-body);
  cursor:pointer}
.auth-google-button svg{display:block;flex:none}
.auth-google-button:hover{background:#f1f5fb}
.auth-google-button:focus-visible{outline:3px solid var(--brand-link);outline-offset:3px}
.auth-card .google-terms-field>.auth-remember{display:flex;margin:0}
.auth-card .google-terms-field a{text-decoration:underline}
.auth-card .account-error:not(:empty){font:500 12px/1.7 var(--brand-body);
  margin:14px 0}
.auth-card #accountMessage:not(:empty){font-size:12px;
  line-height:1.75;
  padding:12px;
  border:1px solid var(--brand-line);
  border-radius:9px;
  background:var(--brand-wash);
  color:var(--brand-ink);
  margin-top:12px}
.auth-card .auth-links{display:flex;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-top:10px}
.auth-card .auth-text-button{display:inline-flex;
  align-items:center;
  justify-content:center;
  min-height:44px;
  padding:5px 0;
  border:0;
  background:transparent;
  color:var(--brand-link);
  font:500 11px var(--brand-body);
  cursor:pointer;
  text-decoration:none;
  line-height:1.5}
.auth-card .auth-text-button:hover{text-decoration:underline;
  text-underline-offset:3px}
.auth-card .auth-switch{font-size:12px;
  text-align:center;
  color:var(--brand-muted);
  border-top:1px solid var(--brand-line);
  padding-top:14px;
  margin:18px 0 0}
.auth-card .auth-switch .auth-text-button{font-size:12px;
  margin-left:4px}
.auth-card .auth-email-note{font-size:10px;
  line-height:1.7;
  color:var(--brand-muted);
  margin:17px 0 0}
.auth-page-footer{width:min(100%,420px);
  display:flex;
  justify-content:center;
  align-items:center;
  gap:20px;
  flex-wrap:wrap;
  margin-top:14px}
.auth-page-footer a,.auth-page-footer button{font:400 11px var(--brand-body);
  color:var(--brand-muted);
  border:0;
  background:none;
  text-decoration:none;
  padding:10px 0;
  min-height:44px;
  display:inline-flex;
  align-items:center;
  cursor:pointer}
.auth-page-footer a:hover,.auth-page-footer button:hover{color:var(--brand-link);
  text-decoration:underline}
.auth-stage :focus-visible{outline:3px solid var(--brand-link);
  outline-offset:3px}
.auth-mobile-brand{display:none}
@media(max-width:1000px){.auth-story{padding:32px}
.auth-story h2{font-size:43px}
.auth-content{padding:32px}
.auth-card{padding:27px}
.auth-story footer{gap:13px;
  font-size:10px}
}
@media(max-width:760px){.auth-stage{grid-template-columns:1fr}
.auth-story{display:none}
.auth-content{min-height:100svh;
  padding:24px}
.auth-mobile-brand{display:inline-flex;
  margin-bottom:28px;
  align-self:flex-start}
.auth-card{padding:28px}
.auth-content-top{margin-bottom:18px}
.auth-content{justify-content:flex-start}
.auth-content-top>.brand-label{font-size:9px}
.auth-card h1{font-size:25px}
.auth-page-footer{margin-top:12px}
}
@media(max-width:380px){.auth-content{padding:20px 16px}
.auth-card{padding:24px 20px}
.auth-card h1{font-size:23px}
.auth-mobile-brand{margin-bottom:24px}
.auth-content-top{gap:8px}
.auth-content-top>.brand-label{font-size:8px;
  letter-spacing:.04em}
.auth-theme-toggle{font-size:10px;
  padding:8px}
}
@media(prefers-reduced-motion:reduce){.auth-stage *{animation:none!important;
  transition:none!important}
}

body.signed-out{padding:0}
.auth-story footer a{color:inherit}
.auth-card .auth-email-note{font-size:12px}
.auth-card .shared-device-note{font-size:12px}

body.signed-out #app{width:100%;padding:0}
.auth-password-toggle{top:2px;bottom:2px;min-height:44px}

/* Present from the HTML response, before deferred JavaScript or account checks. */
body.app-booting{background:var(--brand-canvas);padding:0}
body.app-booting #app,body.app-booting #modalRoot{display:none}
.app-boot{display:none}
body.app-booting .app-boot{display:flex;min-height:100svh;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:var(--brand-muted);font:14px/1.6 var(--brand-body)}
.app-boot-mark{width:64px;height:64px}

:root[data-theme='dark'] .auth-story{background:var(--brand-card)}
:root[data-theme='dark'] .auth-card{background:var(--brand-raised)}
:root[data-theme='dark'] .auth-card .auth-primary.btn-primary{background:var(--brand-action);color:#fff}
/* Keep keyboard controls and browser handoff readable without changing auth. */
.auth-card input{font-size:16px;scroll-margin-block:100px}
.auth-card h1:focus{outline:2px solid var(--brand-link);outline-offset:4px}
