/* XueWu technical / cyber theme. Article content stays in the wiki. */
:root {
  color-scheme: light;
  --xw-page: #eef3f7;
  --xw-surface: #ffffff;
  --xw-panel: #f5f8fb;
  --xw-table-head: #e8f1f7;
  --xw-ink: #354b60;
  --xw-heading: #142c42;
  --xw-muted: #586d82;
  --xw-link: #16718b;
  --xw-link-hover: #07536c;
  --xw-border: #c9d7e3;
  --xw-hover: #087b960b;
  --xw-gold: #8b682f;
  --xw-code-bg: #f5f9fc;
  --xw-code-ink: #245e77;
  --xw-article-accent: #087b96;
  --xw-hero-start: #0b1929;
  --xw-hero-end: #133349;
  --xw-logo: url(assets/xuewu-cyber-logo-v2.webp?v=1.0.1);
  --xw-accent: #087b96;
  --xw-accent-soft: #087b9610;
  --xw-grid: #264c7009;
  --xw-line-strong: #8db8c8;
  --xw-tab-fill: #087b9614;
  --xw-tab-edge: #087b9652;
  --xw-tab-glow: #087b9624;
  --xw-tab-sheen: #ffffffa0;
  --xw-tab-violet: #7257c9;
}
:root[data-xuewu-theme="dark"] {
  color-scheme: dark;
  --xw-page: #0a101a;
  --xw-surface: #101b29;
  --xw-panel: #111f2e;
  --xw-table-head: #152a3b;
  --xw-ink: #c1d0df;
  --xw-heading: #edf6fc;
  --xw-muted: #8ea6bc;
  --xw-link: #76cfe7;
  --xw-link-hover: #b7ecf5;
  --xw-border: #294153;
  --xw-hover: #5cd6ee0c;
  --xw-gold: #d6b981;
  --xw-code-bg: #0a1521;
  --xw-code-ink: #a6dfee;
  --xw-article-accent: #5cd6ee;
  --xw-hero-start: #0b1929;
  --xw-hero-end: #123044;
  --xw-logo: url(assets/xuewu-cyber-logo-v2.webp?v=1.0.1);
  --xw-accent: #5cd6ee;
  --xw-accent-soft: #5cd6ee10;
  --xw-grid: #577b990b;
  --xw-line-strong: #3c7a90;
  --xw-tab-fill: #5cd6ee18;
  --xw-tab-edge: #5cd6ee58;
  --xw-tab-glow: #36cfff38;
  --xw-tab-sheen: #c2faff50;
  --xw-tab-violet: #aa8dff;
}
html:root body.skin-monobook { background: var(--xw-page); color: var(--xw-ink); }
html:root .mw-body, html:root body #content.mw-body { background: var(--xw-surface); color: var(--xw-ink); border-color: var(--xw-border); }
html:root .mw-body h1, html:root .mw-body h2, html:root .mw-body h3,
html:root .mw-body h4, html:root .mw-body h5 { color: var(--xw-heading); border-color: var(--xw-border); }
html:root .mw-body a:not(.new), html:root #column-one a:not(.new),
html:root #footer a:not(.new) { color: var(--xw-link); }
html:root .mw-body a:not(.new):hover, html:root #column-one a:not(.new):hover { color: var(--xw-link-hover); }
:root[data-xuewu-theme="dark"] .mw-body a.new,
:root[data-xuewu-theme="dark"] #column-one a.new { color: #f3a0a0; }
html:root #column-one .portlet h3, html:root #siteSub,
html:root #contentSub, html:root #footer { color: var(--xw-muted); }
html:root #column-one .pBody { background: transparent; border: 0; }
html:root #p-personal, html:root #p-cactions { background: transparent; }
html:root #p-cactions li, html:root #p-cactions li a { background: transparent; border: 0; }
html:root #p-cactions li.selected, html:root #p-cactions li.selected a { background: transparent; border: 0; }
html:root #p-logo a.mw-wiki-logo { background-image: var(--xw-logo); }
html:root .tlbb-wiki-home .home-crest { background-image: var(--xw-logo); }
html:root #footer { background: transparent; border-color: var(--xw-border); }
html:root input[type="search"], html:root input[type="text"], html:root input[type="password"],
html:root textarea, html:root select { background: var(--xw-surface); color: var(--xw-ink); border-color: var(--xw-border); }
html:root input::placeholder, html:root textarea::placeholder { color: var(--xw-muted); opacity: 1; }
html:root .mw-body pre, html:root .mw-body code {
  background: var(--xw-code-bg);
  color: var(--xw-code-ink);
  border: 0;
  border-radius: 5px;
}
html:root .mw-body table.wikitable { background: transparent; color: var(--xw-ink); border: 0; }
html:root .mw-body table.wikitable th { background: var(--xw-table-head); color: var(--xw-heading); border: 0; border-bottom: 1px solid var(--xw-border); }
html:root .mw-body table.wikitable td { border: 0; border-bottom: 1px solid var(--xw-border); }
html:root .mw-body .toc, html:root .mw-body #toc, html:root .mw-body .catlinks {
  background: var(--xw-panel); color: var(--xw-ink); border-color: var(--xw-border);
}
html:root .lua-reference { color: var(--xw-ink); }
html:root .lua-reference .lua-title, html:root .lua-reference .lua-h1 { color: var(--xw-article-accent); }
html:root .lua-reference .lua-sub, html:root .lua-reference .lua-sub-lg,
html:root .lua-reference .lua-muted, html:root .lua-reference .lua-note { color: var(--xw-muted); }
html:root .lua-reference .lua-warn { color: var(--xw-gold); }
html:root .lua-reference .lua-rule, html:root .lua-reference .lua-note,
html:root .lua-reference .lua-index-head { border-bottom-color: var(--xw-border); }
html:root .tlbb-wiki-home { color: var(--xw-ink); }
html:root .tlbb-wiki-home .home-hero { background: linear-gradient(115deg, var(--xw-hero-start), var(--xw-hero-end)); }
html:root .tlbb-wiki-home .home-h2, html:root .tlbb-wiki-home .home-h3,
html:root .tlbb-wiki-home .home-footer-brand { color: var(--xw-heading); }
html:root .tlbb-wiki-home .home-card, html:root .tlbb-wiki-home .home-panel,
html:root .tlbb-wiki-home .home-links {
  background: var(--xw-panel); border-color: var(--xw-border);
}
html:root .tlbb-wiki-home .home-card:hover { background: var(--xw-table-head); border-color: var(--xw-muted); }
html:root .tlbb-wiki-home .home-card p, html:root .tlbb-wiki-home .home-section-caption,
html:root .tlbb-wiki-home .home-note, html:root .tlbb-wiki-home .home-code,
html:root .tlbb-wiki-home .home-footer { color: var(--xw-muted); }
html:root .tlbb-wiki-home .home-card-label, html:root .tlbb-wiki-home .home-section-no { color: var(--xw-gold); }
html:root .tlbb-wiki-home .home-nav a { color: var(--xw-muted); }
html:root .tlbb-wiki-home .home-nav, html:root .tlbb-wiki-home .home-footer,
html:root .tlbb-wiki-home .home-faq, html:root .tlbb-wiki-home .home-links a { border-color: var(--xw-border); }
html:root .tlbb-wiki-home .home-table td { background: var(--xw-surface); }
html:root .tlbb-wiki-home .home-table tr:nth-child(odd) td { background: var(--xw-panel); }
html:root .tlbb-wiki-home .home-table td::before { color: var(--xw-muted); }
html:root .tlbb-wiki-home .home-btn a { color: #eef4fc; }
html:root .tlbb-wiki-home .home-btn-primary a { color: #1b2b42; }
html:root .tlbb-wiki-home .home-pre { background: #112034; color: #d6e3f2; border-left-color: #bc995d; }
#xuewu-theme-switch {
  position: relative;
  z-index: 6;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
  margin: 0;
  padding: 0;
  color: var(--xw-ink);
  font: 12px/1.4 Arial, "Microsoft YaHei", sans-serif;
}
#p-personal li#pt-xuewu-theme { display: inline-block; margin-left: 6px; padding: 0; border: 0; vertical-align: middle; }
#p-personal li#pt-xuewu-theme:empty { display: none; }
#xuewu-theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 24px;
  height: 24px;
  margin: 0;
  padding: 2px;
  border: 1px solid transparent;
  border-radius: 5px;
  background: transparent;
  color: var(--xw-link);
  cursor: pointer;
}
#xuewu-theme-toggle:hover { background: var(--xw-panel); border-color: var(--xw-border); }
#xuewu-theme-switch button:focus-visible { outline: 2px solid var(--xw-gold); outline-offset: 2px; }
#xuewu-theme-switch.xuewu-theme-fallback { position: absolute; top: 5px; right: 16px; }
@media (max-width: 620px) {
  html:root .tlbb-wiki-home .home-table tr { background: var(--xw-panel); border-color: var(--xw-border); }
  html:root .tlbb-wiki-home .home-table td, html:root .tlbb-wiki-home .home-table tr:nth-child(odd) td { background: transparent; }
}
@media (max-width: 550px) {
  html:root body.skin-monobook.skin--responsive #sidebar #p-search.xuewu-theme-search { display: flex; align-items: center; gap: 6px; overflow: visible; }
  body.skin-monobook.skin--responsive #p-search.xuewu-theme-search #searchBody { flex: 1; min-width: 0; }
  body.skin-monobook.skin--responsive #p-search #xuewu-theme-switch { flex: 0 0 auto; }
  body.skin-monobook.skin--responsive #p-search #xuewu-theme-toggle { width: 32px; height: 35px; padding: 6px; border-color: var(--xw-border); background: var(--xw-surface); }
}

/* Technical reading surface: ruled hierarchy, terminal code, and precise panels. */
@media screen {
  html:root body.skin-monobook {
    font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", sans-serif;
    background-image: radial-gradient(ellipse at 88% 0, var(--xw-accent-soft), transparent 42%), linear-gradient(var(--xw-grid) 1px, transparent 1px), linear-gradient(90deg, var(--xw-grid) 1px, transparent 1px);
    background-size: auto, 56px 56px, 56px 56px;
    background-attachment: fixed;
  }
  html:root body.skin-monobook #content.mw-body {
    padding: 28px clamp(20px, 4vw, 64px) 40px;
    border: 0;
    border-radius: 0;
    background: transparent;
  }
  html:root body.skin-monobook #firstHeading,
  html:root body.skin-monobook #bodyContent,
  html:root body.skin-monobook #contentSub {
    max-width: 1080px;
    margin-left: auto;
    margin-right: auto;
  }
  html:root body.skin-monobook #firstHeading {
    margin-top: 0;
    position: relative;
    margin-bottom: 18px;
    padding: 0 0 16px;
    border-bottom: 1px solid var(--xw-border);
    font-family: Consolas, "Segoe UI", "Microsoft YaHei", monospace;
    font-size: 25px;
    font-weight: 600;
    line-height: 1.5;
    overflow-wrap: anywhere;
  }
  html:root body.skin-monobook #bodyContent { font-size: 14px; line-height: 1.85; }
  html:root body.skin-monobook #firstHeading::after {
    content: "";
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 68px;
    height: 2px;
    background: var(--xw-accent);
    box-shadow: 0 0 10px var(--xw-accent-soft);
  }
  html:root body.skin-monobook .lua-reference { max-width: 1080px; line-height: 1.85; }
  html:root body.skin-monobook .lua-reference > p:first-child { font-size: 12px; color: var(--xw-muted); }
  html:root body.skin-monobook .lua-reference .lua-rule { border-bottom: 1px solid var(--xw-border); }
  html:root body.skin-monobook .lua-reference .lua-lead {
    margin: 14px 0 26px;
    padding: 12px 16px;
    border-left: 2px solid var(--xw-accent);
    border-top: 0;
    background: linear-gradient(90deg, var(--xw-accent-soft), transparent);
    color: var(--xw-heading);
  }
  html:root body.skin-monobook .lua-reference .lua-index-head { padding: 16px 0; border-top: 2px solid var(--xw-accent); }
  html:root body.skin-monobook .mw-body .mw-heading2,
  html:root body.skin-monobook .mw-body .mw-heading3 { display: flex; align-items: center; gap: 12px; margin: 28px 0 14px; padding: 0; border: 0; }
  html:root body.skin-monobook .mw-body h2,
  html:root body.skin-monobook .mw-body h3 { border: 0; font-family: inherit; font-weight: 600; line-height: 1.5; }
  html:root body.skin-monobook .mw-body h2 { font-size: 18px; letter-spacing: .02em; }
  html:root body.skin-monobook .mw-body h3 { font-size: 17px; }
  html:root body.skin-monobook .mw-body .mw-heading h2,
  html:root body.skin-monobook .mw-body .mw-heading h3 { margin: 0; padding: 0; }
  html:root body.skin-monobook .lua-reference .mw-heading2::before {
    content: "//";
    color: var(--xw-accent);
    font: 15px/1 Consolas, monospace;
  }
  html:root body.skin-monobook .lua-reference .mw-heading2::after,
  html:root body.skin-monobook .tlbb-wiki-home .home-h2::after {
    content: "";
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, var(--xw-line-strong), var(--xw-border));
  }
  html:root body.skin-monobook .lua-reference pre { position: relative; padding: 46px 20px 20px; border: 1px solid var(--xw-border); border-radius: 5px; font-family: Consolas, "Cascadia Code", monospace; font-size: 13px; line-height: 1.85; box-shadow: inset 2px 0 var(--xw-line-strong); }
  html:root body.skin-monobook .lua-reference pre::before {
    content: "LUA";
    position: absolute;
    inset: 0 0 auto;
    box-sizing: border-box;
    height: 29px;
    padding: 5px 14px;
    border-bottom: 1px solid var(--xw-border);
    border-radius: 4px 4px 0 0;
    background: var(--xw-panel);
    color: var(--xw-muted);
    font: 10px/18px Consolas, monospace;
    letter-spacing: .16em;
  }
  html:root body.skin-monobook .lua-reference pre::after {
    content: "";
    position: absolute;
    top: 12px;
    right: 14px;
    width: 4px;
    height: 4px;
    background: var(--xw-line-strong);
    box-shadow: -9px 0 var(--xw-border), -18px 0 var(--xw-border);
  }
  html:root body.skin-monobook .lua-reference code { padding: 2px 5px; border: 1px solid var(--xw-border); border-radius: 3px; font-family: Consolas, "Cascadia Code", monospace; font-size: .92em; }
  html:root body.skin-monobook .mw-body table.wikitable th,
  html:root body.skin-monobook .mw-body table.wikitable td { padding: 13px 14px; }
  html:root body.skin-monobook .mw-body table.wikitable th { font-size: 12px; font-weight: 600; color: var(--xw-link); letter-spacing: .04em; }
  html:root body.skin-monobook .mw-body table.wikitable { border: 1px solid var(--xw-border); background: var(--xw-surface); }
  html:root body.skin-monobook .mw-body table.wikitable :is(th, td) + :is(th, td) { border-left: 1px solid var(--xw-border); }
  html:root body.skin-monobook .mw-body table.wikitable tr:nth-child(odd) td { background: var(--xw-hover); }
  html:root body.skin-monobook .mw-body table.wikitable tr:hover td { background: var(--xw-accent-soft); }
  html:root body.skin-monobook #p-personal .pBody,
  html:root body.skin-monobook #p-cactions .pBody { background: transparent; border: 0; }
  html:root body.skin-monobook #p-cactions li { margin: 0 4px 0 0; padding: 0; border: 0; }
  html:root body.skin-monobook #p-cactions li a {
    display: inline-block;
    padding: 5px 9px;
    border: 0;
    border-radius: 3px;
    background: transparent;
    color: var(--xw-muted);
  }
  html:root body.skin-monobook #p-cactions li a:hover,
  html:root body.skin-monobook #p-cactions li.selected a {
    background: var(--xw-hover);
    color: var(--xw-link);
    box-shadow: inset 0 -2px var(--xw-accent);
  }
  html:root body.skin-monobook #footer { border-top: 1px solid var(--xw-border); color: var(--xw-muted); }
  /* Discussion-page introduction and feedback example share the theme palette. */
  html:root body.skin-monobook .xuewu-talk-intro {
    max-width: 1000px;
    margin: 0 auto;
    color: var(--xw-ink);
    font-size: 14px;
    line-height: 1.8;
    overflow-wrap: anywhere;
  }
  html:root body.skin-monobook .xuewu-talk-panel {
    position: relative;
    padding: 20px 22px;
    border: 1px solid var(--xw-border);
    border-left: 3px solid var(--xw-accent);
    border-radius: 5px;
    background: linear-gradient(120deg, var(--xw-panel), var(--xw-surface));
  }
  html:root body.skin-monobook .xuewu-talk-panel::after {
    content: "";
    position: absolute;
    top: 9px;
    right: 9px;
    width: 9px;
    height: 9px;
    border-top: 1px solid var(--xw-tab-violet);
    border-right: 1px solid var(--xw-tab-violet);
    pointer-events: none;
  }
  html:root body.skin-monobook .xuewu-talk-kicker { color: var(--xw-muted); font: 12px/1.8 Consolas, "Microsoft YaHei", monospace; }
  html:root body.skin-monobook .xuewu-talk-title { margin: 5px 0 8px; color: var(--xw-heading); font-size: 24px; font-weight: 600; line-height: 1.4; }
  html:root body.skin-monobook .xuewu-talk-summary { color: var(--xw-ink); }
  html:root body.skin-monobook .xuewu-talk-links { margin-top: 12px; color: var(--xw-muted); font-size: 13px; }
  html:root body.skin-monobook .mw-body pre.xuewu-talk-example {
    margin: 10px 0;
    padding: 16px 18px;
    border: 1px solid var(--xw-border);
    border-left: 2px solid var(--xw-accent);
    border-radius: 5px;
    background: var(--xw-code-bg);
    color: var(--xw-code-ink);
    font: 13px/1.7 Consolas, "Microsoft YaHei", monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
  }
  html:root body.skin-monobook .tlbb-wiki-home .home-hero { border: 1px solid #376076; border-radius: 5px; background-image: linear-gradient(#6bbedb0b 1px, transparent 1px), linear-gradient(90deg, #6bbedb0b 1px, transparent 1px), linear-gradient(115deg, var(--xw-hero-start), var(--xw-hero-end)); background-size: 32px 32px, 32px 32px, auto; }
  html:root body.skin-monobook .tlbb-wiki-home .home-card {
    padding: 20px;
    border: 1px solid var(--xw-border);
    border-radius: 4px;
    background: var(--xw-surface);
    box-shadow: inset 0 2px var(--xw-line-strong);
  }
  html:root body.skin-monobook .tlbb-wiki-home .home-card:hover { border-color: var(--xw-accent); background: var(--xw-panel); box-shadow: inset 0 2px var(--xw-accent), 0 0 20px var(--xw-accent-soft); }
  html:root body.skin-monobook .tlbb-wiki-home .home-panel,
  html:root body.skin-monobook .tlbb-wiki-home .home-links { padding: 20px; border: 1px solid var(--xw-border); border-radius: 4px; background: var(--xw-surface); }
  html:root body.skin-monobook .tlbb-wiki-home .home-grid { gap: 16px; }
  html:root body.skin-monobook .tlbb-wiki-home .home-card-label { margin-bottom: 10px; }
  html:root body.skin-monobook .tlbb-wiki-home .home-card-label,
  html:root body.skin-monobook .tlbb-wiki-home .home-section-no { color: var(--xw-accent); font-family: Consolas, monospace; }
  html:root body.skin-monobook .tlbb-wiki-home .home-h2 { align-items: center; margin: 0 0 16px; font-size: 19px; }
  html:root body.skin-monobook .tlbb-wiki-home .home-hero::after { height: 2px; background: linear-gradient(90deg, #5cd6ee 0 25%, #d7bd88 25% 32%, #5cd6ee22 32%); opacity: 1; }
  html:root body.skin-monobook .tlbb-wiki-home .home-kicker { color: #87d6e8; font-family: Consolas, monospace; }
  html:root body.skin-monobook .tlbb-wiki-home .home-nav a:hover { color: var(--xw-accent); }
  html:root body.skin-monobook .tlbb-wiki-home .home-table th,
  html:root body.skin-monobook .tlbb-wiki-home .home-table td { border-color: var(--xw-border); }
  html:root body.skin-monobook .tlbb-wiki-home .home-table th { background: var(--xw-table-head); color: var(--xw-link); }
  html:root body.skin-monobook .tlbb-wiki-home .home-pre { border: 1px solid var(--xw-border); border-left: 2px solid var(--xw-accent); background: var(--xw-code-bg); color: var(--xw-code-ink); }
  html:root body.skin-monobook .tlbb-wiki-home .home-table td,
  html:root body.skin-monobook .tlbb-wiki-home .home-table tr:nth-child(odd) td { background: var(--xw-surface); }
}
@media screen and (min-width: 551px) {
  /* Size the action row explicitly; the divider follows its actual bottom. */
  html:root body.skin-monobook #p-cactions {
    top: 24px;
    left: 12.2em;
    right: 20px;
    width: auto;
    padding: 0 0 0 14px;
    font-size: inherit;
  }
  html:root body.skin-monobook #p-cactions ul {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 0;
    padding: 0;
  }
  html:root body.skin-monobook #p-cactions li { margin: 0; }
  html:root body.skin-monobook #p-cactions li a {
    display: block;
    line-height: 18px;
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-radius: 5px 5px 2px 2px;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease;
  }
  html:root body.skin-monobook #p-cactions li a::before {
    content: "";
    position: absolute;
    top: -40%;
    left: 0;
    width: 45%;
    height: 180%;
    background: linear-gradient(110deg, transparent, var(--xw-tab-sheen), transparent);
    opacity: 0;
    transform: translateX(-160%) skewX(-18deg);
    pointer-events: none;
  }
  html:root body.skin-monobook #p-cactions li a::after {
    content: "";
    position: absolute;
    right: 5px;
    bottom: 0;
    left: 5px;
    height: 2px;
    border-radius: 2px;
    background: linear-gradient(90deg, transparent, var(--xw-accent) 28%, var(--xw-link-hover) 54%, var(--xw-tab-violet) 82%, transparent);
    box-shadow: 0 -1px 8px var(--xw-tab-glow), 0 0 4px var(--xw-accent);
    opacity: 0;
    transform: scaleX(.35);
    transition: opacity .18s ease, transform .22s ease;
    pointer-events: none;
  }
  html:root body.skin-monobook #p-cactions li a:hover,
  html:root body.skin-monobook #p-cactions li a:focus-visible {
    background: linear-gradient(180deg, var(--xw-tab-fill), transparent), var(--xw-accent-soft);
    color: var(--xw-accent);
    box-shadow: inset 0 0 0 1px var(--xw-tab-edge), 0 3px 14px var(--xw-tab-glow);
    text-shadow: 0 0 10px var(--xw-tab-glow);
    transform: translateY(-1px);
  }
  html:root body.skin-monobook #p-cactions li.selected a {
    background: linear-gradient(180deg, var(--xw-tab-fill), transparent), var(--xw-tab-fill);
    color: var(--xw-link-hover);
    box-shadow: inset 0 0 0 1px var(--xw-tab-edge), inset 0 -3px 10px var(--xw-accent-soft), 0 3px 18px var(--xw-tab-glow);
    text-shadow: 0 0 10px var(--xw-tab-glow);
  }
  html:root body.skin-monobook #p-cactions li a:hover::after,
  html:root body.skin-monobook #p-cactions li a:focus-visible::after,
  html:root body.skin-monobook #p-cactions li.selected a::after { opacity: 1; transform: scaleX(1); }
  html:root body.skin-monobook #p-cactions li a:hover::before,
  html:root body.skin-monobook #p-cactions li a:focus-visible::before { animation: xw-tab-sweep .65s ease-out; }
  html:root body.skin-monobook #p-cactions li a:focus-visible { outline: 2px solid var(--xw-accent); outline-offset: 3px; }
  html:root body.skin-monobook #p-cactions li a:active { transform: translateY(0); }
  html:root body.skin-monobook #p-cactions::after {
    content: "";
    position: absolute;
    bottom: -4px;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--xw-line-strong), var(--xw-border));
    pointer-events: none;
  }
  html:root body.skin-monobook #sidebar .portlet { position: relative; z-index: 3; margin-bottom: 14px; }
  html:root body.skin-monobook #sidebar .portlet h3 { display: flex; align-items: center; gap: 8px; height: auto; margin: 0 14px 6px; padding: 10px 0 7px; border-bottom: 1px solid var(--xw-border); color: var(--xw-link); font-size: 11px; font-weight: 600; letter-spacing: .12em; }
  html:root body.skin-monobook #sidebar .portlet h3::before { content: ""; width: 4px; height: 4px; background: var(--xw-accent); box-shadow: 0 0 7px var(--xw-accent-soft); }
  html:root body.skin-monobook #sidebar { border-right: 1px solid var(--xw-border); }
  html:root body.skin-monobook #sidebar .portlet .pBody { padding: 0 9px; }
  html:root body.skin-monobook #sidebar .portlet ul { margin: 0; padding: 0; list-style: none; }
  html:root body.skin-monobook #sidebar .portlet li { margin: 0; padding: 0; }
  html:root body.skin-monobook #sidebar .portlet li a { display: block; padding: 5px 8px; border-radius: 5px; color: var(--xw-muted); font-size: 12px; line-height: 1.6; }
  html:root body.skin-monobook #sidebar .portlet li a:hover { background: var(--xw-hover); color: var(--xw-link); text-decoration: none; }
  html:root body.skin-monobook #p-search #searchInput { box-sizing: border-box; width: 100%; height: 32px; padding: 5px 8px; border: 1px solid var(--xw-border); border-radius: 6px; background: var(--xw-code-bg); font-size: 11px; }
  html:root body.skin-monobook #p-search input[type="submit"] { margin-top: 6px; padding: 3px 8px; border: 1px solid var(--xw-border); border-radius: 4px; background: transparent; color: var(--xw-muted); font-size: 11px; }
}
@media screen and (max-width: 550px) {
  html:root body.skin-monobook { background-size: auto, 40px 40px, 40px 40px; }
  html:root body.skin-monobook #content.mw-body { padding: 20px 16px 30px; }
  html:root body.skin-monobook #firstHeading { font-size: 21px; margin-bottom: 15px; }
  html:root body.skin-monobook .lua-reference pre { padding: 43px 14px 14px; font-size: 12px; }
  html:root body.skin-monobook .lua-reference table.wikitable th,
  html:root body.skin-monobook .lua-reference table.wikitable td { padding: 10px 7px; font-size: 12px; }
  html:root body.skin-monobook .lua-reference table.wikitable th:first-child,
  html:root body.skin-monobook .lua-reference table.wikitable td:first-child { padding-left: 4px; padding-right: 4px; }
  html:root body.skin-monobook #sidebar #p-search #searchInput { border: 1px solid var(--xw-border); border-radius: 3px; background: var(--xw-code-bg); color: var(--xw-ink); box-shadow: none; }
  html:root body.skin-monobook .tlbb-wiki-home .home-card,
  html:root body.skin-monobook .tlbb-wiki-home .home-panel,
  html:root body.skin-monobook .tlbb-wiki-home .home-links { padding: 18px; }
  html:root body.skin-monobook #globalWrapper .menu-toggle,
  html:root body.skin-monobook #p-cactions-mobile :is(#main-mobile, #talk-mobile, #special-mobile, #ca-tools) a {
    box-sizing: border-box;
    width: 35px;
    height: 35px;
    padding: 0;
    border: 0;
    border-radius: 6px;
    background: transparent;
    color: var(--xw-muted);
    font-size: inherit;
    text-indent: -9999px;
    overflow: hidden;
  }
  html:root body.skin-monobook #globalWrapper .menu-toggle::before,
  html:root body.skin-monobook #p-cactions-mobile :is(#main-mobile, #talk-mobile, #special-mobile, #ca-tools) a::before {
    content: "";
    display: block;
    width: 18px;
    height: 18px;
    margin: 8px auto;
    text-indent: 0;
    background: currentColor;
    -webkit-mask: var(--xw-ui-icon) center / contain no-repeat;
    mask: var(--xw-ui-icon) center / contain no-repeat;
  }
  #sidebar-toggle { --xw-ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E"); }
  #p-personal-toggle { --xw-ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='3.5'/%3E%3Cpath d='M5 21v-2a7 7 0 0 1 14 0v2'/%3E%3C/svg%3E"); }
  #globalWrapper-toggle { --xw-ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 15 6-6 6 6'/%3E%3C/svg%3E"); }
  #main-mobile { --xw-ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M6 3h8l4 4v14H6zM14 3v5h4M9 12h6M9 16h6'/%3E%3C/svg%3E"); }
  #special-mobile { --xw-ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 4h6v6H4zM14 4h6v6h-6zM4 14h6v6H4zM14 14h6v6h-6z'/%3E%3C/svg%3E"); }
  #talk-mobile { --xw-ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linejoin='round'%3E%3Cpath d='M4 4h16v12H9l-5 4z'/%3E%3C/svg%3E"); }
  #ca-tools { --xw-ui-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='M4 7h16M4 17h16M9 4v6m6 4v6'/%3E%3C/svg%3E"); }
  html:root body.skin-monobook #p-cactions-mobile li { height: 35px; border: 0; background: transparent; vertical-align: middle; }
  html:root body.skin-monobook #p-cactions-mobile li.selected a { background: linear-gradient(180deg, var(--xw-tab-fill), var(--xw-accent-soft)); color: var(--xw-accent); box-shadow: inset 0 0 0 1px var(--xw-tab-edge), inset 0 -2px var(--xw-accent), 0 2px 10px var(--xw-tab-glow); }
  html:root body.skin-monobook #p-cactions-mobile #ca-more a { height: 35px; padding: 0 8px; border: 0; background: transparent; color: var(--xw-muted); line-height: 35px; }
  :root[data-xuewu-theme="dark"] body.skin-monobook #searchButton { filter: brightness(1.8); }
  html:root body.skin-monobook :is(#p-personal, #p-cactions, #p-tb, #p-lang, #sidebar-mobilejs).mobile-menu-active {
    box-sizing: border-box;
    max-width: calc(100% - 24px);
    padding: 24px 20px 12px;
    border: 1px solid var(--xw-border);
    border-left: 0;
    border-radius: 0 12px 12px 0;
    background: var(--xw-surface);
    color: var(--xw-ink);
    box-shadow: 0 16px 40px #00000020;
    font-size: 14px;
  }
  html:root body.skin-monobook .mobile-menu-active ul { margin: 0; padding-top: 8px; list-style: none; }
  html:root body.skin-monobook .mobile-menu-active h3 { color: var(--xw-muted); font-size: 12px; }
  html:root body.skin-monobook .mobile-menu-active a { padding: 9px 0; color: var(--xw-link); }
  html:root body.skin-monobook .mobile-menu-active .mobile-close-button { width: 28px; height: 28px; top: 10px; right: 10px; background: none; }
  html:root body.skin-monobook .mobile-menu-active .mobile-close-button::before {
    content: "";
    display: block;
    width: 14px;
    height: 14px;
    margin: 7px;
    background: var(--xw-muted);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M6 18 18 6'/%3E%3C/svg%3E") center / contain no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round'%3E%3Cpath d='m6 6 12 12M6 18 18 6'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  /* MonoBook's cloned mobile menu replaces this original navigation portlet. */
  html:root.client-js body.skin-monobook.skin--responsive #column-one:has(> #sidebar-mobilejs) #sidebar > .mw-portlet-navigation {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
  }
  html:root body.skin-monobook #menus-cover { background: #000; opacity: .32; }
  html:root body.skin-monobook #menus-cover-background { background: transparent; opacity: 0; }
}
@keyframes xw-tab-sweep {
  0% { opacity: 0; transform: translateX(-160%) skewX(-18deg); }
  18% { opacity: .8; }
  100% { opacity: 0; transform: translateX(380%) skewX(-18deg); }
}
@media screen and (prefers-reduced-motion: reduce) {
  html:root body.skin-monobook #p-cactions li a,
  html:root body.skin-monobook #p-cactions li a::after { transition: none; }
  html:root body.skin-monobook #p-cactions li a:hover::before,
  html:root body.skin-monobook #p-cactions li a:focus-visible::before { animation: none; }
  html:root body.skin-monobook #p-cactions li a:hover,
  html:root body.skin-monobook #p-cactions li a:focus-visible,
  html:root body.skin-monobook #p-cactions li a:active { transform: none; }
}
@media print {
  :root, :root[data-xuewu-theme="dark"] {
    color-scheme: light;
    --xw-page: #fff;
    --xw-surface: #fff;
    --xw-panel: #fff;
    --xw-table-head: #edf2f8;
    --xw-ink: #111;
    --xw-heading: #111;
    --xw-muted: #444;
    --xw-link: #234b7c;
    --xw-border: #bbb;
    --xw-code-bg: #f3f6fa;
    --xw-code-ink: #223b57;
    --xw-article-accent: #193d37;
  }
  #xuewu-theme-switch { display: none; }
  html:root body, html:root .mw-body { background: #fff; color: #000; }
}
