:root {
  --bg: #07111f;
  --bg-deep: #040a12;
  --panel: rgba(13, 27, 44, 0.92);
  --panel-2: rgba(16, 35, 56, 0.9);
  --line: rgba(150, 185, 220, 0.14);
  --line-strong: rgba(150, 185, 220, 0.28);
  --text: #eaf3ff;
  --muted: #8ea6bf;
  --faint: #5f7892;
  --cyan: #38d5ff;
  --cyan-2: #2eaee6;
  --green: #2ee6a8;
  --red: #ff6b7a;
  --amber: #ffc857;
  --shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  --radius: 16px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  min-width: 320px;
  background: var(--bg-deep);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 0%, rgba(56, 213, 255, 0.12), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(46, 230, 168, 0.08), transparent 24rem),
    linear-gradient(180deg, #081423 0%, var(--bg) 42%, var(--bg-deep) 100%);
  background-attachment: fixed;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid rgba(56, 213, 255, 0.8);
  outline-offset: 2px;
}

.app-shell {
  width: min(1620px, calc(100% - 28px));
  margin: 0 auto;
  padding: 18px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 12px 4px 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  flex: 0 0 auto;
  border: 1px solid rgba(56, 213, 255, 0.48);
  border-radius: 15px;
  color: #04111d;
  font-size: 22px;
  font-weight: 900;
  background: linear-gradient(135deg, var(--cyan), #a8f0ff);
  box-shadow: 0 0 28px rgba(56, 213, 255, 0.28);
}

.eyebrow,
.panel-kicker {
  color: var(--cyan);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.brand h1 {
  margin: 3px 0 2px;
  font-size: clamp(20px, 2vw, 28px);
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.brand p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: 0 0 auto;
}

.source-status {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: #b9cee3;
  background: rgba(10, 23, 38, 0.68);
  font-size: 12px;
  white-space: nowrap;
}

.source-chip i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 200, 87, 0.56);
}

.source-chip.live i {
  background: var(--green);
  box-shadow: 0 0 10px rgba(46, 230, 168, 0.68);
}

.clock {
  min-width: 88px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
  font-size: 17px;
  font-weight: 700;
  text-align: right;
}

.notice {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 200, 87, 0.22);
  border-radius: 12px;
  color: #d8e6f6;
  background: linear-gradient(90deg, rgba(255, 200, 87, 0.09), rgba(255, 200, 87, 0.025));
  font-size: 12.5px;
  line-height: 1.6;
}

.notice strong {
  color: var(--amber);
}

.status-banner {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  border-radius: 12px;
  color: #ffd7dc;
  background: rgba(255, 107, 122, 0.1);
  font-size: 12.5px;
  line-height: 1.6;
}
.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 16px;
  align-items: start;
}

.main-column,
.side-column {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.side-column {
  position: sticky;
  top: 14px;
}

.panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(20, 43, 68, 0.28), rgba(8, 18, 31, 0.14)),
    var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--line);
}

.panel-header.compact {
  padding: 15px 17px 11px;
}

