:root {
  --ink: #182536;
  --muted: #677486;
  --subtle: #8b95a3;
  --line: #e4e9ef;
  --bg: #fff;
  --nav: #f8fafc;
  --blue: #2258bb;
  --blue-soft: #edf3ff;
  --code: #111e30;
  --radius: 9px;
  --header: 68px;
  font-family: "Segoe UI", "Malgun Gothic", Arial, sans-serif;
  color: var(--ink);
  font-size: 100%;
  line-height: 1.75;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  font-size: 0.875rem;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button {
  cursor: pointer;
}
a {
  color: var(--blue);
  text-decoration: none;
}
button svg,
svg.icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  flex-shrink: 0;
}
button {
  color: inherit;
}
code,
kbd,
pre {
  font-family: Consolas, "SFMono-Regular", monospace;
}
code {
  font-size: 0.95em;
  background: #f0f3f7;
  border-radius: 4px;
  padding: 2px 5px;
  overflow-wrap: anywhere;
  color: #35516e;
}
kbd {
  border: 1px solid #dce1e9;
  background: #fff;
  border-radius: 4px;
  font-size: 0.75rem;
  padding: 1px 5px;
  color: #738096;
  white-space: nowrap;
}
.topbar {
  height: var(--header);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.97);
  position: sticky;
  top: 0;
  z-index: 25;
  backdrop-filter: blur(12px);
}
.topbar-inner {
  width: 100%;
  height: 100%;
  margin: auto;
  display: flex;
  align-items: center;
  padding: 0 28px;
  gap: 26px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.4px;
  line-height: 1.35;
  flex-shrink: 0;
}
.brand:hover {
  text-decoration: none;
}
.brand small {
  display: block;
  color: #7a8797;
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.35px;
  margin-top: 3px;
}
.brand-mark {
  display: flex;
  background: #173b71;
  color: white;
  width: 34px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}
