﻿:root {
  font-family: "Instrument Sans", "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #1d2838;
  background: #f5f6f8;
  --navy: #1d2e49;
  --blue: #345bc5;
  --ink: #1d2838;
  --muted: #596779;
  --line: #dbe0e7;
  --pale: #eef2fb;
  --orange: #bb6a37;
  --mint: #e6f4ec;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
a,
input {
  font: inherit;
}
a {
  color: inherit;
}
button {
  cursor: pointer;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible {
  outline: 3px solid #d07c47;
  outline-offset: 3px;
}
.skip {
  position: fixed;
  left: -200px;
}
.skip:focus {
  left: 8px;
  top: 7px;
  background: #fff;
  color: var(--ink);
  z-index: 8;
  padding: 9px;
}
.mast {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 750;
  font-size: 20px;
  letter-spacing: 0.02em;
}
.brandmark {
  background: var(--navy);
  width: 35px;
  height: 35px;
  border-radius: 10px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding: 8px;
}
.brandmark i {
  display: block;
  width: 4px;
  background: #f1f5ff;
  border-radius: 2px;
  height: 12px;
}
.brandmark i:nth-child(2) {
  height: 19px;
  background: #a9bff9;
}
.brandmark i:last-child {
  height: 15px;
  background: #eaa978;
}
.edition {
  border-left: 1px solid var(--line);
  padding-left: 20px;
  color: var(--muted);
  font-size: 13px;
}
.workspace-nav {
  display: flex;
  align-items: stretch;
  gap: 18px;
  align-self: stretch;
  min-width: 0;
  overflow: visible;
}
.workspace-nav a {
  display: flex;
  align-items: center;
  text-decoration: none;
  border-bottom: 2px solid transparent;
  font-size: 14px;
  white-space: nowrap;
  color: var(--muted);
}
.workspace-nav a:hover,
.workspace-nav a[aria-current] {
  color: var(--blue);
  border-bottom-color: var(--blue);
}
.task-in-row,
.study-context a {
  color: var(--blue);
  font-size: 12px;
}
.task-in-row {
  display: inline-block;
  margin-top: 3px;
}
.study-context {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
}
#study-spend {
  color: var(--muted);
  font-size: 12px;
}
.budget-preview:not([hidden]) {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 16px;
  font-size: 13px;
  color: #35506b;
  border: 1px solid #d1dfe9;
  background: #edf4f6;
  padding: 12px 15px;
  border-radius: 7px;
  margin-bottom: 14px;
}
.budget-preview a {
  margin-left: auto;
  color: var(--blue);
}
@media (max-width: 420px) {
  .mast:has(.workspace-nav) {
    flex-wrap: wrap;
    justify-content: space-between;
    height: auto !important;
    gap: 0 10px !important;
    padding-top: 7px !important;
  }
  .mast .workspace-nav {
    order: 3;
    width: 100%;
    gap: 20px;
  }
  .mast .workspace-nav a {
    padding: 8px 0;
  }
  .mast:has(.workspace-nav) .mode {
    margin-left: auto;
  }
}
@media (max-width: 720px) {
  .mast:has(.workspace-nav) {
    gap: 10px;
  }
  .workspace-nav {
    gap: 10px;
  }
  .workspace-nav a {
    font-size: 12px;
  }
  .mast:has(.workspace-nav) .brand {
    font-size: 16px;
    gap: 6px;
  }
  .mast:has(.workspace-nav) .mode {
    padding: 4px 6px;
    white-space: nowrap;
  }
}
.mode {
  margin-left: auto;
  color: #77502a;
  background: #fcf3e6;
  border: 1px solid #ecddc8;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.mode i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b07541;
}
.shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  max-width: 1660px;
  margin: auto;
  min-height: calc(100vh - 66px);
}
.side {
  background: #fafbfc;
  border-right: 1px solid var(--line);
  padding: 28px 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.side-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 9px;
}
.side-head strong {
  font-size: 16px;
}
.side-head span {
  font-size: 12px;
  color: var(--muted);
}
.navgroup {
  font-size: 11px;
  color: #68778a;
  letter-spacing: 0.08em;
  margin: 24px 10px 7px;
}
.navgroup:first-child {
  margin-top: 7px;
}
.step {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  padding: 11px 10px;
  margin: 3px 0;
  font-size: 14px;
  line-height: 1.4;
  border-radius: 7px;
  border: 1px solid transparent;
  color: #4a596c;
}
.step:hover {
  background: #edf0f5;
}
.step[aria-current] {
  background: #e9effc;
  border-color: #d3def6;
  color: #21499b;
  font-weight: 700;
}
.num {
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  width: 24px;
  text-align: center;
}
.step[aria-current] .num {
  background: var(--blue);
  color: white;
  border-radius: 4px;
  padding: 2px;
}
.case {
  margin: 24px 7px 0;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  line-height: 1.55;
}
.case small,
.case strong {
  display: block;
}
.case strong {
  font-size: 14px;
  margin: 3px 0;
}
.case p,
.case small {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0;
}
.case-line {
  display: block;
  width: 24px;
  height: 3px;
  background: #e2a16e;
  margin-bottom: 10px;
}
main {
  width: 100%;
  max-width: 1230px;
  padding: 28px clamp(22px, 3.6vw, 62px) 34px;
}
.crumb {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
}
#back-to-list {
  color: var(--blue);
  font-weight: 650;
  text-decoration: none;
}
#back-to-list:hover {
  text-decoration: underline;
}
#study-identity {
  font-size: 13px;
  margin: 18px 0 -6px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.step.future {
  color: #7b8796;
}
.study-url {
  overflow-wrap: anywhere;
  user-select: all;
}
.crumb b {
  font-weight: 400;
  color: #99a4b2;
}
.crumb div {
  margin-left: auto;
  font-family: "IBM Plex Mono", Consolas, monospace;
  letter-spacing: 0.06em;
  color: #526079;
}
.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 20px 0 22px;
}
h1 {
  font-size: clamp(27px, 2.9vw, 42px);
  letter-spacing: -0.035em;
  line-height: 1.18;
  margin: 0;
  font-weight: 740;
}
.page-head p {
  font-size: 14px;
  color: var(--muted);
  margin: 10px 0 0;
  line-height: 1.6;
}
.owner,
.pill {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  font-size: 12px;
  line-height: 1.2;
  padding: 5px 9px;
  border-radius: 5px;
  font-weight: 600;
}
.owner {
  color: #4d5e77;
  background: #e8ecf2;
}
.pill {
  color: #38578c;
  background: #eaf0fb;
}
.pill.ok {
  color: #236346;
  background: var(--mint);
}
.pill.warn {
  color: #845321;
  background: #fff1dc;
}
.pill.dim {
  color: #5a6472;
  background: #edf0f4;
}
.grid {
  display: grid;
  gap: 16px;
}
.two {
  grid-template-columns: minmax(0, 1.4fr) minmax(230px, 0.9fr);
}
.equal {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 20px 22px;
  min-width: 0;
  margin: 0 0 16px;
}
.grid > .card {
  margin: 0;
}
.grid {
  margin-bottom: 16px;
}
h2 {
  font-size: 17px;
  line-height: 1.4;
  margin: 0 0 14px;
}
h3 {
  font-size: 15px;
  line-height: 1.5;
  margin: 0 0 7px;
}
p {
  line-height: 1.65;
}
small,
.sub,
.subtitle {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
}
.headrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 14px;
}
.headrow h2,
.headrow h3 {
  margin: 0;
}
.cover {
  background: var(--navy);
  color: #f5f7fc;
  overflow: hidden;
  position: relative;
}
.cover small,
.cover .sub {
  color: #c4d2eb;
}
.cover > div,
.cover > p,
.cover > h2,
.cover > small {
  position: relative;
  z-index: 1;
}
.cover:after {
  content: "";
  position: absolute;
  inset: 0 0 0 56%;
  opacity: 0.18;
  background-image:
    linear-gradient(#9eb8e6 1px, transparent 1px),
    linear-gradient(90deg, #9eb8e6 1px, transparent 1px);
  background-size: 23px 23px;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.cover h2 {
  font-family: "Hedvig Letters Serif", "Noto Serif CJK SC", "SimSun", serif;
  font-size: clamp(23px, 2.3vw, 35px);
  font-weight: 600;
  letter-spacing: 0.005em;
  line-height: 1.45;
  margin: 14px 0 9px;
}
.cover .kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #d5e0f0;
}
.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 3px;
  background: #edaa77;
}
.cover .meta {
  border-top: 1px solid #435473;
  margin: 18px 0 0;
  padding: 12px 0 0;
  font-size: 12px;
  color: #c4d2eb;
}
.label {
  font-size: 12px;
  font-weight: 650;
  color: #526079;
  display: block;
  margin: 12px 0 6px;
}
.field {
  font-size: 14px;
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #f7f9fc;
  color: #354762;
  overflow-wrap: anywhere;
}
.kv {
  margin: 0;
}
.kv div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  border-bottom: 1px solid #edf0f4;
  padding: 9px 0;
  font-size: 13px;
}
.kv div:last-child {
  border: 0;
}
.kv dt {
  color: var(--muted);
}
.kv dd {
  margin: 0;
  text-align: right;
  font-weight: 650;
}
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(115px, 1fr));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 16px;
  padding: 13px 0;
}
.stat {
  padding: 4px 18px;
  border-right: 1px solid var(--line);
}
.stat:last-child {
  border: 0;
}
.stat strong {
  display: block;
  font:
    650 clamp(24px, 2.1vw, 34px) / 1.2 "Instrument Sans",
    sans-serif;
  font-variant-numeric: tabular-nums;
  color: #24395d;
}
.stat span {
  font-size: 12px;
  color: var(--muted);
}
.notice {
  display: flex;
  gap: 9px;
  align-items: baseline;
  border-left: 3px solid #cd8c53;
  background: #fcf4e8;
  padding: 12px 15px;
  margin: 14px 0;
  border-radius: 0 6px 6px 0;
  color: #724e2e;
  font-size: 13px;
  line-height: 1.65;
}
.notice b {
  flex-shrink: 0;
}
.route {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.route a {
  display: block;
  color: var(--navy);
  border-top: 3px solid #aabce4;
  padding: 10px 2px;
  text-decoration: none;
  font-weight: 650;
  font-size: 14px;
}
.route a:first-child {
  border-color: #d59865;
}
.route small {
  display: block;
  margin: 5px 0;
  font-weight: 400;
}
.route a:hover {
  text-decoration: underline;
}
.tablebox {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}
th {
  font-size: 12px;
  color: #617088;
  background: #f5f7fa;
  font-weight: 600;
  white-space: nowrap;
}
td,
th {
  padding: 10px 12px;
  border-bottom: 1px solid #e5e9ef;
}
tr:last-child td {
  border-bottom: 0;
}
td:first-child {
  font-weight: 550;
}
blockquote {
  margin: 10px 0 8px;
  padding: 10px 14px;
  border-left: 3px solid #a8b8dc;
  background: #f5f7fb;
  font-size: 14px;
  line-height: 1.75;
}
button,
.action {
  border: 1px solid #ccd4e0;
  color: #304973;
  background: white;
  border-radius: 6px;
  padding: 7px 11px;
  text-decoration: none;
  font-size: 13px;
  line-height: 1.5;
}
.chip {
  padding: 3px 7px;
  font-family: "IBM Plex Mono", Consolas, monospace;
  font-size: 12px;
  background: #f5f7fb;
  color: #2d519b;
  margin: 2px;
}
.chip:hover,
.action:hover {
  background: #eaf0fb;
}
.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
.primary:hover {
  background: #2549a3;
}
.tabset {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 15px;
}
.tabset button[aria-pressed="true"] {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.entryrow {
  padding: 13px 0;
  border-top: 1px solid #e5e9ef;
}
.entryrow:first-child {
  border: 0;
  padding-top: 0;
}
.entryrow p {
  margin: 4px 0 8px;
  font-size: 14px;
}
.chips {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  align-items: center;
}
details {
  font-size: 13px;
  margin: 12px 0;
}
summary {
  cursor: pointer;
  color: #37578c;
  padding: 4px 0;
}
.segbar {
  height: 11px;
  display: flex;
  border-radius: 20px;
  overflow: hidden;
  margin: 16px 0;
  background: #e8edf5;
}
.segbar i:nth-child(1) {
  background: #4368c2;
}
.segbar i:nth-child(2) {
  background: #88a2d9;
}
.segbar i:nth-child(3) {
  background: #c5cdd8;
}
.legend {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 12px;
  color: var(--muted);
}
.legend span:before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 5px;
  border-radius: 3px;
  background: #4368c2;
}
.legend span:nth-child(2):before {
  background: #88a2d9;
}
.legend span:nth-child(3):before {
  background: #c5cdd8;
}
.queries {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
}
.group-jump {
  display: inline-block;
  margin-top: 14px;
  color: var(--blue);
  font-size: 13px;
}
.source-groups {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr));
  gap: 8px;
  overflow: visible;
}
.source-group,
.source-all {
  text-decoration: none;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 6px;
}
.source-group {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 10px 12px;
  background: #fafbfd;
}
.source-group[aria-current],
.source-all[aria-current] {
  color: #244887;
  border-color: #9ab1d5;
  background: #edf2fc;
}
.source-group:hover,
.source-all:hover {
  border-color: #7694c0;
}
.source-topic {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  font-weight: 650;
}
.source-topic b,
.source-hit b {
  font:
    600 12px Consolas,
    monospace;
  color: #355783;
}
.source-group small {
  font-size: 12px;
  line-height: 1.5;
}
.source-all {
  font-size: 12px;
  padding: 4px 9px;
  white-space: nowrap;
}
.source-hit,
.run-ref {
  display: block;
}
.source-hit {
  line-height: 1.6;
}
.run-ref {
  margin-top: 3px;
  font-size: 12px;
}
.source-hit ~ details {
  margin: 3px 0 0;
}
.empty-hits {
  font-size: 14px;
  padding: 14px 0;
  color: var(--muted);
}
@media (max-width: 720px) {
  .source-groups {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .source-group {
    padding: 8px;
  }
  .source-topic {
    flex-wrap: wrap;
  }
  .source-group small {
    overflow-wrap: anywhere;
  }
}
.queries span {
  background: #edf2fb;
  color: #2e4f8b;
  border-radius: 5px;
  padding: 4px 9px;
  font-size: 13px;
}
.funnel {
  display: grid;
  gap: 9px;
}
.funnel div {
  display: grid;
  grid-template-columns: 95px 1fr 40px;
  gap: 12px;
  align-items: center;
  font-size: 13px;
}
.track {
  height: 9px;
  background: #eaf0f6;
  border-radius: 8px;
  overflow: hidden;
}
.track i {
  display: block;
  height: 100%;
  background: #6583c5;
  border-radius: 8px;
}
.funnel div:last-child i {
  background: #cb8857;
}
.score {
  font-size: 20px;
  font-weight: 700;
  color: var(--blue);
}
.nowrap {
  white-space: nowrap;
}
.callout {
  padding: 12px 16px;
  border-radius: 6px;
  background: #eef3fb;
  font-size: 14px;
  color: #2d4777;
  line-height: 1.65;
}
.bodytext {
  white-space: pre-line;
  font-size: 15px;
  line-height: 1.8;
}
footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding: 17px 0 0;
  margin: 21px 0 0;
}
footer .primary {
  padding: 9px 15px;
}
dialog {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  width: min(520px, 90vw);
  max-height: 80vh;
  padding: 0;
  box-shadow: 0 24px 100px #1c2b4555;
}
dialog::backdrop {
  background: #17263d66;
}
.dialog-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: #f0f3fa;
  color: #41577d;
}
.dialog-bar button {
  font-size: 20px;
  line-height: 1;
  border: 0;
  background: transparent;
}
#dialog-body {
  padding: 21px;
}
@media (min-width: 1050px) {
  .side {
    position: sticky;
    top: 0;
    height: fit-content;
    min-height: calc(100vh - 66px);
  }
}
@media (max-width: 950px) {
  .shell {
    grid-template-columns: 185px minmax(0, 1fr);
  }
  .side {
    padding: 22px 9px;
  }
  .two {
    grid-template-columns: 1.25fr 1fr;
  }
  main {
    padding: 22px 19px;
  }
  .card {
    padding: 16px;
  }
  .page-head {
    margin-top: 16px;
  }
}
@media (max-width: 720px) {
  .mast {
    padding: 0 15px;
    height: 55px;
  }
  .edition,
  .case,
  .side-head,
  .navgroup {
    display: none;
  }
  .shell {
    display: block;
  }
  .side {
    padding: 6px 10px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  nav {
    display: flex;
    gap: 4px;
    overflow: auto;
  }
  .step {
    white-space: nowrap;
    padding: 7px;
    font-size: 12px;
  }
  .num {
    width: auto;
  }
  .two,
  .equal {
    grid-template-columns: 1fr;
  }
  .route {
    grid-template-columns: 1fr 1fr;
  }
  .page-head {
    align-items: flex-start;
  }
  .owner {
    font-size: 10px;
  }
  .stats {
    grid-template-columns: repeat(2, 1fr);
    row-gap: 12px;
  }
  .stat:nth-child(even) {
    border: 0;
  }
  .crumb {
    font-size: 11px;
  }
  main {
    padding: 17px 14px;
  }
  footer .action {
    font-size: 12px;
  }
  .notice {
    display: block;
  }
  .notice b {
    margin-right: 7px;
  }
}
