:root {
  color-scheme: light;
  --page: #f4f7fb;
  --surface: #ffffff;
  --surface-soft: #edf2f8;
  --ink: #17263b;
  --ink-soft: #56667c;
  --ink-faint: #78879a;
  --line: #dce4ee;
  --line-strong: #c8d4e2;
  --navy: #0b1422;
  --navy-soft: #13233a;
  --accent: #007f83;
  --accent-bright: #22c9b5;
  --accent-soft: #d9f3ef;
  --blue: #456be7;
  --amber: #b87921;
  --danger: #bd4d5a;
  --shadow: 0 18px 50px rgb(24 44 72 / 9%);
  --radius: 18px;
  --radius-small: 11px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --page: #0b1422;
    --surface: #111f31;
    --surface-soft: #17273c;
    --ink: #e7eef8;
    --ink-soft: #a8b7ca;
    --ink-faint: #8293a9;
    --line: #263850;
    --line-strong: #39506c;
    --navy: #070e18;
    --navy-soft: #101c2d;
    --accent: #5be0cf;
    --accent-bright: #22c9b5;
    --accent-soft: #123a3a;
    --blue: #91aaff;
    --amber: #efbe6e;
    --danger: #ff909a;
    --shadow: 0 18px 50px rgb(0 0 0 / 25%);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--page); line-height: 1.55; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
