:root { font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #e8edf9; background: #080f20; font-synthesis: none; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; background: radial-gradient(ellipse 70% 50% at 50% -12%, rgba(77, 95, 213, .22), transparent 72%), #080f20; }
button, input { font: inherit; }
a { color: inherit; }
button { cursor: pointer; }
button:focus-visible, .dropzone:focus-visible, a:focus-visible { outline: 3px solid #8f9eff; outline-offset: 3px; }
[hidden] { display: none !important; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin: auto; }
.topbar { height: 92px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #1d2944; }
.brand { text-decoration: none; display: inline-flex; align-items: center; font-weight: 820; font-size: 23px; letter-spacing: -.8px; gap: 10px; }
.brand-symbol { display: inline-grid; place-items: center; background: linear-gradient(140deg,#92a6ff,#bd8eff); border-radius: 12px; width: 39px; height: 39px; color: #0a1030; font-size: 31px; }
.brand-accent { color: #a6b4ff; }
.top-pill { display: inline-flex; align-items: center; gap: 9px; color: #acb9d4; padding: 9px 14px; border-radius: 999px; border: 1px solid #2b3856; background: #111b31; font-size: 12px; letter-spacing: .1px; }
.live-dot { height: 7px; width: 7px; border-radius: 50%; background: #73ddaa; box-shadow: 0 0 0 4px rgba(115,221,170,.1); }
.hero { text-align: center; padding: 68px 10px 45px; }
.eyebrow { color: #a0adff; letter-spacing: 2.8px; font-size: 11px; font-weight: 750; }
.hero h1 { font-size: clamp(38px, 5.5vw, 64px); letter-spacing: -2.7px; margin: 16px 0 13px; line-height: 1.08; }
.hero h1 em { font-style: normal; background: linear-gradient(105deg,#8fa5ff 0%,#cf9dff 100%); color: transparent; background-clip: text; }
.hero-subtitle { color: #a5b1cc; max-width: 575px; line-height: 1.7; font-size: 15px; margin: 0 auto; }
.workspace { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.panel { border-radius: 21px; background: linear-gradient(140deg, rgba(21,33,59,.98), rgba(16,25,45,.98)); border: 1px solid #2b3956; padding: 28px; box-shadow: 0 20px 50px rgba(0,0,0,.14); }
.section-heading, .section-heading > div { display: flex; align-items: center; gap: 12px; }
.section-heading { justify-content: space-between; margin-bottom: 22px; }
.section-heading h2 { font-size: 18px; margin: 0; letter-spacing: -.4px; }
.step-indicator { font-size: 12px; color: #a5b3ff; font-weight: 800; background: #29365c; padding: 7px 8px; border-radius: 8px; }
.helper-text { font-size: 12px; color: #93a0bf; white-space: nowrap; }
.dropzone { min-height: 284px; width: 100%; border: 1.5px dashed #51658f; border-radius: 16px; display: grid; place-items: center; overflow: hidden; background: linear-gradient(150deg, rgba(65,80,137,.12), rgba(44,66,123,.05)); cursor: pointer; transition: border-color .15s, background .15s; }
.dropzone:hover,.dropzone.drag-over { border-color: #9aaeff; background: #1d3054; }
.upload-placeholder { text-align: center; padding: 24px; }
.upload-icon { background: #273962; color: #b0c0ff; border: 1px solid #3d5182; border-radius: 15px; width: 66px; height: 66px; display: grid; place-items: center; margin: auto auto 20px; }
.upload-main { margin: 0; font-size: 17px; font-weight: 720; }
.upload-muted { font-size: 13px; color: #91a0bd; margin: 8px 0 18px; }
.browse-chip { display: inline-block; padding: 9px 18px; background: #273a62; border: 1px solid #4b6190; color: #dce4ff; border-radius: 9px; font-size: 13px; font-weight: 700; }
#image-preview { width: 100%; height: 284px; object-fit: contain; padding: 11px; }
.selected-row { margin-top: 10px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.selected-name { font-size: 12px; color: #9daac9; overflow-wrap: anywhere; }
.text-button { border: none; background: transparent; color: #b5c0ff; font-size: 12px; white-space: nowrap; padding: 5px; }
.primary-button { margin-top: 20px; border: none; background: linear-gradient(100deg,#6d83fc,#976af2); color: white; font-size: 15px; font-weight: 770; border-radius: 12px; min-height: 53px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 6px 22px rgba(94,99,247,.18); }
.primary-button:disabled { cursor: not-allowed; opacity: .55; box-shadow: none; }
.status { min-height: 21px; text-align: center; font-size: 12px; line-height: 1.6; color: #9caacb; margin-top: 12px; }
.status.error { color: #ffc1c1; }
.progress-track { overflow: hidden; border-radius: 40px; height: 5px; background: #2b3960; margin-top: 10px; }
.progress-fill { width: 0%; height: 100%; background: linear-gradient(90deg,#84a5ff,#d1a0ff); transition: width .25s; }
.results-empty { min-height: 357px; padding: 35px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.result-icon { font-size: 62px; font-weight: 100; color: #6376ae; margin-bottom: 13px; }
.results-empty h3 { margin: 0 0 5px; font-size: 18px; }
.results-empty p { max-width: 290px; color: #9ba9c4; font-size: 13px; line-height: 1.7; }
.winner-card { border: 1px solid #465a8c; border-radius: 14px; padding: 18px; background: linear-gradient(120deg,rgba(104,118,237,.2),rgba(109,65,169,.1)); margin-bottom: 22px; }
.winner-overline { font-size: 10px; letter-spacing: 1.75px; color: #aab8ff; font-weight: 820; }
.winner-label { text-transform: capitalize; font-size: 20px; letter-spacing: -.4px; font-weight: 750; margin-top: 10px; }
.winner-score { color: #c4d0ff; font-size: 13px; margin-top: 5px; }
.result-list { display: grid; gap: 16px; }
.result-name-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; margin-bottom: 8px; }
.result-name { overflow-wrap: anywhere; text-transform: capitalize; color: #e1e9fa; }
.result-percentage { white-space: nowrap; font-variant-numeric: tabular-nums; color: #c1caff; font-weight: 780; }
.result-bar { height: 7px; border-radius: 7px; overflow: hidden; background: #273958; }
.result-bar-fill { height: 100%; background: linear-gradient(90deg,#7792ff,#ae83f9); border-radius: 7px; }
.disclaimer { margin-top: 25px; color: #8e9fbe; font-size: 11px; line-height: 1.65; }
.info-strip { margin-top: 20px; background: rgba(17,28,50,.66); border: 1px solid #253553; border-radius: 17px; padding: 22px 25px; display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.info-strip > div { display: flex; align-items: center; gap: 12px; }
.info-strip > div > div { display: flex; flex-direction: column; gap: 4px; }
.info-strip strong { font-size: 12px; }
.info-strip span:not(.info-icon) { color: #99a7c3; font-size: 11px; }
.info-icon { width: 38px; height: 38px; background: #26365d; color: #b4bfff; border-radius: 10px; display: grid; place-items: center; flex-shrink: 0; font-size: 21px; }
footer { color: #8592ae; text-align: center; font-size: 11px; margin: 27px 0 35px; }
footer a { color: #acbaff; text-decoration: none; }
@media(max-width:850px) { .workspace { grid-template-columns: 1fr; } .hero { padding-top: 50px; } .info-strip { grid-template-columns: 1fr; } .panel { padding: 21px; } }
@media(max-width:480px) { .page-shell { width: min(100% - 28px, 1180px); } .topbar { height: 74px; } .top-pill { display: none; } .hero { padding: 47px 5px 30px; } .hero h1 { letter-spacing: -1.5px; } .section-heading { flex-wrap: wrap; } }

/* VisionAI 2.0: analysis mode switch, threshold controls, and object results */
.mode-selector { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; margin-bottom: 16px; }
.mode-button { border: 1px solid #3e507b; border-radius: 10px; padding: 12px 7px; background: #192943; color: #acbcdb; font-size: 12px; font-weight: 750; }
.mode-button.active { color: #f6f8ff; background: #4557a2; border-color: #92a5fa; box-shadow: 0 4px 15px rgba(93,119,255,.17); }
.mode-button:disabled { opacity: .6; cursor: not-allowed; }
#annotated-canvas { width: 100%; height: 284px; object-fit: contain; padding: 11px; display: block; }
.confidence-controls { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 9px 12px; margin-top: 18px; }
.confidence-controls label { font-size: 12px; font-weight: 720; color: #dce4f9; }
.confidence-controls output { font-size: 12px; color: #adbbff; font-weight: 800; }
.confidence-controls input { grid-column: 1 / -1; width: 100%; accent-color: #9fa9ff; cursor: pointer; }
.confidence-controls p { grid-column: 1 / -1; margin: 0; color: #99a7c3; font-size: 11px; line-height: 1.5; }
.detect-summary { display: flex; gap: 12px; justify-content: space-between; align-items: center; background: #253559; border: 1px solid #435681; padding: 16px; border-radius: 13px; }
.detect-summary strong { font-size: 17px; }
.detect-summary span { font-size: 11px; color: #acbce2; }
.detection-list { padding: 0; margin: 20px 0; list-style: none; display: grid; gap: 9px; }
.detection-item { display: flex; align-items: center; gap: 11px; border: 1px solid #334566; background: #1c2b45; padding: 13px 14px; border-radius: 10px; }
.detection-swatch { flex: 0 0 11px; height: 11px; border-radius: 3px; }
.detection-name { flex: 1; min-width: 0; color: #e1e8f9; font-weight: 650; text-transform: capitalize; overflow-wrap: anywhere; }
.no-detections { color: #b8c8e9; font-size: 13px; line-height: 1.6; padding: 14px 0; }
.download-button { width: 100%; padding: 13px 10px; border: 1px solid #6b8abf; border-radius: 11px; background: #243b62; color: #e7f0ff; font-weight: 700; }
.download-button:hover:not(:disabled) { background: #365681; }
.download-button:disabled { opacity: .5; cursor: not-allowed; }
@media(max-width:480px) { .mode-selector { grid-template-columns: 1fr; } .detect-summary { flex-wrap: wrap; } }
