@font-face {
  font-family: "OurFont";
  src: url("./assets/Inter-Regular.woff") format("woff");
  font-display: swap;
  font-style: normal;
  font-weight: 400;
}

:root {
  color-scheme: dark;
  font-family: "OurFont", system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --hl-accent-soft: #50d2c1;
  --hl-accent: #97fce4;
  --hl-accent-text: #04060c;
  --text: #f3f8f5;
  --line: rgba(255, 255, 255, 0.1);
  --green: #7cffb2;
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  background: #0f1a1f;
}

.hyperliquid-frame {
  position: fixed;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100vw;
  height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: #0f1a1f;
}

.trade-panel {
  position: fixed;
  z-index: 2;
  top: 55px;
  right: 0;
  bottom: 30px;
  width: calc(18.75vw + 0px);
  overflow-x: hidden;
  overflow-y: auto;
  color: #f6fefd;
  border: 3px solid #101e23;
  border-bottom: 0;
  background: #0f1a1f;
  font-family: "OurFont", system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  scrollbar-color: #354248 transparent;
  scrollbar-width: thin;
}

.trade-panel,
.parent-connect-layer {
  visibility: hidden;
  opacity: 0;
}

html.embed-ready .trade-panel,
html.embed-ready .parent-connect-layer {
  visibility: visible;
  opacity: 1;
}

.trade-panel button {
  font-family: inherit;
  font-weight: 400;
}

.order-entry {
  min-height: 686px;
  border-bottom: 3px solid #101e23;
  background: #0f1a1f;
}

.order-tabs {
  display: grid;
  height: 35px;
  margin: 7px 10px 0;
  padding: 0;
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.order-tab {
  position: relative;
  padding: 0;
  color: #949e9c;
  border: 0;
  background: transparent;
  font-size: 12px;
  line-height: 34px;
  cursor: pointer;
}

.order-tab.is-active {
  color: #f6fefd;
}

.order-tab.is-active::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1px;
  background: #50d2c1;
  content: "";
}

.order-tab-pro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.tab-chevron {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1px solid #949e9c;
  border-bottom: 1px solid #949e9c;
  transform: rotate(45deg);
}

.side-switch {
  display: grid;
  height: 33px;
  margin: 16px 10px 0;
  padding: 2px 4px;
  grid-template-columns: 1fr 1fr;
  border-radius: 8px;
  background: #273035;
}

.side-button {
  padding: 0;
  color: #f6fefd;
  border: 0;
  border-radius: 6px;
  background: transparent;
  font-size: 12px;
  line-height: 29px;
  cursor: pointer;
}

.side-button.is-selected {
  color: #02231e;
  background: #50d2c1;
}

.balance-row,
.order-stats > div,
.summary-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.balance-row {
  height: 15px;
  margin: 16px 10px 0;
  color: #949e9c;
  font-size: 12px;
  line-height: 15px;
}

.balance-row strong {
  color: #f6fefd;
  font-size: 12px;
  font-weight: 400;
  line-height: 15px;
}

.underlined-label {
  text-decoration-line: underline;
  text-decoration-color: rgba(170, 184, 188, 0.52);
  text-decoration-style: dotted;
  text-underline-offset: 3px;
}

.size-input {
  display: flex;
  width: calc(100% - 20px);
  height: 33px;
  margin: 8px 10px 0;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
  color: #949e9c;
  border: 1px solid #273035;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  line-height: 15px;
  text-align: left;
  cursor: pointer;
}

.asset-selector {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  color: #f6fefd;
}

.asset-selector i {
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-right: 1px solid #d8e1e3;
  border-bottom: 1px solid #d8e1e3;
  transform: rotate(45deg);
}

.size-control {
  display: grid;
  height: 33px;
  margin: 8px 10px 0;
  grid-template-columns: minmax(0, 1fr) 60px;
  gap: 10px;
  align-items: center;
}

