:root {
  color-scheme: light;
  --ink: #12221c;
  --muted: #68756f;
  --paper: #f4f2eb;
  --panel: rgba(255, 255, 255, 0.78);
  --solid: #ffffff;
  --line: rgba(18, 34, 28, 0.12);
  --line-strong: rgba(18, 34, 28, 0.2);
  --green: #165f46;
  --green-bright: #2fb381;
  --green-soft: #e4f3ec;
  --amber: #c47a2c;
  --amber-soft: #fff1da;
  --red: #bd4b3f;
  --red-soft: #fae8e5;
  --blue: #3e6d8f;
  --blue-soft: #e9f2f8;
  --shadow: 0 22px 60px rgba(30, 49, 41, 0.08);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 11px;
  font-family:
    Inter, "SF Pro Display", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 5%, rgba(85, 160, 126, 0.11), transparent 28rem),
    linear-gradient(180deg, #f7f6f1 0%, var(--paper) 60%, #efeee8 100%);
  min-height: 100vh;
  font-size: 16px;
  line-height: 1.6;
}

body.drawer-open {
  overflow: hidden;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  color: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 26rem;
  height: 26rem;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
  opacity: 0.32;
}

.ambient-one {
  left: -12rem;
  top: 30rem;
  background: #a8d3be;
}

.ambient-two {
  right: -13rem;
  top: 8rem;
  background: #efc992;
}

.topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 82px;
  padding: 0 max(32px, calc((100vw - 1560px) / 2));
  border-bottom: 1px solid rgba(18, 34, 28, 0.09);
  background: rgba(247, 246, 241, 0.82);
  backdrop-filter: blur(20px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  width: 44px;
  height: 44px;
  padding: 10px;
  border-radius: 12px;
  background: var(--ink);
  box-shadow: 0 8px 20px rgba(18, 34, 28, 0.19);
}

.brand-mark span {
  width: 4px;
  border-radius: 4px;
  background: #d4f1e2;
}

.brand-mark span:nth-child(1) { height: 10px; }
.brand-mark span:nth-child(2) { height: 18px; background: #73d2a9; }
.brand-mark span:nth-child(3) { height: 14px; }

.brand strong,
.brand small {
  display: block;
}

.brand strong {
  font-size: 18px;
  letter-spacing: 0.02em;
}

.brand small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.service-state {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
}

.state-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a5aea9;
  box-shadow: 0 0 0 4px rgba(165, 174, 169, 0.13);
}

.service-state.online .state-dot {
  background: var(--green-bright);
  box-shadow: 0 0 0 4px rgba(47, 179, 129, 0.13);
}

.service-state.error .state-dot {
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(189, 75, 63, 0.12);
}

.icon-button,
.drawer-close {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: 160ms ease;
}

.icon-button:hover,
.drawer-close:hover {
  border-color: var(--line-strong);
  background: var(--solid);
  transform: translateY(-1px);
}

.icon-button.loading svg {
  animation: spin 800ms linear infinite;
}

.icon-button svg,
.drawer-close svg {
  width: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-width: 1.8;
}

.docs-link {
  padding: 11px 16px;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  transition: 160ms ease;
}

.docs-link:hover {
  background: var(--green);
}

.page-shell {
  width: min(1560px, calc(100% - 64px));
  margin: 0 auto;
  padding: 54px 0 96px;
}

.hero {
  margin-bottom: 38px;
}

.hero-copy {
  max-width: none;
}

.result-kicker,
.section-heading small,
.filter-panel-heading small,
.drawer-brand {
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.drawer-brand span {
  width: 22px;
  height: 2px;
  background: var(--green-bright);
}

.hero-copy p {
  max-width: 1460px;
  margin: 0;
  color: #53645d;
  font-size: clamp(21px, 1.45vw, 27px);
  font-weight: 500;
  letter-spacing: 0.005em;
  line-height: 1.65;
  overflow-wrap: anywhere;
  text-wrap: pretty;
}

.today-summary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 22px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.today-summary-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.today-exchange-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.today-summary-loading {
  color: #8b9690;
  font-size: 13px;
}

.today-exchange-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 7px 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font-size: 13px;
  transition: 150ms ease;
}

