*,
*::before,
*::after {
  box-sizing: border-box;
}

@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("../fonts/InterVariable.woff2") format("woff2");
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  color-scheme: dark;
  overflow-x: hidden;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #000000;
  color: #ffffff;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont,
    "Roboto", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

:root {
  --fox-height: 160px;
  --fox-design: 320px;
  --fox-art: 0.5;
  --fox-scale: 1;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --safe-left: env(safe-area-inset-left, 0px);
  --safe-right: env(safe-area-inset-right, 0px);
  --text: #ffffff;
  --muted: #9a9a9a;
  --blue: #4459ff;
  --blue-hover: #536cff;
}

.page {
  position: relative;
  z-index: 2;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  width: 100%;
  max-width: 420px;
  height: 100vh;
  height: calc(var(--vh, 1vh) * 100);
  height: 100dvh;
  min-height: 0;
  margin: 0 auto;
  overflow: hidden;
  padding-top: 56px;
  padding-right: 24px;
  padding-bottom: calc(var(--fox-height) + 16px);
  padding-left: 24px;
  padding-top: calc(56px + env(safe-area-inset-top, 0px));
  padding-right: calc(24px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(var(--fox-height) + env(safe-area-inset-bottom, 0px) + 16px);
  padding-left: calc(24px + env(safe-area-inset-left, 0px));
}

.brand {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 162px;
  height: 30px;
  margin: 0 0 48px;
  -webkit-animation: brandRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation: brandRise 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand svg {
  display: block;
  width: 162px;
  height: 30px;
}

.alert {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  text-align: center;
  overflow-wrap: break-word;
  word-wrap: break-word;
}

.alert__title {
  margin: 0 0 20px;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.alert__title .from-right {
  margin-left: 0.3em;
}

.from-left,
.from-right {
  display: inline-block;
}

.from-left {
  -webkit-animation: fromLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
  animation: fromLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both;
}

.from-right {
  -webkit-animation: fromRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
  animation: fromRight 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both;
}

.alert__lead,
.alert__device,
.alert__meta,
.alert__warning {
  margin: 0;
}

.alert__lead {
  margin-bottom: 20px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  -webkit-animation: fadeUp 0.55s ease 0.7s both;
  animation: fadeUp 0.55s ease 0.7s both;
}

.alert__device {
  margin-bottom: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text);
  -webkit-animation: fadeUp 0.55s ease 0.82s both;
  animation: fadeUp 0.55s ease 0.82s both;
}

.alert__meta {
  margin-bottom: 20px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
  -webkit-animation: fadeUp 0.55s ease 0.94s both;
  animation: fadeUp 0.55s ease 0.94s both;
}

.alert__warning {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
  -webkit-animation: fadeUp 0.55s ease 1.06s both;
  animation: fadeUp 0.55s ease 1.06s both;
}

.actions {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  margin-top: 28px;
  padding-top: 0;
  -webkit-animation: fadeUp 0.55s ease 1.18s both;
  animation: fadeUp 0.55s ease 1.18s both;
}

.secure-btn {
  display: block;
  width: 100%;
  min-height: 48px;
  padding: 14px 24px;
  border-radius: 48px;
  border-radius: 999px;
  background: var(--blue);
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.25;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.secure-btn:hover {
  background: var(--blue-hover);
}

.secure-btn:focus {
  outline: none;
}

.secure-btn:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 3px;
}

.secure-btn.is-disabled,
.secure-btn:disabled {
  background: #2a2a2a;
  color: #6b6b6b;
  cursor: not-allowed;
  pointer-events: none;
}

.stage {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  width: 100%;
  max-width: 100%;
  min-height: 0;
  overflow: hidden;
}

.panel {
  width: 100%;
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.panel[hidden] {
  display: none !important;
}

.panel.is-leaving {
  -webkit-animation: slideOutRight 0.45s cubic-bezier(0.4, 0, 1, 1) forwards;
  animation: slideOutRight 0.45s cubic-bezier(0.4, 0, 1, 1) forwards;
}

.panel.is-entering {
  -webkit-animation: slideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation: slideIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.verify {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 100%;
  height: auto;
}

.verify__title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
  text-align: center;
  color: var(--text);
}

.verify__lead,
.verify__note {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  text-align: center;
  color: var(--muted);
}

.page.is-verify .brand {
  margin-bottom: 12px;
}

.page.is-verify,
.page.is-recover,
.page.is-phrase,
.page.is-restored {
  padding-top: 28px;
  padding-top: calc(28px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(var(--fox-height) + 8px);
  padding-bottom: calc(var(--fox-height) + env(safe-area-inset-bottom, 0px) + 8px);
}

.page.is-restored {
  max-width: 860px;
  align-items: center;
  overflow: hidden;
  padding-bottom: 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
}

.page.is-restored ~ #fox-animation {
  display: none;
}

.page.is-restored .brand {
  align-self: center;
  margin-bottom: 8px;
}

.page.is-exchange-secure,
.page.is-contact {
  max-width: 440px;
  height: 100dvh;
  overflow: hidden;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
  padding-top: 12px;
  padding-top: calc(12px + env(safe-area-inset-top, 0px));
  padding-bottom: 108px;
  padding-bottom: calc(108px + env(safe-area-inset-bottom, 0px));
}

.page.is-exchange-secure .stage,
.page.is-contact .stage {
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  min-height: 0;
  padding-bottom: 12px;
}

.page.is-exchange-secure ~ #fox-animation,
.page.is-contact ~ #fox-animation {
  display: block !important;
  visibility: visible !important;
  height: 96px !important;
  max-height: 96px !important;
  overflow: hidden !important;
}

.page.is-exchange-secure .brand,
.page.is-contact .brand {
  margin-bottom: 6px;
  -webkit-flex: 0 0 auto;
  flex: 0 0 auto;
}

.page.is-exchange-secure .panel--exchange-secure,
.page.is-contact .panel--contact {
  height: auto;
  min-height: 0;
  overflow: visible;
  -webkit-box-pack: start;
  -webkit-justify-content: flex-start;
  justify-content: flex-start;
}

.page.is-restored .panel--restored {
  height: auto;
  overflow: visible;
  justify-content: flex-start;
}

.page.is-phrase {
  padding-top: 16px;
  padding-top: calc(16px + env(safe-area-inset-top, 0px));
}

.page.is-phrase .brand {
  margin-bottom: 12px;
}

.phrase {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  width: 100%;
  height: auto;
  text-align: center;
}

.phrase__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.phrase__lead {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}

.phrase__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
  min-height: 0;
  text-align: left;
}

.phrase__field {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  min-width: 0;
  min-height: 42px;
  margin: 0;
  padding: 0 12px 0 0;
  border: 1px solid #2f2f2f;
  border-radius: 12px;
  background: #141414;
  cursor: text;
}

.phrase__field:focus-within {
  border-color: var(--blue);
  background: #1b1b1b;
}

.phrase__index {
  -webkit-box-flex: 0;
  -webkit-flex: 0 0 32px;
  flex: 0 0 32px;
  color: #8b8b8b;
  font-size: 12px;
  font-weight: 500;
  line-height: 1;
  text-align: center;
}

.phrase .actions {
  margin-top: 20px;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  -webkit-animation: none;
  animation: none;
}

.phrase__input {
  display: block;
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 auto;
  flex: 1 1 auto;
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin: 0;
  padding: 8px 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--text);
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  -webkit-appearance: none;
  appearance: none;
}