.slider-shell {
  position: relative;
  width: 100%;
  height: 17px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.slider-shell::before {
  position: absolute;
  top: 7px;
  right: 0;
  left: 7px;
  height: 5px;
  border-radius: 4px;
  background: #344047;
  content: "";
}

.slider-thumb {
  position: absolute;
  z-index: 2;
  top: 0;
  left: 0;
  width: 17px;
  height: 17px;
  border: 2px solid #50d2c1;
  border-radius: 50%;
  background: #0f1a1f;
}

.slider-dot {
  position: absolute;
  z-index: 1;
  top: 6px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #69757a;
}

.dot-one { left: 25%; }
.dot-two { left: 50%; }
.dot-three { left: 75%; }
.dot-four { right: 0; }

.percent-input {
  display: flex;
  height: 33px;
  padding: 0 10px;
  align-items: center;
  justify-content: space-between;
  color: #f6fefd;
  border: 1px solid #273035;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  line-height: 31px;
}

.percent-input strong {
  font-weight: 600;
}

.connect-reserved {
  height: 335.5px;
}

.trade-connect-button {
  display: block;
  width: calc(100% - 20px);
  height: 33px;
  margin: 0 10px 15px;
  padding: 0 16px;
  color: var(--hl-accent-text);
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--hl-accent-soft);
  font-size: 12px;
  line-height: 31px;
  text-align: center;
  cursor: pointer;
}

.order-stats {
  padding: 0 10px 12px;
}

.order-stats > div {
  min-height: 25px;
  color: #949e9c;
  font-size: 12px;
  line-height: 15px;
}

.order-stats strong {
  color: #f6fefd;
  font-weight: 400;
}

.order-stats .accent-value {
  color: #24cfc0;
}

.account-panel {
  min-height: 230px;
  padding: 13px 10px 24px;
  background: #0f1a1f;
}

.fund-actions {
  display: grid;
  height: 34px;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fund-button {
  border: 1px solid #1b5454;
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
  line-height: 31px;
  cursor: pointer;
}

.deposit-button {
  color: #081414;
  border-color: #19594f;
  background: #16554d;
}

.withdraw-button {
  color: #175451;
}

.trade-panel button:hover,
.trade-panel button:focus-visible {
  filter: brightness(1.08);
}

.trade-panel button:focus-visible {
  outline: 1px solid #50d2c1;
  outline-offset: 2px;
}

.account-divider {
  height: 1px;
  margin: 14px 0 11px;
  background: #26343a;
}

.account-panel h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: 12px;
  font-weight: 400;
}

.summary-row {
  min-height: 26px;
  color: #9ca9ad;
  font-size: 12px;
}

.summary-row strong {
  color: #fff;
  font-weight: 400;
}

.ratio-value {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #24cfc0 !important;
}

