:root {
  color-scheme: light;
  --ink: #19212a;
  --muted: #5e6875;
  --subtle: #65707c;
  --line: #d8dfdc;
  --soft-line: #e9eeeb;
  --surface: #fffefb;
  --page: #f3f5f1;
  --nav: #111815;
  --nav-2: #18221e;
  --green: #08745d;
  --blue: #365d8c;
  --amber: #9a6408;
  --red: #b33a3a;
  --teal: #0a766a;
  --shadow: 0 14px 34px rgba(28, 38, 32, 0.055);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: var(--page);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
  -webkit-tap-highlight-color: rgba(0, 125, 132, 0.18);
}

button,
input,
select {
  font: inherit;
}

button,
input,
select {
  touch-action: manipulation;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 20;
  transform: translateY(-160%);
  border-radius: 6px;
  padding: 9px 12px;
  background: var(--ink);
  color: #ffffff;
  text-decoration: none;
}

.skip-link:focus-visible {
  transform: translateY(0);
}

.loading-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(243, 245, 241, 0.96), rgba(243, 245, 241, 0.9)),
    var(--page);
  opacity: 1;
  transition: opacity 180ms ease;
}

.loading-screen.is-hidden {
  pointer-events: none;
  opacity: 0;
}

.loading-card {
  width: min(420px, 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 22px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.loading-brand {
  color: var(--teal);
  font-size: 13px;
  font-weight: 820;
}

.loading-title {
  margin-top: 8px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 780;
}

.loading-bar {
  position: relative;
  height: 3px;
  overflow: hidden;
  margin: 18px 0 14px;
  background: #e6ece8;
}

.loading-bar span {
  position: absolute;
  inset: 0 auto 0 0;
  width: 38%;
  background: var(--teal);
  animation: loading-slide 1.1s ease-in-out infinite;
}

.loading-card p {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.loading-card small {
  color: var(--subtle);
  font-size: 11px;
}

@keyframes loading-slide {
  0% {
    transform: translateX(-110%);
  }
  50% {
    transform: translateX(90%);
  }
  100% {
    transform: translateX(290%);
  }
}

.app-shell {
  display: grid;
  grid-template-columns: 236px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 20px 14px;
  background: linear-gradient(180deg, var(--nav), var(--nav-2));
  color: #f8fbfc;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: #f8fbfc;
  color: #0d1b24;
  font-weight: 800;
  font-size: 18px;
}

.brand-name {
  font-size: 18px;
  font-weight: 760;
  line-height: 1.05;
}

.brand-subtitle {
  margin-top: 4px;
  color: #a9bac5;
  font-size: 10px;
}

.nav-list {
  display: grid;
  gap: 5px;
}

.nav-item {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 36px;
  border: 0;
  border-radius: 6px;
  padding: 0 9px;
  color: #d7e0e6;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.nav-item b,
.nav-item small {
  display: block;
  line-height: 1.15;
}

.nav-item b {
  font-size: 12px;
  font-weight: 720;
}

.nav-item small {
  margin-top: 2px;
  color: #9eb2bf;
  font-size: 9.5px;
}

.nav-item:hover,
.nav-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.nav-icon {
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 5px;
  color: #8fb7c3;
  font-size: 10px;
  font-weight: 800;
}

.sidebar-note {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding: 10px 9px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  color: #cdd9df;
  font-size: 10.5px;
}

.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #42d392;
}

.listing-stage-panel {
  display: grid;
  gap: 7px;
  margin-top: 0;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.listing-stage-title {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  padding: 0 2px;
  color: #eff7f6;
}

.listing-stage-title b,
.listing-stage-title small {
  display: block;
  line-height: 1.1;
}

.listing-stage-title b {
  font-size: 11px;
  font-weight: 760;
}

.listing-stage-title small {
  color: #9eb2bf;
  font-size: 9px;
}

.listing-stage-button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 6px;
  padding: 6px 8px;
  background: rgba(255, 255, 255, 0.04);
  color: #dbe8e8;
  text-align: left;
  cursor: pointer;
}

.listing-stage-button b,
.listing-stage-button small {
  display: block;
  line-height: 1.12;
}

.listing-stage-button b {
  font-size: 11px;
  font-weight: 720;
}

.listing-stage-button small {
  margin-top: 2px;
  color: #9fb5ba;
  font-size: 8.5px;
}

.listing-stage-button strong {
  min-width: 28px;
  color: #ffffff;
  font-size: 12px;
  text-align: right;
}

.listing-stage-button:hover,
.listing-stage-button.is-active {
  border-color: rgba(125, 204, 190, 0.42);
  background: rgba(84, 168, 153, 0.16);
}

.listing-stage-button.muted-stage {
  color: #bdc8c8;
}

.workspace {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px 22px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 16px;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 25px;
  line-height: 1.1;
  text-wrap: balance;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.source-pill {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 11px;
  background: var(--surface);
  color: var(--muted);
  font-size: 11px;
}

.icon-button {
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.icon-button:hover {
  border-color: #b9c4cf;
}

.text-button {
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 12px;
  font-weight: 720;
}

.compact-button {
  padding: 0 13px;
}

.snapshot-meta {
  margin: -7px 0 10px;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.35;
}

.day-mode-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  border: 1px solid #c9ddda;
  border-radius: 8px;
  padding: 8px 10px;
  background: #f7fbfa;
  color: var(--ink);
}

.day-mode-bar[hidden] {
  display: none;
}

.day-mode-bar > span {
  display: grid;
  gap: 1px;
}

.day-mode-bar b {
  font-size: 12px;
}

.day-mode-bar small {
  color: var(--muted);
  font-size: 10px;
}

.day-mode-toggle {
  display: inline-flex;
  border: 1px solid #bfd7d3;
  border-radius: 7px;
  overflow: hidden;
  background: var(--surface);
}

.day-mode-button {
  min-height: 28px;
  border: 0;
  border-right: 1px solid #d7e5e3;
  padding: 0 12px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
}

.day-mode-button:last-child {
  border-right: 0;
}

.day-mode-button.is-active {
  background: var(--teal);
  color: #fff;
}

.view-panel {
  display: none;
}

.view-panel.is-visible {
  display: block;
}

.metrics-grid {
  display: grid;
  grid-auto-columns: minmax(0, 1fr);
  grid-auto-flow: column;
  gap: 7px;
  margin-bottom: 10px;
}

.metric {
  min-height: 68px;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  padding: 9px 10px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.metric-count {
  align-self: stretch;
}

.duration-card {
  position: relative;
  overflow: hidden;
  min-height: 94px;
  border-color: #d2dfdc;
  background:
    repeating-linear-gradient(135deg, rgba(0, 125, 132, 0.055) 0 1px, transparent 1px 16px),
    linear-gradient(90deg, rgba(0, 125, 132, 0.09), rgba(255, 255, 255, 0) 38%),
    var(--surface);
}

.duration-card::before {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--teal);
  content: "";
}

.metric-label {
  color: var(--muted);
  font-size: 12px;
}

.metric-title {
  display: grid;
  gap: 2px;
}

.metric-zh {
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
}

.metric-en {
  color: var(--subtle);
  font-size: 9px;
}

.metric-value {
  margin-top: 6px;
  font-size: 21px;
  font-weight: 780;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.metric-caption {
  margin-top: 5px;
  color: var(--subtle);
  font-size: 10px;
}

.metric-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 5px 8px;
  margin-top: 6px;
}

.metric-stat-grid div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.metric-stat-grid span {
  color: var(--subtle);
  font-size: 8.5px;
}

.metric-stat-grid strong {
  font-size: 11px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

.duration-core span {
  color: var(--muted);
  font-size: 10px;
}

.duration-core strong {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.status-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin-top: 7px;
}

.status-mini span {
  border: 1px solid var(--soft-line);
  border-radius: 999px;
  padding: 2px 6px;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 9px;
}

.tracker-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

.tracker-main,
.detail-pane,
.feature-slab,
.mini-panel {
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 9px;
  border-bottom: 1px solid var(--soft-line);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  width: 42%;
  min-height: 29px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  color: var(--subtle);
  font-size: 12px;
}

.search-box input {
  width: 100%;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.search-box:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 125, 132, 0.14);
}

.segmented {
  display: inline-flex;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f8fafb;
}

.segment {
  min-height: 32px;
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 0;
  border-right: 1px solid var(--line);
  padding: 3px 8px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  line-height: 1.1;
}

.segment small {
  font-size: 8px;
  font-weight: 600;
  opacity: 0.75;
}

.segment:last-child {
  border-right: 0;
}

.segment.is-active {
  background: var(--ink);
  color: #fff;
}

.segment:hover {
  background: #eef4f5;
  color: var(--ink);
}

.segment.is-active:hover {
  background: var(--ink);
  color: #ffffff;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(126px, 1fr));
  gap: 8px 10px;
  align-items: end;
  padding: 10px 12px;
  border-bottom: 1px solid var(--soft-line);
  background: linear-gradient(180deg, #fbfbf8, #f7f9f6);
}

.filter-control {
  display: grid;
  grid-template-rows: auto 28px;
  gap: 4px;
  min-width: 0;
}

.filter-control span {
  display: grid;
  gap: 1px;
  align-content: end;
  min-height: 24px;
  color: var(--muted);
}

.filter-control b {
  color: var(--ink);
  font-size: 9.5px;
  font-weight: 720;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-control small {
  color: var(--subtle);
  font-size: 8px;
  line-height: 1.05;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.filter-control select,
.filter-control input {
  width: 100%;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 8px;
  outline: none;
  background: var(--surface);
  color: var(--ink);
  font-size: 10.5px;
}

.filter-control input::placeholder {
  color: var(--subtle);
}

.sort-button,
.clear-button {
  align-self: end;
  height: 28px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 720;
}

.sort-button:hover,
.clear-button:hover,
.text-button:hover {
  border-color: #b9c4cf;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
a:focus-visible,
tr[role="button"]:focus-visible {
  outline: 3px solid rgba(0, 125, 132, 0.32);
  outline-offset: 2px;
}

.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  max-height: min(78vh, 980px);
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.tracker-table {
  width: 100%;
  min-width: 0;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.tracker-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--surface);
  box-shadow: 0 1px 0 var(--line);
}

.tracker-table th,
.tracker-table td {
  border-bottom: 1px solid var(--soft-line);
  padding: 7px 8px;
  vertical-align: top;
  text-align: left;
  font-size: 10.5px;
  overflow-wrap: anywhere;
}

/* Column widths are class-based (NOT nth-child) so optional columns like the
   All-view listing-date column cannot shift the width map. */
.tracker-table th.col-issuer,
.tracker-table td.issuer-cell {
  width: 126px;
}

.tracker-table th.col-status,
.tracker-table td.status-cell {
  width: 94px;
}

.tracker-table th.col-date,
.tracker-table td.date-cell {
  width: 58px;
}

.tracker-table th.col-listing-date,
.tracker-table td.listing-date-cell {
  width: 64px;
}

.tracker-table th.days-header-cell,
.tracker-table td.days-td {
  width: 142px;
}

.tracker-table th.col-type,
.tracker-table td.type-cell {
  width: 82px;
}

.tracker-table th.col-mcap,
.tracker-table td.mcap-cell {
  width: 92px;
}

.tracker-table th.col-industry,
.tracker-table td.industry-cell {
  width: 86px;
}

.tracker-table th.col-mcap-listing {
  width: 92px;
}

.tracker-table.show-listing-col {
  min-width: 1240px;
}

.tracker-table th {
  color: var(--muted);
  background: #fbfcfd;
  font-size: 10.5px;
  font-weight: 760;
}

.th-sort {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  width: 100%;
  min-height: 30px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.th-sort:hover .th-zh,
.th-sort.is-active .th-zh {
  color: var(--teal);
}

.th-sort .th-zh,
.th-sort .th-en {
  grid-column: 1;
}

.sort-indicator {
  grid-column: 2;
  grid-row: 1 / span 2;
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
}

.th-zh,
.th-en {
  display: block;
  line-height: 1.15;
}

.th-zh {
  color: var(--ink);
  font-size: 10.5px;
}

.th-en {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 8.5px;
  font-weight: 650;
}

.tracker-table tbody tr {
  cursor: pointer;
}

.tracker-table tbody tr:hover,
.tracker-table tbody tr.is-selected,
.tracker-table tbody tr:focus-visible {
  background: #f2f7f7;
}

.issuer-cell strong {
  display: block;
  font-size: 12px;
  line-height: 1.2;
  text-wrap: pretty;
}

.issuer-cell span,
.muted {
  color: var(--muted);
  font-size: 10px;
}

.badge {
  display: inline-grid;
  gap: 1px;
  align-items: center;
  min-height: 21px;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 9.5px;
  font-weight: 700;
}

.badge b,
.badge small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge b,
.badge small {
  display: block;
  line-height: 1.05;
}

.badge small {
  opacity: 1;
  font-size: 8px;
  font-weight: 650;
}

.badge.notice_issued {
  background: #e9f7f2;
  color: var(--green);
}

.badge.regulator_opinion {
  background: #edf7f8;
  color: var(--teal);
}

.badge.supplement_requested {
  background: #fff4df;
  color: var(--amber);
}

.badge.csrc_received {
  background: #eef3fb;
  color: var(--blue);
}

.badge.waiting_received {
  background: #f3f5f1;
  color: #687168;
}

.badge.review_pending,
.badge.pending_match {
  background: #f2f1f7;
  color: #5b557b;
}

.status-stack {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.status-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  max-width: 100%;
  min-width: 0;
}

.status-tag-list span {
  display: inline-flex;
  align-items: center;
  min-height: 17px;
  max-width: 100%;
  border: 1px solid #dcc998;
  border-radius: 999px;
  padding: 0 7px;
  background: #fdf6e0;
  color: #84620b;
  font-size: 8.5px;
  font-weight: 720;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-stack {
  max-width: 100%;
}

.status-tag-list span small {
  margin-left: 4px;
  font-size: 7.5px;
  font-weight: 620;
  opacity: 0.8;
}

.status-tag-list span.listed-tag {
  border-color: #b5d4bf;
  background: #ecf6ee;
  color: #2e6b45;
}

.status-tag-list span.info-tag {
  border-color: #bccbdc;
  background: #eef3f9;
  color: #3a5a7e;
}

.status-tag-list span.pending-listed-tag {
  border-color: #dcc998;
  background: #fdf6e0;
  color: #84620b;
}

.status-tag-list span.inactive-tag {
  border-color: #cfcdd4;
  background: #f2f1f5;
  color: #5f5b68;
}

.status-tag-list span.outlier-tag {
  border-color: #dcc0bd;
  background: #faf0ee;
  color: #8a4a42;
}

.stage-criteria {
  margin: 0 0 12px;
  padding: 12px 16px;
  border: 1px solid #d9d2c4;
  border-left: 4px solid #b08d3e;
  border-radius: 8px;
  background: #faf7ef;
  font-size: 12.5px;
  line-height: 1.65;
  color: #4d4639;
}

.stage-criteria summary {
  width: fit-content;
  cursor: pointer;
  font-size: 13px;
  font-weight: 740;
  color: #6e5a28;
}

.stage-criteria[open] summary {
  margin-bottom: 4px;
}

.stage-criteria p {
  margin: 4px 0 0;
}

.stage-criteria .stage-criteria-en {
  color: #79715f;
  font-size: 11.5px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.tag-list span,
.tag-row span {
  display: inline-block;
  min-height: 18px;
  line-height: 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 7px;
  color: var(--muted);
  background: #fbfcfd;
  font-size: 9.5px;
  white-space: nowrap;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: top;
}

.tag-list span.csrc-cat-tag,
.tag-row span.csrc-cat-tag {
  border-color: #c4d8d6;
  background: #f0f7f6;
  color: #1f6a70;
  font-weight: 700;
}

.days-cell {
  display: grid;
  gap: 4px;
  color: var(--muted);
  font-size: 9.5px;
}

.days-cell div {
  display: grid;
  grid-template-columns: minmax(66px, 1fr) auto;
  align-items: center;
  gap: 6px;
  min-height: 19px;
  border: 1px solid #d5e6e4;
  border-radius: 6px;
  padding: 1px 6px;
  background: #f8fbfa;
}

.days-cell span {
  color: var(--muted);
}

.days-cell-mode {
  width: fit-content;
  border: 1px solid #cfe2df;
  border-radius: 999px;
  padding: 1px 6px;
  color: #2d6768;
  background: #eef7f6;
  font-size: 9px;
  font-weight: 780;
}

.market-cap-value,
.issuer-type-primary,
.not-applicable,
.pending-zh {
  display: block;
  font-weight: 760;
}

.market-cap-value,
.issuer-type-primary {
  color: var(--ink);
}

.not-applicable,
.pending-zh {
  color: var(--muted);
}

.pending-en {
  display: block;
  color: var(--subtle);
  font-size: 8.5px;
}

.days-header-cell {
  min-width: 122px;
}

.days-header-cell .th-sort {
  margin-bottom: 4px;
}

.days-metric-select {
  width: 100%;
  min-height: 24px;
  border: 1px solid #d5e6e4;
  border-radius: 6px;
  padding: 0 20px 0 7px;
  appearance: none;
  background:
    linear-gradient(45deg, transparent 50%, #607277 50%) calc(100% - 12px) 9px / 5px 5px no-repeat,
    linear-gradient(135deg, #607277 50%, transparent 50%) calc(100% - 7px) 9px / 5px 5px no-repeat,
    #f8fbfa;
  color: var(--ink);
  font-size: 10px;
  font-weight: 720;
}

.days-metric-select:focus {
  outline: 2px solid rgba(0, 125, 132, 0.22);
  outline-offset: 1px;
}

.days-cell strong {
  color: var(--ink);
  font-size: 11px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.date-cell,
.market-cap-value {
  font-variant-numeric: tabular-nums;
}

.date-primary,
.date-secondary {
  display: block;
}

.date-secondary {
  margin-top: 2px;
  color: var(--subtle);
  font-size: 8.5px;
}

.detail-pane {
  min-height: 480px;
  padding: 12px;
}

.detail-modal {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: none;
  padding: 24px;
}

.detail-modal.is-open {
  display: grid;
  place-items: center;
}

.detail-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(17, 24, 21, 0.42);
  cursor: pointer;
}

.detail-dialog {
  position: relative;
  z-index: 1;
  width: min(760px, calc(100vw - 28px));
  max-height: min(82vh, 780px);
  overflow: auto;
}

.detail-close {
  position: sticky;
  top: 0;
  float: right;
  z-index: 2;
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 10px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 720;
}

.detail-header {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--soft-line);
}

.detail-header h2 {
  margin-bottom: 5px;
  font-size: 17px;
  line-height: 1.2;
}

.detail-grid {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.detail-item {
  display: grid;
  gap: 4px;
}

.detail-item span {
  color: var(--muted);
  font-size: 10px;
}

.detail-item strong,
.detail-item div {
  font-size: 11px;
}

.timeline {
  display: grid;
  gap: 7px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 8px;
  font-size: 11px;
}

.timeline-row span {
  color: var(--muted);
}

.detail-days {
  display: grid;
  gap: 5px;
}

.detail-days div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border: 1px solid #d5e6e4;
  border-radius: 6px;
  padding: 4px 7px;
  background: #f8fbfa;
}

.detail-days strong {
  font-variant-numeric: tabular-nums;
}

.market-cap-detail {
  margin-top: 4px;
}

.sponsor-detail-list {
  display: grid;
  gap: 5px;
}

.sponsor-detail {
  display: grid;
  gap: 1px;
}

.sponsor-detail strong {
  color: var(--ink);
}

.sponsor-detail span {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.25;
}

.feedback-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}

.feedback-card {
  border: 1px solid var(--soft-line);
  border-radius: 7px;
  padding: 7px;
  background: #fbfcfd;
}

.feedback-card strong {
  font-size: 10.5px;
}

.feedback-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 1.45;
  white-space: pre-line;
}

.feedback-card details summary {
  cursor: pointer;
  margin: 5px 0 0;
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
}

.feedback-card details[open] summary {
  margin-bottom: 2px;
}

.source-list {
  display: grid;
  gap: 5px;
}

.source-list a {
  color: var(--blue);
  text-decoration: none;
}

.source-list a:hover {
  text-decoration: underline;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 40px;
  padding: 8px 11px;
  border-top: 1px solid var(--soft-line);
  background: #fbfcfd;
}

.pagination-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  color: var(--muted);
  font-size: 10.5px;
}

.pagination-copy strong {
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}

.pagination-actions {
  display: flex;
  gap: 6px;
}

.pagination-actions button {
  min-height: 26px;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0 9px;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 10.5px;
}

.pagination-actions button:disabled {
  cursor: not-allowed;
  color: var(--subtle);
  background: #f0f3f5;
}

.coming-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
}

.feature-slab {
  min-height: 340px;
  padding: 20px;
}

.feature-kicker {
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 10px;
  font-weight: 780;
  text-transform: uppercase;
}

.feature-slab h2 {
  font-size: 22px;
}

.feature-slab h2 small {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 11px;
  font-weight: 650;
}

.mock-search {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 96px;
  align-items: center;
  max-width: 720px;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: #fbfcfd;
}

.mock-search input {
  border: 0;
  outline: 0;
  color: var(--ink);
  background: transparent;
}

.mock-search:focus-within {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(0, 125, 132, 0.14);
}

.mock-search button {
  min-height: 30px;
  border: 0;
  border-radius: 6px;
  background: #d7dde3;
  color: #5f6974;
}

.result-skeleton {
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.result-skeleton div,
.dossier-line {
  height: 44px;
  border-radius: 7px;
  background: linear-gradient(90deg, #edf2f4, #f8fafb, #edf2f4);
}

.dossier-preview {
  max-width: 560px;
  margin-top: 20px;
}

.dossier-title {
  margin-bottom: 14px;
  font-weight: 760;
}

.dossier-line.short {
  width: 68%;
  margin-top: 10px;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 12px;
}

.bar-stack {
  display: flex;
  height: 38px;
  overflow: hidden;
  border-radius: 8px;
  background: #edf2f4;
}

.bar-stack span:nth-child(1) {
  background: var(--blue);
}

.bar-stack span:nth-child(2) {
  background: var(--teal);
}

.bar-stack span:nth-child(3) {
  background: var(--amber);
}

.bar-stack span:nth-child(4) {
  background: #7d8790;
}

.research-preview {
  display: grid;
  max-width: 560px;
  gap: 10px;
  margin-top: 24px;
}

.claim-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 0 12px;
}

.pipeline-page {
  display: grid;
  gap: 14px;
}

.pipeline-flow[hidden],
.pipeline-boundaries[hidden] {
  display: none !important;
}

.pipeline-hero,
.pipeline-image-gallery,
.pipeline-flow,
.pipeline-boundaries,
.pipeline-feedback {
  min-width: 0;
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.pipeline-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 20px;
  padding: 20px;
}

.pipeline-hero h2 {
  margin-bottom: 9px;
  font-size: 24px;
  line-height: 1.18;
}

.pipeline-hero h2 small {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 12px;
  font-weight: 650;
}

.pipeline-hero p {
  max-width: 920px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.68;
}

.pipeline-hero-en {
  margin-bottom: 0;
  color: var(--subtle) !important;
  font-size: 12px !important;
}

.pipeline-principles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  align-self: start;
}

.pipeline-principles span {
  min-height: 66px;
  border: 1px solid #d6e4e0;
  border-radius: 8px;
  padding: 10px;
  background: #f8fbfa;
  color: var(--ink);
  font-size: 12px;
  font-weight: 760;
  line-height: 1.35;
}

.pipeline-principles small {
  display: block;
  margin-top: 4px;
  color: var(--subtle);
  font-size: 9.5px;
  font-weight: 650;
}

.pipeline-image-gallery {
  display: grid;
  gap: 14px;
  width: 100%;
  padding: 14px;
}

.pipeline-image-card {
  width: 100%;
  min-width: 0;
  margin: 0;
}

.pipeline-image-card a {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  aspect-ratio: 3 / 2;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-sizing: border-box;
}

.pipeline-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pipeline-image-card figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 2px 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.pipeline-image-card figcaption b {
  flex: 0 0 auto;
  color: var(--ink);
  font-size: 13px;
}

.pipeline-image-card figcaption small {
  color: var(--subtle);
  font-size: 10.5px;
  text-align: right;
}

.pipeline-flow {
  display: grid;
  grid-template-columns: repeat(6, minmax(176px, 1fr));
  gap: 0;
  overflow-x: auto;
  padding: 0;
}

.pipeline-lane {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 184px;
  padding: 14px;
  border-right: 1px solid var(--soft-line);
}

.pipeline-lane:last-child {
  border-right: 0;
}

.pipeline-lane::after {
  position: absolute;
  top: 50%;
  right: -8px;
  z-index: 1;
  width: 16px;
  height: 16px;
  border-top: 2px solid rgba(25, 33, 42, 0.25);
  border-right: 2px solid rgba(25, 33, 42, 0.25);
  transform: translateY(-50%) rotate(45deg);
  content: "";
}

.pipeline-lane:last-child::after {
  display: none;
}

.lane-source {
  background: linear-gradient(180deg, rgba(54, 93, 140, 0.06), rgba(255, 255, 255, 0));
}

.lane-script {
  background: linear-gradient(180deg, rgba(10, 118, 106, 0.06), rgba(255, 255, 255, 0));
}

.lane-curation {
  background: linear-gradient(180deg, rgba(112, 80, 148, 0.07), rgba(255, 255, 255, 0));
}

.lane-timeline {
  background: linear-gradient(180deg, rgba(154, 100, 8, 0.07), rgba(255, 255, 255, 0));
}

.lane-stage {
  background: linear-gradient(180deg, rgba(61, 95, 111, 0.07), rgba(255, 255, 255, 0));
}

.lane-qa {
  background: linear-gradient(180deg, rgba(8, 116, 93, 0.07), rgba(255, 255, 255, 0));
}

.lane-heading {
  display: grid;
  gap: 2px;
  min-height: 42px;
  border-bottom: 1px solid rgba(25, 33, 42, 0.08);
  padding-bottom: 9px;
}

.lane-heading b {
  font-size: 13px;
}

.lane-heading small {
  color: var(--subtle);
  font-size: 9.5px;
}

.flow-node,
.decision-node {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #fffefb;
}

.flow-node {
  display: grid;
  gap: 4px;
  min-height: 86px;
}

.flow-node b {
  padding-left: 28px;
  font-size: 12px;
  line-height: 1.25;
}

.flow-node small {
  color: var(--muted);
  font-size: 9.5px;
  line-height: 1.45;
}

.node-num {
  position: absolute;
  top: 9px;
  left: 9px;
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-size: 8px;
  font-weight: 820;
}

.script-node .node-num {
  background: var(--blue);
}

.source-node .node-num {
  background: var(--red);
}

.rag-node .node-num {
  background: var(--amber);
}

.llm-node .node-num {
  background: #705094;
}

.publish-node .node-num {
  background: var(--green);
}

.stage-node .node-num {
  background: #3d5f6f;
}

.stalled-node .node-num {
  background: #8f4f48;
}

.script-node {
  border-color: #cfddec;
}

.source-node {
  border-color: #edd3d3;
}

.rag-node {
  border-color: #eadfc8;
}

.llm-node,
.llm-decision {
  border-color: #dfd4ec;
}

.publish-node,
.gate-node {
  border-color: #c9dfd8;
}

.stage-node {
  border-color: #ccdce1;
}

.stalled-node {
  border-color: #e5cfcd;
  background: #fffbfa;
}

.decision-node {
  display: grid;
  place-items: center;
  min-height: 82px;
  margin: 8px 12px;
  background: #fbfcfd;
  text-align: center;
  transform: rotate(45deg);
}

.decision-node span,
.decision-node small {
  display: block;
  transform: rotate(-45deg);
}

.decision-node span {
  max-width: 106px;
  color: var(--ink);
  font-size: 10.5px;
  font-weight: 780;
  line-height: 1.25;
}

.decision-node small {
  max-width: 106px;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 8px;
  line-height: 1.2;
}

.flow-split {
  display: grid;
  gap: 8px;
}

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

.decision-grid .decision-node {
  min-height: 74px;
  margin: 3px;
}

.decision-grid .decision-node span,
.decision-grid .decision-node small {
  max-width: 86px;
}

.pipeline-boundaries {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
}

.boundary-card {
  min-width: 0;
  padding: 16px;
  border-right: 1px solid var(--soft-line);
}

.boundary-card:last-child {
  border-right: 0;
}

.boundary-card h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.boundary-card h3 small {
  display: block;
  margin-top: 3px;
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
}

.boundary-card p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

.pipeline-feedback {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border-color: #c9ded8;
  background: #f8fbfa;
}

.pipeline-feedback h3 {
  margin-bottom: 6px;
  font-size: 15px;
}

.pipeline-feedback h3 small {
  color: var(--subtle);
  font-size: 10px;
  font-weight: 650;
}

.pipeline-feedback p {
  max-width: 900px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.62;
}

.pipeline-feedback a {
  flex: 0 0 auto;
  border: 1px solid #b7d3cc;
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--surface);
  color: var(--teal);
  font-size: 12px;
  font-weight: 780;
  text-decoration: none;
}

.mini-panel {
  min-height: 180px;
  padding: 16px;
}

.mini-panel h3 {
  margin-bottom: 8px;
  font-size: 14px;
}

.mini-panel p {
  color: var(--muted);
  line-height: 1.5;
}

.footer-note {
  margin-top: auto;
  padding-top: 16px;
  color: var(--subtle);
  font-size: 10.5px;
}

.methodology-note {
  margin-bottom: 10px;
  color: var(--muted);
}

.methodology-note summary {
  width: fit-content;
  cursor: pointer;
  color: var(--ink);
  font-weight: 700;
}

.methodology-note p {
  max-width: 980px;
  margin: 7px 0 0;
  line-height: 1.6;
}

.footer-note span {
  display: block;
  margin-top: 3px;
}

.tracker-table .all-only-col {
  display: none;
}

.tracker-table.show-listing-col .all-only-col {
  display: table-cell;
}

.footer-note .visit-counter {
  margin-top: 6px;
  color: var(--subtle);
  font-variant-numeric: tabular-nums;
}

.footer-note .visit-counter span {
  display: inline;
  font-weight: 700;
}

@media (max-width: 1420px) {
  .tracker-layout {
    grid-template-columns: 1fr;
  }

  .detail-pane:not(.detail-dialog) {
    position: static;
    min-height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-screen {
    transition: none;
  }

  .loading-bar span {
    animation: none;
    width: 100%;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 66px minmax(0, 1fr);
  }

  .brand-block {
    justify-content: center;
  }

  .brand-block > div:not(.brand-mark),
  .nav-item span:last-child,
  .sidebar-note span:last-child {
    display: none;
  }

  .nav-item {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .metrics-grid {
    grid-auto-flow: row;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-grid {
    grid-template-columns: repeat(3, minmax(118px, 1fr));
  }

  .coming-grid {
    grid-template-columns: 1fr;
  }

  .pipeline-hero,
  .pipeline-boundaries {
    grid-template-columns: 1fr;
  }

  .pipeline-boundaries .boundary-card {
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .pipeline-boundaries .boundary-card:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .app-shell {
    display: block;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 5;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    overflow-x: visible;
    padding: 12px;
  }

  .nav-list {
    display: flex;
    flex: 1 1 260px;
    overflow-x: auto;
    grid-auto-flow: column;
    grid-auto-columns: max-content;
  }

  .listing-stage-panel {
    display: flex;
    align-items: stretch;
    flex: 1 0 100%;
    gap: 6px;
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    margin-top: 0;
    padding: 8px 0 0;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-left: 0;
  }

  .listing-stage-title {
    display: none;
  }

  .listing-stage-button {
    flex: 0 0 auto;
    grid-template-columns: minmax(0, auto) auto;
    width: auto;
    min-width: 96px;
    min-height: 36px;
    padding: 5px 7px;
  }

  .nav-list {
    gap: 6px;
    padding-bottom: 2px;
  }

  .nav-item {
    flex: 0 0 auto;
    width: auto;
    grid-template-columns: 24px max-content;
    justify-items: start;
    column-gap: 7px;
    min-height: 40px;
    padding: 4px 10px 4px 8px;
  }

  .nav-item span:last-child {
    display: block;
    min-width: 0;
  }

  .nav-item b,
  .nav-item small {
    white-space: nowrap;
  }

  .sidebar-note {
    display: none;
  }

  .workspace {
    width: 100%;
    overflow-x: hidden;
    padding: 14px;
  }

  .topbar {
    display: grid;
  }

  h1 {
    font-size: 24px;
  }

  .metrics-grid {
    grid-auto-flow: row;
    grid-template-columns: 1fr;
  }

  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

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

  .search-box {
    width: 100%;
    min-width: 0;
  }

  .segmented {
    width: 100%;
    overflow-x: auto;
  }

  .segment {
    flex: 1 0 auto;
  }

  .tracker-table {
    min-width: 980px;
  }

  .tracker-table th:nth-child(1),
  .tracker-table td:nth-child(1) {
    position: sticky;
    left: 0;
    z-index: 1;
    background: var(--surface);
    box-shadow: 1px 0 0 var(--line);
  }

  .tracker-table thead th:nth-child(1) {
    z-index: 3;
  }

  .tracker-table tr.is-selected td:nth-child(1) {
    background: #eef6f3;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .pagination-actions button {
    flex: 1;
  }

  .pipeline-hero {
    padding: 16px;
  }

  .pipeline-page,
  .pipeline-hero,
  .pipeline-image-gallery,
  .pipeline-feedback {
    width: 100%;
    max-width: calc(100vw - 28px);
  }

  .pipeline-principles {
    grid-template-columns: 1fr;
  }

  .pipeline-image-gallery {
    padding: 10px;
  }

  .pipeline-image-card a {
    overflow-x: auto;
    aspect-ratio: auto;
    -webkit-overflow-scrolling: touch;
  }

  .pipeline-image-card img {
    width: 920px;
    max-width: none;
    height: auto;
  }

  .pipeline-image-card figcaption {
    display: grid;
    gap: 3px;
  }

  .pipeline-image-card figcaption small {
    text-align: left;
  }

  .pipeline-flow {
    display: grid;
    grid-template-columns: 1fr;
    overflow-x: visible;
  }

  .pipeline-lane {
    min-width: 0;
    border-right: 0;
    border-bottom: 1px solid var(--soft-line);
  }

  .pipeline-lane:last-child {
    border-bottom: 0;
  }

  .pipeline-lane::after {
    top: auto;
    right: 50%;
    bottom: -9px;
    transform: translateX(50%) rotate(135deg);
  }

  .decision-node {
    margin: 8px auto;
  }

  .decision-grid {
    grid-template-columns: 1fr;
  }

  .decision-grid .decision-node {
    min-height: 82px;
    margin: 8px auto;
  }

  .decision-grid .decision-node span,
  .decision-grid .decision-node small {
    max-width: 106px;
  }

  .pipeline-feedback {
    align-items: stretch;
    flex-direction: column;
  }

  .pipeline-feedback a {
    width: fit-content;
  }
}

.empty-row {
  padding: 34px 16px !important;
  text-align: center !important;
  font-size: 13px !important;
}
