html {
  font-size: 0.9rem;
}

input {
  width: 80px;
}

#startTime {
  width: 150px;
}

#outputTime {
  text-align: left;
}

/* Compact, single-line header */
.site-header, .site-footer {
  margin: 0 auto;
  max-width: 960px;
  padding: 6px 12px;
}
.site-header {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  justify-content: space-between;
}
.site-header .brand {
  color: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
}
.site-header nav {
  align-items: center;
  display: flex;
  gap: 10px;
  white-space: nowrap;
}
.nav-link {
  color: inherit;
  padding: 6px 6px;
  text-decoration: none;
}
.nav-link.subtle {
  font-size: .95rem;
  opacity: .9;
}

@media (max-width: 640px) {
  .site-header {
    padding-bottom: 6px;
    padding-top: 6px;
  }
  .nav-link {
    font-size: .95rem;
    padding: 6px 4px;
  }
}

/* Flat footer links */
.site-footer .footer-links {
  display: flex;
  flex-wrap: wrap;
  font-size: .9rem;
  gap: 10px 14px;
  opacity: .85;
}
.site-footer .footer-links a {
  color: inherit;
  text-decoration: none;
}

/* Focus state for accessibility */
a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .site-footer .footer-links {
    font-size: .85rem;
    opacity: .8;
  }
}

/* Productivity % field: single-line input + suffix on small screens */
.pct-input {
  align-items: center;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto;
  max-width: 100%;
}
.pct-input input {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}
.pct-suffix {
  display: inline-block;
  line-height: 1;
  padding: 6px 8px;
}

/* Number input quirks */
input[type="number"] {
  -moz-appearance: textfield;
}
input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

/* Ensure form elements don’t overflow on narrow viewports */
form, .form, .content {
  box-sizing: border-box;
  max-width: 100%;
}
input, select, button {
  box-sizing: border-box;
  max-width: 100%;
}
