.hwid-dialog {
  border: 0;
  padding: 0;
  width: min(920px, calc(100% - 30px));
  max-height: 92vh;
}

.hwid-dialog::backdrop {
  background: rgba(0, 0, 0, 0.62);
}

.hwid-shell {
  padding: 30px;
  position: relative;
  overflow: auto;
  max-height: 92vh;
}

.hwid-shell h2 {
  font-size: 34px;
  margin: 2px 0 20px;
}

.hwid-close {
  position: absolute;
  right: 24px;
  top: 18px;
  border: 0;
  background: none;
  font-size: 32px;
  cursor: pointer;
}

.hwid-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 20px;
  border-bottom: 1px solid #dfe2dc;
}

.hwid-steps span {
  padding: 12px 8px;
  font-weight: 700;
  color: #70756d;
}

.hwid-steps .active {
  color: #315900;
  border-bottom: 4px solid #70a900;
}

.hwid-panel {
  padding: 22px 0;
  border-bottom: 1px solid #dfe2dc;
}

.hwid-panel h3 {
  font-size: 22px;
  margin: 0 0 15px;
}

.hwid-grid {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 20px;
  align-items: center;
}

.hwid-visual {
  height: 74px;
  background: #171916;
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 900;
  letter-spacing: 2px;
}

.hwid-instructions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  padding: 0;
  counter-reset: steps;
}

.hwid-instructions li {
  border: 1px solid #dfe2dc;
  padding: 16px;
  counter-increment: steps;
}

.hwid-instructions li::before {
  content: counter(steps);
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  background: #70a900;
  font-weight: 800;
  margin-bottom: 10px;
}

.hwid-instructions strong,
.hwid-instructions span {
  display: block;
}

.hwid-instructions span {
  color: #656a62;
  margin-top: 5px;
}

.hwid-console {
  background: #101310;
  color: #e9eee5;
  padding: 18px;
  font: 14px/1.8 Consolas, monospace;
  margin-top: 14px;
}

.hwid-console .ok {
  color: #a8dc55;
}

.hwid-drop {
  display: grid;
  place-items: center;
  text-align: center;
  padding: 28px;
  border: 2px dashed #9ca395;
  background: #f7f8f5;
  cursor: pointer;
  margin-bottom: 12px;
}

.hwid-drop span {
  color: #656a62;
}

.hwid-drop input {
  margin-top: 12px;
}

.hwid-check {
  display: block;
  margin: 14px 0;
}

.hwid-result {
  display: flex;
  flex-direction: column;
  padding: 15px;
  margin-top: 14px;
  border-left: 4px solid #777;
  background: #eef0ec;
}

.hwid-result.success {
  border-color: #70a900;
  background: #e6f2dc;
}

.hwid-result.bad {
  border-color: #b42318;
  background: #fde8e7;
}

.hwid-result.pending {
  border-color: #9a6700;
  background: #fff0c7;
}

/* Seriennummernfeld im ersten Schritt */
.hwid-dialog #hwidSerial {
  min-width: 0;
  width: 100%;
  padding: 12px;
  border: 1px solid #9ca395;
  box-sizing: border-box;
}

/* Sichtprüfung am neuen Gerät */
#oobeCheck {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid #dfe2dc;
}

#oobeCheck h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

#oobeCheck .oobe-hint {
  margin: 0 0 18px;
  color: #555e51;
  line-height: 1.5;
}

#oobeCheck .oobe-check-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  margin: 18px 0;
}

#oobeCheck .oobe-check-item {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  padding: 18px;
  border: 1px solid #dfe2dc;
  border-radius: 6px;
  background: #f7f8f5;
  cursor: pointer;
}

#oobeCheck .oobe-check-item:has(input:checked) {
  border-color: #70a900;
  background: #f0f7e8;
}

#oobeCheck .oobe-check-item input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: #70a900;
}

#oobeCheck .oobe-check-item span,
#oobeCheck .oobe-check-item strong,
#oobeCheck .oobe-check-item small {
  display: block;
  min-width: 0;
}

#oobeCheck .oobe-check-item strong {
  margin-bottom: 5px;
  font-size: 16px;
  line-height: 1.4;
}

#oobeCheck .oobe-check-item small {
  color: #555e51;
  font-size: 14px;
  line-height: 1.5;
}

#oobeCheck .oobe-check-result {
  margin: 18px 0;
  padding: 14px 16px;
  border-left: 4px solid #9a6700;
  background: #fff0c7;
}

#oobeCheck .oobe-check-result.complete {
  border-color: #70a900;
  background: #e6f2dc;
}

#onboardingJourney {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid #dfe2dc;
}

#onboardingJourney h3 {
  margin: 0 0 8px;
  font-size: 22px;
}

.journey-count {
  margin: 0 0 10px;
  color: #555e51;
}

#onboardingJourney progress {
  display: block;
  width: 100%;
  height: 14px;
  margin-bottom: 22px;
  accent-color: #70a900;
}

.journey-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.journey-step {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border: 1px solid #dfe2dc;
  border-left: 4px solid #a0a69b;
  border-radius: 6px;
  background: #f7f8f5;
}

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

.journey-step small {
  margin-top: 4px;
  color: #555e51;
  line-height: 1.4;
}

.journey-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #e8ebe5;
  font-size: 20px;
}

.journey-done {
  border-left-color: #70a900;
  background: #f0f7e8;
}

.journey-done .journey-icon {
  background: #dceecb;
}

.journey-skipped {
  border-left-color: #7390a4;
  background: #f0f5f8;
}

.journey-hint {
  margin: 18px 0 0;
  color: #555e51;
}

.journey-actions {
  display: grid;
  gap: 10px;
  margin-top: 20px;
}

.journey-actions label {
  display: block;
  padding: 14px 16px;
  border: 1px solid #dfe2dc;
  border-radius: 6px;
  cursor: pointer;
}

.journey-actions input {
  accent-color: #70a900;
}
