.wt-main {
  max-width: 1080px;
  padding-bottom: 3rem;
}
.wt-heading {
  margin: 2rem 0 1.75rem;
}
.wt-heading h1 {
  font-family: var(--font-soft);
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  color: var(--peach);
  margin: 0.45rem 0;
}
.wt-heading > p:last-child {
  color: var(--ink-soft);
  font-size: 1rem;
}
.wt-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 1fr);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wt-workspace > * {
  min-width: 0;
}
.wt-display {
  padding: 2.2rem 2.2rem 2rem 0;
  align-self: start;
}
.wt-house {
  image-rendering: pixelated;
  display: block;
  margin-bottom: 1.2rem;
}
.wt-state {
  color: var(--peach);
  font-size: 0.9rem;
}
.wt-count-label {
  font-size: 1rem;
  font-weight: 400;
  margin: 1rem 0 0.3rem;
  color: var(--ink-soft);
}
.wt-clock {
  font-family: var(--font-mono, monospace);
  font-size: clamp(2.7rem, 6vw, 4.6rem);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.045em;
  line-height: 1.3;
  color: var(--ink);
  margin: 0;
  white-space: nowrap;
}
.wt-target,
.wt-progress-note {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin: 0.65rem 0;
}
.wt-progress {
  height: 9px;
  background: var(--line);
  margin-top: 1.8rem;
  overflow: hidden;
}
.wt-progress span {
  display: block;
  height: 100%;
  background: var(--peach);
  transition: width 0.4s ease;
}
.wt-progress-note strong {
  color: var(--peach);
}
.wt-totals {
  display: flex;
  gap: 2rem;
  margin: 1.8rem 0 0;
}
.wt-totals dt {
  font-size: 0.875rem;
  color: var(--ink-soft);
  margin-bottom: 0.4rem;
}
.wt-totals dd {
  font-size: 1.1rem;
  margin: 0;
}
.wt-form {
  padding: 2rem 0 1.7rem 2rem;
  border-left: 1px solid var(--line);
}
.wt-form h2 {
  font-size: 1.2rem;
  margin: 0;
}
.wt-form-note {
  color: var(--ink-soft);
  font-size: 0.875rem;
  line-height: 1.7;
  margin: 0.65rem 0 1rem;
}
.wt-form label {
  display: block;
  font-size: 0.95rem;
  margin: 0.85rem 0 0.45rem;
}
.wt-form label span {
  color: var(--ink-soft);
}
.wt-form input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  background: var(--card);
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.7rem;
  font: inherit;
  font-size: 1rem;
  min-height: 46px;
  color-scheme: dark;
  border-radius: 0;
}
.wt-form input:focus-visible,
.wt-form button:focus-visible,
.wt-guide summary:focus-visible {
  outline: 2px solid var(--peach);
  outline-offset: 3px;
}
.wt-date-row {
  display: flex;
  gap: 0.5rem;
}
.wt-date-row input {
  flex: 1;
}
.wt-date-row button {
  flex: 0 0 auto;
  padding: 0.5rem 0.7rem;
  min-height: 46px;
}
.wt-time-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0.8rem;
}
.wt-submit {
  width: 100%;
  margin-top: 0.4rem;
  min-height: 48px;
}
.wt-message {
  font-size: 0.9rem;
  color: var(--peach);
  min-height: 1.6em;
  margin: 0.7rem 0;
}
.wt-next {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  flex-wrap: wrap;
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--line);
}
.wt-next > div {
  flex: 1;
  min-width: 240px;
}
.wt-next h2 {
  font-size: 1.1rem;
  margin: 0 0 0.35rem;
}
.wt-next p {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}
.wt-next a {
  font-size: 0.875rem;
  min-height: 44px;
}
.wt-guide {
  margin-top: 2.5rem;
}
.wt-guide > h2 {
  font-size: 1.4rem;
  color: var(--peach);
}
.wt-guide-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  margin: 1.4rem 0;
}
.wt-guide h3 {
  font-size: 1rem;
  margin: 0 0 0.6rem;
}
.wt-guide article p,
.wt-guide details p {
  font-size: 1rem;
  line-height: 1.9;
  color: var(--ink-soft);
}
.wt-guide details {
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}
.wt-guide summary {
  font-size: 1rem;
  cursor: pointer;
  line-height: 1.7;
}
.wt-guide details p {
  max-width: 780px;
  margin: 0.8rem 0;
}
.wt-main [hidden] {
  display: none !important;
}
@media (max-width: 700px) {
  .wt-heading {
    margin-top: 1.4rem;
  }
  .wt-workspace {
    grid-template-columns: minmax(0, 1fr);
  }
  .wt-display {
    padding: 1.6rem 0;
  }
  .wt-house {
    width: 48px;
    height: 48px;
    float: right;
    margin: 0.2rem 0 0 1rem;
  }
  .wt-clock {
    font-size: clamp(2.8rem, 12vw, 4.2rem);
  }
  .wt-form {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding: 1.4rem 0;
  }
  .wt-totals {
    margin-top: 1.3rem;
  }
  .wt-next {
    gap: 0.65rem;
  }
  .wt-next > div {
    flex-basis: 100%;
    margin-bottom: 0.5rem;
  }
  .wt-guide-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .wt-guide {
    margin-top: 1.8rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt-progress span {
    transition: none;
  }
}