.today-exchange-link strong {
  color: var(--ink);
  font-size: 13px;
}

.today-exchange-link span {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
}

.today-exchange-link:hover,
.today-exchange-link.active {
  border-color: rgba(22, 95, 70, 0.18);
  background: var(--green-soft);
  color: var(--green);
}

.workspace {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.filter-panel {
  position: sticky;
  top: 102px;
  max-height: calc(100vh - 126px);
  padding: 26px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.68);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  scrollbar-width: thin;
}

.filter-panel-heading,
.results-toolbar,
.section-heading,
.source-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-panel-heading h2,
.results-toolbar h2,
.section-heading h2 {
  margin: 4px 0 0;
}

.filter-panel-heading h2 {
  font-size: 22px;
}

.text-button {
  padding: 4px;
  border: 0;
  background: transparent;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  height: 50px;
  margin: 22px 0 26px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: rgba(247, 246, 241, 0.72);
  transition: 160ms ease;
}

.search-box:focus-within {
  border-color: rgba(22, 95, 70, 0.42);
  box-shadow: 0 0 0 3px rgba(47, 179, 129, 0.09);
  background: #fff;
}

.search-box svg {
  flex: 0 0 auto;
  width: 17px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.8;
}

.search-box input {
  min-width: 0;
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: 14px;
}

.search-box input::placeholder {
  color: #9ca49f;
}

.search-box kbd {
  padding: 2px 5px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #89928d;
  font-family: inherit;
  font-size: 11px;
}

.filter-group {
  min-width: 0;
  margin: 0 0 28px;
  padding: 0;
  border: 0;
}

.filter-group legend {
  width: 100%;
  margin-bottom: 11px;
  color: #596761;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.exchange-list {
  display: grid;
  gap: 6px;
}

.exchange-option {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: 150ms ease;
}

.exchange-option:hover {
  background: rgba(22, 95, 70, 0.055);
}

.exchange-option.active {
  background: var(--green-soft);
}

.exchange-glyph {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(22, 95, 70, 0.13);
  border-radius: 10px;
  background: #fff;
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}

.exchange-glyph.all {
  font-family: inherit;
  font-size: 14px;
}

.exchange-option strong,
.exchange-option small {
  display: block;
}

.exchange-option strong {
  font-size: 14px;
}

.exchange-option small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.06em;
}

.exchange-source-state {
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgba(22, 95, 70, 0.07);
}

.exchange-source-state i {
  width: 6px;
  height: 6px;
  border: 1px solid #9ba69f;
  border-radius: 50%;
}

.exchange-source-state.ok i,
.exchange-option.active .exchange-source-state i {
  border-color: var(--green);
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 95, 70, 0.12);
}

.exchange-source-state.blocked i,
.exchange-source-state.error i {
  border-color: #b85c4f;
  background: #b85c4f;
}

.exchange-source-state.degraded i {
  border-color: #b9792d;
  background: #b9792d;
}

.segment-control {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #efeee8;
}

.segment-control button {
  padding: 9px 2px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  cursor: pointer;
}

.segment-control button.active {
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 2px 8px rgba(18, 34, 28, 0.08);
}

.select-control {
  width: 100%;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: 0;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
}

.source-health-card {
  padding: 17px;
  border-radius: 13px;
  background: var(--ink);
  color: #fff;
}

.source-health-head {
  font-size: 13px;
  font-weight: 800;
}

.source-health-head a {
  color: #95dabd;
  font-size: 12px;
}

.source-health-track {
  height: 4px;
  margin: 13px 0 10px;
  overflow: hidden;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.13);
}

