.pwa-topbar,
.pwa-bottom-nav {
  display: none;
}

@media (display-mode: standalone) {
  html,
  body {
    overscroll-behavior-x: none;
    -webkit-tap-highlight-color: transparent;
  }
}

html.app-shell {
  --pwa-topbar-height: 52px;
  --pwa-nav-height: 60px;
  --pwa-safe-top: env(safe-area-inset-top, 0px);
  --pwa-safe-bottom: env(safe-area-inset-bottom, 0px);
  --pwa-safe-left: env(safe-area-inset-left, 0px);
  --pwa-safe-right: env(safe-area-inset-right, 0px);
  overflow-x: clip;
  overscroll-behavior-x: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}

html.app-shell body {
  overflow-x: clip;
  overscroll-behavior-x: none;
  overflow-wrap: break-word;
  padding-left: var(--pwa-safe-left);
  padding-right: var(--pwa-safe-right);
}

html.app-shell[data-page="do_quiz"],
html.app-shell[data-page="do_quiz"] body,
html.app-shell[data-page="quiz_preview"],
html.app-shell[data-page="quiz_preview"] body {
  overscroll-behavior: none;
}

html.app-shell img,
html.app-shell video,
html.app-shell iframe {
  max-width: 100%;
}

html.app-shell pre {
  white-space: pre-wrap;
}

html.app-shell .app-header,
html.app-shell footer.footer,
html.pwa-standalone #pwa-install-banner {
  display: none !important;
}

html.app-shell .pwa-topbar,
html.app-shell .pwa-bottom-nav,
html.app-shell .left-sidebar,
html.app-shell .btn,
html.app-shell .nav-link,
html.app-shell .sidebar-link,
html.app-shell .dropdown-item {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

html.app-shell .pwa-topbar {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  position: fixed;
  inset-block-start: 0;
  inset-inline: 0;
  z-index: 997;
  box-sizing: border-box;
  height: calc(var(--pwa-topbar-height) + var(--pwa-safe-top));
  padding-top: var(--pwa-safe-top);
  padding-left: calc(0.25rem + var(--pwa-safe-left));
  padding-right: calc(0.25rem + var(--pwa-safe-right));
  background: #1565c0;
  color: #fff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.18);
}

.pwa-topbar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: inherit;
  font-size: 1.1rem;
}

.pwa-topbar-btn:active {
  background: rgba(255, 255, 255, 0.18);
}

[dir="rtl"] .pwa-back i {
  transform: scaleX(-1);
}

.pwa-topbar[data-root] .pwa-back {
  display: none;
}

.pwa-topbar[data-root] .pwa-topbar-logo {
  margin-inline-start: 0.5rem;
}

.pwa-topbar-logo {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  margin-inline: 0.25rem 0.5rem;
}

