.chart-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 8px;
}
.chart-head h2 {
  margin-bottom: 5px;
}
.chart-head strong {
  font:
    24px Arial,
    sans-serif;
  color: #fff;
}
.chart-head em {
  font:
    16px Arial,
    sans-serif;
  color: #21d46b;
  margin-left: 8px;
}
.periods {
  display: flex;
  border: 1px solid #65501e;
  border-radius: 7px;
  overflow: hidden;
}
.periods button {
  min-width: 54px;
  padding: 8px 12px;
  border: 0;
  border-right: 1px solid #57471f;
  background: #111;
  color: #eee;
  font:
    12px Arial,
    sans-serif;
}
.periods button:last-child {
  border-right: 0;
}
.periods .active {
  color: #ffe28b;
  background: #3a2a0c;
  box-shadow: inset 0 0 12px #d5a529;
}
.market-info small {
  display: block;
  margin-top: 12px;
  color: #cdbd92;
  font:
    11px/1.45 Arial,
    sans-serif;
}
.registry {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.registry-scroll {
  max-height: 250px;
  overflow: auto;
  border: 1px solid #57471f;
  border-radius: 7px;
}
.registry table {
  min-width: 560px;
  table-layout: fixed;
}
.registry th {
  position: sticky;
  top: 0;
  background: #18140d;
  color: #e5c76e;
  font-size: 12px;
  letter-spacing: 0.04em;
  overflow-wrap: normal;
  word-break: normal;
}
.registry td {
  font-size: 12px;
}
.registry td:first-child {
  color: #e3b53e;
}
.registry th:first-child,
.registry td:first-child {
  width: 120px;
}
.registry td:first-child,
.registry th:nth-child(2),
.registry td:nth-child(2) {
  white-space: nowrap;
}
.registry th:nth-child(2),
.registry td:nth-child(2) {
  width: 112px;
}
.registry th:nth-child(3),
.registry td:nth-child(3) {
  width: 28%;
}
.registry td:last-child,
.registry th:last-child {
  text-align: center;
  width: 76px;
  white-space: nowrap;
}
.registry-subject,
.registry-topic,
.registry-pdf {
  color: #ead69c;
  text-decoration: none;
}
.registry-subject {
  font-weight: 700;
}
.registry-topic {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #d8d0bc;
}
.registry-pdf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 52px;
  padding: 5px 8px;
  border: 1px solid rgba(184, 139, 41, .72);
  border-radius: 6px;
  background: rgba(28, 22, 10, .72);
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}
.registry-subject:hover,
.registry-topic:hover,
.registry-pdf:hover {
  color: #fff0b2;
  text-decoration: underline;
  text-decoration-color: #b88b29;
  text-underline-offset: 3px;
}
.view-all {
  align-self: flex-end;
  margin-top: 10px;
  padding: 7px 15px;
  border: 1px solid #b88b29;
  border-radius: 16px;
  background: #111;
  color: #f0d986;
  font:
    11px Arial,
    sans-serif;
}
.registry-scroll {
  scrollbar-color: #9b7422 #17130d;
  scrollbar-width: thin;
}
@media (max-width: 700px) {
  .chart-head {
    flex-direction: column;
  }
  .periods {
    width: 100%;
  }
  .periods button {
    flex: 1;
  }
  .registry {
    padding: 14px;
  }
  .registry-scroll {
    max-height: 235px;
  }
}

/* Stable controls on narrow screens and keyboard navigation. */
:is(a,button,input,select,textarea):focus-visible{outline:2px solid #e2c363;outline-offset:3px}
.language-panel{max-height:65dvh;overflow-y:auto;overscroll-behavior:contain}
.language-panel button{min-height:42px}
.data-error{margin:24px;padding:24px;border:1px solid #9d803a;border-radius:12px;color:#eee;background:#10131a}
.data-error button{margin-inline-start:16px;padding:10px 16px;cursor:pointer}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*,*::before,*::after{animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}