.source-health-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: 4px;
  background: #60c99e;
  transition: width 500ms ease;
}

.source-health-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.64);
  font-size: 12px;
  line-height: 1.55;
}

.results-panel {
  min-width: 0;
  padding: 28px 30px 36px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: -4px -2px 28px;
  padding: 4px 2px 0;
  overflow: visible;
}

.category-chip {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 15px 0 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.6);
  color: #4e5d56;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: 150ms ease;
}

.category-chip:hover {
  border-color: var(--line-strong);
  background: #fff;
}

.category-chip.active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.category-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(22, 95, 70, 0.09);
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 11px;
}

.category-chip.active .category-icon {
  background: rgba(255, 255, 255, 0.12);
  color: #a7e4c8;
}

.results-toolbar {
  gap: 24px;
  margin-bottom: 16px;
}

.results-toolbar h2 {
  font-family: "Songti SC", SimSun, serif;
  font-size: 34px;
}

.results-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--muted);
  font-size: 13px;
}

.divider {
  width: 1px;
  height: 12px;
  background: var(--line-strong);
}

.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 0;
  margin-bottom: 22px;
}

.active-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 7px;
  background: var(--green-soft);
  color: var(--green);
  font-size: 12px;
  font-weight: 700;
}

.active-filter button {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.notice-list {
  display: grid;
  gap: 14px;
}

.notice-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 190px;
  gap: 20px;
  align-items: stretch;
  padding: 24px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.74);
  transition: 180ms ease;
}

.notice-card::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: transparent;
  content: "";
}

.notice-card[data-impact="HIGH"]::before { background: var(--red); }
.notice-card[data-impact="MEDIUM"]::before { background: var(--amber); }
.notice-card[data-impact="LOW"]::before { background: var(--blue); }

.notice-card:hover {
  border-color: rgba(22, 95, 70, 0.22);
  background: #fff;
  box-shadow: 0 15px 32px rgba(26, 50, 40, 0.075);
  transform: translateY(-2px);
}

.notice-exchange {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 72px;
  border-radius: 12px;
  background: #f1f4f0;
  color: var(--green);
}

.notice-exchange strong {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
}

.notice-exchange small {
  color: #7d8a84;
  font-size: 10px;
}

.notice-main {
  min-width: 0;
}

.notice-badges,
.scope-tags,
.drawer-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 25px;
  padding: 0 8px;
  border-radius: 6px;
  background: #eef2ef;
  color: #65716c;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.badge.high { background: var(--red-soft); color: var(--red); }
.badge.medium { background: var(--amber-soft); color: #9a5b18; }
.badge.low { background: var(--blue-soft); color: var(--blue); }
.badge.demo { background: #eee9f8; color: #72559b; }

.notice-main h3 {
  margin: 12px 0 8px;
  font-size: 19px;
  line-height: 1.5;
  text-wrap: pretty;
}

.notice-main h3 button {
  padding: 0;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.notice-main h3 button:hover {
  color: var(--green);
}

.notice-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.scope-tags {
  margin-top: 14px;
}

.scope-tag {
  padding: 5px 8px;
  border: 1px solid rgba(22, 95, 70, 0.1);
  border-radius: 6px;
  background: rgba(228, 243, 236, 0.7);
  color: var(--green);
  font-family: ui-monospace, Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
}

.notice-aside {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-left: 22px;
  border-left: 1px solid var(--line);
}

.notice-time {
  display: grid;
  gap: 8px;
}

.time-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}

.time-row span { color: var(--muted); }
.time-row strong { font-weight: 700; text-align: right; }

.notice-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 15px;
}

.notice-actions a,
.notice-actions button {
  padding: 9px;
  border: 0;
  border-radius: 8px;
  background: #eff2ef;
  color: #53615b;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
}

.notice-actions button {
  background: var(--ink);
  color: #fff;
}

.empty-state,
.error-state {
  padding: 70px 24px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-md);
  text-align: center;
}

