/* NEXA — compact market summary, 23 Nov 2026.
   Refines ONLY mobile presentation; live market queries, RSI math, trading logic unchanged. */
.rsi-mobile-meter { display: none; }
@media (max-width: 640px) {
  /* Reduce the secondary homepage stat strip so it does not reintroduce large cards. */
  .hub-metrics {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 6px 0 14px;
    border-radius: 8px;
  }
  .hub-metrics > div, .hub-metrics > button {
    min-width: 0;
    padding: 9px 5px 8px;
    text-align: center;
    border-bottom: 0 !important;
    border-left: 0 !important;
  }
  .hub-metrics > div + div, .hub-metrics > button + button { border-left: 1px solid var(--line) !important; }
  .hub-metrics strong { font-size: 17px; margin: 0 0 5px; line-height: 1.12; }
  .hub-metrics span, .hub-metrics small { font-size: 9px; line-height: 1.25; overflow-wrap: anywhere; }
  /* Coinglass-like visual density: a concise 2x2 snapshot, not four tall dashboards. */
  .market-overview { margin: 3px 0 18px; }
  .market-overview .section-head { margin-bottom: 9px; }
  .market-overview h2 { font-size: 18px; line-height: 1.3; letter-spacing: -.35px; }
  .overview-actions .text-btn { min-height: 30px; padding: 5px 0; font-size: 11px; }
  .overview-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "cap fear" "rsi alt";
    align-items: stretch;
    gap: 8px;
  }
  .overview-card, .cap-card, .fear-card, .rsi-card, .alt-card {
    min-width: 0;
    width: 100%;
    min-height: 0 !important;
    height: 110px;
    margin: 0;
    padding: 10px 11px 8px !important;
    border: 1px solid #313b47;
    border-radius: 9px;
    background: #171d25;
    box-shadow: none;
    overflow: hidden;
    justify-content: flex-start;
  }
  .cap-card { grid-area: cap; order: initial; }
  .fear-card { grid-area: fear; order: initial; }
  .rsi-card { grid-area: rsi; order: initial; }
  .alt-card { grid-area: alt; order: initial; }
  .overview-card-title { min-height: 0; height: auto; display: block; }
  .overview-card-title h3 {
    font-size: 11px;
    font-weight: 600;
    line-height: 1.24;
    letter-spacing: -.1px;
    color: #c1cad6;
    max-height: 28px;
    overflow-wrap: anywhere;
  }
  .overview-card-title > .icon { display: none !important; }
  .overview-value, .cap-card .overview-value, .fear-card .overview-value,
  .rsi-card .overview-value, .alt-card .overview-value {
    display: flex;
    align-items: baseline;
    flex-wrap: nowrap;
    min-height: 0;
    margin-top: 6px;
    padding: 0;
    gap: 4px;
    color: #f4f6f8;
    font-size: clamp(19px, 5.6vw, 24px);
    font-weight: 650;
    line-height: 1.06;
    letter-spacing: -.65px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .cap-card .overview-value { font-size: clamp(19px, 5.5vw, 23px); }
  .overview-value small { font-size: 10px; font-weight: 500; color: #a3aebf; }
  .overview-sub, .fear-card .overview-sub, .rsi-card .overview-sub,
  .alt-card .overview-sub {
    min-height: 0;
    margin-top: 4px;
    line-height: 1.25;
    font-size: 9.5px;
    gap: 4px;
    white-space: nowrap;
  }
  .overview-sub .sentiment-label, .fear-card .overview-sub .sentiment-label {
    font-size: 10px;
    white-space: nowrap;
  }
  .cap-card .overview-sub > span:last-child { font-size: 9px; }
  .cap-breakdown {
    display: block;
    min-height: 0;
    margin: 6px 0 0;
    padding: 0;
    font-size: 9px;
    line-height: 1.2;
  }
  .cap-breakdown > div:first-child { display: flex; flex-direction: row; justify-content: space-between; align-items: center; gap: 5px; }
  .cap-breakdown > div:nth-child(3), .cap-breakdown .dominance-bar { display: none; }
  .cap-breakdown strong { font-size: 10px; color: #d4deed; white-space: nowrap; }
  .sentiment-visual, .alt-season-visual {
    min-height: 0;
    margin: 9px 0 0;
    padding: 0;
  }
  .sentiment-bar, .season-bar { height: 7px; margin: 0 1px; }
  .meter-pointer { top: -3px; width: 3px; height: 13px; box-shadow: 0 0 0 1px #101820; }
  .sentiment-labels, .sentiment-visual p, .alt-season-visual .sentiment-labels { display: none !important; }
  .rsi-card .overview-sub { font-size: 9px; }
  .rsi-card .indicator-chart, .rsi-card .indicator-dates,
  .rsi-card .overview-chart-empty { display: none; }
  .rsi-mobile-meter { display: block; margin: 9px 0 0; }
  .rsi-mobile-track {
    height: 7px;
    border-radius: 12px;
    position: relative;
    margin: 0 1px;
    background: linear-gradient(90deg,#31ac8e 0%,#5bbda3 29%,#bbce92 42%,#d5bd75 56%,#df9867 72%,#dd5669 100%);
  }
  .rsi-mobile-pointer {
    width: 0; height: 0; position: absolute; top: -5px;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid #e8edf5;
    filter: drop-shadow(0 1px 1px #0009);
  }
  .overview-card-foot, .fear-card .overview-card-foot, .rsi-card .overview-card-foot,
  .alt-card .overview-card-foot, .cap-card .overview-card-foot {
    display: flex;
    align-items: center;
    min-height: 0;
    margin-top: auto;
    padding: 5px 0 0;
    border: 0;
    gap: 0;
    color: #8190a2;
    font-size: 8.5px;
    line-height: 1.1;
    overflow: hidden;
  }
  .overview-card-foot time {
    display: block;
    min-width: 0;
    max-width: 100%;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    font-size: inherit;
    line-height: inherit;
  }
  .overview-card-foot .overview-status { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
}
@media (max-width: 359px) {
  .overview-grid { gap: 6px; }
  .overview-card, .cap-card, .fear-card, .rsi-card, .alt-card { height: 112px; padding: 9px 9px 7px !important; }
  .overview-card-title h3 { font-size: 10px; }
  .overview-value, .cap-card .overview-value,
  .fear-card .overview-value, .rsi-card .overview-value, .alt-card .overview-value { font-size: 19px; }
  .overview-card-foot { font-size: 8px !important; }
}
@media (max-width: 640px) {
  .overview-sub { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
  .fear-card .overview-sub .sentiment-label { min-width: 0; max-width: 100%; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .home-directory > .section-head { flex-wrap: wrap; }
  .home-directory > .section-head h2 { min-width: 0; overflow-wrap: anywhere; }
  .home-directory > .section-head > .text-btn { min-width: 0; flex: 0 1 auto; white-space: normal; margin-left: auto; }
}
@media (max-width: 359px) {
  .home-directory > .section-head h2 { font-size: 20px; }
  .home-directory > .section-head > .text-btn { font-size: 10px; max-width: 105px; }
}
