/* 1. Use a more-intuitive box-sizing model */
*, *::before, *::after {
  box-sizing: border-box;
}

/* 2. Remove default margin */
* {
  margin: 0;
}

body {
  /* 3. Add accessible line-height */
  line-height: 1.5;
  /* 4. Improve text rendering */
  -webkit-font-smoothing: antialiased;
}

/* 5. Improve media defaults */
img, picture, video, canvas, svg {
  display: block;
  max-width: 100%;
}

/* 6. Inherit fonts for form controls */
input, button, textarea, select {
  font: inherit;
}

/* 7. Avoid text overflows */
p, h1, h2, h3, h4, h5, h6 {
  overflow-wrap: break-word;
}

/* 8. Improve line wrapping */
p {
  text-wrap: pretty;
}

h1, h2, h3, h4, h5, h6 {
  text-wrap: balance;
}

/*
  9. Create a root stacking context
*/
#root, #__next {
  isolation: isolate;
}

ul, ol {
  padding: 0 0 0 16px;
  margin: 0;
}

h3,
h4 {
  font-weight: 400;
  margin-bottom: 0.5rem;
}

h3 {
  font-size: 1.25rem;
  color: #1E2025;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.25px;
}
h3.icon {
  display: flex;
  gap: 6px;
}

h4 {
  font-size: 1.5rem;
  font-weight: 500;
}

p {
  color: #6B7280;
  margin-bottom: 12px;
  font-size: 1em;
}
p.mb {
  margin-bottom: 24px;
}
p.subtitle {
  font-weight: 600;
}
p.small {
  font-size: 0.875em;
}

strong.dark {
  color: #1E2025;
}

h1 {
  font-size: 1.5rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  line-height: 1.125;
  color: #1E2025;
}
@media screen and (min-width: 767px) {
  h1 {
    font-size: 2rem;
  }
}

h2 {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.75rem;
  line-height: 1.25;
  color: #1E2025;
}
@media screen and (min-width: 767px) {
  h2 {
    font-size: 1.5rem;
  }
}

a {
  color: inherit;
  text-decoration: underline;
}
a:hover {
  text-decoration: none;
}
a.link {
  color: #6B7280;
  align-self: flex-start;
  text-decoration: none;
  font-weight: 600;
}
a.link span {
  width: 16px;
  height: 16px;
  background-image: url("../images/link-arrow.svg");
  background-repeat: no-repeat;
  background-size: cover;
  display: inline-block;
}
a.link:hover {
  cursor: pointer;
  text-decoration: underline;
}
a.link:hover span {
  transform: translateX(4px);
}
a.link.back {
  padding-left: 4px;
  margin-bottom: 12px;
  display: block;
}
a.link.back span {
  transform: rotate(180deg) translateX(4px) translateY(-2px);
}
a.link.back:hover span {
  transform: rotate(180deg) translateX(8px) translateY(-2px);
}
a.arrow {
  padding-right: 24px;
  background-image: url("../images/link-arrow.svg");
  background-repeat: no-repeat;
  background-position: center right 4px;
  text-decoration: none;
}
a.arrow:hover {
  background-position: center right;
}
a.warning {
  color: #EF2E5C;
  background-image: url("../images/link-arrow-warning.svg");
}

.value {
  font-weight: 600;
  color: #1E2025;
}
.value.down {
  color: #EF2E5C;
}
.value.up {
  color: #22A11B;
}
.value.info {
  color: #0075FF;
}
.value.icon {
  font-size: 1.25em;
  padding-left: 24px;
  background-repeat: no-repeat;
  background-position: left center;
}
.value.icon.up {
  background-image: url("../images/value-up.svg");
}
.value.icon.down {
  background-image: url("../images/value-down.svg");
}
.value.large {
  font-size: 1.5em;
}
.value.small {
  font-size: 1.25em;
  line-height: 1.1;
}
.value.small img {
  display: inline-block;
  margin-right: 4px;
}

.investment-score.icon {
  padding-left: 24px;
  background-repeat: no-repeat;
  background-position: left center;
}
.investment-score.icon.up {
  background-image: url("../images/value-up.svg");
}
.investment-score.icon.down {
  background-image: url("../images/value-down.svg");
}

.disclaimer {
  font-size: 0.75em;
  text-align: center;
}

