:root {
  color-scheme: light;
  --ink: #1d2925;
  --muted: #64736d;
  --green: #1d6754;
  --deep-green: #173d35;
  --line: #dce7e1;
  --surface: #fff;
  --canvas: #f3f7f4;
  --warn: #fff7e8;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--canvas); color: var(--ink); font-size: 17px; line-height: 1.65; }
a { color: var(--green); }
button, input, select, textarea { font: inherit; }
.site-header { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 14px max(18px, calc((100% - 1040px) / 2)); background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; color: var(--ink); text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--deep-green); color: white; font-size: 22px; font-weight: 700; }
.brand strong, .brand small { display: block; line-height: 1.3; }
.brand strong { font-size: 19px; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 13px; }
.admin-link { font-size: 14px; text-decoration: none; }
.page { width: min(100% - 32px, 1000px); min-height: calc(100vh - 180px); margin: 0 auto; padding: 20px 0 52px; }
.breadcrumbs { margin: 0 0 22px; color: var(--muted); font-size: 14px; }
.breadcrumbs a { text-decoration: none; }
.hero { padding: clamp(26px, 7vw, 58px); margin: 0 0 34px; border-radius: 22px; color: white; background: linear-gradient(135deg, #173d35, #2e7d65); }
.hero h1 { margin: 0; font-size: clamp(31px, 7vw, 48px); line-height: 1.2; }
.hero-copy { margin: 12px 0 0; color: #e5f1eb; font-size: 18px; }
.eyebrow { margin: 0 0 8px; color: #cde4d9; font-size: 14px; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { font-size: clamp(26px, 6vw, 36px); line-height: 1.35; }
h2 { font-size: 21px; line-height: 1.4; }
.section-heading, .card-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.section-heading { margin-bottom: 14px; }
.section-heading h2, .card-heading h2 { margin: 0; }
.section-heading span, .muted { color: var(--muted); font-size: 14px; }
.card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.feature-card, .content-card, .form-card, .share-card { display: block; position: relative; padding: 20px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: 0 4px 14px #183d3510; }
.feature-card { min-height: 126px; color: var(--ink); text-decoration: none; transition: border-color .15s, transform .15s; }
.feature-card:hover { border-color: #87b9a5; transform: translateY(-2px); }
.feature-card h3 { margin: 2px 24px 6px 0; font-size: 20px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; }
.card-arrow { position: absolute; top: 14px; right: 18px; color: var(--green); font-size: 25px; }
.page-heading { margin: 0 0 23px; }
.page-heading h1 { margin: 0 0 7px; }
.page-heading p { margin: 0 0 16px; color: var(--muted); }
.stack { display: grid; gap: 14px; }
.content-card h2 { margin: 0 0 7px; }
.content-card p { margin: 6px 0 14px; }
.content-card .button { margin-top: 12px; }
.button { display: inline-flex; justify-content: center; align-items: center; min-height: 48px; padding: 10px 18px; border: 1px solid var(--green); border-radius: 12px; background: var(--green); color: white; font-weight: 700; text-align: center; text-decoration: none; cursor: pointer; }
.button-primary { border-color: var(--deep-green); background: var(--deep-green); }
.button-outline { border-color: #b7cec3; background: white; color: var(--deep-green); }
.button-light { border-color: white; background: white; color: var(--deep-green); }
.button-wide { width: 100%; }
.text-button { padding: 8px 10px; border: 0; background: transparent; color: var(--green); font-weight: 600; cursor: pointer; }
.badge { flex: 0 0 auto; padding: 3px 10px; border-radius: 99px; font-size: 13px; }
.badge-open { background: #e0f3e8; color: #1b6b43; }
.badge-muted { background: #eef0ef; color: #59645f; }
.document-content { margin: 18px 0 26px; padding: clamp(18px, 4vw, 32px); border: 1px solid var(--line); border-radius: 14px; background: white; }
.preserve-lines { white-space: pre-wrap; overflow-wrap: anywhere; }
.read-toolbar { display: flex; align-items: center; gap: 12px; margin: 12px 0; }
.notice { padding: 16px 18px; margin: 20px 0; border: 1px solid #d5e6dd; border-radius: 12px; background: #eff8f2; }
.notice p { margin: 4px 0 0; }
.notice-warn { border-color: #efdbb3; background: var(--warn); }
.form-card { margin: 18px 0; }
.form-card h2 { margin: 0 0 18px; }
.field { display: grid; gap: 7px; margin: 16px 0; }
.field > label { font-weight: 650; }
.field input:not([type="checkbox"]):not([type="file"]), .field select, .field textarea { width: 100%; min-height: 48px; padding: 10px 12px; border: 1px solid #b8c8c0; border-radius: 10px; background: white; color: var(--ink); }
.field textarea { min-height: 140px; resize: vertical; }
.field input[type="file"] { width: 100%; padding: 10px; border: 1px dashed #9cb8aa; border-radius: 10px; background: #f8fbf9; }
.check-line { display: flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.check-line input { flex: 0 0 auto; width: 24px; height: 24px; margin: 3px 0 0; accent-color: var(--green); }
.consent-box { padding: 16px; border: 1px solid #d9e7df; border-radius: 12px; background: #f7fbf8; }
.signer-fields[hidden] { display: none; }
.signature-wrap { overflow: hidden; border: 2px solid #aebfb5; border-radius: 10px; background: white; touch-action: none; }
#signature-canvas { display: block; width: 100%; height: auto; aspect-ratio: 3 / 1; cursor: crosshair; touch-action: none; }
.signature-actions { display: flex; justify-content: space-between; align-items: center; }
.field-error { margin: 0; color: #a42e27; font-size: 14px; }
.response { margin-top: 18px; padding: 14px; border-left: 4px solid var(--green); background: #f2f8f4; }
.photo-grid, .gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 10px; margin-top: 14px; }
.photo-grid img, .gallery-grid img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; background: #edf2ef; }
.gallery-grid figure { margin: 0; padding: 10px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.gallery-grid figcaption { padding: 6px 2px 0; font-size: 14px; }
.contact-card { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.contact-card h2, .contact-card p { margin: 0; }
.download-card { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 22px; padding: 22px; border-radius: 16px; background: var(--deep-green); color: white; }
.download-card h2, .share-card h2 { margin: 0 0 5px; }
.download-card p, .share-card p { margin: 0; }
.share-card { display: flex; justify-content: space-between; align-items: center; gap: 18px; margin-top: 16px; }
.share-card p { color: var(--muted); }
.empty-state { padding: 24px; border: 1px dashed #b6c8bf; border-radius: 14px; color: var(--muted); text-align: center; }
.messages { margin-bottom: 16px; }
.message { padding: 12px 16px; border-radius: 10px; background: #e7f4eb; }
.message.error { background: #fff0ed; color: #8d291f; }
.site-footer { padding: 20px 16px 28px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; text-align: center; }
.site-footer p { margin: 0 0 5px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.poster-page { display: grid; justify-items: center; gap: 18px; }
.poster { display: flex; width: min(100%, 520px); min-height: 700px; flex-direction: column; align-items: center; justify-content: center; padding: 36px 26px; border: 1px solid var(--line); border-radius: 22px; background: linear-gradient(160deg, #f3fbf5, #fff 62%); text-align: center; box-shadow: 0 8px 26px #173d3515; }
.poster h1 { margin: 8px 0; color: var(--deep-green); font-size: 38px; }
.poster p { margin: 5px 0 18px; color: var(--muted); }
.poster img { width: min(72vw, 280px); height: auto; margin: 18px 0; }
.poster strong { color: var(--deep-green); }
.poster small { margin-top: 12px; color: var(--muted); overflow-wrap: anywhere; }
@media print {
  body { background: white; }
  .site-header, .breadcrumbs, .site-footer, .print-button { display: none !important; }
  .page { width: 100%; min-height: 0; padding: 0; }
  .poster { width: 100%; min-height: 95vh; border: 0; box-shadow: none; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .card-grid { gap: 10px; }
  .feature-card { min-height: 118px; padding: 16px 14px; }
  .feature-card h3 { font-size: 18px; }
  .feature-card p { font-size: 14px; }
  .content-card, .form-card { padding: 16px; }
  .download-card, .share-card { align-items: stretch; flex-direction: column; }
  .contact-card { align-items: flex-start; flex-direction: column; }
  .contact-card .button { width: 100%; }
}
