.asn-catalyst-dashboard {
  --asn-cd-ink: #17202a;
  --asn-cd-muted: #667085;
  --asn-cd-line: #d7dde5;
  --asn-cd-paper: #f7f8fb;
  --asn-cd-panel: #ffffff;
  --asn-cd-teal: #0e7c86;
  --asn-cd-green: #1f8a5b;
  --asn-cd-amber: #b97312;
  --asn-cd-red: #bc3d3d;
  --asn-cd-blue: #315fba;
  --asn-cd-shadow: 0 14px 40px rgba(23, 32, 42, 0.08);
  background: var(--asn-cd-paper);
  color: var(--asn-cd-ink);
  display: grid;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  grid-template-columns: 284px minmax(0, 1fr);
  margin: 0 calc(50% - 50vw);
  min-height: 100vh;
  width: 100vw;
}

.asn-catalyst-dashboard *,
.asn-catalyst-dashboard *::before,
.asn-catalyst-dashboard *::after {
  box-sizing: border-box;
}

.asn-catalyst-dashboard button,
.asn-catalyst-dashboard input,
.asn-catalyst-dashboard select,
.asn-catalyst-dashboard textarea {
  font: inherit;
}

.asn-catalyst-dashboard button {
  cursor: pointer;
}

.asn-cd-sidebar {
  background: #101820;
  color: #f5f7fa;
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 18px;
}

.asn-cd-brand {
  align-items: center;
  display: flex;
  gap: 12px;
}

.asn-cd-brand-mark {
  background: #16313a;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 8px;
  display: grid;
  font-weight: 800;
  height: 44px;
  place-items: center;
  width: 44px;
}

.asn-cd-brand h2,
.asn-cd-brand p,
.asn-cd-topbar h1,
.asn-cd-topbar p,
.asn-cd-panel-heading h2,
.asn-cd-detail-panel h2,
.asn-cd-metric-card p,
.asn-cd-metric-card strong {
  margin: 0;
}

.asn-cd-brand h2 {
  color: #fff;
  font-size: 16px;
  line-height: 1.2;
}

.asn-cd-brand p,
.asn-cd-eyebrow {
  color: #9fb2c0;
  font-size: 12px;
}

.asn-cd-track-list {
  display: grid;
  gap: 8px;
}

.asn-cd-track-button {
  align-items: center;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #dfe7ee;
  display: flex;
  justify-content: space-between;
  padding: 11px 12px;
  text-align: left;
  width: 100%;
}

.asn-cd-track-button.active {
  background: #f5f7fa;
  color: #101820;
}

.asn-cd-track-count {
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  display: grid;
  font-size: 12px;
  height: 22px;
  min-width: 28px;
  place-items: center;
}

.asn-cd-track-button.active .asn-cd-track-count {
  background: #dce9ec;
}

.asn-cd-watch-settings {
  color: #dfe7ee;
  display: grid;
  gap: 12px;
  margin-top: auto;
}

.asn-cd-toggle-row {
  align-items: center;
  display: flex;
  font-size: 14px;
  gap: 10px;
}

.asn-cd-workspace {
  align-content: start;
  display: grid;
  gap: 20px;
  min-width: 0;
  padding: 24px;
}

.asn-cd-topbar,
.asn-cd-control-strip,
.asn-cd-panel-heading,
.asn-cd-dialog-header,
.asn-cd-dialog-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
}

.asn-cd-topbar h1 {
  color: var(--asn-cd-ink);
  font-size: 28px;
  letter-spacing: 0;
}

.asn-cd-topbar-actions {
  align-items: end;
  display: flex;
  gap: 10px;
}

.asn-cd-search-box {
  color: var(--asn-cd-muted);
  display: grid;
  font-size: 12px;
  gap: 5px;
}

.asn-cd-search-box input,
.asn-catalyst-dashboard select,
.asn-cd-form-grid input,
.asn-cd-form-grid textarea,
.asn-cd-form-grid select {
  background: var(--asn-cd-panel);
  border: 1px solid var(--asn-cd-line);
  border-radius: 8px;
  color: var(--asn-cd-ink);
  min-height: 40px;
  padding: 9px 11px;
}

.asn-cd-search-box input {
  width: min(34vw, 380px);
}

.asn-cd-icon-button,
.asn-cd-ghost-button,
.asn-cd-control-strip > button,
.asn-cd-save-button,
.asn-cd-segmented button {
  background: var(--asn-cd-panel);
  border: 1px solid var(--asn-cd-line);
  border-radius: 8px;
  color: var(--asn-cd-ink);
  min-height: 40px;
  padding: 0 14px;
}

.asn-cd-control-strip > button,
.asn-cd-save-button {
  background: var(--asn-cd-ink);
  border-color: var(--asn-cd-ink);
  color: #fff;
}

.asn-cd-metric-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.asn-cd-metric-card,
.asn-cd-table-panel,
.asn-cd-detail-panel {
  background: var(--asn-cd-panel);
  border: 1px solid var(--asn-cd-line);
  border-radius: 8px;
  box-shadow: var(--asn-cd-shadow);
}

.asn-cd-metric-card {
  display: grid;
  gap: 8px;
  padding: 16px;
}

.asn-cd-metric-card p {
  color: var(--asn-cd-muted);
  font-size: 13px;
}

.asn-cd-metric-card strong {
  font-size: 28px;
}

.asn-cd-sparkline {
  align-items: end;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(12, 1fr);
  height: 38px;
}

.asn-cd-sparkline span {
  background: var(--asn-cd-teal);
  border-radius: 4px 4px 0 0;
  min-height: 6px;
}

.asn-cd-control-strip {
  flex-wrap: wrap;
}

