﻿:root{color-scheme:dark!important;--bg:#191919!important;--bg-elev:#101010!important;--bg-card:#121212!important;--panel:#121212!important;--panel-2:#101010!important;--surface:#121212!important;--surface-2:#151515!important;--card:#121212!important;--text:#e8e8e8!important;--text-bright:#f4f4f4!important;--muted:#a8a8a8!important;--text-muted:#a8a8a8!important;--line:#2c2c2c!important;--border:#2c2c2c!important;--border-soft:#3c3c3c!important;--accent:#76b900!important;--accent-soft:rgba(118,185,0,.14)!important;--good:#76b900!important;--shadow:0 10px 30px rgba(0,0,0,.28)!important}
html,body{background:var(--bg)!important;color:var(--text)!important;font-family:Inter,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Arial,sans-serif!important;scrollbar-color:#454545 #111}
body::before{content:"";position:fixed;inset:0 0 auto;z-index:1000;height:4px;background:var(--accent)}
a{color:var(--accent)}
button,select,input[type="search"],input[type="text"]{color:var(--text-bright)!important;background:#262626!important;border-color:var(--border-soft)!important;border-radius:6px!important}
button:hover,select:hover,input:hover{border-color:var(--accent)!important}
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--accent)!important;outline-offset:2px!important}
button.primary,.primary,button[aria-pressed="true"],.chip.active,.filter-option.active{color:#0a0a0a!important;background:var(--accent)!important;border-color:var(--accent)!important;box-shadow:none!important}
input[type="checkbox"],input[type="radio"],input[type="range"]{accent-color:var(--accent)}
.toolbar,.page-header,.topbar,header.sticky,.controls{background:var(--bg-elev)!important;border-color:var(--border)!important}
.summary,.global-panel,.scene,.scene-section,.view-list,.view-row,.cell,.image-cell,.tile,.card,dialog,figure{border-color:var(--border)!important;box-shadow:none!important}
.scene-title,.scene-head,.column-heads,.card-heading,.tile-info,.cell-footer,.image-metrics{border-color:var(--border)!important}
.scene-title h2,.scene-head h2,h1,h2,h3,.column-head,.tile-name{color:var(--text-bright)!important}
.dashboard-link{color:var(--accent)!important;font-weight:650;text-decoration:none!important}.dashboard-link:hover{color:#9bd33a!important}
.filter-option,.chip,.object-average,.summary-card,.metric,.meta span{background:#151515!important;border-color:var(--border)!important}
.best-result,.best,.selected{--good:#76b900!important}
.image-button,.dialog-grid figure{position:relative;overflow:hidden!important;background:#080808!important;touch-action:none}
.image-button img,.dialog-grid figure img{transform-origin:center center;will-change:transform;user-select:none;-webkit-user-drag:none}
.image-button.viewer-zoomed,.dialog-grid figure.viewer-zoomed{cursor:grab!important}.image-button.viewer-panning,.dialog-grid figure.viewer-panning{cursor:grabbing!important}
.viewer-zoom-tools{position:fixed;right:16px;bottom:16px;z-index:950;display:flex;align-items:center;gap:8px;padding:7px;color:var(--text);background:rgba(16,16,16,.94);border:1px solid var(--border-soft);border-radius:8px;box-shadow:0 12px 34px rgba(0,0,0,.42);backdrop-filter:blur(12px)}
.viewer-zoom-tools button{min-width:34px;padding:5px 8px!important;font-size:12px}.viewer-zoom-status{min-width:54px;color:var(--text-muted);font-size:12px;font-variant-numeric:tabular-nums;text-align:center}.viewer-zoom-sync{color:var(--accent);font-size:11px;font-weight:800;letter-spacing:.06em}
.viewer-crop-nav{position:relative;width:84px;height:54px;overflow:hidden;background-color:#080808;background-position:center;background-size:cover;border:1px solid var(--border-soft);border-radius:4px;cursor:crosshair}
.viewer-crop-window{position:absolute;min-width:3px;min-height:3px;border:1px solid var(--accent);background:rgba(118,185,0,.12);box-shadow:0 0 0 999px rgba(0,0,0,.35);pointer-events:none}
@media(max-width:760px){.viewer-zoom-tools{right:10px;bottom:10px}.viewer-crop-nav{width:64px;height:44px}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important}}

button[aria-pressed='true'],.chip.active,.filter-option.active{color:#f4f4f4!important;background:#1b2412!important;border-color:var(--accent)!important;box-shadow:0 0 0 1px rgba(118,185,0,.2)!important}
button.primary,.primary{color:#0a0a0a!important;background:var(--accent)!important;border-color:var(--accent)!important}

:root{--soft:rgba(118,185,0,.14)!important}
.filter.active{color:#f4f4f4!important;background:#1b2412!important;border-color:var(--accent)!important;box-shadow:0 0 0 1px rgba(118,185,0,.2)!important}

/* Expanded row comparison: use nearly the full viewport on wide displays. */
dialog{width:95vw!important;max-width:none!important}
