:root {
  --brand: #f59e0b;
  --brand-2: #fcd34d;
  --brand-3: #b45309;
  --brand-rgb: 245, 158, 11;
  --brand-2-rgb: 252, 211, 77;
  --brand-3-rgb: 180, 83, 9;
  --brand-soft: rgba(var(--brand-rgb), .14);
  --brand-line: rgba(var(--brand-rgb), .3);
  --blue: #fbbf24;
  --blue-rgb: 251, 191, 36;
  --purple: #f59e0b;
  --bg: #fffaf2;
  --bg-soft: #fff7ed;
  --bg-mute: #ffedd5;
  --surface: rgba(255, 255, 255, .74);
  --surface-solid: #ffffff;
  --surface-strong: rgba(255, 255, 255, .9);
  --text: #3f2a16;
  --text-soft: #6f4d2b;
  --text-mute: #9a7551;
  --border: rgba(180, 83, 9, .17);
  --border-soft: rgba(180, 83, 9, .1);
  --shadow-rgb: 146, 64, 14;
  --shadow: 0 22px 62px rgba(var(--shadow-rgb), .14);
  --shadow-soft: 0 14px 36px rgba(var(--shadow-rgb), .09);
  --code-bg: #fff8ed;
  --code-text: #4a3119;
  --syntax-comment: #a5815d;
  --syntax-keyword: #b45309;
  --syntax-string: #7c6b13;
  --syntax-number: #a16207;
  --syntax-property: #9a3412;
  --syntax-literal: #b45309;
  --syntax-operator: #92400e;
  --doc-mark: rgba(var(--brand-rgb), .18);
  --doc-panel: color-mix(in srgb, var(--surface-solid) 84%, var(--bg-soft));
  --doc-panel-strong: color-mix(in srgb, var(--surface-solid) 92%, var(--brand-soft));
  --doc-table-stripe: color-mix(in srgb, var(--bg-soft) 68%, transparent);
  --doc-bg-pattern-a: rgba(var(--brand-rgb), .045);
  --doc-bg-pattern-b: rgba(var(--brand-2-rgb), .038);
  --h2-gradient: linear-gradient(to right, #fcd34d, #f59e0b, #fcd34d);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #160d05, #1f1307 42%, #2a1a0a 100%);
  --hero-poster-gradient: linear-gradient(135deg, #231405, #3a250d);
  --transition: .2s ease;
  --header-h: 64px;
  --docs-footer-h: 54px;
  --sidebar-w: 286px;
  --outline-w: 240px;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --font: "LXGW WenKai Screen", "LXGW WenKai", Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

html.dark {
  --bg: #1f1307;
  --bg-soft: #2a1a0a;
  --bg-mute: #3a250d;
  --surface: rgba(42, 26, 10, .72);
  --surface-solid: #2a1a0a;
  --surface-strong: rgba(42, 26, 10, .92);
  --text: #fff7e8;
  --text-soft: #f3d2a6;
  --text-mute: #c79c66;
  --border: rgba(var(--brand-2-rgb), .17);
  --border-soft: rgba(var(--brand-2-rgb), .08);
  --shadow: 0 22px 72px rgba(0, 0, 0, .46);
  --shadow-soft: 0 16px 42px rgba(0, 0, 0, .34);
  --code-bg: #321f0c;
  --code-text: #ffe6bf;
  --syntax-comment: #b89467;
  --syntax-keyword: #fbbf24;
  --syntax-string: #fcd34d;
  --syntax-number: #fed7aa;
  --syntax-property: #fdba74;
  --syntax-literal: #fde68a;
  --syntax-operator: #fcd34d;
  --doc-mark: rgba(var(--brand-2-rgb), .18);
  --doc-panel: color-mix(in srgb, var(--surface-solid) 80%, var(--bg-soft));
  --doc-panel-strong: color-mix(in srgb, var(--surface-solid) 88%, var(--brand-soft));
  --doc-table-stripe: color-mix(in srgb, var(--bg-soft) 74%, transparent);
  --doc-bg-pattern-a: rgba(var(--brand-rgb), .052);
  --doc-bg-pattern-b: rgba(var(--brand-2-rgb), .04);
}

html[data-palette="cherry"] {
  --brand: #aa1111;
  --brand-2: #ffa6a6;
  --brand-3: #9a0036;
  --brand-rgb: 170, 17, 17;
  --brand-2-rgb: 255, 166, 166;
  --brand-3-rgb: 154, 0, 54;
  --blue: #ea68b6;
  --blue-rgb: 234, 104, 182;
  --purple: #b41919;
  --bg: #fff8f8;
  --bg-soft: #fff0f1;
  --bg-mute: #ffe1e4;
  --text: #331016;
  --text-soft: #6d303d;
  --text-mute: #9b6470;
  --border: rgba(170, 17, 17, .17);
  --border-soft: rgba(170, 17, 17, .1);
  --shadow-rgb: 154, 0, 54;
  --code-bg: #fff5f5;
  --code-text: #471118;
  --syntax-comment: #a07178;
  --syntax-keyword: #9a0036;
  --syntax-string: #8f3f00;
  --syntax-number: #b41919;
  --syntax-property: #aa1141;
  --syntax-literal: #aa1111;
  --syntax-operator: #9a0000;
  --h2-gradient: linear-gradient(to right, #b41919, #ea68b6, #b41919);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 70%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #18050b, #250911 42%, #370e19 100%);
  --hero-poster-gradient: linear-gradient(135deg, #2b080d, #4b111d);
}
html.dark[data-palette="cherry"] {
  --bg: #1d070c;
  --bg-soft: #2a0a12;
  --bg-mute: #3b101b;
  --surface: rgba(42, 10, 18, .72);
  --surface-solid: #2a0a12;
  --surface-strong: rgba(42, 10, 18, .92);
  --text: #fff0f3;
  --text-soft: #f2bcc8;
  --text-mute: #c88796;
  --border: rgba(255, 166, 166, .18);
  --border-soft: rgba(255, 166, 166, .08);
  --code-bg: #320d17;
  --code-text: #ffd9df;
  --syntax-comment: #be858f;
  --syntax-keyword: #ffa6a6;
  --syntax-string: #ffb8c8;
  --syntax-number: #ff8aa9;
  --syntax-property: #ff9ac2;
  --syntax-literal: #ffc2c2;
  --syntax-operator: #ffa6a6;
}

html[data-palette="caramel"] {
  --brand: #f59e0b;
  --brand-2: #fcd34d;
  --brand-3: #b45309;
  --brand-rgb: 245, 158, 11;
  --brand-2-rgb: 252, 211, 77;
  --brand-3-rgb: 180, 83, 9;
  --blue: #fbbf24;
  --blue-rgb: 251, 191, 36;
  --purple: #f59e0b;
  --bg: #fffaf2;
  --bg-soft: #fff7ed;
  --bg-mute: #ffedd5;
  --text: #3f2a16;
  --text-soft: #6f4d2b;
  --text-mute: #9a7551;
  --border: rgba(180, 83, 9, .17);
  --border-soft: rgba(180, 83, 9, .1);
  --shadow-rgb: 146, 64, 14;
  --code-bg: #fff8ed;
  --code-text: #4a3119;
  --syntax-comment: #a5815d;
  --syntax-keyword: #b45309;
  --syntax-string: #7c6b13;
  --syntax-number: #a16207;
  --syntax-property: #9a3412;
  --syntax-literal: #b45309;
  --syntax-operator: #92400e;
  --h2-gradient: linear-gradient(to right, #fcd34d, #f59e0b, #fcd34d);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #160d05, #1f1307 42%, #2a1a0a 100%);
  --hero-poster-gradient: linear-gradient(135deg, #231405, #3a250d);
}
html.dark[data-palette="caramel"] {
  --bg: #1f1307;
  --bg-soft: #2a1a0a;
  --bg-mute: #3a250d;
  --surface: rgba(42, 26, 10, .72);
  --surface-solid: #2a1a0a;
  --surface-strong: rgba(42, 26, 10, .92);
  --text: #fff7e8;
  --text-soft: #f3d2a6;
  --text-mute: #c79c66;
  --border: rgba(252, 211, 77, .17);
  --border-soft: rgba(252, 211, 77, .08);
  --code-bg: #321f0c;
  --code-text: #ffe6bf;
  --syntax-comment: #b89467;
  --syntax-keyword: #fbbf24;
  --syntax-string: #fcd34d;
  --syntax-number: #fed7aa;
  --syntax-property: #fdba74;
  --syntax-literal: #fde68a;
  --syntax-operator: #fcd34d;
}

html[data-palette="forest"] {
  --brand: #11aa63;
  --brand-2: #68eaad;
  --brand-3: #009a52;
  --brand-rgb: 17, 170, 99;
  --brand-2-rgb: 104, 234, 173;
  --brand-3-rgb: 0, 154, 82;
  --blue: #80c3a4;
  --blue-rgb: 128, 195, 164;
  --purple: #43bd84;
  --bg: #f8fff9;
  --bg-soft: #f0fbf4;
  --bg-mute: #ddf3e7;
  --text: #173729;
  --text-soft: #3f6b55;
  --text-mute: #709783;
  --border: rgba(0, 154, 82, .17);
  --border-soft: rgba(0, 154, 82, .1);
  --shadow-rgb: 0, 112, 64;
  --code-bg: #f3fbf6;
  --code-text: #1d4433;
  --syntax-comment: #759784;
  --syntax-keyword: #009a52;
  --syntax-string: #22764a;
  --syntax-number: #0b7d50;
  --syntax-property: #0b8c56;
  --syntax-literal: #11aa63;
  --syntax-operator: #009a52;
  --h2-gradient: linear-gradient(to right, #43bd84, #68eaad, #43bd84);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #06140d, #0b1f15 42%, #102c1e 100%);
  --hero-poster-gradient: linear-gradient(135deg, #082014, #123820);
}
html.dark[data-palette="forest"] {
  --bg: #07190f;
  --bg-soft: #0d2417;
  --bg-mute: #123421;
  --surface: rgba(13, 36, 23, .72);
  --surface-solid: #0d2417;
  --surface-strong: rgba(13, 36, 23, .92);
  --text: #effff5;
  --text-soft: #bde8cf;
  --text-mute: #85b89b;
  --border: rgba(104, 234, 173, .17);
  --border-soft: rgba(104, 234, 173, .08);
  --code-bg: #102c1d;
  --code-text: #d7ffe8;
  --syntax-comment: #82a994;
  --syntax-keyword: #68eaad;
  --syntax-string: #a6f5ce;
  --syntax-number: #7fd8af;
  --syntax-property: #8aeabb;
  --syntax-literal: #b7f7d5;
  --syntax-operator: #68eaad;
}

html[data-palette="mint"] {
  --brand: #3db8bf;
  --brand-2: #80f7c4;
  --brand-3: #089ba3;
  --brand-rgb: 61, 184, 191;
  --brand-2-rgb: 128, 247, 196;
  --brand-3-rgb: 8, 155, 163;
  --blue: #3db8d3;
  --blue-rgb: 61, 184, 211;
  --purple: #72d6c7;
  --bg: #f8fffd;
  --bg-soft: #effbf8;
  --bg-mute: #dff5f0;
  --text: #173033;
  --text-soft: #446468;
  --text-mute: #739094;
  --border: rgba(38, 108, 112, .16);
  --border-soft: rgba(38, 108, 112, .09);
  --shadow-rgb: 8, 99, 103;
  --code-bg: #f3fbf9;
  --code-text: #244246;
  --syntax-comment: #7f9da0;
  --syntax-keyword: #089ba3;
  --syntax-string: #2f8f68;
  --syntax-number: #247ba0;
  --syntax-property: #8b4b80;
  --syntax-literal: #0e9f88;
  --syntax-operator: #128b91;
  --h2-gradient: linear-gradient(to right, #80f7c4, #3db8d3, #80f7c4);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #04100f, #061615 42%, #0b2220 100%);
  --hero-poster-gradient: linear-gradient(135deg, #041c1a, #102b2a);
}
html.dark[data-palette="mint"] {
  --bg: #061615;
  --bg-soft: #0b2220;
  --bg-mute: #10302d;
  --surface: rgba(12, 35, 33, .72);
  --surface-solid: #0b2220;
  --surface-strong: rgba(12, 35, 33, .92);
  --text: #e8fffb;
  --text-soft: #b7d7d3;
  --text-mute: #88aaa7;
  --border: rgba(128, 247, 196, .16);
  --border-soft: rgba(128, 247, 196, .08);
  --code-bg: #0f2927;
  --code-text: #d7fff8;
  --syntax-comment: #7fa9a5;
  --syntax-keyword: #7aeaf0;
  --syntax-string: #80f7c4;
  --syntax-number: #7fc7ff;
  --syntax-property: #f4a8d5;
  --syntax-literal: #b8f7da;
  --syntax-operator: #80f7c4;
}

html[data-palette="sky"] {
  --brand: #3498db;
  --brand-2: #85c1e9;
  --brand-3: #2980b9;
  --brand-rgb: 52, 152, 219;
  --brand-2-rgb: 133, 193, 233;
  --brand-3-rgb: 41, 128, 185;
  --blue: #aed6f1;
  --blue-rgb: 174, 214, 241;
  --purple: #5dade2;
  --bg: #f8fcff;
  --bg-soft: #f0f8ff;
  --bg-mute: #e3f2fb;
  --text: #163145;
  --text-soft: #45667c;
  --text-mute: #7795aa;
  --border: rgba(41, 128, 185, .17);
  --border-soft: rgba(41, 128, 185, .1);
  --shadow-rgb: 26, 82, 118;
  --code-bg: #f5fbff;
  --code-text: #1b4058;
  --syntax-comment: #7795aa;
  --syntax-keyword: #2980b9;
  --syntax-string: #1c7c74;
  --syntax-number: #21618c;
  --syntax-property: #1f618d;
  --syntax-literal: #2874a6;
  --syntax-operator: #1a5276;
  --h2-gradient: linear-gradient(to right, #85c1e9, #3498db, #85c1e9);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #05101c, #081a2b 42%, #102b42 100%);
  --hero-poster-gradient: linear-gradient(135deg, #06182b, #12365a);
}
html.dark[data-palette="sky"] {
  --bg: #071523;
  --bg-soft: #0d2133;
  --bg-mute: #12304b;
  --surface: rgba(13, 33, 51, .72);
  --surface-solid: #0d2133;
  --surface-strong: rgba(13, 33, 51, .92);
  --text: #edf8ff;
  --text-soft: #bfdcf2;
  --text-mute: #8db4cf;
  --border: rgba(133, 193, 233, .17);
  --border-soft: rgba(133, 193, 233, .08);
  --code-bg: #102b42;
  --code-text: #d8efff;
  --syntax-comment: #82a7c0;
  --syntax-keyword: #85c1e9;
  --syntax-string: #a9d8ff;
  --syntax-number: #b6e0ff;
  --syntax-property: #95cdf1;
  --syntax-literal: #ccecff;
  --syntax-operator: #85c1e9;
}

html[data-palette="prussian"] {
  --brand: #1d4e89;
  --brand-2: #6ba3cc;
  --brand-3: #003153;
  --brand-rgb: 29, 78, 137;
  --brand-2-rgb: 107, 163, 204;
  --brand-3-rgb: 0, 49, 83;
  --blue: #6ba3cc;
  --blue-rgb: 107, 163, 204;
  --purple: #4b7fa8;
  --bg: #f8fbff;
  --bg-soft: #f0f6fa;
  --bg-mute: #e1edf5;
  --text: #11263b;
  --text-soft: #415d76;
  --text-mute: #728ca3;
  --border: rgba(0, 49, 83, .17);
  --border-soft: rgba(0, 49, 83, .1);
  --shadow-rgb: 15, 48, 87;
  --code-bg: #f4f9fc;
  --code-text: #193650;
  --syntax-comment: #768ca0;
  --syntax-keyword: #003153;
  --syntax-string: #24606a;
  --syntax-number: #1d4e89;
  --syntax-property: #0f4778;
  --syntax-literal: #1d4e89;
  --syntax-operator: #0f3057;
  --h2-gradient: linear-gradient(to right, #6ba3cc, #1d4e89, #6ba3cc);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #030b13, #071726 42%, #0c2338 100%);
  --hero-poster-gradient: linear-gradient(135deg, #05101d, #0d2b49);
}
html.dark[data-palette="prussian"] {
  --bg: #061421;
  --bg-soft: #0b2033;
  --bg-mute: #102d47;
  --surface: rgba(11, 32, 51, .72);
  --surface-solid: #0b2033;
  --surface-strong: rgba(11, 32, 51, .92);
  --text: #eef7ff;
  --text-soft: #bdd4e7;
  --text-mute: #8da8bd;
  --border: rgba(107, 163, 204, .17);
  --border-soft: rgba(107, 163, 204, .08);
  --code-bg: #102943;
  --code-text: #d8ebfa;
  --syntax-comment: #7d9ab2;
  --syntax-keyword: #6ba3cc;
  --syntax-string: #9dc4df;
  --syntax-number: #b5d5ee;
  --syntax-property: #8eb7d6;
  --syntax-literal: #d5ebff;
  --syntax-operator: #6ba3cc;
}

html[data-palette="sakura"] {
  --brand: #ff7096;
  --brand-2: #ffb7cd;
  --brand-3: #e91e63;
  --brand-rgb: 255, 112, 150;
  --brand-2-rgb: 255, 183, 205;
  --brand-3-rgb: 233, 30, 99;
  --blue: #ffb7cd;
  --blue-rgb: 255, 183, 205;
  --purple: #f48fb1;
  --bg: #fff9fb;
  --bg-soft: #fff0f5;
  --bg-mute: #ffe3ec;
  --text: #411426;
  --text-soft: #7a4057;
  --text-mute: #aa7087;
  --border: rgba(233, 30, 99, .17);
  --border-soft: rgba(233, 30, 99, .1);
  --shadow-rgb: 194, 24, 91;
  --code-bg: #fff5f8;
  --code-text: #55192f;
  --syntax-comment: #ad788d;
  --syntax-keyword: #e91e63;
  --syntax-string: #a94c69;
  --syntax-number: #c2185b;
  --syntax-property: #d81b60;
  --syntax-literal: #ff7096;
  --syntax-operator: #c2185b;
  --h2-gradient: linear-gradient(to right, #ffb7cd, #ff7096, #ffb7cd);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #190811, #260d18 42%, #381423 100%);
  --hero-poster-gradient: linear-gradient(135deg, #2b0a17, #4c1730);
}
html.dark[data-palette="sakura"] {
  --bg: #1f0a13;
  --bg-soft: #2c0f1c;
  --bg-mute: #3e1728;
  --surface: rgba(44, 15, 28, .72);
  --surface-solid: #2c0f1c;
  --surface-strong: rgba(44, 15, 28, .92);
  --text: #fff0f6;
  --text-soft: #f4c1d3;
  --text-mute: #c98ca2;
  --border: rgba(255, 183, 205, .18);
  --border-soft: rgba(255, 183, 205, .08);
  --code-bg: #351223;
  --code-text: #ffdce8;
  --syntax-comment: #c1899e;
  --syntax-keyword: #ffb7cd;
  --syntax-string: #ffc8d8;
  --syntax-number: #ffa4c0;
  --syntax-property: #ff9dbd;
  --syntax-literal: #ffd5e2;
  --syntax-operator: #ffb7cd;
}

html[data-palette="mauve"] {
  --brand: #a06eb4;
  --brand-2: #d8b4e2;
  --brand-3: #6a3f7a;
  --brand-rgb: 160, 110, 180;
  --brand-2-rgb: 216, 180, 226;
  --brand-3-rgb: 106, 63, 122;
  --blue: #d4b6e0;
  --blue-rgb: 212, 182, 224;
  --purple: #ba68c8;
  --bg: #fdfaff;
  --bg-soft: #f7eff9;
  --bg-mute: #f3e5f5;
  --text: #321d3a;
  --text-soft: #634371;
  --text-mute: #9270a0;
  --border: rgba(106, 63, 122, .17);
  --border-soft: rgba(106, 63, 122, .1);
  --shadow-rgb: 94, 53, 177;
  --code-bg: #f9f3fb;
  --code-text: #43254f;
  --syntax-comment: #9676a0;
  --syntax-keyword: #6a3f7a;
  --syntax-string: #7b5b23;
  --syntax-number: #7e57c2;
  --syntax-property: #8e44ad;
  --syntax-literal: #a06eb4;
  --syntax-operator: #5e35b1;
  --h2-gradient: linear-gradient(to right, #d8b4e2, #a06eb4, #d8b4e2);
  --h2-bubble: color-mix(in srgb, var(--brand-2) 72%, #fff);
  --landing-dark-gradient: linear-gradient(180deg, #120817, #1e1026 42%, #2d1838 100%);
  --hero-poster-gradient: linear-gradient(135deg, #1e0b28, #422050);
}
html.dark[data-palette="mauve"] {
  --bg: #180b1f;
  --bg-soft: #251230;
  --bg-mute: #351a44;
  --surface: rgba(37, 18, 48, .72);
  --surface-solid: #251230;
  --surface-strong: rgba(37, 18, 48, .92);
  --text: #fbf0ff;
  --text-soft: #dec2e8;
  --text-mute: #b18ac0;
  --border: rgba(216, 180, 226, .18);
  --border-soft: rgba(216, 180, 226, .08);
  --code-bg: #2f183d;
  --code-text: #f4dcff;
  --syntax-comment: #aa85b7;
  --syntax-keyword: #d8b4e2;
  --syntax-string: #e6c7ee;
  --syntax-number: #c7a0d5;
  --syntax-property: #d4a8e0;
  --syntax-literal: #f0d6f7;
  --syntax-operator: #d8b4e2;
}

* { box-sizing: border-box; }
* {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
*::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}
html {
  min-height: 100%;
  background: var(--bg);
  scroll-behavior: smooth;
  overscroll-behavior-y: none;
}
html.dark {
  background: var(--bg);
}
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background: var(--bg);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
::selection { background: rgba(var(--brand-rgb), .22); }

body.landing-page {
  background:
    radial-gradient(circle at 12% -10%, rgba(var(--brand-rgb), .22), transparent 28rem),
    radial-gradient(circle at 95% 10%, rgba(var(--brand-2-rgb), .18), transparent 30rem),
    linear-gradient(180deg, var(--bg), var(--bg-soft) 34%, var(--bg) 100%);
}
html.dark body.landing-page {
  background:
    radial-gradient(circle at 12% -10%, rgba(var(--brand-rgb), .18), transparent 26rem),
    radial-gradient(circle at 95% 10%, rgba(var(--blue-rgb), .14), transparent 30rem),
    var(--landing-dark-gradient);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  height: var(--header-h);
  border-bottom: 1px solid var(--border-soft);
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.header-inner {
  height: 100%;
  max-width: 1220px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0 24px;
}
.docs-header .header-inner { max-width: none; }
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  font-weight: 700;
  letter-spacing: -.02em;
}
.brand-mark {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 10px 24px rgba(var(--brand-rgb), .28);
  font-size: 16px;
}
.brand-mark-image {
  padding: 0;
  overflow: hidden;
  background: transparent;
}
.brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.brand-name { font-size: 17px; }
.top-nav {
  display: flex;
  align-items: center;
  gap: 3px;
  flex: 1;
}
.top-nav > a,
.nav-group-trigger {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--text-soft);
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 14px;
  line-height: 1;
  transition: color .2s ease, background .2s ease;
}
.top-nav > a:hover,
.nav-group-trigger:hover,
.nav-group:hover > .nav-group-trigger,
.nav-group:focus-within > .nav-group-trigger,
.top-nav > a.active {
  color: var(--brand);
  background: var(--brand-soft);
}
.nav-group {
  position: relative;
  --nav-popover-gap: 12px;
}
.nav-group::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 0;
  width: max(100%, 180px);
  height: var(--nav-popover-gap);
}
.nav-group-trigger::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 6px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-2px);
}
.nav-popover {
  position: absolute;
  z-index: 2;
  top: calc(100% + var(--nav-popover-gap));
  left: 0;
  min-width: 180px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.nav-group:hover .nav-popover,
.nav-group:focus-within .nav-popover {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.nav-popover a {
  display: block;
  padding: 9px 10px;
  border-radius: 10px;
  color: var(--text-soft);
  font-size: 14px;
}
.nav-popover a:hover {
  background: var(--brand-soft);
  color: var(--brand);
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}
.search-button {
  min-width: 164px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-mute);
  padding: 0 10px 0 14px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
}
.search-button:hover { border-color: var(--brand-line); color: var(--text); }
kbd {
  min-width: 36px;
  height: 22px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 1px 6px;
  color: var(--text-mute);
  background: var(--bg-soft);
  font-family: var(--mono);
  font-size: 12px;
  line-height: 18px;
}
.icon-button,
.menu-button {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
}
.icon-button .sun { display: inline; }
.icon-button .moon { display: none; }
html.dark .icon-button .sun { display: none; }
html.dark .icon-button .moon { display: inline; }
.palette-picker {
  position: relative;
  z-index: 70;
}
.palette-trigger {
  position: relative;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface);
  color: var(--text-soft);
  padding: 0 30px 0 12px;
  box-shadow: 0 1px 0 rgba(255,255,255,.08) inset;
  transition: border-color .2s ease, color .2s ease, background .2s ease;
}
.palette-trigger:hover,
.palette-trigger:focus-visible,
.palette-picker.open .palette-trigger {
  outline: 0;
  border-color: var(--brand-line);
  color: var(--text);
}
.palette-trigger::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
}
.palette-picker.open .palette-trigger::after {
  transform: translateY(-30%) rotate(225deg);
}
.palette-swatch {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.palette-current {
  max-width: 132px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 760;
  line-height: 1;
}
.palette-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: max-content;
  min-width: 210px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface-strong) 92%, transparent);
  box-shadow: var(--shadow-soft);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}
.palette-picker.open .palette-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
.palette-option {
  position: relative;
  width: 100%;
  min-height: 36px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  padding: 0 36px 0 12px;
  text-align: left;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 720;
}
.palette-option:hover,
.palette-option:focus-visible,
.palette-option.is-active {
  outline: 0;
  background: var(--brand-soft);
  color: var(--text);
}
.palette-option::before {
  content: "";
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--option-color, var(--brand));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--option-color, var(--brand)) 18%, transparent);
}
.palette-option.is-active::after {
  content: "";
  position: absolute;
  right: 13px;
  top: 50%;
  width: 7px;
  height: 12px;
  border-right: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: translateY(-62%) rotate(45deg);
}
.palette-option[data-palette-value="cherry"] { --option-color: #aa1111; }
.palette-option[data-palette-value="caramel"] { --option-color: #f59e0b; }
.palette-option[data-palette-value="forest"] { --option-color: #11aa63; }
.palette-option[data-palette-value="mint"] { --option-color: #3db8bf; }
.palette-option[data-palette-value="sky"] { --option-color: #3498db; }
.palette-option[data-palette-value="prussian"] { --option-color: #1d4e89; }
.palette-option[data-palette-value="sakura"] { --option-color: #ff7096; }
.palette-option[data-palette-value="mauve"] { --option-color: #a06eb4; }
.menu-button { display: none; flex-direction: column; gap: 4px; }
.menu-button span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}
.mobile-drawer {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  z-index: 55;
  display: none;
  flex-direction: column;
  max-height: calc(100vh - var(--header-h));
  padding: 10px 18px 20px;
  overflow: auto;
  border-bottom: 1px solid var(--border);
  background: var(--surface-strong);
  backdrop-filter: blur(20px);
}
.mobile-drawer.open { display: flex; }
.mobile-drawer a {
  padding: 12px 8px;
  border-radius: 10px;
  color: var(--text-soft);
}
.mobile-drawer a:hover { color: var(--brand); background: var(--brand-soft); }

.hero-section {
  position: relative;
  max-width: 1220px;
  margin: 0 auto;
  padding: 52px 24px 70px;
  overflow: hidden;
}
.hero-bg-glow {
  position: absolute;
  width: 360px;
  height: 360px;
  border-radius: 999px;
  filter: blur(24px);
  opacity: .42;
  pointer-events: none;
}
.hero-bg-glow.one { left: -160px; top: 120px; background: rgba(var(--brand-rgb), .18); }
.hero-bg-glow.two { right: -150px; top: 120px; background: rgba(var(--blue-rgb), .16); }
.media-banner {
  position: relative;
  max-width: 1120px;
  margin: 0 auto 38px;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 30px 90px rgba(15, 23, 42, .24);
}
.media-banner img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-content {
  position: relative;
  max-width: 840px;
  margin: 0 auto;
  text-align: center;
}
.rose-hero {
  max-width: none;
  padding: 0 0 70px;
  overflow: visible;
}
.hero-wide-poster {
  position: relative;
  width: 100vw;
  max-width: none;
  aspect-ratio: 3 / 1;
  margin: 0 calc(50% - 50vw) clamp(38px, 5vw, 66px);
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background:
    radial-gradient(circle at 18% 20%, rgba(var(--brand-rgb), .16), transparent 28%),
    var(--hero-poster-gradient);
  box-shadow: none;
}
.hero-wide-poster::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 4, 10, .18), transparent 34%),
    linear-gradient(180deg, transparent 70%, rgba(8, 4, 10, .16));
}
.hero-wide-poster img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.rose-hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(420px, 1.05fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}
.rose-hero-copy {
  max-width: 620px;
  margin: 0;
  text-align: left;
}
.rose-hero-copy h1 {
  font-size: clamp(52px, 7vw, 92px);
}
.hero-description {
  margin: 22px 0 0;
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
}
.rose-hero-copy .hero-actions {
  justify-content: flex-start;
}
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 24px 0 0;
}
.hero-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  font-size: 13px;
  font-weight: 700;
}
.rose-hero-visual {
  min-width: 0;
}
.home-preview-card {
  padding: 22px;
}
.card-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 13px;
  font-weight: 760;
}
.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.home-poster-stage {
  min-height: 328px;
}
.home-poster-stack {
  height: 254px;
}
.home-preview-card .poster-card {
  border: 0;
  background: transparent;
  box-shadow: 0 20px 46px rgba(35, 44, 58, .16);
}
.home-preview-card.showcase-card-posters:hover .poster-card-front {
  box-shadow: 0 24px 56px rgba(35, 44, 58, .18);
}
.eyebrow,
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--brand);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.eyebrow::before,
.section-kicker::before {
  content: "";
  width: 22px;
  height: 2px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--brand-2));
}
.hero-content h1 {
  margin: 0;
  font-size: clamp(52px, 7vw, 92px);
  line-height: .98;
  letter-spacing: -.06em;
  background: linear-gradient(135deg, var(--text) 8%, var(--brand) 48%, var(--brand-2) 72%, var(--text) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-subtitle {
  margin: 22px auto 0;
  max-width: 680px;
  color: var(--text-soft);
  font-size: clamp(22px, 3.4vw, 36px);
  line-height: 1.24;
  font-weight: 780;
  letter-spacing: -.035em;
}
.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin: 32px 0 0;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:disabled {
  cursor: not-allowed;
  opacity: .56;
  transform: none;
  box-shadow: none;
}
.btn.primary {
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 14px 34px rgba(var(--brand-rgb), .32);
}
.btn.secondary {
  color: var(--brand);
  border-color: var(--brand-line);
  background: var(--brand-soft);
}
.btn.ghost {
  color: var(--text-soft);
  border-color: var(--border);
  background: var(--surface);
}
.btn.danger {
  color: #e5484d;
  border-color: rgba(229, 72, 77, .24);
  background: rgba(229, 72, 77, .08);
}
.btn.small { min-height: 34px; padding: 0 12px; font-size: 13px; }
.hero-note {
  margin: 18px 0 0;
  color: var(--text-mute);
  font-size: 13px;
}
.hero-note + .hero-actions {
  margin-top: 14px;
}

.section-wrap {
  max-width: 1220px;
  margin: 0 auto;
  padding: 84px 24px;
}
.section-heading { max-width: 760px; }
.section-heading.centered { margin: 0 auto 42px; text-align: center; }
.section-heading h2,
.section-copy h2,
.partner-card h2,
.cta-section h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  line-height: 1.16;
  letter-spacing: -.035em;
}
.section-heading p,
.section-copy p,
.partner-card p,
.cta-section p {
  color: var(--text-soft);
  font-size: 16px;
  margin: 16px 0 0;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature-card {
  position: relative;
  min-height: 230px;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 28px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}
.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -50% auto;
  width: 210px;
  height: 210px;
  border-radius: 50%;
  background: var(--brand-soft);
  filter: blur(12px);
}
.feature-card h3 { position: relative; margin: 22px 0 8px; font-size: 21px; letter-spacing: -.02em; }
.feature-card p { position: relative; margin: 0; color: var(--text-soft); }
.feature-icon {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .16), rgba(var(--blue-rgb), .12));
  border: 1px solid var(--border-soft);
}
.feature-icon::before,
.feature-icon::after { content: ""; position: absolute; }
.link-icon::before,
.link-icon::after {
  width: 25px; height: 13px; border: 4px solid var(--blue); border-radius: 999px; transform: rotate(-42deg);
}
.link-icon::before { left: 9px; top: 16px; }
.link-icon::after { right: 9px; bottom: 15px; border-color: var(--brand); }
.archive-icon::before { left: 10px; top: 16px; width: 36px; height: 25px; border: 4px solid var(--blue); border-radius: 6px; }
.archive-icon::after { left: 14px; top: 10px; width: 22px; height: 10px; border-radius: 5px 5px 0 0; background: var(--brand); }
.webhook-icon::before { width: 30px; height: 30px; border: 4px solid var(--brand); border-radius: 50%; left: 13px; top: 13px; }
.webhook-icon::after { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); left: 23px; top: 23px; box-shadow: 20px -9px 0 rgba(var(--blue-rgb), .5), -15px 20px 0 rgba(var(--brand-rgb), .55); }
.cloud-icon::before { left: 9px; top: 23px; width: 38px; height: 18px; border-radius: 18px; background: var(--blue); }
.cloud-icon::after { left: 15px; top: 15px; width: 19px; height: 19px; border-radius: 50%; background: var(--brand); box-shadow: 13px 4px 0 var(--blue); }
.plugin-icon::before { inset: 13px; border-radius: 9px; border: 4px solid var(--blue); }
.plugin-icon::after { width: 11px; height: 11px; border-radius: 3px; background: var(--brand); left: 22px; top: 22px; box-shadow: -15px 0 0 rgba(var(--brand-rgb), .5), 15px 0 0 rgba(var(--blue-rgb), .5), 0 15px 0 rgba(var(--blue-rgb), .5), 0 -15px 0 rgba(var(--brand-rgb), .5); }
.search-icon::before { width: 24px; height: 24px; border: 4px solid var(--blue); border-radius: 50%; left: 13px; top: 12px; }
.search-icon::after { width: 18px; height: 5px; border-radius: 99px; background: var(--brand); left: 31px; top: 34px; transform: rotate(45deg); }

.system-flow-section {
  padding-bottom: 34px;
}
.system-flow-figure {
  max-width: 1120px;
  margin: 32px auto 0;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 14px;
  background: linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
}
.system-flow-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
  background: #fff;
}

.player-compat-section {
  padding-top: 34px;
}
.player-grid {
  --player-card-min-width: 148px;
  --player-grid-columns: 4;
  display: grid;
  grid-template-columns: repeat(var(--player-grid-columns), minmax(0, 1fr));
  gap: 14px;
}
.player-card {
  min-width: 0;
  min-height: 156px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 20px 14px;
  text-align: center;
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    radial-gradient(circle at 50% 0%, var(--brand-soft), transparent 46%);
  box-shadow: var(--shadow-soft);
}
.player-card img {
  width: 68px;
  height: 68px;
  border-radius: 18px;
  object-fit: cover;
  box-shadow:
    0 12px 28px rgba(var(--shadow-rgb), .16),
    0 0 0 1px var(--border-soft);
}
.player-card h3 {
  margin: 2px 0 0;
  font-size: 17px;
  line-height: 1.2;
}
.player-card p {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin: 0;
  border: 1px solid var(--brand-line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 780;
}

.split-section {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  gap: 44px;
  align-items: center;
}
.split-section.reverse .section-copy { order: 2; }
.split-section.reverse > :last-child { order: 1; }
.section-copy { max-width: 630px; }
.rich-list,
.check-list { margin: 26px 0 0; padding: 0; list-style: none; }
.rich-list li {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 14px;
  row-gap: 4px;
  margin: 18px 0;
  color: var(--text-soft);
}
.rich-list li::before {
  grid-column: 1;
  grid-row: 1 / span 2;
  counter-increment: item;
  content: counter(item, decimal-leading-zero);
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}
.rich-list { counter-reset: item; }
.rich-list strong,
.rich-list span {
  grid-column: 2;
  min-width: 0;
}
.rich-list strong { display: block; color: var(--text); margin-bottom: 0; }
.rich-list span {
  display: block;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  line-height: 1.72;
}
.check-list li {
  position: relative;
  padding-left: 28px;
  margin: 12px 0;
  color: var(--text-soft);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .55em;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 0 0 5px var(--brand-soft);
}
.glass-panel {
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, var(--surface-strong), var(--surface)),
    radial-gradient(circle at 20% 0%, var(--brand-soft), transparent 35%);
  box-shadow: var(--shadow);
}
.metric-panel {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 26px;
}
.metric-panel div {
  min-height: 172px;
  display: flex;
  flex-direction: column;
  justify-content: end;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 22px;
  background: var(--bg-soft);
}
.metric-panel span {
  color: var(--brand);
  font-size: 42px;
  line-height: 1;
  font-weight: 820;
  letter-spacing: -.05em;
}
.metric-panel em { color: var(--text-soft); font-style: normal; margin-top: 10px; }
.flow-card {
  min-height: 360px;
  padding: 38px;
  display: grid;
  align-content: center;
  gap: 10px;
}
.flow-step {
  min-height: 66px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border-radius: 18px;
  padding: 10px 20px 10px 14px;
  background: var(--bg-soft);
  border: 1px solid var(--border-soft);
}
.flow-step-label {
  font-weight: 700;
  line-height: 1.3;
}
.flow-step-icon {
  position: relative;
  width: 46px;
  height: 46px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(var(--brand-rgb), .16), rgba(var(--blue-rgb), .12));
  border: 1px solid var(--border-soft);
  box-shadow: inset 0 0 0 1px rgba(var(--brand-2-rgb), .05);
}
.flow-step-icon::before,
.flow-step-icon::after {
  content: "";
  position: absolute;
}
.flow-docker-icon::before {
  left: 10px;
  top: 13px;
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--blue);
  box-shadow:
    9px 0 0 var(--blue),
    18px 0 0 var(--brand),
    0 9px 0 rgba(var(--blue-rgb), .62),
    9px 9px 0 var(--brand);
}
.flow-docker-icon::after {
  left: 9px;
  bottom: 10px;
  width: 28px;
  height: 7px;
  border-radius: 3px 3px 8px 8px;
  background: var(--brand);
}
.flow-pool-icon::before {
  left: 10px;
  top: 10px;
  width: 26px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow:
    0 9px 0 rgba(var(--brand-rgb), .64),
    0 18px 0 rgba(var(--blue-rgb), .72);
}
.flow-pool-icon::after {
  left: 10px;
  top: 15px;
  width: 26px;
  height: 23px;
  border-radius: 0 0 13px 13px;
  border: 3px solid var(--blue);
  border-top: 0;
}
.flow-strm-icon::before {
  left: 13px;
  top: 9px;
  width: 20px;
  height: 28px;
  border: 3px solid var(--blue);
  border-radius: 5px;
  background: linear-gradient(135deg, transparent 0 72%, rgba(var(--brand-rgb), .42) 72%);
}
.flow-strm-icon::after {
  left: 18px;
  top: 19px;
  width: 11px;
  height: 3px;
  border-radius: 99px;
  background: var(--brand);
  box-shadow: 0 7px 0 var(--brand);
}
.flow-play-icon::before {
  inset: 9px;
  border-radius: 50%;
  border: 4px solid var(--blue);
}
.flow-play-icon::after {
  left: 20px;
  top: 15px;
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid var(--brand);
}
.flow-arrow {
  position: relative;
  width: 34px;
  height: 32px;
  margin: -1px auto;
}
.flow-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(var(--brand), rgba(var(--brand-rgb), .26));
  transform: translateX(-50%);
}
.flow-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 5px;
  width: 12px;
  height: 12px;
  border-right: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: translateX(-50%) rotate(45deg);
}
.timeline-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.timeline-grid div,
.timeline-grid a {
  position: relative;
  isolation: isolate;
  min-height: 230px;
  display: block;
  border-radius: 24px;
  border: 1px solid var(--border-soft);
  background: linear-gradient(145deg, var(--surface-strong), var(--surface));
  box-shadow:
    var(--shadow-soft),
    inset -34px -38px 66px rgba(var(--brand-rgb), .07);
  padding: 26px;
  overflow: hidden;
  color: inherit;
}
.timeline-grid div::after,
.timeline-grid a::after {
  content: none;
}
.timeline-grid b,
.timeline-grid h3,
.timeline-grid p {
  position: relative;
  z-index: 1;
}
.timeline-grid b { color: var(--brand); font-size: 13px; letter-spacing: .12em; }
.timeline-grid h3 { margin: 32px 0 8px; font-size: 22px; }
.timeline-grid p { margin: 0; color: var(--text-soft); }
.timeline-grid a:hover {
  border-color: var(--brand-line);
  transform: translateY(-2px);
}
.plugin-cloud {
  min-height: 340px;
  padding: 34px;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  gap: 14px;
}
.plugin-cloud span {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 0 18px;
  background: var(--bg-soft);
  color: var(--text-soft);
  font-weight: 700;
}
.device-stack {
  position: relative;
  min-height: 360px;
  padding: 34px;
}
.device {
  position: absolute;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, var(--bg-soft), var(--surface-solid));
  box-shadow: var(--shadow-soft);
}
.device::before {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  top: 18px;
  height: 18px;
  border-radius: 99px;
  background: linear-gradient(90deg, var(--brand), var(--blue));
  opacity: .28;
}
.device.desktop { width: 70%; height: 62%; right: 8%; top: 13%; }
.device.tablet { width: 42%; height: 54%; left: 12%; bottom: 12%; }
.device.phone { width: 22%; height: 58%; right: 18%; bottom: 7%; border-radius: 26px; }
.partner-section { padding-top: 30px; }
.partner-card {
  padding: clamp(34px, 6vw, 72px);
  text-align: center;
}
.partner-card .section-kicker { justify-content: center; }
.partner-card p { max-width: 720px; margin-left: auto; margin-right: auto; }
.check-list.columns {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  text-align: left;
}
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.testimonial-grid blockquote {
  margin: 0;
  min-height: 230px;
  border: 1px solid var(--border-soft);
  border-radius: 22px;
  padding: 26px;
  background: var(--surface-strong);
  box-shadow: var(--shadow-soft);
}
.testimonial-grid p { margin: 0; color: var(--text-soft); }
.testimonial-grid cite { display: block; margin-top: 22px; color: var(--text); font-style: normal; font-weight: 700; }
.cta-section {
  max-width: 1172px;
  margin: 56px auto 0;
  border: 1px solid var(--border-soft);
  border-radius: 30px;
  padding: clamp(28px, 5vw, 56px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  background:
    radial-gradient(circle at 18% 0%, rgba(var(--brand-rgb), .18), transparent 35%),
    linear-gradient(135deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow);
}
.cta-section h2 { font-size: clamp(26px, 3vw, 38px); }
.site-footer {
  max-width: 1220px;
  margin: 0 auto;
  padding: 54px 24px 70px;
  color: var(--text-mute);
  text-align: center;
  font-size: 14px;
}
.site-footer p { margin: 8px 0; }

/* Docs */
.docs-page,
.admin-page {
  background:
    linear-gradient(135deg, var(--doc-bg-pattern-a) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, var(--doc-bg-pattern-b) 25%, transparent 25%) 0 0 / 24px 24px,
    var(--bg);
}
.docs-page {
  height: 100vh;
  overflow: hidden;
}
.docs-shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr) var(--outline-w);
  height: calc(100vh - var(--header-h) - var(--docs-footer-h));
  min-height: 0;
  overflow: hidden;
}
.doc-sidebar {
  height: 100%;
  min-height: 0;
  border-right: 1px solid var(--border-soft);
  padding: 26px 18px 34px 28px;
  overflow: auto;
  background: var(--bg);
}
.sidebar-nav h2 {
  margin: 0 0 9px;
  padding: 0 12px;
  color: var(--text);
  font-size: 14px;
  font-weight: 780;
}
.sidebar-group { margin: 0 0 22px; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  min-height: 34px;
  margin: 1px 0;
  padding: 6px 12px;
  border-radius: 9px;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.4;
}
.sidebar-nav a:hover { color: var(--brand); background: var(--brand-soft); }
.sidebar-nav a.active {
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 700;
}
.sidebar-separator {
  height: 1px;
  margin: 12px 12px;
  background: var(--border-soft);
}
.doc-main {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 38px 64px 96px;
  overflow: auto;
}
.doc-main > .breadcrumbs,
.doc-main > .vp-doc,
.doc-main > .doc-pager {
  max-width: 792px;
}
.breadcrumbs {
  color: var(--text-mute);
  font-size: 14px;
  margin-bottom: 18px;
}
.breadcrumbs a { color: var(--text-soft); }
.breadcrumbs span { margin: 0 8px; color: var(--text-mute); }
.doc-outline {
  height: 100%;
  min-height: 0;
  padding: 36px 28px 34px 18px;
  overflow: auto;
  border-left: 1px solid var(--border-soft);
  background: var(--bg);
}
.outline-title {
  color: var(--text);
  font-weight: 760;
  font-size: 13px;
  margin-bottom: 11px;
}
.doc-outline a {
  display: block;
  border-left: 1px solid var(--border);
  padding: 5px 0 5px 14px;
  color: var(--text-mute);
  font-size: 13px;
  line-height: 1.45;
}
.doc-outline a.level-3 { padding-left: 26px; }
.doc-outline a:hover,
.doc-outline a.active { color: var(--brand); border-left-color: var(--brand); }
.doc-outline a.release-outline-link {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 0 5px 18px;
  font-weight: 760;
}
.doc-outline a.release-outline-link::before {
  content: "";
  position: absolute;
  left: -4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: var(--surface-solid);
  transform: translateY(-50%);
}
.doc-outline a.release-outline-link:hover::before,
.doc-outline a.release-outline-link.is-latest::before {
  border-color: rgba(var(--brand-rgb), .55);
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.doc-outline a.release-outline-link.is-latest {
  color: var(--brand);
  border-left-color: var(--brand);
}
.vp-doc {
  color: var(--text-soft);
  font-size: 16px;
  line-height: 1.82;
}
.vp-doc .doc-title,
.vp-doc h1 {
  position: relative;
  margin: 0 0 8px;
  color: var(--text);
  font-size: 38px;
  line-height: 1.2;
  letter-spacing: 0;
}
.vp-doc .doc-title::after,
.vp-doc h1::after {
  content: "";
  display: block;
  width: 82px;
  height: 5px;
  margin-top: 16px;
  border-radius: 999px;
  background: var(--h2-gradient);
  box-shadow: 0 0 0 6px var(--doc-mark);
}
.doc-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 34px;
  color: var(--text-mute);
  font-size: 13px;
}
.doc-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 10px;
  background: var(--doc-panel);
}
.vp-doc h2 {
  position: relative;
  width: fit-content;
  max-width: 100%;
  margin: 46px 0 18px;
  border: 0;
  border-radius: 18px 18px 18px 6px;
  padding: 9px 22px 10px;
  color: #fff;
  background: var(--h2-gradient);
  box-shadow:
    0 12px 28px rgba(var(--brand-rgb), .18),
    0 0 0 7px var(--doc-mark);
  font-size: 26px;
  line-height: 1.38;
  letter-spacing: 0;
}
.vp-doc h2::before {
  content: "";
  position: absolute;
  left: 14px;
  bottom: -7px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--h2-bubble);
  box-shadow: 17px -4px 0 rgba(255, 255, 255, .5);
}
.vp-doc h3 {
  position: relative;
  margin: 30px 0 12px;
  padding-left: 18px;
  color: var(--text);
  font-size: 21px;
  letter-spacing: 0;
}
.vp-doc h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-2), var(--brand));
  box-shadow: 0 0 0 5px var(--doc-mark);
}
.vp-doc h4 { color: var(--text); margin: 24px 0 10px; }
.vp-doc p { margin: 17px 0; }
.vp-doc a {
  color: var(--brand);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--brand-line);
  text-underline-offset: 4px;
  transition: color var(--transition), text-decoration-color var(--transition);
}
.vp-doc a:hover {
  color: var(--brand-3);
  text-decoration-color: currentColor;
}
.vp-doc ul,
.vp-doc ol {
  margin: 20px 0;
  padding-left: 0;
  list-style: none;
}
.vp-doc li {
  position: relative;
  margin: 10px 0;
  padding-left: 36px;
}
.vp-doc li + li { margin-top: 10px; }
.vp-doc li > ul,
.vp-doc li > ol {
  margin: 10px 0 3px;
}
.vp-doc ul > li::before {
  content: "";
  position: absolute;
  left: 9px;
  top: .78em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--blue));
  box-shadow: 0 0 0 5px var(--doc-mark);
}
.vp-doc ol {
  counter-reset: doc-ordered;
}
.vp-doc ol > li {
  counter-increment: doc-ordered;
}
.vp-doc ol > li::before {
  content: counter(doc-ordered);
  position: absolute;
  left: 0;
  top: .08em;
  z-index: 1;
  min-width: 26px;
  height: 26px;
  border: 1px solid color-mix(in srgb, var(--brand-line) 74%, var(--border));
  border-radius: 50%;
  color: var(--brand-3);
  background: linear-gradient(180deg, var(--surface-solid), var(--brand-soft));
  font-size: 12px;
  font-weight: 800;
  line-height: 24px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 8px 22px rgba(var(--brand-rgb), .12);
}
.vp-doc ol > li::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 31px;
  bottom: -14px;
  width: 1px;
  background: linear-gradient(180deg, var(--border), transparent);
}
.vp-doc ol > li:last-child::after {
  display: none;
}
.vp-doc strong { color: var(--text); }
.vp-doc img {
  max-width: 100%;
  display: block;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  margin: 26px 0;
  box-shadow: var(--shadow-soft);
}
.vp-doc img.is-previewable {
  cursor: zoom-in;
  transition: transform var(--transition), box-shadow var(--transition), outline-color var(--transition);
}
.vp-doc img.is-previewable:hover {
  transform: translateY(-2px);
  box-shadow: 0 24px 64px rgba(15, 23, 42, .16);
}
.vp-doc img.is-previewable:focus-visible {
  outline: 3px solid var(--brand-line);
  outline-offset: 5px;
}
.vp-doc img[src$="assets/images/donation.png"],
.vp-doc img[src$="/donation.png"] {
  width: min(360px, 100%);
  height: auto;
  margin: 22px auto 28px;
  border-radius: 16px;
}
.doc-main-release {
  max-width: none;
}
.doc-main-release > .breadcrumbs,
.doc-main-release > .vp-doc,
.doc-main-release > .doc-pager {
  max-width: 992px;
}
.release-notes-doc {
  color: var(--text-soft);
}
.release-timeline {
  position: relative;
  display: grid;
  gap: 30px;
  margin-top: 22px;
}
.release-timeline::before {
  content: "";
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: calc(122px + 18px + 18px);
  width: 2px;
  background: linear-gradient(180deg, rgba(var(--brand-rgb), .34), rgba(var(--brand-rgb), .12) 22%, var(--border-soft) 100%);
}
.release-item {
  position: relative;
  display: grid;
  grid-template-columns: 122px 36px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}
