/* The browser workspace uses the same evidence states and brand tokens as the field app. */
:root {
  --page: 1080px;
  --edge: clamp(16px, 4vw, 48px);
  --inset: max(var(--edge), calc((100% - var(--page)) / 2));
  --rule: var(--line-strong);
  --paper: var(--ink);
  --field-line: var(--muted);
  --dark: var(--text);
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --press-duration: 110ms;
  --progress-duration: 220ms;
  --capture-flash-duration: 120ms;
  --spinner-period: 850ms;
  --ease-out: cubic-bezier(.32, .72, 0, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
}
@supports (color: color-mix(in srgb, red, white)) {
  :root {
    --rule: color-mix(in srgb, var(--navy) 15%, var(--panel));
    --paper: color-mix(in srgb, var(--ink) 61%, var(--panel));
    --field-line: color-mix(in srgb, var(--muted) 72%, var(--panel));
    --dark: color-mix(in srgb, var(--navy) 45%, var(--text));
  }
}

body {
  max-width: none;
  min-height: 100vh;
  margin: 0;
  background: var(--paper);
  box-shadow: none;
  -webkit-font-smoothing: antialiased;
}
button:not(:disabled), .ck-item, summary { cursor: pointer; }
button, a, input, select { -webkit-tap-highlight-color: transparent; }
:where(button, a, input, select, summary):focus-visible, .verify-drop:focus-within {
  outline: 3px solid var(--text);
  outline-offset: 3px;
}
:is(.ck-progress, .cam, header.top) :focus-visible {
  outline: 2px solid var(--panel);
  box-shadow: 0 0 0 5px var(--text);
}
h1, h2 { text-wrap: balance; }
p { text-wrap: pretty; }

body:not(.cam-open) header.top {
  gap: 14px;
  padding: calc(9px + env(safe-area-inset-top)) var(--inset) 9px;
  background: var(--navy);
  border-bottom: 1px solid var(--navy);
}
body:not(.cam-open) header.top .brand-art { height: 56px; }
body:not(.cam-open) header.top .brand-art-light { display: none; }
body:not(.cam-open) header.top .brand-art-lime { display: block; }
body:not(.cam-open) .product-name {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding-left: 16px;
  border-left: 1px solid #ffffff40;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}
.jobno {
  max-width: 100%;
  overflow-wrap: anywhere;
  border-radius: 6px;
  background: var(--paper);
  box-shadow: inset 0 0 0 1px var(--rule);
}
body:not(.cam-open) .jobno { color: #fff; background: #ffffff24; box-shadow: none; }
body:not(.cam-open) #returnTop { padding-inline: 10px; color: #fff; }
main {
  width: min(var(--page), calc(100% - 2 * var(--edge)));
  margin: 0 auto;
  padding: clamp(22px, 3vw, 40px) 0;
  gap: 24px;
}
main > section, main > div#errBanner { margin-top: 0; }
.statusrow:not(:empty) { margin-inline: var(--inset); padding-inline: 0; }
#statusRowSlot .statusrow:not(:has(.pill:not([hidden]):not(.ok))) { display: none; }
body.cam-open .statusrow:not(:empty) { margin: 0; }
.upload-summary { margin-inline: var(--inset); }
.eyebrow { font-size: 12px; letter-spacing: .08em; }
.hint { font-size: 15px; line-height: 1.5; }
body:not(.landing) footer { max-width: 76ch; margin: 20px auto; padding-inline: var(--edge); }
.privacy-footer { margin: 8px 0 0; text-align: center; font-size: 12px; }
.privacy-footer a { display: inline-flex; align-items: center; min-height: 44px; padding-inline: 12px; color: var(--muted); }
body:not(.landing):not(.keying) .privacy-footer { display: none; }
#errBanner, .ck-note, #siteCheckPrompt { overflow-wrap: anywhere; }
#errBanner { max-width: 100%; }

/* Job entry */
body.landing main { max-width: 648px; padding-top: clamp(24px, 6vw, 76px); }
#landing:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: stretch;
  overflow: clip;
  border: 1px solid var(--rule);
  border-radius: var(--r-xl);
  background: var(--panel);
}
#landing .entry-fields {
  display: block;
  min-width: 0;
  padding: clamp(24px, 3.8vw, 56px);
}
.landing-title, #listTitle, #accessTitle, #photoGuideTitle {
  margin: 0;
  color: var(--dark);
  font-size: clamp(34px, 3.6vw, 52px);
  font-weight: 720;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.entry-fields > .hint:first-of-type, #keyPanel > .hint:first-of-type {
  margin: 14px 0 26px;
  max-width: 37ch;
}
#jobOpenAlso { margin-top: -16px; }
.field-label { font-weight: 600; color: var(--text); }
.jobopen input, #opDialog input {
  min-width: 0;
  min-height: 48px;
  border: 1px solid var(--field-line);
  border-radius: var(--r-sm);
  background: var(--panel);
  font-size: 16px;
  padding: 12px 14px;
}
input::placeholder { color: var(--muted); opacity: 1; }
#keyPanel .landing-title { font-size: clamp(26px, 3vw, 32px); font-weight: 550; letter-spacing: -.02em; }
#keyInp { padding: 12px 14px; font-size: 20px; font-weight: 400; color: var(--text); }
#keyInp.long-code { font-size: 16px; }
#keyForm { display: grid; gap: 16px; }
#keyForm button { min-height: 48px; font-weight: 550; }
.team-code-link {
  min-height: 44px; padding: 6px 0; border: 0; background: transparent;
  font: inherit; font-size: 15px; color: var(--navy); text-decoration: underline; text-underline-offset: 3px;
}
#changeTeamCode { margin-top: 12px; }
body.landing-probe #changeTeamCode { display: none; }
.entry-fields .jobopen { gap: 6px; }
.landing-name { margin-bottom: 16px; }
#jobOpenForm { display: grid; grid-template-columns: 1fr; }
body.landing-probe #jobOpenForm { display: none; }
.jobopen button, #photoGuideCamera { border-radius: var(--r-sm); }
#jobOpenBtn {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 48px;
  padding: 12px 16px;
  margin-top: 14px;
}
#jobOpenBtn::after, .ck-next::after, .stage-index a::after {
  content: "";
  display: block;
  flex: none;
  width: 9px;
  height: 9px;
  border: solid currentColor;
  border-width: 1.8px 1.8px 0 0;
  transform: rotate(45deg);
}
#jobOpenBtn:disabled { opacity: .68; cursor: progress; }
#jobOpenBtn[data-finding]::after {
  width: 14px;
  height: 14px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
}
#jobOpenMsg[data-slow]::after {
  content: "";
  display: block;
  height: 44px;
  margin-top: 10px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: linear-gradient(var(--rule), var(--rule)) 12px 10px / 34% 6px no-repeat,
              linear-gradient(var(--rule), var(--rule)) 12px 25px / 58% 5px no-repeat, var(--paper);
}
#landing a { display: inline-flex; align-items: center; min-width: 44px; min-height: 44px; }
.entry-fields > .hint:last-child { margin-bottom: 0; font-size: 13px; }
#landing .jobpick-msg:not([hidden]) { margin: 14px 0 8px; }
#jobOpenInp[aria-invalid="true"] { border: 2px solid var(--bad); padding: 11px 13px; }
.entry-fields:has(#jobOpenInp[aria-invalid="true"]) #jobOpenMsg { color: var(--bad); }
#keyPanel {
  width: min(100%, 480px);
  padding: clamp(22px, 4vw, 42px);
  margin: clamp(16px, 7vh, 76px) auto 0;
  border: 1px solid var(--rule);
  border-radius: var(--r-lg);
  background: var(--panel);
}
.ck-progress::before {
  content: "";
  position: absolute;
  pointer-events: none;
  --arm: 15px;
  --stroke: 2px;
  --corner: linear-gradient(currentColor, currentColor);
  background:
    var(--corner) left top, var(--corner) right top, var(--corner) left bottom, var(--corner) right bottom,
    var(--corner) left top, var(--corner) right top, var(--corner) left bottom, var(--corner) right bottom;
  background-size:
    var(--arm) var(--stroke), var(--arm) var(--stroke), var(--arm) var(--stroke), var(--arm) var(--stroke),
    var(--stroke) var(--arm), var(--stroke) var(--arm), var(--stroke) var(--arm), var(--stroke) var(--arm);
  background-repeat: no-repeat;
}
/* Keep the job summary available without pushing the next photo below it. */
#listHead:not([hidden]) {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas: "title title" "meta meta" "operator action";
  align-items: center;
  gap: 8px 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
}
#latestPhoto { display: none; }
#listHead .list-titles {
  grid-area: title;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 4px 18px;
}
#listTitle { font-size: clamp(28px, 3vw, 40px); }
#listCount { grid-column: 1 / -1; margin: 0; font-size: 14px; }
#openAnotherJob {
  min-height: 44px;
  padding: 6px 2px;
  font-size: 14px;
  font-weight: 600;
  text-underline-offset: 3px;
}
#listHead #jobMeta { grid-area: meta; display: block; padding: 0; font-size: 14px; }
#jobAddress { display: block; overflow-wrap: anywhere; line-height: 1.5; }
#jobAddress:empty { display: none; }
#jobDetails > summary { display: list-item; width: fit-content; min-height: 44px; align-content: center; color: var(--navy); font-weight: 600; }
#jobSummary { max-width: 70ch; margin: 0 0 12px; line-height: 1.5; white-space: pre-line; }
#operatorChip { grid-area: operator; justify-self: start; min-height: 44px; padding: 8px 0; border: 0; border-radius: var(--r-sm); background: transparent; font-size: 14px; font-weight: 600; }
#operatorChip:not(.set) { background: transparent; color: var(--navy); }
#operatorChip .op-src { display: none; }
#additionalPhotos { grid-area: action; min-height: 44px; padding: 8px 12px; font-size: 14px; border: 1px solid var(--field-line); border-radius: var(--r-sm); }
#iphonePhotosCopyOption { grid-column: 1 / -1; }
#checklistCard { min-width: 0; }
.check-layout { display: grid; grid-template-columns: minmax(235px, .46fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); }
.check-overview { position: sticky; top: 20px; align-self: start; min-width: 0; }
.ck-progress {
  position: relative;
  padding: clamp(18px, 2vw, 27px);
  margin: 0;
  overflow: hidden;
  border-radius: var(--r-md);
  background: var(--navy);
}
.ck-progress::before {
  top: 22px;
  right: 22px;
  width: 26px;
  height: 22px;
  --arm: 7px;
  color: var(--accent);
}
.ck-head, .stage-index h2 {
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  letter-spacing: .085em;
  text-transform: uppercase;
}
.ck-head { padding-right: 38px; }
.ck-count {
  margin: 12px 0 17px;
  font-size: clamp(26px, 2.5vw, 34px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: -.025em;
}
.meter {
  --segment: calc(100% / var(--slots, 1));
  height: 8px;
  border-radius: 2px;
  background: rgb(255 255 255 / .29);
  mask-image: repeating-linear-gradient(90deg, black 0 max(2px, calc(var(--segment) - 2px)), transparent 0 var(--segment));
}
.meter > i, .bar > i {
  width: 100%;
  transform-origin: left center;
  transition: transform var(--progress-duration) var(--ease-in-out);
}
.bar > i { transform: scaleX(0); }
.ck-next {
  position: relative;
  display: grid;
  width: 100%;
  min-height: 56px;
  margin: 20px 0 0;
  padding: 12px 36px 12px 14px;
  border: none;
  border-radius: 6px;
  text-align: left;
  background: var(--accent);
  color: var(--accent-ink);
}
.ck-next span { font-size: 12px; font-weight: 550; }
.ck-next strong { margin-top: 3px; line-height: 1.3; font-size: 15px; font-weight: 700; }
.ck-next::after { position: absolute; right: 15px; top: calc(50% - 5px); }
.ck-progress.done::before { background: none; width: 18px; height: 10px; border: solid var(--accent); border-width: 0 0 3px 3px; transform: rotate(-45deg); }
.ck-progress .pillrow { margin-top: 14px; }
.ck-progress .pill.ok { display: inline-flex; padding: 0; background: transparent; color: var(--accent); font-size: 14px; }
.stage-index { display: grid; padding: 0 4px; margin-top: 25px; }
.stage-index h2 { margin: 0 0 6px; color: var(--muted); }
.stage-index a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 44px;
  border-bottom: 1px solid var(--rule);
  color: var(--text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 550;
}
.stage-index a::after { width: 6px; height: 6px; margin-right: 4px; color: var(--muted); }
.check-title { margin: 0; color: var(--dark); font-size: 25px; line-height: 1.2; letter-spacing: -.015em; }
.ck-prompt { font-size: 14px; line-height: 1.5; margin: 5px 0 15px; }
.check-title + .ck-stage, .check-title + .ck-list { margin-top: 16px; }
.ck-stage {
  margin: 0 0 14px;
  border: 1px solid var(--rule);
  border-radius: var(--r-md);
  background: var(--panel);
}
.ck-stage-toggle { align-items: center; padding: 16px 18px; gap: 12px; scroll-margin-block-start: 14px; }
.ck-stage-toggle[aria-expanded="true"] { border-radius: var(--r-md) var(--r-md) 0 0; border-bottom: 1px solid var(--rule); }
.ck-stage-no { width: 32px; height: 32px; border-radius: 7px; }
.ck-stage-name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; }
.ck-stage-title { font-size: 17px; }
.ck-stage-status { font-size: 13px; margin: 0; font-weight: 500; }
.ck-stage-started .ck-stage-status { color: color-mix(in srgb, var(--warn) 78%, var(--text)); }
.ck-stage .ck-list { padding: 0; }
.ck-item {
  min-height: 80px;
  padding: 12px 18px;
  gap: 12px;
  border-radius: 0;
}
.ck-item:last-child { border-radius: 0 0 var(--r-md) var(--r-md); }
.ck-item:focus-visible, .ck-stage-toggle:focus-visible { outline-offset: -3px; }
.ck-label { font-size: 16px; font-weight: 650; }
.ck-sub { font-size: 14px; line-height: 1.45; }
.ck-meta { display: flex; align-items: center; gap: 5px; font-size: 12px; line-height: 1.5; }
.ck-meta::before { content: ""; flex: none; width: 6px; height: 6px; border: 1px solid currentColor; border-radius: 50%; }
.ck-done .ck-meta::before { background: currentColor; }
.ck-trail {
  width: 36px;
  height: 36px;
  border: 1px solid var(--rule);
  border-radius: var(--r-sm);
  background: var(--paper);
}
.ck-cam { width: 19px; height: 19px; }
.ck-note {
  font-size: 14px;
  line-height: 1.5;
  padding: 12px 14px;
  border-inline-start: 3px solid var(--warn);
  background: var(--warn-bg);
  color: var(--text);
}
#checklist > .ck-note { max-width: 66ch; }
.ck-note + .ck-progress { margin-top: 12px; }
#captures { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 370px), 1fr)); }
.pill, .dataline, .sheet-what, .recorded-row .when, .recent-row .when, #returnHint, #camDoneLabel { font-size: 12px; }
.dataline { white-space: normal; overflow-wrap: anywhere; }
.pill.warn, .upload-summary:not(.ok) { color: color-mix(in srgb, var(--warn) 74%, var(--text)); }

