/* Dokumentacja dFLEX API: pasek nagłówka powłoki /docs i przewodników, zakładki powłoki, strony Scalar, Redoc i Swagger UI
   w ramkach (#8410, #8413, docs-shell). Czcionki systemowe, bez zasobów zewnętrznych. */
:root {
  --dflex-docs-header-height: 48px;
  --scalar-font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --scalar-font-code: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
}

body {
  margin: 0;
  font-family: var(--scalar-font);
}

.dflex-docs-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 16px;
  height: var(--dflex-docs-header-height);
  padding: 0 16px;
  box-sizing: border-box;
  background: #14213d;
  color: #ffffff;
}

.dflex-docs-brand {
  font-weight: 600;
}

.dflex-docs-version {
  font-size: 13px;
  opacity: 0.8;
}

.dflex-docs-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-left: auto;
}

.dflex-docs-nav a {
  color: #ffffff;
  text-decoration: none;
  font-size: 14px;
}

.dflex-docs-nav a:hover,
.dflex-docs-nav a:focus-visible {
  text-decoration: underline;
}

/* Przewodniki pakietu /docs (#8413): wspólny pasek nagłówka, lista przewodników i treść. */
a.dflex-docs-brand {
  color: #ffffff;
  text-decoration: none;
}

.dflex-docs-nav a[aria-current="page"] {
  text-decoration: underline;
}

/* Przewodniki: tym samym stylem objęte są strony w powłoce i otwarte bezpośrednio. */
@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("./fonts/barlow-semi-condensed-latin-ext.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Barlow Semi Condensed";
  src: url("./fonts/barlow-semi-condensed-latin.woff2") format("woff2");
  font-weight: 700;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --guide-paper: #f7f8f4;
  --guide-white: #fffefa;
  --guide-ink: #172b2b;
  --guide-muted: #4d6260;
  --guide-line: #cdd8d2;
  --guide-link: #075c4c;
  --guide-rail: #122729;
  --guide-banner: #183b38;
  --guide-rail-line: #3b5551;
  --guide-rail-text: #d4e4dc;
  --guide-mint: #b8efd2;
  --guide-display: "Barlow Semi Condensed", var(--scalar-font);
  --guide-gutter: clamp(1.25rem, 5vw, 4.75rem);
}

.dflex-guide-page {
  background: var(--guide-paper);
  color: var(--guide-ink);
  line-height: 1.7;
}

html:has(.dflex-guide-page) {
  scrollbar-color: #78938b var(--guide-paper);
}

.dflex-guide-page ::selection {
  background: var(--guide-mint);
  color: var(--guide-ink);
}

.dflex-guide-skip {
  position: fixed;
  z-index: 20;
  inset: 0 auto auto 0;
  padding: 0.6rem 1rem;
  transform: translateY(-110%);
  background: var(--guide-mint);
  color: var(--guide-ink);
}

.dflex-guide-skip:focus {
  transform: none;
}

.dflex-guide-layout {
  display: flex;
  min-height: calc(100vh - var(--dflex-docs-header-height));
}

.dflex-guide-list {
  flex: 0 0 17rem;
  position: sticky;
  inset-block-start: var(--dflex-docs-header-height);
  align-self: flex-start;
  max-height: calc(100vh - var(--dflex-docs-header-height));
  box-sizing: border-box;
  overflow: auto;
}

.dflex-guide {
  flex: 1 1 0;
  min-inline-size: 0;
}

.dflex-guide-intro {
  padding: clamp(2.5rem, 5.5vw, 5rem) var(--guide-gutter) clamp(2.5rem, 5vw, 4.5rem);
  background: var(--guide-banner);
  color: var(--guide-white);
  border-block-end: 1px solid var(--guide-link);
}

.dflex-guide-intro-inner,
.dflex-guide-reading {
  max-inline-size: 74rem;
  margin-inline: auto;
}

.dflex-guide h1,
.dflex-docs-home h1,
.dflex-guide h2,
.dflex-guide h3 {
  font-family: var(--guide-display);
  line-height: 1.11;
  letter-spacing: -0.03em;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.dflex-guide h1,
.dflex-docs-home h1 {
  margin: 0;
  max-inline-size: 25ch;
  font-size: clamp(2.125rem, 5.6vw, 4.25rem);
  font-weight: 700;
}

.dflex-guide-intro p {
  max-inline-size: 66ch;
  margin: 1.35rem 0 0;
  color: var(--guide-rail-text);
  font-size: clamp(1.025rem, 1.6vw, 1.2rem);
  line-height: 1.57;
}

.dflex-guide-intro a {
  color: var(--guide-mint);
}

.dflex-guide-reading {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 2.75rem;
  padding: clamp(1.55rem, 4vw, 3.25rem) var(--guide-gutter) 4.5rem;
}

.dflex-guide-content {
  min-inline-size: 0;
  max-inline-size: 54rem;
}

.dflex-guide-content > :first-child {
  margin-block-start: 0;
}

.dflex-guide-content > p,
.dflex-guide-content > ul {
  max-inline-size: 68ch;
  margin-block: 0 1.05rem;
}

.dflex-guide-coverage {
  max-inline-size: 68ch;
  margin-block: 0 0.8rem;
}

.dflex-guide-coverage summary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  inline-size: fit-content;
  min-block-size: 2rem;
  color: var(--guide-link);
  font-size: 0.85rem;
  font-weight: 650;
  list-style: none;
  cursor: pointer;
}

