:root {
  color: #172641;
  background: #f6f8fc;
  font: 16px/1.65 "Segoe UI", system-ui, sans-serif;
  --accent: #2057bb;
  --navy: #0d2445;
  --muted: #52647e;
  --border: #dfe7f1;
  --surface: #fff;
  --header-height: 4.65rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
a { color: var(--accent); text-underline-offset: 3px; }
button, input { font: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; }
h1, h2, h3, p { margin: 0; }
h2 { margin-bottom: .75rem; font-size: clamp(1.38rem, 3vw, 1.85rem); line-height: 1.22; letter-spacing: -.035em; }
h3 { margin-bottom: .45rem; font-size: 1.1rem; line-height: 1.35; }
p + p { margin-top: .7rem; }
.skip { position: fixed; z-index: 3; transform: translateY(-120%); background: var(--surface); padding: .5rem 1rem; }
.skip:focus { transform: none; }
.topbar { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: .65rem; min-height: var(--header-height); padding: .5rem max(clamp(.8rem, 3.2vw, 3.1rem), calc((100vw - 84rem) / 2)); border-bottom: 1px solid var(--border); background: var(--surface); }
.brand { display: inline-flex; align-items: center; gap: .52rem; color: var(--navy); text-decoration: none; font-size: .95rem; line-height: 1.28; }
.brand-logo { object-fit: contain; flex: none; }
.brand-title small { display: block; margin-top: .12rem; color: var(--muted); font-size: .78rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; min-height: 42px; padding: .43rem .8rem; border: 1px solid var(--border); border-radius: .63rem; background: var(--surface); color: var(--accent); text-decoration: none; font-weight: 700; line-height: 1.3; }
.button:hover { background: #eef4ff; border-color: #9db9e7; }
.primary { background: #f5c865; border-color: #f5c865; color: #202f49; }
.primary:hover { background: #ffd780; border-color: #ffd780; }
.portal { font-size: .89rem; }
.layout { display: grid; grid-template-columns: 13.3rem minmax(0, 1fr); gap: clamp(1.2rem, 3.5vw, 3.3rem); max-width: 84rem; padding: 0 clamp(1rem, 3vw, 2.5rem); margin-inline: auto; }
.sidebar { position: sticky; top: var(--header-height); align-self: start; max-height: calc(100dvh - var(--header-height)); overflow: auto; padding: 1.65rem .85rem 2.35rem 0; }
.desktop-nav { display: grid; gap: .1rem; padding: .65rem; border: 1px solid var(--border); border-radius: 14px; background: white; }
.sidebar .nav-label { padding: .5rem .58rem .2rem; color: var(--muted); font-size: .75rem; font-weight: 780; }
.sidebar .nav-label:not(:first-child) { border-top: 1px solid var(--border); margin-top: .7rem; padding-top: .8rem; }
.sidebar a { display: block; padding: .48rem .58rem; border-radius: .55rem; color: #354d6c; text-decoration: none; font-size: .9rem; font-weight: 650; }
.sidebar a:hover, .sidebar a[aria-current] { color: var(--accent); background: #eaf1fe; }
.mobile-nav { display: none; }
main { max-width: 61rem; min-width: 0; padding: 1.65rem 0 0; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .69fr); align-items: center; gap: 1.2rem; padding: clamp(1.1rem, 3vw, 1.85rem); border-radius: 20px; color: #eef4ff; background: radial-gradient(ellipse at top right,#234e8e,transparent 68%), #0d2548; }
.hero h1 { font-size: clamp(1.9rem, 4vw, 2.85rem); line-height: 1.04; letter-spacing: -.052em; color: white; }
.hero p { max-width: 40ch; margin-top: .65rem; color: #d7e6fd; }
.hero-actions, .downloads { display: flex; flex-wrap: wrap; gap: .52rem; margin-top: .95rem; }
.hero-secondary { color: #f1f6ff; border-color: #bdd4ff4c; background: #d7e7ff10; }
.hero-secondary:hover { color: white; background: #e3efff26; border-color: #a6caff; }
.origin { display: grid; gap: .6rem; min-width: 0; align-self: center; padding: .9rem 1rem; font-size: .9rem; border: 1px solid #a7c7fc42; background: #0a1c38a6; border-radius: 13px; }
.origin-label { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #ccdef9; font-size: .82rem; font-weight: 750; }
.origin code { background: transparent; color: #fff; padding: 0; font-size: .83rem; }
#origin-status { font-size: .77rem; color: #d2e4fe; }
#origin-status:empty, #search-status:empty, #search-results:empty { display: none; }
.search { display: grid; grid-template-columns: minmax(0, 1fr); gap: .3rem; margin: .9rem 0; }
.search label { color: var(--navy); font-size: .84rem; font-weight: 750; }
.search input { width: 100%; max-width: 100%; min-height: 45px; padding: .52rem .78rem; border: 1px solid var(--border); border-radius: .68rem; color: inherit; background: #fff; }
#search-status { color: var(--muted); font-size: .83rem; }
#search-results { padding: .6rem .65rem .65rem 1.65rem; margin: 0; border-radius: 10px; background: white; border: 1px solid var(--border); }
.section { padding: clamp(1rem, 3.2vw, 1.65rem); margin: 0 0 .9rem; border: 1px solid var(--border); background: white; border-radius: 15px; }
[id] { scroll-margin-top: calc(var(--header-height) + .8rem); }
code { border-radius: .3rem; padding: .1em .25em; background: #e9f1fb; color: #204984; font: .9em/1.55 ui-monospace, Consolas, monospace; overflow-wrap: anywhere; }
pre { margin: .83rem 0; padding: .95rem 1rem; border-radius: .65rem; overflow: auto; background: #111f37; color: #e9f2ff; font-size: .9rem; }
pre code { padding: 0; background: none; color: inherit; overflow-wrap: normal; }
.snippet { position: relative; margin: .85rem 0; border-radius: .68rem; background: #111f37; color: #e9f2ff; }
.snippet pre { margin: 0; border-radius: 0 0 .65rem .65rem; }
.snippet-controls { display: flex; align-items: center; justify-content: flex-end; gap: .65rem; padding: .46rem .63rem; border-bottom: 1px solid #334969; color: #d7e7ff; font-size: .78rem; }
.copy { border: 1px solid #62789b; border-radius: .45rem; padding: .2rem .6rem; color: #eff5ff; background: #203556; font-size: .79rem; font-weight: 700; }
.copy:hover { background: #2e4873; }
.copy:focus-visible { outline-color: #fff; }
.steps { list-style: none; padding: 0; margin: .2rem 0 1rem; counter-reset: step; }
.steps li { position: relative; min-height: 2.8rem; padding: .55rem 0 .55rem 2.35rem; }
.steps li + li { border-top: 1px solid var(--border); }
.steps li::before { content: counter(step); counter-increment: step; display: grid; place-items: center; position: absolute; left: 0; top: .6rem; width: 1.9rem; height: 1.9rem; border-radius: 8px; background: #eaf1fd; color: var(--accent); font-size: .84rem; font-weight: 780; }
.section .downloads { margin: .8rem 0; }
.callout { margin: .85rem 0; padding: .85rem 1rem; border: 1px solid #c5d8f4; border-radius: .65rem; border-left: 3px solid var(--accent); background: #f0f5ff; }
.callout p { margin-top: .2rem; }
.table-scroll { margin: .85rem 0; overflow: auto; border: 1px solid var(--border); border-radius: .65rem; }
table { width: 100%; border-collapse: collapse; background: var(--surface); font-size: .9rem; }
th, td { padding: .58rem .7rem; text-align: left; vertical-align: top; }
th { background: #eef3fb; color: #334963; }
td { border-top: 1px solid var(--border); }
#skenario-test th, #skenario-test td { padding-inline: .5rem; }
#skenario-test code { white-space: nowrap; }
#skenario-test p code { white-space: normal; }
.method-pill { display: inline-flex; align-items: center; justify-content: center; min-width: 3.5rem; padding: .16rem .38rem; border-radius: 6px; color: #174a87; background: #e7f0fd; font-size: .69rem; font-weight: 800; letter-spacing: .035em; }
.method-pill.post { color: #175748; background: #e4f3ed; }
.method-pill.patch { color: #73500c; background: #fff1d4; }
.method-pill.delete { color: #8d2d3d; background: #fae9ee; }
.modes { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; margin-top: .65rem; }
.modes div { padding: .85rem; border: 1px solid var(--border); background: #f8faff; border-radius: .65rem; }
.modes dt { font-weight: 770; color: var(--accent); }
.modes dd { margin: .25rem 0 0; }
.operation { border: 1px solid var(--border); margin: .48rem 0; border-radius: .7rem; background: var(--surface); }
.operation summary { padding: .67rem .8rem; font-weight: 680; cursor: pointer; overflow-wrap: anywhere; }
.operation summary .method-pill { margin: 0 .42rem; }
.operation > div { padding: .75rem .82rem; border-top: 1px solid var(--border); }
.section p + .operation, .section #operation-detail { margin-top: .85rem; }
.section > :last-child { margin-bottom: 0; }
.section .operation .downloads:first-child { margin-top: 0; }
.operation h3 { margin-top: .7rem; font-size: 1rem; }
.parameter-table { margin-bottom: .7rem; }
.parameter-table th[scope="row"] { background: transparent; border-top: 1px solid var(--border); }
.parameter-table th[scope="row"] code, .parameter-table td:nth-child(2) { white-space: nowrap; }
.parameter-required { color: #174a87; font-weight: 750; }
.operation ul { margin: .25rem 0 .6rem; padding-left: 1.25rem; }
footer { display: flex; flex-wrap: wrap; gap: .5rem 1rem; padding: 1rem 0 2rem; font-size: .87rem; }
@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; gap: .8rem; }
  .hero p { max-width: 50ch; }
}
@media (max-width: 720px) {
  :root { --header-height: 3.9rem; }
  .brand-logo { width: 42px; height: 42px; }
  .brand { font-size: .86rem; gap: .22rem; }
  .brand-title small { font-size: .71rem; }
  .portal { padding-inline: .56rem; font-size: .78rem; }
  .layout { display: block; }
  .sidebar { position: static; max-height: none; padding: .73rem 0 0; }
  .desktop-nav { display: none; }
  .mobile-nav { display: block; border: 1px solid var(--border); border-radius: .62rem; background: var(--surface); }
  .mobile-nav summary { padding: .53rem .7rem; cursor: pointer; font-weight: 700; }
  .mobile-nav nav { display: grid; grid-template-columns: 1fr 1fr; padding: 0 .4rem .45rem; }
  main { padding-top: .73rem; }
  .search { margin-block: .72rem; }
  .hero { border-radius: 16px; }
  .modes { grid-template-columns: 1fr; }
}
@media (max-width: 360px) {
}