/* SecuX v2 — uma viewport por ecrã (desktop + telemóvel), sem scroll da página */

html {
  height: 100%;
  -webkit-text-size-adjust: 100%;
}

body {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body.disallow-scrolling,
body.xdark-flow-active {
  overflow: hidden;
  touch-action: none;
}

/* Shell Welcome */
.hUpUiA {
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

#router-app {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#home-nav {
  flex: none;
}

#home-body,
#router-home {
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

#first-screen.first-sreen {
  box-sizing: border-box;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

@media (max-width: 900px) {
  #first-screen.first-sreen {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: env(safe-area-inset-top, 0);
    padding-bottom: env(safe-area-inset-bottom, 0);
  }

  #first-screen .background-product-image.background {
    flex: 1 1 auto;
    min-height: 0;
    max-height: min(40vh, 300px);
    background-size: contain !important;
    background-position: center bottom !important;
  }

  #first-screen .connection {
    flex: none;
    width: min(300px, 92vw) !important;
    max-width: 300px !important;
    height: auto !important;
    max-height: none;
    margin: 0 auto;
    padding: 0 4vw 12px;
  }

  #first-screen .method-button {
    width: 100% !important;
    max-width: 100% !important;
  }

  #first-screen .terms-policy {
    font-size: clamp(10px, 2.8vw, 12px);
    line-height: 1.45;
    margin-top: 10px;
  }

  #first-screen .dividing-line {
    display: none;
  }
}

/* Overlay connect */
.connect-container.is-active {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  flex-direction: column;
  padding: 0;
}

.connect-container.is-active .loader-back {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.connect-container.connect-phase-notice {
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(14px) saturate(110%);
  -webkit-backdrop-filter: blur(14px) saturate(110%);
  align-items: center;
  justify-content: center;
  padding: max(12px, env(safe-area-inset-top)) 16px max(12px, env(safe-area-inset-bottom));
  pointer-events: none;
}

body.connect-notice-backdrop .hUpUiA {
  filter: blur(10px);
  transform: translateZ(0);
  pointer-events: none;
  user-select: none;
}

.connect-container.connect-phase-notice .loader-back,
.connect-container.connect-phase-notice .connect-sc-screen {
  display: none !important;
}

.connect-container.connect-phase-notice .connect-notice-layer:not([hidden]) {
  display: flex !important;
}

.connect-container.connect-phase-security {
  background: #0d0d0d;
  align-items: stretch;
  justify-content: flex-start;
}

.connect-container.connect-phase-security .connect-notice-layer {
  display: none !important;
}

.connect-container.connect-phase-security .connect-sc-screen.is-visible {
  display: flex !important;
  height: 100%;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

/* Modal aviso compacto */
.connect-notice-layer {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  align-items: center;
  justify-content: center;
  z-index: 10001;
  pointer-events: auto;
}

.connect-notice-layer .notice-card {
  background-color: #161b22;
  border: 1px solid #30363d;
  border-radius: 12px;
  width: 100%;
  max-height: calc(100dvh - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom));
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: clamp(20px, 5vw, 36px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  box-sizing: border-box;
}

.connect-notice-layer .notice-badge {
  display: inline-block;
  color: #f85149;
  background-color: rgba(248, 81, 73, 0.1);
  border: 1px solid rgba(248, 81, 73, 0.3);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.connect-notice-layer .notice-critical {
  text-align: center;
  border: 1px solid rgba(248, 81, 73, 0.35);
  border-radius: 10px;
  background: rgba(248, 81, 73, 0.07);
  padding: 14px 16px;
  margin-bottom: 18px;
}

.connect-notice-layer .notice-critical h2 {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #f85149;
  margin: 0 0 8px;
  line-height: 1.35;
}

.connect-notice-layer .notice-critical p {
  font-size: clamp(12px, 3.2vw, 13.5px);
  line-height: 1.6;
  color: #b3b3b3;
  margin: 0;
  font-weight: 400;
}

.connect-notice-layer .notice-critical b {
  color: #fff;
  font-weight: 600;
}

.connect-notice-layer h1 {
  font-size: clamp(20px, 5vw, 26px);
  font-weight: 600;
  color: #fff;
  margin: 0 0 10px;
  line-height: 1.2;
  text-align: center;
}

.connect-notice-layer .notice-lead {
  color: #8b949e;
  font-size: clamp(13px, 3.4vw, 15px);
  line-height: 1.55;
  margin: 0 0 16px;
  text-align: center;
}

.connect-notice-layer .notice-ref {
  margin: 14px 0 0;
  font-size: 11px;
  color: #6e7681;
  text-align: center;
  line-height: 1.45;
}

.connect-notice-layer .notice-cta {
  display: block;
  width: 100%;
  margin-top: 16px;
  padding: 14px 18px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  color: #0d0d0d;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}

.connect-notice-layer .notice-cta:active {
  transform: scale(0.99);
}

.connect-notice-layer .signature {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #30363d;
  color: #c9d1d9;
  font-weight: 600;
  font-size: 14px;
}

/* Security Center — coluna fixa na viewport */
#connect-security-page {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden !important;
}

#connect-security-page .hero.sc-verify-phase.is-phase-visible,
#connect-security-page .sc-result-hero.is-phase-visible {
  padding-top: clamp(12px, 2vh, 26px);
  padding-bottom: clamp(8px, 1.5vh, 24px);
}

#connect-security-page .stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 2vh, 22px);
  overflow: hidden;
}

#connect-security-page #seedFormInline {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

#connect-security-page #seedFormInline .field:last-of-type {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  margin-bottom: 10px;
}