nav {
  background-color: #1E2025;
  display: flex;
}
@media screen and (max-width: 767px) {
  nav #desktop-menu {
    display: none;
  }
}
nav ul {
  display: flex;
  flex-direction: column;
  list-style: none;
  font-weight: 600;
  padding: 0;
  width: 100%;
  gap: 8px;
}
nav ul li {
  color: #6B7280;
  font-size: 14px;
  border-radius: 4px;
}
nav ul li a {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px;
  color: #FFFFFF;
  font-size: 16px;
  text-decoration: none;
}
nav ul li a .icon {
  width: 24px;
  height: 24px;
}
nav ul li a svg {
  fill: #FFFFFF;
}
nav ul li a:hover {
  color: #2EEFAA;
}
nav ul li a:hover svg {
  fill: #2EEFAA;
}
nav ul li.last {
  margin-top: auto;
}
nav ul li.active {
  border-left: 6px solid var(--Accent, #2EEFAA);
  background: rgba(46, 239, 170, 0.05);
}
nav ul li.active a {
  color: #2EEFAA;
}
nav ul li.active a svg {
  fill: #2EEFAA;
}
nav ul hr {
  border: 0;
  border-top: 1px solid #353841;
  height: 1px;
  margin: 12px 0 20px;
}

#mob-menu {
  position: fixed;
  z-index: 99;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  overflow: hidden;
  transform: translateX(100vw);
}
#mob-menu ul {
  list-style: none;
  margin: 0;
  padding: 20px;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  font-size: 3rem;
  font-weight: 300;
  gap: 1rem;
  background-color: rgba(230, 226, 215, 0.5);
  backdrop-filter: blur(20px);
}
#mob-menu ul li a {
  display: block;
}
@media screen and (min-width: 767px) {
  #mob-menu {
    display: none;
  }
}

#menu-expand {
  background-image: url("../images/menu-open.svg");
  width: 44px;
  background-position: left center;
  background-repeat: no-repeat;
  height: 40px;
}
#menu-expand.collapsed {
  background-image: url("../images/menu-closed.svg");
}

#nav-mob-btn {
  display: block;
  width: 52px;
  height: 52px;
  position: fixed;
  right: 8px;
  top: 6px;
  z-index: 999;
}
#nav-mob-btn span {
  display: block;
  width: 28px;
  height: 28px;
  margin: 12px;
  border: 4px solid #1E2025;
  border-radius: 50px;
  transition: border 0.5s ease;
}
#nav-mob-btn span.active {
  border: 10px solid #1E2025;
}
@media screen and (min-width: 767px) {
  #nav-mob-btn {
    display: none;
  }
}

hr {
  border: none;
  border-bottom: 1px solid #DBDAE0;
}
hr.mb {
  margin-bottom: 32px;
}

.btn {
  text-decoration: none;
  display: inline-block;
  padding: 8px 20px;
  border-radius: 99px;
  background-color: #1E2025;
  color: white;
  font-weight: 700;
  text-align: center;
  align-self: center;
  text-transform: uppercase;
  font-size: 0.875em;
  border: 2px solid #1E2025;
  cursor: pointer;
}
.btn.full {
  display: block;
}
.btn.large {
  padding: 12px 16px;
  font-size: 1em;
  width: 100%;
  max-width: 280px;
}
.btn svg {
  display: none;
}
.btn:hover {
  transform: scale(0.95);
}
.btn.secondary {
  color: #1E2025;
  background-color: #FFFFFF;
  border: 2px solid #1E2025;
}
.btn.download {
  background-position: left 16px center;
  padding-left: 40px;
  background-repeat: no-repeat;
  background-image: url("../images/download-file.svg");
}
.btn.success {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  color: #1E2025;
  border-color: #2EEFAA;
  background-color: #2EEFAA;
  background-image: url("../images/check-mark.svg");
  background-position: left 96px center;
  background-repeat: no-repeat;
}

.card {
  background-color: #FFFFFF;
  border-radius: 2px;
  border-left: 3px solid #DBDAE0;
  padding: 20px;
}
.card.main {
  border-color: #1E2025;
  padding: 24px;
}
@media screen and (max-width: 767px) {
  .card.main {
    padding: 20px;
  }
}
@media screen and (min-width: 767px) {
  .card.card-table {
    min-width: 920px;
  }
}
.card.alert {
  border-color: #EF2E5C;
}
.card.info {
  border-color: #0075FF;
  margin: 0;
}
.card.success {
  border-color: #22A11B;
}
.card.bespoke {
  border-color: #FF9500;
}
.card.aggressive {
  border-color: #EF2E5C;
}
.card.adventurous {
  border-color: #FF9500;
}
.card.balanced {
  border-color: #9810FA;
}

@media screen and (min-width: 767px) {
  .card.contact {
    padding: 5vw;
  }
}
@media screen and (max-width: 767px) {
  .card.contact {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 32px;
  }
}
.card.contact .stock-list {
  display: none;
}
.card.investor .target {
  background-color: #F4F4F4;
  padding: 12px;
  font-size: 0.875em;
  margin-bottom: 12px;
}
.card.investor .target ul {
  margin: 0;
  padding: 0;
}
.card.investor .target ul li {
  display: flex;
  gap: 8px;
  margin-bottom: 4px;
}
.card.investor .target .label {
  flex: 1 1 50%;
}
.card.investor .target .percentage {
  font-weight: 700;
  color: #1E2025;
}

.amount {
  padding: 24px 0;
}
.amount p {
  margin: 0;
}
.amount:first-of-type {
  padding-top: 0;
}

