/* =========================================================================
   netex · pages/capability-vision-qc.css · vision QC · the conveyor poster and the 20-photo check
   Loaded only on that page, after pages/capability.css (netex_capabilities_enqueue_page_css()).
   ========================================================================= */
@layer reset, tokens, base, components, layout, pages, utilities;

@layer pages {

/* =========================================================================
   s8 vision · capability-qc (drawing-register belt; static frame until started)
   ========================================================================= */
.qc-stage { display: grid; gap: var(--s-4); }
.qc-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3) var(--s-6); }
.qc-modes button { min-height: 44px; }
.qc-speed { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3); }
.qc-speed .nx-mono-label { margin: 0; }
.qc-belt { position: relative; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--rule); padding: var(--s-2); overflow: hidden; }
.qc-svg { display: block; width: 100%; height: auto; }
.qc-frame path { fill: none; stroke: var(--silver); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.qc-roller { stroke-width: 1 !important; opacity: .45; }
.qc-cam path { fill: none; stroke: var(--silver); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.qc-cam .qc-fov { stroke: var(--cyan); stroke-dasharray: 3 5; opacity: .7; }
.qc-eye circle, .qc-eye path { fill: none; stroke: var(--paper-72); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.qc-station path { fill: none; stroke: var(--paper-72); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.qc-gate path { fill: none; stroke: var(--silver); stroke-width: 1.5; vector-effect: non-scaling-stroke; opacity: .7; }
.qc-stage[data-mode="inspector"] .qc-cam { opacity: .35; }
.qc-stage[data-mode="ai"] .qc-eye { opacity: .3; }
.qc-part ellipse { fill: var(--ink-3); stroke: var(--paper); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.qc-part .qc-part__in { fill: none; stroke-width: 1; opacity: .7; }
.qc-def { fill: none; stroke: var(--paper); stroke-width: 2.2; vector-effect: non-scaling-stroke; }
.qc-def--fill { fill: var(--paper); stroke: none; }
.qc-gap { fill: none; stroke: var(--ink-3); stroke-width: 7; }
.qc-part.is-escaped ellipse:first-child { stroke: var(--molten); stroke-width: 2.5; }
.qc-part.is-out { opacity: .55; }
.qc-box { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.qc-box--ok { stroke: color-mix(in srgb, var(--cyan) 55%, transparent); }
.qc-box--sig { stroke: var(--cyan); stroke-width: 2.2; }
.qc-box--grey { stroke: var(--paper-72); stroke-dasharray: 5 4; }
.qc-box--eye { stroke: var(--paper); stroke-dasharray: 2 4; }
.qc-tt { font: 600 15px var(--f-mono); fill: var(--cyan); paint-order: stroke; stroke: var(--ink-2); stroke-width: 6px; stroke-linejoin: round; }
.qc-stage[data-mode="inspector"] .qc-tt { fill: var(--paper); }
.qc-ctl { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-3) var(--s-5); }
.qc-counters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-4) var(--s-6); margin: 0; }
.qc-count dt { font: 500 .6875rem/1.3 var(--f-mono); letter-spacing: var(--tr-label); text-transform: uppercase; color: var(--fg-2); margin-bottom: var(--s-1); }
.qc-count dd { margin: 0; }
.qc-count__num { display: inline-block; font-family: var(--f-dot); font-weight: 500; font-variation-settings: "ELSH" 2; font-size: clamp(2.5rem, 1.8rem + 2.6vw, 4.25rem); line-height: .9; color: var(--fg); }
.qc-count--missed .qc-count__num { color: var(--molten); }
.qc-count--caught .qc-count__num { color: var(--cyan); }
@media (min-width: 900px) { .qc-counters { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.qc-result { padding: var(--s-4) var(--s-5); background: var(--ink-2); box-shadow: inset 2px 0 0 var(--cyan); display: grid; gap: var(--s-2); }
.qc-result__card { font: 500 1.0625rem/1.5 var(--f-sans); max-width: 70ch; }
.qc-result__line { font: italic 400 var(--t-lead)/1.4 var(--f-serif); }
.qc-note { font-size: var(--t-small); color: var(--fg-2); max-width: 70ch; }
@media (max-width: 767px) {
	.qc-belt { overflow-x: auto; }
	.qc-belt .qc-svg { width: 760px; max-width: none; }
}

/* =========================================================================
   s8 vision part B · the 20-photo check (the page's main conversion)
   ========================================================================= */
.cap-upload { margin-top: var(--s-10); padding-top: var(--s-8); border-top: var(--bw) solid var(--rule); }
.cap-upload__grid { row-gap: var(--s-7); align-items: start; }
.cap-upload__title { font-size: var(--t-h2); font-weight: var(--w-h2); line-height: var(--lh-h2); letter-spacing: var(--tr-h2); max-width: 16ch; }
.cap-upload__intro .nx-lead { margin-top: var(--s-5); }
.cap-upload__privacy { margin-top: var(--s-4); font-size: var(--t-small); color: var(--fg-2); max-width: 46ch; }
.cap-upload__form { max-width: none; }
.cap-upload__fields { display: grid; gap: var(--s-4) var(--s-5); }
/* A field beside one showing an error must not stretch its label row (inputs stay level in the row). */
.cap-upload__fields > .nx-field { align-content: start; }
@media (min-width: 640px) { .cap-upload__fields { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cap-upload__fields > :first-child { grid-column: 1 / -1; } }
.cap-drop { position: relative; display: grid; gap: var(--s-2); padding: var(--s-5); border: 1.5px dashed var(--fg-2); background: var(--paper-2); transition: border-color var(--dur-ui) var(--ease-mech), background-color var(--dur-ui) var(--ease-mech); }
.cap-drop.is-over { border-color: var(--indigo); background: var(--paper); }
.cap-drop__label { display: flex; align-items: center; gap: var(--s-3); font: var(--w-strong) 1rem/1.35 var(--f-sans); cursor: pointer; }
.cap-drop__icon { flex: none; width: 34px; height: 34px; border: 1.5px solid var(--ink); position: relative; clip-path: polygon(0 0, 100% 0, 100% calc(100% - 9px), calc(100% - 9px) 100%, 0 100%); }
.cap-drop__icon::before { content: ""; position: absolute; left: 50%; top: 7px; bottom: 7px; width: 1.5px; margin-left: -.75px; background: var(--ink); }
.cap-drop__icon::after { content: ""; position: absolute; top: 50%; left: 7px; right: 7px; height: 1.5px; margin-top: -.75px; background: var(--ink); }
.cap-drop__input { width: 100%; font: 400 .875rem/1.4 var(--f-sans); color: var(--fg-2); }
.cap-drop__input::file-selector-button { margin-right: var(--s-3); min-height: 40px; padding: 0 14px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); font: 600 .875rem var(--f-sans); cursor: pointer; }
.cap-drop__input:focus-visible { outline: var(--bw-focus) solid var(--focus); outline-offset: var(--focus-offset); }
/* With JS the count line and the thumbnails report the choice, so the browser's own
   "no file chosen" text (truncated on phones) is dropped; the button keeps its size. */
.js .cap-drop__input { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.cap-drop__btn { justify-self: start; cursor: pointer; }
html:not(.js) .cap-drop__btn { display: none; }
.cap-drop__input:focus-visible + .cap-drop__btn { outline: var(--bw-focus) solid var(--focus); outline-offset: var(--focus-offset); }
.cap-drop__count { font: 600 .8125rem/1.3 var(--f-mono); color: var(--fg); }
.cap-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s-2); margin: 0; padding: 0; list-style: none; }
.cap-thumbs:empty { display: none; }
.cap-thumb { display: grid; grid-template-columns: 40px minmax(0, 1fr); grid-template-areas: "img name" "img rm"; gap: 2px var(--s-2); align-items: center; padding: var(--s-1); background: var(--paper); box-shadow: inset 0 0 0 1px var(--rule-light); }
.cap-thumb img, .cap-thumb__ph { grid-area: img; width: 40px; height: 40px; object-fit: cover; }
.cap-thumb__ph { display: grid; place-items: center; background: var(--paper-3); font: 600 .625rem var(--f-mono); }
.cap-thumb__name { grid-area: name; font: 500 .6875rem/1.2 var(--f-mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cap-thumb__rm { grid-area: rm; justify-self: start; min-height: 24px; font: 600 .6875rem var(--f-sans); color: var(--molten-deep); text-decoration: underline; }
.cap-upload__progress { font: 500 .8125rem/1.4 var(--f-mono); color: var(--fg-2); }
.cap-upload__done { display: grid; gap: var(--s-4); }
.cap-upload__success { font: italic 400 var(--t-lead)/1.45 var(--f-serif); max-width: 46ch; }
@media (min-width: 1024px) {
	.cap-upload__intro { grid-column: 1 / span 5; position: sticky; top: calc(var(--header-h) + var(--s-6)); }
	.cap-upload__formwrap { grid-column: 7 / -1; }
}



} /* end @layer pages */
