.vehicle-carpool-panel {
  margin-top: 22px;
  padding: 20px;
  border: 1px solid rgba(37, 130, 168, 0.28);
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(235, 248, 252, 0.92), rgba(248, 251, 255, 0.96));
  color: #18324b;
}

.vehicle-carpool-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 14px;
}

.vehicle-carpool-eyebrow {
  display: block;
  margin-bottom: 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: #247ca3;
}

.vehicle-carpool-heading .form-section-title {
  margin: 0 0 5px;
  color: #173a55;
}

.vehicle-carpool-tag {
  display: inline-flex;
  padding: 5px 10px;
  border-radius: 100px;
  background: #d8edf6;
  color: #175b7a;
  font-size: 11px;
  font-weight: 700;
}

.vehicle-carpool-notice {
  margin-bottom: 16px;
  padding: 10px 12px;
  border: 1px solid #c6e0ee;
  border-radius: 10px;
  background: #fff;
  color: #486176;
  font-size: 12px;
  line-height: 1.6;
}

.vehicle-carpool-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.vehicle-carpool-grid > div {
  min-width: 0;
}

.vehicle-carpool-grid label {
  display: block;
  margin-bottom: 6px;
  color: #294c65;
  font-size: 12px;
  font-weight: 700;
}

.vehicle-carpool-grid select {
  display: block;
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  border: 1px solid #b9d2e2;
  border-radius: 9px;
  padding: 8px 11px;
  background: #fff;
  color: #173a55;
}

.vehicle-carpool-grid select:focus-visible {
  outline: 2px solid #2786b0;
  outline-offset: 2px;
}

.vehicle-carpool-grid select:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.vehicle-carpool-actions {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.vehicle-carpool-actions button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.vehicle-carpool-message {
  margin-top: 12px;
  font-size: 12px;
  line-height: 1.5;
}

.vehicle-carpool-message:empty {
  display: none;
}

.vehicle-carpool-message[data-state="error"] {
  color: #b42331;
  font-weight: 700;
}

.vehicle-carpool-list-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #c9dfea;
}

.vehicle-carpool-list-section h5 {
  margin: 0 0 10px;
  color: #25475e;
}

.vehicle-carpool-list {
  display: grid;
  gap: 8px;
  color: #51667a;
  font-size: 12px;
}

.vehicle-carpool-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #d6e5ee;
  border-radius: 10px;
  background: #fff;
  color: #213f55;
}

.vehicle-carpool-remove {
  flex-shrink: 0;
  padding: 6px 11px;
  border: 1px solid #edc1c1;
  border-radius: 8px;
  background: #fff7f7;
  color: #a72e38;
  font-size: 12px;
  cursor: pointer;
}

.vehicle-carpool-remove:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@media (max-width: 720px) {
  .vehicle-carpool-panel {
    padding: 14px;
  }

  .vehicle-carpool-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
/* 乗り合わせは通常の配車設定と同時に表示しない。 */
.vehicle-carpool-open-button {
  margin-left: auto;
  border-color: #207fa6;
  color: #14617f;
  font-weight: 700;
}

.vehicle-carpool-view-header {
  display: flex;
  justify-content: flex-start;
  margin-top: 12px;
}

.vehicle-carpool-view-header button {
  min-height: 38px;
}

@media (max-width: 720px) {
  .vehicle-carpool-open-button {
    margin-left: 0;
    width: 100%;
  }
}
