/* Akçe docs — a three-column developer documentation site, light and dark. */
:root, [data-theme="light"] {
  --bg: #FCFCFA;
  --bg-2: #F6F6F2;
  --bg-3: #EFEFEA;
  --bar: rgb(252 252 250 / 0.86);
  --rule: #E8E7E1;
  --rule-2: #DCDBD3;
  --ink: #16181D;
  --ink-2: #3A3E47;
  --muted: #6A707C;
  --faint: #9A9FA8;
  --accent: #0B8A6B;
  --accent-ink: #076A52;
  --accent-tint: #E5F4EE;
  --accent-line: #BFE3D5;
  --inline-bg: #F0F0EA;
  --inline-ink: #8A2F5B;
  --code: #0E1116;
  --code-2: #151A21;
  --code-rule: #222831;
  --note-bg: #EAF6F1; --note-line: #C9E9DC; --note-ink: #0B8A6B;
  --warn-bg: #FFF6E5; --warn-line: #F2DBAA; --warn-ink: #A86A07;
  --tip-bg: #EFF1FE; --tip-line: #D6DBFA; --tip-ink: #4652C8;
  --shadow: 0 1px 2px rgb(16 20 30 / 0.04), 0 8px 24px -12px rgb(16 20 30 / 0.12);
  color-scheme: light;
}
[data-theme="dark"] {
  --bg: #0B0D10;
  --bg-2: #0F1216;
  --bg-3: #161A20;
  --bar: rgb(11 13 16 / 0.82);
  --rule: #1E232A;
  --rule-2: #2A3039;
  --ink: #E8EAEE;
  --ink-2: #C3C8D1;
  --muted: #8D95A3;
  --faint: #5F6774;
  --accent: #3DD9A8;
  --accent-ink: #5BE6BA;
  --accent-tint: rgb(61 217 168 / 0.1);
  --accent-line: rgb(61 217 168 / 0.3);
  --inline-bg: #171B22;
  --inline-ink: #F29BC3;
  --code: #0F1217;
  --code-2: #13171D;
  --code-rule: #232933;
  --note-bg: rgb(61 217 168 / 0.07); --note-line: rgb(61 217 168 / 0.25); --note-ink: #3DD9A8;
  --warn-bg: rgb(245 176 66 / 0.07); --warn-line: rgb(245 176 66 / 0.28); --warn-ink: #F2B652;
  --tip-bg: rgb(129 140 248 / 0.08); --tip-line: rgb(129 140 248 / 0.3); --tip-ink: #A5B0FF;
  --shadow: 0 1px 2px rgb(0 0 0 / 0.3), 0 12px 30px -14px rgb(0 0 0 / 0.6);
  color-scheme: dark;
}
.theme-anim, .theme-anim *, .theme-anim *::before, .theme-anim *::after { transition: background-color .5s ease, color .5s ease, border-color .5s ease, box-shadow .5s ease, fill .5s ease !important; }

