:root {
  color-scheme: dark;
  --bg: #060b12;
  --panel: rgba(12, 21, 32, 0.92);
  --panel-strong: #101b28;
  --panel-soft: #142234;
  --line: rgba(143, 173, 202, 0.16);
  --line-strong: rgba(143, 173, 202, 0.28);
  --text: #f2f7fb;
  --muted: #7f91a6;
  --muted-light: #a9b8c8;
  --teal: #17c8ae;
  --teal-soft: rgba(23, 200, 174, 0.14);
  --blue: #5a92ff;
  --amber: #ffb938;
  --amber-soft: rgba(255, 185, 56, 0.13);
  --red: #f56b68;
  --green: #35d38a;
  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-md: 12px;
  --shadow: 0 30px 70px rgba(0, 0, 0, 0.32);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 1180px;
  min-height: 100%;
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

body {
  overflow-x: auto;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  font-optical-sizing: auto;
  background:
    linear-gradient(rgba(98, 124, 150, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(98, 124, 150, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 45% -15%, rgba(21, 143, 161, 0.12), transparent 42%),
    #060b12;
  background-size: 40px 40px, 40px 40px, auto, auto;
}

button,
input,
textarea,
select {
  font: inherit;
}

button {
  color: inherit;
}

.ambient {
  position: fixed;
  z-index: 0;
  width: 440px;
  height: 440px;
  border-radius: 50%;
  filter: blur(120px);
  pointer-events: none;
}

.ambient-one {
  top: 8%;
  right: 2%;
  background: rgba(19, 122, 133, 0.08);
}

.ambient-two {
  bottom: -15%;
  left: 25%;
  background: rgba(45, 88, 145, 0.07);
}

.app-shell {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-rows: 76px minmax(760px, 1fr) 58px;
}

.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  background: rgba(8, 14, 22, 0.9);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 24px;
  bottom: -1px;
  left: 24px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(23, 200, 174, 0.55) 24%, rgba(56, 230, 255, 0.26) 58%, transparent);
  opacity: 0.75;
}

.brand-block,
.topbar-meta,
.stage-title,
.quality-pills,
.section-heading,
.section-heading > div,
.worker-card,
.dimension-top,
.dimension-name,
.action-heading,
.button-row,
.audit-title,
.audit-events {
  display: flex;
  align-items: center;
}

.brand-block {
  gap: 14px;
}

.back-link {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #7990a4;
  background: rgba(121, 144, 164, 0.05);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: 0.18s ease;
}

.back-link:hover {
  color: var(--teal);
  border-color: rgba(23, 200, 174, 0.34);
  background: rgba(23, 200, 174, 0.07);
}

.back-link svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: linear-gradient(145deg, rgba(23, 200, 174, 0.13), rgba(90, 146, 255, 0.08));
  border: 1px solid rgba(23, 200, 174, 0.26);
  border-radius: 12px;
  box-shadow: inset 0 0 18px rgba(23, 200, 174, 0.05);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.eyebrow {
  color: var(--teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  margin-bottom: 4px;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: 19px;
  font-weight: 650;
  letter-spacing: 0.04em;
}

.topbar-meta {
  gap: 22px;
}

.meta-item {
  display: grid;
  gap: 3px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.meta-item span,
.meta-item strong {
  font-size: 10px;
}

.meta-item span {
  color: var(--muted);
}

.meta-item strong {
  color: var(--muted-light);
  font-weight: 550;
}

.online-badge,
.status-pill,
.mini-label,
.lock-state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.online-badge {
  padding: 7px 10px;
  color: #83e7bd;
  background: rgba(53, 211, 138, 0.08);
  border: 1px solid rgba(53, 211, 138, 0.16);
  border-radius: 99px;
  font-size: 10px;
  font-weight: 600;
}

.online-badge i,
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--green);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(53, 211, 138, 0.85);
}

#clock {
  color: #a7b7c7;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(270px, 20%) minmax(540px, 1fr) minmax(360px, 28%);
  min-height: 0;
}

.panel,
.center-stage {
  min-width: 0;
}

.panel {
  background: linear-gradient(180deg, rgba(12, 20, 31, 0.96), rgba(8, 15, 24, 0.98));
}

.left-panel {
  border-right: 1px solid var(--line);
}

.right-panel {
  border-left: 1px solid var(--line);
  overflow: hidden;
}

.panel-section,
.decision-section,
.dimension-section,
.action-section {
  padding: 20px;
  border-bottom: 1px solid var(--line);
}

.section-heading {
  justify-content: space-between;
  margin-bottom: 16px;
}