/* Long guidance scrolls above the actions. An expanded file picker can scroll independently. */
#photoGuide {
  display: flex;
  flex-direction: column;
  padding: max(30px, env(safe-area-inset-top)) var(--edge) max(30px, env(safe-area-inset-bottom));
  background: rgba(0, 12, 46, .53);
  background: color-mix(in srgb, var(--dark) 53%, transparent);
}
.guide-paper {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  width: min(100%, 640px);
  max-height: 100%;
  margin: auto;
  border-radius: var(--r-lg);
  background: var(--panel);
  overflow: hidden;
  --guide-gutter: clamp(22px, 3.6vw, 42px);
}
.guide-reading, .guide-actions { display: block; overflow-y: auto; overscroll-behavior-y: contain; }
.guide-reading {
  flex: 1 1 auto;
  min-height: 0;
  padding: 16px var(--guide-gutter) 20px;
}
.guide-actions {
  flex: 0 0 auto;
  max-height: 50%;
  border-top: 1px solid var(--rule);
  padding: 14px var(--guide-gutter) 20px;
}
#photoGuideBack, #accessList { min-height: 44px; padding-inline: 4px; color: var(--navy); }
.pg-eyebrow { margin: 16px 0 8px; color: var(--muted); font-weight: 600; font-size: 13px; }
#photoGuideTitle { margin-bottom: 20px; font-size: clamp(28px, 3vw, 38px); letter-spacing: -.026em; }
.pg-words {
  border: 0;
  border-left: 3px solid var(--navy);
  border-radius: 0 6px 6px 0;
  padding: 15px 18px;
  background: var(--paper);
  line-height: 1.5;
}
.pg-words p { font-weight: 600; }
.pg-words li { margin-block: 4px; }
#photoGuideBody .ad-tags { margin-top: 14px; }
#photoGuideBody .ad-rule { display: grid; gap: 4px; }
#photoGuideBody .ad-rule li { font-weight: 500; }
#photoGuideBody .ad-rule li::before {
  content: "";
  width: 5px;
  height: 5px;
  margin: 0;
  border-radius: 50%;
  background: var(--navy);
}
#photoGuideBody .ad-src { color: var(--muted); }
#photoGuideCamera { margin-top: 0; min-height: 48px; }
.library-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.library-actions > * { grid-column: 1 / -1; margin: 0; }
.library-actions > :is([data-import-photo], [data-import-files]) { grid-column: auto; }
.library-actions [data-import-status]:empty { display: none; }
.library-button { border-color: var(--field-line); border-radius: var(--r-sm); font-size: 14px; }
.library-button:disabled { opacity: .6; cursor: wait; }

