:root {
  color-scheme: light;
  --ink: #202a29;
  --muted: #586765;
  --green: #24634f;
  --deep: #182f2a;
  --mint: #dcf4e6;
  --paper: #f5f7f4;
  --line: #dce5de;
  --white: #fff;
  --radius: 15px;
  font-family: 'Segoe UI', system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 320px; font-size: 16px; line-height: 1.55; }
a { color: var(--green); text-underline-offset: .23em; }
a:hover { text-decoration-thickness: 2px; }
button, select, input { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, select:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #7abe9d; outline-offset: 3px; }
.skip { position: fixed; inset: 8px auto auto 8px; z-index: 10; padding: 10px; background: white; transform: translateY(-150%); }
.skip:focus { transform: none; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.layout { display: grid; min-height: 100vh; grid-template-columns: 257px minmax(0, 1fr); }
.sidebar { display: flex; flex-direction: column; background: var(--deep); color: #f7fcf9; padding: 30px 20px 22px; gap: 34px; position: sticky; top: 0; height: 100dvh; }
.brand { display: flex; align-items: center; gap: 13px; padding: 0 8px; color: inherit; text-decoration: none; }
.brand strong { display: block; font-size: 23px; line-height: 1.22; letter-spacing: -.05em; }
.brand small { display: block; color: #b5cac0; font-size: 13px; }
.brand-icon { position: relative; width: 38px; height: 38px; flex: 0 0 auto; border-radius: 10px; background: #b5e6cc; }
.brand-icon::before { content: ''; position: absolute; inset: 9px 11px; border: 1.8px solid var(--deep); border-radius: 3px; }
.brand-icon::after { content: ''; position: absolute; inset: 15px 15px auto; border-top: 1.8px solid var(--deep); box-shadow: 0 5px var(--deep); }
.nav { display: grid; gap: 5px; }
.nav a, .side-objects a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 8px; color: #d4e5dc; text-decoration: none; font-size: 15px; }
.nav a[aria-current], .side-objects a[aria-current] { color: #fff; background: #315449; font-weight: 650; }
.nav a:hover, .side-objects a:hover { background: #294940; }
.nav-icon { width: 19px; flex: 0 0 auto; text-align: center; font-size: 17px; color: #a9d8bf; }
.side-objects h2 { margin: 0 12px 9px; color: #b3c8bd; text-transform: uppercase; letter-spacing: .11em; font-size: 12px; font-weight: 700; }
.side-objects a { padding-block: 8px; font-size: 14px; }
.side-objects a::before { content: ''; flex: 0 0 auto; width: 7px; height: 7px; border: 1px solid #98bbae; border-radius: 50%; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 0 12px; color: #bad0c4; font-size: 13px; }
.side-foot span { width: 7px; height: 7px; border-radius: 50%; background: #9bddb8; }
main { min-width: 0; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px clamp(20px, 4vw, 60px); min-height: 74px; background: white; border-bottom: 1px solid var(--line); }
.breadcrumb { color: var(--muted); font-size: 14px; }
.search { min-width: 0; width: min(100%, 320px); }
.search input, .filters select { display: block; padding: 9px 12px; color: var(--ink); border-radius: 8px; border: 1px solid #cbdad0; background: #fff; }
.search input { width: 100%; padding-left: 35px; background-color: #f7faf7; }
.search { position: relative; }
.search::before { content: ''; width: 11px; height: 11px; border-radius: 50%; border: 1.7px solid var(--green); position: absolute; top: 13px; left: 13px; pointer-events: none; }
.search::after { content: ''; width: 7px; border-top: 1.7px solid var(--green); position: absolute; top: 24px; left: 21px; transform: rotate(48deg); pointer-events: none; }
.content, .main-foot { max-width: 1315px; padding-inline: clamp(20px, 4vw, 60px); margin-inline: auto; }
.content { padding-block: 33px 30px; min-height: 65vh; }
.main-foot { border-top: 1px solid var(--line); color: var(--muted); padding-block: 16px 23px; font-size: 13px; }
.hero { position: relative; isolation: isolate; overflow: hidden; padding: clamp(24px, 4vw, 44px); margin-bottom: 30px; border-radius: 20px; background: #e5f3e9; border: 1px solid #d1e8d9; }
.hero::after { z-index: -1; content: ''; position: absolute; width: 470px; height: 470px; right: -188px; top: -125px; opacity: .9; border-radius: 50%; background: repeating-radial-gradient(circle at center, transparent 0 21px, #c5e4d3 22px 23px); mask-image: linear-gradient(95deg, transparent, black 55%); }
.hero p, .page-lead { max-width: 66ch; color: #4f625b; margin: 10px 0 18px; }
.eyebrow { color: var(--green); font-size: 13px; font-weight: 750; text-transform: uppercase; letter-spacing: .1em; }
h1, h2, h3 { margin: 0; line-height: 1.15; letter-spacing: -.025em; }
h1 { font-size: clamp(32px, 4.8vw, 55px); margin: 9px 0; letter-spacing: -.05em; }
h2 { font-size: clamp(22px, 2.6vw, 30px); }
h3 { font-size: 19px; }
.stats, .tags, .actions, .filters { display: flex; flex-wrap: wrap; gap: 9px; align-items: center; }
.stats a, .pill { display: inline-block; padding: 6px 11px; border-radius: 999px; font-size: 14px; border: 1px solid #cfe3d6; background: #f6fbf7; color: #295442; text-decoration: none; }
.stats a:hover { background: #d7efdf; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin: 0 0 15px; }
.section-head a { font-size: 14px; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card { background: var(--white); border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); min-width: 0; }
.object { display: flex; flex-direction: column; align-items: flex-start; min-height: 174px; }
.object h3 { margin-top: 4px; }
.object p { margin: 6px 0 12px; color: var(--muted); }
.object .object-open { margin-top: 12px; text-decoration: none; font-weight: 650; }
.object .object-open:hover { text-decoration: underline; }
.object-meta { color: var(--muted); font-size: 14px; margin: 0 0 5px; }
.document-list, .link-list { margin: 0; padding: 0; display: grid; gap: 10px; list-style: none; }
.document-card { background: #fff; border: 1px solid var(--line); padding: 17px 19px; border-radius: 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px; }
.doc-text { min-width: 0; }
.doc-name { font-weight: 680; font-size: 17px; margin: 0; }
.doc-meta, .doc-note { color: var(--muted); font-size: 14px; margin: 0 0 5px; }
.doc-note { margin: 4px 0 0; }
.doc-links { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.button, .button-secondary { display: inline-flex; align-items: center; justify-content: center; padding: 7px 12px; border-radius: 7px; min-height: 39px; text-decoration: none; font-size: 14px; font-weight: 650; }
.button { background: #24634f; color: #fff; border: 1px solid #24634f; }
.button:hover { background: #1a4f3d; }
.button-secondary { color: var(--green); background: #f5faf6; border: 1px solid #d7e5db; }
.button-secondary:hover { background: #eaf6ee; }
.doc-links a:not(.button):not(.button-secondary) { font-size: 14px; }
.section { margin-top: 26px; }
.section h2 { margin-bottom: 14px; }
.page-head { margin-bottom: 22px; }
.page-head h1 { max-width: 26ch; }
.page-head .page-lead { margin-bottom: 0; }
.data { margin: 13px 0 0; display: grid; gap: 8px; }
.data div { display: flex; flex-wrap: wrap; gap: 3px 12px; border-top: 1px solid #edf0ec; padding-top: 8px; }
.data dt { color: var(--muted); flex: 0 0 132px; font-size: 14px; }
.data dd { margin: 0; flex: 1 1 120px; overflow-wrap: anywhere; }
.card-source { margin: 12px 0 0; font-size: 14px; }
.filters { margin: 0 0 17px; gap: 12px; }
.filters label { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 650; }
.filters select { font-weight: 400; max-width: 100%; }
.result-count { color: var(--muted); font-size: 14px; margin: 0 0 10px; }
.link-list article { padding: 17px 20px; border: 1px solid var(--line); border-radius: 12px; background: white; }
.link-list article p { margin: 7px 0; }
.link-list .refs { margin-bottom: 0; display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.network { --connector: #55816b; background: #e5f3e9; padding: clamp(15px, 2.5vw, 26px); border: 1px solid #d1e8d9; border-radius: var(--radius); }
.network-core { text-align: center; max-width: 350px; margin-inline: auto; padding: 13px; color: #f7fcf9; background: var(--deep); border-radius: 10px; }
.network-core h2 { font-size: clamp(19px, 2.2vw, 24px); }
.network-core p { margin: 4px 0 0; color: #c4ded0; font-size: 14px; }
.network-trunk { position: relative; display: grid; justify-items: center; padding-block: 15px; color: #264937; font-weight: 650; font-size: 14px; }
.network-trunk::before, .network-trunk::after { content: ''; position: absolute; height: 15px; left: 50%; border-left: 2px solid var(--connector); }
.network-trunk::before { top: 0; }
.network-trunk::after { bottom: 0; }
.network-branches { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.network-branch { position: relative; display: grid; min-width: 0; padding-top: 32px; }
.network-branch::before { content: ''; position: absolute; inset: 0 -6px auto; border-top: 2px solid var(--connector); }
.network-branch:first-child::before { left: 50%; }
.network-branch:last-child::before { right: 50%; }
.network-pointer { position: absolute; top: 0; left: 50%; height: 26px; border-left: 2px solid var(--connector); }
.network-pointer::after { content: ''; position: absolute; width: 8px; height: 8px; left: -5px; bottom: 0; border: solid var(--connector); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.network-branches a { display: flex; flex-direction: column; justify-content: center; min-height: 66px; padding: 10px; text-align: center; background: white; border-radius: 9px; border: 1px solid #cfe0d5; text-decoration: none; color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.network-branches a:hover, .network-branches a[aria-current] { border-color: #54876e; background: #f1faf4; }
.network-branches a small { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
.flow-list { list-style: none; display: grid; gap: 8px; padding: 0; margin: 12px 0; }
.flow-track { display: flex; align-items: stretch; gap: 0; }
.flow-node { flex: 1 1 0; min-width: 0; display: grid; align-items: center; padding: 9px 11px; border: 1px solid #cbded2; border-radius: 8px; background: #f1f8f3; color: #253d31; font-size: 14px; font-weight: 650; overflow-wrap: anywhere; }
.flow-arrow { position: relative; flex: .8 1 0; align-self: center; min-width: 74px; text-align: center; color: #375947; font-size: 13px; line-height: 1.25; padding: 0 7px 8px; }
.flow-arrow::before, .flow-arrow::after { content: ''; position: absolute; border: solid #55816b; }
.flow-arrow::before { inset: auto 5px 0 4px; border-width: 0 0 2px; }
.flow-arrow::after { width: 7px; height: 7px; right: 5px; bottom: -2px; border-width: 2px 2px 0 0; transform: rotate(45deg); }
.ownership { background: white; border: 1px solid var(--line); padding: 20px; border-radius: var(--radius); }
.ownership .flow-list { margin-bottom: 0; }
.ownership .flow-node:first-child { flex-grow: 1.6; }
.note { border-left: 3px solid #77a990; background: #eef5ef; padding: 10px 13px; color: #445950; border-radius: 0 7px 7px 0; }
.note p { margin: 5px 0; }
.empty { padding: 20px; border: 1px dashed #bacbc0; border-radius: 12px; color: var(--muted); }
@media (max-width: 1000px) {
  .layout { grid-template-columns: 205px minmax(0, 1fr); }
  .sidebar { padding-inline: 14px; }
  .document-card { grid-template-columns: 1fr; gap: 8px; }
  .doc-links { justify-content: flex-start; }
}
@media (max-width: 710px) {
  .layout { display: block; }
  .sidebar { position: static; height: auto; padding: 12px 17px; gap: 13px; }
  .brand { padding-inline: 0; }
  .brand strong { font-size: 20px; }
  .brand small { font-size: 12px; }
  .brand-icon { width: 35px; height: 35px; }
  .nav { display: flex; flex-wrap: wrap; gap: 4px; }
  .nav a { padding: 5px 8px; gap: 5px; font-size: 14px; }
  .side-objects, .side-foot { display: none; }
  .topbar { min-height: 0; padding-block: 10px; }
  .topbar .breadcrumb { display: none; }
  .search { width: 100%; }
  .content { padding-block-start: 20px; }
  .grid { gap: 10px; }
  .network-trunk::after { left: 11px; width: calc(50% - 9px); border-left: 0; border-right: 2px solid var(--connector); border-bottom: 2px solid var(--connector); }
  .network-branches { grid-template-columns: 1fr; gap: 0; }
  .network-branch { padding: 4px 0 4px 35px; }
  .network-branch::before, .network-branch:first-child::before, .network-branch:last-child::before { inset: 0 auto 0 11px; border: 0; border-left: 2px solid var(--connector); }
  .network-branch:last-child::before { bottom: 50%; }
  .network-pointer { left: 11px; top: 50%; height: 0; width: 18px; border: 0; border-top: 2px solid var(--connector); }
  .network-pointer::after { inset: -5px -1px auto auto; transform: rotate(-45deg); }
  .network-branches a { min-height: 51px; text-align: left; }
}
@media (max-width: 490px) {
  .grid { grid-template-columns: 1fr; }
  .object { min-height: 0; }
  .nav a { font-size: 13px; }
  .section-head { flex-wrap: wrap; }
  .flow-track { flex-direction: column; }
  .flow-node { flex: 0 1 auto; min-height: 39px; }
  .flow-arrow { flex: 0 1 auto; align-self: stretch; text-align: left; padding: 6px 6px 6px 30px; }
  .flow-arrow::before { inset: 3px auto 5px 15px; border-width: 0 0 0 2px; }
  .flow-arrow::after { left: 12px; right: auto; bottom: 5px; transform: rotate(135deg); }
}
