/* Controles compartilhados. O tema escuro mantém as cores originais do painel. */
.theme-toggle{border:1px solid var(--border);color:var(--purple);position:relative}
.theme-toggle .icon{width:18px;height:18px;transition:transform .35s}
.theme-toggle:hover .icon{transform:rotate(-15deg)}
.login-header-actions{display:flex;align-items:center;gap:14px}
.login-header-actions .theme-toggle{color:#c9a3f2;border-color:#78579966}
.account-theme-heading{margin:20px 0 14px}
.account-theme-heading strong{font-size:14px;color:#e5d4f3}
.account-theme-heading p{font-size:13px;color:#b19bc2;margin-top:4px}
.theme-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.theme-choice{min-width:0;padding:9px;background:#1c1427;border:1px solid #59416d;border-radius:12px;text-align:left;color:#bda5d0;transition:border-color .2s,box-shadow .2s,transform .2s}
.theme-choice:hover{border-color:#b080df;transform:translateY(-2px)}
.theme-choice[aria-pressed=true]{border-color:#bc92ff;box-shadow:0 0 0 2px #b98bff22;color:#e3cbff}
.theme-preview{height:76px;padding:10px;display:grid;grid-template-columns:20% 1fr;gap:7px;border-radius:7px;overflow:hidden;background:#17121f}
.theme-preview>i{display:block;border-radius:3px;background:#312344}
.theme-preview>span{display:grid;grid-template-columns:1fr 1fr;gap:5px;align-content:start}
.theme-preview b{display:block;height:19px;border-radius:3px;background:#443257;border:1px solid #78569533}
.theme-preview b:first-child{grid-column:1/-1;height:24px;background:linear-gradient(100deg,#8050c0,#b794e6)}
.theme-preview.light{background:#f3f1fa}
.theme-preview.light>i{background:#dfd4f4}
.theme-preview.light b{background:#fff;border-color:#ddd5ec}
.theme-preview.light b:first-child{background:linear-gradient(100deg,#7946d6,#a582e9)}
.theme-preview.system{background:linear-gradient(90deg,#f3f1fa 50%,#17121f 50%)}
.theme-preview.system>i{background:#ddd1f2}
.theme-preview.system b:first-child{background:linear-gradient(100deg,#7950c0,#b89ae0)}
.theme-preview.system b:nth-child(2){background:#fff}
.theme-choice-label{display:flex;align-items:center;gap:7px;margin-top:10px;padding:0 2px}
.theme-choice-label>.icon{width:15px;height:15px}
.theme-choice-label strong{font-size:13px;font-weight:600}
.theme-choice-check{margin-left:auto;opacity:0;color:#bc92ff}
.theme-choice-check .icon{width:14px;height:14px}
.theme-choice[aria-pressed=true] .theme-choice-check{opacity:1}
.account-preference-group>.theme-local-note{display:block;font-size:12px;color:#ae95c0;line-height:1.7;margin:12px 0 6px}
::view-transition-old(root){animation:none}
::view-transition-new(root){animation:mequinThemeReveal .55s cubic-bezier(.22,1,.36,1);mix-blend-mode:normal}
::view-transition-group(root){animation-duration:.55s}
@keyframes mequinThemeReveal{from{clip-path:circle(0 at var(--theme-x,50%) var(--theme-y,35%))}to{clip-path:circle(150vmax at var(--theme-x,50%) var(--theme-y,35%))}}

/* Branco frio, roxo vivo e contrastes adequados para leitura durante o dia. */
:root[data-theme="light"]{color-scheme:light;--bg:#f6f5fb;--sidebar:#fff;--panel:#fff;--border:#e6e1ef;--text:#292139;--muted:#756a85;--purple:#7342cc;--mint:#218064;--light-tint:#f0eafa;--light-input:#faf8fd;--light-strong:#4d3274;--light-line:#ded5eb}
:root[data-theme="light"] body{background:radial-gradient(ellipse at 90% 0,#ece4ff88,transparent 45%),var(--bg)}
:root[data-theme="light"] :is(.sidebar,.topbar){border-color:var(--border)}
:root[data-theme="light"] .sidebar{box-shadow:5px 0 30px #45277704}
:root[data-theme="light"] .topbar{background:#ffffffed}
:root[data-theme="light"] :is(.workspace,.plan-card){background:linear-gradient(130deg,#f3edff,#faf8fd);border-color:var(--light-line)}
:root[data-theme="light"] :is(.workspace-icon,.console-icon,.modal-icon,.software-icon,.server-block,.players-stat-icon,.admin-square-icon,.admin-node-icon,.admin-event-icon,.admin-session-icon,.admin-node-large-icon,.account-feature-icon){background:#eee5fb;color:var(--purple);border-color:var(--light-line)}
:root[data-theme="light"] :is(.brand-dot,.heading-dot,.eyebrow,.admin-eyebrow,.library-tabs button.selected,.library-tabs button.selected .icon,.account-header h2>span,.account-text-button,.player-detail-back,.curse-project-footer>a,.curse-link-example button,.curse-file-type a){color:var(--purple)}
:root[data-theme="light"] :is(.breadcrumb,.nav-item,.profile small,.system-health,.plan-card p,.plan-meta,.nav-label,.tiny-icon,.icon-button,.workspace div>span,.footer,.footer-brand,.profile>span:last-child){color:var(--muted)}
:root[data-theme="light"] :is(.nav-item:hover,.icon-button:hover){background:#f1eafa;color:var(--purple)}
:root[data-theme="light"] .nav-item.active{background:linear-gradient(100deg,#ede3fb,#f4effc);color:#6738b7;box-shadow:inset 3px 0 #8751dd}
:root[data-theme="light"] :is(.nav-count,.nav-new,.admin-entry-tag,.demo-pill,.count-pill,.library-source,.footer-version,.admin-owner-label){background:#efe7fa;color:#69439c;border-color:#ddd0ee}
:root[data-theme="light"] :is(.avatar,.top-avatar,.account-avatar){color:#65369e;background:linear-gradient(130deg,#eadff8,#f6efff);border-color:#d5c3eb}
:root[data-theme="light"] :is(.plan-meter,.mini-meter,.server-meter,.workspace-meter,.admin-stat-meter,.admin-capacity-bar,.ring-base){background:#eae4f3;stroke:#eae4f3}
:root[data-theme="light"] .primary,:root[data-theme="light"] .account-dialog .button.primary,:root[data-theme="light"] .pack-install-button{background:linear-gradient(110deg,#8551dc,#7040c6);color:#fff;border-color:#8453d1;box-shadow:0 4px 15px #7640cd20}
:root[data-theme="light"] :is(.primary:hover,.account-dialog .button.primary:hover,.pack-install-button:hover){background:linear-gradient(110deg,#7741d0,#6130b7)}
:root[data-theme="light"] :is(.secondary,.account-dialog .secondary,.manage-button,.workspace-window-button,.admin-open-button){background:#eee5fa;color:#623794;border-color:#dfd0ef}
:root[data-theme="light"] :is(.secondary:hover,.manage-button:hover,.workspace-window-button:hover,.admin-open-button:hover){background:#e3d5f5;color:#502977}
:root[data-theme="light"] :is(.danger,.account-danger-button){background:#fbe7ef;color:#a33255;border-color:#edc8d5}
:root[data-theme="light"] .danger:hover{background:#f4d6e1}
:root[data-theme="light"] :is(.positive,.uptime-badge,.server-status,.player-status.online,.player-auth.original,.players-stat-icon.original){color:#217354}
:root[data-theme="light"] :is(.server-status,.trend-chip,.admin-pill.success,.account-status.enabled){background:#e8f6ef;color:#217354}
:root[data-theme="light"] :is(.server-status.offline,.admin-pill,.admin-role,.account-status){background:#f0edf5;color:#70637d}
:root[data-theme="light"] .switch{background:#d4c7e4}
:root[data-theme="light"] .switch:before{background:#fff;box-shadow:0 1px 5px #39254620}
:root[data-theme="light"] .switch.on{background:#8551d6}
:root[data-theme="light"] .switch.on:before{background:#fff}
:root[data-theme="light"] :is(.notification-popover,.server-menu,.toast,.chart-tooltip){background:#fff;border-color:#ddd0ef;color:var(--text);box-shadow:0 12px 40px #46296718}
:root[data-theme="light"] :is(.notification-popover p,.server-menu button){color:#61516f}
:root[data-theme="light"] .server-menu button:hover{background:#f1e9fb}
:root[data-theme="light"] :is(.stat-card,.panel,.server-card,.server-card.expanded){border-color:var(--border);background:#fff;box-shadow:0 4px 22px #43296004}
:root[data-theme="light"] :is(.stat-top,.stat-foot,.stat-value small,.server-software,.server-players,.server-resource-label,.subtle,.panel-heading p,.chart-legend,.chart-axis,.network-panel .region,.server-card .server-resource-label strong .subtle,.health-metrics span,.mini-caption,.server-count-label){color:var(--muted)}
:root[data-theme="light"] :is(.stat-value small .subtle,.console-status,.chart-summary>span,.server-resource-label strong>span){color:#726184}
:root[data-theme="light"] .purple{background:#ede5fb;color:#7544ba}
:root[data-theme="light"] .blue{background:#eaf0fd;color:#4c66b1}
:root[data-theme="light"] .pink{background:#f6e8f7;color:#9b4c9b}
:root[data-theme="light"] .mint{background:#e7f4ee;color:#277556}
:root[data-theme="light"] :is(.segmented,.pack-provider-switch,.admin-section-nav){background:#f4f0f9;border-color:#e4d9f0}
:root[data-theme="light"] :is(.segmented button,.server-filters button,.library-tabs button,.modpack-categories button,.pack-provider-switch button,.admin-section-nav button){color:#716281}
:root[data-theme="light"] :is(.segmented button.selected,.server-filters button.selected,.modpack-categories button.selected,.pack-provider-switch button[aria-pressed=true],.admin-section-nav button.selected){background:#e8dcf8;color:#623299;border-color:#d8c2f0}
:root[data-theme="light"] :is(.pack-provider-switch button:hover,.admin-section-nav button:hover){background:#e9dff5;color:#6733a3}
:root[data-theme="light"] .chart-grid{stroke:#eae4f1}
:root[data-theme="light"] #chart-line{stroke:#8956d8}
:root[data-theme="light"] #chart-point{fill:#fff;stroke:#8750d7}
:root[data-theme="light"] :is(.server-card:nth-child(2) .server-block,.players-stat-icon.original){background:#e9f5ef;color:#277655}
:root[data-theme="light"] .server-card:nth-child(3) .server-block{background:#f1edf6;color:#72637d}
:root[data-theme="light"] :is(.server-ip,.detail-info,.console-actions select){background:#f8f5fc;border-color:#e6dcee;color:#756180}
:root[data-theme="light"] :is(.modal,.admin-modal,.account-dialog){background:#fff;color:var(--text);border-color:#ddcfed;box-shadow:0 30px 100px #3a1c6630}
:root[data-theme="light"] :is(.modal,.account-dialog)::backdrop{background:#29123c66}
:root[data-theme="light"] :is(.modal input,.modal select,.account-form input:not([type=checkbox]),.account-form select,.account-flow-card input:not([type=checkbox]),.admin-modal input,.admin-modal select,.admin-filter-row select,.admin-setting-row select,.admin-setting-row input[type=number],.players-tools select,.modpack-selects select,.curse-install-choice select){background:var(--light-input);border-color:#dacee8;color:#513466}
:root[data-theme="light"] :is(input,select){accent-color:#8050ca}
:root[data-theme="light"] input::placeholder{color:#715f83}
:root[data-theme="light"] :is(.modal label,.account-form label,.account-flow-card label,.install-check,.account-check,.admin-modal label,.install-version-note,.modal>p,.modal p,.form-note,.account-form-footer>span,.account-form small,.account-form label>span,.account-flow-card p){color:#716080}
:root[data-theme="light"] .skip-link{color:#fff}

/* Bibliotecas e instalação. */
:root[data-theme="light"] :is(.modpack-search-input,.player-search,.admin-search,.curse-form>.curse-input){background:#fff;border-color:#e0d3ee;color:#746082}
:root[data-theme="light"] :is(.modpack-search-input input,.player-search input,.admin-search input,.curse-input input){color:#463052}
:root[data-theme="light"] :is(.modpack-card,.software-card,.curse-project,.curse-loading){background:linear-gradient(140deg,#fff,#faf7ff);border-color:#e3d6f0;box-shadow:0 3px 18px #45256606}
:root[data-theme="light"] :is(.modpack-card:hover,.software-card:hover){border-color:#be9bdf}
:root[data-theme="light"] :is(.modpack-card-logo,.curse-project-top>img){background:#f0e7fa;border-color:#d8c9e7}
:root[data-theme="light"] :is(.modpack-card h3,.software-card h3,.curse-project h3,.curse-loading strong,.install-package-header strong,.install-step strong,.install-version-note strong){color:#473054}
:root[data-theme="light"] :is(.modpack-author,.modpack-description,.pack-downloads,.software-description,.software-intro,.software-intro p,.modpack-results-count,.modpack-catalog-note,.curse-description,.curse-loading p,.curse-link-heading p,.curse-link-example,.curse-selected-file>span,.curse-selected-file small,.curse-file-type p,.curse-unavailable p,.curse-install-choice>small,.curse-downloads small){color:#72627f}
:root[data-theme="light"] :is(.pack-tags span,.curse-project-tags span){background:#efe7f8;color:#785b90;border-color:#e2d3ef}
:root[data-theme="light"] :is(.pack-tags .loader-tag,.curse-project-tags span:first-child){background:#e9def7;color:#7545a6}
:root[data-theme="light"] :is(.pack-downloads,.modpack-categories button,.software-intro,.install-package-header,.install-progress-meta,.curse-selected-file,.curse-unavailable,.curse-install-choice,.modpack-empty){background:#f6f0fc;border-color:#e1d3ee;color:#7c618d}
:root[data-theme="light"] :is(.curse-project-footer,.curse-file-type,.curse-selected-file,.curse-install-choice){border-color:#e4d6ef}
:root[data-theme="light"] :is(.curse-file-type strong,.curse-selected-file strong,.curse-install-choice label){color:#684079}
:root[data-theme="light"] :is(.curse-source-note,.curse-project-footer>a){color:#765f87}
:root[data-theme="light"] :is(.curse-feedback,.account-feedback){background:#e9f6ee;border-color:#cce7d5;color:#2b7651}
:root[data-theme="light"] :is(.curse-feedback.error,.account-feedback.error,.admin-form-error){background:#fff0f3;color:#a44a63;border-color:#efccd7}
:root[data-theme="light"] .modpack-skeleton{background:#fcfaff;border-color:#e2d5ed}
:root[data-theme="light"] .modpack-skeleton span{background:linear-gradient(100deg,#eee5f8,#f8f3fd,#eee5f8);background-size:200% 100%}
:root[data-theme="light"] .progress-demo{background:#efe3fa;color:#7c499e;border-color:#dccaeb}
:root[data-theme="light"] :is(.install-progress-description,.install-target-hint){color:#775d84!important}
:root[data-theme="light"] .install-steps:before{background:#e3d2ec}
:root[data-theme="light"] .install-step>span{background:#f3eaf9;border-color:#dbc5ea;color:#835893}
:root[data-theme="light"] .install-step.active>span{background:#8551be;border-color:#8551be;color:#fff}
:root[data-theme="light"] .install-step.done>span{background:#eee3f8;border-color:#d6bee9;color:#8551b1}
:root[data-theme="light"] .install-floating{background:#fff;border-color:#ccb0e4;color:#734399;box-shadow:0 12px 40px #4d2a7030}
:root[data-theme="light"] .install-floating:hover{background:#f5eafb}

/* Servidores, console e players, inclusive em tela cheia. */
:root[data-theme="light"] :is(.server-workspace,.server-fullscreen-dialog){background:#fff;color:var(--text);border-color:#d9c7e8}
:root[data-theme="light"] .server-fullscreen-dialog::backdrop{background:var(--bg)}
:root[data-theme="light"] .server-fullscreen-dialog.workspace-exiting,:root[data-theme="light"] .server-fullscreen-dialog.workspace-exiting::backdrop{background:transparent}
:root[data-theme="light"] .workspace-server-header{background:linear-gradient(110deg,#f0e5fb,#fcf9ff);border-color:#dfd0eb}
:root[data-theme="light"] .workspace-server-logo{background:linear-gradient(145deg,#8651be,#6936a0);color:#fff;border-color:#b391d1}
:root[data-theme="light"] :is(.workspace-server-heading p,.workspace-server-subtitle,.workspace-address,.inner-server-region,.workspace-server-header small){color:#795d8b}
:root[data-theme="light"] :is(.workspace-command-bar,.server-inner-menu,.workspace-bottom-bar){background:#f7f1fc;border-color:#e6d8ef;color:#795d87}
:root[data-theme="light"] .server-inner-tab{color:#795d8b}
:root[data-theme="light"] .server-inner-tab:hover{background:#ece0f7;color:#744793}
:root[data-theme="light"] .server-inner-tab.selected{background:linear-gradient(90deg,#e9d9f6,#f3ebfb);color:#6b3b8d}
:root[data-theme="light"] .inner-tab-marker{background:#9356c3}
:root[data-theme="light"] .server-inner-content{background:#fcfaff;border-color:#e2d4ee}
:root[data-theme="light"] :is(.server-workspace .console-panel,.server-workspace .console-panel>.panel-heading){background:#fff;border-color:#e4d4ee}
:root[data-theme="light"] :is(.console-body,.server-workspace .console-body){background:#f9f6fd;color:#6d537d}
:root[data-theme="light"] :is(.console-input,.server-workspace .console-input){background:#fff;border-color:#e7d9f0}
:root[data-theme="light"] .console-input input{color:#594066}
:root[data-theme="light"] :is(.console-input button,.server-workspace .console-input button){background:#eee2fa;color:#7e459f}
:root[data-theme="light"] :is(.console-footer,.server-workspace .console-footer){background:#f8f3fc;border-color:#e6d8ef;color:#795c87}
:root[data-theme="light"] .server-workspace .console-icon{background:#ede0f9;color:#884cb2}
:root[data-theme="light"] .console-server-label{background:#f0e5fa;border-color:#ddc8ea;color:#8a539f}
:root[data-theme="light"] .log-time{color:#7b5b89}
:root[data-theme="light"] .log-level{color:#8a54a6!important}
:root[data-theme="light"] .log-level.command{color:#33725c!important}
:root[data-theme="light"] :is(.server-resource-cards article,.workspace-information,.workspace-backup-list,.workspace-backup-empty,.players-overview article,.players-empty){background:#fff;border-color:#e2d3ee}
:root[data-theme="light"] :is(.server-resource-cards article strong,.workspace-information strong,.workspace-backup-list strong,.players-overview strong,.player-profile-heading h4,.player-card-name>strong){color:#59316c}
:root[data-theme="light"] :is(.server-resource-cards article>span,.server-resource-cards article small,.workspace-information span,.workspace-backup-list p,.workspace-backup-list small,.players-overview article>div>span,.players-results-heading,.players-demo-label,.players-auth-note,.players-empty,.players-pagination>span,.player-profile-meta,.player-permissions small,.player-actions-demo,.player-card-bottom,.players-live){color:#795c88}
:root[data-theme="light"] :is(.players-menu-count,.player-face){background:#eadcf6;color:#8852a0;border-color:#d7bfe7}
:root[data-theme="light"] :is(.player-card,.server-fullscreen-dialog .player-card){background:#fff;border-color:#decbeb;color:#795787}
:root[data-theme="light"] .player-card:hover{background:#faf4ff;border-color:#ba8ad4}
:root[data-theme="light"] .player-card.selected{background:#f5eafb;border-color:#b37ad0}
:root[data-theme="light"] .player-card-bottom{border-color:#eadcf2}
:root[data-theme="light"] .player-auth.unverified{color:#86602a}
:root[data-theme="light"] .players-stat-icon.unverified{background:#fff2df;color:#865f2b}
:root[data-theme="light"] .player-detail{background:linear-gradient(150deg,#fff,#faf3ff);border-color:#d7bce8;box-shadow:0 12px 30px #6339840c}
:root[data-theme="light"] .player-skin-stage{background:radial-gradient(ellipse at 50% 65%,#cfadeb55,transparent 62%),linear-gradient(145deg,#f1e3fc,#faf5ff);border-color:#d9bdeb}
:root[data-theme="light"] :is(.player-permissions,.player-permissions>div+div){border-color:#e1ceec}
:root[data-theme="light"] .player-permissions>div>span{color:#815190}
:root[data-theme="light"] .player-action-confirm{background:#fff2f4;border-color:#e9bfce}
:root[data-theme="light"] .player-action-confirm strong,:root[data-theme="light"] .player-status.banned{color:#a24a69}
:root[data-theme="light"] .player-action-confirm input{background:#fff;border-color:#deb0c3;color:#915770}

/* Administração. */
:root[data-theme="light"] :is(.admin-stats-grid article,.admin-panel,.admin-node-card,.admin-modal-actions){background:#fff;border-color:#e3d6ef}
:root[data-theme="light"] .admin-panel-heading{background:linear-gradient(100deg,#f8f2ff,#fff);border-color:#eadff2}
:root[data-theme="light"] :is(.admin-stats-grid article strong,.admin-page-heading h1,.admin-table-identity strong,.admin-node-card h2,.admin-node-resources strong,.admin-session-panel h2,.admin-setting-row strong,.admin-setting-row label:not(.admin-native-switch),.admin-confirm-resource strong){color:#56316e}
:root[data-theme="light"] :is(.admin-page-heading p,.admin-stats-grid article p,.admin-stats-grid article>span,.admin-stats-grid article small,.admin-panel-heading p,.admin-node-card>p,.admin-node-resources span,.admin-node-resources small,.admin-setting-row p,.admin-session-panel p,.admin-session-panel div>span,.admin-inline-note,.admin-section-heading>span,.admin-table td,.admin-table-identity span,.admin-audit-row p,.admin-event-content p,.admin-event-content small,.admin-settings-actions>span,.admin-modal-note,.admin-demo-footer,.admin-table td[data-label]:before){color:#785f84}
:root[data-theme="light"] .admin-section-heading h2>span{background:#f0e4fa;color:#8553a0}
:root[data-theme="light"] .admin-table th{background:#f8f3fc;color:#7e5a8b;border-color:#eee1f5}
:root[data-theme="light"] :is(.admin-table td,.admin-setting-row,.admin-node-card-actions,.admin-node-resources,.admin-settings-actions){border-color:#eddef5}
:root[data-theme="light"] .admin-table tbody tr:hover{background:#faf4ff}
:root[data-theme="light"] :is(.admin-pill.warning,.curse-project-tags span.unconfirmed){background:#fff3df;color:#845f27}
:root[data-theme="light"] .admin-pill.danger{background:#fdebf1;color:#9f4d6a}
:root[data-theme="light"] :is(.admin-text-button,.admin-footer-brand){color:#8a4ea3}
:root[data-theme="light"] .admin-panel-bottom{background:#fcf8ff;border-color:#e9daf2;color:#865696}
:root[data-theme="light"] .admin-attention-strip{background:linear-gradient(100deg,#fff9f0,#fcf4fc);border-color:#f0d9dc}
:root[data-theme="light"] .admin-attention-icon{background:#fff0df;color:#816232}
:root[data-theme="light"] .admin-attention-strip button{background:#fae7ef;color:#955472}
:root[data-theme="light"] .admin-user-avatar{background:linear-gradient(140deg,#ead6fa,#f4e8fb);color:#8751a0;border-color:#dcbfe9}
:root[data-theme="light"] .admin-role.owner{background:#f2e3fb;color:#8a4fa6}
:root[data-theme="light"] .admin-role.admin{background:#e9effd;color:#4a68a0}
:root[data-theme="light"] .admin-native-switch>span{background:#e1d1ea}
:root[data-theme="light"] .admin-native-switch>span:before{background:#fff}
:root[data-theme="light"] .admin-native-switch input:checked+span{background:#9956c7}
:root[data-theme="light"] .admin-native-switch input:checked+span:before{background:#fff}
:root[data-theme="light"] .admin-form-context{background:#fff5e9;color:#82633e;border-color:#ecd7bf}
:root[data-theme="light"] .admin-confirm-resource{background:#faf3ff;border-color:#e4ccef}
:root[data-theme="light"] .admin-confirm-resource span{color:#89539b}

/* Conta, preferências e autenticação. */
:root[data-theme="light"] .account-header{background:radial-gradient(ellipse at 20% 0,#ecdcff88,transparent 70%),#fbf8ff;border-color:#e8d7f3}
:root[data-theme="light"] .account-header .icon-button{background:#f1e4f8;color:#8a529f}
:root[data-theme="light"] .account-aside{background:#faf5ff;border-color:#ecdaf4}
:root[data-theme="light"] .account-summary>small{background:#f2e7fa;color:#8b4da3}
:root[data-theme="light"] :is(.account-summary>span,.account-session-note,.account-section-heading p,.account-form small,.account-security-card p,.account-security-card>small,.account-setting p,.account-preference-group>small,.account-locale,.account-locale strong,.account-manual-key>span,.account-manual-key>small,.account-code-note,.account-flow-actions .muted){color:#7c5c8c}
:root[data-theme="light"] :is(.account-section-heading h3,.account-summary>strong,.account-avatar-editor strong,.account-security-card h4,.account-flow-card h4,.account-card-heading h4,.account-preference-group h4,.account-setting strong,.account-theme-heading strong){color:#654174}
:root[data-theme="light"] .account-tabs button{color:#86549d}
:root[data-theme="light"] .account-tabs button:hover{background:#f0e3fb;color:#86509f}
:root[data-theme="light"] .account-tabs button[aria-selected=true]{background:linear-gradient(110deg,#eddef9,#f5e9fc);color:#834b9e}
:root[data-theme="light"] :is(.account-avatar-editor,.account-security-card,.account-flow-card,.account-preference-group,.account-test-password){background:#fdfaff;border-color:#e5d0f0}
:root[data-theme="light"] :is(.account-card-heading p,.account-theme-heading p,.theme-local-note){color:#80588f}
:root[data-theme="light"] .account-demo-note{background:#fff7e9;border-color:#eddbbd;color:#7d633b}
:root[data-theme="light"] .account-demo-note p{color:#786342}
:root[data-theme="light"] :is(.account-test-password code,.account-manual-key>code,.account-recovery-grid code){background:#f4e9fc;border-color:#e0c9ee;color:#86519f}
:root[data-theme="light"] .account-steps li{color:#87539c}
:root[data-theme="light"] .account-steps li>span{background:#f6edfc;border-color:#e4cbed}
:root[data-theme="light"] .account-steps li.current>span{background:#ecd7fb;color:#874fa6}
:root[data-theme="light"] :is(.account-strength i,.account-setting,.account-form-footer,.account-locale){border-color:#ead7f4}
:root[data-theme="light"] .account-strength i{background:#ead8f3}
:root[data-theme="light"] .theme-choice{background:#fff;border-color:#e0ccec;color:#87549c}
:root[data-theme="light"] .theme-choice:hover{border-color:#bb88d8}
:root[data-theme="light"] .theme-choice[aria-pressed=true]{border-color:#995ac5;color:#8b4eb0;box-shadow:0 0 0 2px #b484d71c}
:root[data-theme="light"] .theme-choice-check{color:#9341bb}
:root[data-theme="light"] .api-status{background:#fff5e7;color:#85602e;border-color:#e9cea3}
:root[data-theme="light"] .api-status button{background:#eddbbd;color:#805920}
:root[data-theme="light"] body.login-active,:root[data-theme="light"] .login-screen{background:#f9f6ff;color:#4a2d68}
:root[data-theme="light"] .login-backdrop{background:radial-gradient(ellipse at 5% 5%,#e5d2ff99,transparent 50%),radial-gradient(ellipse at 90% 90%,#ead8fa88,transparent 50%),#f9f6ff}
:root[data-theme="light"] .login-aurora{background:radial-gradient(ellipse,#c59beb44,transparent 65%)}
:root[data-theme="light"] .login-intro h1{color:#8450b8;text-shadow:0 12px 55px #b27cda25}
:root[data-theme="light"] :is(.login-intro-kicker,.login-intro-caption,.login-intro-signature,.login-card-kicker,.login-card-subtitle,.login-field label,.login-footer,.login-loading-note,.login-loading-label,.login-twofa-copy,.login-twofa-heading){color:#815794}
:root[data-theme="light"] .login-brand{color:#684376}
:root[data-theme="light"] :is(.login-header-note,.login-header-actions .theme-toggle){background:#f4e9fb;border-color:#e5cdf1;color:#8c4da8}
:root[data-theme="light"] .login-card{background:linear-gradient(130deg,#ffffffed,#fcf9ffed);border-color:#dcc0ef;box-shadow:0 28px 90px #995bc318,inset 0 1px 0 #fff}
:root[data-theme="light"] .login-card h2,:root[data-theme="light"] .login-welcome h2{color:#64417b}
:root[data-theme="light"] .login-card h2>span{color:#9044b7}
:root[data-theme="light"] .login-card-symbol{background:#f1e4fb;color:#9145bb;border-color:#e8d2f3}
:root[data-theme="light"] .login-input-wrap{background:#fcf8ff;border-color:#dec5ef;color:#8950a2}
:root[data-theme="light"] .login-input-wrap:focus-within{background:#fff;border-color:#b980d6;box-shadow:0 0 0 3px #c896e316}
:root[data-theme="light"] .login-input-wrap input{color:#755287}
:root[data-theme="light"] .login-input-wrap input:-webkit-autofill{box-shadow:0 0 0 1000px #fcf8ff inset;-webkit-text-fill-color:#755287;caret-color:#755287}
:root[data-theme="light"] .login-submit{background:linear-gradient(105deg,#a06ad0,#8953bb);color:#fff;border-color:#a775d0;box-shadow:0 8px 30px #ad79d225}
:root[data-theme="light"] .login-demo{background:#faf5ff;border-color:#ead5f5;color:#835499}
:root[data-theme="light"] :is(.login-demo code,.login-demo button,.login-back,.login-welcome-name){color:#8e49ac}
:root[data-theme="light"] .login-demo small{color:#825696}
:root[data-theme="light"] .login-feedback{background:#fff0f4;border-color:#efccd9;color:#9d4e72}
:root[data-theme="light"] .login-progress{background:#eddef7}
:root[data-theme="light"] .login-loading-steps>span{background:#e7d2f3}
:root[data-theme="light"] .login-loading-steps>span.complete{background:#b77ad5}
:root[data-theme="light"] .login-welcome-emblem>span:first-child{box-shadow:0 18px 60px #a776ce30}

/* A arte continua com contraste próprio; os demais blocos usam o tema do painel. */
:root[data-theme="light"] .banner-content h2{color:#f4edff}
:root[data-theme="light"] .banner-content h2 span{color:#d7bdff}
:root[data-theme="light"] .banner-status .status-dot{background:#73dcb5}
:root[data-theme="light"] .admin-entry{background:linear-gradient(100deg,#f0e8fa,transparent);border-color:#e0d2ed}
:root[data-theme="light"] .chart-tooltip strong{color:#654179}
:root[data-theme="light"] .chart-tooltip>span{color:#8b6b9b}
:root[data-theme="light"] .login-brand-mark{color:#fff}
:root[data-theme="light"] .login-world-scene:after{background:linear-gradient(0deg,#f9f6ff 0%,#f9f6ffcc 27%,transparent 70%),linear-gradient(90deg,#f9f6ffbb,transparent 75%)}
:root[data-theme="light"] .login-world h1{color:#5d3574}
:root[data-theme="light"] .login-world h1>span{color:#8049ae;background:linear-gradient(110deg,#713aa3,#a76abb);background-clip:text}
:root[data-theme="light"] .login-world-copy p{color:#765987}
:root[data-theme="light"] :is(.login-world-footer,.login-kicker,.login-scene-tag,.login-coordinates){color:#8c679f}
:root[data-theme="light"] .login-demo-heading{color:#88639c}
:root[data-theme="light"] .theme-local-note{font-size:12px;line-height:1.7;margin:12px 0 6px;border:0;padding:0}
:root[data-theme="light"] .install-progress-meta strong{color:#77528a}

@media(max-width:600px){.login-header-actions{gap:8px}.login-header-actions .theme-toggle{width:32px;height:32px}.theme-options{gap:7px}.theme-choice{padding:6px}.theme-preview{height:58px;padding:7px;gap:5px}.theme-choice-label{gap:5px}.theme-choice-label strong{font-size:12px}.theme-choice-label>.icon{width:13px;height:13px}.theme-choice-check{display:none}.topbar-right{gap:12px}}
@media(prefers-reduced-motion:reduce){::view-transition-new(root),::view-transition-old(root),::view-transition-group(root){animation:none}.theme-choice,.theme-toggle .icon{transition:none}}

:root[data-theme="light"] :is(.software-card,.modpack-card,.admin-node-card,.account-security-card,.curse-project,.workspace-backup-list) p{color:#7b658c}
:root[data-theme="light"] :is(.software-card-footer>span,.software-category,.player-manage-label,.health-ring>div>span,.pack-card-footer>span,.pack-author,.pack-description){color:#816294;border-color:#deceea}
:root[data-theme="light"] .account-dialog .theme-local-note{font-size:12px;line-height:1.7}

:root[data-theme="light"] .install-ring-bg{stroke:#eee2f7}
:root[data-theme="light"] .install-ring-fill{stroke:#9861cf;filter:drop-shadow(0 0 7px #af83d530)}
:root[data-theme="light"] .install-ring-inner strong{color:#734992}
:root[data-theme="light"] .install-ring-inner strong span{color:#8e61a5}
:root[data-theme="light"] .install-ring-inner small{color:#886996}
:root[data-theme="light"] .install-success .install-ring-inner strong{color:#2c7756}
:root[data-theme="light"] .install-step.active,:root[data-theme="light"] .install-step.done{color:#8b58a9}
:root[data-theme="light"] .pack-card-footer{border-color:#e9daf2}
:root[data-theme="light"] .software-type{border-color:#ddc9ec;color:#8c65a0}
:root[data-theme="light"] .workspace-isolation{color:#886397}
:root[data-theme="light"] .workspace-bottom-bar>span:first-child{color:#886397}

:root[data-theme="light"] .log-level[style*="color"]{color:#9d742f!important}
