:root {
  --ink: #213440;
  --muted: #7c878c;
  --paper: #f3f4f1;
  --line: #e1e5df;
  --green: #157568;
  --mint: #87d8bd;
  --navy: #101f2c;
  --blue: #547dbe;
  --sand: #c19858;
  --font: "Inter", "Noto Sans CJK SC", "Microsoft YaHei", system-ui, sans-serif;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  border: 0;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #74bcae;
  outline-offset: 4px;
}
input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #93c7b9;
  outline-offset: 2px;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
a {
  color: var(--green);
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.hidden {
  display: none !important;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.mono {
  font-family: "IBM Plex Mono", "Cascadia Code", monospace;
}
.app-shell {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr);
  min-height: 100vh;
}
.rail {
  background: var(--navy);
  color: #9aabb7;
  display: flex;
  align-items: center;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  z-index: 5;
}
.monogram {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-top: 28px;
  color: var(--mint);
  border: 1px solid #476157;
  border-radius: 13px;
  background: #1a3437;
}
.monogram svg {
  width: 32px;
  height: 32px;
  stroke-width: 1.8;
}
.rail-caption {
  font: 9px monospace;
  letter-spacing: 2px;
  margin-top: 11px;
  color: #70818e;
}
.rail nav {
  margin-top: 54px;
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 0 11px;
}
.nav-item {
  display: flex;
  flex-direction: column;
  gap: 9px;
  align-items: center;
  justify-content: center;
  color: #7f95a4;
  background: transparent;
  border-radius: 10px;
  min-height: 68px;
  padding: 12px 4px;
  font-size: 10px;
  letter-spacing: 0.3px;
  position: relative;
}
.nav-item svg {
  width: 23px;
  height: 23px;
}
.nav-item.active {
  background: #213b42;
  color: #a2e2c9;
}
.nav-item.active:before {
  content: "";
  position: absolute;
  left: -11px;
  top: 20px;
  height: 26px;
  width: 3px;
  background: var(--mint);
  border-radius: 0 3px 3px 0;
}
.nav-item:hover {
  background: #1d3442;
  color: white;
}
.rail-bottom {
  margin-top: auto;
  font-size: 9px;
  line-height: 1.7;
  text-align: center;
  letter-spacing: 1px;
  padding-bottom: 26px;
  color: #6b8292;
}
.online-dot {
  display: block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--mint);
  margin: 0 auto 10px;
}
.app-body {
  min-width: 0;
}
.topbar {
  height: 88px;
  padding: 0 3.2%;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8f9f6;
}
.brand {
  font-size: 23px;
  letter-spacing: 4px;
  font-weight: 650;
}
.brand span {
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 400;
  color: #7c8888;
  margin-left: 22px;
  padding-left: 22px;
  border-left: 1px solid #d9dfd8;
}
.top-actions {
  display: flex;
  gap: 20px;
  align-items: center;
}
.connection {
  font-size: 11px;
  color: #5e736d;
  display: flex;
  align-items: center;
  gap: 7px;
}
.connection:before {
  content: "";
  width: 6px;
  height: 6px;
  background: #a7b4ad;
  border-radius: 50%;
}
.connection.live:before {
  background: #319f78;
  box-shadow: 0 0 0 3px #319f7810;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  border-radius: 7px;
  padding: 12px 20px;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.5;
  transition:
    background 0.18s,
    transform 0.18s;
}
.button:hover {
  transform: translateY(-1px);
}
.button svg {
  width: 17px;
  height: 17px;
}
.dark {
  background: #1f3441;
  color: #f5f9f7;
}
.dark:hover {
  background: #314b57;
}
.primary {
  background: var(--green);
  color: white;
}
.primary:hover {
  background: #126456;
}
.secondary {
  background: #e5ebe5;
  color: #365d52;
}
.text-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: none;
  color: var(--green);
  font-size: 12px;
  padding: 7px 0;
}
.text-button:hover {
  text-decoration: underline;
}
.text-button svg {
  width: 17px;
}
.icon-button {
  background: transparent;
  display: inline-flex;
  padding: 6px;
  color: var(--muted);
  border-radius: 4px;
}
.icon-button:hover {
  background: #e9efea;
  color: var(--green);
}
main {
  max-width: 1700px;
  padding: 34px 3.2% 0;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  margin: 0 0 26px;
}
.eyebrow {
  font-size: 9px;
  font-weight: 550;
  letter-spacing: 2px;
  color: #6b8a7e;
  display: flex;
  align-items: center;
  gap: 9px;
}
.eyebrow > span {
  width: 17px;
  height: 1px;
  background: #6b8a7e;
}
h1 {
  font-size: 31px;
  letter-spacing: 1px;
  line-height: 1.5;
  margin: 12px 0 6px;
  font-weight: 600;
}
h1 span {
  color: #467c6d;
}
p {
  margin: 0;
}
.page-heading p {
  color: #89938e;
  font-size: 12px;
  letter-spacing: 0.3px;
}
.project-stamp {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-right: 12px;
}
.stamp-icon {
  border: 1px solid #cfdad1;
  border-radius: 50%;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6c8d7d;
}
.stamp-icon svg {
  width: 24px;
  height: 24px;
}
.project-stamp small {
  font-size: 10px;
  color: #8a958d;
  display: block;
}
.project-stamp strong {
  display: block;
  font-size: 13px;
  font-weight: 500;
  margin: 1px 0;
}
.project-stamp .mono {
  font-size: 8px;
  color: #94a198;
  letter-spacing: 0.6px;
}
.overview {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1.6fr;
  background: #fafbf9;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px 0;
  margin-bottom: 25px;
}
.overview-item {
  display: flex;
  gap: 15px;
  align-items: center;
  padding: 0 25px;
  border-right: 1px solid var(--line);
}
.metric-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 43px;
  border-radius: 9px;
}
.metric-icon.mint {
  color: #4b8f76;
  background: #eaf2ec;
}
.metric-icon.blue {
  color: #7496b0;
  background: #eaf0f3;
}
.metric-icon.sand {
  color: #b19262;
  background: #f2efe5;
}
.metric-label {
  font-size: 10px;
  color: #849289;
  display: block;
}
.overview-item strong {
  font-size: 28px;
  font-weight: 550;
  line-height: 1.3;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
  margin-right: 12px;
}
.overview-item small {
  font-size: 9px;
  color: #8d9790;
  white-space: nowrap;
}
.overview-note {
  padding: 1px 25px;
}
.tiny-label {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #8c9c94;
  font-weight: 500;
}
.overview-note strong {
  display: block;
  font-size: 11px;
  font-weight: 500;
  margin: 3px 0;
  color: #727e67;
}
.overview-note p {
  font-size: 10px;
  color: #94a090;
}
.question-bar {
  background: #fff;
  border: 1px solid #dce3dc;
  border-radius: 10px;
  box-shadow: 0 3px 10px #20352703;
  margin-bottom: 17px;
}
.question-main {
  display: flex;
  align-items: center;
  gap: 15px;
  padding: 15px 17px 13px;
}
.search-icon {
  color: #6d8b7b;
  margin-left: 4px;
}
.question-main input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  padding: 8px 4px;
  font-size: 14px;
  color: #3d5147;
}
.question-main input:focus {
  outline: 0;
}
.query-options {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #edf0eb;
  padding: 10px 20px;
  color: #9aa39c;
  font-size: 10px;
  min-height: 39px;
}
.query-options select {
  font-size: 10px;
  color: #577e6c;
  border: 0;
  background: none;
  max-width: 170px;
}
.query-options .tiny-label {
  font-size: 8px;
  letter-spacing: 1px;
}
.query-divider {
  height: 11px;
  width: 1px;
  background: #d9e1d8;
}
.case-tag {
  font-size: 9px;
  margin-left: auto;
  white-space: nowrap;
  color: #8a978c;
}
.path-inputs {
  display: flex;
  gap: 15px;
  padding: 0 20px 16px;
}
.path-inputs label {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 11px;
  flex: 1;
}
.path-inputs input {
  min-width: 0;
  width: 100%;
  font-size: 11px;
}
.research-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 18px;
  align-items: stretch;
}
.graph-panel {
  background: #112331;
  border: 1px solid #223a45;
  border-radius: 11px;
  overflow: hidden;
  min-width: 0;
  box-shadow: 0 10px 24px #162a3410;
}
.graph-header {
  height: 86px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 17px 24px 9px;
}
.graph-header .tiny-label {
  color: #557989;
  font-size: 8px;
}
.graph-header h2 {
  font-size: 17px;
  letter-spacing: 1px;
  color: #d9e7e6;
  font-weight: 500;
  margin: 3px 0 0;
}
.graph-header h2 span {
  font-size: 10px;
  color: #6b8c9a;
  letter-spacing: 0.5px;
  margin-left: 9px;
  font-weight: 400;
}
.graph-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.graph-header-actions > span {
  color: #74909d;
  font-size: 9px;
  white-space: nowrap;
}
.canvas-button {
  font-size: 10px;
  color: #a7c5cb;
  background: #203746;
  border: 1px solid #355060;
  padding: 5px 10px;
  border-radius: 5px;
  white-space: nowrap;
}
.canvas-button:hover,
.canvas-button[aria-pressed="true"] {
  background: #2d5357;
  color: #b3edd7;
}
.graph-search {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 24px 7px;
}
.graph-search > svg {
  width: 14px;
  height: 14px;
  color: #668e9a;
}
.graph-search input:not([type="checkbox"]) {
  background: transparent;
  border: 0;
  color: #aac6cb;
  flex: 1;
  width: 70px;
  font-size: 10px;
  padding: 6px 0;
}
.graph-search .check {
  font-size: 9px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 5px;
  color: #7495a0;
}
.check input {
  width: 12px;
  accent-color: #69bda4;
}
.graph-stage {
  position: relative;
  background-image:
    radial-gradient(#3b586f55 0.7px, transparent 0.7px),
    radial-gradient(ellipse at 45% 50%, #193543 0%, #112331 70%);
  background-size:
    19px 19px,
    100% 100%;
  min-height: 350px;
}
.graph-stage > svg {
  display: block;
  width: 100%;
  height: 430px;
  touch-action: none;
  cursor: grab;
  stroke: none;
}
.graph-stage > svg:active {
  cursor: grabbing;
}
.canvas-meta {
  position: absolute;
  left: 24px;
  bottom: 16px;
  display: flex;
  gap: 7px;
  align-items: center;
  pointer-events: none;
  font-size: 8px;
  color: #5e8393;
  letter-spacing: 0.5px;
}
.canvas-dot {
  width: 4px;
  height: 4px;
  background: #7eb9aa;
  border-radius: 50%;
}
.graph-controls {
  position: absolute;
  bottom: 16px;
  right: 20px;
  display: flex;
  border: 1px solid #355464;
  border-radius: 6px;
  background: #1b3546;
  overflow: hidden;
}
.graph-controls button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 29px;
  height: 28px;
  background: none;
  color: #9cbdc7;
  font-size: 17px;
}
.graph-controls button + button {
  border-left: 1px solid #355464;
}
.graph-controls button:hover {
  background: #2a4b59;
  color: white;
}
.graph-controls svg {
  width: 14px;
  height: 14px;
}
.graph-legend {
  min-height: 48px;
  display: flex;
  align-items: center;
  gap: 17px;
  padding: 10px 24px;
  border-top: 1px solid #29414c;
  font-size: 8px;
  color: #6c8d9c;
  flex-wrap: wrap;
}
.graph-legend > span {
  display: flex;
  align-items: center;
  gap: 5px;
}
.dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
.grade {
  background: #97dabb;
}
.batch {
  background: #73a4d0;
}
.process {
  background: #c2b0de;
}
.observation {
  background: #d0b078;
}
.graph-legend .legend-note {
  margin-left: auto;
  color: #486e80;
  font-size: 8px;
}
.node {
  cursor: pointer;
  outline: none;
}
.node .node-shape {
  transition:
    stroke-width 0.15s,
    filter 0.15s;
}
.node:hover .node-shape,
.node:focus .node-shape {
  stroke: #e3f5e8;
  stroke-width: 2.5;
}
.node.selected .node-shape {
  stroke: #dffcec;
  stroke-width: 2.5;
  filter: url(#glow);
}
#graph text {
  font-family: var(--font);
  pointer-events: none;
}
.node-label {
  fill: #d5e2e6;
  font-size: 12px;
  font-weight: 500;
  stroke: none;
}
.node-type {
  fill: #7799a8;
  font-size: 8px;
  letter-spacing: 0.8px;
  stroke: none;
}
.edge {
  cursor: pointer;
}
.edge .edge-line {
  stroke: #4b6b7e;
  stroke-width: 1.1;
  fill: none;
  opacity: 0.7;
  transition: stroke 0.2s;
}
.edge .edge-hit {
  stroke: transparent;
  stroke-width: 16;
  fill: none;
}
.edge:hover .edge-line,
.edge:focus .edge-line {
  stroke: #9dd8c3;
  stroke-width: 2.5;
  opacity: 1;
}
.edge.highlight .edge-line {
  stroke: #a3d5b8;
  stroke-width: 2;
  opacity: 1;
}
.edge-label {
  fill: #7899a9;
  font-size: 7px;
  stroke: none;
  display: none;
}
.show-labels .edge-label,
.edge:hover .edge-label {
  display: block;
}
.node.dimmed {
  opacity: 0.65;
}
.edge.dimmed {
  opacity: 0.5;
}
.column-label {
  fill: #496f80;
  font-size: 8px;
  letter-spacing: 1.7px;
  stroke: none;
}
.insight-panel {
  background: #fdfefb;
  border: 1px solid var(--line);
  border-radius: 11px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  max-height: 615px;
  box-shadow: 0 4px 14px #20352703;
}
.insight-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 21px 12px;
}
.insight-head .tiny-label {
  font-size: 8px;
  letter-spacing: 1.3px;
}
.insight-head h2 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0.5px;
}
.result-state {
  background: #e7f1e8;
  color: #51805e;
  font-size: 9px;
  border-radius: 4px;
  padding: 3px 8px;
}
.result-state.warning {
  background: #f7edda;
  color: #9c7640;
}
.insight-tabs {
  display: flex;
  margin: 0 21px;
  border-bottom: 1px solid #e4e9e0;
  gap: 20px;
}
.insight-tab {
  font-size: 10px;
  white-space: nowrap;
  background: none;
  color: #8b988e;
  padding: 13px 0 10px;
  border-bottom: 2px solid transparent;
}
.insight-tab.active {
  color: #3c7260;
  border-color: #3c7260;
  font-weight: 600;
}
.insight-content {
  flex: 1;
  min-height: 330px;
  padding: 20px 21px;
  overflow: auto;
  font-size: 12px;
  scrollbar-width: thin;
  scrollbar-color: #cbd6c9 transparent;
}
.insight-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  border-top: 1px solid #e9ede5;
  padding: 9px 20px;
  color: #9aa395;
  font-size: 9px;
}
.result-kicker {
  font-size: 10px;
  color: #798d7e;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.result-value {
  font-size: 51px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -2px;
  margin: 13px 0 9px;
  color: #28493d;
}
.result-value span {
  font-size: 20px;
  font-weight: 400;
  color: #85958a;
  margin-left: 9px;
  letter-spacing: 0;
}
.result-value small {
  font-size: 10px;
  color: #9aab9d;
  letter-spacing: 0;
  margin-left: 12px;
}
.result-caption {
  color: #8f9a8e;
  font-size: 10px;
  line-height: 1.8;
}
.condition-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 17px 0;
}
.condition-chips span {
  font-size: 10px;
  padding: 4px 9px;
  border: 1px solid #dde6d9;
  border-radius: 4px;
  background: #f6f8f2;
  color: #657b65;
}
.result-section-title {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.4px;
  margin: 20px 0 9px;
  color: #5b7160;
}
.mini-info {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 10px;
  border-top: 1px solid #edf0e9;
  padding: 8px 0;
  line-height: 1.6;
}
.mini-info > span:first-child {
  color: #91a08f;
}
.mini-info > span:last-child {
  color: #5d7762;
  text-align: right;
  overflow-wrap: anywhere;
  min-width: 0;
}
.boundary-note {
  margin-top: 15px;
  background: #f4f1e7;
  border-left: 2px solid #c8b383;
  border-radius: 0 5px 5px 0;
  padding: 10px 11px;
  font-size: 10px;
  color: #978460;
  line-height: 1.85;
}
.result-copy {
  line-height: 1.95;
  color: #617565;
  font-size: 12px;
}
.step-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  color: #697e70;
}
.step-number {
  font: 9px monospace;
  background: #ebf2e9;
  color: #60866b;
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.mini-button {
  font-size: 10px;
  background: #edf3ea;
  color: #4f7c60;
  padding: 6px 10px;
  border-radius: 4px;
  margin-top: 10px;
}
.path-panel {
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fafcf7;
  padding: 17px 22px 14px;
  margin: 16px 0 28px;
}
.path-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
}
.path-panel-head .tiny-label {
  font-size: 8px;
}
.path-panel-head strong {
  font-size: 11px;
  font-weight: 500;
  color: #687b64;
}
.path-panel-head select {
  margin-left: auto;
  border: 0;
  background: none;
  color: #8a9a81;
  font-size: 9px;
  max-width: 160px;
}
.path-trail {
  display: flex;
  gap: 9px;
  align-items: center;
  overflow: auto;
  padding: 15px 0 8px;
  scrollbar-width: thin;
}
.trail-node {
  flex: 0 0 auto;
  border: 1px solid #dce5d6;
  background: #f3f6ed;
  border-radius: 5px;
  padding: 7px 12px;
  color: #5b7356;
  font-size: 10px;
  text-align: left;
  min-width: 108px;
}
.trail-node small {
  display: block;
  font-size: 8px;
  color: #95a08d;
  margin-bottom: 2px;
}
.trail-node:hover {
  background: #e4eedb;
  border-color: #b5c7a8;
}
.trail-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  color: #9fae93;
  flex: 0 0 auto;
}
.trail-link span {
  font: 7px monospace;
}
.trail-link b {
  font-size: 17px;
  font-weight: 400;
  line-height: 1.2;
}
.path-note {
  font-size: 9px;
  color: #9ba58e;
  margin-top: 4px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}