.release-version-wrap {
  display: flex;
  justify-content: flex-end;
  padding-top: 4px;
}
.release-version {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 15px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
  font-size: .94rem;
  font-weight: 760;
}
.release-item.is-latest .release-version {
  color: #fff;
  border-color: rgba(var(--brand-2-rgb), .38);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 16px 34px rgba(var(--brand-rgb), .22);
}
.release-marker {
  position: relative;
  display: flex;
  justify-content: center;
  padding-top: 10px;
}
.release-dot {
  width: 14px;
  height: 14px;
  border: 4px solid var(--bg);
  border-radius: 50%;
  background: var(--surface-solid);
  box-shadow:
    0 0 0 1px var(--border),
    0 0 0 10px var(--brand-soft);
}
.release-item.is-latest .release-dot {
  width: 20px;
  height: 20px;
  border-width: 5px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow:
    0 0 0 1px var(--brand-line),
    0 0 0 12px var(--brand-soft),
    0 12px 28px rgba(var(--brand-rgb), .2);
}
.release-entry {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 26px;
  padding: 26px 28px;
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--brand-rgb), .1), transparent 24%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
}
.release-entry::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, .3) 50%, transparent 82%);
  transform: translateX(-120%);
  transition: transform .9s ease;
}
html.dark .release-entry::after {
  background: linear-gradient(120deg, transparent 18%, rgba(255, 255, 255, .07) 50%, transparent 82%);
}
.release-entry:hover::after {
  transform: translateX(120%);
}
.release-entry-header {
  display: grid;
  gap: 12px;
}
.vp-doc .release-entry-title {
  margin: 0;
  border-top: 0;
  padding-top: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 1.8vw, 1.36rem);
  line-height: 1.34;
  letter-spacing: -.03em;
}
.release-entry-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-mute);
  font-size: .94rem;
  line-height: 1.5;
}
.release-entry-date::before {
  content: "";
  width: 16px;
  height: 16px;
  border: 1px solid var(--border);
  border-radius: 5px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--brand) 26%, transparent) 0 4px, transparent 4px),
    var(--bg-soft);
}
.release-entry-layout {
  display: grid;
  gap: 22px;
  margin-top: 18px;
}
.release-entry-layout.has-preview {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  align-items: start;
}
.release-entry-body {
  min-width: 0;
}
.release-entry-body > :first-child { margin-top: 0; }
.release-entry-body > :last-child { margin-bottom: 0; }
.release-entry-body p {
  color: var(--text-soft);
}
.release-entry-preview {
  min-width: 0;
}
.release-preview-card {
  height: auto;
  min-height: 0;
  border: 1px solid var(--border-soft);
  border-radius: 24px;
  padding: 20px;
  background:
    radial-gradient(circle at 16% 8%, rgba(var(--brand-rgb), .12), transparent 34%),
    linear-gradient(180deg, var(--surface-strong), var(--surface));
  box-shadow: var(--shadow-soft);
}
.poster-stage {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  min-height: 248px;
  margin-top: 0;
  padding: 8px 6px 2px;
  cursor: zoom-in;
  outline: none;
}
.poster-stage:focus-visible {
  border-radius: 24px;
  box-shadow:
    0 0 0 1px var(--brand-line),
    0 0 0 6px var(--brand-soft);
}
.poster-stack {
  position: relative;
  height: 210px;
  perspective: 1800px;
  perspective-origin: center;
}
.poster-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(100%, 440px);
  aspect-ratio: 1.94 / 1;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 22px;
  background: #111722;
  box-shadow:
    0 28px 54px rgba(0, 0, 0, .28),
    0 0 0 1px rgba(255, 255, 255, .05);
  transform-origin: center;
  transition: transform .28s ease, box-shadow .28s ease, filter .28s ease, opacity .28s ease;
}
.poster-card img,
.release-entry-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.vp-doc .release-entry-preview-image.is-previewable {
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
.vp-doc .release-entry-preview-image.is-previewable:hover {
  transform: none;
  box-shadow: none;
}
.vp-doc .release-entry-preview-image.is-previewable:focus-visible {
  outline-offset: -4px;
}
.poster-card-back {
  z-index: 1;
  opacity: .48;
  filter: saturate(.82) brightness(.84);
  transform: translate(-54%, -46%) rotate(-11deg) scale(.88);
}
.poster-card-middle {
  z-index: 2;
  opacity: .72;
  filter: saturate(.9) brightness(.92);
  transform: translate(-47%, -52%) rotate(7deg) scale(.93);
}
.poster-card-front {
  z-index: 3;
  transform: translate(-50%, -50%) rotate(-2.5deg) scale(1);
}
.showcase-card-posters:hover .poster-card-back {
  opacity: .56;
  transform: translate(-61%, -43%) rotate(-13deg) scale(.88);
}
.showcase-card-posters:hover .poster-card-middle {
  opacity: .8;
  transform: translate(-42%, -54%) rotate(10deg) scale(.94);
}
.showcase-card-posters:hover .poster-card-front {
  transform: translate(-49%, -49%) rotate(-1deg) scale(1.02);
  box-shadow:
    0 34px 72px rgba(0, 0, 0, .34),
    0 0 0 1px rgba(255, 255, 255, .05);
}
.release-preview-figure {
  width: min(100%, 440px);
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: zoom-in;
}
.release-preview-figure.is-hidden {
  display: none;
}
.release-preview-stage {
  cursor: default;
}
.showcase-card-posters:hover .release-preview-figure.poster-card-front {
  box-shadow: none;
}
.poster-meta {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 4px;
}
.poster-pill {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  color: var(--text-soft);
  background: var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06);
  font-size: .84rem;
}
.poster-preview {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .32s ease;
}
.poster-preview[hidden] { display: none; }
.poster-preview.is-open {
  opacity: 1;
  pointer-events: auto;
}
.poster-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background:
    radial-gradient(circle at 80% 12%, rgba(var(--brand-rgb), .2), transparent 24%),
    rgba(5, 9, 16, .7);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  opacity: 0;
  transition: opacity .42s ease;
}
.poster-preview.is-open .poster-preview-backdrop {
  opacity: 1;
}
.poster-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(1120px, calc(100vw - 56px));
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 32px;
  background:
    radial-gradient(circle at 20% 18%, rgba(var(--brand-rgb), .16), transparent 24%),
    radial-gradient(circle at 82% 78%, rgba(var(--brand-2-rgb), .12), transparent 24%),
    linear-gradient(180deg, rgba(24, 16, 28, .94), rgba(9, 6, 12, .92));
  box-shadow:
    0 38px 110px rgba(0, 0, 0, .5),
    inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #f9fafb;
  opacity: 0;
  filter: blur(10px);
  transform: perspective(1800px) translate3d(220px, -180px, -820px) scale(.42) rotateX(20deg) rotateY(-18deg) rotateZ(4deg);
  transform-origin: 84% 10%;
  transition: transform .82s cubic-bezier(.16, 1, .3, 1), opacity .56s ease, filter .76s ease;
}
.poster-preview.is-open .poster-preview-dialog {
  opacity: 1;
  filter: blur(0);
  transform: perspective(1800px) translate3d(0, 0, 0) scale(1) rotateX(0) rotateY(0) rotateZ(0);
}
.poster-preview-head,
.poster-preview-foot {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.poster-preview-head { margin-bottom: 18px; }
.poster-preview-copy-wrap { min-width: 0; }
.poster-preview-title {
  margin: 0 0 8px;
  font-size: clamp(1.3rem, 2.1vw, 1.82rem);
  line-height: 1.12;
  letter-spacing: -.04em;
}
.poster-preview-copy {
  margin: 0;
  color: rgba(249, 250, 251, .72);
  line-height: 1.7;
}
.poster-preview-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}
.poster-preview-counter,
.poster-preview-close,
.poster-preview-nav,
.poster-preview-dot {
  border: 1px solid rgba(255, 255, 255, .08);
  background: rgba(255, 255, 255, .05);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.poster-preview-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 70px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(249, 250, 251, .72);
  font-size: .84rem;
}
.poster-preview-close {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #f9fafb;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease;
}
.poster-preview-close:hover,
.poster-preview-nav:hover,
.poster-preview-dot:hover {
  background: rgba(255, 255, 255, .08);
  transform: translateY(-1px);
}
.poster-preview-shell {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.poster-preview-viewport {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .05), rgba(7, 4, 9, .34)),
    rgba(12, 8, 14, .92);
  touch-action: pan-y pinch-zoom;
}
.poster-preview-track {
  display: flex;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform .32s cubic-bezier(.19, 1, .22, 1);
}
.poster-preview.is-dragging .poster-preview-track {
  transition: none;
}
.poster-preview-slide {
  flex: 0 0 100%;
  min-width: 0;
  margin: 0;
  padding: 16px;
}
.poster-preview-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1.94 / 1;
  border-radius: 24px;
  background: rgba(9, 7, 12, .96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .06),
    0 18px 52px rgba(0, 0, 0, .34);
}
.poster-preview-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.poster-preview-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #f9fafb;
  cursor: pointer;
  transition: background .2s ease, transform .2s ease, opacity .2s ease;
}
.poster-preview-nav span {
  display: block;
  font-size: 1.8rem;
  line-height: 1;
}
.poster-preview-nav:disabled {
  opacity: .34;
  cursor: default;
  transform: none;
}
.poster-preview-foot {
  margin-top: 18px;
  justify-content: center;
}
.poster-preview-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.poster-preview-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.poster-preview-dot.is-active {
  border-color: rgba(255, 214, 165, .36);
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  transform: scale(1.12);
}
.markdown-preview {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 28px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .26s ease;
}
.markdown-preview[hidden] { display: none; }
.markdown-preview.is-open {
  opacity: 1;
  pointer-events: auto;
}
.markdown-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  background:
    radial-gradient(circle at 78% 16%, rgba(var(--brand-rgb), .18), transparent 24%),
    rgba(5, 3, 8, .72);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
}
.markdown-preview-dialog {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100vw - 56px));
  max-height: calc(100vh - 56px);
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 30px;
  background:
    radial-gradient(circle at 18% 16%, rgba(var(--brand-rgb), .16), transparent 24%),
    linear-gradient(180deg, rgba(24, 16, 28, .96), rgba(9, 6, 12, .94));
  box-shadow: 0 42px 120px rgba(0, 0, 0, .54), inset 0 1px 0 rgba(255, 255, 255, .06);
  color: #fff;
  opacity: 0;
  transform: translateY(18px) scale(.98);
  transition: opacity .26s ease, transform .26s ease;
}
.markdown-preview.is-open .markdown-preview-dialog {
  opacity: 1;
  transform: translateY(0) scale(1);
}
.markdown-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.markdown-preview-copy-wrap { min-width: 0; }
.markdown-preview-title {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(19px, 2vw, 26px);
  line-height: 1.14;
}
.markdown-preview-copy {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
}
.markdown-preview-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  gap: 12px;
}
.markdown-preview-zoom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 999px;
  background: rgba(255, 255, 255, .06);
}
.markdown-preview-counter,
.markdown-preview-close,
.markdown-preview-zoom-btn,
.markdown-preview-nav {
  border: 1px solid rgba(255, 255, 255, .1);
  background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04);
}
.markdown-preview-counter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 999px;
  color: rgba(255, 255, 255, .72);
  font-size: 13px;
}
.markdown-preview-close {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.markdown-preview-zoom-btn {
  min-width: 42px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 999px;
  color: #fff;
  line-height: 1;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.markdown-preview-zoom-reset {
  min-width: 72px;
  font-variant-numeric: tabular-nums;
}
.markdown-preview-close:hover,
.markdown-preview-zoom-btn:hover,
.markdown-preview-nav:hover {
  background: rgba(255, 255, 255, .1);
  transform: translateY(-1px);
}
.markdown-preview-zoom-btn:disabled,
.markdown-preview-close:disabled,
.markdown-preview-nav:disabled {
  opacity: .34;
  cursor: default;
  transform: none;
}
.markdown-preview-shell {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
}
.markdown-preview.is-single-image .markdown-preview-dialog {
  width: fit-content;
  max-width: calc(100vw - 56px);
}
.markdown-preview.is-single-image .markdown-preview-shell {
  display: flex;
  justify-content: center;
}
.markdown-preview.is-single-image .markdown-preview-frame {
  width: fit-content;
  max-width: 100%;
}
.markdown-preview-frame {
  position: relative;
  display: grid;
  place-items: center;
  min-height: min(60vh, 640px);
  max-height: calc(100vh - 180px);
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(7, 4, 9, .34)),
    rgba(12, 8, 14, .92);
  cursor: zoom-in;
  touch-action: none;
  user-select: none;
}
.markdown-preview-frame.is-zoomed { cursor: grab; }
.markdown-preview-frame.is-dragging { cursor: grabbing; }
.markdown-preview-frame img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 240px);
  width: auto;
  height: auto;
  border-radius: 22px;
  object-fit: contain;
  pointer-events: none;
  transform-origin: center center;
  will-change: transform;
  transition: transform .18s ease;
  box-shadow: 0 24px 58px rgba(0, 0, 0, .36);
}
.markdown-preview-nav {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: #fff;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition), opacity var(--transition);
}
.markdown-preview-nav span {
  display: block;
  font-size: 29px;
  line-height: 1;
}
.vp-doc code {
  font-family: var(--mono);
  font-size: .92em;
  color: var(--brand-3);
  background: color-mix(in srgb, var(--brand-soft) 84%, var(--surface-solid));
  border: 1px solid color-mix(in srgb, var(--brand-line) 52%, transparent);
  border-radius: 6px;
  padding: 2px 6px;
}
.vp-doc pre {
  position: relative;
  overflow: auto;
  margin: 22px 0 26px;
  border: 1px solid color-mix(in srgb, var(--border) 76%, transparent);
  border-radius: 16px;
  padding: 22px 22px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-solid) 34%, transparent), transparent 42px),
    var(--code-bg);
  line-height: 1.6;
  box-shadow: 0 16px 46px rgba(var(--shadow-rgb), .1);
}
.vp-doc pre[data-language] {
  padding-top: 48px;
}
.vp-doc pre[data-language]::before {
  content: attr(data-language);
  position: absolute;
  top: 13px;
  right: 16px;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 3px 9px;
  color: var(--text-mute);
  background: var(--surface-strong);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}
