body {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(99, 102, 241, 0.10), transparent 24%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.10), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, #eef4ff 100%);
  color: #0f172a;
}

video.cam-preview {
  width: 100%;
  max-width: 640px;
  border-radius: 16px;
  border: 1px solid #d1d5db;
  background: #111827;
}

.card-soft {
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
}

.small-muted { color: #64748b; font-size: .93rem; }
.challenge-badge { background: #eff6ff; color: #1d4ed8; border:1px solid #bfdbfe; border-radius: 999px; padding: .25rem .6rem; margin-right: .25rem; display: inline-block; }
.codebox { font-family: Consolas, monospace; background: #f8fafc; border: 1px solid #e5e7eb; border-radius: 12px; padding: .75rem; }

.kiosk-register-shell { max-width: 1440px; margin: 0 auto; padding: 1.25rem 0 2rem; }
.kiosk-hero { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.2rem 1.4rem; margin-bottom: 1rem; flex-wrap: wrap; }
.kiosk-hero-title { font-size: 2rem; font-weight: 800; }
.kiosk-hero-subtitle { max-width: 840px; }
.wizard-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: #4f46e5; font-weight: 800; }
.kiosk-id-pill { background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%); border: 1px solid #dbeafe; border-radius: 18px; padding: .9rem 1rem; min-width: 260px; }

.wizard-progress { display: grid; gap: .85rem; }
.wizard-progress-polished { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 1rem; }
.wizard-progress-item { display: flex; align-items: center; gap: .85rem; padding: 1rem 1.1rem; border: 1px solid #e2e8f0; border-radius: 20px; background: rgba(255,255,255,.95); }
.wizard-progress-item.active { border-color: #93c5fd; background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%); }
.wizard-progress-item.done { border-color: #86efac; background: linear-gradient(180deg, #f7fff8 0%, #f0fdf4 100%); }
.wizard-progress-dot { width: 2.25rem; height: 2.25rem; border-radius: 999px; display: flex; align-items: center; justify-content: center; font-weight: 800; background: #e5e7eb; color: #0f172a; flex-shrink: 0; }
.wizard-progress-item.active .wizard-progress-dot { background: #2563eb; color: #fff; }
.wizard-progress-item.done .wizard-progress-dot { background: #16a34a; color: #fff; }
.wizard-progress-title { font-weight: 800; }
.wizard-progress-subtitle { font-size: .85rem; color: #64748b; }

.preview-stage { padding: 1rem; display: flex; flex-direction: column; gap: 1rem; }
.preview-stage-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.preview-stage-label { font-size: .9rem; font-weight: 800; color: #0f172a; }
.preview-stage-status { display: inline-flex; align-items: center; border-radius: 999px; padding: .45rem .8rem; background: #ecfeff; color: #0f766e; border: 1px solid #99f6e4; font-weight: 700; }
.preview-stage-status.busy { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.preview-video-frame {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  padding: .5rem;
  background: linear-gradient(180deg, #0f172a 0%, #111827 100%);
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.06);
}
.video.cam-preview, .wizard-video { width: 100%; max-width: 100%; min-height: 520px; object-fit: cover; border: none; border-radius: 22px; }
.pose-overlay-card {
  position: absolute;
  left: 1.1rem;
  right: 1.1rem;
  bottom: 1.1rem;
  color: #fff;
  background: linear-gradient(180deg, rgba(15,23,42,.38) 0%, rgba(15,23,42,.84) 100%);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  padding: 1rem 1.1rem;
  backdrop-filter: blur(8px);
}
.pose-overlay-header { display: flex; gap: .9rem; align-items: flex-start; }
.pose-icon {
  width: 3rem; height: 3rem; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.14); font-size: 1.45rem; font-weight: 800; flex-shrink: 0;
}
.pose-overlay-title { font-weight: 800; font-size: 1.12rem; }
.pose-overlay-hint { color: rgba(255,255,255,.86); margin-top: .12rem; }
.pose-overlay-note { color: #93c5fd; margin-top: .5rem; font-size: .92rem; }
.preview-stage-footer { display: flex; gap: .75rem; flex-wrap: wrap; }
.metric-chip { display: inline-flex; align-items: center; justify-content: space-between; gap: .7rem; min-width: 140px; border-radius: 18px; padding: .75rem .95rem; background: #f8fafc; border: 1px solid #e2e8f0; }
.metric-chip span { color: #64748b; font-size: .83rem; }
.metric-chip strong { font-size: 1rem; }

.wizard-panel { display: flex; flex-direction: column; overflow: hidden; }
.wizard-panel-body { padding: 1.35rem 1.35rem 0; }
.wizard-panel-title { font-size: 1.55rem; font-weight: 800; }
.wizard-panel-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1.25rem 1.35rem 1.35rem; margin-top: auto; flex-wrap: wrap; }
.wizard-panel-actions-stackable { align-items: flex-end; }
.wizard-panel-actions-after-success { padding-inline: 1.35rem; }
.wizard-step-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: .78rem; font-weight: 800; }
.wizard-label { font-weight: 700; color: #334155; }
.touch-input { min-height: 52px; border-radius: 16px; border-color: #dbe1ea; }
.info-panel { border: 1px solid #dbeafe; background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%); border-radius: 22px; padding: 1rem 1.05rem; }
.info-panel-title { font-weight: 800; color: #1e3a8a; margin-bottom: .75rem; }
.info-checklist { display: grid; gap: .65rem; }
.info-check-item { display: flex; align-items: flex-start; gap: .65rem; color: #334155; }
.info-check-item span:first-child { color: #16a34a; font-weight: 800; }

.wizard-counter { min-width: 68px; text-align: center; padding: .55rem .8rem; border-radius: 14px; background: #f3f4f6; font-weight: 800; }
.wizard-counter-large { min-width: 78px; font-size: 1rem; padding: .75rem .95rem; border-radius: 18px; }
.pose-card-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.pose-card {
  border: 1px solid #e2e8f0; background: #fff; border-radius: 22px; padding: 1rem .95rem;
  display: flex; flex-direction: column; gap: .25rem; min-height: 152px;
}
.pose-card.active { border-color: #93c5fd; background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%); box-shadow: 0 8px 20px rgba(37,99,235,.12); }
.pose-card.done { border-color: #86efac; background: linear-gradient(180deg, #f7fff8 0%, #f0fdf4 100%); }
.pose-card-icon {
  width: 2.8rem; height: 2.8rem; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center;
  background: #eef2ff; color: #3730a3; font-size: 1.45rem; font-weight: 800; margin-bottom: .35rem;
}
.pose-card.active .pose-card-icon { background: #2563eb; color: #fff; }
.pose-card.done .pose-card-icon { background: #16a34a; color: #fff; }
.pose-card-title { font-weight: 800; font-size: 1rem; }
.pose-card-caption { color: #64748b; font-size: .88rem; }
.pose-card-state { margin-top: auto; font-size: .82rem; font-weight: 700; color: #475569; }
.current-step-panel { border-radius: 22px; padding: 1rem 1.05rem; background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; }
.current-step-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; color: #93c5fd; font-weight: 800; margin-bottom: .5rem; }
.current-step-title { font-size: 1.18rem; font-weight: 800; margin-bottom: .25rem; }
.current-step-text { color: rgba(255,255,255,.88); }
.current-step-note { color: #93c5fd; margin-top: .55rem; font-size: .92rem; }
.mini-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.mini-summary-item { border-radius: 16px; padding: .8rem .9rem; background: #f8fafc; border: 1px solid #e2e8f0; display: flex; justify-content: space-between; gap: .75rem; }
.mini-summary-item.done { background: #f0fdf4; border-color: #bbf7d0; }
.mini-summary-item span { color: #475569; font-size: .88rem; }

.review-grid { display: grid; gap: .75rem; }
.review-grid-polished { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.review-item { border: 1px solid #e2e8f0; background: #fff; border-radius: 20px; padding: 1rem 1rem; }
.review-label { display: block; color: #64748b; font-size: .82rem; margin-bottom: .3rem; }
.review-pose-list { display: grid; gap: .75rem; }
.review-pose-row { border: 1px solid #e2e8f0; border-radius: 20px; padding: .95rem 1rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #fff; }
.review-pose-row.done { background: #f0fdf4; border-color: #bbf7d0; }
.review-pose-main { display: flex; align-items: center; gap: .85rem; }
.review-pose-glyph { width: 2.7rem; height: 2.7rem; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #3730a3; font-size: 1.3rem; font-weight: 800; }
.review-pose-row.done .review-pose-glyph { background: #16a34a; color: #fff; }
.review-pose-title { font-weight: 800; }
.review-pose-subtitle { color: #64748b; font-size: .88rem; }
.review-pose-meta { font-weight: 700; color: #334155; white-space: nowrap; }

.btn-touch { min-height: 50px; padding: .75rem 1.15rem; border-radius: 16px; font-weight: 700; }
.btn-capture { min-width: 168px; box-shadow: 0 10px 24px rgba(37,99,235,.18); }
.btn-submit { min-width: 220px; box-shadow: 0 12px 28px rgba(22,163,74,.18); }

@media (max-width: 1199.98px) {
  .preview-video-frame { min-height: 420px; }
  .video.cam-preview, .wizard-video { min-height: 380px; }
}

@media (max-width: 991.98px) {
  .wizard-progress-polished { grid-template-columns: 1fr; }
  .kiosk-hero-title { font-size: 1.7rem; }
  .preview-video-frame { min-height: 360px; }
  .video.cam-preview, .wizard-video { min-height: 320px; }
}

@media (max-width: 767.98px) {
  .kiosk-register-shell { padding-top: .75rem; }
  .kiosk-hero, .wizard-panel-body, .wizard-panel-actions { padding-left: 1rem; padding-right: 1rem; }
  .pose-card-grid, .review-grid-polished, .mini-summary-grid { grid-template-columns: 1fr; }
  .review-pose-row, .wizard-panel-actions { flex-direction: column; align-items: stretch; }
  .kiosk-id-pill { width: 100%; }
  .pose-overlay-card { left: .75rem; right: .75rem; bottom: .75rem; }
  .metric-chip { min-width: calc(50% - .4rem); }
}

/* Simplified kiosk registration wizard */
.register-wizard-shell { max-width: 1220px; margin: 0 auto; padding: 1.25rem 0 2rem; }
.register-wizard-card { padding: 1.25rem; }
.register-wizard-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.register-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .75rem; color: #4f46e5; font-weight: 800; }
.register-title { margin: .25rem 0; font-size: 2rem; font-weight: 800; }
.register-subtitle { max-width: 760px; }
.register-kiosk-id { min-width: 260px; padding: .85rem 1rem; border: 1px solid #dbeafe; border-radius: 18px; background: linear-gradient(180deg, #f8fbff 0%, #eff6ff 100%); }

.register-stepper { display: flex; gap: .75rem; flex-wrap: wrap; margin-top: 1rem; }
.register-step { display: inline-flex; align-items: center; gap: .65rem; padding: .75rem 1rem; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; font-weight: 700; color: #475569; }
.register-step.active { border-color: #93c5fd; background: #eff6ff; color: #1d4ed8; }
.register-step.done { border-color: #86efac; background: #f0fdf4; color: #166534; }
.register-step-dot { width: 2rem; height: 2rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: #e5e7eb; color: #111827; font-weight: 800; }
.register-step.active .register-step-dot { background: #2563eb; color: #fff; }
.register-step.done .register-step-dot { background: #16a34a; color: #fff; }

.register-stage { margin-top: 1.25rem; }
.register-stage-narrow { max-width: 760px; }
.wizard-mini-badge { display: inline-flex; align-items: center; padding: .38rem .75rem; border-radius: 999px; background: #eef2ff; color: #4338ca; font-size: .78rem; font-weight: 800; }
.stage-title { margin-top: .85rem; font-size: 1.6rem; font-weight: 800; }
.simple-tip-box { padding: 1rem 1.05rem; border-radius: 22px; border: 1px solid #dbeafe; background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%); }
.simple-tip-title { font-weight: 800; color: #1e3a8a; margin-bottom: .6rem; }
.simple-tip-list { padding-left: 1.2rem; color: #334155; }
.simple-tip-list li + li { margin-top: .35rem; }

.capture-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(320px, .8fr); gap: 1rem; align-items: stretch; }
.capture-camera, .capture-side { padding: 1rem; }
.capture-topbar { display: flex; justify-content: space-between; align-items: flex-start; gap: .75rem; flex-wrap: wrap; }
.capture-status { padding: .45rem .8rem; border-radius: 999px; background: #ecfeff; color: #0f766e; border: 1px solid #99f6e4; font-weight: 700; }
.capture-status.busy { background: #eff6ff; color: #1d4ed8; border-color: #bfdbfe; }
.capture-video-frame { position: relative; margin-top: 1rem; overflow: hidden; border-radius: 24px; background: linear-gradient(180deg, #0f172a 0%, #111827 100%); min-height: 520px; display: flex; align-items: center; justify-content: center; padding: .5rem; }
.capture-video { width: 100%; height: 100%; min-height: 500px; object-fit: cover; border-radius: 18px; display: block; }
.capture-overlay { position: absolute; left: 1rem; right: 1rem; bottom: 1rem; display: flex; gap: .9rem; align-items: center; padding: .9rem 1rem; border-radius: 20px; color: #fff; background: linear-gradient(180deg, rgba(15,23,42,.34) 0%, rgba(15,23,42,.84) 100%); border: 1px solid rgba(255,255,255,.08); backdrop-filter: blur(8px); }
.capture-overlay-icon { width: 3rem; height: 3rem; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); font-size: 1.45rem; font-weight: 800; flex-shrink: 0; }
.capture-overlay-title { font-size: 1.1rem; font-weight: 800; }
.capture-overlay-text { color: rgba(255,255,255,.9); }

.capture-side-header { display: flex; justify-content: space-between; align-items: center; gap: .75rem; }
.capture-side-counter { min-width: 72px; text-align: center; padding: .65rem .8rem; border-radius: 16px; background: #f3f4f6; font-weight: 800; }
.current-pose-box { margin-top: 1rem; padding: 1rem; border-radius: 22px; background: linear-gradient(135deg, #0f172a, #1e293b); color: #fff; }
.current-pose-glyph { width: 3rem; height: 3rem; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.14); font-size: 1.5rem; font-weight: 800; margin-bottom: .75rem; }
.current-pose-title { font-size: 1.15rem; font-weight: 800; }
.current-pose-caption { color: rgba(255,255,255,.84); margin-top: .2rem; }
.current-pose-note { color: #93c5fd; margin-top: .6rem; }
.capture-progress-list { display: grid; gap: .7rem; margin-top: 1rem; }
.capture-progress-item { display: flex; justify-content: space-between; align-items: center; gap: .75rem; border: 1px solid #e2e8f0; background: #fff; border-radius: 18px; padding: .8rem .9rem; }
.capture-progress-item.active { border-color: #93c5fd; background: #eff6ff; }
.capture-progress-item.done { border-color: #86efac; background: #f0fdf4; }
.capture-progress-main { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.capture-progress-glyph { width: 2.3rem; height: 2.3rem; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; background: #eef2ff; color: #3730a3; font-size: 1.2rem; font-weight: 800; flex-shrink: 0; }
.capture-progress-item.done .capture-progress-glyph { background: #16a34a; color: #fff; }
.capture-progress-item.active .capture-progress-glyph { background: #2563eb; color: #fff; }
.capture-progress-title { font-weight: 800; }
.capture-progress-caption { color: #64748b; font-size: .88rem; }
.capture-progress-state { white-space: nowrap; font-size: .84rem; font-weight: 700; color: #475569; }

.review-grid-simple { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.register-actions { display: flex; justify-content: space-between; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: 1.25rem; }
.register-actions-right, .register-actions-success { display: flex; gap: .75rem; flex-wrap: wrap; }

@media (max-width: 991.98px) {
  .capture-layout { grid-template-columns: 1fr; }
  .capture-video-frame { min-height: 380px; }
  .capture-video { min-height: 360px; }
  .register-title { font-size: 1.65rem; }
}

@media (max-width: 767.98px) {
  .register-wizard-shell { padding-top: .75rem; }
  .register-wizard-card { padding: 1rem; }
  .register-kiosk-id { width: 100%; min-width: 0; }
  .register-stepper { display: grid; grid-template-columns: 1fr; }
  .review-grid-simple { grid-template-columns: 1fr; }
  .register-actions, .register-actions-right, .register-actions-success { flex-direction: column; align-items: stretch; }
  .capture-video-frame { min-height: 300px; }
  .capture-video { min-height: 280px; }
  .capture-overlay { left: .75rem; right: .75rem; bottom: .75rem; }
}