.section-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.5px;
}
.section-heading h2 {
  font-size: 20px;
  font-weight: 550;
  letter-spacing: 0.5px;
  margin: 7px 0 0;
}
.section-heading p {
  font-size: 12px;
  color: #8c988e;
  margin-top: 10px;
}
.featured-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 13px;
}
.case-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fafcf8;
  text-align: left;
  color: var(--ink);
  padding: 20px 18px;
  position: relative;
  transition:
    transform 0.15s,
    border-color 0.15s,
    box-shadow 0.15s;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.case-card:hover {
  transform: translateY(-3px);
  border-color: #aabeb1;
  box-shadow: 0 6px 17px #2c534b09;
}
.card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #849d8d;
  font-size: 8px;
  letter-spacing: 1px;
}
.card-top svg {
  width: 17px;
  height: 17px;
}
.case-card h3 {
  font-size: 13px;
  font-weight: 500;
  margin: 13px 0 7px;
  letter-spacing: 0.3px;
}
.case-card p {
  font-size: 10px;
  color: #95a08f;
  line-height: 1.9;
  margin-bottom: 15px;
}
.card-bottom {
  font-size: 8px;
  color: #839980;
  margin-top: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.card-bottom span {
  padding: 3px 6px;
  border: 1px solid #e3e9db;
  border-radius: 3px;
}
.card-bottom b {
  font-size: 16px;
  font-weight: 400;
  color: #8aab95;
}
.case-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.case-grid .case-card {
  padding: 26px;
  min-height: 200px;
}
.case-grid .case-card h3 {
  font-size: 17px;
}
.case-grid .case-card p {
  font-size: 12px;
}
.case-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 25px 0;
}
.case-filters button {
  border: 1px solid #dce3da;
  background: transparent;
  border-radius: 5px;
  padding: 7px 14px;
  font-size: 11px;
  color: #82917e;
}
.case-filters button.active {
  background: #dcebe1;
  color: #48745b;
  border-color: #c6d9cc;
}
.small-badge {
  font-size: 10px;
  color: #778c73;
  background: #e7eee4;
  border: 1px solid #d8e2d4;
  border-radius: 5px;
  padding: 7px 12px;
  white-space: nowrap;
}
.evidence-card {
  border: 1px solid #e2e9dc;
  background: #f8faf5;
  border-radius: 6px;
  padding: 13px;
  margin-bottom: 10px;
}
.evidence-card h3 {
  font-size: 11px;
  margin: 7px 0;
  color: #527056;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.evidence-card p {
  font-size: 10px;
  color: #899680;
  overflow-wrap: anywhere;
  line-height: 1.85;
}
.evidence-card .source-meta {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 8px;
  color: #99a58d;
  margin-top: 10px;
}
.source-meta span {
  padding: 2px 5px;
  border: 1px solid #e0e7d8;
  border-radius: 3px;
}
.evidence-card a {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  font-size: 10px;
  margin-top: 7px;
}
.evidence-archive {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.evidence-archive .evidence-card {
  padding: 23px;
  margin: 0;
}
.evidence-archive .evidence-card h3 {
  font-size: 14px;
}
.evidence-archive .evidence-card p {
  font-size: 12px;
}
.metadata-card {
  background: #fafcf7;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 25px;
  margin-top: 22px;
}
.metadata-card h3 {
  font-size: 14px;
  margin: 0 0 15px;
  font-weight: 500;
}
dl {
  margin: 0;
  display: grid;
  grid-template-columns: 95px minmax(0, 1fr);
  gap: 9px;
  font-size: 11px;
}
dt {
  color: #92a18b;
}
dd {
  margin: 0;
  color: #586f51;
  overflow-wrap: anywhere;
}
.detail-heading {
  font-size: 17px;
  margin: 8px 0 18px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.type-badge {
  font: 9px monospace;
  letter-spacing: 0.5px;
  color: #7e9d7a;
  background: #ecf3e7;
  border-radius: 3px;
  padding: 4px 7px;
  display: inline-block;
}
.detail-id {
  font: 9px/1.7 monospace;
  overflow-wrap: anywhere;
  color: #9aac91;
  margin: 15px 0;
}
.empty-state {
  padding: 20px 5px;
  font-size: 12px;
  color: #a1ab98;
  line-height: 2;
}
.rank-row {
  padding: 12px 0;
  border-top: 1px solid #e5ece0;
}
.rank-head {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 12px;
  color: #5b7659;
}
.rank-head .rank-number {
  font: 9px monospace;
  color: #90a486;
}
.rank-head strong {
  font-weight: 500;
  overflow-wrap: anywhere;
}
.rank-head .rank-score {
  margin-left: auto;
  font: 9px monospace;
  color: #a3af96;
}
.rank-bars {
  margin-top: 8px;
  display: grid;
  gap: 4px;
}
.rank-line {
  display: grid;
  grid-template-columns: 42px 1fr 29px;
  gap: 8px;
  align-items: center;
  font-size: 8px;
  color: #94a48a;
}
.rank-track {
  height: 3px;
  background: #e9eee3;
  position: relative;
}
.rank-track svg {
  width: 100%;
  height: 3px;
  display: block;
  stroke: none;
}
.rank-line b {
  font: 8px monospace;
  font-weight: 400;
  text-align: right;
}
.compact-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  margin: 12px 0;
}
.compact-table th {
  text-align: left;
  color: #8c9d82;
  font-weight: 400;
  padding: 7px 4px;
  border-bottom: 1px solid #dce5d4;
}
.compact-table td {
  padding: 10px 4px;
  border-bottom: 1px solid #e8eee1;
  color: #57704f;
  white-space: nowrap;
}
.refusal-icon {
  font-size: 28px;
  color: #b59b69;
  line-height: 1;
  margin-bottom: 14px;
}
.api-grid {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 20px;
}
.api-card {
  background: #fafcf8;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 25px;
  min-width: 0;
}
.api-tabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid #dfe6da;
  margin-bottom: 20px;
}
.tab {
  padding: 9px 0 15px;
  background: none;
  color: #91a087;
  border-bottom: 2px solid transparent;
  font-size: 12px;
}
.tab.active {
  border-color: var(--green);
  color: var(--green);
}
.api-card label {
  font-size: 11px;
  display: block;
  color: #7b8f70;
  margin-bottom: 18px;
}
input,
select,
textarea {
  border: 1px solid #dbe3d5;
  border-radius: 5px;
  background: #fbfcf9;
  padding: 10px;
  color: #49633f;
}
.api-card select,
.api-card textarea {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
}
textarea {
  line-height: 1.9;
  resize: vertical;
  font-family: monospace;
}
.helper {
  font-size: 11px;
  line-height: 1.9;
  color: #919d88;
  margin: 10px 0 18px;
}
.response-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.response-heading h3 {
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}
.api-card pre {
  font: 11px/1.8 monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  max-height: 650px;
  overflow: auto;
  padding: 16px;
  background: #edf2e8;
  border-radius: 5px;
  color: #627954;
}
#status:empty {
  display: none;
}
#status {
  background: #f8f0df;
  color: #9e7944;
  border: 1px solid #ecdfc8;
  border-radius: 6px;
  padding: 10px 16px;
  margin: 0 0 15px;
  font-size: 11px;
}
#api-status,
#connect-error {
  color: #ac7546;
  font-size: 11px;
  line-height: 1.8;
  margin-top: 13px;
}
#entity-choice {
  display: block;
  background: #223b49;
  color: #c5dbd9;
  border-color: #456370;
  max-width: calc(100% - 48px);
  margin: 8px 24px;
  font-size: 10px;
}
footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 27px 0 25px;
  margin-top: 30px;
  border-top: 1px solid #dfe5da;
  color: #98a28f;
  font-size: 9px;
}
footer b {
  font-size: 10px;
  letter-spacing: 2px;
  color: #6d8271;
  font-weight: 500;
  margin-right: 10px;
}
dialog {
  width: 440px;
  max-width: calc(100vw - 36px);
  padding: 37px;
  border: 1px solid #d9e2d3;
  border-radius: 14px;
  background: #f9fbf6;
  color: var(--ink);
  box-shadow: 0 30px 90px #10273033;
}
dialog::backdrop {
  background: #12232d88;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font-size: 24px;
  font-weight: 500;
  margin: 16px 0 10px;
}
dialog p {
  font-size: 12px;
  color: #879780;
  line-height: 1.9;
}
dialog label {
  font-size: 11px;
  display: block;
  margin: 22px 0 8px;
  color: #627858;
}
dialog input {
  width: 100%;
  padding: 12px;
  font-size: 12px;
}
dialog .button {
  width: 100%;
  margin-top: 20px;
}
.dialog-close {
  position: absolute;
  top: 14px;
  right: 16px;
  background: none;
  font-size: 22px;
  color: #9ba891;
}
.toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  max-width: calc(100vw - 40px);
  z-index: 20;
  background: #25483f;
  color: #def0df;
  padding: 12px 23px;
  border-radius: 7px;
  font-size: 12px;
  box-shadow: 0 9px 30px #102a3320;
}
.loading #ask {
  opacity: 0.6;
}
.loading .graph-panel {
  opacity: 0.8;
}
.skeleton-message {
  fill: #69899a;
  font-size: 13px;
}
@media (min-width: 1600px) {
  .research-grid {
    grid-template-columns: minmax(0, 1fr) 380px;
  }
  .graph-stage > svg {
    height: 480px;
  }
  .insight-panel {
    max-height: 665px;
  }
  .insight-content {
    font-size: 13px;
  }
  .result-caption,
  .boundary-note {
    font-size: 11px;
  }
  .graph-legend {
    font-size: 9px;
  }
}
@media (max-width: 1250px) {
  .brand span {
    display: none;
  }
  .overview-item {
    padding: 0 16px;
    gap: 10px;
  }
  .overview-item small {
    display: none;
  }
  .overview {
    grid-template-columns: 1fr 1fr 1fr 1.5fr;
  }
  .research-grid {
    grid-template-columns: minmax(0, 1fr) 300px;
  }
  .graph-header {
    padding-left: 18px;
    padding-right: 18px;
  }
  .graph-header-actions > span {
    display: none;
  }
  .graph-legend {
    padding-left: 18px;
    padding-right: 18px;
    gap: 11px;
  }
  .graph-legend .legend-note {
    display: none;
  }
  .project-stamp {
    margin-right: 0;
  }
  .graph-stage > svg {
    height: 430px;
  }
  .insight-head {
    padding: 20px 17px 12px;
  }
  .insight-tabs {
    margin: 0 17px;
    gap: 16px;
  }
  .insight-content {
    padding: 17px;
  }
  .featured-grid {
    gap: 10px;
  }
  .case-card {
    padding: 17px 14px;
  }
  .overview-note {
    padding: 0 17px;
  }
  h1 {
    font-size: 28px;
  }
}
@media (max-width: 1020px) {
  .app-shell {
    grid-template-columns: 74px minmax(0, 1fr);
  }
  .rail nav {
    padding: 0 6px;
  }
  .nav-item.active:before {
    left: -6px;
  }
  .rail-caption {
    font-size: 8px;
  }
  .topbar {
    padding: 0 25px;
    height: 76px;
  }
  .monogram {
    margin-top: 19px;
    width: 41px;
    height: 41px;
  }
  main {
    padding: 28px 25px 0;
  }
  .page-heading {
    align-items: flex-start;
  }
  .project-stamp {
    display: none;
  }
  .research-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .insight-panel {
    max-height: none;
    min-height: 340px;
  }
  .insight-content {
    max-height: 420px;
    min-height: 220px;
  }
  .insight-head {
    padding: 20px 23px 10px;
  }
  .insight-tabs {
    margin: 0 23px;
  }
  .insight-content {
    padding: 20px 23px;
  }
  .graph-stage > svg {
    height: 430px;
  }
  .graph-header-actions > span {
    display: block;
  }
  .featured-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .overview-note {
    display: none;
  }
  .overview {
    grid-template-columns: repeat(3, 1fr);
  }
  .overview-item:last-of-type {
    border: 0;
  }
  .overview-item small {
    display: inline;
  }
  .case-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .evidence-archive {
    grid-template-columns: repeat(2, 1fr);
  }
  .api-grid {
    grid-template-columns: 1fr;
  }
  .path-panel-head {
    flex-wrap: wrap;
  }
  .query-options .tiny-label {
    display: none;
  }
  .top-actions {
    gap: 14px;
  }
}
@media (max-width: 650px) {
  .app-shell {
    display: block;
  }
  .rail {
    height: 62px;
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    border-top: 1px solid #36505b;
    flex-direction: row;
    z-index: 8;
    padding-bottom: env(safe-area-inset-bottom);
  }
  .rail .monogram,
  .rail-caption,
  .rail-bottom {
    display: none;
  }
  .rail nav {
    margin: 0;
    padding: 0 12px;
    flex-direction: row;
    justify-content: space-around;
    width: 100%;
    gap: 5px;
  }
  .nav-item {
    min-height: 50px;
    gap: 3px;
    width: 70px;
    font-size: 9px;
    padding: 7px 3px;
    border-radius: 7px;
  }
  .nav-item svg {
    width: 17px;
    height: 17px;
  }
  .nav-item.active:before {
    display: none;
  }
  .topbar {
    height: 69px;
    padding: 0 17px;
  }
  .brand {
    font-size: 19px;
    letter-spacing: 3px;
  }
  .top-actions {
    gap: 10px;
  }
  .top-actions .connection {
    font-size: 9px;
  }
  .top-actions .button {
    font-size: 10px;
    padding: 9px 11px;
    gap: 7px;
  }
  .top-actions .button svg {
    width: 13px;
  }
  .top-actions .text-button {
    font-size: 9px;
  }
  .top-actions:has(#disconnect:not(.hidden)) #open-connect {
    display: none;
  }
  main {
    padding: 24px 16px 65px;
  }
  .eyebrow {
    font-size: 7px;
    letter-spacing: 1.1px;
  }
  h1 {
    font-size: 26px;
    letter-spacing: 0;
    margin-top: 10px;
  }
  .page-heading {
    margin-bottom: 21px;
  }
  .page-heading p {
    font-size: 10px;
    line-height: 1.8;
  }
  .overview {
    padding: 15px 0;
    margin-bottom: 18px;
  }
  .overview-item {
    padding: 0 12px;
    gap: 0;
  }
  .metric-icon {
    display: none;
  }
  .overview-item strong {
    font-size: 25px;
  }
  .metric-label {
    font-size: 9px;
    margin-bottom: 2px;
  }
  .overview-item small {
    display: none;
  }
  .question-main {
    padding: 12px;
    gap: 8px;
  }
  .question-main .search-icon {
    display: none;
  }
  .question-main input {
    font-size: 11px;
    line-height: 1.8;
    padding: 8px 0;
  }
  .question-main .button {
    font-size: 10px;
    padding: 10px 11px;
    gap: 4px;
    white-space: nowrap;
  }
  .question-main .button svg {
    display: none;
  }
  .query-options {
    padding: 9px 12px;
    gap: 8px;
    font-size: 9px;
  }
  .query-options select {
    font-size: 9px;
    max-width: 160px;
    padding: 3px 0;
  }
  .query-options .query-divider,
  #query-hint {
    display: none;
  }
  .case-tag {
    font-size: 8px;
  }
  .path-inputs {
    flex-direction: column;
    padding: 0 12px 12px;
    gap: 9px;
  }
  .path-inputs label {
    font-size: 9px;
  }
  .path-inputs input {
    font-size: 10px;
    padding: 7px;
  }
  .research-grid {
    gap: 13px;
  }
  .graph-header {
    padding: 15px 15px 8px;
    height: 78px;
  }
  .graph-header h2 {
    font-size: 15px;
  }
  .graph-header h2 span {
    display: none;
  }
  .graph-header-actions {
    gap: 7px;
  }
  .graph-header-actions > span {
    font-size: 8px;
  }
  .canvas-button {
    font-size: 9px;
    padding: 4px 7px;
  }
  .graph-search {
    padding: 0 15px 7px;
    gap: 7px;
  }
  .graph-search input:not([type="checkbox"]) {
    font-size: 9px;
  }
  .graph-search .check {
    font-size: 8px;
    gap: 3px;
  }
  .graph-stage > svg {
    height: 300px;
  }
  .graph-stage {
    min-height: 300px;
  }
  .graph-legend {
    padding: 10px 15px;
    font-size: 7px;
    gap: 9px;
    min-height: 43px;
  }
  .canvas-meta {
    left: 15px;
    bottom: 13px;
    font-size: 7px;
  }
  .graph-controls {
    right: 13px;
    bottom: 13px;
  }
  .graph-controls button {
    width: 25px;
    height: 25px;
  }
  .insight-panel {
    min-height: 340px;
  }
  .insight-content {
    max-height: 460px;
  }
  .path-panel {
    padding: 15px;
    margin: 13px 0 26px;
  }
  .path-panel-head {
    gap: 7px;
  }
  .path-panel-head strong {
    font-size: 10px;
  }
  .path-panel-head .tiny-label {
    font-size: 7px;
  }
  .path-panel-head select {
    font-size: 8px;
    max-width: 120px;
  }
  .path-trail {
    gap: 7px;
  }
  .trail-node {
    min-width: 97px;
    font-size: 9px;
    padding: 7px 10px;
  }
  .trail-link span {
    font-size: 6px;
  }
  .path-note {
    font-size: 8px;
    line-height: 1.8;
  }
  .section-heading {
    gap: 10px;
    align-items: flex-start;
  }
  .section-heading h2 {
    font-size: 18px;
  }
  .section-heading .text-button {
    font-size: 10px;
    white-space: nowrap;
    gap: 4px;
    margin-top: 13px;
  }
  .section-heading .text-button svg {
    width: 13px;
  }
  .featured-grid {
    gap: 10px;
  }
  .case-card {
    padding: 16px 13px;
  }
  .case-card h3 {
    font-size: 12px;
    margin-top: 11px;
  }
  .case-card p {
    font-size: 9px;
    line-height: 1.8;
  }
  .card-top {
    font-size: 7px;
  }
  .card-bottom {
    font-size: 7px;
  }
  .case-grid {
    grid-template-columns: 1fr;
  }
  .case-grid .case-card {
    min-height: 180px;
    padding: 23px;
  }
  .case-grid .case-card h3 {
    font-size: 16px;
  }
  .small-badge {
    font-size: 8px;
    padding: 5px 8px;
  }
  .case-filters {
    gap: 6px;
  }
  .case-filters button {
    font-size: 10px;
    padding: 6px 10px;
  }
  .section-heading p {
    font-size: 10px;
    line-height: 1.9;
  }
  .evidence-archive {
    grid-template-columns: 1fr;
  }
  .evidence-archive .evidence-card h3 {
    font-size: 13px;
  }
  .evidence-archive .evidence-card p {
    font-size: 11px;
  }
  .api-card {
    padding: 18px;
  }
  .api-card pre {
    font-size: 9px;
  }
  .api-card textarea {
    font-size: 11px;
  }
  .metadata-card {
    padding: 18px;
  }
  dl {
    grid-template-columns: 80px minmax(0, 1fr);
    font-size: 10px;
  }
  footer {
    font-size: 8px;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 25px;
    padding: 20px 0;
  }
  footer > span:nth-child(2) {
    display: none;
  }
  #entity-choice {
    max-width: calc(100% - 30px);
    margin: 8px 15px;
  }
  dialog {
    padding: 30px 25px;
  }
  dialog h2 {
    font-size: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Material records are the primary workflow; semantic queries are optional. */
h1 {
  font-size: 25px;
  letter-spacing: 0.3px;
  margin-top: 8px;
}
.page-heading {
  margin-bottom: 20px;
}
.page-heading .eyebrow {
  font-size: 10px;
  letter-spacing: 0.5px;
}
.page-heading p {
  font-size: 12px;
  color: #718078;
}
.overview {
  padding: 14px 0;
  margin-bottom: 20px;
}
.overview-item strong {
  font-size: 25px;
}
.overview-note p {
  color: #74836e;
}
.overview-note strong {
  color: #63775b;
}
.filters-panel {
  background: #fcfdfb;
  border: 1px solid #d9e1d5;
  border-radius: 9px;
  padding: 19px 21px;
  margin-bottom: 11px;
}
.filters-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-bottom: 15px;
}
.filters-heading h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.filters-heading > span {
  font-size: 10px;
  color: #7b8c74;
}
.filters-panel fieldset {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1.6fr 0.8fr 0.8fr 1.4fr 1fr;
  gap: 13px;
}
.filter-grid label {
  font-size: 11px;
  color: #667b5f;
  min-width: 0;
}
.filter-grid input,
.filter-grid select {
  width: 100%;
  margin-top: 7px;
  font-size: 11px;
  padding: 9px 10px;
  min-width: 0;
  height: 36px;
  background: #fff;
}
.unit-input {
  position: relative;
}
.unit-input input {
  padding-right: 40px;
}
.unit-input > span {
  position: absolute;
  right: 10px;
  top: 15px;
  font-size: 10px;
  color: #77846d;
  pointer-events: none;
}
.filters-actions {
  display: flex;
  gap: 20px;
  align-items: center;
  margin-top: 16px;
}
.filters-actions > span {
  font-size: 10px;
  color: #7f8e75;
  margin-right: auto;
  overflow-wrap: anywhere;
}
.filters-actions .button {
  padding: 10px 15px;
  font-size: 11px;
}
.filters-actions .text-button {
  font-size: 10px;
}
.filters-panel fieldset:disabled {
  opacity: 0.5;
}
.semantic-tools {
  margin: 0 0 15px;
  border: 1px solid #dfe5da;
  border-radius: 7px;
  background: #f8faf6;
}
.semantic-tools > summary {
  font-size: 11px;
  color: #69815e;
  cursor: pointer;
  padding: 11px 17px;
}
.semantic-tools[open] > summary {
  border-bottom: 1px solid #e0e8d9;
}
.semantic-tools .question-bar {
  border: 0;
  margin: 0;
  background: #fff;
  border-radius: 0 0 7px 7px;
}
.records-panel {
  padding: 22px;
  background: #fbfcf8;
  border: 1px solid #dbe3d6;
  border-radius: 8px;
  margin-bottom: 28px;
  min-width: 0;
}
.records-panel .section-heading {
  margin-bottom: 16px;
}
.records-panel h2 {
  font-size: 16px;
  margin: 0;
}
.records-panel h2 span {
  font-size: 12px;
  font-weight: 400;
  color: #809475;
}
.records-panel p {
  font-size: 11px;
  color: #748768;
  margin-top: 7px;
}
.records-scroll {
  overflow: auto;
  scrollbar-width: thin;
}
.records-scroll table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 10px;
}
.records-scroll th {
  font-weight: 500;
  color: #6e8462;
  background: #eef3e8;
  white-space: nowrap;
  padding: 11px 10px;
  border-bottom: 1px solid #d8e3cf;
}
.records-scroll td {
  font-size: 11px;
  color: #46623b;
  padding: 12px 10px;
  border-bottom: 1px solid #e5ecde;
  white-space: nowrap;
}
.records-scroll tr:hover td {
  background: #f1f6ec;
}
.records-scroll button {
  border: 0;
  padding: 0;
  background: none;
  color: #377757;
  font-size: 10px;
  text-decoration: underline;
}
.records-panel .button {
  font-size: 11px;
  padding: 9px 12px;
}
.data-warning {
  color: #947a43;
  font-size: 10px;
  margin: 9px 0;
}
.metric-label,
.overview-item small {
  color: #73816f;
}
.result-caption {
  color: #6f806b;
}
.result-copy {
  color: #52694c;
}
.mini-info > span:first-child {
  color: #73866a;
}
.mini-info > span:last-child {
  color: #4d6844;
}
.result-kicker {
  color: #657e5d;
}
.insight-tab {
  font-size: 11px;
  color: #718767;
}
.insight-tab.active {
  color: #32664b;
}
.evidence-card p {
  color: #73856b;
}
.case-card p {
  color: #73856b;
}
.detail-id {
  color: #7a8f6c;
}
.graph-legend .legend-note {
  color: #7c9aa3;
}
.rank-line {
  color: #758c69;
}
.rank-head {
  color: #4b6e41;
}
.rank-score {
  color: #718966;
}
.metadata-card dt {
  color: #72856a;
}
footer {
  font-size: 10px;
  color: #7c8c70;
}
.rail-caption {
  letter-spacing: 1px;
}
.result-section-title {
  font-size: 11px;
}
.path-note {
  color: #7b8c6d;
  font-size: 10px;
}
@media (max-width: 1250px) {
  .filter-grid {
    grid-template-columns: 1fr 1.5fr 1fr;
  }
  .filters-actions > span {
    font-size: 9px;
  }
}
@media (max-width: 650px) {
  h1 {
    font-size: 23px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .page-heading .eyebrow {
    font-size: 9px;
  }
  .filters-panel {
    padding: 16px;
  }
  .filters-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .filters-heading > span {
    font-size: 10px;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .filter-grid input,
  .filter-grid select {
    font-size: 12px;
    height: 40px;
    padding: 9px 8px;
  }
  .filter-grid label {
    font-size: 11px;
  }
  .filter-grid label:nth-child(2) {
    grid-row: 2;
    grid-column: 1/-1;
  }
  .filter-grid label:nth-child(3) {
    grid-row: 3;
  }
  .filter-grid label:nth-child(4) {
    grid-row: 3;
  }
  .filter-grid label:nth-child(5) {
    grid-row: 4;
    grid-column: 1/-1;
  }
  .filter-grid label:nth-child(6) {
    grid-row: 1;
    grid-column: 2;
  }
  .unit-input > span {
    top: 17px;
  }
  .unit-input input {
    padding-right: 38px;
  }
  .filters-actions {
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 16px;
  }
  .filters-actions > span {
    width: 100%;
    font-size: 10px;
  }
  .filters-actions .button {
    margin-left: auto;
    min-height: 40px;
    font-size: 11px;
  }
  .filters-actions .text-button {
    font-size: 11px;
  }
  .semantic-tools > summary {
    padding: 12px 14px;
    line-height: 1.8;
  }
  .graph-controls button {
    width: 34px;
    height: 34px;
  }
  .graph-legend .legend-note {
    display: flex;
    font-size: 8px;
  }
  .records-panel {
    padding: 16px;
  }
  .records-panel .section-heading {
    flex-wrap: wrap;
    gap: 12px;
  }
  .records-panel .button {
    font-size: 11px;
  }
  .records-scroll th {
    font-size: 10px;
  }
  .records-scroll td {
    font-size: 11px;
  }
  .path-note {
    font-size: 9px;
  }
}
.language-switch select {
  padding: 6px 9px;
  background: transparent;
  border: 1px solid #d8e1d3;
  color: #647c59;
  font-size: 11px;
  min-width: 77px;
}
.language-switch {
  display: flex;
  align-items: center;
}
html[lang="en"] .eyebrow {
  letter-spacing: 0.7px;
}
html[lang="en"] .nav-item {
  font-size: 10px;
}
html[lang="en"] .graph-legend {
  gap: 11px;
}
html[lang="en"] .insight-tabs {
  gap: 14px;
}
html[lang="en"] .insight-tab {
  font-size: 10px;
}
html[lang="en"] .query-options {
  flex-wrap: wrap;
}
html[lang="en"] .filters-actions > span {
  line-height: 1.8;
}
html[lang="en"] .filter-grid {
  grid-template-columns: 1fr 1.4fr 1fr 1fr 1.2fr 1fr;
}
html[lang="en"] .graph-legend .legend-note {
  display: none;
}
@media (max-width: 1250px) {
  html[lang="en"] .filter-grid {
    grid-template-columns: 1fr 1.5fr 1fr;
  }
}
@media (max-width: 650px) {
  .top-actions {
    gap: 7px;
  }
  .language-switch select {
    min-width: 65px;
    font-size: 10px;
    padding: 5px;
  }
  .brand {
    font-size: 17px;
    letter-spacing: 2px;
  }
  .top-actions .connection {
    font-size: 8px;
    max-width: 75px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .top-actions .button {
    padding: 9px 8px;
    font-size: 9px;
  }
  .top-actions .button svg {
    display: none;
  }
  html[lang="en"] .filter-grid {
    grid-template-columns: 1fr 1fr;
  }
  html[lang="en"] .filters-actions {
    gap: 7px;
  }
  html[lang="en"] .filters-actions .button {
    font-size: 10px;
  }
  html[lang="en"] .top-actions .connection {
    display: none;
  }
  html[lang="en"] .section-heading .text-button {
    white-space: normal;
    font-size: 10px;
  }
  html[lang="en"] .insight-tab {
    font-size: 11px;
  }
  html[lang="en"] .graph-header-actions > span {
    display: none;
  }
}

.overview-item,
.overview-item > div {
  min-width: 0;
}
@media (max-width: 1250px) {
  .overview-item small {
    display: none;
  }
  html[lang="en"] .metric-label {
    overflow-wrap: anywhere;
  }
}
