/* Shared preference. Initial theme is applied before either page stylesheet. */
html[data-theme="dark"]{color-scheme:dark}html[data-theme="light"]{color-scheme:light}
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:8px 11px;min-height:36px;border-radius:6px;border:1px solid #3b493b;background:#141c16;color:#c3cebb;font:calc(11px + var(--user-font-step, 0px))/1.4 var(--font,"Microsoft YaHei",sans-serif);cursor:pointer;white-space:nowrap}.theme-toggle:focus-visible{outline:2px solid #79c5e4;outline-offset:4px}.theme-icon{width:15px;text-align:center;font:calc(17px + var(--user-font-step, 0px))/1 sans-serif;color:#cfb88e}.theme-track{display:block;position:relative;width:27px;height:15px;border-radius:20px;background:#364233;box-shadow:inset 0 1px 3px #0003}.theme-track i{position:absolute;left:3px;top:3px;width:9px;height:9px;border-radius:50%;background:#c7d2bf;transition:transform .2s}.theme-toggle:hover{border-color:#829071}
html[data-theme="light"] .theme-toggle{background:#f7fbff;color:#506679;border-color:#c8dce8;box-shadow:0 2px 6px #69899d0b}html[data-theme="light"] .theme-icon{color:#d49a39}html[data-theme="light"] .theme-track{background:#bce2f3;box-shadow:none}html[data-theme="light"] .theme-track i{background:#fff;transform:translateX(12px)}
.cartoon-day-scene{display:none;position:absolute;inset:0;background:url('cartoon-office-day.webp') center bottom/cover;z-index:-3}.day-sky{display:none;position:absolute;inset:0 0 35%;overflow:hidden;pointer-events:none;z-index:-1;mask-image:linear-gradient(#000,transparent 96%);-webkit-mask-image:linear-gradient(#000,transparent 96%)}.day-cloud{position:absolute;width:230px;height:27px;border-radius:50%;background:#fff;opacity:.36;filter:blur(10px);box-shadow:35px -12px 0 8px #fff,-23px -7px 0 2px #fff,76px 3px 0 2px #fff;animation:cloud-drift 45s ease-in-out infinite alternate}.cloud-one{left:5%;top:22%}.cloud-two{left:52%;top:12%;width:150px;opacity:.24;animation-delay:-15s;animation-duration:56s}.cloud-three{left:26%;top:53%;width:170px;opacity:.2;animation-delay:-30s;animation-duration:62s}@keyframes cloud-drift{from{transform:translateX(-35px)}to{transform:translateX(55px)}}
/* Homepage: daylight palette. */
html[data-theme="light"] body.page-index{--bg:#eef7fc;--paper:#273e4b;--muted:#5d7583;--line:#c7dce7;background:#edf6fb;color:#273e4b}html[data-theme="light"] .page-index .terminal{background:#edf6fb;color:#6c8491}html[data-theme="light"] .cursor{background:#6d8d9c}html[data-theme="light"] .page-index .ecosystem-bar{background:#e6f1f8}html[data-theme="light"] .ecosystem-name{color:#516c7b}html[data-theme="light"] .ecosystem-logo{background:#f8fcff;border-color:#d2e3ec;box-shadow:0 1px 3px #4d738219}html[data-theme="light"] .page-index .cinema-hero{background:#dceffc}html[data-theme="light"] .page-index .cartoon-scene{display:none}html[data-theme="light"] .cartoon-day-scene{display:block}html[data-theme="light"] .day-sky{display:block}html[data-theme="light"] .night-sky,html[data-theme="light"] .fireflies{display:none}html[data-theme="light"] .page-index .cartoon-shade{background:linear-gradient(180deg,#edf6fb66,transparent 42%,transparent 85%,#edf6fb44),radial-gradient(ellipse at 47% 42%,#f4fbff96,transparent 62%)}html[data-theme="light"] .page-index .cinema-content h1{color:#254458;text-shadow:0 2px 20px #f5fbff90}html[data-theme="light"] .page-index .cinema-content h1 .headline-main{color:#244456}html[data-theme="light"] .headline-main em{color:#976a2b}html[data-theme="light"] .page-index .cinema-content h1 .headline-result{color:#95652a}html[data-theme="light"] .goal-composer{background:rgb(255 255 255 / 60%);border-color:#cedfe9;box-shadow:0 7px 25px #416b8215}html[data-theme="light"] .goal-composer:focus-within{border-color:#79b7d4;box-shadow:0 0 0 2px #89c7e526,0 7px 25px #416b8215}html[data-theme="light"] .goal-composer textarea{color:#2f4a5b;scrollbar-color:#a7c6d6 #fff}html[data-theme="light"] .goal-composer textarea::placeholder{color:#8ca3b0}html[data-theme="light"] .goal-attach{color:#7894a5}html[data-theme="light"] .goal-send{background:#d67b2a;color:#fff4df}html[data-theme="light"] .goal-send:disabled{background:#deb58c;color:#fff7ed}html[data-theme="light"] .goal-status{color:#865e29}html[data-theme="light"] .team-existing{background:linear-gradient(#edf5f6,#dae8ed);color:#405f6b;border-color:#bfd3dc;border-bottom-color:#93b0bc;box-shadow:inset 0 1px 0 #fff,0 3px 0 #9db6c0,0 7px 20px #52758815}html[data-theme="light"] .team-existing:hover{background:#eef8fb;border-color:#83a9ba}html[data-theme="light"] .quick-contact{background:#ffffffbb;border-color:#c8dce7;color:#506d7d;box-shadow:inset 0 1px 0 #fff}html[data-theme="light"] .quick-contact:hover{background:#fff;border-color:#8dafc2}html[data-theme="light"] .quick-connect{background:linear-gradient(#f5dfb9,#dfbb85);border-color:#d7b785;color:#6f4d24;box-shadow:inset 0 1px 0 #fff7e4,0 2px 0 #b08d5d}html[data-theme="light"] .patrol-squirrel{filter:drop-shadow(0 3px 4px #6d6a4320)}
/* The homepage dialogs use the active palette too. */
html[data-theme="light"] #team-dialog{background:#f8fcff;color:#2c4a5c;border-color:#bad3df;box-shadow:0 25px 100px #16364a33}html[data-theme="light"] #team-dialog p{color:#6c8796}html[data-theme="light"] .team-status{color:#6b8f98;border-color:#c8dfe7}html[data-theme="light"] .team-dialog-close{color:#829ba8}html[data-theme="light"] .team-dialog-return{background:#dfedf3;color:#40677c;border-color:#b4cedb}html[data-theme="light"] #team-dialog::backdrop,html[data-theme="light"] .chat-dialog::backdrop{background:#28465766}html[data-theme="light"] .chat-dialog{background:#f9fcff;color:#304c5d;border-color:#c9dce6;box-shadow:0 25px 100px #24435444}html[data-theme="light"] .chat-header{background:#edf5f9;border-color:#dce7ed}html[data-theme="light"] .chat-header p{color:#7893a2}html[data-theme="light"] .chat-controls button{color:#6a8696}html[data-theme="light"] .chat-message .chat-role{color:#b1803e}html[data-theme="light"] .chat-message.user{background:#e7f2f7;border-color:#d6e5ed}html[data-theme="light"] .chat-message.user .chat-role{color:#7093a6}html[data-theme="light"] .chat-message p.chat-error{color:#9c6730}html[data-theme="light"] .chat-footer{background:#f9fcff}html[data-theme="light"] .chat-live-status{color:#7891a0}html[data-theme="light"] .chat-footer form{background:#fff;border-color:#c1d6e1}html[data-theme="light"] .chat-footer textarea{color:#304d5e}html[data-theme="light"] .chat-note{color:#8b9faa}html[data-theme="light"] #chat-stop{background:#e4eff4;color:#4d7082;border-color:#b2cedd}
/* Introduction: the approved light PPT version remains the base. */
html[data-theme="dark"] body.page-about{background:#0d1116;color:#e7edf5}html[data-theme="dark"] .page-about .deck-header{background:#0d1116ed;border-color:#26313b}html[data-theme="dark"] .page-about .back{color:#a7b3c5}html[data-theme="dark"] .page-about .header-title span{color:#79899d}html[data-theme="dark"] .page-about .page-count{color:#5d7087}html[data-theme="dark"] .page-about .page-count b{color:#f5a656}html[data-theme="dark"] .page-about .deck-nav a{background:#3d4a5b}html[data-theme="dark"] .page-about .deck-nav a.active{background:#ef9c46}html[data-theme="dark"] .page-about .slide{background:#181e26;border:1px solid #29313d;box-shadow:0 16px 40px #0000001a}html[data-theme="dark"] .page-about .slide:before{color:#242d39}html[data-theme="dark"] .page-about .cover{background:linear-gradient(120deg,#181e26 52%,#29221c)}html[data-theme="dark"] .page-about .eyebrow{color:#8394aa}html[data-theme="dark"] .page-about .muted{color:#7b8a9e}html[data-theme="dark"] .page-about .accent{color:#f6a858}html[data-theme="dark"] .page-about .lead{color:#a4b2c5}html[data-theme="dark"] .page-about .explore{color:#b3c4d6;border-color:#354659}html[data-theme="dark"] .page-about .cover-caption,html[data-theme="dark"] .page-about .slide-label{color:#71869d}html[data-theme="dark"] .page-about .orbit-path{border-color:#3c3025}html[data-theme="dark"] .page-about .path-one{border-left-color:#f39b48;border-bottom-color:#f39b48}html[data-theme="dark"] .page-about .path-two{border-right-color:#85bff0;border-top-color:#85bff0}html[data-theme="dark"] .page-about .path-three{border-right-color:#c0a6e4;border-bottom-color:#c0a6e4}html[data-theme="dark"] .page-about .orbit-core{background:#33291f;color:#f9b96f;box-shadow:0 10px 35px #0004}html[data-theme="dark"] .page-about .orbit-core small{color:#91a6bd}html[data-theme="dark"] .page-about .orbit-node{background:#352a21;color:#c5d4e5;box-shadow:0 9px 25px #0003}html[data-theme="dark"] .page-about .split-heading>p,html[data-theme="dark"] .page-about .section-heading>p{color:#a3b1c5}html[data-theme="dark"] .page-about .split-heading strong{color:#d0dce9}html[data-theme="dark"] .page-about .capability-graphic{background:linear-gradient(#29251f,#24211d)}html[data-theme="dark"] .page-about .skill-bubble{background:#23374a;border-color:#385b79;outline-color:#3b5268;box-shadow:0 9px 15px #0002;color:#9dcdf2}html[data-theme="dark"] .page-about .skill-bubble.cyan{background:#263c31;border-color:#3c634c;color:#b1d7bd}html[data-theme="dark"] .page-about .skill-bubble.purple{background:#342d44;border-color:#59456f;color:#d0bae9}html[data-theme="dark"] .page-about .skill-hub{background:#392d22;color:#f6ad5e;box-shadow:0 7px 22px #0003}html[data-theme="dark"] .page-about .skill-hub span,html[data-theme="dark"] .page-about .graphic-baseline{color:#94abc4}html[data-theme="dark"] .page-about .small-label{color:#7f92ac}html[data-theme="dark"] .page-about .position p{color:#a6b5c8}html[data-theme="dark"] .page-about .step{background:#30251c}html[data-theme="dark"] .page-about .step:nth-child(2){background:#1e2f40}html[data-theme="dark"] .page-about .step:nth-child(3){background:#22362c}html[data-theme="dark"] .page-about .step-number{color:#a3784b}html[data-theme="dark"] .page-about .step:nth-child(2) .step-number{color:#608bb0}html[data-theme="dark"] .page-about .step:nth-child(3) .step-number{color:#68967a}html[data-theme="dark"] .page-about .step svg{fill:#382b20}html[data-theme="dark"] .page-about .step:nth-child(2) svg{fill:#263d51}html[data-theme="dark"] .page-about .step:nth-child(3) svg{fill:#2b4536}html[data-theme="dark"] .page-about .step p{color:#a4b6cd}html[data-theme="dark"] .page-about .step-output{border-color:#5d4229;color:#d6a36d}html[data-theme="dark"] .page-about .step:nth-child(2) .step-output{border-color:#36516b;color:#98bddf}html[data-theme="dark"] .page-about .step:nth-child(3) .step-output{border-color:#3c5d48;color:#abcdb6}html[data-theme="dark"] .page-about .step:not(:last-child):after{color:#8d735b}html[data-theme="dark"] .page-about .capability-table-wrap{border-color:#344152}html[data-theme="dark"] .page-about .capability-table th,html[data-theme="dark"] .page-about .capability-table td{border-bottom-color:#303b49}html[data-theme="dark"] .page-about .capability-table thead{background:#30261f;color:#9cb6d2}html[data-theme="dark"] .page-about .capability-table tbody th{color:#d1dded}html[data-theme="dark"] .page-about .capability-table tbody td{color:#a9bad1}html[data-theme="dark"] .page-about .capability-table tbody td:nth-child(2){color:#e1b472}html[data-theme="dark"] .page-about .capability-table tbody tr:nth-child(even){background:#1b2532}html[data-theme="dark"] .page-about .table-note{color:#91a8c3}html[data-theme="dark"] .page-about .closing{background:linear-gradient(#181e26,#27211d)}html[data-theme="dark"] .page-about .closing-content{background:radial-gradient(ellipse at center,#181e26fa 20%,#181e26d9 55%,#181e2600 80%)}html[data-theme="dark"] .page-about .closing .lead,html[data-theme="dark"] .page-about .closing-intro{color:#a7b8d0}html[data-theme="dark"] .page-about .rainbow-track{stroke:#3b2e22}html[data-theme="dark"] .page-about .text-link{color:#8ea6c2}
@media(max-width:1000px) and (min-width:761px){.cartoon-day-scene{width:115%;right:-12%;left:auto}}
@media(max-width:760px){.quick-actions{display:grid;grid-template-columns:auto auto;gap:5px 8px;justify-items:end;top:8px}.theme-toggle{grid-column:1/-1;grid-row:2;justify-self:end;min-height:26px;padding:5px 9px;font-size:calc(10px + var(--user-font-step, 0px));gap:7px}.theme-icon{font-size:calc(14px + var(--user-font-step, 0px));width:13px}.theme-track{width:25px;height:14px}.theme-track i{width:8px;height:8px}.terminal-lines{max-width:110px}.cartoon-day-scene{top:auto;left:auto;bottom:10px;right:-15%;width:155%;height:65%;background-position:80% bottom}.day-cloud{transform:scale(.65)}html[data-theme="light"] .page-index .cartoon-shade{background:linear-gradient(180deg,#e4f3fcdd 0%,#e4f3fc88 27%,transparent 72%,#e4f3fc44 100%)}html[data-theme="light"] .page-index .cinema-hero{background:#d7edfc}}
@media(max-width:360px){.cartoon-day-scene{width:170%;right:-20%}}
@media(max-height:650px) and (min-width:761px){.theme-toggle{min-height:29px;padding:6px 10px;font-size:calc(10px + var(--user-font-step, 0px))}}
@media(max-height:650px) and (max-width:760px){.quick-actions{top:4px;gap:3px 7px}.theme-toggle{min-height:23px;padding:3px 8px}.quick-button{min-height:25px;padding:5px 9px}.terminal-lines{max-width:105px}.page-index .terminal{font-size:calc(7px + var(--user-font-step, 0px))}}
@media(max-height:450px) and (min-width:600px){.quick-actions{display:flex;top:43px;gap:7px}.theme-toggle{font-size:calc(9px + var(--user-font-step, 0px));min-height:25px;padding:5px 8px;gap:5px}.theme-icon{font-size:calc(12px + var(--user-font-step, 0px))}.theme-track{width:24px}.quick-button{font-size:calc(9px + var(--user-font-step, 0px))}}
@media(prefers-reduced-motion:reduce){.day-cloud{animation:none}.theme-track i{transition:none}}

html[data-theme="dark"] .page-about .capability-table tbody tr:nth-child(2) th span,html[data-theme="dark"] .page-about .capability-table tbody tr:nth-child(2) td:nth-child(2){color:#9ac8ec}html[data-theme="dark"] .page-about .capability-table tbody tr:nth-child(3) th span,html[data-theme="dark"] .page-about .capability-table tbody tr:nth-child(3) td:nth-child(2){color:#acd2b8}html[data-theme="dark"] .page-about .capability-table tbody tr:nth-child(4) th span,html[data-theme="dark"] .page-about .capability-table tbody tr:nth-child(4) td:nth-child(2){color:#cbb5e5}