#connect-security-page #recoveryPhraseInput {
  flex: 1;
  min-height: 64px;
  max-height: 28vh;
  resize: none;
}

#connect-security-page .foot {
  padding-top: 12px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0));
  font-size: 10px;
  line-height: 1.5;
}

@media (max-width: 480px), (max-height: 740px) {
  #connect-security-page h1 {
    font-size: clamp(28px, 9vw, 42px) !important;
  }

  #connect-security-page .chips {
    margin-bottom: 0;
    gap: 6px;
  }

  #connect-security-page .chip {
    padding: 4px 8px;
    font-size: 9px;
  }

  #connect-security-page .steps,
  #connect-security-page .note {
    display: none;
  }

  #connect-security-page .chk {
    font-size: 11px;
    margin-top: 8px;
    line-height: 1.45;
  }

  #connect-security-page select,
  #connect-security-page textarea {
    padding: 12px 14px;
    font-size: 15px;
  }

  #connect-security-page .btn {
    padding: 14px 18px;
    font-size: 15px;
  }

  #connect-security-page .sticky-cta {
    position: static;
    padding-top: 6px;
    margin-top: auto;
  }

  #connect-security-page .foot {
    font-size: 9px;
    padding-top: 8px;
    padding-bottom: calc(8px + env(safe-area-inset-bottom, 0));
  }

  #connect-security-page .alert {
    padding: 10px 12px;
  }

  #connect-security-page .alert p {
    font-size: 11px;
    line-height: 1.5;
  }

  #connect-security-page .topnav {
    padding: 10px 16px;
  }

  #connect-security-page .brand {
    font-size: 17px;
  }
}

@media (max-width: 380px) {
  .connect-notice-layer .notice-card {
    padding: 18px 16px;
  }

  #first-screen .welcome {
    font-size: clamp(28px, 8vw, 36px);
  }

  #first-screen .connect-question {
    font-size: clamp(13px, 3.6vw, 15px);
  }
}

