.today-routines-panel {
  width: min(820px, 100%);
  margin-inline: auto;
  padding: clamp(28px, 5vw, 42px);
}

.today-routines-panel > h2 {
  margin: 12px 0 30px;
  font-size: clamp(36px, 5vw, 48px);
  line-height: 1.05;
}

.today-routines-count {
  display: block;
  margin-bottom: 24px;
  color: color-mix(in srgb, var(--accent) 76%, var(--ink));
  font-size: clamp(18px, 3vw, 22px);
}

.today-routine-list {
  display: grid;
  gap: 14px;
}

.today-routine-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  width: 100%;
  min-height: 126px;
  padding: 22px 24px;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  border-radius: 24px;
  background:
    radial-gradient(circle at 94% 50%, color-mix(in srgb, var(--soft) 64%, transparent), transparent 38%),
    linear-gradient(115deg, var(--paper), color-mix(in srgb, var(--soft) 48%, var(--paper)));
  color: var(--ink);
  text-align: left;
  box-shadow: 0 10px 25px rgba(67, 48, 42, .035);
}

.today-routine-row:nth-child(2n) {
  background:
    radial-gradient(circle at 12% 50%, color-mix(in srgb, var(--soft) 44%, transparent), transparent 35%),
    linear-gradient(115deg, color-mix(in srgb, var(--paper) 90%, var(--soft)), var(--paper));
}

.today-routine-row:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
  box-shadow: 0 14px 30px color-mix(in srgb, var(--accent) 11%, transparent);
}

.today-routine-row:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent);
  outline-offset: 3px;
}

.today-routine-mark {
  color: color-mix(in srgb, var(--accent) 72%, var(--ink));
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: center;
}

.today-routine-copy {
  display: grid;
  min-width: 0;
}

.today-routine-copy > strong {
  overflow: hidden;
  font-size: 20px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-routine-copy > small {
  margin-top: 5px;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.today-routine-progress {
  display: block;
  height: 7px;
  margin-top: 14px;
  overflow: hidden;
  border-radius: 99px;
  background: color-mix(in srgb, var(--line) 84%, var(--paper));
}

.today-routine-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--accent);
}

.today-routine-percent {
  min-width: 48px;
  padding: 8px 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 76%, transparent);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-align: center;
}

.today-routine-empty {
  padding: 30px 20px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

.today-routine-empty .primary {
  margin-top: 8px;
}

html[data-theme="midnight"] .today-routine-row {
  box-shadow: none;
}

@media (max-width: 580px) {
  .today-routines-panel {
    padding: 28px 20px;
    border-radius: 18px;
  }

  .today-routines-panel > h2 {
    margin-bottom: 28px;
    font-size: 36px;
  }

  .today-routines-count {
    margin-bottom: 22px;
    font-size: 19px;
  }

  .today-routine-row {
    grid-template-columns: 52px minmax(0, 1fr) auto;
    gap: 13px;
    min-height: 122px;
    padding: 20px 16px;
    border-radius: 22px;
  }

  .today-routine-copy > strong {
    font-size: 18px;
  }

  .today-routine-copy > small {
    font-size: 13px;
  }

  .today-routine-percent {
    min-width: 45px;
    padding-inline: 7px;
    font-size: 13px;
  }
}

@media (max-width: 390px) {
  .today-routine-row {
    grid-template-columns: 44px minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 12px;
  }

  .today-routine-copy > strong {
    font-size: 17px;
  }
}
