:root {
  color-scheme: light;
  --ink: #202e28;
  --muted: #6b766f;
  --line: #dce3de;
  --green: #17634b;
  --surface: #f5f7f5;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; color: var(--ink); background: #fff; font: 15px/1.5 "Segoe UI", Arial, sans-serif; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--green); text-underline-offset: 4px; }
button, input { font: inherit; }
button, a, input { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #77bda1; outline-offset: 4px; }
.site-header { min-height: 92px; border-bottom: 1px solid var(--line); padding: 18px max(24px, calc((100% - 1184px)/2)); display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-size: 18px; font-weight: 650; white-space: nowrap; }
.brand small { display: block; font-size: 12px; font-weight: 400; color: var(--muted); margin-top: 1px; }
.brand-mark { width: 44px; height: 44px; background: #e9f2ed; display: grid; place-items: center; border-radius: 8px; }
.header-detail { color: var(--muted); font-size: 13px; }
.header-link { font-size: 14px; font-weight: 600; text-decoration: none; display: flex; gap: 12px; align-items: center; }
.header-link span { font-size: 21px; }
main { flex: 1; }
.auth-shell { max-width: 1040px; margin: 40px auto; }
.auth-content { max-width: 536px; margin: 24px auto 0; }
.auth-tabs { display: flex; gap: 28px; border-bottom: 1px solid var(--line); }
.auth-tabs a { color: var(--muted); padding: 8px 0 12px; text-decoration: none; font-size: 14px; font-weight: 600; position: relative; }
.auth-tabs a.active { color: var(--green); }
.auth-tabs a.active::after { content: ""; position: absolute; bottom: -1px; height: 2px; background: var(--green); left: 0; right: 0; }
.form-heading { margin: 26px 0 22px; }
.eyebrow { color: var(--muted); font-size: 12px; margin: 0 0 6px; }
h1 { font-size: 28px; line-height: 1.25; font-weight: 650; margin: 0; overflow-wrap: anywhere; }
.account-form { display: grid; gap: 17px; }
.field { min-width: 0; }
.field label { display: block; margin: 0 0 7px; font-size: 13px; font-weight: 600; }
.field input { display: block; width: 100%; height: 46px; border: 1px solid #ccd7ce; border-radius: 6px; background: #fff; color: var(--ink); padding: 10px 12px; transition: border-color .15s, box-shadow .15s; }
.field input::placeholder { color: #9ba59e; }
.field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px #17634b16; }
.field input.input-validation-error { border-color: #ae3c38; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field-row.email-row { grid-template-columns: minmax(0, 1fr) 122px; }
.field-error { color: #a53430; display: block; font-size: 12px; margin-top: 5px; overflow-wrap: anywhere; }
.field-error:empty { display: none; }
.password-field { position: relative; }
.password-field input { padding-right: 44px; }
.reveal-password { width: 42px; height: 44px; position: absolute; right: 1px; top: 1px; background: none; border: 0; display: grid; place-items: center; border-radius: 5px; }
.reveal-password:hover { background: var(--surface); }
.reveal-password[aria-pressed="true"] { background: #e9f2ed; }
.field-hint { font-size: 12px; margin: -8px 0 1px; color: var(--muted); }
.checkbox-label { display: flex; align-items: center; gap: 9px; font-size: 13px; width: fit-content; cursor: pointer; }
.checkbox-label input { accent-color: var(--green); width: 16px; height: 16px; margin: 0; }
.primary-button { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; padding: 10px 17px; background: var(--green); color: white; border: 1px solid var(--green); border-radius: 6px; font-weight: 600; font-size: 14px; transition: background .15s; }
.primary-button:hover { background: #104a38; }
.primary-button span { font-size: 23px; line-height: 1; }
.form-switch { color: var(--muted); font-size: 13px; margin: 20px 0 0; text-align: center; }
.form-switch a { font-weight: 600; margin-left: 4px; }
.confirmation-note { color: var(--muted); font-size: 13px; margin: 18px 0 24px; }
.confirmation-notice { padding: 14px 0; color: var(--green); font-size: 13px; }
a.primary-button { text-decoration: none; }
.validation-summary { font-size: 13px; background: #fff1ef; border-left: 3px solid #b44a3e; padding: 12px 14px; color: #9a3029; }
.validation-summary ul { margin: 0; padding: 0 0 0 16px; }
.validation-summary-valid { display: none; }
.text-button { border: 0; background: none; padding: 8px; color: var(--green); }
.site-footer { display: flex; justify-content: space-between; gap: 20px; padding: 22px max(24px, calc((100% - 1184px)/2)); border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.skip-link { position: absolute; top: -100px; background: white; padding: 12px; z-index: 3; }
.skip-link:focus { top: 5px; }
.profile-shell { max-width: 800px; margin: 56px auto; padding: 0 24px; }
.profile-banner { display: flex; align-items: center; gap: 18px; margin: 30px 0; padding: 24px 0; border-block: 1px solid var(--line); }
.avatar { display: grid; place-items: center; width: 56px; height: 56px; flex: 0 0 56px; background: #e9f2ed; color: var(--green); font-size: 24px; border-radius: 8px; }
h2 { font-size: 20px; font-weight: 600; margin: 0 0 6px; overflow-wrap: anywhere; }
.status { color: var(--green); font-size: 12px; }
.profile-details { margin: 0; }
.profile-details div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--line); }
dt { color: var(--muted); font-size: 13px; }
dd { margin: 0; overflow-wrap: anywhere; }
.profile-note { color: #85672d; font-size: 13px; margin-top: 24px; }
.header-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.applications-shell { max-width: 1184px; padding: 0 24px; margin: 40px auto; }
.applications-shell .auth-tabs { margin-top: 24px; gap: 20px; flex-wrap: wrap; }
.application-list { margin-top: 20px; }
.application-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr); gap: 24px; border-bottom: 1px solid var(--line); padding: 22px 0; align-items: start; }
.application-person, .application-contact, .application-decision { min-width: 0; overflow-wrap: anywhere; display: grid; gap: 5px; }
.application-person h2 { font-size: 17px; margin: 0; }
.application-person span, .application-decision, .application-contact { font-size: 13px; }
.application-decision time { color: var(--muted); }
.pending-status { color: #85672d; font-size: 12px; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; }
.review-actions button { min-height: 38px; border-radius: 6px; padding: 7px 12px; font-size: 13px; }
.review-approve { background: var(--green); color: white; border: 1px solid var(--green); }
.review-approve:disabled { background: #e6ebe7; border-color: #dce3de; color: #6b766f; cursor: not-allowed; }
.review-reject { background: white; border: 1px solid #cfb3af; color: #a53430; }
.empty-state { color: var(--muted); padding: 28px 0; }
.pagination { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; font-size: 13px; margin-top: 24px; }
@media (max-width: 720px) {
  .site-header { min-height: 80px; padding: 16px 20px; }
  .header-detail { display: none; }
  .auth-shell { margin: 20px 20px 32px; }
  .auth-content { margin-top: 18px; }
  .form-heading { margin: 22px 0; }
  h1 { font-size: 26px; }
  .site-footer { padding: 20px; font-size: 11px; }
  .site-footer span:last-child { display: none; }
  .profile-details div { grid-template-columns: 1fr; gap: 5px; }
  .site-header { flex-wrap: wrap; }
  .header-actions { width: 100%; justify-content: flex-start; }
  .applications-shell { padding: 0 20px; margin-top: 28px; }
  .application-row { grid-template-columns: 1fr; gap: 12px; }
  .applications-shell .auth-tabs { gap: 16px; }
}
@media (max-width: 440px) {
  .field-row:not(.email-row) { grid-template-columns: 1fr; }
  .field-row.email-row { grid-template-columns: minmax(0, 1fr) 90px; gap: 12px; }
  .brand { font-size: 16px; gap: 9px; }
  .brand-mark { width: 38px; height: 38px; }
}