.panel-header h2 {
  margin: 4px 0 0;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.metric-card {
  position: relative;
  overflow: hidden;
  min-height: 104px;
  padding: 14px 14px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(150deg, rgba(18, 38, 61, 0.94), rgba(8, 19, 33, 0.86));
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.metric-card::after {
  position: absolute;
  right: -24px;
  bottom: -32px;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(56, 213, 255, 0.08);
  content: "";
}

.metric-card.accent-green::after {
  background: rgba(46, 230, 168, 0.09);
}

.metric-card.accent-red::after {
  background: rgba(255, 107, 122, 0.09);
}

.metric-label {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 11px;
}

.metric-value {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  font-size: clamp(20px, 2.15vw, 30px);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.04em;
  line-height: 1;
}

.metric-value.small {
  font-size: clamp(18px, 1.8vw, 24px);
}

.metric-sub {
  position: relative;
  z-index: 1;
  margin-top: 9px;
  color: var(--faint);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.positive {
  color: var(--red) !important;
}

.negative {
  color: var(--green) !important;
}

.neutral {
  color: var(--text) !important;
}

.chart-panel {
  overflow: hidden;
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(46, 230, 168, 0.35);
  border-radius: 999px;
  color: var(--green);
  background: rgba(46, 230, 168, 0.08);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(46, 230, 168, 0.8);
  animation: live-pulse 1.4s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}
.timeframe-switch {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(4, 12, 22, 0.5);
}

.timeframe-switch button {
  min-width: 43px;
  padding: 7px 9px;
  border: 0;
  border-radius: 7px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.timeframe-switch button:hover {
  color: var(--text);
}

.timeframe-switch button.active {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #a7eeff);
  box-shadow: 0 0 14px rgba(56, 213, 255, 0.2);
  font-weight: 800;
}

.chart-area {
  height: 340px;
  padding: 10px 10px 0;
}

#priceChart {
  display: block;
  width: 100%;
  height: 100%;
}

.chart-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 15px;
  padding: 0 18px 14px;
  color: var(--muted);
  font-size: 11px;
}

.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.chart-note {
  margin-left: auto;
  color: var(--faint);
}

.legend-line {
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: var(--cyan);
  box-shadow: 0 0 8px rgba(56, 213, 255, 0.5);
}

.legend-bar {
  width: 8px;
  height: 9px;
  border-radius: 2px;
}

.legend-bar.up {
  background: var(--red);
}

.legend-bar.down {
  background: var(--green);
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.8fr);
  gap: 16px;
}

.panel-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-note {
  color: var(--faint);
  font-size: 10px;
  white-space: nowrap;
}

.table-link {
  color: var(--cyan);
  font-size: 11px;
  text-decoration: none;
}

.table-link:hover {
  text-decoration: underline;
}
.ghost-button {
  padding: 8px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 9px;
  color: #bcd1e7;
  background: rgba(10, 25, 42, 0.65);
  font-size: 12px;
  transition: border-color 160ms ease, color 160ms ease, background 160ms ease;
}

.ghost-button:hover {
  border-color: rgba(56, 213, 255, 0.62);
  color: var(--text);
  background: rgba(56, 213, 255, 0.08);
}

.table-wrap {
  overflow-x: auto;
  padding: 4px 9px 10px;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  white-space: nowrap;
}

th {
  padding: 9px 8px;
  color: var(--faint);
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  letter-spacing: 0.04em;
}

td {
  padding: 10px 8px;
  border-top: 1px solid rgba(150, 185, 220, 0.08);
  color: #d4e3f3;
  font-variant-numeric: tabular-nums;
}

td.muted {
  color: var(--muted);
}

.status-tag {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--amber);
  background: rgba(255, 200, 87, 0.11);
  font-size: 10px;
}

.status-tag.strong {
  color: var(--red);
  background: rgba(255, 107, 122, 0.12);
}

.status-tag.weak {
  color: var(--green);
  background: rgba(46, 230, 168, 0.1);
}

.board-note {
  color: var(--cyan);
  font-size: 11px;
  white-space: nowrap;
}

.main-row td {
  background: rgba(56, 213, 255, 0.04);
}

.main-row td:first-child {
  color: var(--cyan);
  font-weight: 800;
}

.tag-main,
.tag-second {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.tag-main {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), #a7eeff);
}

.tag-second {
  color: var(--amber);
  background: rgba(255, 200, 87, 0.12);
}
.curve-list {
  display: grid;
  gap: 12px;
  padding: 14px 17px 17px;
}

.curve-row {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 78px;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

.curve-name {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.curve-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(150, 185, 220, 0.1);
}

.curve-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan-2), var(--cyan));
  box-shadow: 0 0 12px rgba(56, 213, 255, 0.18);
}

.curve-price {
  color: #dceafb;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.settings-panel {
  padding-bottom: 14px;
}

.field {
  display: grid;
  gap: 8px;
  margin: 14px 17px 0;
  color: var(--muted);
  font-size: 12px;
}

.input-with-suffix {
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: rgba(4, 12, 22, 0.5);
}

.input-with-suffix input {
  min-width: 0;
  width: 100%;
  padding: 10px 11px;
  border: 0;
  outline: 0;
  color: var(--text);
  background: transparent;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
}

.input-with-suffix span {
  padding: 0 11px;
  color: var(--faint);
  white-space: nowrap;
}

select {
  width: 100%;
  padding: 10px 11px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text);
  background: #0a192b;
  outline: 0;
}

.toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 17px 0;
  color: var(--muted);
  font-size: 12px;
}

