.theme-research-nav { min-width: 88px; }
.theme-research-nav::before {
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 50%;
  background: #507865;
  content: "";
}
.theme-research-nav { display: flex; align-items: center; justify-content: center; }
.theme-research-nav:hover::before,
.theme-research-nav.active::before { background: var(--accent); }

.theme-research-shell { padding: 0; overflow: hidden; }
.theme-research-shell > .module-head { padding: 20px 26px 15px; }
.theme-research-shell #module-body { min-height: 620px; }

.tr-app {
  --tr-ink: var(--ink);
  --tr-subtle: var(--muted);
  --tr-muted: var(--muted);
  --tr-green: var(--accent);
  --tr-green-dark: color-mix(in srgb, var(--accent) 80%, #182b38);
  --tr-green-soft: var(--accent-soft);
  --tr-green-line: var(--line);
  --tr-gold: var(--research-concept);
  --tr-gold-soft: var(--research-concept-soft);
  --tr-coral: #e7674d;
  min-height: 620px;
  padding: 20px 26px 34px;
  color: var(--tr-ink);
  background:
    radial-gradient(circle at 94% 2%, rgba(66, 111, 90, .08), transparent 25%),
    #fff;
}
.tr-app button,
.tr-app input,
.tr-app select,
.tr-app textarea { font: inherit; }
.tr-app button { cursor: pointer; }

.tr-monthly-bar {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin: 0 0 19px;
  padding: 9px 12px;
  border: 1px solid #dce5e0;
  border-radius: 7px;
  background: rgba(247, 250, 248, .94);
}
.tr-monthly-bar.is-due { border-color: #ead9ba; background: #fffaf0; }
.tr-monthly-copy { display: flex; align-items: center; gap: 10px; }
.tr-static-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: var(--tr-green);
  box-shadow: 0 0 0 5px rgba(66, 111, 90, .1);
}
.tr-monthly-copy b,
.tr-monthly-copy small { display: block; }
.tr-monthly-copy b { color: var(--tr-green-dark); font-size: 11px; }
.tr-monthly-copy small { margin-top: 2px; color: #8b9791; font-size: 8px; }
.tr-monthly-meta { display: flex; align-items: center; gap: 15px; color: #89948f; font-size: 9px; }
.tr-monthly-meta span b { color: #556a60; font: 600 9px "DM Mono", monospace; }
.tr-monthly-meta button {
  min-height: 30px;
  padding: 0 11px;
  border: 1px solid var(--tr-green-line);
  border-radius: 4px;
  background: #fff;
  color: var(--tr-green);
  font-size: 9px;
  font-weight: 700;
}
.tr-monthly-bar.is-due .tr-monthly-meta button { border-color: #dfc79e; color: #986a25; }

.tr-home-search {
  margin-top: 20px; padding: 24px; border: 1px solid var(--line); border-radius: 10px;
  background: linear-gradient(120deg, var(--accent-soft), var(--surface) 72%); box-shadow: var(--shadow);
}
.tr-home-search-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tr-home-search-heading h2 { margin: 5px 0 0; font-size: 21px; color: var(--ink); }
.tr-home-search-scope { font-size: 11px; color: var(--accent); }
.tr-home-search-form { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; gap: 10px; margin-top: 20px; }
.tr-home-search-form label { display: block; min-width: 0; }
.tr-home-search-form label > span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.tr-home-search-form input { width: 100%; min-width: 0; min-height: 48px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 15px; }
.tr-home-search-form > button { min-height: 48px; margin-top: 0; }
.tr-home-search-help { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.tr-home-search-help p { margin: 0; font-size: 12px; color: var(--muted); }
.tr-home-search-help > div { display: flex; flex-wrap: wrap; gap: 6px; }
.tr-home-search-help button { font-size: 11px; padding: 4px 9px; }
.tr-home-search-status { margin: 18px 0 0; color: var(--muted); font-size: 12px; }
.tr-home-search-results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.tr-home-search-result { display: block; min-width: 0; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; }
.tr-home-search-result:hover { border-color: var(--accent); background: var(--accent-soft); }
.tr-home-search-result-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; }
.tr-home-search-result-head strong { font-size: 15px; }
.tr-home-search-result-head > span { flex: none; font-size: 10px; padding: 3px 7px; border-radius: 4px; background: var(--accent-soft); color: var(--accent); }
.tr-home-search-result-path { display: block; margin: 10px 0 13px; color: var(--muted); font-size: 12px; line-height: 1.9; overflow-wrap: anywhere; }
.tr-home-search-result-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--accent); font-size: 11px; }
.tr-home-search-result-bottom > span:first-child { display: flex; flex-wrap: wrap; gap: 5px; }
.tr-home-search-result-bottom > span:first-child > span { color: var(--muted); background: var(--soft); padding: 2px 5px; border-radius: 3px; }
.tr-home-search-result-bottom > span:last-child { flex: none; }
.tr-home-search-footer { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px; margin-top: 12px; font-size: 12px; color: var(--muted); }
.tr-home-search-footer:empty { margin-top: 0; }
.tr-home-search-empty { grid-column: 1 / -1; margin: 0; padding: 18px; background: var(--soft); border-radius: 7px; color: var(--muted); }

.tr-landing-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, .9fr);
  min-height: 255px;
  align-items: center;
  gap: 34px;
  padding: 42px 46px;
  border: 1px solid #dfe6e2;
  border-radius: 10px;
  background:
    linear-gradient(115deg, rgba(255,255,255,.99) 8%, rgba(244,249,246,.94)),
    repeating-linear-gradient(90deg, transparent 0 55px, rgba(63,102,83,.04) 56px);
  overflow: hidden;
}
.tr-kicker,
.tr-node-title > span,
.tr-branches > header > span,
.tr-chain-section > header span,
.tr-company-section-head > div > span {
  color: var(--tr-green);
  font: 600 9px "DM Mono", monospace;
  letter-spacing: .14em;
}
.tr-landing-hero h1 { margin: 9px 0 12px; color: #26362f; font-size: clamp(34px, 4vw, 55px); line-height: 1; }
.tr-landing-hero p { max-width: 660px; margin: 0; color: #728078; font-size: 13px; line-height: 1.9; }
.tr-landing-principles {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  padding: 1px;
  border: 1px solid #dce7e1;
  border-radius: 8px;
  background: #dce7e1;
  box-shadow: 0 18px 35px rgba(48, 78, 64, .08);
}
.tr-landing-principles::before {
  position: absolute;
  top: -22px;
  right: 18px;
  color: #c1d0c8;
  font: 8px "DM Mono", monospace;
  letter-spacing: .12em;
  content: "核心公司筛选";
}
.tr-landing-principles span { padding: 22px 9px; background: rgba(255,255,255,.94); color: #50635a; text-align: center; font-size: 10px; }
.tr-landing-principles span:first-child { border-radius: 7px 0 0 7px; }
.tr-landing-principles span:last-child { border-radius: 0 7px 7px 0; }
.tr-landing-principles b { display: block; margin-bottom: 7px; color: var(--tr-green); font: 700 16px "DM Mono", monospace; }

.tr-topic-grid { display: grid; grid-template-columns: minmax(420px, 720px); gap: 16px; margin-top: 18px; }
.tr-topic-card {
  position: relative;
  display: block;
  min-height: 260px;
  padding: 29px 31px;
  overflow: hidden;
  border: 1px solid #dce5e0;
  border-radius: 9px;
  background: linear-gradient(135deg, #2d5543, #3f7058);
  color: #fff;
  text-align: left;
  box-shadow: 0 16px 30px rgba(40, 78, 60, .13);
  transition: transform .18s ease, box-shadow .18s ease;
}
.tr-topic-card:hover { transform: translateY(-2px); box-shadow: 0 20px 36px rgba(40, 78, 60, .2); }
.tr-topic-index { color: rgba(255,255,255,.58); font: 8px "DM Mono", monospace; letter-spacing: .12em; }
.tr-topic-card h2 { margin: 31px 0 8px; font-size: 32px; }
.tr-topic-card p { position: relative; z-index: 2; max-width: 470px; margin: 0; color: rgba(255,255,255,.74); font-size: 11px; line-height: 1.8; }
.tr-topic-card footer { position: absolute; right: 31px; bottom: 25px; left: 31px; display: flex; justify-content: space-between; border-top: 1px solid rgba(255,255,255,.18); padding-top: 14px; font-size: 9px; }
.tr-topic-card footer span { color: rgba(255,255,255,.58); }
.tr-topic-card footer b { color: #fff; }
.tr-topic-mark { position: absolute; top: 29px; right: 30px; width: 160px; height: 130px; opacity: .22; }
.tr-topic-mark i { position: absolute; border: 1px solid #fff; border-radius: 50%; }
.tr-topic-mark i:nth-child(1) { inset: 0 30px 15px 15px; }
.tr-topic-mark i:nth-child(2) { inset: 22px 3px 3px 50px; }
.tr-topic-mark i:nth-child(3) { inset: 45px 60px 25px 0; background: rgba(255,255,255,.22); }
.tr-page-note { margin: 13px 2px 0; color: #98a29d; font-size: 9px; }

.tr-breadcrumbs { display: flex; align-items: center; gap: 7px; margin: 1px 1px 13px; color: #a0aaa5; font-size: 9px; }
.tr-breadcrumbs button { padding: 0; border: 0; background: transparent; color: #708078; }
.tr-breadcrumbs button:hover { color: var(--tr-green); }
.tr-breadcrumbs strong { color: #40534a; }

.tr-node-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  min-height: 155px;
  padding: 27px 31px;
  border: 1px solid #dfe6e2;
  border-left: 5px solid var(--tr-green);
  border-radius: 8px;
  background: linear-gradient(120deg, #fbfcfc, #f5f9f7);
}
.tr-node-title > div { display: flex; align-items: center; gap: 11px; }
.tr-node-title h1 { margin: 6px 0 7px; color: #2c3d35; font-size: 30px; }
.tr-node-title p { max-width: 720px; margin: 0; color: #748079; font-size: 11px; line-height: 1.8; }
.tr-state { display: inline-flex; min-height: 21px; align-items: center; padding: 0 8px; border-radius: 10px; background: #eef2f0; color: #718078; font-size: 8px; font-weight: 700; white-space: nowrap; }
.tr-state-verified { background: #e8f4ee; color: #397355; }
.tr-state-verified_core { background: #e8f4ee; color: #397355; }
.tr-state-verified_empty { background: #edf1ef; color: #60736a; }
.tr-state-needs_review,
.tr-state-draft { background: #fff5e5; color: #a07127; }
.tr-node-rule { display: flex; align-items: center; gap: 8px; padding: 13px 15px; border: 1px solid #dbe5df; border-radius: 7px; background: #fff; }
.tr-node-rule span { margin-right: 4px; color: #98a29c; font-size: 8px; }
.tr-node-rule b { color: #54685e; font-size: 9px; }
.tr-node-rule i { color: #bdc9c3; font-style: normal; }

.tr-introduction { margin-top: 12px; border: 1px solid #dce6e1; border-radius: 9px; background: #fff; box-shadow: 0 8px 24px rgba(48, 78, 64, .035); }
.tr-introduction summary { display: flex; min-height: 54px; align-items: center; justify-content: space-between; padding: 0 17px; color: #52665c; cursor: pointer; list-style: none; }
.tr-introduction summary::-webkit-details-marker { display: none; }
.tr-introduction summary > span { display: flex; align-items: center; gap: 9px; }
.tr-introduction summary i { display: grid; width: 24px; height: 24px; place-items: center; border-radius: 50%; background: var(--tr-green); color: #fff; font: 700 11px Georgia, serif; }
.tr-introduction summary b { color: #3e574b; font-size: 11px; }
.tr-introduction summary small { color: #9aa49f; font-size: 8px; font-weight: 400; }
.tr-introduction summary strong { color: #72827a; font-size: 8px; font-weight: 600; }
.tr-introduction[open] summary { border-bottom: 1px solid #e5eae7; }
.tr-introduction[open] summary strong { font-size: 0; }
.tr-introduction[open] summary strong::before { content: "收起介绍"; font-size: 8px; }
.tr-intro-content { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(280px, .8fr); gap: 14px; padding: 20px; color: #68766f; }
.tr-intro-content > section { padding: 18px 19px; border: 1px solid #dfe8e3; border-radius: 8px; background: #fbfdfc; }
.tr-intro-content > section > header span { color: #88a094; font: 700 7px "DM Mono", monospace; letter-spacing: .12em; }
.tr-intro-content > section > header h3 { margin: 4px 0 11px; color: #354a40; font-size: 13px; }
.tr-intro-content > section > p { margin: 0; color: #607069; font-size: 11px; line-height: 2; }
.tr-intro-plain { border-color: #eadfcf !important; background: linear-gradient(135deg, #fffaf3, #fffdf9) !important; }
.tr-intro-plain > header span { color: #b28a51 !important; }
.tr-intro-plain > header h3 { color: #765a34 !important; }
.tr-intro-plain > p { color: #7c6b55 !important; }
.tr-boundaries { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 13px; }
.tr-intro-content > .tr-boundaries { grid-column: 1 / -1; margin-top: 0; }
.tr-boundaries section { padding: 10px 11px; border: 1px solid #dce6e1; border-radius: 5px; background: #f8fbf9; }
.tr-boundaries section:last-child { border-color: #eadfd1; background: #fffaf4; }
.tr-boundaries span { color: #4f765f; font-size: 8px; font-weight: 700; }
.tr-boundaries section:last-child span { color: #986b38; }
.tr-boundaries p { margin: 4px 0 0; color: #738079; font-size: 9px; line-height: 1.7; }

.tr-branches,
.tr-chain-section,
.tr-company-section { margin-top: 23px; }
.tr-branches > header,
.tr-chain-section > header,
.tr-company-section-head { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 11px; }
.tr-branches > header h2,
.tr-chain-section > header h2,
.tr-company-section-head h2 { margin: 4px 0 0; font-size: 18px; }
.tr-chain-section > header p,
.tr-company-section-head p { margin: 0; color: #929d97; font-size: 9px; }
.tr-company-section-head > div > p { margin-top: 4px; }
.tr-branch-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.tr-branch-card {
  display: flex;
  flex-direction: column;
  min-height: 175px;
  padding: 15px;
  border: 1px solid #dfe6e2;
  border-radius: 7px;
  background: #fff;
  cursor: pointer;
  outline: none;
  text-align: left;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.tr-branch-card:hover,
.tr-branch-card:focus { transform: translateY(-1px); border-color: #8eae9e; box-shadow: 0 10px 22px rgba(40, 71, 57, .08); }
.tr-branch-top { display: flex; align-items: center; justify-content: space-between; }
.tr-branch-top i { color: #acb5b0; font: 8px "DM Mono", monospace; }
.tr-branch-card h3 { margin: 17px 0 7px; color: #30443a; font-size: 16px; }
.tr-branch-card > p { margin: 0; color: #7e8a84; font-size: 9px; line-height: 1.75; }
.tr-branch-card footer { display: flex; align-items: center; justify-content: space-between; gap: 9px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf0ee; font-size: 8px; }
.tr-branch-card footer span { color: #919c96; }
.tr-branch-card footer div { display: flex; gap: 5px; }
.tr-branch-card footer button { min-height: 27px; padding: 0 8px; border: 1px solid #d9e5df; border-radius: 4px; background: #f8fbf9; color: var(--tr-green); font-size: 8px; font-weight: 700; }
.tr-branch-card footer button:last-child { border-color: var(--tr-green); background: var(--tr-green); color: #fff; }
.tr-branch-card footer button:hover { border-color: #87a997; background: #edf6f1; }
.tr-branch-card footer button:last-child:hover { background: var(--tr-green-dark); }

.tr-chain-section { padding: 20px 20px 16px; border: 1px solid #dbe5e0; border-radius: 11px; background: linear-gradient(145deg, #fbfdfc, #f6f9f7); box-shadow: 0 14px 34px rgba(43, 73, 59, .045); }
.tr-chain-legend { display: flex; flex-wrap: wrap; gap: 7px; margin: 5px 0 12px; }
.tr-chain-legend span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 8px; border: 1px solid #dfe8e3; border-radius: 12px; background: rgba(255,255,255,.8); color: #7e8b85; font-size: 7px; }
.tr-chain-legend i { width: 6px; height: 6px; border-radius: 50%; background: #d9ede3; }
.tr-chain-legend span:nth-child(2) i { background: #e2ead7; }
.tr-chain-legend span:nth-child(3) i { background: #e8e0ef; }
.tr-chain-legend span:nth-child(4) i { background: #f1e5d4; }
.tr-diagram-scroll { overflow-x: auto; border: 1px solid #e1e9e5; border-radius: 9px; background: radial-gradient(circle at 50% 0, rgba(80,120,101,.06), transparent 48%), #fff; }
.tr-chain-diagram { display: block; min-width: 100%; }
.tr-chain-diagram marker path { fill: #b1beb8; }
.tr-diagram-band rect { fill: #f2f8f5; stroke: #e2ebe6; stroke-width: 1; }
.tr-diagram-band-1 rect { fill: #f7f9f1; stroke: #e7eadc; }
.tr-diagram-band-2 rect { fill: #f7f4fa; stroke: #e9e2ed; }
.tr-diagram-band-3 rect { fill: #fcf7f1; stroke: #eee3d7; }
.tr-band-index { fill: #8da598; font: 700 7px "DM Mono", monospace; letter-spacing: .08em; }
.tr-band-label { fill: #577066; font: 700 9px "Noto Sans SC", sans-serif; }
.tr-diagram-edge { fill: none; stroke: #8eaa9c; stroke-width: 1.65; }
.tr-diagram-edge-turn { stroke: #9eaea6; stroke-dasharray: 5 3; }
.tr-stage-index { fill: #b5c1bb; font: 700 10px "DM Mono", monospace; }
.tr-stage-label { fill: #4a6156; font: 700 11px "Noto Sans SC", sans-serif; }
.tr-diagram-node { cursor: pointer; outline: none; }
.tr-diagram-node > rect { fill: #fff; stroke: #d3e0da; stroke-width: 1; filter: drop-shadow(0 7px 10px rgba(50,75,63,.065)); transition: stroke .16s, fill .16s; }
.tr-diagram-node:hover rect,
.tr-diagram-node:focus rect { fill: #f4f9f6; stroke: #6e9a84; stroke-width: 1.5; }
.tr-diagram-node-verified_empty > rect { fill: #f6f8f7; stroke-dasharray: 4 3; }
.tr-diagram-node-needs_review > rect { stroke: #e4d6bc; }
.tr-node-stage { fill: #93a099; font: 600 7px "DM Mono", "Noto Sans SC", sans-serif; }
.tr-diagram-node-name { fill: #33473d; font: 700 12px "Noto Sans SC", sans-serif; }
.tr-diagram-node-count { fill: #8b9791; font: 8px "Noto Sans SC", sans-serif; }
.tr-diagram-node-verified_empty .tr-diagram-node-count { fill: #667a70; }
.tr-diagram-node-needs_review .tr-diagram-node-count { fill: #a37939; }
.tr-diagram-node-arrow { fill: #6e8f7f; font: 20px sans-serif; }
.tr-diagram-intro circle { fill: #edf5f1; stroke: #cfe0d7; stroke-width: 1; transition: fill .16s, stroke .16s; }
.tr-diagram-intro text { fill: #527562; font: 700 7px "Noto Sans SC", sans-serif; text-anchor: middle; }
.tr-diagram-intro:hover circle { fill: #3f7058; stroke: #3f7058; }
.tr-diagram-intro:hover text { fill: #fff; }
.tr-diagram-fallback { display: none; }

.tr-primary {
  min-height: 34px;
  padding: 0 13px;
  border: 1px solid var(--tr-green);
  border-radius: 4px;
  background: var(--tr-green);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.tr-primary:hover { background: var(--tr-green-dark); }
.tr-primary:disabled { opacity: .45; cursor: not-allowed; }
.tr-company-layout { display: grid; grid-template-columns: minmax(0, 1fr) 345px; gap: 22px; }
.tr-company-groups { min-width: 0; }
.tr-company-group { border: 1px solid #dfe6e2; border-radius: 8px; background: #fff; overflow: hidden; }
.tr-company-group + .tr-company-group { margin-top: 12px; }
.tr-company-group > header { display: flex; align-items: center; justify-content: space-between; padding: 12px 14px; border-bottom: 1px solid #e6ebe8; background: #fafcfb; }
.tr-company-group > header > div { display: flex; align-items: center; gap: 10px; }
.tr-company-group > header h3,
.tr-company-group > header p { margin: 0; }
.tr-company-group > header h3 { color: #3f5349; font-size: 12px; }
.tr-company-group > header p { margin-top: 2px; color: #99a29e; font-size: 8px; }
.tr-company-group > header > b { color: #60736a; font: 700 13px "DM Mono", monospace; }
.tr-grade-dot { display: grid; width: 29px; height: 29px; place-items: center; border-radius: 50%; background: var(--tr-green); color: #fff; font: 700 12px "DM Mono", monospace; }
.tr-company-group-pending .tr-grade-dot { background: #c69a55; }
.tr-company-list { padding: 0 14px; }
.tr-company-card { padding: 14px 1px; border-bottom: 1px solid #edf0ee; cursor: pointer; outline: none; }
.tr-company-card:last-child { border-bottom: 0; }
.tr-company-card:hover,
.tr-company-card:focus { background: linear-gradient(90deg, rgba(237,245,241,.72), transparent); }
.tr-company-card > header { display: flex; align-items: center; gap: 10px; }
.tr-company-card > header > div { min-width: 0; flex: 1; }
.tr-company-card h4,
.tr-company-card small { display: block; margin: 0; }
.tr-company-card h4 { color: #354a40; font-size: 13px; }
.tr-company-card small { margin-top: 2px; color: #9aa49f; font: 8px "DM Mono", monospace; }
.tr-company-card > header > i { color: #92a098; font-style: normal; }
.tr-company-grade { display: grid; width: 28px; height: 28px; flex: none; place-items: center; border: 1px solid #b9d1c5; border-radius: 50%; color: var(--tr-green); font: 700 10px "DM Mono", monospace; }
.tr-company-pending .tr-company-grade { border-color: #e2ccaa; color: #a57935; }
.tr-company-card > p { margin: 9px 0 0 38px; color: #707e77; font-size: 9px; line-height: 1.7; }
.tr-commercial-stage { display: inline-block; margin: 7px 0 0 38px; padding: 3px 6px; border-radius: 3px; background: #f0f4f2; color: #6f7f77; font-size: 7px; }
.tr-company-card > footer { display: flex; gap: 8px; margin: 8px 0 0 38px; font-size: 8px; }
.tr-company-card > footer span { color: #a0a9a4; }
.tr-company-card > footer b { color: #8a6330; }
.tr-candidate-empty { padding: 29px 10px; color: #a0a8a4; text-align: center; font-size: 9px; }

.tr-empty { margin: 13px 0; padding: 24px; border: 1px dashed #cfd9d4; border-radius: 6px; text-align: center; }
.tr-empty span { color: #96a29c; font: 7px "DM Mono", monospace; letter-spacing: .12em; }
.tr-empty h3 { margin: 8px 0 0; color: #263d32; font: 700 17px/1.35 "Noto Serif SC", serif; }
.tr-empty b { display: block; margin-top: 7px; color: #52675d; font-size: 14px; }
.tr-empty p { max-width: 510px; margin: 6px auto 0; color: #909a95; font-size: 9px; line-height: 1.7; }
.tr-empty-review { border-color: #e2d3b8; background: #fffcf6; }
.tr-empty-review span,
.tr-empty-review b { color: #98703a; }
.tr-empty-verified { background: #f7f9f8; }

.tr-concept-panel { position: sticky; top: 126px; min-height: 465px; align-self: start; border: 1px solid #dfe6e2; border-radius: 8px; background: #fbfcfc; overflow: hidden; }
.tr-concept-placeholder { display: grid; min-height: 465px; place-content: center; padding: 35px; text-align: center; }
.tr-concept-placeholder span { color: #9ba59f; font: 8px "DM Mono", monospace; letter-spacing: .12em; }
.tr-concept-placeholder b { margin-top: 10px; color: #52655c; font-size: 14px; }
.tr-concept-placeholder p { margin: 7px 0 0; color: #929d97; font-size: 9px; line-height: 1.8; }
.tr-concept-detail { padding: 18px; }
.tr-concept-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding-bottom: 14px; }
.tr-concept-head span { color: #87968e; font: 7px "DM Mono", monospace; letter-spacing: .08em; }
.tr-concept-head h2 { margin: 5px 0 2px; color: #31463b; font-size: 18px; }
.tr-concept-head p { margin: 0; color: #99a39e; font: 8px "DM Mono", monospace; }
.tr-concept-grade { display: grid; width: 37px; height: 37px; place-items: center; border-radius: 50%; background: var(--tr-green); color: #fff; font: 700 16px "DM Mono", monospace; }
.tr-concept-detail > section { padding: 12px 0; border-top: 1px solid #e5eae7; }
.tr-concept-detail section h3 { margin: 0 0 5px; color: #8d9892; font-size: 8px; letter-spacing: .06em; }
.tr-concept-detail section p { margin: 0; color: #5f6f67; font-size: 9px; line-height: 1.75; }
.tr-concept-summary p { color: var(--tr-green-dark) !important; font-size: 11px !important; font-weight: 700; }
.tr-concept-detail .tr-scope-warning { margin-inline: -7px; padding-inline: 7px; border-radius: 4px; background: #fff8ed; }
.tr-concept-detail .tr-scope-warning h3,
.tr-concept-detail .tr-scope-warning p { color: #906a34; }
.tr-relationship-list > div { display: grid; grid-template-columns: auto 1fr auto; gap: 6px; padding: 5px 0; font-size: 8px; }
.tr-relationship-list b { color: #765b30; }
.tr-relationship-list span { color: #75827b; }
.tr-relationship-list span small { display: block; margin-top: 3px; color: #a36e3c; font-size: 7px; }
.tr-relationship-list a,
.tr-evidence-list a { color: var(--tr-green); text-decoration: none; }
.tr-evidence-list { margin: 0; padding-left: 17px; color: #66766e; font-size: 8px; }
.tr-evidence-list li + li { margin-top: 5px; }
.tr-evidence-list time { margin-left: 7px; color: #a0a8a4; }
.tr-concept-note { margin: 10px 0; padding: 8px 9px; border-radius: 4px; background: var(--tr-green-soft); color: #6b7b73; font-size: 8px; line-height: 1.6; }
.tr-concept-actions { display: flex; gap: 6px; padding-top: 10px; border-top: 1px solid #e5eae7; }
.tr-concept-actions button { min-height: 29px; flex: 1; border: 1px solid #d8e1dc; border-radius: 4px; background: #fff; color: #5d7167; font-size: 8px; }
.tr-concept-actions button.danger { color: #b25b49; }

.tr-overlay { position: fixed; z-index: 70; inset: 0; display: grid; place-items: center; padding: 28px; }
.tr-overlay-backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(27, 38, 33, .44); backdrop-filter: blur(2px); }
.tr-dialog { position: relative; display: flex; width: min(880px, calc(100vw - 56px)); max-height: calc(100vh - 56px); flex-direction: column; overflow: hidden; border: 1px solid #d8e1dc; border-radius: 9px; background: #fff; box-shadow: 0 25px 70px rgba(24, 38, 31, .24); }
.tr-dialog > header { display: flex; flex: none; align-items: start; justify-content: space-between; padding: 18px 21px; border-bottom: 1px solid #e2e8e5; }
.tr-dialog > header span { color: var(--tr-green); font: 8px "DM Mono", monospace; letter-spacing: .12em; }
.tr-dialog > header h2 { margin: 4px 0 0; font-size: 18px; }
.tr-dialog > header > button { border: 0; background: transparent; color: #8d9892; font-size: 23px; line-height: 1; }
.tr-dialog-body { min-height: 0; padding: 20px 21px; overflow: auto; }
.tr-dialog-actions { display: flex; flex: none; justify-content: flex-end; gap: 8px; padding: 12px 21px; border-top: 1px solid #e2e8e5; background: #fafbfb; }
.tr-dialog-actions > button { min-height: 34px; padding: 0 14px; border: 1px solid #d8e0dc; border-radius: 4px; background: #fff; color: #64746c; font-size: 9px; }
.tr-dialog-actions > button.tr-primary { border-color: var(--tr-green); background: var(--tr-green); color: #fff; }

.tr-company-form { display: grid; gap: 14px; }
.tr-company-form label { display: block; min-width: 0; }
.tr-company-form label > span { display: flex; justify-content: space-between; margin-bottom: 5px; color: #596b62; font-size: 9px; font-weight: 700; }
.tr-company-form label > span i { color: #9da7a2; font-size: 8px; font-style: normal; font-weight: 400; }
.tr-company-form input,
.tr-company-form select,
.tr-company-form textarea { width: 100%; border: 1px solid #d8e0dc; border-radius: 4px; background: #fff; color: #3e4f47; font-size: 10px; outline: none; }
.tr-company-form input,
.tr-company-form select { height: 36px; padding: 0 9px; }
.tr-company-form textarea { padding: 9px; resize: vertical; line-height: 1.7; }
.tr-company-form input:focus,
.tr-company-form select:focus,
.tr-company-form textarea:focus { border-color: #7ea28f; box-shadow: 0 0 0 3px rgba(74, 119, 96, .08); }
.tr-form-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.tr-form-grid-stock { grid-template-columns: .65fr .8fr 1.4fr; }
.tr-company-form fieldset { margin: 0; padding: 12px; border: 1px solid #dfe6e2; border-radius: 6px; }
.tr-company-form legend { display: flex; width: 100%; align-items: center; justify-content: space-between; padding: 0 2px; color: #586a61; font-size: 9px; font-weight: 700; }
.tr-company-form legend button { border: 0; background: transparent; color: var(--tr-green); font-size: 8px; }
.tr-form-row { display: grid; gap: 7px; margin-top: 8px; }
.tr-evidence-row { grid-template-columns: 1fr 1.3fr 112px 100px 108px 95px 27px; }
.tr-evidence-note { grid-column: 1 / -1; }
.tr-undo-removal { padding: 10px 12px; background: var(--accent-soft); border-radius: 6px; }
.tr-undo-removal button { margin-left: 12px; }
.tr-relationship-row { grid-template-columns: .85fr .72fr 1.2fr 1fr 104px 27px; }
.tr-form-row > button { height: 36px; border: 1px solid #ead8d3; border-radius: 4px; background: #fff8f6; color: #b66856; }
.tr-form-error { margin: 0; padding: 9px 11px; border-radius: 4px; background: #fff1ed; color: #b7503e; font-size: 9px; }

.tr-history-list { margin: 0; padding: 0; list-style: none; }
.tr-history-list li { padding: 14px 2px; border-bottom: 1px solid #e6ebe8; }
.tr-history-list li > div { display: flex; justify-content: space-between; color: #98a19d; font: 8px "DM Mono", monospace; }
.tr-history-list li > b { display: inline-block; margin-top: 7px; padding: 2px 6px; border-radius: 3px; background: var(--tr-green-soft); color: var(--tr-green); font-size: 8px; }
.tr-history-list li > p { margin: 7px 0 0; color: #53665c; font-size: 10px; line-height: 1.7; }
.tr-history-list li > small { display: block; margin-top: 5px; color: #939d98; font-size: 8px; }
.tr-history-changes { margin-top: 8px; border: 1px solid #e3e9e6; border-radius: 4px; overflow: hidden; }
.tr-history-changes > div { display: grid; grid-template-columns: 90px minmax(0, 1fr) 16px minmax(0, 1fr); gap: 6px; padding: 6px 8px; border-top: 1px solid #edf0ee; font-size: 8px; }
.tr-history-changes > div:first-child { border-top: 0; }
.tr-history-changes b { color: #52665c; }
.tr-history-changes span { min-width: 0; color: #7e8983; overflow-wrap: anywhere; }
.tr-history-changes i { color: #a9b2ad; font-style: normal; text-align: center; }
.tr-empty-history { padding: 55px 20px; color: #98a29d; text-align: center; font-size: 10px; }

.tr-review-overview { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.tr-review-overview > div { padding: 17px; border: 1px solid #dfe6e2; border-radius: 6px; background: #fafcfb; }
.tr-review-overview span,
.tr-review-overview b { display: block; }
.tr-review-overview span { color: #98a29d; font-size: 8px; }
.tr-review-overview b { margin-top: 5px; color: #41574c; font-size: 15px; }
.tr-review-copy { margin: 14px 1px 0; color: #76847d; font-size: 9px; line-height: 1.8; }
.tr-review-draft-note { display: flex; justify-content: space-between; margin-bottom: 10px; padding: 9px 11px; border-radius: 5px; background: var(--tr-green-soft); font-size: 9px; }
.tr-review-draft-note b { color: var(--tr-green); }
.tr-review-draft-note span { color: #75837b; }
.tr-review-item { padding: 13px 2px; border-bottom: 1px solid #e5eae7; }
.tr-review-item header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 8px; }
.tr-review-item header > span { padding: 2px 5px; border-radius: 3px; background: #edf1ef; color: #75827b; font: 7px "DM Mono", monospace; }
.tr-review-item header > b { color: #52665c; font-size: 9px; }
.tr-review-item header > em { font-size: 8px; font-style: normal; }
.tr-review-item .decision-accept { color: #367556; }
.tr-review-item .decision-reject { color: #b95743; }
.tr-review-item .decision-hold { color: #a07127; }
.tr-review-item .decision-pending { color: #929c97; }
.tr-review-item p { margin: 8px 0; color: #6f7d76; font-size: 9px; }
.tr-review-item > div { display: flex; gap: 5px; }
.tr-review-item > div button { min-height: 27px; border: 1px solid #dce4e0; border-radius: 3px; background: #fff; color: #67776f; font-size: 8px; }
.tr-review-item > div button:first-child { border-color: #bfd4c9; color: #3f735a; }

/* Research navigation and diagrams use the global design tokens. */
.tr-topic-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-topic-card { min-width: 0; padding-bottom: 80px; }
.tr-topic-medical { background: linear-gradient(135deg, #244f75, #487eaa); }
.tr-topic-physical-ai { background: linear-gradient(135deg, #453460, #7c63a5); }
.tr-topic-card footer button { padding: 5px 12px; border: 1px solid #ffffff55; border-radius: 6px; color: #fff; background: #ffffff12; }
.tr-research-tools { display: grid; grid-template-columns: minmax(220px, 1fr) 170px 170px; gap: 12px; margin: 18px 0; padding: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.tr-research-tools label { min-width: 0; }
.tr-research-tools label > span { display: block; margin-bottom: 5px; color: var(--muted); font-size: 11px; }
.tr-research-tools input, .tr-research-tools select { width: 100%; min-height: 38px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 6px; color: var(--ink); background: var(--surface); font-size: 12px; }
.tr-research-tags { display: flex; grid-column: 1 / -1; gap: 7px; align-items: center; flex-wrap: wrap; }
.tr-research-tags > span { margin-right: 6px; color: var(--muted); font-size: 11px; }
.tr-research-tags button { border: 1px solid var(--line); border-radius: 15px; padding: 4px 11px; color: var(--muted); background: var(--surface); font-size: 11px; }
.tr-research-tags button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tr-workbench { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 22px; align-items: start; }
.tr-research-sidebar { position: sticky; top: calc(var(--header-height, 80px) + 16px); min-width: 0; }
.tr-research-sidebar > p { font-size: 11px; color: var(--muted); line-height: 1.8; }
.tr-directory { max-height: calc(100dvh - var(--header-height, 80px) - 110px); padding: 12px; border: 1px solid var(--line); border-radius: 8px; overflow: auto; background: var(--surface); }
.tr-directory > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.tr-directory h2 { margin: 0; font-size: 14px; }
.tr-directory button { padding: 6px 5px; border: 0; background: transparent; color: var(--muted); text-align: left; font-size: 11px; }
.tr-directory summary { display: flex; align-items: center; list-style: none; }
.tr-directory summary::before { content: '›'; margin-right: 5px; color: var(--muted); }
.tr-directory details[open] > summary::before { transform: rotate(90deg); }
.tr-directory details > div { margin-left: 9px; padding-left: 7px; border-left: 1px solid var(--line); }
.tr-directory button[aria-current="page"] { border-radius: 4px; color: var(--accent); background: var(--accent-soft); font-weight: 700; }
.tr-directory-leaf { padding-left: 5px; }
.tr-directory-toggle { display: none; }
.tr-research-main { min-width: 0; }
.tr-research-main .tr-node-hero { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 24px; }
.tr-research-main .tr-node-rule { justify-self: start; flex-direction: row; align-items: center; padding: 8px 12px; }
.tr-research-main .tr-node-rule i { display: inline; }
.tr-research-main .tr-branch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tr-domain-group { margin: 22px 0; }
.tr-domain-group > header { padding: 10px 0; border-bottom: 1px solid var(--line); margin-bottom: 12px; }
.tr-domain-group h3 { margin: 0; font-size: 16px; }
.tr-domain-group > header p { margin: 5px 0 0; color: var(--muted); line-height: 1.7; font-size: 12px; }
.tr-branch-card { min-width: 0; }
.tr-branch-card h3 { font-size: 17px; }
.tr-branch-card > p { font-size: 12px; }
.tr-branch-card footer { flex-wrap: wrap; gap: 8px; font-size: 11px; }
.tr-branch-card footer button { font-size: 11px; }
.tr-branch-top small { font-size: 10px; color: var(--muted); }
.tr-manufacturer-card-products { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0; }
.tr-manufacturer-directory-note { color: var(--muted); font-size: 12px; line-height: 1.8; margin-bottom: 16px; }
.tr-manufacturer-card-products span { padding: 3px 7px; border-radius: 4px; color: var(--accent); background: var(--accent-soft); font-size: 11px; }
.tr-manufacturer-profile, .tr-product-references { margin: 18px 0; padding: 20px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.tr-manufacturer-profile > header { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: 10px; }
.tr-manufacturer-profile > header span { color: var(--accent); font-size: 11px; }
.tr-manufacturer-profile h2, .tr-product-references h2 { margin: 4px 0; font-size: 18px; }
.tr-manufacturer-profile p, .tr-product-references p { color: var(--muted); font-size: 12px; line-height: 1.85; overflow-wrap: anywhere; }
.tr-manufacturer-products { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 10px; margin: 16px 0; }
.tr-manufacturer-products article, .tr-product-references article { padding: 13px; background: var(--soft); border-radius: 6px; min-width: 0; }
.tr-manufacturer-products h3, .tr-product-references h3 { margin: 0 0 7px; font-size: 14px; }
.tr-manufacturer-products small, .tr-product-references small { font-size: 11px; color: var(--research-concept); }
.tr-manufacturer-boundary { padding: 12px; border-left: 3px solid var(--accent); background: var(--accent-soft); }
.tr-manufacturer-boundary b { display: block; color: var(--ink); }
.tr-research-source-links { display: flex; flex-wrap: wrap; gap: 10px; font-size: 11px; }
.tr-research-source-links a, .tr-product-references a { color: var(--accent); }
.tr-product-references > div { display: grid; gap: 10px; }
.tr-product-references h3 { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.tr-product-references h3 a { font-size: 11px; font-weight: 400; }
.tr-product-references .tr-reference-boundary { padding-top: 8px; border-top: 1px solid var(--line); font-size: 11px; }
.tr-state-concept_only { color: var(--research-concept); background: var(--research-concept-soft); }
.tr-research-questions { padding: 14px 18px; margin-top: 12px; border: 1px solid var(--line); border-radius: 8px; font-size: 12px; }
.tr-research-questions summary { color: var(--accent); font-weight: 700; cursor: pointer; }
.tr-research-questions li { margin-top: 8px; color: var(--muted); }
.tr-intro-content { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
.tr-intro-content > section > p { font-size: 13px; line-height: 1.95; }
.tr-boundaries p { font-size: 11px; }
.tr-intro-sources { grid-column: 1 / -1; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 11px; }
.tr-intro-sources h3 { font-size: 11px; margin: 0; }
.tr-intro-sources a { color: var(--accent); }
.tr-chain-section { padding: 18px; background: var(--surface); border-color: var(--line); }
.tr-chain-section > header { align-items: center; flex-wrap: wrap; }
.tr-chain-section > header p { margin-top: 5px; color: var(--muted); font-size: 11px; }
.tr-map-switch { display: flex; gap: 6px; }
.tr-map-switch button { padding: 6px 11px; color: var(--muted); background: var(--surface); border: 1px solid var(--line); border-radius: 6px; font-size: 11px; }
.tr-map-switch button[aria-pressed="true"] { color: var(--accent); border-color: var(--accent); background: var(--accent-soft); }
.tr-map-viewport { max-width: 100%; overflow-x: auto; padding-bottom: 6px; }
.tr-industry-map { position: relative; display: grid; grid-template-columns: repeat(var(--tr-stage-count, 3), minmax(190px, 1fr)); min-width: calc(var(--tr-stage-count, 3) * 190px + (var(--tr-stage-count, 3) - 1) * 32px + 40px); gap: 32px; padding: 20px; align-items: start; }
.tr-industry-map.is-multi-stage { grid-template-columns: repeat(3, minmax(0, 1fr)); min-width: 0; }
.tr-map-connections { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; z-index: 2; }
.tr-map-connections g > path { fill: none; stroke: color-mix(in srgb, var(--accent) 45%, var(--line)); stroke-width: 1.5; opacity: .8; }
.tr-map-connections marker path { fill: var(--accent); }
.tr-map-connections text { fill: var(--muted); font-size: 11px; paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.tr-map-stage { min-width: 0; padding: 12px; border-radius: 9px; background: var(--research-stage-one); }
.tr-map-stage:nth-of-type(2) { background: var(--research-stage-two); }
.tr-map-stage:nth-of-type(3) { background: var(--research-stage-three); }
.tr-map-stage:nth-of-type(4) { background: var(--research-stage-four); }
.tr-map-stage > header { display: flex; align-items: center; gap: 8px; padding-bottom: 12px; }
.tr-map-stage > header > span { font-variant-numeric: tabular-nums; color: var(--accent); font-size: 11px; }
.tr-map-stage h3 { margin: 0; font-size: 13px; }
.tr-map-stage > div { display: grid; gap: 18px; }
.tr-map-node { position: relative; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); z-index: 3; }
.tr-map-enter { width: 100%; text-align: left; border: 0; border-radius: 7px; background: transparent; color: var(--ink); padding: 18px 12px 12px; }
.tr-map-enter > b { display: block; max-width: calc(100% - 44px); font-size: 13px; line-height: 1.7; }
.tr-map-enter > p { color: var(--muted); font-size: 12px; line-height: 1.75; margin: 10px 0; }
.tr-map-enter > span { display: flex; justify-content: space-between; font-size: 11px; color: var(--accent); }
.tr-map-enter i { font-style: normal; }
.tr-map-intro { position: absolute; right: 7px; top: 12px; min-height: 28px; min-width: 36px; padding: 3px 5px; background: var(--accent-soft); border: 1px solid var(--line); border-radius: 4px; color: var(--accent); font-size: 11px !important; }
.tr-map-node:hover { border-color: var(--accent); }
.tr-research-main .tr-company-layout { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 16px; }
.tr-market-company-group > h4 { display: flex; justify-content: space-between; margin: 0; padding: 12px 0 8px; color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.tr-market-company-group > h4 > span { font-size: 11px; }
.tr-company-grade { width: auto; min-width: 34px; padding: 0 4px; border-radius: 5px; font-size: 10px; }
.tr-company-card > p { font-size: 12px; margin-left: 44px; }
.tr-company-card small { font-size: 10px; }
.tr-commercial-stage { font-size: 10px; margin-left: 44px; }
.tr-company-gap { color: var(--research-concept) !important; }
.tr-company-tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 8px 0; }
.tr-company-card .tr-company-tags { margin-left: 44px; }
.tr-company-tags span { color: var(--muted); background: var(--soft); font-size: 10px; padding: 3px 6px; border-radius: 4px; }
.tr-company-group > header p { font-size: 10px; }
.tr-concept-panel { top: calc(var(--header-height, 80px) + 15px); }
.tr-concept-detail section h3 { font-size: 11px; }
.tr-concept-detail section p { font-size: 12px; line-height: 1.85; }
.tr-concept-detail section small { display: block; margin-top: 6px; color: var(--research-concept); line-height: 1.7; font-size: 11px; }
.tr-concept-summary p { font-size: 13px !important; }
.tr-concept-head span, .tr-concept-head p { font-size: 10px; }
.tr-evidence-list { font-size: 11px; overflow-wrap: anywhere; }
.tr-concept-actions button { font-size: 11px; }
.tr-exclusions { margin-top: 12px; padding: 12px; border: 1px solid var(--line); border-radius: 8px; color: var(--muted); font-size: 11px; }
.tr-related-nodes { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--line); }
.tr-related-nodes h2 { font-size: 16px; }
.tr-related-nodes > div { display: flex; gap: 9px; flex-wrap: wrap; }
.tr-related-nodes button { padding: 12px; border: 1px solid var(--line); border-radius: 6px; color: var(--accent); background: var(--surface); text-align: left; }
.tr-related-nodes small { display: block; margin-top: 4px; color: var(--muted); }
.tr-search-results { padding: 18px; margin: 18px 0; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.tr-search-results > header { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.tr-search-results h2 { margin: 0; font-size: 18px; }
.tr-search-results > header > span { color: var(--muted); font-size: 12px; }
.tr-search-results button { padding: 6px 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--accent); }
.tr-search-nodes, .tr-search-company-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.tr-search-nodes button { text-align: left; min-width: 0; }
.tr-search-nodes small { display: block; font-size: 10px; color: var(--muted); overflow-wrap: anywhere; }
.tr-search-company-list article { padding: 14px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); min-width: 0; }
.tr-search-company-list article header > span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.tr-search-company-list p { font-size: 12px; color: var(--muted); line-height: 1.8; }
.tr-search-company-list button { font-size: 11px; overflow-wrap: anywhere; }
.tr-search-empty { color: var(--muted); }
.tr-coverage-summary { display: flex; flex-wrap: wrap; gap: 12px; margin: 12px 0 20px; }
.tr-coverage-summary > section { flex: 1 1 260px; padding: 12px 16px; background: var(--soft); border-left: 3px solid var(--line); border-radius: 8px; }
.tr-coverage-summary b { font-size: 12px; }
.tr-coverage-summary p { font-size: 12px; line-height: 1.7; color: var(--muted); margin: 5px 0; }
.tr-coverage-summary small { font-size: 11px; color: var(--muted); }
.tr-professional-part + .tr-professional-part { margin-top: 16px; }
.tr-professional-part h4 { font-size: 13px; margin: 0 0 5px; color: var(--ink); }
.tr-professional-part p { font-size: 13px; line-height: 1.95; margin: 0; }
.tr-chain-relations { margin-top: 14px; font-size: 11px; color: var(--muted); }
.tr-chain-relations summary { cursor: pointer; color: var(--accent); }
.tr-chain-relations ul { padding-left: 18px; }
.tr-chain-relations li { margin: 9px 0; line-height: 1.8; }
.tr-chain-relations small { display: block; }
.tr-chain-parallel-note { font-size: 11px; color: var(--muted); line-height: 1.8; }
.tr-research-tags small { color: var(--muted); font-size: 11px; }
.tr-topic-card footer > div { display: flex; gap: 8px; }
.tr-monthly-meta { flex-wrap: wrap; }
.tr-monthly-meta b { overflow-wrap: anywhere; }

@media (max-width: 1180px) {
  .tr-branch-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .tr-company-layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 14px; }
  .tr-node-rule { align-items: flex-start; flex-direction: column; gap: 5px; }
  .tr-node-rule i { display: none; }
}

@media (max-width: 900px) {
  .tr-app { padding: 17px; }
  .tr-monthly-bar { align-items: flex-start; flex-direction: column; }
  .tr-monthly-meta { width: 100%; flex-wrap: wrap; }
  .tr-monthly-meta button { margin-left: auto; }
  .tr-landing-hero { grid-template-columns: 1fr; padding: 32px; }
  .tr-landing-principles { max-width: 430px; }
  .tr-node-hero { grid-template-columns: 1fr; }
  .tr-intro-content { grid-template-columns: 1fr; }
  .tr-intro-content > .tr-boundaries { grid-column: auto; }
  .tr-node-rule { flex-direction: row; }
  .tr-node-rule i { display: inline; }
  .tr-branch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tr-company-layout { grid-template-columns: 1fr; }
  .tr-concept-panel { position: static; min-height: 260px; }
  .tr-concept-placeholder { min-height: 260px; }
  .tr-form-grid { grid-template-columns: 1fr 1fr; }
  .tr-form-grid-stock { grid-template-columns: 1fr 1fr; }
  .tr-form-grid-stock label:last-child { grid-column: 1 / -1; }
  .tr-evidence-row { grid-template-columns: 1fr 1fr 105px 95px 105px 90px 27px; }
  .tr-relationship-row { grid-template-columns: 1fr 1fr 1fr 27px; }
  .tr-relationship-row input:nth-child(3),
  .tr-relationship-row input:nth-child(4) { grid-column: span 1; }
}

@media (max-width: 650px) {
  .tr-landing-hero { padding: 25px 21px; }
  .tr-landing-principles { grid-template-columns: 1fr; }
  .tr-landing-principles span:first-child { border-radius: 7px 7px 0 0; }
  .tr-landing-principles span:last-child { border-radius: 0 0 7px 7px; }
  .tr-topic-grid { grid-template-columns: 1fr; }
  .tr-topic-card { min-height: 285px; }
  .tr-node-hero { padding: 22px; }
  .tr-introduction summary small { display: none; }
  .tr-intro-content { padding: 12px; }
  .tr-intro-content > section { padding: 15px; }
  .tr-boundaries { grid-template-columns: 1fr; }
  .tr-node-rule { align-items: flex-start; flex-direction: column; }
  .tr-node-rule i { display: none; }
  .tr-branch-grid { grid-template-columns: 1fr; }
  .tr-chain-diagram { display: none; }
  .tr-diagram-fallback { display: block; }
  .tr-diagram-fallback section > h3 { margin: 14px 0 7px; color: #52665c; font-size: 10px; }
  .tr-diagram-fallback section > div { display: grid; gap: 7px; }
  .tr-form-grid,
  .tr-form-grid-stock { grid-template-columns: 1fr; }
  .tr-form-grid-stock label:last-child { grid-column: auto; }
  .tr-evidence-row,
  .tr-relationship-row { grid-template-columns: 1fr 27px; }
  .tr-form-row input,
  .tr-form-row select { grid-column: 1; }
  .tr-form-row > button { grid-column: 2; grid-row: 1; }
  .tr-dialog { width: calc(100vw - 24px); max-height: calc(100vh - 24px); }
  .tr-overlay { padding: 12px; }
}
