:root {
  color: #21324a;
  background: #f5f7f1;
  font-family: Inter, "Noto Sans SC", "Microsoft YaHei", system-ui, sans-serif;
  font-synthesis: none;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; }
.hero { background: #17253b; color: #f7f4e9; border-bottom: 6px solid #d97706; }
.hero-inner { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 78px 0 66px; }
.eyebrow { margin: 0 0 18px; color: #e7b46a; font: 700 12px/1.4 ui-monospace, monospace; letter-spacing: .18em; }
h1 { max-width: 850px; margin: 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(42px, 7vw, 78px); line-height: 1.05; letter-spacing: -.035em; }
h1 span { color: #b8d29e; }
.intro { max-width: 700px; margin: 28px 0 0; color: #cbd4df; font-size: 18px; line-height: 1.8; }
.start-link { display: inline-flex; margin-top: 28px; padding: 12px 16px; border: 1px solid #71819a; color: #fff; text-decoration: none; font-weight: 700; }
.start-link:hover { border-color: #e7b46a; color: #e7b46a; }
.stats { display: flex; gap: 42px; margin-top: 46px; }
.stats div { display: grid; gap: 3px; }
.stats strong { font: 700 30px/1 Georgia, serif; color: #fff; }
.stats span { color: #9fadc0; font-size: 13px; }
main { width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding: 48px 0 80px; }
.starter { scroll-margin-top: 20px; margin-bottom: 70px; padding: 32px; background: #fff; border: 1px solid #d8dfd1; border-top: 5px solid #d97706; box-shadow: 0 12px 36px rgba(28, 48, 43, .08); }
.starter-heading { display: grid; grid-template-columns: 1fr minmax(280px, 440px); gap: 36px; align-items: end; }
.starter-heading h2, .collection-heading h2 { margin: 5px 0 0; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(28px, 4vw, 42px); }
.starter-heading > p { margin: 0; color: #68778f; line-height: 1.75; }
.section-kicker { margin: 0; color: #d97706; font: 700 11px/1.4 ui-monospace, monospace; letter-spacing: .18em; }
.journey { display: grid; grid-template-columns: repeat(4, 1fr); margin: 30px 0; border: 1px solid #d8dfd1; }
.journey div { display: grid; gap: 7px; padding: 18px; border-right: 1px solid #d8dfd1; }
.journey div:last-child { border-right: 0; }
.journey b { color: #d97706; font: 700 13px/1 ui-monospace, monospace; }
.journey span { font-weight: 700; }
.starter-form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; padding: 24px; background: #f5f7f1; }
.starter-form label { display: grid; gap: 7px; color: #46566d; font-size: 13px; font-weight: 700; }
.starter-form .wide { grid-column: 1 / -1; }
.starter-form small { color: #7b8798; font-weight: 400; }
.starter-form button { min-height: 46px; align-self: end; border: 0; background: #27446e; color: #fff; font: 700 15px/1 inherit; cursor: pointer; }
.starter-form button:hover { background: #1b355b; }
.starter-result { display: grid; gap: 14px; margin-top: 24px; }
.starter-result article { position: relative; padding: 20px; background: #17253b; color: #fff; }
.starter-result article > div { display: flex; gap: 12px; align-items: baseline; padding-right: 70px; }
.starter-result article b { color: #e7b46a; font-size: 12px; }
.starter-result h3 { margin: 0; font-size: 16px; }
.starter-result pre { margin: 16px 0 0; padding: 14px; overflow-x: auto; background: #0f1a2b; color: #dce5ef; white-space: pre-wrap; word-break: break-word; line-height: 1.6; }
.copy-btn { position: absolute; top: 16px; right: 16px; padding: 7px 11px; border: 1px solid #71819a; background: transparent; color: #fff; cursor: pointer; }
.paper-dir { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 16px 20px; background: #fff7e8; border: 1px solid #f0d9a8; color: #8a5a12; }
.paper-dir span { font-weight: 700; }
.paper-dir code { font: 700 15px/1.4 ui-monospace, monospace; color: #b4530a; word-break: break-all; }
.result-note { margin: 0; padding: 20px 22px; background: #edf3e8; color: #47613c; border: 1px solid #d3e0c8; line-height: 1.7; }
.result-note .note-lead { margin: 0 0 14px; font-weight: 700; color: #3c5630; }
.result-note .note-tail { margin: 14px 0 0; color: #5a7349; }
.result-commands { counter-reset: step; margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.result-commands li { display: flex; align-items: center; gap: 12px; }
.result-commands li::before { counter-increment: step; content: counter(step); flex: 0 0 auto; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #47613c; color: #fff; font: 700 13px/1 ui-monospace, monospace; }
.result-commands code { flex: 1 1 auto; padding: 10px 13px; background: #fbfcf9; border: 1px solid #d3e0c8; border-radius: 6px; font: 700 14px/1.4 ui-monospace, monospace; color: #2f4226; word-break: break-all; }
.collection-heading { margin-bottom: 22px; }
.toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 16px; padding: 18px; background: #fff; border: 1px solid #d8dfd1; box-shadow: 0 8px 28px rgba(28, 48, 43, .06); }
.toolbar label { display: grid; gap: 8px; color: #68778f; font-size: 12px; font-weight: 700; letter-spacing: .08em; }
input, select { width: 100%; min-height: 46px; border: 1px solid #cbd4df; background: #fbfcf9; padding: 0 14px; color: #21324a; font: inherit; outline: none; }
.starter-form input[readonly] { background: #eef1ec; color: #8a9486; border-style: dashed; cursor: not-allowed; }
input:focus, select:focus { border-color: #27446e; box-shadow: 0 0 0 3px rgba(39, 68, 110, .12); }
.result-summary { margin: 28px 0 16px; color: #68778f; }
.paper-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.paper-card { display: flex; flex-direction: column; min-width: 0; min-height: 310px; padding: 28px; background: #fff; border: 1px solid #d8dfd1; border-top: 4px solid #27446e; transition: transform .2s ease, box-shadow .2s ease; }
.paper-card:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(28, 48, 43, .1); }
.card-meta { display: flex; justify-content: space-between; gap: 14px; color: #68778f; font-size: 12px; }
.status { color: #228d5c; font-weight: 700; }
.paper-card h2 { margin: 25px 0 8px; font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(22px, 2vw, 26px); line-height: 1.25; overflow-wrap: anywhere; text-wrap: balance; }
.paper-card h2.title-long { font-size: clamp(20px, 1.75vw, 23px); }
.paper-card h2.title-compact { font-size: clamp(18px, 1.55vw, 21px); line-height: 1.3; }
.title-en { margin: 0; color: #68778f; line-height: 1.55; }
.topics { display: flex; flex-wrap: wrap; gap: 7px; margin: 24px 0; }
.topic { padding: 5px 9px; background: #edf3e8; color: #47613c; font-size: 12px; }
.participants { min-width: 0; margin: auto 0 18px; color: #68778f; font-size: 13px; overflow-wrap: anywhere; word-break: break-word; }
.actions { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.open-link { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 18px; background: #27446e; color: #fff; text-decoration: none; font-weight: 700; }
.paper-link { color: #27446e; text-decoration: none; font-size: 13px; }
.empty { padding: 70px 20px; text-align: center; color: #68778f; border: 1px dashed #b8c9a7; background: #fff; }
footer { padding: 28px 20px; background: #17253b; color: #9fadc0; text-align: center; font-size: 13px; }

@media (max-width: 720px) {
  .hero-inner { padding: 54px 0 48px; }
  .stats { gap: 24px; }
  .toolbar { grid-template-columns: 1fr; }
  .starter { padding: 22px 16px; }
  .starter-heading, .starter-form { grid-template-columns: 1fr; }
  .starter-form .wide { grid-column: auto; }
  .journey { grid-template-columns: 1fr 1fr; }
  .journey div:nth-child(2) { border-right: 0; }
  .journey div:nth-child(-n+2) { border-bottom: 1px solid #d8dfd1; }
  .paper-grid { grid-template-columns: 1fr; }
  .paper-card { min-height: 0; }
}
