:root {
  color-scheme: light;
  font: 16px/1.6 "DM Sans", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: #23382f;
  background: #f6f5ed;
  --ink: #173e32;
  --muted: #586a60;
  --rule: #d9dfd3;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button, a, summary, .stage-picker label { -webkit-tap-highlight-color: transparent; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { opacity: .65; cursor: wait; }
a { color: inherit; }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible {
  outline: 3px solid #2c735c; outline-offset: 3px;
}
[hidden] { display: none !important; }
.masthead, main { width: min(1112px, calc(100% - 80px)); margin: 0 auto; }
.masthead { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; border-bottom: 1px solid #cbd4c7; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font: 700 30px/1 Georgia, serif; letter-spacing: -1.8px; text-decoration: none; }
.brand-dot { color: #6a8253; }
.brand-mark { display: inline-block; position: relative; overflow: hidden; width: 27px; height: 21px; margin-right: 9px; border-radius: 4px; background: var(--ink); }
.brand-mark::before { content: ""; position: absolute; top: -10px; left: 5px; width: 15px; height: 15px; border: solid #e7edcb; border-width: 0 2px 2px 0; transform: rotate(45deg); }
nav { display: flex; align-items: center; gap: 14px; }
.text-button, .primary, .switch, .close { border: 0; font-weight: 600; }
.text-button, .switch, .close { color: var(--ink); background: transparent; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 19px; border-radius: 7px; background: var(--ink); color: white; text-decoration: none; font-size: 14px; }
.primary:hover { background: #275845; }
.text-button:hover, .switch:hover { text-decoration: underline; }
h1, h2, h3, h4, p { margin: 0; }
.intro { margin: 43px 0 29px; }
h1 { font-family: "Songti SC", "Noto Serif CJK SC", "SimSun", Georgia, serif; font-size: clamp(36px, 5vw, 58px); letter-spacing: -.045em; line-height: 1.23; color: var(--ink); }
.intro p { color: var(--muted); margin-top: 12px; }
.mobile-break { display: none; }
.demo { background: #fffef9; border: 1px solid #c9d2c4; border-radius: 15px; overflow: hidden; }
.case-header { background: #234737; color: #fbfff5; padding: 20px 30px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.kicker { font-size: 12px; font-weight: 600; letter-spacing: .12em; color: #c9d8bd; }
.case-header h2 { font-size: 25px; letter-spacing: .045em; margin-top: 2px; }
.people { display: flex; align-items: center; gap: 0; color: #e3eddb; font-size: 13px; }
.avatar { display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-weight: 600; }
.customer { background: #e7ebcf; color: #40513b; }
.advisor { background: #f4dec3; color: #69543b; }
.pair { width: 26px; height: 26px; border: 2px solid #234737; font-size: 11px; }
.pair + .pair { margin-left: -5px; margin-right: 7px; }
.stages { border: 0; padding: 0; margin: 0; min-width: 0; position: relative; }
.stages legend, .stage-radio { position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; overflow: hidden; clip-path: inset(50%); }
.stage-picker { display: flex; gap: 25px; padding: 0 30px; border-bottom: 1px solid var(--rule); }
.stage-picker label { display: block; padding: 12px 0; cursor: pointer; border-bottom: 3px solid transparent; color: var(--muted); font-size: 14px; }
#plan:checked ~ .stage-picker [for="plan"], #docs:checked ~ .stage-picker [for="docs"] { border-color: #376044; color: var(--ink); font-weight: 700; }
#plan:focus-visible ~ .stage-picker [for="plan"], #docs:focus-visible ~ .stage-picker [for="docs"] { outline: 2px solid #376044; outline-offset: -2px; }
.stage-panel { display: none; grid-template-columns: 1.07fr 1fr; }
#plan:checked ~ .panel-plan, #docs:checked ~ .panel-docs { display: grid; }
.mail, .tasks { padding: 23px 30px 25px; min-width: 0; }
.mail { border-right: 1px solid var(--rule); }
.tasks { background: #f9faf4; }
.stage-panel h3 { font-size: 13px; letter-spacing: .06em; color: var(--muted); margin-bottom: 13px; }
.mail h4 { font-size: 19px; line-height: 1.4; }
.byline { display: flex; align-items: center; gap: 9px; margin-top: 13px; font-size: 14px; font-weight: 600; }
.byline small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
blockquote { margin: 13px 0 17px; line-height: 1.85; }
mark { background: #e9edc8; color: inherit; }
.facts { padding: 10px 13px; background: #f2f4e9; border-radius: 7px; font-size: 13px; }
.facts div { display: flex; gap: 15px; }
.facts div + div { margin-top: 3px; }
.facts span, .owner { color: var(--muted); }
.task { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 11px 0; border-bottom: 1px solid var(--rule); }
.task:first-of-type { padding-top: 0; }
.task h4 { font-size: 16px; }
.owner { font-size: 13px; }
.done, .pending, .waiting { flex-shrink: 0; font-size: 12px; border-radius: 5px; padding: 2px 8px; }
.done { background: #e3edda; color: #37533c; }
.pending { background: #faebc8; color: #6b5022; }
.waiting { background: #e9ece6; color: #48574d; }
details { margin-top: 15px; }
summary { width: fit-content; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--ink); }
.draft { padding: 12px 14px; margin-top: 10px; background: #fffef9; border-left: 3px solid #8ca380; font-size: 14px; }
.draft p { margin-top: 4px; }
footer { color: var(--muted); margin: 15px 0 35px; font-size: 13px; }
dialog { width: min(416px, calc(100% - 32px)); padding: 30px; color: var(--ink); border: 1px solid var(--rule); border-radius: 14px; background: #fffef9; }
dialog::backdrop { background: rgb(18 36 26 / .51); }
dialog h2 { font-size: 24px; margin: 2px 25px 18px 0; }
.close { position: absolute; right: 13px; top: 10px; font-size: 27px; padding: 0 8px; }
form { display: grid; gap: 5px; }
form label { font-size: 14px; font-weight: 600; }
form label:not(:first-child) { margin-top: 11px; }
form input { width: 100%; border: 1px solid #9daea0; border-radius: 6px; padding: 8px 10px; background: white; color: #24382e; }
form small { font-size: 12px; color: var(--muted); }
.form-error { font-size: 14px; color: #8a3328; }
.form-error:empty { display: none; }
.submit { min-height: 42px; margin-top: 13px; }
.switch { display: block; margin: 12px auto 0; font-size: 13px; padding: 6px; }
@media (max-width: 700px) {
  .masthead, main { width: calc(100% - 32px); }
  .masthead { min-height: 64px; }
  .intro { margin: 28px 0 20px; }
  .case-header { padding: 17px 19px; }
  .stage-picker { padding: 0 19px; }
  .stage-panel { grid-template-columns: 1fr; }
  .mail, .tasks { padding: 18px 19px; }
  .mail { border-right: 0; border-bottom: 1px solid var(--rule); }
}
@media (max-width: 420px) {
  .mobile-break { display: block; }
  .intro p { font-size: 14px; }
  .brand { font-size: 26px; }
  nav { gap: 4px; }
  .primary { padding: 8px 12px; }
  .pair { display: none; }
}
