:root {
  --bg: #f5f7f8;
  --ink: #1e3039;
  --muted: #74818a;
  --line: #e1e7e9;
  --green: #176f61;
  --pale: #edf6f1;
  --red: #b55247;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font:
    14px/1.7 Inter,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select,
summary {
  -webkit-tap-highlight-color: transparent;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button {
  cursor: pointer;
  border-radius: 7px;
  padding: 10px 17px;
  white-space: nowrap;
  transition: background 0.15s;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
.primary {
  background: var(--green);
  color: white;
  border: 1px solid var(--green);
}
.primary:hover {
  background: #12594e;
}
.secondary {
  background: white;
  border: 1px solid #d4dfe0;
  color: var(--ink);
}
.secondary:hover {
  background: #f0f5f4;
}
button:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 3px solid #75b6a7;
  outline-offset: 3px;
}
[hidden] {
  display: none !important;
}
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 238px;
  background: #fff;
  border-right: 1px solid var(--line);
  padding: 30px 22px;
  display: flex;
  flex-direction: column;
}
.brand {
  display: flex;
  gap: 11px;
  align-items: center;
  font-weight: 750;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.5;
}
.brand small {
  display: block;
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 2px;
}
.brand-mark {
  background: var(--green);
  color: white;
  width: 37px;
  height: 39px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  font-size: 23px;
}
.nav-label {
  font-size: 10px;
  color: #97a3a8;
  letter-spacing: 1.5px;
  margin: 50px 12px 14px;
}
nav a {
  display: block;
  color: #65767c;
  padding: 12px;
  border-radius: 7px;
  margin-bottom: 7px;
  font-size: 13px;
}
nav a.selected {
  background: var(--pale);
  color: var(--green);
  font-weight: 650;
}
.sidebar-foot {
  margin-top: auto;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-size: 11px;
  color: var(--muted);
}
.sidebar-foot b {
  color: #52636a;
  font-weight: 600;
}
main {
  margin-left: 238px;
  max-width: 1620px;
  padding: 38px 48px 20px;
}
header {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 30px;
}
.breadcrumb {
  color: var(--muted);
  font-size: 12px;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.8px;
  margin: 15px 0 8px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  margin: 6px 0 12px;
}
p {
  margin: 10px 0;
}
.subtitle {
  color: var(--muted);
  font-size: 13px;
}
.badge {
  margin-top: 10px;
  border: 1px solid #d8e7dc;
  background: #f0f7f1;
  color: #527664;
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 11px;
  white-space: nowrap;
}
.panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 25px 28px;
  margin-bottom: 22px;
  box-shadow: 0 2px 4px #16322b03;
}
.section-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 1.7px;
  color: var(--green);
  font-weight: 750;
}
.muted {
  color: var(--muted);
  font-size: 12px;
}
.question {
  background: #f7f9f9;
  border: 1px solid #e8edee;
  border-radius: 7px;
  padding: 17px 18px;
  font-size: 15px;
  margin: 15px 0 20px;
  line-height: 1.8;
}
.controls {
  display: flex;
  gap: 16px;
  align-items: flex-end;
  flex-wrap: wrap;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  color: #6c7c83;
}
select,
input {
  border: 1px solid #d7e0e2;
  border-radius: 6px;
  padding: 10px 12px;
  background: white;
  color: var(--ink);
  min-width: 150px;
  outline-color: #5a9d8f;
}
input {
  width: 100%;
  min-width: 0;
}
.actions {
  margin-left: auto;
  display: flex;
  gap: 10px;
}
.settings {
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 22px;
}
summary {
  cursor: pointer;
  font-size: 12px;
  color: #4d646c;
}
summary span {
  font-size: 11px;
  color: var(--muted);
  margin-left: 10px;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 210px auto;
  gap: 15px;
  align-items: end;
  margin-top: 15px;
}
.fine {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.9;
}
.status {
  font-size: 12px;
  margin-top: 20px;
  color: var(--green);
}
.status.error {
  color: var(--red);
}
.steps {
  display: flex;
  list-style: none;
  margin: 15px 0 0;
  padding: 0;
  gap: 8px;
}
.steps li {
  flex: 1;
  font-size: 11px;
  color: #7c8c91;
  border-top: 3px solid #edf0f0;
  padding-top: 8px;
}
.steps li.active {
  border-color: var(--green);
  color: var(--green);
}
.empty {
  text-align: center;
  border: 1px dashed #d7e0e2;
  border-radius: 10px;
  padding: 35px 20px;
  margin-bottom: 24px;
  color: var(--muted);
}
.empty-symbol {
  font-size: 27px;
  color: var(--green);
  display: block;
}
.empty h2 {
  color: #435b62;
}
.empty p {
  font-size: 12px;
}
.mini-flow {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 22px;
  font-size: 11px;
}
.mini-flow i {
  color: #96aba9;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 27px 0 15px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 22px;
}
.metric {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px;
}
.metric-label {
  font-size: 11px;
  color: var(--muted);
}
.metric-value {
  font-size: 26px;
  letter-spacing: -0.8px;
  font-weight: 650;
  margin: 10px 0 7px;
  overflow-wrap: anywhere;
}
.metric-prev {
  font-size: 11px;
  color: var(--muted);
}
.analysis-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 22px;
}
.analysis-grid .panel {
  min-width: 0;
}
.factor {
  display: grid;
  grid-template-columns: 104px 1fr 108px;
  gap: 12px;
  align-items: center;
  margin: 21px 0;
  font-size: 12px;
}
.track {
  height: 12px;
  background: #f3f0ec;
  border-radius: 3px;
  overflow: hidden;
}
.bar {
  height: 100%;
  background: var(--red);
  border-radius: 3px;
}
.bar.positive {
  background: var(--green);
}
.factor-amount {
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.verified {
  font-size: 11px;
  color: var(--green);
  border-top: 1px solid var(--line);
  padding-top: 13px;
}
.insight {
  border-bottom: 1px solid #edf0ef;
  padding: 9px 0 13px;
  font-size: 13px;
}
.insight:last-child {
  border: 0;
}
.insight b {
  font-size: 24px;
  font-weight: 650;
  color: var(--green);
  display: block;
  margin-bottom: 3px;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 12px;
  white-space: nowrap;
}
th {
  font-weight: 500;
  color: var(--muted);
  text-align: left;
  background: #fafbfb;
}
td,
th {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
}
td:first-child {
  font-weight: 600;
}
pre {
  background: #f5f8f8;
  border: 1px solid #e2e8e8;
  border-radius: 6px;
  padding: 16px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font:
    12px/1.8 Consolas,
    "Microsoft YaHei",
    monospace;
  color: #35515a;
  max-height: 430px;
  overflow: auto;
}
details + details {
  margin-top: 14px;
}
.attempt {
  margin: 15px 0;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.attempt-label {
  font-size: 12px;
  color: var(--green);
}
.attempt-label.rejected {
  color: var(--red);
}
.architecture-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px 30px;
  margin: 20px 0;
}
.architecture-grid b {
  font-size: 13px;
}
.architecture-grid p {
  font-size: 12px;
  color: #6b7d84;
}
.architecture-grid code {
  font:
    10px Consolas,
    monospace;
  color: var(--green);
  overflow-wrap: anywhere;
}
footer {
  display: flex;
  justify-content: space-between;
  color: #92a0a5;
  font-size: 10px;
  padding: 5px 0 20px;
}
@media (min-width: 1700px) {
  main {
    margin-right: auto;
    margin-left: max(238px, calc((100vw - 1380px) / 2));
    max-width: 1300px;
  }
}
@media (max-width: 1200px) {
  main {
    padding: 30px 26px;
  }
  .sidebar {
    width: 205px;
    padding: 26px 16px;
  }
  main {
    margin-left: 205px;
  }
  .analysis-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 23px;
  }
  .actions {
    margin-left: 0;
  }
  .settings-grid {
    grid-template-columns: 1fr 180px;
  }
  .settings-grid button {
    justify-self: start;
  }
}
@media (max-width: 760px) {
  .sidebar {
    position: static;
    width: 100%;
    padding: 15px 20px;
    border-bottom: 1px solid var(--line);
  }
  .nav-label,
  .sidebar-foot {
    display: none;
  }
  nav {
    display: flex;
    gap: 5px;
    overflow: auto;
    margin-top: 15px;
  }
  nav a {
    font-size: 11px;
    padding: 7px;
    white-space: nowrap;
    margin: 0;
  }
  main {
    margin: 0;
    padding: 23px 14px;
  }
  .brand {
    font-size: 15px;
  }
  .brand-mark {
    width: 30px;
    height: 32px;
  }
  header {
    display: block;
  }
  .badge {
    display: inline-block;
    margin-top: 7px;
  }
  h1 {
    font-size: 26px;
  }
  .panel {
    padding: 20px 17px;
  }
  .section-top > .muted {
    display: none;
  }
  .question {
    font-size: 13px;
  }
  .controls {
    gap: 12px;
  }
  .controls label {
    flex: 1;
  }
  .controls select {
    min-width: 0;
    width: 100%;
  }
  .actions {
    width: 100%;
    flex-wrap: wrap;
  }
  .actions button {
    flex: 1;
    padding: 10px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .settings summary span {
    display: block;
    margin: 5px 0;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metric-value {
    font-size: 24px;
  }
  .factor {
    grid-template-columns: 88px 1fr 95px;
    gap: 7px;
    font-size: 11px;
  }
  .architecture-grid {
    grid-template-columns: 1fr;
  }
  .steps {
    gap: 6px;
  }
  .steps li {
    font-size: 10px;
  }
  .result-heading button {
    font-size: 11px;
    padding: 8px;
  }
  .mini-flow {
    gap: 10px;
  }
  .empty {
    padding: 25px 12px;
  }
  footer {
    display: block;
  }
  .subtitle {
    font-size: 12px;
  }
}
