:root{color-scheme:only light}
.theme-toggle{position:relative;z-index:1;flex:none;display:grid;place-items:center;width:var(--control-size);height:var(--control-size);margin:0;padding:0;appearance:none;-webkit-appearance:none;border:0;border-radius:50%;background:transparent;color:#344d3e}
.theme-toggle::before{content:"";position:absolute;inset:0;border:1px solid #ffffffdf;border-radius:50%;background:linear-gradient(150deg,#ffffff9c,#ffffff38 55%,#edf5ed70);backdrop-filter:blur(22px) saturate(180%) brightness(1.06);-webkit-backdrop-filter:blur(22px) saturate(180%) brightness(1.06);box-shadow:inset 0 2px 1px #fffffff2,inset 0 -1px 1px #40604c1a,0 8px 28px #233d3220,0 1px 3px #233d3212;pointer-events:none;transition:filter .18s,transform .18s}
.theme-toggle:hover::before{filter:brightness(1.06)}
.theme-toggle:active::before{transform:scale(.94)}
.theme-toggle:hover{background:transparent}
.theme-toggle svg{position:relative;z-index:1;display:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
:root[data-theme-preference=system] .theme-icon-system,:root[data-theme-preference=dark] .theme-icon-dark,:root[data-theme-preference=light] .theme-icon-light{display:block}
@media(max-width:360px){.glass-nav>a:not(.nav-desktop),.nav-more>summary{padding-right:6px;padding-left:6px}}
:root[data-theme=dark]{color-scheme:only dark;--paper:#26292b;--ink:#edf0f1;--muted:#c2c8cb;--green:#bfd4e1;--line:#535b60;--about-tint:#3e494e;--footer-tint:#2c3134;--surface:#303437;--secondary:#c6cccf;--meta:#adb7bd;--link:#bfd4e1;--hover:#3b444a}
:root[data-theme=dark] ::selection{background:#48565e;color:#f3f6f8}
:root[data-theme=dark] :is(button,a,summary,[role=tabpanel]):focus-visible{outline-color:#c7b17c}
:root[data-theme=dark] .skip-link{background:#d4e2ea;color:#20272b}
:root[data-theme=dark] :is(.intro,.hero-tagline,.paper-authors,.detail-authors,.abstract,.news-item-body p,.record-description,.record-date,.record-note,.project-description,.project-card .project-date,.project-card p,.project-card em,.skill-tags span){color:var(--secondary)}
:root[data-theme=dark] :is(.intro strong,.paper-authors strong,.news-item-body strong,.record-title,.record-description em,.project-title,.project-card strong,.skill-card h2){color:var(--ink)}
:root[data-theme=dark] :is(.eyebrow,.small-note,.paper-venue,.news-month,.record-number,.project-index,.section-note,.visitor-block h2,.tabs button>span:not(.tab-label)){color:var(--meta)}
:root[data-theme=dark] :is(.social-links a,.text-link,.paper-links a,.news-link,.back-link){color:var(--link);text-decoration-color:#859eae}
:root[data-theme=dark] .social-links a span{text-decoration-color:#859eae}
:root[data-theme=dark] :is(.social-links a,.text-link,.paper-links a,.news-link,.back-link):hover{color:#f4f7f8;background:var(--hover)}
:root[data-theme=dark] .button{color:#d7e4ec;border-color:#8297a3}
:root[data-theme=dark] .button:hover{background:var(--hover);border-color:#bdd1dd}
:root[data-theme=dark] .status-dot{background:#a3b8c4;box-shadow:0 0 0 4px #a3b8c415}
:root[data-theme=dark] .portrait-frame{border-color:#68757c;background:#ffffff0a}
:root[data-theme=dark] .visitor-block{border-color:var(--line)}
:root[data-theme=dark] :is(.publication-card,.project-card,.skill-card){background:var(--surface);border-color:var(--line)}
:root[data-theme=dark] .publication-card:hover{border-color:#94afc0;box-shadow:0 5px 18px #0003}
:root[data-theme=dark] :is(.paper-image,.detail-image){border-color:#64737c}
:root[data-theme=dark] .paper-badge{background:#756039;border-color:#b99c56;color:#f0dd9d}
:root[data-theme=dark] .chip{color:#c4d2da;border-color:#667a86}
:root[data-theme=dark] .chip.selected{background:#40525d;border-color:#a3bdcc;color:#eef4f7}
:root[data-theme=dark] .tabs{border-color:var(--line);scrollbar-color:#879ca8 transparent}
:root[data-theme=dark] .tabs button{color:#b8c3ca}
:root[data-theme=dark] .tabs :is([aria-selected=true],[aria-pressed=true]){color:var(--ink);border-bottom-color:#a5bdcc}
:root[data-theme=dark] :is(.news-item,.activity-record){border-color:var(--line)}
:root[data-theme=dark] .skill-tags span{background:#374148;border-color:#667781;color:#d1dce2}
:root[data-theme=dark] #research .section-heading{--tint:#3a5268}
:root[data-theme=dark] #news .section-heading{--tint:#604e32}
:root[data-theme=dark] #background .section-heading{--tint:#504d45}
:root[data-theme=dark] #activities .section-heading{--tint:#46525a}
:root[data-theme=dark] .paper-heading{--tint:#3a5268}
:root[data-theme=dark] :is(.section-heading,.paper-heading){border-color:#d4dce222}
:root[data-theme=dark] .about-view::after,:root[data-theme=dark] .content-view:not(.paper-view) .section-heading::after{filter:brightness(0) invert(1);opacity:.85}
:root[data-theme=dark] .paper-heading::after{background:repeating-radial-gradient(ellipse at 100% 105%,transparent 0 28px,#c7d5df1a 29px 30px,transparent 31px 55px)}
:root[data-theme=dark] .glass-nav{background:linear-gradient(145deg,#dbe9e52b,#dce5e814 55%,#b5cbd52b);border-color:#dce5eb48;border-bottom-color:#dce5eb29;backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%);box-shadow:inset 0 2px 1px #eff7ff26,inset 0 -1px 1px #0003,0 8px 28px #0004}
:root[data-theme=dark] :is(.glass-nav a,.nav-more>summary,.theme-toggle){color:#eef3f6}
:root[data-theme=dark] .glass-nav a:hover{background:#d8e9f21a;color:#f3f7fa}
:root[data-theme=dark] :is(.glass-nav a.active,.nav-more.active>summary,.nav-more[open]>summary){color:#f1f6fa}
:root[data-theme=dark] .glass-nav:not(.glass-ready) a.active{background:#d8e9f226;box-shadow:inset 0 1px 1px #f3f8ff40}
:root[data-theme=dark] .nav-glider{border-color:#e3eef661;background:linear-gradient(145deg,#eff8ff2e,#ffffff0a 55%,#cddfeb1a);box-shadow:inset 0 1px 1px #eaf4ff59,inset 0 -1px 2px #0004,0 3px 9px #0003}
:root[data-theme=dark] .nav-glider::after{background:linear-gradient(110deg,#ffffff24,#ffffff00 70%)}
:root[data-theme=dark] .theme-toggle::before{border-color:#dce5eb48;background:linear-gradient(145deg,#dbe9e52b,#dce5e814 55%,#b5cbd52b);backdrop-filter:blur(22px) saturate(150%);-webkit-backdrop-filter:blur(22px) saturate(150%);box-shadow:inset 0 2px 1px #eff7ff26,inset 0 -1px 1px #0003,0 8px 28px #0004}
:root[data-theme=dark] .nav-more-list{background:#30383ee8;border-color:#d6e1e844;box-shadow:0 10px 35px #0005}
:root[data-theme=dark] .nav-more-list a.active{background:#d8e9f21a;box-shadow:none}
:root[data-theme=dark] .citation{background:#30383d;border-color:#647783}
:root[data-theme=dark] .citation-toggle{color:#e0e9ef}
:root[data-theme=dark] .citation-toggle:hover{background:#3d4b54}
:root[data-theme=dark] .citation-panel{border-color:#647783}
:root[data-theme=dark] .citation-toolbar{color:#b4c3cd}
:root[data-theme=dark] .copy-button{background:#293238;border-color:#637784;color:#dce8f0}
:root[data-theme=dark] .copy-button:hover{background:#3b4952}
:root[data-theme=dark] .citation-code{background:#272f34;color:#cedbe3}
:root[data-theme=dark] .citation-code:focus-visible{outline-color:#c7b17c}
:root[data-theme=dark] .site-footer{background:var(--footer-tint);color:#c2cbd1}
:root[data-theme=dark] .footer-field{color:var(--meta)}
:root[data-theme=dark] .footer-divider{color:#82929c}
:root[data-theme=dark] .noscript-note{background:#453d28;color:#e7e1c8}
@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){:root[data-theme=dark] .glass-nav{background:#3b4646}:root[data-theme=dark] .nav-glider{background:#566b78}}

.theme-control{position:relative;z-index:3;flex:none;width:var(--control-size);height:var(--control-size);pointer-events:auto}
.theme-menu{position:absolute;right:0;top:calc(100% + 14px);display:grid;gap:6px;width:200px;max-width:calc(100vw - 32px);padding:10px;border:1px solid #ffffffde;border-radius:22px;background:#f5f8eef0;backdrop-filter:blur(24px) saturate(150%);-webkit-backdrop-filter:blur(24px) saturate(150%);box-shadow:inset 0 1px 1px #ffffffd9,0 12px 32px #233d3226}
.theme-menu button{display:flex;align-items:center;gap:12px;width:100%;min-height:44px;padding:10px 12px;border:0;border-radius:12px;background:transparent;color:#344d3e;font:14px/20px var(--sans);text-align:left}
.theme-option-icon{flex:none;width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round;opacity:.8}
.theme-menu button::after{content:"✓";visibility:hidden;flex:none;width:16px;margin-left:auto;font-size:15px;text-align:center}
.theme-menu button[aria-checked=true]{background:#dce7cf80;font-weight:650}
.theme-menu button[aria-checked=true]::after{visibility:visible}
@media(hover:hover) and (pointer:fine){.theme-menu button:hover{background:#dce7cf80}}
.theme-menu button:focus-visible{outline-offset:-2px}
:root[data-theme=dark] .theme-menu{background:#30383ee8;border-color:#d6e1e844;box-shadow:0 8px 28px #0004}
:root[data-theme=dark] .theme-menu button{color:#eef2f5}
:root[data-theme=dark] .theme-menu button[aria-checked=true]{background:#e8f0f71a}
@media(hover:hover) and (pointer:fine){:root[data-theme=dark] .theme-menu button:hover{background:#e8f0f71a}}

@supports not ((backdrop-filter:blur(1px)) or (-webkit-backdrop-filter:blur(1px))){.theme-toggle::before{background:#f2f5ecf2}:root[data-theme=dark] .theme-toggle::before{background:#3b4646}}

:root[data-theme=dark] .glass-nav::before{background-image:radial-gradient(ellipse at 25% 20%,#afcadd33,transparent 55%),radial-gradient(ellipse at 75% 80%,#dbd5ba29,transparent 55%);opacity:.45}
:root[data-theme=dark] .glass-nav::after,:root[data-theme=dark] .theme-toggle::after{background-image:linear-gradient(110deg,transparent 35%,#ffffff00 42%,#ecf7ff38 49%,#ffffff05 57%,transparent 65%)}
