.ann-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.ann-tab {
  border: 1px solid var(--border2);
  border-radius: 7px 7px 0 0;
  padding: 7px 16px;
  background: var(--surface2);
  color: var(--text2);
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  outline: none;
  transition: background 0.15s, color 0.15s;
}
.ann-tab.is-active {
  background: var(--surface);
  color: var(--accent2);
  border-bottom: 2px solid var(--accent2);
  z-index: 2;
}
.ann-content {
  min-height: 48px;
  padding: 6px 2px 2px 2px;
}
.ann-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.ann-list li {
  margin-bottom: 7px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 12px;
}
.ann-date {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  color: var(--text3);
  min-width: 90px;
  display: inline-block;
}
.ann-link {
  color: var(--accent2);
  text-decoration: none;
  transition: text-decoration 0.15s;
}
.ann-link:hover {
  text-decoration: underline;
}
.ann-empty {
  color: var(--text3);
  font-size: 12px;
  padding: 8px 0;
}
@media (max-width: 760px) {
  .ann-tab {
    border-radius: 7px;
  }

  .ann-list li {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .ann-date {
    min-width: 0;
  }
}
:root {
  --bg: #0a0e14;
  --surface: #111820;
  --surface2: #1a2332;
  --border: #1e2d3d;
  --border2: #2a3f57;
  --text: #cdd9e5;
  --text2: #768a9e;
  --text3: #4a6278;
  --accent: #00d4aa;
  --accent2: #0098f7;
  --danger: #ff5f5f;
  --warning: #f5a623;
}

:root[data-theme='light'] {
  --bg: #edf3fa;
  --surface: #ffffff;
  --surface2: #f6faff;
  --border: #c7d8ea;
  --border2: #9cb7d6;
  --text: #143250;
  --text2: #375677;
  --text3: #6381a1;
  --accent: #0f8f52;
  --accent2: #0d5b94;
  --danger: #c52929;
  --warning: #c17f11;
}

[data-theme-toggle] {
  position: relative;
}

:root[data-theme='light'] body {
  color: var(--text);
  background-color: var(--bg);
}

:root[data-theme='light'] body::before {
  opacity: 0.18;
}

:root[data-theme='light'] .logo-mark,
:root[data-theme='light'] .logo {
  color: #fff;
}

:root[data-theme='light'] .refresh-btn {
  color: #fff;
}

:root[data-theme='light'] .switch-link,
:root[data-theme='light'] .nav-link,
:root[data-theme='light'] .btn {
  background: #eef4fb;
  color: var(--text2);
  border-color: var(--border2);
}

:root[data-theme='light'] .switch-link:hover,
:root[data-theme='light'] .nav-link:hover,
:root[data-theme='light'] .btn:hover {
  color: var(--accent2);
}

:root[data-theme='light'] .table-wrap,
:root[data-theme='light'] .card,
:root[data-theme='light'] .controls,
:root[data-theme='light'] .section,
:root[data-theme='light'] .s-card,
:root[data-theme='light'] .index-card,
:root[data-theme='light'] .report {
  box-shadow: 0 6px 18px rgba(24, 64, 108, 0.08);
}

:root[data-theme='light'] .ticker-link {
  color: var(--accent2);
}

.global-header {
  position: relative;
  z-index: 30;
  max-width: 1400px;
  margin: 0 auto 14px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(9, 36, 61, 0.96), rgba(14, 66, 104, 0.96));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 10px 22px rgba(11, 29, 51, 0.24);
}

.gh-logo {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #eef7ff;
  text-decoration: none;
  width: max-content;
}