.section-heading > div {
  gap: 9px;
}

.section-heading.compact {
  margin-bottom: 18px;
}

.section-index {
  color: var(--teal);
  font: 700 9px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
}

.section-index::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 1px;
  margin-left: 6px;
  vertical-align: middle;
  background: var(--teal);
  opacity: 0.55;
}

.section-heading h2 {
  font-size: 13px;
  font-weight: 650;
}

.status-pill {
  padding: 5px 8px;
  border-radius: 99px;
  font-size: 9px;
  font-weight: 650;
}

.status-success {
  color: #7fe2b5;
  background: rgba(53, 211, 138, 0.08);
  border: 1px solid rgba(53, 211, 138, 0.17);
}

.status-pill svg,
.verified-icon svg {
  width: 12px;
  height: 12px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.worker-card {
  position: relative;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(20, 34, 52, 0.86), rgba(13, 23, 36, 0.9));
  overflow: hidden;
}

.worker-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 2px;
  background: linear-gradient(var(--teal), var(--blue));
}

.avatar {
  flex: none;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: #7391ad;
  background: #101c2a;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
}

.avatar svg {
  width: 34px;
  height: 34px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
}

.worker-main {
  min-width: 0;
  flex: 1;
}

.worker-name {
  font-size: 14px;
  font-weight: 650;
  margin-bottom: 6px;
}

.worker-name span {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 5px;
  color: var(--muted-light);
  background: rgba(137, 160, 182, 0.1);
  border-radius: 4px;
  font-size: 8px;
  font-weight: 500;
}

.worker-id {
  color: var(--muted);
  font: 10px/1.2 "SFMono-Regular", Consolas, monospace;
}

.verified-icon {
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 50%;
}

.detail-list {
  margin: 13px 0 0;
}

.detail-list > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 2px;
  border-bottom: 1px dashed rgba(143, 173, 202, 0.12);
}

.detail-list > div:last-child {
  border-bottom: 0;
}

.detail-list dt,
.detail-list dd {
  margin: 0;
  font-size: 10px;
}

.detail-list dt {
  color: var(--muted);
}

.detail-list dd {
  color: #c7d3df;
  text-align: right;
}

.detail-list .ok-text {
  color: #79ddb0;
}

.mini-label {
  color: var(--muted);
  font-size: 9px;
}

.step-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr auto;
  gap: 10px;
  align-items: start;
  min-height: 62px;
}

.step-list li:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 26px;
  bottom: 2px;
  left: 11px;
  width: 1px;
  background: var(--line-strong);
}

.step-list li.done:not(:last-child)::after {
  background: linear-gradient(var(--teal), rgba(23, 200, 174, 0.2));
}

.step-dot {
  position: relative;
  z-index: 1;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  color: #6f8296;
  background: #101a27;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  font-size: 9px;
}

.step-dot svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

.step-list .done .step-dot {
  color: var(--teal);
  background: rgba(23, 200, 174, 0.09);
  border-color: rgba(23, 200, 174, 0.35);
}

.step-list .active .step-dot {
  color: #06110f;
  background: var(--teal);
  border-color: var(--teal);
  box-shadow: 0 0 0 5px rgba(23, 200, 174, 0.08), 0 0 20px rgba(23, 200, 174, 0.2);
}

.step-list strong,
.step-list small {
  display: block;
}

.step-list strong {
  color: #bac9d7;
  padding-top: 3px;
  font-size: 10px;
  font-weight: 550;
}

.step-list small,
.step-list time {
  color: #62758a;
  font-size: 8px;
}

.step-list small {
  margin-top: 4px;
}

.step-list time {
  padding-top: 4px;
  font-family: "SFMono-Regular", Consolas, monospace;
}

.step-list .active strong,
.step-list .active time {
  color: var(--teal);
}

.privacy-note {
  display: flex;
  gap: 11px;
  margin: 18px 20px;
  padding: 13px;
  color: #92a7ba;
  background: rgba(23, 200, 174, 0.04);
  border: 1px solid rgba(23, 200, 174, 0.12);
  border-radius: var(--radius-md);
}

.privacy-icon {
  flex: none;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: rgba(23, 200, 174, 0.09);
  border-radius: 8px;
}

.privacy-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.privacy-note strong {
  display: block;
  margin: 1px 0 5px;
  color: #bdd0dd;
  font-size: 9px;
}

.privacy-note p {
  color: #6f8294;
  font-size: 8px;
  line-height: 1.65;
}

.center-stage {
  display: grid;
  grid-template-rows: 48px minmax(570px, 1fr) 94px;
  background: #050a10;
}

