/* Sign-in, setup, demo and connection UI for the hosted app */
body.shell-open .app, body.shell-open .bottom-nav, body.shell-open .mobile-header, body.shell-open .mobile-menu, body.shell-open .demo-bar, body.shell-open .connect-bar { display: none !important; }
.shell-screen { position: fixed; inset: 0; z-index: 200; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 16px 40px; background: radial-gradient(1200px 600px at 10% -10%, #dcebf8 0%, transparent 60%), linear-gradient(180deg, #f4faff, #eaf3fa); }
.shell-screen[hidden] { display: none; }
.shell-card { width: min(440px, 100%); background: #fff; border: 1px solid var(--ui-border); border-radius: 20px; box-shadow: 0 20px 60px rgba(11, 47, 87, .12); padding: 30px 26px 24px; }
.shell-card.shell-wide { width: min(720px, 100%); }
.shell-center { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px; color: var(--muted); font-size: 14px; }
.spinner.big { width: 34px; height: 34px; border-width: 3px; }
.shell-logo { display: flex; justify-content: center; margin-bottom: 14px; }
.shell-title { margin: 0; font-size: 26px; letter-spacing: -.6px; color: #07172f; text-align: center; }
.shell-wide .shell-title, .shell-wide .shell-sub { text-align: left; }
.shell-sub { margin: 8px 0 18px; color: #526a88; font-size: 14px; line-height: 1.5; text-align: center; }
.shell-points { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 9px; }
.shell-points li { position: relative; padding-left: 26px; font-size: 14px; color: #243b53; }
.shell-points li::before { content: ""; position: absolute; left: 0; top: 2px; width: 16px; height: 16px; border-radius: 50%; background: #e7f6ec url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5' stroke='%2315803d' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat; }
.btn-google { width: 100%; display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 50px; border-radius: 12px; border: 1px solid #c9d4df; background: #fff; color: #1f2937; font-size: 15px; font-weight: 700; box-shadow: 0 2px 8px rgba(11, 47, 87, .08); }
.btn-google:hover { background: #f8fbfd; }
.btn-google:disabled { opacity: .7; }
.shell-demo { width: 100%; margin-top: 10px; min-height: 46px; font-size: 14px; }
.shell-error { margin-top: 14px; padding: 11px 13px; border-radius: 10px; background: #fff0ef; border: 1px solid #f3c2bd; color: #b42318; font-size: 13px; line-height: 1.45; }
.shell-error-text { margin-top: 10px; color: #b42318; font-size: 12.5px; line-height: 1.45; }
.shell-fine { margin: 18px 0 0; font-size: 11.5px; color: #6b7a8c; line-height: 1.5; text-align: center; }
.shell-fine a { color: #1c64a5; }
.shell-by { margin: 10px 0 0; font-size: 11px; color: #8a97a6; text-align: center; letter-spacing: .3px; }
.shell-status { margin-top: 12px; font-size: 13px; color: #315c5d; min-height: 18px; }

/* Sidebar brand: academy initials + name (replaces the old logo images) */
.brand { min-height: 0 !important; padding: 20px 16px !important; flex-direction: row !important; justify-content: flex-start !important; gap: 12px !important; }
.brand-badge { flex: 0 0 auto; width: 46px; height: 46px; border-radius: 13px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #fff; font-weight: 800; font-size: 17px; letter-spacing: .5px; }
.brand-copy { align-items: flex-start !important; }
.brand-title { font-weight: 800; font-size: 15px; color: #0b1d37; line-height: 1.2; overflow-wrap: anywhere; }
.brand-sub { text-align: left !important; margin-top: 3px !important; }

/* Connection + demo bars */
.connect-bar, .demo-bar { position: sticky; top: 0; z-index: 25; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 16px; font-size: 13px; }
.connect-bar { background: #fff4e5; border-bottom: 1px solid #f4d2a8; color: #7a4a05; }
.connect-bar[hidden] { display: none; }
.demo-bar { display: none; background: #eef4fb; border-bottom: 1px solid #d4e3f1; color: #24496b; }
body.is-demo .demo-bar { display: flex; }
.demo-actions { display: flex; gap: 8px; }
@media (min-width: 761px) { .connect-bar, .demo-bar { margin-left: 255px; } }
@media (max-width: 760px) {
  .connect-bar, .demo-bar { position: static; font-size: 12.5px; padding: 8px 14px; }
  .demo-actions { width: 100%; }
  .demo-actions .btn { flex: 1; }
  .shell-screen { padding-top: 4vh; }
  .shell-card { padding: 24px 18px 20px; border-radius: 18px; }
}