.pwa-topbar-title {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-topbar-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.pwa-topbar-actions .navbar-nav {
  flex-direction: row !important;
  align-items: center;
  gap: 0.25rem !important;
  margin: 0 !important;
}

.pwa-topbar-actions .btn,
.pwa-topbar-actions .btn-light {
  color: #fff;
  background: transparent;
  border-color: rgba(255, 255, 255, 0.45);
}

.pwa-topbar-actions .btn-light {
  background: transparent !important;
  border-color: transparent;
  box-shadow: none;
}

.pwa-topbar-actions form > .btn span {
  display: none;
}

.pwa-topbar-actions .dropdown-menu.show {
  position: fixed !important;
  inset: calc(var(--pwa-topbar-height) + var(--pwa-safe-top) + 0.25rem) 0.5rem
    auto 0.5rem !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  max-height: calc(
    100vh - var(--pwa-topbar-height) - var(--pwa-nav-height) -
      var(--pwa-safe-top) - var(--pwa-safe-bottom) - 1rem
  );
  overflow-y: auto;
  transform: none !important;
  margin: 0 !important;
  border-radius: 14px;
  z-index: 1001;
}

html.app-shell .pwa-bottom-nav {
  display: flex;
  position: fixed;
  inset-block-end: 0;
  inset-inline: 0;
  z-index: 997;
  box-sizing: border-box;
  height: calc(var(--pwa-nav-height) + var(--pwa-safe-bottom));
  padding-bottom: var(--pwa-safe-bottom);
  padding-left: var(--pwa-safe-left);
  padding-right: var(--pwa-safe-right);
  background: #fff;
  border-block-start: 1px solid #e2e8f0;
  box-shadow: 0 -2px 10px rgba(15, 23, 42, 0.06);
}

.pwa-tab {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.25rem 0.125rem;
  border: 0;
  background: transparent;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.1;
  text-decoration: none;
}

.pwa-tab i {
  font-size: 1.15rem;
}

.pwa-tab span {
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pwa-tab.active,
.pwa-tab:active {
  color: #1565c0;
}

html.app-shell .body-wrapper .body-wrapper-inner {
  margin-block: calc(var(--pwa-topbar-height) + var(--pwa-safe-top))
    calc(var(--pwa-nav-height) + var(--pwa-safe-bottom));
  margin-inline: 0;
  min-height: auto;
  border-radius: 0 !important;
}

html.app-shell .body-wrapper-inner > .container-fluid {
  padding: 16px 12px !important;
}

html.app-shell[data-page="do_quiz"] .pwa-bottom-nav,
html.app-shell[data-page="quiz_preview"] .pwa-bottom-nav {
  display: none;
}

html.app-shell[data-page="do_quiz"] .body-wrapper .body-wrapper-inner,
html.app-shell[data-page="quiz_preview"] .body-wrapper .body-wrapper-inner {
  margin-block-end: var(--pwa-safe-bottom);
}

html.app-shell .left-sidebar {
  padding-top: var(--pwa-safe-top);
  padding-bottom: var(--pwa-safe-bottom);
}

html.app-shell #float-dock {
  inset-block-end: calc(var(--pwa-nav-height) + var(--pwa-safe-bottom) + 12px);
  max-height: calc(
    100vh - var(--pwa-nav-height) - var(--pwa-topbar-height) -
      var(--pwa-safe-top) - var(--pwa-safe-bottom) - 24px
  );
}

html.app-shell[data-page="do_quiz"] #float-dock,
html.app-shell[data-page="quiz_preview"] #float-dock {
  inset-block-end: calc(var(--pwa-safe-bottom) + 12px);
}

html.app-shell .toast-container.bottom-0 {
  bottom: calc(var(--pwa-nav-height) + var(--pwa-safe-bottom)) !important;
}

html.app-shell .public-body {
  padding-top: calc(var(--pwa-topbar-height) + var(--pwa-safe-top));
  padding-bottom: var(--pwa-safe-bottom);
}

html.app-shell .public-body > nav,
html.app-shell .public-body > header,
html.app-shell .public-body > footer {
  display: none !important;
}

html.app-shell .signin-body {
  padding-top: var(--pwa-safe-top);
  padding-bottom: var(--pwa-safe-bottom);
}

html.app-shell .table-responsive.has-table-cards {
  overflow: visible;
}

html.app-shell table.table-cards,
html.app-shell table.table-cards > tbody {
  display: block;
  width: 100%;
  min-width: 0 !important;
  margin: 0;
}

html.app-shell table.table-cards > thead {
  display: none;
}

html.app-shell table.table-cards > tbody > tr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem;
  padding: 0.75rem;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