.vp-doc pre::after {
  content: "";
  position: absolute;
  top: 19px;
  left: 20px;
  width: 38px;
  height: 8px;
  background:
    radial-gradient(circle, #ff5f57 0 4px, transparent 4.5px),
    radial-gradient(circle at 19px 4px, #febc2e 0 4px, transparent 4.5px),
    radial-gradient(circle at 34px 4px, #28c840 0 4px, transparent 4.5px);
  opacity: .66;
}
.vp-doc pre code {
  display: block;
  min-width: max-content;
  border: 0;
  padding: 0;
  color: var(--code-text);
  background: transparent;
  white-space: pre;
}
.vp-doc pre .token.comment { color: var(--syntax-comment); font-style: italic; }
.vp-doc pre .token.keyword,
.vp-doc pre .token.tag { color: var(--syntax-keyword); }
.vp-doc pre .token.string { color: var(--syntax-string); }
.vp-doc pre .token.number { color: var(--syntax-number); }
.vp-doc pre .token.property { color: var(--syntax-property); }
.vp-doc pre .token.literal { color: var(--syntax-literal); }
.vp-doc pre .token.operator { color: var(--syntax-operator); }
.vp-doc .mermaid-diagram {
  overflow: auto;
  margin: 26px 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  background:
    linear-gradient(180deg, var(--doc-panel-strong), var(--doc-panel)),
    var(--surface-solid);
  box-shadow: var(--shadow-soft);
}
.vp-doc .mermaid {
  display: flex;
  justify-content: center;
  min-width: 680px;
  color: var(--text);
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre;
}
.vp-doc .mermaid svg {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  font-family: var(--font);
}
.vp-doc .mermaid-diagram.is-rendered .mermaid {
  min-width: 0;
  font-family: var(--font);
  font-size: 1em;
  line-height: normal;
  white-space: normal;
}
.vp-doc .mermaid-diagram.is-loading {
  opacity: .78;
}
.vp-doc .mermaid-diagram.is-error,
.vp-doc .mermaid-diagram.is-unavailable {
  border-color: var(--brand-line);
}
.vp-doc blockquote {
  position: relative;
  margin: 24px 0;
  border: 1px solid var(--brand-line);
  border-left: 5px solid var(--brand);
  border-radius: 16px;
  padding: 16px 20px 16px 22px;
  color: var(--text-soft);
  background:
    linear-gradient(90deg, var(--brand-soft), transparent 64%),
    var(--doc-panel);
  box-shadow: 0 12px 32px rgba(var(--brand-rgb), .08);
}
.vp-doc blockquote p:first-child { margin-top: 0; }
.vp-doc blockquote p:last-child { margin-bottom: 0; }
.vp-doc blockquote strong {
  color: var(--brand-3);
}
.vp-doc hr {
  border: 0;
  height: 1px;
  margin: 38px 0;
  background: linear-gradient(90deg, transparent, var(--border), transparent);
}
.vp-doc table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface-solid);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
}
.vp-doc th,
.vp-doc td {
  border: 0;
  border-bottom: 1px solid var(--border-soft);
  padding: 12px 14px;
}
.vp-doc tr:last-child td { border-bottom: 0; }
.vp-doc th {
  color: var(--text);
  background: linear-gradient(180deg, var(--doc-panel-strong), var(--bg-soft));
  text-align: left;
  font-weight: 800;
}
.vp-doc tbody tr:nth-child(even) td {
  background: var(--doc-table-stripe);
}
.vp-doc table img[src*="assets/images/播放器/"] {
  width: 44px;
  height: 44px;
  min-width: 44px;
  display: inline-block;
  margin: 0;
  border-radius: 12px;
  object-fit: cover;
  vertical-align: middle;
  box-shadow: none;
}
.vp-doc table:has(img[src*="assets/images/播放器/"]) th,
.vp-doc table:has(img[src*="assets/images/播放器/"]) td {
  vertical-align: middle;
}
.custom-block {
  margin: 24px 0;
  border: 1px solid var(--brand-line);
  border-radius: 16px;
  padding: 18px 20px;
  background:
    linear-gradient(180deg, var(--doc-panel-strong), var(--doc-panel)),
    var(--brand-soft);
  box-shadow: 0 14px 36px rgba(var(--shadow-rgb), .1);
}
.custom-block-title {
  margin: 0 0 8px;
  color: var(--brand);
  font-weight: 800;
}
.doc-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 58px;
}
.doc-pager a {
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
  color: var(--text-soft);
  background: var(--surface);
}
.doc-pager a:hover { border-color: var(--brand-line); color: var(--brand); }
.doc-pager .pager-label { display: block; color: var(--text-mute); font-size: 12px; }
.doc-pager .next { text-align: right; }
.docs-footer {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  height: var(--docs-footer-h);
  border-top: 1px solid var(--border-soft);
  color: var(--text-mute);
  padding: 0 24px;
  text-align: center;
  font-size: 13px;
  background:
    linear-gradient(135deg, var(--doc-bg-pattern-a) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(315deg, var(--doc-bg-pattern-b) 25%, transparent 25%) 0 0 / 24px 24px,
    var(--bg);
}
.docs-page .backtop { bottom: calc(var(--docs-footer-h) + 16px); }
.backtop {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 40;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-soft);
  padding: 9px 14px;
  font-size: 13px;
  box-shadow: var(--shadow-soft);
}

