:root { color-scheme: light; font: 16px/1.5 system-ui, sans-serif; color: #102c31; background: #edf1ec; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; display: grid; min-height: 100vh; min-height: 100dvh; place-items: center; padding: 1.25rem; }
.panel { width: min(100%, 31rem); padding: clamp(1.25rem, 6vw, 3rem); background: #fffefa; border: 1px solid #cbd7d0; border-radius: 1.25rem; box-shadow: 0 1rem 3rem #102c3112; }
.brand { margin: 0 0 1.2rem; font-weight: 700; }
h1 { margin: 0; font: 400 clamp(2rem, 7vw, 3rem)/1.1 Georgia, serif; letter-spacing: -.035em; }
h1:focus { outline: 0; }
h2 { margin: 1.5rem 0 0; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: #37534e; }
p { margin: 1rem 0; }
.lede { margin: .75rem 0 0; color: #37534e; overflow-wrap: anywhere; }
.intro { margin: 0; color: #37534e; font-size: .95rem; }
#region { color: #37534e; }
.loading { color: #37534e; }
.loading::before { content: ""; display: inline-block; width: .9em; height: .9em; margin-right: .6em; vertical-align: -.1em; border: 2px solid #a4b8af; border-top-color: #102c31; border-radius: 50%; animation: turn .8s linear infinite; }
@keyframes turn { to { transform: rotate(1turn); } }

.notice { margin: 1rem 0 0; padding: .75rem 1rem; border-radius: .5rem; border-left: 4px solid #6f8a80; background: #edf1ec; overflow-wrap: anywhere; }
.notice[data-tone="error"] { border-color: #b3311f; background: #fbeceb; color: #6d1b10; }
.notice[data-tone="success"] { border-color: #2e7d5b; background: #e6f2ea; color: #17402f; }
.notice[data-tone="warning"] { border-color: #a97a0b; background: #fbf3dc; color: #523d05; }

form, section { display: grid; gap: 1rem; margin-top: 1.25rem; }
.field { display: grid; gap: .35rem; }
label { font-weight: 600; }
input, button, .button { min-height: 2.75rem; border-radius: .45rem; font: inherit; }
input { width: 100%; border: 1px solid #7f978d; color: inherit; padding: .5rem .75rem; background: white; }
input[readonly] { background: #f4f6f3; }
select { width: 100%; min-height: 2.75rem; border: 1px solid #7f978d; border-radius: .45rem; padding: .5rem .75rem; background: white; color: inherit; font: inherit; }
select[aria-invalid="true"] { border-color: #b3311f; box-shadow: inset 0 0 0 1px #b3311f; }
.location { display: grid; gap: 1rem; }
.location[hidden] { display: none; }
label.check { display: grid; grid-template-columns: auto 1fr; gap: .6rem; align-items: start; font-weight: 400; }
label.check input { width: 1.25rem; min-height: 1.25rem; margin: .15rem 0 0; accent-color: #102c31; }
input[type="checkbox"][aria-invalid="true"] { outline: 2px solid #b3311f; outline-offset: 2px; }
input[aria-invalid="true"] { border-color: #b3311f; box-shadow: inset 0 0 0 1px #b3311f; }
.field-hint { color: #37534e; font-size: .875rem; }
.field-error { color: #9c2616; font-size: .875rem; font-weight: 600; }
.field-error::before { content: "! "; }
.with-toggle { position: relative; }
.with-toggle input { padding-right: 4.5rem; }
.toggle { position: absolute; inset: 0 0 0 auto; width: 4.25rem; min-height: 0; border: 0; border-radius: 0 .45rem .45rem 0; background: transparent; color: #225e52; font-weight: 600; padding: 0; }
#email-code { font-size: 1.35rem; letter-spacing: .3em; font-variant-numeric: tabular-nums; }

button, .button { border: 1px solid #102c31; background: #102c31; color: white; font-weight: 600; padding: .5rem 1rem; cursor: pointer; }
.button { display: grid; place-items: center; text-align: center; text-decoration: none; }
button.secondary { width: 100%; background: transparent; color: #102c31; }
button.danger { background: transparent; color: #9c2616; border-color: #9c2616; }
button.text { border: 0; border-radius: 0; background: transparent; color: #225e52; text-decoration: underline; text-underline-offset: .15em; padding: 0; font-weight: 600; }
button:disabled, button[aria-disabled="true"] { opacity: .6; cursor: default; }
.panel[data-busy] button:not([aria-busy]) { opacity: .6; cursor: default; }
button[aria-busy="true"] { cursor: progress; }
button[aria-busy="true"]:not(.text)::before { content: ""; display: inline-block; width: .85em; height: .85em; margin-right: .5em; vertical-align: -.08em; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%; animation: turn .8s linear infinite; }
a { color: #225e52; text-underline-offset: .15em; }
:focus-visible { outline: 3px solid #387a68; outline-offset: 3px; }
.toggle:focus-visible { outline-offset: -3px; }

.modes { display: grid; grid-template-columns: 1fr 1fr; gap: .25rem; padding: .25rem; border-radius: .6rem; background: #e3ebe5; }
.modes button { border: 0; background: transparent; color: #37534e; min-height: 2.75rem; }
.modes button[aria-pressed="true"] { background: #fffefa; color: #102c31; box-shadow: 0 1px 3px #102c3126; }
.or { display: flex; align-items: center; gap: .75rem; margin: 0 0 1rem; color: #37534e; font-size: .875rem; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid #cbd7d0; }
#alternatives { margin: 0; }

.links { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 0 1.25rem; }
.links:empty { display: none; }
.links a, .links button, .home, .support a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.home { margin-top: .5rem; }
.support { margin: .75rem 0 0; padding-top: .75rem; border-top: 1px solid #e0e7e1; color: #37534e; font-size: .9rem; overflow-wrap: anywhere; }

.members { display: grid; margin: 0; padding: 0; list-style: none; }
.members li { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: .5rem .75rem; padding: .75rem 0; border-bottom: 1px solid #cbd7d0; }
.members li.group { display: block; padding: 0 0 .4rem; }
.members li.group h2 { margin-top: 1.25rem; }
.members li.group:first-child h2 { margin-top: 0; }
.member-email { overflow-wrap: anywhere; font-weight: 600; }
.member-actions { display: flex; gap: .5rem; align-items: center; }
.chip { display: inline-block; padding: .15rem .6rem; border-radius: 1rem; font-size: .8rem; font-weight: 700; background: #e6f2ea; color: #17402f; white-space: nowrap; }
.chip[data-status="declined"] { background: #fbeceb; color: #6d1b10; }
.empty { margin: 0; padding: 1rem; border: 1px dashed #a4b8af; border-radius: .6rem; color: #37534e; }

@media (max-width: 26rem) {
  body { padding: .75rem; place-items: start center; }
  .members li { grid-template-columns: 1fr; }
  .member-actions button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .loading::before, button[aria-busy="true"]::before { animation: none; }
}
#action-form #password-field { display: grid; gap: 1rem; }
.chip { user-select: none; }