html.app-shell table.table-cards .pwa-style {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

html.app-shell table.table-cards > tbody > tr > td {
  display: block;
  width: auto !important;
  min-width: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  text-align: start !important;
  white-space: normal !important;
  overflow-wrap: anywhere;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="index"],
html.app-shell table.table-cards > tbody > tr > td[data-cell="empty"] {
  display: none;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="title"] {
  order: 0;
  flex: 1 1 0;
  min-width: 55% !important;
  font-weight: 600;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="actions"] {
  order: 1;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 0.375rem;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="field"] {
  order: 2;
  flex: 1 1 calc(50% - 0.25rem);
  padding: 0.45rem 0.6rem !important;
  background: #f8fafc !important;
  border-radius: 10px;
  font-size: 0.85rem;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="field"]::before {
  content: attr(data-label);
  display: block;
  margin-block-end: 0.2rem;
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 600;
}

html.app-shell table.table-cards > tbody > tr > td[colspan] {
  flex: 1 1 100%;
  text-align: center !important;
}

html.app-shell table.table-cards > tbody > tr > td .text-truncate,
html.app-shell table.table-cards > tbody > tr > td .badge {
  max-width: 100% !important;
  white-space: normal !important;
  overflow: visible;
}

html.app-shell[data-page="index"] .welcome-header {
  padding: 1rem;
  border-radius: 14px;
}

html.app-shell[data-page="index"] .welcome-header h4 {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

html.app-shell[data-page="index"] .welcome-header .btn-section {
  width: 100%;
}

html.app-shell[data-page="index"] .welcome-header .btn-section > .btn {
  flex: 1 1 0;
  padding-inline: 0.5rem !important;
  font-size: 0.85rem;
  white-space: nowrap;
}

html.app-shell[data-page="index"] .row.g-4 {
  --bs-gutter-x: 0.75rem;
  --bs-gutter-y: 0.75rem;
}

html.app-shell[data-page="index"] .row.g-4 > .col-12.col-sm-6 {
  flex: 0 0 auto;
  width: 50%;
}

html.app-shell[data-page="index"] .stat-card-dashboard {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.875rem;
  border-radius: 14px;
}

html.app-shell[data-page="index"] .stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

html.app-shell[data-page="index"] .stat-card-number {
  font-size: 1.5rem;
}

html.app-shell[data-page="index"] .stat-card-label {
  font-size: 0.8rem;
}

html.app-shell[data-page="index"] .stat-card-sub {
  font-size: 0.7rem;
}

html.app-shell[data-page="index"] .welcome-header .btn-section {
  display: flex;
  gap: 0.5rem;
}

html.app-shell
  table.table-cards
  > tbody
  > tr
  > td[data-cell="field"]
  .text-center {
  text-align: start !important;
}

html.app-shell
  table.table-cards
  > tbody
  > tr
  > td[data-cell="field"]
  .justify-content-center,
html.app-shell table.table-cards > tbody > tr > td[data-cell="field"] .d-flex {
  justify-content: flex-start !important;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="field"] .mx-auto {
  margin-inline: 0 !important;
}

html.app-shell[data-page="show_student_answers"] .container-fluid.pt-4.px-4 {
  padding-inline: 0 !important;
  padding-top: 0 !important;
}

html.app-shell[data-page="show_student_answers"] .quiz-header .display-6 {
  font-size: 1.25rem;
  font-weight: 600;
}

html.app-shell .filter-btn-group {
  flex-wrap: wrap !important;
  gap: 0.375rem !important;
  overflow: visible !important;
}

html.app-shell .filter-btn-group .filter-btn {
  flex: 0 0 auto !important;
  padding: 0.3rem 0.875rem !important;
  font-size: 0.8rem;
  line-height: 1.4;
  border-radius: 50px !important;
  margin: 0 !important;
}

#pwa-legacy-banner {
  position: fixed;
  inset-inline: 0.75rem;
  inset-block-end: calc(
    var(--pwa-nav-height, 0px) + var(--pwa-safe-bottom, 0px) + 0.75rem
  );
  z-index: 2000;
  padding: 0.9rem 1rem;
  background: #fff;
  border-radius: 14px;
  border-inline-start: 4px solid #1565c0;
  box-shadow: 0 8px 30px rgba(15, 23, 42, 0.18);
  font-size: 0.85rem;
}

#pwa-legacy-banner strong {
  display: block;
  margin-block-end: 0.25rem;
  color: #1565c0;
}

#pwa-legacy-banner p {
  margin: 0 0 0.6rem;
  color: #475569;
}

#pwa-legacy-banner button {
  padding: 0.35rem 1.1rem;
  border: 0;
  border-radius: 50px;
  background: #1565c0;
  color: #fff;
  font-weight: 600;
}

html.app-shell .stat-card-dashboard {
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  padding: 0.875rem;
  border-radius: 14px;
}

html.app-shell .stat-card-dashboard .stat-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

html.app-shell .stat-card-dashboard .stat-card-number {
  font-size: 1.4rem;
}

html.app-shell[data-page="quiz_questions"]
  table.table-cards
  > tbody
  > tr
  > td[data-cell="field"] {
  flex: 0 1 auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.55rem !important;
}

html.app-shell[data-page="quiz_questions"]
  table.table-cards
  > tbody
  > tr
  > td[data-cell="field"]::before {
  display: inline;
  margin: 0;
}

html.app-shell {
  --app-bg: #f3f6fb;
  --app-card: #fff;
  --app-border: #e6ebf2;
  --app-text: #0f172a;
  --app-muted: #64748b;
  --app-primary: #1565c0;
  --app-radius: 16px;
  --app-shadow: 0 1px 2px rgba(15, 23, 42, 0.04), 0 4px 14px rgba(15, 23, 42, 0.05);
}

html.app-shell body,
html.app-shell .body-wrapper,
html.app-shell .body-wrapper .body-wrapper-inner {
  background: var(--app-bg) !important;
}