#accessScreen, #openingJob { padding-inline: max(var(--edge), calc((100% - 448px) / 2)); }
#accessScreen { gap: 14px; background: var(--paper); }
#accessTitle { font-size: clamp(32px, 4vw, 42px); }
.access-lead { font-size: 16px; line-height: 1.5; color: var(--muted); margin-bottom: 8px; }
.access-row { border: 1px solid var(--rule); border-radius: var(--r-md); }
.access-icon { color: var(--navy); background: var(--panel-2); border-radius: var(--r-sm); }
.access-text span { color: var(--muted); }
.access-row[data-good="true"] .access-icon { color: var(--ok); background: var(--ok-bg); }
#accessAllow, #accessRetry, #accessFinding { border-radius: var(--r-sm); }
#opDialog, #leaveGuard, #leaveReady { background: color-mix(in srgb, var(--dark) 53%, transparent); }
#opDialog form, #leaveGuard .guard, #leaveReady .guard { background: var(--panel); padding: 24px; }
#opTitle, #leaveTitle, #leaveReadyTitle { color: var(--dark); font-size: 24px; letter-spacing: -.015em; line-height: 1.15; text-transform: none; }
#opDialog button { padding: 12px 16px; min-height: 44px; border-radius: var(--r-sm); }
#opDialog form { max-height: calc(100dvh - 40px); overflow-y: auto; }
#accessList, #accessNote { font-size: 14px; }
#photoNotKeptMsg { max-width: 48ch; }
.opening-tile { padding: 26px; gap: 12px; border-radius: var(--r-md); }
body:not(.cam-open) #camSection { display: none; }
/* The iPhone feed sits beneath WKWebView, so this browser backdrop must not cover it. */
html:not(.iphone-preview) body.cam-open::after { content: ""; position: fixed; inset: 0; z-index: 90; background: var(--dark); }
body.cam-open main > :not(#camSection) { visibility: hidden; }
body.cam-open #camCount { min-height: 44px; }

@media (min-width: 840px) {
  body.cam-open header.top, body.cam-open .cam { max-width: var(--page); }
  body.cam-open #preview { object-fit: contain; }
  body.cam-open .cam-content { width: min(100%, 800px); margin-inline: auto; }
  .ck-item .ck-body:has(.ck-meta) { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: center; }
  .ck-body > * { grid-column: 1; }
  .ck-item .ck-body > .ck-meta { grid-column: 2; grid-row: 1 / span 3; align-self: center; max-width: 16ch; }
  main:has(#recentPanel:not([hidden])) { display: grid; align-items: start; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #recentPanel, #owedPanel, #eventsPanel, #errBanner { grid-column: 1 / -1; }
  #eventsForm { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  :root { --edge: clamp(14px, 4vw, 24px); }
  main { padding-top: 20px; gap: 18px; }
  body.landing main { max-width: 600px; padding-top: 22px; }
  #landing:not([hidden]) { grid-template-columns: minmax(0, 1fr); }
  #landing .entry-fields { padding: 24px; }
  .check-layout { display: block; }
  .check-overview { position: static; }
  .stage-index { display: none; }
  .check-stages { margin-top: 22px; }
  .ck-stage-title { font-size: 16px; }
  .ck-stage-name { display: block; }
  .ck-stage-status { display: block; margin-top: 2px; }
  .ck-progress { padding: 17px 18px; }
  .ck-count { margin: 5px 0 12px; }
  .ck-next { margin-top: 14px; min-height: 48px; }
  .ck-stage-toggle, .ck-item { padding: 12px 14px; }
}
@media (max-width: 560px) {
  body:not(.cam-open) header.top { gap: 4px 9px; min-height: 52px; }
  body:not(.cam-open) header.top .brand-art { height: 48px; }
  body:not(.cam-open) .product-name { min-height: 20px; padding-left: 10px; font-size: 15px; }
  body:not(.cam-open):has(#jobNumber:not(:empty)) .product-name { display: none; }
  body:not(.cam-open) .jobno { font-size: 12px; padding: 5px 8px; }
  body:not(.cam-open) #returnTop { font-size: 12px; padding: 5px 2px; }
  #listHead .list-titles { gap: 0 10px; }
  #listTitle { font-size: 28px; }
  #additionalPhotos { padding-inline: 10px; }
  #photoGuide { padding: 0; background: var(--panel); }
  .guide-paper {
    width: 100%;
    height: 100%;
    --guide-gutter: var(--edge);
    border-radius: 0;
  }
  .guide-reading { padding-top: max(10px, env(safe-area-inset-top)); }
  .guide-actions { padding-block: 12px max(16px, env(safe-area-inset-bottom)); }
  #eventsForm { flex-direction: column; }
  #eventsForm input { width: 100%; }
}
@media (max-width: 359px) {
  body:not(.cam-open) header.top { gap: 4px 6px; padding-inline: 10px; }
  body:not(.cam-open) header.top .brand-art { height: 40px; }
  #listHead:not([hidden]) { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "meta" "operator" "action"; }
  #operatorChip, #additionalPhotos { font-size: 13px; }
}
@media (hover: hover) and (pointer: fine) {
  :is(.ck-item, .ck-stage-toggle, .library-button, #additionalPhotos, #operatorChip):hover { background-color: var(--ink); }
  .ck-next:hover { background-color: color-mix(in srgb, var(--accent) 86%, var(--panel)); }
  .stage-index a:hover, #openAnotherJob:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; }
  :is(#jobOpenBtn, #photoGuideCamera, #accessAllow):hover:enabled { background-color: var(--navy-press); }
}
:is(.ck-item, .ck-stage-toggle, .library-button, #additionalPhotos, #operatorChip):active:enabled { background-color: var(--panel-2); }
.ck-next:active { background-color: color-mix(in srgb, var(--accent) 82%, var(--accent-ink)); }
:is(#jobOpenBtn, #photoGuideCamera, #accessAllow):active:enabled { background-color: var(--navy-press); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  :is(.ck-next, .ck-item, .ck-stage-toggle, .library-button, #additionalPhotos, #operatorChip, #jobOpenBtn, #photoGuideCamera, #accessAllow):hover:enabled:not(:focus-visible) {
    transition: background-color var(--press-duration) var(--ease-out);
  }
}
#returnCta { animation: none; }
#flash.go { animation: flashfade var(--capture-flash-duration) var(--ease-out); }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none; transition: none !important; scroll-behavior: auto !important; }
  #flash.go { animation: none; }
}
#jobOpenBtn[data-finding]::after, .opening-spin, #camStatus::before, #accessScreen .spin {
  animation: camspin var(--spinner-period) linear infinite;
}