.stage-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 17, 26, 0.86);
}

.stage-title {
  gap: 8px;
}

.stage-title strong {
  font-size: 10px;
  font-weight: 600;
}

.camera-label {
  margin-left: 3px;
  padding: 3px 5px;
  color: #75899e;
  background: rgba(125, 148, 171, 0.09);
  border-radius: 4px;
  font: 8px/1 "SFMono-Regular", Consolas, monospace;
}

.quality-pills {
  gap: 12px;
}

.quality-pills span {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #788da2;
  font-size: 8px;
}

.quality-pills i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.quality-pills .good {
  background: var(--teal);
  box-shadow: 0 0 6px rgba(23, 200, 174, 0.5);
}

.camera-view {
  position: relative;
  min-height: 570px;
  overflow: hidden;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 38%, rgba(35, 197, 201, 0.11), transparent 28%),
    radial-gradient(circle at 50% 40%, rgba(36, 87, 118, 0.2), transparent 58%),
    linear-gradient(145deg, #050c13, #09131d 46%, #04090f);
}

.camera-view::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.32;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 49.8%, rgba(23, 200, 174, 0.25) 50%, transparent 50.2%),
    linear-gradient(transparent 49.8%, rgba(23, 200, 174, 0.18) 50%, transparent 50.2%);
}

.camera-view::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  background: linear-gradient(transparent 50%, rgba(4, 9, 14, 0.12) 50%);
  background-size: 100% 4px;
  mix-blend-mode: soft-light;
}

.camera-grid {
  position: absolute;
  inset: 0;
  z-index: 3;
  opacity: 0.18;
  background-image:
    linear-gradient(rgba(111, 148, 169, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(111, 148, 169, 0.16) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at center, black, transparent 75%);
}

.portrait-backdrop {
  position: absolute;
  z-index: 0;
  inset: -14%;
  background: url("../img/high-risk/east-asian-worker-v2.png") center 39% / cover no-repeat;
  filter: blur(34px) brightness(0.31) saturate(0.72);
  opacity: 0.72;
  transform: scale(1.04);
}

.portrait-backdrop::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 42%, transparent 0 25%, rgba(3, 8, 13, 0.34) 58%, rgba(2, 6, 10, 0.85) 100%),
    linear-gradient(90deg, rgba(3, 9, 14, 0.82), transparent 32% 68%, rgba(3, 9, 14, 0.82));
}

.corner {
  position: absolute;
  z-index: 10;
  width: 20px;
  height: 20px;
  border-color: rgba(128, 163, 187, 0.6);
}

.corner-tl { top: 16px; left: 16px; border-top: 1px solid; border-left: 1px solid; }
.corner-tr { top: 16px; right: 16px; border-top: 1px solid; border-right: 1px solid; }
.corner-bl { bottom: 16px; left: 16px; border-bottom: 1px solid; border-left: 1px solid; }
.corner-br { bottom: 16px; right: 16px; border-bottom: 1px solid; border-right: 1px solid; }

.portrait-placeholder {
  position: absolute;
  z-index: 1;
  top: -1%;
  left: 50%;
  bottom: -2%;
  width: min(72%, 590px);
  transform: translateX(-50%);
  overflow: hidden;
  filter: drop-shadow(0 0 52px rgba(24, 188, 193, 0.13));
  mask-image: linear-gradient(to bottom, black 0 84%, transparent 100%);
}

.subject-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 40%;
  filter: brightness(0.74) contrast(1.08) saturate(0.76);
}

.portrait-tone {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(2, 8, 12, 0.42), transparent 28% 72%, rgba(2, 8, 12, 0.42)),
    linear-gradient(180deg, rgba(15, 57, 68, 0.1), transparent 40%, rgba(2, 8, 13, 0.26));
  mix-blend-mode: multiply;
  pointer-events: none;
}

.biometric-orbit {
  position: absolute;
  z-index: 4;
  left: 50%;
  border: 1px solid rgba(48, 225, 221, 0.14);
  border-radius: 50%;
  transform: translateX(-50%);
  pointer-events: none;
}

.orbit-one {
  top: 8%;
  width: min(59%, 470px);
  aspect-ratio: 1;
  animation: orbit-pulse 5s ease-in-out infinite;
}

.orbit-two {
  top: 16%;
  width: min(44%, 350px);
  aspect-ratio: 1;
  border-style: dashed;
  border-color: rgba(90, 146, 255, 0.16);
  animation: orbit-spin 24s linear infinite;
}

.biometric-orbit i {
  position: absolute;
  width: 5px;
  height: 5px;
  background: #55ebdc;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(85, 235, 220, 0.85);
}

