:root {
  color-scheme: light;
  font-family:
    Inter, "Segoe UI", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  background: #f3f1ec;
  color: #202124;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(31, 104, 129, 0.14), transparent 34%),
    linear-gradient(225deg, rgba(182, 79, 79, 0.12), transparent 42%),
    #f3f1ec;
}

button,
input {
  font: inherit;
}

.app-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 20px;
}

.eyebrow {
  margin: 0 0 6px;
  color: #52616b;
  font-size: 0.9rem;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 1;
  font-weight: 800;
}

.ghost-button,
.text-button,
.task-form button,
.delete-button {
  border: 0;
  cursor: pointer;
}

.ghost-button {
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid rgba(32, 33, 36, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.55);
  color: #202124;
}

.now-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1.28fr);
  gap: 18px;
  margin-bottom: 18px;
}

.clock,
.current-task,
.planner {
  border: 1px solid rgba(32, 33, 36, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 48px rgba(41, 47, 54, 0.08);
}

.clock {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px;
}

#currentTime {
  font-size: clamp(2.7rem, 8vw, 5.8rem);
  font-weight: 800;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

#currentDate {
  margin-top: 14px;
  color: #52616b;
}

.current-task {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
}

#statusLabel {
  color: #1f6881;
  font-weight: 700;
}

#taskTitle {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1.08;
}

#taskRange,
#countdown {
  color: #52616b;
}

.progress-track {
  height: 12px;
  overflow: hidden;
  border-radius: 999px;
  background: #e1ded6;
}

.progress-bar {
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1f6881, #b64f4f);
  transition: width 0.3s ease;
}

.planner {
  padding: 20px;
}

.task-form {
  display: grid;
  grid-template-columns: 150px 150px minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(32, 33, 36, 0.1);
}

label {
  display: grid;
  gap: 7px;
  color: #52616b;
  font-size: 0.86rem;
  font-weight: 700;
}

input {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(32, 33, 36, 0.18);
  border-radius: 8px;
  padding: 0 12px;
  background: #fffdfa;
  color: #202124;
}

.task-form button {
  height: 44px;
  min-width: 84px;
  border-radius: 8px;
  background: #202124;
  color: #ffffff;
  font-weight: 800;
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 0 8px;
}

.toolbar h2 {
  font-size: 1.15rem;
}

.text-button {
  background: transparent;
  color: #1f6881;
  font-weight: 800;
}

.task-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 8px;
}

.task-item {
  min-height: 62px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid rgba(32, 33, 36, 0.1);
  border-radius: 8px;
  padding: 12px 12px 12px 16px;
  background: #fffdfa;
}

.task-item.active {
  border-color: rgba(31, 104, 129, 0.48);
  background: #eef8f9;
}

.item-title {
  display: block;
  margin-bottom: 5px;
}

.item-range {
  color: #52616b;
  font-variant-numeric: tabular-nums;
}

.delete-button {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 50%;
  background: #f2ebe7;
  color: #8a3333;
  font-size: 1.4rem;
  line-height: 1;
}

@media (max-width: 760px) {
  .app-shell {
    width: min(100% - 20px, 620px);
    padding: 18px 0;
  }

  .hero,
  .toolbar {
    align-items: flex-start;
  }

  .hero {
    flex-direction: column;
  }

  .now-panel,
  .task-form {
    grid-template-columns: 1fr;
  }

  .clock {
    min-height: 160px;
  }

  .clock,
  .current-task,
  .planner {
    padding: 18px;
  }
}
