/* The original styles remain the complete light theme. Never recolor images or QR artwork. */
#theme-toggle{flex:none}
@media screen{
 :root[data-theme=dark]{color-scheme:dark;color:#ededed;background:#000;--bg:#202020;--line:#454545;--theme-text:#ededed;--theme-muted:#bcb7b2;--theme-link:#80c5ff}
 :root[data-theme=dark] .qr-landing :is(.use-cases a,.landing-promo){color:var(--theme-text)}
 :root[data-theme=dark] body.qr-view .auth-panel{background:#000}
 :root[data-theme=dark] body,:root[data-theme=dark] .auth-panel{background:#000;color:var(--theme-text)}
 :root[data-theme=dark] :is(.auth-card,dialog:where(:not(.qr-page-preview)),.box-editor,.task-calendar-selection,.task-calendar-day){background:#141414;color:var(--theme-text);border-color:var(--line);box-shadow:none}
 :root[data-theme=dark] dialog::backdrop{background:#000b}
 :root[data-theme=dark] :is(label,th,.eyebrow,.lede,.back,.qr-hint,.qr-card-description,.admin-symbol,.task-share-help,.task-calendar-weekday,.remember-row small,.nearby-item-text>span,#report-help,#qr-dates,#admin-count-since){color:var(--theme-muted)}
 :root[data-theme=dark] :is(td,th,.qr-field,.user-editor,#task-meta,#report-photo-form,#report-photos figure,.task-calendar-day-tasks .task-calendar-event){border-color:var(--line)}
 :root[data-theme=dark] :is(.icon-button,.secondary,td button,.admin-menu button,.photo-toolbar .secondary){background:#2b2b2b;color:var(--theme-text);border-color:var(--line)}
 :root[data-theme=dark] .primary{background:#ded8d1;color:#171717}
 :root[data-theme=dark] .primary:hover:not(:disabled){background:#fff;color:#171717;box-shadow:0 5px 18px #0005}
 :root[data-theme=dark] :is(.secondary,.icon-button):hover:not(:disabled){background:#393939}
 :root[data-theme=dark] :is(.text-button,.home-people-tools button,.task-calendar-date){color:var(--theme-text)}
 :root[data-theme=dark] :is(.task-actions .secondary,#people-my-name,#task-report-open){border-color:#666;background:#262626}
 :root[data-theme=dark] :is(input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),textarea,select,#task-editor input,#task-editor textarea,#task-editor select,#report-status,#report-comment,.box-editor input[name=title],.box-editor textarea,#task-due-value,#qr-title){background:#202020;color:var(--theme-text);border-color:#626262}
 :root[data-theme=dark] :is(input,textarea)::placeholder{color:#aaa}
 :root[data-theme=dark] :is(input,textarea,select):focus{background:#242424;border-color:#80c5ff;box-shadow:0 0 0 3px #80c5ff33}
 :root[data-theme=dark] :is(input[type=checkbox],input[type=radio]){accent-color:#63d8c0}
 :root[data-theme=dark] :is(button,select,a):focus-visible{outline-color:#80c5ff}
 :root[data-theme=dark] body.qr-home #qr-list .qr-card{background:#202020;color:var(--theme-text);border-color:var(--line)}
 :root[data-theme=dark] body.qr-home #qr-list .qr-card.folder-card{background:transparent}
 :root[data-theme=dark] #qr-list :is(.entity-card-type,.catalog-folder-type){color:var(--theme-muted)}
 :root[data-theme=dark] #qr-list .qr-card.folder-card.catalog-folder-card>.catalog-folder-type{color:var(--theme-muted)}
 :root[data-theme=dark] body.qr-home #qr-list .qr-card.catalog-create-card{color:#808080}
 :root[data-theme=dark] :is(.qr-card-photo,.placeholder-card,.nearby-panel,.task-object-result,.people-own-row,#admin-counts>div){background:#202020;color:var(--theme-text);border-color:var(--line)}
 :root[data-theme=dark] :is(.gallery-actions,.box-photos .box-photo-menu){background:#202020}
 :root[data-theme=dark] .people-highlight{background:#173247}
 :root[data-theme=dark] .nearby-item:hover,:root[data-theme=dark] .nearby-item:focus-visible{background:#20332f}
 :root[data-theme=dark] :is(#qr-gallery-title){color:var(--theme-text)}
 :root[data-theme=dark] :is(a:where(:not(.authored-node)),.folder-breadcrumb,.folder-result-parent,#qr-gallery-title.folder-root-link,footer #mcp-connections){color:var(--theme-link)}
 :root[data-theme=dark] :is(.person-link,#people-own-name){color:var(--theme-link)!important}

 :root[data-theme=dark] footer{color:#aaa39d}
 :root[data-theme=dark] footer a{color:inherit}
 :root[data-theme=dark] :is(.location-pin,.field-error,.qr-card-photo-error,#location-error,.filter-clear){color:#ff8c8c}
 :root[data-theme=dark] :is(.location-pin.located,.qr-card-location,.gallery-location-button,#public-location,#qr-map-all,.catalog-card-tools .icon-button:not(.project-access-on,.project-access-neutral),.object-tasks-button){color:#5bdb93}
 :root[data-theme=dark] #colleagues-open svg{color:#80c5ff}
 :root[data-theme=dark] #tasks-open svg{color:#5bdb93}
 :root[data-theme=dark] .home-people-tools .home-calendar svg{color:#ffad59}
 :root[data-theme=dark] .task-status-in_progress{color:#80c5ff!important}
 :root[data-theme=dark] .task-status-completed{color:#5bdb93!important}
 :root[data-theme=dark] :is(.task-status-cancelled,.task-overdue){color:#ff8c8c!important}
 :root[data-theme=dark] :is(td button.danger,.dialog-actions .danger){background:#402020;color:#ff9b9b;border-color:#b66565}
 :root[data-theme=dark] :is(.photo-saving-status,.report-photo-origin){background:#242424;color:#80c5ff;border-color:#80c5ff}
 :root[data-theme=dark] .task-calendar-day.is-today{border-color:#ffad59}
 :root[data-theme=dark] :is(.task-calendar-day.is-selected,#task-due-dialog [aria-pressed=true]){background:#173b33;box-shadow:inset 0 0 0 2px #5ee4c5}
 :root[data-theme=dark] .admin-menu button[aria-current=page]{background:#ded8d1;color:#171717}
 :root[data-theme=dark] #photo-viewer{background:#101010;color:#ededed}
 :root[data-theme=dark] #location-dialog.map-view-fullscreen :is(#location-title,#location-dismiss,#location-error:not(:empty)){background:#202020f5;color:#ededed}
 :root[data-theme=dark] body.qr-home #qr-list .qr-card:not(.folder-card)~.gallery-actions{background:#202020}
 :root[data-theme=dark] img[src^="/qr-scan.png"]{background:transparent;filter:brightness(0) invert(1);border-radius:6px}
 :root[data-theme=dark] :is(#qr-home-scan,#qr-admin-scan,#qr-scan,.box-link){background:#000;border:1px solid #454545}
 /* QR preview paper, Google attribution and user media keep their original colors. */
 :root[data-theme=dark] .qr-graphic{background:#fff;color:#000;color-scheme:light}
}