.orbit-one i:nth-child(1) { top: 13%; left: 19%; }
.orbit-one i:nth-child(2) { top: 64%; right: -2px; }
.orbit-one i:nth-child(3) { bottom: 5%; left: 31%; }
.orbit-two i:nth-child(1) { top: -3px; left: 48%; background: #71a4ff; }
.orbit-two i:nth-child(2) { bottom: 15%; left: 3%; background: #71a4ff; }

@keyframes orbit-pulse {
  0%, 100% { opacity: 0.5; transform: translateX(-50%) scale(0.985); }
  50% { opacity: 0.95; transform: translateX(-50%) scale(1.015); }
}

@keyframes orbit-spin {
  to { transform: translateX(-50%) rotate(360deg); }
}

.pose-axis {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 48%;
  pointer-events: none;
}

.pose-axis-x {
  width: min(50%, 400px);
  height: 1px;
  transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(64, 230, 219, 0.25) 28%, rgba(64, 230, 219, 0.25) 72%, transparent);
}

.pose-axis-y {
  top: 18%;
  bottom: 15%;
  width: 1px;
  background: linear-gradient(transparent, rgba(64, 230, 219, 0.2) 24%, rgba(64, 230, 219, 0.2) 76%, transparent);
}

.pose-axis span {
  position: absolute;
  padding: 2px 4px;
  color: #54858c;
  background: rgba(4, 14, 20, 0.72);
  font: 6px/1 "SFMono-Regular", Consolas, monospace;
}

.pose-axis-x span { right: 0; top: -10px; }
.pose-axis-y span { top: 0; left: 5px; }

.face-frame {
  position: absolute;
  z-index: 5;
  top: 12%;
  bottom: 15%;
  left: 50%;
  width: min(39%, 318px);
  min-width: 240px;
  transform: translateX(-50%);
  border: 1px solid rgba(23, 200, 174, 0.24);
  border-radius: 48% 48% 43% 43% / 42% 42% 52% 52%;
  box-shadow: 0 0 80px rgba(23, 200, 174, 0.04);
}

.face-corner {
  position: absolute;
  width: 28px;
  height: 28px;
  border-color: var(--teal);
  filter: drop-shadow(0 0 6px rgba(23, 200, 174, 0.4));
}

.fc-tl { top: -4px; left: -4px; border-top: 2px solid; border-left: 2px solid; border-radius: 12px 0 0; }
.fc-tr { top: -4px; right: -4px; border-top: 2px solid; border-right: 2px solid; border-radius: 0 12px 0 0; }
.fc-bl { bottom: -4px; left: -4px; border-bottom: 2px solid; border-left: 2px solid; border-radius: 0 0 0 12px; }
.fc-br { bottom: -4px; right: -4px; border-bottom: 2px solid; border-right: 2px solid; border-radius: 0 0 12px; }

.landmarks i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: 3px;
  height: 3px;
  border: 1px solid rgba(89, 230, 213, 0.8);
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(23, 200, 174, 0.55);
}

.scan-line {
  position: absolute;
  left: 3%;
  right: 3%;
  top: 14%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--teal), transparent);
  box-shadow: 0 0 18px rgba(23, 200, 174, 0.7);
  animation: scan 4s ease-in-out infinite;
}

@keyframes scan {
  0%, 100% { top: 14%; opacity: 0.3; }
  50% { top: 84%; opacity: 1; }
}

.face-label {
  position: absolute;
  top: -24px;
  left: 0;
  padding: 4px 6px;
  color: #71e2d3;
  background: rgba(4, 18, 22, 0.78);
  border: 1px solid rgba(23, 200, 174, 0.24);
  border-radius: 4px;
  font: 8px/1 "SFMono-Regular", Consolas, monospace;
}

.frame-confidence {
  position: absolute;
  right: 0;
  bottom: -22px;
  color: #559ba0;
  font: 7px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.06em;
}

.capture-instruction {
  position: absolute;
  z-index: 12;
  top: 20px;
  left: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  background: rgba(7, 15, 23, 0.74);
  border: 1px solid rgba(143, 173, 202, 0.16);
  border-radius: 10px;
  backdrop-filter: blur(12px);
}

.instruction-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: var(--teal);
  background: var(--teal-soft);
  border-radius: 8px;
}

