@font-face {
  font-family: OurFontBold;
  src: url(../assets/font_2a9285f38d.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: OurFont;
  src: url(../assets/font_015834e9e3.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* App shell */
.hl-mobile-only { display: none; }
.hl-vaults-mob-only { display: none; }

.hl-view.hl-hidden {
  display: none !important;
}

#hl-view-vault [data-hl="3"] {
  transition: opacity 0.35s ease;
}

#hl-view-vault.hl-vault-loading [data-hl="3"] {
  opacity: 0;
  pointer-events: none;
}

#hl-view-vault.hl-vault-loading [data-hl="18"] {
  opacity: 1 !important;
  pointer-events: auto !important;
}

.hl-nav {
  cursor: pointer;
  text-decoration: none;
}

.hl-vault-row {
  cursor: pointer;
}

#hl-view-vault .hl-coin-ticker {
  font-family: OurFontBold, system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal;
  cursor: pointer;
  text-decoration: none;
}

#hl-view-vault .hl-coin-ticker.hl-long {
  color: rgb(151, 252, 228) !important;
}

#hl-view-vault .hl-coin-ticker.hl-short {
  color: rgb(237, 112, 136) !important;
}

#hl-view-vault .hl-coin-ticker.hl-neutral {
  color: rgb(246, 254, 253) !important;
}

#hl-view-vault td.hl-pos-coin .hl-coin-lev,
#hl-view-vault .hl-vault-card .hl-coin-lev {
  font-family: OurFont, system-ui, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif !important;
  font-weight: 400 !important;
  font-style: normal;
  color: rgb(246, 254, 253) !important;
}

#hl-view-vault td.hl-pos-coin.hl-long {
  background: linear-gradient(
      90deg,
      rgb(31, 166, 125) 0px,
      rgb(31, 166, 125) 4px,
      rgb(11, 50, 38) 4px,
      transparent 100%
    )
    transparent;
}

#hl-view-vault td.hl-pos-coin.hl-short {
  background: linear-gradient(
      90deg,
      rgb(237, 112, 136) 0px,
      rgb(237, 112, 136) 4px,
      rgb(52, 36, 46) 0%,
      transparent 100%
    )
    transparent;
}

.hl-vault-info-panel.hl-hidden {
  display: none !important;
}

.hl-portfolio-panel.hl-hidden {
  display: none !important;
}

/* Withdraw: active = outline primary (not filled); inactive = same look, faded */
#hl-view-vault [data-hl="17"].outline,
#hl-view-portfolio [data-hl="24"].outline {
  color: rgb(80, 210, 193) !important;
  background-color: transparent !important;
  border: 1px solid rgb(80, 210, 193) !important;
}

#hl-view-vault [data-hl="17"].outline:not(.disabled),
#hl-view-portfolio [data-hl="24"].outline:not(.disabled) {
  opacity: 1 !important;
  cursor: pointer !important;
}

#hl-view-vault [data-hl="17"].outline.disabled,
#hl-view-portfolio [data-hl="24"].outline.disabled {
  opacity: 0.3 !important;
  cursor: default !important;
}

#hl-view-portfolio #hl-portfolio-panels {
  display: block;
}

#hl-view-vault .sc-bCfvAP.hNgCiH .sc-AHaJN {
  cursor: pointer;
}

/* Vault detail: equal-height info + chart row, table below */
#hl-view-vault [data-hl="42"] {
  align-items: stretch;
}

#hl-view-vault [data-hl="43"],
#hl-view-vault [data-hl="61"] {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

#hl-vault-info-panels {
  flex: 1 1 auto;
  min-height: 250px;
  max-height: 250px;
  min-width: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.hl-vault-info-panel {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
}

#hl-view-vault [data-hl="72"] {
  flex: 0 0 250px;
  height: 250px;
  box-sizing: border-box;
}

#hl-view-vault [data-hl="62"],
#hl-view-vault [data-hl="69"],
#hl-view-vault [data-hl="61"] {
  overflow: visible !important;
}

#hl-view-vault [data-hl="69"] {
  position: relative;
}

.hl-chart-tf-wrap.hl-chart-tf-open {
  z-index: 40;
}

#hl-view-vault [data-hl="63"] .sc-AHaJN,
#hl-view-vault [data-hl="70"] {
  cursor: pointer;
}

.hl-chart-tf-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  user-select: none;
}

.hl-chart-tf-wrap.hl-chart-tf-open .hl-chart-tf-btn {
  visibility: hidden;
  pointer-events: none;
}

.hl-chart-tf-menu {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 20;
  min-width: 130px;
  background: rgb(15, 26, 31);
  border: 1px solid rgb(39, 48, 53);
  border-radius: 10px;
  padding: 4px 0 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
}

.hl-chart-tf-menu.hl-hidden {
  display: none !important;
}

.hl-chart-tf-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 14px 6px;
  color: rgb(246, 254, 253);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.hl-chart-tf-header .hl-chevron,
.hl-chart-tf-header svg {
  transform: rotate(180deg);
  flex-shrink: 0;
}