.dflex-guide-coverage summary::-webkit-details-marker {
  display: none;
}

.dflex-guide-coverage summary::before {
  content: "";
  inline-size: 0.36rem;
  block-size: 0.36rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: translateX(-0.05rem) rotate(-45deg);
}

.dflex-guide-coverage[open] summary::before {
  transform: translateY(-0.08rem) rotate(45deg);
}

.dflex-guide-coverage summary:hover {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.dflex-guide-coverage-content {
  margin-block: 0.2rem 1.2rem;
  padding-inline-start: 0.8rem;
  border-inline-start: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: 0.93rem;
}

.dflex-guide-coverage-content p {
  margin: 0;
}

.dflex-guide-coverage-content p + p {
  margin-block-start: 0.55rem;
}

.dflex-guide-callout {
  --guide-callout-accent: #39796c;
  --guide-callout-paper: #edf5ef;
  box-sizing: border-box;
  max-inline-size: 73ch;
  margin-block: 1.4rem;
  padding: 0.95rem clamp(0.95rem, 3vw, 1.4rem);
  border: 1px solid var(--guide-line);
  border-inline-start: 4px solid var(--guide-callout-accent);
  border-radius: 0.625rem;
  background: var(--guide-callout-paper);
}

.dflex-guide-callout--tip {
  --guide-callout-accent: #567646;
  --guide-callout-paper: #f1f5e9;
}

.dflex-guide-callout--important {
  --guide-callout-accent: #765a91;
  --guide-callout-paper: #f4f0f8;
}

.dflex-guide-callout--warning,
.dflex-guide-callout--caution {
  --guide-callout-accent: #9a691d;
  --guide-callout-paper: #faf3e5;
}

.dflex-guide-callout p {
  margin: 0;
}

.dflex-guide-callout p + p {
  margin-block-start: 0.45rem;
}

.dflex-guide-callout-title {
  font-family: var(--guide-display);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  text-wrap: balance;
}

.dflex-guide-content ul {
  padding-inline-start: 1.4rem;
}

.dflex-guide-content li + li {
  margin-block-start: 0.45rem;
}

.dflex-guide-content li::marker {
  color: var(--guide-link);
}

.dflex-guide h2 {
  margin: 3rem 0 0.95rem;
  padding-block-start: 1.4rem;
  border-block-start: 1px solid var(--guide-line);
  scroll-margin-block-start: calc(var(--dflex-docs-header-height) + 1rem);
  font-size: clamp(1.6rem, 2.8vw, 2.35rem);
  font-weight: 700;
}

.dflex-guide h3 {
  margin: 1.6rem 0 0.55rem;
  font-size: 1.2rem;
}

.dflex-guide-content a,
.dflex-guide-toc a {
  color: var(--guide-link);
}

.dflex-guide a {
  text-underline-offset: 0.22em;
  text-decoration-thickness: 1px;
  overflow-wrap: anywhere;
}

.dflex-guide a:hover {
  text-decoration-thickness: 2px;
}

.dflex-guide :focus-visible,
.dflex-guide-skip:focus-visible {
  outline: 2px solid var(--guide-link);
  outline-offset: 3px;
}

.dflex-guide-intro :focus-visible,
.dflex-guide-example :focus-visible {
  outline-color: var(--guide-mint);
  outline-offset: -3px;
}

.dflex-guide-toc {
  display: none;
  align-self: start;
  position: sticky;
  inset-block-start: calc(var(--dflex-docs-header-height) + 1.5rem);
  padding-inline-start: 1.1rem;
  border-inline-start: 1px solid var(--guide-line);
  max-height: calc(100vh - var(--dflex-docs-header-height) - 3rem);
  overflow: auto;
}

.dflex-guide-toc p {
  margin: 0 0 0.65rem;
  color: var(--guide-ink);
  font-weight: 650;
}

.dflex-guide-toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.dflex-guide-toc a {
  display: block;
  padding: 0.35rem 0;
  font-size: 0.875rem;
  line-height: 1.4;
  text-decoration: none;
}

.dflex-guide-toc a:hover {
  text-decoration: underline;
}

.dflex-guide-diagram,
.dflex-guide-example {
  overflow: hidden;
  margin: 1.55rem 0;
  border-radius: 0.75rem;
}

.dflex-guide-diagram {
  background-color: var(--guide-white);
  background-image: radial-gradient(circle, #d7e3db 0.65px, transparent 0.7px);
  background-size: 13px 13px;
  border: 1px solid var(--guide-line);
}

.dflex-guide-diagram figcaption,
.dflex-guide-example figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
}

.dflex-guide-diagram figcaption {
  min-height: 1.5rem;
  background: var(--guide-white);
  border-block-end: 1px solid var(--guide-line);
}

.dflex-guide-diagram img {
  display: block;
  max-inline-size: calc(100% - 2rem);
  max-block-size: 34rem;
  block-size: auto;
  inline-size: auto;
  margin: clamp(1.15rem, 4vw, 2.25rem) auto;
}

.dflex-guide code {
  font-family: var(--scalar-font-code);
  background: #e8efea;
  color: #24463f;
  border-radius: 0.25rem;
  padding: 0.085em 0.32em;
  font-size: 0.88em;
  overflow-wrap: anywhere;
}

.dflex-guide-example,
.dflex-guide pre {
  background: var(--guide-rail);
  color: #e4f5ed;
}

.dflex-guide-example figcaption {
  border-block-end: 1px solid var(--guide-rail-line);
  color: var(--guide-mint);
}

.dflex-guide pre {
  padding: 1rem 1.15rem 1.1rem;
  margin: 1.45rem 0;
  overflow: auto;
  border-radius: 0.75rem;
  line-height: 1.56;
  scrollbar-color: #63867c var(--guide-rail);
}

.dflex-guide-example pre {
  border-radius: 0;
  margin: 0;
}

.dflex-guide pre code {
  background: none;
  color: inherit;
  padding: 0;
  font-size: 0.875rem;
}

.dflex-guide table {
  border-collapse: collapse;
  display: block;
  max-inline-size: 100%;
  overflow: auto;
  margin: 1.5rem 0;
  font-size: 0.94rem;
}

.dflex-guide th,
.dflex-guide td {
  border-block-end: 1px solid var(--guide-line);
  padding: 0.7rem 0.8rem;
  text-align: left;
  vertical-align: top;
}

.dflex-guide th {
  background: #e5eee8;
  color: var(--guide-ink);
}

.dflex-guide tbody tr:nth-child(odd) {
  background: var(--guide-white);
}

.dflex-embedded .dflex-guide-layout {
  min-height: 100vh;
}

.dflex-embedded .dflex-guide :is(h2, .dflex-guide-toc) {
  scroll-margin-block-start: 1.2rem;
}

.dflex-embedded .dflex-guide-toc {
  inset-block-start: 1.5rem;
  max-height: calc(100vh - 3rem);
}

@media (min-width: 54rem) {
  .dflex-embedded .dflex-guide-reading:has(.dflex-guide-toc) {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 12.5rem);
  }

  .dflex-embedded .dflex-guide-toc {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .dflex-embedded .dflex-guide-content {
    grid-column: 1;
    grid-row: 1;
  }
}

@media (min-width: 76rem) {
  .dflex-guide-reading:has(.dflex-guide-toc) {
    grid-template-columns: minmax(0, 1fr) minmax(10rem, 12.5rem);
  }

  .dflex-guide-toc {
    display: block;
    grid-column: 2;
    grid-row: 1;
  }

  .dflex-guide-content {
    grid-column: 1;
    grid-row: 1;
  }
}

/* Powłoka /docs: nagłówek z zakładkami nad panelem aktywnej zakładki na całą pozostałą wysokość okna. */
html:has(body.dflex-shell),
body.dflex-shell {
  height: 100%;
}

body.dflex-shell {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.dflex-shell .dflex-docs-header {
  flex: 0 0 auto;
}

.dflex-docs-tabs {
  display: flex;
  gap: 4px;
  margin-left: auto;
  overflow-x: auto;
}

.dflex-docs-tabs a {
  padding: 6px 10px;
  border-radius: 4px;
  color: #ffffff;
  font-size: 14px;
  text-decoration: none;
  white-space: nowrap;
}

.dflex-docs-tabs a[aria-selected="true"] {
  background: #ffffff;
  color: #14213d;
}

.dflex-docs-tabs a:hover,
.dflex-docs-tabs a:focus-visible {
  text-decoration: underline;
}

.dflex-shell-panels {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
}

.dflex-panel {
  position: absolute;
  inset: 0;
  display: flex;
}

.dflex-panel[hidden] {
  display: none;
}

.dflex-frame {
  flex: 1 1 auto;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Nawigacja przewodników w powłoce i bezpośrednio otwartej stronie. */
.dflex-guide-menu {
  flex: 0 0 17rem;
  min-block-size: 0;
  overflow: auto;
  background: var(--guide-rail);
  border-inline-end: 1px solid var(--guide-rail-line);
  scrollbar-color: #63867c var(--guide-rail);
}

.dflex-guide-menu > summary {
  display: none;
}

.dflex-shell-guides,
.dflex-guide-list {
  box-sizing: border-box;
  padding: 1.65rem 1.1rem 2rem;
  background: var(--guide-rail);
  color: var(--guide-rail-text);
  scrollbar-color: #63867c var(--guide-rail);
}

.dflex-guide-group {
  border-block-end: 1px solid var(--guide-rail-line);
}

.dflex-guide-group > summary {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 2.75rem;
  padding-inline: 0.65rem;
  color: var(--guide-mint);
  font-family: var(--guide-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
  cursor: pointer;
  list-style: none;
}

.dflex-guide-group > summary::-webkit-details-marker {
  display: none;
}

.dflex-guide-group > summary::before {
  content: "";
  inline-size: 0.39rem;
  block-size: 0.39rem;
  flex-shrink: 0;
  border: solid currentColor;
  border-width: 0 1px 1px 0;
  transform: rotate(-45deg);
}

.dflex-guide-group[open] > summary::before {
  transform: rotate(45deg);
}

.dflex-guide-section {
  --guide-category-toggle: 2.75rem;
  position: relative;
}

.dflex-guide-section .dflex-guide-group > summary {
  box-sizing: border-box;
  inline-size: var(--guide-category-toggle);
  margin-inline-start: auto;
  padding: 0;
  justify-content: center;
  border-radius: 0.38rem;
}

.dflex-guide-section > a.dflex-guide-category-link {
  position: absolute;
  inset: 0 var(--guide-category-toggle) auto 0;
  display: flex;
  align-items: center;
  block-size: var(--guide-category-toggle);
  padding-block: 0;
  color: var(--guide-mint);
  font-family: var(--guide-display);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
}

.dflex-guide-category-link > span {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

@media (hover: hover) and (pointer: fine) {
  .dflex-guide-group > summary:hover {
    background-color: var(--guide-banner);
  }
}

@media (prefers-reduced-motion: no-preference) {
  .dflex-guide-group[data-pointer-toggle] > summary::before {
    transition: transform 160ms cubic-bezier(0.23, 1, 0.32, 1);
  }

  @supports (interpolate-size: allow-keywords) {
    .dflex-guide-group::details-content {
      interpolate-size: allow-keywords;
      contain: layout;
      overflow: clip;
    }

    .dflex-guide-group:not([open])::details-content {
      block-size: 0;
    }

    .dflex-guide-group[open]::details-content {
      block-size: auto;
    }

    .dflex-guide-group[data-pointer-toggle]::details-content {
      transition: block-size 175ms cubic-bezier(0.23, 1, 0.32, 1), content-visibility 175ms allow-discrete;
    }
  }
}

.dflex-shell-guides ul,
.dflex-guide-list ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dflex-shell-guides .dflex-guide-group > ul,
.dflex-guide-list .dflex-guide-group > ul {
  padding-block-end: 0.6rem;
}

.dflex-guide-tools {
  position: sticky;
  z-index: 1;
  inset-block-start: 0;
  margin: -0.65rem -0.35rem 0;
  padding: 0.65rem 0.35rem 0.75rem;
  background: var(--guide-rail);
}

.dflex-guide-copy {
  margin-block-end: 0.65rem;
}

.dflex-guide-copy-button {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  inline-size: 100%;
  min-height: 2.5rem;
  padding: 0.4rem 0.7rem;
  border: 1px solid #699785;
  border-radius: 0.48rem;
  background: #244740;
  color: #dcf8e8;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 650;
  text-align: start;
  cursor: pointer;
}

.dflex-guide-copy-button:disabled {
  cursor: default;
  opacity: 0.64;
}

@media (hover: hover) and (pointer: fine) {
  .dflex-guide-copy-button:hover:enabled {
    background: #305a50;
  }

  .dflex-guide-copy-button:active:enabled {
    transform: scale(0.985);
  }
}

.dflex-guide-copy-icon {
  position: relative;
  flex-shrink: 0;
  inline-size: 1rem;
  block-size: 1rem;
}

.dflex-guide-copy-icon::before,
.dflex-guide-copy-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
  inline-size: 0.61rem;
  block-size: 0.72rem;
  border: 1px solid currentColor;
  border-radius: 0.12rem;
}

.dflex-guide-copy-icon::before {
  inset: 0.06rem auto auto 0.11rem;
  border-block-end-color: transparent;
  border-inline-end-color: transparent;
}

.dflex-guide-copy-icon::after {
  inset: 0.23rem auto auto 0.28rem;
}

.dflex-guide-copy[data-copy-state="success"] .dflex-guide-copy-button {
  background: var(--guide-mint);
  color: var(--guide-rail);
}

.dflex-guide-copy[data-copy-state="success"] .dflex-guide-copy-icon::before {
  display: none;
}

.dflex-guide-copy[data-copy-state="success"] .dflex-guide-copy-icon::after {
  inset: 0.15rem auto auto 0.35rem;
  inline-size: 0.38rem;
  block-size: 0.66rem;
  border-width: 0 1.5px 1.5px 0;
  border-radius: 0;
  transform: rotate(45deg);
}

.dflex-guide-copy-status {
  margin: 0.45rem 0;
  color: var(--guide-rail-text);
  font-size: 0.8rem;
}

.dflex-guide-copy:not([data-copy-state="manual"]) .dflex-guide-copy-status,
.dflex-copy-staging {
  position: fixed;
  inset: 0 auto auto 0;
  inline-size: 1px;
  block-size: 1px;
  padding: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.dflex-guide-copy-manual {
  box-sizing: border-box;
  inline-size: 100%;
  padding: 0.5rem;
  border: 1px solid #699785;
  border-radius: 0.35rem;
  background: #0d201f;
  color: var(--guide-white);
  font: 0.75rem var(--scalar-font-code);
  resize: vertical;
}

.dflex-guide-find-field {
  position: relative;
}

.dflex-guide-find-field::before,
.dflex-guide-find-field::after {
  content: "";
  position: absolute;
  color: #add0c2;
  pointer-events: none;
}

.dflex-guide-find-field::before {
  inline-size: 0.53rem;
  block-size: 0.53rem;
  inset: 0.82rem auto auto 0.8rem;
  border: 1px solid currentColor;
  border-radius: 50%;
}

.dflex-guide-find-field::after {
  inline-size: 0.36rem;
  inset: 1.45rem auto auto 1.3rem;
  border-block-start: 1px solid currentColor;
  transform: rotate(44deg);
}

.dflex-guide-find input {
  box-sizing: border-box;
  inline-size: 100%;
  min-height: 2.5rem;
  margin: 0;
  padding: 0.42rem 2rem 0.42rem 2.05rem;
  border: 1px solid #658278;
  border-radius: 0.48rem;
  background: #0d201f;
  color: var(--guide-white);
  font: inherit;
  font-size: 0.875rem;
}

.dflex-guide-find input::placeholder {
  color: #b0c9bf;
}

.dflex-guide-find input::-webkit-search-cancel-button {
  display: none;
}

.dflex-guide-find-clear {
  position: absolute;
  inset: 0.125rem 0.125rem 0.125rem auto;
  display: grid;
  place-items: center;
  inline-size: 2.15rem;
  padding: 0;
  border: 0;
  border-radius: 0.35rem;
  background: none;
  color: var(--guide-rail-text);
  cursor: pointer;
}

.dflex-guide-find-clear[hidden] {
  display: none;
}

.dflex-guide-find-clear::before,
.dflex-guide-find-clear::after {
  content: "";
  grid-area: 1 / 1;
  inline-size: 0.75rem;
  border-block-start: 1px solid currentColor;
  transform: rotate(45deg);
}

.dflex-guide-find-clear::after {
  transform: rotate(-45deg);
}

.dflex-guide-find-clear:hover {
  background: var(--guide-banner);
}

.dflex-guide-search-status {
  margin: 0.2rem 0.45rem 0.5rem;
  color: var(--guide-rail-text);
  font-size: 0.8rem;
}

.dflex-guide-search-status:empty {
  margin: 0;
}

.dflex-guide-results li + li {
  border-block-start: 1px solid var(--guide-rail-line);
}

.dflex-guide-result-title,
.dflex-guide-result-snippet {
  display: block;
}

.dflex-guide-result-title {
  font-weight: 650;
}

.dflex-guide-result-snippet {
  margin-block-start: 0.24rem;
  font-size: 0.79rem;
  font-weight: 400;
}

.dflex-guide-results mark {
  background: none;
  color: inherit;
  font-weight: 750;
  text-decoration: underline;
  text-underline-offset: 0.19em;
}

.dflex-shell-guides a,
.dflex-guide-list a {
  display: block;
  padding: 0.49rem 0.65rem;
  border-radius: 0.38rem;
  color: var(--guide-rail-text);
  font-size: 0.865rem;
  line-height: 1.37;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.dflex-shell-guides a:hover,
.dflex-guide-list a:hover {
  background: var(--guide-banner);
  color: var(--guide-white);
}

.dflex-shell-guides a[aria-current="page"],
.dflex-guide-list a[aria-current="page"] {
  background: var(--guide-mint);
  color: var(--guide-rail);
  font-weight: 680;
}

.dflex-guide-section > a.dflex-guide-category-link[aria-current="page"] {
  color: var(--guide-rail);
}

.dflex-shell-guides a:focus-visible,
.dflex-guide-list a:focus-visible,
.dflex-guide-group > summary:focus-visible,
.dflex-guide-menu summary:focus-visible,
.dflex-guide-tools :focus-visible {
  outline: 2px solid var(--guide-mint);
  outline-offset: 2px;
}

.dflex-shell-guides a[aria-current="page"]:focus-visible,
.dflex-guide-list a[aria-current="page"]:focus-visible {
  outline-color: var(--guide-link);
  outline-offset: -3px;
}

#dflex-panel-guides .dflex-frame {
  min-width: 0;
  min-height: 0;
}

.dflex-guide-category {
  min-block-size: 0;
  overflow: auto;
  background: var(--guide-paper);
  color: var(--guide-ink);
  scrollbar-color: #78938b var(--guide-paper);
}

.dflex-guide-category h1 {
  inline-size: fit-content;
}

.dflex-guide-category h1:focus-visible {
  outline: 2px solid var(--guide-mint);
  outline-offset: 0.25rem;
}

.dflex-category-reading {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr));
  align-items: start;
  gap: clamp(1.8rem, 4vw, 3.25rem);
}

.dflex-category-reading h2 {
  margin: 0 0 0.8rem;
  font-size: clamp(1.3rem, 2.2vw, 1.65rem);
}

.dflex-category-reading a {
  display: block;
  padding: 0.8rem 0.65rem;
  color: var(--guide-link);
  line-height: 1.45;
  text-underline-offset: 0.18em;
  overflow-wrap: anywhere;
}

.dflex-category-reading a:hover {
  background: #e0f0e6;
}

.dflex-category-reading a:focus-visible {
  outline: 2px solid var(--guide-link);
  outline-offset: -2px;
}

.dflex-category-featured a {
  padding: clamp(1rem, 2.5vw, 1.5rem);
  border-radius: 0.8rem;
  background: var(--guide-banner);
  color: var(--guide-white);
  font-family: var(--guide-display);
  font-size: clamp(1.2rem, 2.1vw, 1.6rem);
  font-weight: 700;
}

.dflex-category-featured a:hover {
  background: var(--guide-rail);
}

.dflex-category-featured a:focus-visible {
  outline-color: var(--guide-mint);
}

.dflex-category-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.dflex-category-list li {
  border-block-end: 1px solid var(--guide-line);
}

[data-dflex-guide-view="category"] .dflex-guide-copy {
  display: none;
}

[data-dflex-docs-mode="full"] .dflex-shell .dflex-docs-header,
.dflex-guide-page > .dflex-docs-header {
  background: #0d201f;
  border-block-end: 1px solid var(--guide-rail-line);
}

[data-dflex-docs-mode="full"] .dflex-docs-tabs a[aria-selected="true"] {
  background: var(--guide-mint);
  color: var(--guide-rail);
}

[data-dflex-docs-mode="full"] .dflex-docs-tabs a {
  border-radius: 2rem;
  font-weight: 550;
}

[data-dflex-docs-mode="full"] .dflex-docs-tabs a:focus-visible {
  outline: 2px solid var(--guide-mint);
  outline-offset: -2px;
}

[data-dflex-docs-mode="full"] .dflex-docs-tabs a:hover:not([aria-selected="true"]) {
  background: var(--guide-banner);
}

#dflex-panel-guides[data-dflex-guide-view="home"]:not([hidden]) {
  display: block;
  overflow: auto;
  background: var(--guide-paper);
  color: var(--guide-ink);
  scrollbar-color: #78938b var(--guide-paper);
}

.dflex-docs-home ::selection {
  background: var(--guide-mint);
  color: var(--guide-ink);
}

.dflex-docs-home-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(20rem, 0.9fr);
  align-items: center;
  gap: clamp(1.5rem, 5vw, 5rem);
}

.dflex-docs-home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 1.4rem;
  margin-block-start: 0.55rem;
}