.stat-box {
  border-radius: 4px;
  padding: 1px;
  overflow: hidden;
  box-shadow: 0 2px 10px 0 rgba(0, 0, 0, 0.01), 0 23px 9px 0 rgba(0, 0, 0, 0.01), 0 0 8px 0 rgba(0, 0, 0, 0.02), 0 6px 6px 0 rgba(0, 0, 0, 0.03), 0 1px 3px 0 rgba(0, 0, 0, 0.04);
}
.stat-box.large {
  background: linear-gradient(100deg, #DBDAE0 0%, #FFF 10%, #FFF 30%, #DBDAE0 100%);
  margin: 0;
}
.stat-box.info {
  background: #0075FF;
}
.stat-box.icon .content {
  display: flex;
  gap: 12px;
}
.stat-box.icon img {
  max-width: 52px;
}
.stat-box .content {
  border-radius: 3px;
  background-color: white;
  padding: 20px 24px;
  height: 100%;
}
.stat-box p {
  margin: 0;
}
#change-div .stat-box {
  height: 100%;
}

.download svg {
  transform: rotate(90deg);
}

.external-link svg {
  transform: rotate(-45deg);
}

.connect-btn {
  background-color: white;
  font-weight: 600;
  color: inherit;
}
@media screen and (min-width: 767px) {
  .connect-btn {
    margin-left: 12px;
  }
}

.page-header {
  padding: 0 16px 20px;
}
.page-header .title {
  flex: 1 1 50%;
}
@media screen and (min-width: 767px) {
  .page-header {
    display: flex;
  }
}

.download {
  display: flex;
  gap: 12px;
  align-items: center;
}

.info-box {
  display: flex;
  width: 100%;
  padding: 16px;
  align-items: flex-start;
  gap: 8px;
  border-radius: 2px;
  border: 1px solid;
  margin: 12px 0;
  position: relative;
}
.info-box.alert {
  border-color: #FF9500;
  background: rgba(255, 149, 0, 0.05);
}
.info-box.info {
  border-color: #0075FF;
  background: rgba(0, 117, 255, 0.05);
}
.info-box .content {
  flex-grow: 1;
}
@media screen and (max-width: 767px) {
  .info-box {
    flex-direction: column;
  }
  .info-box img.close {
    position: absolute;
    right: 12px;
  }
}

.investment-score {
  display: flex;
  flex-basis: 100% !important;
  flex-direction: column;
  gap: 6px;
}
.investment-score .value {
  flex-grow: 1;
}

.stat-box .investment-chart {
  display: flex;
  justify-content: center;
  flex-basis: 40%;
}

.tag {
  border: 1px solid;
  background-color: rgba(30, 32, 37, 0.05);
  display: inline-block;
  padding: 8px 12px;
  border-radius: 2px;
  margin-bottom: 12px;
  font-weight: 700;
  font-size: 0.875em;
}
.tag p {
  margin: 0;
}
.tag.error {
  background-color: rgba(239, 46, 92, 0.05);
  border-color: #EF2E5C;
  color: #EF2E5C;
  background-image: url("../images/alert-circle.svg");
}
.tag.success {
  background-color: rgba(34, 161, 27, 0.05);
  border-color: #22A11B;
  color: #22A11B;
}
.tag.strengthen {
  background-color: rgba(255, 149, 0, 0.05);
  border-color: #FF9500;
  color: #1E2025;
}
.tag.conservative {
  background-color: rgba(34, 161, 27, 0.05);
  border-color: #22A11B;
  color: #22A11B;
  background-image: url("../images/tag-conservative.svg");
}
.tag.balanced {
  background-color: rgba(152, 16, 250, 0.05);
  border-color: #9810FA;
  color: #9810FA;
  background-image: url("../images/tag-balanced.svg");
}
.tag.adventurous {
  background-color: rgba(255, 149, 0, 0.05);
  border-color: #FF9500;
  color: #1E2025;
  background-image: url("../images/tag-adventurous.svg");
}
.tag.aggressive {
  background-color: rgba(239, 46, 92, 0.05);
  border-color: #EF2E5C;
  color: #EF2E5C;
  background-image: url("../images/tag-aggressive.svg");
}
.tag.bespoke {
  background-color: rgba(255, 185, 0, 0.05);
  border-color: #FFB900;
  color: #1E2025;
  background-image: url("../images/tag-bespoke.svg");
}
.tag.info {
  background-color: rgba(0, 117, 255, 0.05);
  border-color: #0075FF;
  color: #0075FF;
  background-image: url("../images/tag-defensive.svg");
}
.tag.icon {
  padding-left: 24px;
  background-position: left 8px center;
  background-repeat: no-repeat;
}
.tag.full {
  display: flex;
  justify-content: space-between;
}
@media screen and (min-width: 767px) and (max-width: 1250px) {
  .tag {
    flex-direction: column;
  }
}