.hl-chart-tf-item {
  padding: 10px 14px;
  color: rgb(148, 158, 156);
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.hl-chart-tf-item:hover {
  background: rgba(255, 255, 255, 0.04);
}

.hl-chart-tf-item.hl-active {
  color: rgb(80, 210, 193);
}

.hl-chart-tf-btn.hl-chart-tf-open .hl-chevron,
.hl-chart-tf-btn.hl-chart-tf-open svg {
  transform: rotate(180deg);
}

/* Vault detail tab cards — mobile / tablet */
.hl-vault-cards {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 0 12px 12px;
  max-height: 420px;
  overflow-y: auto;
}

.hl-vault-card {
  border-radius: 8px;
  border: 1px solid rgb(39, 48, 53);
  background: rgb(27, 36, 41);
  padding: 12px;
  width: 100%;
  box-sizing: border-box;
}

.hl-vault-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hl-vault-card-head > .hl-vault-card-grid {
  flex: 1;
  min-width: 0;
}

.hl-vault-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px 8px;
}

.hl-vault-card-label {
  color: rgb(148, 158, 156);
  font-size: 12px;
  margin-bottom: 4px;
}

.hl-vault-card-value {
  color: rgb(246, 254, 253);
  font-size: 12px;
  word-break: break-word;
}

.hl-vault-card > .hl-vault-card-grid,
.hl-vault-card-head > .hl-vault-card-grid {
  display: grid;
}

.hl-vault-card.hl-expanded .hl-vault-card-head > .hl-vault-card-grid {
  display: none;
}

.hl-vault-card-extra {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.hl-vault-card.hl-expanded .hl-vault-card-extra {
  display: flex;
}

.hl-vault-card-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgb(246, 254, 253);
  cursor: pointer;
}

.hl-vault-card-toggle .hl-chevron,
.hl-vault-card-toggle svg {
  color: rgb(246, 254, 253);
}

.hl-vault-card.hl-expanded .hl-vault-card-head {
  justify-content: flex-end;
}

.hl-vault-card.hl-expanded .hl-vault-card-toggle .hl-chevron {
  transform: rotate(180deg);
}

.hl-vault-card .hl-coin {
  color: rgb(80, 210, 193);
  font-weight: 600;
}

.hl-vault-card .hl-coin-pink {
  color: rgb(237, 112, 136);
}

.hl-vault-card .hl-time-row {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.hl-vault-card .hl-ext-link {
  color: rgb(80, 210, 193);
  font-size: 11px;
}

.hl-vault-card-empty {
  padding: 24px;
  text-align: center;
  color: rgb(148, 158, 156);
}

.hl-vault-cards-footer {
  padding: 4px 12px 8px;
  text-align: right;
  color: rgb(80, 210, 193);
  font-size: 12px;
}

@media (min-width: 1025px) {
  .hl-vault-cards { display: none; }
}

#hl-vault-info-panels [data-hl="60"] {
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: pre-wrap;
}

@media (max-width: 1024px) {
  #hl-view-vault #hl-vault-info-panels [data-hl="51"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    align-items: stretch !important;
    grid-template-columns: unset !important;
  }

  #hl-view-vault #hl-vault-info-panels [data-hl="52"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    align-items: flex-start !important;
  }

  #hl-view-vault #hl-vault-info-panels [data-hl="54"] {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
  }

  #hl-view-vault #hl-vault-info-panels [data-hl="55"] {
    display: block !important;
  }

  #hl-view-vault #hl-vault-info-panels [data-hl="58"] {
    display: flex !important;
    flex-direction: column !important;
    gap: 4px !important;
    justify-content: flex-start !important;
    align-items: stretch !important;
  }

  #hl-view-vault #hl-vault-info-panels [data-hl="59"],
  #hl-view-vault #hl-vault-info-panels [data-hl="60"] {
    display: block !important;
  }
}

@media (max-width: 1024px) {
  .hl-desktop-only { display: none !important; }
  .hl-mobile-only { display: block !important; }

  .hl-vaults-pc-only { display: none !important; }
  .hl-vaults-mob-only { display: block !important; }

  #hl-view-vault [data-hl="87"] {
    padding: 12px 12px 0 !important;
    box-sizing: border-box !important;
  }

  #hl-view-vault [data-hl="76"] [data-hl="88"] {
    display: block !important;
    width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    max-height: none !important;
    box-sizing: border-box !important;
  }

  #hl-view-vault #hl-vault-table-host {
    width: 100% !important;
  }

  #hl-view-vault [data-hl="88"] > table,
  #hl-view-vault table[data-hl="89"] {
    display: none !important;
  }

  .hl-vault-cards {
    padding: 0 0 12px;
    width: 100%;
    max-height: none;
    box-sizing: border-box;
  }

  .hl-mobile-header {
    width: 100% !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 10px !important;
  }

  .hl-mobile-header .hl-logo-icon {
    flex: 0 0 auto !important;
    margin-bottom: -3px !important;
  }

  .hl-mobile-tabs {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    gap: 2px !important;
    flex: 1 1 auto !important;
    justify-content: flex-end !important;
    min-width: 0 !important;
  }

  .hl-mobile-tabs .hl-nav {
    padding: 8px 10px !important;
    white-space: nowrap !important;
    font-size: 12px !important;
  }
}