html.app-shell .pwa-topbar {
  background: linear-gradient(135deg, #1565c0 0%, #1e40af 100%);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.08) inset, 0 4px 16px rgba(21, 101, 192, 0.25);
}

html.app-shell .pwa-topbar-logo {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}

html.app-shell .pwa-topbar-title {
  font-size: 1rem;
  font-weight: 700;
}

html.app-shell .pwa-topbar-actions .header-logout {
  display: none !important;
}

html.app-shell .pwa-topbar-actions .btn {
  width: 38px !important;
  height: 38px;
  padding: 0 !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  border-radius: 12px !important;
  background: rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  font-size: 0.78rem;
  font-weight: 700;
}

html.app-shell .pwa-topbar-actions .btn i.fs-5 {
  font-size: 1rem !important;
}

html.app-shell .pwa-topbar-actions .notify-badge {
  position: absolute;
  top: 3px !important;
  right: 3px !important;
  left: auto !important;
  transform: none !important;
  min-width: 17px !important;
  width: auto;
  height: 17px;
  aspect-ratio: auto;
  padding: 0 4px;
  border: 2px solid #1e40af;
  border-radius: 9px;
  font-size: 0.6rem;
  line-height: 13px;
  text-align: center;
}

html.app-shell .pwa-bottom-nav {
  border-block-start: 1px solid var(--app-border);
  box-shadow: 0 -6px 20px rgba(15, 23, 42, 0.06);
}

html.app-shell .pwa-tab {
  position: relative;
  font-size: 0.68rem;
}

html.app-shell .pwa-tab i {
  display: grid;
  place-items: center;
  width: 46px;
  height: 28px;
  border-radius: 14px;
  transition: background-color 0.15s ease;
}

html.app-shell .pwa-tab.active i {
  background: #e3effd;
}

html.app-shell .pwa-tab.active span {
  font-weight: 700;
}

html.app-shell .card {
  border: 1px solid var(--app-border) !important;
  border-radius: var(--app-radius) !important;
  box-shadow: var(--app-shadow) !important;
  overflow: hidden;
}

html.app-shell .card .card {
  box-shadow: none !important;
}

html.app-shell .card-header.bg-gradient-primary {
  padding: 1rem !important;
  border-radius: 0 !important;
}

html.app-shell .card-header.bg-gradient-primary h2 {
  margin: 0;
  font-size: 1.2rem;
  line-height: 1.3;
}

html.app-shell .card-header.bg-gradient-primary > .d-flex {
  align-items: center !important;
  gap: 0.75rem;
}

html.app-shell .card-header.bg-gradient-primary .btn {
  padding: 0.45rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  font-weight: 700;
  white-space: nowrap;
}

html.app-shell .breadcrumb {
  display: none;
}

html.app-shell .filter-btn-group {
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  scrollbar-width: none;
  padding-block: 0.125rem;
}

html.app-shell .filter-btn-group::-webkit-scrollbar {
  display: none;
}

html.app-shell .filter-btn-group .filter-btn {
  min-height: 34px;
  padding: 0.3rem 0.8rem !important;
  font-size: 0.78rem !important;
  white-space: nowrap;
}

html.app-shell .form-control,
html.app-shell .form-select,
html.app-shell .input-group > .btn {
  min-height: 44px;
  border-radius: 12px;
  font-size: 16px;
}

html.app-shell .input-group > .form-control {
  border-start-end-radius: 0;
  border-end-end-radius: 0;
}

html.app-shell .input-group > .btn {
  border-start-start-radius: 0;
  border-end-start-radius: 0;
}

html.app-shell .btn {
  border-radius: 12px;
}

html.app-shell .btn-sm {
  min-height: 36px;
  min-width: 36px;
}

html.app-shell table.table-cards > tbody > tr {
  margin: 0.75rem 0;
  padding: 0.875rem;
  gap: 0.5rem 0.75rem;
  border-color: var(--app-border);
  border-radius: var(--app-radius);
  box-shadow: var(--app-shadow);
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="title"] {
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--app-text);
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="actions"] .btn {
  width: 38px;
  height: 38px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="field"] {
  flex: 1 1 calc(50% - 0.375rem);
  padding: 0.5rem 0.65rem !important;
  background: #f7f9fc !important;
  border: 1px solid #eef2f7 !important;
  border-radius: 12px;
}

html.app-shell table.table-cards > tbody > tr > td[data-cell="field"]::before {
  font-size: 0.68rem;
  letter-spacing: 0;
  color: var(--app-muted);
}