.input {
  margin-bottom: 12px;
}
.input label {
  font-size: 0.875em;
  font-weight: 700;
  margin-bottom: 4px;
  display: inline-block;
  color: #1E2025;
}
.input input[type=text],
.input input[type=email],
.input input[type=password],
.input select {
  display: block;
  width: 100%;
  height: 50px;
  padding: 12px;
  border: 1px solid #DBDAE0;
}
.input input[type=text]:focus,
.input input[type=email]:focus,
.input input[type=password]:focus,
.input select:focus {
  outline: 4px solid rgba(219, 218, 224, 0.75);
  border-color: #1E2025;
}
.input input[type=text]:active,
.input input[type=email]:active,
.input input[type=password]:active,
.input select:active {
  border-color: #1E2025;
}
.input input[type=text]::placeholder,
.input input[type=email]::placeholder,
.input input[type=password]::placeholder,
.input select::placeholder {
  color: #DBDAE0;
}
.input textarea {
  resize: vertical;
  display: block;
  width: 100%;
  min-height: 50px;
  padding: 12px;
  border: 1px solid #DBDAE0;
}
.input input[type=password] {
  background-position: right 12px center;
  background-repeat: no-repeat;
}
.input input[type=password].show {
  background-image: url("../images/icon-hide-eye.svg");
}
.input input[type=password].hide {
  background-image: url("../images/icon-show-eye.svg");
}
.input select {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 40px;
  background-image: url("../images/select-arrow.svg");
  background-position: right 8px center;
  background-repeat: no-repeat;
  background-size: 20px;
  color: #6B7280;
}
.input select:active {
  color: #1E2025;
}
.input select.has-value {
  color: #1E2025;
  font-weight: 700;
  border-color: #1E2025;
}
.input select:focus {
  outline: none;
}
.input.error label {
  color: #EF2E5C;
}
.input.error input,
.input.error select {
  border-color: #EF2E5C;
}
.input .amount-input {
  padding-left: 24px !important;
  background-image: url("../images/pound-sign.svg");
  background-position: left 12px center;
  background-repeat: no-repeat;
  height: auto;
  max-width: 300px;
}

.radio-option {
  display: flex;
}
.radio-option label {
  width: 100%;
  border: 1px solid #DBDAE0;
  padding: 12px;
  padding-left: 24px;
  margin-left: -16px;
}

.legends {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
  margin: 32px 0 20px;
}
@media screen and (max-width: 767px) {
  .legends {
    display: none;
  }
}
@media screen and (min-width: 767px) {
  .legends.mob {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .legends.mob {
    display: block;
    margin: 12px 0;
  }
}
.legends .legend {
  border: 1px solid #DBDAE0;
  border-radius: 2px;
  padding: 8px 12px;
}
.legends .legend ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 16px;
}
.legends .legend ul li {
  padding-left: 24px;
  background-position: left 2px center;
  background-repeat: no-repeat;
}
.legends .legend ul li.criteria {
  background-image: url("../images/icon-bibo-criteria.svg");
}
.legends .legend ul li.diversified {
  background-image: url("../images/icon-growth.svg");
}
.legends .legend ul li.stable {
  background-image: url("../images/icon-stable.svg");
}
.legends .legend ul li.alpha {
  background-image: url("../images/icon-alpha.svg");
}
.legends .legend ul li.currency {
  background-image: url("../images/icon-currency.svg");
}
.legends .legend ul li.delivery {
  background-image: url("../images/icon-delivery.svg");
}
.legends .legend ul li.live-for-sale {
  background-image: url("../images/icon-live-for-sale.gif");
}
.legends .legend.star {
  border-color: #FFB900;
}

.donuts {
  display: flex;
  margin-bottom: 20px;
}
.donuts .donut-container {
  border: 1px solid #DBDAE0;
  border-radius: 2px;
}

.cta {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #DBDAE0;
  border-radius: 2px;
  margin-top: 20px;
}
@media screen and (max-width: 767px) {
  .cta {
    flex-direction: column;
    text-align: center;
  }
}

.switch-container {
  display: flex;
}

.switch {
  display: flex;
  padding: 4px;
  background-color: #FFFFFF;
  border-radius: 999px;
  margin-bottom: 20px;
}
.switch .switch-item.active a {
  color: #FFFFFF;
  background-color: #1E2025;
  font-weight: 700;
}
.switch .switch-item a {
  color: #1E2025;
  display: block;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 999px;
  cursor: pointer;
}
@media screen and (max-width: 767px) {
  .switch {
    flex-direction: column;
    width: 100%;
    border-radius: 8px;
  }
  .switch .switch-item {
    border-radius: 4px;
  }
}

@media screen and (max-width: 767px) {
  #cellar-switch {
    display: none;
  }
}

#cellar-dropdown {
  width: 100%;
}
#cellar-dropdown select {
  border-radius: 2px;
  padding: 12px 16px;
  background-color: #1E2025;
  background-position: right 16px center;
  background-image: url("../images/select-arrow-reversed.svg");
  color: #FFFFFF;
}
@media screen and (min-width: 767px) {
  #cellar-dropdown {
    display: none;
  }
}

.stats {
  margin-bottom: 20px;
}

.logo {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-weight: 700;
  color: #1E2025;
}
.logo img {
  height: 20px;
}

