:root {
  color: #e7f6f3;
  background: #061014;
  font-family: "Segoe UI", "PingFang SC", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-width: 320px;
  margin: 0;
  background:
    linear-gradient(rgba(90, 168, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(62, 224, 196, 0.045) 1px, transparent 1px),
    #061014;
  background-size: 48px 48px;
}

a { color: inherit; }

a:focus-visible { outline: 2px solid #3ee0c4; outline-offset: 3px; }

.shell { width: min(920px, calc(100% - 40px)); margin: 0 auto; }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 26px 0;
  border-bottom: 1px solid rgba(98, 230, 210, 0.18);
}

.brand { color: #e7f6f3; font-weight: 700; letter-spacing: 0.08em; text-decoration: none; }

.brand::before {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 9px;
  border: 2px solid #3ee0c4;
  content: "";
}

.topbar nav { display: flex; flex-wrap: wrap; gap: 16px; color: #8aa8a4; font-size: 14px; }
.topbar nav a { text-decoration: none; }
.topbar nav a:hover { color: #3ee0c4; }

main { padding: 68px 0 48px; }

.eyebrow { margin: 0 0 13px; color: #3ee0c4; font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; }

h1, h2, h3 { color: #e7f6f3; }
h1 { max-width: 800px; margin: 0; font-size: clamp(34px, 6vw, 54px); line-height: 1.16; }
h2 { margin: 0; font-size: clamp(23px, 4vw, 32px); line-height: 1.35; }
h3 { margin: 0; font-size: 18px; line-height: 1.5; }
p, li { color: #b3c7c3; line-height: 1.85; }

.lead { max-width: 760px; margin: 22px 0 0; font-size: 18px; }

.jump { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; }
.jump a { padding: 8px 12px; border: 1px solid rgba(98, 230, 210, 0.23); color: #b3c7c3; font-size: 14px; text-decoration: none; }
.jump a:hover { border-color: #3ee0c4; color: #3ee0c4; }

section { margin-top: 68px; }
.section-intro { max-width: 760px; margin: 13px 0 24px; }

.definition {
  padding: 24px;
  border-left: 3px solid #3ee0c4;
  background: rgba(11, 26, 32, 0.82);
}

.definition p { margin: 0; color: #e7f6f3; font-size: 18px; }

.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.card, .checklist, details {
  padding: 21px;
  border: 1px solid rgba(98, 230, 210, 0.18);
  background: rgba(11, 26, 32, 0.78);
}

.card p { margin: 9px 0 0; }
.number { display: block; margin-bottom: 12px; color: #5aa8ff; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; }

.checklist { padding-left: 38px; }
.checklist li { padding-left: 4px; }

details { padding: 0 20px; }
details + details { margin-top: 12px; }
summary { padding: 18px 28px 18px 0; cursor: pointer; color: #e7f6f3; font-weight: 700; line-height: 1.5; }
details p { margin-top: 0; padding-bottom: 20px; }

.callout {
  padding: 24px;
  border: 1px solid rgba(62, 224, 196, 0.36);
  background: linear-gradient(120deg, rgba(62, 224, 196, 0.1), transparent 60%), rgba(11, 26, 32, 0.88);
}

.callout p { margin: 10px 0 0; }

.document-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  margin-top: 30px;
  border: 1px solid rgba(98, 230, 210, 0.2);
  background: rgba(98, 230, 210, 0.2);
}

.document-meta div {
  min-height: 92px;
  padding: 16px;
  background: #0b1a20;
}

.document-meta dt {
  color: #7f9f9a;
  font-size: 12px;
}

.document-meta dd {
  margin: 8px 0 0;
  color: #e7f6f3;
  font-size: 14px;
  line-height: 1.55;
}

.source-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.source-list li {
  position: relative;
  margin-top: 10px;
  padding: 16px 18px 16px 42px;
  border: 1px solid rgba(98, 230, 210, 0.18);
  background: rgba(11, 26, 32, 0.78);
}

.source-list li::before {
  position: absolute;
  left: 17px;
  color: #3ee0c4;
  content: "↗";
}

.source-list a { color: #d2efea; }
.source-list a:hover { color: #3ee0c4; }

.tool-intro {
  margin-top: 30px;
  padding: 20px 24px;
  border: 1px solid rgba(90, 168, 255, 0.3);
  background: rgba(11, 26, 32, 0.78);
}

.tool-intro p { margin: 8px 0 0; }

.tool-panel {
  margin-top: 22px;
  border: 1px solid rgba(62, 224, 196, 0.35);
  background: rgba(11, 26, 32, 0.88);
}

.tool-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border-bottom: 1px solid rgba(98, 230, 210, 0.18);
}

.tool-panel-head p { margin: 0; }

.tool-progress {
  color: #3ee0c4 !important;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
}

.check-row {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  padding: 17px 20px;
  border-bottom: 1px solid rgba(98, 230, 210, 0.12);
  color: #d2efea;
  cursor: pointer;
  line-height: 1.6;
}

.check-row:last-of-type { border-bottom: 0; }
.check-row input { width: 17px; height: 17px; margin: 4px 0 0; accent-color: #3ee0c4; }
.check-row small { display: block; margin-top: 4px; color: #8aa8a4; font-size: 13px; }

.tool-actions {
  display: flex;
  justify-content: flex-end;
  padding: 16px 20px;
  border-top: 1px solid rgba(98, 230, 210, 0.12);
}

.tool-actions button,
.topic-filter {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid rgba(98, 230, 210, 0.32);
  background: transparent;
  color: #d2efea;
  font: inherit;
}

.tool-actions button { cursor: pointer; }
.tool-actions button:hover { border-color: #3ee0c4; color: #3ee0c4; }

.topic-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin: 22px 0 14px;
}

.topic-toolbar p { margin: 0; }
.topic-card[hidden] { display: none; }
.topic-tag { margin: 0 0 8px !important; color: #3ee0c4 !important; font-size: 12px; letter-spacing: 0.1em; }

.data-note { margin-top: 14px; color: #8aa8a4; font-size: 13px; }

.related { display: flex; flex-wrap: wrap; gap: 12px; }
.related a { padding: 11px 14px; border: 1px solid rgba(90, 168, 255, 0.35); color: #e7f6f3; text-decoration: none; }
.related a:hover { border-color: #3ee0c4; color: #3ee0c4; }

footer { padding: 28px 0 42px; border-top: 1px solid rgba(98, 230, 210, 0.18); }
footer p { margin: 7px 0 0; font-size: 13px; }

@media (max-width: 640px) {
  .shell { width: min(100% - 32px, 920px); }
  .topbar { align-items: flex-start; flex-direction: column; }
  main { padding-top: 46px; }
  section { margin-top: 48px; }
  .grid { grid-template-columns: 1fr; }
  .document-meta { grid-template-columns: repeat(2, 1fr); }
  .tool-panel-head { align-items: flex-start; flex-direction: column; }
}
