/* Classynt full-screen portal template */
html{-webkit-text-size-adjust:100%}
body.classynt-fullscreen{margin:0;background:#f4f7fb;color:#0f172a;font-family:Inter,system-ui,-apple-system,"Segoe UI",sans-serif;min-height:100vh;min-height:100dvh;overflow-x:hidden}
body.classynt-fullscreen *,body.classynt-fullscreen *::before,body.classynt-fullscreen *::after{box-sizing:border-box}
body.classynt-portal-page--parent{--shell-accent:#c2410c}
body.classynt-portal-page--teacher{--shell-accent:#1d4ed8}
body.classynt-portal-page--student{--shell-accent:#2563eb}

/* Top bar */
.classynt-topbar{position:sticky;top:0;z-index:100;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px max(20px,env(safe-area-inset-right)) 10px max(20px,env(safe-area-inset-left));background:rgba(255,255,255,.92);backdrop-filter:saturate(1.4) blur(10px);-webkit-backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid #e2e8f0}
.classynt-topbar-btn{display:inline-flex;align-items:center;gap:6px;min-height:44px;padding:0 16px;border:1px solid #d5dde8;border-radius:999px;background:#fff;color:#0f172a;font-size:14px;font-weight:600;line-height:1;text-decoration:none;transition:border-color .15s,color .15s,transform .15s;-webkit-tap-highlight-color:transparent}
.classynt-topbar-btn:hover,.classynt-topbar-btn:focus-visible{border-color:var(--shell-accent,#2563eb);color:var(--shell-accent,#2563eb);outline:none}
.classynt-topbar-btn:active{transform:scale(.97)}
.classynt-topbar-title{display:flex;flex-direction:column;align-items:center;min-width:0;text-align:center;line-height:1.2}
.classynt-topbar-title strong{max-width:46vw;font-size:15px;line-height:1.25;color:#0f172a;overflow-wrap:anywhere;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.classynt-topbar-title small{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:var(--shell-accent,#2563eb)}
@media(max-width:520px){
  .classynt-topbar{padding-top:8px;padding-bottom:8px}
  .classynt-topbar-btn{padding:0 12px}
  .classynt-topbar-home span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .classynt-topbar-home{padding:0 12px;width:44px;justify-content:center}
  .classynt-topbar-title strong{max-width:44vw;font-size:14px}
  .classynt-topbar-title{padding:0 4px}
}

/* Page body */
.classynt-shell-main{display:block;width:100%;padding:24px 0 max(40px,env(safe-area-inset-bottom))}
.classynt-shell-main>*{max-width:none}
.classynt-shell-main #classynt-portal-root,.classynt-shell-main .classynt-teacher-shell,.classynt-shell-main .classynt-parent-portal{margin-top:0}
/* The top bar replaces the in-page back link. */
body.classynt-fullscreen .classynt-portal-back,body.classynt-fullscreen .classynt-portal-signout{display:none}

/* Sign-in screens fill the whole screen, with the bar floating over them. */
body.classynt-fullscreen:has(.classynt-login-stage) .classynt-topbar{position:fixed;left:0;right:0;background:transparent;border-bottom:0;backdrop-filter:none;-webkit-backdrop-filter:none}
body.classynt-fullscreen:has(.classynt-login-stage) .classynt-topbar-title{display:none}
body.classynt-fullscreen:has(.classynt-login-stage) .classynt-topbar-btn{background:rgba(255,255,255,.92)}
body.classynt-fullscreen:has(.classynt-login-stage) .classynt-shell-main{padding:0}
body.classynt-fullscreen .classynt-shell-main #classynt-portal-root:has(.classynt-login-stage),
body.classynt-fullscreen .classynt-shell-main .classynt-teacher-shell:has(.classynt-login-stage),
body.classynt-fullscreen .classynt-shell-main .classynt-parent-portal:has(.classynt-login-stage){width:100%;max-width:none;margin:0;padding:0}
body.classynt-fullscreen .classynt-login-stage{padding:0!important;min-height:100vh;min-height:100dvh;max-width:none!important;width:100%;margin:0!important;display:block}
body.classynt-fullscreen .classynt-login-stage .classynt-login-card{width:100%;max-width:none;min-height:100vh;min-height:100dvh;border-radius:0;border:0;box-shadow:none;margin:0}
body.classynt-fullscreen .classynt-login-visual-badge{top:78px}
@media(max-width:760px){
  /* The floating top bar is about 64px tall; the badge sits below it in normal flow, so it can never collide with the headline. */
  body.classynt-fullscreen .classynt-login-stage .classynt-login-visual{padding-top:84px}
  body.classynt-fullscreen .classynt-login-stage .classynt-login-card{min-height:100dvh}
  body.classynt-fullscreen .classynt-login-visual-badge{top:auto}
}
body.classynt-fullscreen .classynt-portal-home-link a{display:inline-flex;align-items:center;min-height:44px;padding:0 18px;border:1px solid #cbd5e1;border-radius:999px;background:#fff;color:#0f172a;font-weight:600;text-decoration:none}
body.classynt-fullscreen:not(:has(.classynt-login-stage)) .classynt-shell-main{padding-left:max(20px,env(safe-area-inset-left));padding-right:max(20px,env(safe-area-inset-right))}
body.classynt-fullscreen .classynt-result-toolbar{padding:14px 16px;border:1px solid #e2e8f0;border-radius:16px;background:#fff;box-shadow:0 1px 2px rgba(15,23,42,.04);flex-wrap:wrap}

/* List tables (assignments, exams, past questions) become labelled cards on phones. */
@media(max-width:640px){
  body.classynt-fullscreen .classynt-assign-tablewrap{overflow:visible!important;border:0!important;border-radius:0!important}
  body.classynt-fullscreen .classynt-assign-table{display:block;min-width:0;width:100%}
  body.classynt-fullscreen .classynt-assign-table thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  body.classynt-fullscreen .classynt-assign-table tbody{display:grid;gap:12px}
  body.classynt-fullscreen .classynt-assign-table tr{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#fff}
  body.classynt-fullscreen .classynt-assign-table td{display:block;min-width:0!important;padding:0!important;border:0!important;white-space:normal!important;overflow-wrap:anywhere}
  body.classynt-fullscreen .classynt-assign-table td:first-child,body.classynt-fullscreen .classynt-assign-table td:last-child{grid-column:1/-1}
  body.classynt-fullscreen .classynt-assign-table td[data-label]:before{content:attr(data-label);display:block;margin-bottom:2px;font-size:11px;font-weight:750;letter-spacing:.06em;text-transform:uppercase;color:#64748b}
  body.classynt-fullscreen .classynt-assign-table td:first-child:before,body.classynt-fullscreen .classynt-assign-table td:last-child:before{display:none}
}
