* {
  box-sizing: border-box;
}
html {
  color-scheme: light;
}
body {
  margin: 0;
  background: #f6f4ed;
  color: #273e36;
  font:
    16px/1.65 "Microsoft YaHei",
    "PingFang SC",
    system-ui,
    sans-serif;
}
header {
  border-bottom: 1px solid #c9d0c4;
}
.bar,
main,
footer {
  max-width: 1080px;
  margin: auto;
  padding: 0 32px;
}
.bar,
nav,
footer,
.actions {
  display: flex;
  align-items: center;
  gap: 20px;
}
.bar {
  height: 72px;
  justify-content: space-between;
}
a {
  color: inherit;
  text-decoration: none;
}
.brand {
  font-weight: bold;
  font-size: 20px;
}
.logo {
  color: #a05139;
  font: 32px Georgia;
  vertical-align: middle;
}
nav a:hover,
.back:hover {
  text-decoration: underline;
}
main {
  min-height: 75vh;
  padding-top: 35px;
  padding-bottom: 44px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2,
.brand {
  font-family: "STKaiti", "KaiTi", "Songti SC", serif;
}
h1 {
  font-size: clamp(32px, 5vw, 55px);
  line-height: 1.3;
}
h2 {
  font-size: 24px;
  margin: 26px 0 13px;
}
h3 {
  font-size: 18px;
}
.hero {
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  background: #dce6d6;
  padding: 32px 38px;
  border-radius: 18px;
  border: 1px solid #bac9b6;
  overflow: hidden;
}
.hero p,
.desc,
.card small {
  color: #506056;
}
.hero p {
  margin: 10px 0 20px;
}
.dial {
  flex: none;
  width: 158px;
  height: 158px;
  border: 8px solid #355747;
  outline: 1px solid #81947c;
  outline-offset: 7px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: repeating-conic-gradient(#607c68 0 1deg, transparent 1deg 30deg);
  transform: rotate(6deg);
  box-shadow: 5px 9px 0 #bac9b4;
}
.dial b {
  background: #dce6d6;
  width: 85%;
  height: 85%;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: italic 35px Georgia;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(235px, 1fr));
  gap: 12px;
}
.card,
article,
form,
.panel {
  border: 1px solid #cbd0c4;
  background: #fffef8;
  border-radius: 12px;
  padding: 19px;
}
.card {
  display: grid;
  grid-template-columns: 42px 1fr;
  column-gap: 12px;
  align-items: center;
}
.card:hover {
  border-color: #577e69;
  background: white;
}
.card small {
  display: block;
  font-size: 13px;
}
.glyph {
  grid-row: span 2;
  background: #ece4d5;
  border-radius: 10px;
  text-align: center;
  font: 25px/42px Georgia;
  color: #85553e;
}
.primary,
button {
  display: inline-block;
  background: #335b49;
  color: white;
  border: 0;
  border-radius: 7px;
  padding: 9px 15px;
  cursor: pointer;
  font: inherit;
}
.back {
  display: inline-block;
  margin-bottom: 12px;
  color: #536558;
}
.desc {
  margin: 8px 0 22px;
}
.tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.tabs button {
  background: #e7ebe1;
  color: #364d40;
}
.tabs button[aria-pressed="true"] {
  background: #335b49;
  color: white;
}
form,
.panel {
  max-width: 800px;
}
label {
  display: block;
  font-weight: 600;
  margin: 12px 0;
}
input,
textarea,
select {
  display: block;
  width: 100%;
  max-width: 100%;
  font: inherit;
  color: inherit;
  background: white;
  padding: 9px;
  border: 1px solid #aab8aa;
  border-radius: 6px;
}
textarea {
  min-height: 65px;
  resize: vertical;
}
button:disabled {
  opacity: 0.6;
}
article {
  margin: 10px 0;
}
article p {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
article small {
  color: #526258;
}
audio {
  max-width: 100%;
  width: 100%;
  margin: 16px 0;
}
footer {
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 25px;
  border-top: 1px solid #cbd0c4;
  color: #55665a;
  font-size: 13px;
}
.actions {
  flex-wrap: wrap;
}
.status {
  min-height: 1.6em;
  color: #34583d;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #b56e38;
  outline-offset: 3px;
}
@media (max-width: 590px) {
  .bar,
  main,
  footer {
    padding-left: 16px;
    padding-right: 16px;
  }
  .bar {
    height: 60px;
  }
  .hero {
    padding: 22px 18px;
  }
  .dial {
    width: 80px;
    height: 80px;
    border-width: 4px;
  }
  .dial b {
    font-size: 20px;
  }
  .hero h1 {
    font-size: 30px;
  }
  .hero p {
    font-size: 14px;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  main {
    padding-top: 20px;
  }
  nav {
    gap: 12px;
  }
  .hero .primary {
    font-size: 14px;
  }
}
.timer-tool section + section {
  border-top: 1px solid #cbd0c4;
  margin-top: 22px;
  padding-top: 20px;
}
.timer-controls,
.timer-todo {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.timer-todo input {
  width: auto;
  display: inline;
}
.timer-tool .clock {
  color: #335b49;
}
.pom-face {
  position: relative;
  width: min(222px, 80%);
  aspect-ratio: 1;
  margin: 8px auto 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.pom-face:before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  background:
    repeating-conic-gradient(#587772 0deg 1deg, transparent 1deg 6deg), #fafcf6;
}
.pom-core {
  position: relative;
  width: 83%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background: #fafcf6;
}
.pom-core .clock {
  font: 600 clamp(38px, 8vw, 52px) / 1.25 system-ui;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.05em;
}
.pom-core p {
  font-size: 14px;
  text-align: center;
}
.pom-sheet {
  margin-top: 28px;
  border: 1px solid #aacac8;
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  border-radius: 12px;
  overflow: hidden;
  background: white;
}
.sheet-main,
.sheet-memo {
  padding: clamp(12px, 2vw, 22px);
  min-width: 0;
}
.sheet-main h2 {
  margin: 0 0 16px;
  border-bottom: 2px solid #85c9ca;
  padding-bottom: 12px;
}
.sheet-meta {
  display: grid;
  gap: 8px;
}
.sheet-meta div {
  border: 1px dashed #65aeb1;
  padding: 8px;
  border-radius: 4px;
}
.sheet-block,
.sheet-urgent,
.sheet-total {
  margin-top: 20px;
}
.sheet-memo,
.sheet-urgent {
  background: #dbf3f4;
}
.sheet-memo {
  border-left: 1px dashed #498486;
}
.sheet-urgent {
  padding: 14px;
  border: 1px dashed #498486;
  border-radius: 8px;
}
.pom-sheet ol {
  padding-left: 1.6em;
}
.pom-sheet li {
  overflow-wrap: anywhere;
  margin: 9px 0;
}
.pom-sheet li small {
  display: block;
  color: #496362;
}
.sheet-total p {
  font: 600 24px/1.8 system-ui;
  color: #235f60;
}
.timer-todo label:has(:checked) {
  text-decoration: line-through;
}
.pom-sheet input,
.pom-sheet select {
  min-width: 0;
}
.pom-sheet button {
  font-size: 14px;
}
.sheet-memo h3 {
  padding-bottom: 10px;
  border-bottom: 1px solid #8cb5b6;
}
@media (max-width: 600px) {
  .pom-sheet {
    grid-template-columns: 1fr;
  }
  .sheet-memo {
    border-left: 0;
    border-top: 1px dashed #498486;
  }
}
.todo-heading {
  margin: 20px 0 6px;
}
.todo-checklist {
  margin: 0;
  padding: 0;
  list-style: none;
}
.todo-checklist .timer-todo {
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #d6e2df;
}
.todo-checklist label {
  flex: 1;
  min-width: 0;
  overflow-wrap: anywhere;
  margin: 0;
}
.todo-checklist button {
  background: #e7eee8;
  color: #335b49;
}
.todo-feedback {
  color: #765230;
}

/* Pomodoro actions and checklist targets. */
.pom-tool {
  --action: #335b49;
  --ground: #fffef8;
}
.pom-tool .timer-controls button:not(.focus-action) {
  background: var(--ground);
  color: var(--action);
  border: 1px solid #779488;
}
.pom-tool button,
.pom-tool input:not([type="checkbox"]),
.pom-tool select,
.pom-tool summary {
  min-height: 44px;
}
.pom-tool summary {
  cursor: pointer;
  padding-block: 10px;
}
.pom-tool .timer-todo label {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 0 8px;
  min-height: 44px;
  cursor: pointer;
}
.pom-tool .timer-todo input[type="checkbox"] {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--action);
}
.pom-tool .timer-todo small {
  grid-column: 2;
}
.pom-tool :is(button, input, select, textarea, summary):focus-visible {
  outline: 3px solid #925522;
  outline-offset: 3px;
}
.pom-tool .timer-todo label:focus-within {
  background: #e6efe6;
}
.pom-tool button {
  transition:
    transform 90ms ease-out,
    box-shadow 140ms ease-out;
}
@media (hover: hover) and (pointer: fine) {
  .pom-tool button:hover {
    transform: translate(-1px, -1px);
    box-shadow: 2px 2px 0 var(--red, #c80829);
  }
  .pom-tool .timer-todo label:hover {
    background: #e6efe6;
  }
}
.pom-tool button:active {
  transform: translateY(1px) scale(0.985);
}
@media (prefers-reduced-motion: reduce) {
  .pom-tool button,
  .pom-tool button:is(:hover, :active) {
    transition: none;
    transform: none;
  }
}
@media (max-width: 590px) {
  .pom-tool .timer-controls button {
    width: 100%;
  }
}