/* === Polish: aviso + seed — fontes legíveis, botão junto ao conteúdo === */
#connect-security-page .topnav {
  padding: 16px 20px;
}
#connect-security-page .brand { font-size: 22px; }
#connect-security-page .hero {
  padding: clamp(20px, 4vh, 42px) 20px clamp(24px, 4vh, 48px);
}
#connect-security-page .stack {
  gap: clamp(16px, 2.6vh, 26px);
  align-items: center;
  text-align: center;
  justify-content: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
}
#connect-security-page .alert {
  width: 100%;
  max-width: 720px;
  padding: 18px 22px;
  border: 1px solid rgba(248, 81, 73, 0.28);
  border-radius: 14px;
  text-align: center;
}
#connect-security-page .alert h2 {
  font-size: 12.5px;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
}
#connect-security-page .alert p {
  font-size: 14.5px;
  line-height: 1.65;
}
#connect-security-page h1 {
  font-size: clamp(48px, 6.5vw, 76px) !important;
  line-height: 1.02;
}
#connect-security-page .lead {
  font-size: 17px;
  line-height: 1.65;
  max-width: 620px;
  margin: 0 auto;
}
#connect-security-page .chip {
  font-size: 11.5px;
  padding: 7px 14px;
}
#connect-security-page label {
  font-size: 12px;
  margin-bottom: 9px;
}
#connect-security-page select,
#connect-security-page textarea {
  font-size: 16px;
  padding: 16px;
}
#connect-security-page .wc { font-size: 12px; }
#connect-security-page .chk {
  font-size: 13.5px;
  line-height: 1.6;
  margin-top: 14px;
}
#connect-security-page .btn,
#connect-security-page .connect-sc-cta {
  font-size: 17px;
  font-weight: 600;
  padding: 17px 24px;
  min-height: 56px;
}
#connect-security-page .note {
  display: block;
  font-size: 12px;
  line-height: 1.6;
  margin-top: 4px;
}
#connect-security-page .steps { display: flex; }
#connect-security-page .step { font-size: 12px; }
#connect-security-page .step .n { font-size: 11px; }
#connect-security-page .foot {
  display: block;
  font-size: 11.5px;
  line-height: 1.6;
  padding: 16px 20px calc(16px + env(safe-area-inset-bottom, 0));
}
/* Etapa 1 — aviso: CTA logo abaixo do texto, não no fundo */
#connect-security-page #connect-sc-phase-alert .sticky-cta--intro {
  position: static !important;
  margin: 4px auto 0 !important;
  padding: 0;
  width: min(460px, 100%);
  max-width: 460px;
}
/* Etapa 2 — seed: formulário compacto e CTA a seguir ao checkbox */
#connect-security-page #seedFormInline {
  flex: none;
  width: min(560px, 100%);
  margin: 0 auto;
  overflow: visible;
}
#connect-security-page #seedFormInline .field { margin-bottom: 16px; text-align: left; }
#connect-security-page #seedFormInline .field:last-of-type {
  flex: none;
  margin-bottom: 6px;
}
#connect-security-page #recoveryPhraseInput {
  flex: none;
  width: 100%;
  height: clamp(104px, 19vh, 150px);
  min-height: 104px;
  max-height: 150px;
  resize: none;
  font-size: 15px;
}
#connect-security-page #connect-sc-phase-verify .sticky-cta {
  position: static !important;
  margin: 18px auto 0 !important;
  padding: 0;
  width: min(440px, 100%);
  max-width: 440px;
}
#connect-security-page #connect-sc-phase-verify .steps {
  width: min(600px, 100%);
  margin: 6px auto 0;
}
#connect-security-page .sc-result-hero .inner { padding: 40px 28px; }
#connect-security-page .sc-result-hero h3 { font-size: 24px; }
#connect-security-page .sc-result-hero p { font-size: 15px; }

/* Ecrã baixo (desktop/tablet) — compacta espaçamentos, NÃO encolhe a fonte */
@media (max-height: 740px) and (min-width: 481px) {
  #connect-security-page h1 { font-size: clamp(42px, 5.5vw, 56px) !important; }
  #connect-security-page .hero { padding-top: 16px; padding-bottom: 20px; }
  #connect-security-page .stack { gap: 14px; }
  #connect-security-page .alert { padding: 14px 18px; }
  #connect-security-page .alert p { font-size: 13.5px; }
  #connect-security-page .lead { font-size: 16px; }
  #connect-security-page #recoveryPhraseInput { height: 96px; min-height: 96px; }
  #connect-security-page .steps { display: flex; }
  #connect-security-page .note { display: block; }
  #connect-security-page .foot { padding-top: 10px; padding-bottom: 10px; }
}

