:root {
  color-scheme: light;
  --ink: #172f34;
  --dark: #142c32;
  --teal: #087866;
  --muted: #586b6c;
  --line: #dce4df;
  --soft: #f3f6f3;
  --type: Inter,"Segoe UI","PingFang SC","Microsoft YaHei",system-ui,sans-serif;
  --num: "IBM Plex Mono","SFMono-Regular",Consolas,"Liberation Mono",monospace;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: #f3f6f3;
  color: var(--ink);
  font: 15px/1.55 var(--type);
  -webkit-font-smoothing: antialiased;
}

button,input,select {
  font: inherit;
  color: inherit;
}

button,select {
  cursor: pointer;
}

button {
  border: 0;
  background: none;
}

button:disabled {
  cursor: default;
  opacity: .34;
}

button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible {
  outline: 3px solid #40ad95;
  outline-offset: 3px;
}

h1,h2,h3,p {
  margin: 0;
}

[hidden] {
  display: none!important;
}

.wrap {
  width: min(1376px,calc(100% - 88px));
  margin: 0 auto;
}

.skip {
  position: absolute;
  top: -70px;
  left: 12px;
  padding: 9px;
  background: white;
  color: #006958;
  z-index: 5;
}

.skip:focus {
  top: 4px;
}

.topbar {
  background: var(--dark);
  color: #f6faf7;
}

.bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  min-height: 68px;
}

.brand,.bar-inner nav,.view-switch,.date-control,.date-label,.search,.filters,.paging,.section-line,.filter-line,.dialog-head,.trend-panel,.page-foot,footer {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
}

.brand strong {
  font-size: 20px;
  letter-spacing: .025em;
  font-weight: 720;
}

.brand-sub {
  font-size: 12px;
  color: #c2d2ce;
  border-left: 1px solid #506265;
  line-height: 1.2;
  padding-left: 12px;
  margin-left: 3px;
  letter-spacing: .08em;
}

.brand-icon {
  width: 29px;
  height: 30px;
  display: flex;
  align-items: flex-end;
  gap: 3px;
  padding: 3px 1px;
}

.brand-icon i {
  background: #83e1bd;
  width: 6px;
  border-radius: 2px;
  margin-bottom: 1px;
}

.brand-icon i:nth-child(1) {
  height: 9px;
}

.brand-icon i:nth-child(2) {
  height: 16px;
}

.brand-icon i:nth-child(3) {
  height: 24px;
}

.bar-inner nav {
  gap: 19px;
}

.header-link {
  color: #dce8e4;
  font-size: 13px;
  text-decoration: none;
  padding: 7px 0;
}

.header-link:hover {
  color: white;
}

.nav-home {
  border-left: 1px solid #526363;
  padding-left: 18px;
}

.nav-home span {
  color: #93d7c0;
  margin-left: 3px;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 38px 0 29px;
  gap: 18px;
}

.page-head h1 {
  font-size: clamp(29px,3vw,43px);
  line-height: 1.18;
  letter-spacing: -.045em;
  font-weight: 740;
}

.page-head p,.detail-head p,.trend-label p {
  color: var(--muted);
  font-size: 13px;
  margin-top: 7px;
}

.date-control {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  height: 40px;
  box-shadow: 0 2px 5px #172f3404;
}

.date-label {
  position: relative;
  gap: 7px;
  height: 100%;
}

.arrow {
  font: 23px/1 var(--type);
  height: 100%;
  width: 34px;
  color: var(--muted);
}

.arrow:not(:disabled):hover,.paging button:not(:disabled):hover {
  background: var(--soft);
  color: var(--teal);
}

.date-label select {
  border: 0;
  background: transparent;
  appearance: none;
  padding: 0 20px 0 0;
  font: 600 14px/1.3 var(--num);
  height: 100%;
}

.calendar-icon {
  width: 14px;
  height: 14px;
  border: 1.5px solid #64797b;
  border-radius: 3px;
  margin-left: 4px;
  position: relative;
}