.asn-cd-segmented {
  background: var(--asn-cd-panel);
  border: 1px solid var(--asn-cd-line);
  border-radius: 8px;
  display: inline-flex;
  overflow: hidden;
}

.asn-cd-segmented button {
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--asn-cd-line);
}

.asn-cd-segmented button:last-child {
  border-right: 0;
}

.asn-cd-segmented button.active {
  background: #dce9ec;
  color: #0f5961;
}

.asn-cd-board-layout {
  align-items: start;
  display: grid;
  gap: 18px;
  grid-template-columns: minmax(0, 1fr) 360px;
}

.asn-cd-table-panel {
  min-width: 0;
  overflow: hidden;
}

.asn-cd-panel-heading {
  border-bottom: 1px solid var(--asn-cd-line);
  padding: 16px 18px;
}

.asn-cd-panel-heading h2 {
  color: var(--asn-cd-ink);
  font-size: 20px;
}

.asn-cd-panel-heading span {
  color: var(--asn-cd-muted);
  font-size: 13px;
}

.asn-cd-table-wrap {
  overflow: auto;
}

.asn-catalyst-dashboard table {
  border-collapse: collapse;
  margin: 0;
  min-width: 860px;
  width: 100%;
}

.asn-catalyst-dashboard th,
.asn-catalyst-dashboard td {
  border-bottom: 1px solid var(--asn-cd-line);
  padding: 13px 14px;
  text-align: left;
  vertical-align: middle;
}

.asn-catalyst-dashboard th {
  background: #fbfcfd;
  color: var(--asn-cd-muted);
  font-size: 12px;
  font-weight: 700;
}

.asn-catalyst-dashboard tbody tr {
  transition: background 160ms ease;
}

.asn-catalyst-dashboard tbody tr:hover,
.asn-catalyst-dashboard tbody tr.selected {
  background: #eef7f8;
}

.asn-cd-ticker {
  font-weight: 800;
  letter-spacing: 0;
}

.asn-cd-pill {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  min-height: 26px;
  padding: 0 9px;
  white-space: nowrap;
}

.asn-cd-pill.fda {
  background: #e1f4ee;
  color: var(--asn-cd-green);
}

.asn-cd-pill.sec {
  background: #e8eefb;
  color: var(--asn-cd-blue);
}

.asn-cd-pill.split,
.asn-cd-pill.risk {
  background: #fdeceb;
  color: var(--asn-cd-red);
}

.asn-cd-pill.pipe,
.asn-cd-pill.volume {
  background: #fff2db;
  color: var(--asn-cd-amber);
}

.asn-cd-pill.uplist,
.asn-cd-pill.insider {
  background: #e4f2f5;
  color: var(--asn-cd-teal);
}

.asn-cd-risk-meter {
  display: grid;
  gap: 6px;
  min-width: 96px;
}

.asn-cd-risk-meter span {
  background: var(--asn-cd-line);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.asn-cd-risk-meter span::before {
  background: var(--risk-color);
  content: "";
  display: block;
  height: 100%;
  width: var(--risk);
}

.asn-cd-risk-meter small {
  color: var(--asn-cd-muted);
}

.asn-cd-detail-panel {
  display: grid;
  gap: 16px;
  padding: 18px;
  position: sticky;
  top: 18px;
}

.asn-cd-detail-title {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.asn-cd-detail-title strong {
  font-size: 24px;
}

.asn-cd-detail-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.asn-cd-detail-stat {
  border: 1px solid var(--asn-cd-line);
  border-radius: 8px;
  padding: 12px;
}

.asn-cd-detail-stat span {
  color: var(--asn-cd-muted);
  display: block;
  font-size: 12px;
  margin-bottom: 5px;
}

.asn-cd-detail-stat strong {
  font-size: 18px;
}

.asn-cd-notes {
  color: #354252;
  line-height: 1.5;
}

.asn-cd-action-links {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr 1fr;
}

.asn-cd-action-links a {
  border: 1px solid var(--asn-cd-line);
  border-radius: 8px;
  color: var(--asn-cd-ink);
  display: grid;
  font-weight: 700;
  min-height: 40px;
  place-items: center;
  text-decoration: none;
}

.asn-catalyst-dashboard dialog {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 24px 80px rgba(16, 24, 32, 0.26);
  padding: 0;
  width: min(680px, calc(100vw - 28px));
}

.asn-catalyst-dashboard dialog::backdrop {
  background: rgba(16, 24, 32, 0.52);
}

.asn-cd-form-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr 1fr;
}

.asn-cd-form-grid label {
  color: var(--asn-cd-muted);
  display: grid;
  font-size: 13px;
  font-weight: 700;
  gap: 6px;
}

.asn-catalyst-dashboard form[data-event-form] {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.asn-cd-span-2 {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) {
  .asn-catalyst-dashboard {
    grid-template-columns: 1fr;
  }

  .asn-cd-track-list {
    grid-template-columns: repeat(4, 1fr);
  }

  .asn-cd-board-layout {
    grid-template-columns: 1fr;
  }

  .asn-cd-detail-panel {
    position: static;
  }
}

@media (max-width: 760px) {
  .asn-cd-workspace,
  .asn-cd-sidebar {
    padding: 16px;
  }

  .asn-cd-topbar,
  .asn-cd-topbar-actions,
  .asn-cd-control-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .asn-cd-search-box input {
    width: 100%;
  }

  .asn-cd-metric-grid,
  .asn-cd-track-list,
  .asn-cd-form-grid {
    grid-template-columns: 1fr;
  }

  .asn-cd-segmented {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }

  .asn-cd-segmented button {
    padding: 0 8px;
  }
}
