.forms-main {
  --form-accent: var(--accent, #a4408f);
  --form-line: var(--line, #ebe4ea);
  --form-muted: var(--muted, #6c6570);
  --form-tint: #fff4f8;
  color: var(--ink, #251d25);
  background: #fff;
}
.forms-main, .forms-main *, .forms-main *::before, .forms-main *::after { box-sizing: border-box; }
.forms-main h1, .forms-main h2, .forms-main h3, .forms-main p { margin: 0; }
.forms-main input, .forms-main button, .forms-main select, .forms-main textarea { font: inherit; }
.forms-main a, .form-text-button { color: var(--form-accent); }
.account-main {
  padding: clamp(1.5rem, 4.2vw, 4.5rem) max(1rem, env(safe-area-inset-right)) clamp(2rem, 5vw, 5rem) max(1rem, env(safe-area-inset-left));
  background: linear-gradient(148deg, #fff9fb, #faf8fc 60%, white);
}
.account-layout {
  max-width: 63rem; margin-inline: auto; background: #fff; border: 1px solid var(--form-line);
  border-radius: 1.75rem; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr);
  box-shadow: 0 1.3rem 4rem rgba(83, 39, 64, .06);
}
.account-art, .contribution-hero-art {
  background-image: url("brand/hero-heart.webp");
  background-color: #fbe1ea; background-repeat: no-repeat; background-size: cover;
}
.account-art { min-height: 7.5rem; background-position: 50% 28.5%; }
.account-card { min-width: 0; padding: 1.6rem 1.2rem 2.1rem; }
.account-heading { margin-bottom: 1.7rem; }
.forms-main h1 { font-size: clamp(2rem, 4.8vw, 3.6rem); line-height: 1.14; letter-spacing: -.04em; }
.account-heading h1 span { display: block; font-size: 1rem; letter-spacing: 0; line-height: 1.6; margin-top: .5rem; font-weight: 650; }
.account-heading p, .contribution-head p { color: var(--form-muted); font-size: 1rem; line-height: 1.65; margin-top: .55rem; }
.fields-stack { display: grid; gap: 1.15rem; }
.form-field { display: grid; gap: .46rem; align-content: start; min-width: 0; }
.form-field[hidden] { display: none; }
.form-field > label, .form-label-line > label, .form-choice-group legend {
  font-size: .94rem; font-weight: 650; line-height: 1.5;
}
.form-required { color: var(--form-accent); font-size: .82em; }
.form-label-line { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.form-text-button { background: none; border: 0; cursor: pointer; padding: .25rem 0 .25rem .5rem; font-size: .875rem !important; }
.forms-main a:hover, .form-text-button:hover { text-decoration: underline; }
.form-field > input:not([type="file"]), .form-field select, .form-field textarea {
  box-sizing: border-box; appearance: none; -webkit-appearance: none; min-width: 0; border: 1px solid #dcd4db; border-radius: .8rem;
  background: #fff; color: inherit; width: 100%; min-height: 2.9rem; padding: .65rem .9rem; font-size: 1rem; line-height: 1.45;
}
.form-field input[type="date"] { text-align: left; min-height: 2.95rem; }
.form-field input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.form-field > select {
  padding-right: 2.3rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' width='16' height='16'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' fill='none' stroke='%23746875' stroke-width='1.75' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right .8rem center;
}
.form-field textarea { resize: vertical; }
.forms-main :is(button, a, input, textarea, select):focus-visible {
  outline: 2px solid var(--form-accent); outline-offset: 2px;
}
.form-hint, .form-filename { font-size: .875rem; line-height: 1.55; color: var(--form-muted); }
.form-check { display: flex; align-items: flex-start; gap: .6rem; line-height: 1.6; font-size: .94rem; }
.form-check input, .form-pills input { accent-color: var(--form-accent); width: 1.12rem; height: 1.12rem; margin: .18rem 0 0; flex: none; }
.form-check a, .account-switch a { font-weight: 650; text-underline-offset: .18em; }
.form-choice-group { padding: 0; margin: 0; border: none; min-width: 0; }
.form-choice-group legend { padding: 0; margin-bottom: .5rem; }
.form-pills { display: flex; flex-wrap: wrap; gap: .6rem; }
.form-pills label {
  border: 1px solid #ded5de; display: inline-flex; gap: .5rem; align-items: center; font-size: .94rem;
  line-height: 1.3; min-height: 2.75rem; cursor: pointer; border-radius: .8rem; padding: .55rem .82rem;
}
.form-pills input { margin: 0; }
.form-pills label:has(input:checked) { background: var(--form-tint); border-color: #da96b4; }
.form-submit-row { display: grid; gap: .65rem; }
.form-submit {
  min-height: 3rem; cursor: pointer; width: 100%; border: none; border-radius: 1.6rem;
  font-weight: 700 !important; background: var(--brand-gradient, linear-gradient(115deg, #c14c8a, #8b59b9)); color: white; padding: .7rem 1rem; transition: background .18s ease;
}
.form-submit:hover { filter: brightness(.94); }
.form-submit[disabled] { opacity: .7; cursor: progress; }
.forms-main .form-divider {
  margin: 1.6rem 0 .9rem; display: flex; gap: .8rem; align-items: center; color: var(--form-muted); font-size: .875rem;
}
.form-divider::before, .form-divider::after { content: ""; border-top: 1px solid var(--form-line); flex: 1; }
.form-social { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; }
.form-social button {
  min-height: 2.8rem; border: 1px solid var(--form-line); color: var(--ink, #251d25); background: white; border-radius: .85rem;
  font-size: .94rem; font-weight: 600; cursor: pointer;
}
.form-social button:hover { background: var(--form-tint); }
.account-switch { text-align: center; margin-top: 1.4rem !important; font-size: .94rem; color: var(--form-muted); }
.contribution-main { width: min(74rem, 100%); margin-inline: auto; padding: clamp(1rem, 3.1vw, 3rem) max(1rem, 3vw) clamp(2.5rem, 7vw, 6rem); }
.contribution-head { position: relative; isolation: isolate; overflow: hidden; border-radius: 1.55rem; background: linear-gradient(115deg, #fff0f4, #fae2ef); }
.contribution-head > div:last-child { position: relative; max-width: 76%; padding: clamp(1.5rem, 4vw, 3.5rem) clamp(1.2rem, 4vw, 3.4rem); }
.contribution-hero-art {
  position: absolute; right: 0; inset-block: 0; width: 40%; z-index: -1;
  background-size: 112%; background-position: 53% 29%; mask-image: linear-gradient(90deg, transparent, black 30%);
}
.contribution-head p { color: #664857; }
.contribution-layout { display: grid; align-items: start; gap: clamp(1.3rem, 4vw, 3.4rem); margin-top: clamp(1.4rem, 4vw, 3.5rem); }
.contribution-guide, .contribution-card { min-width: 0; }
.contribution-main h2 { font-size: clamp(1.35rem, 2.2vw, 1.85rem); line-height: 1.35; letter-spacing: -.035em; }
.contribution-guide { border: 1px solid var(--form-line); border-radius: 1.4rem; padding: clamp(1.15rem, 3vw, 1.8rem); }
.guide-steps { list-style: none; margin: 1.25rem 0; padding: 0; }
.guide-steps li { position: relative; padding: 0 .1rem 1rem 1.45rem; border-left: 1px solid #ead5df; margin-left: .28rem; }
.guide-steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
.guide-steps li::before { content: ""; position: absolute; left: -.31rem; top: .43rem; width: .55rem; height: .55rem; border-radius: 50%; background: #db7aa7; box-shadow: 0 0 0 3px white; }
.contribution-main h3 { font-size: 1.15rem; line-height: 1.5; }
.guide-steps h3, .guide-notes h3 { font-size: 1rem; }
.guide-steps p, .guide-notes li { font-size: .94rem; line-height: 1.65; color: var(--form-muted); }
.guide-steps p { margin-top: .2rem; }
.guide-notes { background: var(--form-tint); border-radius: 1rem; padding: 1rem; }
.guide-notes ul { padding-left: 1.15rem; margin: .6rem 0 0; }
.guide-notes li + li { margin-top: .38rem; }
.contribution-card h2 { margin-bottom: 1.4rem; }
.contribution-form { display: grid; gap: 1.6rem; }
.form-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
.form-wide { grid-column: 1 / -1; }
.fields-section { border-top: 1px solid var(--form-line); padding-top: 1.3rem; }
.fields-section > h3 { margin-bottom: .95rem; }
.fields-section.fields-stack > h3 { margin: 0; }
.form-drop {
  position: relative; display: flex; gap: .85rem; align-items: center; border-radius: .85rem; border: 1px dashed #d8bccc;
  background: #fffafb; padding: .9rem .85rem; font-size: .94rem; min-height: 4.9rem; color: var(--form-muted);
}
.form-drop input { position: absolute; z-index: 1; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.form-drop:focus-within { outline: 2px solid var(--form-accent); outline-offset: 2px; }
.form-upload-icon { width: 2.65rem; height: 2.65rem; flex: none; display: grid; place-items: center; border-radius: .85rem; background: #fae8f0; color: var(--form-accent); }
.form-file-action { color: var(--form-accent); font-weight: 650; }
.form-filename { overflow-wrap: anywhere; color: var(--form-accent); }
.contribution-form .form-submit-row { justify-items: start; }
.contribution-form .form-submit { width: min(100%, 15rem); }
@media (min-width: 36rem) {
  .account-card { padding: 2.5rem; }
  .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 48rem) {
  .account-layout { grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); }
  .account-art { background-position: center 28%; }
  .account-card { padding: clamp(2.4rem, 4vw, 4rem); align-self: center; }
  .contribution-layout { grid-template-columns: minmax(13.5rem, .78fr) minmax(0, 1.8fr); }
  .contribution-card { padding: .3rem 0; }
}
@media (max-width: 47.99rem) {
  .contribution-guide { order: 1; }
}
@media (max-width: 35.99rem) {
  .contribution-form .form-submit { width: 100%; }
}
.contribution-guide, #contribution-title { scroll-margin-top: 6.5rem; }
.contribution-head .guide-link { display: inline-block; margin-top: .65rem; font-size: .875rem; font-weight: 650; text-underline-offset: .2em; }
@media (min-width: 48rem) {
  .contribution-head .guide-link { display: none; }
  .account-art { position: relative; }
  .account-art::after {
    content: ""; position: absolute; bottom: 7%; left: 10%; width: 18%; aspect-ratio: 51 / 25;
    background: url("brand/hero-wordmark.svg") center / contain no-repeat; opacity: .8;
  }
}