input[type="checkbox"] {
  width: 38px;
  height: 21px;
  accent-color: var(--cyan);
}

.settings-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 15px 17px 0;
}

.alert-panel {
  overflow: hidden;
}

.alert-count {
  display: grid;
  place-items: center;
  min-width: 32px;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  color: #04111d;
  background: var(--amber);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.alert-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
}

.alert-summary div {
  padding: 8px 9px;
  border-radius: 9px;
  background: rgba(4, 12, 22, 0.42);
}

.alert-summary span {
  display: block;
  color: var(--faint);
  font-size: 10px;
}

.alert-summary strong {
  display: block;
  margin-top: 4px;
  color: #d9e8f8;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.alert-list {
  max-height: 480px;
  overflow: auto;
  padding: 10px;
}

.alert-list::-webkit-scrollbar,
.table-wrap::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

.alert-list::-webkit-scrollbar-thumb,
.table-wrap::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(142, 166, 191, 0.22);
}

.empty-state {
  padding: 31px 10px;
  color: var(--faint);
  font-size: 12px;
  text-align: center;
}

.alert-item {
  position: relative;
  margin-bottom: 8px;
  padding: 11px 11px 10px 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(7, 18, 31, 0.72);
  animation: alert-in 260ms ease both;
}

.alert-item::before {
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  width: 3px;
  background: var(--amber);
  content: "";
}

.alert-item.buy::before {
  background: var(--red);
}

.alert-item.sell::before {
  background: var(--green);
}