* { box-sizing: border-box; }
html { background: var(--bg); -webkit-font-smoothing: antialiased; scroll-padding-top: 84px; }
body { margin: 0; font: 400 15.5px/1.7 var(--kit-sans); color: var(--ink-2); background: var(--bg); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
kbd { font: 500 11px/1 var(--kit-mono); padding: 3px 5px; border-radius: 5px; color: var(--muted); background: var(--bg); box-shadow: 0 0 0 1px var(--rule-2) inset; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
code { font: 500 0.86em/1 var(--kit-mono); padding: 2px 5px; border-radius: 5px; background: var(--inline-bg); color: var(--inline-ink); box-shadow: 0 0 0 1px var(--rule) inset; }

/* ---------------- top bar ---------------- */
.bar { position: fixed; inset: 0 0 auto; z-index: 30; height: 60px; display: grid; grid-template-columns: 248px 1fr auto; align-items: center; background: var(--bar); backdrop-filter: blur(14px) saturate(1.3); border-bottom: 1px solid var(--rule); }
.bar__brand { display: flex; align-items: center; gap: 10px; padding-left: 20px; }
.logo { display: inline-flex; align-items: center; gap: 9px; }
.logo svg { width: 28px; height: 28px; filter: drop-shadow(0 1px 1px rgb(0 0 0 / .15)); }
.logo__word { font: 700 19px/1 var(--kit-grotesk); letter-spacing: -0.03em; color: var(--ink); }
.logo__docs { font: 500 13px/1 var(--kit-sans); color: var(--muted); padding-left: 9px; border-left: 1px solid var(--rule-2); }
.ver { position: relative; margin-left: 8px; }
.ver__btn { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 7px 0 9px; border-radius: 7px; font: 500 12px/1 var(--kit-mono); color: var(--ink-2); background: var(--bg-3); box-shadow: 0 0 0 1px var(--rule) inset; transition: box-shadow .2s; }
.ver__btn:hover { box-shadow: 0 0 0 1px var(--rule-2) inset; }
.ver__btn svg { width: 12px; height: 12px; }
.ver__menu { position: absolute; top: 34px; left: 0; width: 230px; padding: 6px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule) inset, var(--shadow); opacity: 0; transform: translateY(-6px); pointer-events: none; transition: opacity .2s, transform .25s; }
.ver.open .ver__menu { opacity: 1; transform: none; pointer-events: auto; }
.ver__menu li button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 13.5px; color: var(--ink-2); text-align: left; }
.ver__menu li button:hover { background: var(--bg-3); }
.ver__menu b { font: 600 13px/1 var(--kit-mono); color: var(--ink); }
.ver__menu em { font-style: normal; font-size: 12px; color: var(--muted); }
.ver__menu svg { margin-left: auto; width: 14px; height: 14px; color: var(--accent); opacity: 0; }
.ver__menu [aria-selected="true"] svg { opacity: 1; }
.bar__tabs { display: flex; gap: 4px; padding-left: 40px; height: 100%; }
.bar__tabs a { position: relative; display: inline-flex; align-items: center; padding: 0 12px; font: 500 14px/1 var(--kit-sans); color: var(--muted); transition: color .2s; }
.bar__tabs a:hover { color: var(--ink); }
.bar__tabs a.on { color: var(--ink); }
.bar__tabs a.on::after { content: ''; position: absolute; left: 12px; right: 12px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); }
.bar__right { display: flex; align-items: center; gap: 10px; padding-right: 20px; }
.search { width: 300px; height: 36px; display: flex; align-items: center; gap: 9px; padding: 0 8px 0 12px; border-radius: 10px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--faint); font-size: 14px; transition: box-shadow .2s, background-color .2s; }
.search:hover { box-shadow: 0 0 0 1px var(--rule-2) inset; background: var(--bg); }
.search svg { width: 15px; height: 15px; color: var(--muted); }
.search kbd { margin-left: auto; }
.icon-btn { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--ink-2); box-shadow: 0 0 0 1px var(--rule) inset; transition: background-color .2s; }
.icon-btn:hover { background: var(--bg-3); }
.icon-btn svg { width: 16px; height: 16px; grid-area: 1 / 1; transition: transform .45s cubic-bezier(.2,.8,.2,1), opacity .3s; }
[data-theme="light"] .i-sun, [data-theme="dark"] .i-moon { opacity: 0; transform: rotate(-90deg) scale(.6); }
.chip-sample { font: 600 10.5px/1 var(--kit-mono); letter-spacing: .05em; text-transform: uppercase; padding: 6px 8px; border-radius: 6px; color: var(--warn-ink); background: var(--warn-bg); box-shadow: 0 0 0 1px var(--warn-line) inset; white-space: nowrap; }
.dash-btn { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 10px; font: 600 13.5px/1 var(--kit-sans); color: var(--bg); background: var(--ink); transition: opacity .2s; }
.dash-btn:hover { opacity: .86; }
.dash-btn svg { width: 12px; height: 12px; }

