:root {
  color-scheme: light;
  --ink: #1d3029;
  --muted: #738079;
  --paper: #f7f8f5;
  --white: #fff;
  --green: #176b52;
  --green-dark: #104c3c;
  --green-pale: #e6f1eb;
  --line: #e6eae5;
  font-family: "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { min-height: 100vh; margin: 0; color: var(--ink); background: var(--paper); }
a { color: inherit; text-decoration: none; }
.wrap { width: min(900px, calc(100% - 40px)); margin: 0 auto; }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.8); }
.header-inner { display: flex; min-height: 76px; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; }
.brand img { width: 38px; height: 48px; object-fit: contain; }
.brand-copy { display: grid; gap: 3px; }
.brand-name { font-size: 16px; font-weight: 850; letter-spacing: 1px; }
.brand-tagline { color: var(--muted); font-size: 10px; }
.home-link { padding: 10px 15px; border-radius: 99px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 750; }
.home-link:hover { background: var(--green-dark); }
main { padding: 50px 0 65px; }
.page-card { padding: clamp(22px, 5vw, 42px); border: 1px solid var(--line); border-radius: 22px; background: var(--white); box-shadow: 0 8px 28px rgba(36,54,44,.04); }
.manager-card { margin-top: 18px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1.3px; text-transform: uppercase; }
h1, h2 { margin: 10px 0; font-size: clamp(24px, 4vw, 34px); letter-spacing: -1px; }
.intro, .page-card > p { color: var(--muted); font-size: 14px; line-height: 1.75; }
.page-form { display: grid; gap: 14px; margin-top: 25px; }
.page-form fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; }
.page-form label { display: grid; gap: 6px; color: #526159; font-size: 12px; font-weight: 700; }
.page-form input, .page-form textarea, .page-form select { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 10px; background: #f9faf8; color: var(--ink); font: inherit; }
.page-form textarea { min-height: 135px; resize: vertical; }
.page-form :disabled { cursor: not-allowed; opacity: .7; }
.page-form [hidden] { display: none !important; }
.conditional-fields { display: grid; gap: 14px; padding: 16px; border: 1px solid var(--line); border-radius: 14px; background: #fbfcfa; }
.field-help { margin: -5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.submit-button { width: fit-content; min-height: 40px; padding: 0 18px; border: 0; border-radius: 99px; background: var(--green); color: var(--white); font-size: 12px; font-weight: 750; }
.notice { margin-top: 18px; padding: 12px 14px; border-radius: 10px; background: #fff4dc; color: #6f571f; font-size: 12px; line-height: 1.6; }
.agreement-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 22px; }
.agreement-card { display: grid; align-content: start; gap: 10px; padding: 18px; border: 1px solid var(--line); border-radius: 15px; background: #fbfcfa; }
.agreement-card img { width: 100%; height: 90px; object-fit: contain; }
.agreement-card h3 { margin: 0; font-size: 15px; }
.agreement-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.agreement-document { color: var(--green); font-size: 12px; font-weight: 750; text-decoration: underline; text-underline-offset: 2px; }
.empty-agreements { grid-column: 1 / -1; margin: 0; padding: 24px; border: 1px dashed var(--line); border-radius: 12px; color: var(--muted); font-size: 13px; text-align: center; }
footer { padding: 25px 0; border-top: 1px solid var(--line); color: #89928c; font-size: 11px; text-align: center; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.footer-links a { padding: 9px 12px; border: 1px solid var(--line); border-radius: 99px; background: var(--white); color: var(--green-dark); font-weight: 700; }
.footer-links a:hover { background: var(--green-pale); }
@media (max-width: 540px) {
  .wrap { width: min(100% - 28px, 500px); }
  .header-inner { min-height: 68px; }
  .brand-tagline { max-width: 195px; font-size: 8px; }
  .home-link { padding: 9px 12px; font-size: 11px; }
  main { padding: 28px 0 40px; }
  .page-card { border-radius: 17px; }
  .footer-links { gap: 6px; }
  .footer-links a { padding: 8px 10px; font-size: 10px; }
}
