#nexus-settings{box-sizing:border-box;width:min(520px,calc(100vw - 28px));max-height:calc(100dvh - 36px);padding:0;overflow:auto;border:1px solid #aee4ff;border-radius:18px;background:linear-gradient(145deg,#f8fdff,#e1f1fb);color:#163954;box-shadow:0 28px 90px #001a4180;font:14px/1.5 system-ui,sans-serif;z-index:100000}
#nexus-settings::backdrop{background:#051c47a6;backdrop-filter:blur(6px)}
#nexus-settings header{display:flex;align-items:center;justify-content:space-between;padding:22px 26px;border-bottom:1px solid #beddec;background:linear-gradient(120deg,#c4edff,#ffffffb3)}
#nexus-settings h2{margin:3px 0 0;font-size:28px;font-weight:650;color:#15354c}
#nexus-settings header small{font-size:10px;letter-spacing:.18em;color:#34728f}
#nexus-settings button{cursor:pointer;border:1px solid #b0cfdf;border-radius:9px;background:#fff;color:#173b55;font:inherit;padding:9px 14px;box-shadow:none}
#nexus-settings button:hover{background:#d9f4ff}#nexus-settings button:focus-visible,#nexus-settings input:focus-visible{outline:3px solid #00789d;outline-offset:3px}
#nexus-settings-close{font-size:17px!important}.nexus-settings-body{padding:20px 26px 26px}.settings-intro{margin:0 0 22px;color:#4e6f82}
.settings-option{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:17px 0 8px;cursor:pointer}.settings-option strong{display:block;font-size:17px}.settings-option small{display:block;margin-top:7px;color:#48677b;font:13px/1.6 system-ui,sans-serif}
#nexus-settings input[type=checkbox]{appearance:auto;flex:none;width:23px;height:23px;accent-color:#057eaa;cursor:pointer}.settings-note{margin:4px 0 12px;color:#5c7485;font:12px/1.6 system-ui,sans-serif}
.settings-terminal{margin:23px 0 16px;padding:15px 17px;border-radius:10px;background:#102b35;color:#9de9bc;font:12px/1.6 Consolas,monospace}.settings-terminal span{display:block;font-size:10px;letter-spacing:.12em;color:#73a999;margin-bottom:5px}
html.nexus-history-active body>*:not(#nexus-history-cover){visibility:hidden!important;pointer-events:none!important}
#nexus-history-cover{position:fixed;inset:0;z-index:2147483000;overflow:auto;background:#f5f1e8;color:#292e28;font:16px/1.6 Georgia,serif;text-align:left;outline:none;isolation:isolate}
#nexus-history-cover *{box-sizing:border-box}#nexus-history-cover header,#nexus-history-cover footer{display:flex;justify-content:space-between;gap:20px;max-width:1180px;margin:auto;padding:28px 36px;font:12px/1.6 system-ui,sans-serif;color:#64695c}
#nexus-history-cover header{border-bottom:1px solid #d8d9cd}.history-wordmark{font-weight:750;letter-spacing:.16em;color:#2d4438}
.history-cover-hero{max-width:1180px;margin:auto;padding:65px 36px 58px;background:radial-gradient(ellipse at 85% 50%,#c2c9aa55,transparent 48%)}
.history-kicker{font:11px system-ui,sans-serif;letter-spacing:.2em;color:#697650}
#nexus-history-cover h1{margin:22px 0;font:clamp(42px,6vw,78px)/1.08 Georgia,serif;letter-spacing:-.035em;color:#293d30}
.history-cover-hero>p:not(.history-kicker){max-width:470px;color:#646959;font-size:18px}
#nexus-history-cover button{margin-top:20px;background:#314e3b;color:#fff;border:0;border-radius:3px;padding:14px 22px;font:13px system-ui,sans-serif;cursor:pointer}
.history-cover-stories{display:grid;grid-template-columns:repeat(3,1fr);gap:28px;max-width:1180px;padding:0 36px 48px;margin:auto}.history-cover-stories article{border-top:2px solid #b1b99d;padding:23px 0}.history-cover-stories article>span{font:10px system-ui,sans-serif;letter-spacing:.12em;color:#727e5d}
#nexus-history-cover h2{font:26px/1.25 Georgia,serif;color:#344632;margin:19px 0 12px}.history-cover-stories p{color:#646959;font-size:15px}.history-cover-stories small{font:11px system-ui,sans-serif;color:#78816b}
#nexus-history-cover footer{border-top:1px solid #d8d9cd}
body.nexus-code-rot{background:#030e09!important;background-image:linear-gradient(135deg,#001e16,#030706)!important}
.nexus-code-rot #desktop>.window{border-color:#32c887!important;box-shadow:0 0 30px #00ed7129!important}
.nexus-code-rot #desktop>.window>.title-bar{background:linear-gradient(90deg,#061c11,#174e2e)!important;color:#9affc4!important;text-shadow:1px 0 #56ffb2}
.nexus-code-rot #desktop>.window iframe{filter:grayscale(.7) sepia(.4) hue-rotate(85deg)}
.nexus-code-rot #nexus-apps{background:repeating-linear-gradient(0deg,#001d1133 0 1px,transparent 1px 5px);border:1px solid #2ce99544;border-radius:10px}
.nexus-code-rot .nexus-app:not([data-nexus-settings]){color:#8fffc1!important;text-shadow:2px 0 #007e67,-1px 0 #e3508c}
.nexus-code-rot .nexus-app.nexus-rotted{filter:hue-rotate(90deg) saturate(2);transform:translate(2px,-1px) skewX(-4deg);opacity:.55;border:1px dashed #65ff96!important;background:#003a2066!important}
.nexus-code-rot .nexus-app.nexus-rotted b{text-decoration:line-through;text-shadow:3px 0 #b83b83,-2px 0 #00e5bd}
.nexus-code-rot #nexus-taskbar{background:#061c12!important;border-color:#339d66!important}
@media(max-width:650px){.history-cover-stories{grid-template-columns:1fr;gap:4px}#nexus-history-cover header,#nexus-history-cover footer{flex-direction:column;gap:6px;padding:22px}.history-cover-hero{padding:35px 22px}.history-cover-stories{padding:0 22px 25px}.nexus-settings-body{padding:16px 20px}#nexus-settings header{padding:18px 20px}}
