.wimipe-card {
  border: 1px solid #d9d9de;
  border-radius: 16px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  max-width: 920px;
  margin: 24px auto;
}

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

.wimipe-title {
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.4;
}

.wimipe-subtitle {
  color: #666;
  font-size: 0.92rem;
  margin-top: 4px;
}

.wimipe-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 700;
  background: #eef2f7;
  color: #334155;
  white-space: nowrap;
}

.wimipe-status-pill.is-watch {
  background: #fff7ed;
  color: #9a3412;
}

.wimipe-status-pill.is-high {
  background: #fef2f2;
  color: #b91c1c;
}

.wimipe-ip-dual-grid,
.wimipe-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.wimipe-grid {
  margin-top: 14px;
}

.wimipe-item {
  border: 1px solid #ececf1;
  border-radius: 12px;
  padding: 14px;
  background: #fafafa;
}

.wimipe-label {
  font-size: 0.86rem;
  color: #666;
  margin-bottom: 8px;
}

.wimipe-value,
.wimipe-ip {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  word-break: break-word;
}

.wimipe-value-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.wimipe-ip {
  background: #111827;
  color: #fff;
  padding: 8px 12px;
  border-radius: 10px;
}

.wimipe-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #075985;
  font-size: 0.84rem;
  font-weight: 700;
}

.wimipe-ip-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.wimipe-badge-ipv4,
.wimipe-badge-ipv6 {
  background: #eef2f7;
  color: #334155;
}

.wimipe-badge-ipv4.is-ok,
.wimipe-badge-ipv6.is-ok {
  background: #dcfce7;
  color: #166534;
}

.wimipe-badge-ipv4.is-unavailable,
.wimipe-badge-ipv6.is-unavailable {
  background: #fef2f2;
  color: #b91c1c;
}

.wimipe-ip-help {
  margin-top: 10px;
  color: #4b5563;
  font-size: 0.9rem;
  line-height: 1.5;
}

.wimipe-btn-small {
  margin-top: 12px;
  padding: 8px 12px;
  font-size: 0.9rem;
}

.wimipe-diagnosis {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #eff6ff;
  color: #1e3a8a;
  font-weight: 600;
  line-height: 1.6;
}

.wimipe-access-box {
  margin-top: 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
}

.wimipe-access-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.wimipe-access-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.wimipe-access-grid > div {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 12px;
}

.wimipe-access-grid span {
  display: block;
  color: #666;
  font-size: 0.85rem;
  margin-bottom: 6px;
}

.wimipe-access-grid strong {
  font-size: 1.2rem;
}

.wimipe-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.wimipe-btn {
  appearance: none;
  border: 0;
  border-radius: 10px;
  padding: 10px 16px;
  cursor: pointer;
  background: #111827;
  color: #fff;
  font-weight: 700;
}

.wimipe-btn:hover {
  opacity: 0.92;
}

.wimipe-btn-secondary {
  background: #f3f4f6;
  color: #111827;
}

.wimipe-message {
  margin-top: 12px;
  min-height: 1.4em;
  color: #0f766e;
  font-size: 0.92rem;
}

.wimipe-details {
  margin-top: 18px;
  border-top: 1px solid #ececf1;
  padding-top: 16px;
}

.wimipe-details summary {
  cursor: pointer;
  font-weight: 700;
  margin-bottom: 12px;
}

.wimipe-detail-row {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px dashed #ececf1;
}

.wimipe-detail-row strong {
  font-weight: 500;
  word-break: break-word;
}

.wimipe-note {
  font-size: 0.88rem;
  color: #666;
  margin-top: 16px;
  line-height: 1.6;
}

@media (max-width: 680px) {
  .wimipe-header {
    flex-direction: column;
  }

  .wimipe-ip-dual-grid,
  .wimipe-grid,
  .wimipe-access-grid {
    grid-template-columns: 1fr;
  }

  .wimipe-detail-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}


.wimipe-troubleshoot-box {
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  background: #fcfcfd;
}

.wimipe-troubleshoot-title {
  font-weight: 700;
  margin-bottom: 10px;
}

.wimipe-troubleshoot-list {
  margin: 0;
  padding-left: 1.2em;
  color: #374151;
}

.wimipe-troubleshoot-list li {
  margin: 0 0 8px;
  line-height: 1.65;
}

.wimipe-related-link {
  margin: 12px 0 0;
  font-weight: 700;
}

.wimipe-related-link a {
  text-decoration: none;
}

.wimipe-related-link a:hover {
  text-decoration: underline;
}