.gh-mark {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: linear-gradient(160deg, #06a779, #0f5f98);
  display: grid;
  place-items: center;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
}

.gh-title {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.gh-actions {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  padding: 8px;
  border: 1px solid rgba(220, 236, 250, 0.2);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(8, 30, 50, 0.5), rgba(6, 24, 41, 0.42));
}

.gh-actions a,
.gh-actions button {
  border: 1px solid rgba(214, 233, 249, 0.22);
  border-radius: 999px;
  padding: 7px 12px;
  background: linear-gradient(180deg, rgba(9, 40, 64, 0.78), rgba(8, 31, 51, 0.72));
  color: #d7e8f8;
  text-decoration: none;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.45px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.gh-actions a:hover,
.gh-actions button:hover,
.gh-actions .is-active {
  border-color: rgba(182, 244, 220, 0.65);
  color: #effff8;
  background: linear-gradient(180deg, rgba(11, 144, 89, 0.72), rgba(8, 114, 74, 0.66));
  transform: translateY(-1px);
}

.gh-actions a:focus-visible,
.gh-actions button:focus-visible {
  outline: 2px solid rgba(158, 233, 255, 0.9);
  outline-offset: 2px;
}

.gh-actions button[data-theme-toggle] {
  color: rgba(211, 227, 241, 0.8);
  border-color: rgba(183, 211, 236, 0.2);
  background: linear-gradient(180deg, rgba(7, 26, 43, 0.45), rgba(7, 24, 39, 0.38));
  box-shadow: none;
}

.gh-actions button[data-theme-toggle]:hover,
.gh-actions button[data-theme-toggle]:focus-visible {
  color: #d8e8f7;
  border-color: rgba(183, 211, 236, 0.34);
  background: linear-gradient(180deg, rgba(9, 33, 53, 0.6), rgba(8, 30, 48, 0.5));
  transform: none;
}

:root[data-theme='light'] .global-header {
  background: linear-gradient(120deg, rgba(245, 250, 255, 0.98), rgba(228, 241, 255, 0.98));
  border-color: #c3d8ee;
  box-shadow: 0 10px 22px rgba(24, 64, 108, 0.12);
}

:root[data-theme='light'] .gh-logo {
  color: #0d3154;
}

:root[data-theme='light'] .gh-mark {
  background: linear-gradient(160deg, #0f8f52, #0d5b94);
}

:root[data-theme='light'] .gh-actions {
  border-color: rgba(95, 134, 171, 0.35);
  background: linear-gradient(180deg, rgba(241, 248, 255, 0.98), rgba(231, 243, 255, 0.97));
}

:root[data-theme='light'] .gh-actions a,
:root[data-theme='light'] .gh-actions button {
  color: #1c466f;
  border-color: rgba(111, 146, 179, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(240, 249, 255, 0.98));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.88);
}

:root[data-theme='light'] .gh-actions a:hover,
:root[data-theme='light'] .gh-actions button:hover,
:root[data-theme='light'] .gh-actions .is-active {
  color: #ffffff;
  border-color: rgba(12, 118, 179, 0.55);
  background: linear-gradient(180deg, rgba(13, 91, 148, 0.88), rgba(10, 77, 126, 0.9));
}

:root[data-theme='light'] .gh-actions button[data-theme-toggle] {
  color: rgba(28, 70, 111, 0.8);
  border-color: rgba(111, 146, 179, 0.36);
  background: linear-gradient(180deg, rgba(248, 252, 255, 0.9), rgba(239, 247, 255, 0.88));
  box-shadow: none;
}

:root[data-theme='light'] .gh-actions button[data-theme-toggle]:hover,
:root[data-theme='light'] .gh-actions button[data-theme-toggle]:focus-visible {
  color: #1c466f;
  border-color: rgba(111, 146, 179, 0.5);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(243, 250, 255, 0.94));
  transform: none;
}

@media (max-width: 760px) {
  .global-header {
    flex-direction: column;
    align-items: stretch;
  }

  .gh-actions {
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-left: 0;
    padding: 7px;
  }

  .gh-actions a,
  .gh-actions button {
    flex: 1 1 calc(50% - 8px);
    text-align: center;
  }
}
