
/* OBD widget – fully scoped to avoid theme/builder conflicts */
.obd-widget { isolation: isolate; max-width: 720px; margin: 0 auto; }
.obd-widget * { box-sizing: border-box; }

/* Card */
.obd-widget .obd-checker {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; padding: 20px;
  box-shadow: 0 4px 16px rgba(0,0,0,.04); color: #111827;
}

/* Form */
.obd-widget .obd-form { display: block; }
.obd-widget .obd-row { display: grid; gap: 8px; margin-bottom: 14px; }
.obd-widget label { font: inherit; font-weight: 600; font-size: 14px; color: #6b7280; letter-spacing: .2px; }

.obd-widget input[type="text"],
.obd-widget input[type="number"],
.obd-widget textarea {
  width: 100%; border: 1px solid #e5e7eb; border-radius: 12px; padding: 12px 14px; font: inherit;
  background: #fff; line-height: 1.4; outline: none;
}
.obd-widget input[type="text"]:focus,
.obd-widget input[type="number"]:focus,
.obd-widget textarea:focus {
  border-color: #0a4bff; box-shadow: 0 0 0 4px rgba(10,75,255,.15);
}

.obd-widget .obd-btn {
  appearance: none; border: 0; border-radius: 9999px; padding: 12px 22px;
  font-weight: 600; font-size: 16px; background: #0a4bff; color: #fff; cursor: pointer;
  box-shadow: 0 8px 24px rgba(0,0,0,.08); transition: opacity .2s, transform .05s;
}
.obd-widget .obd-btn:hover { opacity: .93; }
.obd-widget .obd-btn:active { transform: translateY(1px); }
.obd-widget .obd-btn:disabled { opacity: .6; cursor: progress; }

.obd-widget .obd-status { margin-top: 8px; font-size: 14px; color: #6b7280; }

/* Result */
.obd-widget .obd-result { margin-top: 18px; }
.obd-widget .obd-card { border: 1px solid #e5e7eb; border-radius: 12px; background: #fff; padding: 16px; }
.obd-widget .obd-card__head {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 10px; margin-bottom: 8px; padding-bottom: 10px; border-bottom: 1px solid #e5e7eb;
}
.obd-widget .obd-card h3 { margin: 0; font-size: 20px; }
.obd-widget .obd-sec { margin-top: 14px; }
.obd-widget .obd-sec h4 { margin: 0 0 6px 0; font-size: 15px; color: #374151; letter-spacing: .2px; }
.obd-widget .obd-sec p { margin: 0; line-height: 1.55; }

.obd-widget .obd-badges { display: flex; gap: 8px; align-items: center; }
.obd-widget .obd-badge { display: inline-block; padding: 3px 10px; border-radius: 9999px; border: 1px solid #e5e7eb; font-size: 12px; color: #4b5563; background: #fff; }
.obd-widget .obd-badge--high { background: #fee2e2; border-color: #fecaca; color: #991b1b; }
.obd-widget .obd-badge--mid  { background: #fef3c7; border-color: #fde68a; color: #92400e; }
.obd-widget .obd-badge--low  { background: #dcfce7; border-color: #bbf7d0; color: #065f46; }

.obd-widget .obd-list { padding-left: 18px; margin: 0; }
.obd-widget .obd-list li { margin: 4px 0; }