.brand-mark svg {
  width: 23px;
  stroke: currentColor;
  stroke-width: 1.4;
  fill: none;
}
.side-items {
  list-style: none;
  margin: 0;
  padding: 0;
}
.side-link.depth-1 {
  padding-left: 24px;
}
.side-link.depth-2 {
  padding-left: 36px;
}
.side-link.depth-3 {
  padding-left: 48px;
}
.side-link.is-parent {
  color: var(--blue);
  font-weight: 600;
}
.side-link {
  overflow-wrap: anywhere;
}
.type-uses {
  margin: 24px 0;
  padding: 16px 20px;
  background: var(--nav);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.type-uses h2 {
  margin: 0 0 10px;
  padding: 0;
  font-size: 15px;
}
.type-uses ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.type-uses li {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  padding: 4px 0;
}
.type-uses li > span {
  color: var(--muted);
  font-size: 13px;
}
.type-uses code {
  background: transparent;
  padding: 0;
  color: var(--blue);
}
tr[id^="field-"] {
  scroll-margin-top: 90px;
}
.search-trigger {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  width: 270px;
  color: var(--muted);
  text-align: left;
  font-size: 0.8125rem;
}
.search-trigger kbd {
  margin-left: auto;
}
.search-trigger:hover {
  border-color: #a4b7d4;
  background: white;
}
.snapshot-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #519583;
  display: inline-block;
}
.app-shell {
  --sidebar-width: 248px;
  --toc-width: 190px;
  width: 100%;
  margin: auto;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr) var(--toc-width);
  min-height: calc(100vh - var(--header));
}
.sidebar {
  height: calc(100vh - var(--header));
  position: sticky;
  top: var(--header);
  overflow-y: auto;
  border-right: 1px solid var(--line);
  padding: 26px 18px 16px 25px;
  background: var(--nav);
  display: flex;
  flex-direction: column;
  scrollbar-width: thin;
}
.nav-section {
  margin-top: 12px;
}
.nav-section > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px;
  border-radius: 5px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
  outline-offset: 3px;
}
.nav-section > summary::-webkit-details-marker {
  display: none;
}
.nav-section > summary::after {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 2px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(-45deg);
}
.nav-section[open] > summary::after {
  transform: rotate(45deg);
}
.nav-section > summary:hover {
  background: #eef1f6;
}
.nav-section.is-current > summary {
  color: var(--blue);
}
.nav-section > .side-items {
  margin: 3px 0 0 10px;
  padding-left: 6px;
  border-left: 1px solid var(--line);
}
#sidebar-nav {
  padding-bottom: 24px;
}
.side-link {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #58677a;
  font-size: 0.8125rem;
  padding: 6px 11px;
  margin: 1px 0;
  border-radius: 5px;
  line-height: 1.7;
}
.side-link:hover {
  text-decoration: none;
  background: #eef1f6;
  color: #243e65;
}
.side-link.active {
  background: #e9f0fe;
  color: #235cbb;
  font-weight: 600;
}
.side-link .count {
  margin-left: auto;
  color: #8d9aab;
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}
.side-link .nav-symbol {
  color: #8f9cac;
  width: 14px;
  text-align: center;
  font-size: 0.9375rem;
}
.side-link.active .nav-symbol {
  color: var(--blue);
}
.sidebar-foot {
  margin-top: auto;
  font-size: 0.75rem;
  color: #7e8a99;
  padding: 21px 10px 3px;
  border-top: 1px solid var(--line);
}
.sidebar-foot .snapshot-dot {
  margin-right: 5px;
}
.sidebar-foot small {
  display: block;
  padding-left: 11px;
  color: #9aa4b0;
  font-size: 0.75rem;
}
main {
  grid-column: 2;
  min-width: 0;
  padding: 34px 44px 60px;
  max-width: 100%;
}
.breadcrumb {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 20px;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 0;
  list-style: none;
  margin: 0;
  padding: 0;
}
.breadcrumb li {
  display: flex;
  align-items: baseline;
  min-width: 0;
  overflow-wrap: anywhere;
}
.breadcrumb li + li::before {
  content: "/";
  margin: 0 9px;
  color: #bbc3ce;
}
.breadcrumb a {
  color: var(--blue);
}
.breadcrumb a:hover {
  background: var(--blue-soft);
  border-radius: 3px;
}
.eyebrow {
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  margin-bottom: 9px;
}
h1 {
  font-size: 28px;
  line-height: 1.35;
  letter-spacing: -1.05px;
  margin: 0 0 15px;
  font-weight: 680;
  color: #172b44;
}
h2 {
  font-size: 18px;
  font-weight: 650;
  letter-spacing: -0.45px;
  margin: 36px 0 14px;
  padding-top: 5px;
  line-height: 1.5;
  scroll-margin-top: 90px;
}
h3 {
  font-size: 0.9375rem;
  font-weight: 650;
  margin: 25px 0 10px;
  scroll-margin-top: 90px;
}
.lead {
  font-size: 0.875rem;
  line-height: 1.9;
  color: #69778a;
  max-width: 720px;
  margin: 0 0 24px;
}
.prose p {
  line-height: 1.95;
  color: #4e5d71;
  margin: 13px 0;
}
.property-guide-section {
  min-width: 0;
}
.property-guide-section + .property-guide-section {
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}
.property-guide-section .table-scroll td {
  vertical-align: top;
  overflow-wrap: anywhere;
}
.property-guide-section .table-scroll code {
  white-space: normal;
  overflow-wrap: anywhere;
}
.property-guide-section .code-block {
  margin: 14px 0;
}
.prose .property-flow {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
  gap: 10px;
  list-style: none;
  padding: 0;
  counter-reset: property-step;
}
.property-flow li {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f9fc;
  counter-increment: property-step;
}
.property-flow li::before {
  content: counter(property-step, decimal-leading-zero);
  display: block;
  font-size: 12px;
  color: #677e9a;
  margin-bottom: 5px;
}
.property-flow strong, .property-flow span {
  display: block;
}
.property-flow span {
  margin-top: 5px;
}
.prose li {
  margin: 5px 0;
  line-height: 1.9;
  color: #4e5d71;
}
.prose ul,
.prose ol {
  padding-left: 23px;
  margin: 13px 0;
}
.prose strong {
  color: #253b55;
  font-weight: 650;
}
.prose h2 {
  border-top: 1px solid var(--line);
  padding-top: 28px;
  margin-top: 38px;
}
.prose h2:first-child {
  border-top: 0;
  margin-top: 0;
  padding-top: 0;
}
.prose h3 {
  color: #314b6b;
}
.prose a {
  overflow-wrap: anywhere;
}
.prose .module-inline {
  font-weight: 400;
}
.prose hr {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 32px 0;
}
.page-toc {
  grid-column: 3;
  padding: 37px 20px 24px 10px;
  position: sticky;
  top: var(--header);
  height: calc(100vh - var(--header));
  overflow-y: auto;
  font-size: 0.875rem;
  scrollbar-width: thin;
}
.toc-title {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: #8d98a6;
  margin: 0 0 12px;
  font-weight: 600;
}
.toc-link {
  display: block;
  color: #7d8999;
  padding: 5px 0 5px 12px;
  border-left: 1px solid #e8ecf1;
  font-size: 0.875rem;
  line-height: 1.6;
}
.toc-link:hover {
  text-decoration: none;
  color: var(--blue);
  border-color: #407bcf;
}
.toc-note {
  border-top: 1px solid var(--line);
  margin-top: 25px;
  padding-top: 16px;
  font-size: 0.75rem;
  color: #8b97a6;
  line-height: 1.8;
}
.tag-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 14px 0 24px;
}
.tag {
  font-size: 0.75rem;
  line-height: 1.6;
  border: 1px solid var(--line);
  padding: 3px 8px;
  border-radius: 5px;
  color: #6c7a8b;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.tag.blue {
  color: #315d9c;
  background: #f2f6fd;
  border-color: #dae5f5;
}
.tag.green {
  color: #43806d;
  background: #eff8f3;
  border-color: #dbeee3;
}
.callout {
  padding: 14px 17px;
  background: #f4f8ff;
  border: 1px solid #e2ebfa;
  border-left: 3px solid #658ec9;
  border-radius: 5px;
  color: #5c708c;
  font-size: 0.875rem;
  line-height: 1.9;
  margin: 24px 0;
}
.callout strong {
  color: #31537b;
}
.callout.subtle {
  background: #f9fafb;
  border-color: #e5e9ef;
  color: #758191;
  border-left-color: #bcc8d7;
}
.metrics {
  display: flex;
  gap: 0;
  margin: 28px 0 32px;
  padding: 17px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.metric {
  flex: 1;
  padding: 0 20px;
  border-right: 1px solid var(--line);
  line-height: 1.5;
}
.metric:first-child {
  padding-left: 0;
}
.metric:last-child {
  border: 0;
}
.metric b {
  font-size: 21px;
  font-weight: 650;
  letter-spacing: -0.5px;
  display: block;
  color: #273f61;
}
.metric span {
  font-size: 0.75rem;
  color: #8894a3;
}
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 15px;
  margin: 27px 0 14px;
}
.section-head h2 {
  margin: 0;
  padding: 0;
}
.section-head a {
  font-size: 0.875rem;
  white-space: nowrap;
}
.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.doc-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 21px;
  display: block;
  color: var(--ink);
  transition:
    background 0.15s,
    border-color 0.15s;
}
.doc-card:hover {
  border-color: #b6cae7;
  background: #fbfcff;
  text-decoration: none;
}
.card-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--blue);
}
.card-heading svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: #6086b3;
  stroke-width: 1.6;
}
.doc-card p {
  font-size: 0.875rem;
  color: #7c8897;
  line-height: 1.85;
  margin: 9px 0 0;
}
.code-block {
  margin: 10px 0 12px;
  border: 1px solid #23344c;
  border-radius: 8px;
  background: var(--code);
  overflow: hidden;
}
.code-toolbar {
  height: 35px;
  padding: 0 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #29384e;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: #8fa1ba;
  background: #152339;
}
.code-toolbar button {
  border: 1px solid transparent;
  border-radius: 4px;
  background: transparent;
  color: #91a4bf;
  font-size: 0.75rem;
  padding: 2px 7px;
  letter-spacing: 0;
}
.code-toolbar button:hover {
  background: #24334a;
  color: #fff;
}
.code-block pre {
  margin: 0;
  padding: 12px 14px;
  color: #d4dfed;
  overflow: auto;
  font-size: 0.9375rem;
  line-height: 1.9;
  tab-size: 4;
}
.code-block code {
  background: none;
  padding: 0;
  border-radius: 0;
  color: inherit;
  font-size: inherit;
  overflow-wrap: normal;
}
.tok-comment {
  color: #7790a9;
}
.tok-string {
  color: #b8d8b6;
}
.tok-keyword {
  color: #bcb2ee;
}
.tok-number {
  color: #e4bf8f;
}
.library-intro {
  margin: 18px 0 26px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #fafbfd;
  font-size: 0.875rem;
  line-height: 1.8;
}
.library-intro p {
  margin: 6px 0;
}
.library-intro code {
  white-space: normal;
}
.library-badge {
  display: inline-block;
  margin: 4px 0 16px;
  padding: 4px 10px;
  border: 1px solid #cbdcf2;
  border-radius: 4px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.example-context {
  margin: 18px 0;
  font-size: 0.875rem;
  line-height: 1.8;
}
.example-context > div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}
.example-context dt {
  color: var(--ink);
  font-weight: 600;
}
.example-context dd {
  margin: 0;
  color: #596b80;
}
.example-structure {
  container-type: inline-size;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: #f8fafc;
  margin: 14px 0;
}
.example-structure summary {
  cursor: pointer;
  padding: 12px 16px;
  color: #4b6180;
  font-size: 0.9375rem;
  font-weight: 600;
}
.structure-diagram {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  align-items: start;
  gap: 20px;
  padding: 4px 20px 20px;
}
.structure-panel {
  min-width: 0;
  --structure-accent: #7452ad;
  --structure-tint: #f5f0fc;
  --structure-line: #dacbea;
}
.structure-panel-dom {
  --structure-accent: #28649c;
  --structure-tint: #eef5fc;
  --structure-line: #c6dced;
}
.structure-panel-heading {
  margin-bottom: 14px;
  padding-left: 12px;
  border-left: 3px solid var(--structure-accent);
}
.structure-panel-heading h4 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
}
.structure-panel-heading > span {
  color: var(--muted);
  font-size: 0.875rem;
}
.structure-diagram ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.structure-diagram li {
  min-width: 0;
  margin: 0;
  padding: 0;
}
.structure-node-card {
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--structure-line);
  border-radius: 8px;
  background: #fff;
}
.structure-roots > .structure-node > .structure-node-card {
  background: var(--structure-tint);
}
.structure-node-heading {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 12px;
}
.structure-node-name {
  min-width: 0;
  overflow-wrap: anywhere;
  font:
    600 0.9375rem/1.6 Consolas,
    "Malgun Gothic",
    monospace;
  color: #263b53;
}
.structure-node-type {
  max-width: 100%;
  padding: 1px 7px;
  border: 1px solid var(--structure-line);
  border-radius: 4px;
  background: var(--structure-tint);
  color: var(--structure-accent);
  font-size: 0.8125rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.structure-node-type a {
  color: inherit;
}
.structure-node-card .structure-node-note {
  margin: 6px 0 0;
  color: #63758a;
  font-size: 0.875rem;
  line-height: 1.6;
  overflow-wrap: anywhere;
}
.structure-roots > .structure-node + .structure-node {
  margin-top: 12px;
}
.structure-panel-objects .structure-children {
  margin-left: 16px;
  padding-left: 18px;
  border-left: 1px solid var(--structure-line);
}
.structure-panel-objects .structure-children > .structure-node {
  position: relative;
  padding-top: 12px;
}
.structure-panel-objects .structure-children > .structure-node::before {
  content: "";
  position: absolute;
  top: 34px;
  left: -18px;
  width: 18px;
  border-top: 1px solid var(--structure-line);
}
.structure-panel-objects .structure-node-dom {
  --structure-line: #c6dced;
  --structure-tint: #eef5fc;
  --structure-accent: #28649c;
}
.structure-panel-dom .structure-node {
  padding: 10px;
  border: 1px solid var(--structure-line);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.7);
}
.structure-panel-dom .structure-node-card {
  padding: 2px 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.structure-panel-dom .structure-roots > .structure-node {
  background: var(--structure-tint);
}
.structure-panel-dom .structure-children {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}
@container (max-width: 760px) {
  .structure-diagram {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
    padding: 4px 14px 16px;
  }
}
@container (max-width: 420px) {
  .structure-panel-dom .structure-node {
    padding: 7px;
  }
}
.example-apis {
  font-size: 0.875rem;
  overflow-wrap: anywhere;
}
.example-section {
  margin-bottom: 40px;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 17px 0 24px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  text-align: left;
}
thead {
  background: #f7f9fb;
}
th {
  color: #6e7d8f;
  font-weight: 600;
  font-size: 0.875rem;
  white-space: nowrap;
}
tbody th {
  font-size: inherit;
}
td,
th {
  padding: 11px 13px;
  border-bottom: 1px solid #edf0f4;
  vertical-align: top;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdff;
}
td {
  color: #546478;
  line-height: 1.8;
}
td code {
  font-size: 0.9375rem;
}
td .type {
  color: #755995;
  font-size: 0.875rem;
  white-space: nowrap;
}
td .declared {
  font-size: 0.75rem;
  color: #91a0b3;
  display: block;
  margin-top: 3px;
}
.property-name,
.member-name {
  font-family: Consolas, monospace;
  font-size: 0.9375rem;
  font-weight: 600;
  background: none;
  border: 0;
  border-radius: 0;
  padding: 0;
  white-space: normal;
  overflow-wrap: anywhere;
  color: var(--ink);
}
.prop-desc {
  min-width: 140px;
}
.table-scroll.api-table td:nth-child(3) {
  max-width: 220px;
  overflow-wrap: anywhere;
}
.default-value {
  white-space: pre-wrap;
  max-height: 75px;
  overflow: auto;
  display: block;
}
.module-name-line {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 20px;
}
.module-name-line code {
  font-size: 0.875rem;
  padding: 5px 8px;
}
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 5px;
  width: 29px;
  height: 29px;
  color: #7e8da1;
}
.icon-button:hover {
  background: var(--blue-soft);
  color: var(--blue);
}
.module-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 15px 0;
  margin: 22px 0 24px;
}
.meta-item {
  padding: 5px 8px 5px 0;
  min-width: 0;
}
.meta-item dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: #8c98a8;
}
.meta-item dd {
  font-size: 0.875rem;
  margin: 3px 0 0;
  color: #5f7188;
  overflow-wrap: anywhere;
}
.inline-tabs {
  display: flex;
  gap: 21px;
  border-bottom: 1px solid var(--line);
  margin: 8px 0 25px;
  overflow-x: auto;
  white-space: nowrap;
}
.inline-tabs a {
  color: #8390a2;
  font-size: 0.875rem;
  padding: 9px 0;
}
.inline-tabs a:first-child {
  color: var(--blue);
  border-bottom: 2px solid var(--blue);
}
.inline-tabs a:hover {
  text-decoration: none;
  color: var(--blue);
}
.inheritance {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #9ca9b9;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fafbfd;
  margin: 14px 0 22px;
}
.inheritance a {
  font-family: Consolas, monospace;
  font-size: 0.75rem;
}
.control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 25px;
}
.control-row h2 {
  margin: 0;
}
.check-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #7c8a9b;
  font-size: 0.75rem;
  white-space: nowrap;
  cursor: pointer;
}
.check-label input {
  accent-color: var(--blue);
}
.method-row {
  padding: 15px 0;
  border-bottom: 1px solid var(--line);
}
.method-row:last-child {
  border-bottom: 0;
}
.method-top {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.method-top code {
  font-size: 0.9375rem;
  background: transparent;
  padding: 0;
  color: #305779;
}
.method-top .tag {
  padding: 1px 5px;
  font-size: 0.75rem;
}
.method-top a.source-link {
  margin-left: auto;
  font-size: 0.75rem;
  color: #8e9fb6;
}
.small-muted {
  font-size: 0.8125rem;
  color: #8190a3;
  line-height: 1.9;
  margin: 9px 0;
}
.dependency-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.dependency-list a,
.dependency-list span {
  display: inline-block;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 4px 8px;
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  background: #fafbfd;
  overflow-wrap: anywhere;
}
.dependency-list span {
  color: #8a95a3;
}
.catalog-filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  padding: 16px 0 20px;
}
.filter-input {
  flex: 1;
  min-width: 200px;
  border: 1px solid #dce3ec;
  border-radius: 6px;
  padding: 9px 12px;
  background: #fff;
  font-size: 0.9375rem;
}
.filter-select {
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font-size: 0.875rem;
  background: #fff;
  color: #62758b;
  max-width: 220px;
}
.result-summary {
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #8c98a9;
  margin: 2px 0 10px;
}
.catalog-row {
  display: block;
  border-bottom: 1px solid var(--line);
  padding: 15px 2px;
  color: inherit;
}
.catalog-row:hover {
  text-decoration: none;
  background: #fafcff;
}
.catalog-top {
  display: flex;
  align-items: center;
  gap: 10px;
}
.catalog-top b {
  font-size: 0.9375rem;
  color: #314e72;
  font-weight: 600;
}
.catalog-top .tag {
  font-size: 0.75rem;
  padding: 1px 6px;
}
.catalog-top .ref-count {
  margin-left: auto;
  color: #97a3b4;
  font-size: 0.75rem;
}
.catalog-row code {
  display: block;
  background: none;
  color: #9aa6b6;
  font-size: 0.75rem;
  padding: 3px 0;
}
.catalog-row p {
  margin: 3px 0 0;
  font-size: 0.875rem;
  color: #718198;
  line-height: 1.85;
}
.empty-state {
  padding: 70px 20px;
  text-align: center;
  border: 1px dashed var(--line);
  border-radius: 8px;
}
.empty-state h3 {
  margin: 0;
  font-weight: 600;
  color: #68798f;
}
.empty-state p {
  font-size: 0.875rem;
  color: #92a0b2;
}
.package-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 22px;
}
.package-card {
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.9375rem;
  display: flex;
  flex-direction: column;
  color: #355678;
}
.package-card span {
  color: #95a1b1;
  font-size: 0.75rem;
  margin-top: 5px;
}
.package-card:hover {
  background: #f8fbff;
  text-decoration: none;
  border-color: #b9cee9;
}
.page-footer {
  margin-top: 45px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: #a0aabb;
  font-size: 0.75rem;
}
.page-footer a {
  color: #7891b1;
}
.source-path {
  font-family: Consolas, monospace;
  font-size: 0.875rem;
  color: #7c8da3;
  overflow-wrap: anywhere;
}
.source-controls {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
  margin: 22px 0 13px;
}
.source-variants .button[aria-pressed="true"] {
  color: var(--blue);
  background: var(--blue-soft);
  border-color: var(--blue);
}
.button {
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 5px;
  background: #fff;
  color: #61758e;
  font-size: 0.875rem;
  display: inline-flex;
  gap: 7px;
  align-items: center;
}
.button:hover {
  background: #f2f6fc;
  border-color: #b7cae2;
  text-decoration: none;
}
.button.primary {
  background: #255bb9;
  border-color: #255bb9;
  color: white;
}
.button:disabled {
  opacity: 0.4;
  cursor: default;
}
.line-input {
  width: 78px;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 6px 8px;
  font:
    0.875rem Consolas,
    monospace;
}
.source-info {
  font-size: 0.75rem;
  color: #94a2b3;
  margin-left: auto;
}
.source-view {
  background: #122034;
  border-radius: 8px;
  overflow: auto;
  padding: 14px 0;
  max-height: calc(100vh - 310px);
  min-height: 280px;
  scrollbar-color: #405673 #142238;
  scrollbar-width: thin;
}
.source-code-line {
  display: grid;
  grid-template-columns: 54px minmax(max-content, 1fr);
  font-family: Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.9;
  min-height: 20px;
  color: #d4dfed;
  white-space: pre;
  tab-size: 4;
}
.source-code-line.target-line {
  background: #2a3e58;
  box-shadow: inset 3px 0 #80b6ee;
}
.source-code-line .ln {
  color: #61788f;
  text-align: right;
  padding: 0 14px 0 5px;
  user-select: none;
  position: sticky;
  left: 0;
  background: #122034;
}
.source-code-line.target-line .ln {
  background: #2a3e58;
  color: #aed0f3;
}
.source-code-line .line-text {
  padding-right: 25px;
}
.source-nav {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 15px;
}
.source-view .source-code-line::selection {
  background: #406383;
}
.wide-layout .app-shell {
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
}
.wide-layout .page-toc {
  display: none;
}
.wide-layout main {
  padding-right: 55px;
}
.top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}
.module-header-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.module-header-row h1 {
  margin-bottom: 12px;
}
.api-note {
  font-size: 0.75rem;
  color: #8a98ac;
  margin: 9px 0;
}
.small-table {
  font-size: 0.875rem;
}
.search-results {
  max-height: 440px;
  overflow-y: auto;
  padding: 12px;
}
.search-item {
  display: block;
  padding: 11px 14px;
  border-radius: 6px;
  color: #435977;
  margin: 1px 0;
}
.search-item:hover,
.search-item.focused {
  background: #edf3fd;
  text-decoration: none;
}
.search-item b {
  font-size: 0.9375rem;
  font-weight: 600;
}
.search-item small {
  display: block;
  color: #8999ad;
  font-family: Consolas, monospace;
  font-size: 0.75rem;
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.search-item p {
  font-size: 0.75rem;
  color: #8595aa;
  margin: 3px 0 0;
}
.search-group-title {
  font-size: 0.75rem;
  color: #95a2b3;
  margin: 4px 14px 8px;
}
.search-result-tag {
  font-size: 0.75rem;
  color: #91a0b4;
  float: right;
}
.search-footer {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 10px 15px;
  font-size: 0.75rem;
  color: #99a5b5;
}
.search-footer kbd {
  margin-right: 3px;
}
.search-box {
  display: flex;
  gap: 10px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 14px 16px;
}
.search-box svg {
  width: 20px;
  height: 20px;
  stroke: #8ba0ba;
  fill: none;
  stroke-width: 1.5;
}
.search-box input {
  border: none;
  outline: none;
  font-size: 0.875rem;
  flex: 1;
  min-width: 0;
  padding: 6px 0;
  color: var(--ink);
}
.escape-button {
  border: 1px solid var(--line);
  background: #f8fafc;
  border-radius: 4px;
  color: #91a0b2;
  padding: 2px 6px;
  font-size: 0.75rem;
}
dialog {
  width: min(660px, calc(100vw - 32px));
  border: 1px solid #dfe6ee;
  border-radius: 12px;
  padding: 0;
  box-shadow: 0 20px 90px #1b2e4b30;
  margin-top: 12vh;
  color: var(--ink);
}
dialog::backdrop {
  background: rgba(22, 39, 63, 0.36);
  backdrop-filter: blur(3px);
}
.toast {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  background: #203651;
  color: #e5edf8;
  padding: 10px 18px;
  border-radius: 7px;
  font-size: 0.9375rem;
  z-index: 100;
  box-shadow: 0 5px 25px #10253d33;
}
.skip-link {
  position: fixed;
  top: -100px;
  left: 20px;
  background: #173b71;
  color: white;
  padding: 10px 20px;
  z-index: 100;
}
.skip-link:focus {
  top: 6px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
.sidebar-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
}
.sidebar-toggle[aria-expanded="true"] {
  background: var(--blue-soft);
  color: var(--blue);
}
.noscript {
  padding: 30px;
  background: #fff7e8;
}
.nav-backdrop[hidden],
.toast[hidden] {
  display: none;
}
.catalog-loading {
  height: 60px;
  color: #8a99ac;
}
.inherit-row[hidden] {
  display: none;
}
.link-hint {
  font-size: 0.75rem;
  color: #91a0b4;
}
.muted-link {
  color: #8c9cb0;
  font-size: 0.875rem;
}
.guide-summary {
  border-bottom: 1px solid var(--line);
  padding-bottom: 18px;
  margin-bottom: 24px;
}
.uncertainty-note {
  display: block;
  margin-top: 7px;
  color: #68798e;
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.7;
  overflow-wrap: anywhere;
}
.uncertainty-note .uncertainty-label {
  display: inline;
  font-weight: 600;
  color: #8d6421;
}
.uncertainty-note.unknown .uncertainty-label {
  color: #66768b;
}
.type-signature {
  display: inline-block;
  max-width: 100%;
  font-family: Consolas, monospace;
  font-size: 0.875rem;
  line-height: 1.6;
  white-space: normal;
  overflow-wrap: anywhere;
  background: #f0f3f7;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  padding: 2px 6px;
  vertical-align: baseline;
  color: #6c4d91;
}
.type-signature[href],
.type-signature .type-link {
  color: #315eaa;
}
.type-shape-trigger {
  color: #315eaa;
  cursor: pointer;
  text-align: left;
}
.type-shape-trigger:hover {
  background: #e5edf8;
  border-color: #b6cae7;
}
.type-shape-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.api-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
  color: #7c8a9b;
  margin: 18px 0 24px;
}
.api-summary a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 5px;
  color: #49617c;
}
.api-summary a:hover {
  background: var(--blue-soft);
  color: var(--blue);
  text-decoration: none;
}
.api-summary b {
  padding: 0 5px;
  border-radius: 4px;
  background: #edf1f6;
  font-size: 0.8125rem;
  color: #49617c;
}
.module-example {
  margin: 24px 0 32px;
}
.module-example > h2 {
  margin: 0 0 10px;
}
.module-example > .example-title {
  margin: 0 0 8px;
  font-size: 1rem;
}
.example-result {
  margin: 0 0 12px;
}
.recipe-reference > .code-block {
  margin: 12px 0;
}
.module-example .example-context {
  margin: 12px 0 0;
}
.datagrid-guide {
  margin: 28px 0 36px;
}
.datagrid-guide > h2 {
  margin: 28px 0 12px;
}
.datagrid-guide > h3 {
  margin: 22px 0 10px;
}
.datagrid-guide .table-scroll {
  margin: 16px 0 8px;
}
.datagrid-guidance {
  padding-left: 22px;
  line-height: 1.7;
}
.datagrid-guidance li + li {
  margin-top: 7px;
}
.datagrid-example {
  margin: 18px 0;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.datagrid-example h3,
.datagrid-related-examples h3 {
  margin: 0 0 8px;
}
.datagrid-example .code-block {
  margin: 12px 0;
}
.datagrid-related-examples {
  margin-top: 24px;
}
.datagrid-related-examples details {
  margin: 10px 0;
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.datagrid-related-examples summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--blue);
}
.datagrid-related-examples details p {
  margin: 12px 0;
}
.module-example-details {
  margin-top: 32px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.schema-preview {
  padding: 14px 18px;
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 16px 0;
}
.schema-preview summary {
  cursor: pointer;
  font:
    0.9375rem Consolas,
    monospace;
  color: #45698f;
}
.type-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.type-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 15px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #5f748e;
  min-width: 0;
}
.type-card:hover {
  background: #f8fbff;
  border-color: #b8cee8;
  text-decoration: none;
}
.type-card > b {
  font:
    600 0.9375rem Consolas,
    monospace;
  color: #355a85;
  overflow-wrap: anywhere;
}
.type-card > span:not(.tag) {
  font-size: 0.875rem;
  line-height: 1.8;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.type-card > .uncertainty-note {
  display: block;
  -webkit-line-clamp: unset;
  overflow: visible;
}
.type-card .tag {
  align-self: flex-start;
  margin-left: 4px;
}
.type-card small {
  font-size: 0.75rem;
  color: #91a0b4;
}
.property-filter {
  display: flex;
  align-items: center;
  gap: 15px;
  margin: 18px 0;
}
.property-filter > a {
  font-size: 0.875rem;
  white-space: nowrap;
}
.contract-table > table {
  min-width: 810px;
  table-layout: fixed;
}
.contract-table > table > thead > tr > th:nth-child(1) {
  width: 18%;
}
.contract-table > table > thead > tr > th:nth-child(2) {
  width: 23%;
}
.contract-table > table > thead > tr > th:nth-child(3) {
  width: 18%;
}
.contract-table > table > thead > tr > th:nth-child(4) {
  width: 41%;
}
.contract-table .property-name {
  white-space: normal;
  overflow-wrap: anywhere;
}
.property-detail {
  margin-top: 11px;
  font-size: 0.875rem;
}
.property-detail summary {
  cursor: pointer;
  color: #466e9e;
}
.property-detail .shape-table {
  max-width: 100%;
  margin: 10px 0;
}
.shape-table table {
  min-width: 620px;
}
.property-detail .code-block {
  max-width: 100%;
}
.expression-trigger {
  padding: 4px 8px;
  border: 1px solid #dfe5ee;
  border-radius: 4px;
  background: #f0f3f7;
  color: #315eaa;
  font-size: 0.875rem;
}
.expression-trigger:hover {
  background: #e5edf8;
  border-color: #b6cae7;
}
.expression-trigger:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 2px;
}
.code-block-compact .code-toolbar {
  height: 26px;
  padding: 0 7px;
  justify-content: flex-end;
  border-bottom: 0;
  background: transparent;
}
#expression-content .code-block pre {
  padding: 2px 12px 10px;
  font-size: 0.9375rem;
  max-height: calc(100dvh - 200px);
}
.value-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
}
.value-chips > span {
  font-size: 0.75rem;
  color: #8b96a5;
  margin-right: 4px;
}
.value-chips code {
  font-size: 0.75rem;
}
.signature {
  background: #f4f7fb;
  border: 1px solid #e3eaf3;
  border-radius: 6px;
  padding: 12px 15px;
  white-space: pre;
  overflow-wrap: normal;
  overflow-x: auto;
  line-height: 1.9;
  font-size: 0.9375rem;
}
.signature > code {
  background: transparent;
  padding: 0;
  color: #3d5472;
}
.signature .type-signature {
  display: inline;
  max-width: none;
  white-space: inherit;
  overflow-wrap: normal;
  line-height: inherit;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}
