:root {
  --bg: #f6f7f8;
  --ink: #202326;
  --muted: #60676d;
  --line: #aeb6bd;
  --soft-line: #dfe3e6;
  --link: #176b77;
  --panel: #fff;
  --subtle: #f8f9fa;
  --thumb: #fff;
  --code-bg: #f1f1f1;
  --code-line: #ddd;
  --notice-bg: #fff8d6;
  --notice-line: #e1c542;
  --button-bg: #fff;
  --button-hover: #f1f3f5;
}

[data-theme="dark"] {
  --bg: #101417;
  --ink: #eceff1;
  --muted: #abb3b8;
  --line: #535c62;
  --soft-line: #30373c;
  --link: #71c6ce;
  --panel: #181d21;
  --subtle: #1e2429;
  --thumb: #12161b;
  --code-bg: #151a20;
  --code-line: #38424d;
  --notice-bg: #2a2615;
  --notice-line: #7b6a22;
  --button-bg: #20262e;
  --button-hover: #2b333d;
  color-scheme: dark;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 14px/1.55 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid rgba(22, 125, 121, .28); outline-offset: 2px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 61px;
  padding: 10px max(20px, calc((100vw - 1440px) / 2));
  background: color-mix(in srgb, var(--panel) 92%, transparent);
  border-bottom: 1px solid var(--soft-line);
  box-shadow: 0 2px 9px rgba(23, 32, 38, .05);
  backdrop-filter: blur(12px);
}

.brand { display: grid; grid-template-columns: auto 1fr; column-gap: 9px; align-items: center; }
.brand a { display: flex; grid-row: 1 / 3; align-items: center; gap: 9px; color: var(--ink); font-size: 20px; font-weight: 850; letter-spacing: -.6px; }
.brand a:hover { text-decoration: none; }
.brand span { grid-column: 2; color: var(--muted); font-size: 12px; }
.brand-mark { width: 43px; height: 43px; object-fit: contain; flex: 0 0 43px; }

nav { display: flex; justify-content: flex-end; align-items: center; gap: 3px; min-width: 0; overflow-x: auto; flex-wrap: nowrap; scrollbar-width: thin; }
nav a { position: relative; padding: 8px 8px 7px; color: var(--muted); border-radius: 3px; font-size: 13px; font-weight: 650; }
nav a, .theme-toggle { flex: 0 0 auto; white-space: nowrap; }
nav a:hover { color: var(--ink); background: var(--subtle); text-decoration: none; }
nav a.active { color: var(--ink); background: transparent; }
nav a.active::after { content: ""; position: absolute; right: 8px; bottom: -10px; left: 8px; height: 3px; background: #167d79; }

.theme-toggle {
  min-height: 28px;
  padding: 3px 10px;
  color: var(--ink);
  background: var(--button-bg);
  border: 1px solid var(--line);
  margin-left: 5px;
  border-radius: 7px;
  cursor: pointer;
}

.theme-toggle:hover { background: var(--button-hover); }

.page {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 28px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 22px 24px 48px;
}

.sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
  padding: 14px;
  background: var(--panel);
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  box-shadow: 0 3px 12px rgba(9, 23, 29, .035);
}

.sidebar h2 {
  margin: 0 0 10px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
}

.sidebar a {
  display: block;
  padding: 4px 7px;
  border-left: 2px solid transparent;
  color: var(--ink);
  font-size: 13px;
}
.sidebar a:hover { color: var(--link); background: var(--subtle); border-left-color: #18827b; text-decoration: none; }

.content {
  min-width: 0;
  padding: 24px 30px;
  background: var(--panel);
  border: 1px solid var(--soft-line);
  border-radius: 5px;
  box-shadow: 0 5px 22px rgba(9, 23, 29, .04);
}

h1, h2 {
  margin: 0 0 12px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--line);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
  letter-spacing: -.25px;
}

h1 { font-size: 34px; }
h2 { font-size: 24px; }

.intro p { max-width: 860px; }

