.study-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
  max-width: 760px;
  margin: 0 auto 14px;
  color: var(--fg);
}
.study-tools a { color: var(--accent); }
.study-tools a, .study-tools button { min-height: 44px; align-content: center; }
.study-tools button, .study-tools input {
  font: inherit;
  color: var(--fg);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 10px;
}
.study-tools form { width: 100%; display: grid; justify-items: start; gap: 8px; }
.study-tools label { display: grid; width: min(100%, 345px); gap: 4px; }
#study-status { flex-basis: 100%; font-size: .9rem; color: var(--muted); }
#study-offline { flex-basis: 100%; font-size: .85rem; color: var(--muted); }
:root[data-private-study="locked"] #study-content { display: none; }
:root[data-private-study="locked"] .study-page-link { display: none; }
.wrap { grid-template-columns: minmax(0, 1fr); }
.tbl { max-width: 100%; }
.sheet { padding-bottom: max(16px, env(safe-area-inset-bottom)); }
@media (max-width: 540px) {
  .bar .tabs button, .chip, .kn, .btn, .seg button, .choice, .opt, .qbtn { min-height: 44px; }
  .kn { min-width: 44px; }
  .row .info, .panel, .quiz, .box { overflow-wrap: anywhere; }
  .q, .qth { max-width: 100%; overflow-wrap: anywhere; }
}