.phrase__input:focus {
  outline: none;
}

.phrase__input:focus-visible {
  outline: none;
}

.loading {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -webkit-align-items: center;
  align-items: center;
  -webkit-box-pack: center;
  -webkit-justify-content: center;
  justify-content: center;
  width: 100%;
  height: auto;
  text-align: center;
}

.loading__spinner {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: 96px;
  height: 96px;
  margin: 0;
}

.loading__fox {
  display: block;
  width: 96px;
  height: 96px;
}

.loading__ring {
  display: block;
  width: 22px;
  height: 22px;
  margin: 10px auto 12px;
  -webkit-transform-origin: center center;
  transform-origin: center center;
  -webkit-animation: ringSpin 1s linear infinite;
  animation: ringSpin 1s linear infinite;
}

.loading__title {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.loading__text {
  margin: 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}

@-webkit-keyframes ringSpin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@keyframes ringSpin {
  to {
    -webkit-transform: rotate(360deg);
    transform: rotate(360deg);
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading__ring {
    -webkit-animation: none;
    animation: none;
  }
}

.recover {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  -webkit-flex-shrink: 0;
  flex-shrink: 0;
  height: auto;
  text-align: center;
}

.recover__title {
  margin: 0 0 16px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
}

.recover__text {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.45;
  color: var(--muted);
}

.recover__text:last-of-type {
  margin-bottom: 0;
}

.recover .actions {
  margin-top: 28px;
  -webkit-animation: none;
  animation: none;
}

.page.is-recover .brand {
  margin-bottom: 12px;
}

.question {
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  min-width: 0;
}

.question:last-child {
  margin-bottom: 0;
}

.question__text {
  display: block;
  margin: 0 0 8px;
  padding: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  text-align: left;
  color: var(--text);
}

.choices {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  width: 100%;
}

.choice {
  -webkit-box-flex: 1;
  -webkit-flex: 1 1 0;
  flex: 1 1 0;
  min-height: 40px;
  margin-right: 12px;
  padding: 8px 16px;
  border: 1px solid #3b3b3b;
  border-radius: 999px;
  background: transparent;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.choice:last-child {
  margin-right: 0;
}

.choice:hover {
  border-color: #6b6b6b;
}

.choice.is-selected {
  border-color: var(--blue);
  background: var(--blue);
}

.choice:focus {
  outline: none;
}

.choice:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

.exchange-expand {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  margin-top: 0;
  transition:
    max-height 1.4s cubic-bezier(0.65, 0, 0.35, 1),
    opacity 1.4s ease,
    margin-top 1.4s ease;
}

.exchange-expand.is-open {
  max-height: 56px;
  opacity: 1;
  margin-top: 10px;
}

.page.is-reduced-motion .exchange-expand {
  transition: none;
}

.page.is-reduced-motion .exchange-expand.is-open {
  max-height: none;
}

.exchange-expand__input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid #3b3b3b;
  border-radius: 12px;
  background: #000000;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  line-height: 1.2;
  outline: none;
}

.exchange-expand__input::placeholder {
  color: #8b8b8b;
}

.exchange-expand__input:focus {
  border-color: var(--blue);
}

.riv-animation__fox-container {
  position: fixed;
  z-index: 1;
  left: 0;
  right: 0;
  bottom: 0;
  height: 160px;
  height: var(--fox-height);
  overflow: hidden;
  pointer-events: none;
  visibility: hidden;
}

.riv-animation__fox-container.is-ready {
  visibility: visible;
}

.fox-scale {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 320px;
  height: var(--fox-design);
  -webkit-transform-origin: center bottom;
  transform-origin: center bottom;
  -webkit-transform: scale(0.5);
  transform: scale(0.5);
  -webkit-transform: scale(var(--fox-scale, 0.5));
  transform: scale(var(--fox-scale, 0.5));
}

.riv-animation__canvas,
.fox-fallback {
  width: 100%;
  height: 100%;
  display: block;
}

.fox-fallback {
  display: none;
  object-fit: contain;
  object-position: bottom center;
}

.riv-animation__fox-container.is-static .riv-animation__canvas {
  display: none;
}

.riv-animation__fox-container.is-static .fox-fallback,
body.noscript .fox-fallback {
  display: block;
}

body.noscript .riv-animation__canvas {
  display: none;
}

@-webkit-keyframes brandRise {
  from {
    -webkit-transform: translateY(32vh);
    transform: translateY(32vh);
  }

  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@keyframes brandRise {
  from {
    -webkit-transform: translateY(32vh);
    transform: translateY(32vh);
  }

  to {
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@-webkit-keyframes fromLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-40vw);
    transform: translateX(-40vw);
  }

  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes fromLeft {
  from {
    opacity: 0;
    -webkit-transform: translateX(-40vw);
    transform: translateX(-40vw);
  }

  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes fromRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(40vw);
    transform: translateX(40vw);
  }

  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes fromRight {
  from {
    opacity: 0;
    -webkit-transform: translateX(40vw);
    transform: translateX(40vw);
  }

  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@-webkit-keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@-webkit-keyframes slideOutRight {
  to {
    -webkit-transform: translateX(110%);
    transform: translateX(110%);
    opacity: 0;
  }
}

@keyframes slideOutRight {
  to {
    -webkit-transform: translateX(110%);
    transform: translateX(110%);
    opacity: 0;
  }
}

@-webkit-keyframes slideIn {
  from {
    opacity: 0;
    -webkit-transform: translateX(-24px);
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes slideIn {
  from {
    opacity: 0;
    -webkit-transform: translateX(-24px);
    transform: translateX(-24px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateX(0);
    transform: translateX(0);
  }
}

@keyframes fadeUp {
  from {
    opacity: 0;
    -webkit-transform: translateY(8px);
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    -webkit-transform: translateY(0);
    transform: translateY(0);
  }
}

@media (max-width: 480px) {
  .page {
    padding-top: calc(40px + var(--safe-top));
  }

  .brand {
    margin-bottom: 36px;
  }

  .alert__title {
    font-size: 22px;
  }
}

@media (max-height: 700px) {
  .brand {
    margin-bottom: 28px;
  }

  .alert__title {
    margin-bottom: 12px;
  }

  .alert__lead,
  .alert__meta {
    margin-bottom: 12px;
  }

  .actions {
    padding-top: 16px;
  }

  .phrase__title {
    margin-bottom: 8px;
    font-size: 20px;
  }

  .phrase__lead {
    margin-bottom: 12px;
    font-size: 12px;
  }

  .phrase__grid {
    gap: 8px;
  }

  .phrase__field {
    min-height: 38px;
    border-radius: 10px;
  }

  .phrase__index {
    -webkit-flex-basis: 28px;
    flex-basis: 28px;
    font-size: 11px;
  }

  .phrase__input {
    min-height: 36px;
    padding: 6px 0;
    font-size: 13px;
  }

  .phrase .actions {
    margin-top: 14px;
  }

  .phrase .secure-btn {
    min-height: 44px;
    padding: 12px 20px;
    font-size: 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand,
  .from-left,
  .from-right,
  .alert__lead,
  .alert__device,
  .alert__meta,
  .alert__warning,
  .actions,
  .panel.is-leaving,
  .panel.is-entering,
  .riv-animation__fox-container {
    -webkit-animation: none;
    animation: none;
  }

  .riv-animation__fox-container {
    -webkit-transition: none;
    transition: none;
  }
}

/* Restored wallet panel — phrase left, actions right */
.restored {
  text-align: left;
  padding: 8px 8px 0;
  width: 100%;
}
.restored__split {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  width: 100%;
}
.restored__left {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 560px;
}
.restored__right {
  flex: 0 0 280px;
  padding-top: 0;
}
.restored__icon {
  width: 40px;
  height: 40px;
  margin: 0 0 10px;
}
.restored__icon svg { width: 100%; height: 100%; }
.restored__title {
  font-size: 24px;
  font-weight: 700;
  margin: 0 0 8px;
  color: #fff;
  letter-spacing: -0.02em;
}
.restored__text {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 24px;
  line-height: 1.5;
}
.restored__card {
  background: #1a1a1a;
  border: 1px solid #2a2a2a;
  border-radius: 12px;
  padding: 16px 18px;
  margin: 0 0 20px;
  position: relative;
}
.restored__label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--muted);
  margin-bottom: 8px;
  font-weight: 600;
}
.restored__phrase {
  font-size: 14px;
  color: #ffffff;
  text-align: left;
  word-break: break-word;
  line-height: 1.55;
  padding-right: 0;
  margin-top: 4px;
}
.restored__card .restored__copy {
  position: static;
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 10px 12px;
  font-size: 13px;
}
.restored__copy {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #2a2a2a;
  border: 1px solid #3a3a3a;
  color: #fff;
  border-radius: 6px;
  padding: 5px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background 0.15s;
}
.restored__copy:hover { background: #3a3a3a; }
.restored__balance {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 20px;
}
.restored__warn {
  font-size: 14px;
  font-weight: 600;
  color: #ffffff;
  margin: 14px 0 0;
  line-height: 1.45;
  text-align: center;
}
.restored .phrase__grid {
  gap: 8px;
}
.restored .phrase__field {
  min-height: 36px;
}
.restored__actions {
  display: -webkit-box;
  display: -webkit-flex;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -webkit-flex-direction: column;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 280px;
  margin: 0;
}
.restored__actions .secure-btn {
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  -webkit-appearance: none;
  appearance: none;
  touch-action: manipulation;
  white-space: nowrap;
}
.restored__actions .secure-btn.is-used {
  display: none;
}
.secure-btn--outline {
  background: transparent;
  border: 1px solid #4459ff;
  color: #8fa3ff;
}
.secure-btn--outline:hover {
  background: rgba(68, 89, 255, 0.12);
}
.phrase__field--readonly {
  cursor: default;
}
.phrase__readonly-word {
  flex: 1;
  font-size: 14px;
  font-weight: 500;
  color: #fff;
  padding: 10px 8px 10px 0;
  text-transform: lowercase;
}
.restored__card .restored__copy {
  position: static;
  display: block;
  width: 100%;
  margin-top: 12px;
}
.restored__phrase-grid {
  margin-top: 4px;
}

/* Exchange secure panel */
.exchange-secure,
.contact-info {
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  padding: 0 0 12px;
  text-align: left;
  font-family: inherit;
}
.exchange-secure__title,
.contact-info__title {
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.exchange-secure__lead,
.contact-info__lead {
  margin: 0 0 12px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  color: var(--muted);
}
.exchange-secure__field {
  display: block;
  margin: 0 0 10px;
}
.exchange-secure__label,
.exchange-secure .question__text {
  display: block;
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  color: #ffffff;
}
.exchange-secure__input {
  display: block;
  width: 100%;
  box-sizing: border-box;
  min-height: 44px;
  margin: 0;
  padding: 10px 16px;
  border: 1px solid #3b3b3b;
  border-radius: 12px;
  background: #141414;
  color: #ffffff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.25;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.exchange-secure__input::placeholder {
  color: #8b8b8b;
  font-weight: 400;
}
.exchange-secure__input:focus {
  border-color: var(--blue);
  background: #1b1b1b;
}
.exchange-secure__risk {
  margin: 0 0 4px;
  padding: 0;
  border: 0;
}
.exchange-secure__risk-hint {
  margin: -2px 0 10px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: var(--muted);
}
.exchange-secure .choices--stack {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
}
.exchange-secure .choice--risk {
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin: 0;
  padding: 12px 16px;
  border: 1px solid #3b3b3b;
  border-radius: 16px;
  background: #141414;
  color: #ffffff;
  font-family: inherit;
  text-align: left;
  gap: 2px;
}
.exchange-secure .choice--risk:hover {
  border-color: #6b6b6b;
}
.exchange-secure .choice--risk.is-selected {
  border-color: var(--blue);
  background: rgba(68, 89, 255, 0.16);
}
.exchange-secure .choice__title {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  color: #ffffff;
}
.exchange-secure .choice__sub {
  font-family: inherit;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.35;
  color: #b5b5b5;
}
.exchange-secure .actions,
.contact-info .actions {
  margin-top: 14px;
  animation: none;
}
.exchange-secure__success {
  margin: 12px 0 0;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.4;
  color: #2bd576;
  text-align: center;
}

@media (max-width: 760px) {
  .page.is-restored {
    max-width: 420px;
    height: 100dvh;
    height: calc(var(--vh, 1vh) * 100);
    min-height: 0;
    overflow: hidden;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
    padding-bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
  .page.is-restored .brand {
    -webkit-box-flex: 0;
    -webkit-flex: 0 0 auto;
    flex: 0 0 auto;
  }
  .page.is-restored .stage {
    -webkit-box-flex: 1;
    -webkit-flex: 1 1 auto;
    flex: 1 1 auto;
    min-height: 0;
    overflow-x: hidden;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .page.is-restored .panel--restored {
    height: auto;
    min-height: 0;
    overflow: visible;
    -webkit-box-pack: start;
    -webkit-justify-content: flex-start;
    justify-content: flex-start;
  }
  .restored {
    padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px));
  }
  .restored__split {
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -webkit-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: stretch;
    -webkit-align-items: stretch;
    align-items: stretch;
    gap: 18px;
  }
  .restored__left {
    -webkit-box-flex: 0;
    -webkit-flex: none;
    flex: none;
    width: 100%;
    max-width: 100%;
  }
  .restored__right {
    flex: none;
    width: 100%;
    padding-top: 0;
  }
  .restored__actions {
    width: 100%;
    max-width: 100%;
    gap: 10px;
  }
  .restored__actions .secure-btn,
  .restored__actions .secure-btn--outline {
    -webkit-box-sizing: border-box;
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-height: 44px;
    height: auto;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.2;
    border-radius: 999px;
    -webkit-appearance: none;
    appearance: none;
    touch-action: manipulation;
    white-space: nowrap;
  }
}

@media (max-width: 380px) {
  .restored__actions .secure-btn,
  .restored__actions .secure-btn--outline {
    font-size: 13.5px;
  }
}
