:root {
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #203b40;
  background: #f5f7f8;
  font-size: 14px;
  line-height: 1.5;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid #d6e1e1;
  background: white;
  color: #264d51;
  border-radius: 8px;
  padding: 10px 15px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}
button:hover,
.button:hover {
  border-color: #317a77;
  background: #f0f7f5;
}
button:disabled {
  opacity: 0.5;
  cursor: default;
}
.primary {
  background: #317a77;
  border-color: #317a77;
  color: white;
}
.primary:hover {
  background: #235e5b;
  color: white;
}
a {
  color: #286e6a;
}
header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px max(24px, calc((100vw - 1120px) / 2));
  border-bottom: 1px solid #dce5e5;
  background: white;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  text-decoration: none;
  color: #203b40;
  font-size: 22px;
  font-weight: 700;
  white-space: nowrap;
}
.brand small {
  display: block;
  font-size: 9px;
  letter-spacing: 2px;
  font-weight: 600;
}
#account {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 12px;
  color: #607b7e;
}
main {
  max-width: 1120px;
  margin: 38px auto 64px;
  padding: 0 24px;
  min-height: 70vh;
}
.welcome {
  max-width: 650px;
  padding: 48px 0;
}
.welcome h1 {
  font-size: 38px;
  letter-spacing: -1px;
  line-height: 1.2;
}
.welcome p {
  font-size: 16px;
  color: #536e72;
}
.welcome .button {
  margin-top: 15px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  font-size: 10px !important;
  font-weight: 700;
  color: #43726e !important;
}
h1 {
  font-size: 30px;
  line-height: 1.2;
  margin: 6px 0 12px;
  letter-spacing: -0.5px;
}
h2 {
  font-size: 18px;
  margin: 0 0 20px;
}
p {
  margin: 10px 0;
}
.muted,
small {
  color: #647e81;
}
.profile-top {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-bottom: 32px;
}
.photo {
  position: relative;
  flex: none;
  display: grid;
  place-items: center;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #e3efeb;
  color: #297269;
  font-size: 24px;
  font-weight: 600;
}
.photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.profile-top > div:nth-child(2) {
  flex: 1;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 26px;
  align-items: start;
}
.card {
  background: white;
  border: 1px solid #dde5e6;
  border-radius: 12px;
  padding: 26px;
  margin-bottom: 22px;
  box-shadow: 0 2px 5px #1b4b4403;
}
.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.wide {
  grid-column: 1/-1;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #ccd9da;
  border-radius: 7px;
  padding: 10px 12px;
  color: #203b40;
  background: white;
  min-width: 0;
}
textarea {
  resize: vertical;
  min-height: 95px;
}
label small {
  font-weight: 400;
}
input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid #4d9f91;
  outline-offset: 2px;
}
.save-bar {
  position: sticky;
  bottom: 16px;
  background: #ffffffef;
  border: 1px solid #d7e4df;
  border-radius: 10px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-shadow: 0 5px 22px #153f3c12;
  z-index: 2;
}
.save-state {
  font-size: 12px;
  color: #5b7477;
}
.project {
  padding: 12px 0;
  border-top: 1px solid #e5ecec;
}
.project strong {
  display: block;
  font-size: 13px;
}
.project small {
  display: block;
  font-size: 11px;
}
.side-actions {
  display: grid;
  gap: 10px;
}
.card p {
  font-size: 13px;
}
.error {
  color: #a03232;
  font-size: 13px;
  margin: 12px 0;
}
.notice-panel {
  border: 1px solid #dec693;
  background: #fff9ec;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}
.notice-panel p {
  margin: 0 0 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  max-width: 1120px;
  margin: auto;
  padding: 24px;
  color: #607b7e;
  font-size: 12px;
  border-top: 1px solid #dde5e6;
}
.skip {
  position: absolute;
  top: -80px;
}
.skip:focus {
  top: 0;
  background: white;
  padding: 10px;
  z-index: 20;
}
dialog {
  width: min(640px, calc(100vw - 32px));
  max-height: 90vh;
  border: 1px solid #d6e2e1;
  border-radius: 14px;
  padding: 0;
  color: #203b40;
  box-shadow: 0 24px 80px #173e4240;
}
dialog::backdrop {
  background: #163c4255;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 20px 24px;
  border-bottom: 1px solid #e1e8e8;
}
.dialog-heading h2 {
  margin: 0;
}
.dialog-heading button {
  padding: 2px 10px;
  font-size: 24px;
  border: 0;
}
#dialog-body {
  padding: 24px;
}
.dialog-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  margin-top: 24px;
}
.photo-preview {
  display: block;
  max-width: 192px;
  max-height: 192px;
  border-radius: 50%;
  margin: 20px auto;
}
.photo-preview[hidden] {
  display: none;
}
.photo-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
#notice:not(:empty) {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #234e4c;
  color: white;
  border-radius: 9px;
  padding: 13px 22px;
  box-shadow: 0 5px 25px #183c4430;
  max-width: 90vw;
  z-index: 10;
}
.request-confirmation {
  padding: 12px 0;
}
.request-confirmation h3 {
  margin-top: 0;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .side {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .side .card {
    margin: 0;
  }
  .profile-top {
    flex-wrap: wrap;
  }
}
@media (max-width: 560px) {
  header {
    padding: 16px;
  }
  #account {
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
  }
  #account span {
    max-width: 170px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand {
    font-size: 18px;
  }
  .brand img {
    width: 32px;
    height: 32px;
  }
  main {
    margin-top: 25px;
    padding: 0 16px;
  }
  .grid,
  .side {
    grid-template-columns: 1fr;
  }
  .card {
    padding: 20px;
  }
  .profile-top {
    gap: 14px;
  }
  .profile-top h1 {
    font-size: 25px;
  }
  .profile-top > button {
    width: 100%;
  }
  .welcome {
    padding: 20px 0;
  }
  .welcome h1 {
    font-size: 30px;
  }
  .save-bar {
    bottom: 8px;
  }
  .save-state {
    max-width: 170px;
  }
  .dialog-actions {
    flex-wrap: wrap;
  }
}

#code-form {
  max-width: 420px;
  margin-top: 24px;
}
#code-form[hidden] {
  display: none;
}
#code-form button {
  margin-top: 16px;
}
#sms-captcha {
  margin: 20px 0;
}