html.app-shell .stat-card-dashboard {
  flex-direction: row !important;
  align-items: center !important;
  gap: 0.75rem !important;
  height: 100%;
  min-height: 0;
  padding: 0.875rem !important;
  background: var(--app-card);
  border: 1px solid var(--app-border);
  border-radius: var(--app-radius) !important;
  box-shadow: var(--app-shadow);
}

html.app-shell .stat-card-dashboard .stat-card-icon {
  flex-shrink: 0;
  width: 40px !important;
  height: 40px !important;
  border-radius: 12px !important;
}

html.app-shell .stat-card-dashboard .stat-card-content {
  min-width: 0;
}

html.app-shell .stat-card-dashboard .stat-card-number {
  font-size: 1.3rem !important;
  font-weight: 800;
  line-height: 1.1;
  color: var(--app-text);
}

html.app-shell .stat-card-dashboard .stat-card-label {
  font-size: 0.75rem !important;
  color: var(--app-muted);
  line-height: 1.3;
}

html.app-shell .stat-card-dashboard .stat-card-sub {
  display: none;
}

html.app-shell .app-card {
  flex-wrap: nowrap !important;
  gap: 10px !important;
  padding: 10px 12px !important;
}

html.app-shell .app-card-icon {
  width: 36px;
  height: 36px;
}

html.app-shell .app-card-body span {
  display: none;
}

html.app-shell .app-card-body strong {
  font-size: 13px !important;
  line-height: 1.4;
}

html.app-shell .app-card-cta {
  order: 0 !important;
  width: auto !important;
  padding: 8px 12px !important;
  font-size: 13px !important;
}

html.app-shell .app-card-close {
  width: 28px !important;
}

html.app-shell .empty-state,
html.app-shell .text-center.py-5 {
  padding-block: 1.75rem !important;
}

html.app-shell .sidebar-logout {
  display: flex;
}

.sidebar-logout {
  display: none;
  align-items: center;
  gap: 0.6rem;
  width: 100%;
  margin-block-start: 0.5rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid #fee2e2;
  border-radius: 12px;
  background: #fff5f5;
  color: #dc2626;
  font-weight: 700;
}

html.app-shell .gradebook-table {
  font-size: 0.8rem;
}

html.app-shell .gradebook-table .gb-sticky-col {
  min-width: 112px !important;
  max-width: 128px;
  box-shadow: -6px 0 10px -6px rgba(15, 23, 42, 0.18);
}

html.app-shell .gradebook-table .gb-sticky-col .avatar-xs {
  display: none !important;
}

html.app-shell .gradebook-table thead th:not(.gb-sticky-col) {
  min-width: 88px !important;
  font-size: 0.72rem;
}

html.app-shell .gradebook-table .gb-score-badge {
  min-width: 40px;
}

html.app-shell[data-page="do_quiz"] .quiz-nav-buttons,
html.app-shell[data-page="quiz_preview"] .quiz-nav-buttons {
  position: fixed !important;
  inset-inline: 0;
  inset-block-end: 0;
  z-index: 996;
  flex-direction: row !important;
  gap: 0.5rem;
  margin: 0 !important;
  padding: 0.625rem calc(0.75rem + var(--pwa-safe-right)) calc(0.625rem + var(--pwa-safe-bottom)) calc(0.75rem + var(--pwa-safe-left)) !important;
  background: #fff;
  border-top: 1px solid var(--app-border) !important;
  box-shadow: 0 -6px 16px rgba(15, 23, 42, 0.06);
}

html.app-shell[data-page="do_quiz"] .body-wrapper .body-wrapper-inner,
html.app-shell[data-page="quiz_preview"] .body-wrapper .body-wrapper-inner {
  margin-block-end: calc(76px + var(--pwa-safe-bottom)) !important;
}

html.app-shell[data-page="do_quiz"] .quiz-nav-buttons .btn,
html.app-shell[data-page="quiz_preview"] .quiz-nav-buttons .btn {
  width: auto !important;
  min-height: 48px;
  font-size: 0.95rem;
  font-weight: 700;
}

html.app-shell[data-page="do_quiz"] #prev-button,
html.app-shell[data-page="quiz_preview"] #prev-button {
  flex: 0 0 34% !important;
}

html.app-shell[data-page="do_quiz"] #float-dock,
html.app-shell[data-page="quiz_preview"] #float-dock {
  inset-block-end: calc(var(--pwa-safe-bottom) + 84px);
  inset-inline-start: auto;
  align-items: flex-end;
}

html.app-shell .question-title,
html.app-shell .choice-text {
  overflow-wrap: anywhere;
}
