:root {
  --page: #f7f8f5;
  --ink: #17231e;
  --muted: #64756d;
  --green: #177a58;
  --green-deep: #0f513b;
  --terracotta: #df694f;
  --line: #dbe4de;
  color: var(--ink);
  background: var(--page);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { min-width: 320px; margin: 0; background: var(--page); }
a { color: inherit; }
.home-header, .home-footer { width: min(1120px, calc(100% - 48px)); margin-inline: auto; }
.home-header { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.home-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--green-deep); font-weight: 750; text-decoration: none; }
.brand-mark { width: 28px; height: 28px; display: grid; place-items: center; border: 1px solid var(--green); border-radius: 50%; color: var(--green); font-size: 18px; line-height: 1; }
.header-note, .home-footer { color: var(--muted); font-size: 13px; }
.home-main { width: min(1120px, calc(100% - 48px)); min-height: calc(100vh - 168px); margin-inline: auto; padding: 52px 0 58px; }
.home-intro { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.7fr); align-items: end; gap: 8%; padding-bottom: 44px; }
.home-intro .eyebrow { grid-column: 1 / -1; margin: 0 0 18px; color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 0.18em; }
.home-intro .eyebrow span { margin-left: 7px; color: var(--terracotta); }
.home-intro h1 { margin: 0; font-size: 50px; line-height: 1.2; letter-spacing: 0; }
.home-intro h1 em { color: var(--green); font-style: normal; }
.home-intro > p:last-child { max-width: 440px; margin: 0 0 4px; color: var(--muted); font-size: 16px; line-height: 1.8; }
.questionnaire-directory { border-bottom: 1px solid var(--line); }
.questionnaire-entry { min-height: 154px; display: grid; grid-template-columns: 58px minmax(0, 1fr) 190px 112px; align-items: center; gap: 24px; padding: 24px 20px 24px 0; border-top: 1px solid var(--line); }
.questionnaire-entry-active { text-decoration: none; transition: background 180ms ease, color 180ms ease; }
.questionnaire-entry-active:hover { color: var(--green-deep); background: #eef5f0; }
.questionnaire-entry-active:focus-visible { outline: 3px solid rgba(44, 122, 135, 0.2); outline-offset: 3px; }
.entry-number { align-self: start; padding-top: 4px; color: var(--terracotta); font-size: 12px; font-weight: 800; }
.entry-copy { min-width: 0; display: grid; gap: 7px; }
.entry-category { color: var(--green); font-size: 10px; font-weight: 800; letter-spacing: 0.16em; }
.entry-copy strong { font-size: 27px; letter-spacing: 0; }
.entry-copy > span:last-child { max-width: 590px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.entry-meta { color: var(--muted); font-size: 13px; line-height: 1.7; }
.entry-meta b { color: var(--ink); font-size: 16px; }
.entry-action { color: var(--green); font-size: 13px; font-weight: 750; text-align: right; }
.entry-status { color: var(--terracotta); font-size: 13px; font-weight: 750; text-align: right; }
.questionnaire-entry-disabled { color: #718078; background: rgba(255, 255, 255, 0.34); }
.questionnaire-entry-disabled .entry-category, .questionnaire-entry-disabled .entry-number { color: #89988f; }
.home-footer { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-top: 1px solid var(--line); }

@media (max-width: 760px) {
  .home-header, .home-footer, .home-main { width: min(100% - 40px, 1120px); }
  .home-header { min-height: 78px; }.header-note { display: none; }
  .home-main { padding: 38px 0 46px; }
  .home-intro { display: block; padding-bottom: 32px; }
  .home-intro h1 { margin-bottom: 20px; font-size: 36px; }
  .home-intro > p:last-child { font-size: 15px; }
  .questionnaire-entry { min-height: 0; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 24px 0; }
  .entry-copy strong { font-size: 23px; }
  .entry-meta, .entry-action, .entry-status { grid-column: 2; text-align: left; }
  .entry-action { min-height: 44px; display: flex; align-items: center; }
  .home-footer { min-height: 82px; align-items: flex-start; flex-direction: column; justify-content: center; gap: 3px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0.01ms !important; }
}
