body {
  font-family:
    "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", system-ui, sans-serif;
  line-height: 1.7;
}
main :is(h1, h2, h3),
.brand {
  font-family: inherit;
  font-weight: 800;
}
main h1 {
  line-height: 1.2;
}
main h2 {
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.35;
}
main h3 {
  font-size: 18px;
  line-height: 1.45;
}
:where(button, a, summary, input, textarea, select):focus-visible {
  outline: 3px solid #b00024;
  outline-offset: 3px;
  box-shadow: 0 0 0 3px white;
}
main :is(input, textarea, select, summary) {
  scroll-margin-top: 6rem;
}
.tabs,
.timer-controls {
  gap: 10px;
}
.tabs button,
.timer-controls button,
.quick-navigation nav a {
  min-height: 44px;
}
.tabs button[aria-pressed="true"] {
  box-shadow: inset 0 -4px #e60012;
}
main form label {
  line-height: 1.55;
}
main form textarea {
  margin-top: 5px;
}
.timer-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-block: 12px;
}
@media (max-width: 590px) {
  main form,
  .timer-card {
    min-width: 0;
  }
  .quick-navigation nav a {
    display: flex;
    align-items: center;
  }
  .timer-controls button {
    flex: 1 1 auto;
  }
}

main p,
main article p,
main :is(input, textarea, select) {
  font-weight: 400;
}
main :is(h1, h2, h3) {
  font-weight: 800;
}
main textarea,
main .compact-curiosity textarea {
  field-sizing: content;
  min-height: 0;
  height: auto;
  line-height: 1.55;
  padding: 6px 10px;
  resize: none;
  overflow-y: hidden;
}
.status:empty {
  display: none;
}
.word-export {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  margin-bottom: 12px;
}
.word-export .desc {
  margin: 0;
}
#pom-note-reminder, #curiosity-time-reminder {
  position: sticky;
  bottom: 0;
  z-index: 31;
  background: #171519;
  color: white;
  border-top: 4px solid #e60012;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}
#curiosity-time-reminder { position: fixed; inset-inline: 0; }
body:has(#pom-note-reminder, .words-reminder) #curiosity-time-reminder { bottom: 5rem; }
#pom-note-reminder a, #curiosity-time-reminder a {
  text-decoration: underline;
  font-weight: bold;
}
body:has(#pom-note-reminder) .words-reminder {
  bottom: 64px;
}
@media (min-width: 1100px) {
  main {
    max-width: min(94vw, 1540px);
  }
  .words-layout {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    align-items: start;
  }
  .words-layout .panel,
  .words-layout form {
    max-width: none;
  }
  .words-tool {
    width: 100%;
  }
  .words-layout > section > h2:first-child {
    margin-top: 0;
  }
}

.hero .primary + .primary {
  margin-inline-start: 8px;
}

.home-plans {
  margin-top: 12px;
  max-width: 100%;
}
.home-plans summary {
  cursor: pointer;
  font-weight: 800;
}
.home-plans .pending-link {
  display: grid;
  padding: 8px 12px;
  background: #fffaf0;
  color: #171519;
  border-left: 4px solid #e60012;
  margin-top: 6px;
  overflow-wrap: anywhere;
}
.home-plans small {
  font-weight: 400;
}