button, input, select { font: inherit; }
button, select { cursor: pointer; }
button:focus-visible, input:focus-visible, select:focus-visible, a:focus-visible { outline: 3px solid var(--accent-bright); outline-offset: 3px; }
::selection { background: var(--accent-bright); color: #061b1a; }

.visually-hidden, .skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link:focus { position: fixed; z-index: 50; top: 1rem; left: 1rem; padding: .7rem 1rem; color: #fff; background: var(--navy); border-radius: 8px; }

.site-header { position: sticky; z-index: 20; top: 0; display: flex; align-items: center; gap: 2rem; min-height: 76px; padding: .75rem clamp(1rem, 4vw, 4rem); color: #edf4ff; background: rgb(11 20 34 / 96%); border-bottom: 1px solid rgb(170 196 228 / 13%); backdrop-filter: blur(14px); }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: .75rem; color: inherit; }
.brand:hover { text-decoration: none; }
.brand-mark { display: grid; width: 38px; height: 38px; place-items: center; color: #071b20; background: linear-gradient(135deg, #62e4d1, #6fa8ff); border-radius: 12px; font-size: 1.35rem; font-weight: 900; }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { font-size: .96rem; letter-spacing: -.02em; }
.brand-copy small { margin-top: .2rem; color: #9eafc6; font-size: .7rem; letter-spacing: .06em; text-transform: uppercase; }
.primary-nav { display: flex; align-items: center; gap: .25rem; }
.primary-nav a { padding: .6rem .8rem; color: #b9c8da; border-radius: 8px; font-size: .88rem; font-weight: 600; }
.primary-nav a:hover, .primary-nav a[aria-current="page"] { color: #fff; background: rgb(255 255 255 / 9%); text-decoration: none; }
.header-search { position: relative; width: min(340px, 30vw); margin-left: auto; }
.header-search input { width: 100%; padding: .65rem 2.6rem .65rem .9rem; color: #eef4fb; background: #15243a; border: 1px solid #30445f; border-radius: 10px; }
.header-search input::placeholder { color: #90a2ba; }
.search-hint { position: absolute; top: 50%; right: .7rem; display: grid; width: 22px; height: 22px; place-items: center; color: #91a4bd; border: 1px solid #4a607b; border-radius: 5px; font-size: .75rem; transform: translateY(-50%); }
.search-results { position: absolute; z-index: 30; top: calc(100% + .6rem); right: 0; left: 0; overflow: hidden; max-height: min(70vh, 520px); overflow-y: auto; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); }
.search-result { display: block; padding: .75rem .9rem; color: var(--ink); border-bottom: 1px solid var(--line); }
.search-result:last-child { border-bottom: 0; }
.search-result:hover, .search-result:focus { background: var(--surface-soft); text-decoration: none; }
.search-result strong, .search-result small { display: block; }
.search-result strong { overflow-wrap: anywhere; }
.search-result small { overflow: hidden; margin-top: .18rem; color: var(--ink-soft); text-overflow: ellipsis; white-space: nowrap; }
.search-result .result-type { display: inline-block; margin-top: .35rem; color: var(--accent); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.search-empty { padding: .9rem; color: var(--ink-soft); font-size: .9rem; }

main { min-height: 72vh; }
.hero { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr); gap: 2rem; z-index: 1; min-height: 450px; padding: clamp(3.5rem, 8vw, 7rem) clamp(1rem, 8vw, 8rem); color: #f2f7ff; background: radial-gradient(ellipse at 76% 44%, #193d55 0%, #11243a 30%, #0b1422 70%); }
.hero::before { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at 90% 10%, transparent 52%, rgb(139 197 221 / 8%) 52%, transparent calc(52% + 1px)); content: ""; }
.hero-copy { position: relative; z-index: 1; max-width: 720px; align-self: center; }
.eyebrow { margin: 0 0 .8rem; color: var(--accent); font-size: .7rem; font-weight: 800; letter-spacing: .15em; text-transform: uppercase; }
.hero .eyebrow { color: #62dcca; }
.hero h1 { margin: 0; font-size: clamp(2.9rem, 6vw, 5.6rem); line-height: .99; letter-spacing: -.065em; }
.hero h1 span { color: #66dcca; }
.hero-summary { max-width: 590px; margin: 1.4rem 0 1.7rem; color: #b6c5d8; font-size: clamp(1rem, 1.6vw, 1.18rem); }
.hero-note { max-width: 580px; margin: .9rem 0 0; color: #879bb4; font-size: .78rem; }
.hero-search { position: relative; display: flex; gap: .55rem; max-width: 620px; padding: .35rem; background: #f6f8fb; border: 1px solid rgb(190 211 229 / 32%); border-radius: 12px; box-shadow: 0 10px 34px rgb(0 0 0 / 18%); }
.hero-search input { flex: 1; min-width: 0; padding: .8rem .85rem; color: #15243a; background: transparent; border: 0; outline: none; }
.hero-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: -3px; border-radius: 8px; }
.hero-search input::placeholder { color: #728198; }
.hero-search .search-results { top: calc(100% + .65rem); left: 0; width: min(100%, 620px); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; min-height: 40px; padding: .65rem 1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 9px; font-weight: 700; transition: transform .16s ease, background .16s ease; }
.button:hover { text-decoration: none; transform: translateY(-1px); }
.button-primary { color: #062321; background: #68dfcf; border-color: #68dfcf; }
.button-primary:hover { background: #8ceadd; }
.button-quiet { background: transparent; }
.hero-art { position: relative; display: grid; min-height: 300px; place-items: center; }
.orbit { position: absolute; width: min(32vw, 390px); aspect-ratio: 1; border: 1px solid rgb(109 224 206 / 19%); border-radius: 50%; }
.orbit-one { transform: rotate(28deg) scaleY(.68); }
.orbit-two { transform: rotate(-33deg) scaleY(.68); }
.core-card { position: relative; display: grid; width: 220px; height: 190px; place-content: center; justify-items: center; gap: .25rem; background: linear-gradient(145deg, rgb(33 74 97 / 94%), rgb(17 34 55 / 97%)); border: 1px solid rgb(132 214 210 / 38%); border-radius: 24px; box-shadow: 0 28px 70px rgb(0 0 0 / 32%), inset 0 1px rgb(255 255 255 / 12%); transform: rotate(-5deg); }
.core-icon { color: #75e3d4; font-family: ui-monospace, monospace; font-size: 2.4rem; font-weight: 700; }
.core-card strong { font-size: 1.1rem; }
.core-card small { color: #a5b8cc; font-size: .73rem; }
.float-card { position: absolute; display: flex; align-items: center; gap: .5rem; padding: .65rem .85rem; color: #dce8f3; background: #14243a; border: 1px solid #35506b; border-radius: 9px; box-shadow: 0 10px 30px rgb(0 0 0 / 24%); font-size: .72rem; }
.float-card-top { top: 14%; right: 0; }
.float-card-bottom { bottom: 13%; left: -1rem; max-width: 100%; }
.float-card code { overflow: hidden; color: #83e6d7; text-overflow: ellipsis; white-space: nowrap; }
.status-dot { width: 7px; height: 7px; background: #62db9c; border-radius: 50%; box-shadow: 0 0 12px #62db9c; }

.section-shell { width: min(1200px, calc(100% - 2.5rem)); margin-right: auto; margin-left: auto; }
.section-shell + .section-shell { margin-top: 4.2rem; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 1.4rem; }
.section-heading h2 { margin: 0; font-size: clamp(1.7rem, 3vw, 2.25rem); line-height: 1.1; letter-spacing: -.045em; }
.section-heading > p { max-width: 400px; margin: 0; color: var(--ink-soft); font-size: .92rem; }
.feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.feature-card { position: relative; display: flex; min-height: 260px; flex-direction: column; padding: 1.35rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 5px 18px rgb(35 57 86 / 3%); transition: border .2s ease, transform .2s ease, box-shadow .2s ease; }
.feature-card:hover { border-color: var(--accent); box-shadow: var(--shadow); text-decoration: none; transform: translateY(-3px); }
.feature-icon { display: grid; width: 44px; height: 44px; place-items: center; margin-bottom: 1.1rem; color: var(--accent); background: var(--accent-soft); border-radius: 13px; font-size: 1.4rem; font-weight: 800; }
.feature-kicker { color: var(--ink-faint); font-size: .67rem; font-weight: 800; letter-spacing: .12em; }
.feature-card h3 { margin: .35rem 0 .45rem; font-size: 1.2rem; letter-spacing: -.025em; }
.feature-card p { margin: 0 0 1.2rem; color: var(--ink-soft); font-size: .88rem; }
.card-link { display: flex; align-items: center; gap: .45rem; margin-top: auto; color: var(--accent); font-size: .85rem; font-weight: 800; }
.home-latest { padding-bottom: 5rem; }
.text-link { color: var(--accent); font-size: .88rem; font-weight: 750; }
.data-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); box-shadow: 0 6px 22px rgb(20 40 70 / 3%); }
.home-change-table { width: 100%; border-collapse: collapse; }
.home-change-table td { padding: .82rem 1rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.home-change-table tr:last-child td { border-bottom: 0; }
.home-change-table td:first-child { width: 130px; color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.home-change-table td:nth-child(2) { width: 210px; font-weight: 750; }

.page-hero { padding-top: 4rem; padding-bottom: 2rem; }
.page-hero h1, .prose-page h1, .table-detail-page h1, .cmdlet-page h1 { margin: 0; font-size: clamp(2.4rem, 5vw, 4.2rem); line-height: 1.02; letter-spacing: -.06em; }
.table-detail-page h1, .cmdlet-page h1, .cmdlet-card code, .action-list strong { overflow-wrap: anywhere; }
.cmdlet-card, .detail-card, .action-list li { min-width: 0; }
.lede { max-width: 780px; margin: 1rem 0 0; color: var(--ink-soft); font-size: 1.05rem; }
.explorer-shell { padding-bottom: 4rem; }
.filter-bar { display: flex; align-items: end; flex-wrap: wrap; gap: .75rem; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.filter-bar label { display: grid; min-width: 155px; gap: .35rem; color: var(--ink-soft); font-size: .71rem; font-weight: 750; }
.filter-bar .filter-search { flex: 1 1 300px; }
.filter-bar input, .filter-bar select { width: 100%; min-height: 42px; padding: .55rem .7rem; color: var(--ink); background: var(--page); border: 1px solid var(--line-strong); border-radius: 8px; font-size: .88rem; }
.filter-bar input::placeholder { color: var(--ink-faint); }
.results-meta { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin: .85rem 0; color: var(--ink-soft); font-size: .78rem; }
.results-meta a { font-weight: 750; }
.table-scroll { overflow: auto; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: .75rem .9rem; color: var(--ink-faint); background: var(--surface-soft); font-size: .67rem; font-weight: 800; letter-spacing: .08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.data-table td { padding: .82rem .9rem; border-top: 1px solid var(--line); font-size: .83rem; vertical-align: top; }
.data-table tbody tr:hover { background: color-mix(in srgb, var(--accent-soft) 40%, transparent); }
.data-table td:first-child { color: var(--ink-faint); font-variant-numeric: tabular-nums; white-space: nowrap; }
.table-link { color: var(--ink); font-weight: 800; }
.table-link:hover { color: var(--accent); }
.badge { display: inline-flex; align-items: center; padding: .17rem .5rem; color: var(--accent); background: var(--accent-soft); border-radius: 99px; font-size: .68rem; font-weight: 800; }
.empty-state, .loading-state { padding: 2.3rem 1rem; color: var(--ink-soft); text-align: center; }
.spinner { display: inline-block; width: 16px; height: 16px; margin-right: .5rem; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; vertical-align: -3px; animation: spin .75s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.table-detail-page { padding-top: 2.3rem; padding-bottom: 5rem; }
.back-link { display: inline-block; margin-bottom: 1.5rem; color: var(--ink-soft); font-size: .83rem; font-weight: 750; }
.detail-meta { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1rem 0 2rem; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, .42fr); gap: 1rem; margin: 1.4rem 0 2rem; }
.detail-card { padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-small); }
.detail-card h2, .detail-section h2 { margin: 0 0 .8rem; font-size: 1.2rem; letter-spacing: -.03em; }
.detail-card p { margin: 0; color: var(--ink-soft); }
.retention-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 0; }
.retention-list div { padding: .65rem; background: var(--surface-soft); border-radius: 8px; }
.retention-list dt { color: var(--ink-faint); font-size: .67rem; }
.retention-list dd { margin: .2rem 0 0; font-size: 1.05rem; font-weight: 800; }
.detail-section { margin-top: 2rem; }
.inline-filter { width: min(100%, 390px); min-height: 40px; margin: 0 0 .8rem; padding: .55rem .7rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 8px; }
.action-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; padding: 0; list-style: none; }
.action-list li { padding: .75rem; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.action-list strong { display: block; margin-bottom: .2rem; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .78rem; }
.action-list span { color: var(--ink-soft); font-size: .78rem; }
.history-list { padding-left: 1.2rem; }
.history-list li { margin: .45rem 0; color: var(--ink-soft); }
.history-list time { margin-right: .45rem; color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.field-count { color: var(--ink-faint); font-size: .82rem; }

.cmdlet-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.cmdlet-card { display: block; padding: 1rem 1.1rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 11px; transition: border .15s ease, transform .15s ease; }
.cmdlet-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); }
.cmdlet-card code { color: var(--blue); font-size: .86rem; font-weight: 800; }
.cmdlet-card p { margin: .45rem 0 0; color: var(--ink-soft); font-size: .8rem; }
.cmdlet-page { padding-top: 2.3rem; padding-bottom: 5rem; }
.cmdlet-content { max-width: 900px; margin-top: 2rem; }
.prose-page { max-width: 900px; padding-top: 3rem; padding-bottom: 5rem; }
.prose-page h2, .cmdlet-content h2 { margin: 2.4rem 0 .8rem; padding-bottom: .45rem; border-bottom: 1px solid var(--line); font-size: 1.35rem; }
.prose-page h3, .cmdlet-content h3 { margin: 1.4rem 0 .35rem; font-size: 1rem; }
.prose-page p, .cmdlet-content p { color: var(--ink-soft); }
.prose-page pre, .cmdlet-content pre { overflow: auto; padding: 1rem; color: #d6e7f6; background: #0e1929; border-radius: 10px; font-size: .82rem; }
.prose-page code, .cmdlet-content code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.prose-page :not(pre) > code, .cmdlet-content :not(pre) > code { padding: .12rem .32rem; color: var(--blue); background: var(--surface-soft); border-radius: 4px; }
.page-list { padding-left: 1.2rem; }
.page-list li { margin: .45rem 0; }
.search-page-form { margin-top: 1.5rem; }
.search-page-results { display: grid; gap: .6rem; }
.search-page-results .search-result { padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }

.site-footer { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1.3rem; padding: 1.8rem clamp(1rem, 4vw, 4rem); color: #bdc9d7; background: var(--navy); font-size: .76rem; }
.site-footer > div { display: grid; gap: .2rem; }
.site-footer > div span { color: #879bb2; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1rem; }
.site-footer a { color: #8fe3d5; }

@media (max-width: 1060px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .site-header { flex-wrap: wrap; gap: .55rem 1rem; padding: .7rem 1rem; }
  .brand { margin-right: auto; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; }
  .primary-nav a { padding: .48rem .65rem; white-space: nowrap; }
  .header-search { width: min(280px, 48vw); margin-left: 0; }
  .hero { grid-template-columns: 1fr; min-height: unset; padding-top: 4rem; padding-bottom: 3rem; }
  .hero-art { min-height: 270px; }
  .orbit { width: min(60vw, 340px); }
  .float-card-top { right: 9%; }
  .float-card-bottom { left: 5%; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: 225px; }
  .section-heading { align-items: start; flex-direction: column; }
}
@media (max-width: 600px) {
  .header-search { order: 2; width: 100%; }
  .hero h1 { font-size: 3.2rem; }
  .hero-search { flex-wrap: wrap; }
  .hero-search input { flex-basis: 100%; }
  .hero-search .button { width: 100%; }
  .hero-art { min-height: 220px; }
  .core-card { width: 180px; height: 155px; }
  .float-card { font-size: .63rem; }
  .float-card-top { top: 3%; right: 0; }
  .float-card-bottom { bottom: 2%; left: 0; }
  .section-shell { width: min(100% - 1.25rem, 1200px); }
  .section-shell + .section-shell { margin-top: 3rem; }
  .filter-bar { align-items: stretch; flex-direction: column; }
  .filter-bar label { width: 100%; min-width: 0; }
  .filter-bar input, .filter-bar select { min-width: 0; }
  .filter-bar .filter-search { flex: 0 1 auto; }
  .filter-bar .button { align-self: start; }
  .change-filters { display: grid; grid-template-columns: 1fr 1fr; }
  .change-filters .filter-search { grid-column: 1 / -1; }
  .change-filters .button { grid-column: 1 / -1; }
  .data-table { min-width: 650px; }
  .home-change-table { min-width: 570px; }
  .detail-grid { grid-template-columns: 1fr; }
  .action-list { grid-template-columns: 1fr; }
  .cmdlet-grid { grid-template-columns: minmax(0, 1fr); }
  .site-footer { align-items: start; flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

.freshness { padding-block: 1rem; color: var(--ink-soft); font-size: .78rem; border-top: 1px solid var(--line); }
.freshness p { margin: .3rem 0; }
.data-warning { padding: .8rem 1rem; border-left: 3px solid var(--amber); background: var(--surface-soft); color: var(--ink-soft); font-size: .85rem; }

.docs-layout { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 2rem; margin-top: 2rem; }
.doc-toc { align-self: start; position: sticky; top: 6rem; max-height: calc(100vh - 7rem); overflow-y: auto; padding: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; font-size: .8rem; overflow-wrap: anywhere; }
.doc-toc h2 { margin: 0 0 .65rem; font-size: .95rem; }
.doc-toc ul { list-style: none; padding-left: .6rem; }
.doc-toc > nav > ul { padding-left: 0; }
.doc-toc li { margin: .5rem 0; }
.docs-layout .cmdlet-content { margin: 0; padding: 0; min-width: 0; }
.cmdlet-content table { display: block; overflow-x: auto; max-width: 100%; border-collapse: collapse; margin: .8rem 0; }
.cmdlet-content th, .cmdlet-content td { padding: .5rem .8rem; text-align: left; border: 1px solid var(--line); }
.cmdlet-content th { background: var(--surface-soft); }
.cmdlet-content table code { overflow-wrap: anywhere; }
.cmdlet-content h2, .cmdlet-content h3, .detail-section h2 { scroll-margin-top: 12rem; }
.detail-toc { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; }
@media (max-width: 860px) {
  .docs-layout { grid-template-columns: minmax(0, 1fr); }
  .doc-toc { position: static; max-height: 13rem; }
}

.relations-filters { gap: .8rem; }
.relation-graph-panel { overflow: hidden; }
.graph-toolbar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .85rem 1rem; border-bottom: 1px solid var(--line); }
.graph-toolbar > span { font-size: .8rem; color: var(--ink-soft); max-width: 520px; }
.graph-toolbar > div { display: flex; gap: .4rem; flex-shrink: 0; }
.graph-scroll { overflow: auto; max-height: 680px; background-image: radial-gradient(var(--line-strong) 1px, transparent 1px); background-size: 20px 20px; }
#relations-graph { display: block; width: 100%; min-width: 720px; }
.graph-table-bg { fill: var(--surface); stroke: var(--line-strong); stroke-width: 1.5; }
.graph-table-name { fill: var(--ink); font: 700 14px ui-monospace, monospace; }
.graph-field rect { fill: var(--surface-soft); stroke: transparent; }
.graph-field-name { fill: var(--ink-soft); font: 12px ui-monospace, monospace; pointer-events: none; }
.graph-field, .relation-edge { cursor: pointer; outline: none; }
.graph-field:hover rect, .graph-field:focus-visible rect, .graph-field[aria-pressed=true] rect { fill: var(--accent-soft); stroke: var(--accent); stroke-width: 2; }
.edge-hit { fill: none; stroke: transparent; stroke-width: 22; }
.edge-line { fill: none; stroke: var(--ink-faint); stroke-width: 3; pointer-events: none; }
.relation-edge:hover .edge-line, .relation-edge:focus-visible .edge-line, .relation-edge[aria-pressed=true] .edge-line { stroke: var(--accent); stroke-width: 5; }
.relations-detail-layout { display: grid; grid-template-columns: minmax(240px, .75fr) minmax(0, 1.5fr); gap: 1.5rem; margin-top: 1.5rem; align-items: start; }
.relations-detail-layout h2 { font-size: 1.25rem; margin-top: 0; }
.relation-list { display: grid; gap: .6rem; }
.relation-card { text-align: left; padding: 1rem; display: grid; gap: .45rem; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; overflow-wrap: anywhere; }
.relation-card span { font: .76rem ui-monospace, monospace; color: var(--ink-soft); }
.relation-card small { color: var(--accent); }
.relation-card[aria-pressed=true] { border-color: var(--accent); box-shadow: inset 3px 0 var(--accent); }
.relation-detail { min-width: 0; padding: 1.35rem; }
.relation-detail p { color: var(--ink-soft); }
.relation-detail h2, .relation-detail h3 { overflow-wrap: anywhere; }
.relation-detail pre { overflow: auto; max-width: 100%; padding: 1rem; background: #091523; color: #d6e7f6; border-radius: 8px; font-size: .78rem; }
.relation-endpoints { display: grid; gap: .6rem; margin-block: 1.2rem; }
.relation-endpoint { display: grid; gap: .3rem; padding: .8rem; background: var(--surface-soft); border-radius: 8px; overflow-wrap: anywhere; }
.relation-endpoint code { color: var(--accent); }
.relation-endpoint span { color: var(--ink-soft); font-size: .75rem; }
.relation-endpoints > span { text-align: center; color: var(--ink-faint); }
.query-note { font-size: .85rem; }
.relation-note { margin-block: 1rem; padding: 1rem; background: var(--surface-soft); border-radius: 9px; }
.relation-note h3 { margin-top: 0; }
.relation-note p:last-of-type { margin-bottom: .75rem; }
.join-window { display: inline-flex; gap: .6rem; align-items: center; margin: 0 1rem .65rem 0; font-size: .85rem; }
.join-window select { padding: .45rem; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 6px; background: var(--surface); }
@media (max-width: 1100px) {
  .site-header { flex-wrap: wrap; gap: .6rem 1rem; }
  .primary-nav { order: 3; width: 100%; overflow-x: auto; }
  .primary-nav a { white-space: nowrap; }
  .brand { margin-right: auto; }
  .doc-toc { top: 10rem; max-height: calc(100vh - 11rem); }
}
@media (max-width: 720px) {
  .relations-detail-layout { grid-template-columns: minmax(0, 1fr); }
  .graph-toolbar { flex-wrap: wrap; }
  .graph-toolbar .button { padding: .4rem .65rem; }
}

/* Keep graph navigation local to its scrollable viewport. */
.graph-scroll { cursor: grab; overscroll-behavior: contain; user-select: none; }
.graph-scroll.is-panning, .graph-scroll.is-panning * { cursor: grabbing; }