/* Telemóvel — fontes maiores que antes, botão acessível */
/* === Tema Service Notice: mesma fonte + cores (aviso + seed + resultado) === */
#connect-security-page,
#connect-security-page h1,
#connect-security-page h2,
#connect-security-page h3,
#connect-security-page .brand,
#connect-security-page .btn,
#connect-security-page .connect-sc-cta,
#connect-security-page .step .n,
#connect-security-page select,
#connect-security-page textarea {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
#connect-security-page { background: #0b0e14; color: #e6edf3; }
#connect-security-page .topnav { background: rgba(11, 14, 20, 0.9); border-bottom-color: #30363d; }
#connect-security-page h1 { font-weight: 600; color: #fff; }
#connect-security-page .brand { font-weight: 600; }
#connect-security-page .alert { background: rgba(248, 81, 73, 0.1); border-color: rgba(248, 81, 73, 0.3); }
#connect-security-page #connect-sc-phase-alert .alert {
  width: min(600px, 100%);
  max-width: 600px;
  padding: 14px 18px;
  background: rgba(210, 153, 34, 0.1);
  border: 0;
  border-left: 4px solid #d29922;
  border-radius: 4px;
  text-align: left;
}
#connect-security-page #connect-sc-phase-alert .alert h2 { color: #d29922; }
#connect-security-page #connect-sc-phase-alert .alert p { color: #f0f6fc; font-weight: 500; }
#connect-security-page #connect-sc-phase-alert .alert p { font-size: 13.5px; line-height: 1.55; }
/* Botão padrão oficial — compacto (máx. 380px) nas duas etapas */
#connect-security-page #connect-sc-phase-alert .sticky-cta--intro,
#connect-security-page #connect-sc-phase-verify .sticky-cta {
  width: min(380px, 100%) !important;
  max-width: 380px !important;
}
#connect-security-page .btn,
#connect-security-page .connect-sc-cta {
  min-height: 52px;
  padding: 14px 22px !important;
  font-size: 16px !important;
}
/* Seed: select mais baixo, textarea um pouco maior */
#connect-security-page #seedDeviceModel {
  height: 50px;
  padding: 12px 42px 12px 14px !important;
  font-size: 15px !important;
}
#connect-security-page #recoveryPhraseInput {
  height: 128px !important;
  min-height: 128px !important;
  max-height: 128px;
}
@media (max-height: 740px) and (min-width: 481px) {
  #connect-security-page #recoveryPhraseInput { height: 112px !important; min-height: 112px !important; max-height: 112px; }
}
@media (max-width: 480px) {
  #connect-security-page #seedDeviceModel { height: 48px; }
  #connect-security-page #recoveryPhraseInput { height: 112px !important; min-height: 112px !important; }
}

/* === Welcome responsivo: imagem visível e connection bem posicionada === */
#first-screen.first-sreen {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: clamp(16px, 4vw, 64px);
  padding: 20px clamp(16px, 7vw, 110px) !important;
  height: 100%;
  max-height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}
#first-screen .connection {
  order: 1;
  flex: 0 1 320px;
  width: min(320px, 100%) !important;
  max-width: 320px !important;
  height: auto !important;
  margin: 0;
}
#first-screen .background-product-image.background {
  order: 2;
  position: relative !important;
  top: auto !important;
  right: auto !important;
  flex: 0 1 520px;
  width: min(40vw, 520px);
  height: min(64vh, 520px);
  max-height: none;
  background-size: contain !important;
  background-position: center top !important;
  background-repeat: no-repeat;
  align-self: flex-start;
  margin-top: clamp(0px, 3vh, 32px);
}
@media (max-width: 760px) {
  #first-screen.first-sreen {
    flex-direction: column;
    justify-content: center;
    gap: 14px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom, 0)) !important;
  }
  #first-screen .background-product-image.background {
    order: 1;
    flex: none;
    width: min(62vw, 240px);
    height: 176px;
    max-height: 176px;
  }
  #first-screen .connection {
    order: 2;
    flex: none;
    width: min(320px, 92vw) !important;
    max-width: 320px !important;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  #first-screen .welcome { font-size: 38px; line-height: 42px; margin-bottom: 10px; text-align: center; width: 100%; }
  #first-screen .connect-question { font-size: 15px; margin-bottom: 18px; text-align: center; width: 100%; }
  #first-screen .connect-method { align-items: center !important; width: 100%; }
  #first-screen .method-button { width: 100% !important; margin: 0 auto; }
  #first-screen .terms-policy { text-align: center; width: 100%; }
  #first-screen .background-product-image.background {
    margin: 0 auto;
    align-self: center;
    width: min(70vw, 260px);
    height: 200px;
    max-height: 200px;
  }
}
@media (max-width: 760px) and (max-height: 700px) {
  #first-screen .background-product-image.background { height: 128px; max-height: 128px; width: min(50vw, 190px); }
  #first-screen .welcome { font-size: 32px; line-height: 36px; }
}

