html[data-theme="light"] { color-scheme: light; }
html[data-theme="dark"] { color-scheme: dark; --night-bg:#18171e; --night-panel:#24222c; --night-text:#d6d1df; --night-muted:#aaa2b7; --night-line:#3b3547; --night-link:#c2addf; }
#theme-toggle { display:block; height:77px; padding:0 7px; border:0; background:transparent; color:#d2c7e8; font-size:25px; cursor:pointer; }
#theme-toggle:hover { color:#fff; }
#theme-toggle:focus-visible, #search-clear:focus-visible { outline:2px solid currentColor; outline-offset:-4px; }
#searchform-top { right:108px; }
#s-top { box-sizing:border-box; padding-right:27px; }
#s-top::-webkit-search-cancel-button { appearance:none; -webkit-appearance:none; display:none; }
#search-clear { position:absolute; top:21px; right:0; width:27px; height:35px; padding:0; border:0; background:transparent; color:#d2c7e8; font:24px/35px sans-serif; cursor:pointer; }
#search-clear:hover { color:#fff; }
#search-clear[hidden] { display:none; }
html[data-theme="dark"] body { background:var(--night-bg); color:var(--night-text); }
html[data-theme="dark"] :is(.hentry, #sb .widget, #mobile-toc-panel, #mobile-sidebar .widget, #gotop, #mobile-toc-toggle, #navi-mini) { background:var(--night-panel); color:var(--night-text); }
html[data-theme="dark"] :is(.markdown-body, .markdown-body h1, .markdown-body h2, .markdown-body h3, .markdown-body h4, .markdown-body h5, .markdown-body h6, .post-title, .post-title a, .archive-heading h1) { color:var(--night-text); }
html[data-theme="dark"] :is(a, #sb a, .archive-entries a, .archive-year-link>span, .archive-year-label, .archive-section h2) { color:var(--night-link); }
html[data-theme="dark"] :is(#top, #searchform-top) { background:#393044; }
html[data-theme="dark"] :is(.logo, #foot) { background:#302838; }
html[data-theme="dark"] #bottom { background:#292230; }
html[data-theme="dark"] :is(.social .ico a, .topmenu li a, #theme-toggle, #foot a) { color:#ded0ef; }
html[data-theme="dark"] :is(#sb .widget h3, .widget-title, .post-meta, #breadcrumbs, #breadcrumbs a, .archive-overview small, .archive-year-count, .archive-entries time, .archive-year-link>small) { color:var(--night-muted); }
html[data-theme="dark"] :is(.post-title, .post-meta, .archive-heading, .archive-year, .archive-entries li, #sb .archive-overview, .markdown-body h1, .markdown-body h2, #sb li, .widget-title) { border-color:var(--night-line); }
html[data-theme="dark"] :is(.markdown-body pre, .markdown-body code, .markdown-body .highlight, .markdown-body .highlight pre, .markdown-body table tr, .code-toolbar, .code-copy, .code-copy-button, #sb .archive-months a, #sb .archive-year-link:hover, #sb .archive-year-link.is-current) { background:#302b39; color:var(--night-text); border-color:var(--night-line); }
html[data-theme="dark"] .markdown-body table tr:nth-child(2n) { background:#292530; }
html[data-theme="dark"] :is(.markdown-body td, .markdown-body th, .markdown-body blockquote) { border-color:#50445f; }
html[data-theme="dark"] .markdown-body blockquote { color:#bdb2cc; }
html[data-theme="dark"] :is(.markdown-body .admonition, .markdown-body details.admonition) { background:#2b2634; color:var(--night-text); }
html[data-theme="dark"] :is(.markdown-body .private-unlock, #private-post-form input, .private-password-label) { color:var(--night-text); }
html[data-theme="dark"] :is(.private-password-field, .private-password-field:focus-within, .private-unlock-feedback, .private-unlock-icon) { background:#302b39; border-color:#51435f; }
html[data-theme="dark"] .private-unlock[data-state="error"] .private-unlock-feedback { background:#38282f; }
html[data-theme="dark"] #waline { --waline-bg-color:#24222c; --waline-bg-color-light:#302b39; --waline-bg-color-hover:#393144; --waline-text-color:#d6d1df; --waline-info-color:#aaa2b7; --waline-border-color:#51435f; --waline-theme-color:#bca2db; --waline-active-color:#d3b9ef; }
html[data-theme="dark"] canvas#ribbon { opacity:.28; }
html[data-theme="dark"] :is(#abovesb, #sb .widget-item, #mobile-sidebar .widget-item, .code-copy-block) { background:var(--night-panel); background-image:none; color:var(--night-text); }
html[data-theme="dark"] :is(.code-language, .code-copy-button, .mobile-page-select, .blogname, .blogdesc) { color:var(--night-muted); }
html[data-theme="dark"] .markdown-body .highlight .gutter { color:#9d91ab; }
html[data-theme="dark"] .markdown-body .highlight .line { background:transparent; }
html[data-theme="dark"] .admonition { --admonition-color:#90b4ff; }
html[data-theme="dark"] .admonition.warning { --admonition-color:#e8b16f; }
html[data-theme="dark"] .admonition.error { --admonition-color:#f09a9a; }
html[data-theme="dark"] :is(.admonition.tip,.admonition.success) { --admonition-color:#76cba7; }
html[data-theme="dark"] .admonition.info { --admonition-color:#75c8d3; }
html[data-theme="dark"] .admonition.example { --admonition-color:#c4a2ef; }
html[data-theme="dark"] .admonition.question { --admonition-color:#c5cf7a; }
html[data-theme="dark"] .admonition.quote { --admonition-color:#beb6c8; }
html[data-theme="dark"] :is(#abovesb .blogname, #abovesb .blogdesc, #cardtop .blogname, #cardtop .blogdesc) { color:var(--night-muted); }
html[data-theme="dark"] :is(.post-content-basic, .post-content img, .post-content ul, .post-content ol, .post-content li) { border-color:var(--night-line); }
html[data-theme="dark"] :is(.post-content img, .post-content ul, .post-content ol) { background:var(--night-panel); }
html[data-theme="dark"] .prettyprint .pln { color:#ddd5e8; }
html[data-theme="dark"] .prettyprint :is(.str,.atv) { color:#b4d59a; }
html[data-theme="dark"] .prettyprint :is(.kwd,.tag) { color:#b6b4ff; }
html[data-theme="dark"] .prettyprint .com { color:#a497b2; }
html[data-theme="dark"] .prettyprint :is(.typ,.atn,.dec,.var) { color:#dfb0e7; }
html[data-theme="dark"] .prettyprint .lit { color:#8fd0d0; }
html[data-theme="dark"] .prettyprint :is(.pun,.opn,.clo) { color:#d1c6a5; }
html[data-theme="dark"] .prettyprint .fun { color:#f0b18f; }
html[data-theme="dark"] .prettyprint ol.linenums>li { background:transparent; }
html[data-theme="dark"] .prettyprint ol.linenums>li:nth-child(even) { background:#2b2633; }
#waline { --waline-theme-color:#75608f; --waline-active-color:#5c4e7b; --waline-badge-color:#75608f; }
#waline .wl-header-item:focus-within { background:#f5f1f9; }
#waline .wl-header-item:focus-within label { color:var(--waline-theme-color); }
#waline :is(.wl-input,.wl-editor):focus-visible { outline:2px solid #9380b1; outline-offset:-2px; }
html[data-theme="dark"] #waline { --waline-color:#d6d1df; --waline-white:#24222c; --waline-light-grey:#aaa2b7; --waline-dark-grey:#c1b7d0; --waline-badge-color:#bca2db; }
html[data-theme="dark"] #waline .wl-header-item:focus-within { background:#393044; }
@media(max-width:599px) {
    .social { display:flex; justify-content:flex-end; position:relative; }
    .social #tg-s { order:8; flex-shrink:0; }
    .social #theme-control { order:10; flex-shrink:0; padding:0 4px; }
    #theme-toggle { padding:0 5px; }
    .social #searchform-top { position:absolute; top:0; right:100px; max-width:calc(100% - 100px); }
    #s-top { max-width:100%; }
}
#theme-toggle svg { display:block; width:26px; height:26px; }
.readmore-link { color:var(--readmore-color); }
html[data-theme="dark"] :is(.pagination, .post-about, .markdown-body blockquote) { background:#2b2733; color:var(--night-text); }
html[data-theme="dark"] .markdown-body blockquote { padding:12px 18px; border-left:3px solid #8f78ac; border-radius:0 5px 5px 0; line-height:1.8; }
html[data-theme="dark"] .markdown-body blockquote>:last-child { margin-bottom:0; }
html[data-theme="dark"] .post-about { border:1px solid var(--night-line); border-radius:5px; padding:12px 16px; line-height:1.8; }
html[data-theme="dark"] :is(.post-meta .readmore-link, .markdown-body .readmore-link, .post-about a) { color:#cdb4eb; }
html[data-theme="dark"] :is(.post-meta .readmore-link:hover, .markdown-body .readmore-link:hover, .post-about a:hover) { color:#ead7ff; }
html[data-theme="dark"] .pagination .page-number { color:#bcb1cc; }
html[data-theme="dark"] .pagination .page-number.current { color:#eee4fa; font-weight:600; }
html[data-theme="dark"] .pagination a:hover { color:#ead7ff; background:#393142; }
html[data-theme="dark"] .pagination .mobile-page-select { color:var(--night-text); }
html[data-theme="dark"] :is(.post-title, .post-content-basic, #sb ul li, .sbmenu li, #footsb ul li) { border:0; border-bottom:1px solid var(--night-line); }
html[data-theme="dark"] :is(#sb ul, #sb .textwidget, .sbmenu ul, .post-meta) { border:0; }
html[data-theme="dark"] #sb h3.widget-title { border:0; box-shadow:0 1px 0 var(--night-line); }
html[data-theme="dark"] :is(#abovesb .gr, #cardtop .gr) { border:1px solid var(--night-line); }
html[data-theme="dark"] .markdown-body pre { border:1px solid var(--night-line) !important; }
html[data-theme="dark"] .markdown-body hr { background:var(--night-line); border:0; }
html[data-theme="dark"] #sb .tagcloud { border:0; padding-top:10px; }
html[data-theme="dark"] #sb .tagcloud a { border:0; border-radius:5px; background:#332d3e; color:#cbbadd; padding:3px 8px; margin:0 5px 6px 0; }
html[data-theme="dark"] #sb .tagcloud a:hover { background:#443750; color:#efe1ff; }
html[data-theme="dark"] #s-top { border-bottom:1px solid #8f7da3; }
html[data-theme="dark"] #s-top::placeholder { color:#d2c5e1; opacity:1; }
@media(min-width:600px) { #s-top { width:300px; } }

html[data-theme="dark"] :is(#sb .category-list>li, #sb .archive-year-link, #sb .archive-overview) { border:0; border-bottom:1px dashed var(--night-line); }
html[data-theme="dark"] :is(#sb .category-list-count, #sb .archive-year-link>small, #sb .archive-overview small) { color:var(--night-muted); }
#articles .post-title a { color:#75608f; }
#articles .post-title a:hover { color:#503866; }
html[data-theme="dark"] #articles .post-title a { color:#c2addf; }
html[data-theme="dark"] #articles .post-title a:hover { color:#ead7ff; }
#articles .post-title a:focus-visible { outline:2px solid currentColor; outline-offset:4px; }