.empty-state strong,
.error-state strong {
  display: block;
  margin-bottom: 8px;
  font-family: "Songti SC", SimSun, serif;
  font-size: 26px;
}

.empty-state p,
.error-state p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.empty-state button,
.error-state button {
  margin-top: 18px;
  padding: 9px 14px;
  border: 0;
  border-radius: 9px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.skeleton-card {
  height: 196px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.7), transparent),
    #eeeee9;
  background-size: 220px 100%, 100% 100%;
  animation: shimmer 1.4s infinite linear;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  margin-top: 18px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--green);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.load-more svg {
  width: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.source-status-section {
  margin-top: 50px;
  padding-top: 36px;
  border-top: 1px solid var(--line);
}

.section-heading {
  gap: 24px;
  margin-bottom: 22px;
}

.section-heading h2 {
  font-family: "Songti SC", SimSun, serif;
  font-size: 27px;
}

.section-heading p {
  max-width: 330px;
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  text-align: right;
}

.source-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.source-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.55);
}

.source-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.source-card strong {
  font-size: 14px;
}

.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 7px;
  border-radius: 999px;
  background: #ecefeb;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  font-weight: 800;
}

.status-badge::before {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  content: "";
}

.status-badge.ok { background: var(--green-soft); color: var(--green); }
.status-badge.error,
.status-badge.blocked { background: var(--red-soft); color: var(--red); }
.status-badge.degraded { background: var(--amber-soft); color: #9a5b18; }

.source-card p {
  display: -webkit-box;
  min-height: 38px;
  margin: 12px 0 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.mobile-filter-button {
  display: none;
}

.drawer-backdrop {
  position: fixed;
  z-index: 60;
  inset: 0;
  background: rgba(10, 20, 16, 0.32);
  backdrop-filter: blur(4px);
}

.detail-drawer {
  position: fixed;
  z-index: 70;
  top: 0;
  right: 0;
  width: min(680px, 96vw);
  height: 100vh;
  overflow: hidden;
  background: #f8f7f2;
  box-shadow: -24px 0 80px rgba(16, 34, 27, 0.2);
  transform: translateX(105%);
  transition: transform 260ms cubic-bezier(0.25, 0.9, 0.35, 1);
}

.detail-drawer.open {
  transform: translateX(0);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 78px;
  padding: 0 30px;
  border-bottom: 1px solid var(--line);
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 8px;
}

.drawer-content {
  height: calc(100vh - 78px);
  padding: 34px 32px 64px;
  overflow-y: auto;
}

.drawer-exchange {
  color: var(--green);
  font-family: ui-monospace, monospace;
  font-size: 13px;
  font-weight: 800;
}

.drawer-title {
  margin: 12px 0 17px;
  font-family: "Songti SC", SimSun, serif;
  font-size: clamp(30px, 4vw, 40px);
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.drawer-summary {
  margin: 24px 0 0;
  padding: 20px;
  border-left: 3px solid var(--green-bright);
  border-radius: 0 11px 11px 0;
  background: var(--green-soft);
  color: #345348;
  font-size: 15px;
  line-height: 1.75;
}

.drawer-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 24px;
}

.drawer-meta-item {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.drawer-meta-item span,
.drawer-meta-item strong {
  display: block;
}

.drawer-meta-item span {
  color: var(--muted);
  font-size: 12px;
}

.drawer-meta-item strong {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.45;
}

.drawer-section {
  margin-top: 29px;
}

.drawer-section h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-size: 16px;
}

.drawer-section h3::before {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green-bright);
  content: "";
}

.scope-table,
.parameter-table {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.58);
}

.table-row {
  display: grid;
  gap: 10px;
  align-items: start;
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}

.table-row:last-child { border-bottom: 0; }
.scope-table .table-row { grid-template-columns: 88px 1fr 92px; }
.parameter-table .table-row { grid-template-columns: 115px 1fr; }