.investment-grade {
  display: flex;
  flex-flow: row wrap;
  border: 1px solid #DBDAE0;
  border-radius: 2px;
  padding: 16px 16px 4px;
  margin-top: 8px;
}
.investment-grade .title {
  flex: 1 1 50%;
  font-weight: 600;
  color: #1E2025;
}
.investment-grade.green {
  border-color: #22A11B;
}
.investment-grade.blue {
  border-color: #0075FF;
}
.investment-grade.yellow {
  border-color: #FFB900;
}
.investment-grade.violet {
  border-color: #7F00FF;
}
.investment-grade.red {
  border-color: #EF2E5C;
}
.investment-grade.improve {
  margin-top: 20px;
  padding: 16px;
}
.investment-grade.improve ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
}
.investment-grade.improve ul li {
  background-image: url("../images/green-check.svg");
  background-repeat: no-repeat;
  background-position: left top 2px;
  padding-left: 26px;
  margin-bottom: 4px;
}

/* The container */
.check-container {
  display: block !important;
  position: relative;
  padding: 12px;
  padding-left: 32px;
  margin-bottom: 12px !important;
  cursor: pointer;
  font-size: 22px;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

/* Hide the browser's default radio button */
.check-container input {
  position: absolute;
  left: 12px;
  top: 16px;
  opacity: 1;
  cursor: pointer;
  accent-color: #1E2025;
}

/* Create a custom radio button */
.checkmark {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 1px solid #DBDAE0;
}

/* On mouse-over, add a grey background color */
/* When the radio button is checked, add a blue background */
.check-container input:checked ~ .checkmark {
  border: 1px solid #1E2025;
}

/* Create the indicator (the dot/circle - hidden when not checked) */
.checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

/* Show the indicator (dot/circle) when checked */
.check-container input:checked ~ .checkmark:after {
  display: block;
}

.confirm-box {
  background-color: #F4FAF5;
  color: #22A11B;
  padding: 12px;
  border-radius: 6px;
  font-weight: 700;
  display: flex;
  gap: 4px;
}

.bank-details {
  border: 1px solid #DBDAE0;
  padding: 12px;
  margin: 12px 0;
}
.bank-details.tip {
  font-size: 0.875em;
  padding-left: 24px;
  background-image: url("../images/icon-tooltip.svg");
  background-repeat: no-repeat;
  background-position: left 8px center;
}

.info {
  margin-bottom: 8px;
  position: relative;
}
.info .info-label {
  display: block;
  font-size: 0.75em;
}
.info .info-details {
  color: #1E2025;
}
.info .copy {
  position: absolute;
  bottom: 0;
  right: 0;
  background-image: url("../images/icon-copy-default.svg");
  background-repeat: no-repeat;
  background-position: right bottom;
  width: 40px;
  height: 40px;
}
.info .copy:hover {
  background-image: url("../images/icon-copy-hover.svg");
}

.live-market {
  position: relative;
  display: flex;
  align-items: start;
  margin-left: -8px;
}
.live-market .status-pulse .circle-1 {
  transform-origin: center;
}
.live-market .circle-1 {
  fill: #009F06;
}
.live-market .pulse {
  position: absolute;
  display: block;
  top: 0;
  z-index: 1;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  background: #22A11B;
  box-shadow: 0 0 0 #22A11B;
  animation: pulse 2s infinite;
}
.stat-box .live-market {
  margin-top: 12px;
}

@keyframes pulse {
  0% {
    scale: 0;
    opacity: 1;
  }
  100% {
    scale: 1;
    opacity: 0;
  }
}
.tooltip-trigger {
  display: inline-block;
  position: relative;
  right: 0px;
  width: 20px;
  height: 16px;
  background-image: url("../images/icon-tooltip.svg");
  background-position: top center;
  background-repeat: no-repeat;
  cursor: help;
}

.tooltip {
  position: absolute;
  background: #1E2025;
  color: #FFFFFF;
  border: 1px solid #FFFFFF;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  line-height: 1.3;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  max-width: 200px;
  white-space: normal;
  word-wrap: break-word;
}

.tooltip.active {
  opacity: 1;
  transform: translateY(0);
}

.nav-tooltip {
  position: absolute;
  background: #111;
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 12px;
  white-space: nowrap;
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.nav-tooltip.active {
  opacity: 1;
  transform: translateX(0);
}

.copy-btn {
  display: flex;
  align-items: center;
  height: 50px;
  align-self: flex-end;
  margin-bottom: 12px;
  padding: 4px 16px;
  border: 2px solid #22A11B;
  background-color: white;
}
.copy-btn:hover {
  background-color: #22A11B;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  /* Ensure consistent height handling */
}

body {
  margin: 0;
  background-color: #F4F4F4;
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 500;
  color: #6B7280;
}

.container {
  width: 100%;
  margin: 0 auto;
}

.container-flex {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.container-flex div {
  flex: 1 1 20%;
}
@media screen and (min-width: 767px) and (max-width: 1120px) {
  .container-flex div {
    flex: 1 1 50%;
  }
}
@media screen and (min-width: 767px) {
  .container-flex {
    flex-flow: row;
    gap: 20px;
  }
}
.container-flex.center {
  justify-content: center;
}
@media screen and (min-width: 767px) {
  .container-flex.wrap {
    flex-flow: row wrap;
  }
}

.container-grid {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
@media screen and (min-width: 767px) {
  .container-grid {
    display: grid;
    grid-template-columns: 3fr 1fr;
    gap: 20px;
  }
}
.container-grid.stats {
  grid-template-columns: repeat(1, 1fr);
}
@media screen and (min-width: 1120px) {
  .container-grid.stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

header {
  display: flex;
  align-items: center;
  width: 100%;
  border-top: 4px solid #1E2025;
  background-color: #FFFFFF;
  padding: 16px 20px;
  position: fixed;
  z-index: 99;
}

#content-wrapper {
  display: flex;
  min-height: 100vh;
  padding-top: 76px;
}
#content-wrapper.collapsed nav {
  width: 60px;
  padding: 12px 4px;
}
@media screen and (min-width: 767px) {
  #content-wrapper.collapsed nav ul li.active {
    border: 2px solid #2EEFAA;
  }
  #content-wrapper.collapsed nav a {
    justify-content: center;
  }
}
@media screen and (max-width: 767px) {
  #content-wrapper.collapsed nav {
    transform: translateX(0);
    width: 75%;
    padding: 20px;
  }
  #content-wrapper.collapsed nav .label {
    display: block !important;
  }
}
#content-wrapper.collapsed nav .label {
  display: none;
}
#content-wrapper.collapsed #mob-menu-overlay {
  opacity: 1;
  pointer-events: all;
}
@media screen and (min-width: 767px) {
  #content-wrapper.collapsed .main-content {
    margin-left: 60px;
  }
}

