@font-face { font-family: Montserrat; src: url("/assets/brand/montserrat-6e712eafc1.woff2") format("woff2"); font-style: normal; font-weight: 100 900; font-display: optional; }
@font-face { font-family: "Nunito Sans"; src: url("/assets/brand/nunito-sans-443c5b7d37.woff2") format("woff2"); font-style: normal; font-weight: 200 1000; font-display: optional; }
:root {
  color-scheme: light;
  --ink: #202124;
  --muted: #5a6063;
  --red: #e61d1d;
  --red-hover: #c71919;
  --line: #dededc;
  --stage: #f6f6f5;
  --body: "Nunito Sans", Arial, sans-serif;
  --heading: Montserrat, Arial, sans-serif;
  font-family: var(--body);
  color: var(--ink);
  background: var(--stage);
}
:root.system-fonts { --heading: Arial, sans-serif; --body: Arial, sans-serif; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }
[hidden] { display: none !important; }
::selection { background: #fbd8d8; color: var(--ink); }
:focus-visible { outline: 2px solid #414446; outline-offset: 4px; }
:is(a, button, summary):focus:not(:focus-visible) { outline: none; }
:where(a, button, summary) { -webkit-tap-highlight-color: transparent; }
.canvas {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 40px 24px;
}
.group { width: min(100%, 464px); }
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 36px 39px 32px;
}
.masthead, .dialog-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.language-menu { position: relative; flex: none; font: 600 14px/1.4 var(--body); color: var(--muted); }
.language-menu summary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 48px;
  min-height: 44px;
  list-style: none;
  cursor: pointer;
}
.language-menu summary::-webkit-details-marker { display: none; }
.language-menu summary::marker { content: ""; }
.language-flag { display: block; width: 22px; height: 14px; object-fit: contain; flex: none; }
.language-chevron {
  width: 6px;
  height: 6px;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateY(-2px) rotate(45deg);
}
.language-menu[open] .language-chevron { transform: translateY(2px) rotate(225deg); }
.language-menu summary:hover { color: var(--ink); }
.language-menu summary:focus-visible { outline: 0; }
.language-menu summary:focus-visible .language-flag { box-shadow: 0 4px white, 0 6px currentColor; }
.language-options {
  position: absolute;
  z-index: 3;
  inset-inline-end: 0;
  top: 100%;
  min-width: 154px;
  padding: 4px;
  margin: 0;
  list-style: none;
  background: white;
  border: 1px solid #e4e4e2;
  border-radius: 4px;
  box-shadow: 0 4px 14px rgb(32 33 36 / 9%);
}
.language-options a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 7px 10px;
  text-decoration: none;
  color: var(--ink);
}
.language-options a:hover, .language-options a:focus-visible { background: var(--stage); }
.language-options a:focus-visible { outline: 0; text-decoration: underline; text-underline-offset: 4px; }
.language-options [aria-current="true"]::after {
  content: "";
  margin-inline-start: auto;
  width: 9px;
  height: 5px;
  color: var(--muted);
  border: solid currentColor;
  border-width: 0 0 1.5px 1.5px;
  transform: rotate(-45deg);
}
@media (forced-colors: active) {
  .language-menu summary:focus-visible .language-flag { outline: 1px dashed Highlight; outline-offset: 3px; }
}
.dialog-toolbar { margin: -12px -10px 14px 0; }
.dialog-toolbar .language-options { inset-inline-start: 0; inset-inline-end: auto; }
.dialog-toolbar .close { position: static; }
.brand {
  display: flex;
  align-items: center;
  gap: 15px;
  min-width: 0;
}
.brand img { width: 84px; height: auto; display: block; flex: none; }
.brand .portal-name {
  margin: 0;
  padding: 3px 0 3px 15px;
  border-left: 1px solid #cfcfcd;
  font: 600 14px/1.3 var(--heading);
  letter-spacing: -.015em;
}
.content { margin-top: 34px; }
h1, h2 { margin: 0; font-family: var(--heading); font-weight: 600; letter-spacing: -.038em; }
h1 { font-size: 36px; line-height: 1.15; }
.intro, .dialog-text {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.48;
}
.intro { max-width: 34ch; }
form { margin: 24px 0 0; }
label { display: block; margin: 0 0 7px; font: 650 14px/1.4 var(--body); }
input {
  display: block;
  width: 100%;
  min-height: 46px;
  padding: 10px 13px;
  background: white;
  border: 1px solid #8e9190;
  border-radius: 2px;
  font: 400 16px/1.45 var(--body);
  color: var(--ink);
  caret-color: var(--red);
  appearance: none;
}
input::placeholder { opacity: 1; color: #6c7174; }
input:hover { border-color: #575c5e; }
input:focus { outline: 2px solid #4b5052; outline-offset: 1px; }
input[aria-invalid="true"] { border-color: #9a2925; }
.validation { margin: 7px 0 0; font-size: 14px; color: #812925; }
.action {
  display: flex;
  width: 100%;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 2px;
  padding: 10px 16px;
  background: var(--red);
  color: #fff;
  font: 550 15px/1.35 var(--heading);
  letter-spacing: -.012em;
  transition: background-color 140ms ease-out;
}
form .action { margin-top: 12px; }
.action:hover { background: var(--red-hover); }
.action:active { background: #ae1717; }
.divider {
  display: flex;
  gap: 13px;
  align-items: center;
  margin: 19px 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 18px;
}
.divider::before, .divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.google {
  position: relative;
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 46px;
  padding: 10px 16px;
  color: #1f1f1f;
  background: white;
  border: 1px solid #747775;
  border-radius: 3px;
  font: 500 15px/1.35 Arial, sans-serif;
  transition: background-color 140ms ease-out;
}
.google:hover { background: #f4f5f4; }
.google:active { background: #e9ebea; }
.google img { flex: none; width: 19px; height: 19px; }
.access-note { margin: 8px 0 0; color: var(--muted); text-align: center; font-size: 13px; line-height: 1.5; }
.form-status { margin: 12px 0 0; font-size: 14px; line-height: 1.45; color: var(--muted); overflow-wrap: anywhere; }
.privacy { display: flex; justify-content: center; align-items: center; gap: 12px; margin: 12px 0 0; text-align: center; }
.footer-separator { width: 1px; height: 14px; background: currentColor; color: #a0a2a2; flex: none; }
.privacy a, .privacy button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 44px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
}
.privacy :is(a, button):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.icon { fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.privacy svg { width: 12px; height: 12px; }
dialog {
  color: var(--ink);
  background: white;
  width: min(410px, calc(100% - 40px));
  max-height: calc(100dvh - 32px);
  overflow: auto;
  inset: 0;
  margin: auto;
  padding: 32px 31px 18px;
  border: 1px solid var(--line);
  border-radius: 4px;
}
dialog::backdrop { background: rgb(30 32 34 / 39%); }
body:has(dialog[open]) { overflow: hidden; }
.close {
  display: grid; place-items: center; position: absolute; top: 20px; right: 12px;
  width: 44px; height: 44px; border: 0; border-radius: 50%; background: transparent; color: var(--muted);
}
.close:hover, .quiet:hover { background: #f3f3f2; color: var(--ink); }
.close:focus-visible { outline: none; background: #535d59; color: white; }
@media (forced-colors: active) {
  .close:focus-visible { outline: 2px solid Highlight; outline-offset: -4px; }
}
.close svg { width: 20px; height: 20px; }
h2 { padding-right: 28px; font-size: 27px; line-height: 1.22; }
h2:focus { outline: none; }
.dialog-text { overflow-wrap: anywhere; }
.dialog-text + .dialog-text { margin-top: 9px; }
#sign-in-guide { width: min(464px, calc(100% - 32px)); padding-bottom: 28px; }
.guide-close { margin: 0; }
#sign-in-guide h3 { margin: 20px 0 4px; font: 650 16px/1.4 var(--body); }
#sign-in-guide p { margin: 0; color: var(--muted); font: 400 15px/1.5 var(--body); }
.dialog-actions { margin-top: 22px; }
.quiet {
  display: flex; margin: 4px auto 0; padding: 9px 13px; min-height: 44px;
  align-items: center; justify-content: center; gap: 7px; border: 0; border-radius: 2px;
  background: transparent; color: #4e5456; font: 600 14px/1.4 var(--body);
}
.quiet svg { width: 15px; height: 15px; }
.fallback-copy { margin-top: 8px; user-select: all; padding: 10px; border: 1px solid var(--line); font-size: 14px; }
@media (max-width: 540px) {
  :root { background: white; }
  .canvas { display: flex; flex-direction: column; align-items: stretch; padding: 0; }
  .group { display: flex; flex-direction: column; width: 100%; flex: 1; }
  .card { border: 0; padding: 0; }
  .masthead { padding: calc(15px + env(safe-area-inset-top, 0px)) 24px 15px; border-bottom: 1px solid var(--line); }
  .brand { gap: 13px; }
  .brand img { width: 80px; }
  .brand .portal-name { padding-left: 13px; font-size: 13px; }
  .content { margin: 0; padding: clamp(36px, 7.5svh, 64px) 24px 24px; }
  h1 { font-size: 32px; line-height: 1.18; }
  .intro { margin-top: 9px; }
  .action, .google, input { min-height: 48px; }
  .privacy { margin: auto 0 0; gap: 9px; padding: 4px 12px max(16px, env(safe-area-inset-bottom, 0px)); }
  dialog { width: min(385px, calc(100% - 32px)); padding: 26px 23px 15px; }
  .close { top: 16px; right: 10px; }
  h2 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }

.dialog-actions form { margin: 0; }
.content .action { text-decoration: none; }
.google-form { margin: 0; }
.quiet, .dialog-actions .action, .close { text-decoration: none; }
.close { font-size: 24px; }
.action:disabled { opacity: .55; cursor: default; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.profile-fields { min-width: 0; padding: 0; margin: 0 0 24px; border: 0; }
.card:has(.profile-fields:not([hidden])) .intro { max-width: none; font-weight: 400; overflow-wrap: anywhere; }
@media (min-width: 541px) {
  .group:has(.profile-fields:not([hidden])) { width: min(100%, 520px); }
  .card:has(.profile-fields:not([hidden])) { padding: 63px 50px 59px; }
  .card:has(.profile-fields:not([hidden])) .content { margin-top: 42px; }
}
@media (max-width: 540px) {
  .card:has(.profile-fields:not([hidden])) .content {
    padding-block: calc(clamp(36px, 7.5svh, 64px) + 3px) 27px;
  }
}
.profile-names { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.profile-names input { border-color: #ccc; }
.profile-names input:hover { border-color: #aaa; }
.profile-names input:focus { border-color: #767b7d; outline: 1px solid #767b7d; outline-offset: 0; }
.profile-names input::placeholder { font-weight: 350; color: #686e71; }
.portrait-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 27px 0 0; }
.profile-portrait { position: relative; width: 60px; height: 60px; flex: none; overflow: hidden; border-radius: 50%; background: #f0f0ee url(/auth/brand/profile-placeholder.svg) center/cover no-repeat; }
.profile-portrait img { width: 100%; height: 100%; object-fit: cover; }
.photo-picker { position: relative; display: inline-flex; align-items: center; gap: 16px; min-width: 0; margin: 0; color: var(--ink); font: 400 14px/1.45 var(--body); cursor: pointer; }
.photo-picker input { min-height: 0; padding: 0; border: 0; }
#photo-action, .cancel-photo { text-decoration: underline; text-underline-offset: 3px; }
.photo-picker:is(:hover, :has(input:focus-visible)) { color: var(--red-hover); }
.photo-picker:is(:hover, :has(input:focus-visible)) .profile-portrait::after { content: ""; position: absolute; inset: 0; background: currentColor; opacity: .12; }
.photo-picker:has(input:focus-visible) #photo-action { text-decoration-thickness: 2px; }
.cancel-photo { background: none; border: 0; padding: 6px 0; color: var(--muted); font: 400 14px/1.45 var(--body); }
.portrait-row small, .profile-privacy { display: block; color: var(--muted); font-size: 13px; line-height: 1.45; }
#photo-hint { margin-top: 4px; }
.profile-privacy { margin: 18px 0 0; }
.profile-fields[hidden] ~ .profile-privacy { display: none; }
.remove-portrait { display: flex; align-items: center; gap: 8px; color: var(--muted); font-weight: 400; }
.remove-portrait input { appearance: auto; display: inline; width: 17px; height: 17px; min-height: 0; margin: 0; padding: 0; accent-color: var(--red); }
@media (max-width: 360px) { .profile-names { grid-template-columns: 1fr; gap: 12px; } }