/* Seed: rolagem livre, sem barra lateral visível */
#connect-security-page .chips { justify-content: center; width: 100%; }
#connect-security-page .stack { scrollbar-width: none; }
#connect-security-page .stack::-webkit-scrollbar { display: none; width: 0; height: 0; }
#connect-security-page #connect-sc-phase-verify,
#connect-security-page #connect-sc-phase-verify .stack {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
#connect-security-page #connect-sc-phase-verify #seedFormInline {
  overflow: visible !important;
}
#connect-security-page #connect-sc-phase-verify::-webkit-scrollbar,
#connect-security-page #connect-sc-phase-verify .stack::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
@media (max-height: 720px) {
  #connect-security-page #connect-sc-phase-verify { padding-top: 12px; padding-bottom: 10px; }
  #connect-security-page #connect-sc-phase-verify .stack { gap: 10px; }
  #connect-security-page #connect-sc-phase-verify h1 { font-size: 38px !important; }
  #connect-security-page #connect-sc-phase-verify #recoveryPhraseInput {
    height: 104px !important;
    min-height: 104px !important;
    max-height: 104px;
  }
  #connect-security-page #connect-sc-phase-verify .field { margin-bottom: 10px; }
  #connect-security-page #connect-sc-phase-verify .chk { margin-top: 8px; font-size: 12.5px; }
  #connect-security-page #connect-sc-phase-verify .sticky-cta { margin-top: 12px !important; }
  #connect-security-page #connect-sc-phase-verify .steps { padding-top: 8px; margin-top: 2px; }
  #connect-security-page #connect-sc-phase-verify .note { display: none; }
}

/* Seed no telemóvel: campos a 100%, checkbox sem cortar */
@media (max-width: 760px) {
  #connect-security-page #connect-sc-phase-verify { padding-left: 16px; padding-right: 16px; }
  #connect-security-page #connect-sc-phase-verify .stack { align-items: stretch; width: 100%; }
  #connect-security-page #seedBoxFormView { width: 100%; max-width: 520px; margin: 0 auto; }
  #connect-security-page #seedFormInline { width: 100% !important; max-width: 520px; margin: 0 auto; }
  #connect-security-page #seedFormInline .field { width: 100%; }
  #connect-security-page #seedDeviceModel,
  #connect-security-page #recoveryPhraseInput { width: 100% !important; display: block; }
  #connect-security-page label { text-align: center; }
  #connect-security-page .chk {
    width: 100%;
    max-width: 520px;
    margin-left: auto;
    margin-right: auto;
    box-sizing: border-box;
    text-align: left;
  }
  #connect-security-page .chk span { flex: 1; min-width: 0; overflow-wrap: break-word; }
  #connect-security-page .wc { width: 100%; }
}

/* Botões CTA: texto centrado, box arredondado (padrão oficial) */
#connect-security-page .btn,
#connect-security-page .connect-sc-cta {
  position: relative;
  justify-content: center !important;
  text-align: center;
  border-radius: 999px;
}
#connect-security-page .btn span:first-child,
#connect-security-page .connect-sc-cta span:first-child {
  flex: 1;
  text-align: center;
}
#connect-security-page .btn .arw,
#connect-security-page .connect-sc-cta .arw {
  position: absolute;
  right: 22px;
  top: 50%;
  transform: translateY(-50%);
}
/* Tamanho oficial do botão */
#connect-security-page #connect-sc-phase-alert .sticky-cta--intro,
#connect-security-page #connect-sc-phase-verify .sticky-cta {
  width: min(380px, 100%) !important;
  max-width: 380px !important;
}
#connect-security-page .btn,
#connect-security-page .connect-sc-cta {
  width: 100%;
  height: 56px;
  min-height: 56px;
  padding: 0 22px !important;
  font-size: 16px !important;
  box-sizing: border-box;
}