/* Admin */
.admin-shell {
  height: calc(100vh - var(--header-h));
  min-height: 0;
  display: grid;
  grid-template-columns: 330px minmax(0, 1fr);
  overflow: hidden;
}
.admin-sidebar {
  height: 100%;
  min-height: 0;
  border-right: 1px solid var(--border-soft);
  padding: 18px;
  overflow: auto;
  background: var(--bg-soft);
}
.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.import-label { cursor: pointer; }
.admin-article-item {
  display: block;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
  padding: 12px 13px;
  margin-bottom: 5px;
}
.admin-article-item strong { display: block; color: var(--text); font-size: 14px; }
.admin-article-item span { display: block; margin-top: 4px; color: var(--text-mute); font-size: 12px; font-family: var(--mono); }
.admin-article-item:hover,
.admin-article-item.active { border-color: var(--brand-line); background: var(--brand-soft); }
.admin-editor {
  height: 100%;
  min-height: 0;
  padding: 26px;
  overflow: auto;
}
.editor-form { max-width: 1480px; margin: 0 auto; }
.form-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}
.editor-form label { display: grid; gap: 7px; color: var(--text-soft); font-weight: 650; font-size: 13px; }
.editor-form input,
.editor-form textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 12px;
  outline: none;
  background: var(--surface-solid);
  color: var(--text);
  padding: 11px 12px;
}
.editor-form input:focus,
.editor-form textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.editor-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 12px 0 18px;
}
.save-state { color: var(--text-mute); font-size: 13px; }
.admin-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, var(--image-panel-w, 330px));
  gap: 18px;
  align-items: start;
  transition: grid-template-columns var(--transition);
}
html.image-panel-collapsed .admin-workbench { grid-template-columns: minmax(0, 1fr) 42px; }
.markdown-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
  min-width: 0;
}
.markdown-editor-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--text-soft);
  font-weight: 650;
  font-size: 13px;
}
.markdown-editor-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.markdown-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}
.markdown-tool {
  width: 32px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-solid);
  color: var(--text-soft);
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform .18s ease;
}
.markdown-tool:hover {
  transform: translateY(-1px);
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand);
}
.markdown-editor-wrap textarea {
  min-height: 620px;
  resize: vertical;
  font-family: var(--mono);
  line-height: 1.65;
}
.preview-wrap {
  min-height: 620px;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-solid);
  overflow: auto;
}
.preview-title {
  position: sticky;
  top: 0;
  z-index: 1;
  border-bottom: 1px solid var(--border-soft);
  background: var(--surface-strong);
  padding: 12px 16px;
  color: var(--text-soft);
  font-weight: 760;
  backdrop-filter: blur(16px);
}
.preview-doc { padding: 16px 22px 44px; }
.preview-doc h1 { margin-top: 0; }
.image-manager {
  position: sticky;
  top: 0;
  contain: layout;
  max-height: calc(100vh - var(--header-h) - 52px);
  min-width: 0;
  overflow: auto;
  border: 1px solid var(--border-soft);
  border-radius: 18px;
  background: var(--surface-solid);
  padding: 14px;
}
html.image-panel-collapsed .image-manager {
  display: grid;
  place-items: start center;
  min-height: 56px;
  padding: 10px 0;
  overflow: hidden;
}
html.image-panel-collapsed .image-manager > :not(.image-manager-head) { display: none; }
html.image-panel-collapsed .image-manager-head {
  justify-content: center;
  margin: 0;
  padding: 0;
}
html.image-panel-collapsed .image-manager-head h2,
html.image-panel-collapsed .image-manager-head .image-api-state { display: none; }
.image-resize-handle {
  position: absolute;
  top: 16px;
  bottom: 16px;
  left: 0;
  z-index: 3;
  width: 12px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  cursor: col-resize;
}
.image-resize-handle::before {
  content: "";
  position: absolute;
  inset: 32px 5px;
  border-radius: 999px;
  background: var(--border);
  opacity: .72;
  transition: background var(--transition), opacity var(--transition), transform var(--transition);
}
.image-resize-handle:hover::before,
.image-resize-handle:focus-visible::before,
html.is-resizing-image-panel .image-resize-handle::before {
  background: var(--brand);
  opacity: 1;
  transform: scaleX(1.4);
}
html.is-resizing-image-panel,
html.is-resizing-image-panel * { cursor: col-resize !important; }
.image-panel-toggle {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface-strong);
  color: var(--text-soft);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform .18s ease;
}
.image-panel-toggle:hover,
.image-panel-toggle:focus-visible {
  transform: translateY(-1px);
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand);
}
.image-manager-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.image-manager-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.image-manager-head h2 {
  margin: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.25;
}
.image-api-state,
.image-empty {
  color: var(--text-mute);
  font-size: 12px;
}
.image-directory-wrap {
  display: grid;
  gap: 7px;
  color: var(--text-soft);
  font-weight: 650;
  font-size: 13px;
}
.image-directory-field {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surface-solid);
  overflow: hidden;
}
.image-directory-field:focus-within {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}
.image-directory-prefix {
  padding-left: 12px;
  color: var(--text-mute);
  font-family: var(--mono);
  font-size: 12px;
  white-space: nowrap;
}
.editor-form .image-directory-field input {
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding-left: 4px;
  font-family: var(--mono);
}
.editor-form .image-directory-field input:focus { box-shadow: none; }
.image-upload-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0;
}
.image-pick-label { cursor: pointer; }
.image-upload-queue {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 12px;
}
.image-queue-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  background: var(--bg-soft);
  color: var(--text-soft);
  padding: 5px 9px;
  font-size: 12px;
}
.image-queue-item small {
  color: var(--text-mute);
  font-size: 11px;
}
.image-gallery {
  display: grid;
  gap: 10px;
}
.image-card {
  margin: 0;
  border: 1px solid var(--border-soft);
  border-radius: 14px;
  background: var(--doc-panel);
  overflow: hidden;
}
.image-card img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  background: var(--bg-mute);
  cursor: zoom-in;
}
.image-card figcaption {
  display: grid;
  gap: 3px;
  padding: 9px 10px 0;
}
.image-card figcaption strong {
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.image-card figcaption span {
  color: var(--text-mute);
  font-size: 12px;
}
.image-card-actions {
  display: flex;
  gap: 8px;
  padding: 10px;
}
.image-card-actions .btn { flex: 1; }
.image-empty {
  border: 1px dashed var(--border);
  border-radius: 14px;
  padding: 18px 12px;
  text-align: center;
  background: var(--bg-soft);
}
.admin-confirm-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}
.admin-confirm-modal[hidden] { display: none; }
.admin-confirm-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(31, 19, 7, .46);
  backdrop-filter: blur(5px);
}
.admin-confirm-dialog {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 14px;
  width: min(440px, 100%);
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--surface-solid);
  box-shadow: 0 24px 82px rgba(0, 0, 0, .28);
  padding: 18px;
}
.admin-confirm-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: rgba(229, 72, 77, .1);
  color: #e5484d;
  font-weight: 900;
}
.admin-confirm-content h2 {
  margin: 0 0 7px;
  color: var(--text);
  font-size: 18px;
  line-height: 1.25;
}
.admin-confirm-content p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.65;
}
.admin-confirm-target {
  margin-top: 8px !important;
  border: 1px solid var(--border-soft);
  border-radius: 10px;
  background: var(--bg-soft);
  color: var(--text) !important;
  padding: 8px 10px;
  overflow-wrap: anywhere;
  font-family: var(--mono);
}
.admin-confirm-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding-top: 4px;
}
.admin-image-preview {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: none;
  padding: 18px;
}
.admin-image-preview.is-open { display: grid; place-items: center; }
.admin-image-preview-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(31, 19, 7, .68);
  backdrop-filter: blur(7px);
}
.admin-image-preview-dialog {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  width: min(1180px, calc(100vw - 36px));
  height: min(860px, calc(100vh - 36px));
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--surface-solid);
  box-shadow: 0 28px 92px rgba(0, 0, 0, .38);
  padding: 16px;
}
.admin-image-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.admin-image-preview-title {
  margin: 0;
  color: var(--text);
  font-size: 17px;
  line-height: 1.3;
}
.admin-image-preview-meta {
  margin: 3px 0 0;
  color: var(--text-mute);
  font-size: 12px;
  font-family: var(--mono);
  overflow-wrap: anywhere;
}
.admin-image-preview-stage {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  min-height: 0;
}
.admin-image-preview-frame {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
  height: 100%;
  border: 1px solid var(--border-soft);
  border-radius: 16px;
  background: var(--bg-soft);
  overflow: hidden;
}
.admin-image-preview-frame img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}
.admin-image-preview-nav,
.admin-image-preview-close {
  border: 1px solid var(--border);
  background: var(--surface-strong);
  color: var(--text-soft);
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition), color var(--transition), transform .18s ease;
}
.admin-image-preview-nav {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  font-size: 26px;
}
.admin-image-preview-close {
  min-height: 34px;
  border-radius: 999px;
  padding: 0 14px;
  font-weight: 760;
}
.admin-image-preview-nav:hover,
.admin-image-preview-close:hover,
.admin-image-preview-nav:focus-visible,
.admin-image-preview-close:focus-visible {
  transform: translateY(-1px);
  border-color: var(--brand-line);
  background: var(--brand-soft);
  color: var(--brand);
}
.admin-image-preview-nav:disabled {
  cursor: default;
  opacity: .42;
  transform: none;
}

