/* Preferência de aparência: o tema escuro original continua sendo o padrão. */
.theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:7px;white-space:nowrap;min-width:92px;margin-left:10px;padding:9px 13px!important;font-size:12px!important;line-height:1.2}
.theme-toggle svg{width:17px;height:17px;flex:none}
html[data-theme="light"]{color-scheme:light;--bg:#f4f7fb;--panel:#ffffff;--line:#d7e0ea;--muted:#5c6b7d;--cyan:#087f96;--blue:#2563eb}
html[data-theme="light"] body{background:#f4f7fb;color:#1c293b}
html[data-theme="light"] body[data-area]{background:radial-gradient(ellipse at 85% -10%,#dce9fb80,transparent 45%),radial-gradient(ellipse at 1% 35%,#d8f2f44d,transparent 38%),#f4f7fb}
html[data-theme="light"] body[data-area]:before{background:linear-gradient(90deg,transparent,#69b9d380,#8194dc70,transparent)}
html[data-theme="light"] body[data-area] header{background:#ffffffe8;border-bottom-color:#d7e0ea}
html[data-theme="light"] body[data-area] .logo sup{color:#247d9b}
html[data-theme="light"] body[data-area] nav button{color:#5c6b7d}
html[data-theme="light"] body[data-area] nav button.active{background:linear-gradient(110deg,#e9f1fa,#dde8f5);color:#183b5d;border-color:#c4d5e7;box-shadow:inset 0 1px #ffffff}
html[data-theme="light"] body[data-area] .account,
html[data-theme="light"] body[data-area] .demo{color:#64748b}
html[data-theme="light"] body[data-area] .eyebrow{color:#3d6f91}
html[data-theme="light"] body[data-area] h1,
html[data-theme="light"] body[data-area] h2,
html[data-theme="light"] body[data-area] h3{color:#142237}
html[data-theme="light"] body[data-area] p,
html[data-theme="light"] body[data-area] .heading p,
html[data-theme="light"] body[data-area] .summary{color:#5c6b7d}
html[data-theme="light"] body[data-area] .summary span:before{background:#8395aa}
html[data-theme="light"] body[data-area] button{color:#34445a;background:linear-gradient(165deg,#ffffff,#edf2f7);border-color:#cbd7e4;box-shadow:inset 0 1px #ffffff,0 3px 10px #213b5310}
html[data-theme="light"] body[data-area] button:hover{background:linear-gradient(160deg,#ffffff,#e3edf7);border-color:#75a9c9;box-shadow:0 4px 16px #315a7918}
html[data-theme="light"] body[data-area] button:active{box-shadow:inset 0 2px 5px #33415518}
html[data-theme="light"] body[data-area] .primary{color:#ffffff;background:linear-gradient(130deg,#2774d8,#1759ae);border-color:#2774d8;box-shadow:0 4px 14px #2563eb30}
html[data-theme="light"] body[data-area] .primary:hover{color:#ffffff;background:linear-gradient(130deg,#3285e9,#1c63bd);border-color:#1759ae;box-shadow:0 5px 20px #2563eb40}
html[data-theme="light"] .theme-toggle{color:#34445a;background:#ffffff;border-color:#cbd7e4;box-shadow:0 2px 8px #213b5310}
html[data-theme="light"] .theme-toggle:hover{color:#0e5770;background:#edf7fa;border-color:#75a9c9}
html[data-theme="light"] body[data-area] .overview{background:radial-gradient(ellipse at 12% 0%,#e3ebfa,transparent 65%),linear-gradient(125deg,#ffffff,#f1f5fa);border-color:#d3dfeb;box-shadow:0 12px 32px #27476212}
html[data-theme="light"] body[data-area] .overview:before{background:linear-gradient(90deg,transparent,#8cb9dd,transparent)}
html[data-theme="light"] body[data-area] .stat{border-color:#dbe4ee}
html[data-theme="light"] body[data-area] .stat b{color:#17243a}
html[data-theme="light"] body[data-area] .stat small,
html[data-theme="light"] body[data-area] .stat span{color:#65778d}
html[data-theme="light"] body[data-area] .bar{background:#d8e1eb}
html[data-theme="light"] body[data-area] .bar i{background:linear-gradient(90deg,#4e6fd1,#2999b8);box-shadow:none}
html[data-theme="light"] body[data-area] .upcoming{background:linear-gradient(120deg,#ffffff,#edf4fa);border-color:#d0deeb;box-shadow:none}
html[data-theme="light"] body[data-area] .upcoming small{color:#3c6e91}
html[data-theme="light"] body[data-area] .upcoming p{color:#61748a}
html[data-theme="light"] body[data-area] .upcoming button{background:#eaf3fa;border-color:#bfd4e5;color:#29516e}
html[data-theme="light"] body[data-area] .filters button{color:#607186;background:transparent;box-shadow:none}
html[data-theme="light"] body[data-area] .filters button.selected{background:#e2eaf5;border-color:#c3d3e5;color:#263f5e;box-shadow:none}
html[data-theme="light"] body[data-area] .filters button:hover{color:#1e334d;background:#e8eef5}
html[data-theme="light"] body[data-area] input,
html[data-theme="light"] body[data-area] select,
html[data-theme="light"] body[data-area] textarea{color:#213047;background:#ffffff;border-color:#cbd7e4;box-shadow:inset 0 1px 3px #3341550a}
html[data-theme="light"] body[data-area] input::placeholder,
html[data-theme="light"] body[data-area] textarea::placeholder{color:#8593a5}
html[data-theme="light"] body[data-area] input:focus,
html[data-theme="light"] body[data-area] select:focus,
html[data-theme="light"] body[data-area] textarea:focus{border-color:#5c9cbd;box-shadow:0 0 0 3px #5c9cbd18}
html[data-theme="light"] body[data-area] .search{background:#ffffff}
html[data-theme="light"] body[data-area] .phase{background:linear-gradient(140deg,#ffffff,#f5f8fb);border-color:#d4dfeb;box-shadow:0 10px 28px #2747620d}
html[data-theme="light"] body[data-area] .phase:before{background:linear-gradient(90deg,transparent,#a9c7dc,transparent)}
html[data-theme="light"] body[data-area] .phase-head{background:linear-gradient(90deg,#eaf1f780,transparent)}
html[data-theme="light"] body[data-area] .phase-head p,
html[data-theme="light"] body[data-area] .phase-head>span{color:#6a7c91}
html[data-theme="light"] body[data-area] .phase-num{color:#276e8d;background:linear-gradient(145deg,#e7f2f8,#d6e6f1);border-color:#b5cfdf;box-shadow:inset 0 1px #ffffff,0 4px 12px #315a7912}
html[data-theme="light"] body[data-area] .phase-num:before{border-color:#7ca7c333}
html[data-theme="light"] body[data-area] .phase-num:after{background:#4d9ab8;box-shadow:none}
html[data-theme="light"] body[data-area] .phase-num svg{filter:none}
html[data-theme="light"] body[data-area] .phase:nth-child(2) .phase-num{color:#5c62a0;background:linear-gradient(145deg,#eeeff9,#e1e4f3)}
html[data-theme="light"] body[data-area] .phase:nth-child(3) .phase-num{color:#36768a}
html[data-theme="light"] body[data-area] .phase:nth-child(4) .phase-num{color:#347865}
html[data-theme="light"] body[data-area] th{background:#eef3f8;border-color:#d9e2ec;color:#65778c}
html[data-theme="light"] body[data-area] td{border-color:#e0e7ef;color:#4f6075}
html[data-theme="light"] body[data-area] tbody tr:hover td{background:#edf5fa}
html[data-theme="light"] body[data-area] tbody tr:hover td:first-child{box-shadow:inset 2px 0 #70a9c4}
html[data-theme="light"] body[data-area] .task-button{color:#1d3048;background:none;box-shadow:none}
html[data-theme="light"] body[data-area] .task-button:hover{color:#086b87;background:none}
html[data-theme="light"] body[data-area] td small{color:#74869a}
html[data-theme="light"] body[data-area] .date{color:#4b6178}
html[data-theme="light"] body[data-area] .status{background:#edf2f7;color:#52657a;border-color:#d5dfe9;box-shadow:none}
html[data-theme="light"] body[data-area] .status.ongoing{background:#e5eefb;color:#3c64a2;border-color:#c7d8ef}
html[data-theme="light"] body[data-area] .status.review{background:#eee9f8;color:#735f9d;border-color:#dcd2ee}
html[data-theme="light"] body[data-area] .status.done{background:#e3f3ec;color:#34765f;border-color:#c6e3d7}
html[data-theme="light"] body[data-area] .late{color:#9a5b28}
html[data-theme="light"] body[data-area] .card,
html[data-theme="light"] body[data-area] .form-panel{background:radial-gradient(ellipse at 100% 0%,#e8eef8,transparent 60%),linear-gradient(140deg,#ffffff,#f5f8fb);border-color:#d3dfeb;box-shadow:0 10px 28px #2747620d}
html[data-theme="light"] body[data-area] .card .eyebrow{color:#4d7493}
html[data-theme="light"] body[data-area] .card p,
html[data-theme="light"] body[data-area] .note{color:#566b80}
html[data-theme="light"] body[data-area] .note{background:#eaf3f8;border-color:#6b98c6}
html[data-theme="light"] body[data-area] label{color:#4f647b}
html[data-theme="light"] body[data-area] .count{color:#71849a}
html[data-theme="light"] body[data-area] .close{background:none;box-shadow:none}
html[data-theme="light"] body[data-area] .close:hover{background:#e8eef5;box-shadow:none}
html[data-theme="light"] body[data-area] dialog{background:radial-gradient(ellipse at 100% 0%,#e5edf8,transparent 65%),linear-gradient(130deg,#ffffff,#f4f7fb);color:#1c293b;border-color:#cbd9e7;box-shadow:0 30px 100px #172b4540}
html[data-theme="light"] body[data-area] dialog::backdrop{background:#172b4566;backdrop-filter:blur(8px)}
html[data-theme="light"] body[data-area] dialog p{color:#566b80}
html[data-theme="light"] body[data-area] #toast{background:linear-gradient(120deg,#e4f3f8,#edf5fa);border-color:#9fc9d7;color:#24566b;box-shadow:0 10px 30px #27476225}
html[data-theme="light"] body[data-area] .wizard li{color:#5f7186;background:linear-gradient(140deg,#ffffff,#f1f5f9);border-color:#d4dfeb}
html[data-theme="light"] body[data-area] .wizard .wz-num{color:#45647e;background:#e7eef5;border-color:#c5d5e3}
html[data-theme="light"] body[data-area] .wizard .wz-label b{color:#718398}
html[data-theme="light"] body[data-area] .wizard li.done{color:#34765f;border-color:#c6e3d7}
html[data-theme="light"] body[data-area] .wizard li.done .wz-num{background:#e3f3ec;color:#34765f;border-color:#c6e3d7}
html[data-theme="light"] body[data-area] .wizard li.current{color:#213c5b;border-color:#8ebbd5;box-shadow:0 4px 18px #5a8eb51a}
html[data-theme="light"] body[data-area] .wizard li.current .wz-num{color:#ffffff;background:linear-gradient(#298bfa,#145fd1);border-color:#298bfa}
html[data-theme="light"] body[data-area] .step-card .hint,
html[data-theme="light"] body[data-area] .run-list{color:#687c91}
html[data-theme="light"] body[data-area] .step-card.busy{border-color:#8ebbd5}
html[data-theme="light"] body[data-area] .step-card.failed{border-color:#d5ae88}
html[data-theme="light"] body[data-area] .run-now{color:#35657f}
html[data-theme="light"] body[data-area] .run-list li.ok{color:#34765f}
html[data-theme="light"] body[data-area] .run-list li.busy{color:#286d8b}
html[data-theme="light"] body[data-area] .warn{border-color:#b97b43}
html[data-theme="light"] body[data-area] .review ul{color:#566b80}
html[data-theme="light"] body[data-area] details.form-panel summary{color:#36536e}

/* Tela de entrada: mantém as luzes e animações originais, com contraste claro. */
html[data-theme="light"] body:not([data-area]){background:#edf4fa;color:#17263a}
html[data-theme="light"] body:not([data-area]) .byline,
html[data-theme="light"] body:not([data-area]) .intro,
html[data-theme="light"] body:not([data-area]) .prototype,
html[data-theme="light"] body:not([data-area]) footer{color:#5f7184}
html[data-theme="light"] body:not([data-area]) .light-background{background:radial-gradient(ellipse at 50% 110%,#d6e8fa 0%,#edf4fa 64%)}
html[data-theme="light"] body:not([data-area]) .light-haze{opacity:.32}
html[data-theme="light"] body:not([data-area]) .light-arc{opacity:.42}
html[data-theme="light"] body:not([data-area]) .light-vignette{background:radial-gradient(ellipse at 50% 40%,#ffffff22 0%,transparent 55%,#c9d9e833 100%)}
html[data-theme="light"] body:not([data-area]) .access{background:linear-gradient(140deg,#fffffff2,#f7faffed);border-color:#cbd9e6;box-shadow:0 25px 80px #35516b1c,inset 0 1px 0 #ffffff}
html[data-theme="light"] body:not([data-area]) h2,
html[data-theme="light"] body:not([data-area]) h3{color:#142237}
html[data-theme="light"] body:not([data-area]) label{color:#3f536a}
html[data-theme="light"] body:not([data-area]) input{background:#ffffff;color:#1c2d42;border-color:#c8d5e2}
html[data-theme="light"] body:not([data-area]) input::placeholder{color:#8392a4}
html[data-theme="light"] body:not([data-area]) input:focus{border-color:#258ca5;box-shadow:0 0 0 3px #258ca514}
html[data-theme="light"] body:not([data-area]) .text-button,
html[data-theme="light"] body:not([data-area]) .password-wrap button{color:#527089;background:none}
html[data-theme="light"] body:not([data-area]) .primary{color:#ffffff;background:linear-gradient(105deg,#1264e7,#2189ff);border-color:#388ff6}
html[data-theme="light"] body:not([data-area]) footer{border-top-color:#d9e3ed}
html[data-theme="light"] body:not([data-area]) #status{color:#08768c}
html[data-theme="light"] body:not([data-area]) .background-motion{color:#4e6b82;background:transparent}
html[data-theme="light"] body:not([data-area]) dialog{background:#ffffff;color:#1c293b;border-color:#c8d7e4}
html[data-theme="light"] body:not([data-area]) dialog>p{color:#566b80}
html[data-theme="light"] body:not([data-area]) .mission{border-color:#d9e3ed}

@media(max-width:850px){.theme-toggle{min-width:44px;margin-left:0;padding:9px 11px!important}.theme-toggle span{display:none}body:not([data-area]) .theme-toggle span{display:inline}body:not([data-area]) .theme-toggle{min-width:82px}}
@media print{.theme-toggle{display:none!important}}
