.coinValueHistory{
  margin-top:16px;
}

.coinValueHistory__head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}

.coinValueHistory__title{
  margin:0;
}

.coinValueHistory__summary{
  margin:6px 0 0;
  line-height:1.4;
}

.coinValueHistory__ranges{
  display:flex;
  align-items:center;
  justify-content:flex-end;
  gap:8px;
  flex-wrap:wrap;
}

.barHistoryRangeBtn{
  min-width:48px;
  padding:7px 10px;
  border-radius:999px;
}

.barHistoryRangeBtn.is-active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.coinValueHistory__chartWrap{
  margin-top:14px;
  border:1px solid rgba(15,23,42,.10);
  border-radius:16px;
  background:linear-gradient(180deg, rgba(255,255,255,.96), rgba(248,250,252,.96));
  overflow:hidden;
}

.coinValueHistory__chart{
  display:block;
  width:100%;
  min-height:210px;
  color:#111827;
}

.coinValueHistory__gridLine{
  stroke:rgba(15,23,42,.10);
  stroke-width:1;
}

.coinValueHistory__line{
  fill:none;
  stroke:currentColor;
  stroke-width:4;
  stroke-linecap:round;
  stroke-linejoin:round;
}

.coinValueHistory__fill{
  fill:rgba(17,24,39,.06);
}

.coinValueHistory__dot{
  fill:currentColor;
}

.coinValueHistory__axisText{
  fill:rgba(15,23,42,.64);
  font-size:12px;
  font-weight:700;
}

.coinValueHistory__empty{
  display:flex;
  min-height:160px;
  align-items:center;
  justify-content:center;
  padding:18px;
  text-align:center;
  color:rgba(15,23,42,.68);
}

.coinValueHistory__status{
  margin:10px 0 0;
}

@media (max-width:700px){
  .coinValueHistory__head{
    display:grid;
    gap:10px;
  }

  .coinValueHistory__ranges{
    justify-content:flex-start;
  }

  .barHistoryRangeBtn{
    min-width:auto;
    padding:8px 10px;
  }

  .coinValueHistory__chart{
    min-height:180px;
  }
}

.coin-movement-badge {
  display: inline-block;
  margin: 4px 0;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f1f1f1;
  color: #333;
}

.coin-movement-badge[data-direction="up"] {
  background: #e8f7ee;
  color: #166534;
}

.coin-movement-badge[data-direction="down"] {
  background: #fef2f2;
  color: #991b1b;
}

.coin-movement-estimates {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
  margin: 12px 0;
}

.coin-movement-estimates > div {
  padding: 10px 12px;
  border: 1px solid #dedede;
  border-radius: 12px;
}

.coin-movement-estimates time {
  display: block;
  color: #555;
  font-size: .85rem;
}

.coin-movement-estimates dd {
  margin: 4px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.bar-guest-prompt[hidden] { display: none; }
.bar-guest-prompt, .bar-related-panel {
  border: 1px solid #dedede;
  border-radius: 14px;
  margin-top: 1rem;
  padding: 1rem;
}
.bar-guest-prompt {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .75rem 1rem;
  background: #f4f4f4;
}
.bar-guest-prompt h2, .bar-guest-prompt p { margin: 0; }
.bar-guest-prompt p { margin-top: .35rem; }
.bar-guest-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.bar-related-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr)); gap: .75rem; }
.bar-related-card { display: grid; align-content: start; gap: .35rem; padding: .65rem; border: 1px solid #dedede; border-radius: 10px; color: inherit; text-decoration: none; overflow-wrap: anywhere; }
.bar-related-card img { width: 100%; height: 130px; object-fit: contain; }
.bar-related-card span { color: #555; font-size: .875rem; }
.bar-related-panel h3 { margin-top: 1.25rem; }
#barValueHistory .coinValueHistory__chartWrap[hidden] { display: none; }
#barValueHistory .coinValueHistory__status:empty { display: none; }