/* Search */
.search-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
}
.search-modal.open { display: block; }
.search-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 9, 16, .52);
  backdrop-filter: blur(4px);
}
.search-dialog {
  position: relative;
  width: min(680px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 56px));
  margin: 9vh auto 0;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface-solid);
  box-shadow: 0 28px 90px rgba(0,0,0,.32);
  overflow: hidden;
}
.search-input-wrap { padding: 14px; border-bottom: 1px solid var(--border-soft); }
.search-input-wrap input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  outline: none;
  background: var(--bg-soft);
  color: var(--text);
  padding: 13px 15px;
}
.search-results { max-height: 520px; overflow: auto; padding: 10px; }
.search-result {
  display: block;
  border-radius: 14px;
  padding: 13px 14px;
  color: var(--text-soft);
}
.search-result:hover,
.search-result.active { background: var(--brand-soft); color: var(--brand); }
.search-result strong { display: block; color: var(--text); }
.search-result span { display: block; color: var(--text-mute); font-size: 13px; }
.search-empty { color: var(--text-mute); padding: 18px 14px; font-size: 14px; }

@media (max-width: 1160px) {
  .top-nav { display: none; }
  .menu-button { display: inline-flex; }
  .palette-current { max-width: 112px; }
  .rose-hero-grid { grid-template-columns: 1fr; }
  .rose-hero-copy {
    max-width: 780px;
    text-align: center;
    margin: 0 auto;
  }
  .rose-hero-copy .hero-actions { justify-content: center; }
  .hero-chips { justify-content: center; }
  .hero-wide-poster {
    aspect-ratio: 3 / 1;
  }
  .rose-hero-visual {
    width: min(760px, 100%);
    margin: 0 auto;
  }
  .docs-shell { grid-template-columns: 260px minmax(0,1fr); }
  .doc-outline { display: none; }
  .doc-main { max-width: none; }
  .doc-main-release { max-width: none; }
  .admin-workbench { grid-template-columns: 1fr; }
  .image-manager {
    position: static;
    contain: none;
    max-height: none;
  }
  .image-resize-handle { display: none; }
  html.image-panel-collapsed .admin-workbench { grid-template-columns: 1fr; }
  html.image-panel-collapsed .image-manager {
    display: grid;
    min-height: 48px;
    place-items: center;
  }
  .release-entry-layout.has-preview { grid-template-columns: minmax(0, 1fr) minmax(260px, 320px); }
  .testimonial-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
}