/* ---------------- sidebar ---------------- */
.side { position: fixed; top: 60px; bottom: 0; left: 0; width: 248px; overflow-y: auto; padding: 22px 14px 80px; background: var(--bg-2); border-right: 1px solid var(--rule); scrollbar-width: thin; }
.grp + .grp { margin-top: 18px; }
.grp__h { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 4px 10px 6px; font: 600 11.5px/1.2 var(--kit-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.grp__h svg { width: 12px; height: 12px; transition: transform .3s; }
.grp.shut .grp__h svg { transform: rotate(-90deg); }
.grp__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s; }
.grp.shut .grp__body { grid-template-rows: 0fr; }
.grp__body > ul { min-height: 0; overflow: hidden; }
.grp li a { position: relative; display: block; padding: 5px 10px; border-radius: 7px; font-size: 14px; line-height: 1.45; color: var(--ink-2); transition: background-color .15s, color .15s; }
.grp li a:hover { background: var(--bg-3); color: var(--ink); }
.grp li a.on { background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; }
.grp li a.on::before { content: ''; position: absolute; left: -14px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--accent); }
.side__status { position: fixed; left: 0; bottom: 0; width: 247px; padding: 14px 24px; display: flex; align-items: center; gap: 9px; font-size: 13px; color: var(--muted); background: linear-gradient(transparent, var(--bg-2) 30%); }
.side__status i { width: 8px; height: 8px; border-radius: 50%; background: #22B07D; box-shadow: 0 0 0 3px rgb(34 176 125 / .18); }

/* ---------------- layout ---------------- */
.layout { margin-left: 248px; padding-top: 60px; display: grid; grid-template-columns: minmax(0, 1fr) 452px; }
.doc { padding: 40px 56px 80px; max-width: 820px; min-width: 0; }
.legacy[hidden] { display: none; }
.legacy { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; padding: 12px 14px; border-radius: 12px; background: var(--warn-bg); box-shadow: 0 0 0 1px var(--warn-line) inset; font-size: 14px; color: var(--ink-2); }
.legacy button { margin-left: auto; white-space: nowrap; font-weight: 600; color: var(--warn-ink); }
.crumb { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); }
.crumb svg { width: 12px; height: 12px; color: var(--faint); }
.crumb b { font-weight: 500; color: var(--accent-ink); }
.doc__h1 { margin-top: 14px; font: 650 40px/1.1 var(--kit-sans); letter-spacing: -0.028em; color: var(--ink); }
.doc__lede { margin-top: 14px; font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 640px; }
.doc__meta { margin-top: 18px; display: flex; align-items: center; gap: 14px; font-size: 13px; color: var(--muted); padding-bottom: 26px; border-bottom: 1px solid var(--rule); }
.doc__meta span { display: inline-flex; align-items: center; gap: 6px; }
.doc__meta svg { width: 14px; height: 14px; color: var(--faint); }
.doc__meta .tag { font: 600 11px/1 var(--kit-mono); padding: 4px 6px; border-radius: 5px; color: var(--accent-ink); background: var(--accent-tint); }
#blocks > * + * { margin-top: 18px; }
#blocks > .h2 { margin-top: 52px; }
#blocks > .h3 { margin-top: 30px; }
#blocks > :first-child { margin-top: 28px; }
.h2 { display: flex; align-items: center; gap: 12px; font: 650 24px/1.25 var(--kit-sans); letter-spacing: -0.018em; color: var(--ink); scroll-margin-top: 84px; }
.h2 .n { width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; font: 600 13px/1 var(--kit-mono); color: var(--accent-ink); background: var(--accent-tint); box-shadow: 0 0 0 1px var(--accent-line) inset; }
.h2 .anchor { opacity: 0; color: var(--faint); font-weight: 400; transition: opacity .2s; }
.h2:hover .anchor { opacity: 1; }
.h3 { font: 650 17px/1.3 var(--kit-sans); color: var(--ink); scroll-margin-top: 84px; }
.p { color: var(--ink-2); }

