.launcherSymbol {
  display: inline-block; flex: 0 0 auto; width: 22px; height: 22px; background: currentColor;
  mask: var(--launcher-icon) center / contain no-repeat;
  -webkit-mask: var(--launcher-icon) center / contain no-repeat;
}
.topbar, body:has(#practicalForm) .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 16px; }
.topbar .topbarTitle { display: flex; align-items: center; gap: 12px; min-width: 0; }
.topbarAppIcon { width: 48px; height: 48px; flex: 0 0 48px; border-radius: 8px; }
.topbar .topbarTitle h1 { font-size: 20px; line-height: 1.4; margin: 0; }
.topbar .topbarActions, body:has(#practicalForm) .topbarActions { display: flex; width: auto; flex-direction: row; flex-wrap: nowrap; justify-content: flex-end; gap: 8px; grid-column: 2; grid-row: 1; }
.topbar .topbarSession { grid-column: 1 / -1; background: #f5f4f6; padding: 10px 14px; border-radius: 6px; }
.topbar .topbarSession:has(#userBadge[hidden]) { display: none; }
.topbar .topbarSession .statusPill { background: transparent; border: 0; color: var(--text); padding: 0; font-weight: 600; white-space: normal; }
.topbar #managementLogoutButton, .topbar #installAppButton { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; }
.topbar #managementLogoutButton[hidden], .topbar #installAppButton[hidden] { display: none; }
.topbar #managementNavigation, .topbar #managementNavToggle { display: none; }
.assessmentLauncher { max-width: 840px; margin: 0 auto; padding: 4px 0 24px; }
.launcherHeading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.launcherHeading h2 { margin: 0; font-size: 26px; line-height: 1.4; white-space: nowrap; flex: 0 0 auto; }
.workspace .launcherSettings { display: inline-flex; width: auto; flex: 0 0 auto; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 14px; }
.assessmentPrimaryApps, .assessmentOtherApps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px 16px; }
.assessmentPrimaryApps { max-width: 720px; margin: 0 auto 36px; }
.workspace .assessmentAppButton {
  appearance: none; display: flex; flex-direction: column; align-items: center; justify-content: start;
  gap: 12px; width: 100%; min-width: 0; min-height: 0; padding: 0 4px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text); box-shadow: none; transform: none; cursor: pointer;
  transition: transform 160ms ease, opacity 160ms ease;
}
.assessmentAppIcon { display: grid; place-items: center; width: 112px; height: 112px; max-width: 100%; aspect-ratio: 1; border-radius: 8px; background: #fce3ed; color: var(--accent); }
.assessmentAppIcon .launcherSymbol { width: 54px; height: 54px; }
.assessmentPrimaryApps .assessmentAppButton {
  --app-fill: var(--accent); min-height: 240px; justify-content: center; padding: 28px 16px;
  border: 1px solid var(--app-fill); background: var(--app-fill); color: #fff;
}
.assessmentPrimaryApps .app-records { --app-fill: var(--accent-2); }
.assessmentPrimaryApps .assessmentAppIcon { width: 88px; height: 88px; background: transparent; color: #fff; }
.assessmentPrimaryApps .assessmentAppIcon .launcherSymbol { width: 72px; height: 72px; }
.assessmentPrimaryApps .assessmentAppLabel { color: #fff; font-size: 24px; }
.assessmentAppLabel { font-size: 20px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; text-align: center; }
.workspace .assessmentAppButton:hover:not(:disabled) { background: transparent; transform: translateY(-2px); box-shadow: none; }
.workspace .assessmentPrimaryApps .assessmentAppButton:hover:not(:disabled) { background: var(--app-fill); }
.workspace .assessmentAppButton:active:not(:disabled) { transform: scale(.97); }
.workspace .assessmentAppButton:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
.assessmentOtherApps { max-width: 760px; margin: 0 auto; row-gap: 28px; }
.assessmentOtherApps .assessmentAppIcon { width: 80px; height: 80px; background: #eeedf0; color: #737079; }
.assessmentOtherApps .app-overview:not(:disabled) .assessmentAppIcon { background: var(--brand-aqua); color: var(--accent); }
.assessmentOtherApps .assessmentAppIcon .launcherSymbol { width: 36px; height: 36px; }
.assessmentOtherApps .assessmentAppLabel { font-size: 16px; font-weight: 600; }
.workspace .assessmentAppButton:disabled { opacity: 1; cursor: not-allowed; }
.assessmentAppStatus { display: inline-flex; align-items: center; justify-content: center; gap: 5px; color: #696470; font-size: 14px; line-height: 1.5; }
.assessmentAppStatus .launcherSymbol { width: 14px; height: 14px; }
.workspace .managementHomeBack { display: inline-flex; width: auto; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 18px; margin-bottom: 20px; font-size: 17px; font-weight: 600; }
.ownerAppSettings { padding: 20px 0; }
.ownerAppSettings h2 { font-size: 20px; margin: 0 0 16px; }
.ownerToolsTitle { margin-top: 28px !important; }
.featureEntrySettingsList { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.featureEntrySetting { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 68px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255,255,255,.72); }
.featureEntrySetting > span:first-child { display: grid; gap: 2px; }
.featureEntrySetting strong { font-size: 16px; }
.featureEntrySetting small { color: var(--muted); font-size: 13px; }
.featureEntrySetting input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.featureEntrySwitch { position: relative; flex: 0 0 50px; width: 50px; height: 28px; border-radius: 999px; background: #c8c6cb; transition: background 160ms ease; }
.featureEntrySwitch::after { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(38,32,43,.22); content: ""; transition: transform 160ms ease; }
.featureEntrySetting input:checked + .featureEntrySwitch { background: var(--accent); }
.featureEntrySetting input:checked + .featureEntrySwitch::after { transform: translateX(22px); }
.featureEntrySetting input:focus-visible + .featureEntrySwitch { outline: 3px solid color-mix(in srgb, var(--accent) 40%, white); outline-offset: 3px; }
.ownerAppLinks { display: flex; flex-wrap: wrap; gap: 10px; }
.ownerAppLinks button { min-height: 44px; }
.publicEntryGrid > a.publicEntryButton { display: flex; position: relative; min-width: 0; text-decoration: none; overflow: hidden; border-radius: 8px; color: var(--text); }
.publicEntryGrid > a.publicEntryButton:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.installAppDialog { width: min(420px, calc(100% - 40px)); border: 1px solid var(--line); border-radius: 8px; padding: 24px; color: var(--text); }
.installAppDialog::backdrop { background: rgb(41 38 48 / .35); }
.installAppDialog h2 { margin-top: 0; font-size: 22px; }
.installAppDialog button { min-height: 44px; }
#installAppStatus:empty { display: none; }
@media (min-width: 700px) {
  .assessmentOtherApps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .assessmentAppIcon { width: 128px; height: 128px; }
  .assessmentOtherApps .assessmentAppIcon { width: 96px; height: 96px; }
}
@media (max-width: 600px) {
  .topbar { gap: 12px; padding: 16px; }
  .topbar .topbarTitle { flex: 1; gap: 10px; }
  .topbar .topbarTitle h1 { font-size: 18px; }
  .topbarAppIcon { width: 40px; height: 40px; flex-basis: 40px; }
  .topbar .topbarActions { width: auto; flex-basis: auto; }
  .topbar #managementLogoutButton { padding: 8px; }
  .topbar #installAppButton { padding: 8px; font-size: 14px; }
  .workspace { padding: 20px 16px 32px; }
  .launcherHeading { margin-bottom: 24px; }
  .launcherHeading h2 { font-size: 24px; }
  .assessmentPrimaryApps { margin-bottom: 32px; }
  .assessmentPrimaryApps .assessmentAppButton { min-height: 180px; padding: 20px 10px; }
  .assessmentPrimaryApps .assessmentAppIcon { width: 68px; height: 68px; }
  .assessmentPrimaryApps .assessmentAppIcon .launcherSymbol { width: 56px; height: 56px; }
  .assessmentPrimaryApps .assessmentAppLabel { font-size: 19px; }
  .assessmentAppLabel { font-size: 19px; }
  .featureEntrySettingsList { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace .assessmentAppButton { transition: none !important; }
  .workspace .assessmentAppButton:hover:not(:disabled), .workspace .assessmentAppButton:active:not(:disabled) { transform: none; }
}
