:root {
  color-scheme: light dark;
  --accent: #1f5fd1;
  --line: #8886;
  --warn: #a4320f;
  --good: #1d6b35;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font: 17px/1.6 system-ui, sans-serif;
  /* Long URLs and package names must wrap instead of pushing the page sideways at 320 px. */
  overflow-wrap: anywhere;
}
header, main, footer {
  max-width: 48rem;
  margin: 0 auto;
  padding: 16px 20px;
}
header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
}
header a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
}
nav { display: flex; flex-wrap: wrap; gap: 8px; }
.brand { font-weight: 700; text-decoration: none; color: inherit; }
h1 { font-size: clamp(1.6rem, 5vw, 2.3rem); line-height: 1.15; margin: 12px 0; text-wrap: balance; }
h2 { margin-top: 2.2rem; }
h3 { margin-bottom: 0; font-size: 1rem; }
.lede { font-size: 1.1rem; }
.drop {
  display: block;
  margin: 20px 0 12px;
  padding: 28px 20px;
  border: 2px dashed var(--accent);
  border-radius: 12px;
  text-align: center;
  cursor: pointer;
}
.drop.over { background: #1f5fd11a; }
.drop input { display: block; margin: 14px auto 0; max-width: 100%; min-height: 44px; }
textarea {
  display: block;
  width: 100%;
  margin: 4px 0 12px;
  padding: 8px;
  font: 14px/1.4 ui-monospace, monospace;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 10px 0; }
#days { width: 5.5em; min-height: 44px; padding: 4px 8px; font: inherit; }
button {
  min-height: 44px;
  padding: 8px 18px;
  border-radius: 8px;
  border: 1px solid var(--accent);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
#go { background: var(--accent); color: #fff; }
#stop { background: transparent; color: inherit; }
button:disabled { opacity: .6; cursor: progress; }
#status { min-height: 1.6em; }
.hint { font-size: .95rem; margin: 4px 0; }
.error { color: var(--warn); font-weight: 600; }
.flag { color: var(--warn); }
.ok { color: var(--good); }
table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: .95rem; }
caption { text-align: left; font-weight: 600; padding-bottom: 6px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; }
.links { padding-left: 1.2rem; line-height: 2.2; }
footer { margin-top: 40px; font-size: .9rem; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (prefers-color-scheme: dark) {
  :root { --accent: #7aa7ff; --warn: #ff9b7a; --good: #7fd69a; }
  #go { color: #111; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