.instruction-icon svg {
  width: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

.capture-instruction strong,
.capture-instruction span {
  display: block;
}

.capture-instruction strong {
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 600;
}

.capture-instruction span {
  color: #72869a;
  font-size: 8px;
}

.capture-progress {
  position: absolute;
  z-index: 12;
  left: 20px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 13px 10px 10px;
  background: rgba(7, 15, 23, 0.76);
  border: 1px solid rgba(23, 200, 174, 0.16);
  border-radius: 12px;
  backdrop-filter: blur(12px);
}

.progress-ring {
  --progress: 80;
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-content: center;
  text-align: center;
  border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--progress) * 1%), rgba(116, 144, 166, 0.13) 0);
}

.progress-ring::before {
  content: "";
  position: absolute;
  inset: 4px;
  background: #0b1620;
  border-radius: 50%;
}

.progress-ring span,
.progress-ring small {
  position: relative;
  z-index: 1;
}

.progress-ring span {
  font: 700 15px/1 "SFMono-Regular", Consolas, monospace;
}

.progress-ring small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 7px;
}

.progress-copy strong,
.progress-copy span {
  display: block;
}

.progress-copy strong {
  margin-bottom: 5px;
  font-size: 9px;
  font-weight: 600;
}

.progress-copy span {
  color: #6d8295;
  font-size: 8px;
}

.camera-timecode,
.demo-watermark {
  position: absolute;
  z-index: 12;
  right: 20px;
  color: #607589;
  font: 8px/1 "SFMono-Regular", Consolas, monospace;
}

.camera-timecode {
  top: 22px;
}

.camera-timecode::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 5px;
  background: #f15e5b;
  border-radius: 50%;
}

.demo-watermark {
  bottom: 22px;
  color: #74899c;
}

