/* Cross-document snapshots cover fixed navigation and can swallow a rapid
   follow-up click. Keep normal document navigation; dialog motion is separate. */
@view-transition{navigation:none}
/* Signed-out documents remain independent of the workspace shell. */
body.cc-app.cc-anonymous { background:var(--dark-accent-surface, #f1f5fb); color:var(--dark-text, #0f172a); }
body.cc-app.cc-anonymous>.cc-sidebar, body.cc-app.cc-anonymous .cc-topbar, body.cc-app.cc-anonymous [data-console-mobile] { display:none!important; }
body.cc-app.cc-anonymous>.cc-workspace { margin-left:0!important; background:var(--dark-accent-surface, #f1f5fb); min-height:100dvh; }
body.cc-app.cc-anonymous .cc-main { width:100%; max-width:528px!important; padding:48px 24px!important; margin:0 auto; }
body.cc-app.cc-anonymous .sc-panel { margin:0; padding:32px; border:1px solid var(--dark-border, #d5dbe5); border-radius:18px; background:var(--dark-panel, #ffffff); box-shadow:none; }
body.cc-app.cc-anonymous .sc-auth-brand { display:flex; align-items:center; gap:10px; margin-bottom:28px; color:var(--dark-text, #0f172a); font-size:21px; font-weight:750; text-decoration:none; }
body.cc-app.cc-anonymous .sc-auth-brand img { width:36px; height:36px; }
body.cc-app.cc-anonymous .sc-panel>h2 { color:var(--dark-text, #0f172a); font-size:25px; margin:0 0 28px; }
body.cc-app.cc-anonymous .sc-form { display:grid; gap:20px; }
body.cc-app.cc-anonymous .sc-form label { display:grid; gap:8px; color:var(--dark-text, #0f172a); font-size:13px; }
body.cc-app.cc-anonymous .sc-form input { width:100%; min-width:0; min-height:48px; font-size:16px; border:1.5px solid var(--dark-border, #d5dbe5); border-radius:12px; background:var(--dark-panel, #fff); }
body.cc-app.cc-anonymous .sc-form .button { width:100%; min-height:48px!important; text-align:center; }
body.cc-app.cc-anonymous .sc-form .button--primary { background:var(--dark-accent-action, #2563eb)!important; border-color:var(--dark-accent, #2563eb)!important; color:var(--dark-text, #fff)!important; border-radius:12px!important; min-height:48px!important; }
body.cc-app.cc-anonymous .sc-panel>.sc-help { margin:20px 0 0; text-align:center; font-size:12px; color:var(--dark-muted, #64748b); }
body.cc-app.cc-anonymous .sc-panel>.sc-notice { margin-top:20px; }
body.cc-app.cc-anonymous [data-console-nav],body.cc-app.cc-anonymous [data-console-footer] { visibility:hidden!important; }
@media(max-width:600px){body.cc-app.cc-anonymous .cc-main{padding:24px 16px!important}body.cc-app.cc-anonymous .sc-panel{padding:24px 20px}}
@media(prefers-reduced-motion:reduce){::view-transition-group(*),::view-transition-old(*),::view-transition-new(*){animation:none!important}}

/* Match the eventual workspace geometry from the first document paint. These
   are fixed public links only; identity and controls still require session. */
body.cc-app:not(.cc-anonymous) .cc-main { min-height:calc(100dvh - 66px); }
body.cc-app .cc-inline-loading { margin:20px 0; color:var(--dark-muted, #717680); font-size:13px; }
@media(max-width:760px){body.cc-app:not(.cc-anonymous) .cc-main{min-height:calc(100dvh - 56px)}}

/* A cold document has no verified identity. This state is separate from the
   navigation that retains an already verified, inert workspace. */
body.cc-app.cc-session-unknown { background:var(--dark-panel, #f5f7fb); color:var(--dark-text, #0f172a); }
body.cc-app.cc-session-unknown .cc-sidebar, body.cc-app.cc-session-unknown .cc-topbar, body.cc-app.cc-session-unknown .cc-mobile-nav { display:none!important; }
body.cc-app.cc-session-unknown>.cc-workspace { margin-left:0!important; background:var(--dark-panel, #f5f7fb); }
body.cc-app.cc-session-unknown .cc-main { width:100%; max-width:528px!important; padding:48px 24px!important; margin:0 auto; }
body.cc-app.cc-session-checking .cc-main { visibility:hidden; }
@media(max-width:600px){body.cc-app.cc-session-unknown .cc-main{padding:24px 16px!important}}

/* The marked loading island contains fixed public text and a native reload link.
   Old account DOM stays hidden until its fresh session context is verified. */
body.cc-app.cc-session-checking .cc-main [data-public-loading] { visibility:visible; }
/* Loading island: short label, skeleton blocks, retry link only if it drags on. */
.cc-initial-loading { padding:24px 0; }
.cc-initial-loading h1 { margin:0 0 6px; }
.cc-initial-loading [role="status"] { margin:0; color:var(--dark-muted, #64748b); font-size:14px; }
.cc-initial-loading [role="alert"] { margin:0; color:var(--dark-danger, #b42318); line-height:1.7; }
.cc-initial-loading [role="status"]::after { content:""; display:block; height:132px; margin-top:20px; border-radius:16px;
  background:linear-gradient(90deg,rgba(37,99,235,.06) 0,rgba(37,99,235,.13) 40%,rgba(37,99,235,.06) 80%) 0 0/200% 100%;
  -webkit-mask:linear-gradient(#000 0 0) left top/100% 72px no-repeat,linear-gradient(#000 0 0) left bottom/62% 44px no-repeat;
          mask:linear-gradient(#000 0 0) left top/100% 72px no-repeat,linear-gradient(#000 0 0) left bottom/62% 44px no-repeat;
  animation:cc-shimmer 1.4s ease-in-out infinite; }
.cc-initial-loading a { display:inline-block; margin-top:14px; color:var(--dark-accent, #2563eb); text-decoration:underline; }
.cc-initial-loading [role="status"] ~ a { opacity:0; pointer-events:none; animation:cc-reveal .3s ease 8s forwards; }
@keyframes cc-shimmer { from { background-position:100% 0; } to { background-position:-100% 0; } }
@keyframes cc-reveal { to { opacity:1; pointer-events:auto; } }
@media (prefers-reduced-motion:reduce) { .cc-initial-loading [role="status"]::after { animation:none; } .cc-initial-loading [role="status"] ~ a { animation-duration:0s; } }
