:root {
  color-scheme: light;
  --ink: #172640;
  --muted: #687891;
  --line: #dce4ef;
  --surface: #ffffff;
  --ground: #f1f4f8;
  --blue: #2468db;
  --blue-deep: #1755b9;
  --green: #1d8064;
  --amber: #a96b20;
}
* { box-sizing: border-box; }
html { font-family: "Microsoft YaHei UI", "PingFang SC", "Noto Sans CJK SC", sans-serif; }
body { margin: 0; background: var(--ground); color: var(--ink); }
.panel { width: min(100%, 440px); min-height: 100vh; margin: 0 auto; padding: 0 22px 28px; background: var(--surface); box-shadow: 0 10px 34px #233e6612; }
.masthead { height: 64px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 700; letter-spacing: .02em; }
.brand-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--blue); color: white; font-size: 15px; }
.preview-mark { padding: 5px 8px; border-radius: 5px; background: #fff4e7; color: #895618; font-size: 11px; font-weight: 700; }
.intro { padding: 28px 2px 22px; }
.eyebrow { margin: 0 0 8px; color: var(--blue); font-size: 11px; font-weight: 700; letter-spacing: .16em; }
h1 { margin: 0; font-size: 25px; line-height: 1.45; font-weight: 750; letter-spacing: -.035em; }
.intro-copy { margin: 10px 0 0; max-width: 29em; color: var(--muted); font-size: 12px; line-height: 1.8; }
.form-card { padding: 22px 18px 20px; border: 1px solid var(--line); border-radius: 16px; background: #fff; box-shadow: 0 8px 24px #1f41600a; }
label { display: block; margin: 0 0 8px; font-size: 12px; font-weight: 700; }
select, input { width: 100%; height: 42px; border: 1px solid #cad5e5; border-radius: 8px; background: #fff; color: var(--ink); padding: 0 12px; font: inherit; font-size: 13px; outline: none; }
select { margin-bottom: 20px; }
select:disabled { color: #9ba8ba; background: #f7f9fc; }
select:focus, input:focus, button:focus-visible { border-color: var(--blue); box-shadow: 0 0 0 3px #2468db22; }
.field-note { min-height: 16px; margin: -13px 0 18px; color: var(--muted); font-size: 11px; }
.date-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
button { width: 100%; height: 44px; margin-top: 23px; border: 0; border-radius: 8px; background: var(--blue); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; transition: background .15s ease; }
button:hover { background: var(--blue-deep); }
.result { margin-top: 18px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcff; }
.result h2 { margin: 0 0 5px; font-size: 14px; }
.result p { margin: 0 0 12px; color: var(--muted); font-size: 11px; line-height: 1.6; }
.day-list { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.day { min-height: 43px; border-radius: 7px; padding: 7px 2px 4px; text-align: center; background: #e9f5ef; color: var(--green); font-family: Bahnschrift, "Microsoft YaHei UI", sans-serif; font-size: 11px; font-weight: 700; }
.day.missing { background: #fff1df; color: var(--amber); }
.day span { display: block; margin-top: 2px; font-family: "Microsoft YaHei UI", sans-serif; font-size: 9px; font-weight: 400; }
.result .status { margin-top: 13px; margin-bottom: 0; font-weight: 700; color: var(--ink); }
.result.error { border-color: #f0c7bd; background: #fff9f7; }
.footnote { margin: 19px 2px 0; color: #8491a3; font-size: 11px; line-height: 1.7; }
@media (max-width: 370px) { .panel { padding-left: 14px; padding-right: 14px; } .form-card { padding-left: 13px; padding-right: 13px; } h1 { font-size: 22px; } }
@media (prefers-reduced-motion: reduce) { button { transition: none; } }

.download-link{display:block;margin-top:12px;padding:11px;border:1px solid #bfdbfe;border-radius:10px;color:#0757b9;background:#eff6ff;text-decoration:none;overflow-wrap:anywhere}.download-link:hover{text-decoration:underline}.merge-button{display:block;margin-top:14px;width:100%;padding:12px;border:0;border-radius:10px;background:#156df4;color:white;font-weight:600;cursor:pointer}.merge-button:disabled{opacity:.6;cursor:wait}
