* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background: #fafafa;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro', sans-serif;
}

.layout {
  position: relative;
}

/* Card */
.card {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  box-shadow: 0px 2px 8px 0px rgba(0, 0, 0, 0.04);
  padding: 20px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 209px;
  overflow: hidden;
  cursor: pointer;
}

.title {
  font-size: 14px;
  font-weight: 550;
  color: #000;
  line-height: 16px;
}

.subtitle {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.4);
  line-height: 16px;
}

.progress-bar {
  position: relative;
  height: 10px;
  width: 174px;
}

.progress-track {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 6px;
  background: #eaf3fc;
  border-radius: 100px;
}

.progress-fill {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 6px;
  background: #2883df;
  border-radius: 100px;
  transition: width 0.3s ease;
}

.progress-thumb {
  display: block;
  position: absolute;
  top: -9px;
  width: 30px;
  height: 30px;
  transition: left 0.3s ease;
}

/* Panel */
.panel {
  position: absolute;
  top: -50px;
  left: calc(100% + 12px);
  background: #f9f8f7;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 320px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.panel--visible {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

.panel-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.panel-title {
  font-size: 16px;
  font-weight: 550;
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: -0.16px;
}

.panel-description {
  font-size: 14px;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: -0.14px;
  line-height: 20px;
}

/* Task list */
.task-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.task {
  background: #ffffff;
  border: 1px solid #e5e5e5;
  border-radius: 12px;
  padding: 12px 16px;
  box-shadow: 0px 4px 16px 0px rgba(0, 0, 0, 0.03);
  cursor: pointer;
}

.task--completed {
  background: rgba(40, 131, 223, 0.12);
  border-color: #2883df;
}

.task-inner {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.task-check {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.task-label {
  flex: 1;
  font-size: 14px;
  color: rgba(0, 0, 0, 0.8);
  letter-spacing: -0.14px;
  line-height: 20px;
}

.task-label--completed {
  color: #2883df;
  text-decoration: line-through;
}

/* Panel footer */
.panel-footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-progress-bar {
  background: #eaf3fc;
  border-radius: 100px;
  width: 30px;
  height: 6px;
  flex-shrink: 0;
}

.panel-progress-fill {
  background: #2883df;
  border-radius: 100px;
  width: 0%;
  height: 6px;
  transition: width 0.3s ease;
}

.panel-progress-label {
  font-size: 12px;
  font-weight: 600;
  color: rgba(0, 0, 0, 0.5);
  letter-spacing: -0.12px;
  opacity: 0.75;
}
