[data-screen="tempo"] .timex-subject-marker,
[data-screen="tempo"] .timex-day-subjects > div > span i {
  background: var(--subject-color, #8e8a82);
}

[data-screen="tempo"] .timex-color-picker button {
  background: var(--picker-color, #f5ca3d);
}

.timex-loading,
.timex-auth-empty,
.timex-empty-state {
  display: flex;
  min-height: 240px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 2px solid var(--ink, #181818);
  border-radius: 8px;
  padding: 28px;
  background: #fffdf8;
  box-shadow: 6px 6px 0 var(--ink, #181818);
  text-align: center;
}

.timex-loading span {
  width: 28px;
  height: 28px;
  border: 3px solid #d5d1c7;
  border-top-color: #181818;
  border-radius: 50%;
  animation: timex-spin .8s linear infinite;
}

.timex-auth-empty span,
.timex-empty-state span,
.timex-empty-copy {
  color: #68645c;
  font-size: 10px;
}

.timex-auth-empty .dark-action {
  margin-top: 9px;
  text-decoration: none;
}

.timex-empty-state {
  min-height: 150px;
  grid-column: 1 / -1;
  box-shadow: none;
}

.timex-empty-active .timex-clock {
  color: #9b978e;
}

.timex-empty-copy {
  margin: 0 auto 28px;
  text-align: center;
}

.timex-running-status.is-paused {
  background: #f0eee8;
}

.timex-running-status.is-paused i {
  background: #bdb8ad;
  box-shadow: none;
}

.timex-subject-card.is-running {
  background: #fff7d9;
}

.timex-subject-card > .dark-action {
  width: 100%;
}

.timex-month-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 6px;
  text-align: center;
}

.timex-month-weekdays span {
  color: #625f57;
  font-size: 7px;
  font-weight: 900;
}

.timex-week-grid.timex-month-grid {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.timex-month-grid > button:first-child {
  grid-column-start: calc(var(--month-offset) + 1);
}

.timex-week-grid.timex-month-grid > button {
  min-height: 92px;
  padding: 8px 6px;
}

.timex-week-grid.timex-month-grid > button > i {
  height: 23px;
  margin: 7px 0 5px;
}

.timex-history-layout.is-month {
  grid-template-columns: minmax(0, 2fr) minmax(270px, .72fr);
}

.timex-no-day-data {
  display: flex !important;
  min-height: 170px !important;
  align-items: center;
  justify-content: center;
  border: 0 !important;
  color: #68645c;
  text-align: center;
}

.timex-no-day-data span {
  font-size: 9px !important;
  font-weight: 750 !important;
}

.timex-toast {
  position: fixed;
  z-index: 10000;
  right: 24px;
  bottom: 24px;
  max-width: min(360px, calc(100vw - 32px));
  border: 2px solid #181818;
  border-radius: 6px;
  padding: 13px 16px;
  background: #fffdf8;
  box-shadow: 4px 4px 0 #181818;
  font-size: 11px;
  font-weight: 800;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: opacity .18s ease, transform .18s ease;
}

.timex-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.timex-toast[data-tone="success"] {
  background: #d9f2df;
}

.timex-toast[data-tone="warning"] {
  background: #fff1bf;
}

.timex-toast[data-tone="error"] {
  background: #ffd9d3;
}

@keyframes timex-spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1080px) {
  .timex-history-layout.is-month {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .timex-week-grid.timex-month-grid {
    grid-template-columns: repeat(7, minmax(34px, 1fr));
    overflow-x: auto;
  }

  .timex-month-weekdays {
    min-width: 360px;
  }

  .timex-week-grid.timex-month-grid {
    min-width: 360px;
  }

  .timex-week-grid.timex-month-grid > button {
    min-height: 74px;
  }

  .timex-week-grid.timex-month-grid > button > span,
  .timex-week-grid.timex-month-grid > button > small {
    display: none;
  }

  .timex-week-grid.timex-month-grid > button > i {
    height: 18px;
  }

  .timex-toast {
    right: 16px;
    bottom: 16px;
  }
}
