/*!
 * Copyright (c) 2026 Daki.cc — Niclas Specht. All rights reserved.
 *
 * Proprietary and confidential. Unauthorized copying, distribution,
 * modification, or use of this file or its contents, in whole or in
 * part, via any medium, is strictly prohibited.
 */

/* Daki Wiki (/wiki) — docs layout in the home page's visual language:
   dark surfaces, purple glow, Poppins headings, Work Sans body. */
:root {
  --wk-surface: #161318;
  --wk-surface-2: #1b171f;
  --wk-surface-3: #221c27;
  --wk-border: #2c2731;
  --wk-border-2: #3a3140;
  --wk-border-hi: #684376;
  --wk-border-hot: #855493;
  --wk-body: #d8d0dc;
  --wk-muted: #a99eb0;
  --wk-faint: #85788d;
  --wk-link: #cc96de;
  --wk-mono: ui-monospace, SFMono-Regular, "Cascadia Code", "JetBrains Mono", Menlo, Consolas, monospace;
  --wk-side-w: 256px;
  --wk-toc-w: 210px;
  --wk-top: calc(var(--daki-nav-h, 92px) + 10px);
}

.wk-body { background: #111111; color: #fff; font-family: 'Work Sans', sans-serif; overflow-x: clip; }
.wk-body ::selection { background: rgba(192, 38, 211, 0.38); color: #fff; }
.wk-body :focus-visible { outline: 2px solid #d48ae6; outline-offset: 2px; }
.wk-icon { width: 16px; height: 16px; flex-shrink: 0; }
.wk-icon-done { display: none; }
.is-copied .wk-icon-done { display: inline-block; color: #6ee7a8; }
.is-copied .wk-icon:not(.wk-icon-done) { display: none; }
.wk-rot-up { transform: rotate(-90deg); }

.wk-skip { position: absolute; top: -80px; left: 12px; z-index: 2000; padding: 10px 14px; border: 1px solid var(--wk-border-hot); border-radius: 10px; background: #241b29; color: #fff; text-decoration: none; }
.wk-skip:focus { top: 12px; color: #fff; }

.wk-kicker { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 12px; color: #cf5ee0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.wk-kicker::before { content: ''; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(192, 38, 211, 0), #c026d3); }
.wk-accent {
  background: linear-gradient(118deg, #e29bf0 0%, #c026d3 48%, #a432c0 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.wk-kbd { display: inline-flex; align-items: center; height: 22px; padding: 0 6px; border: 1px solid var(--wk-border-2); border-bottom-width: 2px; border-radius: 6px; background: #141116; color: var(--wk-muted); font: 500 11px/1 var(--wk-mono); white-space: nowrap; }

.wk-btn { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--wk-border-2); border-radius: 10px; background: var(--wk-surface-2); color: #e8deed; font: 500 14px 'Work Sans', sans-serif; text-decoration: none; white-space: nowrap; transition: border-color .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease; }
.wk-btn:hover { border-color: var(--wk-border-hi); background: #221a27; color: #fff; }
.wk-btn .wk-icon { color: #c48cdb; }
.wk-btn--primary { border-color: transparent; background: linear-gradient(135deg, #6b0882 0%, #8c10ae 100%); color: #fff; box-shadow: 0 6px 18px rgba(118, 9, 145, 0.35); }
.wk-btn--primary .wk-icon { color: #fff; }
.wk-btn--primary:hover { border-color: transparent; background: linear-gradient(135deg, #7d0a9c 0%, #9e12c6 100%); box-shadow: 0 8px 22px rgba(118, 9, 145, 0.5); }

.wk-icon-btn { display: inline-grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; padding: 0; border: 1px solid var(--wk-border-2); border-radius: 10px; background: var(--wk-surface-2); color: #e8deed; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.wk-icon-btn:hover { border-color: var(--wk-border-hi); background: #221a27; color: #fff; }

/* ── Doc layout ───────────────────────────────────────────────── */
.wk-page { position: relative; padding-top: var(--daki-nav-h, 92px); }
.wk-glow { position: absolute; inset: 0 0 auto; height: 560px; pointer-events: none; background: radial-gradient(70% 100% at 50% -30%, rgba(140, 22, 170, 0.22) 0%, transparent 70%), radial-gradient(40% 70% at 88% -10%, rgba(192, 38, 211, 0.1), transparent 70%); }
.wk-glow::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 50% 0%, #000 10%, transparent 75%); }

.wk-layout { position: relative; display: grid; grid-template-columns: var(--wk-side-w) minmax(0, 1fr); gap: 44px; align-items: start; padding-top: 14px; }
.wk-main { display: grid; grid-template-columns: minmax(0, 1fr) var(--wk-toc-w); gap: 52px; align-items: start; min-width: 0; }
.wk-article { min-width: 0; max-width: 780px; }
.wk-mobilebar, .wk-drawer-head { display: none; }

/* Sidebar */
.wk-sidebar { position: sticky; top: var(--wk-top); height: calc(100vh - var(--wk-top) - 12px); }
.wk-sidebar-inner { height: 100%; padding: 4px 8px 28px 2px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3140 transparent; }
.wk-search-trigger { display: flex; align-items: center; gap: 10px; width: 100%; height: 40px; padding: 0 8px 0 12px; border: 1px solid var(--wk-border-2); border-radius: 10px; background: var(--wk-surface-2); color: var(--wk-faint); font: 400 14px 'Work Sans', sans-serif; text-align: left; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.wk-search-trigger span { flex: 1; }
.wk-search-trigger .wk-icon { color: #c48cdb; }
.wk-search-trigger:hover { border-color: var(--wk-border-hi); background: #201a24; color: var(--wk-muted); }

.wk-side-home { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 8px 10px; border-radius: 9px; color: var(--wk-muted); font-size: 14px; text-decoration: none; transition: color .2s ease, background .2s ease; }
.wk-side-home .wk-icon { color: #c48cdb; }
.wk-side-home:hover, .wk-side-home.is-active { color: #fff; background: rgba(255, 255, 255, 0.04); }

.wk-side-group { margin-top: 22px; }
.wk-side-label { display: flex; align-items: center; gap: 9px; margin: 0 0 6px; padding: 0 10px; color: #c7b7cf; font-size: 11.5px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; }
.wk-side-label .wk-icon { width: 14px; height: 14px; color: #c48cdb; }
.wk-side-group ul { margin: 0 0 0 16px; padding: 0; list-style: none; border-left: 1px solid var(--wk-border); }
.wk-side-group li a { display: flex; align-items: center; gap: 9px; margin-left: -1px; padding: 6.5px 10px 6.5px 14px; border-left: 1px solid transparent; border-radius: 0 8px 8px 0; color: var(--wk-muted); font-size: 14px; line-height: 1.35; text-decoration: none; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.wk-side-group li a .wk-icon { width: 15px; height: 15px; opacity: 0.75; }
.wk-side-group li a:hover { color: #fff; border-left-color: #5a4663; background: rgba(255, 255, 255, 0.025); }
.wk-side-group li a[aria-current="page"] { color: #fff; font-weight: 500; border-left-color: #d48ae6; background: linear-gradient(90deg, rgba(192, 38, 211, 0.16), rgba(192, 38, 211, 0.02)); }
.wk-side-group li a[aria-current="page"] .wk-icon { color: #e7b6f0; opacity: 1; }
.wk-side-ext { width: 12px !important; height: 12px !important; margin-left: auto; opacity: 0.45 !important; }

.wk-side-ai { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px; border: 1px dashed #4a3a52; border-radius: 12px; background: radial-gradient(ellipse at 0% 0%, rgba(192, 38, 211, 0.12), transparent 70%); color: #e8deed; text-decoration: none; transition: border-color .2s ease; }
.wk-side-ai > .wk-icon { width: 18px; height: 18px; color: #e7b6f0; }
.wk-side-ai b { display: block; font: 600 13px var(--wk-mono); }
.wk-side-ai small { display: block; color: var(--wk-faint); font-size: 12px; }
.wk-side-ai:hover { border-color: var(--wk-border-hot); color: #fff; }

/* Article header */
.wk-article-head { padding: 26px 0 28px; border-bottom: 1px solid var(--wk-border); }
.wk-crumbs { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; color: var(--wk-muted); font-size: 13px; }
.wk-crumbs a { color: #cf5ee0; font-weight: 600; text-decoration: none; }
.wk-crumbs a:hover { color: #e7b6f0; }
.wk-crumbs .wk-icon { width: 13px; height: 13px; opacity: 0.55; }
.wk-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }
.wk-title { margin: 0; color: #fff; font: 600 clamp(1.9rem, 3.6vw, 2.55rem)/1.12 'Poppins', sans-serif; letter-spacing: -0.03em; }
.wk-lead { max-width: 690px; margin: 14px 0 0; color: rgba(255, 255, 255, 0.7); font-size: 1.1rem; line-height: 1.6; }

/* "Copy page" split button */
.wk-pagemenu { position: relative; display: inline-flex; flex-shrink: 0; margin-top: 6px; }
.wk-pagemenu-main, .wk-pagemenu-toggle { display: inline-flex; align-items: center; gap: 7px; height: 34px; border: 1px solid var(--wk-border-2); background: var(--wk-surface-2); color: #e8deed; font: 500 13px 'Work Sans', sans-serif; cursor: pointer; transition: border-color .2s ease, background .2s ease, color .2s ease; }
.wk-pagemenu-main { padding: 0 12px; border-radius: 9px 0 0 9px; }
.wk-pagemenu-main .wk-icon { width: 15px; height: 15px; color: #c48cdb; }
.wk-pagemenu-toggle { padding: 0 8px; border-left: 0; border-radius: 0 9px 9px 0; }
.wk-pagemenu-toggle .wk-icon { width: 14px; height: 14px; color: var(--wk-muted); transition: transform .2s ease; }
.wk-pagemenu-toggle[aria-expanded="true"] .wk-icon { transform: rotate(180deg); }
.wk-pagemenu-main:hover, .wk-pagemenu-toggle:hover, .wk-pagemenu-toggle[aria-expanded="true"] { border-color: var(--wk-border-hi); background: #221a27; color: #fff; }
.wk-pagemenu-list { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; display: none; width: 280px; padding: 6px; border: 1px solid var(--wk-border-2); border-radius: 12px; background: #151317; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.wk-pagemenu-list.is-open { display: block; animation: wk-pop .16s ease-out; }
.wk-pagemenu-list > a, .wk-pagemenu-list > button { display: flex; align-items: center; gap: 12px; width: 100%; padding: 9px 10px; border: 0; border-radius: 8px; background: none; color: #e8deed; font-family: 'Work Sans', sans-serif; text-align: left; text-decoration: none; cursor: pointer; transition: background .15s ease; }
.wk-pagemenu-list > a:hover, .wk-pagemenu-list > button:hover { background: var(--wk-surface-3); color: #fff; }
.wk-pagemenu-list > * > .wk-icon:first-child { width: 30px; height: 30px; padding: 7px; border: 1px solid var(--wk-border-2); border-radius: 8px; background: var(--wk-surface-2); color: #c48cdb; }
.wk-pagemenu-list b { display: block; font-size: 14px; font-weight: 500; line-height: 1.3; }
.wk-pagemenu-list small { display: block; color: #9c8ca4; font-size: 12px; }
.wk-pagemenu-list span { flex: 1; }
.wk-pagemenu-ext { width: 13px; height: 13px; color: var(--wk-faint); }
@keyframes wk-pop { from { opacity: 0; transform: translateY(-4px); } }

/* ── Content typography ───────────────────────────────────────── */
.wk-content { color: var(--wk-body); font-size: 1rem; line-height: 1.75; }
.wk-content > :first-child { margin-top: 28px; }
.wk-content p { margin: 0 0 1.1em; }
.wk-content a { color: var(--wk-link); text-decoration: underline; text-decoration-color: rgba(204, 150, 222, 0.35); text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .15s ease, text-decoration-color .15s ease; }
.wk-content a:hover { color: #fff; text-decoration-color: #d48ae6; }
.wk-content a.wk-ext::after { content: '↗'; display: inline-block; margin-left: 2px; font-size: 0.75em; opacity: 0.55; text-decoration: none; }
.wk-content strong { color: #fff; font-weight: 600; }
.wk-content em { color: #e8deed; }

.wk-h { position: relative; color: #fff; font-family: 'Poppins', sans-serif; font-weight: 600; letter-spacing: -0.02em; scroll-margin-top: calc(var(--daki-nav-h, 92px) + 20px); }
.wk-content h2 { margin: 2.3em 0 0.7em; font-size: 1.5rem; line-height: 1.3; }
.wk-content h3 { margin: 1.9em 0 0.55em; font-size: 1.17rem; line-height: 1.4; }
.wk-content h4, .wk-content h5, .wk-content h6 { margin: 1.6em 0 0.5em; font-size: 1.02rem; }
.wk-anchor { display: inline-flex; margin-left: 8px; vertical-align: middle; color: var(--wk-faint) !important; opacity: 0; transition: opacity .15s ease, color .15s ease; }
.wk-anchor .wk-icon { width: 16px; height: 16px; }
.wk-h:hover .wk-anchor, .wk-anchor:focus-visible { opacity: 1; }
.wk-anchor:hover { color: #e7b6f0 !important; }
.wk-anchor.is-copied::after { content: 'Link copied'; position: absolute; margin: -2px 0 0 26px; padding: 2px 8px; border-radius: 6px; background: #241b29; color: #e7b6f0; font: 500 11.5px 'Work Sans', sans-serif; letter-spacing: 0; white-space: nowrap; }

.wk-content ul, .wk-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.wk-content li { margin: 0.35em 0; padding-left: 0.2em; }
.wk-content li::marker { color: #b56fcb; }
.wk-content ol > li::marker { font-weight: 600; font-size: 0.92em; }
.wk-content li > p { margin: 0.35em 0; }
.wk-content li > ul, .wk-content li > ol { margin: 0.3em 0 0.4em; }
.wk-content li > .wk-code { margin: 0.6em 0 0.8em; }
.wk-content blockquote { margin: 1.2em 0; padding: 2px 0 2px 16px; border-left: 3px solid var(--wk-border-hi); color: var(--wk-muted); }
.wk-content img { max-width: 100%; height: auto; border: 1px solid var(--wk-border); border-radius: 12px; }
.wk-hr { height: 1px; margin: 2.6em 0; border: 0; background: linear-gradient(90deg, transparent, rgba(164, 50, 192, 0.4), transparent); opacity: 1; }
.wk-hr + .wk-h { margin-top: 0; }
.wk-content :not(pre) > code { padding: 0.14em 0.42em; border: 1px solid #2f2836; border-radius: 6px; background: #1c1720; color: #ebc5f7; font: 500 0.86em var(--wk-mono); overflow-wrap: anywhere; }

/* Tables */
.wk-table { margin: 1.4em 0 1.7em; overflow-x: auto; border: 1px solid var(--wk-border); border-radius: 12px; background: #141116; scrollbar-width: thin; scrollbar-color: #3a3140 transparent; }
.wk-table table { width: 100%; border-collapse: collapse; font-size: 0.93rem; line-height: 1.55; }
.wk-table th { padding: 11px 16px; border-bottom: 1px solid var(--wk-border); background: #1a161e; color: #c7b7cf; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; text-align: left; text-transform: uppercase; white-space: nowrap; }
.wk-table td { padding: 11px 16px; border-top: 1px solid #221d26; vertical-align: top; }
.wk-table tr:first-child td { border-top: 0; }
.wk-table code { white-space: nowrap; }
.wk-table tbody tr { transition: background .15s ease; }
.wk-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }

/* Code blocks */
.wk-code { margin: 1.2em 0 1.5em; overflow: hidden; border: 1px solid var(--wk-border); border-radius: 12px; background: #131015; }
.wk-code-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 38px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--wk-border); background: #17141a; }
.wk-code-lang { display: inline-flex; align-items: center; gap: 7px; color: var(--wk-muted); font: 500 12px var(--wk-mono); }
.wk-code-lang .wk-icon { width: 14px; height: 14px; color: #c48cdb; }
.wk-code-copy { display: inline-flex; align-items: center; gap: 6px; height: 27px; padding: 0 9px; border: 1px solid transparent; border-radius: 7px; background: none; color: var(--wk-muted); font: 500 12px 'Work Sans', sans-serif; cursor: pointer; transition: color .15s ease, background .15s ease, border-color .15s ease; }
.wk-code-copy .wk-icon { width: 14px; height: 14px; }
.wk-code-copy:hover { border-color: var(--wk-border-2); background: var(--wk-surface-3); color: #fff; }
.wk-code-copy.is-copied { color: #6ee7a8; }
.wk-code pre { margin: 0; padding: 14px 16px; overflow-x: auto; color: #e6dfe9; font: 13.5px/1.7 var(--wk-mono); tab-size: 4; scrollbar-width: thin; scrollbar-color: #3a3140 transparent; }
.wk-code pre code { padding: 0; border: 0; background: none; color: inherit; font: inherit; }
.hl-comment { color: #7a6d84; font-style: italic; }
.hl-string { color: #f2b880; }
.hl-keyword { color: #d48ae6; }
.hl-literal, .hl-number { color: #ff9e7a; }
.hl-fn { color: #8fb4ff; }
.hl-prop { color: #ebc5f7; }
.hl-variable { color: #ffd479; }
.hl-flag { color: #7fd8c7; }
.hl-punct { color: #8d8096; }

/* Callouts */
.wk-callout { --c: 196, 140, 219; display: flex; gap: 12px; margin: 1.3em 0; padding: 14px 16px; border: 1px solid rgba(var(--c), 0.3); border-radius: 12px; background: linear-gradient(90deg, rgba(var(--c), 0.09), rgba(var(--c), 0.04)); }
.wk-callout--note { --c: 122, 162, 247; }
.wk-callout--warning { --c: 245, 177, 76; }
.wk-callout--tip { --c: 45, 212, 191; }
.wk-callout--check { --c: 74, 222, 128; }
.wk-callout-icon { display: flex; flex-shrink: 0; margin-top: 4px; color: rgb(var(--c)); }
.wk-callout-icon .wk-icon { width: 18px; height: 18px; }
.wk-callout-body { flex: 1; min-width: 0; color: #e3dbe7; font-size: 0.95rem; line-height: 1.68; }
.wk-callout-body > :first-child { margin-top: 0; }
.wk-callout-body > :last-child { margin-bottom: 0; }
.wk-callout-body a { color: #fff; text-decoration-color: rgba(var(--c), 0.6); }

/* Steps */
.wk-content .wk-steps { margin: 1.6em 0 1.9em; padding: 0; list-style: none; }
.wk-content .wk-step { position: relative; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px; margin: 0; padding: 0 0 26px; scroll-margin-top: calc(var(--daki-nav-h, 92px) + 20px); }
.wk-step::before { content: ''; position: absolute; top: 38px; bottom: 6px; left: 14.5px; width: 1px; background: linear-gradient(#684376, rgba(104, 67, 118, 0.12)); }
.wk-content .wk-step:last-child { padding-bottom: 0; }
.wk-step:last-child::before { display: none; }
.wk-step-num { position: relative; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--wk-border-hot); border-radius: 50%; background: #241b29; color: #f0c8fa; font: 600 13px/1 'Poppins', sans-serif; box-shadow: 0 0 0 4px #111111, 0 0 18px rgba(192, 38, 211, 0.25); }
.wk-step-main { min-width: 0; }
.wk-content .wk-step-title { margin: 3px 0 8px; color: #fff; font: 600 1.05rem/1.4 'Poppins', sans-serif; letter-spacing: -0.01em; }
.wk-step-body > :last-child { margin-bottom: 0; }

/* Accordions */
.wk-acc { margin: 1em 0; border: 1px solid var(--wk-border); border-radius: 12px; background: #141116; scroll-margin-top: calc(var(--daki-nav-h, 92px) + 20px); transition: border-color .2s ease; }
.wk-accordions { margin: 1.2em 0 1.7em; overflow: hidden; border: 1px solid var(--wk-border); border-radius: 12px; background: #141116; }
.wk-accordions .wk-acc { margin: 0; border: 0; border-radius: 0; background: none; }
.wk-accordions .wk-acc + .wk-acc { border-top: 1px solid var(--wk-border); }
.wk-acc summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 18px; color: #f2edf5; font-size: 0.98rem; font-weight: 500; line-height: 1.45; list-style: none; cursor: pointer; transition: background .15s ease, color .15s ease; }
.wk-acc summary::-webkit-details-marker { display: none; }
.wk-acc summary > span { display: flex; align-items: center; gap: 10px; }
.wk-acc summary:hover { background: rgba(255, 255, 255, 0.025); color: #fff; }
.wk-acc-chev { width: 16px; height: 16px; color: var(--wk-muted); transition: transform .25s ease, color .25s ease; }
.wk-acc[open] > summary { color: #fff; }
.wk-acc[open] > summary .wk-acc-chev { transform: rotate(180deg); color: #d48ae6; }
.wk-acc-body { padding: 0 18px 16px; font-size: 0.96rem; }
.wk-acc-body > :last-child { margin-bottom: 0; }
.wk-acc.is-flash { box-shadow: inset 3px 0 0 #c026d3; background: rgba(192, 38, 211, 0.06); }

/* Tabs */
.wk-tabs { margin: 1.3em 0 1.7em; overflow: hidden; border: 1px solid var(--wk-border); border-radius: 12px; background: #141116; }
.wk-tablist { display: flex; gap: 2px; padding: 4px 8px 0; overflow-x: auto; border-bottom: 1px solid var(--wk-border); background: #17141a; scrollbar-width: none; }
.wk-tablist button { position: relative; padding: 10px 12px 11px; border: 0; background: none; color: var(--wk-muted); font: 500 14px 'Work Sans', sans-serif; white-space: nowrap; cursor: pointer; transition: color .15s ease; }
.wk-tablist button:hover { color: #fff; }
.wk-tablist button[aria-selected="true"] { color: #fff; }
.wk-tablist button[aria-selected="true"]::after { content: ''; position: absolute; right: 10px; bottom: -1px; left: 10px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #a432c0, #e7b6f0); }
.wk-tabpanel { padding: 16px 18px 2px; }
.wk-tabpanel > :first-child { margin-top: 0; }

/* Cards */
.wk-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 1.3em 0 1.8em; }
.wk-cards--1 { grid-template-columns: minmax(0, 1fr); }
.wk-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-content .wk-card { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 18px 44px 16px 18px; border: 1px solid var(--wk-border); border-radius: 13px; background: radial-gradient(ellipse at 100% 0%, rgba(118, 9, 145, 0.12), transparent 65%), var(--wk-surface); color: var(--wk-body); text-decoration: none; transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease; }
.wk-content a.wk-card:hover { border-color: var(--wk-border-hot); color: var(--wk-body); transform: translateY(-2px); box-shadow: 0 14px 34px -16px rgba(192, 38, 211, 0.45); }
.wk-card-icon { display: grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border: 1px solid rgba(192, 38, 211, 0.28); border-radius: 10px; background: rgba(192, 38, 211, 0.12); color: #e7b6f0; }
.wk-card-icon .wk-icon { width: 18px; height: 18px; }
.wk-card-title { color: #fff; font: 600 1rem/1.35 'Poppins', sans-serif; letter-spacing: -0.01em; }
.wk-card-desc { color: var(--wk-muted); font-size: 0.92rem; line-height: 1.6; }
.wk-card-desc p { margin: 0; }
.wk-card-arrow { position: absolute; top: 20px; right: 18px; color: var(--wk-faint); transition: transform .2s ease, color .2s ease; }
.wk-card:hover .wk-card-arrow { color: #e7b6f0; transform: translateX(3px); }

/* Tooltips (glossary terms) */
.wk-tip { border-bottom: 1px dashed rgba(215, 150, 236, 0.55); cursor: help; transition: color .15s ease, border-color .15s ease; }
.wk-tip:hover, .wk-tip:focus-visible { border-bottom-color: #e7b6f0; color: #fff; outline: none; }
.wk-tooltip { position: fixed; z-index: 1080; max-width: 280px; padding: 9px 12px; border: 1px solid var(--wk-border-2); border-radius: 10px; background: rgba(27, 23, 31, 0.98); color: #e8deed; font-size: 13px; line-height: 1.5; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); opacity: 0; pointer-events: none; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease; }
.wk-tooltip.is-visible { opacity: 1; transform: none; }

/* Changelog entries */
.wk-update { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 28px; padding: 6px 0 30px; }
.wk-content .wk-update-label { position: sticky; top: calc(var(--daki-nav-h, 92px) + 20px); display: inline-flex; margin: 0; padding: 5px 12px; border: 1px solid var(--wk-border-hi); border-radius: 999px; background: rgba(192, 38, 211, 0.1); color: #f0c8fa; font: 600 13px/1.4 'Poppins', sans-serif; letter-spacing: 0; scroll-margin-top: calc(var(--daki-nav-h, 92px) + 20px); }
.wk-update-desc { margin: 0 0 1em; color: #fff; font: 600 1.25rem/1.35 'Poppins', sans-serif !important; letter-spacing: -0.02em; }

/* Article footer */
.wk-article-foot { margin-top: 60px; }
.wk-help { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px 14px; align-items: center; padding: 18px 20px; border: 1px solid var(--wk-border); border-radius: 14px; background: radial-gradient(ellipse at 0% 0%, rgba(118, 9, 145, 0.16), transparent 60%), var(--wk-surface); }
.wk-help-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid rgba(192, 38, 211, 0.28); border-radius: 10px; background: rgba(192, 38, 211, 0.12); color: #e7b6f0; }
.wk-help-icon .wk-icon { width: 19px; height: 19px; }
.wk-help p { margin: 0; color: var(--wk-body); font-size: 0.95rem; line-height: 1.55; }
.wk-help b { color: #fff; font-weight: 600; }
.wk-help-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.wk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 16px; }
.wk-pager-link { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border: 1px solid var(--wk-border); border-radius: 14px; background: #141116; text-decoration: none; transition: border-color .2s ease, background .2s ease; }
.wk-pager-next { align-items: flex-end; text-align: right; }
.wk-pager-link small { display: inline-flex; align-items: center; gap: 6px; color: var(--wk-faint); font-size: 12.5px; }
.wk-pager-link small .wk-icon { width: 14px; height: 14px; transition: transform .2s ease; }
.wk-pager-link > span { color: #fff; font: 600 1rem/1.35 'Poppins', sans-serif; }
.wk-pager-link:hover { border-color: var(--wk-border-hot); background: #18141b; }
.wk-pager-prev:hover small .wk-icon { transform: translateX(-3px); }
.wk-pager-next:hover small .wk-icon { transform: translateX(3px); }

/* Table of contents */
.wk-toc { position: sticky; top: var(--wk-top); max-height: calc(100vh - var(--wk-top) - 16px); padding-top: 30px; overflow-y: auto; font-size: 13.5px; scrollbar-width: none; }
.wk-toc-title { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; color: #f2edf5; font-size: 13px; font-weight: 600; }
.wk-toc-title .wk-icon { width: 15px; height: 15px; color: #c48cdb; }
.wk-toc-list { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--wk-border); }
.wk-toc-list a { display: block; margin-left: -1px; padding: 5px 0 5px 14px; border-left: 1px solid transparent; color: var(--wk-muted); line-height: 1.4; text-decoration: none; transition: color .15s ease, border-color .15s ease; }
.wk-toc-l3 a { padding-left: 26px; font-size: 13px; }
.wk-toc-list a:hover { color: #fff; }
.wk-toc-list a.is-active { border-left-color: #d48ae6; color: #f0c8fa; }
.wk-toc-tools { display: flex; flex-direction: column; gap: 1px; margin-top: 22px; padding-top: 14px; border-top: 1px solid var(--wk-border); }
.wk-toc-tools > a, .wk-toc-tools > button { display: flex; align-items: center; gap: 8px; padding: 6px 0; border: 0; background: none; color: var(--wk-muted); font: 400 13px 'Work Sans', sans-serif; text-align: left; text-decoration: none; cursor: pointer; transition: color .15s ease; }
.wk-toc-tools .wk-icon { width: 14px; height: 14px; color: #c48cdb; }
.wk-toc-tools > a:hover, .wk-toc-tools > button:hover { color: #fff; }

/* ── Search dialog ───────────────────────────────────────────── */
.wk-search { position: fixed; inset: 0; z-index: 1090; display: flex; align-items: flex-start; justify-content: center; padding: 11vh 16px 16px; background: rgba(8, 6, 10, 0.64); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); opacity: 0; transition: opacity .16s ease; }
.wk-search[hidden] { display: none; }
.wk-search.is-open { opacity: 1; }
.wk-search-dialog { display: flex; flex-direction: column; width: min(660px, 100%); max-height: min(640px, 80vh); overflow: hidden; border: 1px solid var(--wk-border-2); border-radius: 16px; background: #151317; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 70px -24px rgba(192, 38, 211, 0.45); transform: translateY(-6px) scale(.985); transition: transform .18s ease; }
.wk-search.is-open .wk-search-dialog { transform: none; }
.wk-search-field { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px 0 18px; border-bottom: 1px solid var(--wk-border); }
.wk-search-field > .wk-icon { width: 19px; height: 19px; color: #d48ae6; }
.wk-search-field input { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: none; color: #fff; font: 400 17px 'Work Sans', sans-serif; }
.wk-search-field input:focus-visible { outline: none; }
.wk-search-field input::placeholder { color: var(--wk-faint); }
.wk-search-field input::-webkit-search-cancel-button { display: none; }
.wk-search-close { height: 26px; padding: 0 8px; border: 1px solid var(--wk-border-2); border-bottom-width: 2px; border-radius: 6px; background: #141116; color: var(--wk-muted); font: 500 11px var(--wk-mono); cursor: pointer; }
.wk-search-results { flex: 1; padding: 6px 8px 10px; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #3a3140 transparent; }
.wk-sr-label { margin: 0; padding: 12px 10px 6px; color: var(--wk-faint); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.wk-sr-list { margin: 0; padding: 0; list-style: none; }
.wk-sr { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--wk-body); text-decoration: none; scroll-margin: 8px; }
.wk-sr:hover { color: var(--wk-body); }
.wk-sr[aria-selected="true"] { background: var(--wk-surface-3); box-shadow: inset 2px 0 0 #d48ae6; }
.wk-sr-icon { display: grid; place-items: center; flex-shrink: 0; width: 32px; height: 32px; border: 1px solid var(--wk-border-2); border-radius: 9px; background: var(--wk-surface-2); color: #c48cdb; }
.wk-sr-icon .wk-icon { width: 15px; height: 15px; }
.wk-sr-body { flex: 1; min-width: 0; }
.wk-sr-title { display: block; overflow: hidden; color: #fff; font-size: 14.5px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.wk-sr-crumb { display: block; overflow: hidden; margin-top: 1px; color: var(--wk-faint); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wk-sr-snippet { display: -webkit-box; margin-top: 4px; overflow: hidden; color: var(--wk-muted); font-size: 13px; line-height: 1.5; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.wk-sr mark { padding: 0 1px; border-radius: 3px; background: rgba(192, 38, 211, 0.3); color: #fff; }
.wk-sr-go { align-self: center; color: var(--wk-muted); opacity: 0; }
.wk-sr[aria-selected="true"] .wk-sr-go { opacity: 1; }
.wk-search-empty { padding: 34px 20px 18px; color: var(--wk-muted); text-align: center; }
.wk-search-empty b { display: block; margin-bottom: 4px; color: #fff; font-weight: 500; }
.wk-search-ai { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 4px 0; padding: 12px; border: 1px dashed #4a3a52; border-radius: 12px; background: radial-gradient(ellipse at 0% 0%, rgba(192, 38, 211, 0.12), transparent 70%); color: var(--wk-muted); font-size: 13px; }
.wk-search-ai > span { display: flex; flex: 1 1 220px; align-items: center; gap: 8px; min-width: 0; }
.wk-search-ai > span .wk-icon { color: #e7b6f0; }
.wk-search-ai a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--wk-border-2); border-radius: 8px; background: var(--wk-surface-2); color: #e8deed; font-size: 12.5px; text-decoration: none; }
.wk-search-ai a:hover, .wk-search-ai a[aria-selected="true"] { border-color: var(--wk-border-hot); color: #fff; }
.wk-search-foot { display: flex; align-items: center; gap: 16px; padding: 9px 16px; border-top: 1px solid var(--wk-border); background: #131115; color: var(--wk-faint); font-size: 12px; }
.wk-search-foot span { display: inline-flex; align-items: center; gap: 6px; }
.wk-search-foot .wk-kbd { height: 20px; padding: 0 5px; font-size: 10.5px; }
.wk-search-foot a { margin-left: auto; color: var(--wk-faint); text-decoration: none; }
.wk-search-foot a:hover { color: #e7b6f0; }

/* ── Landing (/wiki) ─────────────────────────────────────────── */
.wk-hero {
  position: relative;
  padding: calc(var(--daki-nav-h, 92px) + 76px) 0 76px;
  overflow: hidden;
  text-align: center;
  background:
    radial-gradient(95% 80% at 50% -12%, rgba(140, 22, 170, 0.32) 0%, transparent 62%),
    radial-gradient(70% 55% at 82% 0%, rgba(192, 38, 211, 0.14) 0%, transparent 55%),
    linear-gradient(180deg, #1d1327 0%, #160e1f 55%, #111111 100%);
}
.wk-hero-grid { position: absolute; inset: 0; pointer-events: none; background-image: linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px); background-position: center top; background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 15%, transparent 75%); mask-image: radial-gradient(ellipse 70% 75% at 50% 35%, #000 15%, transparent 75%); }
.wk-hero-inner { position: relative; z-index: 1; max-width: 780px; }
.wk-hero .wk-kicker::after { content: ''; width: 22px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #c026d3, rgba(192, 38, 211, 0)); }
.wk-hero-title { margin: 0 0 18px; color: #fff; font: 700 clamp(2.3rem, 5.6vw, 3.8rem)/1.06 'Poppins', sans-serif; letter-spacing: -0.035em; }
.wk-hero-title .wk-accent { filter: drop-shadow(0 2px 18px rgba(192, 38, 211, 0.35)); }
.wk-hero-lead { max-width: 600px; margin: 0 auto 32px; color: rgba(255, 255, 255, 0.72); font-size: 1.13rem; line-height: 1.6; }
.wk-hero-search { display: flex; align-items: center; gap: 12px; width: min(620px, 100%); height: 60px; margin: 0 auto; padding: 0 12px 0 20px; border: 1px solid #4a3a52; border-radius: 16px; background: rgba(21, 19, 23, 0.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: var(--wk-faint); font: 400 16.5px 'Work Sans', sans-serif; text-align: left; cursor: text; box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(192, 38, 211, 0.06); transition: border-color .25s ease, box-shadow .25s ease; }
.wk-hero-search span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-hero-search > .wk-icon { width: 20px; height: 20px; color: #d48ae6; }
.wk-hero-search:hover { border-color: var(--wk-border-hot); box-shadow: 0 20px 50px -20px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(192, 38, 211, 0.12), 0 0 44px -10px rgba(192, 38, 211, 0.5); }
.wk-chips { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; }
.wk-chips > span { margin-right: 2px; color: var(--wk-faint); font-size: 13px; }
.wk-chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px; border: 1px solid var(--wk-border-2); border-radius: 999px; background: rgba(27, 23, 31, 0.72); color: #e8deed; font-size: 13.5px; text-decoration: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.wk-chip .wk-icon { width: 14px; height: 14px; color: #c48cdb; }
.wk-chip:hover { border-color: var(--wk-border-hot); background: #221a27; color: #fff; }

.wk-hero-float { position: absolute; inset: 0; display: none; pointer-events: none; }
.wk-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 13px; border: 1px solid var(--wk-border-2); border-radius: 12px; background: rgba(23, 19, 26, 0.82); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #e8deed; font-size: 13px; box-shadow: 0 16px 40px -18px rgba(0, 0, 0, 0.8); animation: wk-bob 7s ease-in-out infinite; }
.wk-float .wk-icon { width: 15px; height: 15px; color: #c48cdb; }
.wk-float b { color: #86efac; font-weight: 600; }
.wk-float code { padding: 0; border: 0; background: none; color: #ebc5f7; font: 500 12.5px var(--wk-mono); }
.wk-float--1 { top: 36%; left: 6%; }
.wk-float--2 { top: 64%; left: 11%; animation-delay: -2.4s; }
.wk-float--3 { top: 34%; right: 7%; animation-delay: -4.6s; }
.wk-float--4 { top: 62%; right: 11%; animation-delay: -1.2s; }
.wk-float-dot, .wk-mock-live i { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.18), 0 0 12px #4ade80; }
@keyframes wk-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@media (min-width: 1200px) { .wk-hero-float { display: block; } }

.wk-section { padding-top: 76px; }
.wk-section-head { max-width: 640px; margin-bottom: 28px; }
.wk-section-head h2, .wk-bottom h2 { margin: 0 0 10px; color: #fff; font: 700 clamp(1.7rem, 3.4vw, 2.3rem)/1.15 'Poppins', sans-serif; letter-spacing: -0.03em; }
.wk-section-head p { margin: 0; color: var(--wk-muted); }

.wk-start { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 16px; }
.wk-start-card { position: relative; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; min-height: 320px; padding: 24px; overflow: hidden; border: 1px solid var(--wk-border); border-radius: 18px; background: radial-gradient(ellipse at 100% 0%, rgba(118, 9, 145, 0.16), transparent 60%), var(--wk-surface); color: var(--wk-body); text-decoration: none; transition: border-color .25s ease, transform .3s ease, box-shadow .25s ease; }
.wk-start-card:hover { border-color: var(--wk-border-hot); color: var(--wk-body); transform: translateY(-3px); box-shadow: 0 18px 40px -18px rgba(192, 38, 211, 0.5); }
.wk-start-card--quick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); align-items: center; border-color: #4a3a52; }
.wk-start-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid rgba(192, 38, 211, 0.3); border-radius: 12px; background: rgba(192, 38, 211, 0.12); color: #e7b6f0; }
.wk-start-icon .wk-icon { width: 20px; height: 20px; }
.wk-start-card h3 { margin: 16px 0 8px; color: #fff; font: 600 1.3rem/1.25 'Poppins', sans-serif; letter-spacing: -0.02em; }
.wk-start-card p { margin: 0 0 14px; color: var(--wk-muted); font-size: 0.95rem; line-height: 1.6; }
.wk-start-more { display: inline-flex; align-items: center; gap: 6px; color: #e7b6f0; font-size: 14px; font-weight: 500; }
.wk-start-more .wk-icon { width: 15px; height: 15px; transition: transform .2s ease; }
.wk-start-card:hover .wk-start-more .wk-icon { transform: translateX(4px); }

.wk-mock { border: 1px solid #2f2836; border-radius: 12px; background: #121014; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03), 0 18px 40px -24px rgba(0, 0, 0, 0.9); font-size: 12.5px; }
.wk-mock-top { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-bottom: 1px solid #241f28; color: var(--wk-muted); font: 500 12px var(--wk-mono); }
.wk-mock-live { display: inline-flex; align-items: center; gap: 7px; margin-left: auto; color: #86efac; font-family: 'Work Sans', sans-serif; }
.wk-mock-live i { width: 7px; height: 7px; animation: wk-pulse 2s ease-in-out infinite; }
.wk-mock--steps ol { margin: 0; padding: 8px; list-style: none; }
.wk-mock--steps li { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 1px solid transparent; border-radius: 9px; }
.wk-mock--steps li > i { display: grid; place-items: center; flex-shrink: 0; width: 24px; height: 24px; border: 1px solid rgba(74, 222, 128, 0.35); border-radius: 50%; background: rgba(74, 222, 128, 0.08); color: #86efac; }
.wk-mock--steps li > i .wk-icon { width: 12px; height: 12px; }
.wk-mock--steps li.is-active { border-color: #3a2f42; background: #1d1722; }
.wk-mock--steps li.is-active > i { border-color: var(--wk-border-hot); background: #241b29; color: #e7b6f0; animation: wk-ring 2.2s ease-in-out infinite; }
.wk-mock--steps b { display: block; color: #f2edf5; font-size: 13px; font-weight: 500; }
.wk-mock--steps small { display: block; color: var(--wk-faint); font-size: 11.5px; }
.wk-mock-tabs { display: flex; gap: 4px; padding: 6px 8px 0; border-bottom: 1px solid #241f28; }
.wk-mock-tabs span { padding: 5px 10px 7px; color: var(--wk-faint); font: 500 11.5px var(--wk-mono); }
.wk-mock-tabs span.is-on { border-bottom: 2px solid #c026d3; color: #f2edf5; }
.wk-mock--code pre { margin: 0; padding: 12px 14px; color: #e6dfe9; font: 12px/1.75 var(--wk-mono); white-space: pre-wrap; word-break: break-word; }
.wk-mock-out { padding: 9px 14px; border-top: 1px solid #241f28; color: #86efac; font: 12px var(--wk-mono); }
.wk-mock--runtime { padding: 14px; }
.wk-mock-row { display: flex; justify-content: space-between; gap: 10px; color: #e8deed; font-size: 13px; }
.wk-mock-row b { color: #fff; font-weight: 600; }
.wk-mock-row--muted { color: var(--wk-faint); font-size: 11.5px; }
.wk-mock-bar { height: 8px; margin: 10px 0; overflow: hidden; border-radius: 99px; background: #241f28; }
.wk-mock-bar i { display: block; width: 30%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #8c10ae, #e29bf0); box-shadow: 0 0 12px rgba(192, 38, 211, 0.6); animation: wk-fill 3.2s cubic-bezier(.4, 0, .2, 1) infinite alternate; }
@keyframes wk-pulse { 50% { opacity: .45; } }
@keyframes wk-ring { 50% { box-shadow: 0 0 0 5px rgba(192, 38, 211, 0.14); } }
@keyframes wk-fill { from { width: 20%; } to { width: 40%; } }

.wk-topics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.wk-topic { display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--wk-border); border-radius: 18px; background: #151217; transition: border-color .25s ease; }
.wk-topic:hover { border-color: #4a3a52; }
.wk-topic-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wk-topic-head h3 { margin: 0; color: #fff; font: 600 1.08rem/1.3 'Poppins', sans-serif; letter-spacing: -0.01em; }
.wk-topic-head small { color: var(--wk-faint); font-size: 12.5px; }
.wk-topic-icon { display: grid; place-items: center; flex-shrink: 0; width: 40px; height: 40px; border: 1px solid rgba(192, 38, 211, 0.28); border-radius: 11px; background: rgba(192, 38, 211, 0.12); color: #e7b6f0; }
.wk-topic-icon .wk-icon { width: 19px; height: 19px; }
.wk-topic > p { margin: 0 0 14px; color: var(--wk-muted); font-size: 0.92rem; line-height: 1.6; }
.wk-topic ul { margin: 0; padding: 0; list-style: none; border-top: 1px solid #221d26; }
.wk-topic li a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 2px; border-bottom: 1px solid #1d1921; color: #ddd6e1; font-size: 14px; text-decoration: none; transition: color .15s ease, padding .2s ease; }
.wk-topic li:last-child a { border-bottom: 0; }
.wk-topic li a .wk-icon { width: 14px; height: 14px; color: #d48ae6; opacity: 0; transform: translateX(-4px); transition: opacity .2s ease, transform .2s ease; }
.wk-topic li a:hover { padding-left: 6px; color: #fff; }
.wk-topic li a:hover .wk-icon { opacity: 1; transform: none; }

.wk-bottom { display: grid; grid-template-columns: 1.15fr 1fr; gap: 16px; }
.wk-help-card, .wk-ai-card { padding: 30px; border: 1px solid var(--wk-border); border-radius: 20px; background: var(--wk-surface); }
.wk-help-card { border-color: #4a3a52; background: radial-gradient(ellipse at 0% 0%, rgba(140, 22, 170, 0.22), transparent 60%), radial-gradient(ellipse at 100% 100%, rgba(192, 38, 211, 0.08), transparent 60%), var(--wk-surface); }
.wk-bottom h2 { font-size: clamp(1.5rem, 2.8vw, 1.9rem); }
.wk-bottom p { margin: 0; color: var(--wk-muted); line-height: 1.65; }
.wk-help-card .wk-help-actions { margin-top: 22px; }
.wk-ai-card code { padding: 0.1em 0.4em; border: 1px solid #2f2836; border-radius: 6px; background: #1c1720; color: #ebc5f7; font: 500 0.86em var(--wk-mono); }
.wk-ai-files { display: grid; gap: 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.wk-ai-files li { display: flex; align-items: center; gap: 8px; padding: 6px; border: 1px solid var(--wk-border-2); border-radius: 13px; background: #1a161d; transition: border-color .2s ease; }
.wk-ai-files li:hover { border-color: var(--wk-border-hi); }
.wk-ai-files a { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; padding: 2px; color: #fff; text-decoration: none; }
.wk-ai-files a > .wk-icon { width: 34px; height: 34px; padding: 8px; border: 1px solid rgba(192, 38, 211, 0.28); border-radius: 9px; background: rgba(192, 38, 211, 0.12); color: #e7b6f0; }
.wk-ai-files b { display: block; font: 600 13.5px var(--wk-mono); }
.wk-ai-files small { display: block; color: var(--wk-faint); font-size: 12px; }
.wk-ai-files .wk-icon-btn { width: 34px; height: 34px; }
.wk-ai-files .wk-icon-btn .wk-icon { width: 15px; height: 15px; }

/* ── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1199.98px) {
  .wk-main { grid-template-columns: minmax(0, 1fr); }
  .wk-toc { display: none; }
  .wk-article { max-width: 820px; }
}

@media (max-width: 991.98px) {
  .wk-layout { grid-template-columns: minmax(0, 1fr); padding-top: 4px; }
  .wk-mobilebar { position: relative; z-index: 2; display: flex; gap: 8px; padding-top: 12px; }
  .wk-mobilebar-nav { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--wk-border-2); border-radius: 12px; background: rgba(27, 23, 31, 0.86); color: #fff; font: 500 14px 'Work Sans', sans-serif; text-align: left; cursor: pointer; }
  .wk-mobilebar-nav > .wk-icon { color: #c48cdb; }
  .wk-mobilebar-nav span { display: flex; flex-direction: column; min-width: 0; overflow: hidden; line-height: 1.25; white-space: nowrap; text-overflow: ellipsis; }
  .wk-mobilebar-nav small { color: var(--wk-faint); font-size: 11.5px; }
  .wk-mobilebar .wk-icon-btn { width: 48px; height: 48px; border-radius: 12px; }

  .wk-sidebar { position: fixed; top: 0; bottom: 0; left: 0; z-index: 1065; width: min(320px, 86vw); height: auto; border-right: 1px solid var(--wk-border-2); background: #141116; box-shadow: 24px 0 60px rgba(0, 0, 0, 0.5); visibility: hidden; transform: translateX(-102%); transition: transform .3s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .3s; }
  .wk-sidebar.is-open { visibility: visible; transform: none; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
  .wk-sidebar-inner { padding: 14px 14px 32px; }
  .wk-drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; color: #fff; font: 400 16px 'Poppins', sans-serif; }
  .wk-drawer-head > span { display: inline-flex; align-items: center; gap: 8px; }
  .wk-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 1060; background: rgba(8, 6, 10, 0.62); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: wk-fade .2s ease-out; }
  .wk-start { grid-template-columns: 1fr 1fr; }
  .wk-start-card--quick { grid-column: 1 / -1; }
  .wk-topics { grid-template-columns: 1fr 1fr; }
  .wk-bottom { grid-template-columns: minmax(0, 1fr); }
}
@keyframes wk-fade { from { opacity: 0; } }

@media (max-width: 640px) {
  .wk-title-row { flex-direction: column; gap: 14px; }
  .wk-pagemenu { margin-top: 0; }
  .wk-pagemenu-list { right: auto; left: 0; }
  .wk-cards, .wk-cards--3 { grid-template-columns: minmax(0, 1fr); }
  .wk-update { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .wk-content .wk-update-label { position: static; }
  .wk-pager { grid-template-columns: minmax(0, 1fr); }
  .wk-hero { padding: calc(var(--daki-nav-h, 84px) + 44px) 0 52px; }
  .wk-hero-search { height: 54px; font-size: 15.5px; }
  .wk-hero-search .wk-kbd { display: none; }
  .wk-start, .wk-topics { grid-template-columns: minmax(0, 1fr); }
  .wk-start-card--quick { grid-template-columns: minmax(0, 1fr); }
  .wk-start-card { min-height: 0; }
  .wk-help-card, .wk-ai-card { padding: 22px; }
  .wk-section { padding-top: 56px; }
}

@media (max-width: 575.98px) {
  .wk-search { align-items: stretch; padding: 0; }
  .wk-search-dialog { width: 100%; max-height: none; border: 0; border-radius: 0; }
  .wk-search-foot { display: none; }
}

@media (hover: none) {
  .wk-anchor { opacity: 0.5; }
  .wk-search-trigger .wk-kbd { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .wk-body *, .wk-body *::before, .wk-body *::after { animation: none !important; transition: none !important; }
}
