:focus-visible { outline: 3px solid #f5b942; outline-offset: 3px; }
html, body { max-width: 100%; overflow-x: clip; }
.min-width-0 { min-width: 0; }
.nav a { padding: 8px 4px; border-radius: 5px; }
.nav a.is-active { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.dashboard-totals { display: grid; grid-template-columns: repeat(6,minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.total-card { display: grid; gap: 3px; padding: 16px; border-top: 4px solid var(--border); }
.total-value { font-size: 1.75rem; line-height: 1; font-weight: 850; }
.total-running { border-top-color: var(--primary); }.total-failed { border-top-color: var(--danger); }.total-warning { border-top-color: var(--warning); }
.dashboard-projects { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.dashboard-projects .card + .card { margin-top: 0; }
.project-card-head,.live-scan-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 15px; }
.project-card-head h2 { margin-bottom: 5px; overflow-wrap: anywhere; }
.project-facts { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px 20px; margin: 20px 0; }
.project-facts div { min-width: 0; }.project-facts dt,.live-stats dt { color: var(--muted); font-size: .78rem; font-weight: 750; }.project-facts dd,.live-stats dd { margin: 3px 0 0; overflow-wrap: anywhere; }
.project-actions form { display: contents; }.btn:disabled { cursor: not-allowed; opacity: .62; }
.live-scan { margin-bottom: 18px; }.live-stats { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 14px; }
.progress-track { height: 9px; overflow: hidden; border-radius: 999px; background: var(--secondary-bg); margin-top: 16px; }
.progress-track span { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--primary); transition: width .25s ease; }
.progress-track .is-indeterminate { animation: scan-indeterminate 1.4s ease-in-out infinite alternate; }
@keyframes scan-indeterminate { from { transform: translateX(-70%); } to { transform: translateX(250%); } }
.polling-error { margin: 15px 0 0; }.export-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: -10px 0 22px; }
.appearance-options { display: grid; align-items: stretch; }.appearance-cards { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.appearance-cards legend { font-weight: 750; margin-bottom: 10px; }.appearance-card { position: relative; display: flex; gap: 12px; align-items: center; min-height: 92px; padding: 15px; border: 2px solid var(--border); border-radius: 12px; background: var(--field-bg); cursor: pointer; }
.appearance-card:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb,var(--primary) 20%,transparent); }.appearance-card input { position: absolute; opacity: 0; width: 1px; height: 1px; }.appearance-card:has(input:focus-visible) { outline: 3px solid #f5b942; outline-offset: 3px; }
.appearance-card small { display: block; margin-top: 4px; color: var(--muted); font-weight: 450; }.appearance-icon { flex: 0 0 34px; }.appearance-icon svg { width: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-menu { position: relative; }.theme-menu summary { list-style: none; }.theme-menu summary::-webkit-details-marker { display: none; }.theme-menu-toggle { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 7px 10px; border: 1px solid rgba(255,255,255,.35); border-radius: 8px; cursor: pointer; color: #fff; }
.theme-menu-panel { position: absolute; z-index: 20; right: 0; top: calc(100% + 8px); width: 190px; padding: 7px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); box-shadow: 0 10px 30px var(--shadow); }
.theme-menu-panel button { display: flex; width: 100%; gap: 9px; align-items: center; min-height: 40px; padding: 8px 10px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; text-align: left; cursor: pointer; }.theme-menu-panel button:hover,.theme-menu-panel button[aria-pressed="true"] { background: var(--secondary-bg); }.theme-menu-panel button[aria-pressed="true"] { font-weight: 800; }
@media(max-width:1050px){.dashboard-totals{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:760px){.dashboard-projects{grid-template-columns:1fr}.live-stats{grid-template-columns:repeat(2,minmax(0,1fr))}.appearance-cards{grid-template-columns:1fr}.nav{gap:10px}.theme-menu{order:3}.theme-menu-panel{left:0;right:auto}}
@media(max-width:420px){.container{width:min(100% - 20px,1220px)}.dashboard-totals{grid-template-columns:repeat(2,minmax(0,1fr))}.project-facts{grid-template-columns:1fr}.actions .btn,.project-actions form{width:100%}.project-card-head,.live-scan-head{flex-direction:column}.nav{font-size:.92rem}.theme-menu-panel{position:fixed;left:10px;right:10px;top:auto;width:auto}}
@media(prefers-reduced-motion:reduce){.progress-track span{transition:none}.progress-track .is-indeterminate{animation:none}}