nav {
  height: calc(100vh - 76px);
  width: 200px;
  position: fixed;
  z-index: 99;
  padding: 12px;
  overflow: hidden;
}
@media screen and (max-width: 767px) {
  nav {
    transform: translateX(-100%);
    width: 75%;
    padding: 20px;
    transition: transform 1s ease;
  }
}

#mob-menu-overlay {
  position: fixed;
  background-color: rgba(30, 32, 37, 0.75);
  width: 100%;
  height: calc(100vh - 76px);
  z-index: 98;
  pointer-events: none;
  opacity: 0;
  transition: opacity 1s ease;
}
@media screen and (min-width: 767px) {
  #mob-menu-overlay {
    display: none;
  }
}

.main-content {
  height: 100%;
  width: 100%;
  padding: 24px 12px;
}
@media screen and (min-width: 767px) {
  .main-content {
    margin-left: 200px;
    padding: 24px;
  }
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.performance {
  margin: 32px 0 16px;
}
.performance .graph {
  flex-basis: 100%;
  min-height: 200px;
  background-size: cover;
}
.performance .comparisons {
  flex-basis: 50%;
}

.user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: #6B7280;
}
@media screen and (max-width: 767px) {
  .user .name {
    display: none;
  }
}
.user span {
  background-color: #6B7280;
  color: #FFFFFF;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.row {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}
.row.align-bt {
  align-items: flex-end;
}
@media screen and (max-width: 767px) {
  .row {
    flex-direction: column;
  }
}
.row.row-justify {
  justify-content: center;
}

.table {
  font-size: 14px;
  border-radius: 6px;
  color: #1E2025;
}
@media screen and (min-width: 767px) {
  .table {
    border: 1px solid #DBDAE0;
    border-top: none;
    border-radius: 2px;
    min-width: 860px;
  }
}
.table .table-grid {
  display: grid;
  grid-template-columns: 1fr 80px auto;
  gap: 4px;
  align-items: center;
}
.table .table-grid .table-grid-int {
  display: grid;
  grid-template-columns: 80px 60px 120px 100px 120px 120px 80px;
  align-items: center;
}
@media screen and (max-width: 767px) {
  .table .table-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(5, auto);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    align-items: stretch;
  }
  .table .table-grid .table-grid-int {
    grid-template-columns: repeat(2, 1fr) !important;
    grid-template-rows: repeat(3, auto);
    grid-column-gap: 0px;
    grid-row-gap: 0px;
    padding: 4px 0 0 !important;
    grid-area: 3/1/4/3;
    background-color: #F4F4F4;
    height: 0;
    transition: height 1s ease-in-out;
  }
  .table .table-grid.active .table-grid-int {
    height: 180px;
  }
  .table .table-grid.active .expand {
    transform: rotate(180deg);
  }
}
.table .table-grid.cellar .table-grid-int {
  display: grid;
  grid-template-columns: 80px 60px 120px 100px 120px 120px 120px;
}
.table .wine {
  text-align: left !important;
  display: flex;
  flex-flow: row wrap;
  gap: 8px;
}
.table .wine.star .star {
  display: block;
}
.table .wine.alpha .alpha {
  display: block;
}
.table .wine.stable .stable {
  display: block;
}
.table .wine.diversified .diversified {
  display: block;
}
.table .wine.delivery .delivery {
  display: block;
}
.table .wine.live-for-sale .live-for-sale {
  display: block;
}
.table .wine .expand {
  background-position: left center;
  background-repeat: no-repeat;
  background-image: url("../images/expand-chevron.svg");
  width: 16px;
  height: 16px;
  margin-left: auto;
  transition: transform 0.75s ease-in-out;
  position: absolute;
  right: 12px;
  top: 12px;
}
@media screen and (min-width: 767px) {
  .table .wine .expand {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .table .wine .name {
    flex: 1 1 50%;
    padding-right: 20px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    /* Number of lines to show */
    -webkit-box-orient: vertical;
    overflow: hidden;
    /* Standard property for newer browsers */
    line-clamp: 2;
  }
}
.table .wine .flag {
  width: 16px;
  height: 20px;
  display: none;
  background-position: left center;
  background-repeat: no-repeat;
}
@media screen and (min-width: 767px) {
  .table .wine .flag span {
    display: none;
  }
}
.table .wine .flag.star {
  background-image: url("../images/icon-bibo-criteria.svg");
  margin-left: 0;
  background-position: top 4px left;
}
.table .wine .flag.diversified {
  background-image: url("../images/icon-growth.svg");
}
.table .wine .flag.stable {
  background-image: url("../images/icon-stable.svg");
}
.table .wine .flag.alpha {
  background-image: url("../images/icon-alpha.svg");
}
.table .wine .flag.delivery {
  background-image: url("../images/icon-delivery.svg");
}
.table .wine .flag.live-for-sale {
  background-image: url("../images/icon-live-for-sale.gif");
  background-size: 20px;
  width: 20px;
  margin-left: -2px;
}
@media screen and (max-width: 767px) {
  .table .wine .flag.factor {
    flex: 1 1 100%;
    padding-left: 20px;
    font-size: 14px;
    color: #6B7280;
  }
}
@media screen and (max-width: 767px) {
  .table .wine {
    grid-area: 1/1/2/3;
    font-size: 16px;
    gap: 4px;
  }
}
@media screen and (min-width: 767px) {
  .table .wine {
    padding: 8px 16px !important;
  }
}
.table .table-footer {
  padding: 4px 0;
  border-top: 2px solid #1E2025;
  background-color: #FFFFFF;
}
.table .table-footer > div {
  padding: 8px 4px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .table .table-footer {
    border-radius: 6px;
    padding: 0;
    overflow: hidden;
    border: 1px solid #1E2025;
    margin-bottom: 20px;
  }
  .table .table-footer .table-grid-int {
    height: auto;
  }
  .table .table-footer .table-grid-int > div {
    text-align: left;
    padding: 8px 12px;
  }
  .table .table-footer > div {
    padding: 12px;
  }
}
.table .header {
  font-weight: 700;
  padding: 4px 0;
  border-bottom: 2px solid #1E2025;
  position: sticky;
  z-index: 9;
  top: 76px;
  background-color: #FFFFFF;
  border-top: 1px solid #DBDAE0;
}
.table .header > div {
  padding: 8px 4px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .table .header {
    display: none;
  }
}
.table .rows .row {
  margin: 0;
}
.table .rows .row > div {
  padding: 8px 4px;
  text-align: center;
}
@media screen and (max-width: 767px) {
  .table .rows .row {
    border: 1px solid #DBDAE0;
    margin-bottom: 12px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
  }
  .table .rows .row > div {
    padding: 8px 12px;
    text-align: left;
  }
}
@media screen and (min-width: 767px) {
  .table .rows .row {
    padding: 4px 0;
    min-height: 60px;
  }
  .table .rows .row:nth-child(even) {
    background-color: #F4F4F4;
  }
}
.table .label {
  font-size: 0.75em;
  display: block;
  color: #6B7280;
}
.table .empty {
  background-color: #FFFFFF !important;
  flex-direction: column;
  align-items: center;
  gap: 0;
  display: none;
}
.table .currency {
  display: flex;
  flex-flow: row wrap;
  gap: 0 4px;
}
.table .currency .original-currency {
  width: 16px;
  display: block;
  background-position: left center;
  background-repeat: no-repeat;
  background-image: url("../images/icon-currency.svg");
  display: none;
}
.table .currency.on .original-currency {
  display: block;
}
@media screen and (min-width: 767px) {
  .table .currency {
    justify-content: center;
  }
}
.table .column-name {
  display: block;
  font-size: 0.75em;
  color: #6B7280;
  flex: 1 1 100%;
}
@media screen and (min-width: 767px) {
  .table .column-name {
    display: none;
  }
}
@media screen and (max-width: 767px) {
  .table .cell {
    padding: 8px 12px;
  }
  .table .profit-loss-mobile {
    display: block;
  }
  .table .profit-loss-desktop {
    display: none;
  }
}
@media screen and (min-width: 767px) {
  .table .profit-loss-mobile {
    display: none;
  }
  .table .profit-loss-desktop {
    display: block;
  }
}

.column {
  flex: auto;
  position: relative;
}
.column--half {
  flex-basis: 50%;
}
.column--third {
  flex-basis: 33%;
}
.column--twoThird {
  flex-basis: 66%;
}

.sticky-scroll {
  top: 100px;
  padding: 72px 0;
}

@media screen and (max-width: 767px) {
  .hide--mobile {
    display: none;
  }
}
@media screen and (min-width: 767px) {
  .hide--desktop {
    display: none;
  }
}

.pb {
  padding-bottom: 12px;
}

.footer {
  padding: 20px;
  color: #6B7280;
}
.footer .social-proof {
  padding: 20px;
  display: flex;
  justify-content: center;
  gap: 32px;
  font-size: 0.875rem;
  line-height: 1.1;
}
.footer .social-proof div {
  display: flex;
  gap: 8px;
  align-items: center;
}
.footer .social-proof div img {
  max-height: 32px;
  mix-blend-mode: multiply;
}
@media screen and (max-width: 767px) {
  .footer .social-proof {
    flex-direction: column;
    align-items: center;
  }
}

.log-in {
  border-top: 8px solid #1E2025;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  justify-content: center;
  align-items: center;
  gap: 120px;
  padding: 0 20px;
}
.log-in .btn {
  margin-top: 12px;
}
.log-in .mob-logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin: 0px 40px;
  padding: 20px;
  border-bottom: 1px solid #DBDAE0;
}
.log-in .mob-logo img {
  max-height: 40px;
}
.log-in .content {
  display: flex;
  padding: 0 20px;
  gap: 60px;
  width: 100%;
  max-width: 1160px;
}
.log-in .column {
  max-width: 520px;
  flex: 1 1 50%;
}
.log-in .divider {
  width: 1px;
  height: auto;
  background-color: #DBDAE0;
}
.log-in .logo img {
  height: 36px;
  margin-bottom: 24px;
}
.log-in .secondary {
  text-align: center;
  color: #6B7280;
}
.log-in .login-icons {
  max-height: 40px;
  margin-top: 20px;
}
.log-in.error .content {
  justify-content: center;
}
.log-in.error .column {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.log-in.error .column p {
  text-align: center;
}
@media screen and (max-width: 767px) {
  .log-in {
    gap: 60px;
    padding: 0 40px;
  }
  .log-in .content {
    padding: 0;
  }
}
@media screen and (min-width: 767px) {
  .log-in .mob-logo {
    display: none;
  }
}

div.center {
  text-align: center;
}

.filtering {
  display: flex;
  flex-flow: row wrap;
  gap: 12px;
  margin: 8px 0 12px;
}
.filtering .search {
  flex-grow: 1;
}
.filtering .filters {
  display: flex;
  gap: 12px;
}
@media screen and (max-width: 767px) {
  .filtering .filters {
    display: none;
    width: 100%;
  }
}
.filtering .filters.open {
  display: grid;
  flex-flow: row wrap;
  grid-template-columns: 1fr 1fr;
  gap: 0px 12px;
}
.filtering .filters.open .input {
  flex: 1 1 40%;
}
.filtering #filter-btn {
  height: 50px;
  padding: 12px 48px 12px 12px;
  border: 1px solid #DBDAE0;
  background-image: url("../images/filter-icon.svg");
  background-position: right 12px center;
  background-repeat: no-repeat;
}
@media screen and (min-width: 767px) {
  .filtering #filter-btn {
    display: none;
  }
}
.filtering #filter-btn.open {
  background-color: #6B7280;
  color: #FFFFFF;
  background-image: url("../images/filter-icon-active.svg");
}
.filtering .results {
  flex-basis: 100%;
  color: #6B7280;
  gap: 4px;
}
.filtering .results .active-filters {
  color: #0075FF;
}
.filtering .results #filters-on {
  display: none;
}
@media screen and (min-width: 767px) {
  .filtering .results {
    display: flex;
  }
}