.method-reference,
tr[data-property] {
  scroll-margin-top: 90px;
}
.method-reference {
  padding: 14px 0 20px;
  border-bottom: 1px solid var(--line);
}
.method-reference h3 {
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
  font:
    600 1rem Consolas,
    monospace;
}
.method-reference p {
  font-size: 0.875rem;
  color: #718198;
  line-height: 1.85;
}
.parameter-table {
  margin: 16px 0;
}
.parameter-table table {
  table-layout: fixed;
  min-width: 540px;
}
.parameter-table thead th:first-child {
  width: 17%;
}
.parameter-table thead th:nth-child(2) {
  width: 38%;
}
.parameter-table thead th:nth-child(3) {
  width: 45%;
}
.parameter-table tbody th {
  white-space: normal;
  background: transparent;
  font-weight: 400;
  text-align: left;
  vertical-align: top;
}
.parameter-table td,
.parameter-table tbody th code {
  overflow-wrap: anywhere;
}
.parameter-table .type-signature {
  white-space: normal;
}
.inference-trigger {
  display: block;
  width: fit-content;
  padding: 0;
  margin: 7px 0 0;
  border: 0;
  background: transparent;
  color: #6c5790;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.inference-trigger:hover {
  color: #49336f;
}
.inference-label {
  display: block;
  margin-top: 6px;
  color: #6c5790;
  font-size: 0.875rem;
}
#inference-dialog,
#type-shape-dialog,
#expression-dialog {
  width: min(760px, calc(100vw - 32px));
  max-height: calc(100dvh - 48px);
  margin: auto;
  overflow: auto;
}
#type-shape-content,
#expression-content {
  padding: 16px;
}
#type-shape-content .code-block,
#expression-content .code-block {
  margin: 0;
}
.inference-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.inference-header h2 {
  margin: 0;
  font-size: 1rem;
}
#inference-content {
  padding: 20px 24px 24px;
  font-size: 0.875rem;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.inference-type > span {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.875rem;
}
#inference-content h3 {
  margin: 24px 0 8px;
  font-size: 0.9375rem;
}
#inference-content p {
  margin: 0;
}
.inference-observations {
  padding-left: 24px;
  margin: 0;
}
.inference-observations li {
  padding: 0 0 22px 5px;
}
.inference-observations li::marker {
  color: #6c5790;
  font-weight: 600;
}
.evidence-source {
  font-size: 0.8125rem;
}
.evidence-excerpt {
  margin: 6px 0 10px;
  min-width: 0;
}
.evidence-excerpt .code-block {
  margin: 0;
}
.evidence-excerpt .code-toolbar {
  min-height: 24px;
  padding: 2px 8px;
}
.evidence-excerpt pre {
  padding: 4px 12px 10px;
  font-size: 0.875rem;
  line-height: 1.65;
}
.evidence-reason > strong {
  color: #6c5790;
  margin-right: 5px;
}
.excerpt-omission {
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
}
.inference-limits {
  margin-top: 22px;
  padding: 14px 16px;
  border-left: 3px solid #c7b5de;
  background: #f8f5fc;
}
#inference-content .inference-limits h3 {
  margin-top: 0;
}
.method-return {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 12px 0;
}
.method-return > div {
  min-width: 0;
}
.method-return strong {
  margin-right: 8px;
  color: var(--ink);
}
.method-return-description {
  margin: 8px 0 14px;
  color: #718198;
  font-size: 0.875rem;
}
.method-return-description > strong {
  font-size: 0.875rem;
  color: var(--ink);
}
.resizable-table > thead > tr > th {
  position: relative;
  padding-right: 22px;
  white-space: normal;
  overflow-wrap: anywhere;
}
.resizable-table .property-name,
.resizable-table > tbody > tr > th > code,
.resizable-table > tbody > tr > td:first-child > code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
}
.column-resize-handle {
  position: absolute;
  z-index: 1;
  top: 0;
  right: 0;
  bottom: 0;
  width: 12px;
  cursor: col-resize;
  touch-action: none;
}
.column-resize-handle::after {
  content: "";
  position: absolute;
  top: 25%;
  bottom: 25%;
  right: 4px;
  width: 2px;
  border-radius: 2px;
  background: #b2bfd0;
}
.column-resize-handle:hover::after,
.column-resize-handle:focus-visible::after {
  background: var(--blue);
}
.column-resize-handle:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
.resizing-columns,
.resizing-columns * {
  cursor: col-resize !important;
  user-select: none !important;
}
@media print {
  .column-resize-handle {
    display: none;
  }
}
.architecture-layers {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}
.architecture-layers > div {
  padding: 17px;
  border: 1px solid var(--line);
  border-top: 3px solid #6b8fb8;
  border-radius: 6px;
}
.architecture-layers span {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: #8b9aae;
}
.architecture-layers b {
  font-size: 0.9375rem;
  color: #385675;
}
.architecture-layers p {
  font-size: 0.875rem;
  color: #7b8ba0;
  line-height: 1.85;
  margin: 8px 0 0;
}
.package-detail {
  border: 1px solid var(--line);
  border-radius: 6px;
  margin: 8px 0;
}
.package-detail > summary {
  padding: 13px 15px;
  cursor: pointer;
  font:
    0.9375rem Consolas,
    monospace;
  color: #365679;
}
.package-detail > summary > span {
  font:
    0.75rem "Segoe UI",
    sans-serif;
  color: #95a2b3;
  margin-left: 12px;
}
.package-detail-body {
  padding: 2px 17px 17px;
}
.package-detail-body > details {
  font-size: 0.875rem;
  margin: 12px 0;
}
.package-detail-body > details pre {
  overflow: auto;
  font-size: 0.75rem;
  background: #f5f7fb;
  padding: 12px;
}
.package-detail-body > a {
  font-size: 0.875rem;
}
.file-facts {
  display: flex;
  gap: 15px;
  flex-wrap: wrap;
  font-size: 0.75rem;
  color: #8a99ab;
  margin: 15px 0;
}
@media (max-width: 760px) {
  .type-cards,
  .architecture-layers {
    grid-template-columns: 1fr;
  }
  .property-filter {
    align-items: stretch;
    flex-direction: column;
  }
  .package-detail > summary > span {
    display: block;
    margin: 7px 0 0 15px;
  }
  .api-summary {
    gap: 4px;
  }
  .schema-preview {
    padding: 12px;
  }
  .shape-table table {
    min-width: 560px;
  }
}
@media (min-width: 761px) {
  .sidebar-collapsed .app-shell {
    --sidebar-width: 0px;
  }
  .sidebar-collapsed .sidebar {
    display: none;
  }
}
@media (max-width: 1250px) {
  .app-shell {
    --sidebar-width: 226px;
    --toc-width: 165px;
  }
  .sidebar {
    padding-left: 16px;
  }
  main {
    padding-left: 32px;
    padding-right: 30px;
  }
  .topbar-inner {
    gap: 19px;
    padding: 0 22px;
  }
  .search-trigger {
    width: 245px;
  }
  .page-toc {
    padding-right: 13px;
  }
  h1 {
    font-size: 26px;
  }
}
@media (max-width: 1050px) {
  .app-shell {
    --sidebar-width: 220px;
  }
  .app-shell,
  .wide-layout .app-shell {
    grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  }
  .page-toc {
    display: none;
  }
  .wide-layout main {
    padding-right: 30px;
  }
  .search-trigger {
    width: 250px;
  }
  .package-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  :root {
    --header: 60px;
  }
  .topbar-inner {
    padding: 0 14px;
    gap: 10px;
  }
  .sidebar-toggle {
    border: none;
  }
  .brand {
    font-size: 1rem;
  }
  .brand-mark {
    width: 27px;
    height: 30px;
    border-radius: 6px;
  }
  .brand-mark svg {
    width: 18px;
  }
  .brand small {
    font-size: 0.75rem;
  }
  .search-trigger {
    width: 32px;
    padding: 5px;
    border: 0;
    background: transparent;
    justify-content: center;
  }
  .search-trigger span,
  .search-trigger kbd {
    display: none;
  }
  .sidebar {
    position: fixed;
    left: 0;
    top: 60px;
    bottom: 0;
    width: min(320px, calc(100vw - 48px));
    z-index: 40;
    background: #f8fafc;
    visibility: hidden;
    transform: translateX(-100%);
    transition: transform 0.2s;
  }
  body.nav-open {
    overflow: hidden;
  }
  .nav-open .sidebar {
    visibility: visible;
    transform: translateX(0);
  }
  .nav-backdrop {
    position: fixed;
    inset: 60px 0 0;
    background: #152c4644;
    z-index: 35;
  }
  .app-shell,
  .wide-layout .app-shell {
    display: block;
  }
  main,
  .wide-layout main {
    padding: 25px 22px 45px;
  }
  .breadcrumb {
    margin-bottom: 18px;
    font-size: 0.75rem;
  }
  .lead {
    font-size: 0.875rem;
  }
  h1 {
    font-size: 24px;
  }
  h2 {
    font-size: 18px;
  }
  .cards {
    grid-template-columns: 1fr;
  }
  .doc-card {
    padding: 17px;
  }
  .metrics {
    margin: 22px 0;
    padding: 14px 0;
  }
  .metric {
    padding: 0 10px;
  }
  .metric b {
    font-size: 19px;
  }
  .metric span {
    font-size: 0.75rem;
  }
  .module-meta {
    grid-template-columns: 1fr;
  }
  .module-header-row {
    flex-direction: column;
    gap: 0;
  }
  .module-header-row .top-actions {
    margin-bottom: 14px;
  }
  .filter-select {
    max-width: 100%;
    flex: 1;
  }
  .filter-input {
    flex-basis: 100%;
    min-width: 0;
  }
  .catalog-filters .check-label {
    flex-basis: 100%;
  }
  .catalog-top {
    gap: 6px;
    flex-wrap: wrap;
  }
  .ref-count {
    display: none;
  }
  .package-grid {
    grid-template-columns: 1fr 1fr;
  }
  .source-view {
    max-height: 65vh;
  }
  .source-controls .source-info {
    flex-basis: 100%;
    margin-left: 0;
  }
  .code-block pre {
    padding: 12px;
    font-size: 0.875rem;
  }
  .prose {
    font-size: 0.875rem;
  }
  .table-scroll table {
    min-width: 420px;
  }
  .control-row {
    align-items: flex-start;
    gap: 10px;
    flex-direction: column;
  }
  .page-footer {
    font-size: 0.75rem;
  }
  .search-footer {
    font-size: 0.75rem;
  }
  .search-footer > span:last-child {
    display: none;
  }
  .source-code-line {
    font-size: 0.75rem;
    grid-template-columns: 44px minmax(max-content, 1fr);
  }
}
.representation-entry {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 10px 0;
}
.representation-entry > summary {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 17px;
  cursor: pointer;
  list-style: disclosure-closed;
}
.representation-entry > summary > code {
  font-size: 0.9375rem;
  background: #eef3fb;
  color: #365b8b;
}
.representation-entry > summary > span {
  font-size: 0.875rem;
  color: #8291a5;
  overflow-wrap: anywhere;
}
.representation-body {
  padding: 0 18px 18px;
}
.representation-body .table-scroll {
  margin-top: 3px;
}
.representation-body > h3 {
  font-size: 0.9375rem;
}
.representation-body > a {
  font-size: 0.875rem;
}
.representation-body > .code-block {
  max-width: 900px;
}
@media print {
  .topbar,
  .sidebar,
  .page-toc,
  .code-toolbar button,
  .top-actions,
  .search-trigger,
  .page-footer,
  .inline-tabs,
  .source-controls,
  .source-nav {
    display: none !important;
  }
  .app-shell,
  .wide-layout .app-shell {
    display: block;
  }
  main {
    padding: 0;
  }
  .code-block {
    break-inside: avoid;
  }
  body {
    font-size: 11px;
  }
  h1 {
    font-size: 26px;
  }
  table {
    font-size: 10px;
  }
  a {
    color: inherit;
    text-decoration: none;
  }
  .source-view {
    max-height: none;
    overflow: visible;
  }
}
/* Template chrome stays outside the vendor preview document. */
.deprecation-notice {
  padding: 14px 16px;
  margin: 14px 0;
  border: 1px solid #e7d6b7;
  border-radius: 7px;
  background: #fffbf4;
  color: #725020;
  overflow-wrap: anywhere;
  font-size: 14px;
}
.deprecation-notice p {
  margin: 6px 0 0;
}
.template-resources ul {
  list-style: none;
  padding: 0;
}
.template-resources li {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 8px 18px;
  margin: 10px 0;
}
.template-resources li span,
.template-resources p {
  color: var(--muted);
}
.template-empty {
  margin: 18px;
}
.template-preview[data-state="stopped"] .template-frame-wrap {
  display: none;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 24px 0 40px;
}
.template-card {
  display: flex;
  flex-direction: column;
  padding: 24px;
  border: 1px solid #dce5ef;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  text-decoration: none;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.template-card:hover {
  border-color: #7194bb;
  box-shadow: 0 5px 18px #16334f0b;
  text-decoration: none;
}
.template-category {
  color: #607895;
  font-size: 12px;
  margin-bottom: 10px;
}
.template-card h3 {
  margin: 0;
  font-size: 19px;
}
.template-card-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
.template-library-badge {
  flex-shrink: 0;
}
.eyebrow .template-library-badge {
  margin-left: 8px;
}
.template-card p {
  margin: 0;
  color: #677e99;
}
.template-back {
  display: inline-block;
  margin: 8px 0 26px;
  font-size: 13px;
}
.runtime-editor {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 12px;
  height: var(--runtime-editor-height, 360px);
}
.runtime-editor-resize {
  grid-row: 2;
  display: grid;
  place-items: center;
  cursor: ns-resize;
  touch-action: none;
  background: #1e2021;
  border-top: 1px solid #414449;
}
.runtime-editor-resize::after {
  content: "";
  width: 32px;
  height: 3px;
  border-top: 1px solid #a3acb9;
  border-bottom: 1px solid #a3acb9;
}
.runtime-editor-resize:hover,
.runtime-editor-resize:focus-visible {
  background: #304762;
  outline: 2px solid var(--blue);
  outline-offset: -2px;
}
body.editor-resizing {
  cursor: ns-resize;
  user-select: none;
}
.template-preview.editor-resizing iframe {
  pointer-events: none;
}
.runtime-editor > textarea {
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-height: 0;
  height: 100%;
  padding: 16px;
  border: 0;
  background: #272822;
  color: #f8f8f2;
  font:
    13px/1.6 Consolas,
    monospace;
  tab-size: 2;
  resize: none;
}
.runtime-editor .CodeMirror {
  font:
    13px/1.6 Consolas,
    monospace;
}
.template-preview {
  margin: 28px 0 34px;
  border: 1px solid #d9e3ef;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}
.template-preview-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: #f6f9fc;
  border-bottom: 1px solid #e4eaf2;
}
.template-preview-toolbar > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
}
.template-preview-toolbar .preview-view-tabs {
  flex-wrap: nowrap;
  gap: 4px;
}
.preview-view-tabs button {
  border: 0;
  border-radius: 6px;
  padding: 7px 13px;
  background: transparent;
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
}
.preview-view-tabs button[aria-selected="true"] {
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 600;
}
.preview-view-tabs button:hover {
  background: var(--blue-soft);
}
#preview-panels {
  position: relative;
}
/* Preserve iframe dimensions while editing so vendor controls can still measure
   and render. The concealed screen is also inert and aria-hidden. */
