.mh-structure { margin: 20px 0; border: 1px solid var(--border); border-radius: 12px; padding: 20px; background: var(--card); min-width: 0; }
.mh-structure-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.mh-structure-heading h3 { margin: 0 0 7px; font-size: 16px; font-weight: 600; }
.mh-structure-heading p { margin: 0; }
.mh-structure-heading > button { flex-shrink: 0; }
.mh-structure-context { color: var(--muted); margin: 12px 0 18px; font-size: 12px; line-height: 1.7; }
.mh-structure-context strong { color: var(--accent-text); font-weight: 500; }
.mh-structure-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding: 0 0 20px; border-bottom: 1px solid var(--border); }
.mh-structure-kpis > div { min-width: 0; }
.mh-structure-kpis span, .mh-structure-kpis small { display: block; color: var(--muted); font-size: 11px; font-weight: 400; }
.mh-structure-kpis strong { display: block; margin: 8px 0; font-size: clamp(19px, 2vw, 25px); font-weight: 600; line-height: 1.25; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.mh-structure-kpis strong small { display: inline; }
.mh-tier-groups { display: grid; gap: 15px; margin: 18px 0; }
.mh-tier-group-label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; }
.mh-tier-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.mh-tier-grid-wide { grid-template-columns: repeat(auto-fit, minmax(132px, 1fr)); }
body.gleaner-app .market-history .mh-tier { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; min-width: 0; padding: 11px 12px; border: 1px solid var(--border); border-radius: 8px; color: var(--text); background: var(--surface-inset); box-shadow: none; text-align: left; }
body.gleaner-app .market-history .mh-tier:hover { background: var(--hover-bg); border-color: var(--border-strong); }
body.gleaner-app .market-history .mh-tier.active { border-color: var(--accent); background: var(--accent-bg-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mh-tier > span:first-child { font-size: 12px; line-height: 1.4; }
.mh-tier > strong { font-size: 20px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mh-tier small { font-size: 11px; color: var(--muted); font-weight: 400; }
.mh-tier-shares { font-size: 10px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.mh-tier-missing > span:first-child { color: var(--warn); }
body.gleaner-app .market-history .mh-tier-missing-group .mh-tier { width: 100%; flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px 16px; padding: 9px 12px; }
.mh-tier-missing-group .mh-tier > span:first-child { flex: 1; }
.mh-tier-missing-group .mh-tier > strong { font-size: 17px; white-space: nowrap; }
.mh-structure-charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.mh-structure-chart-card { min-width: 0; }
.mh-structure-chart-card h4 { margin: 0 0 6px; font-size: 13px; font-weight: 600; }
.mh-structure-chart-card > p { margin: 0 0 10px; font-size: 11px; }
.mh-structure-chart { height: 370px; min-width: 0; width: 100%; }
.mh-structure-chart .barlayer .point { cursor: pointer; }
.mh-structure-empty { display: flex; justify-content: center; align-items: center; height: 100%; min-height: 120px; padding: 16px; color: var(--muted); font-size: 12px; line-height: 1.8; text-align: center; background: var(--surface-inset); border-radius: 8px; box-sizing: border-box; }
.mh-structure-method { border-top: 1px solid var(--border); margin-top: 18px; padding-top: 13px; color: var(--muted); font-size: 12px; line-height: 1.8; }
.mh-structure-method summary { cursor: pointer; color: var(--text); }
.mh-structure-method p { margin: 10px 0 0; }
@media (max-width: 980px) {
  .mh-structure-charts { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
@media (max-width: 720px) {
  .mh-structure { padding: 14px 12px; }
  .mh-structure-heading { flex-wrap: wrap; gap: 10px; }
  .mh-structure-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 12px; }
  .mh-tier-grid, .mh-tier-grid-wide { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.gleaner-app .market-history .mh-tier { padding: 10px; }
  .mh-structure-chart { height: 370px; }
}
