:root {
  color-scheme: light;
  font: 1rem/1.5 system-ui, sans-serif;
  color: #22271f;
  background: #f4f3ec;
}

* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 44rem; margin: 0 auto; padding: 2rem 1.25rem 4rem; }
h1 { font-size: clamp(2.5rem, 9vw, 4rem); line-height: 1; margin: 1.5rem 0; }
h2 { margin-top: 0; }
a { color: #2c4931; }
.profile-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 1rem; }
section { padding: 1.25rem; margin: 1.25rem 0; background: #fff; border: 1px solid #d4d6c9; border-radius: .65rem; }
label { display: grid; gap: .25rem; margin: .85rem 0; font-weight: 600; }
input, textarea, button, select { font: inherit; }
input, textarea, select { width: 100%; padding: .55rem .65rem; border: 1px solid #72796c; border-radius: .3rem; background: #fff; color: inherit; }
textarea { resize: vertical; }
button { padding: .55rem .85rem; background: #2c4931; color: #fff; border: 1px solid #2c4931; border-radius: .3rem; cursor: pointer; }
button.secondary { margin-top: .85rem; background: transparent; color: #2c4931; }
button:hover { filter: brightness(.86); }
:focus-visible { outline: .2rem solid #355a7e; outline-offset: .15rem; }
.actions { display: flex; flex-wrap: wrap; gap: .55rem; }
.notice { padding: .65rem .8rem; border-left: .25rem solid #2c4931; background: #e6efe3; }
.notice.error { border-left-color: #a22d2a; background: #fce9e6; }
.portrait { min-width: 0; margin: 1rem 0; padding: .7rem .85rem; border: 1px solid #d4d6c9; border-radius: .3rem; }
.portrait legend { padding: 0 .25rem; font-weight: 600; }
.portrait p { margin: .4rem 0 .8rem; font-size: .9rem; }
.portrait-preview { display: block; max-width: 100%; max-height: 12rem; border-radius: .3rem; }
.portrait-preview[hidden] { display: none; }
.portrait .portrait-preview-status:empty { margin: 0; }
.portrait-remove { display: flex; align-items: center; gap: .45rem; }
.portrait-remove input { width: auto; }
#einladen, #team-interests { scroll-margin-top: 1rem; }
.team-roster { margin-top: 1.25rem; }
.team-roster summary { cursor: pointer; color: #2c4931; font-weight: 600; }
.invite-candidates { list-style: none; display: grid; gap: .65rem; margin: 1rem 0; padding: 0; }
.invite-candidates li { border: 1px solid #d4d6c9; border-radius: .4rem; padding: .8rem 1rem; }
.invite-candidates h4, .invite-candidates p { margin: 0 0 .35rem; }
#einladen summary { cursor: pointer; color: #2c4931; font-weight: 600; }
#einladen .actions .secondary { margin-top: 0; }
.invite-envelope { display: grid; grid-template-columns: max-content 1fr; gap: .25rem .85rem; }
.invite-envelope dt { font-weight: 600; }
.invite-envelope dd { margin: 0; overflow-wrap: anywhere; }
.invite-message { white-space: pre-wrap; overflow-wrap: anywhere; border: 1px solid #d4d6c9; border-radius: .4rem; background: #f4f3ec; padding: 1rem; margin-bottom: 1rem; }
.invite-search { margin-bottom: 1rem; }