.calendar-icon:before {
  content: "";
  display: block;
  border-top: 1px solid #64797b;
  position: absolute;
  top: 3px;
  width: 100%;
}

.chevron {
  position: absolute;
  right: 5px;
  width: 6px;
  height: 6px;
  border-bottom: 1.5px solid #718281;
  border-right: 1.5px solid #718281;
  transform: rotate(45deg);
  pointer-events: none;
}

.section-line {
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 11px;
}

.section-line h2,.trend-label h2 {
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -.02em;
}

.quiet {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.stats {
  display: grid;
  grid-template-columns: 1.02fr 1fr 1fr;
  gap: 16px;
}

.stat {
  position: relative;
  padding: 19px 22px 17px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  overflow: hidden;
}

.stat.primary {
  background: #173e40;
  color: #f7fffb;
  border-color: #173e40;
}

.stat-name {
  font-size: 14px;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stat-name:before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #70998d;
}

.stat.primary .stat-name:before {
  background: #7ce6b4;
}

.stat.pool .stat-name:before {
  background: #7895a4;
}

.stat-main {
  display: flex;
  align-items: baseline;
  gap: 3px;
  min-height: 51px;
  margin: 6px 0 2px;
}

.stat-value {
  font: 650 clamp(32px,3.6vw,47px)/1.12 var(--num);
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
}

.unit {
  color: #5b7272;
  font: 600 20px/1 var(--num);
}

.primary .unit {
  color: #acd3c6;
}

.stat-state {
  font-size: 27px;
  font-weight: 650;
  align-self: center;
  letter-spacing: -.05em;
}

.stat small {
  font-size: 12px;
  color: var(--muted);
  display: block;
}

.stat.primary small {
  color: #d2e4dc;
}

.stat small b {
  font-weight: 600;
}

.stat-bar {
  height: 3px;
  width: 100%;
  background: #e4ece7;
  margin-top: 15px;
  border-radius: 2px;
  overflow: hidden;
}

.stat-bar i {
  height: 100%;
  display: block;
  background: #3b8d78;
}

.stat.primary .stat-bar {
  background: #315856;
}

.stat.primary .stat-bar i {
  background: #89ddba;
}

.stat.pool .stat-bar i {
  background: #7b9eaa;
}

.workspace,.trend-panel {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: white;
}

.workspace {
  margin-top: 25px;
  overflow: hidden;
}

.view-switch {
  border-bottom: 1px solid var(--line);
  padding: 0 24px;
  gap: 26px;
}

.view-switch button {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 53px;
  padding: 0 2px;
  border-bottom: 3px solid transparent;
  margin-bottom: -1px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 640;
}

.view-switch button[aria-pressed=true] {
  color: var(--teal);
  border-color: var(--teal);
}

.tab-icon {
  width: 15px;
  height: 15px;
  display: inline-block;
  position: relative;
}

.review-icon {
  border: 1.5px solid currentColor;
  border-radius: 3px;
}

.review-icon:before,.review-icon:after {
  content: "";
  position: absolute;
  left: 3px;
  top: 4px;
  width: 7px;
  border-top: 1.5px solid currentColor;
}

.review-icon:after {
  top: 8px;
  width: 5px;
}

.forecast-icon:before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 13px;
  border-top: 1.5px solid currentColor;
  transform: rotate(-37deg);
}

.forecast-icon:after {
  content: "";
  position: absolute;
  right: 0;
  top: 3px;
  width: 6px;
  height: 6px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
}

.detail-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  padding: 22px 24px 16px;
}

.detail-head h2 {
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -.04em;
}

.detail-head p {
  margin-top: 4px;
}

.search {
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 6px 12px;
  background: #fafbf9;
}

.search-icon {
  width: 12px;
  height: 12px;
  border: 1.5px solid #7f9390;
  border-radius: 50%;
  position: relative;
  flex: none;
}

.search-icon:after {
  content: "";
  position: absolute;
  right: -4px;
  bottom: -2px;
  border-bottom: 1.5px solid #7f9390;
  width: 5px;
  transform: rotate(45deg);
}

