/* 7.10.0 (ADR-058) · Modo claro / oscuro de toda la aplicación.
   El modo lo fija tema7100.js en <html data-theme="light|dark"> antes del primer pintado (preferencia guardada en la cuenta,
   copia local en el navegador y, en «Automático», el ajuste del sistema). Este fichero NO cambia nada en modo claro: solo
   redefine los tokens de ui74.css / tasks77.css / cal78.css y corrige las reglas que llevaban un color escrito a mano.
   Prefijo de lo propio: tema10-. Las reglas van en el orden de los ficheros a los que corrigen. */

/* ---------------------------------------------------------------- tokens */
:root[data-theme="dark"]{
 color-scheme:dark;
 --bg:#14181b;--panel:#1b2025;--ink:#ece6da;--ink2:#d9d2c5;--muted:#9a9382;--line:#2b3238;--soft:#222930;
 --amber:#e3b45f;--amberbg:#3a2f17;--red:#f08c86;--redbg:#3b2221;--green:#7cc79b;--greenbg:#1e3327;--blue:#8db9cc;--bluebg:#20353f;
 --shadow:0 1px 0 rgba(0,0,0,.35);
 --ok:#7cc79b;--ok-bg:#1e3327;--warn:#e3b45f;--warn-bg:#3a2f17;--bad:#f08c86;--bad-bg:#3b2221;--info:#8db9cc;--info-bg:#20353f;--neutral:#aeafa6;--neutral-bg:#262d33;
 --t77-late:#f08c86;--t77-warn:#e3b45f;--t77-card:#1b2025;--t77-colbg:#181d21;
 --c78-late:#f08c86;--c78-p1:#e2655a;--c78-p2:#e2a04a;--c78-p3:#8e8d84;--c78-p4:#5a5f63;--c78-ok:#7cc79b;
 --c78-late-bg:#1b2025;--c78-p1-bg:#3b2221;--c78-p2-bg:#3a2f17;--c78-ok-bg:#1e3327;
 --c78-eje:#e0a977;--c78-eje-b:#3a2a1c;--c78-vis:#5fcbbf;--c78-vis-b:#15332f;--c78-pro:#a9a3f3;--c78-pro-b:#262447;--c78-tra:#c893e4;--c78-tra-b:#33213f;--c78-com:#b8c76a;--c78-com-b:#2a2f14;--c78-seg:#aab6c6;--c78-seg-b:#262d35;--c78-otr:#b5b3aa;--c78-otr-b:#2b2d2a;
 --c78-hito:#e0a445;--c78-hito-bg:#332913;--c78-hito-line:#5a4a1f;
 /* superficies sólidas (lo que en claro usaba --ink como fondo) */
 --tema10-solid:#0f1316;--tema10-solid-ink:#f2eee6;--tema10-on:#ece6da;--tema10-on-ink:#14181b;--tema10-field:#11161a;
}
:root[data-theme="dark"] body{background:var(--bg);color:var(--ink)}

