:root{--text:#19244d;--text-h:#19244d;--bg:#fff;--border:#6bceff;--code-bg:#6bceff29;--accent:#00b9fe;--accent-bg:#00b9fe1f;--accent-border:#025d9780;--social-bg:#6bceff1f;--shadow:#0000001a 0 10px 15px -3px, #0000000d 0 4px 6px -2px;--sans:system-ui, "Segoe UI", Roboto, sans-serif;--heading:system-ui, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, Consolas, monospace;font:18px/145% var(--sans);letter-spacing:.18px;--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}@media (width<=1024px){:root{font-size:16px}}@media (prefers-color-scheme:dark){:root{--text:#b8dcf0;--text-h:#f4fbff;--bg:#19244d;--border:#6bceff52;--code-bg:#025d9759;--accent:#00b9fe;--accent-bg:#00b9fe2e;--accent-border:#6bceff8c;--social-bg:#025d9759;--shadow:#0006 0 10px 15px -3px, #00000040 0 4px 6px -2px}#social .button-icon{filter:invert()brightness(2)}}body{margin:0}#root{width:100%;max-width:none;text-align:initial;box-sizing:border-box;border-inline:none;flex-direction:column;min-height:100svh;margin:0;display:flex}h1,h2{font-family:var(--heading);color:var(--text-h);font-weight:500}h1{letter-spacing:-1.68px;margin:32px 0;font-size:56px}@media (width<=1024px){h1{margin:20px 0;font-size:36px}}h2{letter-spacing:-.24px;margin:0 0 8px;font-size:24px;line-height:118%}@media (width<=1024px){h2{font-size:20px}}p{margin:0}code,.counter{font-family:var(--mono);color:var(--text-h);border-radius:4px;display:inline-flex}code{background:var(--code-bg);padding:4px 8px;font-size:15px;line-height:135%}:root{--ci-primary:#19244d;--ci-secondary:#025d97;--ci-tertiary:#00b9fe;--ci-quaternary:#6bceff;--ci-text:#f4fbff;--ci-muted:#b8dcf0;--ci-panel:#19244deb;--ci-panel-strong:#19244d;--ci-panel-soft:#025d9759;--ci-border:#6bceff38;--ci-border-strong:#6bceff6b;--status-warning:#d7a84b;--status-warning-soft:#d7a84b24;--status-warning-border:#d7a84b57;--status-good:#79c9a8;--status-good-soft:#79c9a821;--status-good-border:#79c9a857;--status-danger:#d98b8b;--status-danger-soft:#d98b8b21;--status-danger-border:#d98b8b57}*{box-sizing:border-box;margin:0;padding:0}body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;background-color:var(--ci-primary);color:var(--ci-text);font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,Fira Sans,Droid Sans,Helvetica Neue,sans-serif}.app{background:radial-gradient(circle at 20% 0%, #00b9fe2e, transparent 36rem), linear-gradient(135deg, var(--ci-primary) 0%, #111936 55%, var(--ci-secondary) 100%);width:100%;min-height:100vh}.auth-app{place-items:center;padding:1.5rem;display:grid}.auth-shell,.auth-card{width:min(100%,24rem)}.auth-shell{color:var(--ci-muted);justify-items:center;gap:1.25rem;display:grid}.auth-card{border:1px solid var(--ci-border);background:#19244df5;border-radius:.5rem;padding:1.5rem;box-shadow:0 1.5rem 3.5rem #00000047}.auth-logo{width:min(15rem,100%);height:auto;margin:0 auto;display:block}.auth-heading{text-align:center;flex-direction:column;gap:.35rem;margin:1.25rem 0 1.5rem;display:flex}.auth-product{color:var(--ci-text);font-size:1.75rem;font-weight:700;line-height:1}.auth-subtitle,.auth-loading{color:var(--ci-muted);font-size:.95rem;font-weight:500;line-height:1.25}.auth-form{flex-direction:column;gap:.65rem;display:flex}.auth-form label{color:var(--ci-quaternary);text-transform:uppercase;letter-spacing:.04em;font-size:.78rem;font-weight:700}.auth-form input{border:1px solid var(--ci-border-strong);width:100%;color:var(--ci-text);font:inherit;background:#0a1023b8;border-radius:.4rem;outline:none;padding:.75rem .85rem}.auth-form input:focus{border-color:var(--ci-tertiary);box-shadow:0 0 0 3px #00b9fe2e}.auth-form button{border:1px solid var(--ci-tertiary);background:var(--ci-secondary);color:var(--ci-text);font:inherit;cursor:pointer;border-radius:.4rem;justify-content:center;align-items:center;gap:.45rem;margin-top:.5rem;padding:.8rem 1rem;font-weight:700;display:flex}.auth-form button:hover:not(:disabled){background:#0270b7}.auth-form button:disabled{cursor:wait;opacity:.68}.auth-error{border:1px solid var(--status-danger-border);background:var(--status-danger-soft);color:#ffd6d6;border-radius:.4rem;padding:.7rem .8rem;font-size:.875rem}.app-header{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--ci-border);background:#19244df5;justify-content:space-between;align-items:center;padding:1rem 2rem;display:flex}.header-brand{align-items:center;gap:1rem;min-width:0;display:flex}.header-logo{object-fit:contain;width:auto;max-width:18rem;height:3rem;display:block}.header-copy{flex-direction:column;gap:.25rem;min-width:0;display:flex}.header-title{color:var(--ci-text);font-size:1.75rem;font-weight:700;line-height:1}.header-subtitle{color:var(--ci-text-muted);font-size:.9rem;font-weight:500;line-height:1.15}.site-switcher-bar{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);border-bottom:1px solid var(--ci-border);background:#19244de6;flex-wrap:wrap;align-items:center;gap:1rem;padding:.55rem 2rem;display:flex}.site-switcher-label{color:var(--ci-quaternary);text-transform:uppercase;letter-spacing:.06em;white-space:nowrap;align-items:center;gap:.35rem;font-size:.75rem;font-weight:600;display:flex}.site-switcher-tabs{flex-wrap:wrap;flex:1;gap:.35rem;display:flex}.site-tab{border:1px solid var(--ci-border);color:var(--ci-muted);cursor:pointer;white-space:nowrap;background:0 0;border-radius:.4rem;align-items:center;gap:.4rem;padding:.35rem .85rem;font-size:.825rem;font-weight:500;transition:all .15s;display:flex}.site-tab:hover{color:var(--ci-quaternary);background:#00b9fe1f;border-color:#6bceff80}.site-tab.active{border-color:var(--ci-tertiary);color:var(--ci-text);background:#00b9fe38;font-weight:600}.site-count{color:var(--ci-quaternary);background:#00b9fe47;border-radius:999px;padding:.05rem .4rem;font-size:.7rem;font-weight:700;line-height:1.4}.site-status-dot{flex-shrink:0}.site-status-dot.connected{color:#22c55e}.site-status-dot.stale{color:var(--status-warning)}.site-status-dot.unknown{color:var(--ci-muted)}.site-meta{color:var(--ci-muted);align-items:center;gap:.75rem;margin-left:auto;font-size:.78rem;display:flex}.site-status-badge{text-transform:uppercase;letter-spacing:.04em;border-radius:999px;padding:.2rem .55rem;font-size:.7rem;font-weight:700}.site-status-badge.connected{color:#22c55e;background:#22c55e26}.site-status-badge.stale{background:var(--status-warning-soft);color:var(--status-warning)}.site-status-badge.unknown{color:var(--ci-quaternary);background:#6bceff1f}.site-last-seen{color:var(--ci-muted);font-size:.78rem}.live-site-name{color:var(--ci-quaternary);background:#00b9fe3d;border-radius:999px;padding:.1rem .5rem;font-size:.75rem;font-weight:600}.app-main{width:100%;padding:2rem}.current-deliveries-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,22rem),1fr));gap:1rem;margin-bottom:2rem;display:grid}.current-delivery-banner{--live-status:var(--ci-quaternary);--live-status-soft:#6bceff1f;--live-status-border:#6bceff4d;background:linear-gradient(135deg, var(--live-status-soft) 0%, #111936b8 52%), #111936b8;border:1px solid var(--live-status-border);border-radius:12px;padding:1.5rem;position:relative;overflow:hidden;box-shadow:0 8px 32px #0000002e,inset 0 1px #f4fbff0d}.current-delivery-banner.pass{--live-status:var(--status-good);--live-status-soft:var(--status-good-soft);--live-status-border:var(--status-good-border)}.current-delivery-banner.warn{--live-status:var(--status-warning);--live-status-soft:var(--status-warning-soft);--live-status-border:var(--status-warning-border)}.current-delivery-banner.fail{--live-status:var(--status-danger);--live-status-soft:var(--status-danger-soft);--live-status-border:var(--status-danger-border)}.current-delivery-banner:before{content:"";background:var(--live-status);opacity:.9;width:4px;height:100%;position:absolute;inset:0 auto 0 0}.current-delivery-header{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.current-delivery-badge{color:#fff;text-transform:uppercase;letter-spacing:.05em;background:#00b9fe29;border:1px solid #6bceff6b;border-radius:20px;align-items:center;gap:.5rem;padding:.375rem .75rem;font-size:.75rem;font-weight:600;display:flex}.current-delivery-badge:before,.live-card-badge:before{content:"";background:var(--ci-quaternary);border-radius:999px;flex:0 0 .42rem;width:.42rem;height:.42rem;animation:1.8s ease-out infinite liveDotPulse;box-shadow:0 0 8px #6bceff5c}.current-delivery-times{color:#fffc;flex-direction:column;align-items:flex-end;gap:.2rem;font-size:.875rem;display:flex}.current-delivery-time{align-items:center;gap:.25rem;display:inline-flex}.current-delivery-time.primary{color:#fff;font-weight:600}.current-delivery-time-secondary{color:#ffffff9e;flex-direction:column;align-items:flex-end;gap:.18rem;font-size:.78rem;display:flex}.current-scan-header{margin-bottom:.75rem}.current-scan-id{align-items:center;gap:.5rem;display:flex}.current-tire-id{color:#fff;font-family:Courier New,monospace;font-size:1.1rem;font-weight:600}.current-scan-details{flex-direction:column;gap:.75rem;display:flex}.current-delivery-summary{flex-wrap:wrap;align-items:center;gap:1.5rem;display:flex}.current-tire-count{color:#fff;align-items:center;gap:.5rem;font-size:1rem;font-weight:500;display:flex}.current-accuracy .accuracy-score{font-size:1rem;font-weight:600}.dashboard-grid{grid-template-rows:auto auto;grid-template-columns:1fr 1fr;align-items:start;gap:2rem;width:100%;display:grid}.panel{background:var(--ci-panel);border:1px solid var(--ci-border);border-radius:12px;padding:1.5rem;box-shadow:0 4px 6px -1px #0000004d,0 2px 4px -1px #0003}.scan-feed-panel{flex-direction:column;grid-area:1/1/3;min-height:calc(100vh - 220px);display:flex}.statistics-panel{grid-area:1/2}.system-health-panel{grid-area:2/2}.scan-feed-header{flex-wrap:wrap;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.scan-feed h2{color:var(--ci-text);margin:0;font-size:1.25rem}.period-filter{color:var(--ci-muted);align-items:center;gap:.75rem;display:flex}.filter-buttons{background:var(--ci-panel-soft);border-radius:8px;flex-wrap:wrap;gap:.25rem;padding:.25rem;display:flex}.filter-btn{color:var(--ci-muted);cursor:pointer;white-space:nowrap;background:0 0;border:none;border-radius:6px;padding:.5rem 1rem;font-size:.875rem;font-weight:500;transition:all .2s}.filter-btn:hover{background:var(--ci-border-strong);color:var(--ci-text)}.filter-btn.active{background:var(--ci-tertiary);color:#fff;font-weight:600}.filter-btn.active:hover{background:var(--ci-secondary)}.scan-stats{gap:1rem;margin-bottom:1.5rem;display:flex}.stat{text-align:center;background:var(--ci-panel-soft);border-radius:8px;flex:1;padding:.75rem}.stat-value{color:var(--ci-text);font-size:1.5rem;font-weight:700;display:block}.stat-label{color:var(--ci-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.75rem}.scan-list{scrollbar-width:thin;min-height:700px;max-height:calc(100vh - 420px);overflow-y:auto}.scan-item{border:1px solid var(--ci-border-strong);--card-status:var(--ci-quaternary);--card-status-soft:#6bceff1f;--card-status-border:#6bceff4d;background:#111936e0;border-radius:8px;margin-bottom:.75rem;padding:1rem;transition:all .2s;position:relative;overflow:hidden}.scan-item:hover{background:var(--ci-panel-strong);box-shadow:0 2px 8px #0006}.scan-item.pass{--card-status:var(--status-good);--card-status-soft:var(--status-good-soft);--card-status-border:var(--status-good-border);background:linear-gradient(135deg, var(--status-good-soft) 0%, #111936e0 46%), #111936e0;border-color:var(--status-good-border)}.scan-item.fail{--card-status:var(--status-danger);--card-status-soft:var(--status-danger-soft);--card-status-border:var(--status-danger-border);background:linear-gradient(135deg, var(--status-danger-soft) 0%, #111936e0 46%), #111936e0;border-color:var(--status-danger-border)}.scan-item.warn{--card-status:var(--status-warning);--card-status-soft:var(--status-warning-soft);--card-status-border:var(--status-warning-border);background:linear-gradient(135deg, var(--status-warning-soft) 0%, #111936e0 46%), #111936e0;border-color:var(--status-warning-border)}.scan-item.delivery{box-shadow:inset 0 1px #f4fbff0d}.scan-item.delivery:hover{border-color:var(--ci-quaternary);transform:translateY(-1px)}.scan-item.delivery.live{box-shadow:inset 0 1px #f4fbff0a}.scan-item.delivery.live:hover{border-color:var(--ci-quaternary)}.scan-item.delivery:before{content:"";opacity:.9;width:4px;position:absolute;inset:0 auto 0 0}.scan-item.pass:before{background:var(--status-good)}.scan-item.warn:before{background:var(--status-warning)}.scan-item.fail:before{background:var(--status-danger)}.scan-header{justify-content:space-between;align-items:center;margin-bottom:.5rem;display:flex}.scan-id{align-items:center;gap:.5rem;display:flex}.tire-id{font-family:Courier New,monospace;font-weight:600}.document-type{color:var(--ci-muted);background:#19244db8;border-radius:4px;margin-left:.5rem;padding:.125rem .375rem;font-size:.75rem;font-weight:400}.site-card-badge{color:var(--ci-primary);background:var(--ci-quaternary);font-weight:700}.live-card-badge{color:var(--ci-quaternary);letter-spacing:.06em;background:#00b9fe29;border:1px solid #6bceff6b;align-items:center;gap:.32rem;font-weight:800;display:inline-flex}@keyframes liveDotPulse{0%{box-shadow:0 0 #6bceff61}70%,to{box-shadow:0 0 0 .36rem #6bceff00}}.scan-times{flex-direction:column;align-items:flex-end;gap:.24rem;min-width:max-content;display:flex}.scan-time{color:var(--ci-muted);align-items:center;gap:.25rem;font-size:.875rem;display:inline-flex}.scan-time.primary{color:var(--ci-text);font-weight:600}.scan-time-row{color:var(--ci-muted);flex-direction:column;align-items:flex-end;gap:.16rem;font-size:.75rem;display:flex}.scan-details{flex-direction:column;gap:.75rem;display:flex}.delivery-summary{flex-wrap:wrap;align-items:center;gap:1rem;display:flex}.tire-count{color:var(--ci-text);align-items:center;gap:.5rem;font-weight:500;display:flex}.delivery-errors{background:var(--card-status-soft);border:1px solid var(--card-status-border);border-radius:7px;align-items:center;gap:.875rem;padding:.75rem .875rem;display:flex;box-shadow:inset 0 1px #6bceff14}.error-summary{flex-shrink:0;align-items:center;gap:.45rem;display:flex}.error-summary-label{color:var(--ci-muted);letter-spacing:.06em;text-transform:uppercase;font-size:.7rem;font-weight:700}.error-summary-count{min-width:1.75rem;height:1.75rem;color:var(--card-status);border:1px solid var(--card-status-border);background:#19244d70;border-radius:999px;justify-content:center;align-items:center;padding:0 .45rem;font-size:.78rem;font-weight:800;display:inline-flex}.error-breakdown{flex-wrap:wrap;gap:.45rem;min-width:0;display:flex}.error-type{color:var(--ci-text);border:1px solid var(--card-status-border);background:#19244d61;border-radius:999px;padding:.26rem .55rem;font-size:.72rem;font-weight:700}.accuracy-icon.high{color:var(--status-good)}.accuracy-icon.medium{color:var(--status-warning)}.accuracy-icon.low{color:var(--status-danger)}.accuracy{align-items:center;gap:.5rem;display:flex}.accuracy-score.high{color:var(--status-good);font-weight:600}.accuracy-score.medium{color:var(--status-warning);font-weight:600}.accuracy-score.low{color:var(--status-danger);font-weight:600}.no-deliveries{text-align:center;color:var(--ci-muted);padding:2rem}.statistics-header{justify-content:space-between;align-items:center;gap:1rem;margin-bottom:1rem;display:flex}.statistics h2{color:var(--ci-text);font-size:1.25rem}.statistics-actions{flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:.4rem;display:flex}.export-button{border:1px solid var(--ci-border);min-height:2rem;color:var(--ci-quaternary);cursor:pointer;background:#00b9fe1f;border-radius:6px;justify-content:center;align-items:center;gap:.35rem;padding:.35rem .65rem;font-size:.75rem;font-weight:700;display:inline-flex}.export-button:hover{border-color:var(--ci-border-strong);color:var(--ci-text);background:#00b9fe38}.source-badges{flex-wrap:wrap;gap:.5rem;margin-bottom:1rem;display:flex}.source-badge{border:1px solid #0000;border-radius:9999px;padding:.25rem .625rem;font-size:.75rem;font-weight:600}.source-badge.connected{color:#34d399;background:#064e3b;border-color:#065f46}.source-badge.unreachable{background:var(--status-warning-soft);color:var(--status-warning);border-color:var(--status-warning-border)}.source-badge.unknown{color:var(--ci-quaternary);border-color:var(--ci-secondary);background:#025d9759}.stats-overview{grid-template-columns:1fr 1fr;gap:1rem;margin-bottom:1.5rem;display:grid}.stat-card{background:var(--ci-panel-soft);border-radius:8px;align-items:center;gap:.75rem;padding:1rem;display:flex}.stat-icon .icon{color:var(--ci-quaternary)}.stat-icon{border:1px solid var(--ci-border);background:#19244d57;border-radius:8px;flex:0 0 2.35rem;justify-content:center;align-items:center;width:2.35rem;height:2.35rem;display:inline-flex}.stat-icon.error-total .icon{color:#ef4444}.stat-icon.error-article .icon{color:#d7a84b}.stat-icon.error-date .icon{color:#f97316}.stat-icon.error-serial .icon{color:#6bceff}.stat-icon.error-skipped .icon{color:#a855f7}.stat-icon.error-size .icon{color:#94a3b8}.stat-icon.error-other .icon{color:#f87171}.stat-info{flex-direction:column;display:flex}.stat-card .stat-value{color:var(--ci-text);font-size:1.25rem;font-weight:700}.stat-card .stat-label{color:var(--ci-muted);text-transform:uppercase;font-size:.75rem}.charts{flex-direction:column;gap:1rem;display:flex}.chart-container{min-width:0}.chart-frame{width:100%;min-width:0;height:260px}.bar-chart{grid-template-columns:repeat(auto-fit,minmax(5rem,1fr));align-items:end;gap:.75rem;padding:.75rem .25rem 0;display:grid}.bar-column{grid-template-rows:auto 1fr auto;gap:.4rem;min-width:0;height:100%;display:grid}.bar-value{color:var(--ci-text);text-align:center;white-space:nowrap;font-size:.78rem;font-weight:700;line-height:1.1}.bar-track{border-bottom:1px solid var(--ci-border-strong);background:#19244d47;border-radius:6px 6px 0 0;align-items:end;min-height:0;display:flex;position:relative;overflow:hidden}.bar-fill{border-radius:6px 6px 0 0;width:100%;min-height:0}.bar-label{min-height:2.2rem;color:var(--ci-muted);text-align:center;overflow-wrap:anywhere;font-size:.72rem;line-height:1.15}.chart-container h3{color:var(--ci-muted);margin-bottom:.5rem;font-size:1rem}.system-health h2{color:var(--ci-text);margin-bottom:1rem;font-size:1.25rem}.health-status{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.status-badge{border-radius:9999px;align-items:center;gap:.5rem;padding:.5rem 1rem;font-size:.875rem;font-weight:600;display:flex}.status-badge.good{color:#34d399;background:#064e3b;border:1px solid #065f46}.status-badge.warning{background:var(--status-warning-soft);color:var(--status-warning);border:1px solid var(--status-warning-border)}.status-badge.critical{color:#f87171;background:#450a0a;border:1px solid #7f1d1d}.health-metrics{flex-direction:column;gap:1rem;margin-bottom:1.5rem;display:flex}.metric{justify-content:space-between;align-items:center;display:flex}.metric-header{align-items:center;gap:.5rem;display:flex}.metric-icon{color:var(--ci-muted)}.metric-label{color:var(--ci-muted);font-weight:500}.metric-value{flex-direction:column;align-items:flex-end;gap:.25rem;display:flex}.value.good{color:#34d399}.value.warning{color:var(--status-warning)}.value.critical{color:#f87171}.progress-bar{background:var(--ci-border-strong);border-radius:2px;width:100px;height:4px;overflow:hidden}.progress-fill{height:100%;transition:width .3s}.progress-fill.good{background:#34d399}.progress-fill.warning{background:var(--status-warning)}.progress-fill.critical{background:#f87171}.health-chart h3{color:var(--ci-muted);margin-bottom:.5rem;font-size:1rem}@media (width<=1024px){.dashboard-grid{grid-template-rows:auto;grid-template-columns:1fr}.scan-feed-panel,.statistics-panel,.system-health-panel{grid-area:auto/1}.scan-feed-panel{min-height:auto}.scan-list{min-height:0;max-height:600px}}@media (width<=640px){.app-header{flex-direction:column;align-items:flex-start;gap:.75rem;padding:1rem}.app-main,.panel{padding:1rem}.stats-overview{grid-template-columns:1fr}.scan-list{max-height:500px}}
