:root {
  color-scheme: light;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #1b2b29;
  background: #f3f6f4;
  font-size: 16px;
  line-height: 1.5;
}

* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a, .text-button { color: #225e4d; }
:focus-visible { outline: 3px solid #2e7d67; outline-offset: 3px; }

.masthead {
  min-height: 72px;
  border-bottom: 1px solid #dbe4df;
  background: #fbfcfb;
  padding: 14px clamp(18px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}
.brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; }
.brand b { font-weight: 750; font-size: 20px; letter-spacing: -.045em; }
.brand-mark {
  display: inline-flex; align-items: flex-end; justify-content: center; gap: 2px;
  width: 30px; height: 30px; padding-bottom: 7px; border-radius: 7px; background: #235443;
}
.brand-mark i { display: block; width: 3px; height: 6px; background: #e0f4e9; border-radius: 1px; }
.brand-mark i:nth-child(2) { height: 11px; }
.brand-mark i:last-child { height: 16px; }
.brand-name { font-size: 14px; padding-left: 12px; border-left: 1px solid #cfd9d3; color: #4f6059; }
.back { font-size: 14px; text-underline-offset: 3px; }

main {
  display: grid; align-content: start; justify-items: center;
  padding: clamp(34px, 10vh, 100px) 16px 48px;
}
main.account { padding-top: clamp(26px, 6vh, 64px); }
.card {
  width: min(100%, 440px); padding: clamp(24px, 6vw, 38px);
  background: #fff; border: 1px solid #d6e1d9; border-radius: 16px;
  box-shadow: 0 12px 36px rgba(27, 55, 42, .055);
}
.account .card { width: min(100%, 510px); }
h1, h2, p { margin: 0; }
h1 { font-size: clamp(27px, 6vw, 32px); line-height: 1.25; letter-spacing: -.04em; }
h1:focus:not(:focus-visible) { outline: none; }
h2 { font-size: 21px; letter-spacing: -.025em; line-height: 1.35; }
.lead { margin: 10px 0 25px; font-size: 14px; line-height: 1.65; color: #526159; }
fieldset { margin: 0; padding: 0; border: none; min-width: 0; }
.field { display: grid; gap: 7px; margin: 0 0 18px; }
label { font-size: 14px; font-weight: 600; }
input {
  width: 100%; min-width: 0; min-height: 46px; padding: 9px 12px;
  color: #152a22; background: #fff; border: 1px solid #84968b; border-radius: 7px;
}
input:focus { border-color: #245f4d; }
input:disabled { background: #f4f6f4; }
small { font-size: 13px; color: #55665e; }
.otp { font-family: ui-monospace, Menlo, Consolas, monospace; letter-spacing: .22em; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .65; }
.primary {
  width: 100%; min-height: 46px; margin-top: 3px; border: none; border-radius: 7px;
  padding: 10px 16px; color: #fff; background: #225640; font-weight: 650;
}
.primary:hover:enabled { background: #194432; }
.text-button {
  background: none; border: none; min-height: 44px; padding: 5px;
  margin: 8px auto -5px; display: block; font-size: 14px; text-decoration: underline; text-underline-offset: 3px;
}
.qr { display: block; margin: 0 auto 15px; max-width: 100%; height: auto; }
.manual { font-size: 14px; padding: 12px; margin-bottom: 19px; border: 1px solid #dbe6df; border-radius: 8px; background: #f6f9f7; }
summary { cursor: pointer; color: #285a46; }
.manual p { margin: 10px 0 7px; }
.manual code { display: block; user-select: all; overflow-wrap: anywhere; font-size: 15px; letter-spacing: .06em; }
.feedback:not(:empty), noscript p {
  margin-top: 16px; border-radius: 7px; padding: 10px 12px; font-size: 14px;
  background: #fbefec; color: #853b2b; overflow-wrap: anywhere;
}
.notice:not(:empty) { color: #214d39; background: #ebf5ec; }
.identity {
  margin: 15px 0 22px; border-bottom: 1px solid #dce5de; padding-bottom: 19px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.identity div { display: grid; gap: 2px; overflow-wrap: anywhere; }
#account-name { font-weight: 650; }
.secondary { border: 1px solid #9aac9f; color: #2d4938; border-radius: 6px; background: white; padding: 7px 11px; min-height: 40px; flex-shrink: 0; font-size: 14px; }
.secondary:hover:enabled { background: #f2f6f3; }
@media (max-width: 420px) {
  .masthead { min-height: 60px; }
  .brand { gap: 8px; }
  .brand-name { padding-left: 8px; font-size: 13px; }
  main { padding-top: 25px; }
}