.table-label {
  color: var(--muted);
}

.table-value {
  font-weight: 700;
  line-height: 1.5;
}

.evidence {
  grid-column: 1 / -1;
  margin-top: 2px;
  padding: 9px;
  border-radius: 7px;
  background: #efeee8;
  color: #617069;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.6;
}

.drawer-footer {
  display: flex;
  gap: 8px;
  margin-top: 30px;
}

.drawer-footer a {
  flex: 1;
  padding: 12px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-align: center;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: 360px;
  padding: 11px 14px;
  border-radius: 10px;
  background: var(--ink);
  color: #fff;
  box-shadow: 0 14px 40px rgba(18, 34, 28, 0.24);
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transform: translateY(12px);
  transition: 180ms ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@keyframes shimmer {
  from { background-position: -220px 0, 0 0; }
  to { background-position: calc(100% + 220px) 0, 0 0; }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (max-width: 1280px) {
  .page-shell { width: min(100% - 40px, 1220px); }
  .workspace { grid-template-columns: 280px minmax(0, 1fr); }
  .notice-card { grid-template-columns: 60px minmax(0, 1fr); }
  .notice-aside {
    grid-column: 2;
    flex-direction: row;
    gap: 16px;
    align-items: end;
    padding: 12px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }
  .notice-time { flex: 1; grid-template-columns: repeat(2, 1fr); }
  .source-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 1040px) {
  .topbar { padding: 0 20px; }
  .service-state { display: none; }
  .docs-link { display: none; }
  .page-shell { width: calc(100% - 32px); padding-top: 36px; }
  .hero-copy p { font-size: 21px; }
  .today-summary { align-items: flex-start; }
  .category-strip {
    flex-wrap: nowrap;
    margin-right: -14px;
    padding-right: 14px;
    padding-bottom: 7px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .category-strip::-webkit-scrollbar { display: none; }
  .workspace { display: block; }
  .mobile-filter-button {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 10px;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--ink);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
  }
  .mobile-filter-button svg { width: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
  .mobile-filter-button span {
    display: grid;
    place-items: center;
    width: 19px;
    height: 19px;
    margin-left: auto;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.13);
    font-size: 11px;
  }
  .filter-panel {
    position: static;
    display: none;
    max-height: none;
    margin-bottom: 10px;
  }
  .filter-panel.mobile-open { display: block; }
  .results-panel { padding: 22px 18px 28px; }
  .results-toolbar { align-items: end; }
  .notice-card { grid-template-columns: 56px minmax(0, 1fr); padding: 20px; gap: 16px; }
  .notice-exchange { min-height: 56px; }
  .notice-aside { grid-column: 1 / -1; }
  .source-grid { grid-template-columns: 1fr; }
  .section-heading p { display: none; }
}

@media (max-width: 600px) {
  .brand small { display: none; }
  .brand strong { font-size: 16px; }
  .hero { margin-bottom: 30px; }
  .hero-copy p { font-size: 20px; line-height: 1.6; }
  .today-summary { display: block; }
  .today-exchange-links { margin-top: 8px; }
  .results-toolbar { align-items: flex-start; flex-wrap: wrap; }
  .results-meta { width: 100%; }
  .results-meta span:last-child,
  .results-meta .divider { display: none; }
  .notice-card { grid-template-columns: 1fr; }
  .notice-exchange {
    display: inline-flex;
    flex-direction: row;
    justify-self: start;
    min-height: auto;
    padding: 7px 9px;
  }
  .notice-aside { display: block; }
  .notice-time { grid-template-columns: 1fr 1fr; }
  .drawer-content { padding: 24px 18px 50px; }
  .drawer-meta-grid { grid-template-columns: 1fr; }
  .scope-table .table-row { grid-template-columns: 74px 1fr; }
  .scope-table .table-row > :nth-child(3) { grid-column: 2; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