.search input {
  border: none;
  background: none;
  font-size: 13px;
  outline: none;
  width: 145px;
  padding: 2px 3px;
}

.search:focus-within {
  border-color: var(--teal);
}

.search input::placeholder {
  color: #6c7c79;
}

.filter-line {
  padding: 0 24px 16px;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.filters {
  gap: 5px;
  flex-wrap: wrap;
}

.filters button {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid transparent;
  color: #4d625f;
}

.filters button:hover {
  background: #f1f5f1;
}

.filters button[aria-pressed=true] {
  color: #116955;
  background: #e8f3ed;
  border-color: #c8e4d6;
  font-weight: 630;
}

.stage-label {
  font-size: 12px;
  color: var(--muted);
  display: flex;
  gap: 7px;
  align-items: center;
}

.stage-label select {
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  padding: 3px 6px;
  background: white;
}

.status-note {
  margin: 0 24px 15px;
  border-left: 3px solid #d9ad63;
  background: #fbf8ed;
  color: #71552a;
  padding: 7px 11px;
  font-size: 12px;
}

.stocks {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.stocks th {
  background: #f3f6f3;
  font-size: 11px;
  letter-spacing: .04em;
  font-weight: 600;
  color: #526966;
  text-align: left;
  padding: 9px 12px;
  white-space: nowrap;
}

.stocks td {
  padding: 11px 12px;
  border-bottom: 1px solid #e7ede8;
  vertical-align: middle;
}

.stocks tr:last-child td {
  border-bottom: 0;
}

.stocks th:first-child,.stocks td:first-child {
  padding-left: 24px;
}

.stocks th:last-child,.stocks td:last-child {
  padding-right: 24px;
}

.stocks tbody tr:hover {
  background: #f9fbf8;
}

.stock-name {
  font-size: 15px;
  color: var(--ink);
  font-weight: 690;
}

.stock-code,.num,.day,.path-time {
  font-family: var(--num);
  font-variant-numeric: tabular-nums;
}

.stock-code {
  font-size: 11px;
  color: #68817b;
  letter-spacing: .055em;
}

.badges {
  display: inline-flex;
  gap: 3px;
  flex-wrap: wrap;
  margin-left: 5px;
}

.tag {
  display: inline-block;
  line-height: 1.25;
  font-size: 10px;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 580;
  background: #edf0ed;
  color: #5c6d68;
  white-space: nowrap;
}

.tag.primary {
  color: #11624e;
  background: #d9eee2;
}

.tag.warn {
  color: #886026;
  background: #f7ead0;
}

.stage {
  font-size: 12px;
  white-space: nowrap;
  color: #465c59;
}

.path-time {
  font-size: 11px;
  color: #6f7e7a;
}

.muted {
  color: #73817d;
}

.result {
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.result:before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #a1b0ab;
}

.result.yes {
  font-weight: 630;
  color: #126f57;
}

.result.yes:before {
  background: #31a37e;
}

.result.miss {
  color: #626d6c;
}

.result.uncertain {
  color: #9a6a2e;
}

.result.uncertain:before {
  background: #c28c41;
}

.subcell {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.prob {
  font: 560 13px/1.3 var(--num);
  color: #234e47;
  white-space: nowrap;
}

.prob .sep {
  color: #96a8a3;
  margin: 0 3px;
}

.prob.research {
  color: #4c6275;
}

.table-scroll {
  overflow-x: auto;
}

.page-foot {
  min-height: 46px;
  justify-content: space-between;
  padding: 8px 24px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
}

.paging {
  gap: 8px;
}

.paging button {
  font: 22px/1 var(--type);
  width: 24px;
  height: 25px;
  border: 1px solid var(--line);
  border-radius: 4px;
}

.paging span {
  font-family: var(--num);
}

.empty {
  padding: 38px 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.trend-panel {
  margin-top: 18px;
  padding: 18px 24px;
  gap: 28px;
}

.trend-label {
  flex: 0 0 176px;
}

.trend-label h2 {
  font-size: 16px;
}

.trend-label p {
  font-size: 12px;
  margin-top: 4px;
}

.trend {
  display: flex;
  flex: 1;
  align-items: flex-end;
  justify-content: flex-start;
  gap: 6px;
  min-width: 0;
}

.trend button {
  min-width: 0;
  flex: 1;
  max-width: 99px;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: flex-end;
  padding: 0 3px;
  gap: 2px;
  font: 11px/1.3 var(--num);
  color: #697c77;
}

.trend button:hover,.trend button:focus-visible {
  color: var(--teal);
}

.bar-track {
  height: 38px;
  display: flex;
  align-items: flex-end;
  width: 60%;
  max-width: 46px;
}

.bar-track i {
  display: block;
  width: 100%;
  min-height: 1px;
  background: #a9ccc0;
  border-radius: 3px 3px 0 0;
}

.trend .current i,.trend button:hover i {
  background: #167d64;
}

.trend .current {
  font-weight: 700;
  color: #196951;
}

.trend .mini-value {
  color: #475f58;
}

.trend .mini-label {
  font-size: 10px;
}

.loading {
  padding: 40px;
  border: 1px solid var(--line);
  background: white;
  border-radius: 10px;
  color: var(--muted);
  text-align: center;
}

.loading-dot {
  display: inline-block;
  background: #49a88a;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  margin-right: 8px;
}

footer {
  justify-content: space-between;
  gap: 12px;
  padding: 22px 0 32px;
  font-size: 11px;
  color: #637772;
}

dialog {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  max-width: min(540px,92vw);
  max-height: 80dvh;
  color: var(--ink);
  background: white;
}

dialog::backdrop {
  background: #10282480;
}

.dialog-head {
  justify-content: space-between;
}

.dialog-head h2 {
  font-size: 22px;
}

.dialog-head button {
  font-size: 25px;
  line-height: 1.2;
  color: var(--muted);
  padding: 0 5px;
}

dialog dl {
  margin-bottom: 0;
}

dialog dt {
  font-weight: 680;
  font-size: 14px;
  margin-top: 16px;
}

dialog dd {
  font-size: 13px;
  color: var(--muted);
  margin: 4px 0 0;
}

@media(min-width:1650px) {
  .wrap {
    width: min(1376px,calc(100% - 11vw));
  }

}

@media(max-width:980px) {
  .wrap {
    width: calc(100% - 40px);
  }

  .stat {
    padding: 16px;
  }

  .stats {
    gap: 10px;
  }

  .stocks th,.stocks td {
    padding-left: 8px;
    padding-right: 8px;
  }

  .trend-label {
    flex-basis: 145px;
  }

  .trend-panel {
    gap: 15px;
  }

}

@media(max-width:700px) {
  .wrap {
    width: calc(100% - 28px);
  }

  .bar-inner {
    min-height: 52px;
  }

  .brand {
    gap: 6px;
  }

  .brand strong {
    font-size: 16px;
  }

  .brand-icon {
    transform: scale(.83);
    transform-origin: left center;
    width: 24px;
  }

  .brand-sub {
    font-size: 10px;
    padding-left: 7px;
  }

  .bar-inner nav {
    gap: 10px;
  }

  .header-link {
    font-size: 11px;
  }

  .nav-home {
    padding-left: 10px;
  }

  .page-head {
    padding: 25px 0 19px;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 12px;
  }

  .page-head h1 {
    font-size: 29px;
  }

  .page-head p {
    font-size: 12px;
  }

  .date-control {
    height: 33px;
  }

  .arrow {
    width: 24px;
  }

  .date-label select {
    font-size: 12px;
  }

  .section-line {
    margin-bottom: 8px;
    align-items: flex-end;
  }

  .section-line h2 {
    font-size: 15px;
  }

  .quiet {
    font-size: 10px;
  }

  .stats {
    gap: 6px;
    grid-template-columns: repeat(3,minmax(0,1fr));
  }

  .stat {
    border-radius: 8px;
    padding: 10px 8px;
  }

  .stat-name {
    font-size: 11px;
    gap: 4px;
  }

  .stat-name:before {
    width: 5px;
    height: 5px;
  }

  .stat-value {
    font-size: clamp(20px,5.5vw,35px);
  }

  .stat-main {
    min-height: 28px;
    margin: 9px 0 5px;
    gap: 1px;
  }

  .unit {
    font-size: 11px;
  }

  .stat small {
    font-size: 10px;
    line-height: 1.5;
  }

  .stat-state {
    font-size: 16px;
  }

  .stat-bar {
    margin-top: 8px;
    height: 2px;
  }

  .workspace {
    margin-top: 16px;
  }

  .view-switch {
    padding: 0 15px;
    gap: 20px;
  }

  .view-switch button {
    min-height: 44px;
    font-size: 13px;
  }

  .detail-head {
    padding: 15px 13px 10px;
  }

  .detail-head h2 {
    font-size: 18px;
  }

  .detail-head p {
    font-size: 11px;
  }

  .search {
    padding: 5px 8px;
  }

  .search input {
    width: 86px;
    font-size: 11px;
  }

  .filter-line {
    padding: 0 12px 12px;
    gap: 4px;
  }

  .filters {
    gap: 1px;
  }

  .filters button {
    padding: 4px 5px;
    font-size: 11px;
  }

  .stage-label {
    gap: 3px;
    font-size: 10px;
  }

  .stage-label select {
    font-size: 11px;
    padding: 2px 0;
  }

  .stock-name {
    font-size: 14px;
  }

  .status-note {
    margin: 0 12px 10px;
  }

  .stocks,.stocks tbody {
    display: block;
  }

  .stocks thead {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(100%);
    white-space: nowrap;
  }

  .stocks tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 9px;
    padding: 10px 13px;
    border-top: 1px solid var(--line);
  }

  .stocks td,.stocks th:first-child,.stocks td:first-child,.stocks td:last-child {
    padding: 0;
    border: 0;
  }

  .stocks .identity {
    grid-column: 1/-1;
    display: flex;
    align-items: center;
    gap: 7px;
    flex-wrap: wrap;
  }

  .identity .stock-code {
    order: 2;
  }

  .stocks td:not(.identity) {
    display: flex;
    align-items: baseline;
    gap: 4px;
    font-size: 11px;
    flex-wrap: wrap;
  }

  .stocks td:not(.identity):before {
    content: attr(data-label);
    color: #70817b;
    font-size: 10px;
  }

  .stocks td .subcell {
    margin-top: 0;
  }

  .stocks .span-wide {
    grid-column: 1/-1;
  }

  .prob {
    font-size: 12px;
  }

  .result {
    font-size: 11px;
  }

  .page-foot {
    padding: 8px 13px;
  }

  .trend-panel {
    display: block;
    padding: 12px 12px 14px;
  }

  .trend-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 9px;
  }

  .trend-label h2 {
    font-size: 14px;
  }

  .trend-label p {
    font-size: 10px;
    margin: 0;
  }

  .trend {
    gap: 1px;
  }

  .trend button {
    font-size: 9px;
    padding: 0 1px;
  }

  .trend .mini-label {
    font-size: 8px;
  }

  .bar-track {
    height: 28px;
    width: 75%;
  }

  footer {
    align-items: flex-start;
    font-size: 10px;
    padding: 14px 0 20px;
  }

}

@media(prefers-reduced-motion:no-preference) {
  button,a {
    transition: background-color .14s,color .14s;
  }

}

.show-all {
  font: inherit;
  color: var(--teal);
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 0 5px;
}

.higher-list {
  margin-top: 4px;
  font-size: 12px;
}

.higher-list summary {
  width: fit-content;
  color: var(--teal);
  cursor: pointer;
}

.higher-list ul {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 8px;
  margin: 7px 0 0 0;
  padding: 0;
  list-style: none;
}

.higher-list li {
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 2px 6px;
  background: #fafbf9;
}
