:root {
  color-scheme: light;
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  color: #1c302a;
  background: #f4f6f2;
  --muted: #52665e;
  --line: #dce5de;
  --green: #215744;
  --white: #fff;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; line-height: 1.55; }
button, input, select { font: inherit; }
button, select, summary { cursor: pointer; }
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid #568e70;
  outline-offset: 3px;
}
.container { width: min(1160px, calc(100% - 56px)); margin-inline: auto; }
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; min-height: 66px; }
.brand { display: inline-flex; gap: 7px; align-items: center; font-weight: 750; text-decoration: none; letter-spacing: -.03em; }
.brand > span:last-child { color: var(--green); font-weight: 550; }
.brand-mark { background: #204a3a; width: 27px; height: 27px; border-radius: 7px; display: flex; align-items: end; justify-content: center; gap: 2px; padding: 6px; margin-right: 4px; }
.brand-mark i { width: 3px; border-radius: 2px; background: #d5ebb2; height: 5px; }
.brand-mark i:nth-child(2) { height: 9px; }
.brand-mark i:nth-child(3) { height: 14px; }
.toplink { color: var(--green); font-weight: 650; font-size: .9rem; text-underline-offset: .24em; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, 288px); align-items: end; gap: 36px; margin-block: 28px 32px; border-radius: 20px; padding: clamp(24px, 4.5vw, 54px); background: #14362c; color: #f7faf5; }
.eyebrow { margin: 0 0 .6rem; color: #d4e9b5; font-size: .94rem; font-weight: 660; }
h1 { margin: 0; line-height: 1.14; font-size: clamp(2rem, 5vw, 3.35rem); letter-spacing: -.05em; }
.intro-text { color: #dce8df; margin: 15px 0 0; max-width: 33rem; }
.progress-box { align-self: center; background: #234639; padding: 19px; border: 1px solid #3d5e50; border-radius: 13px; }
.progress-heading { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; }
.progress-heading strong { color: #ddedbd; font-variant-numeric: tabular-nums; white-space: nowrap; }
.progress-box p { margin: 4px 0 0; font-size: .875rem; color: #d1e0d4; }
progress { width: 100%; height: 8px; margin-top: 10px; border: 0; border-radius: 10px; overflow: hidden; background: #456356; color: #d0e5ad; appearance: none; }
progress::-webkit-progress-bar { background: #456356; }
progress::-webkit-progress-value { background: #d0e5ad; border-radius: 10px; }
progress::-moz-progress-bar { background: #d0e5ad; border-radius: 10px; }
.planner { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 28px; align-items: start; }
.phase-panel { border: 1px solid var(--line); border-radius: 15px; padding: 17px 12px 12px; background: var(--white); }
.phase-panel h2 { font-size: 1rem; margin: 0 11px 10px; }
.phases { display: grid; gap: 5px; }
.phase { display: block; width: 100%; border: 1px solid transparent; border-radius: 9px; background: transparent; text-align: left; color: inherit; padding: 9px 11px; }
.phase:hover { background: #f1f5ef; }
.phase[aria-current="true"] { background: #e8f1e5; border-color: #cfe0d0; color: #174c3a; }
.phase strong, .phase small { display: block; }
.phase strong { font-size: .94rem; }
.phase small { color: var(--muted); font-size: .875rem; margin-top: 1px; }
.schedule { min-width: 0; }
.schedule-heading, .week-bar, .week-info, .week-nav, .date-actions { display: flex; align-items: center; gap: 9px; }
.schedule-heading { justify-content: space-between; flex-wrap: wrap; margin-bottom: 17px; }
.schedule-heading h2, .resources h2 { margin: 0; font-size: clamp(1.35rem, 3vw, 1.65rem); letter-spacing: -.035em; }
.schedule-heading p { margin: 3px 0 0; color: var(--muted); font-size: .9rem; }
.dot { margin-inline: .45rem; }
.date-actions { flex-wrap: wrap; }
.date-label { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: .875rem; }
input[type=date], .button, select { color: #264638; min-height: 40px; background: var(--white); border: 1px solid #cddbd2; border-radius: 8px; padding: 6px 10px; font-size: .875rem; }
.button, select { font-weight: 650; }
.button:hover:not(:disabled) { background: #edf4ec; }
.button:disabled { opacity: .48; cursor: default; }
.primary { color: var(--white); background: var(--green); border-color: var(--green); }
.primary:hover:not(:disabled) { background: #1a4737; }
.week-bar { background: #eaf0e8; border: 1px solid #dbe5db; border-radius: 11px; padding: 10px; justify-content: space-between; flex-wrap: wrap; margin-bottom: 10px; }
.week-info { flex-wrap: wrap; }
.week-info strong { font-size: .94rem; }
select { appearance: none; padding-right: 28px; background: linear-gradient(45deg, transparent 50%, #315d47 50%) right 13px center/5px 5px no-repeat, linear-gradient(135deg, #315d47 50%, transparent 50%) right 8px center/5px 5px no-repeat, #fff; }
.days { display: grid; gap: 8px; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: 11px; overflow: hidden; }
.day.is-today { border-color: #79a58a; }
.day[open] { box-shadow: 0 3px 10px #223b2220; }
.day summary { display: grid; grid-template-columns: 60px minmax(0, 1fr) auto; align-items: center; gap: 14px; min-height: 66px; padding: 10px 16px; list-style: none; }
.day summary::-webkit-details-marker { display: none; }
.day summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid #547362; border-bottom: 2px solid #547362; transform: rotate(45deg); margin-right: 3px; }
.day[open] summary::after { transform: rotate(225deg); }
.day-date { color: var(--muted); font-size: .875rem; display: grid; line-height: 1.35; font-variant-numeric: tabular-nums; }
.day-date b { font-size: 1.02rem; color: #1d3c30; }
.day-title { display: flex; align-items: center; gap: 7px 10px; flex-wrap: wrap; font-weight: 700; overflow-wrap: anywhere; }
.tag { background: #edf3e8; color: #2c5940; font-size: .875rem; font-weight: 600; padding: 1px 7px; border-radius: 5px; }
.tag.done { background: #d8eadd; }
.day-body { padding: 13px 16px 17px 90px; border-top: 1px solid #ecf0eb; }
.slots { display: grid; gap: 12px; padding: 0; margin: 0 0 14px; list-style: none; }
.slots li { display: grid; grid-template-columns: 106px minmax(0, 1fr); gap: 8px; }
.slot-time { color: var(--green); font-size: .875rem; font-weight: 700; }
.slot-action { overflow-wrap: anywhere; }
.done-control { display: inline-flex; gap: 7px; align-items: center; font-size: .9rem; font-weight: 700; color: var(--green); cursor: pointer; }
.done-control input { width: 19px; height: 19px; accent-color: var(--green); }
.resources { margin-top: 36px; scroll-margin-top: 22px; }
.resources-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(210px, 100%), 1fr)); gap: 10px; margin-top: 12px; }
.resource-group { border: 1px solid var(--line); border-radius: 11px; background: var(--white); padding: 13px 14px; }
.resource-group h3 { margin: 0 0 6px; font-size: .94rem; }
.resource-group ul { margin: 0; padding-left: 1.15rem; }
.resource-group li { margin-block: 3px; }
.resource-group a { font-size: .9rem; color: var(--green); text-underline-offset: .2em; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px; padding-block: 22px; margin-top: 22px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.error { padding: 14px; background: var(--white); border: 1px solid #9f4741; border-radius: 10px; color: #862e28; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (max-width: 860px) {
  .planner { grid-template-columns: 1fr; gap: 17px; }
  .phases { grid-template-columns: repeat(auto-fit, minmax(135px, 1fr)); }
}
@media (max-width: 600px) {
  .container { width: calc(100% - 28px); }
  .topbar-inner { min-height: 54px; }
  .intro { grid-template-columns: 1fr; gap: 18px; margin-block: 16px 18px; border-radius: 14px; }
  .day summary { gap: 7px; grid-template-columns: 54px minmax(0, 1fr) auto; padding-inline: 12px; }
  .day-body { padding-inline: 13px; }
  .slots li { grid-template-columns: 92px minmax(0, 1fr); gap: 6px; }
  .date-actions { width: 100%; justify-content: space-between; }
}