.ratio-value i {
  position: relative;
  width: 17px;
  height: 8px;
  overflow: hidden;
  border-radius: 17px 17px 0 0;
  background: conic-gradient(from 270deg at 50% 100%, #50d2c1 0deg 118deg, #fb6671 118deg 180deg, transparent 180deg);
}

.parent-connect-layer {
  position: fixed;
  z-index: 2147483647;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.parent-connect {
  position: absolute;
  height: 33px;
  padding: 0 16px;
  color: var(--hl-accent-text);
  border: 1px solid transparent;
  border-radius: 8px;
  background: var(--hl-accent-soft);
  font-family: "OurFont", system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 31px;
  text-align: center;
  pointer-events: auto;
  cursor: pointer;
}

.parent-connect::before {
  position: absolute;
  inset: -10px;
  content: "";
  background: transparent;
  pointer-events: auto;
}

.parent-connect:hover,
.parent-connect:focus-visible {
  background: var(--hl-accent);
}

.parent-connect:focus-visible {
  outline: 1px solid var(--hl-accent);
  outline-offset: 2px;
}

.parent-connect-top {
  top: 11.5px;
  right: 90.29px;
  width: 81.13px;
}

.parent-language {
  position: absolute;
  top: 11.5px;
  right: 51px;
  width: 34px;
  height: 33px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  opacity: 0.01;
  background: transparent;
  pointer-events: auto;
  cursor: pointer;
}

.parent-language::before {
  position: absolute;
  inset: -6px -6px -6px 0;
  content: "";
  background: transparent;
}

.parent-language-menu {
  position: absolute;
  top: 50px;
  right: 48px;
  display: grid;
  min-width: 126px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 10px;
  background: rgba(9, 16, 15, 0.98);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.48);
  gap: 2px;
  pointer-events: auto;
}

.parent-language-menu[hidden] {
  display: none;
}

.parent-language-menu button {
  min-height: 30px;
  padding: 0 10px;
  color: #e1e8e5;
  border: 0;
  border-radius: 7px;
  background: transparent;
  font-family: "OurFont", system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  font-size: 12px;
  text-align: left;
  white-space: nowrap;
  cursor: pointer;
}

.parent-language-menu button:hover,
.parent-language-menu button:focus-visible,
.parent-language-menu button.is-selected {
  color: var(--hl-accent-text);
  background: var(--hl-accent-soft);
  outline: none;
}

.wallet-dialog {
  width: min(540px, calc(100% - 28px));
  max-height: min(790px, calc(100dvh - 28px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 24px;
  color: var(--text);
  background: #0a100f;
  box-shadow: 0 42px 120px rgba(0, 0, 0, 0.72), 0 0 0 1px rgba(124, 255, 178, 0.035);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", system-ui, sans-serif;
  pointer-events: auto;
}

.wallet-dialog::backdrop {
  background: rgba(2, 5, 4, 0.78);
  backdrop-filter: blur(11px);
  animation: fade-in 180ms ease-out;
}

.wallet-dialog[open] {
  animation: dialog-in 240ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wallet-dialog button,
.wallet-dialog a {
  color: inherit;
  font: inherit;
}

.dialog-frame {
  display: flex;
  max-height: min(790px, calc(100dvh - 28px));
  flex-direction: column;
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  padding: 24px 24px 0;
}

.dialog-brand {
  display: flex;
  align-items: center;
  gap: 13px;
}

.dialog-logo {
  display: grid;
  width: 48px;
  height: 48px;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #f6aa4c;
  border-radius: 15px;
  color: #fff;
  background: linear-gradient(145deg, #f9a52c, #d96f0e);
  box-shadow: 0 10px 26px rgba(247, 147, 26, 0.18);
  font-family: "DM Mono", monospace;
  font-size: 25px;
}

.hyperliquid-dialog-logo {
  display: block;
  width: 115px;
  height: 32px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.hyperliquid-dialog-logo img {
  display: block;
  width: 115px;
  height: 32px;
}

.dialog-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 8px;
  letter-spacing: 0.14em;
}

.dialog-brand h2 {
  margin: 0;
  font-size: 21px;
  letter-spacing: -0.03em;
}

.close-button {
  position: relative;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
  transition: border-color 160ms ease, background 160ms ease, transform 160ms ease;
}

.close-button span {
  position: absolute;
  top: 17px;
  left: 10px;
  width: 15px;
  height: 1.5px;
  border-radius: 2px;
  background: #ccd4d0;
}

.close-button span:first-child {
  transform: rotate(45deg);
}

.close-button span:last-child {
  transform: rotate(-45deg);
}

.close-button:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.06);
  transform: rotate(5deg);
}

.wallet-option:focus-visible,
.close-button:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
}

.dialog-description {
  margin: 17px 24px 15px;
  color: #7e8a84;
  font-size: 12px;
}

.security-note {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 24px 16px;
  padding: 11px 13px;
  border: 1px solid rgba(124, 255, 178, 0.11);
  border-radius: 10px;
  background: rgba(124, 255, 178, 0.035);
}

.security-note-icon {
  display: grid;
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #06100b;
  background: var(--green);
  font-size: 11px;
  font-weight: 800;
}

.security-note p {
  margin: 0;
  color: #76827c;
  font-size: 10px;
  line-height: 1.55;
}

.security-note strong {
  margin-right: 5px;
  color: #b9c9c0;
  font-weight: 600;
}

.wallet-list {
  margin: 0 12px;
  padding: 0 12px 4px;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: #2e3a34 transparent;
  scrollbar-width: thin;
}

.wallet-option {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto 18px;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 8px 11px;
  border: 1px solid transparent;
  border-bottom-color: rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  text-align: left;
  text-decoration: none;
  background: transparent;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, transform 150ms ease;
}

.wallet-option:hover:not(:disabled) {
  border-color: rgba(124, 255, 178, 0.13);
  background: rgba(124, 255, 178, 0.035);
  transform: translateX(2px);
}

.wallet-icon {
  display: grid;
  width: 38px;
  height: 38px;
  overflow: hidden;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 33px;
  color: #fff;
  background: #1a211f;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.wallet-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.metamask { background: linear-gradient(145deg, #f6a24a, #d65e23); }
.okx { color: #111; background: #fff; font-size: 8px; }
.phantom { background: linear-gradient(145deg, #a781ff, #5d49cf); }
.trust { background: linear-gradient(145deg, #41a5ff, #176dd2); }
.rabby { background: linear-gradient(145deg, #8c82ff, #5147e8); }
.imtoken { background: linear-gradient(145deg, #25b7bd, #087a88); }
.unisat { color: #111; background: linear-gradient(145deg, #ffdf4a, #f49c13); }
.ledger { color: #111; background: #f4f5f4; }
.onekey { color: #06200f; background: #56e977; }
.trezor { background: linear-gradient(145deg, #69a5ff, #2b63c9); }
.exodus { background: linear-gradient(145deg, #8e77ff, #5736dc); }
.tronlink { background: linear-gradient(145deg, #ff5858, #c21f37); font-size: 17px; }
.safepal { background: linear-gradient(145deg, #63d8ff, #216fb6); }

.wallet-name {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 4px;
  color: #e2e8e5;
  font-size: 12px;
  font-weight: 650;
}

.wallet-name small {
  overflow: hidden;
  color: #5f6b65;
  font-size: 9px;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recommended {
  padding: 5px 7px;
  border: 1px solid rgba(124, 255, 178, 0.12);
  border-radius: 5px;
  color: var(--green);
  background: rgba(124, 255, 178, 0.055);
  font-size: 8px;
}

.chevron {
  color: #536059;
  font-size: 21px;
  font-weight: 300;
  transition: color 150ms ease, transform 150ms ease;
}

.wallet-option:hover:not(:disabled) .chevron {
  color: var(--green);
  transform: translateX(2px);
}

.toast {
  position: fixed;
  z-index: 50;
  right: 24px;
  bottom: 24px;
  display: flex;
  width: min(390px, calc(100% - 32px));
  align-items: center;
  gap: 11px;
  padding: 14px 16px;
  border: 1px solid rgba(124, 255, 178, 0.18);
  border-radius: 13px;
  visibility: hidden;
  opacity: 0;
  background: rgba(12, 22, 18, 0.96);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.48);
  font-family: Inter, "SF Pro Display", "Segoe UI", "PingFang SC", system-ui, sans-serif;
  pointer-events: auto;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease, visibility 180ms ease;
}

.toast.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.toast > span {
  display: grid;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  color: #06100b;
  background: var(--green);
  font-family: "DM Mono", monospace;
  font-size: 12px;
  font-weight: 700;
}

.toast p {
  margin: 0;
  color: #92a099;
  font-size: 11px;
  line-height: 1.55;
}

.toast strong {
  color: #d8e3dd;
}

@keyframes fade-in {
  from { opacity: 0; }
}

.dialog-view {
  display: flex;
  min-height: 0;
  max-height: min(790px, calc(100dvh - 28px));
  flex-direction: column;
}

.dialog-view[hidden] {
  display: none;
}

.wallet-view .wallet-list {
  flex: 1 1 auto;
}

@keyframes dialog-in {
  from { opacity: 0; transform: translateY(18px) scale(0.975); }
}

@media (min-width: 821px) and (max-width: 1420px) {
  .trade-panel {
    width: calc(28.125vw + 10px);
  }
}

@media (max-width: 820px) {
  .trade-panel {
    display: none;
  }

  .parent-connect-top {
    top: 8px;
    right: 84px;
    width: 92px;
    height: 42px;
  }

  .parent-connect-top::before {
    inset: -8px 0 -8px -12px;
  }

  .parent-language-top {
    top: 8px;
    right: 42px;
    width: 38px;
    height: 42px;
  }

  .parent-language-top::before {
    inset: -8px -7px -8px 0;
  }

  .parent-language-menu {
    top: 52px;
    right: 46px;
  }

  .wallet-dialog,
  .dialog-frame {
    max-height: calc(100dvh - 18px);
  }

  .wallet-dialog {
    width: calc(100% - 18px);
    border-radius: 19px;
  }

  .dialog-header {
    padding: 20px 18px 0;
  }

  .dialog-description {
    margin-right: 18px;
    margin-left: 18px;
  }

  .security-note {
    margin-right: 18px;
    margin-left: 18px;
  }

  .wallet-list {
    margin: 0 5px;
    padding-right: 10px;
    padding-left: 10px;
  }

  .recommended {
    display: none;
  }

  .wallet-option {
    grid-template-columns: 42px minmax(0, 1fr) 18px;
  }

  .dialog-view .dialog-description {
    margin-right: 18px;
    margin-left: 18px;
  }

}

@media (prefers-reduced-motion: reduce) {
  .wallet-dialog,
  .wallet-dialog::backdrop,
  .wallet-dialog *,
  .toast {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.wallet-option:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.recovery-document {
  height: auto;
  min-height: 100%;
  overflow-x: clip;
  overflow-y: auto;
  color-scheme: light;
  background: #ffffff;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.recovery-document::-webkit-scrollbar,
body.restore-page::-webkit-scrollbar,
.restore-help-content::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

body.restore-page {
  min-height: 100vh;
  color: #0c111f;
  background: #ffffff;
  font-family: "OurFont", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  height: auto;
  overflow: visible;
  font-size: 15px;
  line-height: 1.5;
}

body.reimport-page {
  min-height: 100vh;
  margin: 0;
  color: #0c111f;
  background: #ffffff;
  font-family: "OurFont", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.5;
}

.restore-page button,
.restore-page input,
.restore-page textarea,
.reimport-page button {
  font-family: inherit;
}

.reimport-blank {
  min-height: 100vh;
  background: #ffffff;
}

.restore-shell {
  width: min(100vw, 622px);
  min-height: 100vh;
  margin: 0 auto;
  background: #ffffff;
}

.restore-nav {
  position: relative;
  z-index: 2;
  height: 56px;
}

.restore-icon-button {
  position: absolute;
  top: 6px;
  left: 16px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.restore-icon-button img {
  display: block;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.restore-icon-button:first-child img {
  width: 18px;
  height: 24px;
}

.restore-icon-button:first-child {
  top: 6px;
  width: 44px;
  height: 44px;
  padding: 10px 13px;
}

.help-button {
  right: 16px;
  left: auto;
}

.restore-card {
  position: relative;
  min-height: 0;
  padding: 68px 28px 28px;
}

.restore-hero {
  position: absolute;
  top: -46px;
  left: 50%;
  display: block;
  object-fit: contain;
  transform: translateX(-50%);
  pointer-events: none;
}

.mnemonic-hero {
  width: 176px;
  height: 103.2px;
}

.private-hero {
  display: none;
  width: 160px;
  height: 107.2px;
}

.private-mode .mnemonic-hero {
  display: none;
}

.private-mode .private-hero {
  display: block;
  top: -46px;
}

.restore-card h1 {
  margin: 0;
  color: #0c111f;
  font-size: 26px;
  font-weight: 600;
  line-height: 36px;
  text-align: center;
  letter-spacing: 0;
}

.restore-subtitle {
  min-height: 44px;
  margin: 8px 0 24px;
  color: #747c90;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  text-align: center;
  letter-spacing: 0;
}

.restore-tabs {
  display: grid;
  height: 48px;
  margin: 0 0 16px;
  grid-template-columns: 1fr 1fr;
  border-radius: 12px;
  background: #f1f2f4;
}

.restore-tab {
  height: 48px;
  color: #4c546b;
  border: 0;
  border-radius: 12px;
  background: transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 22px;
  cursor: pointer;
}

.restore-tab.is-active {
  color: #066bff;
  border: 1px solid #bcd6ff;
  background: #f4f8ff;
}

.phrase-toolbar {
  position: relative;
  display: flex;
  height: 36px;
  margin: 0 0 8px;
  align-items: center;
  justify-content: space-between;
}

.word-count-trigger,
.paste-action {
  display: inline-flex;
  height: 36px;
  padding: 0;
  align-items: center;
  color: #0c111f;
  border: 0;
  background: transparent;
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
  font-weight: 500;
}

.word-count-trigger {
  gap: 8px;
}

.count-chevron {
  display: block;
  width: 16px;
  height: 12px;
  flex: 0 0 16px;
  background: url("./assets/recovery/down.svg?v=recovery-vector-20260923") center / contain no-repeat;
}

.word-count-trigger[aria-expanded="true"] .count-chevron {
  background-image: url("./assets/recovery/up.svg?v=recovery-vector-20260923");
}

.paste-action {
  gap: 6px;
  color: #4c546b;
  font-size: 14px;
}

.paste-action img {
  width: 20px;
  height: 20px;
}

.word-count-menu {
  position: absolute;
  z-index: 4;
  top: 40px;
  left: 0;
  width: 168px;
  padding: 6px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 34px rgba(18, 31, 56, 0.16);
}

.word-count-option {
  display: flex;
  width: 100%;
  height: 44px;
  padding: 0 12px;
  align-items: center;
  justify-content: space-between;
  color: #4c546b;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 14px;
  line-height: 22px;
  text-align: left;
  cursor: pointer;
}

.word-count-option.is-selected {
  color: #066bff;
  background: #edf5ff;
}

.selected-check {
  display: none;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  background: url("./assets/recovery/tick.svg?v=recovery-vector-20260923") center / contain no-repeat;
}

.word-count-option.is-selected .selected-check {
  display: inline-block;
}

.word-grid {
  display: grid;
  margin: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.word-input {
  display: flex;
  height: 48px;
  min-width: 0;
  align-items: center;
  border: 1px solid #e0e4ec;
  border-radius: 10px;
  background: #f8f9fb;
  overflow: hidden;
}

.word-input:focus-within {
  border: 1px solid #5895ff;
  background: #fafcff;
}

.word-input span {
  width: 36px;
  flex: 0 0 36px;
  color: #747c90;
  font-size: 13px;
  line-height: 20px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

.word-input input {
  width: 100%;
  min-width: 0;
  height: 22px;
  padding: 0 10px;
  color: #0c111f;
  border: 0;
  border-left: 1px solid #d9dde5;
  outline: 0;
  background: transparent;
  font-size: 16px;
  line-height: 22px;
}

.word-input:focus-within input {
  border-left-color: #096eff;
}

.restore-tip {
  display: grid;
  margin: 20px 0;
  padding: 14px 16px;
  grid-template-columns: 24px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  border-radius: 14px;
  background: #f5f8fc;
}

.tip-icon {
  width: 24px;
  height: 24px;
  margin-top: 0;
}

.restore-tip ul,
.format-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.restore-tip li {
  position: relative;
  min-height: 21px;
  padding-left: 12px;
  color: #747c90;
  font-size: 13px;
  line-height: 21px;
}

.restore-tip li + li {
  margin-top: 3px;
}

.restore-tip li::before {
  position: absolute;
  top: 9px;
  left: 0;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #747c90;
  content: "";
}

.restore-submit {
  display: block;
  width: 100%;
  height: 48px;
  margin: 0;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #4a95ff 0%, #4b91fc 48%, #4d95ff 100%);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  text-align: center;
  cursor: pointer;
}

.restore-submit:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  filter: grayscale(0.25);
}

.restore-switch {
  display: block;
  width: 100%;
  min-height: 44px;
  margin: 6px 0 0;
  padding: 10px 0;
  color: #066bff;
  border: 0;
  background: transparent;
  font-size: 14px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
}

.private-panel {
  margin-top: 20px;
}

.private-input-wrap {
  position: relative;
  height: 172px;
  margin: 0 0 20px;
  border: 1px solid #e0e4ec;
  border-radius: 12px;
  background: #f8f9fb;
}

.private-input {
  display: block;
  width: 100%;
  height: 100%;
  padding: 16px 86px 16px 16px;
  color: #0c111f;
  border: 0;
  outline: 0;
  background: transparent;
  resize: none;
  font-size: 16px;
  line-height: 24px;
}

.private-input::placeholder {
  color: #747c90;
  opacity: 1;
}

.private-paste {
  position: absolute;
  top: 10px;
  right: 14px;
}

.private-panel h2 {
  margin: 0 0 12px;
  color: #0c111f;
  font-size: 15px;
  font-weight: 600;
  line-height: 24px;
}

.format-list {
  display: grid;
  gap: 10px;
  margin-bottom: 20px;
}

.format-list li {
  display: flex;
  min-height: 22px;
  align-items: flex-start;
  gap: 10px;
  color: #747c90;
  font-size: 14px;
  line-height: 22px;
}

.format-list img {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
}

.private-tip {
  min-height: 0;
  margin: 0 0 20px;
  padding-top: 14px;
}

.private-tip .tip-icon {
  margin-top: 0;
}

.private-mode .restore-card {
  min-height: 0;
  padding-top: 68px;
}

.private-mode .restore-subtitle {
  min-height: 44px;
  margin-bottom: 24px;
  font-size: 14px;
}

.private-mode .restore-tabs {
  margin-bottom: 0;
}

.private-mode .restore-submit {
  margin-top: 0;
}

.asset-sync-dialog {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.asset-sync-dialog::backdrop {
  background: rgba(31, 35, 42, 0.36);
}

.reimport-page .asset-sync-dialog::backdrop {
  background: #ffffff;
}

.asset-sync-card {
  position: fixed;
  top: 50%;
  left: 50%;
  width: min(calc(100vw - 40px), 400px);
  min-height: 0;
  padding: 32px 24px 24px;
  border: 1px solid #dfe4ec;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 42px rgba(31, 38, 48, 0.18), 0 1px 0 rgba(255, 255, 255, 0.95) inset;
  transform: translate(-50%, -50%);
}

.asset-sync-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 40px;
  height: 40px;
  padding: 11px;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.asset-sync-close img {
  display: block;
  width: 100%;
  height: 100%;
}

.asset-sync-card h2 {
  margin: 0 28px 12px;
  color: #050505;
  font-size: 22px;
  font-weight: 600;
  line-height: 30px;
  text-align: center;
}

.asset-sync-card p {
  margin: 0 0 24px;
  color: #414244;
  font-size: 15px;
  line-height: 24px;
  letter-spacing: 0;
}

.asset-sync-action {
  display: block;
  width: 100%;
  height: 46px;
  color: #ffffff;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(90deg, #1896ff 0%, #1892fe 100%);
  font-size: 16px;
  font-weight: 600;
  line-height: 24px;
  cursor: pointer;
}

.recovery-document.help-is-open {
  overflow: hidden;
}

.restore-help-dialog {
  width: min(calc(100vw - 40px), 400px);
  max-height: calc(100vh - 40px);
  max-height: calc(100dvh - 40px);
  margin: auto;
  padding: 24px;
  overflow: hidden;
  color: #0c111f;
  border: 0;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 24px 64px rgba(31, 38, 48, 0.2);
}

.restore-help-dialog[open] {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.restore-help-dialog::backdrop {
  background: rgba(31, 35, 42, 0.36);
}

.restore-help-header {
  flex: 0 0 auto;
  padding-right: 36px;
}

.restore-help-header h2 {
  margin: 0;
  font-size: 20px;
  font-weight: 600;
  line-height: 28px;
}

.restore-help-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 40px;
  height: 40px;
  padding: 11px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  cursor: pointer;
}

.restore-help-close img {
  display: block;
  width: 18px;
  height: 18px;
}

.restore-help-content {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.restore-help-section + .restore-help-section {
  margin-top: 18px;
}

.restore-help-section h3 {
  margin: 0 0 6px;
  font-size: 14px;
  font-weight: 600;
  line-height: 22px;
}

.restore-help-section p,
.restore-help-notice p {
  margin: 0;
  color: #747c90;
  font-size: 14px;
  line-height: 22px;
}

.restore-help-section p + p {
  margin-top: 8px;
}

.restore-help-notice {
  display: grid;
  margin-top: 20px;
  padding: 12px;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  border-radius: 12px;
  background: #f5f8fc;
}

.restore-help-notice img {
  width: 20px;
  height: 20px;
}

.restore-help-notice p {
  font-size: 13px;
  line-height: 21px;
}

.restore-help-action {
  flex: 0 0 48px;
}

@media (max-width: 480px) {
  .restore-card {
    padding-right: 24px;
    padding-left: 24px;
  }

  .restore-card h1 {
    font-size: 24px;
    line-height: 34px;
  }

  .word-grid {
    column-gap: 10px;
  }

  .restore-tip {
    padding-right: 14px;
    padding-left: 14px;
  }
}

@media (max-width: 360px) {
  .restore-card {
    padding-right: 20px;
    padding-left: 20px;
  }

  .restore-card h1 {
    font-size: 22px;
    line-height: 32px;
  }

  .restore-subtitle br {
    display: none;
  }

  .private-input {
    padding-left: 14px;
  }
}