.alert-time {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.alert-window {
  padding: 3px 6px;
  border-radius: 999px;
  color: var(--muted);
  background: rgba(142, 166, 191, 0.1);
}

.alert-main {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-top: 7px;
}

.alert-main strong {
  color: var(--amber);
  font-size: 18px;
  font-variant-numeric: tabular-nums;
}

.alert-main span {
  color: #c8dbef;
  font-size: 12px;
}

.side-badge {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 26px;
  padding: 0 11px;
  border-radius: 8px;
  color: #04111d !important;
  font-size: 13px !important;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.side-badge.buy {
  background: linear-gradient(135deg, #ff6b7a, #ff9aa5);
  box-shadow: 0 0 16px rgba(255, 107, 122, 0.32);
}

.side-badge.unknown {
  background: linear-gradient(135deg, #6f8499, #a3b6c9);
  box-shadow: 0 0 16px rgba(142, 166, 191, 0.22);
}

.alert-item.unknown::before {
  background: #8ea6bf;
}

.side-badge.sell {
  background: linear-gradient(135deg, #2ee6a8, #84f1cf);
  box-shadow: 0 0 16px rgba(46, 230, 168, 0.26);
}

.alert-meta {
  margin-top: 6px;
  color: var(--muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.announcement-panel {
  overflow: hidden;
}

.announcement-note {
  padding: 10px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--faint);
  font-size: 10.5px;
  line-height: 1.55;
}

.announcement-list {
  max-height: 430px;
  overflow: auto;
}

.announcement-list::-webkit-scrollbar {
  width: 8px;
}

.announcement-list::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(142, 166, 191, 0.22);
}

.announcement-item {
  padding: 13px 15px;
  border-bottom: 1px solid rgba(150, 185, 220, 0.08);
}

.announcement-item:last-child {
  border-bottom: 0;
}

.announcement-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--faint);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
}

.announcement-item h3 {
  margin: 7px 0 5px;
  color: #dceafb;
  font-size: 13px;
  line-height: 1.45;
}

.announcement-item p {
  margin: 0 0 9px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.5;
}

.announcement-item.is-new {
  background: rgba(255, 200, 87, 0.035);
}

.new-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 2px 5px;
  border-radius: 4px;
  color: #04111d;
  background: var(--amber);
  font-size: 9px;
  font-weight: 900;
  vertical-align: middle;
}
.original-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid rgba(56, 213, 255, 0.3);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(56, 213, 255, 0.06);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  transition: border-color 160ms ease, background 160ms ease;
}

.original-link:hover {
  border-color: rgba(56, 213, 255, 0.68);
  background: rgba(56, 213, 255, 0.12);
}
.interpretation {
  padding: 16px 17px 17px;
}

.interpretation h2 {
  margin: 5px 0 10px;
  font-size: 16px;
}

.interpretation p,
.interpretation li {
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
}

.interpretation p {
  margin: 0;
}

.interpretation strong {
  color: #d8e8f8;
}

.interpretation ul {
  margin: 11px 0 0;
  padding-left: 17px;
}

@keyframes alert-in {
  from {
    opacity: 0;
    transform: translateY(-7px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1280px) {
  .status-banner {
  margin-bottom: 16px;
  padding: 11px 14px;
  border: 1px solid rgba(255, 107, 122, 0.35);
  border-radius: 12px;
  color: #ffd7dc;
  background: rgba(255, 107, 122, 0.1);
  font-size: 12.5px;
  line-height: 1.6;
}
.dashboard {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  border: 1px solid rgba(46, 230, 168, 0.35);
  border-radius: 999px;
  color: var(--green);
  background: rgba(46, 230, 168, 0.08);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.live-badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px rgba(46, 230, 168, 0.8);
  animation: live-pulse 1.4s infinite;
}

@keyframes live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.75); }
}

section[id] {
  scroll-margin-top: 14px;
}

.mobile-nav {
  display: none;
}

@media (max-width: 980px) {
  .dashboard,
  .two-column {
    grid-template-columns: 1fr;
  }

  .side-column {
    position: static;
    grid-row: 2;
  }

  .alert-list {
    max-height: 420px;
  }
}

@media (max-width: 720px) {
  body {
    padding-bottom: 78px;
  }

  .app-shell {
    width: 100%;
    padding: 8px 8px 0;
  }

  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
    padding: 8px 2px 13px;
  }

  .brand {
    gap: 10px;
  }

  .brand h1 {
    font-size: 19px;
  }

  .brand p {
    display: none;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    gap: 8px;
  }

  .source-status {
    flex: 1;
    overflow-x: auto;
    justify-content: flex-start;
    padding-bottom: 2px;
  }

  .source-chip {
    flex: 0 0 auto;
    padding: 6px 8px;
    font-size: 10px;
  }

  .clock {
    min-width: auto;
    font-size: 14px;
  }

  .notice {
    margin-bottom: 12px;
    padding: 9px 10px;
    font-size: 11.5px;
    line-height: 1.55;
  }

  .dashboard {
    gap: 10px;
  }

  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  .metric-card {
    min-height: 88px;
    padding: 12px 11px;
  }

  .metric-value {
    font-size: 21px;
  }

  .metric-value.small {
    font-size: 18px;
  }

  .metric-sub {
    font-size: 10px;
  }

  .panel {
    border-radius: 13px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 13px 12px 10px;
    gap: 8px;
  }

  .panel-header h2 {
    font-size: 14px;
  }

  .panel-kicker {
    font-size: 9px;
  }

  .chart-area {
    height: 240px;
    padding: 6px 6px 0;
  }

  .chart-legend {
    gap: 10px;
    padding: 0 12px 12px;
    font-size: 10px;
  }

  .chart-note {
    width: 100%;
    margin-left: 0;
  }

  .table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  table {
    min-width: 680px;
  }

  .two-column {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .side-column {
    position: static;
  }

  .alert-list,
  .announcement-list {
    max-height: 380px;
  }

  .settings-actions {
    grid-template-columns: 1fr 1fr;
  }

  .mobile-nav {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 100;
    justify-content: space-around;
    padding: 7px 6px calc(7px + env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(5, 13, 24, 0.97);
    backdrop-filter: blur(14px);
  }

  .mobile-nav a {
    flex: 1;
    padding: 7px 2px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 11px;
    text-align: center;
    text-decoration: none;
  }

  .mobile-nav a.active {
    color: var(--cyan);
    background: rgba(56, 213, 255, 0.09);
    font-weight: 800;
  }
}

@media (max-width: 430px) {
  .brand-mark {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    font-size: 18px;
  }

  .brand h1 {
    font-size: 17px;
  }

  .topbar-right {
    flex-wrap: wrap;
  }

  .metric-grid {
    gap: 6px;
  }

  .metric-card {
    min-height: 82px;
    padding: 10px;
  }

  .metric-value {
    font-size: 19px;
  }

  .metric-value.small {
    font-size: 17px;
  }

  .chart-area {
    height: 210px;
  }

  .mobile-nav a {
    font-size: 10px;
  }
}