/* code blocks */
.cb { border-radius: 12px; overflow: hidden; background: var(--code); box-shadow: 0 0 0 1px var(--code-rule) inset, var(--shadow); }
.cb__bar { height: 42px; display: flex; align-items: center; gap: 2px; padding: 0 8px 0 6px; background: var(--code-2); border-bottom: 1px solid var(--code-rule); }
.cb__tab { position: relative; display: inline-flex; align-items: center; height: 42px; padding: 0 11px; font: 500 12.5px/1 var(--kit-sans); color: #8B93A3; transition: color .2s; }
.cb__tab:hover { color: #D7DCE4; }
.cb__tab.on { color: #F2F4F7; }
.cb__tab.on::after { content: ''; position: absolute; left: 11px; right: 11px; bottom: -1px; height: 2px; border-radius: 2px; background: #3DD9A8; }
.cb__file { margin-left: auto; font: 500 11.5px/1 var(--kit-mono); color: #6C7484; display: inline-flex; align-items: center; gap: 6px; }
.cb__file svg { width: 12px; height: 12px; }
.cb__copy { margin-left: 10px; height: 28px; display: inline-flex; align-items: center; gap: 6px; padding: 0 9px; border-radius: 7px; font: 500 12px/1 var(--kit-sans); color: #A9B1BF; box-shadow: 0 0 0 1px #2A313B inset; transition: color .2s, background-color .2s, box-shadow .2s; }
.cb__copy:hover { color: #fff; background: #1B2129; }
.cb__copy.done { color: #3DD9A8; box-shadow: 0 0 0 1px rgb(61 217 168 / .4) inset; }
.cb__copy svg { width: 13px; height: 13px; }
.cb pre { margin: 0; padding: 16px 18px 18px 0; overflow-x: auto; font: 450 13.2px/1.72 var(--kit-mono); color: #C9D1DC; tab-size: 4; counter-reset: ln; }
.cb pre .l { display: block; padding-left: 52px; position: relative; }
.cb pre .l::before { counter-increment: ln; content: counter(ln); position: absolute; left: 0; width: 34px; text-align: right; color: #3B4350; }
.cb--short pre { padding-left: 18px; }
.cb--short pre .l { padding-left: 0; }
.cb--short pre .l::before { display: none; }
.cb pre .l.hl { background: rgb(61 217 168 / .07); box-shadow: inset 2px 0 0 #3DD9A8; }
.tk-k { color: #FF8FA3; } .tk-s { color: #9BE3B5; } .tk-f { color: #FFD580; } .tk-n { color: #F9A66C; } .tk-c { color: #6B7385; font-style: italic; }
.tk-p { color: #8EC5FF; } .tk-t { color: #C3A6FF; } .tk-d { color: #F9A66C; } .tk-o { color: #8E97A6; }
.cb .pane { display: none; }
.cb .pane.on { display: block; animation: paneIn .35s ease both; }
@keyframes paneIn { from { opacity: 0; } to { opacity: 1; } }

/* sequence figure */
.flow { margin: 0; padding: 16px 18px 12px; border-radius: 14px; background: var(--bg-2); box-shadow: 0 0 0 1px var(--rule) inset; }
.flow svg { display: block; width: 100%; height: auto; overflow: visible; }
.flow .life { stroke: var(--rule-2); stroke-dasharray: 3 4; }
.flow .lane rect { fill: var(--bg); stroke: var(--rule-2); }
.flow .lane text { font: 600 12.5px/1 var(--kit-sans); fill: var(--ink); }
.flow .lane--akce rect { fill: var(--accent-tint); stroke: var(--accent-line); }
.flow .lane--akce text { fill: var(--accent-ink); }
.flow .msg line { stroke: var(--accent); stroke-width: 1.6; }
.flow .msg path { fill: var(--accent); }
.flow .msg--ret line { stroke: var(--faint); stroke-dasharray: 4 4; }
.flow .msg--ret path { fill: var(--faint); }
.flow .msg--hook line { stroke: var(--warn-ink); }
.flow .msg--hook path { fill: var(--warn-ink); }
.flow .lbl { font: 500 11.5px/1 var(--kit-mono); fill: var(--ink-2); }
.flow .hook { font: 600 10px/1 var(--kit-mono); letter-spacing: .06em; text-transform: uppercase; fill: var(--warn-ink); }
.flow .badge circle { fill: var(--accent); }
.flow .msg--hook .badge circle { fill: var(--warn-ink); }
.flow .badge text { font: 700 10.5px/1 var(--kit-mono); fill: var(--bg); }
.flow figcaption { margin-top: 6px; font-size: 12.5px; color: var(--muted); }

/* callouts */
.co { display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px; border-radius: 12px; font-size: 14.5px; line-height: 1.6; }
.co svg { width: 20px; height: 20px; margin-top: 1px; }
.co b { display: block; font-weight: 650; color: var(--ink); margin-bottom: 2px; }
.co--note { background: var(--note-bg); box-shadow: 0 0 0 1px var(--note-line) inset; } .co--note svg { color: var(--note-ink); }
.co--warn { background: var(--warn-bg); box-shadow: 0 0 0 1px var(--warn-line) inset; } .co--warn svg { color: var(--warn-ink); }
.co--tip { background: var(--tip-bg); box-shadow: 0 0 0 1px var(--tip-line) inset; } .co--tip svg { color: var(--tip-ink); }

/* params */
.params { border-top: 1px solid var(--rule); }
.param { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 2px; border-bottom: 1px solid var(--rule); font-size: 14.5px; }
.param__n { display: flex; flex-direction: column; gap: 6px; }
.param__n b { font: 600 13.5px/1.2 var(--kit-mono); color: var(--ink); }
.param__n span { display: flex; gap: 8px; font: 500 11.5px/1 var(--kit-mono); color: var(--faint); }
.param__n .req { color: var(--warn-ink); }
.param p { color: var(--ink-2); }

/* cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.card { position: relative; padding: 16px 16px 18px; border-radius: 12px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule) inset; transition: box-shadow .2s, transform .25s; }
.card:hover { box-shadow: 0 0 0 1px var(--accent-line) inset, var(--shadow); transform: translateY(-2px); }
.card i { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; background: var(--accent-tint); color: var(--accent-ink); }
.card i svg { width: 16px; height: 16px; }
.card b { display: block; margin-top: 12px; font-size: 14.5px; font-weight: 650; color: var(--ink); line-height: 1.35; }
.card span { display: block; margin-top: 4px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.card .arr { position: absolute; top: 16px; right: 16px; width: 14px; height: 14px; color: var(--faint); transition: transform .25s, color .2s; }
.card:hover .arr { transform: translate(2px, -2px); color: var(--accent); }

.helpful { margin-top: 56px; display: flex; align-items: center; gap: 10px; padding-top: 22px; border-top: 1px solid var(--rule); font-size: 14px; color: var(--muted); }
.helpful button svg { width: 13px; height: 13px; }
.helpful button { height: 32px; padding: 0 12px; border-radius: 8px; box-shadow: 0 0 0 1px var(--rule-2) inset; font-size: 13.5px; color: var(--ink-2); display: inline-flex; align-items: center; gap: 6px; }
.helpful button:hover { background: var(--bg-3); }
.pager { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pager a { padding: 14px 16px; border-radius: 12px; box-shadow: 0 0 0 1px var(--rule) inset; transition: box-shadow .2s; }
.pager a:hover { box-shadow: 0 0 0 1px var(--accent-line) inset; }
.pager a + a { text-align: right; }
.pager small { display: block; font-size: 12.5px; color: var(--muted); }
.pager b { display: block; margin-top: 2px; font-weight: 600; color: var(--ink); }
.doc__foot { margin-top: 40px; font-size: 12.5px; color: var(--faint); }

/* ---------------- right rail ---------------- */
.rail { border-left: 1px solid var(--rule); }
.rail__in { position: sticky; top: 60px; height: calc(100vh - 60px); padding: 28px 24px 20px; display: flex; flex-direction: column; gap: 22px; }
.toc h4 { margin: 0 0 10px; font: 600 11.5px/1 var(--kit-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.toc a { position: relative; display: block; padding: 4px 0 4px 14px; font-size: 13.5px; line-height: 1.4; color: var(--muted); border-left: 1px solid var(--rule-2); transition: color .2s, border-color .2s; }
.toc a:hover { color: var(--ink); }
.toc a.on { color: var(--accent-ink); border-left-color: var(--accent); font-weight: 550; }
.api { flex: 1; min-height: 0; display: flex; flex-direction: column; border-radius: 14px; overflow: hidden; background: var(--code); box-shadow: 0 0 0 1px var(--code-rule) inset, var(--shadow); color: #C9D1DC; }
.api__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--code-rule); }
.method { font: 700 11px/1 var(--kit-mono); padding: 5px 7px; border-radius: 6px; color: #06281E; background: #3DD9A8; }
.api__path { font: 500 13px/1 var(--kit-mono); color: #EEF1F5; }
.api__mode { margin-left: auto; font: 600 10.5px/1 var(--kit-mono); text-transform: uppercase; letter-spacing: .04em; padding: 5px 7px; border-radius: 6px; color: #F2B652; background: rgb(245 176 66 / .1); box-shadow: 0 0 0 1px rgb(245 176 66 / .3) inset; }
.api .cb__bar { height: 38px; }
.api .cb__tab { height: 38px; font-size: 12px; padding: 0 9px; }
.api .cb__tab.on::after { left: 9px; right: 9px; }
.api pre { margin: 0; padding: 12px 16px 14px; font: 450 12.4px/1.68 var(--kit-mono); color: #C9D1DC; white-space: pre; overflow-x: auto; }
.api__run { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--code-rule); border-bottom: 1px solid var(--code-rule); background: var(--code-2); }
.run { height: 32px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: 8px; font: 600 13px/1 var(--kit-sans); color: #06281E; background: #3DD9A8; transition: filter .2s, opacity .2s; }
.run:hover { filter: brightness(1.08); }
.run[disabled] { opacity: .7; cursor: progress; }
.run svg { width: 13px; height: 13px; }
.run .spin { display: none; width: 13px; height: 13px; border-radius: 50%; border: 2px solid rgb(6 40 30 / .3); border-top-color: #06281E; animation: spin .7s linear infinite; }
.run.busy .spin { display: inline-block; }
.run.busy .play { display: none; }
@keyframes spin { to { transform: rotate(360deg); } }
.api__hint { font-size: 12px; color: #6C7484; }
.api__res { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.api__resh { display: flex; align-items: center; gap: 8px; padding: 10px 16px 0; font: 600 11px/1 var(--kit-sans); letter-spacing: .05em; text-transform: uppercase; color: #6C7484; }
.status { font: 600 11px/1 var(--kit-mono); letter-spacing: 0; text-transform: none; padding: 4px 6px; border-radius: 5px; color: #3DD9A8; background: rgb(61 217 168 / .1); }
.ms { font: 500 11px/1 var(--kit-mono); letter-spacing: 0; text-transform: none; color: #8B93A3; }
.api__res pre { flex: 1; min-height: 0; overflow: auto; transition: opacity .25s; }
.api__res.loading pre { opacity: .25; }
.api__res .bar-load { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: linear-gradient(90deg, transparent, #3DD9A8, transparent); background-size: 50% 100%; background-repeat: no-repeat; opacity: 0; }
.api__res.loading .bar-load { opacity: 1; animation: load 0.9s linear infinite; }
@keyframes load { from { background-position: -50% 0; } to { background-position: 150% 0; } }
.api pre .row-in { display: block; animation: rowIn .3s ease both; }
@keyframes rowIn { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }

/* ---------------- search palette ---------------- */
.palette { position: fixed; inset: 0; z-index: 60; }
.palette[hidden] { display: none; }
.palette__scrim { position: absolute; inset: 0; background: rgb(10 12 16 / .38); backdrop-filter: blur(3px); animation: fade .2s ease both; }
.palette__box { position: relative; width: min(640px, calc(100% - 40px)); margin: 13vh auto 0; border-radius: 16px; background: var(--bg); box-shadow: 0 0 0 1px var(--rule) inset, 0 30px 80px -20px rgb(0 0 0 / .45); overflow: hidden; animation: pop .25s cubic-bezier(.2,.8,.2,1) both; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(-8px) scale(.98); } }
.palette__in { display: flex; align-items: center; gap: 12px; height: 56px; padding: 0 16px; border-bottom: 1px solid var(--rule); }
.palette__in svg { width: 18px; height: 18px; color: var(--muted); flex: none; }
.palette__in input { flex: 1; height: 100%; border: 0; outline: 0; background: none; font: 400 16px/1 var(--kit-sans); color: var(--ink); }
.palette__in input::placeholder { color: var(--faint); }
.palette__list { max-height: 380px; overflow-y: auto; padding: 8px; }
.palette__grp { padding: 10px 10px 6px; font: 600 11px/1 var(--kit-sans); letter-spacing: .05em; text-transform: uppercase; color: var(--faint); }
.res { width: 100%; display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 9px; text-align: left; }
.res i { width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 7px; background: var(--bg-3); color: var(--muted); }
.res i svg { width: 14px; height: 14px; }
.res b { display: block; font-size: 14px; font-weight: 550; color: var(--ink); }
.res span { display: block; font-size: 12.5px; color: var(--muted); }
.res mark { background: var(--accent-tint); color: var(--accent-ink); border-radius: 3px; padding: 0 1px; }
.res .go { margin-left: auto; width: 14px; height: 14px; color: var(--faint); opacity: 0; }
.res.sel { background: var(--bg-3); }
.res.sel .go { opacity: 1; }
.res.sel i { background: var(--accent-tint); color: var(--accent-ink); }
.palette__empty { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.palette__foot { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--rule); font-size: 12px; color: var(--muted); background: var(--bg-2); }
.palette__foot span { display: inline-flex; align-items: center; gap: 6px; }

.flash { animation: flash 1.4s ease; }
@keyframes flash { 0%, 30% { background: var(--accent-tint); } 100% { background: transparent; } }

/* ---------------- responsive 1000–1600 ---------------- */
@media (max-width: 1360px) {
  .layout { grid-template-columns: minmax(0, 1fr) 400px; }
  .doc { padding: 36px 40px 80px; }
  .search { width: 240px; }
}
@media (max-width: 1180px) {
  .bar { grid-template-columns: 220px 1fr auto; }
  .side, .side__status { width: 220px; }
  .layout { margin-left: 220px; grid-template-columns: minmax(0, 1fr); }
  .rail { display: none; }
  .chip-sample { display: none; }
  .bar__tabs a:nth-child(n+3) { display: none; }
  .doc { max-width: none; }
  #apiSlot .api { margin-top: 18px; height: 560px; }
}
/* Code reads character by character: no programming ligatures. */
.cb pre, .api pre, code, .flow .lbl { font-variant-ligatures: none; font-feature-settings: 'liga' 0, 'calt' 0; }

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