.dflex-docs-home-start,
.dflex-docs-home-search {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  flex: none;
  min-height: 2.75rem;
  padding: 0.25rem 0;
  border: 0;
  background: transparent;
  color: var(--guide-mint);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 640;
  cursor: pointer;
}

.dflex-docs-home-search::after {
  content: "";
  inline-size: 0.45rem;
  block-size: 0.45rem;
  margin-block-start: -0.2rem;
  border: solid currentColor;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

.dflex-docs-home-start,
.dflex-docs-home-search:hover {
  color: var(--guide-white);
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.dflex-docs-systems {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dflex-docs-systems legend {
  margin-block-end: 0.7rem;
  padding: 0;
  color: var(--guide-white);
  font: 700 1.6rem/1.15 var(--guide-display);
}

.dflex-docs-system-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.dflex-docs-system-options label {
  position: relative;
  display: grid;
  align-content: start;
  gap: 0.3rem;
  min-block-size: 6rem;
  box-sizing: border-box;
  padding: 0.9rem 1rem;
  border: 1px solid #668b7e;
  border-radius: 0.8rem;
  background: var(--guide-rail);
  color: var(--guide-white);
  cursor: pointer;
}

.dflex-docs-system-options label:hover {
  border-color: var(--guide-mint);
}

.dflex-docs-system-options label:has(:checked) {
  border-color: var(--guide-mint);
  background: var(--guide-mint);
  color: var(--guide-rail);
}

.dflex-docs-system-options strong {
  padding-inline-end: 0.9rem;
  font: 700 clamp(1.15rem, 2vw, 1.55rem)/1.1 var(--guide-display);
}

.dflex-docs-system-options small {
  color: inherit;
  font-size: 0.85rem;
  line-height: 1.4;
}

.dflex-docs-system-options label:has(:checked)::after {
  position: absolute;
  inset: 1.05rem 0.8rem auto auto;
  inline-size: 0.55rem;
  block-size: 0.3rem;
  border: solid currentColor;
  border-width: 0 0 2px 2px;
  content: "";
  transform: rotate(-45deg);
}

.dflex-docs-system-options label:has(:focus-visible) {
  outline: 2px solid var(--guide-white);
  outline-offset: 2px;
}

.dflex-docs-system-options input,
.dflex-guide-choice input {
  position: absolute;
  z-index: 1;
  inset: 0;
  inline-size: 100%;
  block-size: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}

.dflex-guide-paths {
  display: grid;
  grid-template-columns: minmax(17rem, 0.78fr) minmax(0, 1.35fr);
  gap: clamp(1.5rem, 5vw, 4.75rem);
  max-inline-size: 74rem;
  margin-inline: auto;
  padding: clamp(1.7rem, 4vw, 3.4rem) var(--guide-gutter);
}

.dflex-guide-choices {
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.dflex-guide-choices legend,
.dflex-guide-picks h2 {
  margin: 0 0 1rem;
  padding: 0;
  font: 700 clamp(1.55rem, 3vw, 2.1rem)/1.13 var(--guide-display);
  letter-spacing: -0.02em;
}

.dflex-guide-choice {
  position: relative;
  display: grid;
  align-content: center;
  min-block-size: 3.9rem;
  box-sizing: border-box;
  padding: 0.65rem 2rem 0.65rem 1rem;
  border-block-end: 1px solid var(--guide-line);
  cursor: pointer;
}

.dflex-guide-choice:first-of-type {
  border-block-start: 1px solid var(--guide-line);
}

.dflex-guide-choice:hover {
  background: #edf4ed;
}

.dflex-guide-choice:has(:checked) {
  border-color: #a5c5b4;
  background: #e0f0e6;
  color: var(--guide-link);
}

.dflex-guide-choice:has(:checked)::after {
  position: absolute;
  inset: 50% 0.9rem auto auto;
  inline-size: 0.55rem;
  block-size: 0.55rem;
  border: solid currentColor;
  border-width: 2px 2px 0 0;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.dflex-guide-choice:has(:focus-visible) {
  outline: 2px solid var(--guide-link);
  outline-offset: 2px;
}

.dflex-guide-choice strong,
.dflex-guide-choice small,
.dflex-guide-pick-list strong,
.dflex-guide-pick-list a > span {
  display: block;
}

.dflex-guide-choice small,
.dflex-guide-pick-list a > span {
  margin-block-start: 0.18rem;
  color: var(--guide-muted);
  font-size: 0.875rem;
  line-height: 1.45;
}

.dflex-guide-pick-list {
  position: relative;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: guide-step;
}

.dflex-guide-pick-list li {
  counter-increment: guide-step;
  border-block-end: 1px solid var(--guide-line);
}

.dflex-guide-pick-list a {
  position: relative;
  display: grid;
  align-content: center;
  min-block-size: 3.75rem;
  box-sizing: border-box;
  padding: 0.55rem 1.8rem 0.55rem 2.8rem;
  color: var(--guide-ink);
  text-decoration: none;
}

.dflex-guide-pick-list a::before {
  position: absolute;
  inset: 50% auto auto 0.25rem;
  display: grid;
  place-items: center;
  inline-size: 1.75rem;
  block-size: 1.75rem;
  border-radius: 50%;
  background: #e0f0e6;
  color: var(--guide-link);
  content: counter(guide-step);
  font-size: 0.8rem;
  font-weight: 650;
  transform: translateY(-50%);
}

.dflex-guide-pick-list a::after {
  position: absolute;
  inset: 50% 0.65rem auto auto;
  inline-size: 0.46rem;
  block-size: 0.46rem;
  border: solid var(--guide-link);
  border-width: 1.5px 1.5px 0 0;
  content: "";
  transform: translateY(-50%) rotate(45deg);
}

.dflex-guide-pick-list a:hover {
  background: #edf4ed;
  color: var(--guide-link);
}

.dflex-guide-pick-list a:focus-visible {
  outline: 2px solid var(--guide-link);
  outline-offset: -2px;
}

.dflex-guide-pick-list li:first-child {
  margin-block-end: 0.45rem;
  border: 0;
}

.dflex-guide-pick-list li:first-child a {
  min-block-size: 6.8rem;
  padding: 1rem 2.25rem 1.05rem 1.2rem;
  border-radius: 0.8rem;
  background: var(--guide-banner);
  color: var(--guide-white);
}

.dflex-guide-pick-list li:first-child a:hover {
  background: var(--guide-rail);
}

.dflex-guide-pick-list li:first-child a:focus-visible {
  outline-color: var(--guide-mint);
}

.dflex-guide-pick-list li:first-child a::before {
  content: none;
}

.dflex-guide-pick-list li:first-child a::after {
  inset-inline-end: 1.15rem;
  border-color: var(--guide-mint);
}

.dflex-guide-pick-list li:first-child a > span {
  color: var(--guide-rail-text);
}

.dflex-guide-pick-list li:first-child strong {
  font: 700 clamp(1.3rem, 3vw, 1.85rem)/1.18 var(--guide-display);
  text-wrap: balance;
}

.dflex-visually-hidden {
  position: absolute;
  inline-size: 1px;
  block-size: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@media (prefers-reduced-motion: no-preference) {
  .dflex-guide-pick-list {
    animation: dflex-picks-in 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
  }

  .dflex-guide-choice,
  .dflex-docs-system-options label {
    transition: background-color 160ms ease-out, border-color 160ms ease-out, transform 140ms ease-out;
  }

  .dflex-guide-choice:active,
  .dflex-docs-system-options label:active {
    transform: scale(0.985);
  }
}

@keyframes dflex-picks-in {
  from { opacity: 0.35; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

[data-dflex-guide-view="home"] .dflex-guide-menu {
  border-inline-end: 0;
  border-block-start: 1px solid var(--guide-rail-line);
}

[data-dflex-guide-view="home"] .dflex-guide-menu > summary {
  display: block;
  max-inline-size: 74rem;
  margin-inline: auto;
  padding: 1rem var(--guide-gutter) 0.4rem;
  color: var(--guide-mint);
  cursor: pointer;
  font: 700 1.3rem/1.2 var(--guide-display);
}

[data-dflex-guide-view="home"] .dflex-shell-guides {
  max-inline-size: calc(74rem + 2 * var(--guide-gutter));
  max-block-size: none;
  margin-inline: auto;
  padding: 0.75rem var(--guide-gutter) 2rem;
}

[data-dflex-guide-view="home"] .dflex-guide-copy {
  display: none;
}

[data-dflex-guide-view="home"] .dflex-guide-find {
  max-inline-size: 30rem;
}

.dflex-changelog-content .release {
  scroll-margin-block-start: calc(var(--dflex-docs-header-height) + 0.5rem);
}

.dflex-changelog-content .meta {
  display: block;
  margin-block-start: 0.3rem;
  color: var(--guide-muted);
  font: 500 0.9rem/1.5 var(--scalar-font);
  letter-spacing: normal;
}

.dflex-changelog-content .changes {
  max-inline-size: none;
  padding-inline-start: 0;
  list-style: none;
}

.dflex-changelog-content .change {
  padding-block: 0.85rem;
  border-block-end: 1px solid var(--guide-line);
}

.dflex-changelog-content .change > p {
  margin-block: 0.35rem;
}

.dflex-changelog-content .kind,
.dflex-changelog-content .impact {
  color: var(--guide-muted);
  font-size: 0.875rem;
}

.dflex-changelog-content .kind {
  font-weight: 650;
}

.dflex-changelog-content .operation {
  overflow-wrap: anywhere;
}

@media (max-width: 48rem) {
  #dflex-panel-guides {
    flex-direction: column;
  }

  .dflex-guide-menu {
    flex: 0 0 auto;
    border-inline-end: 0;
    border-block-end: 1px solid var(--guide-rail-line);
  }

  .dflex-guide-menu > summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 2.75rem;
    padding-inline: 1.25rem;
    color: var(--guide-mint);
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 650;
  }

  .dflex-guide-menu > summary:focus-visible {
    outline-offset: -3px;
  }

  .dflex-guide-menu > summary::after {
    content: "";
    inline-size: 0.45rem;
    block-size: 0.45rem;
    border: solid currentColor;
    border-width: 0 1px 1px 0;
    transform: rotate(45deg);
  }

  .dflex-guide-menu[open] > summary::after {
    transform: rotate(225deg);
  }

  .dflex-shell-guides {
    max-height: min(55vh, 26rem);
    overflow: auto;
    padding-block-start: 0.65rem;
  }

  .dflex-shell-guides a {
    padding-block: 0.67rem;
  }

  #dflex-panel-guides .dflex-frame {
    height: auto;
  }

  .dflex-guide-list {
    display: none;
  }

  .dflex-guide-intro {
    padding-block: 2rem;
  }

  .dflex-guide-page > .dflex-docs-header .dflex-docs-nav {
    flex-wrap: nowrap;
    white-space: nowrap;
    overflow: auto;
  }

  [data-dflex-docs-mode="full"] .dflex-docs-header,
  .dflex-guide-page > .dflex-docs-header {
    gap: 0.6rem;
    padding-inline: 0.75rem;
  }

  [data-dflex-docs-mode="full"] .dflex-shell .dflex-docs-header {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 0 0.6rem;
    height: auto;
    padding-block-start: 0.6rem;
  }

  [data-dflex-docs-mode="full"] .dflex-docs-tabs {
    grid-column: 1 / -1;
    flex-wrap: wrap;
    gap: 0 0.12rem;
    min-height: 2.55rem;
    align-items: center;
    margin-inline-start: 0;
    scrollbar-width: none;
  }

  [data-dflex-docs-mode="full"] .dflex-docs-brand,
  .dflex-guide-page .dflex-docs-brand,
  [data-dflex-docs-mode="full"] .dflex-docs-version,
  .dflex-guide-page .dflex-docs-version {
    white-space: nowrap;
  }

  [data-dflex-docs-mode="full"] .dflex-docs-tabs a {
    padding: 0.45rem 0.34rem;
    font: 700 0.9rem/1.2 var(--guide-display);
  }

  .dflex-docs-home-intro {
    align-items: start;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.85rem;
  }

  .dflex-docs-home .dflex-guide-intro {
    padding-block: 1.65rem;
  }

  .dflex-docs-home-actions {
    margin-block-start: 0.2rem;
  }

  .dflex-docs-system-options label {
    min-block-size: 4.65rem;
    padding: 0.7rem clamp(0.55rem, 2.5vw, 0.9rem);
  }

  .dflex-guide-choice {
    min-block-size: 3.55rem;
    padding-block: 0.55rem;
  }

  .dflex-guide-paths {
    grid-template-columns: minmax(0, 1fr);
  }

  [data-dflex-guide-view="home"] .dflex-guide-menu > summary {
    min-block-size: 0;
    padding-block-end: 1rem;
  }
}

.dflex-openapi {
  flex: 1 1 auto;
  overflow: auto;
  padding: 16px 24px;
  color: #1d232b;
  line-height: 1.55;
}

.dflex-openapi-preview {
  padding: 12px;
  border-radius: 6px;
  background: #f2f4f6;
  font-family: var(--scalar-font-code);
  font-size: 13px;
  white-space: pre;
  overflow-x: auto;
}

/* Przewodnik w ramce powłoki: bez własnego nagłówka i listy przewodników, które pokazuje powłoka. */
.dflex-embedded .dflex-docs-header,
.dflex-embedded .dflex-guide-list {
  display: none;
}

/* Dokumentacja tylko do odczytu (docs-shell): bez elementów wywołania API, autoryzacji, wyboru i kopiowania adresu serwera.
   Scalar nie ma opcji dla wyboru serwera i bloku autoryzacji we wstępie, odznak autoryzacji operacji, kopiowania adresu
   serwera operacji ani karty przykładu wywołania (po hiddenClients: true zostaje pusta karta). Swagger UI zostawia pusty kontener
   wyboru serwera po wtyczce z swagger.js i odnośnik openapi.json pod tytułem. Prefiks (identyfikator kontenera Scalar, klasa strony
   Swagger UI) podnosi specyficzność ponad style bibliotek, które Scalar wstawia po reference.css. Opis uwierzytelniania zostaje w opisie API z kontraktu. */
#dflex-reference .scalar-reference-intro-server,
#dflex-reference .scalar-reference-intro-auth,
#dflex-reference .scalar-reference-intro-clients,
#dflex-reference .security-requirement-badge,
#dflex-reference .endpoint-copy,
#dflex-reference .request-card,
.dflex-viewer-page .swagger-ui .scheme-container,
.dflex-viewer-page .swagger-ui .info .main > a.link {
  display: none;
}

/* Próbki odpowiedzi ze schematu (klasa dflex-generated-samples, gdy kontrakt nie podaje przykładów): Scalar pokazuje etykietę
   karty przykładowych odpowiedzi z reference.js, Swagger UI dostaje dopisek przy zakładce Example Value. */
.dflex-generated-samples .response-card::before {
  content: attr(aria-label);
  display: block;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
}

.dflex-generated-samples .swagger-ui .model-example .tablinks[data-name="example"]::after {
  content: " (wygenerowano ze schematu)";
}
