:root { --web-header-height: 42px; }
html { min-height: 100%; color-scheme: light; }
body { margin: 0; min-height: 100%; }
view, scroll-view { display: block; }
button, input { font-family: inherit; }
button { border: 0; cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }
input { border: 0; }
.field input { display: block; width: 100%; }
img { vertical-align: middle; }
.web-title {
  box-sizing: border-box;
  height: var(--web-header-height);
  display: grid;
  place-items: center;
  font-size: 15px;
  font-weight: 600;
  color: #111216;
  background: #fff;
}
.answer-page { min-height: calc(100dvh - var(--web-header-height)); }
.answer-page .choice,
.answer-page .change-choices .choice {
  height: clamp(32px, calc((100dvh - var(--web-header-height) - 310px - env(safe-area-inset-bottom))/9), 44px);
}
.training-scroller { overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
.training-scroller::-webkit-scrollbar { display: none; }
.nav-item, .row[data-screen], .row[data-mode], .row[data-i] { cursor: pointer; }
.web-toast {
  position: fixed;
  z-index: 30;
  bottom: calc(80px + env(safe-area-inset-bottom));
  left: 50%;
  max-width: 85%;
  transform: translateX(-50%);
  border-radius: 20px;
  padding: 10px 16px;
  background: #111216;
  color: #fff;
  text-align: center;
}
.web-modal {
  width: min(300px, calc(100% - 48px));
  border: 0;
  border-radius: 25px;
  padding: 24px;
  color: #111216;
}
.web-modal::backdrop { background: rgba(17, 18, 22, .45); }
.web-modal h2 { margin: 0 0 12px; font-size: 20px; }
.web-modal p { margin: 0 0 18px; line-height: 1.6; }
.web-modal-actions { display: flex; gap: 8px; }
.web-modal-actions button { flex: 1; }


.exam-progress { position: relative; z-index: 1; width: 100%; padding: 4px 0; }
.exam-progress-summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 11px; }
.exam-progress progress { display: block; width: 100%; height: 5px; margin-top: 6px; accent-color: #111216; }