.analysis-graph {
  margin: 24px 0;
}

@media screen and (max-width: 767px) {
  .hide-mob {
    display: none !important;
  }
}

.show-mob {
  display: none;
}
@media screen and (max-width: 767px) {
  .show-mob {
    display: flex;
  }
}
.show-mob.download {
  justify-content: center;
}

/* Reusable overlay */
#modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 999;
}

#modal-overlay.active {
  visibility: visible;
  opacity: 1;
}

/* Base modal styling */
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -45%) scale(0.95);
  /* Smaller initial size */
  opacity: 0;
  /* Hidden initially */
  background: white;
  width: 90%;
  max-width: 600px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 2px;
  padding: 32px;
  visibility: hidden;
  /* Hidden by default, shown when activated */
  z-index: 1000;
  transition: opacity 0.5s ease, transform 0.5s ease;
  box-shadow: 0 467px 131px 0 rgba(0, 0, 0, 0), 0 299px 120px 0 rgba(0, 0, 0, 0.03), 0 168px 101px 0 rgba(0, 0, 0, 0.11), 0 75px 75px 0 rgba(0, 0, 0, 0.19), 0 19px 41px 0 rgba(0, 0, 0, 0.22);
}
.modal .modal-btns .btn {
  margin: 8px 0;
}
@media screen and (min-width: 767px) {
  .modal .modal-btns {
    display: grid;
    grid-template-columns: 2fr 1fr 2fr;
  }
}
@media screen and (max-width: 767px) {
  .modal .modal-btns .btn:nth-of-type(2) {
    order: -1;
  }
}

/* Active modal */
.modal.active {
  visibility: visible;
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  /* Grows slightly */
}

/* Close button */
.modal .close-btn {
  position: absolute;
  top: 0px;
  right: 4px;
  width: 40px;
  cursor: pointer;
  font-size: 44px;
  font-weight: 200;
  border: 0;
  background: none;
}