.signal-strip {
  display: grid;
  grid-template-columns: 105px minmax(120px, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: rgba(9, 16, 24, 0.94);
  border-top: 1px solid var(--line);
}

.signal-heading span,
.signal-heading strong {
  display: block;
}

.signal-heading span {
  margin-bottom: 5px;
  color: #73879a;
  font-size: 8px;
}

.signal-heading strong {
  color: var(--teal);
  font-size: 10px;
  font-weight: 600;
}

.signal-wave {
  height: 52px;
  background:
    linear-gradient(rgba(105, 136, 157, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(105, 136, 157, 0.08) 1px, transparent 1px);
  background-size: 20px 13px;
  border-left: 1px solid rgba(143, 173, 202, 0.12);
  border-right: 1px solid rgba(143, 173, 202, 0.12);
}

.signal-wave svg {
  width: 100%;
  height: 100%;
}

.signal-metrics {
  display: grid;
  gap: 7px;
  min-width: 88px;
}

.signal-metrics span {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #62788d;
  font-size: 8px;
}

.signal-metrics b {
  color: #a6b7c6;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-weight: 500;
}

.ghost-button {
  padding: 5px 8px;
  color: #74889a;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 8px;
  transition: 0.2s ease;
}

.ghost-button:hover {
  color: var(--teal);
  border-color: rgba(23, 200, 174, 0.35);
}

.decision-card {
  position: relative;
  display: grid;
  grid-template-columns: 54px 1fr auto;
  gap: 12px;
  align-items: center;
  min-height: 102px;
  padding: 14px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.decision-card.review {
  background: linear-gradient(135deg, rgba(255, 185, 56, 0.11), rgba(245, 107, 104, 0.055));
  border: 1px solid rgba(255, 185, 56, 0.3);
}

.decision-card.low {
  background: linear-gradient(135deg, rgba(53, 211, 138, 0.11), rgba(23, 200, 174, 0.055));
  border: 1px solid rgba(53, 211, 138, 0.28);
}

.decision-halo {
  position: absolute;
  width: 100px;
  height: 100px;
  left: -28px;
  top: -28px;
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0.2;
  background: var(--amber);
}

.decision-card.low .decision-halo {
  background: var(--green);
}

.decision-icon {
  position: relative;
  z-index: 1;
  width: 50px;
  height: 50px;
  display: grid;
  place-items: center;
  color: var(--amber);
  background: rgba(255, 185, 56, 0.08);
  border: 1px solid rgba(255, 185, 56, 0.18);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(255, 185, 56, 0.1);
}

.decision-card.low .decision-icon {
  color: var(--green);
  background: rgba(53, 211, 138, 0.08);
  border-color: rgba(53, 211, 138, 0.18);
  box-shadow: 0 0 25px rgba(53, 211, 138, 0.1);
}

.decision-icon svg {
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.decision-copy {
  position: relative;
  z-index: 1;
}

.decision-copy > span {
  display: block;
  margin-bottom: 5px;
  color: #a28a5e;
  font-size: 8px;
  letter-spacing: 0.09em;
}

.decision-card.low .decision-copy > span {
  color: #70ad91;
}

.decision-copy h3 {
  margin-bottom: 6px;
  color: #ffc95e;
  font-size: 15px;
  font-weight: 650;
}

.decision-card.low .decision-copy h3 {
  color: #72e5ae;
}

.decision-copy p {
  max-width: 290px;
  color: #8e9eae;
  font-size: 9px;
  line-height: 1.55;
}

.decision-code {
  align-self: start;
  color: rgba(255, 185, 56, 0.32);
  font: 700 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.12em;
}

.decision-card.low .decision-code {
  color: rgba(53, 211, 138, 0.4);
}

.dimension-section {
  padding-top: 17px;
  padding-bottom: 17px;
}

.section-subheading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 12px;
}

.section-subheading h3,
.action-heading h3 {
  font-size: 11px;
  font-weight: 620;
}

.section-subheading span {
  color: #607488;
  font-size: 8px;
}

.dimension-list {
  display: grid;
  gap: 8px;
}

.dimension-card {
  padding: 11px 12px;
  background: rgba(20, 34, 52, 0.48);
  border: 1px solid rgba(143, 173, 202, 0.1);
  border-radius: 10px;
}

.dimension-top {
  justify-content: space-between;
  gap: 10px;
}

.dimension-name {
  min-width: 0;
  gap: 9px;
}

.dimension-icon {
  flex: none;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 8px;
}

.dimension-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.fatigue-icon { color: var(--amber); background: rgba(255, 185, 56, 0.08); }
.emotion-icon { color: #9e83fa; background: rgba(158, 131, 250, 0.08); }
.physiology-icon { color: #ef7472; background: rgba(239, 116, 114, 0.08); }

.dimension-name strong,
.dimension-name small {
  display: block;
}

.dimension-name strong {
  margin-bottom: 3px;
  color: #b9c8d6;
  font-size: 9px;
  font-weight: 600;
}

.dimension-name small {
  color: #5f7387;
  font-size: 7px;
}

.dimension-value {
  display: flex;
  align-items: baseline;
  gap: 5px;
  text-align: right;
}

.dimension-value b {
  color: #f2bd52;
  font: 650 16px/1 "SFMono-Regular", Consolas, monospace;
}

.dimension-value span {
  color: #917d55;
  font-size: 7px;
}

.dimension-card.is-low .dimension-value b {
  color: var(--green);
}

.dimension-card.is-low .dimension-value span {
  color: #649c82;
}

.risk-track {
  position: relative;
  height: 3px;
  margin: 10px 0 8px;
  background: rgba(129, 153, 176, 0.13);
  border-radius: 99px;
}

.risk-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #45b58c, var(--amber), var(--red));
  border-radius: inherit;
  transition: width 0.5s ease;
}

.threshold {
  position: absolute;
  top: -2px;
  left: 60%;
  width: 1px;
  height: 7px;
  background: rgba(255, 255, 255, 0.34);
}

.dimension-card p {
  color: #71869a;
  font-size: 7.5px;
  line-height: 1.5;
}

.action-section {
  background: linear-gradient(180deg, rgba(255, 185, 56, 0.018), transparent);
}

.action-heading {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 11px;
}

.action-tag {
  display: block;
  margin-bottom: 4px;
  color: var(--amber);
  font-size: 7px;
  letter-spacing: 0.1em;
}

.lock-state {
  color: #dfaa4a;
  font-size: 8px;
}

.lock-state i {
  width: 6px;
  height: 6px;
  background: var(--amber);
  border-radius: 50%;
  box-shadow: 0 0 8px rgba(255, 185, 56, 0.6);
}

.action-list {
  display: grid;
  gap: 7px;
  margin: 0 0 13px;
  padding: 0;
  list-style: none;
}

.action-list li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #8396a8;
  font-size: 8px;
  line-height: 1.5;
}

.action-list li > span {
  flex: none;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  color: #b89045;
  border: 1px solid rgba(255, 185, 56, 0.18);
  border-radius: 50%;
  font: 7px/1 "SFMono-Regular", Consolas, monospace;
}

.button-row {
  gap: 8px;
}

.primary-button,
.secondary-button {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 600;
  transition: transform 0.16s ease, filter 0.16s ease, border-color 0.16s ease;
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.primary-button {
  flex: 1;
  color: #07130f;
  background: linear-gradient(135deg, #27d4ba, #4cd19a);
  border: 0;
  box-shadow: 0 8px 22px rgba(23, 200, 174, 0.14);
}

.secondary-button {
  color: #8fa2b3;
  background: rgba(122, 150, 174, 0.04);
  border: 1px solid var(--line-strong);
  padding: 0 12px;
}

.primary-button svg,
.secondary-button svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compliance-line {
  margin: 12px 20px 18px;
  padding-left: 9px;
  color: #53687c;
  border-left: 2px solid rgba(23, 200, 174, 0.24);
  font-size: 7.5px;
  line-height: 1.55;
}

.audit-bar {
  display: grid;
  grid-template-columns: 270px 1fr auto;
  align-items: center;
  padding: 0 22px;
  background: #080e16;
  border-top: 1px solid var(--line);
}

.audit-title {
  gap: 9px;
}

.audit-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  color: #6f879a;
  background: rgba(107, 138, 162, 0.08);
  border-radius: 7px;
}

.audit-icon svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}

.audit-title strong,
.audit-title small {
  display: block;
}

.audit-title strong {
  margin-bottom: 3px;
  color: #9aabba;
  font-size: 9px;
  font-weight: 600;
}

.audit-title small {
  color: #526579;
  font: 7px/1 "SFMono-Regular", Consolas, monospace;
}

.audit-events {
  justify-content: center;
  gap: 30px;
}

.audit-events span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #66798d;
  font-size: 8px;
}

.audit-events i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

.audit-events .done {
  background: var(--teal);
}

.audit-events .current {
  background: var(--amber);
  box-shadow: 0 0 8px rgba(255, 185, 56, 0.55);
}

.audit-footer {
  color: #46596b;
  font-size: 7px;
}

.review-dialog {
  width: min(620px, calc(100vw - 40px));
  padding: 0;
  color: var(--text);
  background: #0d1722;
  border: 1px solid rgba(143, 173, 202, 0.22);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.review-dialog::backdrop {
  background: rgba(1, 5, 9, 0.78);
  backdrop-filter: blur(5px);
}

.review-dialog form {
  padding: 22px;
}

.dialog-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
}

.dialog-header span {
  display: block;
  margin-bottom: 5px;
  color: var(--teal);
  font: 8px/1 "SFMono-Regular", Consolas, monospace;
  letter-spacing: 0.14em;
}

.dialog-header h2 {
  font-size: 18px;
  font-weight: 650;
}

.dialog-close {
  width: 30px;
  height: 30px;
  color: #71869a;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  font-size: 19px;
  line-height: 1;
}

.dialog-risk-summary {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
  padding: 12px;
  background: rgba(255, 185, 56, 0.08);
  border: 1px solid rgba(255, 185, 56, 0.17);
  border-radius: 11px;
}

.warning-symbol {
  flex: none;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: var(--amber);
  border: 1px solid rgba(255, 185, 56, 0.34);
  border-radius: 50%;
  font-weight: 700;
}

.dialog-risk-summary strong {
  display: block;
  margin-bottom: 4px;
  color: #e5bd6e;
  font-size: 10px;
}

.dialog-risk-summary p {
  color: #8b9baa;
  font-size: 8px;
}

.review-dialog fieldset {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
}

.review-dialog legend {
  padding: 0 6px;
  color: #7f93a6;
  font-size: 9px;
}

.review-dialog fieldset label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #a6b5c2;
  font-size: 9px;
}

.review-dialog input[type="checkbox"] {
  accent-color: var(--teal);
}

.form-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 12px;
  margin-bottom: 14px;
}