.template-preview[data-view="code"] .preview-screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0;
  overflow: hidden;
  visibility: hidden;
  pointer-events: none;
}
.template-preview[data-view="code"] #preview-refresh,
.template-preview[data-view="code"] #preview-stop {
  display: none;
}
.preview-code {
  padding: 0;
}
.template-preview[data-view="both"] #preview-panels {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  min-height: max(360px, calc(var(--preview-frame-height, 324px) + 36px));
}
.template-preview[data-view="both"][data-editor-resized] #preview-panels {
  height: var(--runtime-editor-height);
  min-height: 180px;
  grid-template-rows: minmax(0, 1fr);
}
.template-preview[data-view="both"] .preview-screen {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
  scrollbar-gutter: stable;
}
.template-preview[data-view="both"] .template-frame-wrap {
  display: flex;
  flex: 1 1 0;
  flex-direction: column;
  min-height: 0;
}
.template-preview[data-view="both"] #template-frame {
  flex: 1 1 0;
  height: 100%;
  min-height: 0;
}
.template-preview[data-view="both"] .preview-screen,
.template-preview[data-view="both"] .preview-code {
  min-width: 0;
}
.template-preview[data-view="both"] .preview-code {
  position: relative;
  border-left: 1px solid var(--line);
}
.template-preview[data-view="both"] .runtime-editor {
  position: absolute;
  inset: 0;
  height: 100%;
}
.template-preview[data-view="both"] .runtime-editor > textarea,
.template-preview[data-view="both"] .runtime-editor > .CodeMirror {
  height: 100% !important;
}
.module-example > .template-preview {
  margin-top: 16px;
}
.template-frame-wrap {
  padding: 18px;
  overflow-x: auto;
}
#template-frame {
  width: 100%;
  border: 0;
  display: block;
  background: white;
}
.template-preview:not([data-state="ready"]) #template-frame {
  visibility: hidden;
}
.template-preview-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .template-preview-toolbar {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}
.template-error {
  padding: 12px 18px;
  background: #fff2ef;
  color: #a93c2d;
  overflow-wrap: anywhere;
}
.template-steps {
  list-style: none;
  counter-reset: steps;
  padding: 0;
  margin: 18px 0 36px;
  display: grid;
  gap: 15px;
}
.template-steps li {
  counter-increment: steps;
  position: relative;
  padding-left: 40px;
  min-height: 26px;
  overflow-wrap: anywhere;
}
.template-steps li::before {
  content: counter(steps);
  position: absolute;
  left: 0;
  top: 0;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #edf3f9;
  color: #42688f;
  font-size: 12px;
}
.template-code-note {
  font-size: 12px;
  color: #788ba3;
}
.template-host {
  color: #667d96;
  margin-bottom: 34px;
}
.template-edit-list {
  border: 1px solid #dce5ef;
  border-radius: 8px;
  margin-bottom: 30px;
}
.template-edit-list > div {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) 1fr;
  padding: 13px 16px;
  gap: 20px;
}
.template-edit-list > div + div {
  border-top: 1px solid #e5ebf3;
}
.template-edit-list span {
  color: #69809a;
}
.template-detail-more {
  margin: 30px 0;
}
.template-detail-more > summary {
  cursor: pointer;
  color: #486987;
  padding: 14px 0;
}
.template-example-link {
  margin-bottom: 18px;
}
@media (max-width: 720px) {
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-card {
    padding: 20px;
  }
  .template-frame-wrap {
    padding: 8px;
  }
  .template-preview-toolbar {
    padding: 12px;
  }
  .template-edit-list > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .template-output {
    flex-direction: column;
    gap: 4px;
  }
}
/* Template filters share the catalog controls without affecting API tables. */
.template-library-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  color: var(--muted);
  font-size: 13px;
}
.template-library-filter .filter-input {
  width: auto;
  min-width: 130px;
}
.example-evidence {
  padding-left: 20px;
  overflow-wrap: anywhere;
}
.example-evidence li {
  margin-bottom: 16px;
}
.example-evidence p {
  margin-bottom: 4px;
}
.module-logic {
  margin-bottom: 32px;
}
.module-logic-summary {
  max-width: 82ch;
}
.module-logic-steps {
  margin: 16px 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.module-logic-steps > div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 18px;
}
.module-logic-steps > div + div {
  border-top: 1px solid var(--line);
}
.module-logic-steps dt {
  font-weight: 600;
}
.module-logic-steps dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.module-logic a {
  color: var(--blue);
}
.module-logic a:hover {
  text-decoration: underline;
}
.module-logic-notes {
  padding: 2px 16px;
  border-left: 3px solid #b8cbe3;
  background: #f7f9fc;
}
.module-logic-forwarding,
.module-logic-calls ul {
  padding-left: 22px;
}
.module-logic li + li {
  margin-top: 10px;
}
.module-logic-calls summary {
  cursor: pointer;
}
@media (max-width: 720px) {
  .module-logic-steps > div {
    grid-template-columns: 1fr;
    gap: 5px;
    padding: 12px 14px;
  }
}