.hub-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.hub-card {
  display: grid;
  gap: 5px;
  min-height: 96px;
  padding: 14px;
  color: var(--ink);
  background: var(--subtle);
  border: 1px solid var(--line);
}

.hub-card:hover {
  text-decoration: none;
  border-color: var(--link);
}

.hub-card strong {
  font-size: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.hub-card span { color: var(--muted); }

.notice {
  margin: 14px 0;
  padding: 10px 12px;
  background: var(--notice-bg);
  border: 1px solid var(--notice-line);
}

.tools {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 220px 260px;
  gap: 10px;
  margin: 18px 0;
}

.tools input, .tools select {
  min-height: 38px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: var(--thumb);
  color: var(--ink);
  border-radius: 8px;
  outline: none;
}
.tools input:focus, .tools select:focus, .function-tools input:focus, .reference-search input:focus { border-color: #16877f; box-shadow: 0 0 0 3px rgba(22,135,127,.14); }

.summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 18px;
}

.summary div {
  padding: 14px;
  background: var(--subtle);
  border: 1px solid var(--soft-line);
  border-radius: 10px;
}

.summary strong { display: block; font-size: 22px; }
.summary span { color: var(--muted); }

.category-block { margin: 26px 0 34px; }

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.gallery-item {
  min-height: 238px;
  padding: 8px;
  text-align: center;
  border: 1px solid var(--soft-line);
  border-radius: 6px;
  background: var(--subtle);
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}
.gallery-item:hover { transform: translateY(-1px); border-color: #62969a; box-shadow: 0 5px 15px rgba(9,23,29,.07); }

.thumb {
  position: relative;
  display: grid;
  place-items: center;
  height: 126px;
  margin-bottom: 8px;
  background: var(--thumb);
  border: 1px solid var(--soft-line);
  border-radius: 8px;
  overflow: hidden;
}
.thumb::after { content: "GASTON"; position: absolute; right: 7px; bottom: 5px; padding: 2px 5px; color: rgba(255,255,255,.88); background: rgba(10,18,23,.55); border-radius: 2px; font-size: 8px; font-weight: 900; letter-spacing: .12em; text-shadow: 0 1px 2px rgba(0,0,0,.5); pointer-events: none; }

.thumb img {
  max-width: 164px;
  max-height: 100px;
  object-fit: contain;
}

.remote-thumb .image-label { display: none; }

.remote-thumb.image-missing {
  padding: 10px;
  text-align: center;
}

.remote-thumb.image-missing .image-label {
  display: block;
  color: var(--muted);
  font-family: Consolas, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.vehicle-name code {
  padding: 1px 4px;
  background: var(--code-bg);
  border: 1px solid var(--code-line);
  font-family: Consolas, monospace;
}

.vehicle-meta {
  margin-top: 5px;
  font-size: 13px;
}

.hash { color: var(--link); }
.dlc { color: var(--muted); }

.article-section { margin-top: 34px; }

.function-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0;
}

.function-tools input {
  flex: 1;
  min-height: 36px;
  padding: 7px 9px;
  border: 1px solid var(--line);
  background: var(--thumb);
  color: var(--ink);
}

.function-tools span {
  color: var(--muted);
  white-space: nowrap;
}

.function-list {
  columns: 3 260px;
  column-gap: 28px;
  padding: 12px 14px;
  background: var(--subtle);
  border: 1px solid var(--soft-line);
}

.function-item {
  display: block;
  break-inside: avoid;
  margin: 0 0 5px;
  font-family: Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.native-tools {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 220px auto;
  align-items: center;
  gap: 10px;
  margin: 20px 0 28px;
}
.native-tools input, .native-tools select {
  min-height: 40px;
  padding: 8px 10px;
  color: var(--ink);
  background: var(--thumb);
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
}
.native-tools span { color: var(--muted); white-space: nowrap; }
.native-category { margin: 34px 0; scroll-margin-top: 18px; }
.native-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.native-card { min-width: 0; padding: 15px; background: var(--subtle); border: 1px solid var(--soft-line); border-top: 3px solid #198c83; }
.native-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.native-card-head code { color: var(--ink); font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.native-card pre { margin: 12px 0; padding: 9px; overflow-x: auto; background: var(--code-bg); border: 1px solid var(--code-line); font: 12px/1.5 Consolas, monospace; }
.native-card p { margin: 0; color: var(--muted); font-size: 13px; }
.api-badge { flex: none; padding: 2px 6px; border-radius: 3px; font-size: 9px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; }
.api-client { color: #075985; background: #e0f2fe; }
.api-server { color: #7f1d1d; background: #fee2e2; }
.api-shared { color: #365314; background: #ecfccb; }
[data-theme="dark"] .api-client { color: #bae6fd; background: #0c4a6e; }
[data-theme="dark"] .api-server { color: #fecaca; background: #7f1d1d; }
[data-theme="dark"] .api-shared { color: #d9f99d; background: #3f6212; }

.interior-block {
  margin: 18px 0;
  padding: 12px 14px;
  background: var(--subtle);
  border: 1px solid var(--soft-line);
}

.interior-block h3 {
  margin: 0 0 6px;
  font-size: 19px;
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
}

.interior-heading {
  display: grid;
  grid-template-columns: minmax(180px, 280px) 1fr;
  align-items: center;
  gap: 18px;
  margin-bottom: 14px;
}

.interior-heading img {
  width: 100%;
  height: 132px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--soft-line);
}

.interior-prop-count {
  display: inline-block;
  color: var(--muted);
  font-size: 12px;
}

.interior-id {
  margin: 0 0 10px;
  color: var(--muted);
}

.prop-list {
  columns: 3 220px;
  column-gap: 24px;
  margin: 0;
  padding-left: 18px;
}

.prop-list li {
  break-inside: avoid;
  margin-bottom: 4px;
}

.prop-list code {
  font-family: Consolas, monospace;
  overflow-wrap: anywhere;
}

.interior-locations { margin-top: 34px; }
.location-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.location-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--soft-line); background: var(--subtle); }
.location-card img { width: 150px; height: 112px; min-height: 0; align-self: start; object-fit: cover; border-radius: 6px; }
.location-card h3 { margin: 3px 0 9px; font-size: 17px; }
.location-card p { margin: 5px 0; font-size: 12px; overflow-wrap: anywhere; }
.location-category { color: #16877f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.muted { color: var(--muted); }

.asset-browser-page { width: min(1380px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 60px; }
.asset-tabbar { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 12px; }
.asset-tabbar { gap: 0; border-bottom: 1px solid var(--line); }
.asset-tabbar button { margin-bottom: -1px; padding: 9px 13px; border: 1px solid transparent; border-radius: 4px 4px 0 0; color: var(--muted); background: transparent; font: inherit; font-weight: 700; cursor: pointer; }
.asset-tabbar button:hover { color: var(--ink); background: var(--subtle); }
.asset-tabbar button.active { color: var(--ink); border-color: var(--line) var(--line) var(--panel); background: var(--panel); }
.visual-assets-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.visual-asset-card { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 14px; padding: 12px; border: 1px solid var(--soft-line); border-radius: 5px; background: var(--subtle); }
.visual-asset-card { position: relative; }
.visual-asset-card > img { width: 150px; height: 118px; min-height: 0; align-self: start; object-fit: cover; border-radius: 6px; }
.visual-asset-card span { color: #16877f; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.visual-asset-card h3 { margin: 5px 0; font-size: 16px; overflow-wrap: anywhere; }
.visual-asset-card p { margin: 6px 0; font-size: 12px; overflow-wrap: anywhere; }
.visual-asset-card pre { margin: 8px 0 0; padding: 8px; overflow-x: auto; border: 1px solid var(--code-line); background: var(--code-bg); font-size: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }
.weapon-tint-swatch { display: block; width: 54px; height: 12px; margin-bottom: 7px; border-radius: 99px; border: 1px solid rgba(128,128,128,.45); background: var(--tint); }
.click-copy { cursor: copy; transition: background-color .15s ease, outline-color .15s ease; }
.click-copy:hover { outline: 1px solid #16877f; background-color: rgba(22, 135, 127, .12); }
.copy-toast { position: fixed; z-index: 9999; right: 20px; bottom: 20px; max-width: min(440px, calc(100vw - 40px)); padding: 11px 15px; border: 1px solid rgba(255,255,255,.18); border-radius: 9px; color: #fff; background: #10251f; box-shadow: 0 12px 35px rgba(0,0,0,.28); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .18s ease, transform .18s ease; font-size: 13px; }
.copy-toast.show { opacity: 1; transform: translateY(0); }

@media (max-width: 640px) {
  .interior-heading { grid-template-columns: 1fr; }
  .location-grid { grid-template-columns: 1fr; }
  .location-card { grid-template-columns: 110px minmax(0, 1fr); }
  .location-card img { width: 110px; }
  .visual-assets-grid { grid-template-columns: 1fr; }
  .visual-asset-card { grid-template-columns: 110px minmax(0, 1fr); }
  .visual-asset-card > img { width: 110px; }
}

.file-name {
  color: var(--muted);
  overflow-wrap: anywhere;
}

nav .active { font-weight: 700; }
.sidebar-heading { margin-top: 24px !important; }
.home-content { padding: 0; overflow: hidden; }
.home-page { align-items: start; }

.welcome-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(220px, .65fr);
  align-items: center;
  gap: 34px;
  padding: 56px 54px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 30%, rgba(255,255,255,.12), transparent 26%),
    linear-gradient(125deg, #111820 0%, #192b35 56%, #156a6a 100%);
}

.welcome-panel h1 {
  max-width: 700px;
  margin-bottom: 18px;
  padding: 0;
  color: #fff;
  border: 0;
  font: 700 clamp(34px, 5vw, 60px)/1.04 sans-serif;
  letter-spacing: -2px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #64e6d6;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.8px;
  text-transform: uppercase;
}

.welcome-copy { max-width: 720px !important; color: #d9e4e7; font-size: 17px; }
.welcome-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; min-height: 42px; padding: 9px 16px; border-radius: 3px; font-weight: 700; }
.primary-button { color: #0d3535; background: #65ead9; }
.secondary-button { color: #fff; border: 1px solid rgba(255,255,255,.55); }
.primary-button:hover, .secondary-button:hover { text-decoration: none; filter: brightness(1.06); }

.welcome-mark {
  display: grid;
  place-items: center;
  width: min(220px, 100%);
  aspect-ratio: 1;
  margin: auto;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 50%;
  box-shadow: inset 0 0 0 12px rgba(255,255,255,.04);
  transform: rotate(-6deg);
}
.welcome-mark span { margin-bottom: -64px; font-size: 38px; font-weight: 900; letter-spacing: -3px; }
.welcome-mark strong { color: #65ead9; font-size: 70px; letter-spacing: -7px; }

.quick-links {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-bottom: 1px solid var(--soft-line);
}
.quick-links a { display: grid; gap: 1px; padding: 18px 12px; text-align: center; border-right: 1px solid var(--soft-line); }
.quick-links a:last-child { border: 0; }
.quick-links a:hover { background: var(--subtle); text-decoration: none; }
.quick-links strong { color: var(--ink); font-size: 20px; }
.quick-links span { color: var(--muted); font-size: 12px; text-transform: uppercase; }

.wiki-section { padding: 42px 54px; border-bottom: 1px solid var(--soft-line); scroll-margin-top: 20px; }
.wiki-section.compact { padding: 38px; border: 0; }
.section-title { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.section-title p { margin: 0 0 2px; color: #158b83; font-size: 11px; font-weight: 800; letter-spacing: 1.6px; }
.section-title h2 { margin: 0; padding: 0; border: 0; font: 700 26px/1.2 sans-serif; letter-spacing: -.5px; }
.section-icon { display: grid; flex: 0 0 42px; place-items: center; width: 42px; height: 42px; color: #117b74; background: #dff7f3; border-radius: 7px; font-weight: 800; }
[data-theme="dark"] .section-icon { color: #72e4d7; background: #173d3c; }

.journey-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; }
.featured-link { display: flex; align-items: center; gap: 18px; min-height: 150px; padding: 28px; color: #fff; background: linear-gradient(135deg, #167c74, #124c58); border-radius: 5px; }
.featured-link:hover { text-decoration: none; filter: brightness(1.06); }
.featured-link strong { display: block; margin-bottom: 4px; font-size: 20px; }
.featured-link small { color: #d3efec; }
.card-icon { font-size: 42px; }
.link-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.link-list a { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; color: var(--ink); background: var(--subtle); border: 1px solid var(--soft-line); }
.link-list a:hover { color: var(--link); text-decoration: none; border-color: var(--line); }

.section-grid { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--soft-line); }
.section-grid > section:first-child { border-right: 1px solid var(--soft-line); }
.community-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.community-links a { padding: 8px 12px; color: var(--ink); background: var(--subtle); border: 1px solid var(--soft-line); }
.community-links a:hover { text-decoration: none; border-color: var(--link); }
.community-links span { color: #14877f; font-weight: 800; }
.clean-list { margin: 0; padding-left: 20px; }
.clean-list li { margin: 7px 0; }

.tutorial-grid, .reference-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 20px; }
.tutorial-grid a { display: grid; gap: 12px; min-height: 120px; padding: 18px; color: var(--ink); background: var(--subtle); border: 1px solid var(--soft-line); }
.tutorial-grid a:hover { text-decoration: none; border-color: #198c83; }
.tutorial-grid strong { font-size: 17px; }
.tutorial-grid span { color: var(--muted); font-size: 13px; }
.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 38px; }
.columns h3, .reference-grid h3 { margin: 0 0 12px; font-size: 15px; }
.columns a, .reference-grid a { display: block; padding: 5px 0; }
.reference-grid { grid-template-columns: repeat(4, 1fr); }
.reference-grid > div { padding: 16px; background: var(--subtle); border-top: 3px solid #1a8b82; }
.inline-cta { display: inline-block; margin-top: 18px; font-weight: 700; }

.asset-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 20px; }
.asset-grid a { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 9px 12px; color: var(--ink); background: var(--subtle); border: 1px solid var(--soft-line); }
.asset-grid a:hover { color: var(--link); text-decoration: none; border-color: var(--line); }
.asset-grid small { padding: 2px 5px; color: #0a645e; background: #dff7f3; border-radius: 3px; font-size: 9px; font-weight: 800; text-transform: uppercase; }

.home-footer { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; padding: 34px 54px; color: #c7d0d5; background: #151b20; }
.home-footer p { margin: 4px 0; }
.home-footer > div > strong { color: #fff; font-size: 18px; }
.footer-stats { display: flex; justify-content: flex-end; gap: 24px; }
.footer-stats span { display: grid; }
.footer-stats strong { color: #65ead9; font-size: 18px; }
.license { grid-column: 1 / -1; padding-top: 16px; border-top: 1px solid #364149; font-size: 12px; }

.documentation { max-width: 1050px; }
.breadcrumb { margin: 0 0 12px; color: var(--muted); font-size: 12px; }
.lead { max-width: 820px; color: var(--muted); font-size: 17px; }
.doc-section { margin: 38px 0; scroll-margin-top: 20px; }
.doc-section h3 { margin: 24px 0 9px; font-size: 17px; }
.doc-section p, .doc-section li { max-width: 880px; }
.doc-section code { padding: 1px 4px; background: var(--code-bg); border: 1px solid var(--code-line); }
.doc-section pre { margin: 14px 0; padding: 17px 19px; overflow-x: auto; color: var(--ink); background: var(--code-bg); border: 1px solid var(--code-line); border-left: 4px solid #198c83; }
.doc-section pre code { padding: 0; background: transparent; border: 0; font: 13px/1.6 Consolas, Monaco, monospace; }
.info-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 18px 0; }
.info-cards > div { padding: 16px; background: var(--subtle); border: 1px solid var(--soft-line); }
.info-cards strong { color: #15877f; font-size: 16px; }
.info-cards p { margin-bottom: 0; color: var(--muted); }
.doc-table { width: 100%; margin: 16px 0; border-collapse: collapse; }
.doc-table th, .doc-table td { padding: 10px 12px; text-align: left; border: 1px solid var(--soft-line); }
.doc-table th { background: var(--subtle); }
.doc-table tbody tr:nth-child(even) { background: color-mix(in srgb, var(--subtle) 68%, transparent); }
.doc-table tbody tr:hover { background: rgba(22, 125, 121, .075); }
.flow-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0; }
.flow-grid > div { display: grid; gap: 8px; padding: 15px; background: var(--subtle); border: 1px solid var(--soft-line); }
.flow-grid code { width: fit-content; overflow-wrap: anywhere; }
.next-guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 24px; }
.next-guides a { display: grid; gap: 5px; padding: 15px; color: var(--ink); background: var(--subtle); border: 1px solid var(--soft-line); }
.next-guides a:hover { text-decoration: none; border-color: var(--link); }
.next-guides span { color: var(--muted); font-size: 12px; }
.reference-search { display: flex; align-items: center; gap: 12px; margin: 22px 0; }
.reference-search input { flex: 1; min-height: 42px; padding: 8px 11px; color: var(--ink); background: var(--thumb); border: 1px solid var(--line); }
.reference-search span { color: var(--muted); white-space: nowrap; }
.reference-table-wrap { overflow-x: auto; }
.id-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.id-grid > div { display: grid; grid-template-columns: 38px minmax(0, 1fr); align-items: center; gap: 8px; min-height: 46px; padding: 8px 10px; background: var(--subtle); border: 1px solid var(--soft-line); }
.id-grid .visual-reference { grid-template-columns: 64px 38px minmax(0, 1fr); }
.visual-reference img { width: 58px; height: 58px; object-fit: contain; border-radius: 10px; background: rgba(9, 15, 27, 0.72); }
.id-grid strong { color: #16877f; font-size: 18px; }
.id-grid code { overflow-wrap: anywhere; font-size: 11px; }
.token-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.token-grid code { padding: 7px 10px; background: var(--code-bg); border: 1px solid var(--code-line); }
.reference-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.reference-card-grid > div { display: grid; gap: 5px; padding: 10px; border: 1px solid var(--soft-line); background: var(--subtle); }
.reference-card-grid strong { color: #16877f; font-size: 12px; }
.reference-card-grid code { font-size: 11px; overflow-wrap: anywhere; }
.compact-reference-grid > div { grid-template-columns: 35px minmax(0, 1fr); align-items: center; }
.color-reference-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.color-reference-grid > div { display: grid; grid-template-columns: 52px 36px minmax(0, 1fr); align-items: center; gap: 8px; padding: 8px; border: 1px solid var(--soft-line); background: var(--subtle); }
.color-reference-grid i { width: 48px; height: 48px; border-radius: 7px; border: 1px solid rgba(128,128,128,.45); background: var(--swatch); }
.color-reference-grid img { width: 48px; height: 48px; border-radius: 7px; object-fit: cover; }
.color-reference-grid code { font-size: 10px; overflow-wrap: anywhere; }
.color-reference-grid small { grid-column: 3; color: var(--muted); }
.check-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px 24px; padding: 0; list-style: none; }
.check-list li { position: relative; padding: 10px 10px 10px 34px; background: var(--subtle); border: 1px solid var(--soft-line); }
.check-list li::before { content: "✓"; position: absolute; left: 12px; color: #16877f; font-weight: 900; }

.asset-home { min-height: calc(100vh - 62px); background: var(--panel); }
.asset-header { position: relative; z-index: 10; }
.asset-hero { padding: 48px 24px 44px; text-align: center; color: #fff; background: linear-gradient(135deg, #253840 0%, #285760 58%, #346d6d 100%); border-bottom: 4px solid #dfe5e6; }
.asset-hero h1 { margin: 0; padding: 0; color: #fff; border: 0; font: 700 clamp(34px, 6vw, 56px)/1.08 Georgia, "Times New Roman", serif; letter-spacing: -1.5px; }
.asset-hero > p:not(.eyebrow) { margin: 16px auto 27px; color: #dde7e8; font-size: 17px; }
.global-search-box { display: flex; align-items: center; gap: 12px; max-width: 760px; margin: 0 auto; padding: 8px 12px 8px 18px; color: #527078; background: #fff; border: 1px solid rgba(255,255,255,.7); border-radius: 5px; box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.global-search-box > span { font-size: 29px; line-height: 1; }
.global-search-box input { flex: 1; min-width: 0; height: 42px; color: #172126; background: transparent; border: 0; outline: 0; font-size: 16px; }
.global-search-box kbd { padding: 4px 8px; color: #617079; background: #edf1f2; border: 1px solid #d6dddf; border-radius: 4px; box-shadow: 0 1px 0 #bbc5c8; }
.global-results { max-width: 760px; margin: 10px auto 0; padding: 6px; color: var(--ink); text-align: left; background: var(--panel); border: 1px solid var(--soft-line); border-radius: 5px; box-shadow: 0 10px 28px rgba(0,0,0,.2); }
.global-results a { display: flex; justify-content: space-between; align-items: center; padding: 11px 13px; color: var(--ink); border-bottom: 1px solid var(--soft-line); }
.global-results a:last-child { border: 0; }
.global-results a:hover { text-decoration: none; background: var(--subtle); }
.global-results a span { display: grid; }
.global-results small { color: var(--muted); }
.global-results p { margin: 8px; color: var(--muted); }
.search-hints { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 7px; margin-top: 18px; color: #9fb4ba; font-size: 12px; }
.search-hints button { padding: 4px 9px; color: #cfe5e4; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18); border-radius: 20px; cursor: pointer; }
.search-hints button:hover { background: rgba(255,255,255,.15); }
.asset-directory, .asset-roadmap { max-width: 1280px; margin: 0 auto; padding: 42px 28px; }
.asset-roadmap { padding-top: 12px; }
.directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 22px; }
.directory-heading .eyebrow { margin-bottom: 4px; }
.directory-heading h2 { margin: 0; padding: 0; border: 0; font: 800 30px/1.1 sans-serif; letter-spacing: -1px; }
.directory-heading > span { color: var(--muted); font-size: 12px; }
.asset-category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.asset-category { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; align-items: center; gap: 13px; min-height: 92px; padding: 16px; color: var(--ink); background: var(--panel); border: 1px solid var(--soft-line); border-left: 3px solid #7d9ea1; border-radius: 4px; }
.asset-category:hover { text-decoration: none; border-color: #4c8b8d; transform: translateY(-1px); box-shadow: 0 5px 14px rgba(0,0,0,.055); }
.asset-category.featured { background: var(--panel); border-color: var(--line); border-left-color: #177d78; }
.asset-category div { display: grid; gap: 3px; }
.asset-category strong { font-size: 16px; }
.asset-category small { color: var(--muted); }
.asset-category > b { color: #16877f; font-size: 18px; }
.asset-glyph { display: grid; place-items: center; width: 48px; height: 48px; color: #e7f4f3; background: #426f72; border-radius: 4px; font-size: 18px; font-weight: 900; }
.roadmap-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.roadmap-grid span { padding: 12px 14px; color: var(--muted); background: var(--panel); border: 1px solid var(--soft-line); border-radius: 3px; }
.roadmap-grid span::before { content: "+"; margin-right: 8px; color: #198c83; font-weight: 900; }
.asset-footer { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 30px max(28px, calc((100vw - 1224px) / 2)); color: #b9c5ca; background: #11181d; }
.asset-footer > div { display: grid; }
.asset-footer strong { color: #fff; }
.asset-footer p { margin: 0; }
.legal-page { width: min(960px, calc(100% - 32px)); margin: 30px auto 60px; padding: 30px 36px; background: var(--panel); border: 1px solid var(--soft-line); box-shadow: 0 5px 22px rgba(9,23,29,.04); }
.legal-brand-logo { display: block; width: min(430px, 100%); height: auto; margin: 12px 0 24px; }
[data-theme="dark"] .legal-brand-logo { padding: 12px; background: #f5f7f8; border-radius: 4px; }
.legal-footer { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(320px, 1.5fr) auto; align-items: center; gap: 24px; padding: 24px max(24px, calc((100vw - 1400px) / 2)); color: #b9c4c8; background: #172026; border-top: 4px solid #426f72; font-size: 12px; }
.legal-footer > div { display: grid; }
.legal-footer strong { color: #fff; font: 600 17px Georgia, "Times New Roman", serif; }
.legal-footer p { margin: 0; }
.legal-footer a { color: #8fd4d2; font-weight: 700; white-space: nowrap; }

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

@media (max-width: 900px) {
  .site-header { grid-template-columns: 1fr; gap: 7px; }
  nav { justify-content: flex-start; width: 100%; padding-bottom: 3px; }
  nav a.active::after { bottom: -3px; }
  .page { grid-template-columns: 1fr; padding: 14px; }
  .sidebar { position: static; }
  .content { padding: 18px; }
  .hub-grid { grid-template-columns: 1fr; }
  .tools { grid-template-columns: 1fr; }
  .summary { grid-template-columns: 1fr; }
  .home-content { padding: 0; }
  .welcome-panel { grid-template-columns: 1fr; padding: 38px 28px; }
  .welcome-mark { display: none; }
  .quick-links { grid-template-columns: repeat(3, 1fr); }
  .quick-links a { border-bottom: 1px solid var(--soft-line); }
  .wiki-section { padding: 34px 28px; }
  .section-grid { grid-template-columns: 1fr; }
  .section-grid > section:first-child { border-right: 0; border-bottom: 1px solid var(--soft-line); }
  .journey-grid, .columns { grid-template-columns: 1fr; }
  .tutorial-grid, .reference-grid { grid-template-columns: repeat(2, 1fr); }
  .asset-grid { grid-template-columns: repeat(2, 1fr); }
  .home-footer { padding: 30px 28px; }
  .info-cards, .next-guides { grid-template-columns: 1fr; }
  .native-tools { grid-template-columns: 1fr; }
  .id-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reference-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .color-reference-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .asset-category-grid { grid-template-columns: repeat(2, 1fr); }
  .roadmap-grid { grid-template-columns: repeat(3, 1fr); }
  .legal-footer { grid-template-columns: 1fr; gap: 10px; }
}

@media (max-width: 560px) {
  .site-header { align-items: stretch; padding: 10px 14px; }
  nav { gap: 9px; }
  .quick-links { grid-template-columns: repeat(2, 1fr); }
  .link-list, .tutorial-grid, .reference-grid, .asset-grid { grid-template-columns: 1fr; }
  .welcome-panel h1 { letter-spacing: -1px; }
  .wiki-section.compact { padding: 30px 24px; }
  .footer-stats { justify-content: flex-start; }
  .home-footer { grid-template-columns: 1fr; }
  .license { grid-column: 1; }
  .flow-grid { grid-template-columns: 1fr; }
  .native-grid { grid-template-columns: 1fr; }
  .reference-search { align-items: stretch; flex-direction: column; }
  .id-grid { grid-template-columns: 1fr; }
  .reference-card-grid, .color-reference-grid { grid-template-columns: 1fr; }
  .check-list { grid-template-columns: 1fr; }
  .asset-hero { padding: 55px 18px 46px; }
  .asset-hero h1 { letter-spacing: -2px; }
  .asset-directory, .asset-roadmap { padding-left: 16px; padding-right: 16px; }
  .asset-category-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .directory-heading { align-items: flex-start; flex-direction: column; }
  .asset-footer { align-items: flex-start; flex-direction: column; }
}