.form-grid label,
.notes-label {
  display: grid;
  gap: 6px;
  color: #7b8fa2;
  font-size: 8px;
}

.review-dialog input[type="text"],
.review-dialog select,
.review-dialog textarea {
  width: 100%;
  color: #d2dde5;
  background: #0a131d;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  outline: none;
}

.review-dialog input[type="text"],
.review-dialog select {
  height: 36px;
  padding: 0 10px;
}

.review-dialog textarea {
  min-height: 78px;
  padding: 9px 10px;
  resize: vertical;
  line-height: 1.5;
}

.review-dialog input:focus,
.review-dialog select:focus,
.review-dialog textarea:focus {
  border-color: rgba(23, 200, 174, 0.52);
  box-shadow: 0 0 0 3px rgba(23, 200, 174, 0.07);
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 18px;
}

.dialog-actions .primary-button,
.dialog-actions .secondary-button {
  flex: none;
  min-width: 130px;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  min-width: 240px;
  padding: 12px 14px;
  color: #cbd9e3;
  background: rgba(13, 23, 34, 0.96);
  border: 1px solid rgba(23, 200, 174, 0.3);
  border-radius: 10px;
  box-shadow: var(--shadow);
  transform: translateY(20px);
  opacity: 0;
  pointer-events: none;
  transition: 0.24s ease;
  font-size: 9px;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

/* Typography refinement: readable at common control-room viewing distances. */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.16em;
}