@media (max-width: 920px) {
  .search-button { display: none; }
  .feature-grid,
  .player-grid,
  .split-section,
  .timeline-grid,
  .admin-shell,
  .admin-workbench,
  .markdown-workbench { grid-template-columns: 1fr; }
  .player-grid {
    --player-grid-columns: 3;
    grid-template-columns: repeat(var(--player-grid-columns), minmax(0, 1fr));
  }
  .split-section.reverse .section-copy,
  .split-section.reverse > :last-child { order: initial; }
  .metric-panel { grid-template-columns: 1fr; }
  .docs-page {
    height: auto;
    min-height: 100vh;
    overflow: auto;
  }
  .docs-shell {
    display: block;
    height: auto;
    min-height: calc(100vh - var(--header-h));
    overflow: visible;
  }
  .doc-sidebar {
    position: static;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--border-soft);
  }
  .doc-main {
    height: auto;
    overflow: visible;
    padding: 32px 24px 72px;
  }
  .docs-footer {
    position: static;
    height: auto;
    padding: 18px 24px;
  }
  .admin-shell { height: auto; overflow: visible; }
  .admin-sidebar { height: auto; max-height: 42vh; border-right: 0; border-bottom: 1px solid var(--border-soft); }
  .admin-editor { height: auto; overflow: visible; }
  .form-grid { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .image-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .release-timeline::before { left: 17px; }
  .release-item {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
  }
  .release-version-wrap {
    grid-column: 2;
    justify-content: flex-start;
    padding-top: 0;
  }
  .release-marker {
    grid-column: 1;
    grid-row: 1 / span 2;
  }
  .release-entry {
    grid-column: 2;
    padding: 24px;
  }
  .release-entry-layout.has-preview { grid-template-columns: 1fr; }
  .release-entry-preview { max-width: 420px; }
  .poster-preview-head { align-items: flex-start; }
  .poster-preview-shell { grid-template-columns: minmax(0, 1fr); }
  .markdown-preview-head {
    display: grid;
    align-items: stretch;
  }
  .markdown-preview-actions {
    flex-wrap: wrap;
    justify-content: space-between;
  }
  .markdown-preview-shell {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
  .markdown-preview-frame {
    grid-column: 1 / -1;
    grid-row: 1;
    min-height: min(52vh, 520px);
  }
  .markdown-preview-nav-prev {
    grid-row: 2;
    justify-self: start;
  }
  .markdown-preview-nav-next {
    grid-row: 2;
    justify-self: end;
  }
  .poster-preview-nav {
    position: absolute;
    z-index: 2;
    top: 50%;
    transform: translateY(-50%);
  }
  .poster-preview-nav:hover { transform: translateY(calc(-50% - 1px)); }
  .poster-preview-nav-prev { left: 10px; }
  .poster-preview-nav-next { right: 10px; }
}

@media (max-width: 640px) {
  :root { --header-h: 58px; }
  .header-inner { padding: 0 16px; gap: 12px; }
  .header-actions { gap: 8px; }
  .brand-name { font-size: 15px; }
  .palette-trigger {
    padding: 0 24px 0 10px;
  }
  .palette-current {
    max-width: 92px;
    font-size: 12px;
  }
  .hero-section { padding: 36px 16px 48px; }
  .rose-hero { padding-top: 42px; }
  .section-wrap { padding: 58px 16px; }
  .feature-grid,
  .player-grid,
  .timeline-grid,
  .testimonial-grid,
  .check-list.columns,
  .doc-pager,
  .form-grid { grid-template-columns: 1fr; }
  .player-grid {
    --player-grid-columns: 2;
    grid-template-columns: repeat(var(--player-grid-columns), minmax(0, 1fr));
  }
  .player-card {
    min-height: 146px;
    padding: 18px 10px;
  }
  .markdown-editor-head {
    display: grid;
    align-items: start;
  }
  .markdown-toolbar { justify-content: flex-start; }
  .image-gallery { grid-template-columns: 1fr; }
  .image-directory-field { grid-template-columns: 1fr; }
  .image-directory-prefix { padding: 10px 12px 0; }
  .editor-form .image-directory-field input { padding-left: 12px; }
  .section-heading h2,
  .section-copy h2,
  .partner-card h2 { font-size: 28px; }
  .hero-subtitle { font-size: 24px; }
  .hero-content h1 { font-size: 48px; }
  .rose-hero-copy h1 { font-size: 46px; }
  .hero-description { font-size: 16px; }
  .hero-wide-poster {
    aspect-ratio: 3 / 1;
    margin-bottom: 32px;
  }
  .home-preview-card { padding: 14px; }
  .home-poster-stage { min-height: 238px; }
  .home-poster-stack { height: 188px; }
  .system-flow-figure {
    margin-top: 24px;
    border-radius: 18px;
    padding: 8px;
  }
  .system-flow-figure img { border-radius: 12px; }
  .cta-section { margin: 20px 16px 0; flex-direction: column; align-items: stretch; }
  .doc-main { padding: 28px 18px 62px; }
  .vp-doc .doc-title,
  .vp-doc h1 { font-size: 30px; }
  .vp-doc h2 { font-size: 24px; }
  .release-timeline { gap: 24px; }
  .release-item {
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 12px;
  }
  .release-timeline::before { left: 13px; }
  .release-marker { padding-top: 8px; }
  .release-entry { padding: 20px; border-radius: 20px; }
  .release-preview-card { padding: 14px; border-radius: 20px; }
  .poster-stage { min-height: 220px; }
  .poster-stack { height: 184px; }
  .poster-card { border-radius: 18px; }
  .poster-preview { padding: 12px; }
  .poster-preview-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 24px;
  }
  .poster-preview-head {
    display: grid;
    gap: 12px;
  }
  .poster-preview-actions {
    justify-content: space-between;
    width: 100%;
  }
  .poster-preview-slide { padding: 10px; }
  .poster-preview-viewport,
  .poster-preview-frame { border-radius: 18px; }
  .poster-preview-frame { aspect-ratio: 1.45 / 1; }
  .poster-preview-nav {
    width: 44px;
    height: 44px;
  }
  .markdown-preview { padding: 12px; }
  .markdown-preview-dialog {
    width: calc(100vw - 24px);
    max-height: calc(100vh - 24px);
    padding: 16px;
    border-radius: 24px;
  }
  .markdown-preview-actions { gap: 8px; }
  .markdown-preview-zoom { order: 3; width: 100%; justify-content: space-between; }
  .markdown-preview-frame {
    min-height: min(48vh, 440px);
    padding: 12px;
    border-radius: 18px;
  }
  .markdown-preview-frame img {
    max-height: calc(100vh - 220px);
    border-radius: 18px;
  }
  .markdown-preview-nav {
    width: 44px;
    height: 44px;
  }
  .admin-image-preview { padding: 12px; }
  .admin-image-preview-dialog {
    width: calc(100vw - 24px);
    height: calc(100vh - 24px);
    padding: 12px;
  }
  .admin-image-preview-head { display: grid; }
  .admin-image-preview-stage {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .admin-image-preview-frame {
    grid-column: 1 / -1;
    grid-row: 1;
  }
  .admin-image-preview-nav-prev {
    grid-row: 2;
    justify-self: start;
  }
  .admin-image-preview-nav-next {
    grid-row: 2;
    justify-self: end;
  }
  .admin-editor { padding: 18px; }
  .backtop { display: none; }
}

@media (max-width: 390px) {
  .palette-current { max-width: 74px; }
}

.error-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 48px 20px;
  text-align: center;
}
.error-page h1 {
  margin: 0;
  font-size: clamp(44px, 8vw, 88px);
  line-height: 1;
  letter-spacing: -.06em;
}
.error-page p { margin: 0 0 8px; color: var(--text-soft); }
