:root {
  --bg: #f6f5f2;
  --panel: #ffffff;
  --ink: #1c1b19;
  --muted: #6f6b64;
  --line: #e2ded6;
  --accent: #3d6b52;
  --accent-soft: #d9e8df;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181a;
    --panel: #1e2124;
    --ink: #e8e6e1;
    --muted: #9a958c;
    --line: #2c3034;
    --accent: #7fb79a;
    --accent-soft: #24352c;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  padding: 0 1.25rem 3rem;
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

.bar {
  display: flex;
  align-items: baseline;
  gap: .6rem;
  flex-wrap: wrap;
  max-width: 46rem;
  margin: 0 auto;
  padding: 2.5rem 0 1.5rem;
  border-bottom: 1px solid var(--line);
}

.mark { font-size: 1.5rem; color: var(--accent); }

h1 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 620;
  letter-spacing: -.01em;
}

.tag { margin: 0; color: var(--muted); font-size: .9rem; }

main { max-width: 46rem; margin: 0 auto; }

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.25rem;
  margin: 1.5rem 0;
}

.panel h2 {
  margin: 0 0 .9rem;
  font-size: .8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
}

.row {
  display: grid;
  grid-template-columns: 7rem 1fr auto;
  gap: .75rem;
  align-items: center;
  margin-bottom: .8rem;
}

label { color: var(--muted); font-size: .88rem; }

select {
  width: 100%;
  padding: .45rem .6rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--bg);
  color: var(--ink);
  font: inherit;
}

.clock {
  font-variant-numeric: tabular-nums;
  font-size: 1.25rem;
  font-weight: 600;
  min-width: 5.5rem;
  text-align: right;
}

.delta {
  margin: 1rem 0 0;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .92rem;
}

.strip {
  display: grid;
  grid-template-columns: repeat(24, 1fr);
  gap: 2px;
}

.strip span {
  height: 2.2rem;
  border-radius: 3px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: .62rem;
  color: var(--muted);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 2px;
}

.strip span.both {
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
  font-weight: 600;
}

.hint, .notes p { color: var(--muted); font-size: .88rem; }
.hint { margin: .7rem 0 0; }

.notes { margin: 2rem 0; }
.notes h2 {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--muted);
  margin-bottom: .5rem;
}

footer {
  max-width: 46rem;
  margin: 2.5rem auto 0;
  padding-top: 1.2rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: .82rem;
}

@media (max-width: 34rem) {
  .row { grid-template-columns: 1fr; }
  .clock { text-align: left; }
}
