body { overflow: hidden; }
.login-dialog .close-login:focus-visible { outline: none; }
.site-header {
  background: #fff;
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr) minmax(0, 1fr);
  gap: 16px;
  min-height: 72px;
  padding: max(8px, env(safe-area-inset-top)) 28px 8px;
}
.site-header h1 {
  min-width: 0;
  margin: 0;
  font-size: 22px;
  line-height: 1.08;
  text-align: center;
  white-space: normal;
  overflow-wrap: anywhere;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}
.workspace-heading {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.workspace-home {
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 1px solid #e5e5e5;
  border-radius: 6px;
  background: #fff;
  color: var(--gc-red);
  cursor: pointer;
}
.workspace-home:hover { background: #fee7e8; }
.workspace-home:focus-visible { outline: 3px solid var(--gc-red); outline-offset: 3px; }
.site-header .site-logo { height: 48px; }
.site-header .header-actions { gap: 16px; max-width: 100%; }
.site-header .member-profile { min-width: 0; }
.site-header .profile-toggle { max-width: 100%; }
.site-header .member-name { min-width: 0; max-width: 200px; font-size: 14px; }
.site-header .member-avatar, .site-header .member-initials {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  max-width: 32px;
  max-height: 32px;
  border-radius: 50%;
}
/* Use the shared Score Center language button, including its EN/FR backgrounds. */
.site-header .language-toggle { flex: 0 0 32px; }
@media (max-width: 767px) {
  .site-header {
    grid-template-columns: 88px minmax(0, 1fr) 88px;
    gap: 8px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .site-header h1 { font-size: clamp(15px, 4vw, 20px); text-align: center; }
  .site-header .site-logo { height: 40px; }
  .site-header .header-actions { gap: 12px; }
  /* Preserve the name for assistive technology without taking up mobile space. */
  .site-header .member-name {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
.entry-content { position: relative; flex: 1 1 0; min-height: 0; background: #fff; }
.entry-content > iframe { display: block; width: 100%; height: 100%; border: 0; }
.entry-status { position: absolute; z-index: 2; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; background: #fff; }
.entry-status p { max-width: 480px; margin: 0; line-height: 1.5; }
.entry-retry { border: 0; border-radius: 6px; padding: 9px 14px; background: var(--gc-red); color: #fff; font: 700 14px Arial, sans-serif; cursor: pointer; }
.entry-retry:focus-visible { outline: 3px solid var(--gc-red); outline-offset: 3px; }