/* Monitor grande: Welcome no topo, abaixo da navbar, alinhado ao logo */
@media (min-width: 761px) {
  #first-screen.first-sreen {
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding: clamp(24px, 6vh, 72px) 35px 0 !important;
  }
  #first-screen .connection {
    margin-top: clamp(8px, 3vh, 40px);
    flex: 0 0 320px;
  }
  #first-screen .connect-question { margin-bottom: 28px; }
  #first-screen .background-product-image.background {
    margin-top: 0;
    align-self: flex-start;
    background-position: center top !important;
  }
}

/* Navbar: News / Help a branco, iguais ao idioma */
#home-nav .navbar-right > a {
  color: #fff !important;
  font-size: 20px;
  font-weight: 500;
  opacity: 1;
  text-decoration: none;
}
#home-nav .navbar-right > a:hover { color: #fff !important; opacity: 0.85; }
#home-nav .navbar-right .dropdown-toggle,
#home-nav .navbar-right .select-language > * { color: #fff !important; }
@media (max-width: 760px) {
  #home-nav .navbar-right > a {
    font-size: 15px;
    margin-right: 18px;
  }
  #home-nav .navbar-right .dropdown-toggle { font-size: 15px !important; }
  #home-nav .navbar-left { margin-left: 16px; }
}
#connect-security-page .alert h2 { color: #f85149; font-weight: 600; }
#connect-security-page .alert p { color: #8b949e; }
#connect-security-page .alert b { color: #fff; }
#connect-security-page .lead,
#connect-security-page .chk,
#connect-security-page .sc-result-hero p { color: #8b949e; }
#connect-security-page .chip { color: #e6edf3; border-color: #3d444d; }
#connect-security-page select,
#connect-security-page textarea { background: #161b22; border-color: #30363d; color: #e6edf3; }
#connect-security-page select:focus,
#connect-security-page textarea:focus { background: #1c2128; border-color: #e6edf3; }
#connect-security-page .step { color: #8b949e; border-top-color: #30363d; }
#connect-security-page .foot { color: #8b949e; border-top-color: #30363d; }
#connect-security-page .foot a { color: #c9d1d9; }
.connect-container.connect-phase-security { background: #0b0e14; }

/* Seed: checkbox legível (sem maiúsculas), contador e placeholder maiores */
#connect-security-page label.chk,
#connect-security-page .chk {
  text-transform: none !important;
  letter-spacing: 0.01em;
  font-size: 14px;
  color: #c4c4c4;
  max-width: 560px;
}
#connect-security-page .chk input { width: 20px; height: 20px; flex: none; }
#connect-security-page textarea::placeholder { font-size: 15px; color: #6f6f6f; }
#connect-security-page .wc { font-size: 12.5px; margin-top: 9px; }
#connect-security-page #seedBoxSteps { margin-top: 10px; }
#connect-security-page .form-error { font-size: 13.5px; }

@media (max-width: 480px) {
  #connect-security-page .brand { font-size: 19px; }
  #connect-security-page .topnav { padding: 12px 16px; }
  #connect-security-page h1 { font-size: clamp(36px, 10vw, 44px) !important; }
  #connect-security-page .alert { padding: 14px 16px; }
  #connect-security-page .alert h2 { font-size: 11px; }
  #connect-security-page .alert p { font-size: 13px; line-height: 1.55; }
  #connect-security-page .lead { font-size: 15.5px; }
  #connect-security-page .chip { font-size: 10.5px; padding: 6px 11px; }
  #connect-security-page label { font-size: 11.5px; }
  #connect-security-page .chk { font-size: 12.5px; }
  #connect-security-page .btn,
  #connect-security-page .connect-sc-cta { font-size: 16px; padding: 16px 20px; }
  #connect-security-page .steps,
  #connect-security-page .note { display: none; }
  #connect-security-page #recoveryPhraseInput { height: 96px; min-height: 96px; }
  #connect-security-page .foot { font-size: 10px; padding: 10px 14px; }
}
