/* Approved ENERGÍA appearance. Scope is the Ur space document, not the public website. */
:root[data-theme=dark]{color-scheme:dark;--ink:#f3f5f8;--muted:#b5c3d4;--line:#2b3e51;--cyan:#36c5db;background:#0b1018;color:var(--ink)}
html[data-theme=dark] body{background:#0b1018;color:var(--ink);isolation:isolate}
html[data-theme=dark] body::before{content:"";position:fixed;inset:0;z-index:-2;pointer-events:none;background:#0b1018 url('/ur-space/waves-dark-v1.png') center bottom / cover no-repeat}
html[data-theme=dark] .app-shell{min-height:100dvh;background:transparent}
html[data-theme=dark] .sidebar{background:linear-gradient(180deg,#0d1a28e6,#0d1a289c 70%,#0d1a2855);border-color:#284056;color:#f3f5f8}
html[data-theme=dark] .sidebar::before{display:none}
html[data-theme=dark] .brand{color:#f3f5f8;border-color:#36c5db}
html[data-theme=dark] .sidebar .product{color:#b5c3d4}
html[data-theme=dark] .sidebar .nav-label{color:#a9bfd1;letter-spacing:1.5px}
html[data-theme=dark] .sidebar nav{gap:8px}
html[data-theme=dark] .sidebar nav button{color:#d6e2ed;border-radius:10px;transition:background-color .15s ease}
html[data-theme=dark] .sidebar nav button[aria-current]{background:linear-gradient(110deg,#20425b,#18354e);color:#8ce4f4;border-left-color:#36c5db;box-shadow:inset 0 0 0 1px #325d7530}
html[data-theme=dark] .sidebar nav button:hover:not([aria-current]){background:#23465b80;color:#f3f5f8}
html[data-theme=dark] .sidebar .profile{border-color:#36526990}
html[data-theme=dark] .sidebar .profile small{color:#b7cbdd}
html[data-theme=dark] .sidebar .profile .avatar{background:#29495e;color:#e3f3fb}
html[data-theme=dark] .sidebar .profile-edit{color:#e2edf5}
html[data-theme=dark] .sidebar .logout{color:#b7cbdd}
html[data-theme=dark] .sidebar .logout:hover{color:#90e9f8}
/* Approved dark icon palette. Negative spaces stay transparent on every row state. */
html[data-theme=dark] .nav-isotipo{--isotipo-ink:#edf2f5;position:relative;isolation:isolate;overflow:visible;background:transparent}
html[data-theme=dark] .nav-isotipo::before{display:none}
html[data-theme=dark] .nav-isotipo svg{width:30px;height:28px;flex-basis:30px;filter:none}
html[data-theme=dark] .nav-isotipo [fill="#242223"]{fill:var(--isotipo-ink)}
html[data-theme=dark] .nav-isotipo [stroke="#242223"]{stroke:var(--isotipo-ink)}
html[data-theme=dark] .nav-isotipo-crew{mix-blend-mode:normal;mask-image:none}
html[data-theme=dark] .main{background:transparent}
html[data-theme=dark] .topbar{border-color:#253a4d;color:#b5c3d4}
html[data-theme=dark] .topbar b{color:#dce8f3}
html[data-theme=dark] .button{border-color:#345069;background:#101d2b;color:#e8f0f7;border-radius:10px;padding:10px 14px;min-height:40px;box-shadow:inset 0 1px 0 #ffffff04}
html[data-theme=dark] .button:hover{background:#183045;border-color:#508098}
html[data-theme=dark] .button.primary{border-color:#2897c3;background:linear-gradient(180deg,#0877ac,#095981);color:#fff;font-weight:600;box-shadow:inset 0 1px 0 #63d9ff55,0 5px 16px #00101f40}
html[data-theme=dark] .button.primary:hover{background:linear-gradient(180deg,#0d88ba,#086d95);border-color:#52cfe8}
html[data-theme=dark] .count{background:#264b61;color:#cff4fa}
html[data-theme=dark] .icon-button{background:#101d2b;color:#e8f0f7;border-color:#345069;border-radius:10px;width:36px;height:36px}
html[data-theme=dark] .page-head{padding-top:24px;padding-bottom:28px}
html[data-theme=dark] h1{font-weight:700;letter-spacing:-.6px;color:#f3f5f8}
html[data-theme=dark] #description{color:#b5c3d4;border-radius:8px}
html[data-theme=dark] #description:not(:read-only):hover{border-color:#3f5e76;background:#13233699}
html[data-theme=dark] .task-toolbar{border-bottom:0;margin-bottom:14px}
html[data-theme=dark] .tabs button{color:#b5c3d4;padding:14px 0}
html[data-theme=dark] .tabs button[aria-pressed=true]{color:#f3f5f8;border-bottom-color:#36c5db}
html[data-theme=dark] input,html[data-theme=dark] textarea,html[data-theme=dark] select{background:#101923;color:#f3f5f8;border:1px solid #3c566d;border-radius:10px;min-height:40px;padding:10px 12px}
html[data-theme=dark] input::placeholder,html[data-theme=dark] textarea::placeholder{color:#92a7b9;opacity:1}
html[data-theme=dark] #search{padding:10px 12px;width:235px;margin-bottom:0}
html[data-theme=dark] #tasks-page>.table-scroll{border:1px solid #304357;border-bottom:0;border-radius:14px 14px 0 0;background:#13202d;box-shadow:0 12px 35px #030a143d}
html[data-theme=dark] #tasks-page>#task-scroll .tasks-table thead{background:#152535;box-shadow:0 1px 0 #304357}
html[data-theme=dark] .tasks-table thead{background:#152535}
html[data-theme=dark] .tasks-table th{color:#b5c3d4;padding:15px 16px;border-color:#304357}
html[data-theme=dark] .tasks-table td{padding:23px 16px;color:#e4edf5;border-color:#2b3e51}
html[data-theme=dark] .tasks-table tbody tr:hover{background:#1c354861}
html[data-theme=dark] .tasks-table tbody tr:last-child td{border-bottom:0}
html[data-theme=dark] #task-count{padding:17px 18px;background:#13202d;border:1px solid #304357;border-top:1px solid #2b3e51;border-radius:0 0 14px 14px;font-size:12px;color:#adbed0;margin-bottom:100px}
html[data-theme=dark] .task-name{color:#e8f0f7}
html[data-theme=dark] .task-name:hover{color:#90e9f8}
html[data-theme=dark] .text-button,html[data-theme=dark] .delivery-link{color:#83dfef;text-underline-offset:4px}
html[data-theme=dark] .text-button:hover,html[data-theme=dark] .delivery-link:hover{color:#c3f5ff}
html[data-theme=dark] .text-button.task-name{color:#e8f0f7;font-weight:500}
html[data-theme=dark] .text-button.task-name:hover{color:#90e9f8}
html[data-theme=dark] .person .avatar{background:#2a465b;color:#dff4fe;border:1px solid #426177}
html[data-theme=dark] .table-sort-button:hover{color:#82e5f3}
html[data-theme=dark] .table-sort-arrow{color:#b1c5d6}
html[data-theme=dark] th[aria-sort] .table-sort-button{color:#e6f2ff}
html[data-theme=dark] th[aria-sort] .table-sort-arrow{color:#72e3f4}
html[data-theme=dark] .state{padding:5px 8px;min-height:30px;max-width:128px;border-radius:18px;border:1px solid transparent;font-size:12px}
html[data-theme=dark] .state[data-state="Sin empezar"]{background:#50303b;color:#ffced3;border-color:#704955}
html[data-theme=dark] .state[data-state="En progreso"]{background:#193f65;color:#c4e3ff;border-color:#335d83}
html[data-theme=dark] .state[data-state="Listo"]{background:#1e493c;color:#c4f1d9;border-color:#356451}
html[data-theme=dark] .state option{background:#152535;color:#f3f5f8}
html[data-theme=dark] .state option[value="Sin empezar"]{background:#50303b;color:#ffced3}
html[data-theme=dark] .state option[value="En progreso"]{background:#193f65;color:#c4e3ff}
html[data-theme=dark] .state option[value="Listo"]{background:#1e493c;color:#c4f1d9}
html[data-theme=dark] #task-form select.state{border-radius:10px;min-height:42px;padding:10px 12px}
html[data-theme=dark] .status{color:#a5dec1}
html[data-theme=dark] .status.error,html[data-theme=dark] .form-error{color:#ffb5bd}
html[data-theme=dark] dialog{background:linear-gradient(115deg,#172533,#131e2b);border:1px solid #466077;border-radius:20px;color:#f3f5f8;box-shadow:0 24px 90px #0009,inset 0 1px 0 #b6e6ff14;padding:28px;width:650px;scrollbar-color:#546c7e #131e2b}
html[data-theme=dark] dialog::before{content:"";position:absolute;top:0;left:26%;right:8%;height:1px;pointer-events:none;background:linear-gradient(90deg,transparent,#36c5db88,#ff663e66,transparent)}
html[data-theme=dark] dialog::backdrop{background:#030a13b3;backdrop-filter:blur(4px)}
html[data-theme=dark] dialog label{color:#d9e6f1;gap:9px;margin:19px 0}
html[data-theme=dark] dialog input,html[data-theme=dark] dialog select,html[data-theme=dark] dialog textarea{min-height:44px;border-color:#435c72}
html[data-theme=dark] dialog textarea{line-height:1.65}
html[data-theme=dark] .dialog-actions{border-top:1px solid #314657;padding-top:22px;gap:10px}
html[data-theme=dark] .dialog-actions .task-delete-start{border-color:#744450;color:#ffc3ca;background:#452831}
html[data-theme=dark] .dialog-actions .task-delete-start:hover{background:#5b303a}
html[data-theme=dark] #task-delete-dialog .task-delete-name{color:#f3f5f8}
html[data-theme=dark] .task-delete-confirm{background:#923844;border-color:#b64d5c;color:white}
html[data-theme=dark] .notifications{background:#152331;border-color:#435c72;border-radius:14px;box-shadow:0 18px 45px #0008}
html[data-theme=dark] .notice p{color:#b5c3d4}
html[data-theme=dark] :is(button,input,select,textarea):disabled{color:#a0aebc;background:#243240;border-color:#3c4e5e;opacity:.7}
html[data-theme=dark] :is(button,a,input,select,textarea):focus-visible{outline:3px solid #74e7f4;outline-offset:3px}
@media(max-width:950px){html[data-theme=dark] .sidebar{padding:24px 11px}html[data-theme=dark] #search{width:200px}}
@media(max-width:650px){html[data-theme=dark] .sidebar{padding:15px 16px;background:#0d1b29e8}html[data-theme=dark] .sidebar nav{gap:5px}html[data-theme=dark] .sidebar nav button{padding:9px}html[data-theme=dark] .page-head{padding-top:18px}html[data-theme=dark] #search{width:175px}html[data-theme=dark] #task-count{margin-bottom:65px}html[data-theme=dark] dialog{padding:20px}html[data-theme=dark] .dialog-actions{flex-wrap:wrap}html[data-theme=dark] .dialog-actions .task-delete-start{margin-right:0;flex-basis:100%}}
@media(prefers-reduced-motion:reduce){html[data-theme=dark] *{transition:none!important;scroll-behavior:auto!important}}
@media(prefers-contrast:more){html[data-theme=dark] body::before{display:none}html[data-theme=dark] .sidebar{background:#101923}html[data-theme=dark] .tasks-table td,html[data-theme=dark] .tasks-table th{border-color:#6c8197}}
@media(forced-colors:active){html[data-theme=dark] body::before,html[data-theme=dark] .nav-isotipo::before,html[data-theme=dark] dialog::before{display:none}html[data-theme=dark] .sidebar,html[data-theme=dark] dialog,html[data-theme=dark] #tasks-page>.table-scroll,html[data-theme=dark] #task-count{background:Canvas;color:CanvasText;border-color:CanvasText}}

/* Shared surfaces and semantic colors for every existing module. */
:root[data-theme=dark]{--surface:#13202d;--surface-raised:#192c3d;--field:#101923;--border:#304357;--secondary:#b5c3d4;--link:#83dfef;--red-bg:#50303b;--red-ink:#ffced3;--blue-bg:#193f65;--blue-ink:#c4e3ff;--green-bg:#1e493c;--green-ink:#c4f1d9;--gold-bg:#493c24;--gold-ink:#f8dfa3;--purple-bg:#3c3155;--purple-ink:#e0ceff}
html[data-theme=dark]{scrollbar-color:#4c667b #101923}
html[data-theme=dark] .sidebar .profile-edit small{color:var(--secondary)!important}
html[data-theme=dark] :is(.muted,td small,.empty){color:var(--secondary)}
html[data-theme=dark] :is(.panel,.table-scroll,.fin-table){background:var(--surface);border:1px solid var(--border);border-radius:14px}
html[data-theme=dark] th{background:#152535;color:var(--secondary);border-color:var(--line)}
html[data-theme=dark] td{color:#e4edf5;border-color:var(--line)}
html[data-theme=dark] dialog{max-width:calc(100vw - 28px)}
html[data-theme=dark] #task-delete-dialog{max-width:min(490px,calc(100vw - 28px))}
html[data-theme=dark] #crew-removal{max-width:min(510px,calc(100vw - 28px))}
html[data-theme=dark] .tag{background:#263c4d;color:#d3e3ef}
html[data-theme=dark] .avatar{background:#2a465b;color:#dff4fe}
html[data-theme=dark] fieldset{border:1px solid #435c72;border-radius:10px;padding:12px 16px;margin:18px 0;min-width:0}
html[data-theme=dark] legend{color:#d9e6f1;font-size:13px;padding:0 6px}
html[data-theme=dark] .check-label{display:flex;align-items:center;gap:10px;margin:10px 0;min-height:28px;line-height:1.5}
html[data-theme=dark] input:is([type=checkbox],[type=radio]){appearance:auto;accent-color:#36c5db;width:18px;height:18px;min-height:18px;flex:0 0 18px;margin:0;padding:0;border-radius:3px}
html[data-theme=dark] input[type=file]::file-selector-button{background:#25475d;color:#eaf7ff;border:1px solid #55778e;border-radius:6px;padding:7px 10px;margin-right:10px}
html[data-theme=dark] .state:is([data-state="Sin asignar"]),html[data-theme=dark] .state option[value=false]{background:var(--red-bg);color:var(--red-ink)}
html[data-theme=dark] .state:is([data-state="Edición asignada"]),html[data-theme=dark] .state option[value=true]{background:var(--green-bg);color:var(--green-ink)}
html[data-theme=dark] #crew-field{border-color:#435c72}
html[data-theme=dark] #crew-options .check-label{margin:5px 0}
html[data-theme=dark] .timebar{background:#2b4255}
html[data-theme=dark] .timebar>span{background:#36c5db}
html[data-theme=dark] :is(.crew-remove-button,.crm-delete-start){background:#452831;border-color:#744450;color:#ffc3ca}
html[data-theme=dark] :is(.crew-remove-button,.crm-delete-start):hover{background:#5b303a}
html[data-theme=dark] :is(.crew-remove-confirm,.crm-delete-confirm,.task-delete-confirm){background:#923844;border-color:#b64d5c;color:#fff}
html[data-theme=dark] :is(.crew-remove-confirm,.crm-delete-confirm,.task-delete-confirm):hover{background:#ae4150}
html[data-theme=dark] :is(#crm-delete-dialog p,#crew-removal>p){color:var(--secondary)}
html[data-theme=dark] :is(#crm-delete-dialog .crm-delete-name,#crew-removal .crew-removal-person){color:var(--ink)}
html[data-theme=dark] .login-screen{background:transparent}
html[data-theme=dark] .login-recruitment{background:var(--surface);border-color:var(--border);border-radius:14px}
html[data-theme=dark] .login-recruitment .button{background:#dff8fc;color:#122a34;border-color:#dff8fc}
html[data-theme=dark] .preview-banner{background:#173e50;color:#c6f3fb}

/* CRM: list, pipeline, opportunity and its history. */
html[data-theme=dark] :is(.crm-welcome,.crm-summary small,.crm-summary span,.crm-column>header>b,.crm-column>header>p,.crm-card>p,.crm-card-top small,.crm-card dt,.crm-column-empty,.crm-history small){color:var(--secondary)}
html[data-theme=dark] .crm-welcome strong{color:var(--ink)}
html[data-theme=dark] .crm-summary article{background:linear-gradient(135deg,#172d3f,var(--surface));border-color:var(--border);border-radius:14px}
html[data-theme=dark] .crm-toolbar{border-color:var(--line)}
html[data-theme=dark] .crm-filters :is(input,select){background:var(--field);color:var(--ink);border-color:#435c72}
html[data-theme=dark] .crm-column{background:#101c28;border-color:var(--border);border-radius:14px}
html[data-theme=dark] .crm-card{background:var(--surface-raised);border-color:#345167;border-radius:10px;box-shadow:0 4px 15px #0002}
html[data-theme=dark] :is(.crm-card dl,.crm-history-panel,.crm-history article,.crm-inquiry,.crm-delete-section){border-color:var(--line)}
html[data-theme=dark] :is(.crm-stage,.crm-priority){background:#2a3c4c;color:#d3e3ef}
html[data-theme=dark] .crm-stage[data-tone="0"]{background:#4b3048;color:#f5cce9}
html[data-theme=dark] .crm-stage[data-tone="1"]{background:#503b2d;color:#f6d4b7}
html[data-theme=dark] .crm-stage[data-tone="2"]{background:var(--purple-bg);color:var(--purple-ink)}
html[data-theme=dark] .crm-stage[data-tone="3"]{background:var(--blue-bg);color:var(--blue-ink)}
html[data-theme=dark] .crm-stage[data-tone="4"]{background:var(--green-bg);color:var(--green-ink)}
html[data-theme=dark] .crm-priority[data-priority=Alta]{background:var(--red-bg);color:var(--red-ink)}
html[data-theme=dark] .crm-priority[data-priority=Media]{background:var(--gold-bg);color:var(--gold-ink)}
html[data-theme=dark] .crm-priority[data-priority=Baja]{background:#3e4226;color:#e4e5ba}
html[data-theme=dark] #crm-dialog fieldset{border-color:#435c72}
html[data-theme=dark] #crm-dialog legend{color:#d9e6f1}

/* Finance: separate currencies, amounts, providers and approvals retain their data. */
html[data-theme=dark] #finance-page{--fin-line:#304357;--fin-muted:#b5c3d4;color:var(--ink)}
html[data-theme=dark] :is(.fin-integrations article,.fin-metrics article){background:linear-gradient(125deg,#182e40,var(--surface))}
html[data-theme=dark] :is(.fin-card,.fin-account-list article){background:var(--surface)}
html[data-theme=dark] .fin-provider-symbol{color:#d9e6f1}
html[data-theme=dark] .fin-provider-symbol.wave{color:#58d0f5}
html[data-theme=dark] .fin-provider-symbol.wu{color:#f0cf7d}
html[data-theme=dark] .fin-badge{background:#2a3c4c;color:#d3e3ef}
html[data-theme=dark] .fin-badge.blue{background:var(--blue-bg);color:var(--blue-ink)}
html[data-theme=dark] .fin-badge.green{background:var(--green-bg);color:var(--green-ink)}
html[data-theme=dark] .fin-badge.red{background:var(--red-bg);color:var(--red-ink)}
html[data-theme=dark] .fin-badge.gold{background:var(--gold-bg);color:var(--gold-ink)}
html[data-theme=dark] .fin-chart{background:repeating-linear-gradient(to top,#304357 0,#304357 1px,transparent 1px,transparent 50px)}
html[data-theme=dark] .fin-month small{background:var(--surface)}
html[data-theme=dark] .fin-income{color:#8fe0b7}
html[data-theme=dark] .fin-expense{color:#ffb7b5}
html[data-theme=dark] .fin-note{background:#183448;border-color:#31586d;color:#d3e5ef}
html[data-theme=dark] .fin-error{color:#ffb5bd}
html[data-theme=dark] .fin-dialog .dialog-actions{background:#152331}
html[data-theme=dark] .fin-form label{margin:0}

/* Activity: original values and chart series; dark tracks and readable labels. */
html[data-theme=dark] :is(.activity-month-table small,.activity-log-filters label,.activity-person-heading p,.activity-card-basis,.activity-ring span,.activity-key,.activity-person-metrics dt,.activity-person-metrics small,.activity-card-note,.activity-chart-key,.activity-chart-note p,.activity-chart-note small,.activity-chart-data,.activity-project-snapshots b){color:var(--secondary)}
html[data-theme=dark] .activity-log-filters :is(input,select){background:var(--field);color:var(--ink);border-color:#435c72}
html[data-theme=dark] .activity-header-tools .button{color:#d3e5ef}
html[data-theme=dark] :is(.activity-person-card,.activity-chart-panel){background:var(--surface);border-color:var(--border)}
html[data-theme=dark] .activity-person-photo.avatar{background:#2a465b;color:#dff4fe}
html[data-theme=dark] :is(.activity-key b,.activity-person-metrics dd){color:var(--ink)}
html[data-theme=dark] .activity-person-metrics>div{border-color:var(--line)}
html[data-theme=dark] .activity-ring svg>circle:first-child{stroke:#2c4254}
html[data-theme=dark] .activity-week-chart{fill:var(--secondary)}
html[data-theme=dark] .activity-week-chart line{stroke:#304357}
html[data-theme=dark] .activity-chart-note small{border-color:#28617a}
html[data-theme=dark] .activity-orbits i{background:#29647a}
html[data-theme=dark] .activity-orbits i:nth-child(2){background:#a67560;mix-blend-mode:normal}
html[data-theme=dark] .activity-orbits i:nth-child(3){background:#78b5a6}
html[data-theme=dark] .activity-project-snapshots li{background:var(--surface-raised)}
html[data-theme=dark] .activity-area-badge{background:#2a3c4c;color:#d3e3ef}
html[data-theme=dark] .activity-area-badge[data-area=eclipse]{background:var(--red-bg);color:var(--red-ink)}
html[data-theme=dark] .activity-area-badge[data-area=proto]{background:var(--blue-bg);color:var(--blue-ink)}
html[data-theme=dark] .activity-area-badge[data-area=crm]{background:var(--purple-bg);color:var(--purple-ink)}

/* Existing seven-column calendar and date/drag controls. */
html[data-theme=dark] :is(.calendar-eyebrow,.calendar-controls label,.calendar-filter label,.content-history small){color:var(--secondary)}
html[data-theme=dark] .calendar-grid{background:var(--surface);border-color:var(--border);border-radius:14px}
html[data-theme=dark] .calendar-weekday{background:#192c3d;color:var(--secondary)}
html[data-theme=dark] .calendar-day{border-color:var(--line)}
html[data-theme=dark] .calendar-day.outside{background:#0e1924}
html[data-theme=dark] .calendar-day-number{background:transparent;color:#d9e6f1;padding:0;min-height:28px}
html[data-theme=dark] .calendar-day-number:disabled{background:transparent;opacity:1}
html[data-theme=dark] .calendar-day.outside .calendar-day-number{color:#8298aa}
html[data-theme=dark] .calendar-day.today .calendar-day-number{background:#77dbea;color:#102330}
html[data-theme=dark] .calendar-day.can-create:is(:hover,:focus-within){background:#193448}
html[data-theme=dark] .calendar-day.drop-target,html[data-theme=dark] .calendar-day.can-create.drop-target{background:#174b61;box-shadow:inset 0 0 0 2px #70ddec}
html[data-theme=dark] .calendar-day.can-create::after{background:linear-gradient(#b4f0fa,#b4f0fa) center/10px 1.5px no-repeat,linear-gradient(#b4f0fa,#b4f0fa) center/1.5px 10px no-repeat,#23566d}
html[data-theme=dark] .calendar-post{color:#f3f5f8}
html[data-theme=dark] .calendar-post small{color:#c8d5df}
html[data-theme=dark] .calendar-post .calendar-pending{color:#f8dfa3}
html[data-theme=dark] .content-color-neutral{--content-bg:#293a4b;--content-accent:#91a6b8}
html[data-theme=dark] .content-color-red{--content-bg:#50303b;--content-accent:#ee999c}
html[data-theme=dark] .content-color-blue{--content-bg:#193f65;--content-accent:#7fc6f3}
html[data-theme=dark] .content-color-amber{--content-bg:#493c24;--content-accent:#e2c477}
html[data-theme=dark] .content-color-green{--content-bg:#1e493c;--content-accent:#81c6a6}
html[data-theme=dark] .content-color-purple{--content-bg:#3c3155;--content-accent:#bba0eb}
html[data-theme=dark] :is(.content-files,.content-history){border-color:var(--line)}
html[data-theme=dark] .content-file-columns>div{background:#101d2b;border-color:var(--border)}
html[data-theme=dark] .content-assets a{color:var(--link)}

/* Crew directory, profile/onboarding and received applications. */
html[data-theme=dark] #crew-profile-screen{background:transparent}
html[data-theme=dark] .crew-welcome-header{background:#101f2d;color:var(--secondary);border-color:var(--line)}
html[data-theme=dark] .crew-welcome-header .brand{color:var(--ink)}
html[data-theme=dark] .crew-profile-sheet{background:var(--surface);border-color:var(--border);box-shadow:0 12px 32px #0003}
html[data-theme=dark] .crew-eyebrow{color:#83dfef}
html[data-theme=dark] :is(.crew-welcome,.crew-assignment-preview>span:first-child){color:var(--secondary)}
html[data-theme=dark] .crew-account{background:var(--surface-raised);color:#d3e3ef}
html[data-theme=dark] .crew-profile-sheet label{color:#d9e6f1}
html[data-theme=dark] .candidate-share{background:var(--surface);border-color:var(--border);border-radius:14px}
html[data-theme=dark] .candidate-stage{background:#2a3c4c;color:#d3e3ef}
html[data-theme=dark] .candidate-stage[data-stage="En revisión"]{background:var(--blue-bg);color:var(--blue-ink)}
html[data-theme=dark] .candidate-stage[data-stage=Contactada]{background:var(--purple-bg);color:var(--purple-ink)}
html[data-theme=dark] .candidate-stage[data-stage=Seleccionada]{background:var(--green-bg);color:var(--green-ink)}
html[data-theme=dark] .candidate-stage[data-stage=Archivada]{background:var(--red-bg);color:var(--red-ink)}

/* Drive portal: only our explorer surfaces; Google owns its embedded dialogs. */
html[data-theme=dark] :is(.landing-eyebrow,.landing-destination small){color:var(--secondary)}
html[data-theme=dark] .landing-folders button[aria-pressed=true]{background:#194b62;border-color:#4daec2;color:#c6f4ff}
html[data-theme=dark] :is(.landing-portal,.landing-upload-list){background:var(--surface);border-color:var(--border)}
html[data-theme=dark] .landing-window{background:radial-gradient(ellipse at 12% 88%,#123749 0,transparent 45%),radial-gradient(ellipse at 96% 6%,#3b2e2b 0,transparent 34%),#13202d}
html[data-theme=dark] :is(.landing-destination,.landing-browser-head){background:#16293a}
html[data-theme=dark] .landing-dropzone{background:var(--surface)}
html[data-theme=dark] .landing-upload-hint{background:linear-gradient(120deg,#18384c,var(--surface) 80%)}
html[data-theme=dark] .upload-mode .landing-upload-hint{background:linear-gradient(120deg,#18384c,#292c36)}
html[data-theme=dark] .landing-table td{border-color:var(--line)}
html[data-theme=dark] .landing-item-name{color:#e4edf5}
html[data-theme=dark] .landing-table tr:hover{background:#1c3548}
html[data-theme=dark] .landing-table :is(.text-button,a):hover{color:#a8edfa}
html[data-theme=dark] .landing-folder-arrow{color:#b5c3d4}
html[data-theme=dark] .landing-drop-message{background:#123748f5;color:#cbf6ff;border-color:#6edbef}
html[data-theme=dark] .landing-upload-row p{color:var(--secondary)}
html[data-theme=dark] .landing-upload-done{color:#8fe0b7}
html[data-theme=dark] :is(#landing-destination-error,.landing-upload-row p[role=alert]){color:#ffb5bd}
html[data-theme=dark] .landing-upload-meta{color:#78d9e9}
html[data-theme=dark] .landing-upload-state{color:var(--secondary)}
html[data-theme=dark] .landing-upload-state[role=alert]{color:#ffb5bd}
html[data-theme=dark] :is(.landing-upload-toggle,.landing-transfer-summary){color:var(--ink)}
html[data-theme=dark] :is(.landing-upload-toggle i,.landing-transfer-summary i){color:#9bb6c8}
html[data-theme=dark] .landing-transfer-overlay{background:transparent}
html[data-theme=dark] .landing-transfer-card{background:#0e1722;border-color:#294657;box-shadow:0 30px 90px #000b;color:var(--ink)}
html[data-theme=dark] .landing-transfer-orbit{border-color:#294657}
@media(pointer:coarse){html[data-theme=dark] .check-label{min-height:44px}html[data-theme=dark] input:is([type=checkbox],[type=radio]){width:20px;height:20px;min-height:20px;flex-basis:20px}}
@media(forced-colors:active){html[data-theme=dark] :is(.panel,.table-scroll,.crm-summary article,.crm-column,.crm-card,.fin-card,.fin-metrics article,.fin-integrations article,.activity-person-card,.activity-chart-panel,.calendar-grid,.calendar-weekday,.calendar-day,.calendar-post,.crew-profile-sheet,.candidate-share,.landing-portal,.landing-window,.landing-dropzone){background:Canvas;color:CanvasText;border-color:CanvasText}html[data-theme=dark] :is(.calendar-day-number,.crm-stage,.crm-priority,.fin-badge,.candidate-stage){background:Canvas;color:CanvasText}html[data-theme=dark] .activity-week-chart{fill:CanvasText}html[data-theme=dark] .activity-week-chart line{stroke:CanvasText}}
html[data-theme=dark] .landing-activity-filters :is(select,input),html[data-theme=dark] .landing-live-section,html[data-theme=dark] .landing-history,html[data-theme=dark] .landing-metric-panel{background:#101c28;border-color:var(--line)}html[data-theme=dark] .landing-live-grid article{background:linear-gradient(135deg,#142636,#201c1b);border-color:#294657}html[data-theme=dark] .landing-no-live,html[data-theme=dark] .landing-transfer-detail-grid>div{background:#172736}html[data-theme=dark] .landing-status-donut:after{background:#101c28}html[data-theme=dark] .landing-person-bars>div>i{background:#263848}

html[data-theme=dark] .tasks-table .task-compact-row td{height:62px;padding:11px 16px}
html[data-theme=dark] .tasks-table .task-expand-cell{padding-left:6px;padding-right:6px}
html[data-theme=dark] .task-summary{color:#dce7f0}
html[data-theme=dark] .task-summary:hover,html[data-theme=dark] .task-delivery-summary{color:#83dfef}
html[data-theme=dark] .task-summary>span{color:#71ddeb}
html[data-theme=dark] .task-expand{color:#b5c7d5}
html[data-theme=dark] .task-expand:hover{background:#21394d;color:#91e9f6}
html[data-theme=dark] .task-expand[aria-expanded=true]{background:#183e50;color:#83e7f5}
html[data-theme=dark] .task-detail-row>td{padding:0 16px 16px;background:#13202d}
html[data-theme=dark] .task-expanded{background:linear-gradient(145deg,#142638,#101d2b);border-color:#35536b;box-shadow:0 13px 30px #02091355}
html[data-theme=dark] .task-expanded-grid small{color:#91a8ba}
html[data-theme=dark] .task-expanded-grid strong,html[data-theme=dark] .task-expanded-grid p{color:#e8eff5}
html[data-theme=dark] .task-expanded-copy{border-color:#2e465a}
html[data-theme=dark] .task-collapse{color:#83dfef}
