.native-page {
  --native-surface: #181613;
  --native-inset: #11100e;
  --native-border: #3e352c;
  --native-highlight: #f2aa6d;
  --native-mono: Consolas, "Cascadia Mono", monospace;
  background: var(--bg);
}

.native-main { width: min(100%, 1440px); padding: 28px clamp(16px, 4vw, 56px) 56px; }
.native-page [hidden] { display: none; }
.native-sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.native-intro {
  display: flex; align-items: end; min-height: 162px; padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--native-border); border-radius: 7px;
  background: linear-gradient(90deg, #17120ff5 15%, #17120fca 55%, #17120f52),
    linear-gradient(0deg, #17120fb0, transparent), url("gonem-road.jpg") center 49% / cover;
}
.native-intro h1 { margin: 0; font-size: clamp(2.05rem, 4.4vw, 3.5rem); }
.native-intro p { color: var(--text); }

.native-filters {
  display: flex; flex-wrap: wrap; gap: 16px;
  margin: 16px 0; padding: 16px; border: 1px solid var(--native-border); border-radius: 7px;
  background: var(--native-surface);
}
.native-filters label, #copy-manual:not([hidden]) { display: grid; gap: 6px; min-width: 0; font-size: .875rem; font-weight: 600; }
.native-filters label { flex: 1 1 130px; }
.native-filters label:first-child { flex: 2 1 240px; }
.native-page input, .native-page select {
  width: 100%; min-height: 44px; padding: 8px 12px; border: 1px solid #5e4d3f; border-radius: 4px;
  color: var(--text); background: var(--native-inset); font: 400 1rem/1.3 var(--body);
}
.native-page select {
  appearance: none; padding-right: 30px;
  background: linear-gradient(45deg, transparent 50%, #c7b6a7 50%) calc(100% - 16px) 50% / 5px 5px no-repeat,
    linear-gradient(135deg, #c7b6a7 50%, transparent 50%) calc(100% - 11px) 50% / 5px 5px no-repeat, var(--native-inset);
}
.native-page input::placeholder { color: #a89c90; }
.native-page :is(button, input, select):focus-visible { outline: 2px solid var(--native-highlight); outline-offset: 2px; }
.native-page :is(button, input, select):disabled { opacity: .55; cursor: default; }
.native-page button:not(:disabled) { color: var(--text); cursor: pointer; }
.native-page button:disabled { color: var(--muted); }

.native-layout { display: grid; grid-template-columns: minmax(300px, 2fr) minmax(0, 3fr); align-items: start; gap: 16px; }
.native-panel { min-width: 0; border: 1px solid var(--native-border); border-radius: 7px; background: var(--native-surface); }
.native-panel-head {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 4px 16px;
  min-height: 56px; padding: 12px 16px; border-bottom: 1px solid var(--native-border);
}
.native-panel-head h2 { font-size: 1.35rem; }
.native-panel-head span { color: var(--muted); font-size: .875rem; }
.native-list, .native-flags { margin: 0; padding: 0; list-style: none; }
.native-list li + li { border-top: 1px solid var(--native-border); }
.native-row {
  display: grid; gap: 3px; min-height: 52px; padding: 8px 14px;
  border-inline-start: 3px solid transparent; text-decoration: none; overflow-wrap: anywhere;
}
.native-row:hover, .native-row:focus-visible { background: #251d18; }
.native-row:focus-visible { outline-offset: -3px; }
.native-row[aria-current="true"] { border-inline-start-color: var(--native-highlight); background: #2b211a; }
.native-row strong { color: var(--text); font: 600 .9375rem/1.3 var(--native-mono); }
.native-row[aria-current="true"] strong { color: var(--native-highlight); }
.native-row span { color: var(--muted); font-size: .8125rem; line-height: 1.3; }
.native-message, .native-noscript { margin: 0; padding: 20px 16px; }
.native-pages {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px; border-top: 1px solid var(--native-border); color: var(--muted); font-size: .875rem;
}
.native-pages .btn, .native-entry-actions .btn { padding-inline: 12px; }
.native-detail { position: sticky; top: 16px; }
.native-entry-head, .native-entry-body, .native-entry-actions { padding: 18px clamp(16px, 3vw, 26px); }
.native-entry-head { border-bottom: 1px solid var(--native-border); }
.native-path { margin: 0 0 7px; color: var(--native-highlight); font: .9375rem/1.4 var(--native-mono); overflow-wrap: anywhere; }
.native-entry-head h2 {
  color: var(--text); font: 600 clamp(1.2rem, 2.7vw, 1.9rem)/1.2 var(--native-mono);
  letter-spacing: normal; text-transform: none; overflow-wrap: anywhere;
}
.native-entry-body { display: grid; gap: 22px; }
.native-entry-body h3 { margin: 0 0 7px; font-size: .9375rem; }
.native-entry-body p { margin: 0; overflow-wrap: anywhere; }
.native-entry-body p + p, #entry-source-link { margin-top: 5px; }
#entry-source-link:not([hidden]) { display: inline-block; color: var(--native-highlight); }
#signature-source-link { color: var(--native-highlight); }
#signature-source, #signature-source-detail { margin-top: 7px; font-size: .875rem; }
.native-entry-body pre {
  margin: 0; padding: 14px; border: 1px solid var(--native-border); border-radius: 4px;
  color: var(--native-highlight); background: var(--native-inset);
  font: .9375rem/1.5 var(--native-mono); white-space: pre-wrap; overflow-wrap: anywhere;
}
.native-entry-body code { font: inherit; }
.native-parameters { width: 100%; border-collapse: collapse; text-align: left; }
.native-parameters :is(th, td) { padding: 8px 6px; border-bottom: 1px solid var(--native-border); overflow-wrap: anywhere; }
.native-parameters td { font: .875rem/1.4 var(--native-mono); }
.native-flags { display: flex; flex-wrap: wrap; gap: 6px; }
.native-flags li {
  padding: 4px 8px; border: 1px solid var(--native-border); border-radius: 4px;
  color: var(--muted); font: .875rem/1.35 var(--native-mono); overflow-wrap: anywhere;
}
.native-entry-actions {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  border-top: 1px solid var(--native-border);
}
#copy-status { color: var(--muted); font-size: .875rem; }
#copy-manual { flex-basis: 100%; }
.native-mobile-back { display: none; }

@media (max-width: 760px) {
  .native-intro { min-height: 132px; }
  .native-layout { grid-template-columns: minmax(0, 1fr); }
  .native-filters { gap: 10px; }
  .native-filters label:first-child { flex-basis: 100%; }
  .native-main:has(.has-selection) .native-filters { display: none; }
  .native-detail { display: none; position: static; }
  .native-layout.has-selection .native-results { display: none; }
  .native-layout.has-selection .native-detail { display: block; margin-top: 16px; }
  .native-mobile-back { display: inline-block; margin: 14px 16px 0; color: var(--native-highlight); }
}
