/* Referința API PosFix — aspect de documentație Postman: navigare stânga, explicații la mijloc,
   coloana întunecată cu exemple în dreapta. Fără framework; culorile stau în variabilele de mai jos. */

:root {
  --bg: #ffffff;
  --bg-soft: #f7f8fa;
  --bg-side: #fbfbfc;
  --line: #e5e7eb;
  --line-soft: #eef0f3;
  --text: #16191f;
  --text-2: #3f4652;
  --text-3: #6b7280;
  --brand: #c5d82d;
  --brand-ink: #5b6512;
  --brand-soft: #f3f7d6;
  --postman: #ff6c37;
  --postman-ink: #e0521f;

  --code-bg: #15171c;
  --code-panel: #1d2027;
  --code-panel-2: #23272f;
  --code-line: #2c313b;
  --code-text: #e3e6ec;
  --code-muted: #8a93a6;

  --m-get: #0a7a41;    --m-get-bg: #e7f5ed;    --m-get-dark: #5fd392;
  --m-post: #a05600;   --m-post-bg: #fff2df;   --m-post-dark: #ffb454;
  --m-put: #1557b0;    --m-put-bg: #e8f0fc;    --m-put-dark: #74a8ff;
  --m-patch: #6a3db0;  --m-patch-bg: #f1ebfb;  --m-patch-dark: #c39bff;
  --m-delete: #b3261e; --m-delete-bg: #fdecea; --m-delete-dark: #ff8a80;
  --m-aidl: #0e6f73;   --m-aidl-bg: #e3f4f4;   --m-aidl-dark: #5fd6d6;

  --header-h: 60px;
  --sidebar-w: 284px;
  --code-w: clamp(380px, 40%, 620px);
  --sans: "Inter", -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
html { scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 14px/1.6 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
a { color: var(--brand-ink); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; color: inherit; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
:focus-visible { outline: 2px solid #8b9a1b; outline-offset: 2px; border-radius: 4px; }

/* ─── Bara de sus ─────────────────────────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 30; height: var(--header-h);
  display: flex; align-items: center; gap: 14px; padding: 0 18px;
  background: rgba(255, 255, 255, .96); backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none !important; flex: none; }
.brand img { display: block; height: 24px; width: auto; }
.brand-sep { width: 1px; height: 22px; background: var(--line); }
.brand-title { font-weight: 600; font-size: 15px; letter-spacing: -.01em; white-space: nowrap; }
.topbar-spacer { flex: 1; }

.col-switch { display: flex; gap: 2px; padding: 3px; margin-left: 10px; background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; }
.col-switch button {
  display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; cursor: pointer;
  padding: 6px 12px; border-radius: 7px; font-size: 13px; font-weight: 500; color: var(--text-2); white-space: nowrap;
}
.col-switch button:hover { color: var(--text); }
.col-switch button[aria-selected="true"] { background: #fff; color: var(--text); font-weight: 600; box-shadow: 0 1px 2px rgba(16, 24, 40, .08), 0 0 0 1px var(--line); }
.col-switch .count { font: 500 11px/1 var(--mono); color: var(--text-3); background: #eceef2; padding: 3px 6px; border-radius: 20px; }
.col-switch button[aria-selected="true"] .count { background: var(--brand-soft); color: var(--brand-ink); }
.col-switch .count:empty { display: none; }

.btn {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 8px;
  font-size: 13px; font-weight: 600; white-space: nowrap; text-decoration: none !important; cursor: pointer; border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-postman { background: var(--postman); color: #fff; box-shadow: 0 1px 2px rgba(224, 82, 31, .35); }
.btn-postman:hover { background: var(--postman-ink); }
.btn-ghost { border-color: var(--line); color: var(--text-2); background: #fff; }
.btn-ghost:hover { background: var(--bg-soft); color: var(--text); }

.lang { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.lang button { border: 0; background: #fff; padding: 0 9px; height: 32px; font-size: 12px; font-weight: 600; color: var(--text-3); cursor: pointer; }
.lang button + button { border-left: 1px solid var(--line); }
.lang button[aria-pressed="true"] { background: var(--text); color: #fff; }

.icon-btn { display: none; border: 0; background: transparent; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; align-items: center; justify-content: center; }
.icon-btn:hover { background: var(--bg-soft); }

/* ─── Grila ───────────────────────────────────────────────────────────────── */
.layout { display: grid; grid-template-columns: var(--sidebar-w) minmax(0, 1fr); }

.sidebar {
  position: sticky; top: var(--header-h); height: calc(100vh - var(--header-h)); overflow-y: auto; overscroll-behavior: contain;
  background: var(--bg-side); border-right: 1px solid var(--line); padding: 0 10px 48px;
  scrollbar-width: thin; scrollbar-color: #d6d9df transparent;
}
.search { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; gap: 8px; margin: 0 -10px 6px; padding: 14px 16px 10px; background: var(--bg-side); }
.search svg { position: absolute; left: 27px; width: 16px; height: 16px; color: var(--text-3); pointer-events: none; }
.search input {
  width: 100%; height: 36px; padding: 0 34px 0 34px; border: 1px solid var(--line); border-radius: 9px; background: #fff;
  font: 13px var(--sans); color: var(--text); outline: none; transition: border-color .15s, box-shadow .15s;
}
.search input:focus { border-color: #b6c23a; box-shadow: 0 0 0 3px rgba(197, 216, 45, .28); }
.search input::-webkit-search-cancel-button { display: none; }
.search kbd { position: absolute; right: 26px; font: 500 11px/1 var(--mono); color: var(--text-3); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; padding: 3px 6px; background: #fff; }

.nav-group { margin-top: 6px; }
.nav-folder {
  display: flex; align-items: center; gap: 7px; width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left;
  padding: 7px 8px; border-radius: 7px; font-size: 12.5px; font-weight: 600; color: var(--text);
}
.nav-folder:hover { background: #f0f2f5; }
.nav-folder .chev { width: 14px; height: 14px; color: var(--text-3); transition: transform .15s; }
.nav-folder[aria-expanded="false"] .chev { transform: rotate(-90deg); }
.nav-folder .num { font: 600 10.5px/1 var(--mono); color: var(--text-3); min-width: 14px; }
.nav-folder .label { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-folder .cnt { font: 500 11px/1 var(--mono); color: var(--text-3); }
.nav-folder.active { background: var(--brand-soft); }
.nav-folder.active .label { color: var(--brand-ink); }
.nav-items { padding: 2px 0 4px; }
.nav-folder[aria-expanded="false"] + .nav-items { display: none; }

.nav-link {
  display: flex; align-items: baseline; gap: 8px; padding: 5px 8px 5px 12px; margin-left: 13px; border-left: 1px solid var(--line);
  font-size: 13px; line-height: 1.4; color: var(--text-2); text-decoration: none !important; border-radius: 0 7px 7px 0;
}
.nav-link:hover { color: var(--text); background: #f0f2f5; }
.nav-link.active { color: var(--text); background: var(--brand-soft); border-left: 2px solid #9aab22; padding-left: 11px; font-weight: 500; }
.nav-link .m { flex: none; width: 42px; font: 600 10.5px/1.4 var(--mono); letter-spacing: .02em; }
.nav-link .t { min-width: 0; }
.nav-intro .nav-link { padding-left: 12px; }
.nav-empty { color: var(--text-3); font-size: 13px; padding: 8px 12px; }

.m-GET { color: var(--m-get); } .m-POST { color: var(--m-post); } .m-PUT { color: var(--m-put); }
.m-PATCH { color: var(--m-patch); } .m-DELETE { color: var(--m-delete); } .m-AIDL { color: var(--m-aidl); }

/* ─── Conținut: rânduri cu două coloane peste fâșia întunecată ───────────────── */
.content { position: relative; min-width: 0; outline: none; }
.content::after { content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: var(--code-w); background: var(--code-bg); z-index: 0; }
.row { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) var(--code-w); }
.row > .doc { padding: 44px 52px 48px; border-bottom: 1px solid var(--line-soft); min-width: 0; }
.row > .code { padding: 44px 26px 48px; border-bottom: 1px solid var(--code-line); min-width: 0; }
.row > .code > .sticky { position: sticky; top: calc(var(--header-h) + 18px); display: grid; gap: 16px; }

.loading, .failed { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; padding: 64px 52px; color: var(--text-3); max-width: calc(100% - var(--code-w)); }
.failed { display: block; color: var(--text-2); }
.failed h2 { margin: 0 0 8px; font-size: 20px; color: var(--text); }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line); border-top-color: #9aab22; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Introducerea colecției */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--brand-ink); background: var(--brand-soft); border-radius: 20px; padding: 4px 10px; }
.intro h1 { margin: 14px 0 10px; font-size: 32px; line-height: 1.2; letter-spacing: -.025em; font-weight: 700; }
.stats { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0 0 26px; color: var(--text-3); font-size: 13px; }
.stats b { color: var(--text); font-weight: 600; }
.lang-note { margin: -10px 0 24px; padding: 9px 12px; border-radius: 8px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2); font-size: 12.5px; }

/* Grupul (folderul) */
.folder .doc { padding-top: 56px; padding-bottom: 36px; background: linear-gradient(180deg, #fafbfc, #fff); }
.folder-kicker { font: 600 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.folder h2 { margin: 8px 0 6px; font-size: 26px; line-height: 1.25; letter-spacing: -.02em; }
.folder .lead { margin: 0; color: var(--text-2); font-size: 15px; max-width: 70ch; }
.folder .lead p { margin: 0 0 6px; }
.folder-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.folder-list a { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); background: #fff; padding: 4px 10px; border-radius: 20px; text-decoration: none !important; }
.folder-list a:hover { border-color: #c9ced6; color: var(--text); }
.folder-list .m { font: 600 10px/1 var(--mono); }

/* Cererea */
.req-title { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; font-size: 22px; line-height: 1.3; letter-spacing: -.015em; font-weight: 600; }
.req-title .anchor { opacity: 0; color: var(--text-3); font-weight: 500; text-decoration: none !important; transition: opacity .15s; }
.req-title:hover .anchor { opacity: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; padding: 3px 9px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text-2); }
.chip code { font: 500 11.5px var(--mono); color: var(--text); background: none; padding: 0; }
.chip.noauth { background: #fff7e6; border-color: #f6dcae; color: #8a5a00; }

.urlbar { display: flex; align-items: stretch; border: 1px solid var(--line); border-radius: 10px; background: #fff; overflow: hidden; margin-bottom: 20px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.urlbar .mpill { display: flex; align-items: center; padding: 0 14px; font: 700 12.5px/1 var(--mono); letter-spacing: .03em; border-right: 1px solid var(--line); }
.mpill.m-GET { background: var(--m-get-bg); } .mpill.m-POST { background: var(--m-post-bg); } .mpill.m-PUT { background: var(--m-put-bg); }
.mpill.m-PATCH { background: var(--m-patch-bg); } .mpill.m-DELETE { background: var(--m-delete-bg); } .mpill.m-AIDL { background: var(--m-aidl-bg); }
.urlbar .url { flex: 1; min-width: 0; padding: 10px 12px; font: 13px/1.5 var(--mono); color: var(--text); overflow-wrap: anywhere; }
.url .var { color: #0e6f73; background: #e3f4f4; border-radius: 4px; padding: 1px 4px; }
.url .pvar { color: #9b3d00; background: #fdeee2; border-radius: 4px; padding: 1px 4px; }
.url .q { color: var(--text-3); }
.urlbar .copy-btn { border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--text-3); padding: 0 12px; cursor: pointer; }
.urlbar .copy-btn:hover { color: var(--text); background: var(--bg-soft); }

/* Blocuri de tip Postman: autorizare, antete, parametri */
.blk { margin: 0 0 22px; }
.md + .blk, .urlbar + .blk { margin-top: 24px; }
.doc .tk-var { color: #0e6f73; background: #e3f4f4; border-radius: 4px; padding: 0 3px; }
.blk-h { display: flex; align-items: baseline; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font: 600 11.5px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); }
.blk-h .sub { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-3); font-size: 12.5px; }
.kv { display: grid; grid-template-columns: minmax(120px, 30%) minmax(0, 1fr); gap: 4px 18px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 13px; }
.kv .k { font: 600 12.5px/1.6 var(--mono); color: var(--text); word-break: break-word; }
.kv .k .opt { display: block; font: 500 11px var(--sans); color: var(--text-3); }
.kv .v { min-width: 0; }
.kv .v code { font: 12.5px var(--mono); color: var(--text); overflow-wrap: anywhere; }
.kv .d { color: var(--text-3); font-size: 12.5px; margin-top: 2px; }

/* Markdown din colecție */
.md { color: var(--text-2); font-size: 14.5px; }
.md > :first-child { margin-top: 0; }
.md p { margin: 0 0 14px; max-width: 78ch; }
.md strong { color: var(--text); font-weight: 600; }
.md h2 { margin: 42px 0 12px; padding-top: 6px; font-size: 21px; line-height: 1.3; letter-spacing: -.015em; color: var(--text); font-weight: 600; }
.md h3, .md h4 { margin: 30px 0 10px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .07em; text-transform: uppercase; color: var(--text-2); padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.md h3 code, .md h4 code { text-transform: none; letter-spacing: 0; }
.md ul, .md ol { margin: 0 0 16px; padding-left: 20px; max-width: 80ch; }
.md li { margin: 5px 0; }
.md li::marker { color: #a6ad7a; }
.md code { font: 500 .86em/1.4 var(--mono); color: #1f2937; background: #f1f3f6; border: 1px solid #e8eaee; padding: .5px 5px; border-radius: 5px; }
.md a { text-decoration: underline; text-underline-offset: 2px; }

.tbl-wrap { overflow-x: auto; margin: 0 0 18px; border: 1px solid var(--line); border-radius: 10px; }
.md table { width: 100%; border-collapse: collapse; font-size: 13px; line-height: 1.5; }
.md th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-2); background: var(--bg-soft); padding: 8px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.md td { padding: 8px 12px; border-top: 1px solid var(--line-soft); vertical-align: top; color: var(--text-2); }
.md tr:first-child td { border-top: 0; }
.md td:first-child code { color: #0f172a; font-weight: 600; background: transparent; border-color: transparent; padding: 0; white-space: nowrap; }
.md td code { white-space: normal; }
.md .errcode code { color: #9f1d1d; background: #fdf1f1; border-color: #f7dede; }
.http { display: inline-block; min-width: 38px; text-align: center; font: 600 11.5px/1.5 var(--mono); padding: 1px 6px; border-radius: 6px; }
.http-2 { color: #07703b; background: #e4f5eb; } .http-3 { color: #1557b0; background: #e8f0fc; }
.http-4 { color: #95500a; background: #fff1dc; } .http-5 { color: #a4231c; background: #fdeaea; }
.http-x { color: var(--text-2); background: #eef0f3; }
.req-yes { font-weight: 600; color: var(--text); }
.req-yes::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e0452f; margin-right: 6px; vertical-align: 1px; }
.req-no { color: var(--text-3); }
.plat { display: inline-block; font: 600 10.5px/1.5 var(--sans); letter-spacing: .02em; padding: 0 6px; border-radius: 5px; margin-right: 3px; vertical-align: 1px; }
.plat-win { color: #0b57b3; background: #e7f0fd; }
.plat-and { color: #0a7a41; background: #e5f5ec; }

pre.light { margin: 0 0 18px; padding: 14px 16px; background: #f7f8fa; border: 1px solid var(--line); border-radius: 10px; overflow: auto; font: 12.5px/1.6 var(--mono); color: #24292f; }
pre.light .tk-key { color: #0550ae; } pre.light .tk-str { color: #116329; } pre.light .tk-num { color: #953800; }
pre.light .tk-lit { color: #8250df; } pre.light .tk-var { color: #0e6f73; background: #e3f4f4; border-radius: 3px; }

/* ─── Coloana întunecată: exemple ───────────────────────────────────────────── */
.panel { background: var(--code-panel); border: 1px solid var(--code-line); border-radius: 12px; overflow: hidden; color: var(--code-text); box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.panel-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 16px; background: var(--code-panel-2); border-bottom: 1px solid var(--code-line); }
.panel-h .ttl { font-size: 12.5px; font-weight: 600; color: #f3f4f7; white-space: nowrap; }
.panel-h .grow { flex: 1; }
.snip-tabs { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.snip-tabs button { border: 0; background: transparent; color: var(--code-muted); font: 500 12px/1 var(--sans); padding: 6px 8px; border-radius: 6px; cursor: pointer; white-space: nowrap; }
.snip-tabs button:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.snip-tabs button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .1); }
.pcopy { border: 0; background: transparent; color: var(--code-muted); cursor: pointer; padding: 5px; border-radius: 6px; display: inline-flex; }
.pcopy:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.pcopy svg { width: 16px; height: 16px; }
.panel pre { margin: 0; padding: 14px 16px 16px; overflow: auto; max-height: 520px; font: 12.5px/1.65 var(--mono); color: var(--code-text); tab-size: 2; white-space: pre-wrap; overflow-wrap: anywhere; scrollbar-width: thin; scrollbar-color: #3a404c transparent; }
.panel pre.tall { max-height: 640px; }
.tk-key { color: #82aaff; } .tk-str { color: #c3e88d; } .tk-num { color: #f78c6c; } .tk-lit { color: #c792ea; }
.tk-kw { color: #c792ea; } .tk-com { color: #6b7394; font-style: italic; } .tk-fn { color: #82aaff; } .tk-type { color: #ffcb6b; }
.tk-var { color: #ffcb6b; background: rgba(255, 203, 107, .12); border-radius: 3px; }
.tk-flag { color: #89ddff; }

.ex-bar { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 12px 0 16px; }
.ex-bar button { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--code-line); background: transparent; color: var(--code-muted); border-radius: 8px; padding: 4px 9px 4px 5px; font-size: 12px; cursor: pointer; max-width: 100%; }
.ex-bar button:hover { color: #fff; border-color: #414856; }
.ex-bar button[aria-pressed="true"] { color: #fff; background: rgba(255, 255, 255, .07); border-color: #4a5160; }
.ex-bar .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 150px; }
.count-note { font: 600 11px/1 var(--mono); color: var(--code-muted); background: rgba(255, 255, 255, .07); padding: 3px 7px; border-radius: 20px; }
.sc { font: 600 11px/1.5 var(--mono); padding: 0 6px; border-radius: 5px; }
.sc-2 { color: #5fd392; background: rgba(95, 211, 146, .12); } .sc-3 { color: #74a8ff; background: rgba(116, 168, 255, .12); }
.sc-4 { color: #ffb454; background: rgba(255, 180, 84, .12); } .sc-5 { color: #ff8a80; background: rgba(255, 138, 128, .13); }
.ex-sub { display: flex; align-items: center; gap: 12px; padding: 10px 16px 0; font-size: 12px; color: var(--code-muted); }
.ex-sub button { border: 0; background: transparent; color: var(--code-muted); padding: 0 0 6px; cursor: pointer; font-size: 12px; font-weight: 500; border-bottom: 2px solid transparent; }
.ex-sub button[aria-pressed="true"] { color: #fff; border-bottom-color: var(--brand); }
.ex-sub .st { margin-left: auto; padding-bottom: 6px; }
.ex-empty { padding: 16px; color: var(--code-muted); font-size: 12.5px; }
.ex-hdrs { padding: 12px 16px 16px; font: 12.5px/1.7 var(--mono); }
.ex-hdrs div { display: flex; gap: 10px; } .ex-hdrs .hk { color: #82aaff; min-width: 40%; } .ex-hdrs .hv { color: var(--code-text); word-break: break-all; }

/* Cardurile de lângă introducere */
.card-h { font: 600 11px/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--code-muted); padding: 14px 16px 0; }
.card-b { padding: 10px 16px 16px; font-size: 13px; color: var(--code-text); }
.card-b p { margin: 0 0 10px; color: #c4c9d4; }
.card-b code { font: 12.5px var(--mono); color: #ffcb6b; }
.auth-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: 12.5px; }
.auth-grid dt { color: var(--code-muted); } .auth-grid dd { margin: 0; font-family: var(--mono); color: #fff; word-break: break-all; }
.vars { display: grid; gap: 10px; }
.var-row label { display: flex; justify-content: space-between; gap: 8px; font: 600 12px var(--mono); color: #fff; margin-bottom: 4px; }
.var-row label span { font: 400 11.5px var(--sans); color: var(--code-muted); }
.var-row input { width: 100%; height: 32px; padding: 0 10px; border-radius: 7px; border: 1px solid var(--code-line); background: #121419; color: #fff; font: 12.5px var(--mono); outline: none; }
.var-row input:focus { border-color: #8b9a1b; box-shadow: 0 0 0 3px rgba(197, 216, 45, .18); }
.var-row .hint, .var-computed .hint { font-size: 11.5px; color: var(--code-muted); margin-top: 4px; line-height: 1.45; }
.var-computed { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--code-line); font: 12px var(--mono); color: #c4c9d4; }
.var-computed code { color: #fff; font-weight: 600; font-size: 12px; }
.var-computed .hint { flex-basis: 100%; font-family: var(--sans); margin-top: 0; }
.steps { margin: 0; padding-left: 18px; color: #c4c9d4; font-size: 13px; }
.steps li { margin: 6px 0; } .steps b { color: #fff; font-weight: 600; }
.card-b .btn-postman { margin-top: 12px; }

/* „Încearcă": trimiterea cererii din pagină */
.urlbar .try-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-left: 1px solid var(--line); background: var(--brand); color: #1d2206; padding: 0 14px; font-size: 12.5px; font-weight: 700; cursor: pointer; }
.urlbar .try-btn:hover { background: #b6c826; }
.urlbar .try-btn[aria-expanded="true"] { background: #1d2206; color: var(--brand); }
.urlbar .try-btn svg { width: 13px; height: 13px; fill: currentColor; stroke: none; }
.panel.try { border-color: #4b5320; box-shadow: 0 0 0 1px rgba(197, 216, 45, .25), 0 10px 30px rgba(0, 0, 0, .25); }
.panel.try .panel-h { background: #262a1a; }
.panel-h .mini { font: 700 10.5px/1 var(--mono); padding: 3px 6px; border-radius: 5px; background: rgba(255, 255, 255, .08); }
.panel-h .mini.m-GET { color: var(--m-get-dark); } .panel-h .mini.m-POST { color: var(--m-post-dark); } .panel-h .mini.m-PUT { color: var(--m-put-dark); }
.panel-h .mini.m-PATCH { color: var(--m-patch-dark); } .panel-h .mini.m-DELETE { color: var(--m-delete-dark); } .panel-h .mini.m-AIDL { color: var(--m-aidl-dark); }
.try-b { padding: 12px 16px 16px; display: grid; gap: 12px; }
.try-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.try-f { display: grid; gap: 4px; font: 600 11.5px var(--mono); color: #fff; }
.try-f span em { font: 400 11px var(--sans); color: var(--code-muted); font-style: normal; }
.try-f:first-child { grid-column: 1 / -1; }
.try-f input, .try-f textarea { width: 100%; border-radius: 7px; border: 1px solid var(--code-line); background: #121419; color: #fff; font: 12.5px/1.55 var(--mono); outline: none; }
.try-f input { height: 32px; padding: 0 10px; }
.try-f textarea { padding: 8px 10px; resize: vertical; min-height: 90px; }
.try-f input:focus, .try-f textarea:focus { border-color: #8b9a1b; box-shadow: 0 0 0 3px rgba(197, 216, 45, .18); }
.try-bodyf { grid-column: 1 / -1; }
.try-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.try-send { border: 0; border-radius: 8px; padding: 8px 16px; background: var(--brand); color: #1d2206; font-weight: 700; font-size: 13px; cursor: pointer; }
.try-send:hover { background: #b6c826; }
.try-send.armed { background: #e0452f; color: #fff; }
.try-send:disabled { background: #3a3f4a; color: #8a93a6; cursor: not-allowed; }
.try-note { flex: 1; min-width: 180px; font-size: 12px; color: var(--code-muted); line-height: 1.45; }
.try-res { border: 1px solid var(--code-line); border-radius: 9px; overflow: hidden; background: #15171c; }
.try-res.err { padding: 10px 12px; color: #ffb4ab; font-size: 12.5px; border-color: #5a2a26; background: #231716; }
.try-res.muted { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--code-muted); font-size: 12.5px; }
.try-st { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-bottom: 1px solid var(--code-line); font-size: 12px; color: var(--code-muted); }
.try-st .grow { flex: 1; } .try-st .ms { font-family: var(--mono); }
.try-res pre { max-height: 360px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; background: #111318; color: #fff; font-size: 13px; padding: 9px 14px; border-radius: 9px; box-shadow: 0 8px 30px rgba(0, 0, 0, .25); }

/* ─── Ecrane mai înguste ────────────────────────────────────────────────────── */
@media (max-width: 1320px) {
  .brand-title { display: none; }
  .brand-sep { display: none; }
}
@media (max-width: 1180px) {
  .content::after { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); }
  .row > .code { padding: 0 52px 44px; border-bottom: 1px solid var(--line-soft); }
  .row > .doc { border-bottom: 0; padding-bottom: 24px; }
  .row.folder > .doc { border-bottom: 1px solid var(--line-soft); padding-bottom: 36px; }
  .row.folder > .code { display: none; }
  .row > .code > .sticky { position: static; }
  .loading, .failed { max-width: none; }
}
@media (max-width: 960px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .icon-btn { display: inline-flex; }
  .sidebar {
    position: fixed; z-index: 40; top: var(--header-h); left: 0; bottom: 0; height: auto; width: min(88vw, 330px);
    transform: translateX(-102%); transition: transform .22s ease, box-shadow .22s ease;
  }
  body.nav-open .sidebar { transform: none; box-shadow: 12px 0 40px rgba(16, 24, 40, .18); }
  .scrim { position: fixed; inset: var(--header-h) 0 0 0; z-index: 35; background: rgba(15, 18, 25, .45); }
  .col-switch { margin-left: 0; }
  .col-switch .count { display: none; }
  .btn-postman span { display: none; }
  .btn-postman { padding: 0 10px; }
}
@media (max-width: 640px) {
  .try-grid { grid-template-columns: minmax(0, 1fr); }
  .urlbar .try-btn span { display: none; }
  :root { --header-h: 108px; }
  .topbar { flex-wrap: wrap; height: auto; min-height: var(--header-h); padding: 10px 14px; gap: 10px; row-gap: 10px; align-content: center; }
  .col-switch { order: 5; width: 100%; }
  .col-switch button { flex: 1; justify-content: center; padding: 7px 6px; font-size: 12.5px; }
  .row > .doc { padding: 28px 18px 18px; }
  .row > .code { padding: 0 18px 30px; }
  .intro h1 { font-size: 26px; }
  .req-title { font-size: 19px; }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .md { font-size: 14px; }
}