h1 {
  font-size: 20px;
  font-weight: 680;
}

.meta-item span,
.meta-item strong,
.online-badge {
  font-size: 11px;
}

.section-index {
  font-size: 10px;
}

.section-heading h2 {
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0.015em;
}

.status-pill,
.mini-label {
  font-size: 10px;
}

.worker-name {
  font-size: 15px;
}

.worker-name span {
  font-size: 9px;
}

.worker-id {
  font-size: 11px;
}

.detail-list dt,
.detail-list dd {
  font-size: 11px;
  line-height: 1.45;
}

.step-dot {
  font-size: 10px;
}

.step-list strong {
  font-size: 11px;
  font-weight: 600;
}

.step-list small,
.step-list time {
  color: #74879b;
  font-size: 9px;
  line-height: 1.45;
}

.privacy-note strong {
  font-size: 10px;
}

.privacy-note p {
  color: #8092a3;
  font-size: 9px;
  line-height: 1.7;
}

.stage-title strong {
  font-size: 11px;
}

.camera-label,
.quality-pills span {
  font-size: 9px;
}

.pose-axis span {
  font-size: 8px;
}

.face-label {
  font-size: 9px;
}

.frame-confidence {
  font-size: 8px;
}

.capture-instruction strong {
  font-size: 11px;
  line-height: 1.35;
}

.capture-instruction span {
  font-size: 9px;
  line-height: 1.45;
}

.progress-ring small {
  font-size: 8px;
}

.progress-copy strong {
  font-size: 10px;
}

.progress-copy span,
.camera-timecode,
.demo-watermark {
  font-size: 9px;
}

.signal-heading span,
.signal-metrics span {
  font-size: 9px;
}

.signal-heading strong {
  font-size: 11px;
}

.ghost-button {
  font-size: 9px;
}

.decision-card {
  min-height: 112px;
  padding: 16px;
}

.decision-copy > span {
  font-size: 9px;
}

.decision-copy h3 {
  font-size: 16px;
  font-weight: 680;
  letter-spacing: 0.01em;
}

.decision-copy p {
  max-width: 310px;
  color: #a5b3c0;
  font-size: 11px;
  line-height: 1.65;
}

.decision-code {
  font-size: 9px;
}

.section-subheading h3,
.action-heading h3 {
  font-size: 12px;
  font-weight: 650;
}

.section-subheading span {
  font-size: 9px;
}

.dimension-card {
  padding: 12px 13px;
}

.dimension-name strong {
  font-size: 11px;
  font-weight: 650;
}

.dimension-name small {
  color: #71859a;
  font-size: 9px;
  line-height: 1.35;
}

.dimension-value b {
  font-size: 18px;
}

.dimension-value span {
  font-size: 9px;
}

.dimension-card p {
  color: #8596a7;
  font-size: 9px;
  line-height: 1.55;
}

.action-tag,
.lock-state {
  font-size: 9px;
}

.action-list li {
  color: #93a4b4;
  font-size: 9px;
  line-height: 1.6;
}

.action-list li > span {
  font-size: 8px;
}

.primary-button,
.secondary-button {
  min-height: 36px;
  font-size: 10px;
}

.compliance-line {
  color: #718497;
  font-size: 9px;
  line-height: 1.65;
}

.audit-title strong {
  font-size: 10px;
}

.audit-title small,
.audit-footer {
  font-size: 8px;
}

.audit-events span {
  font-size: 9px;
}

.dialog-header span {
  font-size: 9px;
}

.dialog-risk-summary strong {
  font-size: 11px;
}

.dialog-risk-summary p,
.review-dialog legend,
.review-dialog fieldset label,
.form-grid label,
.notes-label {
  font-size: 10px;
  line-height: 1.5;
}

.review-dialog input[type="text"],
.review-dialog select,
.review-dialog textarea {
  font-size: 11px;
}

.toast {
  font-size: 10px;
}

@media (max-width: 1360px) {
  .workspace {
    grid-template-columns: 270px minmax(500px, 1fr) 380px;
  }

  .quality-pills span:nth-child(2) {
    display: none;
  }
}

@media (min-width: 1720px) {
  .workspace {
    grid-template-columns: 340px minmax(720px, 1fr) 480px;
  }

  .panel-section,
  .decision-section,
  .dimension-section,
  .action-section {
    padding-left: 24px;
    padding-right: 24px;
  }

  .decision-copy p {
    max-width: 350px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
  }
}