/* ---------------------------------------------------------------- ui74.css */
:root[data-theme="dark"] .side{background:var(--tema10-solid);color:var(--tema10-solid-ink);border-right:1px solid var(--line)}
:root[data-theme="dark"] .nav button.on{background:var(--tema10-on);color:var(--tema10-on-ink)}
:root[data-theme="dark"] .nav button.on .count{background:var(--tema10-on-ink);color:var(--tema10-on)}
:root[data-theme="dark"] .top{background:rgba(20,24,27,.92);border-bottom:1px solid var(--line)}
:root[data-theme="dark"] .btn{background:var(--panel);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .btn:hover{background:var(--soft)}
:root[data-theme="dark"] .btn.dark{background:var(--tema10-on);color:var(--tema10-on-ink);border-color:var(--tema10-on)}
:root[data-theme="dark"] .btn.dark:hover{background:#fff}
:root[data-theme="dark"] .preview{border-color:#2f4654}
:root[data-theme="dark"] .hero{background:var(--tema10-solid);color:var(--tema10-solid-ink);border:1px solid var(--line)}
:root[data-theme="dark"] .metric{background:#151a1e;border-color:#252c33}
:root[data-theme="dark"] .panel,:root[data-theme="dark"] .queue,:root[data-theme="dark"] .lightmetric,:root[data-theme="dark"] .phaselist,:root[data-theme="dark"] .gantt,:root[data-theme="dark"] .statusbtn,:root[data-theme="dark"] .purchase,:root[data-theme="dark"] .photo,:root[data-theme="dark"] .docblock,:root[data-theme="dark"] .sheetfoot,:root[data-theme="dark"] .note,:root[data-theme="dark"] .mobilebar,:root[data-theme="dark"] .mobilebar button,:root[data-theme="dark"] .bcolhead .n,:root[data-theme="dark"] .bcard,:root[data-theme="dark"] .projecttile,:root[data-theme="dark"] .finbox,:root[data-theme="dark"] .flowcard,:root[data-theme="dark"] .decisioncard,:root[data-theme="dark"] .tradecard,:root[data-theme="dark"] .searchfield,:root[data-theme="dark"] .pulse,:root[data-theme="dark"] .miniunit,:root[data-theme="dark"] .workcard,:root[data-theme="dark"] .nextaction,:root[data-theme="dark"] .docnavbutton,:root[data-theme="dark"] .docitem,:root[data-theme="dark"] .fileinfo,:root[data-theme="dark"] .cover-option,:root[data-theme="dark"] .uploadzone,:root[data-theme="dark"] .subactions .more,:root[data-theme="dark"] .doc-mobile details,:root[data-theme="dark"] .switchproject73 select,:root[data-theme="dark"] .projecttabs73 button.on,:root[data-theme="dark"] .op-mobile-card73,:root[data-theme="dark"] .summaryline73,:root[data-theme="dark"] .client-cost-detail73,:root[data-theme="dark"] .financial-section73,:root[data-theme="dark"] .client-form-navigation73 button,:root[data-theme="dark"] .review-check73,:root[data-theme="dark"] .buy74-card,:root[data-theme="dark"] .buy74-filter select,:root[data-theme="dark"] .buyeraction74,:root[data-theme="dark"] .buy74-lotstats>div,:root[data-theme="dark"] .supplier74,:root[data-theme="dark"] .compare74,:root[data-theme="dark"] .approval74,:root[data-theme="dark"] .form74-section,:root[data-theme="dark"] .cfg74-nav,:root[data-theme="dark"] .cfg74-event{background:var(--panel);color:var(--ink)}
:root[data-theme="dark"] .mobilebar{border-top:1px solid var(--line)}
:root[data-theme="dark"] .table tbody tr:hover,:root[data-theme="dark"] .qtitle,:root[data-theme="dark"] .taskrow:hover,:root[data-theme="dark"] .op-next73 .btn,:root[data-theme="dark"] .compare74 th,:root[data-theme="dark"] .cfg74-status,:root[data-theme="dark"] .execmoney,:root[data-theme="dark"] .bcol{background:var(--soft)}
:root[data-theme="dark"] .chip.amber{color:var(--amber)}
:root[data-theme="dark"] .priority,:root[data-theme="dark"] .p4{background:#4a4f54}
:root[data-theme="dark"] .track i{background:#c9a24e}
:root[data-theme="dark"] .statusbtn.course{color:var(--amber)}
:root[data-theme="dark"] .drawer{background:rgba(0,0,0,.55)}
:root[data-theme="dark"] .sheet{background:var(--bg);box-shadow:-10px 0 40px rgba(0,0,0,.5)}
:root[data-theme="dark"] .sheethead{background:var(--tema10-solid);color:var(--tema10-solid-ink);border-bottom:1px solid var(--line)}
:root[data-theme="dark"] .field input,:root[data-theme="dark"] .field select,:root[data-theme="dark"] .field textarea,:root[data-theme="dark"] .searchfield,:root[data-theme="dark"] .cal76-filters select,:root[data-theme="dark"] .cal76-filters input[type=search],:root[data-theme="dark"] .c78-typesel,:root[data-theme="dark"] .k10-json,:root[data-theme="dark"] .k10-dep input,:root[data-theme="dark"] .k10-dep select{background:var(--tema10-field);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .field input::placeholder,:root[data-theme="dark"] .field textarea::placeholder{color:var(--muted)}
:root[data-theme="dark"] .notice{border-color:#5a4a1f;background:var(--warn-bg);color:var(--warn)}
:root[data-theme="dark"] .bcard:hover,:root[data-theme="dark"] .projecttile:hover,:root[data-theme="dark"] .workcard:hover{border-color:#4a5158;box-shadow:0 4px 14px rgba(0,0,0,.4)}
:root[data-theme="dark"] .finbox.dark{background:var(--tema10-solid);color:var(--tema10-solid-ink)}
:root[data-theme="dark"] .finbox.dark .moneycell{background:#1a2024}
:root[data-theme="dark"] .decisioncard.good{border-color:#2f5a3f}
:root[data-theme="dark"] .decisioncard.bad{border-color:#5a3330}
:root[data-theme="dark"] .visualhint{border-color:#2f4654;color:#9fc0d2}
:root[data-theme="dark"] .sidefoot{border-top-color:#232a30;color:#9a9382}
:root[data-theme="dark"] .sidefoot button,:root[data-theme="dark"] .sidefoot .btn{background:#1a2024;color:#ddd;border-color:#3a4248}
:root[data-theme="dark"] .filterbtn.on,:root[data-theme="dark"] .docnavbutton.on,:root[data-theme="dark"] .cfg74-nav button.on,:root[data-theme="dark"] .t77-seg button.on,:root[data-theme="dark"] .cal76-modes button.on{background:var(--tema10-on);color:var(--tema10-on-ink)}
:root[data-theme="dark"] .docnavbutton.on span,:root[data-theme="dark"] .cfg74-nav button.on small,:root[data-theme="dark"] .t77-seg button.on span{color:#3d4247}
:root[data-theme="dark"] .pbar{background:var(--soft)}
:root[data-theme="dark"] .pbar em{background:var(--tema10-on)}
:root[data-theme="dark"] .legenddot.neutral{background:#6b6e6a}
:root[data-theme="dark"] .dualbar{background:#2b3238}:root[data-theme="dark"] .dualbar em{background:var(--tema10-on)}
:root[data-theme="dark"] .tinyava{background:#2b3238;color:#d9d2c5}
:root[data-theme="dark"] .readbadge{border-color:#2f4654}
:root[data-theme="dark"] .selected-tag{background:#3a2f17;color:var(--amber)}
:root[data-theme="dark"] .workphase .name{color:var(--ink2)}
:root[data-theme="dark"] .execmatrix tfoot .execvalue{background:var(--tema10-on);color:var(--tema10-on-ink)}
:root[data-theme="dark"] .heatmap th{color:var(--muted)}
:root[data-theme="dark"] .uploadzone{border-color:#4a5158}
:root[data-theme="dark"] .toast72{background:#ece6da;color:#14181b}
:root[data-theme="dark"] .toast72.error{background:#b3463d;color:#fff}
:root[data-theme="dark"] .toast72 button{color:inherit;border-bottom-color:currentColor}
:root[data-theme="dark"] .phasebtn.on{background:var(--tema10-solid);color:#fff}
:root[data-theme="dark"] .subrows .subrow{border-color:var(--line)}
:root[data-theme="dark"] .subrow .track{background:repeating-linear-gradient(90deg,#1f252a 0,#1f252a calc(25% - 1px),#2b3238 calc(25% - 1px),#2b3238 25%)}
:root[data-theme="dark"] .subrow.dragover{background:#3a2f17}
:root[data-theme="dark"] .photo-placeholder{background:#1a2024;border-color:#3a4248;color:var(--muted)}
:root[data-theme="dark"] .projecttabs73{border-bottom-color:var(--line)}
:root[data-theme="dark"] .private-overview73{border-color:#2b3238;background:#1a2024}
:root[data-theme="dark"] .clientcalc73{border-color:#2f5a3f;background:#18231c}
:root[data-theme="dark"] .supplier74.selected74{border-color:#5aa37a}
:root[data-theme="dark"] .supplier74-add{border-color:#4a5158}
:root[data-theme="dark"] .info74{border-color:#2f4654;color:#9fc0d2}
:root[data-theme="dark"] .warning74{border-color:#5a4a1f;color:var(--warn)}
:root[data-theme="dark"] .cfg74-event{border-left-color:#3a4a40}
:root[data-theme="dark"] .cfg74-logo{background:#0f1316}
:root[data-theme="dark"] .projectcover,:root[data-theme="dark"] .cover{filter:brightness(.92)}
:root[data-theme="dark"] .live-login section,:root[data-theme="dark"] .live-pulse article,:root[data-theme="dark"] .live-save,:root[data-theme="dark"] .wf-tools,:root[data-theme="dark"] .wf-sortrow{background:var(--panel);color:var(--ink)}
:root[data-theme="dark"] .live-login{background:var(--bg)}
:root[data-theme="dark"] .live-save.busy,:root[data-theme="dark"] .live-statebar{background:var(--warn-bg);color:var(--warn);border-color:#5a4a1f}
/* ---------------------------------------------------------------- calendar.css */
:root[data-theme="dark"] .cal76-shell{--paper:var(--panel)}
:root[data-theme="dark"] .cal76-filters{background:var(--soft)}
:root[data-theme="dark"] .cal76-day.outside{background:#171c20}
:root[data-theme="dark"] .cal76-day.outside .cal76-daynum{color:#5d6268}
:root[data-theme="dark"] .cal76-day.today,:root[data-theme="dark"] .cal76-timecol.today{background:#1d2422}
:root[data-theme="dark"] .cal76-event{background:#2b3222;border-left-color:#8c9664;color:#dfe6cd}
:root[data-theme="dark"] .cal76-event.is-note{background:#20303c;border-left-color:#7c99af;color:#d7e4ee}
:root[data-theme="dark"] .cal76-event.is-deadline{background:#352d1a;border-left-color:#b29b67;color:#eadfc3}
:root[data-theme="dark"] .cal76-event.is-overdue{background:#3b2221;border-left-color:#c0665a;color:#f0c3bd}
:root[data-theme="dark"] .cal76-weekhead,:root[data-theme="dark"] .cal76-hours{background:var(--panel)}
:root[data-theme="dark"] .cal76-weekhead,:root[data-theme="dark"] .cal76-allday{border-bottom-color:var(--line)}
:root[data-theme="dark"] .cal76-allday{background:#181d21}
:root[data-theme="dark"] .cal76-weekhead button,:root[data-theme="dark"] .cal76-allday>div,:root[data-theme="dark"] .cal76-timecol{border-left-color:var(--line)}
:root[data-theme="dark"] .cal76-timecol{background:repeating-linear-gradient(to bottom,transparent 0,transparent 59px,#2b3238 59px,#2b3238 60px)}
:root[data-theme="dark"] .cal76-slots button:hover,:root[data-theme="dark"] .cal76-slots button:focus-visible{background:#2b3222}
:root[data-theme="dark"] .cal76-drop{background-color:#2b3222!important}
:root[data-theme="dark"] .cal76-minigrid>button.has-events{background-color:#2b3222}
/* ---------------------------------------------------------------- tasks77.css */
:root[data-theme="dark"] .t77-seg button,:root[data-theme="dark"] .t77-colhead .n,:root[data-theme="dark"] .t77-donestrip,:root[data-theme="dark"] .t77-rolebox,:root[data-theme="dark"] .t77-chead,:root[data-theme="dark"] .t77-cgrouphead,:root[data-theme="dark"] .t77-clabel,:root[data-theme="dark"] .t77-cmonth,:root[data-theme="dark"] .t77-btn-danger-soft{background:var(--panel)}
:root[data-theme="dark"] .t77-col.is-over{background:#2b3222;border-color:#8c9664}
:root[data-theme="dark"] .t77-col.is-locked.is-over{background:#3b2221}
:root[data-theme="dark"] .t77-empty{border-color:#3a4248}
:root[data-theme="dark"] .t77-holder{background:#2b3222}
:root[data-theme="dark"] .t77-card:hover{border-color:#4a5158}
:root[data-theme="dark"] .t77-card.is-support{background:linear-gradient(90deg,color-mix(in srgb,var(--t77-c) 18%,var(--panel)),var(--panel) 40%)}
:root[data-theme="dark"] .t77-prio.p1{background:#3b2221;color:#f0a39b}
:root[data-theme="dark"] .t77-prio.p2{background:#3a2f17;color:#e9c27a}
:root[data-theme="dark"] .t77-prio.p3{background:#20303c;color:#9fc0d2}
:root[data-theme="dark"] .t77-prio.p4{background:#262d33;color:#aeafa6}
:root[data-theme="dark"] .t77-role{color:color-mix(in srgb,var(--t77-c) 70%,#fff)}
:root[data-theme="dark"] .t77-av.is-support{background:var(--panel);color:color-mix(in srgb,var(--t77-c) 75%,#fff)}
:root[data-theme="dark"] .t77-more-day{background:var(--soft)}
:root[data-theme="dark"] .t77-bar.is-support{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--t77-c) 30%,var(--panel)) 0 6px,var(--panel) 6px 12px);color:color-mix(in srgb,var(--t77-c) 75%,#fff)}
:root[data-theme="dark"] .t77-bar.is-support .t77-barav{background:var(--panel)}
:root[data-theme="dark"] .t77-bar.is-phase,:root[data-theme="dark"] .t77-swatch.is-phase{background:#2b3238;color:#d9d2c5;box-shadow:inset 0 0 0 1px #4a5158}
:root[data-theme="dark"] .t77-bar.is-phase.tone-warn{background:#3a2f17;color:#e9c27a;box-shadow:inset 0 0 0 1px #6a5a2a}
:root[data-theme="dark"] .t77-bar.is-phase.tone-bad{background:#3b2221;color:#f0a39b;box-shadow:inset 0 0 0 1px #6a3a36}
:root[data-theme="dark"] .t77-bar.is-milestone{background:var(--panel);color:#d9d2c5;box-shadow:inset 0 0 0 1px #4a5158;border-left-color:#8e8d84}
:root[data-theme="dark"] .t77-bar.is-milestone.tone-warn{background:#3a2f17;color:#e9c27a}
:root[data-theme="dark"] .t77-bar.is-milestone.tone-bad{background:#3b2221;color:#f0a39b}
:root[data-theme="dark"] .t77-bar.is-note{background:#20303c;color:#d7e4ee}
:root[data-theme="dark"] .t77-bar.is-block{background:color-mix(in srgb,var(--t77-c) 35%,var(--panel));color:color-mix(in srgb,var(--t77-c) 70%,#fff)}
:root[data-theme="dark"] .t77-weekband{border-bottom-color:var(--line);background:#181d21}
:root[data-theme="dark"] .t77-weekgrid .t77-cell{border-left-color:var(--line)}
:root[data-theme="dark"] .t77-callegend span{color:var(--muted)!important}
:root[data-theme="dark"] .t77-swatch.is-support{background:repeating-linear-gradient(135deg,#555 0 3px,var(--panel) 3px 6px)}
:root[data-theme="dark"] .t77-swatch.is-late{background:#3b2221}
:root[data-theme="dark"] .t77-cmonth{color:var(--ink2)}
:root[data-theme="dark"] .t77-cday.is-we{color:#5d6268}
:root[data-theme="dark"] .t77-cshade{background:#181d21}
:root[data-theme="dark"] .t77-cgroup{border-bottom-color:var(--line)}
:root[data-theme="dark"] .t77-crow:hover{background:rgba(255,255,255,.03)}
:root[data-theme="dark"] .t77-crow.is-phase .t77-clabel{color:var(--ink2)}
:root[data-theme="dark"] .t77-phasemark{background:#4a5158}
:root[data-theme="dark"] .t77-cbar.is-support{background:repeating-linear-gradient(135deg,color-mix(in srgb,var(--t77-c) 35%,var(--panel)) 0 5px,var(--panel) 5px 10px)}
:root[data-theme="dark"] .t77-cbar.is-phase{background:#3a4248;color:#d9d2c5}
:root[data-theme="dark"] .t77-cbar.is-phase.tone-warn{background:#6a5a2a;color:#f3dca8}
:root[data-theme="dark"] .t77-cbar.is-phase.tone-bad{background:#6a3a36;color:#f6c9c3}
:root[data-theme="dark"] .t77-btn-danger-soft{border-color:#6a3a36}
:root[data-theme="dark"] .t77-btn-danger-soft:hover{background:#3b2221}
:root[data-theme="dark"] .t77-mapfold>.t77-mapbtn small,:root[data-theme="dark"] .t77-checklist-lock{color:var(--muted)}
:root[data-theme="dark"] .c77-table th,:root[data-theme="dark"] .c77-table td{border-bottom-color:var(--line);background:var(--panel)}
:root[data-theme="dark"] .c77-table thead th{background:var(--soft);color:var(--ink2)}
:root[data-theme="dark"] .c77-g1{background:#1e3327!important;color:#7cc79b!important}
:root[data-theme="dark"] .c77-g2{background:#20353f!important;color:#8db9cc!important}
:root[data-theme="dark"] .c77-b1,:root[data-theme="dark"] .c77-src,:root[data-theme="dark"] .c77-chip.tone-neutral{color:var(--muted)}
:root[data-theme="dark"] .c77-input{background:var(--tema10-field);color:var(--ink);border-color:var(--line)}
:root[data-theme="dark"] .c77-input:focus{background:var(--tema10-field);border-color:#8db9cc;box-shadow:0 0 0 3px #8db9cc33}
:root[data-theme="dark"] .c77-input::placeholder{color:#5d6268}
:root[data-theme="dark"] .c77-table tfoot th,:root[data-theme="dark"] .c77-table tfoot td,:root[data-theme="dark"] .c77-awardnote,:root[data-theme="dark"] .t77-checklist-row.is-locked .t77-checklist-text[readonly]{background:var(--soft);color:var(--ink)}
:root[data-theme="dark"] .c77-table tbody tr:hover td,:root[data-theme="dark"] .c77-table tbody tr:hover th{background:#20262b}
/* ---------------------------------------------------------------- cuadro790.css */
:root[data-theme="dark"] .q790-cell,:root[data-theme="dark"] .q790-matrix th:first-child,:root[data-theme="dark"] .q790-matrix td:first-child,:root[data-theme="dark"] .q790-matrix tfoot th,:root[data-theme="dark"] .q790-matrix tfoot td,:root[data-theme="dark"] .q790-chip,:root[data-theme="dark"] .q790-table th,:root[data-theme="dark"] .q790-table td,:root[data-theme="dark"] .q790-col,:root[data-theme="dark"] .q790-mcell.q790-key{background:var(--panel)}
:root[data-theme="dark"] .q790-cell.q790-strong,:root[data-theme="dark"] .q790-line.q790-strong,:root[data-theme="dark"] .q790-postable tr.q790-keyrow td,:root[data-theme="dark"] .q790-matrix thead th,:root[data-theme="dark"] .q790-table thead th,:root[data-theme="dark"] .q790-chip.on{background:var(--soft);color:var(--ink2)}
:root[data-theme="dark"] .q790-matrix th,:root[data-theme="dark"] .q790-matrix td,:root[data-theme="dark"] .q790-table th,:root[data-theme="dark"] .q790-table td,:root[data-theme="dark"] .q790-line{border-bottom-color:var(--line)}
:root[data-theme="dark"] .q790-g-ing{background:#1e3327!important;color:#7cc79b!important}
:root[data-theme="dark"] .q790-g-gas{background:#20353f!important;color:#8db9cc!important}
:root[data-theme="dark"] .q790-g-res,:root[data-theme="dark"] .q790-g2{background:#332913!important;color:#e0a445!important}
:root[data-theme="dark"] .q790-res{--tc:#e0a445}
:root[data-theme="dark"] .q790-grid{stroke:#2b3238}
:root[data-theme="dark"] .q790-dot{stroke:var(--panel)}:root[data-theme="dark"] .q790-dotg{fill:var(--panel)}
:root[data-theme="dark"] .q790-tip{background:#ece6da;color:#14181b}
:root[data-theme="dark"] .q790-tip small{color:#4a4f54}:root[data-theme="dark"] .q790-tiprow em.q790-tipg{color:#3d4247}
:root[data-theme="dark"] .q790-chip.on{border-color:#4a5158}
:root[data-theme="dark"] .q790-mcell.q790-key.tone-bad{border-color:#6a3a36}:root[data-theme="dark"] .q790-mcell.q790-key.tone-ok{border-color:#2f5a3f}
/* ---------------------------------------------------------------- cal78.css */
:root[data-theme="dark"] .c78-pri.p3{background:#2b3238;color:#aeafa6}
:root[data-theme="dark"] .c78-pri.p4{background:#262d33;color:#8e8d84}
:root[data-theme="dark"] .c78-chip{background:#262d33;color:#c9c3b7}
:root[data-theme="dark"] .c78-chip.is-warn{background:#3a2f17;color:#e9c27a}
:root[data-theme="dark"] .c78-chip.is-bad{background:#3b2221;color:#f0a39b}
:root[data-theme="dark"] .c78-chip.is-ok{background:#1e3327;color:#7cc79b}
:root[data-theme="dark"] .c78-chip.is-run{background:#20353f;color:#9fc0d2}
:root[data-theme="dark"] .c78-chip.is-apo{background:var(--panel);border-color:#6b6e6a;color:#c9c3b7}
:root[data-theme="dark"] .c78-av.is-me{box-shadow:0 0 0 2px var(--panel),0 0 0 3.3px var(--ink)}
:root[data-theme="dark"] .c78-card,:root[data-theme="dark"] .c78-week,:root[data-theme="dark"] .c78-next,:root[data-theme="dark"] .c78-legend,:root[data-theme="dark"] .c78-banner,:root[data-theme="dark"] .c78-mbar{background:var(--panel)}
:root[data-theme="dark"] .c78-card:hover{border-color:#4a5158}
:root[data-theme="dark"] .c78-hito em{color:#7cc79b}:root[data-theme="dark"] .c78-hito em.is-warn{color:#e9c27a}
:root[data-theme="dark"] .c78-hito.tone-bad,:root[data-theme="dark"] .c78-mbar.is-hito.tone-bad,:root[data-theme="dark"] .c78-mbar.u-late{background:#3b2221;border-color:#6a3a36}
:root[data-theme="dark"] .c78-hito.is-done,:root[data-theme="dark"] .c78-mbar.is-hito.is-done{background:#1e2a22;border-color:#2f5a3f}
:root[data-theme="dark"] .c78-agendalist{border-top-color:#3a4248}
:root[data-theme="dark"] .c78-agenda{color:#c9c3b7}
:root[data-theme="dark"] .c78-dh{background:var(--tema10-solid);color:#fff}
:root[data-theme="dark"] .c78-day.is-today .c78-dh{background:#2f5a3f}
:root[data-theme="dark"] .c78-day.is-fest,:root[data-theme="dark"] .c78-month .t77-cell.c78-isfest{background:#2a2518}
:root[data-theme="dark"] .c78-fest{color:#e9c27a;background:#3a2f17}
:root[data-theme="dark"] .c78-add{border-color:#3a4248;color:var(--muted)}
:root[data-theme="dark"] .c78-day.cal76-drop{background:#2b3222}
:root[data-theme="dark"] .c78-arr{background:#2a1f1e;border-right-color:#4a2f2c}
:root[data-theme="dark"] .c78-ku{color:var(--ink2)}
:root[data-theme="dark"] .c78-banner{border-color:#4a2f2c}
:root[data-theme="dark"] .c78-mbar.is-note{background:#20303c}
:root[data-theme="dark"] .c78-month .t77-cell.c78-we{background:repeating-linear-gradient(135deg,#181d21 0 7px,#1c2126 7px 14px)}
:root[data-theme="dark"] .c78-mbar em{color:#e0a445}
/* La impresión del calendario sigue en blanco (cal78.css fuerza el fondo); el modo oscuro no afecta al PDF. */
:root[data-theme="dark"] body.c78-printing,:root[data-theme="dark"] body.c78-printing #c78print{background:#fff!important;color:#18191b}

/* ---------------------------------------------------------------- botón de tema */
.tema10-btn{display:inline-flex;align-items:center;gap:6px;white-space:nowrap}
.tema10-btn .tema10-ic{width:14px;height:14px;display:inline-block;vertical-align:middle}
.tema10-btn .tema10-ic path{fill:currentColor}
.tema10-menu{display:block;width:100%;margin-bottom:8px}
@media (prefers-reduced-motion:no-preference){html[data-theme] body,html[data-theme] .panel,html[data-theme] .side{transition:background-color .15s ease,color .15s ease}}
