/* BitClac v278: mirrored live market tools beside the selected-coin summary. */
html body[data-page="home"] .home-top-summary-grid-v278 {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 14px;
}

html body[data-page="home"] .home-top-summary-grid-v278 > .home-coin-summary-v244 {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 118px !important;
  grid-template-columns: minmax(120px, .85fr) minmax(150px, 1.15fr) auto !important;
  gap: 10px !important;
  margin: 0 !important;
  padding: 12px 14px !important;
}

/* Make the formerly tiny labels readable without changing token-logo styling. */
html body[data-page="home"] .home-top-summary-grid-v278 .home-current-price-label-v271 {
  font-size: 11px;
  line-height: 1.15;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-coin-lead-v271 .crypto-rates-big-price > strong {
  font-size: clamp(25px, 2.15vw, 34px) !important;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-dynamics-v271 p {
  font-size: 12px;
  line-height: 1.15;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-dynamics-v271 p small {
  font-size: 11px;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-dynamics-v271 [data-home-change-v271] {
  min-height: 30px;
  padding: 6px 7px;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-dynamics-v271 [data-home-change-v271] b {
  font-size: 13px;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-dynamics-v271 [data-home-change-v271] small {
  font-size: 10px;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-stats-v244 > span {
  min-width: 78px !important;
  padding-inline: 8px !important;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-stats-v244 small {
  font-size: 11px !important;
}

html body[data-page="home"] .home-top-summary-grid-v278 .home-market-stats-v244 b {
  font-size: 14px !important;
}

html body[data-page="home"] .home-market-tools-v278 {
  box-sizing: border-box;
  min-width: 0;
  min-height: 118px;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(142px, 1fr) minmax(105px, .7fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 10px;
  background: #171c23;
  color: #f6f8fb;
}

html body[data-page="home"] .home-market-tools-v278 > section,
html body[data-page="home"] .home-market-tools-v278 > form {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 5px;
  margin: 0;
  padding: 10px 12px;
}

html body[data-page="home"] .home-market-tools-v278 > :not(:first-child) {
  border-left: 1px solid rgba(148, 163, 184, .18);
}

html body[data-page="home"] .home-market-tools-label-v278 {
  color: #9aabbe;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.1;
  letter-spacing: .025em;
  text-transform: uppercase;
}

html body[data-page="home"] .home-market-sentiment-v278 > strong {
  width: max-content;
  max-width: 100%;
  font-size: 17px;
  line-height: 1.05;
}

html body[data-page="home"] .home-market-sentiment-v278 > strong.is-positive {
  color: #47d89a;
}

html body[data-page="home"] .home-market-sentiment-v278 > strong.is-negative {
  color: #f17d87;
}

html body[data-page="home"] .home-market-sentiment-v278 > strong.is-flat,
html body[data-page="home"] .home-market-sentiment-v278 > strong.is-unavailable {
  color: #c7d0dc;
}

html body[data-page="home"] .home-market-sentiment-v278 > small {
  overflow: hidden;
  color: #a9b6c5;
  font-size: 11px;
  font-weight: 750;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body[data-page="home"] .home-fear-greed-v278 {
  min-width: 0;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 9px;
}

html body[data-page="home"] .home-fear-greed-v278 > span:first-child {
  min-width: 0;
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  justify-content: start;
  gap: 1px 7px;
}

html body[data-page="home"] .home-fear-greed-v278 small {
  grid-column: 1 / -1;
  overflow: hidden;
  color: #8fa1b7;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body[data-page="home"] .home-fear-greed-v278 b {
  color: #f6f8fb;
  font-size: 17px;
  line-height: 1;
}

html body[data-page="home"] .home-fear-greed-v278 em {
  overflow: hidden;
  color: #c1ccd9;
  font-size: 10px;
  font-style: normal;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body[data-page="home"] .home-fng-gauge-v278 {
  position: relative;
  width: 72px;
  height: 37px;
  flex: 0 0 72px;
  overflow: hidden;
}

html body[data-page="home"] .home-fng-gauge-v278::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 72px 72px 0 0;
  background: conic-gradient(
    from 270deg at 50% 100%,
    #f05c6b 0deg,
    #ef9950 58deg,
    #e8cb52 92deg,
    #72cd7e 132deg,
    #42c991 180deg,
    transparent 180deg 360deg
  );
}

html body[data-page="home"] .home-fng-gauge-v278::after {
  content: "";
  position: absolute;
  inset: 8px 8px 0;
  z-index: 1;
  border-radius: 60px 60px 0 0;
  background: #171c23;
}

html body[data-page="home"] .home-fng-gauge-v278 i {
  position: absolute;
  left: 50%;
  bottom: 0;
  z-index: 2;
  width: 29px;
  height: 2px;
  border-radius: 999px;
  background: #f6f8fb;

  transform: rotate(var(--v278-fng-angle, -90deg));
  transform-origin: 0 50%;
  transition: transform .24s ease;
}

html body[data-page="home"] .home-fng-gauge-v278 i::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -2px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f6f8fb;
}

html body[data-page="home"] .home-fng-gauge-v278.is-empty {
  filter: grayscale(1);
  opacity: .42;
}


html body[data-page="home"] .home-market-converter-v278 label {
  min-width: 0;
  display: grid;
  gap: 4px;
}

html body[data-page="home"] .home-market-converter-v278 label > span,
html body[data-page="home"] .home-market-converter-v278 > small {
  overflow: hidden;
  color: #96a8bc;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body[data-page="home"] .home-market-converter-v278 label b {
  color: #dce5ef;
}

html body[data-page="home"] .home-market-converter-v278 input {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 32px;
  padding: 6px 8px;
  border: 1px solid rgba(148, 163, 184, .2);
  border-radius: 7px;
  background: #11161d;
  color: #f7f9fc;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

html body[data-page="home"] .home-market-converter-v278 input:focus {
  border-color: rgba(66, 201, 145, .68);
  box-shadow: 0 0 0 2px rgba(66, 201, 145, .11);
}

html body[data-page="home"] .home-market-converter-v278 input[type="number"] {
  appearance: textfield;
  -moz-appearance: textfield;
}

html body[data-page="home"] .home-market-converter-v278 input[type="number"]::-webkit-inner-spin-button,
html body[data-page="home"] .home-market-converter-v278 input[type="number"]::-webkit-outer-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

html body[data-page="home"] .home-converter-output-v278 {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

html body[data-page="home"] .home-converter-output-v278 output {
  overflow: hidden;
  color: #f5f8fc;
  font-size: 13px;
  font-weight: 850;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

html body[data-page="home"] .home-converter-output-v278 > span {
  display: inline-flex;
  gap: 6px;
}

html body[data-page="home"] .home-converter-output-v278 button {
  min-height: 23px;
  padding: 3px 5px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 5px;
  background: #11161d;
  color: #8fa1b6;
  font-size: 9px;
  font-weight: 850;
  cursor: pointer;
}

html body[data-page="home"] .home-converter-output-v278 button.is-active {
  border-color: rgba(66, 201, 145, .42);
  background: rgba(66, 201, 145, .14);
  color: #65dda8;
}

html body[data-page="home"] .home-converter-output-v278 button:focus-visible {
  outline: 2px solid rgba(101, 221, 168, .8);
  outline-offset: 2px;
}

html body[data-page="home"] .home-btc-dominance-v278 strong {
  color: #f5f8fc;
  font-size: 23px;
  line-height: 1;
}

html body[data-page="home"] .home-btc-dominance-v278 > small {
  color: #96a8bc;
  font-size: 10px;
  font-weight: 750;
  line-height: 1.25;
}

/* The desktop shell becomes narrow near the 1120px boundary because of the sidebar. */
@media (min-width: 1121px) and (max-width: 1390px) {
  html body[data-page="home"] .home-top-summary-grid-v278 > .home-coin-summary-v244 {
    grid-template-columns: minmax(0, .9fr) minmax(170px, 1.1fr) !important;
  }

  html body[data-page="home"] .home-top-summary-grid-v278 .home-market-stats-v244 {
    grid-column: 1 / -1 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid rgba(148, 163, 184, .16);
  }

  html body[data-page="home"] .home-market-tools-v278 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body[data-page="home"] .home-btc-dominance-v278 {
    grid-column: 1 / -1;
    grid-template-columns: auto auto minmax(0, 1fr) auto;
    align-items: center;
  }

  html body[data-page="home"] .home-market-tools-v278 > .home-btc-dominance-v278 {
    border-top: 1px solid rgba(148, 163, 184, .18);
    border-left: 0;
  }
}

@media (max-width: 1120px) {
  html body[data-page="home"] .home-top-summary-grid-v278 {
    grid-template-columns: 1fr;
  }

  html body[data-page="home"] .home-top-summary-grid-v278 > .home-coin-summary-v244 {
    width: 100% !important;
    max-width: none !important;
  }
}

@media (max-width: 760px) {
  html body[data-page="home"] .home-market-tools-v278 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  html body[data-page="home"] .home-btc-dominance-v278 {
    grid-column: 1 / -1;
  }

  html body[data-page="home"] .home-market-tools-v278 > .home-btc-dominance-v278 {
    border-top: 1px solid rgba(148, 163, 184, .18);
    border-left: 0;
  }
}

@media (max-width: 520px) {
  html body[data-page="home"] .home-top-summary-grid-v278 {
    gap: 10px;
  }

  html body[data-page="home"] .home-top-summary-grid-v278 > .home-coin-summary-v244,
  html body[data-page="home"] .home-market-tools-v278 {
    grid-template-columns: 1fr !important;
  }

  html body[data-page="home"] .home-market-tools-v278 > section,
  html body[data-page="home"] .home-market-tools-v278 > form {
    padding: 12px;
  }

  html body[data-page="home"] .home-market-tools-v278 > :not(:first-child) {
    border-top: 1px solid rgba(148, 163, 184, .18);
    border-left: 0;
  }

  html body[data-page="home"] .home-btc-dominance-v278 {
    grid-column: auto;
  }

  html body[data-page="home"] .home-converter-output-v278 {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html body[data-page="home"] .home-fng-gauge-v278 i {
    transition: none;
  }
}

/* BitClac v298: blue interaction light, gray controls */
html body[data-page="home"] .crypto-market-search input:focus,
html body[data-page="home"] .home-market-converter-v278 input:focus {
  border-color: #79a9ff !important;
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(121, 169, 255, .13) !important;
}

html body[data-page="home"] .crypto-market-refresh:hover {
  border-color: rgba(121, 169, 255, .68) !important;
}

html body[data-page="home"] .crypto-market-pagination button.is-active {
  border-color: #79a9ff !important;
  color: #eef4ff !important;
  background: #34445f !important;
}
