:root {
  --notice-bg: #f4f6fb;
  --notice-surface: #ffffff;
  --notice-soft: #f8fafc;
  --notice-border: #e2e8f0;
  --notice-text: #0f172a;
  --notice-muted: #64748b;
  --notice-accent: #06b6d4;
  --notice-green: #10b981;
  --notice-red: #f43f5e;
  --notice-amber: #f59e0b;
  --notice-shadow: 0 16px 38px rgba(15, 23, 42, 0.08);
}

.dark {
  --notice-bg: #0b0d17;
  --notice-surface: #15182a;
  --notice-soft: #101321;
  --notice-border: #262b43;
  --notice-text: #eef2ff;
  --notice-muted: #9ca3af;
  --notice-shadow: 0 18px 42px rgba(0, 0, 0, 0.28);
}

body {
  background: var(--notice-bg);
}

.exchange-notice-main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 56px;
  color: var(--notice-text);
}

.exchange-notice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 16px;
}

.exchange-notice-hero > div,
.exchange-notice-toolbar,
.exchange-notice-status,
.exchange-notice-card,
.exchange-notice-detail {
  background: var(--notice-surface);
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  box-shadow: var(--notice-shadow);
}

.exchange-notice-hero > div:first-child {
  padding: 26px;
}

.exchange-notice-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--notice-accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
}

.exchange-notice-hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.14;
  letter-spacing: 0;
}

.exchange-notice-hero p {
  max-width: 780px;
  margin: 0;
  color: var(--notice-muted);
  font-size: 15px;
  line-height: 1.7;
}

.exchange-notice-summary {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 16px;
}

.exchange-notice-summary div {
  display: flex;
  min-height: 78px;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 14px;
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  background: var(--notice-soft);
}

.exchange-notice-summary strong {
  color: var(--notice-text);
  font-size: 22px;
  line-height: 1;
}

.exchange-notice-summary span {
  color: var(--notice-muted);
  font-size: 12px;
}

.exchange-notice-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 14px;
}

.exchange-notice-search {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 14px;
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  background: var(--notice-soft);
}

.exchange-notice-search span {
  color: var(--notice-muted);
  font-size: 12px;
  font-weight: 700;
}

.exchange-notice-search input,
.exchange-notice-toolbar select {
  width: 100%;
  height: 42px;
  color: var(--notice-text);
  background: transparent;
  border: 0;
  outline: 0;
  font-size: 14px;
}

.exchange-notice-toolbar select {
  min-width: 154px;
  padding: 0 12px;
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  background: var(--notice-soft);
}

.exchange-notice-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.exchange-notice-filters button {
  min-height: 36px;
  padding: 0 13px;
  color: var(--notice-muted);
  border: 1px solid var(--notice-border);
  border-radius: 999px;
  background: var(--notice-soft);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.exchange-notice-filters button.active {
  color: #001116;
  border-color: var(--notice-accent);
  background: var(--notice-accent);
}

.exchange-notice-status {
  margin-bottom: 14px;
  padding: 13px 15px;
  color: var(--notice-muted);
  font-size: 13px;
}

.exchange-notice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.exchange-notice-card {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  color: inherit;
  text-decoration: none;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.exchange-notice-card:hover {
  transform: translateY(-2px);
  border-color: rgba(6, 182, 212, 0.6);
}

.exchange-notice-exchange {
  display: flex;
  min-height: 72px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(6, 182, 212, 0.14), rgba(6, 182, 212, 0.05));
  border: 1px solid rgba(6, 182, 212, 0.22);
}

.exchange-notice-exchange b {
  font-size: 13px;
}

.exchange-notice-exchange span {
  color: var(--notice-muted);
  font-size: 11px;
}

.exchange-notice-content {
  min-width: 0;
}

.exchange-notice-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 7px;
  margin-bottom: 8px;
  color: var(--notice-muted);
  font-size: 12px;
}

.exchange-notice-tag {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  color: var(--notice-text);
  background: var(--notice-soft);
  border: 1px solid var(--notice-border);
  font-size: 11px;
  font-weight: 800;
}

.exchange-notice-tag.listing {
  color: #064e3b;
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.38);
}

.exchange-notice-tag.delisting,
.exchange-notice-tag.important {
  color: #7f1d1d;
  background: rgba(244, 63, 94, 0.15);
  border-color: rgba(244, 63, 94, 0.36);
}

.dark .exchange-notice-tag.listing {
  color: #7cf4c2;
}

.dark .exchange-notice-tag.delisting,
.dark .exchange-notice-tag.important {
  color: #ff9eb1;
}

.exchange-notice-card h2 {
  display: -webkit-box;
  min-height: 46px;
  margin: 0 0 8px;
  overflow: hidden;
  color: var(--notice-text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: 0;
}

.exchange-notice-card p {
  display: -webkit-box;
  min-height: 40px;
  margin: 0;
  overflow: hidden;
  color: var(--notice-muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 13px;
  line-height: 1.55;
}

.exchange-notice-detail {
  padding: 24px;
}

.exchange-notice-detail-back {
  display: inline-flex;
  align-items: center;
  margin-bottom: 18px;
  color: var(--notice-accent);
  font-weight: 800;
  text-decoration: none;
}

.exchange-notice-detail h1 {
  margin: 0 0 14px;
  font-size: clamp(24px, 4vw, 38px);
  line-height: 1.24;
  letter-spacing: 0;
}

.exchange-notice-detail-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  color: var(--notice-muted);
  font-size: 13px;
}

.exchange-notice-body {
  padding: 18px;
  border: 1px solid var(--notice-border);
  border-radius: 8px;
  background: var(--notice-soft);
  white-space: pre-wrap;
  color: var(--notice-text);
  font-size: 15px;
  line-height: 1.85;
}

.exchange-notice-source {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  border-radius: 8px;
  color: #001116;
  background: var(--notice-accent);
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
}

.exchange-notice-empty {
  grid-column: 1 / -1;
  padding: 42px 16px;
  text-align: center;
  color: var(--notice-muted);
  background: var(--notice-surface);
  border: 1px solid var(--notice-border);
  border-radius: 8px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 860px) {
  .exchange-notice-main {
    width: min(100% - 24px, 680px);
    padding-top: 18px;
  }

  .exchange-notice-hero,
  .exchange-notice-toolbar,
  .exchange-notice-grid {
    grid-template-columns: 1fr;
  }

  .exchange-notice-toolbar {
    align-items: stretch;
  }

  .exchange-notice-card {
    grid-template-columns: 1fr;
  }

  .exchange-notice-exchange {
    min-height: 48px;
    flex-direction: row;
    justify-content: flex-start;
    padding: 0 12px;
  }
}

@media (max-width: 520px) {
  .exchange-notice-hero > div:first-child,
  .exchange-notice-detail {
    padding: 18px;
  }

  .exchange-notice-summary {
    grid-template-columns: 1fr 1fr;
    padding: 12px;
  }

  .exchange-notice-summary div {
    min-height: 68px;
    padding: 10px;
  }

  .exchange-notice-summary strong {
    font-size: 18px;
  }

  .exchange-notice-filters {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}
