:root {
  color-scheme: dark;
  --ink: #f2f0ec;
  --muted: #858582;
  --line: #343434;
  --panel: #111111;
  --accent: #f2f2f0;
  --warm: #a5a5a2;
}

body {
  min-height: 100vh;
  background: #070707;
  color: var(--ink);
  font-family: "DM Mono", "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
.container {
  width: min(100% - 40px, 700px);
  min-height: 100vh;
  margin: auto;
  display: flex;
  flex-direction: column;
  padding: 30px 0 26px;
}
.topbar,
.quick-row,
.divider,
.bottom-bar,
.header-meta,
.brand,
.nav-item,
.settings-button {
  display: flex;
  align-items: center;
}
.topbar,
.quick-row,
.divider,
.bottom-bar {
  width: 100%;
}
.topbar {
  justify-content: space-between;
  font-size: 12px;
}
.brand {
  gap: 8px;
  color: var(--ink);
  font-size: 17px;
  font-weight: 700;
}
.brand-mark {
  width: 34px;
  height: 34px;
  object-fit: cover;
  border-radius: 4px;
}
.brand-dot {
  color: var(--warm);
}
.header-meta {
  gap: 7px;
  color: var(--muted);
  font-size: 10px;
}
.status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #bdbdb9;
}
.timer-view {
  width: min(100%, 610px);
  margin: auto;
  padding: 62px 0 45px;
  text-align: center;
}
.eyebrow {
  color: var(--warm);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
}
h1 {
  margin: 11px 0 5px;
  font-size: clamp(48px, 10vw, 78px);
  line-height: 1;
  font-weight: 400;
  letter-spacing: -3px;
}
.session-state {
  min-height: 18px;
  color: var(--muted);
  font-size: 12px;
}
.entry-form {
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  margin-top: 38px;
  border: 1px solid #dededb;
  border-radius: 13px;
  background: #0a0a0a;
  overflow: hidden;
  transition:
    box-shadow 0.2s,
    border-color 0.2s;
}
.entry-form:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px #ffffff12;
}
.link-icon {
  margin: 0 14px;
  color: #b9b9b4;
  font-size: 20px;
  transform: rotate(-45deg);
}
.entry-form input {
  min-width: 0;
  flex: 1;
  height: 100%;
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
  font: inherit;
  font-size: 13px;
  user-select: text;
  -webkit-user-select: text;
  -webkit-touch-callout: default;
}
.entry-form input::placeholder {
  color: #777773;
}
.start-button {
  height: 40px;
  margin-right: 5px;
  padding: 0 17px;
  border-radius: 9px;
  color: #0b0b0b;
  background: var(--accent);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}
.start-button span {
  margin-right: 6px;
  font-size: 10px;
}
.start-button.running {
  color: #fff;
  background: #292929;
}
.quick-row {
  justify-content: flex-start;
  margin-top: 9px;
}
.tag-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  min-height: 34px;
  width: 100%;
}
.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 8px 10px;
  border: 1px solid #8c8c87;
  border-radius: 4px;
  color: #d5d3ce;
  background: transparent;
  font-size: 11px;
  line-height: 1;
}
.tag:hover {
  color: #0b0b0b;
  background: var(--ink);
}
.divider {
  justify-content: space-between;
  margin: 28px 0 14px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.divider span:last-child {
  color: #686864;
  text-transform: none;
  letter-spacing: 0;
}
.timer-cards {
  display: grid;
  gap: 8px;
  text-align: left;
}
.timer-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 65px;
  padding: 12px 15px;
  border: 1px solid #2d2d2d;
  border-radius: 8px;
  background: #0d0d0d;
  animation: reveal 0.35s ease both;
  width: 100%;
  touch-action: none;
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-user-select: none;
}
.card-info {
  min-width: 0;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.card-project {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 5px 8px;
  border: 1px solid #8c8c87;
  border-radius: 4px;
  color: #d5d3ce;
  font-size: 10px;
  line-height: 1;
}
.card-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}
.card-project {
  display: inline-block;
  margin-top: 8px;
  padding: 4px 7px;
  border: 1px solid #484846;
  color: #a0a09c;
  font-size: 10px;
}
.card-time {
  color: var(--accent);
  font-size: 12px;
}
.empty-state {
  margin-top: 24px;
  color: #656561;
  font-size: 11px;
}
.bottom-bar {
  justify-content: center;
  gap: 4px;
  margin-top: auto;
}
.nav-item,
.settings-button {
  border: 1px solid #292929;
  color: #777773;
  background: #101010;
  font: inherit;
  font-size: 11px;
}
.nav-item {
  gap: 7px;
  padding: 10px 16px;
}
.nav-item:first-child {
  border-radius: 8px 0 0 8px;
}
.nav-item:nth-child(2) {
  border-radius: 0 8px 8px 0;
}
.nav-item.active {
  color: var(--ink);
}
.nav-item span {
  color: var(--warm);
}
.settings-button {
  width: 38px;
  height: 36px;
  justify-content: center;
  margin-left: 8px;
  border-radius: 8px;
  color: #aaa;
  font-size: 17px;
}
.reports-note {
  padding: 45px 0;
  color: var(--muted);
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@media (max-width: 520px) {
  .container {
    width: min(100% - 24px, 700px);
    min-height: 100svh;
    padding: 18px 0 20px;
  }
  .timer-view {
    width: 100%;
    padding: 48px 0 32px;
  }
  .header-meta {
    display: none;
  }
  .brand {
    font-size: 16px;
  }
  .brand-mark {
    width: 30px;
    height: 30px;
  }
  h1 {
    font-size: clamp(42px, 14vw, 64px);
    letter-spacing: -2px;
  }
  .entry-form {
    height: 50px;
    margin-top: 30px;
  }
  .link-icon {
    margin: 0 10px;
  }
  .entry-form input {
    width: 0;
    font-size: 12px;
  }
  .start-button {
    flex: 0 0 auto;
    padding: 0 12px;
  }
  .quick-row {
    align-items: stretch;
    margin-top: 10px;
  }
  .tag-picker {
    gap: 6px;
  }
  .tag {
    min-height: 27px;
    padding: 7px 9px;
    font-size: 10px;
  }
  .divider {
    margin-top: 30px;
  }
  .timer-card {
    min-height: 62px;
    padding: 11px 12px;
  }
  .card-title {
    max-width: calc(100vw - 130px);
  }
  .bottom-bar {
    padding-top: 12px;
  }
  .nav-item {
    padding: 10px 13px;
  }
}
