:root {
  color-scheme: light;
  --ink: #1d2a2e;
  --muted: #657174;
  --line: #d8e0dd;
  --paper: #fbfcf8;
  --panel: #ffffff;
  --green: #1f7a5b;
  --blue: #286f9f;
  --orange: #c76528;
  --yellow: #f4ce5a;
  --soft-green: #eaf5ef;
  --soft-blue: #eaf2f8;
  --soft-orange: #fff1e7;
  --soft-yellow: #fff8d8;
  --soft-gray: #f3f5f2;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans CJK SC", Arial, sans-serif;
  line-height: 1.55;
}

header {
  background: linear-gradient(180deg, #fff 0%, #f4faf7 100%);
  border-bottom: 1px solid var(--line);
  padding: 28px 0 18px;
}

.wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

header .wrap {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  margin-top: 4px;
  font-size: clamp(30px, 4vw, 48px);
  line-height: 1.1;
  letter-spacing: 0;
}

h2 {
  font-size: 22px;
  letter-spacing: 0;
}

h3 {
  font-size: 16px;
  letter-spacing: 0;
}

.eyebrow,
.subtitle {
  color: var(--muted);
}

.eyebrow {
  font-weight: 700;
}

button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  padding: 8px 12px;
}

button:hover {
  border-color: var(--green);
}

button.primary,
form button {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
}

main {
  padding: 22px 0 48px;
}

section,
aside,
.login-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.account {
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-panel {
  width: min(460px, 100%);
  margin: 36px auto;
}

form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input {
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  padding: 10px 12px;
}

.error {
  color: #a93624;
  min-height: 24px;
  margin-top: 10px;
}

.section-head,
.panel-title {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.phase-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  margin-top: 14px;
}

.phase,
.project,
.steps > div,
.weekly-box {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--soft-gray);
}

.phase span,
.project p {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-top: 4px;
}

.football {
  background: var(--soft-green);
  border-color: #b9dbc9;
}

.swim {
  background: var(--soft-blue);
  border-color: #bad3e6;
}

.focus,
.project {
  background: var(--soft-yellow);
  border-color: #e7d681;
}

.adjust,
.ready {
  background: var(--soft-orange);
  border-color: #edc5a8;
}

.main-grid,
.cards {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
  margin-top: 16px;
  align-items: start;
}

.calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  margin-top: 12px;
}

.weekday {
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  padding: 4px 0;
}

.day {
  min-height: 98px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: left;
}

.day.blank {
  visibility: hidden;
}

.day.selected {
  outline: 2px solid var(--green);
}

.day-num {
  font-weight: 700;
}

.tag {
  width: fit-content;
  border-radius: 999px;
  padding: 2px 7px;
  font-size: 12px;
  white-space: nowrap;
}

.day-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.stars {
  min-width: 92px;
  border: 1px solid #e7d681;
  border-radius: 8px;
  padding: 8px;
  background: var(--soft-yellow);
  text-align: center;
}

.stars strong,
.weekly-box strong {
  font-size: 28px;
  line-height: 1;
}

.stars span,
.weekly-box span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.task-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.task {
  grid-template-columns: 22px 1fr auto;
  align-items: start;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  font-weight: 400;
}

.task input {
  width: 18px;
  height: 18px;
  padding: 0;
  accent-color: var(--green);
}

.point {
  color: var(--orange);
  font-weight: 700;
  white-space: nowrap;
}

.weekly-box {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  background: var(--soft-yellow);
}

ul,
ol {
  margin: 10px 0 0;
  padding-left: 21px;
}

li {
  margin: 5px 0;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-bottom: 7px;
  border-radius: 50%;
  background: var(--green);
  color: #fff;
}

section + section {
  margin-top: 16px;
}

@media (max-width: 900px) {
  header .wrap,
  .main-grid,
  .cards,
  .phase-strip,
  .project-grid,
  .steps {
    grid-template-columns: 1fr;
    display: grid;
  }

  .day {
    min-height: 86px;
  }
}

@media print {
  .no-print,
  .account,
  .login-panel {
    display: none !important;
  }

  body {
    background: #fff;
  }

  section,
  aside {
    break-inside: avoid;
    margin-bottom: 12px;
  }

  .main-grid,
  .cards {
    display: block;
  }

  .phase-strip,
  .project-grid,
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}
